Update to build on Cygwin. Fixes bug #137666. Patch from Roger Leigh.
authorPadraig O'Briain <padraig.obriain@sun.com>
Mon, 22 Mar 2004 10:38:42 +0000 (10:38 +0000)
committerPadraig O'Briain <padraigo@src.gnome.org>
Mon, 22 Mar 2004 10:38:42 +0000 (10:38 +0000)
2004-03-22  Padraig O'Briain  <padraig.obriain@sun.com>

* configure.in:
* atk/Makefile.am: Update to build on Cygwin. Fixes bug #137666.
 Patch from Roger Leigh.

ChangeLog
atk/Makefile.am
configure.in

index 2b9c5020261cb2055371beb127d7a658307a7375..ac23f2e3c2ae876521247634236053e5a3190fb7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-03-22  Padraig O'Briain  <padraig.obriain@sun.com>
+
+       * configure.in:
+       * atk/Makefile.am: Update to build on Cygwin. Fixes bug #137666.
+        Patch from Roger Leigh.
+       
 2004-03-18  Guntupalli Karunakar  <karunakar@freedomink.org>
 
        * configure.in: Added "mr" for Marathi to ALL_LINGUAS.
index e7680292887353a0a56d0930b452f2eb8fc359fc..2de26298868f032731aec5afabc9fe6c66d59eba 100644 (file)
@@ -2,6 +2,12 @@
 # which are more like other make's VPATH.
 GPATH = $(srcdir)
 
+if PLATFORM_WIN32
+no_undefined = -no-undefined
+else
+no_undefined =
+endif
+
 INCLUDES = \
        -I$(top_srcdir)         \
        -DG_DISABLE_DEPRECATED  \
@@ -9,7 +15,9 @@ INCLUDES = \
 
 lib_LTLIBRARIES = libatk-1.0.la
 
-libatk_1_0_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
+libatk_1_0_la_LDFLAGS =                        \
+       -version-info $(LT_VERSION_INFO)        \
+       $(no_undefined)
 libatk_1_0_la_LIBADD = $(DEP_LIBS)
 
 libatk_1_0_la_SOURCES =        \
index ac0caf75129616490997bde512f7f598e2876ea7..5e18f014fcbcb0113c24f7be148a402214fa3bb9 100644 (file)
@@ -91,7 +91,19 @@ AM_DISABLE_STATIC
 AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL
 
-AC_MSG_CHECKING([for Win32])
+AC_MSG_CHECKING([for some Win32 platform])
+case "$host" in
+  *-*-mingw*|*-*-cygwin*)
+    platform_win32=yes
+    ;;
+  *)
+    platform_win32=no
+    ;;
+esac
+AC_MSG_RESULT([$platform_win32])
+AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
+
+AC_MSG_CHECKING([for native Win32 platform])
 case "$host" in
   *-*-mingw*)
     atk_native_win32=yes