~ubuntu-branches/debian/jessie/audacious-plugins/jessie

« back to all changes in this revision

Viewing changes to .pc/ffaudio.diff/configure.ac

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-02-20 00:28:16 UTC
  • mfrom: (1.1.16)
  • Revision ID: package-import@ubuntu.com-20120220002816-mgn4vhn314z6mubs
Tags: 3.2.1-1
* Team upload.
* New upstream bugfix release.
* Remove correct_spelling_error.diff, applied upstream.
* Refresh ffaudio.diff.
* Reintroduce src/psf/*, it seems DFSG clean now.
* Fix and update debian/copyright.
* Update watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl ***
 
2
dnl *** Process this file with autoconf to produce a configure script.
 
3
dnl ***
 
4
 
 
5
dnl Initialize
 
6
dnl ==========
 
7
AC_PREREQ([2.59])
 
8
AC_INIT([audacious-plugins], [3.2.1])
 
9
AC_COPYRIGHT([(C) 2005-2012 Audacious Team])
 
10
 
 
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])
 
15
 
 
16
AC_CANONICAL_HOST
 
17
AC_CANONICAL_TARGET
 
18
AC_CONFIG_HEADERS([config.h])
 
19
 
 
20
AUD_COMMON_PROGS
 
21
 
 
22
BUILDSYS_INIT
 
23
BUILDSYS_SHARED_LIB
 
24
 
 
25
dnl Headers and functions
 
26
dnl =====================
 
27
AC_CHECK_FUNCS([fcntl fsync mkdtemp])
 
28
 
 
29
dnl gettext
 
30
dnl =======
 
31
AM_GNU_GETTEXT([external])
 
32
if test "$MSGFMT" = ":" ; then
 
33
    AC_MSG_ERROR([msgfmt was not found; have you installed gettext?])
 
34
fi
 
35
 
 
36
dnl Check for Audacious
 
37
dnl ===================
 
38
 
 
39
PKG_CHECK_MODULES(AUDACIOUS, [audacious >= 3.2],
 
40
    [],
 
41
    [AC_MSG_ERROR([Cannot find Audacious 3.2; have you installed Audacious yet?])]
 
42
)
 
43
 
 
44
CPPFLAGS="$CPPFLAGS $AUDACIOUS_CFLAGS"
 
45
LIBS="$LIBS $AUDACIOUS_LIBS"
 
46
 
 
47
dnl Default Set of Plugins
 
48
dnl ======================
 
49
 
 
50
INPUT_PLUGINS="tonegen metronom vtx"
 
51
OUTPUT_PLUGINS="null"
 
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"
 
57
 
 
58
dnl Check for GTK+
 
59
dnl ==============
 
60
 
 
61
AC_ARG_ENABLE([gtk3],
 
62
 [AS_HELP_STRING([--disable-gtk3], [Use GTK2 even if GTK3 is present])],
 
63
 [use_gtk3=$enableval], [use_gtk3=yes])
 
64
 
 
65
if test $use_gtk3 = yes ; then
 
66
    PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= 3.0.0], [use_gtk3=yes], [use_gtk3=no])
 
67
fi
 
68
 
 
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 ...]))
 
72
fi
 
73
 
 
74
AC_SUBST([GTK_LIBS])
 
75
AC_SUBST([GTK_CFLAGS])
 
76
 
 
77
dnl Check for GIO
 
78
dnl =============
 
79
 
 
80
AC_ARG_ENABLE(gio,
 
81
 AS_HELP_STRING([--enable-gio], [enable GIO support (default=disabled)]),
 
82
 enable_gio=$enableval, enable_gio=no)
 
83
 
 
84
if test "x$enable_gio" = "xyes"; then
 
85
    PKG_CHECK_MODULES(GIO, [gio-2.0 >= 2.0], [enable_gio=yes], [enable_gio=no])
 
86
fi
 
87
 
 
88
if test "x$enable_gio" = "xyes"; then
 
89
    TRANSPORT_PLUGINS="$TRANSPORT_PLUGINS gio"
 
90
fi
 
91
 
 
92
### ---------------------------------------------------------------------------
 
93
dnl Pthread support
 
94
dnl ===============
 
95
PTHREAD_LIBS=
 
96
PTHREAD_CFLAGS=
 
97
 
 
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")]
 
101
  )]
 
102
)
 
103
 
 
104
AC_SUBST([PTHREAD_LIBS])
 
105
AC_SUBST([PTHREAD_CFLAGS])
 
106
 
 
107
dnl IPv6 support
 
108
dnl ========================
 
109
AC_ARG_ENABLE(ipv6,
 
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] )
 
114
fi
 
115
AM_CONDITIONAL(USE_IPV6,test "x$enable_ipv6" = "xyes")
 
116
AC_SUBST(USE_IPV6)
 
117
 
 
118
dnl Console
 
119
dnl =======
 
120
 
 
121
AC_ARG_ENABLE(console,
 
122
 [  --disable-console       disable game music decoder (console)],
 
123
 [enable_console=$enableval], [enable_console="yes"])
 
124
 
 
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)])
 
128
      enable_console=no])
 
129
fi
 
130
 
 
131
if test $enable_console = yes ; then
 
132
    INPUT_PLUGINS="$INPUT_PLUGINS console"
 
133
fi
 
134
 
 
135
dnl XSF
 
136
dnl =======
 
137
 
 
138
AC_ARG_ENABLE(xsf,
 
139
 [  --disable-xsf           disable Nintendo DS audio decoder (xsf)],
 
140
 [enable_xsf=$enableval], [enable_xsf="yes"])
 
141
 
 
142
if test $enable_xsf = yes ; then
 
143
    INPUT_PLUGINS="$INPUT_PLUGINS xsf"
 
144
fi
 
145
 
 
146
 
 
147
dnl PulseAudio
 
148
dnl ==========
 
149
 
 
150
AC_ARG_ENABLE( pulse,
 
151
    [  --disable-pulse         disable PulseAudio output plugin (default=enabled)],
 
152
    [enable_pulse=$enableval],
 
153
    [enable_pulse="yes"]
 
154
)
 
155
 
 
156
if test "x$enable_pulse" = "xyes"; then
 
157
    PKG_CHECK_MODULES(PULSE, [libpulse >= 0.9.5],
 
158
         [have_pulse=yes
 
159
          OUTPUT_PLUGINS="$OUTPUT_PLUGINS pulse_audio"],
 
160
         [have_pulse=no]
 
161
    )
 
162
else
 
163
    AC_MSG_RESULT([*** pulseaudio output plugin disabled per user request ***])
 
164
    have_pulse=no
 
165
fi
 
166
 
 
167
dnl PSF
 
168
dnl ===
 
169
 
 
170
AC_ARG_ENABLE(psf,
 
171
 [  --disable-psf           disable PlayStation (psf/psf2) audio decoder],
 
172
 [enable_psf=$enableval],
 
173
 [enable_psf=yes])
 
174
 
 
175
if test "$enable_psf" = "yes"; then
 
176
    INPUT_PLUGINS="$INPUT_PLUGINS psf"
 
177
fi
 
178
 
 
179
dnl *** MP3
 
180
 
 
181
AC_ARG_ENABLE(mp3,
 
182
 AS_HELP_STRING([--disable-mp3], [disable MP3 plugin (default=enabled)]),
 
183
 [enable_mp3=$enableval], [enable_mp3=yes])
 
184
 
 
185
if test $enable_mp3 = yes ; then
 
186
    PKG_CHECK_MODULES(MPG123, [libmpg123 >= 1.12],
 
187
     [enable_mp3=yes], [enable_mp3=no])
 
188
 
 
189
    if test $enable_mp3 = yes ; then
 
190
        INPUT_PLUGINS="$INPUT_PLUGINS mpg123"
 
191
    else
 
192
        AC_MSG_RESULT([*** libmpg123 not found; MP3 plugin disabled])
 
193
    fi
 
194
fi
 
195
 
 
196
dnl *** Global Hotkey general plugin (only built on X11)
 
197
 
 
198
AC_ARG_ENABLE(hotkey,
 
199
    [  --disable-hotkey        disable global hotkey plugin (default=enabled)],
 
200
    [enable_hotkey=$enableval],
 
201
    [enable_hotkey="yes"]
 
202
)
 
203
 
 
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"])
 
207
    else
 
208
        PKG_CHECK_MODULES(GDKX11, [gdk-x11-2.0], [have_hotkey="yes"], [have_hotkey="no"])
 
209
    fi
 
210
else
 
211
    AC_MSG_RESULT([*** X11 Global Hotkey plugin disabled per user request ***])
 
212
    have_hotkey="no"
 
213
fi
 
214
 
 
215
if test "x$have_hotkey" = "xyes"; then
 
216
    GENERAL_PLUGINS="$GENERAL_PLUGINS hotkey"
 
217
fi
 
218
 
 
219
dnl *** Gnome Shortcuts Plugin
 
220
 
 
221
AC_ARG_ENABLE(gnomeshortcuts,
 
222
    [  --disable-gnomeshortcuts        disable gnome shortcuts (default=enabled)],
 
223
    [enable_gnomeshortcuts=$enableval],
 
224
    [enable_gnomeshortcuts="yes"]
 
225
)
 
226
 
 
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])
 
233
else
 
234
    AC_MSG_RESULT([*** Gnome Shortcuts Plugin disabled per user request ***])
 
235
    have_gnomeshortcuts="no"
 
236
fi
 
237
 
 
238
if test "x$have_gnomeshortcuts" = "xyes"; then
 
239
    GENERAL_PLUGINS="$GENERAL_PLUGINS gnomeshortcuts"
 
240
fi
 
241
 
 
242
dnl Song Change
 
243
dnl ===========
 
244
 
 
245
AC_ARG_ENABLE(songchange,
 
246
 [  --disable-songchange    disable song change plugin],
 
247
 [enable_songchange=$enableval], [enable_songchange="yes"])
 
248
 
 
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])
 
253
fi
 
254
 
 
255
if test $enable_songchange = yes ; then
 
256
    GENERAL_PLUGINS="$GENERAL_PLUGINS song_change"
 
257
fi
 
258
 
 
259
dnl Status Icon
 
260
dnl ===========
 
261
 
 
262
AC_ARG_ENABLE(statusicon,
 
263
 [  --disable-statusicon    disable X11 Status Icon plugin (default=enabled)],
 
264
 [have_statusicon=$enableval], [have_statusicon="yes"])
 
265
 
 
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])
 
270
    fi
 
271
else
 
272
    AC_MSG_RESULT([*** X11 Status Icon plugin disabled per user request ***])
 
273
fi
 
274
 
 
275
if test "x$have_statusicon" = "xyes"; then
 
276
    GENERAL_PLUGINS="$GENERAL_PLUGINS statusicon"
 
277
fi
 
278
 
 
279
dnl *** Audacious OSD plugin (pangocairo-based)
 
280
 
 
281
AC_ARG_ENABLE(aosd,
 
282
    [  --disable-aosd          disable Audacious OSD plugin (default=enabled)],
 
283
    [enable_aosd=$enableval],
 
284
    [enable_aosd="guess"]
 
285
)
 
286
 
 
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"]
 
291
)
 
292
 
 
293
if test "x$enable_aosd" = "xguess"; then
 
294
    have_aosd="yes"
 
295
    PKG_CHECK_MODULES(PANGO,[pango >= 1.14.7],,
 
296
        [have_aosd="no"
 
297
        AC_MSG_RESULT([*** pango >= 1.14.7 is required for Audacious OSD plugin ***])]
 
298
    )
 
299
    PKG_CHECK_MODULES(CAIRO,[cairo >= 1.2.4],,
 
300
        [have_aosd="no"
 
301
        AC_MSG_RESULT([*** cairo >= 1.2.4 is required for Audacious OSD plugin ***])]
 
302
    )
 
303
    PKG_CHECK_MODULES(PANGOCAIRO,[pangocairo >= 1.14.7],,
 
304
        [have_aosd="no"
 
305
        AC_MSG_RESULT([*** pangocairo >= 1.14.7 is required for Audacious OSD plugin ***])]
 
306
    )
 
307
    PKG_CHECK_MODULES(XRENDER, xrender,,
 
308
        [have_aosd="no"
 
309
        AC_MSG_RESULT([*** X Render extension is required for Audacious OSD plugin ***])]
 
310
    )
 
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 ***])]
 
317
        )
 
318
    else
 
319
        AC_MSG_RESULT([*** X Composite support for Audacious OSD plugin disabled per user request ***])
 
320
        have_aosd_xcomp="no"
 
321
    fi
 
322
else
 
323
    if test "x$enable_aosd" = "xyes"; then
 
324
        AC_MSG_RESULT([*** Audacious OSD plugin has been forcefully enabled ***])
 
325
        have_aosd="yes"
 
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 ***])]
 
332
            )
 
333
        else
 
334
            AC_MSG_RESULT([*** X Composite support for Audacious OSD plugin disabled per user request ***])
 
335
            have_aosd_xcomp="no"
 
336
        fi
 
337
    else
 
338
        AC_MSG_RESULT([*** Audacious OSD plugin disabled per user request ***])
 
339
        have_aosd="no"
 
340
    fi
 
341
fi
 
342
 
 
343
if test "x$have_aosd" = "xyes"; then
 
344
    GENERAL_PLUGINS="$GENERAL_PLUGINS aosd"
 
345
fi
 
346
 
 
347
 
 
348
dnl notify: libnotify-based OSD
 
349
dnl ===========================
 
350
 
 
351
AC_ARG_ENABLE(notify,
 
352
 [  --disable-notify        disable notify plugin (default=enabled)],
 
353
 [enable_notify=$enableval], [enable_notify="yes"])
 
354
 
 
355
if test "x$enable_notify" = "xyes"; then
 
356
    PKG_CHECK_MODULES(NOTIFY, [libnotify], [have_notify="yes"], [have_notify="no"])
 
357
else
 
358
    have_notify="no"
 
359
fi
 
360
 
 
361
if test "x$have_notify" = "xyes"; then
 
362
    GENERAL_PLUGINS="$GENERAL_PLUGINS notify"
 
363
fi
 
364
 
 
365
dnl MPRIS 2 (requires GDBus)
 
366
dnl ========================
 
367
 
 
368
AC_ARG_ENABLE(mpris2,
 
369
 AS_HELP_STRING([--disable-mpris2], [disable MPRIS 2 support (default=enabled)]),
 
370
 [enable_mpris2=$enableval], [enable_mpris2=yes])
 
371
 
 
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])
 
375
fi
 
376
 
 
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)
 
381
fi
 
382
 
 
383
dnl *** AdPlug requirement (libbinio)
 
384
 
 
385
AC_ARG_ENABLE(adplug,
 
386
    [  --disable-adplug        disable AdPlug plugin (default=enabled)],
 
387
    [enable_adplug=$enableval],
 
388
    [enable_adplug="yes"]
 
389
)
 
390
 
 
391
if test "x$enable_adplug" = "xyes"; then
 
392
    have_adplug="yes"
 
393
    PKG_CHECK_MODULES(BINIO,[libbinio >= 1.4],,[have_adplug=no])
 
394
else
 
395
    AC_MSG_RESULT([*** AdPlug plugin disabled per user request ***])
 
396
    have_adplug="no"
 
397
fi
 
398
 
 
399
if test "x$have_adplug" = "xyes"; then
 
400
        INPUT_PLUGINS="$INPUT_PLUGINS adplug"
 
401
        AC_SUBST(BINIO_CFLAGS)
 
402
fi
 
403
 
 
404
dnl *** Ogg Vorbis
 
405
 
 
406
AC_ARG_ENABLE(vorbis,
 
407
    [  --disable-vorbis        disable Ogg Vorbis input plugin (default=enabled)],
 
408
    [enable_vorbis=$enableval],
 
409
    [enable_vorbis="yes"]
 
410
)
 
411
 
 
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 ***])
 
416
         have_oggvorbis=no]
 
417
    )
 
418
else
 
419
    AC_MSG_RESULT([*** Ogg Vorbis plugin disabled per user request ***])
 
420
    have_oggvorbis=no
 
421
fi
 
422
 
 
423
if test "x$have_oggvorbis" = "xyes"; then
 
424
        INPUT_PLUGINS="$INPUT_PLUGINS vorbis"
 
425
fi
 
426
 
 
427
dnl *** FLACng
 
428
 
 
429
AC_ARG_ENABLE(flacng,
 
430
    [  --disable-flacng        disable flac input plugin (default=enabled)],
 
431
    [enable_flacng=$enableval],
 
432
    [enable_flacng="yes"]
 
433
)
 
434
 
 
435
if test "x$enable_flacng" = "xyes"; then
 
436
    PKG_CHECK_MODULES(LIBFLAC, [flac >= 1.2.1],
 
437
        [have_flacng=yes],
 
438
        [AC_MSG_WARN([*** Cannot find libFLAC 1.2.1+, FLAC support will not be built ***])
 
439
         have_flacng=no]
 
440
    )
 
441
else
 
442
    AC_MSG_RESULT([*** FLACng plugin disabled per user request ***])
 
443
    have_flacng=no
 
444
fi
 
445
 
 
446
if test "x$have_flacng" = "xyes"; then
 
447
        INPUT_PLUGINS="$INPUT_PLUGINS flacng"
 
448
fi
 
449
 
 
450
dnl *** WavPack 4.31 support
 
451
 
 
452
AC_ARG_ENABLE(wavpack,
 
453
    [  --disable-wavpack       disable WavPack input plugin (default=enabled)],
 
454
    [enable_wavpack=$enableval],
 
455
    [enable_wavpack="yes"]
 
456
)
 
457
 
 
458
if test "x$enable_wavpack" = "xyes"; then
 
459
    PKG_CHECK_MODULES(WAVPACK, [wavpack >= 4.31],
 
460
        [have_wavpack=yes],
 
461
        [AC_MSG_WARN([*** Cannot find WavPack 4.31+, WavPack support will not be built ***])
 
462
         have_wavpack=no]
 
463
    )
 
464
else
 
465
    AC_MSG_RESULT([*** WavPack plugin disabled per user request ***])
 
466
    have_wavpack=no
 
467
fi
 
468
 
 
469
if test "x$have_wavpack" = "xyes"; then
 
470
        INPUT_PLUGINS="$INPUT_PLUGINS wavpack"
 
471
fi
 
472
 
 
473
dnl *** AAC
 
474
 
 
475
AC_ARG_ENABLE(aac,
 
476
    [  --disable-aac           disable aac plugin (default=enabled) ],
 
477
    [enable_aac=$enableval],
 
478
    [enable_aac=yes]
 
479
)
 
480
 
 
481
if test x$enable_aac = xyes; then
 
482
        FAAD_LIBS="-lfaad"
 
483
        FAAD_CFLAGS=
 
484
 
 
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>])
 
488
        fi
 
489
        if test x$enable_aac = xyes; then
 
490
                AC_CHECK_DECL(NeAACDecInit2,,enable_aac=no,[#include <neaacdec.h>])
 
491
        fi
 
492
        if test x$enable_aac = xyes; then
 
493
                AC_CHECK_LIB(faad,NeAACDecInit2,enable_aac=yes,enable_aac=no)
 
494
        fi
 
495
fi
 
496
 
 
497
if test x$enable_aac = xyes; then
 
498
    AC_SUBST(FAAD_CFLAGS)
 
499
    AC_SUBST(FAAD_LIBS)
 
500
    INPUT_PLUGINS="$INPUT_PLUGINS aac"
 
501
fi
 
502
 
 
503
dnl *** sndfile
 
504
 
 
505
AC_ARG_ENABLE(sndfile,
 
506
    [  --disable-sndfile       disable sndfile extensions. [default=enabled] ],
 
507
    [enable_sndfile=$enableval],
 
508
    [enable_sndfile=yes]
 
509
)
 
510
 
 
511
if test "x$enable_sndfile" = "xyes"; then
 
512
    PKG_CHECK_MODULES(SNDFILE, [sndfile >= 0.19],
 
513
        [enable_sndfile=yes],
 
514
        [enable_sndfile=no]
 
515
    )
 
516
else
 
517
    AC_MSG_RESULT([*** libsndfile extensions disabled per user request ***])
 
518
    enable_sndfile=no
 
519
fi
 
520
 
 
521
if test "x$enable_sndfile" = "xyes"; then
 
522
        INPUT_PLUGINS="$INPUT_PLUGINS sndfile"
 
523
fi
 
524
 
 
525
dnl *** modplug
 
526
 
 
527
AC_ARG_ENABLE(modplug,
 
528
    [  --disable-modplug       disable ModPlug plugin (default=enabled)],
 
529
    [enable_modplug=$enableval],
 
530
    [enable_modplug="yes"]
 
531
)
 
532
 
 
533
if test $enable_modplug = yes ; then
 
534
    PKG_CHECK_MODULES(MODPLUG, libmodplug,
 
535
     [INPUT_PLUGINS="$INPUT_PLUGINS modplug"
 
536
      have_modplug=yes],
 
537
     [AC_MSG_WARN([*** Cannot find libmodplug; modplug plugin disabled ***])
 
538
      have_modplug=no])
 
539
fi
 
540
 
 
541
dnl *** FFaudio
 
542
 
 
543
have_ffaudio="no"
 
544
AC_ARG_ENABLE(ffaudio,
 
545
    [  --disable-ffaudio       disable ffaudio plugin (default=enabled)],
 
546
    [enable_ffaudio=$enableval],
 
547
    [enable_ffaudio="yes"]
 
548
)
 
549
 
 
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])
 
554
fi
 
555
 
 
556
if test "x$have_ffaudio" = "xyes"; then
 
557
    INPUT_PLUGINS="$INPUT_PLUGINS ffaudio"
 
558
fi
 
559
 
 
560
dnl *** jack output plugin
 
561
 
 
562
AC_ARG_ENABLE(jack,
 
563
 AS_HELP_STRING([--disable-jack], [disable JACK output plugin (default=enabled)]),
 
564
 [enable_jack=$enableval], [enable_jack=yes])
 
565
 
 
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])
 
571
    ])
 
572
 
 
573
    PKG_CHECK_MODULES([SAMPLERATE], [samplerate],
 
574
     [enable_jack=$enable_jack], [enable_jack=no])
 
575
 
 
576
    if test $enable_jack = yes ; then
 
577
        OUTPUT_PLUGINS="$OUTPUT_PLUGINS jack"
 
578
    else
 
579
        AC_MSG_RESULT([*** JACK or libsamplerate not found; JACK output plugin disabled])
 
580
    fi
 
581
fi
 
582
 
 
583
dnl *** sid
 
584
AC_ARG_ENABLE( sid,
 
585
[  --disable-sid           disable SID input plugin (default=enabled)],,
 
586
                enable_sid="yes")
 
587
 
 
588
if test "x$enable_sid" = "xyes"; then
 
589
        AM_PATH_SIDPLAY(have_sidplay=yes, have_sidplay=no)
 
590
else
 
591
        AC_MSG_RESULT([*** SID plugin disabled per user request ***])
 
592
        have_sidplay=no
 
593
fi
 
594
 
 
595
if test "x$have_sidplay" = "xyes"; then
 
596
        INPUT_PLUGINS="$INPUT_PLUGINS sid"
 
597
fi
 
598
 
 
599
dnl OSS output
 
600
dnl ==========
 
601
 
 
602
AC_ARG_ENABLE(oss,
 
603
 [  --enable-oss            enable OSS3 output plugin],
 
604
 [enable_oss="$enableval"],
 
605
 [enable_oss="no"]
 
606
)
 
607
 
 
608
AC_ARG_ENABLE(oss4,
 
609
 [  --disable-oss4          disable OSS4 output plugin],
 
610
 [enable_oss4="$enableval"],
 
611
 [enable_oss4="yes"]
 
612
)
 
613
 
 
614
have_oss="no"
 
615
have_oss4="no"
 
616
OSS_CFLAGS=""
 
617
 
 
618
if test "$enable_oss" = "yes" || test "$enable_oss4" = "yes" ; then
 
619
    if test -f "/etc/oss.conf"; then
 
620
        . "/etc/oss.conf"
 
621
        OSS_CFLAGS="-I$OSSLIBDIR/include"
 
622
    fi
 
623
 
 
624
    OLD_CPPFLAGS="$CPPFLAGS"
 
625
    CPPFLAGS="$CPPFLAGS $OSS_CFLAGS"
 
626
 
 
627
    AC_CHECK_HEADERS([sys/soundcard.h soundcard.h],
 
628
     [have_oss="yes"], [have_oss="$have_oss"])
 
629
 
 
630
    if test "$enable_oss4" = "yes" && test "$have_oss" = "yes" ; then
 
631
        AC_MSG_CHECKING(for OSS4)
 
632
 
 
633
        AC_EGREP_CPP(yes,
 
634
            [#ifdef HAVE_SYS_SOUNDCARD_H
 
635
             #include <sys/soundcard.h>
 
636
             #else
 
637
             #include <soundcard.h>
 
638
             #endif
 
639
             #if OSS_VERSION >= 0x40000 || SOUND_VERSION >= 0x40000
 
640
                 yes
 
641
             #endif],
 
642
            [have_oss4="yes"],
 
643
            [have_oss4="no"])
 
644
 
 
645
        AC_MSG_RESULT([$have_oss4])
 
646
    fi
 
647
 
 
648
    CPPFLAGS="$OLD_CPPFLAGS"
 
649
fi
 
650
 
 
651
AC_SUBST(OSS_CFLAGS)
 
652
 
 
653
if test "$enable_oss" = "yes" && test "$have_oss" = "no" ; then
 
654
    enable_oss="no"
 
655
fi
 
656
 
 
657
if test "$enable_oss" = "yes"; then
 
658
    OUTPUT_PLUGINS="$OUTPUT_PLUGINS OSS"
 
659
fi
 
660
 
 
661
if test "$enable_oss4" = "yes" && test "$have_oss4" = "no" ; then
 
662
    enable_oss4="no"
 
663
fi
 
664
 
 
665
if test "$enable_oss4" = "yes"; then
 
666
    OUTPUT_PLUGINS="$OUTPUT_PLUGINS oss4"
 
667
fi
 
668
 
 
669
dnl *** ALSA output plugin
 
670
 
 
671
AC_ARG_ENABLE(alsa,
 
672
    [  --disable-alsa          disable ALSA output plugin],
 
673
    [enable_alsa=$enableval],
 
674
    [enable_alsa=yes]
 
675
)
 
676
 
 
677
if test "x$enable_alsa" = "xyes"; then
 
678
    PKG_CHECK_MODULES([ALSA], [alsa >= 1.0.16], [have_alsa=yes], [have_alsa=no])
 
679
else
 
680
    AC_MSG_RESULT([*** ALSA output plugin disabled per user request ***])
 
681
    have_alsa=no
 
682
fi
 
683
 
 
684
if test "x$have_alsa" = "xyes"; then
 
685
        OUTPUT_PLUGINS="$OUTPUT_PLUGINS alsa"
 
686
fi
 
687
 
 
688
dnl SDL Output
 
689
dnl ==========
 
690
 
 
691
AC_ARG_ENABLE(sdlout,
 
692
 [  --disable-sdlout        disable SDL output plugin],
 
693
 [enable_sdlout=$enableval], [enable_sdlout=yes])
 
694
 
 
695
if test $enable_sdlout = yes ; then
 
696
    AM_PATH_SDL(1.2.5, [enable_sdlout=yes], [enable_sdlout=no])
 
697
fi
 
698
 
 
699
if test $enable_sdlout = yes ; then
 
700
        OUTPUT_PLUGINS="$OUTPUT_PLUGINS sdlout"
 
701
fi
 
702
 
 
703
 
 
704
dnl *** amidi-plug (note: to avoid checking twice ALSA, this should appear somewhere after the alsa output plugin check)
 
705
 
 
706
AC_ARG_ENABLE(amidiplug,
 
707
    [  --disable-amidiplug     disable amidi-plug input plugin (default=check) ],
 
708
    [enable_amidiplug=$enableval],
 
709
    [enable_amidiplug=check]
 
710
)
 
711
 
 
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]
 
716
)
 
717
 
 
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]
 
722
)
 
723
 
 
724
if test "x$enable_amidiplug" = "xno"; then
 
725
  AC_MSG_RESULT([*** amidi-plug disabled per user request ***])
 
726
  enable_amidiplug=no
 
727
else
 
728
  if test "x$enable_amidiplug_alsa" != "xauto"; then
 
729
    enable_amidiplug=yes
 
730
  elif test "x$enable_amidiplug_fluidsynth" != "xauto"; then
 
731
    enable_amidiplug=yes
 
732
  fi
 
733
fi
 
734
 
 
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])
 
740
fi
 
741
 
 
742
 
 
743
if test "x$enable_amidiplug" = "xcheck"; then
 
744
  if test "x$alsalib_midi" = "xyes"; then
 
745
    enable_amidiplug=yes
 
746
  else
 
747
    PKG_CHECK_MODULES(FLUIDSYNTH, [fluidsynth >= 1.0.6],
 
748
      [fluidsynth_available=yes],[fluidsynth_available=no])
 
749
    if test "x$fluidsynth_available" = "xyes"; then
 
750
      enable_amidiplug=yes
 
751
    else
 
752
      enable_amidiplug=no
 
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 ***"])
 
754
    fi
 
755
  fi
 
756
fi
 
757
 
 
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
 
768
    else
 
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
 
772
      else
 
773
        enable_amidiplug_alsa=no
 
774
      fi
 
775
    fi
 
776
  fi
 
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])
 
781
    fi
 
782
    if test "x$fluidsynth_available" = "xyes"; then
 
783
      AMIDIPLUG_BACKENDS="$AMIDIPLUG_BACKENDS backend-fluidsynth"
 
784
      enable_amidiplug_fluidsynth=yes
 
785
    else
 
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
 
789
      else
 
790
        enable_amidiplug_fluidsynth=no
 
791
      fi
 
792
    fi
 
793
  fi
 
794
  AC_SUBST(AMIDIPLUG_BACKENDS)
 
795
fi
 
796
 
 
797
dnl Audio CD
 
798
dnl ========
 
799
 
 
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]
 
804
)
 
805
 
 
806
if test "$enable_cdaudio_ng" = "yes"; then
 
807
   PKG_CHECK_MODULES(CDIO, [libcdio >= 0.70],
 
808
   ,
 
809
   [AC_MSG_WARN([*** Cannot find libcdio 0.70 or newer, cdaudio-ng will not be built ***])
 
810
   enable_cdaudio_ng=no]
 
811
)
 
812
fi
 
813
 
 
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`
 
818
   AC_SUBST(CDIO_LIBS)
 
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]
 
822
)
 
823
fi
 
824
 
 
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`
 
831
   AC_SUBST(CDDB_LIBS)
 
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]
 
835
)
 
836
fi
 
837
 
 
838
 
 
839
dnl *** scrobbler ***
 
840
 
 
841
AC_ARG_ENABLE(scrobbler,
 
842
 [  --disable-scrobbler     disable Scrobbler plugin (default=enabled)],
 
843
 [have_scrobbler=$enableval], [have_scrobbler="yes"])
 
844
 
 
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)
 
849
    AC_SUBST(CURL_LIBS)
 
850
fi
 
851
 
 
852
if test "x$have_scrobbler" = "xyes"; then
 
853
        GENERAL_PLUGINS="$GENERAL_PLUGINS scrobbler"
 
854
fi
 
855
 
 
856
dnl *** neon http plugin ***
 
857
 
 
858
AC_ARG_ENABLE(neon,
 
859
[  --disable-neon          disable neon HTTP support (default=enabled)],
 
860
[have_neon=$enableval],
 
861
[have_neon=yes])
 
862
 
 
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])
 
866
else
 
867
    have_neon="no"
 
868
fi
 
869
AC_SUBST([NEON_LIBS])
 
870
AC_SUBST([NEON_CFLAGS])
 
871
 
 
872
dnl MMS
 
873
dnl ===
 
874
 
 
875
AC_ARG_ENABLE(mms,
 
876
[  --disable-mms           disable mms support. (default=enabled)],
 
877
[have_mms=$enableval],
 
878
[have_mms=yes])
 
879
 
 
880
if test "x$have_mms" = "xyes"; then
 
881
    have_mms=yes
 
882
    PKG_CHECK_MODULES(MMS, [libmms >= 0.3], [TRANSPORT_PLUGINS="$TRANSPORT_PLUGINS mms" ], [have_mms="no"])
 
883
else
 
884
    have_mms=no
 
885
    AC_MSG_RESULT([*** mms plugin disabled by request ***])
 
886
fi
 
887
 
 
888
dnl SMB
 
889
dnl ===
 
890
 
 
891
AC_ARG_ENABLE(smb,
 
892
 AS_HELP_STRING([--enable-smb], [enable SMB transport (default=disabled)]),
 
893
 [enable_smb="$enableval"], [enable_smb="no"])
 
894
 
 
895
if test $enable_smb = yes ; then
 
896
    AC_CHECK_HEADERS([libsmbclient.h], [enable_smb=yes], [enable_smb=no])
 
897
 
 
898
    if test $enable_smb = yes ; then
 
899
        TRANSPORT_PLUGINS="$TRANSPORT_PLUGINS smb"
 
900
    else
 
901
        AC_MSG_RESULT([*** libsmbclient not found; SMB client disabled])
 
902
    fi
 
903
fi
 
904
 
 
905
dnl *** MTP Upload
 
906
 
 
907
AC_ARG_ENABLE(mtp_up,
 
908
[  --disable-mtp_up           disable mtp upload support. (default=enabled)],
 
909
[have_mtp_up=$enableval],
 
910
[have_mtp_up=yes])
 
911
 
 
912
if test "x$have_mtp_up" = "xyes"; then
 
913
    have_mtp_up=yes
 
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`
 
917
else
 
918
    have_mtp_up=no
 
919
    AC_MSG_RESULT([*** mtp upload plugin disabled by request ***])
 
920
fi
 
921
AC_SUBST(MTP_LIBS)
 
922
AC_SUBST(MTP_CFLAGS)
 
923
 
 
924
dnl XSPF
 
925
dnl ----
 
926
 
 
927
PKG_CHECK_MODULES(XML, [libxml-2.0], [have_xml=yes], [have_xml=no])
 
928
 
 
929
if test $have_xml = "no" ; then
 
930
    AC_MSG_ERROR([Please install libxml-2.0.])
 
931
fi
 
932
 
 
933
CONTAINER_PLUGINS="$CONTAINER_PLUGINS xspf"
 
934
 
 
935
 
 
936
dnl CUE
 
937
dnl ---
 
938
 
 
939
AC_ARG_ENABLE(cue,
 
940
[  --disable-cue           disable cue support. (default=enabled)],
 
941
[have_cue=$enableval],
 
942
[have_cue=yes])
 
943
 
 
944
if test "x$have_cue" = "xyes"; then
 
945
    have_cue=yes
 
946
    PKG_CHECK_MODULES(CUE, [libcue], [CONTAINER_PLUGINS="$CONTAINER_PLUGINS cue" ], [have_cue="no"])
 
947
else
 
948
    have_cue=no
 
949
    AC_MSG_RESULT([*** cue plugin disabled by request ***])
 
950
fi
 
951
 
 
952
dnl FileWriter
 
953
dnl ==========
 
954
 
 
955
AC_ARG_ENABLE(filewriter,
 
956
    [  --disable-filewriter    disable FileWriter output plugin (default=enabled) ],
 
957
    [enable_filewriter=$enableval],
 
958
    [enable_filewriter=yes]
 
959
)
 
960
 
 
961
if test "x$enable_filewriter" = "xyes"; then
 
962
        OUTPUT_PLUGINS="$OUTPUT_PLUGINS filewriter"
 
963
fi
 
964
 
 
965
 
 
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]
 
969
)
 
970
 
 
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"
 
976
   fi
 
977
fi
 
978
 
 
979
 
 
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]
 
983
)
 
984
 
 
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`"
 
992
   fi
 
993
fi
 
994
 
 
995
 
 
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]
 
999
)
 
1000
 
 
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]
 
1004
   )
 
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`"
 
1009
   fi
 
1010
fi
 
1011
 
 
1012
if test "x$enable_filewriter" != "xyes"; then
 
1013
   have_lame=no
 
1014
   have_vorbisenc=no
 
1015
   have_writer_flac=no
 
1016
   FILEWRITER_LIBS=""
 
1017
fi
 
1018
AC_SUBST(FILEWRITER_CFLAGS)
 
1019
AC_SUBST(FILEWRITER_LIBS)
 
1020
 
 
1021
dnl *** BS2B effect plugin
 
1022
 
 
1023
AC_ARG_ENABLE(bs2b,
 
1024
    [  --disable-bs2b          disable BS2B effect plugin (default=enabled)],
 
1025
    [enable_bs2b=$enableval],
 
1026
    [enable_bs2b=yes]
 
1027
)
 
1028
 
 
1029
if test "x$enable_bs2b" = "xyes"; then
 
1030
    PKG_CHECK_MODULES([BS2B], [libbs2b >= 3.0.0], [have_bs2b=yes], [have_bs2b=no])
 
1031
else
 
1032
    AC_MSG_RESULT([*** BS2B effect plugin disabled per user request ***])
 
1033
    have_bs2b=no
 
1034
fi
 
1035
 
 
1036
if test "x$have_bs2b" = "xyes"; then
 
1037
        EFFECT_PLUGINS="$EFFECT_PLUGINS bs2b"
 
1038
fi
 
1039
 
 
1040
 
 
1041
dnl *** Resample effect plugin
 
1042
 
 
1043
AC_ARG_ENABLE(resample,
 
1044
 [  --disable-resample      disable resample effect plugin (default=enabled)],
 
1045
 [enable_resample=$enableval], [enable_resample=yes]
 
1046
)
 
1047
 
 
1048
if test "x$enable_resample" = "xyes"; then
 
1049
    PKG_CHECK_MODULES([SAMPLERATE], [samplerate],
 
1050
     [enable_resample=yes], [enable_resample=no])
 
1051
fi
 
1052
 
 
1053
if test "x$enable_resample" = "xyes"; then
 
1054
        EFFECT_PLUGINS="$EFFECT_PLUGINS resample"
 
1055
fi
 
1056
 
 
1057
dnl GTK Interface
 
1058
dnl =============
 
1059
 
 
1060
AC_ARG_ENABLE(gtkui,
 
1061
 [  --disable-gtkui         disable GTK interface (gtkui)],
 
1062
 [enable_gtkui=$enableval], [enable_gtkui="yes"])
 
1063
 
 
1064
if test $enable_gtkui = yes ; then
 
1065
    GENERAL_PLUGINS="$GENERAL_PLUGINS gtkui"
 
1066
fi
 
1067
 
 
1068
dnl Winamp Classic Interface
 
1069
dnl =============
 
1070
 
 
1071
AC_ARG_ENABLE(skins,
 
1072
 [  --disable-skins         disable Winamp Classic interface (skins)],
 
1073
 [enable_skins=$enableval], [enable_skins="yes"])
 
1074
 
 
1075
if test $enable_skins = yes ; then
 
1076
    GENERAL_PLUGINS="$GENERAL_PLUGINS skins"
 
1077
fi
 
1078
 
 
1079
dnl LyricWiki
 
1080
dnl =========
 
1081
 
 
1082
AC_ARG_ENABLE(lyricwiki,
 
1083
 [  --disable-lyricwiki     disable LyricWiki plugin (default=enabled)],
 
1084
 [enable_lyricwiki=$enableval], [enable_lyricwiki=yes])
 
1085
 
 
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])
 
1089
fi
 
1090
 
 
1091
if test "x$enable_lyricwiki" = "xyes"; then
 
1092
    GENERAL_PLUGINS="$GENERAL_PLUGINS lyricwiki"
 
1093
fi
 
1094
 
 
1095
dnl *** End of all plugin checks ***
 
1096
 
 
1097
plugindir=`pkg-config audacious --variable=plugin_dir`
 
1098
AC_SUBST(plugindir)
 
1099
 
 
1100
dnl XXX
 
1101
 
 
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
 
1109
 
 
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)
 
1118
 
 
1119
dnl XXX Work around some autoconf bugs.
 
1120
if test "x$prefix" = "xNONE"; then
 
1121
        prefix="${ac_default_prefix}"
 
1122
fi
 
1123
 
 
1124
if test -z "$datadir"; then
 
1125
        datadir="${prefix}/share"
 
1126
fi
 
1127
 
 
1128
localedir="$datadir/locale"
 
1129
AC_SUBST(localedir)
 
1130
 
 
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)
 
1139
 
 
1140
AC_CONFIG_FILES([
 
1141
        buildsys.mk
 
1142
        extra.mk
 
1143
])
 
1144
 
 
1145
BUILDSYS_TOUCH_DEPS
 
1146
AC_OUTPUT
 
1147
 
 
1148
echo
 
1149
echo "Configuration:"
 
1150
echo
 
1151
echo "  Install path:                           ${audacious_plugin_root}"
 
1152
echo
 
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"
 
1166
echo
 
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"
 
1191
echo
 
1192
echo "  General"
 
1193
echo "  -------"
 
1194
echo "  Alarm:                                  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"
 
1208
echo
 
1209
echo "  Effect"
 
1210
echo "  ------"
 
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"
 
1221
echo
 
1222
echo "  Visualization"
 
1223
echo "  -------------"
 
1224
echo "  Blur Scope:                             yes"
 
1225
echo "  Cairo Spectrum Analyzer:                yes"
 
1226
echo
 
1227
echo "  Transport"
 
1228
echo "  ---------"
 
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"
 
1233
echo
 
1234
echo "  Container"
 
1235
echo "  ---------"
 
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"
 
1241
echo
 
1242
echo "  Interfaces"
 
1243
echo "  ----------"
 
1244
echo "  GTK (gtkui):                            $enable_gtkui"
 
1245
echo "  Winamp Classic (skins):                 $enable_skins"
 
1246
echo