--- ./configure.org 1997-07-14 22:26:48.000000000 +0900 +++ ./configure 2010-09-28 12:06:46.000000000 +0900 @@ -9,7 +9,7 @@ # Defaults: ac_help= -ac_default_prefix=/usr/local +ac_default_prefix=/opt/local # Any additions from configure.in: # Initialize some variables set by options. --- ./fort77.1.org 2010-09-28 11:56:06.000000000 +0900 +++ ./fort77.1 2010-09-28 12:03:10.000000000 +0900 @@ -40,7 +40,7 @@ are passed through to f2c, and files ending with .B .F are passed to the C preprocessor (invoked as -.RB """" "/lib/cpp -traditional" """") +.RB """" "/usr/bin/cpp -traditional" """") first. Any switches passed via .B -D will be passed to the preprocessor. --- ./fort77.in.org 2010-09-28 11:56:06.000000000 +0900 +++ ./fort77.in 2010-09-28 13:56:23.000000000 +0900 @@ -12,7 +12,7 @@ $debug = 0; $debugcmd = ""; -$cppcmd = "/lib/cpp -traditional"; +$cppcmd = "/usr/bin/cpp -traditional"; # Loop over all options; pull all options from @ARGV and put all # arguments into @argv. This is needed because, apparently, UNIX @@ -97,6 +97,10 @@ elsif (/^-f$/) { push(@fopts, $_); } + elsif (/^-mmacosx-version-min=.*$/) { + push(@copts, $_); + push(@lopts, $_); + } elsif (/^-[fWUAm]/ || /^-[Ex]$/ || /^-pipe$/ ) { push(@copts, $_); } @@ -141,6 +145,11 @@ push(@copts, $_); push(@lopts, $_); } + elsif (/^-arch$/ || /^-isysroot$/ || /^-iwithsysroot$/ || /^-isystem$/) { + push(@copts, $_, $ARGV[0]); + push(@lopts, $_, $ARGV[0]); + shift; + } # Linker only options @@ -287,7 +296,7 @@ # C compilation step. if ($cfile) { - @command = ("@CC@",@cppopts,@copts); + @command = ("@CC@","-I/opt/local/include",@cppopts,@copts); if ($compile_only && $output) { push(@command,'-o',$output,$compile_only); } @@ -323,7 +332,8 @@ push (@output, "-o", $output) if $output; -$retcode = &mysystem("@CC@", @output, @lfiles, @lopts, "-lf2c", "-lm" ); +#$retcode = &mysystem("@CC@", @output, @lfiles, @lopts, "-L/opt/local/lib", "-lf2c", "-lm" ); +$retcode = &mysystem("@CC@", @output, @lfiles, @lopts, "/opt/local/lib/libf2c.a", "-lm" ); if (@gener_lfiles) { print STDERR "$0: unlinking ",join(',',@gener_lfiles),"\n" if $verbose; unlink (@gener_lfiles); --- ./tests/test.pl.org 2010-09-28 11:56:06.000000000 +0900 +++ ./tests/test.pl 2010-09-28 12:25:01.000000000 +0900 @@ -70,6 +70,7 @@ } print STDERR "$cmd ..." if $verbose > 0; + $cmd = "$cmd -v" if $verbose; $cmd = "( $cmd ) >/dev/null 2>&1" if $verbose <= 1; system($cmd);