From f6c8bb2a30b72d410b4e3e87e3286b1ac13ce8c5 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Fri, 5 Feb 2010 23:22:34 +0000 Subject: [PATCH] disable automagic to find exchange. This allows build systems to forcefully disable build using exchange library, even if it was found in the system during compile. SVN revision: 45917 --- configure.ac | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 21696934c..1e03fdb3e 100644 --- a/configure.ac +++ b/configure.ac @@ -391,10 +391,21 @@ define([CHECK_MODULE_TEMPERATURE], [], [TEMPERATURE=false]) ]) +have_exchange=no +AC_ARG_ENABLE(exchange, + AC_HELP_STRING([--disable-exchange], [disable Exchange support @<:@default=detect@:>@]), + [want_exchange=$enableval], + [want_exchange=auto] +) + AM_CONDITIONAL(HAVE_EXCHANGE, false) define([CHECK_MODULE_CONF_THEME], [ - AC_E_CHECK_PKG(EXCHANGE, [exchange], [], [:]) + if test "x$want_exchange" != "xno" ; then + AC_E_CHECK_PKG(EXCHANGE, [exchange], [], [:]) + else + AC_MSG_NOTICE([requested to not use exchange library]) + fi ]) AM_CONDITIONAL(HAVE_ALSA, false)