2 dnl Binary distribution configure script
7 AC_INIT([The Glorious Glasgow Haskell Compilation System], [@ProjectVersion@], [glasgow-haskell-bugs@haskell.org], [ghc])
11 dnl--------------------------------------------------------------------
12 dnl * Deal with arguments telling us gmp is somewhere odd
13 dnl--------------------------------------------------------------------
19 if test "x$gmp_libraries" != "xNONE"; then
20 LDFLAGS="-L$gmp_libraries $LDFLAGS"
21 GMP_LIB_DIRS=$gmp_libraries
23 if test "x$gmp_includes" != "xNONE"; then
24 CPPFLAGS="-I$gmp_includes $CPPFLAGS"
25 GMP_INCLUDE_DIRS=$gmp_includes
27 AC_SUBST(GMP_INCLUDE_DIRS)
28 AC_SUBST(GMP_LIB_DIRS)
31 dnl ** Check Perl installation **
33 AC_PATH_PROG(PerlCmd,perl)
34 if test -z "$PerlCmd"; then
35 echo "You must install perl before you can continue"
36 echo "Perhaps it is already installed, but not in your PATH?"
42 dnl ** figure out how to do a BSD-ish install **
47 dnl ** how to do symlinks **
52 dnl ** how to invoke `ar' and `ranlib'
54 FP_PROG_AR_NEEDS_RANLIB
57 dnl ** Find the path to sed **
59 AC_PATH_PROG(SedCmd,sed)
62 dnl ** How to invoke cpp directly **
68 dnl ** Check gcc version and flags we need to pass it **
73 AC_CONFIG_FILES(extra-gcc-opts mk/config.mk mk/install.mk)
76 echo "****************************************************"
77 echo "Configuration done, ready to 'make install'"
78 echo "(see README and INSTALL files for more info.)"
79 echo "****************************************************"