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=4
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
GOBJECT_INTROSPECTION_REQS=0.10.0
34
GOBJECT_INTROSPECTION_REQUIRE([$GOBJECT_INTROSPECTION_REQS])
36
IT_PROG_INTLTOOL([0.35.0])
42
m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
50
GDK_PIXBUF_REQS=2.18.0
53
MUSICBRAINZ_REQS=2.1.0
54
MUSICBRAINZ3_REQS=3.0.2
55
TOTEM_PLPARSER_REQS=2.32.1
61
PYGOBJECT_REQUIRED=2.15.4
63
GNOME_MEDIA_PROFILES_REQS=2.91.0
65
BRASERO_MIN_REQS=2.31.5
71
AC_MSG_CHECKING([for GNU extension fwrite_unlocked])
77
[[fwrite_unlocked ("foo", 1, sizeof ("foo"), stdout);]])],[have_fwrite_unlocked=yes])
78
if test x"$have_fwrite_unlocked" = xyes; then
79
AC_DEFINE(HAVE_GNU_FWRITE_UNLOCKED,1,[Define if you have GNU fwrite_unlocked])
86
AC_CHECK_FUNC(mkdtemp,
87
[AC_DEFINE([HAVE_MKDTEMP], 1, [Have GlibC function to make temp dirs])],
89
AM_CONDITIONAL(MKDTEMP_MISSING, test x$mkdtemp_missing = xtrue)
93
PKG_CHECK_MODULES(RB_CLIENT, glib-2.0 >= $GLIB_REQS gio-2.0 >= $GLIB_REQS gio-unix-2.0 >= $GLIB_REQS)
95
dnl note: gio-unix-2.0 is here for libmediaplayerid
96
PKG_CHECK_MODULES(RHYTHMBOX, \
97
gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQS \
98
gtk+-3.0 >= $GTK_REQS \
99
gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQS \
100
glib-2.0 >= $GLIB_REQS \
101
gio-2.0 >= $GLIB_REQS \
102
gio-unix-2.0 >= $GLIB_REQS \
103
libgnome-media-profiles-3.0 >= $GNOME_MEDIA_PROFILES_REQS \
104
libsoup-2.4 >= $LIBSOUP_REQS \
105
libsoup-gnome-2.4 >= $LIBSOUP_REQS)
107
PKG_CHECK_MODULES(TOTEM_PLPARSER, totem-plparser >= $TOTEM_PLPARSER_REQS, have_totem_plparser=yes, have_totem_plparser=no)
108
if test x$have_totem_plparser != xyes; then
109
AC_MSG_ERROR([totem playlist parsing library not found or too old])
111
if test "x`pkg-config --variable uselibcamel totem-plparser`" = "xno" ; then
112
AC_MSG_ERROR([totem playlist parsing library has Podcast parsing disabled])
118
AC_HELP_STRING([--with-gudev],
119
[Enable GUdev for hardware detection]),,
121
if test x"$with_gudev" != "xno"; then
122
PKG_CHECK_MODULES(GUDEV, gudev-1.0 >= $GUDEV_REQS,
123
have_gudev=yes, have_gudev=no)
124
if test x"$have_gudev" = "xno" -a x"$with_gudev" = "xyes"; then
125
AC_MSG_ERROR([GUdev explicitly requested, but is not available])
127
if test x"$have_gudev" = "xyes"; then
129
AC_SUBST(GUDEV_CFLAGS)
131
AC_DEFINE(HAVE_GUDEV, 1, [Use GUdev for hardware detection])
138
AM_CONDITIONAL(USE_GUDEV, test x"$use_gudev" = xyes)
142
AC_HELP_STRING([--without-hal],
143
[Disable HAL support]))
144
if test "x$with_hal" != "xno"; then
145
PKG_CHECK_MODULES(HAL, hal >= 0.5 hal < 0.6, enable_hal=yes, enable_hal=no)
146
if test "x$enable_hal" != "xyes" -a "x$with_hal" = "xyes"; then
147
AC_MSG_ERROR([HAL support explicitly requested but HAL couldn't be found])
150
if test "x$enable_hal" = "xyes"; then
151
AC_DEFINE(HAVE_HAL, 1, [Define if you have HAL support])
156
AM_CONDITIONAL(HAVE_HAL, test x"$enable_hal" = xyes)
161
AC_HELP_STRING([--with-ipod],
162
[Enable iPod support]),,
164
if test "x$with_ipod" != "xno"; then
165
PKG_CHECK_MODULES(IPOD, libgpod-1.0 >= $LIBGPOD_REQS,
166
have_libgpod=yes, have_libgpod=no)
167
if test "x$have_libgpod" = "xno" -a "x$with_ipod" = "xyes"; then
168
AC_MSG_ERROR([iPod explicitly requested but libgpod couldn't be found])
170
if test "x$have_libgpod" = "xyes"; then
171
PKG_CHECK_EXISTS(libgpod-1.0 >= 0.7.92, have_itdb_start_stop_sync=yes,
172
have_itdb_start_stop_sync=no)
173
if test "x$have_itdb_start_stop_sync" = "xyes"; then
174
AC_DEFINE([HAVE_ITDB_START_STOP_SYNC], 1, [Indicates whether libgpod is new enough to have its itdb_start/stop_sync API])
177
AC_SUBST(IPOD_CFLAGS)
181
AM_CONDITIONAL(USE_IPOD, test x"$use_ipod" = xyes)
185
AC_HELP_STRING([--with-mtp],
186
[Enable MTP support]),,
188
if test "x$with_mtp" != "xno"; then
190
if test x"$use_gudev" = "xyes" -o x"$enable_hal" = "xyes"; then
194
PKG_CHECK_MODULES(MTP, libmtp >= $LIBMTP_REQS, have_libmtp=yes, have_libmtp=no)
195
if test x"$with_mtp" = "xyes"; then
196
if test x"$have_libmtp" = "xno"; then
197
AC_MSG_ERROR([MTP explicitly requested but libmtp is not available])
199
if test x"$can_use_mtp" = "xno"; then
200
AC_MSG_ERROR([MTP explicitly requested but GUdev and HAL are not available])
203
if test "x$have_libmtp" = "xyes" -a "x$can_use_mtp" = "xyes"; then
209
AM_CONDITIONAL(USE_MTP, test x"$use_mtp" = xyes)
212
dnl gnome-keyring support
214
AC_ARG_WITH(gnome-keyring,
215
AC_HELP_STRING([--with-gnome-keyring],
216
[Enable gnome-keyring support]),,
217
with_gnome_keyring=auto)
218
if test "x$with_gnome_keyring" != "xno"; then
220
PKG_CHECK_MODULES(GNOME_KEYRING, gnome-keyring-1, have_gnome_keyring=yes, have_gnome_keyring=no)
221
if test "x$have_gnome_keyring" = "xno" -a "x$with_gnome_keyring" = "xyes"; then
222
AC_MSG_ERROR([gnome-keyring support explicitly requested but gnome-keyring couldn't be found])
224
if test "x$have_gnome_keyring" = "xyes"; then
225
AC_DEFINE(WITH_GNOME_KEYRING, 1, [Define if gnome-keyring support is enabled])
226
use_gnome_keyring=yes
227
AC_SUBST(GNOME_KEYRING_CFLAGS)
228
AC_SUBST(GNOME_KEYRING_LIBS)
231
AM_CONDITIONAL(USE_GNOME_KEYRING, test x"$use_gnome_keyring" = xyes)
234
AC_ARG_WITH(database,
235
AC_HELP_STRING([--with-database=tree],
236
[Select the database to use (default tree)]),,
238
AM_CONDITIONAL(USE_TREEDB, test x"$with_database" = xtree)
240
case "x$with_database" in
242
AC_DEFINE(WITH_RHYTHMDB_TREE, 1, [Define if you are using the RhythmDB tree database])
245
AC_MSG_ERROR([Unknown database selected])
249
dnl Database debugging
250
AC_ARG_WITH(rhythmdb-debug,
251
AC_HELP_STRING([--with-rhythmdb-debug=0|1|2],
252
[Level of RhythmDB sanity checking]),,with_rhythmdb_debug=0)
253
if test x"${with_rhythmdb_debug}" != x0; then
254
AC_DEFINE_UNQUOTED([RHYTHMDB_ENABLE_SANITY_CHECK], "${with_rhythmdb_debug}", [Define to the level of RhythmDB sanity checking])
258
dnl Now we're ready to ask for gstreamer libs and cflags
259
dnl And we can also ask for the right version of gstreamer
260
PKG_CHECK_MODULES(GSTREAMER_0_10, \
261
gstreamer-0.10 >= $GST_0_10_REQS
262
gstreamer-base-0.10 >= $GST_0_10_REQS
263
gstreamer-plugins-base-0.10 >= $GST_0_10_REQS)
265
RHYTHMBOX_CFLAGS="$RHYTHMBOX_CFLAGS $GSTREAMER_0_10_CFLAGS"
266
RHYTHMBOX_LIBS="$RHYTHMBOX_LIBS $GSTREAMER_0_10_LIBS -lgstinterfaces-0.10"
269
AC_HELP_STRING([--with-mdns=auto|avahi],
270
[Select the mDNS/DNS-SD implementation to use (default auto)]),,
277
PKG_CHECK_MODULES(AVAHI,
278
avahi-client >= $AVAHI_REQS
279
avahi-glib >= $AVAHI_REQS,
283
if test x"$with_mdns" = xauto || test x"$with_mdns" = xavahi; then
284
if test x"$have_avahi" = xyes; then
285
MDNS_CFLAGS=$AVAHI_CFLAGS
286
MDNS_LIBS=$AVAHI_LIBS
287
AC_DEFINE(WITH_AVAHI, 1, [Define if mDNS/DNS-SD implementation uses Avahi])
289
AC_MSG_NOTICE([Detected Avahi, using it for mDNS/DNS-SD])
291
elif test x"$with_mdns" = xavahi; then
292
AC_MSG_ERROR([Avahi explicitly requested but not found.])
296
AM_CONDITIONAL(USE_AVAHI, test "x$use_avahi" = "xyes")
298
AC_ARG_ENABLE(libnotify,
299
AC_HELP_STRING([--disable-libnotify],
300
[Disable libnotify support]),,
301
enable_libnotify=auto)
302
if test "x$enable_libnotify" != "xno"; then
303
PKG_CHECK_MODULES(NOTIFY, \
304
libnotify >= $LIBNOTIFY_REQS,
307
if test "x$have_libnotify" = "xno" -a "x$enable_libnotify" = "xyes"; then
308
AC_MSG_ERROR([libnotify support explicitly requested, but libnotify couldn't be found])
310
if test "x$have_libnotify" = "xyes"; then
314
AM_CONDITIONAL(USE_NOTIFY, test x"$enable_libnotify" = xyes)
315
if test x$enable_libnotify = xyes ; then
316
# Find out the version of LIBNOTIFY we're using
317
libnotify_version=`pkg-config --modversion libnotify`
318
LIBNOTIFY_VERSION_MAJOR=`echo $libnotify_version | awk -F. '{print $1}'`
319
LIBNOTIFY_VERSION_MINOR=`echo $libnotify_version | awk -F. '{print $2}'`
320
LIBNOTIFY_VERSION_MICRO=`echo $libnotify_version | awk -F. '{print $3}'`
321
if test "z$LIBNOTIFY_VERSION_MAJOR" = "z"; then
322
LIBNOTIFY_VERSION_MAJOR="0"
324
if test "z$LIBNOTIFY_VERSION_MINOR" = "z"; then
325
LIBNOTIFY_VERSION_MINOR="0"
327
if test "z$LIBNOTIFY_VERSION_MICRO" = "z"; then
328
LIBNOTIFY_VERSION_MICRO="0"
330
echo "Your libnotify version is $LIBNOTIFY_VERSION_MAJOR,$LIBNOTIFY_VERSION_MINOR,$LIBNOTIFY_VERSION_MICRO."
331
NOTIFY_CFLAGS="$NOTIFY_CFLAGS -DLIBNOTIFY_VERSION_MAJOR=$LIBNOTIFY_VERSION_MAJOR"
332
NOTIFY_CFLAGS="$NOTIFY_CFLAGS -DLIBNOTIFY_VERSION_MINOR=$LIBNOTIFY_VERSION_MINOR"
333
NOTIFY_CFLAGS="$NOTIFY_CFLAGS -DLIBNOTIFY_VERSION_MICRO=$LIBNOTIFY_VERSION_MICRO"
335
AC_DEFINE(HAVE_NOTIFY, 1, [Define if libnotify support is enabled])
336
AC_SUBST(NOTIFY_CFLAGS)
337
AC_SUBST(NOTIFY_LIBS)
340
AC_CHECK_LIB(z, uncompress)
342
dnl check for libgstcdda, needed to list the audio tracks
343
PKG_CHECK_MODULES(GSTCDDA, gstreamer-cdda-0.10)
344
AC_SUBST(GSTCDDA_LIBS)
345
AC_SUBST(GSTCDDA_CFLAGS)
347
dnl check for MusicBrainz
348
have_sj_metadata_getter=no
349
AC_ARG_ENABLE(musicbrainz, AC_HELP_STRING([--disable-musicbrainz],
350
[don't build with MusicBrainz support]))
351
if test x"$enable_musicbrainz" != "xno"; then
352
PKG_CHECK_MODULES(MUSICBRAINZ3, libmusicbrainz3 >= $MUSICBRAINZ3_REQS, [have_musicbrainz3=yes], [have_musicbrainz3=no])
353
PKG_CHECK_MODULES(MUSICBRAINZ, libmusicbrainz >= $MUSICBRAINZ_REQS, [have_musicbrainz=yes], [have_musicbrainz=no])
355
AC_SUBST(MUSICBRAINZ3_CFLAGS)
356
AC_SUBST(MUSICBRAINZ3_LIBS)
357
AC_SUBST(MUSICBRAINZ_CFLAGS)
358
AC_SUBST(MUSICBRAINZ_LIBS)
360
if test x"$have_musicbrainz3" = xyes; then
362
LIBS="$LIBS $MUSICBRAINZ3_LIBS"
363
AC_CHECK_FUNCS(mb_extract_uuid)
366
AC_DEFINE([HAVE_MUSICBRAINZ3], 1, [Whether libmusicbrainz3 is available])
368
if test x"$have_musicbrainz" = xyes; then
369
AC_DEFINE([HAVE_MUSICBRAINZ], 1, [define if you have Musicbrainz])
372
if test x"$have_musicbrainz3" = "xyes" || test x"$have_musicbrainz" = "xyes"; then
373
have_sj_metadata_getter=yes
374
AC_DEFINE([HAVE_SJ_METADATA_GETTER], 1, [Whether to use the sound-juicer metadata getter code])
376
if test x"$enable_musicbrainz" = xyes; then
377
AC_MSG_ERROR([MusicBrainz requested, but neither libmusicbrainz nor libmusicbrainz3 are available])
381
AM_CONDITIONAL([HAVE_MUSICBRAINZ], [test "x$have_musicbrainz" = "xyes"])
382
AM_CONDITIONAL([HAVE_MUSICBRAINZ3], [test "x$have_musicbrainz3" = "xyes"])
383
AM_CONDITIONAL([HAVE_SJ_METADATA_GETTER], [test "x$have_sj_metadata_getter" = "xyes"])
386
CFLAGS="$CFLAGS $X_CFLAGS"
392
#include <X11/XF86keysym.h>
393
int main(int argc,char **argv) {
397
AC_MSG_CHECKING(for XFree86 headers)
398
AC_MSG_RESULT($have_xfree)
399
if test x"$have_xfree" = "xyes" ; then
400
AC_DEFINE(HAVE_XFREE, 1, [defined if you have X11/XF86keysym.h])
403
AC_ARG_ENABLE(mmkeys, AC_HELP_STRING([--disable-mmkeys],
404
[don't build with Multimedia Keys support]))
405
if test x"$have_xfree" = xyes; then
406
if test x"$enable_mmkeys" != xno; then
408
AC_DEFINE(HAVE_MMKEYS, 1, [define if Multimedia Keys are enabled])
411
if test x"$enable_mmkeys" = xyes; then
412
AC_MSG_ERROR([Multimedia keys explicitly requested but no support found])
416
dnl libbrasero-media support
417
have_libbrasero_media=no
419
AC_HELP_STRING([--with-brasero],
420
[Build with libbrasero-media support]),,
422
if test x"$with_brasero" != "xno"; then
423
PKG_CHECK_MODULES(LIBBRASERO_MEDIA,
424
libbrasero-media3 >= $BRASERO_MIN_REQS,
425
have_libbrasero_media=yes,
426
have_libbrasero_media=no)
427
AC_SUBST(LIBBRASERO_MEDIA_CFLAGS)
428
AC_SUBST(LIBBRASERO_MEDIA_LIBS)
430
if test "x$have_libbrasero_media" = "xyes"; then
431
AC_DEFINE([HAVE_LIBBRASERO_MEDIA], 1, [Have libbrasero-media])
433
AM_CONDITIONAL(HAVE_LIBBRASERO_MEDIA, test x$have_libbrasero_media = xyes)
434
AC_SUBST(HAVE_LIBBRASERO_MEDIA)
439
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
440
AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource)
441
AC_PATH_PROG(GCONFTOOL, gconftool-2)
443
AC_SUBST(RHYTHMBOX_CFLAGS)
444
AC_SUBST(RHYTHMBOX_LIBS)
446
AC_CACHE_CHECK([whether strftime supports %E and %O modifiers], ac_cv_strftime_supports_E_O, [
447
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <time.h>
453
if (strftime(buf, 100, "%EY", &tm) == 4 &&
454
strcmp (buf, "1999")==0)
459
[ac_cv_strftime_supports_E_O=yes],
460
[ac_cv_strftime_supports_E_O=no],
461
[AC_MSG_RESULT([cannot run test program while cross compiling])
462
AC_MSG_ERROR([Please set ac_cv_strftime_supports_E_O to yes or no.])]
465
if test "x$ac_cv_strftime_supports_E_O" = xyes; then
466
AC_DEFINE(HAVE_STRFTIME_EXTENSION, 1, [Define if strftime supports %E and %O modifiers.])
469
GETTEXT_PACKAGE=rhythmbox
470
AC_SUBST(GETTEXT_PACKAGE)
471
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Define to the Gettext package name])
475
dnl Workaround for automake 1.8
476
AC_SUBST(mkdir_p) if test x"$mkdir_p" = "x"; then
477
MKINSTALLDIRS="mkinstalldirs"
479
AC_SUBST(MKINSTALLDIRS)
482
PKG_CHECK_MODULES(DBUS, dbus-glib-1 >= $DBUS_MIN_REQS)
484
DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
485
DBUS_GLIB_BIN="`$PKG_CONFIG --variable=exec_prefix dbus-glib-1`/bin"
486
AC_SUBST(DBUS_GLIB_BIN)
492
AC_HELP_STRING([--enable-lirc],[enable lirc support]))
494
if test x"$enable_lirc" != xno; then
495
AC_CHECK_HEADER(lirc/lirc_client.h,[with_lirc=yes],[with_lirc=no])
496
if test x"$with_lirc" = xyes; then
497
AC_CHECK_LIB(lirc_client,lirc_init,[with_lirc=yes],[with_lirc=no])
499
if test x"$with_lirc" = xno -a x"$enable_lirc" = xyes; then
500
AC_MSG_ERROR([lirc explicitly requested but no support found])
503
AM_CONDITIONAL(WITH_LIRC, test x"$with_lirc" = xyes)
508
AC_HELP_STRING([--with-webkit],
509
[Use WebKit to display HTML]),,
511
if test "x$with_webkit" != xno; then
512
PKG_CHECK_MODULES(WEBKIT, [webkitgtk-3.0 >= $WEBKIT_MIN_REQS], have_webkit=yes, have_webkit=no)
513
if test "x$have_webkit" = "xno" -a "x$with_webkit" = "xyes"; then
514
AC_MSG_ERROR([WebKit support explicitly requested, but WebKit could not be found])
516
if test "x$have_webkit" = "xyes"; then
517
AC_DEFINE(WITH_WEBKIT, 1, [Define if WebKit is enabled])
520
AM_CONDITIONAL(WITH_WEBKIT, test x"$have_webkit" = xyes)
523
AC_ARG_ENABLE(uninstalled-build,
524
AC_HELP_STRING([--enable-uninstalled-build],
525
[Search for files in build directory as well]),
526
enable_uninstalled=yes,)
527
if test x"$enable_uninstalled" = xyes; then
528
AC_DEFINE(USE_UNINSTALLED_DIRS, 1, [Define to look for files in source tree locations])
530
ROOT_UNINSTALLED_DIR="`pwd`"
531
AC_DEFINE_UNQUOTED(SHARE_UNINSTALLED_DIR,"`pwd`/$srcdir/data",[path to source data dir])
532
AC_DEFINE_UNQUOTED(SHARE_UNINSTALLED_BUILDDIR,"`pwd`/data",[path to built source data dir])
533
AC_DEFINE_UNQUOTED(METADATA_UNINSTALLED_DIR,"`pwd`/metadata",[path to metadata build dir])
534
AC_SUBST(ROOT_UNINSTALLED_DIR)
537
dnl warnings bits, copied from gnome-keyring configure.in
538
dnl Turn on the additional warnings last, so -Werror doesn't affect other tests.
540
AC_ARG_ENABLE(more-warnings,
541
[ --enable-more-warnings Maximum compiler warnings],
542
set_more_warnings="$enableval",[
543
if test -d "$srcdir/.svn" || test -d "$srcdir/{arch}" || test -d "$srcdir/CVS" || test -d "$srcdir/_darcs" || test -d "$srcdir/.git"; then
544
set_more_warnings=yes
549
RHYTHMBOX_CFLAGS_NOWARN=$RHYTHMBOX_CFLAGS
550
AC_SUBST(RHYTHMBOX_CFLAGS_NOWARN)
551
AC_MSG_CHECKING(for more warnings, including -Werror)
552
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
555
-Wcomment -Wformat -Wnonnull -Wimplicit-int -Wimplicit \
556
-Wmain -Wmissing-braces -Wparentheses -Wsequence-point \
557
-Wreturn-type -Wswitch -Wtrigraphs -Wunused-function \
558
-Wunused-label -Wunused-value \
559
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
560
-Wnested-externs -Wpointer-arith \
564
if echo "$CFLAGS" | grep -q -- '-O' && echo "$CFLAGS" | grep -q -v -- '-O0'; then
565
WARN_CFLAGS="-Wuninitialized $WARN_CFLAGS"
568
for option in $WARN_CFLAGS; do
569
SAVE_CFLAGS="$CFLAGS"
570
CFLAGS="$CFLAGS $option"
571
AC_MSG_CHECKING([whether gcc understands $option])
572
AC_TRY_COMPILE([], [],
575
if test x$has_option = xyes; then
576
RHYTHMBOX_CFLAGS="$RHYTHMBOX_CFLAGS $option"
578
AC_MSG_RESULT($has_option)
579
CFLAGS="$SAVE_CFLAGS"
584
AC_SUBST(WARN_CFLAGS)
586
SAVE_CFLAGS="$CFLAGS"
587
CFLAGS="$CFLAGS -Wno-error"
588
AC_TRY_COMPILE([], [],
589
WNOERROR_CFLAGS="-Wno-error",
591
AC_SUBST(WNOERROR_CFLAGS)
592
CFLAGS="$SAVE_CFLAGS"
596
dnl enable GSEAL if gtk is new enough
597
PKG_CHECK_EXISTS(gtk+-2.0 >= 2.20.0, [CFLAGS="$CFLAGS -DGSEAL_ENABLE"], [])
599
dnl disable deprecated stuff
600
CFLAGS="$CFLAGS $DISABLE_DEPRECATED"
606
dnl Check for -fno-strict-aliasing
607
FLAGS="-fno-strict-aliasing"
608
save_CFLAGS="$CFLAGS"
609
CFLAGS="$CFLAGS $FLAGS"
610
AC_MSG_CHECKING([whether [$]CC understands $FLAGS])
611
AC_TRY_COMPILE([], [], [compiler_has_option=yes], [compiler_has_option=no])
612
CFLAGS="$save_CFLAGS"
613
AC_MSG_RESULT($compiler_has_option)
614
if test $compiler_has_option = yes; then
615
NO_STRICT_ALIASING_CFLAGS="$FLAGS"
617
AC_SUBST([NO_STRICT_ALIASING_CFLAGS])
622
dnl Enable gnome-doc-utils
626
dnl ================================================================
628
dnl ================================================================
630
PLUGIN_LIBTOOL_FLAGS="-module -avoid-version"
631
AC_SUBST(PLUGIN_LIBTOOL_FLAGS)
633
PLUGINDIR='${libdir}/rhythmbox/plugins'
636
dnl ================================================================
638
dnl ================================================================
640
AC_MSG_CHECKING([whether Python plugin support is requested])
641
AC_ARG_ENABLE([python],
642
AS_HELP_STRING([--enable-python],[Enable python support]),
643
[enable_python=$enableval have_python=$enableval],
644
[enable_python=autodetect have_python=yes])
645
AC_MSG_RESULT([$have_python])
647
if test "x$have_python" != "xyes"; then
648
if test "x$enable_python" = "xyes"; then
649
AC_MSG_ERROR([Python not found])
650
elif test "x$enable_python" = "xautodetect"; then
652
AC_MSG_WARN([Python not found, disabling python support])
656
if test "x$have_python" != "xno"; then
657
AM_PATH_PYTHON([2.3],[],[have_python=no])
658
if test "x$PYTHON" = "x:"; then
663
if test "x$have_python" != "xno"; then
664
PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
665
PY_EXEC_PREFIX=`$PYTHON -c 'import sys ; print sys.exec_prefix'`
666
PYTHON_LIBS="-lpython$PYTHON_VERSION"
667
if test -d $PY_EXEC_PREFIX/lib64/python$PYTHON_VERSION ; then
668
PYTHON_LIB_LOC="-L$PY_EXEC_PREFIX/lib64/python$PYTHON_VERSION/config"
669
PYTHON_MAKEFILE="$PY_EXEC_PREFIX/lib64/python$PYTHON_VERSION/config/Makefile"
671
PYTHON_LIB_LOC="-L$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config"
672
PYTHON_MAKEFILE="$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config/Makefile"
674
PYTHON_CFLAGS="-I$PY_PREFIX/include/python$PYTHON_VERSION"
675
PYTHON_BASEMODLIBS=`sed -n -e 's/^BASEMODLIBS=\(.*\)/\1/p' $PYTHON_MAKEFILE`
676
PYTHON_OTHER_LIBS=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $PYTHON_MAKEFILE`
677
PYTHON_EXTRA_LIBS="$PYTHON_BASEMODLIBS $PYTHON_OTHER_LIBS"
678
AC_SUBST([PYTHON_LIBS])
679
AC_SUBST([PYTHON_LIB_LOC])
680
AC_SUBST([PYTHON_CFLAGS])
681
AC_SUBST([PYTHON_EXTRA_LIBS])
683
GST_PYTHON_REQUIRED=0.10.1
684
PKG_CHECK_MODULES([PYGOBJECT], [
685
gst-python-0.10 >= $GST_PYTHON_REQUIRED
686
pygobject-2.0 >= $PYGOBJECT_REQUIRED],
690
if test "x$enable_python" = "xyes"; then
691
AC_MSG_ERROR([$PYGOBJECT_PKG_ERRORS])
692
elif test "x$enable_python" = "xautodetect"; then
694
AC_MSG_WARN([$PYGOBJECT_PKG_ERRORS])
695
AC_MSG_WARN([Disabling python support])
699
AC_SUBST([PYGOBJECT_CFLAGS])
700
AC_SUBST([PYGOBJECT_LIBS])
703
if test "x$have_python" != "xno"; then
704
AC_MSG_CHECKING([for gst-python defs])
705
GST_PYTHON_DEFSDIR=`$PKG_CONFIG --variable=defsdir gst-python-0.10`
706
AC_MSG_RESULT([$GST_PYTHON_DEFSDIR])
708
AC_MSG_CHECKING([for pygobject codegen])
709
PYGOBJECT_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygobject-2.0`/codegen.py"
710
AC_MSG_RESULT([$PYGOBJECT_CODEGEN])
712
AC_MSG_CHECKING([for pygobject h2def])
713
PYGOBJECT_H2DEF="$PYTHON `$PKG_CONFIG --variable=codegendir pygobject-2.0`/h2def.py"
714
AC_MSG_RESULT([$PYGOBJECT_H2DEF])
716
AC_SUBST([GST_PYTHON_DEFSDIR])
717
AC_SUBST([PYGOBJECT_CODEGEN])
718
AC_SUBST([PYGOBJECT_H2DEF])
721
if test "x$have_python" != "xno" -a "x$enable_python" != "xno"; then
723
AC_DEFINE([ENABLE_PYTHON],[1],[Define to compile with python plugin support])
726
AM_CONDITIONAL([ENABLE_PYTHON],[test "x$enable_python" = "xyes"])
728
dnl ================================================================
730
dnl ================================================================
731
AC_MSG_CHECKING([whether Vala plugin support is requested])
732
AC_ARG_ENABLE([vala],
733
AS_HELP_STRING([--enable-vala],[Enable Vala plugin support]),
734
[enable_vala=$enableval have_vala=$enableval],
735
[enable_vala=autodetect have_vala=yes])
736
AC_MSG_RESULT([$enable_vala])
738
if test "x$enable_vala" = "xyes"; then
739
AM_PROG_VALAC([$VALA_REQS])
740
if test "x$VALAC" != "x"; then
741
VAPIDIR=$datadir/vala/vapi
748
elif test "x$enable_vala" = "xyes"; then
749
AC_MSG_ERROR([Vala plugin support explicitly requested, but not found])
752
AM_CONDITIONAL(ENABLE_VALA, test "x$with_vala" = "xyes")
754
dnl ================================================================
756
dnl ================================================================
757
AC_MSG_CHECKING([whether FM radio support is requested])
758
AC_ARG_ENABLE([fm-radio],
759
AC_HELP_STRING([--disable-fm-radio],[Disable FM radio support]),,
761
if test "x$enable_fm_radio" != xno; then
762
AC_CHECK_HEADER([linux/videodev2.h],,[enable_fm_radio=no])
764
AM_CONDITIONAL(ENABLE_FM_RADIO, test "x$enable_fm_radio" != xno)
767
dnl check, for unit tests
768
PKG_CHECK_MODULES(CHECK, check, have_check=yes, have_check=no)
769
AM_CONDITIONAL([HAVE_CHECK],[test "x$have_check" = "xyes"])
771
dnl ================================================================
773
dnl ================================================================
775
AC_ARG_ENABLE([browser-plugin],
776
[AS_HELP_STRING([--enable-browser-plugin],[compile the iTunes detection browser plugin])],
777
[],[enable_browser_plugin=yes])
779
MOZILLA_PLUGINDIR="${MOZILLA_PLUGINDIR:="\${libdir}/mozilla/plugins"}"
780
AC_ARG_VAR([MOZILLA_PLUGINDIR],[Where to install the browser plugin to])
782
AM_CONDITIONAL([ENABLE_BROWSER_PLUGIN], test x$enable_browser_plugin = xyes)
785
dnl ================================================================
786
dnl Use libdmapsharing for DAAP?
787
dnl ================================================================
789
AC_HELP_STRING([--disable-daap],
790
[Disable DAAP support]),,
792
if test "x$enable_daap" != "xno"; then
793
PKG_CHECK_MODULES(DMAPSHARING, libdmapsharing-3.0 >= 2.9.9,
794
have_libdmapsharing=yes,
795
have_libdmapsharing=no)
796
if test "x$have_libdmapsharing" = "xno" -a "x$enable_daap" = "xyes"; then
797
AC_MSG_ERROR([DAAP support explicitly requested, but libdmapsharing couldn't be found])
799
if test x"$have_libdmapsharing" = "xyes"; then
800
AC_DEFINE(HAVE_LIBDMAPSHARING, 1, [Define if libdmapsharing support is enabled])
804
AM_CONDITIONAL(USE_LIBDMAPSHARING, test x"$have_libdmapsharing" = "xyes")
806
AC_SUBST(DMAPSHARING_CFLAGS)
807
AC_SUBST(DMAPSHARING_LIBS)
809
dnl ================================================================
810
dnl Dependencies for Last.fm plugin
811
dnl ================================================================
812
AC_ARG_ENABLE(lastfm,
813
AC_HELP_STRING([--disable-lastfm],
814
[Disable Last.fm support]),,
816
if test "x$enable_lastfm" != "xno"; then
817
PKG_CHECK_MODULES(JSON_GLIB, json-glib-1.0,
820
if test "x$have_json_glib" = "xno" -a "x$enable_lastfm" = "xyes"; then
821
AC_MSG_ERROR([Last.fm support explicitly requested, but json-glib couldn't be found])
823
if test x"$have_json_glib" = "xyes"; then
824
AC_DEFINE(HAVE_JSON_GLIB, 1, [Define if json-glib support is enabled])
828
AM_CONDITIONAL(ENABLE_LASTFM, test x"$have_json_glib" = "xyes")
830
AC_SUBST(JSON_GLIB_CFLAGS)
831
AC_SUBST(JSON_GLIB_LIBS)
833
dnl ================================================================
835
dnl ================================================================
842
lib/libmediaplayerid/Makefile
849
data/rhythmbox.desktop.in
850
data/rhythmbox-device.desktop.in
853
data/icons/hicolor/Makefile
854
data/icons/hicolor/16x16/Makefile
855
data/icons/hicolor/16x16/actions/Makefile
856
data/icons/hicolor/16x16/apps/Makefile
857
data/icons/hicolor/16x16/places/Makefile
858
data/icons/hicolor/16x16/status/Makefile
859
data/icons/hicolor/22x22/Makefile
860
data/icons/hicolor/22x22/actions/Makefile
861
data/icons/hicolor/22x22/apps/Makefile
862
data/icons/hicolor/22x22/places/Makefile
863
data/icons/hicolor/24x24/Makefile
864
data/icons/hicolor/24x24/apps/Makefile
865
data/icons/hicolor/24x24/places/Makefile
866
data/icons/hicolor/32x32/Makefile
867
data/icons/hicolor/32x32/actions/Makefile
868
data/icons/hicolor/32x32/apps/Makefile
869
data/icons/hicolor/32x32/places/Makefile
870
data/icons/hicolor/48x48/Makefile
871
data/icons/hicolor/48x48/apps/Makefile
872
data/icons/hicolor/256x256/Makefile
873
data/icons/hicolor/256x256/apps/Makefile
874
data/icons/hicolor/scalable/Makefile
875
data/icons/hicolor/scalable/actions/Makefile
876
data/icons/hicolor/scalable/apps/Makefile
877
data/icons/hicolor/scalable/places/Makefile
878
data/icons/src/Makefile
880
sources/sync/Makefile
882
plugins/sample/Makefile
883
plugins/audiocd/Makefile
884
plugins/coherence/Makefile
885
plugins/coherence/upnp_coherence/Makefile
886
plugins/audioscrobbler/Makefile
887
plugins/brasero-disc-recorder/Makefile
888
plugins/daap/Makefile
889
plugins/fmradio/Makefile
890
plugins/im-status/Makefile
891
plugins/ipod/Makefile
892
plugins/mtpdevice/Makefile
893
plugins/iradio/Makefile
894
plugins/lirc/Makefile
895
plugins/lyrics/Makefile
896
plugins/lyrics/lyrics/Makefile
897
plugins/sample-python/Makefile
898
plugins/sample-vala/Makefile
899
plugins/pythonconsole/Makefile
900
plugins/artdisplay/Makefile
901
plugins/artdisplay/artdisplay/Makefile
902
plugins/magnatune/Makefile
903
plugins/magnatune/magnatune/Makefile
904
plugins/jamendo/Makefile
905
plugins/jamendo/jamendo/Makefile
906
plugins/generic-player/Makefile
908
plugins/power-manager/Makefile
909
plugins/status-icon/Makefile
910
plugins/visualizer/Makefile
911
plugins/mmkeys/Makefile
912
plugins/context/Makefile
913
plugins/context/context/Makefile
914
plugins/sendto/Makefile
915
plugins/replaygain/Makefile
916
plugins/replaygain/replaygain/Makefile
917
plugins/mpris/Makefile
918
plugins/dbus-media-server/Makefile
919
plugins/rbzeitgeist/Makefile
921
bindings/vala/Makefile
927
doc/reference/Makefile
929
backends/gstreamer/Makefile
934
AC_MSG_NOTICE([Rhythmbox was configured with the following options:])
935
if test x"$with_database" = xtree; then
936
AC_MSG_NOTICE([** Tree database is enabled])
938
AC_MSG_ERROR([Unknown database!])
940
if test x"${with_rhythmdb_debug}" != x0; then
941
AC_MSG_NOTICE([** RhythmDB sanity checking enabled (may be slow!)])
945
if test x"$enable_mmkeys" != "xyes"; then
946
AC_MSG_NOTICE([ Multimedia keys support is disabled])
948
AC_MSG_NOTICE([** Multimedia keys support is enabled])
951
if test x"$have_musicbrainz3" = "xyes" && test x"$have_musicbrainz" = "xyes"; then
952
AC_MSG_NOTICE([** MusicBrainz support is enabled (using libmusicbrainz3 and libmusicbrainz)])
953
elif test x"$have_musicbrainz3" = "xyes"; then
954
AC_MSG_NOTICE([** MusicBrainz support is enabled (using libmusicbrainz3)])
955
elif test x"$have_musicbrainz" = "xyes"; then
956
AC_MSG_NOTICE([** MusicBrainz support is enabled (using libmusicbrainz)])
958
AC_MSG_NOTICE([ MusicBrainz support is disabled])
961
if test x"$use_ipod" = xyes; then
962
AC_MSG_NOTICE([** iPod integration enabled])
964
AC_MSG_NOTICE([ iPod integration disabled])
966
if test x"$use_mtp" = xyes; then
967
AC_MSG_NOTICE([** MTP integration enabled])
969
AC_MSG_NOTICE([ MTP integration disabled])
971
if test x"$have_libbrasero_media" != xno; then
972
AC_MSG_NOTICE([** CD burning support enabled])
974
AC_MSG_NOTICE([ CD burning support disabled])
976
if test x"$have_libdmapsharing" = xyes; then
977
AC_MSG_NOTICE([** DAAP (music sharing) support is enabled])
979
AC_MSG_NOTICE([ DAAP (music sharing) support is disabled])
981
if test x"$have_libnotify" = xyes; then
982
AC_MSG_NOTICE([** libnotify support is enabled])
984
AC_MSG_NOTICE([ libnotify support is disabled])
986
if test x"$have_webkit" = xyes; then
987
AC_MSG_NOTICE([** WebKit support is enabled])
989
AC_MSG_NOTICE([ WebKit support is disabled])
991
if test x"$use_gudev" = xyes; then
992
AC_MSG_NOTICE([** GUdev support enabled])
993
elif test x"$enable_hal" = xyes; then
994
AC_MSG_NOTICE([** HAL support enabled])
996
AC_MSG_NOTICE([ GUdev support disabled])
998
if test x"$enable_python" = xyes; then
999
AC_MSG_NOTICE([** Python plugin support enabled])
1001
AC_MSG_NOTICE([ Python plugin support disabled])
1003
if test x"$with_vala" = xyes; then
1004
AC_MSG_NOTICE([** Vala plugin support enabled])
1006
AC_MSG_NOTICE([ Vala plugin support disabled])
1008
if test x"$use_gnome_keyring" = xyes; then
1009
AC_MSG_NOTICE([** gnome-keyring support enabled])
1011
AC_MSG_NOTICE([ gnome-keyring support disabled])
1013
if test "x$enable_fm_radio" != xno; then
1014
AC_MSG_NOTICE([** FM radio support enabled])
1016
AC_MSG_NOTICE([ FM radio support disabled])
1019
if test "x$enable_browser_plugin" != xno; then
1020
AC_MSG_NOTICE([** iTunes detection browser plugin (for podcasts) enabled])
1022
AC_MSG_NOTICE([ iTunes detection browser plugin (for podcasts) disabled])
1025
if test "x$have_json_glib" = xyes; then
1026
AC_MSG_NOTICE([** Last.fm support enabled])
1028
AC_MSG_NOTICE([ Last.fm support disabled])
1031
AC_MSG_NOTICE([End options])