diff options
author | Matthias Kilian <kili@outback.escape.de> | 2009-08-26 21:00:44 +0000 |
---|---|---|
committer | Matthias Kilian <kili@outback.escape.de> | 2009-08-26 21:00:44 +0000 |
commit | d84757e30d8578aaa788c26f0245c67ab482d0f9 (patch) | |
tree | 7ab2ad9f389c70af3626c8a66bdfbdaeeda7982f /aclocal.m4 | |
parent | 0fc3078a039e7fdd16baf3537a534462d3023db1 (diff) | |
download | haskell-d84757e30d8578aaa788c26f0245c67ab482d0f9.tar.gz |
Use -W, not -Werror, for gcc older than 3.4
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index d84cb99a3e..bf88bd77da 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -558,6 +558,7 @@ fi if test "$fp_have_gcc" = "NO" -a -d $srcdir/ghc; then AC_MSG_ERROR([gcc is required]) fi +GccLT34= AC_CACHE_CHECK([version of gcc], [fp_cv_gcc_version], [if test "$fp_have_gcc" = "YES"; then fp_cv_gcc_version="`$CC -v 2>&1 | grep 'version ' | sed -e 's/.*version [[^0-9]]*\([[0-9.]]*\).*/\1/g'`" @@ -566,12 +567,14 @@ AC_CACHE_CHECK([version of gcc], [fp_cv_gcc_version], # See #2770: gcc 2.95 doesn't work any more, apparently. There probably # isn't a very good reason for that, but for now just make configure # fail. + FP_COMPARE_VERSIONS([$fp_cv_gcc_version], [-lt], [3.4], GccLT34=YES) else fp_cv_gcc_version="not-installed" fi ]) AC_SUBST([HaveGcc], [$fp_have_gcc]) AC_SUBST([GccVersion], [$fp_cv_gcc_version]) +AC_SUBST(GccLT34) ])# FP_HAVE_GCC AC_DEFUN([FP_MINGW_GCC], |