]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/m4/libtool.m4 (_LT_PROG_FC): Report FC=no if the FC
authorPeter O'Gorman <peter@pogma.com>
Fri, 7 Mar 2008 05:38:33 +0000 (05:38 +0000)
committerPeter O'Gorman <peter@pogma.com>
Fri, 7 Mar 2008 05:38:33 +0000 (05:38 +0000)
compiler is not a GNU compiler and the CXX compiler is a GNU
compiler.
Reported by Nelson H. F. Beebe.

ChangeLog
libltdl/m4/libtool.m4

index 142f14a9903ab3ae8373db5cbb89ebf6c11863a9..4bde8430fe8146cb137e070010d4956078bc7e89 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-03-06  Peter O'Gorman  <peter@pogma.com>
+
+       * libltdl/m4/libtool.m4 (_LT_PROG_FC): Report FC=no if the FC
+       compiler is not a GNU compiler and the CXX compiler is a GNU
+       compiler.
+       Reported by Nelson H. F. Beebe.
+
 2008-03-06  Gary V. Vaughan  <gary@gnu.org>
 
        * Makefile.maint (TSDEPS_DIST): Removed.  No longer used.
index 6124c3ad3a0bcbd1016b2a4fbb472b5a21bbcb6b..5d71f4306ea8613bd276e4b42e1f7b9100c710d3 100644 (file)
@@ -6644,6 +6644,15 @@ AC_PROG_FC
 if test -z "$FC" || test "X$FC" = "Xno"; then
   _lt_disable_FC=yes
 fi
+
+# If g++ is being used, but the fortran compiler is not a gnu
+# compiler, we should simply ignore it. It will not grok -shared, for
+# example.
+if test "x$ac_cv_fc_compiler_gnu" != "x$GXX"; then
+  FC=no 
+  _lt_disable_FC=yes
+fi
+
 popdef([AC_MSG_ERROR])
 ])# _LT_PROG_FC