diff options
author | Francois-Xavier Coudert <coudert@clipper.ens.fr> | 2007-01-19 08:12:16 +0100 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2007-01-19 07:12:16 +0000 |
commit | 15e92535d343dd4ae92150270f6d393f74595d4d (patch) | |
tree | 00f928e37d415ce07b3907a3f41321acc0f74628 /libgfortran/acinclude.m4 | |
parent | fe30b1f37e48fcae87f5525f53d7509620c57329 (diff) | |
download | gcc-15e92535d343dd4ae92150270f6d393f74595d4d.tar.gz |
re PR libfortran/26893 ([4.1 only] kinds.h not generated, causing failure)
PR libfortran/26893
* acinclude.m4 (LIBGFOR_WORKING_GFORTRAN): New check.
* configure.ac: Add call to LIBGFOR_WORKING_GFORTRAN.
* configure: Regenerate.
* config.h.in: Regenerate because it was forgottent in the last
commit.
Co-Authored-By: Tobias Burnus <burnus@net-b.de>
From-SVN: r120949
Diffstat (limited to 'libgfortran/acinclude.m4')
-rw-r--r-- | libgfortran/acinclude.m4 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libgfortran/acinclude.m4 b/libgfortran/acinclude.m4 index 73d67e18784..3c849faca19 100644 --- a/libgfortran/acinclude.m4 +++ b/libgfortran/acinclude.m4 @@ -1,6 +1,22 @@ m4_include(../config/acx.m4) m4_include(../config/no-executables.m4) +dnl Check that we have a working GNU Fortran compiler +AC_DEFUN([LIBGFOR_WORKING_GFORTRAN], [ +AC_MSG_CHECKING([whether the GNU Fortran compiler is working]) +AC_LANG_PUSH([Fortran]) +AC_COMPILE_IFELSE([[ + program foo + real, parameter :: bar = sin (12.34 / 2.5) + end program foo]], + [AC_MSG_RESULT([yes])], + [AC_MSG_RESULT([no]) + AC_MSG_ERROR([GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log]) + ]) +AC_LANG_POP([Fortran]) +]) + + dnl Check: dnl * If we have gettimeofday; dnl * If we have struct timezone for use in calling it; |