*** fortran.m4 2010-12-01 14:51:32.000000000 +0100 --- fortran.m4 2010-12-01 14:40:29.000000000 +0100 *************** case $ac_[]_AC_LANG_ABBREV[]_v_output in *** 541,546 **** --- 541,550 ---- s/-ignore *'[[^']]*'/ /g; s/-ignore *\"[[^\"]]*\"/ /g s/-def *'[[^']]*'/ /g; s/-def *\"[[^\"]]*\"/ /g"` ;; + # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. + *fort77*gcc*) + ac_[]_AC_LANG_ABBREV[]_v_output=`echo "$ac_[]_AC_LANG_ABBREV[]_v_output" | grep '"gcc"' | sed '/"-c"/d; s/^.*"gcc"/"gcc"/; s/"//g' ;; + # If we are using Cray Fortran then delete quotes. *cft90*) ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | sed 's/"//g'` ;;