2 # arch-tag: Toplevel Autoconf configuration script
5 AC_CONFIG_MACRO_DIR(macros)
6 AM_CONFIG_HEADER(config.h)
7 AM_INIT_AUTOMAKE(rhythmbox, 0.9.3)
23 TOTEM_PLPARSER_REQS=1.1.5
25 AC_MSG_CHECKING([for GNU extension fwrite_unlocked])
31 [[fwrite_unlocked ("foo", 1, sizeof ("foo"), stdout);]])],[have_fwrite_unlocked=yes])
32 if test x"$have_fwrite_unlocked" = xyes; then
33 AC_DEFINE(HAVE_GNU_FWRITE_UNLOCKED,1,[Define if you have GNU fwrite_unlocked])
40 AC_CHECK_FUNC(mkdtemp,
41 [AC_DEFINE([HAVE_MKDTEMP], 1, [Have GlibC function to make temp dirs])],
43 AM_CONDITIONAL(MKDTEMP_MISSING, test x$mkdtemp_missing = xtrue)
45 AC_CHECK_LIB(glib-2.0, g_utf8_collate_key_for_filename,
46 [AC_DEFINE([HAVE_COLLATE_KEY_FILENAME], 1, [Have glib function to collate filename sort keys])])
50 PKG_CHECK_MODULES(RHYTHMBOX, \
51 gtk+-2.0 >= $GTK_REQS \
54 gnome-vfs-2.0 >= $GNOME_VFS_REQS \
57 PKG_CHECK_MODULES(TOTEM_PLPARSER, totem-plparser >= $TOTEM_PLPARSER_REQS, have_totem_plparser=yes, have_totem_plparser=no)
58 if test x$have_totem_plparser != xyes; then
59 AC_MSG_ERROR([totem playlist parsing library not found or too old])
63 AC_HELP_STRING([--without-hal],
64 [Disable HAL support]))
65 if test "x$with_hal" != "xno"; then
66 PKG_CHECK_MODULES(HAL, hal >= 0.5 hal < 0.6, enable_hal05=yes, enable_hal05=no)
67 if test x$enable_hal05 != xyes; then
68 PKG_CHECK_MODULES(HAL, hal >= 0.2.92 hal < 0.5, enable_hal02=yes, enable_hal02=no)
70 if test x$enable_hal05 == xyes || test x$enable_hal02 == xyes; then
72 if test x$enable_hal05 == xyes; then
73 AC_DEFINE(HAVE_HAL_0_5, 1, [Define if you have HAL 0.5 or later])
75 AC_DEFINE(HAVE_HAL_0_2, 1, [Define if you have HAL 0.2 or later])
80 if test "x$with_hal" = "xyes"; then
81 AC_MSG_ERROR([HAL support explicitly requested but HAL couldn't be found])
91 AC_HELP_STRING([--with-ipod],
92 [Enable iPod support]),,
94 if test "x$with_ipod" != "xno"; then
96 PKG_CHECK_MODULES(IPOD, libgpod-1.0, have_libgpod=yes, have_libgpod=no)
97 if test "x$have_libgpod" = "xno" -a "x$with_ipod" = "xyes"; then
98 AC_MSG_ERROR([iPod explicitly requested but libgpod couldn't be found])
100 if test "x$have_libgpod" = "xyes"; then
101 if test "x$with_hal" = xyes && test "x$enable_hal" = xno; then
102 AC_MSG_ERROR([iPod explicitly requested but HAL not found or too old])
104 if test "x$enable_hal" = xyes; then
105 AC_DEFINE(WITH_IPOD_SUPPORT, 1, [Define if iPod support is enabled])
108 AC_SUBST(IPOD_CFLAGS)
112 AM_CONDITIONAL(USE_IPOD, test x"$use_ipod" = xyes)
115 AC_ARG_WITH(database,
116 AC_HELP_STRING([--with-database=tree|libgda],
117 [Select the database to use (default tree)]),,
119 AM_CONDITIONAL(USE_TREEDB, test x"$with_database" = xtree)
120 AM_CONDITIONAL(USE_GDADB, test x"$with_database" = xlibgda)
124 case "x$with_database" in
126 AC_DEFINE(WITH_RHYTHMDB_TREE, 1, [Define if you are using the RhythmDB tree database])
129 AC_DEFINE(WITH_RHYTHMDB_GDA, 1, [Define if you are using the RhythmDB sqlite/libgda database])
130 dnl FIXME: check for sqlite, too?
131 PKG_CHECK_MODULES(GDA, libgda > 1.0.3)
134 AC_MSG_ERROR([Unknown database selected])
140 dnl Database debugging
141 AC_ARG_WITH(rhythmdb-debug,
142 AC_HELP_STRING([--with-rhythmdb-debug=0|1|2],
143 [Level of RhythmDB sanity checking]),,with_rhythmdb_debug=0)
144 if test x"${with_rhythmdb_debug}" != x0; then
145 AC_DEFINE_UNQUOTED([RHYTHMDB_ENABLE_SANITY_CHECK], "${with_rhythmdb_debug}", [Define to the level of RhythmDB sanity checking])
149 dnl Now we're ready to ask for gstreamer libs and cflags
150 dnl And we can also ask for the right version of gstreamer
153 GST_0_8_MAJORMINOR=0.8
154 GST_0_8_REQUIRED_VERSION=0.8.2
155 PKG_CHECK_MODULES(GSTREAMER_0_8, \
156 gstreamer-$GST_0_8_MAJORMINOR >= $GST_0_8_REQUIRED_VERSION gstreamer-libs-$GST_0_8_MAJORMINOR >= $GST_0_8_REQUIRED_VERSION
157 gstreamer-control-$GST_0_8_MAJORMINOR >= $GST_0_8_REQUIRED_VERSION
158 gstreamer-gconf-$GST_0_8_MAJORMINOR >= $GST_0_8_REQUIRED_VERSION,
159 have_gstreamer_0_8=yes,have_gstreamer_0_8=no)
161 GST_0_10_MAJORMINOR=0.10
162 GST_0_10_REQUIRED_VERSION=0.9.7
163 PKG_CHECK_MODULES(GSTREAMER_0_10, \
164 gstreamer-$GST_0_10_MAJORMINOR >= $GST_0_10_REQUIRED_VERSION
165 gstreamer-base-$GST_0_10_MAJORMINOR >= $GST_0_10_REQUIRED_VERSION
166 gstreamer-plugins-base-$GST_0_10_MAJORMINOR >= $GST_0_10_REQUIRED_VERSION,
167 have_gstreamer_0_10=yes,have_gstreamer_0_10=no)
169 AC_ARG_WITH(playback,
170 AC_HELP_STRING([--with-playback=auto|gstreamer-0-8|gstreamer-0-10],
171 [Select the playback backend to use (default auto)]),,
174 if test x$with_playback = xauto -o x$with_playback = xgstreamer-0-10; then
175 if test x"$have_gstreamer_0_10" = xyes; then
176 with_playback=gstreamer_0_10
177 SOUNDSYSTEM_DEPS="gstreamer-$GST_0_10_MAJORMINOR"
178 AC_DEFINE(HAVE_GSTREAMER,1,[Define if you want to use the GStreamer media framework])
179 AC_DEFINE(HAVE_GSTREAMER_0_10,1,[Define if you want to use the GStreamer 0.10])
180 SOUNDSYSTEM_CFLAGS="$GSTREAMER_0_10_CFLAGS"
181 SOUNDSYSTEM_LIBS="$GSTREAMER_0_10_LIBS"
182 elif test x$with_playback = xgstreamer-0-10; then
183 AC_MSG_ERROR([GStreamer 0.10 explicity requested, and it was not found or older than version $GST_REQUIRED_VERSION, or gst-plugins-base was missing])
186 if test x$with_playback = xauto -o x$with_playback = xgstreamer-0-8; then
187 if test x"$have_gstreamer_0_8" = xyes; then
188 with_playback=gstreamer_0_8
189 SOUNDSYSTEM_DEPS="gstreamer-$GST_0_8_MAJORMINOR"
190 AC_DEFINE(HAVE_GSTREAMER,1,[Define if you want to use the GStreamer media framework])
191 AC_DEFINE(HAVE_GSTREAMER_0_8,1,[Define if you want to use the GStreamer 0.8])
192 SOUNDSYSTEM_CFLAGS="$GSTREAMER_0_8_CFLAGS"
193 SOUNDSYSTEM_LIBS="$GSTREAMER_0_8_LIBS"
194 elif test x$with_playback = xgstreamer-0-8; then
195 AC_MSG_ERROR([GStreamer 0.8 explicity requested, and it was not found or older than version $GST_REQUIRED_VERSION])
198 AM_CONDITIONAL(USE_GSTREAMER_0_10, test x"$with_playback" = xgstreamer_0_10)
199 AM_CONDITIONAL(USE_GSTREAMER_0_8, test x"$with_playback" = xgstreamer_0_8)
201 dnl Give error and exit if we don't have gstreamer
202 if test x$with_playback = xauto; then
203 AC_MSG_ERROR([GStreamer not found, or older than version $GST_0_8_REQUIRED_VERSION/$GST_0_10_REQUIRED_VERSION])
206 AC_SUBST(SOUNDSYSTEM_DEPS)
207 RHYTHMBOX_CFLAGS="$RHYTHMBOX_CFLAGS $SOUNDSYSTEM_CFLAGS"
208 RHYTHMBOX_LIBS="$RHYTHMBOX_LIBS $SOUNDSYSTEM_LIBS"
212 AC_ARG_ENABLE(tag-writing,
213 AC_HELP_STRING([--enable-tag-writing],
214 [Enable tag writing support in rhythmbox **EXPERIMENTAL**]))
215 if test x"$enable_tag_writing" = xyes; then
216 AC_MSG_WARN([Tag writing support is experimental, and may corrupt files, use at your own risk])
217 AC_DEFINE(ENABLE_TAG_WRITING, 1, [Define if tag writing should be enabled])
222 AC_ARG_ENABLE(audioscrobbler,
223 AC_HELP_STRING([--disable-audioscrobbler],
224 [Disable Audioscrobbler support in Rhythmbox]))
226 dnl DAAP (iTunes Music Shares)
228 AC_HELP_STRING([--enable-daap],
229 [Enable Digital Audio Access Protocol (music sharing) in rhythmbox **EXPERIMENTAL**]))
232 AC_HELP_STRING([--with-mdns=auto|howl|avahi],
233 [Select the mDNS/DNS-SD implementation to use (default auto)]),,
242 PKG_CHECK_MODULES(AVAHI,
247 if test x$have_avahi_06 != xyes; then
248 PKG_CHECK_MODULES(AVAHI,
254 if test x$have_avahi_06 == xyes || test x$have_avahi_05 == xyes; then
260 PKG_CHECK_MODULES(HOWL,
265 if test x"$with_mdns" = xauto; then
266 if test x"$have_avahi" = xyes; then
267 MDNS_CFLAGS=$AVAHI_CFLAGS
268 MDNS_LIBS=$AVAHI_LIBS
269 AC_DEFINE(WITH_AVAHI, 1, [Define if mDNS/DNS-SD implementation uses Avahi])
271 AC_MSG_NOTICE([Detected Avahi, using it for mDNS/DNS-SD])
272 if test x$have_avahi_06 == xyes; then
273 AC_DEFINE(HAVE_AVAHI_0_6, 1, [Define if mDNS/DNS-SD implementation uses Avahi 0.6])
275 AC_DEFINE(HAVE_AVAHI_0_5, 1, [Define if mDNS/DNS-SD implementation uses Avahi 0.5])
279 elif test x"$have_howl" = xyes; then
280 MDNS_CFLAGS=$HOWL_CFLAGS
282 AC_DEFINE(WITH_HOWL, 1, [Define if mDNS/DNS-SD implementation uses Howl])
284 AC_MSG_NOTICE([Detected Howl, using it for mDNS/DNS-SD])
290 if test x"$with_mdns" = xhowl; then
291 if test x"$have_howl" = xno; then
292 AC_MSG_ERROR([Howl explicitly requested but not found. Install Howl or try --with-mdns=avahi])
295 MDNS_CFLAGS=$HOWL_CFLAGS
297 AC_DEFINE(WITH_HOWL, 1, [Define if mDNS/DNS-SD implementation uses Howl])
299 AC_MSG_NOTICE([Using Howl for mDNS/DNS-SD])
303 if test x"$with_mdns" = xavahi; then
304 if test x"$have_avahi" = xno; then
305 AC_MSG_ERROR([Avahi explicitly requested but not found. Install Avahi or try --with-mdns=howl])
308 MDNS_CFLAGS=$AVAHI_CFLAGS
309 MDNS_LIBS=$AVAHI_LIBS
310 AC_DEFINE(WITH_AVAHI, 1, [Define if mDNS/DNS-SD implementation uses Avahi])
312 AC_MSG_NOTICE([Using Avahi for mDNS/DNS-SD])
314 if test x$have_avahi_06 == xyes; then
315 AC_DEFINE(HAVE_AVAHI_0_6, 1, [Define if mDNS/DNS-SD implementation uses Avahi 0.6])
317 AC_DEFINE(HAVE_AVAHI_0_5, 1, [Define if mDNS/DNS-SD implementation uses Avahi 0.5])
323 AM_CONDITIONAL(USE_HOWL, test "x$use_howl" = "xyes")
324 AM_CONDITIONAL(USE_AVAHI, test "x$use_avahi" = "xyes")
326 LIBNOTIFY_REQUIRED=0.2.2
327 AC_ARG_ENABLE(libnotify,
328 AC_HELP_STRING([--disable-libnotify],
329 [Disable libnotify support]),,
330 enable_libnotify=auto)
331 if test "x$enable_libnotify" != "xno"; then
332 PKG_CHECK_MODULES(NOTIFY, \
333 libnotify >= $LIBNOTIFY_REQUIRED,
336 if test "x$have_libnotify" = "xno" -a "x$enable_libnotify" = "xyes"; then
337 AC_MSG_ERROR([libnotify support explicitly requested, but libnotify couldn't be found])
339 if test "x$have_libnotify" = "xyes"; then
343 AM_CONDITIONAL(USE_NOTIFY, test x"$enable_libnotify" = xyes)
344 if test x$enable_libnotify = xyes ; then
345 # Find out the version of LIBNOTIFY we're using
346 libnotify_version=`pkg-config --modversion libnotify`
347 LIBNOTIFY_VERSION_MAJOR=`echo $libnotify_version | awk -F. '{print $1}'`
348 LIBNOTIFY_VERSION_MINOR=`echo $libnotify_version | awk -F. '{print $2}'`
349 LIBNOTIFY_VERSION_MICRO=`echo $libnotify_version | awk -F. '{print $3}'`
350 if test "z$LIBNOTIFY_VERSION_MAJOR" = "z"; then
351 LIBNOTIFY_VERSION_MAJOR="0"
353 if test "z$LIBNOTIFY_VERSION_MINOR" = "z"; then
354 LIBNOTIFY_VERSION_MINOR="0"
356 if test "z$LIBNOTIFY_VERSION_MICRO" = "z"; then
357 LIBNOTIFY_VERSION_MICRO="0"
359 echo "Your libnotify version is $LIBNOTIFY_VERSION_MAJOR,$LIBNOTIFY_VERSION_MINOR,$LIBNOTIFY_VERSION_MICRO."
360 NOTIFY_CFLAGS="$NOTIFY_CFLAGS -DLIBNOTIFY_VERSION_MAJOR=$LIBNOTIFY_VERSION_MAJOR"
361 NOTIFY_CFLAGS="$NOTIFY_CFLAGS -DLIBNOTIFY_VERSION_MINOR=$LIBNOTIFY_VERSION_MINOR"
362 NOTIFY_CFLAGS="$NOTIFY_CFLAGS -DLIBNOTIFY_VERSION_MICRO=$LIBNOTIFY_VERSION_MICRO"
364 AC_DEFINE(HAVE_NOTIFY, 1, [Define if libnotify support is enabled])
365 AC_SUBST(NOTIFY_CFLAGS)
366 AC_SUBST(NOTIFY_LIBS)
369 dnl Check for libsoup, needed for DAAP and audioscrobbler
370 if test "x$enable_daap" = "xyes" || test "x$enable_audioscrobbler" != "xno"; then
371 dnl We want libsoup now
372 PKG_CHECK_MODULES(SOUP, \
376 if test x"$have_libsoup" = "xno"; then
377 PKG_CHECK_MODULES(SOUP,
383 AM_CONDITIONAL(USE_LIBSOUP, test x"$have_libsoup" = "xyes")
386 dnl audioscrobbler support
387 if test "x$enable_audioscrobbler" != "xno"; then
388 if test x"$have_libsoup" = "xno"; then
389 if test "x$enable_audioscrobbler" = "xyes"; then
390 AC_MSG_ERROR([AudioScrobbler support explicitly requested, but no libsoup found. Install libsoup])
392 enable_audioscrobbler=no
394 AC_DEFINE(WITH_AUDIOSCROBBLER, 1, [define if Audioscrobbler support should be enabled])
397 AM_CONDITIONAL(WITH_AUDIOSCROBBLER, test "x$enable_audioscrobbler" != "xno")
401 if test "x$enable_daap" != "xno"; then
402 if test x"$have_libsoup" = "xno"; then
403 if test "x$enable_daap" = "xyes"; then
404 AC_MSG_ERROR([DAAP support explicitly requested, but no libsoup found. Install libsoup])
407 elif test x"$have_mdns" = xno; then
408 if test "x$enable_daap" = "xyes"; then
409 AC_MSG_ERROR([DAAP support explicitly requested, but no mDNS implentation found. Install Howl or Avahi])
413 AC_DEFINE(WITH_DAAP_SUPPORT, 1, [Define if DAAP should be enabled])
415 AC_SUBST(MDNS_CFLAGS)
419 AM_CONDITIONAL(USE_DAAP, test "x$enable_daap" != "xno")
421 AC_CHECK_LIB(z, uncompress)
425 dnl check for MusicBrainz
426 AC_ARG_ENABLE(musicbrainz, AC_HELP_STRING([--disable-musicbrainz],
427 [don't build with MusicBrainz support]))
428 if test x"$enable_musicbrainz" != "xno"; then
429 PKG_CHECK_MODULES(MUSICBRAINZ, libmusicbrainz >= 2.1.0, enable_musicbrainz=yes,
430 enable_musicbrainz=no)
432 if test x"$enable_musicbrainz" = xyes; then
433 RHYTHMBOX_CFLAGS="$RHYTHMBOX_CFLAGS $MUSICBRAINZ_CFLAGS"
434 RHYTHMBOX_LIBS="$RHYTHMBOX_LIBS $MUSICBRAINZ_LIBS"
435 AC_DEFINE(HAVE_MUSICBRAINZ, 1, [define if you have Musicbrainz])
437 AM_CONDITIONAL(HAVE_MUSICBRAINZ, test "x$enable_musicbrainz" = "xyes")
443 if test x"$x_includes" != x"NONE" && test -n "$x_includes" ; then
444 CFLAGS=$CFLAGS -I`echo $x_includes | sed -e "s/:/ -I/g"`
446 if test x"$x_libraries" != x"NONE" && test -n "$x_libraries" ; then
447 LIBS=-L`echo $x_libraries | sed -e "s/:/ -L/g"`
452 #include <X11/extensions/xidle.h>
453 int main(int argc,char **argv) {
457 AC_MSG_CHECKING(for XIDLE extension)
458 AC_MSG_RESULT($have_xidle)
459 if test x"$have_xidle" = "xyes" ; then
460 AC_DEFINE(HAVE_XIDLE_EXTENSION, 1, [defined if you have X11/extensions/xidle.h])
466 #include <X11/XF86keysym.h>
467 int main(int argc,char **argv) {
471 AC_MSG_CHECKING(for XFree86 headers)
472 AC_MSG_RESULT($have_xfree)
473 if test x"$have_xfree" = "xyes" ; then
474 AC_DEFINE(HAVE_XFREE, 1, [defined if you have X11/XF86keysym.h])
477 AC_ARG_ENABLE(mmkeys, AC_HELP_STRING([--disable-mmkeys],
478 [don't build with Multimedia Keys support]))
479 if test x"$have_xfree" = xyes; then
480 if test x"$enable_mmkeys" != xno; then
482 AC_DEFINE(HAVE_MMKEYS, 1, [define if Multimedia Keys are enabled])
485 if test x"$enable_mmkeys" = xyes; then
486 AC_MSG_ERROR([Multimedia keys explicitly requested but no support found])
491 AC_DEFINE(WITH_AUDIOCD_SUPPORT, 1, [Define if audio cd support is enabled])
492 AC_CHECK_HEADER(linux/cdrom.h,[enable_linux_cdrom=yes],)
493 if test "x$enable_linux_cdrom" = "xyes"; then
494 AC_MSG_CHECKING([whether linux/cdrom.h actually works])
497 #include <sys/ioctl.h>
498 #include <linux/cdrom.h>
499 int main(int argc,char **argv) {
500 ioctl (0, CDROM_GET_CAPABILITY, 0);
501 ioctl (0, CDROM_DRIVE_STATUS, CDSL_CURRENT);
502 ioctl (0, CDROMREADTOCHDR, NULL);
504 }], [enable_linux_cdrom=yes],[enable_linux_cdrom=no])
505 if test "x$enable_linux_cdrom" = "xyes"; then
509 AC_MSG_FAILURE([linux/cdrom.h is damaged; fix your system or use --disable-audiocd])
512 AM_CONDITIONAL(HAVE_LINUX_CDROM, test "x$enable_linux_cdrom" = "xyes")
514 NCB_DRIVE_DOOR_VERSION=2.11.3
515 dnl CD burner support
516 PKG_CHECK_MODULES(LIBNAUTILUS_BURN, [libnautilus-burn >= $NCB_MIN_REQS], have_cd_burner=yes, have_cd_burner=no)
517 if test "x$have_cd_burner" = xno; then
518 AC_MSG_ERROR([libnautilus-burn not found or too cold])
520 AC_CHECK_LIB(nautilus-burn, nautilus_burn_drive_door_is_open,
521 [AC_DEFINE([HAVE_BURN_DRIVE_DOOR], 1, [Have nautilus-burn function to check drive door state])],
522 ,[$LIBNAUTILUS_BURN_LIBS $LIBNAUTILUS_BURN_CFLAGS])
523 AC_CHECK_LIB(nautilus-burn, nautilus_burn_drive_unref,
524 [AC_DEFINE([HAVE_BURN_DRIVE_UNREF], 1, [Have nautilus-burn 2.13 drive unref function])],
525 ,[$LIBNAUTILUS_BURN_LIBS $LIBNAUTILUS_BURN_CFLAGS])
530 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
531 AC_PATH_PROG(GCONFTOOL, gconftool-2)
533 AC_SUBST(RHYTHMBOX_CFLAGS)
534 AC_SUBST(RHYTHMBOX_LIBS)
536 ALL_LINGUAS="am ar az be bg ca cs cy da de el en_CA en_GB es et eu fi fr ga gl he hr hu id is it ja ko lt lv mk ml mn ms nb ne nl no pa pl pt pt_BR ro ru rw sk sr sr@Latn sv th tr uk vi zh_CN zh_TW"
538 GETTEXT_PACKAGE=rhythmbox
539 AC_SUBST(GETTEXT_PACKAGE)
540 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Define to the Gettext package name])
544 dnl Workaround for automake 1.8
545 AC_SUBST(mkdir_p) if test x"$mkdir_p" = "x"; then
546 MKINSTALLDIRS="mkinstalldirs"
548 AC_SUBST(MKINSTALLDIRS)
550 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
552 AS_AC_EXPAND(DATADIR, $datadir)
554 AC_MSG_CHECKING([for D-BUS])
556 AC_HELP_STRING([--with-dbus],
557 [Enable D-BUS support]),,
559 if test "x$with_dbus" != "xno"; then
560 PKG_CHECK_MODULES(DBUS, dbus-glib-1 >= $DBUS_MIN_REQS, enable_dbus=yes, enable_dbus=no)
561 if test "x$with_dbus" = xyes && test "x$enable_dbus" = xno; then
562 AC_MSG_ERROR([D-BUS explicitly requested but no support found])
564 if test "x$enable_dbus" = xyes; then
565 AC_DEFINE(WITH_DBUS, 1, [Define if D-BUS is enabled])
566 DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
567 AC_MSG_RESULT([we're getting on D-BUS])
569 DBUS_GLIB_BIN="`$PKG_CONFIG --variable=exec_prefix dbus-glib-1`/bin"
570 AC_SUBST(DBUS_GLIB_BIN)
572 AC_MSG_RESULT([not found])
576 AM_CONDITIONAL(WITH_DBUS, test "x$enable_dbus" = "xyes")
578 AC_MSG_CHECKING([for Bonobo])
580 AC_HELP_STRING([--with-bonobo],
581 [Enable bonobo support]),,
583 if test "x$with_bonobo" != "xno"; then
584 PKG_CHECK_MODULES(BONOBO, libbonobo-2.0 >= 2.0.0, enable_bonobo=yes,
586 if test "x$with_bonobo" = xyes && test "x$enable_bonobo" = xno; then
587 AC_MSG_ERROR([Bonobo explicitly requested but no support found])
589 if test "x$enable_bonobo" = xyes; then
590 AC_DEFINE(WITH_BONOBO, 1, [Define if Bonobo is enabled])
591 ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
594 LIBBONOBO_IDL="`$PKG_CONFIG --variable=idldir libbonobo-2.0`"
595 AC_SUBST(LIBBONOBO_IDL)
597 BONOBO_ACTIVATION_IDL="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
598 AC_SUBST(BONOBO_ACTIVATION_IDL)
599 AC_MSG_RESULT([found])
601 AC_MSG_RESULT([not found])
605 AM_CONDITIONAL(WITH_BONOBO, test "x$enable_bonobo" = "xyes")
609 AC_ARG_ENABLE(uninstalled-build,
610 AC_HELP_STRING([--enable-uninstalled-build],
611 [Search for files in build directory as well]),
612 enable_uninstalled=yes,)
613 if test x"$enable_uninstalled" = xyes; then
614 AC_DEFINE_UNQUOTED(SHARE_UNINSTALLED_DIR,"`pwd`/data",[path to source data dir])
617 dnl warnings bits, copied from gnome-keyring configure.in
618 dnl Turn on the additional warnings last, so -Werror doesn't affect other tests.
620 AC_ARG_ENABLE(more-warnings,
621 [ --enable-more-warnings Maximum compiler warnings],
622 set_more_warnings="$enableval",[
623 if test -d "$srcdir/{arch}" || test -d "$srcdir/CVS"; then
624 set_more_warnings=yes
629 AC_MSG_CHECKING(for more warnings, including -Werror)
630 if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
633 -Wcomment -Wformat -Wnonnull -Wimplicit-int -Wimplicit \
634 -Wmain -Wmissing-braces -Wparentheses -Wsequence-point \
635 -Wreturn-type -Wswitch -Wtrigraphs -Wunused-function \
636 -Wunused-label -Wunused-value \
637 -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
638 -Wnested-externs -Wpointer-arith \
642 if echo "$CFLAGS" | grep -e '-O[1-9]'; then
643 WARN_CFLAGS="-Wuninitialized $WARN_CFLAGS"
646 for option in $WARN_CFLAGS; do
647 SAVE_CFLAGS="$CFLAGS"
648 CFLAGS="$CFLAGS $option"
649 AC_MSG_CHECKING([whether gcc understands $option])
650 AC_TRY_COMPILE([], [],
653 if test $has_option = no; then
654 CFLAGS="$SAVE_CFLAGS"
656 AC_MSG_RESULT($has_option)
679 remote/bonobo/Makefile
695 doc/reference/Makefile
698 AC_MSG_NOTICE([Rhythmbox was configured with the following options:])
699 if test x"$with_database" = xtree; then
700 AC_MSG_NOTICE([** Tree database is enabled])
701 elif test x"$with_database" = xlibgda; then
702 AC_MSG_NOTICE([** libgda/sqlite database is enabled])
704 AC_MSG_ERROR([Unknown database!])
706 if test x"${with_rhythmdb_debug}" != x0; then
707 AC_MSG_NOTICE([** RhythmDB sanity checking enabled (may be slow!)])
711 if test x"$enable_tag_writing" = xyes; then
712 AC_MSG_NOTICE([** Tag writing is enabled - USE AT YOUR OWN RISK])
714 AC_MSG_NOTICE([ Tag writing is disabled])
716 if test x"$enable_mmkeys" != "xyes"; then
717 AC_MSG_NOTICE([ Multimedia keys support is disabled])
719 AC_MSG_NOTICE([** Multimedia keys support is enabled])
721 if test x"$enable_musicbrainz" != "xyes"; then
722 AC_MSG_NOTICE([ MusicBrainz support is disabled])
724 AC_MSG_NOTICE([** MusicBrainz support is enabled])
727 if test x"$with_playback" = xgstreamer_0_8; then
728 AC_MSG_NOTICE([** GStreamer 0.8 player is enabled])
729 elif test x"$with_playback" = xgstreamer_0_10; then
730 AC_MSG_NOTICE([** GStreamer 0.10 player is enabled])
732 AC_MSG_ERROR([ Playback engine set incorrectly])
735 if test x"$use_ipod" = xyes; then
736 AC_MSG_NOTICE([** iPod integration enabled])
738 AC_MSG_NOTICE([ iPod integration disabled])
740 if test x"$enable_daap" = xyes; then
741 AC_MSG_NOTICE([** DAAP (music sharing) support is enabled])
743 AC_MSG_NOTICE([ DAAP (music sharing) support is disabled])
745 if test x"$have_libnotify" = xyes; then
746 AC_MSG_NOTICE([** libnotify support is enabled])
748 AC_MSG_NOTICE([ libnotify support is disabled])
750 if test x"$enable_bonobo" = xyes; then
751 AC_MSG_NOTICE([** Bonobo control/activation enabled])
753 AC_MSG_NOTICE([ Bonobo control/activation disabled])
755 if test x"$enable_hal" = xyes; then
756 AC_MSG_NOTICE([** HAL support enabled])
758 AC_MSG_NOTICE([ HAL support disabled])
760 if test x"$enable_dbus" = xyes; then
761 AC_MSG_NOTICE([** D-BUS control/activation enabled])
763 AC_MSG_NOTICE([ D-BUS control/activation disabled])
765 if test x"$enable_audioscrobbler" != xno; then
766 AC_MSG_NOTICE([** Audioscrobbler support enabled])
768 AC_MSG_NOTICE([ Audioscrobbler support disabled])
771 AC_MSG_NOTICE([End options])