HostVendor_CPP='unknown'
HostOS_CPP='freebsd'
;;
+arm*-linux*)
+ HostPlatform=arm-unknown-linux # hack again
+ TargetPlatform=arm-unknown-linux
+ BuildPlatform=arm-unknown-linux
+ HostPlatform_CPP='arm_unknown_linux'
+ HostArch_CPP='arm'
+ HostVendor_CPP='unknown'
+ HostOS_CPP='linux'
+ ;;
+hppa*-*-linux*)
+ HostPlatform=hppa-unknown-linux # hack again
+ TargetPlatform=hppa-unknown-linux
+ BuildPlatform=hppa-unknown-linux
+ HostPlatform_CPP='hppa_unknown_linux'
+ HostArch_CPP='hppa'
+ HostVendor_CPP='unknown'
+ HostOS_CPP='linux'
+ ;;
hppa1.1-hp-hpux*)
HostPlatform=hppa1.1-hp-hpux # canonicalise for our purposes (hack)
TargetPlatform=hppa1.1-hp-hpux
HostVendor_CPP='unknown'
HostOS_CPP='linux'
;;
+m68k-*-linux*)
+ HostPlatform=m68k-unknown-linux # hack again
+ TargetPlatform=m68k-unknown-linux
+ BuildPlatform=m68k-unknown-linux
+ HostPlatform_CPP='m68k_unknown_linux'
+ HostArch_CPP='m68k'
+ HostVendor_CPP='unknown'
+ HostOS_CPP='linux'
+ ;;
m68k-next-nextstep2)
HostPlatform_CPP='m68k_next_nextstep2'
HostArch_CPP='m68k'
HostVendor_CPP='sun'
HostOS_CPP='sunos4'
;;
+mips-*-linux*)
+ HostPlatform=mips-unknown-linux # hack again
+ TargetPlatform=mips-unknown-linux
+ BuildPlatform=mips-unknown-linux
+ HostPlatform_CPP='mips_unknown_linux'
+ HostArch_CPP='mips'
+ HostVendor_CPP='unknown'
+ HostOS_CPP='linux'
+ ;;
mips-dec-ultrix*)
HostPlatform_CPP='mips_dec_ultrix'
HostArch_CPP='mipsel' # NB a little different
HostVendor_CPP='unknown'
HostOS_CPP='linux'
;;
+s390-ibm-linux*)
+ HostPlatform=s390-ibm-linux
+ TargetPlatform=s390-ibm-linux #hack
+ BuildPlatform=s390-ibm-linux #hack
+ HostPlatform_CPP='s390_ibm_linux'
+ HostArch_CPP='s390'
+ HostVendor_CPP='ibm'
+ HostOS_CPP='linux'
+ ;;
sparc-sun-sunos4*)
HostPlatform=sparc-sun-sunos4
TargetPlatform=sparc-sun-sunos4 #hack
dnl ** check for POSIX regex
HavePosixRegex=NO
-AC_CHECK_HEADER(regex.h,[AC_CHECK_FUNC(regcomp, [HavePosixRegex=YES])])
+AC_CHECK_HEADERS(regex.h,[AC_CHECK_FUNC(regcomp, [HavePosixRegex=YES])])
AC_SUBST(HavePosixRegex)
dnl ** how do we get a timezone name, and UTC offset ?
FPTOOLS_CHECK_HTYPE(nlink_t)
FPTOOLS_CHECK_HTYPE(ssize_t)
FPTOOLS_CHECK_HTYPE(rlim_t)
+FPTOOLS_CHECK_HTYPE(wint_t)
dnl ** Map OpenGL data types to Haskell types
if test $GhcLibsWithHOpenGL = YES ; then
AC_CHECK_LIB(bfd, bfd_init)
dnl ** check for wide-char classifications
-AC_CHECK_HEADERS(wctype.h)
+dnl FreeBSD has an emtpy wctype.h, so test one of the affected
+dnl functions if it's really there.
+AC_CHECK_HEADERS(wctype.h,
+ [AC_CHECK_FUNCS(iswspace)]
+)
dnl ** check for readline, for Hugs and hslibs' Readline
dnl ncurses supersedes termcap and curses, but for compatibility,