aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-07-31 11:16:14 +0000
committerMartin Willi <martin@strongswan.org>2008-07-31 11:16:14 +0000
commit6dbce9c803c06af4ff0f41468d1ffdf0776d4070 (patch)
tree1a4a1923bd9588441be3eccb7870b7741cbc6242 /configure.in
parent2d87903db9cb9cfef4c17bae89cdc3e8076c4ab6 (diff)
downloadstrongswan-6dbce9c803c06af4ff0f41468d1ffdf0776d4070.tar.bz2
strongswan-6dbce9c803c06af4ff0f41468d1ffdf0776d4070.tar.xz
reimplemented dbus plugin for NetworkManager 0.7, renamed to nm
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 9531bb361..8c790eb1b 100644
--- a/configure.in
+++ b/configure.in
@@ -563,6 +563,14 @@ AC_ARG_ENABLE(
fi]
)
+AC_ARG_ENABLE(
+ [nm],
+ AS_HELP_STRING([--enable-nm],[enable NetworkManager plugin (default is NO).]),
+ [if test x$enableval = xyes; then
+ nm=true
+ fi]
+)
+
dnl =========================
dnl check required programs
dnl =========================
@@ -705,6 +713,12 @@ if test x$uci = xtrue; then
AC_CHECK_HEADER([uci.h],,[AC_MSG_ERROR([UCI header uci.h not found!])])
fi
+if test x$nm = xtrue; then
+ PKG_CHECK_MODULES(nm, [NetworkManager libnm_glib_vpn gthread-2.0])
+ AC_SUBST(nm_CFLAGS)
+ AC_SUBST(nm_LIBS)
+fi
+
dnl ======================================
dnl collect all plugins for libstrongswan
dnl ======================================
@@ -798,6 +812,7 @@ dnl ==============
AM_CONDITIONAL(USE_STROKE, test x$stroke = xtrue)
AM_CONDITIONAL(USE_MEDSRV, test x$medsrv = xtrue)
AM_CONDITIONAL(USE_MEDCLI, test x$medcli = xtrue)
+AM_CONDITIONAL(USE_NM, test x$nm = xtrue)
AM_CONDITIONAL(USE_UCI, test x$uci = xtrue)
AM_CONDITIONAL(USE_SMP, test x$smp = xtrue)
AM_CONDITIONAL(USE_SQL, test x$sql = xtrue)
@@ -876,6 +891,7 @@ AC_OUTPUT(
src/charon/plugins/sql/Makefile
src/charon/plugins/medsrv/Makefile
src/charon/plugins/medcli/Makefile
+ src/charon/plugins/nm/Makefile
src/charon/plugins/uci/Makefile
src/charon/plugins/stroke/Makefile
src/charon/plugins/unit_tester/Makefile