Check for --disable-gnome arg.

* configure.in: Check for --disable-gnome arg.
This commit is contained in:
Tristan Van Berkom 2006-07-06 18:48:39 +00:00
parent c9197e4632
commit ddeae654c8
2 changed files with 17 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2006-07-06 Tristan Van Berkom <tvb@gnome.org>
* configure.in: Check for --disable-gnome arg.
2006-07-05 Juan Pablo Ugarte <juanpablougarte@gmail.com> 2006-07-05 Juan Pablo Ugarte <juanpablougarte@gmail.com>
* src/glade-builtins.[ch]: fixed bug 343712 * src/glade-builtins.[ch]: fixed bug 343712

View File

@ -62,10 +62,19 @@ AC_SUBST(GTK_CFLAGS)
dnl ================================================================ dnl ================================================================
dnl Check for optional gnome libs dnl Check for optional gnome libs
dnl ================================================================ dnl ================================================================
PKG_CHECK_MODULES(GNOME, libbonoboui-2.0 libgnomeui-2.0, AC_ARG_ENABLE(gnome,
[have_gnome=yes],[have_gnome=no]) [ --disable-gnome disable gnome catalog],
AC_SUBST(GNOME_LIBS) check_gnome=$enableval, check_gnome=yes)
AC_SUBST(GNOME_CFLAGS)
if test x"$check_gnome" = x"yes"; then
PKG_CHECK_MODULES(GNOME, libbonoboui-2.0 libgnomeui-2.0,
[have_gnome=yes],[have_gnome=no])
AC_SUBST(GNOME_LIBS)
AC_SUBST(GNOME_CFLAGS)
else
have_gnome=no
fi
AM_CONDITIONAL(BUILD_GNOME, test x"$have_gnome" = "xyes") AM_CONDITIONAL(BUILD_GNOME, test x"$have_gnome" = "xyes")
dnl ================================================================ dnl ================================================================