]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* aclang.m4 (AC_PROG_F77): Check for f95 and fc too.
authorAkim Demaille <akim@epita.fr>
Wed, 7 Jun 2000 13:25:54 +0000 (13:25 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 7 Jun 2000 13:25:54 +0000 (13:25 +0000)
ChangeLog
aclang.m4
lib/autoconf/c.m4
lib/autoconf/fortran.m4
lib/autoconf/lang.m4

index 8fd82eb8288afa970d0c2b9cae53dc172e5d5329..c4037d03e1ea42f9bb0e3963e98534f2a6b9ba09 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-06-07  Dave Love  <fx@gnu.org>
+
+       * aclang.m4 (AC_PROG_F77): Check for f95 and fc too.
+
 2000-06-07  Philippe De Muyter  <phdm@macqel.be>
 
        `foo=1 foo=2 cmd' has an undefined behavior.
index 8f3ae6fdc405aff1675f270c430b29bdc10f0ccf..f25511dfdbdd02c70d9d933b3cfcc141c4059141 100644 (file)
--- a/aclang.m4
+++ b/aclang.m4
@@ -815,11 +815,22 @@ rm -f conftest*
 # ---------------------------
 # COMPILERS is a space separated list of Fortran 77 compilers to search
 # for.
+#
+# Compilers are ordered by
+#  1. F77, F90, F95
+#  2. Good native compilers, bad native compilers, wrappers around f2c.
+#
+# `fort77' and `fc' are wrappers around `f2c', `fort77' being better.
+# It is believed that under HP-UX `fort77' is the name of the native
+# compiler.  NAG f95 is preferred over `fc', so put `fc' last.
 AC_DEFUN([AC_PROG_F77],
 [AC_BEFORE([$0], [AC_PROG_CPP])dnl
+dnl Fortran 95 isn't strictly backwards-compatiable with Fortran 77, but
+dnl `f95' is worth trying.
 AC_LANG_PUSH(Fortran 77)
 AC_CHECK_TOOLS(F77,
-               m4_default([$1], [g77 f77 xlf cf77 fl32 fort77 f90 xlf90]))
+               m4_default([$1],
+                          [g77 f77 xlf cf77 fl32 fort77 f90 xlf90 f95 fc]))
 
 _AC_LANG_COMPILER_WORKS
 _AC_PROG_F77_GNU
index 8f3ae6fdc405aff1675f270c430b29bdc10f0ccf..f25511dfdbdd02c70d9d933b3cfcc141c4059141 100644 (file)
@@ -815,11 +815,22 @@ rm -f conftest*
 # ---------------------------
 # COMPILERS is a space separated list of Fortran 77 compilers to search
 # for.
+#
+# Compilers are ordered by
+#  1. F77, F90, F95
+#  2. Good native compilers, bad native compilers, wrappers around f2c.
+#
+# `fort77' and `fc' are wrappers around `f2c', `fort77' being better.
+# It is believed that under HP-UX `fort77' is the name of the native
+# compiler.  NAG f95 is preferred over `fc', so put `fc' last.
 AC_DEFUN([AC_PROG_F77],
 [AC_BEFORE([$0], [AC_PROG_CPP])dnl
+dnl Fortran 95 isn't strictly backwards-compatiable with Fortran 77, but
+dnl `f95' is worth trying.
 AC_LANG_PUSH(Fortran 77)
 AC_CHECK_TOOLS(F77,
-               m4_default([$1], [g77 f77 xlf cf77 fl32 fort77 f90 xlf90]))
+               m4_default([$1],
+                          [g77 f77 xlf cf77 fl32 fort77 f90 xlf90 f95 fc]))
 
 _AC_LANG_COMPILER_WORKS
 _AC_PROG_F77_GNU
index 8f3ae6fdc405aff1675f270c430b29bdc10f0ccf..f25511dfdbdd02c70d9d933b3cfcc141c4059141 100644 (file)
@@ -815,11 +815,22 @@ rm -f conftest*
 # ---------------------------
 # COMPILERS is a space separated list of Fortran 77 compilers to search
 # for.
+#
+# Compilers are ordered by
+#  1. F77, F90, F95
+#  2. Good native compilers, bad native compilers, wrappers around f2c.
+#
+# `fort77' and `fc' are wrappers around `f2c', `fort77' being better.
+# It is believed that under HP-UX `fort77' is the name of the native
+# compiler.  NAG f95 is preferred over `fc', so put `fc' last.
 AC_DEFUN([AC_PROG_F77],
 [AC_BEFORE([$0], [AC_PROG_CPP])dnl
+dnl Fortran 95 isn't strictly backwards-compatiable with Fortran 77, but
+dnl `f95' is worth trying.
 AC_LANG_PUSH(Fortran 77)
 AC_CHECK_TOOLS(F77,
-               m4_default([$1], [g77 f77 xlf cf77 fl32 fort77 f90 xlf90]))
+               m4_default([$1],
+                          [g77 f77 xlf cf77 fl32 fort77 f90 xlf90 f95 fc]))
 
 _AC_LANG_COMPILER_WORKS
 _AC_PROG_F77_GNU
index 8f3ae6fdc405aff1675f270c430b29bdc10f0ccf..f25511dfdbdd02c70d9d933b3cfcc141c4059141 100644 (file)
@@ -815,11 +815,22 @@ rm -f conftest*
 # ---------------------------
 # COMPILERS is a space separated list of Fortran 77 compilers to search
 # for.
+#
+# Compilers are ordered by
+#  1. F77, F90, F95
+#  2. Good native compilers, bad native compilers, wrappers around f2c.
+#
+# `fort77' and `fc' are wrappers around `f2c', `fort77' being better.
+# It is believed that under HP-UX `fort77' is the name of the native
+# compiler.  NAG f95 is preferred over `fc', so put `fc' last.
 AC_DEFUN([AC_PROG_F77],
 [AC_BEFORE([$0], [AC_PROG_CPP])dnl
+dnl Fortran 95 isn't strictly backwards-compatiable with Fortran 77, but
+dnl `f95' is worth trying.
 AC_LANG_PUSH(Fortran 77)
 AC_CHECK_TOOLS(F77,
-               m4_default([$1], [g77 f77 xlf cf77 fl32 fort77 f90 xlf90]))
+               m4_default([$1],
+                          [g77 f77 xlf cf77 fl32 fort77 f90 xlf90 f95 fc]))
 
 _AC_LANG_COMPILER_WORKS
 _AC_PROG_F77_GNU