handle zero size Base64 conversions
[strongswan.git] / src / frontends / gnome / configure.ac
1 AC_PREREQ(2.52)
2
3 AC_INIT(NetworkManager-strongswan, 1.2.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 if test x"$with_gnome" != xno; then
54         PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.6)
55         AC_SUBST(GTK_CFLAGS)
56         AC_SUBST(GTK_LIBS)
57
58         PKG_CHECK_MODULES(GDK_PIXBUF, gdk-pixbuf-2.0)
59         AC_SUBST(GDK_PIXBUF_CFLAGS)
60         AC_SUBST(GDK_PIXBUF_LIBS)
61
62         PKG_CHECK_MODULES(GLADE, libglade-2.0)
63         AC_SUBST(GLADE_CFLAGS)
64         AC_SUBST(GLADE_LIBS)
65
66         PKG_CHECK_MODULES(LIBGNOMEUI, libgnomeui-2.0)
67         AC_SUBST(LIBGNOMEUI_CFLAGS)
68         AC_SUBST(LIBGNOMEUI_LIBS)
69
70         PKG_CHECK_MODULES(GCONF, gconf-2.0)
71         AC_SUBST(GCONF_CFLAGS)
72         AC_SUBST(GCONF_LIBS)
73
74         PKG_CHECK_MODULES(GNOMEKEYRING, gnome-keyring-1)
75         AC_SUBST(GNOMEKEYRING_CFLAGS)
76         AC_SUBST(GNOMEKEYRING_LIBS)
77 fi
78
79 PKG_CHECK_EXISTS([libnm-glib],
80         [PKG_CHECK_MODULES(NM_UTILS, NetworkManager >= 0.7.0 libnm-util libnm-glib libnm-glib-vpn)],
81         [PKG_CHECK_MODULES(NM_UTILS, NetworkManager >= 0.7.0 libnm-util libnm_glib libnm_glib_vpn)]
82 )
83 AC_SUBST(NM_UTILS_CFLAGS)
84 AC_SUBST(NM_UTILS_LIBS)
85
86 AC_ARG_WITH(
87         [charon],
88         AS_HELP_STRING([--with-charon=file],[path to the strongSwan IKEv2 daemon charon"]),
89         [AC_SUBST(charon, "$withval")],
90         [AC_SUBST(charon, "${libexecdir}/ipsec/charon")]
91 )
92
93 NM_COMPILER_WARNINGS
94
95 AC_CONFIG_FILES([
96 Makefile
97 properties/Makefile
98 auth-dialog/Makefile
99 po/Makefile.in
100 ])
101 AC_OUTPUT