patches.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35022
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
AC_DEFINE(__WXMOTIF20__,0)
AC_MSG_RESULT([not found])
])
+
+ AC_MSG_CHECKING([whether Motif is Lesstif])
+ AC_TRY_COMPILE([
+ #include <Xm/Xm.h>
+ ],
+ [
+ #if !defined(LesstifVersion) || LesstifVersion <= 0
+ #error "Not Lesstif"
+ #endif
+ ],
+ [
+ AC_DEFINE(__WXLESSTIF__,1)
+ AC_MSG_RESULT([yes])
+ ],
+ [
+ AC_DEFINE(__WXLESSTIF__,0)
+ AC_MSG_RESULT([no])
+ ])
CFLAGS=$save_CFLAGS
GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
/* Define this if your version of Motif is greater than 2.0 */
#undef __WXMOTIF20__
+/* Define this if you are using Lesstif */
+#undef __WXLESSTIF__
+
/*
* Define to 1 for Unix[-like] system
*/
/* Define this if your version of Motif is greater than 2.0 */
/* #undef __WXMOTIF20__ */
+/* Define this if you are using Lesstif */
+/* #undef __WXLESSTIF__ */
+
#ifdef __WXGTK__
/* Define this if your version of GTK+ is greater than 1.2 */
#define __WXGTK12__ 1