comparison aclocal.m4 @ 2854:f9088eb6b47a

[project @ 1997-03-28 22:54:28 by jwe]
author jwe
date Fri, 28 Mar 1997 22:54:28 +0000
parents 8b262e771614
children 95e85daad148
comparison
equal deleted inserted replaced
2853:ff4ee9ad942a 2854:f9088eb6b47a
65 dnl to do if your compiler doesn't have -v... 65 dnl to do if your compiler doesn't have -v...
66 dnl 66 dnl
67 dnl OCTAVE_FLIBS() 67 dnl OCTAVE_FLIBS()
68 AC_DEFUN(OCTAVE_FLIBS, 68 AC_DEFUN(OCTAVE_FLIBS,
69 [AC_MSG_CHECKING([for Fortran libraries]) 69 [AC_MSG_CHECKING([for Fortran libraries])
70 AC_REQUIRE([OCTAVE_HOST_TYPE])
70 AC_CACHE_VAL(octave_cv_flibs, 71 AC_CACHE_VAL(octave_cv_flibs,
71 [changequote(, )dnl 72 [changequote(, )dnl
72 echo " END" > conftest.f 73 echo " END" > conftest.f
73 foutput=`${F77-f77} -v -o conftest conftest.f 2>&1` 74 foutput=`${F77-f77} -v -o conftest conftest.f 2>&1`
74 dnl 75 dnl
152 for f in $lflags; do 153 for f in $lflags; do
153 if test x$arg = x$f; then 154 if test x$arg = x$f; then
154 exists=true 155 exists=true
155 fi 156 fi
156 done 157 done
157 if $exists || test x$arg = x-lm -o x$arg = x-lc; then 158 if $exists
158 arg= 159 arg=
159 else 160 else
160 lflags="$lflags $arg" 161 case "$arg" in
162 -lkernel32)
163 case "$canonical_host_type" in
164 *-*-cygwin32)
165 ;;
166 *)
167 lflags="$lflags $arg"
168 ;;
169 esac
170 ;;
171 -lm | -lc)
172 ;;
173 *)
174 lflags="$lflags $arg"
175 ;;
176 esac
161 fi 177 fi
162 ;; 178 ;;
163 -u) 179 -u)
164 want_arg=$arg 180 want_arg=$arg
165 ;; 181 ;;