From 0ed330b47a054be7c1fe3a09bf37710cfa68be36 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sun, 16 May 2004 13:12:58 +0000 Subject: [PATCH] For OS/2 PM builds, check for type SPBCDATA in system headers. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure.in | 22 +++++++++++++++++++++- setup.h.in | 5 ++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 8b75727fe8..097230bc13 100644 --- a/configure.in +++ b/configure.in @@ -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 + ], + [ + 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 diff --git a/setup.h.in b/setup.h.in index 892a6aaca2..77401e6af9 100644 --- a/setup.h.in +++ b/setup.h.in @@ -1245,9 +1245,12 @@ /* 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 ------------------------------------------------------------------------- */ -- 2.45.2