diff options
author | Travis Reitter <treitter@gmail.com> | 2010-02-24 02:08:05 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-03-15 16:28:40 +0800 |
commit | 50a0138f16ceabeecd1ee92f127684a9d50b3e70 (patch) | |
tree | a4d995ff700cb3510ccd6c16c12d4e3c5a8a8f04 /configure.ac | |
parent | b8657a61fe72be0da2d91325b0851dd4d7fd533c (diff) | |
download | gsoc2013-empathy-50a0138f16ceabeecd1ee92f127684a9d50b3e70.tar gsoc2013-empathy-50a0138f16ceabeecd1ee92f127684a9d50b3e70.tar.gz gsoc2013-empathy-50a0138f16ceabeecd1ee92f127684a9d50b3e70.tar.bz2 gsoc2013-empathy-50a0138f16ceabeecd1ee92f127684a9d50b3e70.tar.lz gsoc2013-empathy-50a0138f16ceabeecd1ee92f127684a9d50b3e70.tar.xz gsoc2013-empathy-50a0138f16ceabeecd1ee92f127684a9d50b3e70.tar.zst gsoc2013-empathy-50a0138f16ceabeecd1ee92f127684a9d50b3e70.zip |
Add a favorite contacts build option and make Moblin support automatically turn it on.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 16850eaa3..3d1e09721 100644 --- a/configure.ac +++ b/configure.ac @@ -442,6 +442,7 @@ if test "x$enable_meego" != "xno"; then if test "x$have_meego" = "xyes"; then AC_DEFINE(HAVE_MEEGO, 1, [Define if you have meego]) + chain_enable_favourite_contacts="yes" fi else have_meego="no" @@ -456,6 +457,36 @@ AC_SUBST(MEEGO_CFLAGS) AC_SUBST(MEEGO_LIBS) # ----------------------------------------------------------- +# favourite contacts support +# ----------------------------------------------------------- +AC_ARG_ENABLE(favourite_contacts, + AS_HELP_STRING([--enable-favourite-contacts=@<:no/yes@:>@], + [Enable favourite contacts]), , + enable_favourite_contacts=no) + +if test "x$enable_favourite_contacts" != "xno" -o "x$chain_enable_favourite_contacts" == "xyes"; then + PKG_CHECK_MODULES(TELEPATHY_LOGGER, + [ + libtelepathy-logger + ], have_telepathy_logger="yes", have_telepathy_logger="no") + + if test "x$have_telepathy_logger" = "xyes"; then + have_favourite_contacts="yes" + AC_DEFINE(HAVE_FAVOURITE_CONTACTS, 1, [Define if you want favourite contacts support]) + fi +else + have_favourite_contacts="no" +fi + +if test "x$enable_favourite_contacts" = "xyes" -a "x$have_favourite_contacts" != "xyes"; then + AC_MSG_ERROR([Couldn't find favourite contacts dependencies.]) +fi + +AM_CONDITIONAL(HAVE_FAVOURITE_CONTACTS, test "x$have_telepathy_logger" = "xyes") +AC_SUBST(FAVOURITE_CONTACTS_CFLAGS) +AC_SUBST(FAVOURITE_CONTACTS_LIBS) + +# ----------------------------------------------------------- # nautilus-sendto # ----------------------------------------------------------- AC_ARG_ENABLE(nautilus-sendto, @@ -551,6 +582,7 @@ Configure summary: Location awareness (Geoclue): ${have_geoclue} Adium themes (Webkit).......: ${have_webkit} Meego widgets ..............: ${have_meego} + Favourite contacts .........: ${have_favourite_contacts} Control center embedding....: ${have_control_center_embedding} Logging: |