[project @ 2002-06-25 15:49:58 by mthomas]
authormthomas <unknown>
Tue, 25 Jun 2002 15:49:59 +0000 (15:49 +0000)
committermthomas <unknown>
Tue, 25 Jun 2002 15:49:59 +0000 (15:49 +0000)
Latest Mingw32 needs libmingwex, but for now not when installing as
bundled gcc is out of date.

configure.in
ghc/rts/Makefile
ghc/rts/rts.conf.in
mk/config.h.in
mk/config.mk.in

index 8855fcf..7ee231c 100644 (file)
@@ -916,6 +916,14 @@ AC_CHECK_LIB(gmp,  __gmpz_fdiv_qr, HaveLibGmp=YES; LibGmp=gmp,
 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).])
index 9c3e312..d1334a3 100644 (file)
@@ -1,5 +1,5 @@
 #-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.70 2002/04/13 05:18:07 sof Exp $
+# $Id: Makefile,v 1.71 2002/06/25 15:49:58 mthomas Exp $
 #
 #  This is the Makefile for the runtime-system stuff.
 #  This stuff is written in C (and cannot be written in Haskell).
@@ -43,6 +43,10 @@ ifeq "$(HaveLibGmp)" "YES"
 PACKAGE_CPP_OPTS += -DHAVE_LIBGMP
 endif
 
+ifeq "$(HaveLibMingwEx)" "YES"
+PACKAGE_CPP_OPTS += -DHAVE_LIBMINGWEX
+endif
+
 ifneq "$(DLLized)" "YES"
 EXCLUDED_SRCS += RtsDllMain.c
 else
index c4e1c3f..2868deb 100644 (file)
@@ -30,6 +30,11 @@ Package {
 #ifdef USING_LIBBFD
                              ,"bfd", "iberty"  /* for debugging */
 #endif
+#ifdef HAVE_LIBMINGWEX
+# ifndef INSTALLING                             /* Bundled Mingw is behind */
+                              ,"mingwex"
+# endif
+#endif
 #if defined(THREADED_RTS) && !defined(mingw32_TARGET_OS)
                              ,"pthread"
 # ifdef osf3_TARGET_OS
index 837e852..7631924 100644 (file)
 /* Define if you have the `vsnprintf' function. */
 #undef HAVE_VSNPRINTF
 
+/* Define if you have the mingwex library. */
+#undef HAVE_MINGWEX
+
 /* Define if you have the <windows.h> header file. */
 #undef HAVE_WINDOWS_H
 
index f36f483..4ba14ba 100644 (file)
@@ -676,6 +676,11 @@ HaveLibGmp = @HaveLibGmp@
 LibGmp         = @LibGmp@
 
 #-----------------------------------------------------------------------------
+# Mingwex Library
+#
+HaveLibMingwEx = @HaveLibMingwEx@
+
+#-----------------------------------------------------------------------------
 # Regex libraries
 # (if present in libc use that one, otherwise use the one in the tree)
 #