From: panne Date: Sat, 9 Jul 2005 14:33:01 +0000 (+0000) Subject: [project @ 2005-07-09 14:33:01 by panne] X-Git-Tag: Initial_conversion_from_CVS_complete~391 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=cf5526bc4dfdbbff52ca8d5d9855447892f01348 [project @ 2005-07-09 14:33:01 by panne] Solaris' sed obviously doesn't like nested \(\), so do the gcc version detection magic in two steps instead of one. --- diff --git a/aclocal.m4 b/aclocal.m4 index 0e9f457..e2ad673 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -567,7 +567,7 @@ if test "$fp_have_gcc" = "NO" -a -d $srcdir/ghc; then fi AC_CACHE_CHECK([version of gcc], [fp_gcc_version], [if test "$fp_have_gcc" = "YES"; then - fp_gcc_version="`$CC -v 2>&1 | grep 'version ' | sed -e 's/.*version [[^0-9]]*\([[0-9]][[0-9]]*\(\.[[0-9]][[0-9]]*\)*\).*/\1/g' `" + fp_gcc_version="`$CC -v 2>&1 | grep 'version ' | sed -e 's/.*version [[^0-9]]*\([[0-9.]]*\).*/\1/g' | sed -e 's/\([[0-9]][[0-9]]*\.[[0-9]][[0-9]]*\).*/\1/g'`" FP_COMPARE_VERSIONS([$fp_gcc_version], [-lt], [2.0], [AC_MSG_ERROR([Need at least gcc version 2.0 (3.4+ recommended)])]) else