From 123923059156c564ccf1fb46aa92675f644ce6bf Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 10 Nov 2009 01:57:12 +0200 Subject: Enable building without Canberra-GTK --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 7115f98983..a9a91f7b5d 100644 --- a/configure.ac +++ b/configure.ac @@ -254,7 +254,15 @@ PKG_CHECK_MODULES([EVOLUTION_DATA_SERVER], dnl ****************************** dnl Canberra / Canberra-GTK Sound dnl ****************************** -PKG_CHECK_MODULES([CANBERRA],[libcanberra-gtk]) +AC_ARG_ENABLE([canberra], + [AS_HELP_STRING([--enable-canberra], + [Enable Canberra and Canberra-GTK sound @<:@default=yes@:>@])], + [enable_canberra="$enableval"], [enable_canberra=yes]) + +if test $enable_canberra = yes; then + PKG_CHECK_MODULES([CANBERRA],[libcanberra-gtk]) + AC_DEFINE(HAVE_CANBERRA, 1, [Define if using Canberra and Canberra-GTK for sound]) +fi AC_SUBST(CANBERRA_CFLAGS) AC_SUBST(CANBERRA_LIBS) -- cgit