fix GNU compiler handling in _AC_PROG_FC_G

This commit is contained in:
Steven G. Johnson 2003-10-05 18:34:14 +00:00
parent e11232b4eb
commit ab51c2b44a
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-10-04 Steven G. Johnson <stevenj@ab-initio.mit.edu>
* lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
cache variable instead of $G77 to decide whether to include -O2,
since $G77 is specific to Fortran 77.
2003-10-03 Steven G. Johnson <stevenj@alum.mit.edu>
* lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f

View File

@ -421,13 +421,13 @@ _AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
if test "$ac_test_FFLAGS" = set; then
_AC_LANG_PREFIX[]FLAGS=$ac_save_FFLAGS
elif test $ac_cv_prog_[]_AC_LANG_ABBREV[]_g = yes; then
if test "$G77" = yes; then
if test "x$ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu" = xyes; then
_AC_LANG_PREFIX[]FLAGS="-g -O2"
else
_AC_LANG_PREFIX[]FLAGS="-g"
fi
else
if test "$G77" = yes; then
if test "x$ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu" = xyes; then
_AC_LANG_PREFIX[]FLAGS="-O2"
else
_AC_LANG_PREFIX[]FLAGS=