aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-09-28 02:17:50 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-09-28 02:17:50 +0800
commitc0c510473a1ac11e1718c7893f9276701b784eb6 (patch)
tree77bb609aa3353ec16880f71f3708790b07f5e0d4 /configure.ac
parent05b934b4c03aa24f3be3ac493b7c7485756f6383 (diff)
downloadgsoc2013-empathy-c0c510473a1ac11e1718c7893f9276701b784eb6.tar
gsoc2013-empathy-c0c510473a1ac11e1718c7893f9276701b784eb6.tar.gz
gsoc2013-empathy-c0c510473a1ac11e1718c7893f9276701b784eb6.tar.bz2
gsoc2013-empathy-c0c510473a1ac11e1718c7893f9276701b784eb6.tar.lz
gsoc2013-empathy-c0c510473a1ac11e1718c7893f9276701b784eb6.tar.xz
gsoc2013-empathy-c0c510473a1ac11e1718c7893f9276701b784eb6.tar.zst
gsoc2013-empathy-c0c510473a1ac11e1718c7893f9276701b784eb6.zip
Add configure switches for nbtk (off by default).
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 79fc93f89..4df19bd12 100644
--- a/configure.ac
+++ b/configure.ac
@@ -327,6 +327,33 @@ AC_SUBST(GEOCLUE_CFLAGS)
AC_SUBST(GEOCLUE_LIBS)
# -----------------------------------------------------------
+# moblin widgets support
+# -----------------------------------------------------------
+AC_ARG_ENABLE(moblin,
+ AS_HELP_STRING([--enable-moblin=@<:no/yes@:>@],
+ [Enable moblin widgets]), ,
+ enable_moblin=no)
+
+if test "x$enable_moblin" != "xno"; then
+ PKG_CHECK_MODULES(MOBLIN,
+ [nbtk-gtk-1.2], have_nbtk="yes", have_nbtk="no")
+
+ if test "x$have_nbtk" = "xyes"; then
+ AC_DEFINE(HAVE_NBTK, 1, [Define if you have nbtk])
+ fi
+else
+ have_nbtk="no"
+fi
+
+if test "x$enable_moblin" = "xyes" -a "x$have_nbtk" != "xyes"; then
+ AC_MSG_ERROR([Couldn't find moblin dependencies.])
+fi
+
+AM_CONDITIONAL(HAVE_NBTK, test "x$have_nbtk" = "xyes")
+AC_SUBST(MOBLIN_CFLAGS)
+AC_SUBST(MOBLIN_LIBS)
+
+# -----------------------------------------------------------
# Megaphone
# -----------------------------------------------------------
AC_ARG_ENABLE(megaphone,
@@ -524,6 +551,7 @@ Configure summary:
Display maps (libchamplain).: ${have_libchamplain}
Location awareness (Geoclue): ${have_geoclue}
Adium themes (Webkit).......: ${have_webkit}
+ Moblin widgets (Nbtk).......: ${have_nbtk}
Connectivity:
NetworkManager integration..: ${have_nm}