Automake includes support for Fortran 9x.
Any package including Fortran 9x code must define the output variable
FC in configure.ac; the simplest way to do this is to use
AC_PROG_FC macro (see Particular Program Checks).
A few additional variables are defined when a Fortran 9x source file is seen: