~ubuntu-branches/ubuntu/saucy/gupnp-tools/saucy

1.3.1 by Andreas Henriksson
Import upstream version 0.8.4
1
AC_PREREQ([2.63])
2
AC_INIT([gupnp-tools],
1.2.9 by Andreas Henriksson
Import upstream version 0.8.7
3
        [0.8.7],
1.2.7 by Andreas Henriksson
Import upstream version 0.8.6
4
        [https://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp-tools],
1.3.1 by Andreas Henriksson
Import upstream version 0.8.4
5
        [gupnp-tools],
6
        [http://www.gupnp.org/])
7
8
AC_CONFIG_HEADERS([config.h])
1.1.1 by Ross Burton
Import upstream version 0.3
9
AC_CONFIG_SRCDIR(src/common/icons.h)
1.3.1 by Andreas Henriksson
Import upstream version 0.8.4
10
AC_CONFIG_MACRO_DIR([m4])
11
AC_CONFIG_AUX_DIR([build-aux])
12
13
AM_INIT_AUTOMAKE([1.11 tar-ustar no-dist-gzip dist-xz])
14
AM_MAINTAINER_MODE([enable])
15
AM_SILENT_RULES([yes])
16
17
AC_SEARCH_LIBS([strerror],[cposix])
1 by Ross Burton
Import upstream version 0.2
18
AC_PROG_CC
1.3.1 by Andreas Henriksson
Import upstream version 0.8.4
19
AC_HEADER_STDC
1 by Ross Burton
Import upstream version 0.2
20
AC_FUNC_MMAP
21
1.3.1 by Andreas Henriksson
Import upstream version 0.8.4
22
# libtool
23
LT_PREREQ([2.2])
24
LT_INIT([])
25
1.3.2 by Andreas Henriksson
Import upstream version 0.8.5
26
GLIB_REQUIRED=2.24
1.2.7 by Andreas Henriksson
Import upstream version 0.8.6
27
GSSDP_REQUIRED=0.13.3
28
GUPNP_REQUIRED=0.18.0
1.3.2 by Andreas Henriksson
Import upstream version 0.8.5
29
SOUP_REQUIRED=2.4
1.2.4 by Andreas Henriksson
Import upstream version 0.8.1
30
GUPNP_AV_REQUIRED=0.5.5
1.2.5 by Andreas Henriksson
Import upstream version 0.8.2
31
GTK_REQUIRED=3.0.0
1.2.2 by Ross Burton
Import upstream version 0.7.1
32
GTHREAD_REQUIRED=2.12
1.1.1 by Ross Burton
Import upstream version 0.3
33
ICON_THEME_REQUIRED=2.20
1.2.7 by Andreas Henriksson
Import upstream version 0.8.6
34
GTKSOURCEVIEW_REQUIRED=3.2.0
1.2.8 by Andreas Henriksson
Import upstream version 0.8.6.1
35
LIBXML_REQUIRED=2.0
1.1.1 by Ross Burton
Import upstream version 0.3
36
1.2.4 by Andreas Henriksson
Import upstream version 0.8.1
37
AC_MSG_CHECKING([for Win32])
38
case "$host" in
39
    *-*-mingw*)
40
        os_win32=yes
41
        ;;
42
    *)
43
        os_win32=no
44
        ;;
45
esac
46
AC_MSG_RESULT([$os_win32])
47
AM_CONDITIONAL(OS_WIN32, [test $os_win32 = yes])
48
1.3.1 by Andreas Henriksson
Import upstream version 0.8.4
49
PKG_CHECK_MODULES(LIBGSSDP, gssdp-1.0 >= $GSSDP_REQUIRED)
1.1.1 by Ross Burton
Import upstream version 0.3
50
PKG_CHECK_MODULES(LIBGUPNP, gupnp-1.0 >= $GUPNP_REQUIRED)
1.3.2 by Andreas Henriksson
Import upstream version 0.8.5
51
PKG_CHECK_MODULES(LIBSOUP, libsoup-2.4 >= $SOUP_REQUIRED)
1.2.8 by Andreas Henriksson
Import upstream version 0.8.6.1
52
PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED)
1.2.5 by Andreas Henriksson
Import upstream version 0.8.2
53
PKG_CHECK_MODULES(GTK, gtk+-3.0 >= $GTK_REQUIRED)
1.2.2 by Ross Burton
Import upstream version 0.7.1
54
PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= $GTHREAD_REQUIRED)
1.1.1 by Ross Burton
Import upstream version 0.3
55
PKG_CHECK_MODULES(GNOME_ICON_THEME, gnome-icon-theme >= $ICON_THEME_REQUIRED)
1.3.2 by Andreas Henriksson
Import upstream version 0.8.5
56
PKG_CHECK_MODULES(GIO, glib-2.0 >= $GLIB_REQUIRED
57
                       gobject-2.0 >= $GLIB_REQUIRED
58
                       gio-2.0 >= $GLIB_REQUIRED)
1.2.8 by Andreas Henriksson
Import upstream version 0.8.6.1
59
PKG_CHECK_MODULES(GTKSOURCEVIEW, gtksourceview-3.0 >= $GTKSOURCEVIEW_REQUIRED,
1.3.1 by Andreas Henriksson
Import upstream version 0.8.4
60
                  AC_DEFINE([HAVE_GTK_SOURCEVIEW], [1], [Use GtkSourceView])
61
                  AC_SUBST([TEXT_VIEW],[GtkSourceView]),
62
                  AC_SUBST([TEXT_VIEW],[GtkTextView]))
1.1.1 by Ross Burton
Import upstream version 0.3
63
1.2.4 by Andreas Henriksson
Import upstream version 0.8.1
64
if test "x$os_win32" = "xno"; then
65
    PKG_CHECK_MODULES(UUID, uuid)
66
else
67
    AC_CHECK_TOOL(WINDRES, windres)
68
    AC_SUBST([UUID_LIBS], ["-lrpcrt4"])
69
fi
70
1.1.1 by Ross Burton
Import upstream version 0.3
71
AC_ARG_WITH( av,
1.3.1 by Andreas Henriksson
Import upstream version 0.8.4
72
  AS_HELP_STRING([--disable-av],[Don't build AV tools]),
1.1.1 by Ross Burton
Import upstream version 0.3
73
  try_av=$withval, try_av=yes )
74
75
HAVE_LIBGUPNP_AV=no
76
if test x$try_av = xyes ; then
77
    dnl check for gupnp-av
78
    PKG_CHECK_MODULES(LIBGUPNP_AV, gupnp-av-1.0 >= $GUPNP_AV_REQUIRED ,
79
      [
80
        HAVE_LIBGUPNP_AV=yes
81
        AC_SUBST(LIBGUPNP_AV_CFLAGS)
82
        AC_SUBST(LIBGUPNP_AV_LIBS)
83
      ],
84
      [
85
        HAVE_LIBGUPNP_AV=no
86
        AC_MSG_WARN([gupnp-av $GUPNP_AV_REQUIRED or greater not found.])
87
        AC_MSG_WARN([AV tools will not be built.])
88
      ])
89
else
90
    AC_MSG_NOTICE([AV tools disabled.])
91
fi
92
93
if test x$HAVE_LIBGUPNP_AV = xno; then
94
  BUILD_AV=no
95
else
96
  BUILD_AV=yes
97
  AC_DEFINE(HAVE_LIBGUPNP_AV, , [Build AV tools])
98
fi
99
100
AC_SUBST(HAVE_LIBGUPNP_AV)
101
AM_CONDITIONAL(BUILD_AV, test x$BUILD_AV = xyes)
1 by Ross Burton
Import upstream version 0.2
102
103
# glib-genmarshal
104
GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
105
AC_SUBST(GLIB_GENMARSHAL)
106
1.2.2 by Ross Burton
Import upstream version 0.7.1
107
CFLAGS="$CFLAGS -Wall"
1 by Ross Burton
Import upstream version 0.2
108
1.1.1 by Ross Burton
Import upstream version 0.3
109
# Run uninstalled
110
AC_ARG_ENABLE(uninstalled,
111
	[  --enable-uninstalled          run uninstalled],,
112
        enable_uninstalled=no)
113
if test "x$enable_uninstalled" = "xyes"; then
114
        AC_MSG_WARN("You want to run the tools uninstalled only? Fine!")
115
fi
116
117
AM_CONDITIONAL([UNINSTALLED], [test "x$enable_uninstalled" = "xyes"])
118
1 by Ross Burton
Import upstream version 0.2
119
# Gettext
1.2.7 by Andreas Henriksson
Import upstream version 0.8.6
120
IT_PROG_INTLTOOL([0.40.6])
1 by Ross Burton
Import upstream version 0.2
121
GETTEXT_PACKAGE=gupnp-tools
122
AC_SUBST(GETTEXT_PACKAGE)
123
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], 
124
  [Define the gettext package to be used])
125
126
ALL_LINGUAS=""
127
AM_GLIB_GNU_GETTEXT
128
AM_GLIB_DEFINE_LOCALEDIR([LOCALEDIR])
129
1.2.7 by Andreas Henriksson
Import upstream version 0.8.6
130
AS_AC_EXPAND(PKGDATADIR, "${datadir}/${PACKAGE}")
131
1.3.1 by Andreas Henriksson
Import upstream version 0.8.4
132
AC_CONFIG_FILES([
1 by Ross Burton
Import upstream version 0.2
133
Makefile
134
src/Makefile
1.1.1 by Ross Burton
Import upstream version 0.3
135
src/av-cp/Makefile
136
src/common/Makefile
1.3.1 by Andreas Henriksson
Import upstream version 0.8.4
137
src/discover/Makefile
1.1.1 by Ross Burton
Import upstream version 0.3
138
src/network-light/Makefile
139
src/universal-cp/Makefile
1.2.2 by Ross Burton
Import upstream version 0.7.1
140
src/upload/Makefile
1.1.1 by Ross Burton
Import upstream version 0.3
141
data/Makefile
142
data/gupnp-universal-cp.desktop.in
143
data/gupnp-av-cp.desktop.in
1.3.1 by Andreas Henriksson
Import upstream version 0.8.4
144
data/gupnp-av-cp.ui
1.1.1 by Ross Burton
Import upstream version 0.3
145
data/gupnp-network-light.desktop.in
146
data/pixmaps/Makefile
147
data/xml/Makefile
1.2.7 by Andreas Henriksson
Import upstream version 0.8.6
148
po/Makefile.in
1 by Ross Burton
Import upstream version 0.2
149
])
1.3.1 by Andreas Henriksson
Import upstream version 0.8.4
150
AC_OUTPUT