summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@gnome.org>2007-02-01 14:19:54 +0000
committerJonathon Jongsma <jjongsma@gnome.org>2007-02-01 14:19:54 +0000
commitc569f5b7168b9259eff80c97ababc840d6e01fa5 (patch)
tree7e40d717c63be35de461e9802a05b5b845389045
parent8cde76e3ece058843551b8c63a45546ecdf88040 (diff)
2007-02-01 Jonathon Jongsma <jonathon.jongsma@gmail.com>cairomm-1.2
* configure.in: Fixes for building on Cygwin from yselkowitz@users.sourceforge.net. Closes bug #9726
-rw-r--r--ChangeLog5
-rw-r--r--configure.in14
2 files changed, 18 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6b2e87d..267cd28 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-01 Jonathon Jongsma <jonathon.jongsma@gmail.com>
+
+ * configure.in: Fixes for building on Cygwin from
+ yselkowitz@users.sourceforge.net. Closes bug #9726
+
2007-01-28 Jonathon Jongsma <jonathon.jongsma@gmail.com>
* 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])