Is there some reason why the automake Fortran 9x support does not use the AC_FC_SRCEXT macro to determine whether extra flags are needed to compile files with .f90 or .f95 extensions? That is, if the user calls

AC_FC_SRCEXT(f90)
AC_FC_SRCEXT(f95)

then automake should use $FCFLAGS_f90 before any .f90 file on the compilation line and $FCFLAGS_f95 before any .f95 file.

(Note that this *cannot* be done in autoconf, because all autoconf could do would be to append something to $FCFLAGS, which will fail. Read the AC_FC_SRCEXT documentation.)

Cordially,
Steven G. Johnson

PS. This would also give you a general way to decide whether to use the $(F77) or $(FC) for a given source file - if the user calls AC_FC_SRCEXT(foo), then $(FC) should be used for .foo files.



Reply via email to