]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fix Autoconf/FIXME.
authorAkim Demaille <akim@epita.fr>
Fri, 19 May 2000 12:41:56 +0000 (12:41 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 19 May 2000 12:41:56 +0000 (12:41 +0000)
* aclang.m4 (AC_PROG_F77): Follow strictly the same scheme as
AC_PROG_CC to compute the default FFLAGS.

ChangeLog
aclang.m4
lib/autoconf/c.m4
lib/autoconf/fortran.m4
lib/autoconf/lang.m4

index c9a6e7b98b02098c567d9c4bcbe445f5c80818e7..32a0379627e3ceca9a91ec040b66f4b6221a0bdc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-05-19  Akim Demaille  <akim@epita.fr>
+
+       Fix Autoconf/FIXME.
+
+       * aclang.m4 (AC_PROG_F77): Follow strictly the same scheme as
+       AC_PROG_CC to compute the default FFLAGS.
+
 2000-05-19  Akim Demaille  <akim@epita.fr>
 
        Either we cross-compile the whole package, or we don't.
index 998031b67492fa3b42e93911333f42cd5648e3bc..45e6ca3a7eeb414e143502f2375013218f3ae19b 100644 (file)
--- a/aclang.m4
+++ b/aclang.m4
@@ -707,23 +707,31 @@ AC_PROG_F77_GNU
 
 if test $ac_cv_prog_g77 = yes; then
   G77=yes
+else
+  G77=
+fi
+
 dnl Check whether -g works, even if FFLAGS is set, in case the package
 dnl plays around with FFLAGS (such as to build both debugging and
 dnl normal versions of a library), tasteless as that idea is.
-  ac_test_FFLAGS=${FFLAGS+set}
-  ac_save_FFLAGS=$FFLAGS
-  FFLAGS=
-  AC_PROG_F77_G
-  if test "$ac_test_FFLAGS" = set; then
-    FFLAGS=$ac_save_FFLAGS
-  elif test $ac_cv_prog_f77_g = yes; then
+ac_test_FFLAGS=${FFLAGS+set}
+ac_save_FFLAGS=$FFLAGS
+FFLAGS=
+AC_PROG_F77_G
+if test "$ac_test_FFLAGS" = set; then
+  FFLAGS=$ac_save_FFLAGS
+elif test $ac_cv_prog_f77_g = yes; then
+  if test "$G77" = yes; then
     FFLAGS="-g -O2"
   else
-    FFLAGS="-O2"
+    FFLAGS="-g"
   fi
 else
-  G77=
-  test "${FFLAGS+set}" = set || FFLAGS="-g"
+  if test "$G77" = yes; then
+    FFLAGS="-O2"
+  else
+    FFLAGS=
+  fi
 fi
 ])# AC_PROG_F77
 
index 998031b67492fa3b42e93911333f42cd5648e3bc..45e6ca3a7eeb414e143502f2375013218f3ae19b 100644 (file)
@@ -707,23 +707,31 @@ AC_PROG_F77_GNU
 
 if test $ac_cv_prog_g77 = yes; then
   G77=yes
+else
+  G77=
+fi
+
 dnl Check whether -g works, even if FFLAGS is set, in case the package
 dnl plays around with FFLAGS (such as to build both debugging and
 dnl normal versions of a library), tasteless as that idea is.
-  ac_test_FFLAGS=${FFLAGS+set}
-  ac_save_FFLAGS=$FFLAGS
-  FFLAGS=
-  AC_PROG_F77_G
-  if test "$ac_test_FFLAGS" = set; then
-    FFLAGS=$ac_save_FFLAGS
-  elif test $ac_cv_prog_f77_g = yes; then
+ac_test_FFLAGS=${FFLAGS+set}
+ac_save_FFLAGS=$FFLAGS
+FFLAGS=
+AC_PROG_F77_G
+if test "$ac_test_FFLAGS" = set; then
+  FFLAGS=$ac_save_FFLAGS
+elif test $ac_cv_prog_f77_g = yes; then
+  if test "$G77" = yes; then
     FFLAGS="-g -O2"
   else
-    FFLAGS="-O2"
+    FFLAGS="-g"
   fi
 else
-  G77=
-  test "${FFLAGS+set}" = set || FFLAGS="-g"
+  if test "$G77" = yes; then
+    FFLAGS="-O2"
+  else
+    FFLAGS=
+  fi
 fi
 ])# AC_PROG_F77
 
index 998031b67492fa3b42e93911333f42cd5648e3bc..45e6ca3a7eeb414e143502f2375013218f3ae19b 100644 (file)
@@ -707,23 +707,31 @@ AC_PROG_F77_GNU
 
 if test $ac_cv_prog_g77 = yes; then
   G77=yes
+else
+  G77=
+fi
+
 dnl Check whether -g works, even if FFLAGS is set, in case the package
 dnl plays around with FFLAGS (such as to build both debugging and
 dnl normal versions of a library), tasteless as that idea is.
-  ac_test_FFLAGS=${FFLAGS+set}
-  ac_save_FFLAGS=$FFLAGS
-  FFLAGS=
-  AC_PROG_F77_G
-  if test "$ac_test_FFLAGS" = set; then
-    FFLAGS=$ac_save_FFLAGS
-  elif test $ac_cv_prog_f77_g = yes; then
+ac_test_FFLAGS=${FFLAGS+set}
+ac_save_FFLAGS=$FFLAGS
+FFLAGS=
+AC_PROG_F77_G
+if test "$ac_test_FFLAGS" = set; then
+  FFLAGS=$ac_save_FFLAGS
+elif test $ac_cv_prog_f77_g = yes; then
+  if test "$G77" = yes; then
     FFLAGS="-g -O2"
   else
-    FFLAGS="-O2"
+    FFLAGS="-g"
   fi
 else
-  G77=
-  test "${FFLAGS+set}" = set || FFLAGS="-g"
+  if test "$G77" = yes; then
+    FFLAGS="-O2"
+  else
+    FFLAGS=
+  fi
 fi
 ])# AC_PROG_F77
 
index 998031b67492fa3b42e93911333f42cd5648e3bc..45e6ca3a7eeb414e143502f2375013218f3ae19b 100644 (file)
@@ -707,23 +707,31 @@ AC_PROG_F77_GNU
 
 if test $ac_cv_prog_g77 = yes; then
   G77=yes
+else
+  G77=
+fi
+
 dnl Check whether -g works, even if FFLAGS is set, in case the package
 dnl plays around with FFLAGS (such as to build both debugging and
 dnl normal versions of a library), tasteless as that idea is.
-  ac_test_FFLAGS=${FFLAGS+set}
-  ac_save_FFLAGS=$FFLAGS
-  FFLAGS=
-  AC_PROG_F77_G
-  if test "$ac_test_FFLAGS" = set; then
-    FFLAGS=$ac_save_FFLAGS
-  elif test $ac_cv_prog_f77_g = yes; then
+ac_test_FFLAGS=${FFLAGS+set}
+ac_save_FFLAGS=$FFLAGS
+FFLAGS=
+AC_PROG_F77_G
+if test "$ac_test_FFLAGS" = set; then
+  FFLAGS=$ac_save_FFLAGS
+elif test $ac_cv_prog_f77_g = yes; then
+  if test "$G77" = yes; then
     FFLAGS="-g -O2"
   else
-    FFLAGS="-O2"
+    FFLAGS="-g"
   fi
 else
-  G77=
-  test "${FFLAGS+set}" = set || FFLAGS="-g"
+  if test "$G77" = yes; then
+    FFLAGS="-O2"
+  else
+    FFLAGS=
+  fi
 fi
 ])# AC_PROG_F77