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...)
+AC_ARG_WITH(hc,
+[ --with-hc=<haskell compiler>
+ Use a command different from 'ghc' to compile up Haskell code.
+ (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"]
+[WithHc="$withval"],
+[WithHc="ghc"]
)
-AC_SUBST(WithGhcHc)
+AC_SUBST(WithHc)
dnl ** Which gcc to use?
dnl --------------------------------------------------------------
# HC_ROJEMO_NHC
# HC_UNSPECIFIED
-WithGhcHc = @WithGhcHc@
+WithGhcHc = @WithHc@
# Variable which is set to the version number of the $(WithGhcHc) we're using.
# Not currently used, but might come in handy sometime soon.
# Extra option flags to pass to the compiler that compiles the compiler
# (Ones that are essential are wired into ghc/compiler/Makefile)
# Typical ones:
-# -H25m allocate a bigger heap (default is 6m)
+# -H25m allocate a bigger heap (might speed up compilation)
#
# -O compile an optimised compiler
-# NB! If you add -O you'll almost certainly need to increase
-# the amount of heap space too (to 15m or more)
#
# -DDEBUG include consistency/assertion checks in the compiled compiler
#
#################################################################################
# The compiler you'd like to use to compile Happy
-WithHappyHc = $(WithGhcHc)
+WithHappyHc = @WithHc@
# HappyHcOpts gives the flags to pass to the Haskell compiler used
# to compile the Happy sources with.
#-----------------------------------------------------------------------------
# Haskell compiler and mkdependHS
+# ToDo: $(HC) should be a local installation of some Haskell compiler
HC = $(FPTOOLS_TOP)/ghc/driver/ghc
MKDEPENDHS = $(HC)