4 [http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp],
6 [http://www.gupnp.org/])
8 AC_CONFIG_HEADERS([config.h])
9 AC_CONFIG_SRCDIR([libgupnp/gupnp.h])
10 AC_CONFIG_MACRO_DIR([m4])
11 AC_CONFIG_AUX_DIR([build-aux])
16 AM_INIT_AUTOMAKE([1.11 tar-ustar no-dist-gzip dist-xz])
17 AM_MAINTAINER_MODE([enable])
19 AM_SILENT_RULES([yes])
31 PKG_CHECK_MODULES(GTest, glib-2.0 >= 2.16, [gtest=yes], [gtest=no])
32 AM_CONDITIONAL(HAVE_GTEST, [test x$gtest = xyes])
34 AC_MSG_CHECKING([operating system])
45 AC_MSG_RESULT($target_os)
50 PKG_CHECK_MODULES(LIBGUPNP, glib-2.0 >= 2.24.0 \
54 libsoup-2.4 >= 2.28.2 \
58 PKG_CHECK_MODULES(GTHREAD, gthread-2.0)
60 AC_ARG_WITH([context_manager],
62 [--with-context-manager=@<:@network-manager/connman/unix/linux@:>@],
63 [Context Manager backend to use]),,
64 [with_context_manager="none"])
66 if test "x$with_context_manager" = "xnone"; then
69 with_context_manager="linux"
72 with_context_manager="unix"
77 AC_CHECK_HEADERS([sys/socket.h linux/rtnetlink.h],
80 [ #ifdef HAVE_SYS_SOCKET_H
81 #include <sys/socket.h>
84 AM_CONDITIONAL([HAVE_NETLINK], [test "x$HAVE_NETLINK" = "xyes"])
85 AC_SUBST(HAVE_NETLINK)
87 AC_CHECK_HEADERS([linux/wireless.h], [], [],
88 [ #ifdef HAVE_SYS_SOCKET_H
89 #include <sys/socket.h>
93 AC_MSG_CHECKING([Context Manager backend to use])
94 AC_MSG_RESULT([${with_context_manager}])
96 AM_CONDITIONAL([USE_NETWORK_MANAGER],
97 [test "x$with_context_manager" = "xnetwork-manager"])
98 AS_IF([test "x$with_context_manager" = "xnetwork-manager"],
99 [PKG_CHECK_MODULES(GIO, gio-2.0 >= 2.26)])
101 AM_CONDITIONAL([USE_CONNMAN],
102 [test "x$with_context_manager" = "xconnman"])
104 if test "x$with_context_manager" = "xconnman"; then
105 PKG_CHECK_MODULES(CONNMAN, glib-2.0 >= 2.28 connman >= 0.80)
109 AS_IF([test "x$with_context_manager" = "xlinux"],
110 [AS_IF([test "x$HAVE_NETLINK" = "xno"],
111 [AC_MSG_NOTICE([No rtnetlink found, falling back to static context manager])],
115 AM_CONDITIONAL(USE_NETLINK, test "x$USE_NETLINK" = "xyes")
116 AC_SUBST(USE_NETLINK)
119 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
120 AC_SUBST(GLIB_GENMARSHAL)
124 AS_HELP_STRING([--enable-debug], [enable debugging]),,
126 if test "x$enable_debug" = "xyes"; then
127 CFLAGS="$CFLAGS -g -Wall -Werror"
130 GOBJECT_INTROSPECTION_CHECK([0.6.4])
133 AS_IF([test "x$found_introspection" = "xyes"],
135 VALA_PROG_VAPIGEN([0.14])
138 AM_CONDITIONAL([HAVE_VAPIGEN], [test "x$VAPIGEN" != "x"])
154 gupnp-1.0-uninstalled.pc