Added a custom adapter and layout to display VPN profiles in a ListView
[strongswan.git] / src / frontends / gnome / configure.ac
1 AC_PREREQ(2.52)
2
3 AC_INIT(NetworkManager-strongswan, 1.3.0, martin@strongswan.org, NetworkManager-strongswan)
4 AM_INIT_AUTOMAKE([subdir-objects])
5 AM_MAINTAINER_MODE
6
7 AC_CONFIG_MACRO_DIR([m4])
8 AC_CONFIG_HEADERS([config.h])
9
10 dnl
11 dnl Require programs
12 dnl
13 AC_PROG_CC
14 AM_PROG_CC_C_O
15 AC_PROG_INSTALL
16 AC_PROG_LIBTOOL
17
18 dnl
19 dnl Required headers
20 dnl
21 AC_HEADER_STDC
22 AC_CHECK_HEADERS(fcntl.h paths.h sys/ioctl.h sys/time.h syslog.h unistd.h)
23
24 dnl
25 dnl Checks for typedefs, structures, and compiler characteristics.
26 dnl
27 AC_TYPE_MODE_T
28 AC_TYPE_PID_T
29 AC_HEADER_TIME
30
31 dnl
32 dnl Checks for library functions.
33 dnl
34 AC_PROG_GCC_TRADITIONAL
35 AC_FUNC_MEMCMP
36 AC_CHECK_FUNCS(select socket uname)
37
38 GETTEXT_PACKAGE=NetworkManager-strongswan
39 AC_SUBST(GETTEXT_PACKAGE)
40 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
41
42 IT_PROG_INTLTOOL([0.35])
43 AM_GLIB_GNU_GETTEXT
44
45 PKG_CHECK_MODULES(GTHREAD, gthread-2.0)
46 AC_SUBST(GTHREAD_CFLAGS)
47 AC_SUBST(GTHREAD_LIBS)
48
49 PKG_CHECK_MODULES(DBUS, dbus-glib-1 >= 0.30)
50 AC_SUBST(DBUS_CFLAGS)
51 AC_SUBST(DBUS_LIBS)
52
53 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.6)
54 AC_SUBST(GTK_CFLAGS)
55 AC_SUBST(GTK_LIBS)
56
57 PKG_CHECK_MODULES(LIBGNOMEUI, libgnomeui-2.0)
58 AC_SUBST(LIBGNOMEUI_CFLAGS)
59 AC_SUBST(LIBGNOMEUI_LIBS)
60
61 PKG_CHECK_MODULES(GNOMEKEYRING, gnome-keyring-1)
62 AC_SUBST(GNOMEKEYRING_CFLAGS)
63 AC_SUBST(GNOMEKEYRING_LIBS)
64
65 PKG_CHECK_EXISTS([libnm-glib],
66         [PKG_CHECK_MODULES(NM_UTILS, NetworkManager >= 0.9.0 libnm-util libnm-glib libnm-glib-vpn)],
67         [PKG_CHECK_MODULES(NM_UTILS, NetworkManager >= 0.9.0 libnm-util libnm_glib libnm_glib_vpn)]
68 )
69 AC_SUBST(NM_UTILS_CFLAGS)
70 AC_SUBST(NM_UTILS_LIBS)
71
72 AC_ARG_WITH(
73         [charon],
74         AS_HELP_STRING([--with-charon=file],[path to the strongSwan charon NetworkManager backend"]),
75         [AC_SUBST(charon, "$withval")],
76         [AC_SUBST(charon, "${libexecdir}/ipsec/charon-nm")]
77 )
78
79 NM_COMPILER_WARNINGS
80
81 AC_CONFIG_FILES([
82 Makefile
83 properties/Makefile
84 auth-dialog/Makefile
85 po/Makefile.in
86 ])
87 AC_OUTPUT