aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-02-24 02:29:30 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-06-09 17:20:06 +0800
commitb51267374d508af1f8554476af0c771f330ff813 (patch)
treea1ad4bbd16e71db7145b2e24fac1d6e30c4ad055
parent83cd1c694ff13c9a72a7b45ca5c6eb7e085de4f7 (diff)
downloadgsoc2013-empathy-b51267374d508af1f8554476af0c771f330ff813.tar
gsoc2013-empathy-b51267374d508af1f8554476af0c771f330ff813.tar.gz
gsoc2013-empathy-b51267374d508af1f8554476af0c771f330ff813.tar.bz2
gsoc2013-empathy-b51267374d508af1f8554476af0c771f330ff813.tar.lz
gsoc2013-empathy-b51267374d508af1f8554476af0c771f330ff813.tar.xz
gsoc2013-empathy-b51267374d508af1f8554476af0c771f330ff813.tar.zst
gsoc2013-empathy-b51267374d508af1f8554476af0c771f330ff813.zip
auto-detect the presence of farsight
-rw-r--r--configure.ac17
1 files changed, 14 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 1c87649bb..fd84e20f6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -186,14 +186,24 @@ PKG_CHECK_MODULES(EMPATHY_AV,
AC_ARG_WITH(call,
AC_HELP_STRING([--with-call], [build with Call interface support]),,
[with_call=yes])
-if test "x$with_call" = "xyes" ; then
+if test "x$with_call" != "xno" ; then
PKG_CHECK_MODULES(EMPATHY_CALL,
[
farsight2-0.10
telepathy-farstream
- ])
+ ], have_farstream="yes", have_farstream="no" )
+
+ if test "x$have_farstream" = "xyes"; then
+ AC_DEFINE(HAVE_CALL, 1, [Define if you have Call channel support])
+ fi
+else
+ have_farstream=no
+fi
+
+if test "x$with_call" = "xyes" -a "x$have_farstream" != "xyes"; then
+ AC_MSG_ERROR([Could not find Call handler dependencies.])
fi
-AM_CONDITIONAL(HAVE_CALL, test "x$with_call" = "xyes")
+AM_CONDITIONAL(HAVE_CALL, test "x$have_farstream" = "xyes")
# -----------------------------------------------------------
# evolution-data-server (about-me)
@@ -560,4 +570,5 @@ Configure summary:
Extras:
Nautilus-sendto plugin......: ${have_nst}
Salut E-D-S support.........: ${with_eds}
+ Exp. Call channel handler...: ${have_farstream}
"