dnl ** do we have long longs?
FPTOOLS_C_LONG_LONG
+dnl ** check what fields struct msghdr contains
+FPTOOLS_MSGHDR_MSG_ACCRIGHTS
+FPTOOLS_MSGHDR_MSG_CONTROL
+
dnl ** what are the sizes of various types
dnl (these must come before GHC_CHECK_ALIGNMENT)
AC_CHECK_SIZEOF(char, 1)
AC_SUBST(HaveLibGmp)
AC_SUBST(LibGmp)
+dnl ** check for mingwex library
+AC_CHECK_LIB(mingwex, closedir, HaveLibMingwEx=YES, HaveLibMingwEx=NO)
+AC_SUBST(HaveLibMingwEx)
+
+if test $HaveLibMingwEx = YES ; then
+ AC_DEFINE(HAVE_MINGWEX)
+fi
+
if test "$HaveLibGmp" = "NO"; then
if test "$HostArch_CPP" = "ia64"; then
AC_MSG_ERROR([You need to install libgmp (the in-tree version does not work on IA64).])