~ubuntu-branches/ubuntu/trusty/totem/trusty-proposed

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Sjoerd Simons, Josselin Mouette, Sjoerd Simons, Emilio Pozuelo Monfort
  • Date: 2009-04-19 17:28:51 UTC
  • mfrom: (1.2.52 upstream) (5.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090419172851-epoqimnq62akn294
Tags: 2.26.1-1
[ Josselin Mouette ]
* totem-plugins depends on python-gdbm. Closes: #523582.

[ Sjoerd Simons ]
* New upstream release (2.26.1)
* debian/patches/02_flv.patch: Dropped, fixed upstream
* debian/patches/04_tracker_build.patch: Dropped, fixed upstream
* debian/patches/01_fake_keypresses.patch: Updated and simplified
* debian/patches/70_bbc_plugin.patch: Updated
* debian/patches/90_autotools.patch: Updated

[ Emilio Pozuelo Monfort ]
* Recommend gnome-codec-install rather than gnome-app-install.
  Closes: #523052.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
AC_PREREQ(2.52)
2
2
 
3
3
m4_define(totem_version_major, 2)
4
 
m4_define(totem_version_minor, 24)
5
 
m4_define(totem_version_micro, 3)
 
4
m4_define(totem_version_minor, 26)
 
5
m4_define(totem_version_micro, 1)
6
6
 
7
7
AC_INIT([totem],
8
8
        [totem_version_major.totem_version_minor.totem_version_micro],
50
50
AC_SUBST(TOTEM_VERSION_MICRO)
51
51
 
52
52
# The full list of plugins
53
 
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"
 
53
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"
54
54
 
55
55
PLUGINDIR='${libdir}/totem/plugins'
56
56
AC_SUBST(PLUGINDIR)
57
57
 
58
 
AC_ARG_ENABLE(nvtv, AC_HELP_STRING([--enable-nvtv],[Enable support for TV-output with nvtv]), enable_nvtv="$enableval", enable_nvtv=yes)
59
 
 
60
 
if test x$enable_nvtv = xyes; then
61
 
PKG_CHECK_MODULES(NVTV, nvtvsimple >= 0.4.5, found_nvtv=yes, found_nvtv=no)
62
 
        if test x"$found_nvtv" = "xyes" ; then
63
 
                AC_DEFINE(HAVE_NVTV,1,[Define to 1 if nvtv is available and used.])
64
 
        fi
65
 
fi
66
 
 
67
58
dnl xine or gst ?
68
59
 
69
60
dnl the two versions here implicate the gstreamer core and gst-plugins
137
128
        gst010_toolsdir=`$PKG_CONFIG --variable=toolsdir gstreamer-0.10`
138
129
        gst010_inspect="$gst010_toolsdir/gst-inspect-0.10"
139
130
 
 
131
        dnl Give error and exit if we don't have the gst_inspect tool
 
132
        AC_MSG_CHECKING([GStreamer 0.10 inspection tool])
 
133
        if test -r "$gst010_inspect"; then
 
134
                AC_MSG_RESULT([yes])
 
135
        else
 
136
                AC_MSG_RESULT([no])
 
137
                AC_MSG_ERROR([
 
138
                        Cannot find required GStreamer-0.10 tool 'gst-inspect-0.10'.
 
139
                        It should be part of gstreamer-0_10-utils. Please install it.
 
140
                ])
 
141
        fi
 
142
 
140
143
        dnl Check for elements from gst-plugins-base
141
144
        for base_element in playbin ffmpegcolorspace videoscale
142
145
        do
221
224
        ISO_CODES=""
222
225
fi
223
226
 
224
 
dnl Check for GTK+ only build
225
 
AC_ARG_ENABLE(gtk,
226
 
        AC_HELP_STRING([--enable-gtk],[compile a gtk+ only version]),
227
 
        [case "${enableval}" in
228
 
        yes) ENABLE_GTK=yes ;;
229
 
        no) ENABLE_GTK=no ;;
230
 
        *) AC_MSG_ERROR(bad value ${enableval} for --disable-gtk) ;;
231
 
        esac],
232
 
        [ENABLE_GTK=no]) dnl Default value
233
 
 
234
 
dnl Seems that the order matters because libtool blows
235
 
dnl Also check if we're going to be using GTK+ only
236
 
if test x$ENABLE_GTK = "xno" ; then
237
 
# FIXME: use gmodule-no-export instead!
238
 
        PKG_CHECK_MODULES(EXTRA_GNOME, glib-2.0 >= $GLIB_REQS gtk+-2.0 >= $GTK_REQS libgnomeui-2.0 >= $GNOMEUI_REQS gio-2.0 libgnome-2.0 >= $LIBGNOME_REQS gnome-icon-theme >= $GNOMEICON_REQS gmodule-2.0 totem-plparser >= $TOTEM_PLPARSER_REQS $ISO_CODES)
239
 
        HAVE_GNOME=yes
240
 
else
241
 
# FIXME: use gmodule-no-export instead!
242
 
        PKG_CHECK_MODULES(EXTRA_GNOME, glib-2.0 >= $GLIB_REQS gtk+-2.0 >= $GTK_REQS gio-2.0 gnome-icon-theme >= $GNOMEICON_REQS gmodule-2.0 gconf-2.0 totem-plparser >= $TOTEM_PLPARSER_REQS $ISO_CODES)
243
 
        AC_DEFINE(USE_STABLE_LIBGNOMEUI, 1, [defined if we don't have GNOME])
244
 
        AC_DEFINE(HAVE_GTK_ONLY, 1, [defined if GNOME isn't used])
245
 
        HAVE_GNOME=no
 
227
dnl Check the smclient backend
 
228
GDK_TARGET="$($PKG_CONFIG --variable target gdk-2.0)"
 
229
 
 
230
SMCLIENT_PKGS=
 
231
AC_MSG_CHECKING([which smclient backend to use])
 
232
AC_ARG_WITH([smclient],
 
233
  [AS_HELP_STRING([--with-smclient],[which smclient backend to use (xsmp/win32/quartz)])],
 
234
  [],
 
235
  [case "$GDK_TARGET" in
 
236
    x11) with_smclient=xsmp SMCLIENT_PKGS="sm" ;;
 
237
    win32|quartz) with_smclient=$GDK_TARGET ;;
 
238
    *) with_smclient=no ;;
 
239
   esac])
 
240
AC_MSG_RESULT([$with_smclient])
 
241
 
 
242
if test "$with_smclient" != "no"; then
 
243
  PKG_CHECK_MODULES([SMCLIENT],[$SMCLIENT_PKGS])
 
244
  AC_DEFINE([WITH_SMCLIENT],[1],[Define if smclient is enabled])
246
245
fi
247
246
 
 
247
AM_CONDITIONAL([WITH_SMCLIENT],[test "$with_smclient" != "no"])
 
248
AM_CONDITIONAL([WITH_SMCLIENT_XSMP],[test "$with_smclient" = "xsmp"])
 
249
AM_CONDITIONAL([WITH_SMCLIENT_WIN32],[test "$with_smclient" = "win32"])
 
250
AM_CONDITIONAL([WITH_SMCLIENT_QUARTZ],[test "$with_smclient" = "quartz"])
 
251
 
 
252
dnl Pkg-config checks
 
253
 
 
254
PKG_CHECK_MODULES([DEPENDENCY],[
 
255
  glib-2.0 >= $GLIB_REQS
 
256
  gio-2.0
 
257
  gtk+-2.0 >= $GTK_REQS
 
258
  gmodule-2.0
 
259
  gconf-2.0
 
260
  totem-plparser >= $TOTEM_PLPARSER_REQS
 
261
  cairo])
 
262
 
248
263
PKG_CHECK_MODULES(MM, $MM)
249
264
 
250
 
AM_CONDITIONAL(HAVE_GNOME, test x$HAVE_GNOME = "xyes")
251
 
EXTRA_GNOME_CFLAGS="$EXTRA_GNOME_CFLAGS"
252
 
EXTRA_GNOME_LIBS="$EXTRA_GNOME_LIBS $EXTRA_BACKEND_LIBS"
253
 
AC_SUBST(EXTRA_GNOME_CFLAGS)
254
 
AC_SUBST(EXTRA_GNOME_LIBS)
255
 
 
256
 
PKG_CHECK_MODULES(GTK, gtk+-2.0 gthread-2.0)
257
 
AC_SUBST(GTK_CFLAGS)
 
265
PKG_CHECK_MODULES([GTK],[gtk+-2.0 gthread-2.0])
258
266
GTK_LIBS="$GTK_LIBS $EXTRA_BACKEND_LIBS"
259
267
AC_SUBST(GTK_LIBS)
260
268
 
 
269
AC_SUBST([EXTRA_BACKEND_LIBS])
 
270
 
 
271
PKG_CHECK_EXISTS([
 
272
  $ISO_CODES
 
273
  gnome-icon-theme >= $GNOMEICON_REQS])
 
274
 
261
275
dnl *************************
262
276
dnl X11 related functionality
263
277
dnl *************************
503
517
        add_plugin="1"
504
518
 
505
519
        case ${plugin} in
 
520
                screensaver)
 
521
                        PKG_CHECK_MODULES(SCREENSAVER, gconf-2.0)
 
522
                ;;
506
523
                galago)
507
524
                        PKG_CHECK_MODULES(LIBGALAGO, libgalago >= 0.5.2,
508
525
                                [HAVE_LIBGALAGO=yes], [HAVE_LIBGALAGO=no])
540
557
                        fi
541
558
                ;;
542
559
                mythtv)
543
 
                        PKG_CHECK_MODULES(GMYTH, gmyth >= 0.7.1 gmyth-upnp >= 0.7.1,
 
560
                        PKG_CHECK_MODULES(GMYTH, gmyth >= 0.7.1 gmyth-upnp >= 0.7.1 gconf-2.0,
544
561
                                          [HAVE_GMYTH=yes], [HAVE_GMYTH=no])
545
562
                        if test "${HAVE_GMYTH}" != "yes"; then
546
563
                                plugin_error_or_ignore "you need GMyth >= 0.7 installed for the MythTV plugin"
582
599
                                add_plugin="0"
583
600
                        fi
584
601
                ;;
 
602
                brasero-disc-recorder)
 
603
                        dnl this is only needed to use brasero icons
 
604
                        PKG_CHECK_MODULES(DISC_RECORDER, libxml-2.0 >= 2.6.0 gtk+-x11-2.0,
 
605
                                        [BUILD_RECORDER=yes], [BUILD_RECORDER=no])
 
606
                        if test "${BUILD_RECORDER}" != "yes" ; then
 
607
                                plugin_error_or_ignore "you need libxml-2.0 >= 2.6.0 and gtk+-x11-2.0 to use the brasero-disc-recorder plugin"
 
608
                                add_plugin="0"
 
609
                        fi
 
610
                ;;
585
611
        esac
586
612
 
587
613
        # Add the specified plugin
619
645
        PKG_CHECK_MODULES([BROWSER_PLUGIN],
620
646
                [glib-2.0
621
647
                 gio-2.0
 
648
                 x11
622
649
                 totem-plparser-mini >= $TOTEM_PLPARSER_REQS],
623
650
                [],[enable_browser_plugins=no])
624
651
 
642
669
                enable_browser_plugins=no
643
670
        fi
644
671
 
645
 
        PKG_CHECK_MODULES([SN], [ libstartup-notification-1.0 >= 0.8 ], [enable_browser_plugins=yes], [enable_browser_plugins=no])
646
 
        if test "x$enable_browser_plugins" != "xyes" ; then
647
 
                AC_MSG_WARN([libstartup-notification not found, necessary to build the plugin viewer])
648
 
        fi
649
 
 
650
672
        # check for -fno-rtti flag
651
673
 
652
674
        AC_LANG_PUSH([C++])
671
693
 
672
694
if test "$enable_browser_plugins" = "yes"; then
673
695
 
674
 
AC_MSG_CHECKING([whether to enable the basic browser plugin])
675
 
AC_ARG_ENABLE([basic-plugin],
676
 
        AS_HELP_STRING([--disable-basic-plugin],[Whether to disable the basic browser plugin]),
677
 
        [],[enable_basic_plugin=yes])
678
 
AC_MSG_RESULT([$enable_basic_plugin])
679
 
 
680
696
AC_MSG_CHECKING([whether to enable the GMP browser plugin])
681
697
AC_ARG_ENABLE([gmp-plugin],
682
698
        AS_HELP_STRING([--enable-gmp-plugin],[Whether to enable the GMP browser plugin]),
709
725
 
710
726
fi
711
727
 
712
 
AM_CONDITIONAL([ENABLE_BASIC_PLUGIN],[test "$enable_basic_plugin" = "yes"])
713
728
AM_CONDITIONAL([ENABLE_GMP_PLUGIN],[test "$enable_gmp_plugin" = "yes"])
714
729
AM_CONDITIONAL([ENABLE_COMPLEX_PLUGIN],[test "$enable_complex_plugin" = "yes"])
715
730
AM_CONDITIONAL([ENABLE_NARROWSPACE_PLUGIN],[test "$enable_narrowspace_plugin" = "yes"])
771
786
GNOME_COMPILE_WARNINGS([maximum])
772
787
GNOME_CXX_WARNINGS
773
788
GNOME_MAINTAINER_MODE_DEFINES
 
789
GTK_DOC_CHECK(1.11)
774
790
 
775
791
# This macro expands DIR and assigns it to RET.
776
792
# If DIR is NONE, then it's replaced by DEFAULT.
837
853
src/Makefile
838
854
src/plugins/Makefile
839
855
src/plugins/bemused/Makefile
 
856
src/plugins/coherence_upnp/Makefile
840
857
src/plugins/screensaver/Makefile
 
858
src/plugins/screenshot/Makefile
841
859
src/plugins/ontop/Makefile
842
860
src/plugins/galago/Makefile
843
861
src/plugins/gromit/Makefile
844
862
src/plugins/lirc/Makefile
845
863
src/plugins/media-player-keys/Makefile
846
864
src/plugins/mythtv/Makefile
 
865
src/plugins/opensubtitles/Makefile
847
866
src/plugins/properties/Makefile
848
867
src/plugins/sidebar-test/Makefile
849
868
src/plugins/skipto/Makefile
855
874
src/plugins/youtube/Makefile
856
875
src/plugins/pythonconsole/Makefile
857
876
src/plugins/publish/Makefile
 
877
src/plugins/jamendo/Makefile
 
878
src/plugins/brasero-disc-recorder/Makefile
858
879
src/backend/Makefile
859
880
browser-plugin/Makefile
860
881
data/Makefile
872
893
bindings/Makefile
873
894
bindings/python/Makefile
874
895
bindings/vala/Makefile
 
896
docs/Makefile
 
897
docs/reference/Makefile
 
898
docs/reference/version.xml
875
899
])
876
900
 
877
901
AC_MSG_NOTICE([Totem was configured with the following options:])
885
909
                AC_MSG_NOTICE([   Easy codec installation support disabled])
886
910
        fi
887
911
fi
888
 
if test x$found_nvtv = xyes ; then
889
 
        AC_MSG_NOTICE([** nvtv support enabled])
890
 
else
891
 
        AC_MSG_NOTICE([   nvtv support disabled])
892
 
fi
893
 
if test x$ENABLE_GTK = xyes ; then
894
 
        AC_MSG_NOTICE([** GTK+-only version enabled])
895
 
else
896
 
        AC_MSG_NOTICE([** GNOME version enabled])
897
 
fi
898
912
if test x$enable_python = xyes ; then
899
913
        AC_MSG_NOTICE([** Python binding support enabled])
900
914
else
922
936
        AC_MSG_NOTICE([   No Totem plugins enabled])
923
937
fi
924
938
if test x$enable_browser_plugins = xyes ; then
925
 
        AC_MSG_NOTICE([** Browser plugin enabled (using $MOZILLA)])
926
 
        if test x$enable_basic_plugin = xyes ; then
927
 
                AC_MSG_NOTICE([** Basic browser plugin enabled])
928
 
        else
929
 
                AC_MSG_NOTICE([   Basic browser plugin disabled])
930
 
        fi
 
939
        AC_MSG_NOTICE([** Browser plugin enabled])
931
940
        if test x$enable_gmp_plugin = xyes ; then
932
941
                AC_MSG_NOTICE([** GMP (Windows Media) plugin enabled])
933
942
        else
986
995
else
987
996
        AC_MSG_NOTICE([   XFree86 multimedia keys support disabled])
988
997
fi
 
998
if test "$with_smclient" != "no" ; then
 
999
        AC_MSG_NOTICE([** SM client support enabled])
 
1000
else
 
1001
        AC_MSG_NOTICE([   SM client support disabled])
 
1002
fi
989
1003
 
990
1004
AC_MSG_NOTICE([End options])
991
1005