nm: Don't hardcode install path for .name file
authorTobias Brunner <tobias@strongswan.org>
Wed, 25 Apr 2018 07:45:07 +0000 (09:45 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 7 May 2018 10:09:32 +0000 (12:09 +0200)
src/frontends/gnome/Makefile.am
src/frontends/gnome/configure.ac

index 2b022bf..9b8c676 100644 (file)
@@ -2,7 +2,6 @@ AUTOMAKE_OPTIONS = foreign
 
 SUBDIRS = properties auth-dialog po
 
-nmvpnservicedir = $(prefix)/lib/NetworkManager/VPN
 nmvpnservice_DATA = nm-strongswan-service.name
 
 @INTLTOOL_DESKTOP_RULE@
index 61de540..1d77493 100644 (file)
@@ -103,6 +103,9 @@ 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([