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])
10
AC_SUBST(ACLOCAL_AMFLAGS, "-I macros")
13
GNOME_MAINTAINER_MODE_DEFINES
15
# plugin API versioning
16
# Increment on interface addition, reset on removal
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
23
AC_SUBST(RHYTHMBOX_CORE_AGE)
24
AC_SUBST(RHYTHMBOX_CORE_CURRENT)
25
AC_SUBST(RHYTHMBOX_CORE_REVISION)
27
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],)
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],[])
33
IT_PROG_INTLTOOL([0.35.0])
39
m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
47
GNOME_MEDIA_PROFILES_REQS=2.8
50
MUSICBRAINZ_REQS=2.1.0
51
MUSICBRAINZ3_REQS=3.0.2
53
BRASERO_MIN_REQS=0.9.1
54
TOTEM_PLPARSER_REQS=2.32.1
60
PYGOBJECT_REQUIRED=2.15.4
61
WEBKIT_MIN_REQS=1.1.17
62
GLIB_GDBUS_REQS=2.25.12
64
AC_MSG_CHECKING([for GNU extension fwrite_unlocked])
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])
79
AC_CHECK_FUNC(mkdtemp,
80
[AC_DEFINE([HAVE_MKDTEMP], 1, [Have GlibC function to make temp dirs])],
82
AM_CONDITIONAL(MKDTEMP_MISSING, test x$mkdtemp_missing = xtrue)
86
PKG_CHECK_MODULES(RB_CLIENT, glib-2.0 >= $GLIB_REQS gio-2.0 >= $GLIB_REQS gio-unix-2.0 >= $GLIB_REQS)
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)
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])
102
if test "x`pkg-config --variable uselibcamel totem-plparser`" = "xno" ; then
103
AC_MSG_ERROR([totem playlist parsing library has Podcast parsing disabled])
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)
113
AC_HELP_STRING([--with-gudev],
114
[Enable GUdev for hardware detection]),,
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])
122
if test x"$have_gudev" = "xyes"; then
124
AC_SUBST(GUDEV_CFLAGS)
126
AC_DEFINE(HAVE_GUDEV, 1, [Use GUdev for hardware detection])
133
AM_CONDITIONAL(USE_GUDEV, test x"$use_gudev" = xyes)
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])
145
if test "x$enable_hal" = "xyes"; then
146
AC_DEFINE(HAVE_HAL, 1, [Define if you have HAL support])
151
AM_CONDITIONAL(HAVE_HAL, test x"$enable_hal" = xyes)
156
AC_HELP_STRING([--with-ipod],
157
[Enable iPod support]),,
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])
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])
172
AC_SUBST(IPOD_CFLAGS)
176
AM_CONDITIONAL(USE_IPOD, test x"$use_ipod" = xyes)
180
AC_HELP_STRING([--with-mtp],
181
[Enable MTP support]),,
183
if test "x$with_mtp" != "xno"; then
185
if test x"$use_gudev" = "xyes" -o x"$enable_hal" = "xyes"; then
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])
194
if test x"$can_use_mtp" = "xno"; then
195
AC_MSG_ERROR([MTP explicitly requested but GUdev and HAL are not available])
198
if test "x$have_libmtp" = "xyes" -a "x$can_use_mtp" = "xyes"; then
204
AM_CONDITIONAL(USE_MTP, test x"$use_mtp" = xyes)
207
dnl gnome-keyring support
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
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])
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)
226
AM_CONDITIONAL(USE_GNOME_KEYRING, test x"$use_gnome_keyring" = xyes)
229
AC_ARG_WITH(database,
230
AC_HELP_STRING([--with-database=tree],
231
[Select the database to use (default tree)]),,
233
AM_CONDITIONAL(USE_TREEDB, test x"$with_database" = xtree)
235
case "x$with_database" in
237
AC_DEFINE(WITH_RHYTHMDB_TREE, 1, [Define if you are using the RhythmDB tree database])
240
AC_MSG_ERROR([Unknown database selected])
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])
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)
260
RHYTHMBOX_CFLAGS="$RHYTHMBOX_CFLAGS $GSTREAMER_0_10_CFLAGS"
261
RHYTHMBOX_LIBS="$RHYTHMBOX_LIBS $GSTREAMER_0_10_LIBS -lgstinterfaces-0.10"
264
AC_HELP_STRING([--with-mdns=auto|avahi],
265
[Select the mDNS/DNS-SD implementation to use (default auto)]),,
272
PKG_CHECK_MODULES(AVAHI,
273
avahi-client >= $AVAHI_REQS
274
avahi-glib >= $AVAHI_REQS,
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])
284
AC_MSG_NOTICE([Detected Avahi, using it for mDNS/DNS-SD])
286
elif test x"$with_mdns" = xavahi; then
287
AC_MSG_ERROR([Avahi explicitly requested but not found.])
291
AM_CONDITIONAL(USE_AVAHI, test "x$use_avahi" = "xyes")
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,
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])
305
if test "x$have_libnotify" = "xyes"; then
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"
319
if test "z$LIBNOTIFY_VERSION_MINOR" = "z"; then
320
LIBNOTIFY_VERSION_MINOR="0"
322
if test "z$LIBNOTIFY_VERSION_MICRO" = "z"; then
323
LIBNOTIFY_VERSION_MICRO="0"
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"
330
AC_DEFINE(HAVE_NOTIFY, 1, [Define if libnotify support is enabled])
331
AC_SUBST(NOTIFY_CFLAGS)
332
AC_SUBST(NOTIFY_LIBS)
335
AC_CHECK_LIB(z, uncompress)
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)
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])
350
AC_SUBST(MUSICBRAINZ3_CFLAGS)
351
AC_SUBST(MUSICBRAINZ3_LIBS)
352
AC_SUBST(MUSICBRAINZ_CFLAGS)
353
AC_SUBST(MUSICBRAINZ_LIBS)
355
if test x"$have_musicbrainz3" = xyes; then
357
LIBS="$LIBS $MUSICBRAINZ3_LIBS"
358
AC_CHECK_FUNCS(mb_extract_uuid)
361
AC_DEFINE([HAVE_MUSICBRAINZ3], 1, [Whether libmusicbrainz3 is available])
363
if test x"$have_musicbrainz" = xyes; then
364
AC_DEFINE([HAVE_MUSICBRAINZ], 1, [define if you have Musicbrainz])
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])
371
if test x"$enable_musicbrainz" = xyes; then
372
AC_MSG_ERROR([MusicBrainz requested, but neither libmusicbrainz nor libmusicbrainz3 are available])
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"])
381
CFLAGS="$CFLAGS $X_CFLAGS"
387
#include <X11/XF86keysym.h>
388
int main(int argc,char **argv) {
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])
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
403
AC_DEFINE(HAVE_MMKEYS, 1, [define if Multimedia Keys are enabled])
406
if test x"$enable_mmkeys" = xyes; then
407
AC_MSG_ERROR([Multimedia keys explicitly requested but no support found])
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)
420
if test "x$have_libbrasero_media" = "xyes"; then
421
AC_DEFINE([HAVE_LIBBRASERO_MEDIA], 1, [Have libbrasero-media])
423
AM_CONDITIONAL(HAVE_LIBBRASERO_MEDIA, test x$have_libbrasero_media = xyes)
424
AC_SUBST(HAVE_LIBBRASERO_MEDIA)
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)
435
if test "x$have_libnautilus_burn" = "xyes"; then
436
AC_DEFINE([HAVE_NAUTILUS_BURN], 1, [Have nautilus-burn])
438
AM_CONDITIONAL(HAVE_NAUTILUS_BURN, test x$have_libnautilus_burn = xyes)
439
AC_SUBST(HAVE_NAUTILUS_BURN)
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)
449
AC_SUBST(RHYTHMBOX_CFLAGS)
450
AC_SUBST(RHYTHMBOX_LIBS)
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>
459
if (strftime(buf, 100, "%EY", &tm) == 4 &&
460
strcmp (buf, "1999")==0)
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.])]
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.])
475
GETTEXT_PACKAGE=rhythmbox
476
AC_SUBST(GETTEXT_PACKAGE)
477
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Define to the Gettext package name])
481
dnl Workaround for automake 1.8
482
AC_SUBST(mkdir_p) if test x"$mkdir_p" = "x"; then
483
MKINSTALLDIRS="mkinstalldirs"
485
AC_SUBST(MKINSTALLDIRS)
488
PKG_CHECK_MODULES(DBUS, dbus-glib-1 >= $DBUS_MIN_REQS)
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)
498
AC_HELP_STRING([--enable-lirc],[enable lirc support]))
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])
505
if test x"$with_lirc" = xno -a x"$enable_lirc" = xyes; then
506
AC_MSG_ERROR([lirc explicitly requested but no support found])
509
AM_CONDITIONAL(WITH_LIRC, test x"$with_lirc" = xyes)
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])
521
if test "x$have_webkit" = "xyes"; then
522
AC_DEFINE(WITH_WEBKIT, 1, [Define if WebKit is enabled])
525
AM_CONDITIONAL(WITH_WEBKIT, test x"$have_webkit" = xyes)
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])
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)
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.
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
554
AC_MSG_CHECKING(for more warnings, including -Werror)
555
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
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 \
567
if echo "$CFLAGS" | grep -q -- '-O' && echo "$CFLAGS" | grep -q -v -- '-O0'; then
568
WARN_CFLAGS="-Wuninitialized $WARN_CFLAGS"
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([], [],
578
if test x$has_option = xyes; then
579
RHYTHMBOX_CFLAGS="$RHYTHMBOX_CFLAGS $option"
581
AC_MSG_RESULT($has_option)
582
CFLAGS="$SAVE_CFLAGS"
587
AC_SUBST(WARN_CFLAGS)
589
SAVE_CFLAGS="$CFLAGS"
590
CFLAGS="$CFLAGS -Wno-error"
591
AC_TRY_COMPILE([], [],
592
WNOERROR_CFLAGS="-Wno-error",
594
AC_SUBST(WNOERROR_CFLAGS)
595
CFLAGS="$SAVE_CFLAGS"
599
dnl enable GSEAL if gtk is new enough
600
PKG_CHECK_EXISTS(gtk+-2.0 >= 2.20.0, [CFLAGS="$CFLAGS -DGSEAL_ENABLE"], [])
602
dnl disable deprecated stuff
603
CFLAGS="$CFLAGS $DISABLE_DEPRECATED"
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"
620
AC_SUBST([NO_STRICT_ALIASING_CFLAGS])
625
dnl Enable gnome-doc-utils
629
dnl ================================================================
631
dnl ================================================================
633
PLUGIN_LIBTOOL_FLAGS="-module -avoid-version"
634
AC_SUBST(PLUGIN_LIBTOOL_FLAGS)
636
PLUGINDIR='${libdir}/rhythmbox/plugins'
639
dnl ================================================================
641
dnl ================================================================
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])
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
655
AC_MSG_WARN([Python not found, disabling python support])
659
if test "x$have_python" != "xno"; then
660
AM_PATH_PYTHON([2.3],[],[have_python=no])
661
if test "x$PYTHON" = "x:"; then
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"
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"
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])
687
GST_PYTHON_REQUIRED=0.10.1
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,
696
if test "x$enable_python" = "xyes"; then
697
AC_MSG_ERROR([$PYGTK_PKG_ERRORS])
698
elif test "x$enable_python" = "xautodetect"; then
700
AC_MSG_WARN([$PYGTK_PKG_ERRORS])
701
AC_MSG_WARN([Disabling python support])
705
AC_SUBST([PYGTK_CFLAGS])
706
AC_SUBST([PYGTK_LIBS])
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])
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])
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])
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])
726
AC_SUBST([PYGTK_DEFSDIR])
727
AC_SUBST([GST_PYTHON_DEFSDIR])
728
AC_SUBST([PYGOBJECT_CODEGEN])
729
AC_SUBST([PYGOBJECT_H2DEF])
732
if test "x$have_python" != "xno" -a "x$enable_python" != "xno"; then
734
AC_DEFINE([ENABLE_PYTHON],[1],[Define to compile with python plugin support])
737
AM_CONDITIONAL([ENABLE_PYTHON],[test "x$enable_python" = "xyes"])
739
dnl ================================================================
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])
759
AM_CONDITIONAL(ENABLE_VALA, test "x$with_vala" = "xyes")
761
dnl ================================================================
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]),,
768
if test "x$enable_fm_radio" != xno; then
769
AC_CHECK_HEADER([linux/videodev2.h],,[enable_fm_radio=no])
771
AM_CONDITIONAL(ENABLE_FM_RADIO, test "x$enable_fm_radio" != xno)
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"])
778
dnl ================================================================
780
dnl ================================================================
782
AC_ARG_ENABLE([browser-plugin],
783
[AS_HELP_STRING([--enable-browser-plugin],[compile the iTunes detection browser plugin])],
784
[],[enable_browser_plugin=yes])
786
MOZILLA_PLUGINDIR="${MOZILLA_PLUGINDIR:="\${libdir}/mozilla/plugins"}"
787
AC_ARG_VAR([MOZILLA_PLUGINDIR],[Where to install the browser plugin to])
789
AM_CONDITIONAL([ENABLE_BROWSER_PLUGIN], test x$enable_browser_plugin = xyes)
792
dnl ================================================================
793
dnl Use libdmapsharing for DAAP?
794
dnl ================================================================
796
AC_HELP_STRING([--disable-daap],
797
[Disable DAAP support]),,
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])
806
if test x"$have_libdmapsharing" = "xyes"; then
807
AC_DEFINE(HAVE_LIBDMAPSHARING, 1, [Define if libdmapsharing support is enabled])
811
AM_CONDITIONAL(USE_LIBDMAPSHARING, test x"$have_libdmapsharing" = "xyes")
813
AC_SUBST(DMAPSHARING_CFLAGS)
814
AC_SUBST(DMAPSHARING_LIBS)
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]),,
823
if test "x$enable_lastfm" != "xno"; then
824
PKG_CHECK_MODULES(JSON_GLIB, json-glib-1.0,
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])
830
if test x"$have_json_glib" = "xyes"; then
831
AC_DEFINE(HAVE_JSON_GLIB, 1, [Define if json-glib support is enabled])
835
AM_CONDITIONAL(ENABLE_LASTFM, test x"$have_json_glib" = "xyes")
837
AC_SUBST(JSON_GLIB_CFLAGS)
838
AC_SUBST(JSON_GLIB_LIBS)
840
dnl ================================================================
842
dnl ================================================================
849
lib/libmediaplayerid/Makefile
856
data/rhythmbox.desktop.in
857
data/rhythmbox-device.desktop.in
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
887
sources/sync/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
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
929
bindings/python/Makefile
930
bindings/vala/Makefile
935
doc/reference/Makefile
937
backends/gstreamer/Makefile
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])
946
AC_MSG_ERROR([Unknown database!])
948
if test x"${with_rhythmdb_debug}" != x0; then
949
AC_MSG_NOTICE([** RhythmDB sanity checking enabled (may be slow!)])
953
if test x"$enable_mmkeys" != "xyes"; then
954
AC_MSG_NOTICE([ Multimedia keys support is disabled])
956
AC_MSG_NOTICE([** Multimedia keys support is enabled])
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)])
966
AC_MSG_NOTICE([ MusicBrainz support is disabled])
969
if test x"$use_ipod" = xyes; then
970
AC_MSG_NOTICE([** iPod integration enabled])
972
AC_MSG_NOTICE([ iPod integration disabled])
974
if test x"$use_mtp" = xyes; then
975
AC_MSG_NOTICE([** MTP integration enabled])
977
AC_MSG_NOTICE([ MTP integration disabled])
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)])
984
AC_MSG_NOTICE([ CD burning support disabled])
986
if test x"$have_libdmapsharing" = xyes; then
987
AC_MSG_NOTICE([** DAAP (music sharing) support is enabled])
989
AC_MSG_NOTICE([ DAAP (music sharing) support is disabled])
991
if test x"$have_libnotify" = xyes; then
992
AC_MSG_NOTICE([** libnotify support is enabled])
994
AC_MSG_NOTICE([ libnotify support is disabled])
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])
1001
AC_MSG_NOTICE([ GUdev support disabled])
1003
if test x"$enable_python" = xyes; then
1004
AC_MSG_NOTICE([** Python plugin support enabled])
1006
AC_MSG_NOTICE([ Python plugin support disabled])
1008
if test x"$with_vala" = xyes; then
1009
AC_MSG_NOTICE([** Vala plugin support enabled])
1011
AC_MSG_NOTICE([ Vala plugin support disabled])
1013
if test x"$use_gnome_keyring" = xyes; then
1014
AC_MSG_NOTICE([** gnome-keyring support enabled])
1016
AC_MSG_NOTICE([ gnome-keyring support disabled])
1018
if test "x$enable_fm_radio" != xno; then
1019
AC_MSG_NOTICE([** FM radio support enabled])
1021
AC_MSG_NOTICE([ FM radio support disabled])
1024
if test "x$enable_browser_plugin" != xno; then
1025
AC_MSG_NOTICE([** iTunes detection browser plugin (for podcasts) enabled])
1027
AC_MSG_NOTICE([ iTunes detection browser plugin (for podcasts) disabled])
1030
if test "x$have_json_glib" = xyes; then
1031
AC_MSG_NOTICE([** Last.fm support enabled])
1033
AC_MSG_NOTICE([ Last.fm support disabled])
1036
AC_MSG_NOTICE([End options])