3 AC_INIT(NetworkManager-strongswan, 1.4.0, martin@strongswan.org, NetworkManager-strongswan)
4 AM_INIT_AUTOMAKE([subdir-objects])
7 AC_CONFIG_MACRO_DIR([m4])
8 AC_CONFIG_HEADERS([config.h])
23 AC_CHECK_HEADERS(fcntl.h paths.h sys/ioctl.h sys/time.h syslog.h unistd.h)
26 dnl Checks for typedefs, structures, and compiler characteristics.
33 dnl Checks for library functions.
35 AC_PROG_GCC_TRADITIONAL
37 AC_CHECK_FUNCS(select socket uname)
39 GETTEXT_PACKAGE=NetworkManager-strongswan
40 AC_SUBST(GETTEXT_PACKAGE)
41 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
43 IT_PROG_INTLTOOL([0.35])
46 PKG_CHECK_MODULES(GTK, gtk+-3.0 >= 3.0)
47 PKG_CHECK_MODULES(LIBSECRET, libsecret-1)
49 PKG_CHECK_MODULES(LIBNM_GLIB, NetworkManager >= 1.1.0 libnm-util libnm-glib libnm-glib-vpn)
50 PKG_CHECK_MODULES(LIBNM_GTK, libnm-gtk >= 1.1.0)
51 PKG_CHECK_MODULES(LIBNMA, libnma >= 1.1.0)
53 PKG_CHECK_MODULES(LIBNM, libnm >= 1.1.0)
54 LIBNM_CFLAGS="$LIBNM_CFLAGS -DNM_VERSION_MIN_REQUIRED=NM_VERSION_1_2"
55 LIBNM_CFLAGS="$LIBNM_CFLAGS -DNM_VERSION_MAX_ALLOWED=NM_VERSION_1_2"
59 AS_HELP_STRING([--with-charon=file],[path to the strongSwan charon NetworkManager backend"]),
60 [AC_SUBST(charon, "$withval")],
61 [AC_SUBST(charon, "${libexecdir}/ipsec/charon-nm")]
65 AS_HELP_STRING([--enable-nm-absolute-paths],[use absolute paths for NM plugins in the .name file])
68 nm_libexecdir=$($PKG_CONFIG --variable=libgnome_serverdir NetworkManager)
69 AC_SUBST(nm_libexecdir)
70 nm_plugindir=$($PKG_CONFIG --variable=plugindir NetworkManager)
71 AC_SUBST(nm_plugindir)
72 test x"$enable_nm_absolute_paths" = x"yes" && nm_plugindir_abs="$(nm_plugindir)/"
73 AC_SUBST(nm_plugindir_abs)