| @@ -1,27 +1,39 @@ | | | @@ -1,27 +1,39 @@ |
1 | $NetBSD: patch-ab,v 1.4 2005/12/21 17:56:10 joerg Exp $ | | 1 | $NetBSD: patch-ab,v 1.5 2012/07/03 17:42:48 joerg Exp $ |
2 | | | 2 | |
3 | --- configure.orig | | 3 | --- configure.orig 2003-12-17 03:15:18.000000000 +0000 |
4 | +++ configure | | 4 | +++ configure |
5 | @@ -1318,7 +1318,7 @@ | | 5 | @@ -1331,7 +1331,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6 | LIBS="$LIBS -lm" | | 6 | LIBS="$LIBS -lm" |
7 | f77_compile='${F77-f77} $FFLAGS -c conftest.f 1>&5 2>&5' | | 7 | f77_compile='${F77-f77} $FFLAGS -c conftest.f 1>&5 2>&5' |
8 | f77_make='make F77="${F77-f77}" FFLAGS="$FFLAGS" -f conftest.mak conftest.o 1>&5 2>&5' | | 8 | f77_make='make F77="${F77-f77}" FFLAGS="$FFLAGS" -f conftest.mak conftest.o 1>&5 2>&5' |
9 | -c_f77_link='(${F77-f77} $FFLAGS -c conftestf.f && ${CC-cc} $CFLAGS $CPPFLAGS conftest.c conftestf.o -o conftest $LDFLAGS $LIBS) 1>&5 2>&5' | | 9 | -c_f77_link='(${F77-f77} $FFLAGS -c conftestf.f && ${CC-cc} $CFLAGS $CPPFLAGS conftest.c conftestf.o -o conftest $LDFLAGS $LIBS) 1>&5 2>&5' |
10 | +c_f77_link='(${F77-f77} $FFLAGS -c conftestf.f && ${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c && ${F77-f77} conftest.o conftestf.o -o conftest $LDFLAGS $LIBS) 1>&5 2>&5' | | 10 | +c_f77_link='(${F77-f77} $FFLAGS -c conftestf.f && ${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c && ${F77-f77} conftest.o conftestf.o -o conftest $LDFLAGS $LIBS) 1>&5 2>&5' |
11 | | | 11 | |
12 | # The next two don't include LDFLAGS, because some loser f77 compilers | | 12 | # The next two don't include LDFLAGS, because some loser f77 compilers |
13 | # (like on hp) do their own thing with the -L option. | | 13 | # (like on hp) do their own thing with the -L option. |
14 | @@ -4378,60 +4378,12 @@ | | 14 | @@ -2561,9 +2561,9 @@ echo $ECHO_N "checking for support of AN |
| | | 15 | cat > conftest.$ac_ext <<EOF |
| | | 16 | #line 2562 "configure" |
| | | 17 | #include "confdefs.h" |
| | | 18 | -int main(int argc, char *argv); |
| | | 19 | +int main(int argc, char **argv); |
| | | 20 | int t(void); |
| | | 21 | -int main(int argc, char *argv) { return t(); } |
| | | 22 | +int main(int argc, char **argv) { return t(); } |
| | | 23 | int t(void) { return 0; } |
| | | 24 | EOF |
| | | 25 | if eval $ac_compile; then |
| | | 26 | @@ -4435,60 +4435,12 @@ echo "${ECHO_T}\"T\" becomes \"$f77_sym\ |
15 | | | 27 | |
16 | | | 28 | |
17 | #--------------------------------------------------------------------- | | 29 | #--------------------------------------------------------------------- |
18 | -# Where would we expect to find the Fortran libraries? | | 30 | -# Where would we expect to find the Fortran libraries? |
19 | -#--------------------------------------------------------------------- | | 31 | -#--------------------------------------------------------------------- |
20 | - | | 32 | - |
21 | - | | 33 | - |
22 | -# Check whether --with-fortran-libs or --without-fortran-libs was given. | | 34 | -# Check whether --with-fortran-libs or --without-fortran-libs was given. |
23 | -if test "${with_fortran_libs+set}" = set; then | | 35 | -if test "${with_fortran_libs+set}" = set; then |
24 | - withval="$with_fortran_libs" | | 36 | - withval="$with_fortran_libs" |
25 | - fortran_libs="${withval}" | | 37 | - fortran_libs="${withval}" |
26 | -else | | 38 | -else |
27 | - # The patterns are not necessarily exclusive, so their order is important. | | 39 | - # The patterns are not necessarily exclusive, so their order is important. |