]> git.0d.be Git - empathy.git/commitdiff
auto-detect the presence of farsight
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Wed, 23 Feb 2011 18:29:30 +0000 (18:29 +0000)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Thu, 9 Jun 2011 09:20:06 +0000 (10:20 +0100)
configure.ac

index 1c87649bb70b7b151f2bbd8af21fe6a1eb05462d..fd84e20f6a024e970d2f9d387a0a394c8d819dd6 100644 (file)
@@ -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}
 "