2
dnl *** Process this file with autoconf to produce a configure script.
8
AC_INIT([audacious-plugins], [3.2.1])
9
AC_COPYRIGHT([(C) 2005-2012 Audacious Team])
11
AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])
12
AC_SUBST([VERSION], [AC_PACKAGE_VERSION])
13
AC_DEFINE_UNQUOTED([PACKAGE], "$PACKAGE", [Name of package])
14
AC_DEFINE_UNQUOTED([VERSION], "$VERSION", [Version number of package])
18
AC_CONFIG_HEADERS([config.h])
25
dnl Headers and functions
26
dnl =====================
27
AC_CHECK_FUNCS([fcntl fsync mkdtemp])
31
AM_GNU_GETTEXT([external])
32
if test "$MSGFMT" = ":" ; then
33
AC_MSG_ERROR([msgfmt was not found; have you installed gettext?])
36
dnl Check for Audacious
37
dnl ===================
39
PKG_CHECK_MODULES(AUDACIOUS, [audacious >= 3.2],
41
[AC_MSG_ERROR([Cannot find Audacious 3.2; have you installed Audacious yet?])]
44
CPPFLAGS="$CPPFLAGS $AUDACIOUS_CFLAGS"
45
LIBS="$LIBS $AUDACIOUS_LIBS"
47
dnl Default Set of Plugins
48
dnl ======================
50
INPUT_PLUGINS="tonegen metronom vtx"
52
EFFECT_PLUGINS="compressor crossfade crystalizer ladspa mixer sndstretch stereo_plugin voice_removal echo_plugin"
53
GENERAL_PLUGINS="alarm albumart search-tool"
54
VISUALIZATION_PLUGINS="blur_scope cairo-spectrum"
55
CONTAINER_PLUGINS="audpl m3u pls asx"
56
TRANSPORT_PLUGINS="unix-io"
62
[AS_HELP_STRING([--disable-gtk3], [Use GTK2 even if GTK3 is present])],
63
[use_gtk3=$enableval], [use_gtk3=yes])
65
if test $use_gtk3 = yes ; then
66
PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= 3.0.0], [use_gtk3=yes], [use_gtk3=no])
69
if test $use_gtk3 = no ; then
70
PKG_CHECK_MODULES([GTK], [gtk+-2.0 >= 2.12.0], [use_gtk3=no],
71
AC_MSG_ERROR([Cannot find GTK headers. Aborting ...]))
75
AC_SUBST([GTK_CFLAGS])
81
AS_HELP_STRING([--enable-gio], [enable GIO support (default=disabled)]),
82
enable_gio=$enableval, enable_gio=no)
84
if test "x$enable_gio" = "xyes"; then
85
PKG_CHECK_MODULES(GIO, [gio-2.0 >= 2.0], [enable_gio=yes], [enable_gio=no])
88
if test "x$enable_gio" = "xyes"; then
89
TRANSPORT_PLUGINS="$TRANSPORT_PLUGINS gio"
92
### ---------------------------------------------------------------------------
98
AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIBS="-lpthread",
99
[AC_CHECK_LIB(pthreads, pthread_create, PTHREAD_LIBS="-lpthreads",
100
[AC_CHECK_LIB(pthreadGC2, pthread_create, PTHREAD_LIBS="-lpthreadGC2")]
104
AC_SUBST([PTHREAD_LIBS])
105
AC_SUBST([PTHREAD_CFLAGS])
108
dnl ========================
110
[ --enable-ipv6 enable IPv6 support (default=no)],
111
enable_ipv6=$enableval, enable_ipv6=no)
112
if test "x$enable_ipv6" = "xyes"; then
113
AC_DEFINE(USE_IPV6,, [Define if building with IPv6 support] )
115
AM_CONDITIONAL(USE_IPV6,test "x$enable_ipv6" = "xyes")
121
AC_ARG_ENABLE(console,
122
[ --disable-console disable game music decoder (console)],
123
[enable_console=$enableval], [enable_console="yes"])
125
if test $enable_console = yes ; then
126
AC_CHECK_HEADERS([zlib.h], [enable_console=yes],
127
[AC_MSG_WARN([Cannot find zlib.h; disabling game music decoder (console)])
131
if test $enable_console = yes ; then
132
INPUT_PLUGINS="$INPUT_PLUGINS console"
139
[ --disable-xsf disable Nintendo DS audio decoder (xsf)],
140
[enable_xsf=$enableval], [enable_xsf="yes"])
142
if test $enable_xsf = yes ; then
143
INPUT_PLUGINS="$INPUT_PLUGINS xsf"
150
AC_ARG_ENABLE( pulse,
151
[ --disable-pulse disable PulseAudio output plugin (default=enabled)],
152
[enable_pulse=$enableval],
156
if test "x$enable_pulse" = "xyes"; then
157
PKG_CHECK_MODULES(PULSE, [libpulse >= 0.9.5],
159
OUTPUT_PLUGINS="$OUTPUT_PLUGINS pulse_audio"],
163
AC_MSG_RESULT([*** pulseaudio output plugin disabled per user request ***])
171
[ --disable-psf disable PlayStation (psf/psf2) audio decoder],
172
[enable_psf=$enableval],
175
if test "$enable_psf" = "yes"; then
176
INPUT_PLUGINS="$INPUT_PLUGINS psf"
182
AS_HELP_STRING([--disable-mp3], [disable MP3 plugin (default=enabled)]),
183
[enable_mp3=$enableval], [enable_mp3=yes])
185
if test $enable_mp3 = yes ; then
186
PKG_CHECK_MODULES(MPG123, [libmpg123 >= 1.12],
187
[enable_mp3=yes], [enable_mp3=no])
189
if test $enable_mp3 = yes ; then
190
INPUT_PLUGINS="$INPUT_PLUGINS mpg123"
192
AC_MSG_RESULT([*** libmpg123 not found; MP3 plugin disabled])
196
dnl *** Global Hotkey general plugin (only built on X11)
198
AC_ARG_ENABLE(hotkey,
199
[ --disable-hotkey disable global hotkey plugin (default=enabled)],
200
[enable_hotkey=$enableval],
201
[enable_hotkey="yes"]
204
if test "x$enable_hotkey" = "xyes"; then
205
if test $use_gtk3 = yes ; then
206
PKG_CHECK_MODULES(GDKX11, [gdk-x11-3.0], [have_hotkey="yes"], [have_hotkey="no"])
208
PKG_CHECK_MODULES(GDKX11, [gdk-x11-2.0], [have_hotkey="yes"], [have_hotkey="no"])
211
AC_MSG_RESULT([*** X11 Global Hotkey plugin disabled per user request ***])
215
if test "x$have_hotkey" = "xyes"; then
216
GENERAL_PLUGINS="$GENERAL_PLUGINS hotkey"
219
dnl *** Gnome Shortcuts Plugin
221
AC_ARG_ENABLE(gnomeshortcuts,
222
[ --disable-gnomeshortcuts disable gnome shortcuts (default=enabled)],
223
[enable_gnomeshortcuts=$enableval],
224
[enable_gnomeshortcuts="yes"]
227
if test "x$enable_gnomeshortcuts" = "xyes"; then
228
have_gnomeshortcuts="yes"
229
PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60 dbus-glib-1 >= 0.60],
230
[have_gnomeshortcuts=yes],
231
[AC_MSG_WARN([Cannot find dbus-glib >= 0.60; disabling Gnome shortcuts plugin.])
232
have_gnomeshortcuts=no])
234
AC_MSG_RESULT([*** Gnome Shortcuts Plugin disabled per user request ***])
235
have_gnomeshortcuts="no"
238
if test "x$have_gnomeshortcuts" = "xyes"; then
239
GENERAL_PLUGINS="$GENERAL_PLUGINS gnomeshortcuts"
245
AC_ARG_ENABLE(songchange,
246
[ --disable-songchange disable song change plugin],
247
[enable_songchange=$enableval], [enable_songchange="yes"])
249
if test $enable_songchange = yes ; then
250
AC_CHECK_HEADERS([sys/wait.h], [enable_songchange=yes],
251
[AC_MSG_WARN([Cannot find sys/wait.h; disabling song change plugin])
252
enable_songchange=no])
255
if test $enable_songchange = yes ; then
256
GENERAL_PLUGINS="$GENERAL_PLUGINS song_change"
262
AC_ARG_ENABLE(statusicon,
263
[ --disable-statusicon disable X11 Status Icon plugin (default=enabled)],
264
[have_statusicon=$enableval], [have_statusicon="yes"])
266
if test $have_statusicon = yes ; then
267
if test $use_gtk3 != yes ; then
268
PKG_CHECK_MODULES(GTK216, [gtk+-2.0 >= 2.16.0], [have_statusicon=yes],
269
[have_statusicon=no])
272
AC_MSG_RESULT([*** X11 Status Icon plugin disabled per user request ***])
275
if test "x$have_statusicon" = "xyes"; then
276
GENERAL_PLUGINS="$GENERAL_PLUGINS statusicon"
279
dnl *** Audacious OSD plugin (pangocairo-based)
282
[ --disable-aosd disable Audacious OSD plugin (default=enabled)],
283
[enable_aosd=$enableval],
284
[enable_aosd="guess"]
287
AC_ARG_ENABLE(aosd_xcomp,
288
[ --disable-aosd-xcomp disable Audacious OSD X Composite Support (default=enabled)],
289
[enable_aosd_xcomp=$enableval],
290
[enable_aosd_xcomp="yes"]
293
if test "x$enable_aosd" = "xguess"; then
295
PKG_CHECK_MODULES(PANGO,[pango >= 1.14.7],,
297
AC_MSG_RESULT([*** pango >= 1.14.7 is required for Audacious OSD plugin ***])]
299
PKG_CHECK_MODULES(CAIRO,[cairo >= 1.2.4],,
301
AC_MSG_RESULT([*** cairo >= 1.2.4 is required for Audacious OSD plugin ***])]
303
PKG_CHECK_MODULES(PANGOCAIRO,[pangocairo >= 1.14.7],,
305
AC_MSG_RESULT([*** pangocairo >= 1.14.7 is required for Audacious OSD plugin ***])]
307
PKG_CHECK_MODULES(XRENDER, xrender,,
309
AC_MSG_RESULT([*** X Render extension is required for Audacious OSD plugin ***])]
311
if test "x$enable_aosd_xcomp" = "xyes"; then
312
have_aosd_xcomp="yes"
313
PKG_CHECK_MODULES(XCOMPOSITE, xcomposite,
314
[AC_DEFINE([HAVE_XCOMPOSITE],[],[X Composite extension available])],
315
[have_aosd_xcomp="no"
316
AC_MSG_RESULT([*** X Composite extension not found, composite support for Audacious OSD will not be compiled ***])]
319
AC_MSG_RESULT([*** X Composite support for Audacious OSD plugin disabled per user request ***])
323
if test "x$enable_aosd" = "xyes"; then
324
AC_MSG_RESULT([*** Audacious OSD plugin has been forcefully enabled ***])
326
if test "x$enable_aosd_xcomp" = "xyes"; then
327
have_aosd_xcomp="yes"
328
PKG_CHECK_MODULES(XCOMPOSITE, xcomposite,
329
[AC_DEFINE([HAVE_XCOMPOSITE],[],[X Composite extension available])],
330
[have_aosd_xcomp="no"
331
AC_MSG_RESULT([*** X Composite extension not found, composite support for Audacious OSD will not be compiled ***])]
334
AC_MSG_RESULT([*** X Composite support for Audacious OSD plugin disabled per user request ***])
338
AC_MSG_RESULT([*** Audacious OSD plugin disabled per user request ***])
343
if test "x$have_aosd" = "xyes"; then
344
GENERAL_PLUGINS="$GENERAL_PLUGINS aosd"
348
dnl notify: libnotify-based OSD
349
dnl ===========================
351
AC_ARG_ENABLE(notify,
352
[ --disable-notify disable notify plugin (default=enabled)],
353
[enable_notify=$enableval], [enable_notify="yes"])
355
if test "x$enable_notify" = "xyes"; then
356
PKG_CHECK_MODULES(NOTIFY, [libnotify], [have_notify="yes"], [have_notify="no"])
361
if test "x$have_notify" = "xyes"; then
362
GENERAL_PLUGINS="$GENERAL_PLUGINS notify"
365
dnl MPRIS 2 (requires GDBus)
366
dnl ========================
368
AC_ARG_ENABLE(mpris2,
369
AS_HELP_STRING([--disable-mpris2], [disable MPRIS 2 support (default=enabled)]),
370
[enable_mpris2=$enableval], [enable_mpris2=yes])
372
if test $enable_mpris2 = yes ; then
373
PKG_CHECK_MODULES([GIO_UNIX], [gio-unix-2.0 >= 2.30],
374
[enable_mpris2=yes], [enable_mpris2=no])
377
if test $enable_mpris2 = yes ; then
378
GENERAL_PLUGINS="$GENERAL_PLUGINS mpris2"
379
AC_SUBST(GIO_UNIX_CFLAGS)
380
AC_SUBST(GIO_UNIX_LIBS)
383
dnl *** AdPlug requirement (libbinio)
385
AC_ARG_ENABLE(adplug,
386
[ --disable-adplug disable AdPlug plugin (default=enabled)],
387
[enable_adplug=$enableval],
388
[enable_adplug="yes"]
391
if test "x$enable_adplug" = "xyes"; then
393
PKG_CHECK_MODULES(BINIO,[libbinio >= 1.4],,[have_adplug=no])
395
AC_MSG_RESULT([*** AdPlug plugin disabled per user request ***])
399
if test "x$have_adplug" = "xyes"; then
400
INPUT_PLUGINS="$INPUT_PLUGINS adplug"
401
AC_SUBST(BINIO_CFLAGS)
406
AC_ARG_ENABLE(vorbis,
407
[ --disable-vorbis disable Ogg Vorbis input plugin (default=enabled)],
408
[enable_vorbis=$enableval],
409
[enable_vorbis="yes"]
412
if test "x$enable_vorbis" = "xyes"; then
413
PKG_CHECK_MODULES(OGG_VORBIS, [ogg >= 1.0 vorbis >= 1.1 vorbisfile >= 1.1],
414
[have_oggvorbis=yes],
415
[AC_MSG_WARN([*** Cannot find libogg/libvorbis, Ogg Vorbis support will not be built ***])
419
AC_MSG_RESULT([*** Ogg Vorbis plugin disabled per user request ***])
423
if test "x$have_oggvorbis" = "xyes"; then
424
INPUT_PLUGINS="$INPUT_PLUGINS vorbis"
429
AC_ARG_ENABLE(flacng,
430
[ --disable-flacng disable flac input plugin (default=enabled)],
431
[enable_flacng=$enableval],
432
[enable_flacng="yes"]
435
if test "x$enable_flacng" = "xyes"; then
436
PKG_CHECK_MODULES(LIBFLAC, [flac >= 1.2.1],
438
[AC_MSG_WARN([*** Cannot find libFLAC 1.2.1+, FLAC support will not be built ***])
442
AC_MSG_RESULT([*** FLACng plugin disabled per user request ***])
446
if test "x$have_flacng" = "xyes"; then
447
INPUT_PLUGINS="$INPUT_PLUGINS flacng"
450
dnl *** WavPack 4.31 support
452
AC_ARG_ENABLE(wavpack,
453
[ --disable-wavpack disable WavPack input plugin (default=enabled)],
454
[enable_wavpack=$enableval],
455
[enable_wavpack="yes"]
458
if test "x$enable_wavpack" = "xyes"; then
459
PKG_CHECK_MODULES(WAVPACK, [wavpack >= 4.31],
461
[AC_MSG_WARN([*** Cannot find WavPack 4.31+, WavPack support will not be built ***])
465
AC_MSG_RESULT([*** WavPack plugin disabled per user request ***])
469
if test "x$have_wavpack" = "xyes"; then
470
INPUT_PLUGINS="$INPUT_PLUGINS wavpack"
476
[ --disable-aac disable aac plugin (default=enabled) ],
477
[enable_aac=$enableval],
481
if test x$enable_aac = xyes; then
485
AC_CHECK_HEADER(faad.h,,enable_aac=no)
486
if test x$enable_aac = xyes; then
487
AC_CHECK_DECL(FAAD2_VERSION,,enable_aac=no,[#include <neaacdec.h>])
489
if test x$enable_aac = xyes; then
490
AC_CHECK_DECL(NeAACDecInit2,,enable_aac=no,[#include <neaacdec.h>])
492
if test x$enable_aac = xyes; then
493
AC_CHECK_LIB(faad,NeAACDecInit2,enable_aac=yes,enable_aac=no)
497
if test x$enable_aac = xyes; then
498
AC_SUBST(FAAD_CFLAGS)
500
INPUT_PLUGINS="$INPUT_PLUGINS aac"
505
AC_ARG_ENABLE(sndfile,
506
[ --disable-sndfile disable sndfile extensions. [default=enabled] ],
507
[enable_sndfile=$enableval],
511
if test "x$enable_sndfile" = "xyes"; then
512
PKG_CHECK_MODULES(SNDFILE, [sndfile >= 0.19],
513
[enable_sndfile=yes],
517
AC_MSG_RESULT([*** libsndfile extensions disabled per user request ***])
521
if test "x$enable_sndfile" = "xyes"; then
522
INPUT_PLUGINS="$INPUT_PLUGINS sndfile"
527
AC_ARG_ENABLE(modplug,
528
[ --disable-modplug disable ModPlug plugin (default=enabled)],
529
[enable_modplug=$enableval],
530
[enable_modplug="yes"]
533
if test $enable_modplug = yes ; then
534
PKG_CHECK_MODULES(MODPLUG, libmodplug,
535
[INPUT_PLUGINS="$INPUT_PLUGINS modplug"
537
[AC_MSG_WARN([*** Cannot find libmodplug; modplug plugin disabled ***])
544
AC_ARG_ENABLE(ffaudio,
545
[ --disable-ffaudio disable ffaudio plugin (default=enabled)],
546
[enable_ffaudio=$enableval],
547
[enable_ffaudio="yes"]
550
if test $enable_ffaudio = yes ; then
551
PKG_CHECK_MODULES([FFMPEG],
552
[libavcodec >= 53.40.0 libavformat >= 53.5.0 libavutil >= 50.42.0],
553
[have_ffaudio=yes], [have_ffaudio=no])
556
if test "x$have_ffaudio" = "xyes"; then
557
INPUT_PLUGINS="$INPUT_PLUGINS ffaudio"
560
dnl *** jack output plugin
563
AS_HELP_STRING([--disable-jack], [disable JACK output plugin (default=enabled)]),
564
[enable_jack=$enableval], [enable_jack=yes])
566
if test $enable_jack = yes ; then
567
PKG_CHECK_MODULES(JACK, [jack >= 1.9.7],
568
[enable_jack=$enable_jack], [
569
PKG_CHECK_MODULES(JACK, [jack >= 0.120.1 jack < 1.0],
570
[enable_jack=$enable_jack], [enable_jack=no])
573
PKG_CHECK_MODULES([SAMPLERATE], [samplerate],
574
[enable_jack=$enable_jack], [enable_jack=no])
576
if test $enable_jack = yes ; then
577
OUTPUT_PLUGINS="$OUTPUT_PLUGINS jack"
579
AC_MSG_RESULT([*** JACK or libsamplerate not found; JACK output plugin disabled])
585
[ --disable-sid disable SID input plugin (default=enabled)],,
588
if test "x$enable_sid" = "xyes"; then
589
AM_PATH_SIDPLAY(have_sidplay=yes, have_sidplay=no)
591
AC_MSG_RESULT([*** SID plugin disabled per user request ***])
595
if test "x$have_sidplay" = "xyes"; then
596
INPUT_PLUGINS="$INPUT_PLUGINS sid"
603
[ --enable-oss enable OSS3 output plugin],
604
[enable_oss="$enableval"],
609
[ --disable-oss4 disable OSS4 output plugin],
610
[enable_oss4="$enableval"],
618
if test "$enable_oss" = "yes" || test "$enable_oss4" = "yes" ; then
619
if test -f "/etc/oss.conf"; then
621
OSS_CFLAGS="-I$OSSLIBDIR/include"
624
OLD_CPPFLAGS="$CPPFLAGS"
625
CPPFLAGS="$CPPFLAGS $OSS_CFLAGS"
627
AC_CHECK_HEADERS([sys/soundcard.h soundcard.h],
628
[have_oss="yes"], [have_oss="$have_oss"])
630
if test "$enable_oss4" = "yes" && test "$have_oss" = "yes" ; then
631
AC_MSG_CHECKING(for OSS4)
634
[#ifdef HAVE_SYS_SOUNDCARD_H
635
#include <sys/soundcard.h>
637
#include <soundcard.h>
639
#if OSS_VERSION >= 0x40000 || SOUND_VERSION >= 0x40000
645
AC_MSG_RESULT([$have_oss4])
648
CPPFLAGS="$OLD_CPPFLAGS"
653
if test "$enable_oss" = "yes" && test "$have_oss" = "no" ; then
657
if test "$enable_oss" = "yes"; then
658
OUTPUT_PLUGINS="$OUTPUT_PLUGINS OSS"
661
if test "$enable_oss4" = "yes" && test "$have_oss4" = "no" ; then
665
if test "$enable_oss4" = "yes"; then
666
OUTPUT_PLUGINS="$OUTPUT_PLUGINS oss4"
669
dnl *** ALSA output plugin
672
[ --disable-alsa disable ALSA output plugin],
673
[enable_alsa=$enableval],
677
if test "x$enable_alsa" = "xyes"; then
678
PKG_CHECK_MODULES([ALSA], [alsa >= 1.0.16], [have_alsa=yes], [have_alsa=no])
680
AC_MSG_RESULT([*** ALSA output plugin disabled per user request ***])
684
if test "x$have_alsa" = "xyes"; then
685
OUTPUT_PLUGINS="$OUTPUT_PLUGINS alsa"
691
AC_ARG_ENABLE(sdlout,
692
[ --disable-sdlout disable SDL output plugin],
693
[enable_sdlout=$enableval], [enable_sdlout=yes])
695
if test $enable_sdlout = yes ; then
696
AM_PATH_SDL(1.2.5, [enable_sdlout=yes], [enable_sdlout=no])
699
if test $enable_sdlout = yes ; then
700
OUTPUT_PLUGINS="$OUTPUT_PLUGINS sdlout"
704
dnl *** amidi-plug (note: to avoid checking twice ALSA, this should appear somewhere after the alsa output plugin check)
706
AC_ARG_ENABLE(amidiplug,
707
[ --disable-amidiplug disable amidi-plug input plugin (default=check) ],
708
[enable_amidiplug=$enableval],
709
[enable_amidiplug=check]
712
AC_ARG_ENABLE(amidiplug-alsa,
713
[ --disable-amidiplug-alsa disable amidi-plug ALSA backend (default=enabled) ],
714
[enable_amidiplug_alsa=$enableval],
715
[enable_amidiplug_alsa=auto]
718
AC_ARG_ENABLE(amidiplug-flsyn,
719
[ --disable-amidiplug-flsyn disable amidi-plug FluidSynth backend (default=enabled) ],
720
[enable_amidiplug_fluidsynth=$enableval],
721
[enable_amidiplug_fluidsynth=auto]
724
if test "x$enable_amidiplug" = "xno"; then
725
AC_MSG_RESULT([*** amidi-plug disabled per user request ***])
728
if test "x$enable_amidiplug_alsa" != "xauto"; then
730
elif test "x$enable_amidiplug_fluidsynth" != "xauto"; then
735
if test "x$have_alsa" = "xyes"; then
736
AUD_TRY_COMPILE([ALSA MIDI support], [alsalib_cv_hasmidi],
737
[#include <alsa/asoundlib.h>],
738
[snd_seq_t *seq = NULL;],
739
[alsalib_midi=yes], [alsalib_midi=no])
743
if test "x$enable_amidiplug" = "xcheck"; then
744
if test "x$alsalib_midi" = "xyes"; then
747
PKG_CHECK_MODULES(FLUIDSYNTH, [fluidsynth >= 1.0.6],
748
[fluidsynth_available=yes],[fluidsynth_available=no])
749
if test "x$fluidsynth_available" = "xyes"; then
753
AC_MSG_WARN(["*** Neither ALSA or FluidSynth software synth (>= 1.0.6) have been found, so amidi-plug won't be compiled unless you explicitly request it with --enable-amidiplug ***"])
758
if test "x$enable_amidiplug" = "xyes"; then
759
INPUT_PLUGINS="$INPUT_PLUGINS amidi-plug"
760
PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.6.0],,)
761
PKG_CHECK_MODULES(GMODULE, [gmodule-2.0 >= 2.6.0],,)
762
AMIDIPLUG_BACKEND_DIR=amidi-plug
763
AC_SUBST(AMIDIPLUG_BACKEND_DIR)
764
if test "x$enable_amidiplug_alsa" = "xauto" -o "x$enable_amidiplug_alsa" = "xyes"; then
765
if test "x$alsalib_midi" = "xyes"; then
766
AMIDIPLUG_BACKENDS="$AMIDIPLUG_BACKENDS backend-alsa"
767
enable_amidiplug_alsa=yes
769
if test "x$enable_amidiplug_alsa" = "xyes"; then
770
AC_MSG_ERROR([Cannot find ALSA development files (ver >= 1.0), but compilation of AMIDI-Plug ALSA backend has been explicitly requested; please install ALSA dev files and run configure again])
771
enable_amidiplug_alsa=no
773
enable_amidiplug_alsa=no
777
if test "x$enable_amidiplug_fluidsynth" = "xauto" -o "x$enable_amidiplug_fluidsynth" = "xyes"; then
778
if test "x$fluidsynth_available" != "xyes" -a "x$fluidsynth_available" != "xno"; then
779
PKG_CHECK_MODULES(FLUIDSYNTH, [fluidsynth >= 1.0.6],
780
[fluidsynth_available=yes],[fluidsynth_available=no])
782
if test "x$fluidsynth_available" = "xyes"; then
783
AMIDIPLUG_BACKENDS="$AMIDIPLUG_BACKENDS backend-fluidsynth"
784
enable_amidiplug_fluidsynth=yes
786
if test "x$enable_amidiplug_fluidsynth" = "xyes"; then
787
AC_MSG_ERROR([Cannot find FluidSynth development files (ver >= 1.0.6), but compilation of AMIDI-Plug FluidSynth backend has been explicitly requested; please install FluidSynth dev files and run configure again])
788
enable_amidiplug_fluidsynth=no
790
enable_amidiplug_fluidsynth=no
794
AC_SUBST(AMIDIPLUG_BACKENDS)
800
AC_ARG_ENABLE(cdaudio,
801
[ --disable-cdaudio disable cdaudio-ng input plugin (default=enabled) ],
802
[enable_cdaudio_ng=$enableval],
803
[enable_cdaudio_ng=yes]
806
if test "$enable_cdaudio_ng" = "yes"; then
807
PKG_CHECK_MODULES(CDIO, [libcdio >= 0.70],
809
[AC_MSG_WARN([*** Cannot find libcdio 0.70 or newer, cdaudio-ng will not be built ***])
810
enable_cdaudio_ng=no]
814
if test "$enable_cdaudio_ng" = "yes"; then
815
PKG_CHECK_MODULES(CDIO, [libcdio_cdda >= 0.70],
816
[CDIO_LIBS=`pkg-config --libs libcdio_cdda`
817
CDIO_CFLAGS=`pkg-config --cflags libcdio_cdda`
819
AC_SUBST(CDIO_CFLAGS)],
820
[AC_MSG_WARN([*** Cannot find libcdio_cdda 0.70 or newer, cdaudio-ng will not be built ***])
821
enable_cdaudio_ng=no]
825
if test "$enable_cdaudio_ng" = "yes"; then
826
PKG_CHECK_MODULES(CDDB, [libcddb >= 1.2.1],
827
[INPUT_PLUGINS="$INPUT_PLUGINS cdaudio-ng"
828
GENERAL_PLUGINS="$GENERAL_PLUGINS cd-menu-items"
829
CDDB_LIBS=`pkg-config --libs libcddb`
830
CDDB_CFLAGS=`pkg-config --cflags libcddb`
832
AC_SUBST(CDDB_CFLAGS)],
833
[AC_MSG_WARN([*** Cannot find libcddb 1.2.1 or newer, cdaudio-ng will not be built ***])
834
enable_cdaudio_ng=no]
839
dnl *** scrobbler ***
841
AC_ARG_ENABLE(scrobbler,
842
[ --disable-scrobbler disable Scrobbler plugin (default=enabled)],
843
[have_scrobbler=$enableval], [have_scrobbler="yes"])
845
if test "x$have_scrobbler" = "xyes"; then
846
PKG_CHECK_MODULES(CURL, [libcurl >= 7.9.7],
847
[have_scrobbler="$have_scrobbler"], [have_scrobbler="no"])
848
AC_SUBST(CURL_CFLAGS)
852
if test "x$have_scrobbler" = "xyes"; then
853
GENERAL_PLUGINS="$GENERAL_PLUGINS scrobbler"
856
dnl *** neon http plugin ***
859
[ --disable-neon disable neon HTTP support (default=enabled)],
860
[have_neon=$enableval],
863
if test "x$have_neon" = "xyes"; then
864
PKG_CHECK_MODULES(NEON, [neon >= 0.26], [TRANSPORT_PLUGINS="$TRANSPORT_PLUGINS neon" ], [have_neon="no"])
865
AC_CHECK_LIB([neon], [ne_set_connect_timeout], [AC_DEFINE(HAVE_NE_SET_CONNECT_TIMEOUT, 1, [Whether we have ne_set_connect_timeout])], [], [$NEON_LIBS])
869
AC_SUBST([NEON_LIBS])
870
AC_SUBST([NEON_CFLAGS])
876
[ --disable-mms disable mms support. (default=enabled)],
877
[have_mms=$enableval],
880
if test "x$have_mms" = "xyes"; then
882
PKG_CHECK_MODULES(MMS, [libmms >= 0.3], [TRANSPORT_PLUGINS="$TRANSPORT_PLUGINS mms" ], [have_mms="no"])
885
AC_MSG_RESULT([*** mms plugin disabled by request ***])
892
AS_HELP_STRING([--enable-smb], [enable SMB transport (default=disabled)]),
893
[enable_smb="$enableval"], [enable_smb="no"])
895
if test $enable_smb = yes ; then
896
AC_CHECK_HEADERS([libsmbclient.h], [enable_smb=yes], [enable_smb=no])
898
if test $enable_smb = yes ; then
899
TRANSPORT_PLUGINS="$TRANSPORT_PLUGINS smb"
901
AC_MSG_RESULT([*** libsmbclient not found; SMB client disabled])
907
AC_ARG_ENABLE(mtp_up,
908
[ --disable-mtp_up disable mtp upload support. (default=enabled)],
909
[have_mtp_up=$enableval],
912
if test "x$have_mtp_up" = "xyes"; then
914
PKG_CHECK_MODULES(MTP, [libmtp >= 0.3.5], [GENERAL_PLUGINS="$GENERAL_PLUGINS mtp_up" ], [have_mtp_up="no"])
915
MTP_LIBS=`pkg-config --libs libmtp`
916
MTP_CFLAGS=`pkg-config --cflags libmtp`
919
AC_MSG_RESULT([*** mtp upload plugin disabled by request ***])
927
PKG_CHECK_MODULES(XML, [libxml-2.0], [have_xml=yes], [have_xml=no])
929
if test $have_xml = "no" ; then
930
AC_MSG_ERROR([Please install libxml-2.0.])
933
CONTAINER_PLUGINS="$CONTAINER_PLUGINS xspf"
940
[ --disable-cue disable cue support. (default=enabled)],
941
[have_cue=$enableval],
944
if test "x$have_cue" = "xyes"; then
946
PKG_CHECK_MODULES(CUE, [libcue], [CONTAINER_PLUGINS="$CONTAINER_PLUGINS cue" ], [have_cue="no"])
949
AC_MSG_RESULT([*** cue plugin disabled by request ***])
955
AC_ARG_ENABLE(filewriter,
956
[ --disable-filewriter disable FileWriter output plugin (default=enabled) ],
957
[enable_filewriter=$enableval],
958
[enable_filewriter=yes]
961
if test "x$enable_filewriter" = "xyes"; then
962
OUTPUT_PLUGINS="$OUTPUT_PLUGINS filewriter"
966
AC_ARG_ENABLE(filewriter_mp3,
967
[ --disable-filewriter_mp3 disable FileWriter MP3 output part (default=enabled) ],
968
[enable_filewriter_mp3=$enableval], [enable_filewriter_mp3=yes]
971
if test "x$enable_filewriter_mp3" = "xyes"; then
972
AC_CHECK_LIB(mp3lame -lm, lame_get_id3v2_tag, [have_lame=yes], [have_lame=no])
973
if test "x$have_lame" = "xyes"; then
974
AC_DEFINE(FILEWRITER_MP3, 1, [Define if MP3 output part should be built])
975
FILEWRITER_LIBS="$FILEWRITER_LIBS -lmp3lame"
980
AC_ARG_ENABLE(filewriter_vorbis,
981
[ --disable-filewriter_vorbis disable FileWriter Vorbis output part (default=enabled) ],
982
[enable_filewriter_vorbis=$enableval], [enable_filewriter_vorbis=yes]
985
if test "x$enable_filewriter_vorbis" = "xyes"; then
986
PKG_CHECK_MODULES(OGG_VORBIS, [ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0],
987
[have_vorbisenc=yes], [have_vorbisenc=no])
988
if test "x$have_vorbisenc" = "xyes"; then
989
AC_DEFINE(FILEWRITER_VORBIS, 1, [Define if Vorbis output part should be built])
990
FILEWRITER_CFLAGS="$FILEWRITER_CFLAGS `pkg-config --cflags vorbisenc`"
991
FILEWRITER_LIBS="$FILEWRITER_LIBS `pkg-config --libs vorbisenc`"
996
AC_ARG_ENABLE(filewriter_flac,
997
[ --disable-filewriter_flac disable FileWriter FLAC output part (default=enabled) ],
998
[enable_filewriter_flac=$enableval], [enable_filewriter_flac=yes]
1001
if test "x$enable_filewriter_flac" = "xyes"; then
1002
PKG_CHECK_MODULES(FLAC, [flac >= 1.1.3],
1003
[have_writer_flac=yes], [have_writer_flac=no]
1005
if test "x$have_writer_flac" = "xyes"; then
1006
AC_DEFINE(FILEWRITER_FLAC, 1, [Define if FLAC output part should be built])
1007
FILEWRITER_CFLAGS="$FILEWRITER_CFLAGS `pkg-config --cflags flac`"
1008
FILEWRITER_LIBS="$FILEWRITER_LIBS `pkg-config --libs flac`"
1012
if test "x$enable_filewriter" != "xyes"; then
1018
AC_SUBST(FILEWRITER_CFLAGS)
1019
AC_SUBST(FILEWRITER_LIBS)
1021
dnl *** BS2B effect plugin
1024
[ --disable-bs2b disable BS2B effect plugin (default=enabled)],
1025
[enable_bs2b=$enableval],
1029
if test "x$enable_bs2b" = "xyes"; then
1030
PKG_CHECK_MODULES([BS2B], [libbs2b >= 3.0.0], [have_bs2b=yes], [have_bs2b=no])
1032
AC_MSG_RESULT([*** BS2B effect plugin disabled per user request ***])
1036
if test "x$have_bs2b" = "xyes"; then
1037
EFFECT_PLUGINS="$EFFECT_PLUGINS bs2b"
1041
dnl *** Resample effect plugin
1043
AC_ARG_ENABLE(resample,
1044
[ --disable-resample disable resample effect plugin (default=enabled)],
1045
[enable_resample=$enableval], [enable_resample=yes]
1048
if test "x$enable_resample" = "xyes"; then
1049
PKG_CHECK_MODULES([SAMPLERATE], [samplerate],
1050
[enable_resample=yes], [enable_resample=no])
1053
if test "x$enable_resample" = "xyes"; then
1054
EFFECT_PLUGINS="$EFFECT_PLUGINS resample"
1060
AC_ARG_ENABLE(gtkui,
1061
[ --disable-gtkui disable GTK interface (gtkui)],
1062
[enable_gtkui=$enableval], [enable_gtkui="yes"])
1064
if test $enable_gtkui = yes ; then
1065
GENERAL_PLUGINS="$GENERAL_PLUGINS gtkui"
1068
dnl Winamp Classic Interface
1071
AC_ARG_ENABLE(skins,
1072
[ --disable-skins disable Winamp Classic interface (skins)],
1073
[enable_skins=$enableval], [enable_skins="yes"])
1075
if test $enable_skins = yes ; then
1076
GENERAL_PLUGINS="$GENERAL_PLUGINS skins"
1082
AC_ARG_ENABLE(lyricwiki,
1083
[ --disable-lyricwiki disable LyricWiki plugin (default=enabled)],
1084
[enable_lyricwiki=$enableval], [enable_lyricwiki=yes])
1086
if test "x$enable_lyricwiki" = "xyes"; then
1087
PKG_CHECK_MODULES(GLIB214, [glib-2.0 >= 2.14], [enable_lyricwiki=yes],
1088
[enable_lyricwiki=no])
1091
if test "x$enable_lyricwiki" = "xyes"; then
1092
GENERAL_PLUGINS="$GENERAL_PLUGINS lyricwiki"
1095
dnl *** End of all plugin checks ***
1097
plugindir=`pkg-config audacious --variable=plugin_dir`
1102
INPUT_PLUGIN_DIR=Input
1103
OUTPUT_PLUGIN_DIR=Output
1104
EFFECT_PLUGIN_DIR=Effect
1105
GENERAL_PLUGIN_DIR=General
1106
VISUALIZATION_PLUGIN_DIR=Visualization
1107
CONTAINER_PLUGIN_DIR=Container
1108
TRANSPORT_PLUGIN_DIR=Transport
1110
AC_SUBST(INPUT_PLUGIN_DIR)
1111
AC_SUBST(OUTPUT_PLUGIN_DIR)
1112
AC_SUBST(EFFECT_PLUGIN_DIR)
1113
AC_SUBST(GENERAL_PLUGIN_DIR)
1114
AC_SUBST(VISUALIZATION_PLUGIN_DIR)
1115
AC_SUBST(CONTAINER_PLUGIN_DIR)
1116
AC_SUBST(TRANSPORT_PLUGIN_DIR)
1117
AC_SUBST(pluginsubs)
1119
dnl XXX Work around some autoconf bugs.
1120
if test "x$prefix" = "xNONE"; then
1121
prefix="${ac_default_prefix}"
1124
if test -z "$datadir"; then
1125
datadir="${prefix}/share"
1128
localedir="$datadir/locale"
1131
AC_SUBST(EFFECT_PLUGINS)
1132
AC_SUBST(GENERAL_PLUGINS)
1133
AC_SUBST(INPUT_PLUGINS)
1134
AC_SUBST(OUTPUT_PLUGINS)
1135
AC_SUBST(VISUALIZATION_PLUGINS)
1136
AC_SUBST(CONTAINER_PLUGINS)
1137
AC_SUBST(TRANSPORT_PLUGINS)
1138
AC_SUBST(GCC42_CFLAGS)
1149
echo "Configuration:"
1151
echo " Install path: ${audacious_plugin_root}"
1153
echo " Output Plugins"
1154
echo " --------------"
1155
echo " Open Sound System (oss4): $enable_oss4"
1156
echo " Advanced Linux Sound Arch. (alsa): $have_alsa"
1157
echo " PulseAudio (pulse): $have_pulse"
1158
echo " Jack Audio Connection Kit (jack): $enable_jack"
1159
echo " Simple DirectMedia Layer (sdlout): $enable_sdlout"
1160
echo " FileWriter: $enable_filewriter"
1161
echo " -> FileWriter MP3 output part: $have_lame"
1162
echo " -> FileWriter Vorbis output part: $have_vorbisenc"
1163
echo " -> FileWriter FLAC output part: $have_writer_flac"
1164
echo " Null Audio output (null): yes"
1165
echo " Open Sound System v3 (deprecated): $enable_oss"
1167
echo " Input Plugins"
1168
echo " -------------"
1169
echo " MPEG-1 Layer I/II/III (mpg123): $enable_mp3"
1170
echo " MPEG-2/4 AAC (aac): $enable_aac"
1171
echo " FFaudio (ffaudio): $have_ffaudio"
1172
echo " Module decoder (modplug): $have_modplug"
1173
echo " MIDI modular plugin (amidi-plug): $enable_amidiplug"
1174
echo " -> ALSA backend: $enable_amidiplug_alsa"
1175
echo " -> FluidSynth backend: $enable_amidiplug_fluidsynth"
1176
echo " CD Digital Audio (cdaudio_ng): $enable_cdaudio_ng"
1177
echo " sndfile extensions: $enable_sndfile"
1178
echo " Tone Generator: yes"
1179
echo " Ogg Vorbis (vorbis): $have_oggvorbis"
1180
echo " Free Lossless Audio Codec (flacng): $have_flacng"
1181
echo " Commodore 64 audio (SID): $have_sidplay $xs_have_sidplay2_api"
1182
echo " -> libSIDPlay1 support: $xs_have_sidplay1"
1183
echo " -> libSIDPlay2 support: $xs_have_sidplay2"
1184
echo " -> distortion patched libSIDPlay2: $xs_have_distortion"
1185
echo " Game music (spc, nsf & gbs): $enable_console"
1186
echo " PlayStation (psf/psf2) audio: $enable_psf"
1187
echo " Nintendo DS audio (xsf): $enable_xsf"
1188
echo " AdLib synthesizer (adplug): $have_adplug"
1189
echo " WavPack 4.31+ (wavpack): $have_wavpack"
1190
echo " Metronom: yes"
1195
echo " Album Art: yes"
1196
echo " MPRIS 2 Server: $enable_mpris2"
1197
echo " Search Tool: yes"
1198
echo " Song Change: $enable_songchange"
1199
echo " Status Icon: $have_statusicon"
1200
echo " Audacious OSD: $have_aosd"
1201
echo " -> X Composite support: $have_aosd_xcomp"
1202
echo " libnotify OSD: $have_notify"
1203
echo " Global Hotkey Plugin: $have_hotkey"
1204
echo " Gnome Shortcuts Plugin: $have_gnomeshortcuts"
1205
echo " AudioScrobbler Client: $have_scrobbler"
1206
echo " Upload to MTP device: $have_mtp_up"
1207
echo " LyricWiki viewer: $enable_lyricwiki"
1211
echo " Channel Mixer: yes"
1212
echo " Crystalizer: yes"
1213
echo " Dynamic Range Compressor: yes"
1214
echo " Echo/Surround: yes"
1215
echo " Extra Stereo: yes"
1216
echo " LADSPA Host: yes"
1217
echo " SndStretch: yes"
1218
echo " Voice Removal: yes"
1219
echo " Bauer stereophonic-to-binaural (bs2b): $have_bs2b"
1220
echo " Sample Rate Converter (resample): $enable_resample"
1222
echo " Visualization"
1223
echo " -------------"
1224
echo " Blur Scope: yes"
1225
echo " Cairo Spectrum Analyzer: yes"
1229
echo " neon-based http/https: $have_neon"
1230
echo " libmms-based mms: $have_mms"
1231
echo " GIO transport (experimental): $enable_gio"
1232
echo " SMB transport (experimental): $enable_smb"
1236
echo " Audacious playlist format (audpl): yes"
1237
echo " Winamp PLS playlist format (pls): yes"
1238
echo " M3U playlist format (m3u): yes"
1239
echo " XML Sharable Playlist Format (xspf): yes"
1240
echo " CUE playlist format (cue): $have_cue"
1244
echo " GTK (gtkui): $enable_gtkui"
1245
echo " Winamp Classic (skins): $enable_skins"