From: Akim Demaille Date: Thu, 8 Jun 2000 08:23:30 +0000 (+0000) Subject: * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Don't override FLIBS if X-Git-Tag: autoconf-2.50~823 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a003cd1963a8d81bf2aff570962435514dda9c34;p=thirdparty%2Fautoconf.git * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Don't override FLIBS if specified by the user. Fix a bug: use the cached value to set FLIBS. --- diff --git a/ChangeLog b/ChangeLog index c4037d03e..cce7570a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-06-08 Steven G. Johnson + + * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Don't override FLIBS if + specified by the user. + Fix a bug: use the cached value to set FLIBS. + 2000-06-07 Dave Love * aclang.m4 (AC_PROG_F77): Check for f95 and fc too. diff --git a/aclang.m4 b/aclang.m4 index f25511dfd..584ee8e02 100644 --- a/aclang.m4 +++ b/aclang.m4 @@ -1324,7 +1324,10 @@ AC_DEFUN([AC_F77_LIBRARY_LDFLAGS], AC_REQUIRE([AC_CYGWIN])dnl AC_CACHE_CHECK([for Fortran 77 libraries], ac_cv_flibs, -[AC_LANG_PUSH(Fortran 77) +[if test "x$FLIBS" != "x"; then + ac_cv_flibs="$FLIBS" # Let the user override the test. +else +AC_LANG_PUSH(Fortran 77) # This is the simplest of all Fortran 77 programs. cat >conftest.$ac_ext <conftest.$ac_ext <conftest.$ac_ext <conftest.$ac_ext <