+2000-07-04 Martin Wilck <martin@tropos.de>
+
+ * aclang.m4 (AC_PROG_F77): Add two compilers,
+ lf95 (Lahey/Fujitsu Fortran) and pgf77 (Portland Group Fortran)
+ (_AC_PROG_F77_G): Some Fortran compilers produce stdout/stderr
+ output even if no errors occur - check exit status rather than
+ output.
+
2000-07-05 Akim Demaille <akim@epita.fr>
* acgeneral.m4 (_AC_SHELL_TMPDIR): When using `mktemp -d', be sure
# ------------------------ #
-# 1d. Fortran 77 sources. #
+# 2d. Fortran 77 sources. #
# ------------------------ #
# AC_LANG_SOURCE(Fortran 77)(BODY)
[AC_BEFORE([$0], [AC_PROG_CPP])dnl
dnl Fortran 95 isn't strictly backwards-compatiable with Fortran 77, but
dnl `f95' is worth trying.
+dnl pgf77 is the Portland Group f77 compiler
+dnl lf95 is the Lahey-Fujitsu compiler
AC_LANG_PUSH(Fortran 77)
AC_CHECK_TOOLS(F77,
m4_default([$1],
- [g77 f77 xlf cf77 fl32 fort77 f90 xlf90 f95 fc]))
+ [g77 f77 xlf cf77 pgf77 fl32 fort77 f90 xlf90 f95 lf95 fc]))
_AC_LANG_COMPILER_WORKS
_AC_PROG_F77_GNU
# enable debugging.
define([_AC_PROG_F77_G],
[AC_CACHE_CHECK(whether $F77 accepts -g, ac_cv_prog_f77_g,
-[cat >conftest.f <<EOF
- program conftest
- end
-EOF
-if test -z "`$F77 -g -c conftest.f 2>&1`"; then
- ac_cv_prog_f77_g=yes
-else
- ac_cv_prog_f77_g=no
-fi
-rm -f conftest*
+[FFLAGS=-g
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
+[ac_cv_prog_f77_g=yes],
+[ac_cv_prog_f77_g=no])
])])# _AC_PROG_F77_G
# ------------------------ #
-# 1d. Fortran 77 sources. #
+# 2d. Fortran 77 sources. #
# ------------------------ #
# AC_LANG_SOURCE(Fortran 77)(BODY)
[AC_BEFORE([$0], [AC_PROG_CPP])dnl
dnl Fortran 95 isn't strictly backwards-compatiable with Fortran 77, but
dnl `f95' is worth trying.
+dnl pgf77 is the Portland Group f77 compiler
+dnl lf95 is the Lahey-Fujitsu compiler
AC_LANG_PUSH(Fortran 77)
AC_CHECK_TOOLS(F77,
m4_default([$1],
- [g77 f77 xlf cf77 fl32 fort77 f90 xlf90 f95 fc]))
+ [g77 f77 xlf cf77 pgf77 fl32 fort77 f90 xlf90 f95 lf95 fc]))
_AC_LANG_COMPILER_WORKS
_AC_PROG_F77_GNU
# enable debugging.
define([_AC_PROG_F77_G],
[AC_CACHE_CHECK(whether $F77 accepts -g, ac_cv_prog_f77_g,
-[cat >conftest.f <<EOF
- program conftest
- end
-EOF
-if test -z "`$F77 -g -c conftest.f 2>&1`"; then
- ac_cv_prog_f77_g=yes
-else
- ac_cv_prog_f77_g=no
-fi
-rm -f conftest*
+[FFLAGS=-g
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
+[ac_cv_prog_f77_g=yes],
+[ac_cv_prog_f77_g=no])
])])# _AC_PROG_F77_G
# ------------------------ #
-# 1d. Fortran 77 sources. #
+# 2d. Fortran 77 sources. #
# ------------------------ #
# AC_LANG_SOURCE(Fortran 77)(BODY)
[AC_BEFORE([$0], [AC_PROG_CPP])dnl
dnl Fortran 95 isn't strictly backwards-compatiable with Fortran 77, but
dnl `f95' is worth trying.
+dnl pgf77 is the Portland Group f77 compiler
+dnl lf95 is the Lahey-Fujitsu compiler
AC_LANG_PUSH(Fortran 77)
AC_CHECK_TOOLS(F77,
m4_default([$1],
- [g77 f77 xlf cf77 fl32 fort77 f90 xlf90 f95 fc]))
+ [g77 f77 xlf cf77 pgf77 fl32 fort77 f90 xlf90 f95 lf95 fc]))
_AC_LANG_COMPILER_WORKS
_AC_PROG_F77_GNU
# enable debugging.
define([_AC_PROG_F77_G],
[AC_CACHE_CHECK(whether $F77 accepts -g, ac_cv_prog_f77_g,
-[cat >conftest.f <<EOF
- program conftest
- end
-EOF
-if test -z "`$F77 -g -c conftest.f 2>&1`"; then
- ac_cv_prog_f77_g=yes
-else
- ac_cv_prog_f77_g=no
-fi
-rm -f conftest*
+[FFLAGS=-g
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
+[ac_cv_prog_f77_g=yes],
+[ac_cv_prog_f77_g=no])
])])# _AC_PROG_F77_G
# ------------------------ #
-# 1d. Fortran 77 sources. #
+# 2d. Fortran 77 sources. #
# ------------------------ #
# AC_LANG_SOURCE(Fortran 77)(BODY)
[AC_BEFORE([$0], [AC_PROG_CPP])dnl
dnl Fortran 95 isn't strictly backwards-compatiable with Fortran 77, but
dnl `f95' is worth trying.
+dnl pgf77 is the Portland Group f77 compiler
+dnl lf95 is the Lahey-Fujitsu compiler
AC_LANG_PUSH(Fortran 77)
AC_CHECK_TOOLS(F77,
m4_default([$1],
- [g77 f77 xlf cf77 fl32 fort77 f90 xlf90 f95 fc]))
+ [g77 f77 xlf cf77 pgf77 fl32 fort77 f90 xlf90 f95 lf95 fc]))
_AC_LANG_COMPILER_WORKS
_AC_PROG_F77_GNU
# enable debugging.
define([_AC_PROG_F77_G],
[AC_CACHE_CHECK(whether $F77 accepts -g, ac_cv_prog_f77_g,
-[cat >conftest.f <<EOF
- program conftest
- end
-EOF
-if test -z "`$F77 -g -c conftest.f 2>&1`"; then
- ac_cv_prog_f77_g=yes
-else
- ac_cv_prog_f77_g=no
-fi
-rm -f conftest*
+[FFLAGS=-g
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
+[ac_cv_prog_f77_g=yes],
+[ac_cv_prog_f77_g=no])
])])# _AC_PROG_F77_G