~ubuntu-branches/ubuntu/maverick/brasero/maverick

« back to all changes in this revision

Viewing changes to .pc/014_plugin_directory.patch/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-09-14 10:23:22 UTC
  • mfrom: (1.1.44 upstream)
  • Revision ID: james.westby@ubuntu.com-20100914102322-7eigq8pge5wqfol1
Tags: 2.31.92-0ubuntu1
* New upstream release:
  - Revert to libunique from GApplication (Luis Medinas)
  - Remove dbus-glib requires from pkgconfig file (Luis Medinas)
  - Some more debugging to find out about problems with encrypted DVDs
    (Philippe Rouquier)
  - Fix minor issues in gdbus conversion. (Luis Medinas)
  - Remove dbus-glib check from configure (Luis Medinas)
  - Replace last part of dbus-glib by GDBus (Luis Medinas)
  - Fix Inhibit() d-bus parameters (Robert Ancell)
  - Remove dbus libraries from the Makefile. (Luis Medinas)
  - Use --with-gtk switch for gtk 2/3 selection (Christian Persch)
  - Fix image checksuming that did not occur when GConf or GSetting returned 0
    as a value for the checksum type key (Philippe Rouquier)
  - Don't hardcode gconf gsettings backend (Robert Ancell)
  - Fix brasero plugin directory (Robert Ancell)
* debian/control:
  - build-dep on libunique
* debian/patches/010_lpi.patch,31_link_libice.patch:
  - adapt to latest code
* debian/patches/013_gsettings_backend.patch,014_plugin_directory.patch,
  015_inhibit_params.patch:
  - removed, now upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl Process this file with autoconf to produce a configure script.
2
 
AC_INIT([brasero],[2.31.91])
3
 
AC_CONFIG_SRCDIR(src/main.c)
4
 
 
5
 
BRASERO_MAJOR_VERSION=2
6
 
BRASERO_MINOR_VERSION=31
7
 
BRASERO_SUB=91
8
 
BRASERO_VERSION=$BRASERO_MAJOR_VERSION.$BRASERO_MINOR_VERSION.$BRASERO_SUB
9
 
 
10
 
AC_SUBST(BRASERO_MAJOR_VERSION)
11
 
AC_SUBST(BRASERO_MINOR_VERSION)
12
 
AC_SUBST(BRASERO_SUB)
13
 
AC_SUBST(BRASERO_VERSION)
14
 
 
15
 
dnl Before making a release, the BURN_LT_VERSION string should be modified.
16
 
dnl The string is of the form C:R:A.
17
 
dnl - If interfaces have been changed or added, but binary compatibility has
18
 
dnl   been preserved, change to C+1:0:A+1
19
 
dnl - If binary compatibility has been broken (eg removed or changed interfaces)
20
 
dnl   change to C+1:0:0
21
 
dnl - If the interface is the same as the previous version, change to C:R+1:A
22
 
 
23
 
LT_CURRENT=3
24
 
LT_REVISION=0
25
 
LT_AGE=2
26
 
 
27
 
AC_SUBST(LT_CURRENT)
28
 
AC_SUBST(LT_REVISION)
29
 
AC_SUBST(LT_AGE)
30
 
 
31
 
LIBBRASERO_LT_VERSION=$LT_CURRENT:$LT_REVISION:$LT_AGE
32
 
AC_SUBST(LIBBRASERO_LT_VERSION) 
33
 
 
34
 
AC_DEFINE_UNQUOTED(BRASERO_MAJOR_VERSION, $BRASERO_MAJOR_VERSION, [major version])
35
 
AC_DEFINE_UNQUOTED(BRASERO_MINOR_VERSION, $BRASERO_MINOR_VERSION, [minor version])
36
 
AC_DEFINE_UNQUOTED(BRASERO_SUB, $BRASERO_SUB, [sub version])
37
 
AC_DEFINE_UNQUOTED(BRASERO_VERSION, $BRASERO_VERSION, [version])
38
 
 
39
 
dnl this is what it used to be
40
 
dnl AM_INIT_AUTOMAKE(brasero, $BRASERO_VERSION)
41
 
 
42
 
AM_INIT_AUTOMAKE([foreign])
43
 
 
44
 
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
45
 
 
46
 
AC_CONFIG_HEADERS([config.h])
47
 
 
48
 
AC_DISABLE_STATIC
49
 
LT_INIT
50
 
 
51
 
AM_MAINTAINER_MODE
52
 
 
53
 
dnl **************** Support GSettings *************************
54
 
GLIB_GSETTINGS
55
 
 
56
 
dnl **************** documentation *****************************
57
 
GNOME_DOC_INIT
58
 
GTK_DOC_CHECK([1.12])
59
 
 
60
 
dnl ***************** GNOME MACROS *****************************
61
 
 
62
 
dnl This allows to set warnings
63
 
GNOME_COMPILE_WARNINGS([maximum])
64
 
GNOME_CXX_WARNINGS
65
 
 
66
 
dnl This could be use one day not to compile all debugging message
67
 
dnl GNOME_DEBUG_CHECK
68
 
 
69
 
GNOME_MAINTAINER_MODE_DEFINES
70
 
DISABLE_DEPRECATED="$DISABLE_DEPRECATED -DGSEAL_ENABLE"
71
 
AC_SUBST(DISABLE_DEPRECATED)
72
 
 
73
 
dnl ***************** GENERAL **********************************
74
 
 
75
 
dnl ** reminder: the following set CFLAGS to -O2 -g if empty
76
 
AC_PROG_CC
77
 
AC_HEADER_STDC
78
 
 
79
 
dnl Set PACKAGE_DATA_DIR in config.h.
80
 
if test "x${datadir}" = 'x${prefix}/share'; then
81
 
  if test "x${prefix}" = "xNONE"; then
82
 
    AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${ac_default_prefix}/share/", [Define the PACKAGE_DATA_DIR.])
83
 
  else
84
 
    AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${prefix}/share/", [Define the PACKAGE_DATA_DIR.])
85
 
  fi
86
 
  elif test "x${datadir}" = 'x${datarootdir}'; then
87
 
  if test "x${datarootdir}" = 'x${prefix}/share'; then
88
 
        if test "x${prefix}" = "xNONE"; then
89
 
        AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${ac_default_prefix}/share/", [Define the PACKAGE_DATA_DIR.])
90
 
        else
91
 
        AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${prefix}/share/", [Define the PACKAGE_DATA_DIR.])
92
 
        fi
93
 
  else
94
 
        AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${datarootdir}/", [Define the PACKAGE_DATA_DIR.])
95
 
        fi
96
 
  else
97
 
        AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${datadir}/", [Define the PACKAGE_DATA_DIR.])
98
 
fi
99
 
 
100
 
dnl ***************** SCSI related *****************************
101
 
AC_SUBST(BRASERO_SCSI_LIBS)
102
 
AC_CHECK_HEADERS([camlib.h],[has_cam="yes"],[has_cam="no"])
103
 
 
104
 
dnl ***************** check for linux sg interface *************
105
 
AC_CHECK_TYPES([sg_io_hdr_t],[has_sg="yes"],[has_sg="no"],
106
 
[#include <sys/types.h>
107
 
 #include <scsi/sg.h>])
108
 
 
109
 
dnl ***************** check for netbsd *************************
110
 
AC_CHECK_TYPES([scsireq_t],[has_scsiio="yes"],[has_scsiio="no"],
111
 
[#include <sys/types.h>
112
 
 #include <sys/scsiio.h>])
113
 
 
114
 
dnl ***************** check for solaris uscsi interface ********
115
 
AC_CHECK_TYPES([struct uscsi_cmd],[has_uscsi="yes"],[has_uscsi="no"],
116
 
[#include <sys/types.h>
117
 
 #include <sys/scsi/impl/uscsi.h>])
118
 
 
119
 
if test x"$has_cam" = x"yes"; then
120
 
    BRASERO_SCSI_LIBS="-lcam"
121
 
elif test x"$has_sg" = x"yes"; then
122
 
        :
123
 
elif test x"$has_scsiio" = x"yes"; then
124
 
        :
125
 
elif test x"$has_uscsi" = x"yes"; then
126
 
        :
127
 
else
128
 
        AC_MSG_ERROR([Support Linux SG, FreeBSD CAM, NetBSD SCSIPI, Solaris USCSI. No supported SCSI interface headers could not be found.])
129
 
fi
130
 
 
131
 
AM_CONDITIONAL(HAVE_CAM_LIB_H, test x"$has_cam" = "xyes")
132
 
AM_CONDITIONAL(HAVE_SG_IO_HDR_T, test x"$has_sg" = "xyes")
133
 
AM_CONDITIONAL(HAVE_USCSI_H, test x"$has_uscsi" = "xyes")
134
 
AM_CONDITIONAL(HAVE_SCSIIO_H, test x"$has_scsiio" = "xyes")
135
 
 
136
 
dnl ***************** LARGE FILE SUPPORT ***********************
137
 
 
138
 
AC_SYS_LARGEFILE
139
 
 
140
 
dnl ********** Required libraries **********************
141
 
GLIB_REQUIRED=2.25.10
142
 
GTHREAD_REQUIRED=2.6.0
143
 
GMODULE_REQUIRED=2.6.0
144
 
GMODULE_EXPORT_REQUIRED=2.6.0
145
 
GIO_REQUIRED=2.25.0
146
 
GCONF_REQUIRED=2.31.1 
147
 
GSTREAMER_REQUIRED=0.10.15
148
 
GSTREAMER_BASE_REQUIRED=0.10.0
149
 
LIBXML2_REQUIRED=2.6.0
150
 
DBUS_REQUIRED=0.7.2
151
 
 
152
 
dnl ** used by brasero and one plugin
153
 
PKG_CHECK_MODULES(BRASERO_GSTREAMER,                    \
154
 
        gstreamer-0.10 >= $GSTREAMER_REQUIRED           \
155
 
        gstreamer-interfaces-0.10                       \
156
 
        gstreamer-plugins-base-0.10 >= $GSTREAMER_BASE_REQUIRED)
157
 
 
158
 
AC_SUBST(BRASERO_GSTREAMER_CFLAGS)
159
 
AC_SUBST(BRASERO_GSTREAMER_LIBS)
160
 
 
161
 
BRASERO_GSTREAMER_LIBS="$BRASERO_GSTREAMER_LIBS -lgstpbutils-0.10"
162
 
 
163
 
dnl ** used by brasero and one plugin
164
 
PKG_CHECK_MODULES(BRASERO_GIO,  \
165
 
        gio-2.0 >= $GIO_REQUIRED)
166
 
 
167
 
AC_SUBST(BRASERO_GIO_CFLAGS)
168
 
AC_SUBST(BRASERO_GIO_LIBS)
169
 
 
170
 
dnl ** used by brasero and one plugin
171
 
PKG_CHECK_MODULES(BRASERO_LIBXML,       \
172
 
        libxml-2.0 >= $LIBXML2_REQUIRED)
173
 
 
174
 
AC_SUBST(BRASERO_LIBXML_CFLAGS)
175
 
AC_SUBST(BRASERO_LIBXML_LIBS)
176
 
 
177
 
dnl ** used by brasero and both libraries
178
 
PKG_CHECK_MODULES(BRASERO_GTHREAD,              \
179
 
        gthread-2.0 >= $GTHREAD_REQUIRED)
180
 
 
181
 
AC_SUBST(BRASERO_GTHREAD_CFLAGS)
182
 
AC_SUBST(BRASERO_GTHREAD_LIBS)
183
 
 
184
 
dnl ** used by brasero and all modules
185
 
PKG_CHECK_MODULES(BRASERO_GLIB,                 \
186
 
        gobject-2.0 >= $GLIB_REQUIRED           \
187
 
        glib-2.0 >= $GLIB_REQUIRED)
188
 
 
189
 
AC_SUBST(BRASERO_GLIB_CFLAGS)
190
 
AC_SUBST(BRASERO_GLIB_LIBS)
191
 
 
192
 
PKG_CHECK_MODULES(BRASERO_GCONF,                \
193
 
        gconf-2.0 >= $GCONF_REQUIRED)
194
 
 
195
 
AC_SUBST(BRASERO_GCONF_CFLAGS)
196
 
AC_SUBST(BRASERO_GCONF_LIBS)
197
 
 
198
 
PKG_CHECK_MODULES(BRASERO_GMODULE,              \
199
 
        gmodule-2.0 >= $GMODULE_REQUIRED)
200
 
 
201
 
AC_SUBST(BRASERO_GMODULE_CFLAGS)
202
 
AC_SUBST(BRASERO_GMODULE_LIBS)
203
 
 
204
 
PKG_CHECK_MODULES(BRASERO_GMODULE_EXPORT,               \
205
 
        gmodule-export-2.0 >= $GMODULE_EXPORT_REQUIRED)
206
 
 
207
 
AC_SUBST(BRASERO_GMODULE_EXPORT_CFLAGS)
208
 
AC_SUBST(BRASERO_GMODULE_EXPORT_LIBS)
209
 
 
210
 
PKG_CHECK_MODULES(BRASERO_DBUS,                 \
211
 
        dbus-glib-1 >= $DBUS_REQUIRED)
212
 
 
213
 
AC_SUBST(BRASERO_DBUS_CFLAGS)
214
 
AC_SUBST(BRASERO_DBUS_LIBS)
215
 
 
216
 
PKG_CHECK_MODULES(BRASERO_SM,                   \
217
 
        sm)
218
 
 
219
 
AC_SUBST(BRASERO_SM_CFLAGS)
220
 
AC_SUBST(BRASERO_SM_LIBS)
221
 
 
222
 
#
223
 
# GTK+ stuff (taken and adapted from empathy)
224
 
#
225
 
GDK2_REQUIRED=2.6.0
226
 
GTK2_REQUIRED=2.19.7
227
 
 
228
 
GDK3_REQUIRED=2.90.2
229
 
GTK3_REQUIRED=2.90.2
230
 
 
231
 
CANBERRA_REQUIRED=0.1
232
 
 
233
 
AC_ARG_ENABLE(gtk3,
234
 
 AS_HELP_STRING([--enable-gtk3=@<:@no/yes/auto@:>@],
235
 
 [build with GTK+3]), ,
236
 
 enable_gtk3=auto)
237
 
 
238
 
# Try to use GTK+3 if available
239
 
if test "x$enable_gtk3" != "xno"; then
240
 
 PKG_CHECK_MODULES(BRASERO_GTK,                 \
241
 
        gdk-3.0 >= $GDK3_REQUIRED               \
242
 
        gtk+-3.0 >= $GTK3_REQUIRED \
243
 
        launchpad-integration,
244
 
        enable_gtk3="yes", enable_gtk3="no")
245
 
 
246
 
 GTK_API_VERSION=3
247
 
 BRASERO_LIBRARY_SUFFIX=3
248
 
fi
249
 
 
250
 
# ...if not use GTK+2
251
 
if test "x$enable_gtk3" == "xno"; then
252
 
 PKG_CHECK_MODULES(BRASERO_GTK,                 \
253
 
        gdk-2.0 >= $GDK2_REQUIRED               \
254
 
        gtk+-2.0 >= $GTK2_REQUIRED \
255
 
        launchpad-integration)    
256
 
 
257
 
 GTK_API_VERSION=2
258
 
 BRASERO_LIBRARY_SUFFIX=
259
 
fi
260
 
 
261
 
AC_SUBST(GTK_API_VERSION)
262
 
AC_SUBST(BRASERO_LIBRARY_SUFFIX)
263
 
 
264
 
AC_SUBST(BRASERO_GTK_CFLAGS)
265
 
AC_SUBST(BRASERO_GTK_LIBS)
266
 
 
267
 
 
268
 
if test "x$enable_gtk3" = "xyes"; then
269
 
 PKG_CHECK_MODULES(BRASERO_CANBERRA,            \
270
 
        libcanberra >= $CANBERRA_REQUIRED       \
271
 
        libcanberra-gtk3 >= $CANBERRA_REQUIRED)
272
 
else
273
 
 PKG_CHECK_MODULES(BRASERO_CANBERRA,            \
274
 
        libcanberra >= $CANBERRA_REQUIRED       \
275
 
        libcanberra-gtk >= $CANBERRA_REQUIRED)
276
 
fi
277
 
 
278
 
AC_SUBST(BRASERO_CANBERRA_CFLAGS)
279
 
AC_SUBST(BRASERO_CANBERRA_LIBS)
280
 
 
281
 
dnl ****************Nautilus**********************************
282
 
# Note: the extension is built against gtk+-2.0 so we cannot build extension with gtk+-3.0
283
 
NAUTILUS_REQUIRED=2.22.2
284
 
 
285
 
AC_ARG_ENABLE(nautilus,
286
 
                        AS_HELP_STRING([--enable-nautilus],[Build Nautilus extension [[default=yes]]]),
287
 
                        [enable_nautilus=$enableval],
288
 
                        [enable_nautilus="yes"])
289
 
 
290
 
AC_ARG_WITH(nautilusdir,
291
 
                        AS_HELP_STRING([--with-nautilusdir=DIR],[Installation path for Nautilus extension @<:@auto@:>@]),
292
 
                        [ac_with_nautilusdir=$withval],
293
 
                        [ac_with_nautilusdir=""])
294
 
 
295
 
if test x"$enable_nautilus" = "xyes"; then
296
 
        PKG_CHECK_MODULES(NAUTILUS_EXTENSION,
297
 
                          libnautilus-extension >= $NAUTILUS_REQUIRED,
298
 
                          build_nautilus=yes,
299
 
                          build_nautilus=no)
300
 
else
301
 
        build_nautilus="no"
302
 
fi
303
 
 
304
 
if test x"$build_nautilus" = "xyes"; then
305
 
        NAUTILUS_EXTENSION_CFLAGS="$BRASERO_GLIB_CFLAGS $BRASERO_UI_CFLAGS $NAUTILUS_EXTENSION_CFLAGS"
306
 
        NAUTILUS_EXTENSION_LIBS="$BRASERO_GLIB_LIBS $BRASERO_UI_LIBS $NAUTILUS_EXTENSION_LIBS"
307
 
 
308
 
        if test "${ac_with_nautilusdir}" = ""; then
309
 
                ac_with_nautilusdir=`pkg-config --variable=extensiondir libnautilus-extension`
310
 
        fi
311
 
 
312
 
        AC_MSG_NOTICE([installing plugin in ${ac_with_nautilusdir}])
313
 
        AC_SUBST([NAUTILUSDIR],[${ac_with_nautilusdir}])
314
 
 
315
 
        AM_GLIB_DEFINE_LOCALEDIR([GNOMELOCALEDIR])
316
 
fi
317
 
 
318
 
AM_CONDITIONAL(BUILD_NAUTILUS, test x"$build_nautilus" = "xyes")
319
 
 
320
 
#
321
 
# Installation path for plugins
322
 
#
323
 
 
324
 
BRASERO_PLUGIN_DIRECTORY=${libdir}/brasero${BRASERO_LIBRARY_SUFFIX}/plugins
325
 
AC_DEFINE_UNQUOTED(BRASERO_PLUGIN_DIRECTORY, "${BRASERO_PLUGIN_DIRECTORY}", [Path where the plugins are installed])
326
 
AC_SUBST(BRASERO_PLUGIN_DIRECTORY)
327
 
 
328
 
dnl ****************check for libburn (optional)**************
329
 
LIBBURN_REQUIRED=0.4.0
330
 
LIBISOFS_REQUIRED=0.6.4
331
 
 
332
 
AC_ARG_ENABLE(libburnia,
333
 
                        AS_HELP_STRING([--enable-libburnia],[Build libburnia plugins [[default=yes]]]),
334
 
                        [enable_libburnia=$enableval],
335
 
                        [enable_libburnia="yes"])
336
 
 
337
 
if test x"$enable_libburnia" = "xyes"; then
338
 
        PKG_CHECK_MODULES(LIBBURNIA, libburn-1 >= $LIBBURN_REQUIRED  libisofs-1 >= $LIBISOFS_REQUIRED, build_libburnia=yes, build_libburnia=no)
339
 
else
340
 
        build_libburnia="no"
341
 
fi
342
 
 
343
 
if test x"$build_libburnia" = "xyes"; then
344
 
        AC_SUBST(BRASERO_LIBBURNIA_CFLAGS)
345
 
        AC_SUBST(BRASERO_LIBBURNIA_LIBS)
346
 
 
347
 
        BRASERO_LIBBURNIA_CFLAGS="$LIBBURNIA_CFLAGS"
348
 
        BRASERO_LIBBURNIA_LIBS="$LIBBURNIA_LIBS"
349
 
        AC_DEFINE(BUILD_LIBBURNIA, 1, [define if you  want to build libburnia plugins])
350
 
fi
351
 
AM_CONDITIONAL(BUILD_LIBBURNIA, test x"$build_libburnia" = "xyes")
352
 
 
353
 
dnl **************** check for cdrtools **********************
354
 
AC_ARG_ENABLE(cdrtools,
355
 
                        AS_HELP_STRING([--enable-cdrtools],[Build cdrtools plugins [[default=yes]]]),
356
 
                        [build_cdrtools=$enableval],
357
 
                        [build_cdrtools="yes"])
358
 
 
359
 
if test x"$build_cdrtools" = "xyes"; then
360
 
        AC_DEFINE(BUILD_CDRTOOLS, 1, [define if you  want to build cdrtools plugins])
361
 
else
362
 
        build_cdrtools="no"
363
 
fi
364
 
AM_CONDITIONAL(BUILD_CDRTOOLS, test x"$build_cdrtools" = "xyes")
365
 
 
366
 
dnl **************** check for cdrdao **********************
367
 
AC_ARG_ENABLE(cdrdao,
368
 
                        AS_HELP_STRING([--enable-cdrdao],[Build cdrdao plugins [[default=yes]]]),
369
 
                        [build_cdrdao=$enableval],
370
 
                        [build_cdrdao="yes"])
371
 
 
372
 
if test x"$build_cdrdao" = "xyes"; then
373
 
        AC_DEFINE(BUILD_CDRDAO, 1, [define if you  want to build cdrdao plugins])
374
 
else
375
 
        build_cdrdao="no"
376
 
fi
377
 
AM_CONDITIONAL(BUILD_CDRDAO, test x"$build_cdrdao" = "xyes")
378
 
 
379
 
dnl **************** check for cdrkit ************************
380
 
AC_ARG_ENABLE(cdrkit,
381
 
                        AS_HELP_STRING([--enable-cdrkit],[Build cdrkit plugins [[default=yes]]]),
382
 
                        [build_cdrkit=$enableval],
383
 
                        [build_cdrkit="yes"])
384
 
 
385
 
if test x"$build_cdrkit" = "xyes"; then
386
 
        AC_DEFINE(BUILD_CDRKIT, 1, [define if you  want to build cdrkit plugins])
387
 
else
388
 
        build_cdrkit="no"
389
 
fi
390
 
AM_CONDITIONAL(BUILD_CDRKIT, test x"$build_cdrkit" = "xyes")
391
 
 
392
 
dnl **************** check for growisofs ************************
393
 
AC_ARG_ENABLE(growisofs,
394
 
                        AS_HELP_STRING([--enable-growisofs],[Build growisofs plugins [[default=yes]]]),
395
 
                        [build_growisofs=$enableval],
396
 
                        [build_growisofs="yes"])
397
 
 
398
 
if test x"$build_growisofs" = "xyes"; then
399
 
        AC_DEFINE(BUILD_GROWISOFS, 1, [define if you  want to build growisofs plugins])
400
 
else
401
 
        build_growisofs="no"
402
 
fi
403
 
AM_CONDITIONAL(BUILD_GROWISOFS, test x"$build_growisofs" = "xyes")
404
 
 
405
 
dnl ****************check for appindicators (optional) **************
406
 
APPINDICATOR_REQUIRED=0.0.7
407
 
 
408
 
AC_ARG_ENABLE(appindicator,
409
 
                        AS_HELP_STRING([--enable-appindicator],[Build support for application indicators [[default=yes]]]),
410
 
                        [enable_appindicator=$enableval],
411
 
                        [enable_appindicator="yes"])
412
 
 
413
 
if test x$enable_appindicator = xyes ; then
414
 
        PKG_CHECK_MODULES(APP_INDICATOR,
415
 
                        appindicator-0.1 >= $APPINDICATOR_REQUIRED)
416
 
        AC_SUBST(APP_INDICATOR_CFLAGS)
417
 
        AC_SUBST(APP_INDICATOR_LIBS)
418
 
        AC_DEFINE(HAVE_APP_INDICATOR, 1, [Have AppIndicator])
419
 
fi
420
 
AM_CONDITIONAL(HAVE_APP_INDICATOR, test x"$enable_appindicator" = xyes)
421
 
 
422
 
BEAGLE_REQUIRED=0.3.0
423
 
TRACKER_REQUIRED=0.8.0
424
 
 
425
 
AC_ARG_ENABLE(search,
426
 
                        AS_HELP_STRING([--enable-search],[Build search pane (if a search backend is available) [[default=auto]]]),
427
 
                        [case "$enableval" in
428
 
                                "auto")    enable_search="yes" ;;
429
 
                                "yes")     enable_search="yes" ;;
430
 
                                "no")      enable_search="no" ;;
431
 
                                "tracker") enable_search="tracker" ;;
432
 
                                "beagle")  enable_search="beagle" ;;
433
 
                                *)         echo "Unknown option"; exit 2 ;;
434
 
                        esac],
435
 
                        [enable_search="yes"])
436
 
 
437
 
if test x"$enable_search" = "xtracker"; then
438
 
        PKG_CHECK_MODULES(BRASERO_SEARCH, tracker-client-0.8 >= $TRACKER_REQUIRED)
439
 
        AC_DEFINE(BUILD_SEARCH, 1, [define if you  want to use search pane])
440
 
        AC_DEFINE(BUILD_TRACKER, 1, [define if you  want to use search pane])
441
 
        AC_SUBST(BRASERO_SEARCH_CFLAGS)
442
 
        AC_SUBST(BRASERO_SEARCH_LIBS)
443
 
        build_beagle="no"
444
 
        build_tracker="yes"
445
 
        build_search="yes"
446
 
elif test x"$enable_search" = "xbeagle"; then
447
 
        PKG_CHECK_MODULES(BRASERO_SEARCH, libbeagle-1.0 >= $BEAGLE_REQUIRED)
448
 
        AC_DEFINE(BUILD_SEARCH, 1, [define if you  want to use search pane])
449
 
        AC_DEFINE(BUILD_BEAGLE, 1, [define if you  want to use search pane])
450
 
        AC_SUBST(BRASERO_SEARCH_CFLAGS)
451
 
        AC_SUBST(BRASERO_SEARCH_LIBS)
452
 
        build_beagle="yes"
453
 
        build_tracker="no"
454
 
        build_search="yes"
455
 
elif test x"$enable_search" = "xyes"; then
456
 
        PKG_CHECK_MODULES(BRASERO_SEARCH, tracker-client-0.8 >= $TRACKER_REQUIRED, build_search=yes, build_search=no)
457
 
        if test x"$build_search" = "xyes"; then
458
 
                AC_DEFINE(BUILD_SEARCH, 1, [define if you  want to use search pane])
459
 
                AC_DEFINE(BUILD_TRACKER, 1, [define if you  want to use search pane])
460
 
 
461
 
                AC_SUBST(BRASERO_SEARCH_CFLAGS)
462
 
                AC_SUBST(BRASERO_SEARCH_LIBS)
463
 
 
464
 
                build_beagle="no"
465
 
                build_tracker="yes"
466
 
        else 
467
 
                PKG_CHECK_MODULES(BRASERO_SEARCH, libbeagle-1.0 >= $BEAGLE_REQUIRED, build_search=yes, build_search=no)
468
 
                if test x"$build_search" = "xyes"; then
469
 
                        AC_DEFINE(BUILD_SEARCH, 1, [define if you  want to use search pane])
470
 
                        AC_DEFINE(BUILD_BEAGLE, 1, [define if you  want to use search pane])
471
 
 
472
 
                        AC_SUBST(BRASERO_SEARCH_CFLAGS)
473
 
                        AC_SUBST(BRASERO_SEARCH_LIBS)
474
 
 
475
 
                        build_beagle="yes"
476
 
                        build_tracker="no"
477
 
                fi
478
 
        fi
479
 
else
480
 
        build_search="no"
481
 
fi
482
 
 
483
 
AM_CONDITIONAL(BUILD_SEARCH, test x"$build_search" = "xyes")
484
 
AM_CONDITIONAL(BUILD_BEAGLE, test x"$build_beagle" = "xyes")
485
 
AM_CONDITIONAL(BUILD_TRACKER, test x"$build_tracker" = "xyes")
486
 
 
487
 
dnl ****************check for playlist (optional)**************
488
 
TOTEM_REQUIRED=2.29.1
489
 
 
490
 
AC_ARG_ENABLE(playlist,
491
 
                        AS_HELP_STRING([--enable-playlist],[Build playlist pane (if totem-pl-parser is available)[[default=yes]]]),
492
 
                        [enable_playlist=$enableval],
493
 
                        [enable_playlist="yes"])
494
 
 
495
 
if test x"$enable_playlist" = "xyes"; then
496
 
        PKG_CHECK_MODULES(BRASERO_PL_PARSER, totem-plparser >= $TOTEM_REQUIRED, build_totem=yes, build_totem=no)
497
 
else
498
 
        build_totem="no"
499
 
fi
500
 
 
501
 
if test x"$build_totem" = "xyes"; then
502
 
        AC_DEFINE(BUILD_PLAYLIST, 1, [define if you  want to build playlist pane])
503
 
fi
504
 
 
505
 
AC_SUBST(BRASERO_PL_PARSER_CFLAGS)
506
 
AC_SUBST(BRASERO_PL_PARSER_LIBS)
507
 
 
508
 
AM_CONDITIONAL(BUILD_PLAYLIST, test x"$build_totem" = "xyes")
509
 
 
510
 
dnl ****************check for preview (optional)**************
511
 
GSTREAMER_MODULE_REQUIRED=0.10.0
512
 
AC_ARG_ENABLE(preview,
513
 
                        AS_HELP_STRING([--enable-preview],[Build preview pane [[default=yes]]]),
514
 
                        [enable_preview=$enableval],
515
 
                        [enable_preview="yes"])
516
 
 
517
 
if test x"$enable_preview" = "xyes"; then
518
 
        PKG_CHECK_MODULES(BRASERO_GSTREAMER_BASE, gstreamer-plugins-base-0.10 >= $GSTREAMER_MODULE_REQUIRED, build_preview=yes, build_preview=no)
519
 
else
520
 
        build_preview="no"
521
 
fi
522
 
 
523
 
if test x"$build_preview" = "xyes"; then
524
 
        AC_DEFINE(BUILD_PREVIEW, 1, [define if you  want to build preview pane])
525
 
fi
526
 
 
527
 
AC_SUBST(BRASERO_GSTREAMER_BASE_CFLAGS)
528
 
AC_SUBST(BRASERO_GSTREAMER_BASE_LIBS)
529
 
 
530
 
AM_CONDITIONAL(BUILD_PREVIEW, test x"$build_preview" = "xyes")
531
 
 
532
 
dnl ****************check for inotify (optional)**************
533
 
AC_ARG_ENABLE(inotify,
534
 
                        AS_HELP_STRING([--enable-inotify],[use inotify [[default=yes]]]),
535
 
                        [enable_inotify=$enableval],
536
 
                        [enable_inotify="yes"])
537
 
 
538
 
if test x"$enable_inotify" = "xyes"; then
539
 
        AC_DEFINE(BUILD_INOTIFY, 1, [define if you  want to build inotify])
540
 
fi
541
 
AM_CONDITIONAL(BUILD_INOTIFY, test x"$enable_inotify" = "xyes")
542
 
 
543
 
dnl ****** GObject Introspection **********************
544
 
dnl This is a copy of the m4 function in gobject-introspection package
545
 
dnl but it was modified so the install path can be forced with a command
546
 
dnl line parameter. This is to be able to use make distcheck.
547
 
 
548
 
GOBJECT_INTROSPECTION_REQUIRED=0.6.3
549
 
 
550
 
AC_ARG_ENABLE(introspection,
551
 
                  AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]], [Enable introspection for this build]),
552
 
                  [enable_introspection=$enableval],
553
 
                  [enable_introspection="auto"])
554
 
 
555
 
AC_ARG_WITH(girdir,
556
 
                        AS_HELP_STRING([--with-girdir=DIR],[Installation path for .gir files @<:@auto@:>@]),
557
 
                        [ac_with_girdir=$withval],
558
 
                        [ac_with_girdir=""])
559
 
 
560
 
AC_ARG_WITH(typelibdir,
561
 
                        AS_HELP_STRING([--with-typelibdir=DIR],[Installation path for .typelib files @<:@auto@:>@]),
562
 
                        [ac_with_typelibdir=$withval],
563
 
                        [ac_with_typelibdir=""])
564
 
 
565
 
AC_MSG_CHECKING([for gobject-introspection])
566
 
 
567
 
dnl presence/version checking
568
 
AS_CASE([$enable_introspection],
569
 
    [no], [dnl
570
 
        found_introspection="no (disabled, use --enable-introspection to enable)"
571
 
    ],dnl
572
 
    [yes],[dnl
573
 
        PKG_CHECK_EXISTS([gobject-introspection-1.0],,
574
 
                         AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
575
 
        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED],
576
 
                         found_introspection=yes,
577
 
                         AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
578
 
    ],dnl
579
 
    [auto],[dnl
580
 
        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED], found_introspection=yes, found_introspection=no)
581
 
    ],dnl
582
 
    [dnl        
583
 
        AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
584
 
])dnl
585
 
 
586
 
AC_MSG_RESULT([$found_introspection])
587
 
 
588
 
INTROSPECTION_SCANNER=
589
 
INTROSPECTION_COMPILER=
590
 
INTROSPECTION_GENERATE=
591
 
INTROSPECTION_GIRDIR=
592
 
INTROSPECTION_TYPELIBDIR=
593
 
if test "x$found_introspection" = "xyes"; then
594
 
        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
595
 
        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
596
 
        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
597
 
 
598
 
        if test "${ac_with_girdir}" = ""; then
599
 
                ac_with_girdir=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
600
 
        fi
601
 
        INTROSPECTION_GIRDIR=${ac_with_girdir}
602
 
        AC_MSG_NOTICE([installing .gir files in ${INTROSPECTION_GIRDIR}])
603
 
 
604
 
        if test "${ac_with_typelibdir}" = ""; then
605
 
                ac_with_typelibdir="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
606
 
        fi
607
 
        INTROSPECTION_TYPELIBDIR=${ac_with_typelibdir}
608
 
        AC_MSG_NOTICE([installing .typelib files in ${INTROSPECTION_TYPELIBDIR}])
609
 
fi
610
 
AC_SUBST(INTROSPECTION_SCANNER)
611
 
AC_SUBST(INTROSPECTION_COMPILER)
612
 
AC_SUBST(INTROSPECTION_GENERATE)
613
 
AC_SUBST(INTROSPECTION_GIRDIR)
614
 
AC_SUBST(INTROSPECTION_TYPELIBDIR)
615
 
 
616
 
AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
617
 
 
618
 
dnl ****** Update mime, desktop and icon caches *******
619
 
AC_ARG_ENABLE(caches,
620
 
                        AS_HELP_STRING([--enable-caches],[Run update-* to update mime, desktop and icon caches when installing [[default=yes]]]),
621
 
                        [enable_caches=$enableval],
622
 
                        [enable_caches="yes"])
623
 
 
624
 
AM_CONDITIONAL(UPDATE_CACHES, test x"$enable_caches" = "xyes")
625
 
 
626
 
dnl ****** INTERNATIONALIZATION **********************
627
 
GETTEXT_PACKAGE=brasero
628
 
AC_SUBST(GETTEXT_PACKAGE)
629
 
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Package name for gettext])
630
 
 
631
 
AM_GLIB_GNU_GETTEXT
632
 
 
633
 
IT_PROG_INTLTOOL([0.35.0])
634
 
 
635
 
if test "x${prefix}" = "xNONE"; then
636
 
  AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale", [Location of package locale files])
637
 
else
638
 
  AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale", [Location of package locale files])
639
 
fi
640
 
 
641
 
dnl ****** END ***********************
642
 
 
643
 
AC_CONFIG_FILES([
644
 
Makefile
645
 
docs/Makefile
646
 
docs/reference/Makefile
647
 
docs/reference/libbrasero-media/Makefile
648
 
docs/reference/libbrasero-burn/Makefile
649
 
docs/reference/libbrasero-media/version.xml
650
 
docs/reference/libbrasero-burn/version.xml
651
 
data/Makefile
652
 
data/brasero.desktop.in
653
 
data/icons/Makefile
654
 
data/mime/Makefile
655
 
help/Makefile
656
 
nautilus/Makefile
657
 
nautilus/brasero-nautilus.desktop.in
658
 
libbrasero-media/Makefile
659
 
libbrasero-media/brasero-media.h
660
 
libbrasero-utils/Makefile
661
 
libbrasero-burn/Makefile
662
 
libbrasero-burn/brasero-burn-lib.h
663
 
plugins/Makefile
664
 
plugins/audio2cue/Makefile
665
 
plugins/cdrdao/Makefile
666
 
plugins/cdrkit/Makefile
667
 
plugins/cdrtools/Makefile
668
 
plugins/growisofs/Makefile
669
 
plugins/libburnia/Makefile
670
 
plugins/transcode/Makefile
671
 
plugins/dvdcss/Makefile
672
 
plugins/dvdauthor/Makefile
673
 
plugins/checksum/Makefile
674
 
plugins/local-track/Makefile
675
 
plugins/vcdimager/Makefile
676
 
po/Makefile.in
677
 
src/Makefile
678
 
])
679
 
 
680
 
AC_CONFIG_FILES([libbrasero-media${BRASERO_LIBRARY_SUFFIX}.pc:libbrasero-media.pc.in],[BRASERO_LIBRARY_SUFFIX=${BRASERO_LIBRARY_SUFFIX}])
681
 
AC_CONFIG_FILES([libbrasero-burn${BRASERO_LIBRARY_SUFFIX}.pc:libbrasero-burn.pc.in],[BRASERO_LIBRARY_SUFFIX=${BRASERO_LIBRARY_SUFFIX}])
682
 
 
683
 
AC_OUTPUT
684
 
 
685
 
echo
686
 
echo
687
 
echo "$PACKAGE configuration summary:"
688
 
echo "----------------------------------"
689
 
 
690
 
dnl     Build libnotify support : ${build_libnotify}
691
 
 
692
 
echo "Version: $BRASERO_VERSION
693
 
        Use GTK+3 : ${enable_gtk3}
694
 
        Update caches: ${enable_caches}
695
 
        Build Nautilus extension : ${build_nautilus}
696
 
        Build inotify: ${enable_inotify}
697
 
        Build search pane : ${build_search}
698
 
        Build playlist pane : ${build_totem}
699
 
        Build Preview pane : ${enable_preview}
700
 
        Plugins installed in : ${BRASERO_PLUGIN_DIRECTORY}
701
 
        Build cdrdao plugins : ${build_cdrdao}
702
 
        Build cdrtools plugins : ${build_cdrtools}
703
 
        Build cdrkit plugins : ${build_cdrkit}
704
 
        Build growisofs plugins : ${build_growisofs}
705
 
        Build libburnia plugins : ${build_libburnia}
706
 
        Build GObject-Introspection : ${found_introspection}
707
 
        Build Application Indicators : ${enable_appindicator}
708
 
"
709
 
echo
710
 
echo