HostVendor_CPP='sgi'
HostOS_CPP='irix'
;;
-rs6000-ibm-aix*)
- HostPlatform_CPP='rs6000_ibm_aix'
- HostArch_CPP='rs6000'
+powerpc-ibm-aix*)
+ HostPlatform=powerpc-ibm-aix
+ TargetPlatform=powerpc-ibm-aix #hack
+ BuildPlatform=powerpc-ibm-aix #hack
+ HostPlatform_CPP='powerpc_ibm_aix'
+ HostArch_CPP='powerpc'
HostVendor_CPP='ibm'
HostOS_CPP='aix'
;;
"
fi
else
- echo "I'm not sure if your version of perl will work,"
- echo "but it's worth a shot, eh?"
+ if egrep "version 5" conftest.out >/dev/null 2>&1; then
+ :
+ else
+ echo "I'm not sure if your version of perl will work,"
+ echo "but it's worth a shot, eh?"
+ fi
fi
rm -fr conftest*
fi
GhcBuild_m='NO'
GhcBuild_n='NO'
GhcBuild_o='NO'
+GhcBuild_A='NO'
+GhcBuild_B='NO'
+# More could be added here...
AC_ARG_ENABLE(normal-build,
[
dnl ;;
dnl esac])
dnl
+dnl AC_ARG_ENABLE(user-way-A,
+dnl [--enable-user-way-A build for \`user way A' (mostly for implementors)],
+dnl [case "$enableval" in
+dnl yes) GhcBuild_A='YES'
+dnl ;;
+dnl no) GhcBuild_A='NO'
+dnl ;;
+dnl *) echo "I don't understand this option: --enable-user-way-A=$enableval"
+dnl exit 1
+dnl ;;
+dnl esac])
+dnl
+dnl AC_ARG_ENABLE(user-way-B,
+dnl [--enable-user-way-B build for \`user way B' (mostly for implementors)],
+dnl [case "$enableval" in
+dnl yes) GhcBuild_B='YES'
+dnl ;;
+dnl no) GhcBuild_B='NO'
+dnl ;;
+dnl *) echo "I don't understand this option: --enable-user-way-B=$enableval"
+dnl exit 1
+dnl ;;
+dnl esac])
+dnl
AC_SUBST(GhcBuild_normal)
AC_SUBST(GhcBuild_p)
AC_SUBST(GhcBuild_t)
dnl AC_SUBST(GhcBuild_m)
dnl AC_SUBST(GhcBuild_n)
dnl AC_SUBST(GhcBuild_o)
+dnl AC_SUBST(GhcBuild_A)
+dnl AC_SUBST(GhcBuild_B)
#---------------------------------------------------------------
#
;;
ghc* | glhc* )
WithGhcHcType='HC_GLASGOW_GHC'
- AC_CHECK_PROG(have_ghc,$WithGhcHc,$ac_dir/$ac_word)
- if test -z "$have_ghc"; then
- echo "Can't find Glasgow Haskell to compile with: $WithGhcHc"
+ AC_CHECK_PROG(have_ghc_ghc,$WithGhcHc,$ac_dir/$ac_word)
+ if test -z "$have_ghc_ghc"; then
+ echo "Can't find Glasgow Haskell to compile GHC with: $WithGhcHc"
exit 1
else
touch conftest.o
if test $GhcWithRegisterised = 'YES'; then
case $HostPlatform in
- alpha-* | hppa1.1-* | i386-* | m68k-* | mips-* | sparc-* )
+ alpha-* | hppa1.1-* | i386-* | m68k-* | mips-* | powerpc-* | sparc-* )
;;
*)
echo "Don't know non-portable C tricks for this platform: $HostPlatform"
esac])
if test $GhcWithNativeCodeGen = 'YES'; then
case $TargetPlatform in
- sparc-sun-sunos4 | sparc-sun-solaris2 | alpha-dec-osf1 )
+ i386-* | alpha-* | sparc-* )
;;
*)
echo "Don't have a native-code generator for this platform: $TargetPlatform"
;;
ghc* | glhc* )
WithHappyHcType='HC_GLASGOW_GHC'
- AC_CHECK_PROG(have_ghc,$WithHappyHc,$ac_dir/$ac_word)
- if test -z "$have_ghc"; then
- echo "Can't find Glasgow Haskell to compile with: $WithHappyHc"
+ AC_CHECK_PROG(have_ghc_happy,$WithHappyHc,$ac_dir/$ac_word)
+ if test -z "$have_ghc_happy"; then
+ echo "Can't find Glasgow Haskell to compile Happy with: $WithHappyHc"
exit 1
fi
;;
;;
ghc* | glhc* )
WithHaggisHcType='HC_GLASGOW_GHC'
- AC_CHECK_PROG(have_ghc,$WithHaggisHc,$ac_dir/$ac_word)
- if test -z "$have_ghc"; then
- echo "Can't find Glasgow Haskell to compile with: $WithHaggisHc"
+ AC_CHECK_PROG(have_ghc_haggis,$WithHaggisHc,$ac_dir/$ac_word)
+ if test -z "$have_ghc_haggis"; then
+ echo "Can't find Glasgow Haskell to compile Haggis with: $WithHaggisHc"
exit 1
fi
;;
#
# -------------------------------------------------------------------------
dnl
+dnl * `Literate' CONFIGURATION STUFF
+
+if test "xxx$DoingLiterate" = 'xxxliterate' ; then
+# a very big "if"!
+
+BuildInfoUtils='NO'
+AC_ARG_ENABLE(info-utils,
+ [
+*******************************************************************
+** Literate programming system OPTIONS:
+
+--enable-info-utils build GNU info/makeinfo utilities],
+ [case "$enableval" in
+ yes) BuildInfoUtils='YES'
+ ;;
+ no) BuildInfoUtils='NO'
+ ;;
+ *) echo "I don't understand this option: --enable-info-utils=$enableval"
+ exit 1
+ ;;
+ esac])
+AC_SUBST(BuildInfoUtils)
+
+# here ends a very big if DoingLiterate = 'literate' ...
+fi
+#
+# -------------------------------------------------------------------------
+dnl
dnl * `NoFib' CONFIGURATION STUFF
if test "xxx$DoingNoFib" = 'xxxnofib' ; then
;;
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"
+ AC_CHECK_PROG(have_ghc_nofib,$WithNoFibHc,$ac_dir/$ac_word)
+ if test -z "$have_ghc_nofib"; then
+ echo "Can't find Glasgow Haskell to compile NoFib with: $WithNoFibHc"
exit 1
fi
;;
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"
+ echo "Can't find Chalmers HBC to compile NoFib with: $WithNoFibHc"
exit 1
fi
;;
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"
+ echo "Can't find Niklas Rojemo's NHC to compile NoFib with: $WithNoFibHc"
exit 1
fi
;;
dnl ** what mkworld \`setup' should be used?
AC_ARG_WITH(setup,
[
-What mkworld \`setup' should be used?
-Choices: ghc, hbc, nhc
+--with-setup=<setup> : What mkworld \`setup' should be used?
+ Choices: ghc, hbc, nhc
],
[case "$withval" in
ghc ) MkWorldSetup='ghc'
;;
nhc ) MkWorldSetup='nhc'
;;
- *) echo "I don't understand this option: --with-hc-for-nofib=$withval"
+ *) echo "I don't understand this option: --with-setup=$withval"
exit 1
;;
esac])