1
# vi:set et ai sw=2 sts=2 ts=2: */
3
# Copyright (c) 2009-2011 Jannis Pohlmann <jannis@xfce.org>
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.
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.
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.
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()])
30
dnl ********************************************
31
dnl *** Full debug support for SVN snapshots ***
32
dnl ********************************************
33
m4_define([tumbler_debug_default], [minimum])
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/])
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])
51
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
53
dnl **************************
54
dnl *** Libtool versioning ***
55
dnl **************************
56
TUMBLER_VERINFO=tumbler_verinfo()
57
AC_SUBST([TUMBLER_VERINFO])
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])
73
dnl *******************************
74
dnl *** Check for UNIX variants ***
75
dnl *******************************
80
dnl ********************************
81
dnl *** Check for Win32 variants ***
82
dnl ********************************
83
AC_MSG_CHECKING([if building for some Win32 platform])
85
*-*-mingw*|*-*-cygwin*)
86
ac_bm_platform_win32=yes
89
ac_bm_platform_win32=no
92
AC_MSG_RESULT([$ac_bm_platform_win32])
93
AM_CONDITIONAL([PLATFORM_WIN32], [test x"$ac_bm_platform_win32" = x"yes"])
95
dnl ********************************
96
dnl *** Check for basic programs ***
97
dnl ********************************
102
AC_PROG_INTLTOOL([0.31], [no-xml])
104
dnl ***********************
105
dnl *** Prepare libtool ***
106
dnl ***********************
108
LT_INIT([disable-static])
110
dnl ***************************************
111
dnl *** Check for standard header files ***
112
dnl ***************************************
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])
118
dnl ************************************
119
dnl *** Check for standard functions ***
120
dnl ************************************
122
AC_CHECK_FUNCS([sched_getparam sched_setscheduler])
124
dnl ******************************
125
dnl *** Check for i18n support ***
126
dnl ******************************
127
linguas=`ls po/*.po | sed s/.po//g | sed sApo/AA | xargs`
130
dnl *************************
131
dnl *** Check for GTK-Doc ***
132
dnl *************************
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.])
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])
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()
168
dnl ***********************************
169
dnl *** Check for debugging support ***
170
dnl ***********************************
173
dnl **************************************
174
dnl *** Check for linker optimizations ***
175
dnl **************************************
176
XDT_FEATURE_LINKER_OPTS()
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])
187
docs/reference/Makefile
188
docs/reference/tumbler/Makefile
189
docs/reference/tumbler/version.xml
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
203
tumbler/tumbler-config.h
207
dnl ***************************
208
dnl *** Print configuration ***
209
dnl ***************************
211
echo "Build Configuration:"
213
echo " * Debug: $enable_debug"
217
if test x"$ac_tumbler_pixbuf_thumbnailer" = x"yes"; then
218
echo " * GdkPixbuf thumbnailer plugin: yes"
220
echo " * GdkPixbuf thumbnailer plugin: no"
222
if test x"$ac_tumbler_font_thumbnailer" = x"yes"; then
223
echo " * FreeType font thumbnailer plugin: yes"
225
echo " * FreeType font thumbnailer plugin: no"
227
if test x"$ac_tumbler_jpeg_thumbnailer" = x"yes"; then
228
echo " * JPEG thumbnailer plugin with EXIF support: yes"
230
echo " * JPEG thumbnailer plugin with EXIF support: no"
232
if test x"$ac_tumbler_ffmpeg_thumbnailer" = x"yes"; then
233
echo " * Video thumbnailer plugin using ffmpegthumbnailer: yes"
235
echo " * Video thumbnailer plugin using ffmpegthumbnailer: no"
237
if test x"$ac_tumbler_gstreamer_thumbnailer" = x"yes"; then
238
echo " * Video thumbnailer plugin using GStreamer: yes"
240
echo " * Video thumbnailer plugin using GStreamer: no"
242
if test x"$ac_tumbler_odf_thumbnailer" = x"yes"; then
243
echo " * ODF thumbnailer plugin using libgsf: yes"
245
echo " * ODF thumbnailer plugin using libgsf: no"
247
if test x"$ac_tumbler_poppler_thumbnailer" = x"yes"; then
248
echo " * PDF/PS thumbnailer plugin using poppler: yes"
250
echo " * PDF/PS thumbnailer plugin using poppler: no"
252
if test x"$ac_tumbler_raw_thumbnailer" = x"yes"; then
253
echo " * RAW thumbnailer plugin using libopenraw: yes"
255
echo " * RAW thumbnailer plugin using libopenraw: no"
257
if test x"$ac_tumbler_xdg_cache" = x"yes"; then
258
echo " * Freedesktop.org cache plugin: yes"
260
echo " * Freedesktop.org cache plugin: no"