aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-07-11 05:22:47 +0800
committerDan Winship <danw@src.gnome.org>2000-07-11 05:22:47 +0800
commit2fc2feb62eecb5da4f3923edcfc322fce6f02fb3 (patch)
treebc83f3c7cb88f9aa7320d27b45a63b59370a7afb
parentba8853311f5abc33173a8f65f265713c660283ab (diff)
downloadgsoc2013-evolution-2fc2feb62eecb5da4f3923edcfc322fce6f02fb3.tar
gsoc2013-evolution-2fc2feb62eecb5da4f3923edcfc322fce6f02fb3.tar.gz
gsoc2013-evolution-2fc2feb62eecb5da4f3923edcfc322fce6f02fb3.tar.bz2
gsoc2013-evolution-2fc2feb62eecb5da4f3923edcfc322fce6f02fb3.tar.lz
gsoc2013-evolution-2fc2feb62eecb5da4f3923edcfc322fce6f02fb3.tar.xz
gsoc2013-evolution-2fc2feb62eecb5da4f3923edcfc322fce6f02fb3.tar.zst
gsoc2013-evolution-2fc2feb62eecb5da4f3923edcfc322fce6f02fb3.zip
Add a check for Bonobo 0.15 vs Bonobo post-0.15
* configure.in: Add a check for Bonobo 0.15 vs Bonobo post-0.15 svn path=/trunk/; revision=4053
-rw-r--r--ChangeLog4
-rw-r--r--acconfig.h1
-rw-r--r--configure.in21
3 files changed, 23 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 3e08c29490..57a2869f5e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-07-10 Dan Winship <danw@helixcode.com>
+
+ * configure.in: Add a check for Bonobo 0.15 vs Bonobo post-0.15
+
2000-07-09 Christopher James Lahey <clahey@helixcode.com>
* widgets/e-text/e-text.c: Don't draw quite as large a "flat_box".
diff --git a/acconfig.h b/acconfig.h
index ebc1605516..29a1e3de1c 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -17,6 +17,7 @@
#undef HAVE_KRB4
#undef HAVE_KRB5
#undef USE_BROKEN_THREADS
+#undef BONOBO_POST_0_15
/* Define this if you want to build against the development gtk */
#undef HAVE_DEVGTK
diff --git a/configure.in b/configure.in
index 2529377f74..2e45957c6d 100644
--- a/configure.in
+++ b/configure.in
@@ -220,12 +220,12 @@ dnl AC_SUBST(GNOMEGNORBA_LIBS)
dnl ******************************
dnl Check for Bonobo
dnl ******************************
-AC_MSG_CHECKING(for Bonobo >= 0.10)
+AC_MSG_CHECKING(for Bonobo >= 0.15)
if gnome-config --libs bonobo > /dev/null 2>&1; then
vers=`gnome-config --modversion bonobo`
case $vers
in
- bonobo-0.?) bonobo_ok=false ;;
+ bonobo-0.?|bonobo-0.1[0-4]) bonobo_ok=false ;;
*) bonobo_ok=true ;;
esac
else
@@ -235,7 +235,22 @@ fi
if $bonobo_ok; then
AC_MSG_RESULT($vers found)
else
- AC_MSG_ERROR(Bonobo 0.10 is required to compile Evolution)
+ AC_MSG_ERROR(Bonobo 0.15 is required to compile Evolution)
+fi
+
+dnl Check 0.15 vs post-0.15
+saved_CFLAGS="$CFLAGS"
+saved_LDFLAGS="$LDFLAGS"
+CFLAGS="$CFLAGS `gnome-config --cflags bonobo`"
+LDFLAGS="$LDFLAGS `gnome-config --libs bonobo`"
+AC_TRY_COMPILE([
+#include <bonobo/bonobo-ui-handler.h>
+],[
+bonobo_ui_handler_menu_set_callback (NULL, NULL, NULL, NULL, NULL);
+],bonobo_new=true,bonobo_new=false)
+
+if $bonobo_new; then
+ AC_DEFINE(BONOBO_POST_0_15)
fi