aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-08-19 20:31:21 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2009-08-20 00:17:03 +0800
commit094a490dac0da29d685e5f1cbb06bc6caa588d3a (patch)
tree017139cbd2d0d7fc05e43b75307f3cb7975323ad /configure.ac
parent4b87ece33144d35023b713d8e7d1be9262bc272a (diff)
downloadgsoc2013-empathy-094a490dac0da29d685e5f1cbb06bc6caa588d3a.tar
gsoc2013-empathy-094a490dac0da29d685e5f1cbb06bc6caa588d3a.tar.gz
gsoc2013-empathy-094a490dac0da29d685e5f1cbb06bc6caa588d3a.tar.bz2
gsoc2013-empathy-094a490dac0da29d685e5f1cbb06bc6caa588d3a.tar.lz
gsoc2013-empathy-094a490dac0da29d685e5f1cbb06bc6caa588d3a.tar.xz
gsoc2013-empathy-094a490dac0da29d685e5f1cbb06bc6caa588d3a.tar.zst
gsoc2013-empathy-094a490dac0da29d685e5f1cbb06bc6caa588d3a.zip
configure: enable connectivity building with nm, connman, auto or none
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac56
1 files changed, 43 insertions, 13 deletions
diff --git a/configure.ac b/configure.ac
index 3484e3cd3..00c6b4da5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -157,30 +157,57 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
AM_GLIB_GNU_GETTEXT
# -----------------------------------------------------------
-# NM integration
+# Connectivity integration
# -----------------------------------------------------------
-AC_ARG_ENABLE(network-manager,
- AS_HELP_STRING([--enable-network-manager=@<:@no/yes/auto@:>@],
- [build with network-manager support]), ,
- enable_network_manager=auto)
+AC_ARG_WITH(connectivity,
+ AS_HELP_STRING([--with-connectivity=@<:@nm/connman/auto/no@:>@],
+ [build with connectivity support]), ,
+ with_connectivity=auto)
-if test "x$enable_network_manager" != "xno"; then
- PKG_CHECK_MODULES(NETWORK_MANAGER,
- [
- libnm_glib >= $NETWORK_MANAGER_REQUIRED
- ], have_nm="yes", have_nm="no")
+PKG_CHECK_MODULES(NETWORK_MANAGER,
+[
+ libnm_glib >= $NETWORK_MANAGER_REQUIRED
+], have_nm="yes", have_nm="no")
+
+PKG_CHECK_MODULES(CONNMAN,
+[
+ dbus-glib-1
+], have_connman="yes", have_connman="no")
+if test "x$with_connectivity" = "xno"; then
+ have_nm=no
+ have_connman=no
+
+elif test "x$with_connectivity" = "xnm"; then
if test "x$have_nm" = "xyes"; then
AC_DEFINE(HAVE_NM, 1, [Define if you have libnm-glib])
+ have_connman=no
fi
+
+elif test "x$with_connectivity" = "xconnman"; then
+ if test "x$have_connman" = "xyes"; then
+ AC_DEFINE(HAVE_CONNMAN, 1, [Define if you have connman dependencies])
+ have_nm=no
+ fi
+
else
- have_nm=no
+ if test "x$have_nm" = "xyes"; then
+ AC_DEFINE(HAVE_NM, 1, [Define if you have libnm-glib])
+ have_connman=no
+ fi
+
fi
-if test "x$enable_network_manager" = "xyes" -a "x$have_nm" != "xyes"; then
+if test "x$with_connectivity" = "xconnman" -a "x$have_connman" != "xyes"; then
+ AC_MSG_ERROR([Couldn't find connman dependencies.])
+fi
+
+if test "x$with_connectivity" = "xnm" -a "x$have_nm" != "xyes"; then
AC_MSG_ERROR([Couldn't find libnm-glib dependencies.])
fi
-AM_CONDITIONAL(HAVE_NM, test "x$have_NM" = "xyes")
+
+AM_CONDITIONAL(HAVE_NM, test "x$have_nm" = "xyes")
+AM_CONDITIONAL(HAVE_CONNMAN, test "x$have_connman" = "xyes")
# -----------------------------------------------------------
# Webkit
@@ -479,7 +506,10 @@ Configure summary:
Display maps (libchamplain).: ${have_libchamplain}
Location awareness (Geoclue): ${have_geoclue}
Adium themes (Webkit).......: ${have_webkit}
+
+ Connectivity:
NetworkManager integration..: ${have_nm}
+ ConnMan integration.........: ${have_connman}
Extras:
Documentation...............: ${enable_gtk_doc}