diff options
author | Ian Lynagh <igloo@earth.li> | 2010-02-20 21:11:57 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2010-02-20 21:11:57 +0000 |
commit | b112884301b68d043b96afd3c66babfe23b706ec (patch) | |
tree | 7a0ce607037fdf9df05c1b143c14026c91a220a8 /distrib/configure.ac.in | |
parent | d83c0339a26179567eed0a8d65d944008e3637b2 (diff) | |
download | haskell-b112884301b68d043b96afd3c66babfe23b706ec.tar.gz |
Check for suitable versions of make in bindists; fixes trac #3860
We already had a check in configure of the actual build. This patch
adds it to the configure of the bindists too.
Diffstat (limited to 'distrib/configure.ac.in')
-rw-r--r-- | distrib/configure.ac.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/distrib/configure.ac.in b/distrib/configure.ac.in index ec2ea33f7d..44a5517dfe 100644 --- a/distrib/configure.ac.in +++ b/distrib/configure.ac.in @@ -81,6 +81,25 @@ AC_SUBST(CONF_LD_OPTS) AC_CONFIG_FILES(extra-gcc-opts mk/config.mk mk/install.mk) AC_OUTPUT +# We get caught by +# http://savannah.gnu.org/bugs/index.php?1516 +# $(eval ...) inside conditionals causes errors +# with make 3.80, so warn the user if it looks like they're about to +# try to use it. +# We would use "grep -q" here, but Solaris's grep doesn't support it. +checkMake380() { + if $1 --version 2>&1 | head -1 | grep 'GNU Make 3\.80' > /dev/null + then + echo + echo "WARNING: It looks like \"$1\" is GNU make 3.80." + echo "This version cannot be used to build GHC." + echo "Please use GNU make >= 3.81." + fi +} + +checkMake380 make +checkMake380 gmake + echo "****************************************************" echo "Configuration done, ready to 'make install'" echo "(see README and INSTALL files for more info.)" |