configure.ac 1.6 KB
Newer Older
1
AC_PREREQ(2.53)
2
AC_INIT(gupnp, 0.13.0, http://www.gupnp.org/)
3
AM_INIT_AUTOMAKE()
4
AC_CONFIG_SRCDIR(libgupnp/gupnp.h)
5 6 7 8 9 10 11
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE

AC_ISC_POSIX
AC_PROG_CC
AC_STDC_HEADERS
AC_PROG_LIBTOOL
12
AC_FUNC_MMAP
13
AC_SYS_LARGEFILE
14

15 16
PKG_CHECK_MODULES(LIBGUPNP, glib-2.0 >= 2.18 \
                            gobject-2.0 >= 2.18 \
17
                            gmodule-2.0 \
Ross Burton's avatar
Ross Burton committed
18
                            gssdp-1.0 >= 0.7 \
19
                            libsoup-2.4 >= 2.4.1 \
20
                            libxml-2.0 \
21
                            uuid)
22

23 24
PKG_CHECK_MODULES(GTHREAD, gthread-2.0)

25 26 27 28 29 30 31 32 33 34 35 36 37 38
AC_ARG_WITH([context_manager],
            AS_HELP_STRING([--context-manager=@<:@network-manager/unix@:>@],
                           [Context Manager backend to use]),,
            [with_context_manager="network-manager"])

AC_MSG_CHECKING([Context Manager backend to use])
AC_MSG_RESULT([${with_context_manager}])
if test "x$with_context_manager" = "xnetwork-manager"; then
        PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1 >= 0.76)
fi

AM_CONDITIONAL([USE_NETWORK_MANAGER],
               [test "x$with_context_manager" = "xnetwork-manager"])

39 40 41 42 43 44 45 46 47 48 49 50
# 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

51
# Gtk-doc
52 53 54 55 56
GTK_DOC_CHECK([1.0])

AC_OUTPUT([
Makefile
libgupnp/Makefile
57
examples/Makefile
58
tools/Makefile
59 60
tests/Makefile
doc/Makefile
61
doc/version.xml
62
gupnp-1.0.pc
63
gupnp-1.0-uninstalled.pc
64
])