]> git.saurik.com Git - wxWidgets.git/commitdiff
For OS/2 PM builds, check for type SPBCDATA in system headers.
authorStefan Neis <Stefan.Neis@t-online.de>
Sun, 16 May 2004 13:12:58 +0000 (13:12 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Sun, 16 May 2004 13:12:58 +0000 (13:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure.in
setup.h.in

index 8b75727fe8d6541fb3e00347ac2dc35b4f008ba1..097230bc13df452a4419951d25e2dd13e45e0b80 100644 (file)
@@ -2950,7 +2950,27 @@ equivalent variable and GTK+ is version 1.2.3 or above.
 
     if test "$wxUSE_PM" = 1; then
         TOOLKIT=PM
-        GUIDIST=GTK_DIST
+        GUIDIST=PM_DIST
+        AC_CACHE_CHECK([for type SPBCDATA],
+            wx_cv_spbcdata,
+            [
+                AC_TRY_COMPILE(
+                    [
+                        #define INCL_PM
+                        #include <os2.h>
+                    ],
+                    [
+                        SPBCDATA test;
+                    ],
+                    wx_cv_spbcdata=yes,
+                    wx_cv_spbcdata=no
+                )
+            ]
+        )
+
+        if test $wx_cv_spbcdata = "yes"; then
+            AC_DEFINE(HAVE_SPBCDATA)
+        fi
     fi
 
     dnl the name of the directory where the files for this toolkit live
index 892a6aaca2fe51844cb328252b4c9a44a653e448..77401e6af9492cc6a97db6f2e92c23cc693bfcb9 100644 (file)
 /* Define this if you are using gtk and gdk contains support for X11R6 XIM */
 #undef HAVE_XIM
 
-/* Define this is you have X11/extensions/shape.h */
+/* Define this if you have X11/extensions/shape.h */
 #undef HAVE_XSHAPE
 
+/* Define this if you have type SPBCDATA */
+#undef HAVE_SPBCDATA
+
 /* -------------------------------------------------------------------------
    Win32 adjustments section
    ------------------------------------------------------------------------- */