diff options
author | JP Rosevear <jpr@helixcode.com> | 2000-08-26 13:19:12 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2000-08-26 13:19:12 +0800 |
commit | 20bf74b050b8e9c284dc944a58f93a0abdd34ec1 (patch) | |
tree | 2925f9fc0a0a0aeb463d25986dcec4bc5b5fcaf9 /configure.in | |
parent | 2f5e7395814b03ddfc2f612e5cd962be50f38c27 (diff) | |
download | gsoc2013-evolution-20bf74b050b8e9c284dc944a58f93a0abdd34ec1.tar gsoc2013-evolution-20bf74b050b8e9c284dc944a58f93a0abdd34ec1.tar.gz gsoc2013-evolution-20bf74b050b8e9c284dc944a58f93a0abdd34ec1.tar.bz2 gsoc2013-evolution-20bf74b050b8e9c284dc944a58f93a0abdd34ec1.tar.lz gsoc2013-evolution-20bf74b050b8e9c284dc944a58f93a0abdd34ec1.tar.xz gsoc2013-evolution-20bf74b050b8e9c284dc944a58f93a0abdd34ec1.tar.zst gsoc2013-evolution-20bf74b050b8e9c284dc944a58f93a0abdd34ec1.zip |
Require oafized bonobo
2000-08-26 JP Rosevear <jpr@helixcode.com>
* configure.in: Require oafized bonobo
svn path=/trunk/; revision=5045
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 72 |
1 files changed, 31 insertions, 41 deletions
diff --git a/configure.in b/configure.in index 50f519b816..aa9bb3a9dd 100644 --- a/configure.in +++ b/configure.in @@ -227,10 +227,38 @@ fi if $bonobo_ok; then AC_MSG_RESULT($vers found) else - AC_MSG_ERROR(Bonobo newer than 0.16 is required to compile Evolution) + AC_MSG_ERROR(Bonobo newer than 0.17 is required to compile Evolution) fi dnl ****************************** +dnl Whether to use OAF +dnl ****************************** + +AC_MSG_CHECKING(if Bonobo uses OAF) +if ( gnome-config --libs bonobo | grep oaf ) > /dev/null 2>&1 ; then + enable_oaf="yes" + AC_MSG_RESULT(yes) + AC_PATH_PROG(OAF_CONFIG,oaf-config,no) + if test x$OAF_CONFIG = xno; then + AC_MSG_ERROR("The oaf-config program was not found") + else + OAF_LIBS=`$OAF_CONFIG --libs` + OAF_CFLAGS=`$OAF_CONFIG --cflags` + AC_MSG_RESULT(yes) + fi +else + enable_oaf="no" + AC_MSG_ERROR(no, a Bonobo using OAF is required for Evolution) +fi + +AC_SUBST(OAF_LIBS) +AC_SUBST(OAF_CFLAGS) + +AM_CONDITIONAL(USING_OAF, test "x$enable_oaf" = "xyes") +AC_DEFINE(USING_OAF) + + +dnl ****************************** dnl LibGlade checking dnl ****************************** AC_MSG_CHECKING(for Glade libraries) @@ -278,8 +306,8 @@ AC_SUBST(EXTRA_GNOME_LIBS) AC_SUBST(EXTRA_GNOME_CFLAGS) -BONOBO_GNOME_LIBS="`gnome-config --libs bonobox libglade gdk_pixbuf gnomecanvaspixbuf gnomeui` $UNICODE_LIBS" -BONOBO_GNOME_CFLAGS="`gnome-config --cflags bonobox libglade gdk_pixbuf gnomecanvaspixbuf gnomeui ` $UNICODE_CFLAGS" +BONOBO_GNOME_LIBS="`gnome-config --libs bonobox libglade gdk_pixbuf gnomecanvaspixbuf gnomeui` $UNICODE_LIBS $OAF_LIBS" +BONOBO_GNOME_CFLAGS="`gnome-config --cflags bonobox libglade gdk_pixbuf gnomecanvaspixbuf gnomeui ` $UNICODE_CFLAGS $OAF_CFLAGS" AC_SUBST(BONOBO_GNOME_LIBS) AC_SUBST(BONOBO_GNOME_CFLAGS) @@ -382,44 +410,6 @@ fi AC_SUBST(CAPPLET_LIBS) -dnl ****************************** -dnl Whether to use OAF -dnl ****************************** - -AC_MSG_CHECKING(if Bonobo uses OAF) -if ( gnome-config --libs bonobo | grep oaf ) > /dev/null 2>&1 ; then - enable_oaf="yes" -else - enable_oaf="no" -fi - -AC_MSG_RESULT("$enable_oaf") - -if test "x$enable_oaf" = "xyes"; then - AC_PATH_PROG(OAF_CONFIG,oaf-config,no) - if test x$OAF_CONFIG = xno; then - AC_MSG_ERROR("You enabled OAF support but oaf-config was not found") - else - OAF_LIBS=`$OAF_CONFIG --libs` - OAF_CFLAGS=`$OAF_CONFIG --cflags` - GNORBA_LIBNAME= - fi -else - OAF_LIBS= - OAF_CFLAGS= - GNORBA_LIBNAME=gnorba -fi - -AC_SUBST(OAF_LIBS) -AC_SUBST(OAF_CFLAGS) - -AM_CONDITIONAL(USING_OAF, test "x$enable_oaf" = "xyes") - -if test "x$enable_oaf" = "xyes"; then - AC_DEFINE(USING_OAF) - BONOBO_GNOME_LIBS="`oaf-config --libs` $BONOBO_GNOME_LIBS" - BONOBO_GNOME_CFLAGS="`oaf-config --cflags ` $BONOBO_GNOME_CFLAGS" -fi dnl ******** dnl Kerberos |