Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
5833d394
Commit
5833d394
authored
Apr 27, 2009
by
Simon Marlow
Browse files
require gcc 3.0+ (see #2770)
parent
6dd9e1fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
aclocal.m4
View file @
5833d394
...
@@ -561,8 +561,11 @@ fi
...
@@ -561,8 +561,11 @@ fi
AC_CACHE_CHECK([version of gcc], [fp_gcc_version],
AC_CACHE_CHECK([version of gcc], [fp_gcc_version],
[if test "$fp_have_gcc" = "YES"; then
[if test "$fp_have_gcc" = "YES"; then
fp_gcc_version="`$CC -v 2>&1 | grep 'version ' | sed -e 's/.*version [[^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'`"
FP_COMPARE_VERSIONS([$fp_gcc_version], [-lt], [2.0],
FP_COMPARE_VERSIONS([$fp_gcc_version], [-lt], [3.0],
[AC_MSG_ERROR([Need at least gcc version 2.0 (3.4+ recommended)])])
[AC_MSG_ERROR([Need at least gcc version 3.0 (3.4+ recommended)])])
# 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.
else
else
fp_gcc_version="not-installed"
fp_gcc_version="not-installed"
fi
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment