1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
AC_PREREQ(2.53)
AC_INIT(gupnp, 0.16.0, http://www.gupnp.org/)
AM_INIT_AUTOMAKE()
AC_CONFIG_SRCDIR(libgupnp/gupnp.h)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
AC_CANONICAL_HOST
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_ISC_POSIX
AC_PROG_CC
AC_STDC_HEADERS
AC_PROG_LIBTOOL
AC_CONFIG_MACRO_DIR([m4])
AC_FUNC_MMAP
AC_SYS_LARGEFILE
AC_MSG_CHECKING([operating system])
case "$host_os" in
mingw*|cygwin*)
AC_MSG_RESULT(Win32)
UUID=uuid
;;
darwin*)
AC_MSG_RESULT(Darwin)
UUID=
;;
*)
AC_MSG_RESULT($host_os)
UUID=uuid
;;
esac
PKG_CHECK_MODULES(LIBGUPNP, glib-2.0 >= 2.24.0 \
gio-2.0 \
gmodule-2.0 \
gssdp-1.0 >= 0.9.2 \
libsoup-2.4 >= 2.28.2 \
libxml-2.0 \
$UUID)
PKG_CHECK_MODULES(GTHREAD, gthread-2.0)
AC_ARG_WITH([context_manager],
AS_HELP_STRING(
[--with-context-manager=@<:@network-manager/unix@:>@],
[Context Manager backend to use]),,
[with_context_manager="unix"])
AC_MSG_CHECKING([Context Manager backend to use])
AC_MSG_RESULT([${with_context_manager}])
AM_CONDITIONAL([USE_NETWORK_MANAGER],
[test "x$with_context_manager" = "xnetwork-manager"])
USE_CONIC=no
if test "x$with_context_manager" = "xunix"; then
dnl Use libconic if it's available
PKG_CHECK_MODULES(LIBCONIC, conic >= 0.13,
[ USE_CONIC=yes
AC_SUBST(LIBCONIC_CFLAGS)
AC_SUBST(LIBCONIC_LIBS)
],
[ USE_CONIC=no
AC_MSG_WARN([conic 0.13 or greater not found.])
])
fi
AM_CONDITIONAL(USE_CONIC, test x$USE_CONIC = xyes)
AC_SUBST(USE_CONIC)
# We need dbus-glib if either NetworkManager or libconic is used
if test "x$with_context_manager" = "xnetwork-manager" -o \
"x$with_context_manager" = "xunix" -a \
"x$USE_CONIC" = "xyes"; then
# We need gio >= 2.26 to use GDBus
PKG_CHECK_MODULES(GIO, gio-2.0 >= 2.26)
fi
# glib-genmarshal
GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
AC_SUBST(GLIB_GENMARSHAL)
# Debugging
AC_ARG_ENABLE(debug,
[ --enable-debug enable debugging],,
enable_debug=no)
if test "x$enable_debug" = "xyes"; then
CFLAGS="$CFLAGS -g -Wall -Werror"
fi
GOBJECT_INTROSPECTION_CHECK([0.6.4])
# Gtk-doc
GTK_DOC_CHECK([1.0])
AC_OUTPUT([
Makefile
libgupnp/Makefile
examples/Makefile
tools/Makefile
tests/Makefile
doc/Makefile
doc/version.xml
gupnp-1.0.pc
gupnp-1.0-uninstalled.pc
])
|