~ubuntu-branches/ubuntu/raring/tumbler/raring-proposed

« back to all changes in this revision

Viewing changes to .pc/02_fix-link-gmodule.patch/configure.ac

  • Committer: Package Import Robot
  • Author(s): Lionel Le Folgoc
  • Date: 2012-03-30 22:21:12 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20120330222112-ktz1vv4t1ye3d1t1
Tags: 0.1.24-0ubuntu1
* New upstream bugfix and translation release.
* debian/patches:
  - 01_fix-link-lm and 02_fix-link-gmodule removed, included upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# vi:set et ai sw=2 sts=2 ts=2: */
2
 
# -
3
 
# Copyright (c) 2009-2011 Jannis Pohlmann <jannis@xfce.org>
4
 
5
 
# This program is free software; you can redistribute it and/or 
6
 
# modify it under the terms of the GNU General Public License as
7
 
# published by the Free Software Foundation; either version 2 of 
8
 
# the License, or (at your option) any later version.
9
 
10
 
# This program is distributed in the hope that it will be useful,
11
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
13
 
# GNU General Public License for more details.
14
 
15
 
# You should have received a copy of the GNU General Public 
16
 
# License along with this program; if not, write to the Free 
17
 
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
 
# Boston, MA 02110-1301, USA.
19
 
 
20
 
dnl ***************************
21
 
dnl *** Version information ***
22
 
dnl ***************************
23
 
m4_define([tumbler_verinfo], [0:0:0])
24
 
m4_define([tumbler_version_api_major], [1])
25
 
m4_define([tumbler_version_major], [0])
26
 
m4_define([tumbler_version_minor], [1])
27
 
m4_define([tumbler_version_micro], [23])
28
 
m4_define([tumbler_version], [tumbler_version_major().tumbler_version_minor().tumbler_version_micro()])
29
 
 
30
 
dnl ********************************************
31
 
dnl *** Full debug support for SVN snapshots ***
32
 
dnl ********************************************
33
 
m4_define([tumbler_debug_default], [minimum])
34
 
 
35
 
dnl ***************************
36
 
dnl *** Initialize autoconf ***
37
 
dnl ***************************
38
 
AC_COPYRIGHT([Copyright (c) 2009-2011 Jannis Pohlmann <jannis@xfce.org>])
39
 
AC_INIT([tumbler], [tumbler_version], [http://bugzilla.xfce.org/])
40
 
AC_PREREQ([2.50])
41
 
AC_CANONICAL_TARGET()
42
 
 
43
 
dnl ***************************
44
 
dnl *** Initialize automake ***
45
 
dnl ***************************
46
 
AM_INIT_AUTOMAKE([1.8 dist-bzip2 tar-ustar])
47
 
AC_CONFIG_MACRO_DIR([m4])
48
 
AC_SUBST([ACLOCAL_AMFLAGS], ["$ACLOCAL_FLAGS -I m4"])
49
 
AM_CONFIG_HEADER([config.h])
50
 
AM_MAINTAINER_MODE()
51
 
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
52
 
 
53
 
dnl **************************
54
 
dnl *** Libtool versioning ***
55
 
dnl **************************
56
 
TUMBLER_VERINFO=tumbler_verinfo()
57
 
AC_SUBST([TUMBLER_VERINFO])
58
 
 
59
 
dnl ****************************
60
 
dnl *** Subst tumbler version ***
61
 
dnl ****************************
62
 
TUMBLER_VERSION_MAJOR=tumbler_version_major()
63
 
TUMBLER_VERSION_MINOR=tumbler_version_minor()
64
 
TUMBLER_VERSION_MICRO=tumbler_version_micro()
65
 
TUMBLER_VERSION_API_MAJOR=tumbler_version_api_major()
66
 
TUMBLER_VERSION_API=$TUMBLER_VERSION_API_MAJOR
67
 
AC_SUBST([TUMBLER_VERSION_MAJOR])
68
 
AC_SUBST([TUMBLER_VERSION_MINOR])
69
 
AC_SUBST([TUMBLER_VERSION_MICRO])
70
 
AC_SUBST([TUMBLER_VERSION_API_MAJOR])
71
 
AC_SUBST([TUMBLER_VERSION_API])
72
 
 
73
 
dnl *******************************
74
 
dnl *** Check for UNIX variants ***
75
 
dnl *******************************
76
 
AC_AIX()
77
 
AC_ISC_POSIX()
78
 
AC_MINIX()
79
 
 
80
 
dnl ********************************
81
 
dnl *** Check for Win32 variants ***
82
 
dnl ********************************
83
 
AC_MSG_CHECKING([if building for some Win32 platform])
84
 
case "$host" in
85
 
*-*-mingw*|*-*-cygwin*)
86
 
  ac_bm_platform_win32=yes
87
 
  ;;
88
 
*)
89
 
  ac_bm_platform_win32=no
90
 
  ;;
91
 
esac
92
 
AC_MSG_RESULT([$ac_bm_platform_win32])
93
 
AM_CONDITIONAL([PLATFORM_WIN32], [test x"$ac_bm_platform_win32" = x"yes"])
94
 
 
95
 
dnl ********************************
96
 
dnl *** Check for basic programs ***
97
 
dnl ********************************
98
 
AM_PROG_AS()
99
 
AC_PROG_CC()
100
 
AM_PROG_CC_C_O()
101
 
AC_PROG_INSTALL()
102
 
AC_PROG_INTLTOOL([0.31], [no-xml])
103
 
 
104
 
dnl ***********************
105
 
dnl *** Prepare libtool ***
106
 
dnl ***********************
107
 
LT_PREREQ([2.2.6])
108
 
LT_INIT([disable-static])
109
 
 
110
 
dnl ***************************************
111
 
dnl *** Check for standard header files ***
112
 
dnl ***************************************
113
 
AC_HEADER_STDC()
114
 
AC_CHECK_HEADERS([fcntl.h linux/sched.h memory.h sched.h setjmp.h stdio.h \
115
 
                  stdlib.h string.h syscall.h sys/mman.h sys/types.h \
116
 
                  sys/stat.h unistd.h])
117
 
 
118
 
dnl ************************************
119
 
dnl *** Check for standard functions ***
120
 
dnl ************************************
121
 
AC_FUNC_MMAP()
122
 
AC_CHECK_FUNCS([sched_getparam sched_setscheduler])
123
 
 
124
 
dnl ******************************
125
 
dnl *** Check for i18n support ***
126
 
dnl ******************************
127
 
linguas=`ls po/*.po | sed s/.po//g | sed sApo/AA | xargs`
128
 
XDT_I18N([$linguas])
129
 
 
130
 
dnl *************************
131
 
dnl *** Check for GTK-Doc ***
132
 
dnl *************************
133
 
GTK_DOC_CHECK(1.9)
134
 
 
135
 
dnl ***********************************
136
 
dnl *** Check for dbus-binding-tool ***
137
 
dnl ***********************************
138
 
AC_ARG_VAR([DBUS_BINDING_TOOL], [Tool to generate C bindings from XML D-Bus interface definitions])
139
 
AC_PATH_PROG([DBUS_BINDING_TOOL], [dbus-binding-tool], [no])
140
 
if test x"$DBUS_BINDING_TOOL" = x"no"; then
141
 
  AC_MSG_ERROR([could not find dbus-binding-tool in \$PATH. You can run
142
 
  ./configure DBUS_BINDING_TOOL=/path/to/dbus-binding-tool to define 
143
 
  a custom location for it.])
144
 
fi
145
 
 
146
 
dnl ***********************************
147
 
dnl *** Check for required packages ***
148
 
dnl ***********************************
149
 
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.16.0])
150
 
PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.16.0])
151
 
PKG_CHECK_MODULES([GTHREAD], [gthread-2.0 >= 2.16.0])
152
 
PKG_CHECK_MODULES([DBUS], [dbus-1 >= 1.0.0])
153
 
PKG_CHECK_MODULES([DBUS_GLIB], [dbus-glib-1 >= 0.72])
154
 
 
155
 
dnl *************************
156
 
dnl *** Check for plugins ***
157
 
dnl *************************
158
 
TUMBLER_FONT_THUMBNAILER()
159
 
TUMBLER_JPEG_THUMBNAILER()
160
 
TUMBLER_PIXBUF_THUMBNAILER()
161
 
TUMBLER_FFMPEG_THUMBNAILER()
162
 
TUMBLER_GSTREAMER_THUMBNAILER()
163
 
TUMBLER_ODF_THUMBNAILER()
164
 
TUMBLER_POPPLER_THUMBNAILER()
165
 
TUMBLER_RAW_THUMBNAILER()
166
 
TUMBLER_XDG_CACHE()
167
 
 
168
 
dnl ***********************************
169
 
dnl *** Check for debugging support ***
170
 
dnl ***********************************
171
 
XDT_FEATURE_DEBUG()
172
 
 
173
 
dnl **************************************
174
 
dnl *** Check for linker optimizations ***
175
 
dnl **************************************
176
 
XDT_FEATURE_LINKER_OPTS()
177
 
 
178
 
dnl *************************************
179
 
dnl *** Compensate for broken gtk-doc ***
180
 
dnl *************************************
181
 
XDT_SUPPORTED_FLAGS([GTK_DOC_EXTRA_CFLAGS], [-Wno-sign-compare])
182
 
AC_SUBST([GTK_DOC_EXTRA_CFLAGS])
183
 
 
184
 
AC_OUTPUT([
185
 
Makefile
186
 
docs/Makefile
187
 
docs/reference/Makefile
188
 
docs/reference/tumbler/Makefile
189
 
docs/reference/tumbler/version.xml
190
 
plugins/Makefile
191
 
plugins/font-thumbnailer/Makefile
192
 
plugins/gst-thumbnailer/Makefile
193
 
plugins/jpeg-thumbnailer/Makefile
194
 
plugins/pixbuf-thumbnailer/Makefile
195
 
plugins/ffmpeg-thumbnailer/Makefile
196
 
plugins/odf-thumbnailer/Makefile
197
 
plugins/poppler-thumbnailer/Makefile
198
 
plugins/raw-thumbnailer/Makefile
199
 
plugins/xdg-cache/Makefile
200
 
po/Makefile.in
201
 
tumbler/Makefile
202
 
tumbler/tumbler-1.pc
203
 
tumbler/tumbler-config.h
204
 
tumblerd/Makefile
205
 
])
206
 
 
207
 
dnl ***************************
208
 
dnl *** Print configuration ***
209
 
dnl ***************************
210
 
echo
211
 
echo "Build Configuration:"
212
 
echo
213
 
echo "  * Debug:                                     $enable_debug"
214
 
echo
215
 
echo "Plugins:"
216
 
echo
217
 
if test x"$ac_tumbler_pixbuf_thumbnailer" = x"yes"; then
218
 
echo "  * GdkPixbuf thumbnailer plugin:                     yes"
219
 
else
220
 
echo "  * GdkPixbuf thumbnailer plugin:                     no"
221
 
fi
222
 
if test x"$ac_tumbler_font_thumbnailer" = x"yes"; then
223
 
echo "  * FreeType font thumbnailer plugin:                 yes"
224
 
else
225
 
echo "  * FreeType font thumbnailer plugin:                 no"
226
 
fi
227
 
if test x"$ac_tumbler_jpeg_thumbnailer" = x"yes"; then
228
 
echo "  * JPEG thumbnailer plugin with EXIF support:        yes"
229
 
else
230
 
echo "  * JPEG thumbnailer plugin with EXIF support:        no"
231
 
fi
232
 
if test x"$ac_tumbler_ffmpeg_thumbnailer" = x"yes"; then
233
 
echo "  * Video thumbnailer plugin using ffmpegthumbnailer: yes"
234
 
else
235
 
echo "  * Video thumbnailer plugin using ffmpegthumbnailer: no"
236
 
fi
237
 
if test x"$ac_tumbler_gstreamer_thumbnailer" = x"yes"; then
238
 
echo "  * Video thumbnailer plugin using GStreamer:         yes"
239
 
else
240
 
echo "  * Video thumbnailer plugin using GStreamer:         no"
241
 
fi
242
 
if test x"$ac_tumbler_odf_thumbnailer" = x"yes"; then
243
 
echo "  * ODF thumbnailer plugin using libgsf:              yes"
244
 
else
245
 
echo "  * ODF thumbnailer plugin using libgsf:              no"
246
 
fi
247
 
if test x"$ac_tumbler_poppler_thumbnailer" = x"yes"; then
248
 
echo "  * PDF/PS thumbnailer plugin using poppler:          yes"
249
 
else
250
 
echo "  * PDF/PS thumbnailer plugin using poppler:          no"
251
 
fi
252
 
if test x"$ac_tumbler_raw_thumbnailer" = x"yes"; then
253
 
echo "  * RAW thumbnailer plugin using libopenraw:          yes"
254
 
else
255
 
echo "  * RAW thumbnailer plugin using libopenraw:          no"
256
 
fi
257
 
if test x"$ac_tumbler_xdg_cache" = x"yes"; then
258
 
echo "  * Freedesktop.org cache plugin:                     yes"
259
 
else
260
 
echo "  * Freedesktop.org cache plugin:                     no"
261
 
fi
262
 
echo