diff options
author | Akim Demaille <akim@epita.fr> | 2003-10-31 08:44:46 +0000 |
---|---|---|
committer | Akim Demaille <akim@epita.fr> | 2003-10-31 08:44:46 +0000 |
commit | f159338d6edf27d73dd0c4192ae3d5a731a42111 (patch) | |
tree | fd330d6f35fd0ce2bcc87caf86f6545f0a406465 /tests/fortran.at | |
parent | 61cf46782024568e573431a082f071174f648164 (diff) | |
download | autoconf-f159338d6edf27d73dd0c4192ae3d5a731a42111.tar.gz |
* tests/fortran.at (GNU Fortran 77): Don't run FC macros.
(GNU Fortran): New.
* doc/autoconf.texi (Language Choice): Document.
* lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
the current language is Fortran.
Diffstat (limited to 'tests/fortran.at')
-rw-r--r-- | tests/fortran.at | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/fortran.at b/tests/fortran.at index 362edb4a..8c5bbda3 100644 --- a/tests/fortran.at +++ b/tests/fortran.at @@ -49,6 +49,18 @@ else test "$G77" = yes && AC_MSG_ERROR([incorrectly recognized a GNU Fortran 77 compiler]) fi +]]) + + + +## ------------------ ## +## Fortran Compiler. ## +## ------------------ ## + + +AT_CHECK_MACRO([GNU Fortran], +[[AC_LANG(Fortran) +AC_LANG_COMPILER # No Fortran compiler is known not to support "*.f". AC_FC_SRCEXT([f]) @@ -56,10 +68,10 @@ AC_FC_SRCEXT([f]) # GNU Fortran is known to support freeform. AC_FC_FREEFORM([], [AC_MSG_WARN([Fortran does not accept free-form source])]) -if test "$G77" = yes; then +if test "$ac_compiler_gnu" = yes; then case $FCFLAGS in *-ffree-form*) ;; - *) AC_MSG_ERROR([failed to recognize G77's -ffree-form option.]);; + *) AC_MSG_ERROR([failed to recognize GNU Fortran's -ffree-form option.]);; esac fi ]]) |