summaryrefslogtreecommitdiff
path: root/math/algae/patches/patch-ab
blob: e2df9967d8e36cf2419d5ab6f58df304afab58d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
$NetBSD: patch-ab,v 1.5 2012/07/03 17:42:48 joerg Exp $

--- configure.orig	2003-12-17 03:15:18.000000000 +0000
+++ configure
@@ -1331,7 +1331,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 LIBS="$LIBS -lm"
 f77_compile='${F77-f77} $FFLAGS -c conftest.f 1>&5 2>&5'
 f77_make='make F77="${F77-f77}" FFLAGS="$FFLAGS" -f conftest.mak conftest.o 1>&5 2>&5'
-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'
+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'
 
 # The next two don't include LDFLAGS, because some loser f77 compilers
 # (like on hp) do their own thing with the -L option.
@@ -2561,9 +2561,9 @@ echo $ECHO_N "checking for support of AN
 cat > conftest.$ac_ext <<EOF
 #line 2562 "configure"
 #include "confdefs.h"
-int main(int argc, char *argv);
+int main(int argc, char **argv);
 int t(void);
-int main(int argc, char *argv) { return t(); }
+int main(int argc, char **argv) { return t(); }
 int t(void) { return 0; }
 EOF
 if eval $ac_compile; then
@@ -4435,60 +4435,12 @@ echo "${ECHO_T}\"T\" becomes \"$f77_sym\
 
 
 #---------------------------------------------------------------------
-#  Where would we expect to find the Fortran libraries?
-#---------------------------------------------------------------------
-
-
-# Check whether --with-fortran-libs or --without-fortran-libs was given.
-if test "${with_fortran_libs+set}" = set; then
-  withval="$with_fortran_libs"
-  fortran_libs="${withval}"
-else
-  # The patterns are not necessarily exclusive, so their order is important.
-  case "$host" in
-	 sparc-sun-sunos4* )
-	   fortran_libs="/usr/lang/SC1.0" ;;
-	 sparc-sun-solaris2* )
-	   fortran_libs=`/bin/ls -d /opt/SUNWspro/SC* | head -1`/lib ;;
-	 alpha*-*-osf* )
-	   fortran_libs="/usr/lib" ;;
-	 *-hp-hpux1* )
-	   fortran_libs="/opt/fortran/lib" ;;
-	 * )
-	   fortran_libs="" ;;
-  esac
-fi;
-
-#---------------------------------------------------------------------
-#  What are the names of the native Fortran libraries?  The patterns
-#  are not necessarily exclusive, so their order is important.
-#---------------------------------------------------------------------
-
-case "$host" in
-  alpha*	) f77_lib_names="Futil ots for Ufor" ;;
-  *-aix*	) f77_lib_names="xlf xlf90" ;;
-  *-hpux1*	) f77_lib_names="cl U77" ;;
-  *-hpux9*	) f77_lib_names="f U77" ;;
-  *-hpux*	) f77_lib_names="F77 I77 IO77" ;;
-  *-dec-ultrix*	) f77_lib_names="for i util ots I77 U77 F77" ;;
-  mips-sgi-irix*) f77_lib_names="F77 I77 U77 isam fpe ftn" ;;
-  mips-*	) f77_lib_names="F77 I77 U77 isam" ;;
-  *-solaris2*	) f77_lib_names="F77 M77 sunmath" ;;
-  *-sunos4*	) f77_lib_names="F77 V77" ;;
-  titan-*	) f77_lib_names="iF77 uF77 mF77" ;;
-  *-unicos*	) f77_lib_names="F77 I77 sci f" ;;
-  *		) f77_lib_names="F77 I77" ;;
-esac
-f77_lib_names="$f77_lib_names g2c f2c"
-for f in $f77_lib_names; do reversed_names="$f $reversed_names"; done
-
-#---------------------------------------------------------------------
 #  On linux (and perhaps other GNU systems), the linker has trouble
 #  with dynamically linked Fortran.
 #---------------------------------------------------------------------
 
 cat >> confdefs.h <<\EOF
-#if linux
+#if linux || defined(__NetBSD__) || defined(__DragonFly__)
 void MAIN__ (void) {abort();}
 #endif
 EOF