From 673f4220bab916f521ee1c21a2944ee307c2b1f8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 27 Aug 2001 14:29:34 +0000 Subject: [PATCH] fix for wxGTK clipboard code compilation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure | 9 ++++++++- configure.in | 5 +++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 280d54fd8e..4fc7628b62 100755 --- a/configure +++ b/configure @@ -17363,6 +17363,13 @@ if test "$wxUSE_CLIPBOARD" = "yes"; then #define wxUSE_CLIPBOARD 1 EOF + + if test "$wxUSE_GTK" = 1; then + cat >> confdefs.h <<\EOF +#define wxUSE_DATAOBJ 1 +EOF + + fi fi if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then @@ -18161,7 +18168,7 @@ SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:18165: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo "configure:18172: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 diff --git a/configure.in b/configure.in index 7550ce5c70..14acf4f21e 100644 --- a/configure.in +++ b/configure.in @@ -4097,6 +4097,11 @@ fi if test "$wxUSE_CLIPBOARD" = "yes"; then AC_DEFINE(wxUSE_CLIPBOARD) + + if test "$wxUSE_GTK" = 1; then + dnl required by clipboard code in wxGTK + AC_DEFINE(wxUSE_DATAOBJ) + fi fi if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then -- 2.45.2