~mniess/ubuntu/trusty/totem/fix-lp1292262

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Raphaël Hertzog
  • Date: 2011-04-10 18:12:25 UTC
  • mfrom: (1.1.14 upstream)
  • mto: (1.5.7 upstream)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: james.westby@ubuntu.com-20110410181225-u3x8yhsscjoe8ony
Tags: upstream-3.0.0
Import upstream version 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
AC_PREREQ(2.52)
2
2
 
3
 
m4_define(totem_version_major, 2)
4
 
m4_define(totem_version_minor, 30)
 
3
m4_define(totem_version_major, 3)
 
4
m4_define(totem_version_minor, 0)
5
5
m4_define(totem_version_micro, 0)
6
6
 
 
7
# The version of the API exposed to plugins
 
8
m4_define(totem_api_version_major, 1)
 
9
m4_define(totem_api_version_minor, 0)
 
10
 
7
11
AC_INIT([totem],
8
12
        [totem_version_major.totem_version_minor.totem_version_micro],
9
13
        [http://bugzilla.gnome.org/enter_bug.cgi?product=totem])
12
16
AC_CONFIG_SRCDIR([src/totem.c])
13
17
AC_CONFIG_HEADERS([config.h])
14
18
 
15
 
AM_INIT_AUTOMAKE([1.9 dist-bzip2 no-dist-gzip check-news subdir-objects])
 
19
AM_INIT_AUTOMAKE([1.11 dist-bzip2 no-dist-gzip check-news subdir-objects])
16
20
 
17
21
# Enable silent build when available (Automake 1.11)
18
22
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
21
25
GETTEXT_PACKAGE=totem
22
26
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define to the Gettext package name])
23
27
AC_SUBST(GETTEXT_PACKAGE)
24
 
AM_GLIB_GNU_GETTEXT
25
28
IT_PROG_INTLTOOL([0.40.0])
26
29
 
27
 
GNOME_DOC_INIT
 
30
GNOME_DOC_INIT([0.20.3])
 
31
GOBJECT_INTROSPECTION_CHECK([0.6.7])
28
32
 
29
33
AC_PROG_CXX
30
34
AM_PROG_CC_C_O
37
41
AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
38
42
 
39
43
# Requirements
40
 
GLIB_REQS=2.22
41
 
GTK_REQS=2.19.5
42
 
TOTEM_PLPARSER_REQS=2.29.1
 
44
GLIB_REQS=2.27.92
 
45
GIO_REQS=2.27.92
 
46
GTK_REQS=2.99.3
 
47
TOTEM_PLPARSER_REQS=2.32.4
43
48
GNOMEICON_REQS=2.15.90
44
 
DBUS_REQS=0.61
45
 
VALA_REQS=0.7.5
 
49
DBUS_REQS=0.82
 
50
VALA_REQS=0.11.1
 
51
PEAS_REQS=0.7.2
 
52
PYTHON_REQS=2.3
 
53
PYGOBJECT_REQS=2.27.0
 
54
 
 
55
AC_SUBST(GLIB_REQS)
 
56
AC_SUBST(GTK_REQS)
 
57
AC_SUBST(TOTEM_PLPARSER_REQS)
46
58
 
47
59
TOTEM_VERSION_MAJOR=totem_version_major
48
60
TOTEM_VERSION_MINOR=totem_version_minor
51
63
AC_SUBST(TOTEM_VERSION_MINOR)
52
64
AC_SUBST(TOTEM_VERSION_MICRO)
53
65
 
 
66
TOTEM_API_VERSION=totem_api_version_major.totem_api_version_minor
 
67
AC_SUBST(TOTEM_API_VERSION)
 
68
AC_DEFINE_UNQUOTED(TOTEM_API_VERSION, ["$TOTEM_API_VERSION"], [Define to the Totem plugin API version])
 
69
 
54
70
# The full list of plugins
55
 
allowed_plugins="thumbnail screensaver ontop galago gromit lirc media-player-keys mythtv properties sidebar-test skipto sample-python sample-vala bemused youtube publish tracker pythonconsole jamendo opensubtitles screenshot brasero-disc-recorder coherence_upnp dbus-service iplayer"
 
71
allowed_plugins="bemused brasero-disc-recorder chapters coherence_upnp dbus-service im-status gromit iplayer jamendo lirc media-player-keys ontop opensubtitles properties publish pythonconsole save-file sample-python sample-vala screensaver screenshot sidebar-test skipto thumbnail tracker youtube zeitgeist-dp"
56
72
 
57
73
PLUGINDIR='${libdir}/totem/plugins'
58
74
AC_SUBST(PLUGINDIR)
60
76
dnl the two versions here implicate the gstreamer core and gst-plugins
61
77
dnl release versions.
62
78
GST_MAJORMINOR=0.10
63
 
GST_REQS=0.10.26
64
 
GSTPLUG_REQS=0.10.26
 
79
GST_REQS=0.10.30
 
80
GSTPLUG_REQS=0.10.30
65
81
 
66
82
HAVE_GSTREAMER=no
67
83
 
95
111
        ])
96
112
fi
97
113
 
98
 
MM="gstreamer-0.10 >= $GST_REQS gstreamer-base-0.10 >= $GST_REQS gstreamer-plugins-base-0.10 >= $GSTPLUG_REQS gstreamer-tag-0.10 >= $GSTPLUG_REQS gconf-2.0"
 
114
MM="gstreamer-0.10 >= $GST_REQS gstreamer-base-0.10 >= $GST_REQS gstreamer-plugins-base-0.10 >= $GSTPLUG_REQS gstreamer-tag-0.10 >= $GSTPLUG_REQS"
99
115
PKG_CHECK_MODULES(GST, $MM)
100
116
GST_LIBS="$GST_LIBS -lgstbase-$GST_MAJORMINOR -lgstinterfaces-$GST_MAJORMINOR -lgstvideo-$GST_MAJORMINOR -lgstaudio-$GST_MAJORMINOR -lgstpbutils-$GST_MAJORMINOR -lgsttag-$GST_MAJORMINOR"
101
117
AC_SUBST(GST_LIBS)
147
163
        fi
148
164
done
149
165
 
150
 
AC_MSG_CHECKING([Whether not to check for iso-codes])
151
 
AC_ARG_ENABLE([iso-codes],
152
 
        AS_HELP_STRING([--disable-iso-codes],[Whether not to check for iso-codes at build-time]),
153
 
        [],[disable_iso_codes_check=no])
154
 
if test x$disable_iso_codes_check = xno ; then
155
 
        AC_MSG_RESULT([no])
156
 
else
157
 
        AC_MSG_RESULT([yes])
158
 
fi
159
 
 
160
 
if test x$disable_iso_codes_check = "xno" ; then
161
 
        AC_MSG_CHECKING([whether iso-codes has iso-639 domain])
162
 
        if $PKG_CONFIG --variable=domains iso-codes | grep 639 >/dev/null ; then
163
 
                AC_MSG_RESULT([yes])
164
 
        else
165
 
                AC_MSG_RESULT([no])
166
 
        fi
167
 
        AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["`$PKG_CONFIG --variable=prefix iso-codes`"],[ISO codes prefix])
168
 
        ISO_CODES=iso-codes
169
 
else
170
 
        AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["$prefix"],[ISO codes prefix])
171
 
        ISO_CODES=""
172
 
fi
173
 
 
174
166
dnl Check the smclient backend
175
 
GDK_TARGET="$($PKG_CONFIG --variable target gdk-2.0)"
 
167
GDK_TARGET="$($PKG_CONFIG --variable targets gdk-3.0)"
176
168
 
177
169
SMCLIENT_PKGS=
178
170
AC_MSG_CHECKING([which smclient backend to use])
180
172
  [AS_HELP_STRING([--with-smclient],[which smclient backend to use (xsmp/win32/quartz)])],
181
173
  [],
182
174
  [case "$GDK_TARGET" in
183
 
    x11) with_smclient=xsmp SMCLIENT_PKGS="sm" ;;
 
175
    x11) with_smclient=xsmp SMCLIENT_PKGS="sm ice" ;;
184
176
    win32|quartz) with_smclient=$GDK_TARGET ;;
185
177
    *) with_smclient=no ;;
186
178
   esac])
200
192
 
201
193
PKG_CHECK_MODULES([DEPENDENCY],[
202
194
  glib-2.0 >= $GLIB_REQS
203
 
  gio-2.0
204
 
  gtk+-2.0 >= $GTK_REQS
 
195
  gio-2.0 >= $GIO_REQS
 
196
  gtk+-3.0 >= $GTK_REQS
 
197
  gdk-x11-3.0 >= $GTK_REQS
205
198
  gmodule-2.0
206
 
  gconf-2.0
207
199
  totem-plparser >= $TOTEM_PLPARSER_REQS
 
200
  gstreamer-tag-0.10 >= 0.10.26
208
201
  cairo])
209
202
 
210
203
PKG_CHECK_MODULES(MM, $MM)
211
204
 
212
 
PKG_CHECK_MODULES([GTK],[gtk+-2.0 gthread-2.0])
 
205
PKG_CHECK_MODULES([GTK],[gtk+-3.0 gthread-2.0])
213
206
GTK_LIBS="$GTK_LIBS $EXTRA_BACKEND_LIBS"
214
207
AC_SUBST(GTK_LIBS)
215
208
 
219
212
  $ISO_CODES
220
213
  gnome-icon-theme >= $GNOMEICON_REQS])
221
214
 
222
 
PKG_CHECK_MODULES([UNIQUE], unique-1.0)
223
 
 
224
215
dnl *************************
225
216
dnl X11 related functionality
226
217
dnl *************************
227
218
have_x11=no
228
 
if test x$(pkg-config --variable=target gtk+-2.0) = xx11; then
 
219
if test x$(pkg-config --variable=targets gtk+-3.0) = xx11; then
229
220
        AC_PATH_X
230
221
 
231
222
        have_x11=yes
281
272
AM_CONDITIONAL(HAVE_XVIDMODE, [test x$have_xvidmode = xyes])
282
273
 
283
274
dnl ================================================================
284
 
dnl Python plugins
 
275
dnl Plugins support
285
276
dnl ================================================================
286
277
 
 
278
PKG_CHECK_MODULES(PEAS, libpeas-1.0 >= $PEAS_REQS)
 
279
PKG_CHECK_MODULES(PEASGTK, libpeas-gtk-1.0 >= $PEAS_REQS)
 
280
 
 
281
# ================================================================
 
282
# Python plugins
 
283
# ================================================================
 
284
# We don't need any of this at compile time, but it is needed for the Python plugins at runtime, so we check anyway.
 
285
 
287
286
AC_MSG_CHECKING([whether Python plugin support is requested])
288
287
AC_ARG_ENABLE([python],
289
288
        AS_HELP_STRING([--enable-python],[Enable python support]),
290
 
        [enable_python=$enableval have_python=$enableval],
291
 
        [enable_python=autodetect have_python=yes])
 
289
        [enable_python=$enableval],
 
290
        [enable_python=autodetect])
292
291
AC_MSG_RESULT([$enable_python])
293
292
 
294
 
if test "x$have_python" != "xyes"; then
 
293
have_python=no
 
294
have_pygobject=no
 
295
 
 
296
# Test for the Python run time and PyGObject
 
297
if test "x$enable_python" != "xno"; then
 
298
        AM_PATH_PYTHON([$PYTHON_REQS],[have_python=yes],[have_python=no])
 
299
        if test "x$PYTHON" = "x:"; then
 
300
                have_python=no
 
301
        fi
 
302
 
 
303
        PKG_CHECK_MODULES([PYGOBJECT],[pygobject-2.0 >= $PYGOBJECT_REQS],[have_pygobject=yes],[have_pygobject=no])
 
304
fi
 
305
 
 
306
# Output the results of the Python checks
 
307
if test "x$have_python" != "xyes" -o "x$have_pygobject" != "xyes"; then
295
308
        if test "x$enable_python" = "xyes"; then
296
 
                AC_MSG_ERROR([Python not found])
 
309
                AC_MSG_ERROR([python >= $PYTHON_REQS or pygobject-2.0 >= $PYGOBJECT_REQS not found])
297
310
        elif test "x$enable_python" = "xautodetect"; then
298
311
                enable_python=no
299
 
                AC_MSG_WARN([Python not found, disabling python support])
300
 
        fi
301
 
fi
302
 
 
303
 
if test "x$have_python" != "xno"; then
304
 
        AM_PATH_PYTHON([2.3],[],[have_python=no])
305
 
        if test "x$PYTHON" = "x:"; then
306
 
                have_python=no
307
 
        fi
308
 
fi
309
 
 
310
 
if test "x$have_python" != "xno"; then
311
 
        PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
312
 
        PY_EXEC_PREFIX=`$PYTHON -c 'import sys ; print sys.exec_prefix'`
313
 
        PYTHON_LIBS="-lpython$PYTHON_VERSION"
314
 
        if test -d $PY_EXEC_PREFIX/lib64/python$PYTHON_VERSION ; then
315
 
                PYTHON_LIB_LOC="-L$PY_EXEC_PREFIX/lib64/python$PYTHON_VERSION/config"
316
 
                PYTHON_MAKEFILE="$PY_EXEC_PREFIX/lib64/python$PYTHON_VERSION/config/Makefile"
317
 
        else
318
 
                PYTHON_LIB_LOC="-L$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config"
319
 
                PYTHON_MAKEFILE="$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config/Makefile"
320
 
        fi
321
 
        PYTHON_CFLAGS="-I$PY_PREFIX/include/python$PYTHON_VERSION"
322
 
        PYTHON_BASEMODLIBS=`sed -n -e 's/^BASEMODLIBS=\(.*\)/\1/p' $PYTHON_MAKEFILE`
323
 
        PYTHON_OTHER_LIBS=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $PYTHON_MAKEFILE`
324
 
        PYTHON_EXTRA_LIBS="$PYTHON_BASEMODLIBS $PYTHON_OTHER_LIBS"
325
 
        AC_SUBST([PYTHON_LIBS])
326
 
        AC_SUBST([PYTHON_LIB_LOC])
327
 
        AC_SUBST([PYTHON_CFLAGS])
328
 
        AC_SUBST([PYTHON_EXTRA_LIBS])
329
 
 
330
 
        PYGTK_REQUIRED=2.12.0
331
 
 
332
 
        PKG_CHECK_MODULES([PYGTK], [
333
 
                pygtk-2.0 >= $PYGTK_REQUIRED
334
 
                totem-plparser >= $TOTEM_PLPARSER_REQS],
335
 
                [],
336
 
                [
337
 
                have_python=no
338
 
                if test "x$enable_python" = "xyes"; then
339
 
                        AC_MSG_ERROR([$PYGTK_PKG_ERRORS])
340
 
                elif test "x$enable_python" = "xautodetect"; then
341
 
                        enable_python=no
342
 
                        AC_MSG_WARN([$PYGTK_PKG_ERRORS])
343
 
                        AC_MSG_WARN([Disabling python support])
344
 
                fi
345
 
                ])
346
 
 
347
 
        AC_SUBST([PYGTK_CFLAGS])
348
 
        AC_SUBST([PYGTK_LIBS])
349
 
fi
350
 
 
351
 
if test "x$have_python" != "xno"; then
352
 
        AC_MSG_CHECKING([for pygtk defs])
353
 
        PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
354
 
        AC_MSG_RESULT([$PYGTK_DEFSDIR])
355
 
 
356
 
        AC_MSG_CHECKING([for pygtk codegen])
357
 
        PYGTK_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/codegen.py"
358
 
        AC_MSG_RESULT([$PYGTK_CODEGEN])
359
 
 
360
 
        AC_MSG_CHECKING([for pygtk h2def])
361
 
        PYGTK_H2DEF="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/h2def.py"
362
 
        AC_MSG_RESULT([$PYGTK_H2DEF])
363
 
 
364
 
        AC_SUBST([PYGTK_DEFSDIR])
365
 
        AC_SUBST([PYGTK_CODEGEN])
366
 
        AC_SUBST([PYGTK_H2DEF])
367
 
 
368
 
dnl     uncomment when http://bugzilla.gnome.org/show_bug.cgi?id=351072 fixed
369
 
dnl     PKG_CHECK_EXISTS([pygobject-2.0 >= X.XX.X],
370
 
dnl                      AC_DEFINE([PYGOBJECT_CAN_MARSHAL_GVALUE]))
371
 
 
372
 
        dnl Check for -fno-strict-aliasing
373
 
        FLAGS="-fno-strict-aliasing"
374
 
        save_CFLAGS="$CFLAGS"
375
 
        CFLAGS="$CFLAGS $FLAGS"
376
 
        AC_MSG_CHECKING([whether [$]CC understands $FLAGS])
377
 
        AC_TRY_COMPILE([], [], [compiler_has_option=yes], [compiler_has_option=no])
378
 
        CFLAGS="$save_CFLAGS"
379
 
        AC_MSG_RESULT($compiler_has_option)
380
 
        if test $compiler_has_option = yes; then
381
 
                NO_STRICT_ALIASING_CFLAGS="$FLAGS"
382
 
        fi
383
 
        AC_SUBST([NO_STRICT_ALIASING_CFLAGS])
384
 
fi
385
 
 
386
 
if test "x$have_python" != "xno" -a "x$enable_python" != "xno"; then
 
312
                AC_MSG_WARN([python >= $PYTHON_REQS or pygobject-2.0 >= $PYGOBJECT_REQS not found; disabling Python support])
 
313
        fi
 
314
elif test "x$enable_python" != "xno"; then
387
315
        enable_python=yes
388
 
        AC_DEFINE([ENABLE_PYTHON],[1],[Define to compile with python plugin support])
389
316
fi
390
317
 
391
318
AM_CONDITIONAL([ENABLE_PYTHON],[test "x$enable_python" = "xyes"])
396
323
AC_MSG_CHECKING([whether Vala plugin support is requested])
397
324
AC_ARG_ENABLE([vala],
398
325
        AS_HELP_STRING([--enable-vala],[Enable Vala plugin support]),
399
 
        [enable_vala=$enableval have_vala=$enableval],
400
 
        [enable_vala=autodetect have_vala=yes])
 
326
        [enable_vala=$enableval],
 
327
        [enable_vala=auto])
401
328
AC_MSG_RESULT([$enable_vala])
402
329
if test "x$enable_vala" != "xno"; then
403
 
        PKG_CHECK_MODULES(VALA, vala-1.0 >= $VALA_REQS, with_vala=yes,
404
 
                          with_vala=no)
405
 
        if test "x$with_vala" = "xyes"; then
406
 
                VALAC="`pkg-config --variable=prefix vala-1.0`/bin/valac"
407
 
                AC_SUBST([VALAC])
408
 
        elif test "x$enable_vala" = "xyes"; then
409
 
                AC_MSG_ERROR([Vala plugin support explicitly requested, but not found])
 
330
        AM_PROG_VALAC([$VALA_REQS])
 
331
        if test "x$VALAC" = "x"; then
 
332
                if test "x$enable_vala" = "xyes"; then
 
333
                        AC_MSG_ERROR([Vala plugin support explicitly requested, but not found])
 
334
                fi
 
335
                with_vala=no
 
336
        else
 
337
                with_vala=yes
410
338
        fi
411
339
fi
 
340
 
412
341
AM_CONDITIONAL(ENABLE_VALA, test "x$with_vala" = "xyes")
413
342
 
414
343
# ********************
465
394
        add_plugin="1"
466
395
 
467
396
        case ${plugin} in
468
 
                screensaver)
469
 
                        PKG_CHECK_MODULES(SCREENSAVER, gconf-2.0)
470
 
                ;;
471
 
                galago)
472
 
                        PKG_CHECK_MODULES(LIBGALAGO, libgalago >= 0.5.2,
473
 
                                [HAVE_LIBGALAGO=yes], [HAVE_LIBGALAGO=no])
474
 
                        if test "${HAVE_LIBGALAGO}" != "yes" ; then
475
 
                                plugin_error_or_ignore "you need libgalago >= 0.5.2 installed for the galago plugin"
476
 
                                add_plugin="0"
477
 
                        fi
 
397
                coherence_upnp)
 
398
                        # The Coherence framework still uses PyGTK, and thus conflicts with the new pygobject introspected bindings
 
399
                        plugin_error_or_ignore "the coherence_upnp plugin uses PyGTK and conflicts with the new pygobject bindings"
 
400
                        add_plugin="0"
478
401
                ;;
479
402
                gromit)
480
403
                        if test "${have_x11}" != "yes" ; then
504
427
                                add_plugin="0"
505
428
                        fi
506
429
                ;;
507
 
                mythtv)
508
 
                        PKG_CHECK_MODULES(GMYTH, gmyth >= 0.7.1 gmyth-upnp >= 0.7.1 gconf-2.0,
509
 
                                          [HAVE_GMYTH=yes], [HAVE_GMYTH=no])
510
 
                        if test "${HAVE_GMYTH}" != "yes"; then
511
 
                                plugin_error_or_ignore "you need GMyth >= 0.7 installed for the MythTV plugin"
512
 
                                add_plugin="0"
513
 
                        fi
514
 
                ;;
515
430
                bemused)
516
431
                        PKG_CHECK_MODULES(BEMUSED, bluez, [HAVE_BLUEZ=yes], [HAVE_BLUEZ=no])
517
432
                        if test "${HAVE_BLUEZ}" != "yes" ; then
520
435
                        fi
521
436
                ;;
522
437
                publish)
 
438
                        # FIXME
523
439
                        PKG_CHECK_MODULES(LIBEPC, libepc-ui-1.0 >= 0.3.0, [HAVE_LIBEPC=yes], [HAVE_LIBEPC=no])
524
440
                        if test "${HAVE_LIBEPC}" != "yes" ; then
525
441
                                plugin_error_or_ignore "you need the easy-publish-and-consume library installed for the publish plugin"
527
443
                        fi
528
444
                ;;
529
445
                tracker)
530
 
                        PKG_CHECK_MODULES(TRACKER, tracker-client-0.7 >= 0.7.1, [HAVE_TRACKER=yes], [HAVE_TRACKER=no])
 
446
                        PKG_CHECK_MODULES(TRACKER, tracker-sparql-0.10 >= 0.9.34, [HAVE_TRACKER=yes], [HAVE_TRACKER=no])
531
447
                        if test "${HAVE_TRACKER}" != "yes" ; then
532
448
                                plugin_error_or_ignore "you need the tracker development headers installed for the tracker plugin"
533
449
                                add_plugin="0"
549
465
                ;;
550
466
                brasero-disc-recorder)
551
467
                        dnl this is only needed to use brasero icons
552
 
                        PKG_CHECK_MODULES(DISC_RECORDER, libxml-2.0 >= 2.6.0 gtk+-x11-2.0,
 
468
                        PKG_CHECK_MODULES(DISC_RECORDER, libxml-2.0 >= 2.6.0 gtk+-x11-3.0,
553
469
                                        [BUILD_RECORDER=yes], [BUILD_RECORDER=no])
554
470
                        if test "${BUILD_RECORDER}" != "yes" ; then
555
 
                                plugin_error_or_ignore "you need libxml-2.0 >= 2.6.0 and gtk+-x11-2.0 to use the brasero-disc-recorder plugin"
556
 
                                add_plugin="0"
 
471
                                plugin_error_or_ignore "you need libxml-2.0 >= 2.6.0 and gtk+-x11-3.0 to use the brasero-disc-recorder plugin"
 
472
                                add_plugin="0"
 
473
                        fi
 
474
                ;;
 
475
                save-file)
 
476
                        dnl the nautilus check should be a run-time check
 
477
                        dnl but it might not always be running
 
478
                        PKG_CHECK_MODULES(SAVE_FILE_CHECK, gio-2.0 >= 2.26 libnautilus-extension >= 2.91.3,
 
479
                                          [BUILD_SAVE_FILE=yes], [BUILD_SAVE_FILE=no])
 
480
                        if test "${BUILD_SAVE_FILE}" != "yes" ; then
 
481
                                plugin_error_or_ignore "you need gio-2.0 >=2.26 to use the save-file plugin"
 
482
                                add_plugin="0"
 
483
                        else
 
484
                                PKG_CHECK_MODULES(SAVE_FILE, gio-2.0 >= 2.26)
557
485
                        fi
558
486
                ;;
559
487
                youtube)
560
 
                        PKG_CHECK_MODULES(LIBGDATA, libgdata >= 0.4.0,
 
488
                        PKG_CHECK_MODULES(LIBGDATA, libgdata >= 0.4.0 gdk-pixbuf-2.0 >= 2.23.0,
561
489
                                [HAVE_LIBGDATA=yes], [HAVE_LIBGDATA=no])
562
490
                        if test "${HAVE_LIBGDATA}" != "yes" ; then
563
491
                                plugin_error_or_ignore "you need libgdata >= 0.4.0 installed for the YouTube plugin"
564
492
                                add_plugin="0"
565
493
                        fi
566
494
 
 
495
                        # For timeout support. Remove this once we depend on libgdata >= 0.7.0
 
496
                        PKG_CHECK_MODULES(LIBGDATA_0_7, libgdata >= 0.7.0,
 
497
                                [HAVE_LIBGDATA_0_7=yes], [HAVE_LIBGDATA_0_7=no])
 
498
                        if test "${HAVE_LIBGDATA_0_7}" = "yes" ; then
 
499
                                AC_DEFINE([HAVE_LIBGDATA_0_7],[1],[Define if libgdata >= 0.7.0 is available])
 
500
                        fi
 
501
 
 
502
                        PKG_CHECK_MODULES(LIBSOUP, libsoup-2.4,
 
503
                                [HAVE_LIBSOUP=yes], [HAVE_LIBSOUP=no])
 
504
                        if test "${HAVE_LIBSOUP}" != "yes" ; then
 
505
                                plugin_error_or_ignore "you need libsoup-2.4 installed for the YouTube plugin"
 
506
                                add_plugin="0"
 
507
                        fi
 
508
 
567
509
                        dnl We need the souphttpsrc element for the YouTube plugin
568
510
                        AC_MSG_CHECKING([GStreamer 0.10 souphttpsrc plugin])
569
511
                        if $gst010_inspect souphttpsrc >/dev/null 2>/dev/null; then
570
512
                                AC_MSG_RESULT([yes])
571
513
                        else
572
514
                                AC_MSG_RESULT([no])
573
 
                                AC_MSG_ERROR([
574
 
                                        Cannot find required GStreamer-0.10 plugin 'souphttpsrc'.
575
 
                                        It should be part of gst-plugins-good. Please install it.
576
 
                                ])
 
515
                                plugin_error_or_ignore "you need souphttpsrc from gst-plugins-good installed for the YouTube plugin"
 
516
                                add_plugin="0"
 
517
                        fi
 
518
                ;;
 
519
                chapters)
 
520
                        PKG_CHECK_MODULES(CHAPTERS, libxml-2.0 >= 2.6.0 gtk+-3.0 glib-2.0 >= 2.15.0,
 
521
                                [BUILD_CHAPTERS=yes], [BUILD_CHAPTERS=no])
 
522
                        if test "${BUILD_CHAPTERS}" != "yes" ; then
 
523
                                plugin_error_or_ignore "you need gtk+-3.0, glib-2.0 >= 2.15.0 and libxml-2.0 >= 2.6.0 to use the chapters plugin"
 
524
                                add_plugin="0"
 
525
                        fi
 
526
                ;;
 
527
                zeitgeist-dp)
 
528
                        if test "${with_vala}" != "yes" ; then
 
529
                                plugin_error_or_ignore "you need vala installed to use the zeitgeist-dp plugin"
 
530
                                add_plugin="0"
 
531
                        else
 
532
                                PKG_CHECK_MODULES(LIBZEITGEIST, zeitgeist-1.0 >= 0.3.6,
 
533
                                [HAS_LIBZEITGEIST=yes], [HAS_LIBZEITGEIST=no])
 
534
                                if test "${HAS_LIBZEITGEIST}" != "yes" ; then
 
535
                                        plugin_error_or_ignore "you need zeitgeist-1.0 >= 0.3.6 to use the zeitgeist-dp plugin"
 
536
                                        add_plugin="0"
 
537
                                fi
577
538
                        fi
578
539
                ;;
579
540
        esac
707
668
        [ENABLE_NAUTILUS=yes]) dnl Default value
708
669
 
709
670
if test x$ENABLE_NAUTILUS = "xyes" ; then
710
 
        PKG_CHECK_MODULES(NAUTILUS, gtk+-2.0 gthread-2.0 libnautilus-extension,
 
671
        PKG_CHECK_MODULES(NAUTILUS, gtk+-3.0 gthread-2.0 libnautilus-extension,
711
672
                        [HAVE_NAUTILUS=yes], [HAVE_NAUTILUS=no])
712
673
fi
713
674
 
745
706
        fi
746
707
        if test "x$enable_dbus" = xyes; then
747
708
                AC_DEFINE(WITH_DBUS, 1, [Define if D-BUS is enabled])
 
709
                AC_DEFINE(ENABLE_DBUS, 1, [Define if D-BUS is enabled])
748
710
        fi
749
711
fi
750
712
AM_CONDITIONAL(WITH_DBUS, test "x$enable_dbus" = "xyes")
751
713
 
752
 
AC_PATH_PROG(GCONFTOOL, gconftool-2)
753
 
AM_GCONF_SOURCE_2
 
714
GLIB_GSETTINGS
754
715
 
755
716
GNOME_COMMON_INIT
756
717
GNOME_DEBUG_CHECK
757
718
GNOME_COMPILE_WARNINGS([maximum])
758
719
GNOME_CXX_WARNINGS
759
720
GNOME_MAINTAINER_MODE_DEFINES
760
 
GTK_DOC_CHECK(1.11)
 
721
GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
761
722
 
762
723
# This macro expands DIR and assigns it to RET.
763
724
# If DIR is NONE, then it's replaced by DEFAULT.
809
770
totem.spec
810
771
lib/Makefile
811
772
src/Makefile
 
773
src/properties/Makefile
812
774
src/plugins/Makefile
813
775
src/plugins/bemused/Makefile
814
776
src/plugins/coherence_upnp/Makefile
816
778
src/plugins/screensaver/Makefile
817
779
src/plugins/screenshot/Makefile
818
780
src/plugins/ontop/Makefile
819
 
src/plugins/galago/Makefile
 
781
src/plugins/im-status/Makefile
820
782
src/plugins/gromit/Makefile
821
783
src/plugins/iplayer/Makefile
822
784
src/plugins/lirc/Makefile
823
785
src/plugins/media-player-keys/Makefile
824
 
src/plugins/mythtv/Makefile
825
786
src/plugins/opensubtitles/Makefile
 
787
src/plugins/opensubtitles/org.gnome.totem.plugins.opensubtitles.gschema.xml.in
826
788
src/plugins/properties/Makefile
 
789
src/plugins/save-file/Makefile
827
790
src/plugins/sidebar-test/Makefile
828
791
src/plugins/skipto/Makefile
829
792
src/plugins/sample-python/Makefile
830
793
src/plugins/sample-vala/Makefile
831
794
src/plugins/thumbnail/Makefile
832
 
src/plugins/totem/Makefile
833
795
src/plugins/tracker/Makefile
834
796
src/plugins/youtube/Makefile
835
797
src/plugins/pythonconsole/Makefile
 
798
src/plugins/pythonconsole/org.gnome.totem.plugins.pythonconsole.gschema.xml.in
836
799
src/plugins/publish/Makefile
 
800
src/plugins/publish/org.gnome.totem.plugins.publish.gschema.xml.in
837
801
src/plugins/jamendo/Makefile
 
802
src/plugins/jamendo/org.gnome.totem.plugins.jamendo.gschema.xml.in
838
803
src/plugins/brasero-disc-recorder/Makefile
 
804
src/plugins/chapters/Makefile
 
805
src/plugins/zeitgeist-dp/Makefile
839
806
src/backend/Makefile
840
807
browser-plugin/Makefile
841
808
data/Makefile
 
809
data/org.gnome.totem.gschema.xml.in
842
810
data/totem.desktop.in.in
 
811
data/totem.pc
843
812
data/icons/Makefile
844
813
data/icons/16x16/Makefile
845
814
data/icons/22x22/Makefile
846
815
data/icons/24x24/Makefile
847
816
data/icons/32x32/Makefile
848
817
data/icons/48x48/Makefile
 
818
data/icons/256x256/Makefile
849
819
data/icons/scalable/Makefile
850
820
po/Makefile.in
851
821
help/Makefile
852
 
bindings/Makefile
853
 
bindings/python/Makefile
854
 
bindings/vala/Makefile
855
822
docs/Makefile
856
823
docs/reference/Makefile
857
824
docs/reference/version.xml
865
832
        AC_MSG_NOTICE([   Easy codec installation support disabled])
866
833
fi
867
834
if test x$enable_python = xyes ; then
868
 
        AC_MSG_NOTICE([** Python binding support enabled])
 
835
        AC_MSG_NOTICE([** Python plugin support enabled])
869
836
else
870
 
        AC_MSG_NOTICE([   Python binding support disabled])
 
837
        AC_MSG_NOTICE([   Python plugin support disabled])
871
838
fi
872
839
if test x$with_vala = xyes ; then
873
 
        AC_MSG_NOTICE([** Vala binding support enabled])
 
840
        AC_MSG_NOTICE([** Vala plugin support enabled])
874
841
else
875
 
        AC_MSG_NOTICE([   Vala binding support disabled])
 
842
        AC_MSG_NOTICE([   Vala plugin support disabled])
876
843
fi
877
844
if test "x${PLUGINS}" != "x" ; then
878
845
        for allowed_plugin in ${ALL_PLUGINS}; do
920
887
else
921
888
        AC_MSG_NOTICE([   Nautilus properties page disabled])
922
889
fi
923
 
if test x$disable_iso_codes_check = xno ; then
924
 
        AC_MSG_NOTICE([** iso-codes support checked])
925
 
else
926
 
        AC_MSG_NOTICE([   iso-codes support checked at run-time])
927
 
fi
928
890
if test x$enable_xtest = xyes ; then
929
891
        AC_MSG_NOTICE([** XTest (legacy screensaver) support enabled])
930
892
else