]> git.ipfire.org Git - thirdparty/strongswan.git/blobdiff - src/frontends/gnome/configure.ac
nm: Version bump to 1.5.2
[thirdparty/strongswan.git] / src / frontends / gnome / configure.ac
index 7eb38a6452b6153cf33c1faa8fabd50cac791595..f92049bf582349a0c7c88b3d64cef9a3cfe352df 100644 (file)
@@ -1,6 +1,6 @@
 AC_PREREQ(2.52)
 
-AC_INIT(NetworkManager-strongswan, 1.4.2, martin@strongswan.org, NetworkManager-strongswan)
+AC_INIT(NetworkManager-strongswan, 1.5.2, info@strongswan.org, NetworkManager-strongswan)
 AM_INIT_AUTOMAKE([subdir-objects])
 AM_MAINTAINER_MODE
 
@@ -48,17 +48,27 @@ PKG_CHECK_MODULES(LIBSECRET, libsecret-1)
 
 AC_ARG_WITH(
        [charon],
-       AS_HELP_STRING([--with-charon=file],[path to the strongSwan charon NetworkManager backend"]),
+       AS_HELP_STRING([--with-charon=file],[path to the strongSwan charon NetworkManager backend]),
        [AC_SUBST(charon, "$withval")],
        [AC_SUBST(charon, "${libexecdir}/ipsec/charon-nm")]
 )
+AC_ARG_WITH(
+       [nm-libexecdir],
+       AS_HELP_STRING([--nm-libexecdir=path],[use custom path where the auth dialog is installed]),
+       [nm_libexecdir="$withval"], []
+)
+AC_ARG_WITH(
+       [nm-plugindir],
+       AS_HELP_STRING([--nm-plugindir=path],[use custom path where the NM plugin is installed]),
+       [nm_plugindir="$withval"], []
+)
 AC_ARG_ENABLE(
        [nm-absolute-paths],
        AS_HELP_STRING([--enable-nm-absolute-paths],[use absolute paths for NM plugins in the .name file])
 )
 AC_ARG_WITH(
        [libnm-glib],
-       AS_HELP_STRING([--without-libnm-glib], [Build NetworkManager-strongswan without libnm-glib comatibility]),
+       AS_HELP_STRING([--without-libnm-glib], [build NetworkManager-strongswan without libnm-glib compatibility]),
        [with_libnm_glib=no],
        [with_libnm_glib=yes]
 )
@@ -73,15 +83,29 @@ PKG_CHECK_MODULES(LIBNMA, libnma >= 1.1.0)
 if test x"$with_libnm_glib" != xno; then
        PKG_CHECK_MODULES(LIBNM_GLIB, NetworkManager >= 1.1.0 libnm-util libnm-glib libnm-glib-vpn)
        PKG_CHECK_MODULES(LIBNM_GTK, libnm-gtk >= 1.1.0)
+       if test -z "$nm_libexecdir"; then
+               nm_libexecdir=$($PKG_CONFIG --variable=libgnome_serverdir NetworkManager)
+       fi
+       if test -z "$nm_plugindir"; then
+               nm_plugindir=$($PKG_CONFIG --variable=plugindir NetworkManager)
+       fi
+else
+       if test -z "$nm_libexecdir"; then
+               nm_libexecdir=$($PKG_CONFIG --variable=exec_prefix libnm)/lib/NetworkManager
+       fi
+       if test -z "$nm_plugindir"; then
+               nm_plugindir=$($PKG_CONFIG --variable=libdir libnm)/NetworkManager
+       fi
 fi
 
-nm_libexecdir=$($PKG_CONFIG --variable=libgnome_serverdir NetworkManager)
 AC_SUBST(nm_libexecdir)
-nm_plugindir=$($PKG_CONFIG --variable=plugindir NetworkManager)
 AC_SUBST(nm_plugindir)
 test x"$enable_nm_absolute_paths" = x"yes" && nm_plugindir_abs="$(nm_plugindir)/"
 AC_SUBST(nm_plugindir_abs)
 
+nmvpnservicedir=$($PKG_CONFIG --variable=vpnservicedir libnm)
+AC_SUBST(nmvpnservicedir)
+
 NM_COMPILER_WARNINGS
 
 AC_CONFIG_FILES([