[network-manager-openconnect/lr/libnm: 7/9] build: allow build without libnm-glib
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openconnect/lr/libnm: 7/9] build: allow build without libnm-glib
- Date: Fri, 21 Aug 2015 10:56:44 +0000 (UTC)
commit 85fe83a3c3ebedec0f2ae887e60afe6bd210ec08
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Fri Jul 24 18:12:47 2015 +0200
build: allow build without libnm-glib
configure.ac | 17 +++++++++++------
properties/Makefile.am | 5 ++++-
2 files changed, 15 insertions(+), 7 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index efb7c2b..1760ff4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,6 +42,9 @@ dnl
AC_ARG_WITH(gnome, AS_HELP_STRING([--without-gnome], [Build NetworkManager-openconnect without GNOME
support, e.g. vpn service only]))
AM_CONDITIONAL(WITH_GNOME, test x"$with_gnome" != xno)
+AC_ARG_WITH(libnm-glib, AS_HELP_STRING([--without-libnm-glib], [Build NetworkManager-openconnect without
libnm-glib comatibility]))
+AM_CONDITIONAL(WITH_LIBNM_GLIB, test x"$with_libnm_glib" != xno)
+
AC_ARG_WITH(authdlg, AS_HELP_STRING([--without-authdlg], [Build NetworkManager-openconnect without
authentication dialog]))
AM_CONDITIONAL(WITH_AUTHDLG, test x"$with_authdlg" != xno)
@@ -68,13 +71,15 @@ if test x"$with_gnome" != xno; then
if test x"$with_authdlg" != xno; then
PKG_CHECK_MODULES(OPENCONNECT, openconnect >= 3.02)
fi
-fi
-PKG_CHECK_MODULES(LIBNM_GLIB,
- NetworkManager >= 1.1.0
- libnm-util >= 1.1.0
- libnm-glib >= 1.1.0
- libnm-glib-vpn >= 1.1.0)
+ if test x"$with_libnm_glib" != xno; then
+ PKG_CHECK_MODULES(LIBNM_GLIB,
+ NetworkManager >= 1.1.0
+ libnm-util >= 1.1.0
+ libnm-glib >= 1.1.0
+ libnm-glib-vpn >= 1.1.0)
+ fi
+fi
dnl
dnl Distribution version string
diff --git a/properties/Makefile.am b/properties/Makefile.am
index 7ba12cc..c0e3829 100644
--- a/properties/Makefile.am
+++ b/properties/Makefile.am
@@ -1,5 +1,8 @@
plugindir = $(libdir)/NetworkManager
-plugin_LTLIBRARIES = libnm-vpn-plugin-openconnect.la libnm-openconnect-properties.la
+plugin_LTLIBRARIES = libnm-vpn-plugin-openconnect.la
+if WITH_LIBNM_GLIB
+plugin_LTLIBRARIES += libnm-openconnect-properties.la
+endif
libnm_vpn_plugin_openconnect_la_SOURCES = \
auth-helpers.c \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]