]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* m4/libtool.m4 (_LT_PROG_F77): Set it up so that saying F77=no
authorPeter Ekberg <peda@lysator.liu.se>
Sat, 30 Jul 2005 15:51:00 +0000 (15:51 +0000)
committerPeter Rosin <peda@lysator.liu.se>
Sat, 30 Jul 2005 15:51:00 +0000 (15:51 +0000)
to configure disables the fortran tests in the testsuite.

ChangeLog
m4/libtool.m4

index 46a027efb9f70c5995bec99d7b104acf74d7b90f..0ee28c01bf069898ed7e8a6f0e9b6976ab84a6fb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-30  Peter Ekberg  <peda@lysator.liu.se>
+
+       * m4/libtool.m4 (_LT_PROG_F77): Set it up so that saying F77=no
+       to configure disables the fortran tests in the testsuite.
+
 2005-07-29  Richard Moseley  <dickie.moseley@virgin.net>
 
        * m4/ltdl.m4 (LTDL_INIT): Handle in addition the new name for 
index f11ecbbef7d30b89e0a0f877436957be97f59e6e..ca87e6a158adccb2030bd3d4e4d4e6a0c21533b4 100644 (file)
@@ -5838,10 +5838,10 @@ _LT_TAGDECL([], [compiler_lib_search_path], [1],
 # if there is no fortran compiler, we have our own version here.
 m4_defun([_LT_PROG_F77],
 [
-pushdef([AC_MSG_ERROR], [_lt_caught_F77_error=yes])
+pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
 AC_PROG_F77
-if test -z "$F77"; then
-  _lt_caught_F77_error=yes
+if test -z "$F77" || test "X$F77" = "Xno"; then
+  _lt_disable_F77=yes
 fi
 popdef([AC_MSG_ERROR])
 ])# _LT_PROG_F77
@@ -5887,7 +5887,7 @@ _LT_TAGVAR(objext, $1)=$objext
 # the F77 compiler isn't working.  Some variables (like enable_shared)
 # are currently assumed to apply to all compilers on this platform,
 # and will be corrupted by setting them based on a non-working compiler.
-if test "$_lt_caught_F77_error" != yes; then
+if test "$_lt_disable_F77" != yes; then
   # Code to be used in simple compile tests
   lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
@@ -5959,7 +5959,7 @@ if test "$_lt_caught_F77_error" != yes; then
   fi # test -n "$compiler"
 
   CC="$lt_save_CC"
-fi # test "$_lt_caught_F77_error" != yes
+fi # test "$_lt_disable_F77" != yes
 
 AC_LANG_POP
 ])# _LT_LANG_F77_CONFIG