From c569f5b7168b9259eff80c97ababc840d6e01fa5 Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Thu, 1 Feb 2007 14:19:54 +0000 Subject: 2007-02-01 Jonathon Jongsma * configure.in: Fixes for building on Cygwin from yselkowitz@users.sourceforge.net. Closes bug #9726 --- ChangeLog | 5 +++++ configure.in | 14 +++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6b2e87d..267cd28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-02-01 Jonathon Jongsma + + * configure.in: Fixes for building on Cygwin from + yselkowitz@users.sourceforge.net. Closes bug #9726 + 2007-01-28 Jonathon Jongsma * configure.in: bump rev to 1.2.5 diff --git a/configure.in b/configure.in index 92fe283..93c25f5 100644 --- a/configure.in +++ b/configure.in @@ -52,11 +52,23 @@ esac AC_MSG_RESULT([$platform_win32]) AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes") +AC_MSG_CHECKING([for native Win32]) +case "$host" in + *-*-mingw*) + os_win32=yes + ;; + *) + os_win32=no + ;; +esac +AC_MSG_RESULT([$os_win32]) +AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes") + # Ensure MSVC-compatible struct packing convention is used when # compiling for Win32 with gcc. # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while # gcc2 uses "-fnative-struct". -if test x"$platform_win32" = xyes; then +if test x"$os_win32" = xyes; then if test x"$GCC" = xyes; then msnative_struct='' AC_MSG_CHECKING([how to get MSVC-compatible struct packing]) -- cgit v1.2.3