configure.ac 1.25 KB
Newer Older
1
AC_PREREQ(2.53)
2
AC_INIT(gupnp, 0.6.99, 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

14
PKG_CHECK_MODULES(LIBGUPNP, gobject-2.0 >= 2.9.1 \
15
                            gmodule-2.0 \
16
                            gssdp-1.0 >= 0.3 \
17
                            libsoup-2.2 \
18
                            libxml-2.0 \
19 20
                            shared-mime-info \
                            uuid)
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

# 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

# Gettext
GETTEXT_PACKAGE=libgupnp
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], 
  [Define the gettext package to be used])

ALL_LINGUAS=""
AM_GLIB_GNU_GETTEXT
AM_GLIB_DEFINE_LOCALEDIR([LOCALEDIR])

GTK_DOC_CHECK([1.0])

AC_OUTPUT([
Makefile
libgupnp/Makefile
49
libgupnp/xdgmime/Makefile
50 51 52 53
tests/Makefile
po/Makefile.in
po/Makefile
doc/Makefile
54
doc/version.xml
55
gupnp-1.0.pc
56
gupnp-1.0-uninstalled.pc
57
])