From 1a0c76c32fe470142d3663dd84ac960d75a4e8db Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Sat, 10 Dec 2011 15:35:41 -0500 Subject: Enable compiling with the mingw-w64 32 bit compiler. Original patch by Lars Kanis, reviewed by Nishiyama Tomoaki and tweaked some by me. This compiler, or at least the latest version of it, is currently broken, and only passes the regression tests if built with -O0. --- configure.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 5591b93e758..9cf084d4b67 100644 --- a/configure.in +++ b/configure.in @@ -1101,6 +1101,9 @@ if test "$with_ossp_uuid" = yes ; then [AC_MSG_ERROR([header file or is required for OSSP-UUID])])]) fi +if test "$PORTNAME" = "win32" ; then + AC_CHECK_HEADERS(crtdefs.h) +fi ## ## Types, structures, compiler characteristics @@ -1174,7 +1177,9 @@ fi # compiler characteristic, but you'd be wrong. We must check this before # probing existence of related functions such as fseeko, since the largefile # defines can affect what is generated for that. -AC_SYS_LARGEFILE +if test "$PORTNAME" != "win32"; then + AC_SYS_LARGEFILE +fi # Check for largefile support (must be after AC_SYS_LARGEFILE) AC_CHECK_SIZEOF([off_t]) -- cgit v1.2.3