Index: fortran.m4 =================================================================== RCS file: /cvs/autoconf/lib/autoconf/fortran.m4,v retrieving revision 1.175 diff -u -r1.175 fortran.m4 --- fortran.m4 3 Oct 2003 23:37:56 -0000 1.175 +++ fortran.m4 4 Oct 2003 21:38:32 -0000 @@ -421,13 +421,13 @@ 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=