~ubuntu-branches/ubuntu/natty/rhythmbox/natty-updates

« back to all changes in this revision

Viewing changes to .pc/15_ubuntu_lpi.patch/configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2011-04-01 17:18:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110401171815-fwcph4pt4twsoqqd
Tags: 0.13.3-0ubuntu5
debian/patches: readd all patches back (thanks ricotz for the notice)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_PREREQ(2.53)
 
2
AC_INIT([rhythmbox],
 
3
        [0.13.3],
 
4
        [https://bugzilla.gnome.org/enter_bug.cgi?product=rhythmbox])
 
5
AC_CONFIG_SRCDIR(rhythmbox.pc.in)
 
6
AC_CONFIG_MACRO_DIR(macros)
 
7
AM_CONFIG_HEADER(config.h)
 
8
AM_INIT_AUTOMAKE([1.9 dist-bzip2 no-dist-gzip])
 
9
 
 
10
AC_SUBST(ACLOCAL_AMFLAGS, "-I macros")
 
11
 
 
12
AM_MAINTAINER_MODE
 
13
GNOME_MAINTAINER_MODE_DEFINES
 
14
 
 
15
# plugin API versioning
 
16
# Increment on interface addition, reset on removal
 
17
RHYTHMBOX_CORE_AGE=0
 
18
# Increment on interface add, remove, or change
 
19
RHYTHMBOX_CORE_CURRENT=3
 
20
# Increment on source change, reset when CURRENT changes.
 
21
RHYTHMBOX_CORE_REVISION=0
 
22
 
 
23
AC_SUBST(RHYTHMBOX_CORE_AGE)
 
24
AC_SUBST(RHYTHMBOX_CORE_CURRENT)
 
25
AC_SUBST(RHYTHMBOX_CORE_REVISION)
 
26
 
 
27
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],)
 
28
 
 
29
dnl XXXX hack to kill off all the libtool tags ...
 
30
dnl it isn't like we are using C++ or Fortran.
 
31
m4_define([_LT_AC_TAGCONFIG],[])
 
32
 
 
33
IT_PROG_INTLTOOL([0.35.0])
 
34
 
 
35
AC_ISC_POSIX
 
36
AC_PROG_CC
 
37
AC_STDC_HEADERS
 
38
AM_PROG_LIBTOOL
 
39
m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
 
40
AC_C_BIGENDIAN
 
41
AC_CHECK_SIZEOF(long)
 
42
 
 
43
DBUS_MIN_REQS=0.35
 
44
GST_0_10_REQS=0.10.20
 
45
GTK_REQS=2.18.0
 
46
GLIB_REQS=2.18.0
 
47
GNOME_MEDIA_PROFILES_REQS=2.8
 
48
LIBNOTIFY_REQS=0.4.1
 
49
LIBGPOD_REQS=0.6
 
50
MUSICBRAINZ_REQS=2.1.0
 
51
MUSICBRAINZ3_REQS=3.0.2
 
52
NCB_MIN_REQS=2.21.6
 
53
BRASERO_MIN_REQS=0.9.1
 
54
TOTEM_PLPARSER_REQS=2.32.1
 
55
VALA_REQS=0.1.0
 
56
AVAHI_REQS=0.6
 
57
LIBSOUP_REQS=2.26.0
 
58
GUDEV_REQS=143
 
59
LIBMTP_REQS=0.3.0
 
60
PYGOBJECT_REQUIRED=2.15.4
 
61
WEBKIT_MIN_REQS=1.1.17
 
62
GLIB_GDBUS_REQS=2.25.12
 
63
 
 
64
AC_MSG_CHECKING([for GNU extension fwrite_unlocked])
 
65
AC_LINK_IFELSE(
 
66
[AC_LANG_PROGRAM([[
 
67
#define _GNU_SOURCE
 
68
#include <stdio.h>
 
69
]],
 
70
[[fwrite_unlocked ("foo", 1, sizeof ("foo"), stdout);]])],[have_fwrite_unlocked=yes])
 
71
if test x"$have_fwrite_unlocked" = xyes; then
 
72
        AC_DEFINE(HAVE_GNU_FWRITE_UNLOCKED,1,[Define if you have GNU fwrite_unlocked])
 
73
        AC_MSG_RESULT([yes])
 
74
else
 
75
        AC_MSG_RESULT([no])
 
76
fi
 
77
 
 
78
mkdtemp_missing=false
 
79
AC_CHECK_FUNC(mkdtemp,
 
80
    [AC_DEFINE([HAVE_MKDTEMP], 1, [Have GlibC function to make temp dirs])],
 
81
    mkdtemp_missing=true)
 
82
AM_CONDITIONAL(MKDTEMP_MISSING, test x$mkdtemp_missing = xtrue)
 
83
 
 
84
PKG_PROG_PKG_CONFIG
 
85
 
 
86
PKG_CHECK_MODULES(RB_CLIENT, glib-2.0 >= $GLIB_REQS gio-2.0 >= $GLIB_REQS gio-unix-2.0 >= $GLIB_REQS)
 
87
 
 
88
dnl  note: gio-unix-2.0 is here for libmediaplayerid
 
89
PKG_CHECK_MODULES(RHYTHMBOX,                            \
 
90
                  gtk+-2.0 >= $GTK_REQS                 \
 
91
                  glib-2.0 >= $GLIB_REQS                \
 
92
                  gio-2.0 >= $GLIB_REQS                 \
 
93
                  gio-unix-2.0 >= $GLIB_REQS            \
 
94
                  gnome-media-profiles >= $GNOME_MEDIA_PROFILES_REQS \
 
95
                  libsoup-2.4 >= $LIBSOUP_REQS          \
 
96
                  libsoup-gnome-2.4 >= $LIBSOUP_REQS)
 
97
 
 
98
PKG_CHECK_MODULES(TOTEM_PLPARSER, totem-plparser >= $TOTEM_PLPARSER_REQS, have_totem_plparser=yes, have_totem_plparser=no)
 
99
if test x$have_totem_plparser != xyes; then
 
100
   AC_MSG_ERROR([totem playlist parsing library not found or too old])
 
101
else
 
102
   if test "x`pkg-config --variable uselibcamel totem-plparser`" = "xno" ; then
 
103
       AC_MSG_ERROR([totem playlist parsing library has Podcast parsing disabled])
 
104
   fi
 
105
fi
 
106
 
 
107
dnl check for GDBus
 
108
PKG_CHECK_EXISTS(glib-2.0 >= $GLIB_GDBUS_REQS, [have_gdbus=yes], [have_gdbus=no])
 
109
AM_CONDITIONAL(USE_GDBUS, test x"$have_gdbus" = xyes)
 
110
 
 
111
dnl gudev
 
112
AC_ARG_WITH(gudev,
 
113
            AC_HELP_STRING([--with-gudev],
 
114
                           [Enable GUdev for hardware detection]),,
 
115
            with_gudev=auto)
 
116
if test x"$with_gudev" != "xno"; then
 
117
        PKG_CHECK_MODULES(GUDEV, gudev-1.0 >= $GUDEV_REQS,
 
118
                          have_gudev=yes, have_gudev=no)
 
119
        if test x"$have_gudev" = "xno" -a x"$with_gudev" = "xyes"; then
 
120
          AC_MSG_ERROR([GUdev explicitly requested, but is not available])
 
121
        fi
 
122
        if test x"$have_gudev" = "xyes"; then
 
123
          use_gudev=yes
 
124
          AC_SUBST(GUDEV_CFLAGS)
 
125
          AC_SUBST(GUDEV_LIBS)
 
126
          AC_DEFINE(HAVE_GUDEV, 1, [Use GUdev for hardware detection])
 
127
        else
 
128
          use_gudev=no
 
129
        fi
 
130
else
 
131
  use_gudev=no
 
132
fi
 
133
AM_CONDITIONAL(USE_GUDEV, test x"$use_gudev" = xyes)
 
134
 
 
135
dnl hal remnants
 
136
AC_ARG_WITH(hal,
 
137
              AC_HELP_STRING([--without-hal],
 
138
                             [Disable HAL support]))
 
139
if test "x$with_hal" != "xno"; then
 
140
  PKG_CHECK_MODULES(HAL, hal >= 0.5 hal < 0.6, enable_hal=yes, enable_hal=no)
 
141
  if test "x$enable_hal" != "xyes" -a "x$with_hal" = "xyes"; then
 
142
      AC_MSG_ERROR([HAL support explicitly requested but HAL couldn't be found])
 
143
  fi
 
144
 
 
145
  if test "x$enable_hal" = "xyes"; then
 
146
        AC_DEFINE(HAVE_HAL, 1, [Define if you have HAL support])
 
147
        AC_SUBST(HAL_CFLAGS)
 
148
    AC_SUBST(HAL_LIBS)
 
149
  fi    
 
150
fi
 
151
AM_CONDITIONAL(HAVE_HAL, test x"$enable_hal" = xyes)
 
152
 
 
153
 
 
154
dnl iPod support
 
155
AC_ARG_WITH(ipod,
 
156
            AC_HELP_STRING([--with-ipod],
 
157
                           [Enable iPod support]),,
 
158
              with_ipod=auto)
 
159
if test "x$with_ipod" != "xno"; then
 
160
        PKG_CHECK_MODULES(IPOD, libgpod-1.0 >= $LIBGPOD_REQS,
 
161
                          have_libgpod=yes, have_libgpod=no)
 
162
        if test "x$have_libgpod" = "xno" -a "x$with_ipod" = "xyes"; then
 
163
          AC_MSG_ERROR([iPod explicitly requested but libgpod couldn't be found])
 
164
        fi
 
165
        if test "x$have_libgpod" = "xyes"; then
 
166
          PKG_CHECK_EXISTS(libgpod-1.0 >= 0.7.92, have_itdb_start_stop_sync=yes,
 
167
                                                  have_itdb_start_stop_sync=no)
 
168
          if test "x$have_itdb_start_stop_sync" = "xyes"; then
 
169
            AC_DEFINE([HAVE_ITDB_START_STOP_SYNC], 1, [Indicates whether libgpod is new enough to have its itdb_start/stop_sync API])
 
170
          fi
 
171
          use_ipod=yes
 
172
          AC_SUBST(IPOD_CFLAGS)
 
173
          AC_SUBST(IPOD_LIBS)
 
174
        fi
 
175
fi
 
176
AM_CONDITIONAL(USE_IPOD, test x"$use_ipod" = xyes)
 
177
 
 
178
dnl mtp support
 
179
AC_ARG_WITH(mtp,
 
180
            AC_HELP_STRING([--with-mtp],
 
181
                           [Enable MTP support]),,
 
182
              with_mtp=auto)
 
183
if test "x$with_mtp" != "xno"; then
 
184
        can_use_mtp=no
 
185
        if test x"$use_gudev" = "xyes" -o x"$enable_hal" = "xyes"; then
 
186
          can_use_mtp=yes
 
187
        fi
 
188
 
 
189
        PKG_CHECK_MODULES(MTP, libmtp >= $LIBMTP_REQS, have_libmtp=yes, have_libmtp=no)
 
190
        if test x"$with_mtp" = "xyes"; then
 
191
          if test x"$have_libmtp" = "xno"; then
 
192
            AC_MSG_ERROR([MTP explicitly requested but libmtp is not available])
 
193
          fi
 
194
          if test x"$can_use_mtp" = "xno"; then
 
195
            AC_MSG_ERROR([MTP explicitly requested but GUdev and HAL are not available])
 
196
          fi
 
197
        fi
 
198
        if test "x$have_libmtp" = "xyes" -a "x$can_use_mtp" = "xyes"; then
 
199
          use_mtp=yes
 
200
          AC_SUBST(MTP_CFLAGS)
 
201
          AC_SUBST(MTP_LIBS)
 
202
        fi
 
203
fi
 
204
AM_CONDITIONAL(USE_MTP, test x"$use_mtp" = xyes)
 
205
 
 
206
 
 
207
dnl gnome-keyring support
 
208
 
 
209
AC_ARG_WITH(gnome-keyring,
 
210
            AC_HELP_STRING([--with-gnome-keyring],
 
211
                           [Enable gnome-keyring support]),,
 
212
              with_gnome_keyring=auto)
 
213
if test "x$with_gnome_keyring" != "xno"; then
 
214
 
 
215
        PKG_CHECK_MODULES(GNOME_KEYRING, gnome-keyring-1, have_gnome_keyring=yes, have_gnome_keyring=no)
 
216
        if test "x$have_gnome_keyring" = "xno" -a "x$with_gnome_keyring" = "xyes"; then
 
217
          AC_MSG_ERROR([gnome-keyring support explicitly requested but gnome-keyring couldn't be found])
 
218
        fi
 
219
        if test "x$have_gnome_keyring" = "xyes"; then
 
220
           AC_DEFINE(WITH_GNOME_KEYRING, 1, [Define if gnome-keyring support is enabled])
 
221
           use_gnome_keyring=yes
 
222
          AC_SUBST(GNOME_KEYRING_CFLAGS)
 
223
          AC_SUBST(GNOME_KEYRING_LIBS)
 
224
        fi
 
225
fi
 
226
AM_CONDITIONAL(USE_GNOME_KEYRING, test x"$use_gnome_keyring" = xyes)
 
227
 
 
228
dnl Database
 
229
AC_ARG_WITH(database,
 
230
              AC_HELP_STRING([--with-database=tree],
 
231
                             [Select the database to use (default tree)]),,
 
232
              with_database=tree)
 
233
AM_CONDITIONAL(USE_TREEDB, test x"$with_database" = xtree)
 
234
 
 
235
case "x$with_database" in
 
236
  "xtree")
 
237
    AC_DEFINE(WITH_RHYTHMDB_TREE, 1, [Define if you are using the RhythmDB tree database])
 
238
    ;;
 
239
  *)
 
240
    AC_MSG_ERROR([Unknown database selected])
 
241
    ;;
 
242
esac
 
243
 
 
244
dnl Database debugging
 
245
AC_ARG_WITH(rhythmdb-debug,
 
246
              AC_HELP_STRING([--with-rhythmdb-debug=0|1|2],
 
247
                             [Level of RhythmDB sanity checking]),,with_rhythmdb_debug=0)
 
248
if test x"${with_rhythmdb_debug}" != x0; then
 
249
   AC_DEFINE_UNQUOTED([RHYTHMDB_ENABLE_SANITY_CHECK], "${with_rhythmdb_debug}", [Define to the level of RhythmDB sanity checking])
 
250
fi
 
251
 
 
252
dnl Sound system
 
253
dnl Now we're ready to ask for gstreamer libs and cflags
 
254
dnl And we can also ask for the right version of gstreamer
 
255
PKG_CHECK_MODULES(GSTREAMER_0_10, \
 
256
        gstreamer-0.10 >= $GST_0_10_REQS
 
257
        gstreamer-base-0.10 >= $GST_0_10_REQS
 
258
        gstreamer-plugins-base-0.10 >= $GST_0_10_REQS)
 
259
 
 
260
RHYTHMBOX_CFLAGS="$RHYTHMBOX_CFLAGS $GSTREAMER_0_10_CFLAGS"
 
261
RHYTHMBOX_LIBS="$RHYTHMBOX_LIBS $GSTREAMER_0_10_LIBS -lgstinterfaces-0.10"
 
262
 
 
263
AC_ARG_WITH(mdns,
 
264
   AC_HELP_STRING([--with-mdns=auto|avahi],
 
265
   [Select the mDNS/DNS-SD implementation to use (default auto)]),,
 
266
   with_mdns=auto)
 
267
 
 
268
have_avahi=no
 
269
have_mdns=no
 
270
use_avahi=no
 
271
 
 
272
PKG_CHECK_MODULES(AVAHI,
 
273
   avahi-client >= $AVAHI_REQS
 
274
   avahi-glib >= $AVAHI_REQS,
 
275
   have_avahi=yes,
 
276
   have_avahi=no)
 
277
 
 
278
if test x"$with_mdns" = xauto || test x"$with_mdns" = xavahi; then
 
279
   if test x"$have_avahi" = xyes; then
 
280
      MDNS_CFLAGS=$AVAHI_CFLAGS
 
281
      MDNS_LIBS=$AVAHI_LIBS
 
282
      AC_DEFINE(WITH_AVAHI, 1, [Define if mDNS/DNS-SD implementation uses Avahi])
 
283
      use_avahi=yes
 
284
      AC_MSG_NOTICE([Detected Avahi, using it for mDNS/DNS-SD])
 
285
      have_mdns=yes
 
286
   elif test x"$with_mdns" = xavahi; then
 
287
      AC_MSG_ERROR([Avahi explicitly requested but not found.])
 
288
   fi
 
289
fi
 
290
 
 
291
AM_CONDITIONAL(USE_AVAHI, test "x$use_avahi" = "xyes")
 
292
 
 
293
AC_ARG_ENABLE(libnotify,
 
294
            AC_HELP_STRING([--disable-libnotify],
 
295
                           [Disable libnotify support]),,
 
296
              enable_libnotify=auto)
 
297
if test "x$enable_libnotify" != "xno"; then
 
298
        PKG_CHECK_MODULES(NOTIFY,                            \
 
299
                          libnotify >= $LIBNOTIFY_REQS,
 
300
                          have_libnotify=yes,
 
301
                          have_libnotify=no)
 
302
        if test "x$have_libnotify" = "xno" -a "x$enable_libnotify" = "xyes"; then
 
303
          AC_MSG_ERROR([libnotify support explicitly requested, but libnotify couldn't be found])
 
304
        fi
 
305
        if test "x$have_libnotify" = "xyes"; then
 
306
             enable_libnotify=yes
 
307
        fi
 
308
fi
 
309
AM_CONDITIONAL(USE_NOTIFY, test x"$enable_libnotify" = xyes)
 
310
if test x$enable_libnotify = xyes ; then
 
311
    # Find out the version of LIBNOTIFY we're using
 
312
    libnotify_version=`pkg-config --modversion libnotify`
 
313
    LIBNOTIFY_VERSION_MAJOR=`echo $libnotify_version | awk -F. '{print $1}'`
 
314
    LIBNOTIFY_VERSION_MINOR=`echo $libnotify_version | awk -F. '{print $2}'`
 
315
    LIBNOTIFY_VERSION_MICRO=`echo $libnotify_version | awk -F. '{print $3}'`
 
316
    if test "z$LIBNOTIFY_VERSION_MAJOR" = "z"; then
 
317
        LIBNOTIFY_VERSION_MAJOR="0"
 
318
    fi
 
319
    if test "z$LIBNOTIFY_VERSION_MINOR" = "z"; then
 
320
        LIBNOTIFY_VERSION_MINOR="0"
 
321
    fi
 
322
    if test "z$LIBNOTIFY_VERSION_MICRO" = "z"; then
 
323
        LIBNOTIFY_VERSION_MICRO="0"
 
324
    fi
 
325
    echo "Your libnotify version is $LIBNOTIFY_VERSION_MAJOR,$LIBNOTIFY_VERSION_MINOR,$LIBNOTIFY_VERSION_MICRO."
 
326
    NOTIFY_CFLAGS="$NOTIFY_CFLAGS -DLIBNOTIFY_VERSION_MAJOR=$LIBNOTIFY_VERSION_MAJOR"
 
327
    NOTIFY_CFLAGS="$NOTIFY_CFLAGS -DLIBNOTIFY_VERSION_MINOR=$LIBNOTIFY_VERSION_MINOR"
 
328
    NOTIFY_CFLAGS="$NOTIFY_CFLAGS -DLIBNOTIFY_VERSION_MICRO=$LIBNOTIFY_VERSION_MICRO"
 
329
 
 
330
    AC_DEFINE(HAVE_NOTIFY, 1, [Define if libnotify support is enabled])
 
331
    AC_SUBST(NOTIFY_CFLAGS)
 
332
    AC_SUBST(NOTIFY_LIBS)
 
333
fi
 
334
 
 
335
AC_CHECK_LIB(z, uncompress)
 
336
 
 
337
dnl check for libgstcdda, needed to list the audio tracks
 
338
PKG_CHECK_MODULES(GSTCDDA, gstreamer-cdda-0.10)
 
339
AC_SUBST(GSTCDDA_LIBS)
 
340
AC_SUBST(GSTCDDA_CFLAGS)
 
341
 
 
342
dnl check for MusicBrainz
 
343
have_sj_metadata_getter=no
 
344
AC_ARG_ENABLE(musicbrainz, AC_HELP_STRING([--disable-musicbrainz],
 
345
                                [don't build with MusicBrainz support]))
 
346
if test x"$enable_musicbrainz" != "xno"; then
 
347
        PKG_CHECK_MODULES(MUSICBRAINZ3, libmusicbrainz3 >= $MUSICBRAINZ3_REQS, [have_musicbrainz3=yes], [have_musicbrainz3=no])
 
348
        PKG_CHECK_MODULES(MUSICBRAINZ, libmusicbrainz >= $MUSICBRAINZ_REQS, [have_musicbrainz=yes], [have_musicbrainz=no])
 
349
 
 
350
        AC_SUBST(MUSICBRAINZ3_CFLAGS)
 
351
        AC_SUBST(MUSICBRAINZ3_LIBS)
 
352
        AC_SUBST(MUSICBRAINZ_CFLAGS)
 
353
        AC_SUBST(MUSICBRAINZ_LIBS)
 
354
 
 
355
        if test x"$have_musicbrainz3" = xyes; then
 
356
                oldlibs=$LIBS
 
357
                LIBS="$LIBS $MUSICBRAINZ3_LIBS"
 
358
                AC_CHECK_FUNCS(mb_extract_uuid)
 
359
                LIBS="$oldlibs"
 
360
 
 
361
                AC_DEFINE([HAVE_MUSICBRAINZ3], 1, [Whether libmusicbrainz3 is available])
 
362
        fi
 
363
        if test x"$have_musicbrainz" = xyes; then
 
364
                AC_DEFINE([HAVE_MUSICBRAINZ], 1, [define if you have Musicbrainz])
 
365
        fi
 
366
 
 
367
        if test x"$have_musicbrainz3" = "xyes" || test x"$have_musicbrainz" = "xyes"; then
 
368
                have_sj_metadata_getter=yes
 
369
                AC_DEFINE([HAVE_SJ_METADATA_GETTER], 1, [Whether to use the sound-juicer metadata getter code])
 
370
        else
 
371
                if test x"$enable_musicbrainz" = xyes; then
 
372
                        AC_MSG_ERROR([MusicBrainz requested, but neither libmusicbrainz nor libmusicbrainz3 are available])
 
373
                fi
 
374
        fi
 
375
fi
 
376
AM_CONDITIONAL([HAVE_MUSICBRAINZ], [test "x$have_musicbrainz" = "xyes"])
 
377
AM_CONDITIONAL([HAVE_MUSICBRAINZ3], [test "x$have_musicbrainz3" = "xyes"])
 
378
AM_CONDITIONAL([HAVE_SJ_METADATA_GETTER], [test "x$have_sj_metadata_getter" = "xyes"])
 
379
 
 
380
AC_PATH_XTRA
 
381
CFLAGS="$CFLAGS $X_CFLAGS"
 
382
#LIBS=$X_LIBS
 
383
 
 
384
dnl Multimedia keys
 
385
have_xfree=no
 
386
AC_COMPILE_IFELSE([
 
387
        #include <X11/XF86keysym.h>
 
388
int main(int argc,char **argv) {
 
389
  return 0;
 
390
}
 
391
], have_xfree=yes)
 
392
AC_MSG_CHECKING(for XFree86 headers)
 
393
AC_MSG_RESULT($have_xfree)
 
394
if test x"$have_xfree" = "xyes" ; then
 
395
        AC_DEFINE(HAVE_XFREE, 1, [defined if you have X11/XF86keysym.h])
 
396
fi
 
397
 
 
398
AC_ARG_ENABLE(mmkeys, AC_HELP_STRING([--disable-mmkeys],
 
399
                                        [don't build with Multimedia Keys support]))
 
400
if test x"$have_xfree" = xyes; then
 
401
        if test x"$enable_mmkeys" != xno; then
 
402
                enable_mmkeys=yes
 
403
                AC_DEFINE(HAVE_MMKEYS, 1, [define if Multimedia Keys are enabled])
 
404
        fi
 
405
else
 
406
        if test x"$enable_mmkeys" = xyes; then
 
407
                AC_MSG_ERROR([Multimedia keys explicitly requested but no support found])
 
408
        fi
 
409
fi
 
410
 
 
411
dnl libbrasero-media support
 
412
have_libbrasero_media=no
 
413
AC_ARG_WITH(libbrasero-media,
 
414
            AC_HELP_STRING([--with-libbrasero-media],
 
415
                           [Build with libbrasero-media support]),,
 
416
            with_libbrasero_media=auto)
 
417
if test x"$with_libbrasero_media" != "xno"; then
 
418
    PKG_CHECK_MODULES(LIBBRASERO_MEDIA, [libbrasero-media >= $BRASERO_MIN_REQS] gtk+-x11-2.0, have_libbrasero_media=yes, have_libbrasero_media=no)
 
419
fi
 
420
if test "x$have_libbrasero_media" = "xyes"; then
 
421
    AC_DEFINE([HAVE_LIBBRASERO_MEDIA], 1, [Have libbrasero-media])
 
422
fi
 
423
AM_CONDITIONAL(HAVE_LIBBRASERO_MEDIA, test x$have_libbrasero_media = xyes)
 
424
AC_SUBST(HAVE_LIBBRASERO_MEDIA)
 
425
 
 
426
dnl libnautilus-burn support
 
427
have_libnautilus_burn=no
 
428
AC_ARG_WITH(libnautilus-burn,
 
429
            AC_HELP_STRING([--with-libnautilus-burn],
 
430
                           [Build with libnautilus-burn support]),,
 
431
            with_libnautilus_burn=auto)
 
432
if test x"$have_libbrasero_media" = "xno" -a x"$with_libnautilus_burn" != "xno"; then
 
433
    PKG_CHECK_MODULES(LIBNAUTILUS_BURN, [libnautilus-burn >= $NCB_MIN_REQS], have_libnautilus_burn=yes, have_libnautilus_burn=no)
 
434
fi
 
435
if test "x$have_libnautilus_burn" = "xyes"; then
 
436
    AC_DEFINE([HAVE_NAUTILUS_BURN], 1, [Have nautilus-burn])
 
437
fi
 
438
AM_CONDITIONAL(HAVE_NAUTILUS_BURN, test x$have_libnautilus_burn = xyes)
 
439
AC_SUBST(HAVE_NAUTILUS_BURN)
 
440
 
 
441
 
 
442
AC_SUBST(CFLAGS)
 
443
AC_SUBST(LDFLAGS)
 
444
 
 
445
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
 
446
AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource)
 
447
AC_PATH_PROG(GCONFTOOL, gconftool-2)
 
448
 
 
449
AC_SUBST(RHYTHMBOX_CFLAGS)
 
450
AC_SUBST(RHYTHMBOX_LIBS)
 
451
 
 
452
AC_CACHE_CHECK([whether strftime supports %E and %O modifiers], ac_cv_strftime_supports_E_O, [
 
453
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <time.h>
 
454
                int main ()
 
455
                {
 
456
                  char buf[100];
 
457
                  struct tm tm = {0};
 
458
                  tm.tm_year = 99;
 
459
                  if (strftime(buf, 100, "%EY", &tm) == 4 &&
 
460
                      strcmp (buf, "1999")==0)
 
461
                    return 0;
 
462
                  return 1;
 
463
                }
 
464
            ]])],
 
465
            [ac_cv_strftime_supports_E_O=yes],
 
466
            [ac_cv_strftime_supports_E_O=no],
 
467
            [AC_MSG_RESULT([cannot run test program while cross compiling])
 
468
            AC_MSG_ERROR([Please set ac_cv_strftime_supports_E_O to yes or no.])]
 
469
            )
 
470
])
 
471
if test "x$ac_cv_strftime_supports_E_O" = xyes; then
 
472
        AC_DEFINE(HAVE_STRFTIME_EXTENSION, 1, [Define if strftime supports %E and %O modifiers.])
 
473
fi
 
474
 
 
475
GETTEXT_PACKAGE=rhythmbox
 
476
AC_SUBST(GETTEXT_PACKAGE)
 
477
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Define to the Gettext package name])
 
478
 
 
479
AM_GLIB_GNU_GETTEXT
 
480
 
 
481
dnl Workaround for automake 1.8
 
482
AC_SUBST(mkdir_p) if test x"$mkdir_p" = "x"; then
 
483
  MKINSTALLDIRS="mkinstalldirs"
 
484
fi
 
485
AC_SUBST(MKINSTALLDIRS)
 
486
 
 
487
dnl DBUS
 
488
PKG_CHECK_MODULES(DBUS, dbus-glib-1 >= $DBUS_MIN_REQS)
 
489
 
 
490
DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
 
491
DBUS_GLIB_BIN="`$PKG_CONFIG --variable=exec_prefix dbus-glib-1`/bin"
 
492
AC_SUBST(DBUS_GLIB_BIN)
 
493
 
 
494
AM_GCONF_SOURCE_2
 
495
 
 
496
dnl LIRC
 
497
AC_ARG_ENABLE(lirc,
 
498
        AC_HELP_STRING([--enable-lirc],[enable lirc support]))
 
499
with_lirc=no
 
500
if test x"$enable_lirc" != xno; then
 
501
        AC_CHECK_HEADER(lirc/lirc_client.h,[with_lirc=yes],[with_lirc=no])
 
502
        if test x"$with_lirc" = xyes; then
 
503
                AC_CHECK_LIB(lirc_client,lirc_init,[with_lirc=yes],[with_lirc=no])
 
504
        fi
 
505
        if test x"$with_lirc" = xno -a x"$enable_lirc" = xyes; then
 
506
                AC_MSG_ERROR([lirc explicitly requested but no support found])
 
507
        fi
 
508
fi
 
509
AM_CONDITIONAL(WITH_LIRC, test x"$with_lirc" = xyes)
 
510
 
 
511
dnl WebKit
 
512
AC_ARG_WITH(webkit,
 
513
            AC_HELP_STRING([--with-webkit],
 
514
                           [Use WebKit to display HTML]),,
 
515
            with_webkit_gtk=auto)
 
516
if test "x$with_webkit_gtk" != xno; then
 
517
        PKG_CHECK_MODULES(WEBKIT, [webkit-1.0 >= $WEBKIT_MIN_REQS], have_webkit=yes, have_webkit=no)
 
518
        if test "x$have_webkit" = "xno" -a "x$with_webkit" = "xyes"; then
 
519
                AC_MSG_ERROR([WebKit support explicitly requested, but WebKit could not be found])
 
520
        fi
 
521
        if test "x$have_webkit" = "xyes"; then
 
522
                AC_DEFINE(WITH_WEBKIT, 1, [Define if WebKit is enabled])
 
523
        fi
 
524
fi
 
525
AM_CONDITIONAL(WITH_WEBKIT, test x"$have_webkit" = xyes)
 
526
 
 
527
 
 
528
AC_ARG_ENABLE(uninstalled-build,
 
529
              AC_HELP_STRING([--enable-uninstalled-build],
 
530
                             [Search for files in build directory as well]),
 
531
              enable_uninstalled=yes,)
 
532
if test x"$enable_uninstalled" = xyes; then
 
533
        AC_DEFINE(USE_UNINSTALLED_DIRS, 1, [Define to look for files in source tree locations])
 
534
fi
 
535
ROOT_UNINSTALLED_DIR="`pwd`"
 
536
AC_DEFINE_UNQUOTED(SHARE_UNINSTALLED_DIR,"`pwd`/$srcdir/data",[path to source data dir])
 
537
AC_DEFINE_UNQUOTED(SHARE_UNINSTALLED_BUILDDIR,"`pwd`/data",[path to built source data dir])
 
538
AC_DEFINE_UNQUOTED(METADATA_UNINSTALLED_DIR,"`pwd`/metadata",[path to metadata build dir])
 
539
AC_SUBST(ROOT_UNINSTALLED_DIR)
 
540
 
 
541
 
 
542
dnl warnings bits, copied from gnome-keyring configure.in
 
543
dnl Turn on the additional warnings last, so -Werror doesn't affect other tests.
 
544
 
 
545
AC_ARG_ENABLE(more-warnings,
 
546
[  --enable-more-warnings  Maximum compiler warnings],
 
547
set_more_warnings="$enableval",[
 
548
if test -d "$srcdir/.svn" || test -d "$srcdir/{arch}" || test -d "$srcdir/CVS" || test -d "$srcdir/_darcs" || test -d "$srcdir/.git"; then
 
549
        set_more_warnings=yes
 
550
else
 
551
        set_more_warnings=no
 
552
fi
 
553
])
 
554
AC_MSG_CHECKING(for more warnings, including -Werror)
 
555
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
 
556
        AC_MSG_RESULT(yes)
 
557
        WARN_CFLAGS="\
 
558
        -Wcomment -Wformat -Wnonnull -Wimplicit-int -Wimplicit \
 
559
        -Wmain -Wmissing-braces -Wparentheses -Wsequence-point \
 
560
        -Wreturn-type -Wswitch -Wtrigraphs -Wunused-function \
 
561
        -Wunused-label -Wunused-value \
 
562
        -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
 
563
        -Wnested-externs -Wpointer-arith \
 
564
        -Wcast-align -Wall \
 
565
        -Werror -std=gnu89"
 
566
 
 
567
        if echo "$CFLAGS" | grep -q -- '-O' && echo "$CFLAGS" | grep -q -v -- '-O0'; then
 
568
                WARN_CFLAGS="-Wuninitialized $WARN_CFLAGS"
 
569
        fi
 
570
 
 
571
        for option in $WARN_CFLAGS; do
 
572
                SAVE_CFLAGS="$CFLAGS"
 
573
                CFLAGS="$CFLAGS $option"
 
574
                AC_MSG_CHECKING([whether gcc understands $option])
 
575
                AC_TRY_COMPILE([], [],
 
576
                        has_option=yes,
 
577
                        has_option=no,)
 
578
                if test x$has_option = xyes; then
 
579
                        RHYTHMBOX_CFLAGS="$RHYTHMBOX_CFLAGS $option"
 
580
                fi
 
581
                AC_MSG_RESULT($has_option)
 
582
                CFLAGS="$SAVE_CFLAGS"
 
583
                unset has_option
 
584
                unset SAVE_CFLAGS
 
585
        done
 
586
        unset option
 
587
        AC_SUBST(WARN_CFLAGS)
 
588
 
 
589
        SAVE_CFLAGS="$CFLAGS"
 
590
        CFLAGS="$CFLAGS -Wno-error"
 
591
        AC_TRY_COMPILE([], [],
 
592
                WNOERROR_CFLAGS="-Wno-error",
 
593
                WNOERROR_CFLAGS="")
 
594
        AC_SUBST(WNOERROR_CFLAGS)
 
595
        CFLAGS="$SAVE_CFLAGS"
 
596
        unset SAVE_CFLAGS
 
597
        unset has_wnoerror
 
598
 
 
599
        dnl enable GSEAL if gtk is new enough
 
600
        PKG_CHECK_EXISTS(gtk+-2.0 >= 2.20.0, [CFLAGS="$CFLAGS -DGSEAL_ENABLE"], [])
 
601
 
 
602
        dnl disable deprecated stuff
 
603
        CFLAGS="$CFLAGS $DISABLE_DEPRECATED"
 
604
else
 
605
        AC_MSG_RESULT(no)
 
606
fi
 
607
 
 
608
 
 
609
dnl Check for -fno-strict-aliasing
 
610
FLAGS="-fno-strict-aliasing"
 
611
save_CFLAGS="$CFLAGS"
 
612
CFLAGS="$CFLAGS $FLAGS"
 
613
AC_MSG_CHECKING([whether [$]CC understands $FLAGS])
 
614
AC_TRY_COMPILE([], [], [compiler_has_option=yes], [compiler_has_option=no])
 
615
CFLAGS="$save_CFLAGS"
 
616
AC_MSG_RESULT($compiler_has_option)
 
617
if test $compiler_has_option = yes; then
 
618
        NO_STRICT_ALIASING_CFLAGS="$FLAGS"
 
619
fi
 
620
AC_SUBST([NO_STRICT_ALIASING_CFLAGS])
 
621
 
 
622
dnl Enable gtk-doc
 
623
GTK_DOC_CHECK(1.4)
 
624
 
 
625
dnl Enable gnome-doc-utils
 
626
GNOME_DOC_INIT
 
627
 
 
628
 
 
629
dnl ================================================================
 
630
dnl Plugins
 
631
dnl ================================================================
 
632
 
 
633
PLUGIN_LIBTOOL_FLAGS="-module -avoid-version"
 
634
AC_SUBST(PLUGIN_LIBTOOL_FLAGS)
 
635
 
 
636
PLUGINDIR='${libdir}/rhythmbox/plugins'
 
637
AC_SUBST(PLUGINDIR)
 
638
 
 
639
dnl ================================================================
 
640
dnl Python plugins
 
641
dnl ================================================================
 
642
 
 
643
AC_MSG_CHECKING([whether Python plugin support is requested])
 
644
AC_ARG_ENABLE([python],
 
645
        AS_HELP_STRING([--enable-python],[Enable python support]),
 
646
        [enable_python=$enableval have_python=$enableval],
 
647
        [enable_python=autodetect have_python=yes])
 
648
AC_MSG_RESULT([$enable_python])
 
649
 
 
650
if test "x$have_python" != "xyes"; then
 
651
        if test "x$enable_python" = "xyes"; then
 
652
                AC_MSG_ERROR([Python not found])
 
653
        elif test "x$enable_python" = "xautodetect"; then
 
654
                enable_python=no
 
655
                AC_MSG_WARN([Python not found, disabling python support])
 
656
        fi
 
657
fi
 
658
 
 
659
if test "x$have_python" != "xno"; then
 
660
        AM_PATH_PYTHON([2.3],[],[have_python=no])
 
661
        if test "x$PYTHON" = "x:"; then
 
662
                have_python=no
 
663
        fi
 
664
fi
 
665
 
 
666
if test "x$have_python" != "xno"; then
 
667
        PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
 
668
        PY_EXEC_PREFIX=`$PYTHON -c 'import sys ; print sys.exec_prefix'`
 
669
        PYTHON_LIBS="-lpython$PYTHON_VERSION"
 
670
        if test -d $PY_EXEC_PREFIX/lib64/python$PYTHON_VERSION ; then
 
671
                PYTHON_LIB_LOC="-L$PY_EXEC_PREFIX/lib64/python$PYTHON_VERSION/config"
 
672
                PYTHON_MAKEFILE="$PY_EXEC_PREFIX/lib64/python$PYTHON_VERSION/config/Makefile"
 
673
        else
 
674
                PYTHON_LIB_LOC="-L$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config"
 
675
                PYTHON_MAKEFILE="$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config/Makefile"
 
676
        fi
 
677
        PYTHON_CFLAGS="-I$PY_PREFIX/include/python$PYTHON_VERSION"
 
678
        PYTHON_BASEMODLIBS=`sed -n -e 's/^BASEMODLIBS=\(.*\)/\1/p' $PYTHON_MAKEFILE`
 
679
        PYTHON_OTHER_LIBS=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $PYTHON_MAKEFILE`
 
680
        PYTHON_EXTRA_LIBS="$PYTHON_BASEMODLIBS $PYTHON_OTHER_LIBS"
 
681
        AC_SUBST([PYTHON_LIBS])
 
682
        AC_SUBST([PYTHON_LIB_LOC])
 
683
        AC_SUBST([PYTHON_CFLAGS])
 
684
        AC_SUBST([PYTHON_EXTRA_LIBS])
 
685
 
 
686
        PYGTK_REQUIRED=2.8.0
 
687
        GST_PYTHON_REQUIRED=0.10.1
 
688
 
 
689
        PKG_CHECK_MODULES([PYGTK], [
 
690
                pygtk-2.0 >= $PYGTK_REQUIRED] \
 
691
                gst-python-0.10 >= $GST_PYTHON_REQUIRED
 
692
                pygobject-2.0 >= $PYGOBJECT_REQUIRED,
 
693
                [],
 
694
                [
 
695
                have_python=no
 
696
                if test "x$enable_python" = "xyes"; then
 
697
                        AC_MSG_ERROR([$PYGTK_PKG_ERRORS])
 
698
                elif test "x$enable_python" = "xautodetect"; then
 
699
                        enable_python=no
 
700
                        AC_MSG_WARN([$PYGTK_PKG_ERRORS])
 
701
                        AC_MSG_WARN([Disabling python support])
 
702
                fi
 
703
                ])
 
704
 
 
705
        AC_SUBST([PYGTK_CFLAGS])
 
706
        AC_SUBST([PYGTK_LIBS])
 
707
fi
 
708
 
 
709
if test "x$have_python" != "xno"; then
 
710
        AC_MSG_CHECKING([for pygtk defs])
 
711
        PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
 
712
        AC_MSG_RESULT([$PYGTK_DEFSDIR])
 
713
 
 
714
        AC_MSG_CHECKING([for gst-python defs])
 
715
        GST_PYTHON_DEFSDIR=`$PKG_CONFIG --variable=defsdir gst-python-0.10`
 
716
        AC_MSG_RESULT([$GST_PYTHON_DEFSDIR])
 
717
 
 
718
        AC_MSG_CHECKING([for pygobject codegen])
 
719
        PYGOBJECT_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygobject-2.0`/codegen.py"
 
720
        AC_MSG_RESULT([$PYGOBJECT_CODEGEN])
 
721
 
 
722
        AC_MSG_CHECKING([for pygobject h2def])
 
723
        PYGOBJECT_H2DEF="$PYTHON `$PKG_CONFIG --variable=codegendir pygobject-2.0`/h2def.py"
 
724
        AC_MSG_RESULT([$PYGOBJECT_H2DEF])
 
725
 
 
726
        AC_SUBST([PYGTK_DEFSDIR])
 
727
        AC_SUBST([GST_PYTHON_DEFSDIR])
 
728
        AC_SUBST([PYGOBJECT_CODEGEN])
 
729
        AC_SUBST([PYGOBJECT_H2DEF])
 
730
fi
 
731
 
 
732
if test "x$have_python" != "xno" -a "x$enable_python" != "xno"; then
 
733
        enable_python=yes
 
734
        AC_DEFINE([ENABLE_PYTHON],[1],[Define to compile with python plugin support])
 
735
fi
 
736
 
 
737
AM_CONDITIONAL([ENABLE_PYTHON],[test "x$enable_python" = "xyes"])
 
738
 
 
739
dnl ================================================================
 
740
dnl Vala plugins
 
741
dnl ================================================================
 
742
AC_MSG_CHECKING([whether Vala plugin support is requested])
 
743
AC_ARG_ENABLE([vala],
 
744
        AS_HELP_STRING([--enable-vala],[Enable Vala plugin support]),
 
745
        [enable_vala=$enableval have_vala=$enableval],
 
746
        [enable_vala=autodetect have_vala=yes])
 
747
AC_MSG_RESULT([$enable_vala])
 
748
if test "x$enable_vala" = "xyes"; then
 
749
        AM_PROG_VALAC([$VALA_REQS])
 
750
        if test "x$VALAC" = "x"; then
 
751
                if test "x$enable_vala" = "xyes"; then
 
752
                        AC_MSG_ERROR([Vala plugin support explicitly requested, but not found])
 
753
                fi
 
754
                with_vala=no
 
755
        else
 
756
                with_vala=yes
 
757
        fi
 
758
fi
 
759
AM_CONDITIONAL(ENABLE_VALA, test "x$with_vala" = "xyes")
 
760
 
 
761
dnl ================================================================
 
762
dnl FM Radio Plugin
 
763
dnl ================================================================
 
764
AC_MSG_CHECKING([whether FM radio support is requested])
 
765
AC_ARG_ENABLE([fm-radio],
 
766
  AC_HELP_STRING([--disable-fm-radio],[Disable FM radio support]),,
 
767
  enable_fm_radio=yes)
 
768
if test "x$enable_fm_radio" != xno; then
 
769
  AC_CHECK_HEADER([linux/videodev2.h],,[enable_fm_radio=no])
 
770
fi
 
771
AM_CONDITIONAL(ENABLE_FM_RADIO, test "x$enable_fm_radio" != xno)
 
772
 
 
773
 
 
774
dnl check, for unit tests
 
775
PKG_CHECK_MODULES(CHECK, check, have_check=yes, have_check=no)
 
776
AM_CONDITIONAL([HAVE_CHECK],[test "x$have_check" = "xyes"])
 
777
 
 
778
dnl ================================================================
 
779
dnl Browser plugin
 
780
dnl ================================================================
 
781
 
 
782
AC_ARG_ENABLE([browser-plugin],
 
783
        [AS_HELP_STRING([--enable-browser-plugin],[compile the iTunes detection browser plugin])],
 
784
        [],[enable_browser_plugin=yes])
 
785
 
 
786
MOZILLA_PLUGINDIR="${MOZILLA_PLUGINDIR:="\${libdir}/mozilla/plugins"}"
 
787
AC_ARG_VAR([MOZILLA_PLUGINDIR],[Where to install the browser plugin to])
 
788
 
 
789
AM_CONDITIONAL([ENABLE_BROWSER_PLUGIN], test x$enable_browser_plugin = xyes)
 
790
 
 
791
 
 
792
dnl ================================================================
 
793
dnl Use libdmapsharing for DAAP?
 
794
dnl ================================================================
 
795
AC_ARG_ENABLE(daap,
 
796
              AC_HELP_STRING([--disable-daap],
 
797
                             [Disable DAAP support]),,
 
798
              enable_daap=auto)
 
799
if test "x$enable_daap" != "xno"; then
 
800
        PKG_CHECK_MODULES(DMAPSHARING, libdmapsharing-2.2 >= 2.1.6,
 
801
                          have_libdmapsharing=yes,
 
802
                          have_libdmapsharing=no)
 
803
        if test "x$have_libdmapsharing" = "xno" -a "x$enable_daap" = "xyes"; then
 
804
                AC_MSG_ERROR([DAAP support explicitly requested, but libdmapsharing couldn't be found])
 
805
        fi
 
806
        if test x"$have_libdmapsharing" = "xyes"; then
 
807
                AC_DEFINE(HAVE_LIBDMAPSHARING, 1, [Define if libdmapsharing support is enabled])
 
808
        fi
 
809
fi
 
810
 
 
811
AM_CONDITIONAL(USE_LIBDMAPSHARING, test x"$have_libdmapsharing" = "xyes")
 
812
 
 
813
AC_SUBST(DMAPSHARING_CFLAGS)
 
814
AC_SUBST(DMAPSHARING_LIBS)
 
815
 
 
816
dnl ================================================================
 
817
dnl Dependencies for Last.fm plugin
 
818
dnl ================================================================
 
819
AC_ARG_ENABLE(lastfm,
 
820
              AC_HELP_STRING([--disable-lastfm],
 
821
                             [Disable Last.fm support]),,
 
822
              enable_lastfm=auto)
 
823
if test "x$enable_lastfm" != "xno"; then
 
824
        PKG_CHECK_MODULES(JSON_GLIB, json-glib-1.0,
 
825
                          have_json_glib=yes,
 
826
                          have_json_glib=no)
 
827
        if test "x$have_json_glib" = "xno" -a "x$enable_lastfm" = "xyes"; then
 
828
                AC_MSG_ERROR([Last.fm support explicitly requested, but json-glib couldn't be found])
 
829
        fi
 
830
        if test x"$have_json_glib" = "xyes"; then
 
831
                AC_DEFINE(HAVE_JSON_GLIB, 1, [Define if json-glib support is enabled])
 
832
        fi
 
833
fi
 
834
 
 
835
AM_CONDITIONAL(ENABLE_LASTFM, test x"$have_json_glib" = "xyes")
 
836
 
 
837
AC_SUBST(JSON_GLIB_CFLAGS)
 
838
AC_SUBST(JSON_GLIB_LIBS)
 
839
 
 
840
dnl ================================================================
 
841
dnl end-game
 
842
dnl ================================================================
 
843
 
 
844
AC_OUTPUT([
 
845
rhythmbox.pc
 
846
Makefile
 
847
macros/Makefile
 
848
lib/Makefile
 
849
lib/libmediaplayerid/Makefile
 
850
metadata/Makefile
 
851
rhythmdb/Makefile
 
852
widgets/Makefile
 
853
podcast/Makefile
 
854
shell/Makefile
 
855
data/Makefile
 
856
data/rhythmbox.desktop.in
 
857
data/rhythmbox-device.desktop.in
 
858
data/ui/Makefile
 
859
data/icons/Makefile
 
860
data/icons/hicolor/Makefile
 
861
data/icons/hicolor/16x16/Makefile
 
862
data/icons/hicolor/16x16/actions/Makefile
 
863
data/icons/hicolor/16x16/apps/Makefile
 
864
data/icons/hicolor/16x16/places/Makefile
 
865
data/icons/hicolor/16x16/status/Makefile
 
866
data/icons/hicolor/22x22/Makefile
 
867
data/icons/hicolor/22x22/actions/Makefile
 
868
data/icons/hicolor/22x22/apps/Makefile
 
869
data/icons/hicolor/22x22/places/Makefile
 
870
data/icons/hicolor/24x24/Makefile
 
871
data/icons/hicolor/24x24/apps/Makefile
 
872
data/icons/hicolor/24x24/places/Makefile
 
873
data/icons/hicolor/32x32/Makefile
 
874
data/icons/hicolor/32x32/actions/Makefile
 
875
data/icons/hicolor/32x32/apps/Makefile
 
876
data/icons/hicolor/32x32/places/Makefile
 
877
data/icons/hicolor/48x48/Makefile
 
878
data/icons/hicolor/48x48/apps/Makefile
 
879
data/icons/hicolor/256x256/Makefile
 
880
data/icons/hicolor/256x256/apps/Makefile
 
881
data/icons/hicolor/scalable/Makefile
 
882
data/icons/hicolor/scalable/actions/Makefile
 
883
data/icons/hicolor/scalable/apps/Makefile
 
884
data/icons/hicolor/scalable/places/Makefile
 
885
data/icons/src/Makefile
 
886
sources/Makefile
 
887
sources/sync/Makefile
 
888
plugins/Makefile
 
889
plugins/sample/Makefile
 
890
plugins/audiocd/Makefile
 
891
plugins/coherence/Makefile
 
892
plugins/coherence/upnp_coherence/Makefile
 
893
plugins/audioscrobbler/Makefile
 
894
plugins/cd-recorder/Makefile
 
895
plugins/brasero-disc-recorder/Makefile
 
896
plugins/daap/Makefile
 
897
plugins/fmradio/Makefile
 
898
plugins/im-status/Makefile
 
899
plugins/ipod/Makefile
 
900
plugins/mtpdevice/Makefile
 
901
plugins/iradio/Makefile
 
902
plugins/lirc/Makefile
 
903
plugins/lyrics/Makefile
 
904
plugins/lyrics/lyrics/Makefile
 
905
plugins/sample-python/Makefile
 
906
plugins/sample-vala/Makefile
 
907
plugins/pythonconsole/Makefile
 
908
plugins/artdisplay/Makefile
 
909
plugins/artdisplay/artdisplay/Makefile
 
910
plugins/magnatune/Makefile
 
911
plugins/magnatune/magnatune/Makefile
 
912
plugins/jamendo/Makefile
 
913
plugins/jamendo/jamendo/Makefile
 
914
plugins/generic-player/Makefile
 
915
plugins/rb/Makefile
 
916
plugins/power-manager/Makefile
 
917
plugins/status-icon/Makefile
 
918
plugins/visualizer/Makefile
 
919
plugins/mmkeys/Makefile
 
920
plugins/context/Makefile
 
921
plugins/context/context/Makefile
 
922
plugins/sendto/Makefile
 
923
plugins/replaygain/Makefile
 
924
plugins/replaygain/replaygain/Makefile
 
925
plugins/mpris/Makefile
 
926
plugins/dbus-media-server/Makefile
 
927
plugins/rbzeitgeist/Makefile
 
928
bindings/Makefile
 
929
bindings/python/Makefile
 
930
bindings/vala/Makefile
 
931
help/Makefile
 
932
po/Makefile.in
 
933
tests/Makefile
 
934
doc/Makefile
 
935
doc/reference/Makefile
 
936
backends/Makefile
 
937
backends/gstreamer/Makefile
 
938
remote/Makefile
 
939
remote/dbus/Makefile
 
940
])
 
941
 
 
942
AC_MSG_NOTICE([Rhythmbox was configured with the following options:])
 
943
if test x"$with_database" = xtree; then
 
944
        AC_MSG_NOTICE([** Tree database is enabled])
 
945
else
 
946
        AC_MSG_ERROR([Unknown database!])
 
947
fi
 
948
if test x"${with_rhythmdb_debug}" != x0; then
 
949
        AC_MSG_NOTICE([** RhythmDB sanity checking enabled (may be slow!)])
 
950
fi
 
951
 
 
952
 
 
953
if test x"$enable_mmkeys" != "xyes"; then
 
954
        AC_MSG_NOTICE([   Multimedia keys support is disabled])
 
955
else
 
956
        AC_MSG_NOTICE([** Multimedia keys support is enabled])
 
957
fi
 
958
 
 
959
if test x"$have_musicbrainz3" = "xyes" && test x"$have_musicbrainz" = "xyes"; then
 
960
        AC_MSG_NOTICE([** MusicBrainz support is enabled (using libmusicbrainz3 and libmusicbrainz)])
 
961
elif test x"$have_musicbrainz3" = "xyes"; then
 
962
        AC_MSG_NOTICE([** MusicBrainz support is enabled (using libmusicbrainz3)])
 
963
elif test x"$have_musicbrainz" = "xyes"; then
 
964
        AC_MSG_NOTICE([** MusicBrainz support is enabled (using libmusicbrainz)])
 
965
else
 
966
        AC_MSG_NOTICE([   MusicBrainz support is disabled])
 
967
fi
 
968
 
 
969
if test x"$use_ipod" = xyes; then
 
970
        AC_MSG_NOTICE([** iPod integration enabled])
 
971
else
 
972
        AC_MSG_NOTICE([   iPod integration disabled])
 
973
fi
 
974
if test x"$use_mtp" = xyes; then
 
975
        AC_MSG_NOTICE([** MTP integration enabled])
 
976
else
 
977
        AC_MSG_NOTICE([   MTP integration disabled])
 
978
fi
 
979
if test x"$have_libbrasero_media" != xno; then
 
980
        AC_MSG_NOTICE([** CD burning support enabled (using Brasero)])
 
981
elif test x"$have_libnautilus_burn" != xno; then
 
982
        AC_MSG_NOTICE([** CD burning support enabled (using nautilus-cd-burner)])
 
983
else
 
984
        AC_MSG_NOTICE([   CD burning support disabled])
 
985
fi
 
986
if test x"$have_libdmapsharing" = xyes; then
 
987
        AC_MSG_NOTICE([** DAAP (music sharing) support is enabled])
 
988
else
 
989
        AC_MSG_NOTICE([   DAAP (music sharing) support is disabled])
 
990
fi
 
991
if test x"$have_libnotify" = xyes; then
 
992
        AC_MSG_NOTICE([** libnotify support is enabled])
 
993
else
 
994
        AC_MSG_NOTICE([   libnotify support is disabled])
 
995
fi
 
996
if test x"$use_gudev" = xyes; then
 
997
        AC_MSG_NOTICE([** GUdev support enabled])
 
998
elif test x"$enable_hal" = xyes; then
 
999
        AC_MSG_NOTICE([** HAL support enabled])
 
1000
else
 
1001
        AC_MSG_NOTICE([   GUdev support disabled])
 
1002
fi
 
1003
if test x"$enable_python" = xyes; then
 
1004
        AC_MSG_NOTICE([** Python plugin support enabled])
 
1005
else
 
1006
        AC_MSG_NOTICE([   Python plugin support disabled])
 
1007
fi
 
1008
if test x"$with_vala" = xyes; then
 
1009
        AC_MSG_NOTICE([** Vala plugin support enabled])
 
1010
else
 
1011
        AC_MSG_NOTICE([   Vala plugin support disabled])
 
1012
fi
 
1013
if test x"$use_gnome_keyring" = xyes; then
 
1014
        AC_MSG_NOTICE([** gnome-keyring support enabled])
 
1015
else
 
1016
        AC_MSG_NOTICE([   gnome-keyring support disabled])
 
1017
fi
 
1018
if test "x$enable_fm_radio" != xno; then
 
1019
        AC_MSG_NOTICE([** FM radio support enabled])
 
1020
else
 
1021
        AC_MSG_NOTICE([   FM radio support disabled])
 
1022
fi
 
1023
 
 
1024
if test "x$enable_browser_plugin" != xno; then
 
1025
        AC_MSG_NOTICE([** iTunes detection browser plugin (for podcasts) enabled])
 
1026
else
 
1027
        AC_MSG_NOTICE([   iTunes detection browser plugin (for podcasts) disabled])
 
1028
fi
 
1029
 
 
1030
if test "x$have_json_glib" = xyes; then
 
1031
        AC_MSG_NOTICE([** Last.fm support enabled])
 
1032
else
 
1033
        AC_MSG_NOTICE([   Last.fm support disabled])
 
1034
fi
 
1035
 
 
1036
AC_MSG_NOTICE([End options])