+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
# 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
# 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"
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