- exit(1);
-}], LeadingUnderscore='YES', LeadingUnderscore='NO', LeadingUnderscore='YES')
-test -n "$verbose" && echo " setting LeadingUnderscore to $LeadingUnderscore"
-
-dnl -------------------------------------------------------
-dnl ** which builds to build?
-dnl ** (applies to anything w/ libraries (ghc, hslibs, ???)
-dnl -------------------------------------------------------
-# builds: normal = sequential _ap_o ; _p = profiling (sequential);
-# _t = ticky; _u = unregisterized
-Build_normal='YES'
-Build_p='YES'
-Build_t='NO'
-Build_u='NO'
-# _mc = concurrent; _mr = profiled concurrent; _mt = ticky concurrent
-# _mp = parallel; _mg = gransim
-Build_mc='NO'
-Build_mr='NO'
-Build_mt='NO'
-Build_mp='NO'
-Build_mg='NO'
-# GC builds: _2s, _1s, _du (, _gn)
-Build_2s='NO'
-Build_1s='NO'
-Build_du='NO'
-# user builds: a...o
-Build_a='NO'
-Build_b='NO'
-Build_c='NO'
-Build_d='NO'
-Build_e='NO'
-Build_f='NO'
-Build_g='NO'
-Build_h='NO'
-Build_i='NO'
-Build_j='NO'
-Build_k='NO'
-Build_l='NO'
-Build_m='NO'
-Build_n='NO'
-Build_o='NO'
-Build_A='NO'
-Build_B='NO'
-# More could be added here...
-
-AC_ARG_ENABLE(normal-build,
- [
-*******************************************************************
-** \`GHC' (GLASGOW HASKELL COMPILER) OPTIONS:
-
-Choose all the \`builds' of GHC that you want:
-
---disable-normal-build do *not* build GHC for normal sequential code],
- [case "$enableval" in
- yes) Build_normal='YES'
- ;;
- no) Build_normal='NO'
- ;;
- *) echo "I don't understand this option: --enable-normal-build=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(profiling,
- [--disable-profiling do *not* build profiling features],
- [case "$enableval" in
- yes) Build_p='YES'
- ;;
- no) Build_p='NO'
- ;;
- *) echo "I don't understand this option: --enable-profiling=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(ticky,
- [--enable-ticky build for \`ticky-ticky' profiling (for implementors)],
- [case "$enableval" in
- yes) Build_t='YES'
- ;;
- no) Build_t='NO'
- ;;
- *) echo "I don't understand this option: --enable-ticky=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(concurrent,
- [--enable-concurrent turn on \`concurrent Haskell' features],
- [case "$enableval" in
- yes) Build_mc='YES'
- ;;
- no) Build_mc='NO'
- ;;
- *) echo "I don't understand this option: --enable-concurrent=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(profiled-concurrent,
- [--enable-profiled-concurrent turn on profiling for \`concurrent Haskell'],
- [case "$enableval" in
- yes) Build_mr='YES'
- ;;
- no) Build_mr='NO'
- ;;
- *) echo "I don't understand this option: --enable-profiled-concurrent=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(ticky-concurrent,
- [--enable-ticky-concurrent turn on \`ticky-ticky' profiling for \`concurrent Haskell'],
- [case "$enableval" in
- yes) Build_mt='YES'
- ;;
- no) Build_mt='NO'
- ;;
- *) echo "I don't understand this option: --enable-ticky-concurrent=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(parallel,
- [--enable-parallel turn on \`parallel Haskell' features],
- [case "$enableval" in
- yes) Build_mp='YES';
- ;;
- no) Build_mp='NO'
- ;;
- *) echo "I don't understand this option: --enable-parallel=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(gransim,
- [--enable-gransim turn on GranSim parallel simulator],
- [case "$enableval" in
- yes) Build_mg='YES';
- ;;
- no) Build_mg='NO'
- ;;
- *) echo "I don't understand this option: --enable-gransim=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(gc-2s,
- [--enable-gc-2s a build with the 2-space copying garbage collector],
- [case "$enableval" in
- yes) Build_2s='YES'
- ;;
- no) Build_2s='NO'
- ;;
- *) echo "I don't understand this option: --enable-gc-2s=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(gc-1s,
- [--enable-gc-1s a build with the 1-space compacting garbage collector],
- [case "$enableval" in
- yes) Build_1s='YES'
- ;;
- no) Build_1s='NO'
- ;;
- *) echo "I don't understand this option: --enable-gc-1s=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(gc-du,
- [--enable-gc-du a build with \`dual-mode' (1s/2s) garbage collector],
- [case "$enableval" in
- yes) Build_du='YES'
- ;;
- no) Build_du='NO'
- ;;
- *) echo "I don't understand this option: --enable-gc-du=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(user-way-a,
- [--enable-user-way-a build for \`user way a' (mostly for implementors)],
- [case "$enableval" in
- yes) Build_a='YES'
- ;;
- no) Build_a='NO'
- ;;
- *) echo "I don't understand this option: --enable-user-way-a=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(user-way-b,
- [--enable-user-way-b build for \`user way b' (mostly for implementors)],
- [case "$enableval" in
- yes) Build_b='YES'
- ;;
- no) Build_b='NO'
- ;;
- *) echo "I don't understand this option: --enable-user-way-b=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(user-way-c,
- [--enable-user-way-c build for \`user way c' (mostly for implementors)],
- [case "$enableval" in
- yes) Build_c='YES'
- ;;
- no) Build_c='NO'
- ;;
- *) echo "I don't understand this option: --enable-user-way-c=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(user-way-d,
- [--enable-user-way-d build for \`user way d' (mostly for implementors)],
- [case "$enableval" in
- yes) Build_d='YES'
- ;;
- no) Build_d='NO'
- ;;
- *) echo "I don't understand this option: --enable-user-way-d=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(user-way-e,
- [--enable-user-way-e build for \`user way e' (mostly for implementors)],
- [case "$enableval" in
- yes) Build_e='YES'
- ;;
- no) Build_e='NO'
- ;;
- *) echo "I don't understand this option: --enable-user-way-e=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(user-way-f,
- [--enable-user-way-f build for \`user way f' (mostly for implementors)],
- [case "$enableval" in
- yes) Build_f='YES'
- ;;
- no) Build_f='NO'
- ;;
- *) echo "I don't understand this option: --enable-user-way-f=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(user-way-g,
- [--enable-user-way-g build for \`user way g' (mostly for implementors)],
- [case "$enableval" in
- yes) Build_g='YES'
- ;;
- no) Build_g='NO'
- ;;
- *) echo "I don't understand this option: --enable-user-way-g=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(user-way-h,
- [--enable-user-way-h build for \`user way h' (mostly for implementors)],
- [case "$enableval" in
- yes) Build_h='YES'
- ;;
- no) Build_h='NO'
- ;;
- *) echo "I don't understand this option: --enable-user-way-h=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(user-way-i,
- [--enable-user-way-i build for \`user way i' (mostly for implementors)],
- [case "$enableval" in
- yes) Build_i='YES'
- ;;
- no) Build_i='NO'
- ;;
- *) echo "I don't understand this option: --enable-user-way-i=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(user-way-j,
- [--enable-user-way-j build for \`user way j' (mostly for implementors)],
- [case "$enableval" in
- yes) Build_j='YES'
- ;;
- no) Build_j='NO'
- ;;
- *) echo "I don't understand this option: --enable-user-way-j=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(user-way-k,
- [--enable-user-way-k build for \`user way k' (mostly for implementors)],
- [case "$enableval" in
- yes) Build_k='YES'
- ;;
- no) Build_k='NO'
- ;;
- *) echo "I don't understand this option: --enable-user-way-k=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(user-way-l,
- [--enable-user-way-l build for \`user way l' (mostly for implementors)],
- [case "$enableval" in
- yes) Build_l='YES'
- ;;
- no) Build_l='NO'
- ;;
- *) echo "I don't understand this option: --enable-user-way-l=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(user-way-m,
- [--enable-user-way-m build for \`user way m' (mostly for implementors)],
- [case "$enableval" in
- yes) Build_m='YES'
- ;;
- no) Build_m='NO'
- ;;
- *) echo "I don't understand this option: --enable-user-way-m=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(user-way-n,
- [--enable-user-way-n build for \`user way n' (mostly for implementors)],
- [case "$enableval" in
- yes) Build_n='YES'
- ;;
- no) Build_n='NO'
- ;;
- *) echo "I don't understand this option: --enable-user-way-n=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(user-way-o,
- [--enable-user-way-o build for \`user way o' (mostly for implementors)],
- [case "$enableval" in
- yes) Build_o='YES'
- ;;
- no) Build_o='NO'
- ;;
- *) echo "I don't understand this option: --enable-user-way-o=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(user-way-A,
- [--enable-user-way-A build for \`user way A' (mostly for implementors)],
- [case "$enableval" in
- yes) Build_A='YES'
- ;;
- no) Build_A='NO'
- ;;
- *) echo "I don't understand this option: --enable-user-way-A=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(user-way-B,
- [--enable-user-way-B build for \`user way B' (mostly for implementors)],
- [case "$enableval" in
- yes) Build_B='YES'
- ;;
- no) Build_B='NO'
- ;;
- *) echo "I don't understand this option: --enable-user-way-B=$enableval"
- exit 1
- ;;
- esac])
-
-dnl We do not use AC_SUBST to communicate the Build_* info,
-dnl as some seds (notably OSF) only allow 99 commands (!!!).
-dnl We will do the equivalent by a HACK further down.