-# -------------------------------------------------------------------------
-dnl
-dnl * _GENERAL_ CONFIGURATION CHECKS
-#
-dnl ** are we at Glasgow?
-#
-# This stuff is in danger of going away..
-#
-if test -d /local/fp -a -d /users/fp/simonpj; then
- echo "Brilliant! You must be a Glaswegian."
- AT_GLASGOW=1
- if test "x$prefix" = xNONE; then
- prefix=/local/fp
- echo "Assuming installation prefix of $prefix"
- fi
- if test "x$exec_prefix" = xNONE; then
- # Sigh: the defn of exec_prefix does not include the bin* bit...
- # WDP 94/07
- exec_prefix=/local/fp
- echo "Assuming binary installation prefix of $exec_prefix"
- fi
-else
- AT_GLASGOW=0
-fi
-AC_SUBST(AT_GLASGOW)
-test -n "$verbose" && echo " setting AT_GLASGOW to $AT_GLASGOW"
-#
-#
-#
+AC_SUBST(exeext)
+
+dnl --------------------------------------------------------------
+dnl * Project specific configuration options
+dnl --------------------------------------------------------------
+dnl What follows is a bunch of options that can either be configured
+dnl through command line options to the configure script or by
+dnl supplying defns in the build tree's mk/build.mk. Having the option to
+dnl use either is considered a Feature.
+
+dnl ** What command to use to compile compiler sources ?
+dnl --------------------------------------------------------------
+AC_ARG_WITH(ghc-hc,
+[ --with-ghc-hc=<haskell compiler>
+ Use a command different from 'ghc-2.10' to compile up the GHC compiler sources.
+ (no claims currently made that this will work with a compiler other than a
+ recent version of GHC, but you could always try...)
+],
+[WithGhcHc="$withval"],
+[WithGhcHc="ghc-2.10"]
+)
+AC_SUBST(WithGhcHc)
+
+dnl ** Which gcc to use?
+dnl --------------------------------------------------------------
+AC_ARG_WITH(gcc,
+[ --with-gcc=<gcc command>
+ Use a different command instead of 'gcc' for the GNU C compiler.
+],
+[WhatGccIsCalled="$withval"],
+[WhatGccIsCalled="gcc"]
+)
+AC_SUBST(WhatGccIsCalled)
+
+dnl ** Booting from .hc files?
+dnl --------------------------------------------------------------
+AC_ARG_ENABLE(hc-boot,
+[ --enable-hc-boot
+ Boot the Glasgow Haskell Compiler from intermediate .hc files.
+ (This option is mostly of interest to porters.)
+],
+[BootingFromHc=YES],
+[BootingFromHc=NO]
+)
+AC_SUBST(BootingFromHc)
+
+
+dnl --------------------------------------------------------------
+dnl End of configure script option section
+dnl --------------------------------------------------------------
+
+
+dnl --------------------------------------------------------------
+dnl * General configuration checks
+dnl --------------------------------------------------------------
+