From dddb6280678e18f658e65260f3914e22f8fa9639 Mon Sep 17 00:00:00 2001 From: Daniel Macks Date: Sun, 19 Apr 2009 03:44:24 +0200 Subject: build-system: don't do gconf if gtk is disabled libcanberra.schemas is the gconf hook for canberra-gtk-module, so it shouldn't be installed if gtk is disabled in the libcanberra build ("no canberra-gtk-module" should propagate "no pointers to it"). Closes bz #20926 --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 86f064c..f0abff5 100644 --- a/configure.ac +++ b/configure.ac @@ -346,6 +346,7 @@ AC_ARG_ENABLE([gtk], ], [gtk=auto]) +AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [false]) if test "x${gtk}" != xno ; then PKG_CHECK_MODULES(GTK, [ gtk+-2.0 >= 2.13.4 gthread-2.0 ], [ @@ -353,6 +354,7 @@ if test "x${gtk}" != xno ; then AC_DEFINE([HAVE_GTK], 1, [Have GTK?]) AC_PATH_PROG(GCONFTOOL, gconftool-2) + AM_GCONF_SOURCE_2 GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0` GTK_MODULES_DIR="${libdir}/gtk-2.0/modules" @@ -367,7 +369,6 @@ else HAVE_GTK=0 fi -AM_GCONF_SOURCE_2 AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) -- cgit