diff --git a/ChangeLog b/ChangeLog index 62358ea..408a910 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-12-07 Giulio Paci + + * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Properly detect + the fort77 (f2c wrapper) compiler verbose linking output flag. + Fixes also AC_F77_LIBRARY_LDFLAGS and AC_F77_DUMMY_MAIN + + 2010-11-20 Paul Eggert autoconf: don't assume sys/stat.h and sys/types.h when testing C89 diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index 82a7a5d..d9979ea 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.m4 @@ -541,6 +541,10 @@ case $ac_[]_AC_LANG_ABBREV[]_v_output in 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*f2c*gcc*) + ac_[]_AC_LANG_ABBREV[]_v_output=`echo "$ac_[]_AC_LANG_ABBREV[]_v_output" | sed -n '/:[[[:space:]]]\+Running[[[:space:]]]\+"gcc"/{ /"-c"/d ; /[[.]]c"\?/d ; s/^.*"gcc"/"gcc"/ ; s/"//gp }'` ;; + # 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'` ;;