gst-convenience: Change GstDiscoverer namespace
[gupnp:gupnp-dlna.git] / configure.ac
1 AC_PREREQ(2.53)
2 AC_INIT(gupnp-dlna, 0.4.1, http://www.gupnp.org/)
3 AM_INIT_AUTOMAKE()
4 AC_CONFIG_SRCDIR(libgupnp-dlna/gupnp-dlna-profile.h)
5 AM_CONFIG_HEADER(config.h)
6
7 dnl library versioning
8 dnl Increase when changing the API
9 GUPNP_DLNA_CURRENT=0
10
11 dnl Update when changing implementation of current API,
12 dnl reset to 0 when changing CURRENT.  This is the revision of
13 dnl current API version
14 GUPNP_DLNA_REVISION=0
15
16 dnl Increase if API change is ABI compatible, otherwise reset to 0
17 GUPNP_DLNA_AGE=0
18
19 GUPNP_DLNA_VERSION_INFO="$GUPNP_DLNA_CURRENT:$GUPNP_DLNA_REVISION:$GUPNP_DLNA_AGE"
20 AC_SUBST(GUPNP_DLNA_VERSION_INFO)
21
22 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],)
23
24 AC_ISC_POSIX
25 AC_PROG_CC
26 AC_STDC_HEADERS
27 AC_LIBTOOL_WIN32_DLL
28 AC_PROG_LIBTOOL
29
30 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= 2.5.0)
31
32 GST_MAJORMINOR=0.10
33 GST_REQ=0.10.29.2
34 GSTVID_REQ=0.10.25
35 GSTPBU_REQ=0.10.25
36
37 PKG_CHECK_MODULES(GST, gstreamer-$GST_MAJORMINOR >= $GST_REQ)
38 PKG_CHECK_MODULES(GST_BASE, gstreamer-base-$GST_MAJORMINOR >= $GST_REQ)
39 PKG_CHECK_MODULES(GST_VIDEO, gstreamer-video-$GST_MAJORMINOR >= $GSTVID_REQ)
40 dnl PKG_CHECK_MODULES(GST_PBU, gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ)
41 AC_SUBST(GST_MAJORMINOR)
42
43 GST_CFLAGS="$GST_CFLAGS -DGST_USE_UNSTABLE_API"
44 AC_SUBST(GST_CFLAGS)
45
46 # glib-genmarshal
47 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
48 AC_SUBST(GLIB_GENMARSHAL)
49
50 # Debugging
51 AC_ARG_ENABLE(debug,
52         [  --enable-debug          enable debugging],,
53         enable_debug=no)
54 if test "x$enable_debug" = "xyes"; then
55         CFLAGS="$CFLAGS -g -Wall"
56 fi
57
58 GTK_DOC_CHECK([1.0])
59
60 AC_OUTPUT([
61 Makefile
62 gst-convenience/Makefile
63 gst-convenience/gst-libs/Makefile
64 gst-convenience/gst-libs/gst/Makefile
65 gst-convenience/gst-libs/gst/discoverer/Makefile
66 gst-convenience/gst-libs/gst/profile/Makefile
67 libgupnp-dlna/Makefile
68 tools/Makefile
69 tests/Makefile
70 tests/test-discoverer.sh
71 doc/Makefile
72 doc/version.xml
73 data/Makefile
74 gupnp-dlna-1.0.pc
75 gupnp-dlna-1.0-uninstalled.pc
76 ])