-# -------------------------------------------------------------------------
-dnl
-dnl * `NoFib' CONFIGURATION STUFF
-
-if test "xxx$DoingNoFib" = 'xxxnofib' ; then
-# a very big "if"!
-
-dnl ** which Haskell compiler to test with NoFib?
-WithNoFibHc='haskell-compiler-unspecified'
-WithNoFibHcType='HC_UNSPECIFIED'
-
-AC_ARG_WITH(hc-for-nofib,
- [
-*******************************************************************
-** NoFib HASKELL BENCHMARK SUITE OPTIONS:
-
-The Haskell compiler to compile the NoFib programs; this option, if
-used, overrides --with-hc=<...>:
-
- --with-hc-for-nofib=<Haskell compiler>
- ghc* => Glasgow Haskell invoked by the name given
- hbc* => Chalmers HBC, invoked by the name given
- nhc* => Niklas Rojemo's "nhc", invoked by the name given
- in-place => Use ghc/driver/ghc; i.e. you've built GHC
- and you want to use it un-installed ("in-place").
- ],
- [case "$withval" in
- ghc* | glhc* )
- WithNoFibHc=$withval
- ;;
- hbc* ) WithNoFibHc=$withval
- ;;
- nhc* ) WithNoFibHc=$withval
- ;;
- in-place )
- WithNoFibHc='IN-PLACE'
- ;;
- *) echo "I don't understand this option: --with-hc-for-nofib=$withval"
- exit 1
- ;;
- esac])
-
-# make sure that what they said makes sense.... set WithHappyHcType
-case $WithNoFibHc in
- haskell-compiler-unspecified ) # maybe they said something earlier...
- if test $WithHc = 'haskell-compiler-unspecified' ; then
- echo "Neither --with-hc nor --with-hc-for-nofib was properly set"
- exit 1
- fi
- ;;
- ghc* | glhc* )
- WithNoFibHcType='HC_GLASGOW_GHC'
- AC_CHECK_PROG(have_ghc,$WithNoFibHc,$ac_dir/$ac_word)
- if test -z "$have_ghc"; then
- echo "Can't find Glasgow Haskell to compile with: $WithNoFibHc"
- exit 1
- fi
- ;;
- hbc* ) # Look for the dastardly competition
- WithNoFibHcType='HC_CHALMERS_HBC'
- AC_CHECK_PROG(have_hbc,$WithNoFibHc,YES,NO)
- if test $have_hbc = 'NO' ; then
- echo "Can't find Chalmers HBC to compile with: $WithNoFibHc"
- exit 1
- fi
- ;;
- nhc* ) # Look for Niklas Rojemo's "nhc"
- WithNoFibHcType='HC_ROJEMO_NHC'
- AC_CHECK_PROG(have_nhc,$WithNoFibHc,YES,NO)
- if test $have_nhc = 'NO' ; then
- echo "Can't find Niklas Rojemo's NHC to compile with: $WithNoFibHc"
- exit 1
- fi
- ;;
- IN-PLACE) WithNoFibHcType='HC_GLASGOW_GHC'
- ;;
-esac
-AC_SUBST(WithNoFibHc)
-AC_SUBST(WithNoFibHcType)
-
-dnl ** what mkworld \`setup' should be used?
-AC_ARG_WITH(setup,
- [
---with-setup=<setup> : What mkworld \`setup' should be used?
- Choices: ghc, hbc, nhc
-],
- [case "$withval" in
- ghc ) MkWorldSetup='ghc'
- ;;
- hbc ) MkWorldSetup='hbc'
- ;;
- nhc ) MkWorldSetup='nhc'
- ;;
- *) echo "I don't understand this option: --with-setup=$withval"
- exit 1
- ;;
- esac])
-
-if test $MkWorldSetup = 'std' ; then
- echo 'You must do --with-setup=... (one of: ghc, hbc, or nhc) for NoFib'
- exit 1
-fi
-
-# ---------------------------------------
-# What sets of tests should be run.
-#
-IncludeRealNoFibTests='YES' # defaults
-IncludeSpectralNoFibTests='YES'
-IncludeImaginaryNoFibTests='YES'
-IncludePENDINGNoFibTests='NO'
-IncludeUNUSEDNoFibTests='NO'
-IncludeGHC_ONLYNoFibTests='NO'
-IncludePRIVATENoFibTests='NO'
-IncludeParallelNoFibTests='NO'
-
-dnl ** should *all* NoFib tests be run?
-# special catch-all variant
-AC_ARG_ENABLE(all-tests,
- [Possibly turn on *all* of the possible tests (a sane choice
-only if using GHC):
-
---enable-all-tests do *all* tests],
- [case "$enableval" in
- yes) IncludePENDINGNoFibTests='YES'
- IncludeUNUSEDNoFibTests='YES'
- IncludeGHC_ONLYNoFibTests='YES'
- IncludePRIVATENoFibTests='YES'
- IncludeParallelNoFibTests='YES'
- ;;
- no) IncludePENDINGNoFibTests='NO'
- IncludeUNUSEDNoFibTests='NO'
- IncludeGHC_ONLYNoFibTests='NO'
- IncludePRIVATENoFibTests='NO'
- IncludeParallelNoFibTests='NO'
-
- IncludeRealNoFibTests='NO'
- IncludeSpectralNoFibTests='NO'
- IncludeImaginaryNoFibTests='NO'
- ;;
- *) echo "I don't understand this option: --enable-all-tests=$enableval"
- exit 1
- ;;
- esac])
-
-dnl ** turn on/off individual categories of tests...
-# individual categories
-AC_ARG_ENABLE(imaginary-tests,
- [
-Enable/disable individual categories of tests:
-
---disable-imaginary-tests do *not* include imaginary tests],
- [case "$enableval" in
- yes) IncludeImaginaryNoFibTests='YES'
- ;;
- no) IncludeImaginaryNoFibTests='NO'
- ;;
- *) echo "I don't understand this option: --enable-imaginary-tests=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(spectral-tests,
- [--disable-spectral-tests do *not* include spectral tests],
- [case "$enableval" in
- yes) IncludeSpectralNoFibTests='YES'
- ;;
- no) IncludeSpectralNoFibTests='NO'
- ;;
- *) echo "I don't understand this option: --enable-spectral-tests=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(real-tests,
- [--disable-real-tests do *not* include real tests],
- [case "$enableval" in
- yes) IncludeRealNoFibTests='YES'
- ;;
- no) IncludeRealNoFibTests='NO'
- ;;
- *) echo "I don't understand this option: --enable-real-tests=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(PENDING-tests,
- [--enable-PENDING-tests include PENDING tests],
- [case "$enableval" in
- yes) IncludePENDINGNoFibTests='YES'
- ;;
- no) IncludePENDINGNoFibTests='NO'
- ;;
- *) echo "I don't understand this option: --enable-PENDING-tests=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(UNUSED-tests,
- [--enable-UNUSED-tests include UNUSED tests],
- [case "$enableval" in
- yes) IncludeUNUSEDNoFibTests='YES'
- ;;
- no) IncludeUNUSEDNoFibTests='NO'
- ;;
- *) echo "I don't understand this option: --enable-UNUSED-tests=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(GHC-ONLY-tests,
- [--enable-GHC-ONLY-tests include GHC_ONLY tests],
- [case "$enableval" in
- yes) IncludeGHC_ONLYNoFibTests='YES'
- ;;
- no) IncludeGHC_ONLYNoFibTests='NO'
- ;;
- *) echo "I don't understand this option: --enable-GHC-ONLY-tests=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(PRIVATE-tests,
- [--enable-PRIVATE-tests include PRIVATE tests],
- [case "$enableval" in
- yes) IncludePRIVATENoFibTests='YES'
- ;;
- no) IncludePRIVATENoFibTests='NO'
- ;;
- *) echo "I don't understand this option: --enable-PRIVATE-tests=$enableval"
- exit 1
- ;;
- esac])
-
-AC_ARG_ENABLE(parallel-tests,
- [--enable-parallel-tests include parallel tests
-],
- [case "$enableval" in
- yes) IncludeParallelNoFibTests='YES'
- ;;
- no) IncludeParallelNoFibTests='NO'
- ;;
- *) echo "I don't understand this option: --enable-parallel-tests=$enableval"
- exit 1
- ;;
- esac])
-
-AC_SUBST(IncludeRealNoFibTests)
-AC_SUBST(IncludeSpectralNoFibTests)
-AC_SUBST(IncludeImaginaryNoFibTests)
-AC_SUBST(IncludePENDINGNoFibTests)
-AC_SUBST(IncludeUNUSEDNoFibTests)
-AC_SUBST(IncludeGHC_ONLYNoFibTests)
-AC_SUBST(IncludeSpecialiseNoFibTests)
-AC_SUBST(IncludePRIVATENoFibTests)
-AC_SUBST(IncludeParallelNoFibTests)