MAKEINCLUDE=
+WXGTK12=
+
if test "$wxUSE_GTK" = 1; then
AM_PATH_GTK(1.0.0, [
GUI_TK_INCLUDE="$GTK_CFLAGS"
TOOLKIT_DEF=__WXGTK__
WX_LINK=-lwx_gtk2
MAKEINCLUDE=../gtk.inc
+ AM_PATH_GTK(1.2.0, [
+ WXGTK12=1
+ ], AC_MSG_RESULT(no))
fi
if test "$wxUSE_QT" = 1; then
dnl Register compile options for makefiles and setup.h
dnl ----------------------------------------------------------------
+if test "$WXGTK12" = 1 ; then
+ AC_DEFINE_UNQUOTED(__WXGTK12__,$WXGTK12)
+fi
+
EXTRA_LINK=
WXDEBUG=
fi
if test "$wxUSE_DRAG_AND_DROP" = 1 ; then
- AC_DEFINE_UNQUOTED(wxUSE_DRAG_AND_DROP,$wxUSE_DRAG_AND_DROP)
+ if test "$WXGTK12" = 1 ; then
+ AC_DEFINE_UNQUOTED(wxUSE_DRAG_AND_DROP,$wxUSE_DRAG_AND_DROP)
+ else
+ AC_MSG_WARN(drag and drop is only supported under GTK 1.2, sorry)
+ wxUSE_DRAG_AND_DROP=0
+ fi
fi
dnl ----------------------------------------------------------------