aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorCosimo Alfarano <cosimo.alfarano@collabora.co.uk>2010-02-24 03:32:57 +0800
committerCosimo Alfarano <cosimo.alfarano@collabora.co.uk>2010-02-26 01:26:57 +0800
commit8d4d46e440c7a6bd321fc098265db8ede27c07de (patch)
treebcdffe751459a38bd950d5424d628d831c5243a7 /configure.ac
parent8e24107b437f63d9b2ca93e0d5b7379ee87af98d (diff)
downloadgsoc2013-empathy-8d4d46e440c7a6bd321fc098265db8ede27c07de.tar
gsoc2013-empathy-8d4d46e440c7a6bd321fc098265db8ede27c07de.tar.gz
gsoc2013-empathy-8d4d46e440c7a6bd321fc098265db8ede27c07de.tar.bz2
gsoc2013-empathy-8d4d46e440c7a6bd321fc098265db8ede27c07de.tar.lz
gsoc2013-empathy-8d4d46e440c7a6bd321fc098265db8ede27c07de.tar.xz
gsoc2013-empathy-8d4d46e440c7a6bd321fc098265db8ede27c07de.tar.zst
gsoc2013-empathy-8d4d46e440c7a6bd321fc098265db8ede27c07de.zip
TPL Enabling patch, all-in-one.
By default TPL is disabled, use --enable-tpl configure option to enable it.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac28
1 files changed, 28 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 57ad3ed7c..5ba9fc487 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,6 +33,7 @@ GLIB_REQUIRED=2.22.0
GTK_REQUIRED=2.18.0
GCONF_REQUIRED=1.2.0
TELEPATHY_GLIB_REQUIRED=0.9.2
+TELEPATHY_LOGGER=0.1.0
ENCHANT_REQUIRED=1.2.0
ISO_CODES_REQUIRED=0.35
LIBNOTIFY_REQUIRED=0.4.4
@@ -135,6 +136,30 @@ AS_COMPILER_FLAG(-Wmissing-declarations, ERROR_CFLAGS="$ERROR_CFLAGS -Wmissing-d
AC_SUBST(ERROR_CFLAGS)
# -----------------------------------------------------------
+# Enable TPL
+# -----------------------------------------------------------
+
+# It needs to be defined before PKG_CHECK_MODULES calls
+AC_ARG_ENABLE(tpl,
+ AC_HELP_STRING([--enable-tpl],[enable telepathy-logger code and disable the
+ empathy logger]), enable_tpl=$enableval, enable_tpl=no )
+AM_CONDITIONAL(ENABLE_TPL, test "x$enable_tpl" = "xyes")
+
+if test x${enable_tpl} = xyes; then
+ AC_DEFINE(ENABLE_TPL, [], [Enable TPL code])
+fi
+
+if test "x$enable_tpl" = "xyes"; then
+ PKG_CHECK_MODULES(TPL,
+ [
+ libtelepathy-logger = $TELEPATHY_LOGGER
+ ])
+ AC_SUBST(TPL_CFLAGS)
+ AC_SUBST(TPL_LIBS)
+fi
+
+
+# -----------------------------------------------------------
# Pkg-Config dependency checks
# -----------------------------------------------------------
@@ -528,6 +553,9 @@ Configure summary:
Meego widgets ..............: ${have_meego}
Control center embedding....: ${have_control_center_embedding}
+ Logging:
+ Telepathy Logger............: ${enable_tpl}
+
Connectivity:
NetworkManager integration..: ${have_nm}
ConnMan integration.........: ${have_connman}