Mercurial > audlegacy
annotate configure.ac @ 576:c5ce7081a802 trunk
[svn] Update vorbis.
author | nenolod |
---|---|
date | Thu, 02 Feb 2006 15:49:25 -0800 |
parents | 5cdadcf74ec3 |
children | fb9825a943e3 |
rev | line source |
---|---|
0 | 1 dnl Process this file with autoconf to produce a configure script. |
2 | |
393
7189b4e61548
[svn] Version bump to 0.2 -- we've been confusing the hell out of people.
nenolod
parents:
390
diff
changeset
|
3 AC_INIT(audacious, 0.2) |
0 | 4 AC_PREREQ(2.5) |
5 | |
6 AC_CANONICAL_HOST | |
7 AC_CANONICAL_TARGET | |
8 | |
9 AM_INIT_AUTOMAKE | |
10 | |
11 AC_CONFIG_HEADERS([config.h]) | |
12 | |
13 dnl libbeep | |
14 LIBBEEP_MAJOR_VERSION=2 | |
15 LIBBEEP_MINOR_VERSION=0 | |
16 LIBBEEP_MICRO_VERSION=0 | |
17 LIBBEEP_VERSION=$LIBBEEP_MAJOR_VERSION.$LIBBEEP_MINOR_VERSION.$LIBBEEP_MICRO_VERSION | |
18 AC_SUBST(LIBBEEP_MAJOR_VERSION) | |
19 AC_SUBST(LIBBEEP_MINOR_VERSION) | |
20 AC_SUBST(LIBBEEP_MICRO_VERSION) | |
21 | |
38 | 22 dnl XXX kludge for FreeBSD |
23 if test -d "/usr/X11R6/include"; then | |
24 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" | |
25 fi | |
0 | 26 |
27 dnl GNU gettext | |
28 | |
29 AM_GNU_GETTEXT | |
30 AM_GNU_GETTEXT_VERSION([0.12.1]) | |
31 | |
32 | |
33 dnl Check for C compiler | |
34 | |
35 AC_LANG([C]) | |
2 | 36 AC_LANG([C++]) |
0 | 37 AC_ISC_POSIX |
38 AC_C_BIGENDIAN | |
39 | |
40 | |
41 dnl Check for assembler | |
42 | |
43 AM_PROG_AS | |
44 | |
45 | |
46 dnl Checks for various programs | |
47 | |
48 AC_PROG_INSTALL | |
49 AC_PROG_LN_S | |
50 AC_PROG_MAKE_SET | |
51 | |
52 dnl Libtool | |
53 dnl FIXME: find a way to allow building static libbeep, | |
54 dnl without building static plugins | |
55 | |
56 dnl Next four lines is a hack to prevent libtool checking for C++/F77 | |
57 m4_undefine([AC_PROG_F77]) | |
58 m4_defun([AC_PROG_F77],[]) | |
59 | |
60 AC_DISABLE_STATIC | |
61 AC_ENABLE_SHARED | |
62 AC_PROG_LIBTOOL | |
63 | |
64 dnl Path settings | |
65 | |
66 AC_PATH_PROG(BEEP_PATH, audacious, no) | |
67 | |
68 AC_ARG_WITH(rc-path, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
69 [ --rc-path=path Resource and configuration path for audacious relative to $HOME.], |
0 | 70 [rc_path=$withval], |
71 [rc_path=.audacious] | |
72 ) | |
73 AC_DEFINE_UNQUOTED(BMP_RCPATH, "$rc_path", | |
535 | 74 [Resource and configuration path for audacious relative to $HOME.] |
0 | 75 ) |
76 AC_SUBST(BMP_RCPATH) | |
77 | |
78 AC_ARG_ENABLE(one-plugin-dir, | |
79 [ --enable-one-plugin-dir Use a single plugin dir [default=no]], | |
80 [enable_one_plugin_dir=$enableval], | |
81 [enable_one_plugin_dir=no] | |
82 ) | |
83 | |
84 AC_ARG_ENABLE(user-plugin-dir, | |
85 [ --disable-user-plugin-dir disable per-user plugin dir], | |
86 [enable_user_plugin_dir=$enableval], | |
87 [enable_user_plugin_dir=yes] | |
88 ) | |
89 | |
90 AC_ARG_WITH(dev-dsp, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
91 [ --with-dev-dsp=path Path to OSS DSP data pipe, default is /dev/dsp.], |
0 | 92 [dev_dsp=$withval], |
93 [dev_dsp=/dev/dsp] | |
94 ) | |
95 AC_DEFINE_UNQUOTED(DEV_DSP, "$dev_dsp", | |
96 [Path to OSS DSP, really just a data pipe, default is /dev/dsp.] | |
97 ) | |
98 | |
99 AC_ARG_WITH(dev-mixer, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
100 [ --with-dev-mixer=path Path to OSS sound mixer, default is /dev/mixer.], |
0 | 101 [dev_mixer=$withval], |
102 [dev_mixer=/dev/mixer] | |
103 ) | |
104 AC_DEFINE_UNQUOTED(DEV_MIXER, "$dev_mixer", | |
105 [Path to OSS mixer, default is /dev/mixer.] | |
106 ) | |
107 | |
108 AC_ARG_WITH(cdda-device, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
109 [ --with-cdda-device=path Path to default cdaudio device.], |
0 | 110 [AC_DEFINE_UNQUOTED(CDDA_DEVICE, "$withval", |
111 [Path to default cdaudio device.] | |
112 ) | |
113 ] | |
114 ) | |
115 | |
116 AC_ARG_WITH(cdda-dir, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
117 [ --with-cdda-dir=path Path to default cdaudio directory.], |
0 | 118 [AC_DEFINE_UNQUOTED(CDDA_DIRECTORY, "$withval", |
119 [Path to default cdaudio directory.] | |
120 ) | |
121 ] | |
122 ) | |
123 | |
124 | |
125 dnl If {type}_PLUGINS is defined, it should be a comma or space separated | |
126 dnl list of plugins that should be built, e.g., | |
127 dnl INPUT_PLUGINS="mpg123,cdaudio cdin". If variable is not defined, all | |
128 dnl buildable plugins are compiled. This stuff makes life easier for | |
129 dnl automated builds that want to disable certain plugins. | |
130 | |
131 for class in EFFECT GENERAL INPUT OUTPUT VISUALIZATION; do | |
132 value=`eval echo "\\$${class}_PLUGINS"` | |
133 if test "${value}" = ""; then | |
134 eval ${class}_PLUGINS="\$\(ALL_PLUGINS\)" | |
135 else | |
136 value=`echo ${value} | sed -e 's/,/ /g'` | |
137 eval ${class}_PLUGINS="\${value}" | |
138 fi | |
139 done | |
140 | |
141 AC_SUBST(EFFECT_PLUGINS) | |
142 AC_SUBST(GENERAL_PLUGINS) | |
143 AC_SUBST(INPUT_PLUGINS) | |
144 AC_SUBST(OUTPUT_PLUGINS) | |
145 AC_SUBST(VISUALIZATION_PLUGINS) | |
146 | |
147 | |
148 dnl Option to change equalizer to the old XMMS one which only works with the mpg123 | |
149 dnl plugin (or rather, only implemented within the plugin) | |
150 | |
151 AC_ARG_WITH(xmms-eq, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
152 [ --with-xmms-eq Use old XMMS equalization code.], |
0 | 153 [use_xmms_eq=$withval], |
154 [use_xmms_eq=no] | |
155 ) | |
156 | |
157 if test "$use_xmms_eq" = "yes"; then | |
158 AC_DEFINE(XMMS_EQ, , [Define if building with old XMMS equalization code.]) | |
159 fi | |
160 | |
161 dnl Check for GTK/GLib/GThread/Pango | |
162 | |
535 | 163 PKG_CHECK_MODULES(GTK, [glib-2.0 >= 2.6.0 gtk+-2.0 >= 2.6.0 gthread-2.0 pango], |
164 [ADD_PC_REQUIRES([glib-2.0 >= 2.6.0, gtk+-2.0 >= 2.6.0])], | |
0 | 165 [AC_MSG_ERROR([Cannot find glib2/gtk2/pango])] |
166 ) | |
167 | |
168 dnl Check for libglade | |
169 | |
170 PKG_CHECK_MODULES(LIBGLADE, [libglade-2.0 >= 2.3.1], | |
171 [], | |
172 [AC_MSG_ERROR([Cannot find libglade])] | |
173 ) | |
174 | |
175 # Check if socklen_t is defined | |
176 | |
177 AC_CACHE_CHECK(for socklen_t, beep_cv_type_socklen_t, | |
178 [AC_TRY_COMPILE( | |
179 [#include <sys/types.h> | |
180 #include <sys/socket.h>], | |
181 [socklen_t s;], | |
182 [beep_cv_type_socklen_t=yes], | |
183 [beep_cv_type_socklen_t=no] | |
184 ) | |
185 ] | |
186 ) | |
187 | |
188 if test "$beep_cv_type_socklen_t" = "no"; then | |
189 AC_DEFINE(socklen_t, int, [Define to int if the socklen_t type is missing]) | |
190 fi | |
191 | |
192 | |
193 dnl GConf support | |
194 | |
195 AC_ARG_ENABLE( gconf, | |
196 [ --enable-gconf enable GConf support (default=disabled)], | |
197 [enable_gconf=$enableval], | |
198 [enable_gconf="no"] | |
199 ) | |
200 | |
201 if test "$enable_gconf" = "yes"; then | |
202 PKG_CHECK_MODULES(GCONF, [gconf-2.0 >= 2.6.0], | |
203 [ | |
204 AC_DEFINE(HAVE_GCONF, , [Define if building with GConf support]) | |
205 ADD_PC_REQUIRES([gconf-2.0 >= 2.6.0]) | |
206 ], | |
207 [AC_MSG_ERROR([Cannot find GConf])] | |
208 ) | |
209 fi | |
210 | |
211 AM_CONDITIONAL(HAVE_GCONF, test "$enable_gconf" = "yes") | |
212 | |
213 | |
214 dnl GnomeVFS support | |
215 | |
216 AC_ARG_ENABLE( gnome-vfs, | |
217 [ --enable-gnome-vfs enable GnomeVFS support (default=disabled)], | |
218 [enable_gnomevfs=$enableval], | |
219 [enable_gnomevfs="no"] | |
220 ) | |
221 | |
222 if test "$enable_gnomevfs" = "yes"; then | |
223 PKG_CHECK_MODULES(GNOMEVFS, [gnome-vfs-2.0 >= 2.6.0], | |
224 [ | |
225 AC_DEFINE(HAVE_GNOME_VFS, , [Define if building with GnomeVFS support]) | |
226 ADD_PC_REQUIRES([gnome-vfs-2.0 >= 2.6.0]) | |
227 ], | |
228 [AC_MSG_ERROR([Cannot find GnomeVFS])] | |
229 ) | |
230 fi | |
231 | |
232 AM_CONDITIONAL(HAVE_GNOME_VFS, test "$enable_gnomevfs" = "yes") | |
233 | |
234 | |
235 dnl Check for esound | |
236 | |
237 AC_ARG_ENABLE( esd, | |
238 [ --disable-esd disable esound output plugin [default=enabled]], | |
239 [enable_esd=$enableval], | |
240 [enable_esd="yes"] | |
241 ) | |
242 | |
243 if test "$enable_esd" = "yes"; then | |
244 PKG_CHECK_MODULES(ESD, [esound >= 0.2], | |
245 [have_esd=yes], | |
246 [have_esd=no] | |
247 ) | |
248 else | |
249 AC_MSG_RESULT([*** esound plugin disabled per user request ***]) | |
250 have_esd=no | |
251 fi | |
252 | |
253 AM_CONDITIONAL(HAVE_ESD, test "$have_esd" = "yes") | |
254 | |
255 | |
256 dnl *** MP3 | |
257 | |
258 AC_ARG_ENABLE(mp3, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
259 [ --disable-mp3 disable mp3 plugin. (default=enabled) ], |
0 | 260 [enable_mp3=$enableval], |
261 [enable_mp3=yes] | |
262 ) | |
263 | |
264 AM_CONDITIONAL(ENABLE_MPG123, test "$enable_mp3" = "yes") | |
265 | |
266 dnl *** id3lib | |
267 dnl only makes sence if mp3's enabled | |
268 if test "x$enable_mp3" = "xyes" ; then | |
269 | |
270 ID3LIBS="" | |
271 have_id3lib="no" | |
272 | |
273 dnl here we assume that if libz isn't installed but id3lib is | |
274 dnl it's compiled without compression support | |
275 AC_CHECK_HEADERS([id3.h],[ | |
276 AC_CHECK_LIB([z],[compress],[ZLIB='-lz'],[ZLIB='']) | |
277 AC_CHECK_LIB([id3],[ID3Tag_New], | |
278 [have_id3lib=yes | |
279 AC_DEFINE(HAVE_ID3LIB,,[Define when using id3lib]) | |
280 ID3LIBS="-lstdc++ $ZLIB -lid3"],,[-lstdc++ $ZLIB])]) | |
281 | |
282 AC_SUBST(ID3LIBS) | |
283 | |
284 fi dnl $enable_mp3 = yes | |
285 | |
157 | 286 dnl *** LIRC client libraries |
287 | |
288 AC_ARG_ENABLE(lirc, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
289 [ --disable-lirc disable LIRC plugin (default=enabled)], |
157 | 290 [enable_lirc=$enableval], |
291 [enable_lirc="yes"] | |
292 ) | |
293 | |
294 if test "$enable_lirc" = "yes"; then | |
295 AC_CHECK_LIB([lirc_client],[lirc_init],[have_lirc=yes],[have_lirc=no]) | |
296 else | |
297 AC_MSG_RESULT([*** LIRC plugin disabled per user request ***]) | |
298 have_lirc="no" | |
299 fi | |
163 | 300 AM_CONDITIONAL([HAVE_LIRC], test "$have_lirc" = "yes") |
157 | 301 |
386 | 302 dnl *** AdPlug requirement (libbinio) |
359 | 303 |
304 AC_ARG_ENABLE(adplug, | |
305 [ --disable-adplug disable AdPlug plugin (default=enabled)], | |
306 [enable_adplug=$enableval], | |
307 [enable_adplug="yes"] | |
308 ) | |
309 | |
386 | 310 if test "$enable_adplug" = "yes"; then |
406
5928c035fa4e
[svn] Use the pkg-config database to link with libbinio in a portable way. Requires libbinio 1.4 (or higher).
chainsaw
parents:
393
diff
changeset
|
311 have_adplug="yes" |
5928c035fa4e
[svn] Use the pkg-config database to link with libbinio in a portable way. Requires libbinio 1.4 (or higher).
chainsaw
parents:
393
diff
changeset
|
312 PKG_CHECK_MODULES(BINIO,[libbinio >= 1.4],,[have_adplug=no]) |
359 | 313 else |
314 AC_MSG_RESULT([*** AdPlug plugin disabled per user request ***]) | |
315 have_adplug="no" | |
316 fi | |
390 | 317 AM_CONDITIONAL([HAVE_ADPLUG], test "$have_adplug" = "yes") |
359 | 318 |
0 | 319 dnl *** Ogg Vorbis |
320 | |
321 AC_ARG_ENABLE(vorbis, | |
322 [ --disable-vorbis disable Ogg Vorbis input plugin (default=enabled)], | |
323 [enable_vorbis=$enableval], | |
324 [enable_vorbis="yes"] | |
325 ) | |
326 | |
327 if test "$enable_vorbis" = "yes"; then | |
328 PKG_CHECK_MODULES(OGG_VORBIS, [ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0], | |
329 [have_oggvorbis=yes], | |
330 [AC_MSG_ERROR([Cannot find libogg/libvorbis]) | |
331 have_oggvorbis=no] | |
332 ) | |
333 else | |
334 AC_MSG_RESULT([*** Ogg Vorbis plugin disabled per user request ***]) | |
335 have_oggvorbis=no | |
336 fi | |
337 | |
338 AM_CONDITIONAL(HAVE_OGGVORBIS, [test "$have_oggvorbis" = "yes"]) | |
339 | |
2 | 340 dnl *** AAC |
341 | |
342 AC_ARG_ENABLE(aac, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
343 [ --disable-aac disable aac plugin (default=enabled) ], |
2 | 344 [enable_aac=$enableval], |
345 [enable_aac=yes] | |
346 ) | |
347 | |
348 AM_CONDITIONAL(ENABLE_AAC, test "$enable_aac" = "yes") | |
0 | 349 |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
350 |
165 | 351 dnl *** sndfile |
352 | |
353 AC_ARG_ENABLE(sndfile, | |
354 [ --disable-sndfile disable sndfile extensions. [default=enabled] ], | |
355 [enable_sndfile=$enableval], | |
356 [enable_sndfile=yes] | |
357 ) | |
358 | |
359 if test "$enable_sndfile" = "yes"; then | |
360 PKG_CHECK_MODULES(SNDFILE, [sndfile >= 0.19], | |
361 [enable_sndfile=yes], | |
362 [enable_sndfile=no] | |
363 ) | |
364 else | |
365 AC_MSG_RESULT([*** libsndfile extensions disabled per user request ***]) | |
366 enable_sndfile=no | |
367 fi | |
368 | |
369 AM_CONDITIONAL([HAVE_LIBSNDFILE], test "$enable_sndfile" = "yes") | |
370 | |
278
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
371 dnl *** modplug |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
372 |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
373 AC_ARG_ENABLE(modplug, |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
374 [ --disable-modplug disable ModPlug plugin (default=enabled)], |
278
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
375 [enable_modplug=$enableval], |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
376 [enable_modplug="yes"] |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
377 ) |
32 | 378 |
278
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
379 if test "$enable_modplug" = "yes"; then |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
380 AC_CHECK_LIB([modplug],[XMLinearTable],[have_modplug=yes],[have_modplug=no]) |
32 | 381 else |
278
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
382 AC_MSG_RESULT([*** ModPlug plugin disabled per user request ***]) |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
383 have_modplug="no" |
32 | 384 fi |
278
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
385 |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
386 AM_CONDITIONAL([HAVE_MODPLUG], test "$have_modplug" = "yes") |
32 | 387 |
50 | 388 dnl *** flac |
389 AC_ARG_ENABLE( flc, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
390 [ --disable-flac disable flac input plugin (default=enabled)],, |
50 | 391 enable_flac="yes") |
392 | |
393 if test "x$enable_flac" = xyes; then | |
394 AM_PATH_LIBFLAC(have_flac=yes, have_flac=no) | |
395 else | |
396 AC_MSG_RESULT([*** flac plugin disabled per user request ***]) | |
397 have_flac=no | |
398 fi | |
399 AM_CONDITIONAL(HAVE_FLAC,test "x$have_flac" = xyes) | |
32 | 400 |
260
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
401 dnl *** WMA |
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
402 |
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
403 AC_ARG_ENABLE(wma, |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
404 [ --disable-wma disable wma plugin. (default=enabled)], |
260
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
405 [enable_wma=$enableval], |
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
406 [enable_wma=yes] |
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
407 ) |
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
408 |
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
409 AM_CONDITIONAL(ENABLE_WMA, test "$enable_wma" = "yes") |
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
410 |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
411 |
263 | 412 dnl *** Crossfader |
413 | |
414 AC_ARG_ENABLE(crossfade, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
415 [ --disable-crossfade disable crossfading plugin. (default=enabled)], |
263 | 416 [enable_crossfade=$enableval], |
417 [enable_crossfade=yes] | |
418 ) | |
419 | |
420 if test "$enable_crossfade" = "yes"; then | |
421 AC_CHECK_LIB([samplerate],[src_new],[have_libsamplerate=yes],[have_libsamplerate=no]) | |
422 fi | |
423 | |
424 AM_CONDITIONAL(ENABLE_CROSSFADE, test "$enable_crossfade" = "yes") | |
425 AM_CONDITIONAL(HAVE_LIBSAMPLERATE, test "$have_libsamplerate" = "yes") | |
426 | |
325
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
427 dnl *** jack output plugin |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
428 AC_ARG_ENABLE( jack, |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
429 [ --disable-jack disable jack output plugin (default=enabled)],, |
325
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
430 enable_jack="yes") |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
431 |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
432 if test "x$enable_jack" = xyes; then |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
433 AM_PATH_JACK(have_jack=yes, have_jack=no) |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
434 else |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
435 AC_MSG_RESULT([*** jack plugin disabled per user request ***]) |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
436 have_jack=no |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
437 fi |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
438 AM_CONDITIONAL(HAVE_JACK,test "x$have_jack" = xyes) |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
439 |
269
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
440 dnl *** sid |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
441 AC_ARG_ENABLE( sid, |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
442 [ --disable-sid disable sid input plugin (default=enabled)],, |
269
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
443 enable_sid="yes") |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
444 |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
445 if test "x$enable_sid" = xyes; then |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
446 AM_PATH_SIDPLAY(have_sidplay=yes, have_sidplay=no) |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
447 else |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
448 AC_MSG_RESULT([*** sid plugin disabled per user request ***]) |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
449 have_sidplay=no |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
450 fi |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
451 AM_CONDITIONAL(HAVE_SIDPLAY,test "x$have_sidplay" = xyes) |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
452 |
293
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
453 dnl *** Musepack |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
454 |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
455 AC_ARG_ENABLE(musepack, |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
456 [ --disable-musepack disable musepack input plugin (default=enabled)], |
293
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
457 [enable_musepack=$enableval], |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
458 [enable_musepack="yes"] |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
459 ) |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
460 |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
461 if test "$enable_musepack" = "yes"; then |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
462 AC_CHECK_HEADERS(mpcdec/config_types.h,, |
319
1e642d74d68c
[svn] Do not abort if libmpc is not found, just disable musepack plugin.
chainsaw
parents:
293
diff
changeset
|
463 enable_musepack=no |
293
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
464 ) |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
465 |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
466 AC_PATH_PROG(TAGLIB_CONFIG, taglib-config, [no], [$PATH:$prefix/bin]) |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
467 if test "x$TAGLIB_CONFIG" = "xno" ; then |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
468 enable_musepack=no |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
469 else |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
470 TAGLIB_CFLAGS=[`$TAGLIB_CONFIG --cflags`] |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
471 TAGLIB_LIBS=[`$TAGLIB_CONFIG --libs`] |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
472 fi |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
473 AC_SUBST(TAGLIB_CFLAGS) |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
474 AC_SUBST(TAGLIB_LIBS) |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
475 else |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
476 AC_MSG_RESULT([*** Musepack plugin disabled per user request ***]) |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
477 enable_musepack=no |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
478 fi |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
479 |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
480 AM_CONDITIONAL(ENABLE_MUSEPACK, [test "$enable_musepack" = "yes"]) |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
481 |
0 | 482 dnl *** OSS output |
483 | |
484 AC_ARG_ENABLE(oss, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
485 [ --disable-oss disable the OSS output plugin (default=enabled)], |
0 | 486 [have_oss=$enableval], |
487 [have_oss=yes] | |
488 ) | |
489 | |
490 if test "$have_oss" = "yes"; then | |
491 AC_MSG_CHECKING(for OSS include dir) | |
492 OSS_CFLAGS="" | |
493 if test -f "/etc/oss.conf" ; then | |
494 for i in `cat /etc/oss.conf`; do | |
495 t=`echo $i | sed -e 's/OSSLIBDIR=//'` | |
496 if test "$i" != "$t" ; then | |
497 if test -f "$t/include/sys/soundcard.h" ; then | |
498 OSS_CFLAGS="-I$t/include" | |
499 fi | |
500 fi | |
501 done | |
502 fi | |
503 if test -n "$OSS_CFLAGS" ; then | |
504 AC_MSG_RESULT([$OSS_CFLAGS]) | |
505 else | |
506 AC_MSG_RESULT([not found]) | |
507 fi | |
508 CFLAGS_save=$CFLAGS | |
509 CFLAGS="$CFLAGS $OSS_CFLAGS" | |
510 AC_CHECK_HEADERS(sys/soundcard.h) | |
511 AC_CHECK_HEADERS(machine/soundcard.h) | |
512 CFLAGS=$CFLAGS_save | |
513 | |
514 if test "${ac_cv_header_sys_soundcard_h}" = "yes" || test "${ac_cv_header_machine_soundcard_h}" = "yes"; then | |
515 have_oss=yes | |
516 fi | |
517 fi | |
518 | |
519 if test "$have_oss" = "yes"; then | |
520 AC_DEFINE(HAVE_OSS, 1, [Define if the OSS output plugin should be built]) | |
521 else | |
522 have_oss=no | |
523 fi | |
524 | |
525 AM_CONDITIONAL(HAVE_OSS, test "$have_oss" = "yes") | |
526 | |
527 | |
528 dnl *** ALSA output plugin | |
529 | |
530 AC_ARG_ENABLE(alsa, | |
531 [ --disable-alsa disable ALSA input plugin (default=enabled)], | |
532 [enable_alsa=$enableval], | |
533 [enable_alsa=yes] | |
534 ) | |
535 | |
536 if test "$enable_alsa" = "yes"; then | |
537 PKG_CHECK_MODULES(ALSA, [alsa >= 1.0], | |
527
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
538 [ |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
539 have_alsa=yes |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
540 alsalib_available=yes |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
541 ], |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
542 [ |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
543 have_alsa=no |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
544 alsalib_available=no |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
545 ] |
0 | 546 ) |
547 else | |
548 AC_MSG_RESULT([*** ALSA output plugin disabled per user request ***]) | |
549 have_alsa=no | |
527
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
550 alsalib_available=check |
0 | 551 fi |
552 | |
553 AM_CONDITIONAL(HAVE_ALSA, test "$have_alsa" = "yes") | |
554 | |
555 | |
527
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
556 dnl *** amidi-plug (note: should appear somewhere after the alsa ouput plugin check) |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
557 |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
558 AC_ARG_ENABLE(amidiplug, |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
559 [ --disable-amidiplug disable amidi-plug input plugin (default=check) ], |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
560 [enable_amidiplug=$enableval], |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
561 [enable_amidiplug=check] |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
562 ) |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
563 |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
564 if test "x$enable_amidiplug" = "xno"; then |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
565 AC_MSG_RESULT([*** amidi-plug disabled per user request ***]) |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
566 enable_amidiplug=no |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
567 else |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
568 if test "x$alsalib_available" = "xcheck"; then |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
569 PKG_CHECK_MODULES(ALSA, [alsa >= 1.0], |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
570 [alsalib_available=yes],[alsalib_available=no]) |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
571 fi |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
572 if test "x$alsalib_available" = "xyes"; then |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
573 if test "x$enable_amidiplug" = "xcheck"; then |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
574 AM_PATH_AMIDIPLUG(enable_amidiplug=yes, enable_amidiplug=no) |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
575 if test "x$enable_amidiplug" = "xyes"; then |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
576 ap_disable_timidity=yes |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
577 fi |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
578 else |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
579 enable_amidiplug=yes |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
580 fi |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
581 else |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
582 AC_MSG_WARN([*** ALSA not found, amidi-plug won't be compiled ***]) |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
583 enable_amidiplug=no |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
584 fi |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
585 fi |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
586 |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
587 AM_CONDITIONAL(ENABLE_AMIDIPLUG, test "x$enable_amidiplug" = "xyes") |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
588 |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
589 |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
590 dnl *** TiMidity input plugin (note: should appear somewhere after the amidi-plug check) |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
591 |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
592 AC_ARG_ENABLE(timidity, |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
593 [ --disable-timidity disable timidity plugin. (default=enabled)], |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
594 [enable_timidity=$enableval], |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
595 [ |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
596 if test "x$ap_disable_timidity" = "xyes"; then |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
597 enable_timidity=no |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
598 else |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
599 enable_timidity=yes |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
600 fi |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
601 ] |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
602 ) |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
603 |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
604 AM_CONDITIONAL(ENABLE_TIMIDITY, test "$enable_timidity" = "yes") |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
605 |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
606 |
0 | 607 dnl FreeBSD newpcm driver detection |
608 | |
609 AC_CACHE_CHECK(for FreeBSD newpcm driver, beep_cv_newpcm_driver, | |
610 if test -r "/dev/sndstat"; then | |
611 grep 'newpcm' /dev/sndstat 2>/dev/null 1>/dev/null | |
612 if test "x$?" = "x0"; then | |
613 beep_cv_newpcm_driver="yes" | |
614 else | |
615 beep_cv_newpcm_driver="no" | |
616 fi | |
617 else | |
618 beep_cv_newpcm_driver="no" | |
619 fi | |
620 ) | |
621 | |
622 if test "$beep_cv_newpcm_driver" = "yes"; then | |
623 AC_DEFINE(HAVE_NEWPCM, 1, [Define if you have the FreeBSD newpcm driver]) | |
624 fi | |
625 | |
626 | |
627 AC_CHECK_HEADERS(linux/cdrom.h) | |
628 AC_CHECK_HEADERS(sys/cdio.h) | |
629 AC_CHECK_HEADERS(linux/joystick.h) | |
630 AC_CHECK_HEADERS(unistd.h) | |
631 AC_CHECK_HEADERS(fcntl.h) | |
632 AC_CHECK_HEADERS(sys/ioctl.h) | |
633 AC_CHECK_HEADERS(fnmatch.h) | |
634 AC_CHECK_HEADERS(limits.h) | |
635 AC_CHECK_HEADERS(wchar.h) | |
636 AC_CHECK_HEADERS(fts.h) | |
637 | |
242 | 638 AC_CHECK_FUNCS([mkdtemp getmntinfo strtoul lrintf]) |
0 | 639 |
640 | |
641 if test "${ac_cv_header_linux_cdrom_h}" = "yes" || test "${ac_cv_header_sys_cdio_h}" = "yes" | |
642 then | |
643 case "$host" in | |
644 *-*-sunos* | *-*-solaris* | *-*-linux*) | |
645 AC_DEFINE(BEEP_CDROM_SOLARIS,, [Define if cdrom access is in Solaris style]) | |
646 ;; | |
647 *-*-freebsd*) | |
648 AC_DEFINE(BEEP_CDROM_BSD,, [Define if cdrom access is in BSD style]) | |
649 ;; | |
650 *-*-netbsd* | *-*-openbsd*) | |
651 AC_DEFINE(BEEP_CDROM_BSD,, [Define if cdrom access is in BSD style]) | |
652 AC_DEFINE(BEEP_CDROM_BSD_NETBSD,, [Define if cdrom access uses NetBSD variant]) | |
653 ;; | |
654 *-*darwin*) | |
655 AC_DEFINE(BEEP_CDROM_BSD,, [Define if cdrom access is in BSD style]) | |
656 AC_DEFINE(BEEP_CDROM_BSD_DARWIN,, [Define if cdrom access uses Darwin variant]) | |
657 ;; | |
658 esac | |
659 fi | |
660 | |
661 | |
662 AM_CONDITIONAL(HAVE_CDROM, test "${ac_cv_header_linux_cdrom_h}" = "yes" || test "${ac_cv_header_sys_cdio_h}" = "yes") | |
663 AM_CONDITIONAL(HAVE_LINUX_JOYSTICK,test "${ac_cv_header_linux_joystick_h}" = "yes") | |
664 | |
665 if test -n "$GCC" | |
666 then | |
667 CFLAGS="$CFLAGS -Wall -Wpointer-arith -finline-functions -ffast-math" | |
668 case "$CFLAGS" in | |
669 -g*) ;; | |
670 *\ -g*) ;; | |
671 *) CFLAGS="$CFLAGS -fomit-frame-pointer" ;; | |
672 esac | |
673 case "$host" in | |
674 *-*-freebsd*) | |
675 ;; | |
676 *) | |
677 CFLAGS="$CFLAGS -funroll-all-loops" | |
678 ;; | |
679 esac | |
680 fi | |
681 | |
682 AC_MSG_CHECKING(if __ELF__ is defined) | |
683 AC_EGREP_CPP(yes, | |
684 [#ifdef __ELF__ | |
685 yes | |
686 #endif | |
687 ], | |
688 [is_elf=yes], | |
689 [is_elf=no] | |
690 ) | |
691 AC_MSG_RESULT([${is_elf}]) | |
692 | |
693 | |
694 have_solaris=no | |
695 have_sun=no | |
696 ARCH_DEFINES="" | |
697 case "$host" in | |
698 *-*-openbsd* | *-*-netbsd*) | |
699 have_sun=yes | |
700 if test "${is_elf}" = "no" | |
701 then | |
702 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any]) | |
703 fi | |
704 ;; | |
705 *-*-darwin*) | |
706 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any]) | |
707 ;; | |
708 *-hpux-*) | |
709 ARCH_DEFINES="-DHPUX" | |
710 ;; | |
711 *-*-solaris* | *-*-sunos*) | |
712 have_solaris=yes | |
713 ;; | |
714 esac | |
715 | |
716 arch_type=other | |
717 x86_asm=no | |
718 case "$host" in | |
719 i386-*-* | i486-*-* | i586-*-* | i686-*-* | i86pc-*-*) | |
720 arch_type=ix86 | |
721 case "$host" in | |
722 *-*-netbsd* | *-*openbsd*) | |
723 ;; | |
724 *) | |
725 ARCH_DEFINES="-DI386_ASSEM" | |
726 x86_asm=yes | |
727 ;; | |
728 esac | |
729 ;; | |
730 esac | |
731 | |
732 | |
733 AC_SUBST(ARCH_DEFINES) | |
734 AM_CONDITIONAL(ARCH_X86, test "x$arch_type" = "xix86") | |
735 AM_CONDITIONAL(USE_X86ASM, test "x$x86_asm" = xyes) | |
736 AM_CONDITIONAL(HAVE_SOLARIS, test "x$have_solaris" = xyes) | |
737 AM_CONDITIONAL(HAVE_SUN, test "x$have_sun" = xyes) | |
738 | |
739 plugindir=$libdir/audacious | |
740 AC_SUBST(plugindir) | |
741 | |
742 if test "x$enable_one_plugin_dir" = "xyes"; then | |
743 pluginsubs="\\\"Plugins\\\"" | |
744 INPUT_PLUGIN_DIR=Plugins | |
745 OUTPUT_PLUGIN_DIR=Plugins | |
746 EFFECT_PLUGIN_DIR=Plugins | |
747 GENERAL_PLUGIN_DIR=Plugins | |
748 VISUALIZATION_PLUGIN_DIR=Plugins | |
749 else | |
750 pluginsubs="\\\"Output\\\",\\\"Input\\\",\\\"Effect\\\",\\\"General\\\",\\\"Visualization\\\"" | |
751 INPUT_PLUGIN_DIR=Input | |
752 OUTPUT_PLUGIN_DIR=Output | |
753 EFFECT_PLUGIN_DIR=Effect | |
754 GENERAL_PLUGIN_DIR=General | |
755 VISUALIZATION_PLUGIN_DIR=Visualization | |
756 fi | |
757 | |
758 AC_SUBST(INPUT_PLUGIN_DIR) | |
759 AC_SUBST(OUTPUT_PLUGIN_DIR) | |
760 AC_SUBST(EFFECT_PLUGIN_DIR) | |
761 AC_SUBST(GENERAL_PLUGIN_DIR) | |
762 AC_SUBST(VISUALIZATION_PLUGIN_DIR) | |
763 AC_SUBST(pluginsubs) | |
764 | |
765 localedir=$datadir/locale | |
766 AC_SUBST(localedir) | |
767 | |
768 BEEP_DEFINES="$CFLAGS -DDATA_DIR=\\\"$datadir/audacious\\\" -DPLUGIN_DIR=\\\"$plugindir\\\" -DPLUGINSUBS=$pluginsubs -DLOCALEDIR=\\\"$localedir\\\"" | |
769 CFLAGS="$CFLAGS $EXTRA_CFLAGS" | |
770 | |
771 if test "$enable_user_plugin_dir" = "no"; then | |
772 AC_DEFINE(DISABLE_USER_PLUGIN_DIR,, [Define to disable per user plugin directory]) | |
773 fi | |
774 | |
775 AC_SUBST(BEEP_DEFINES) | |
776 | |
777 PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex "get_.plugin_info"' | |
778 AC_SUBST(PLUGIN_LDFLAGS) | |
779 | |
780 AC_SUBST(beepdir) | |
781 AC_SUBST(plugindir) | |
782 | |
38 | 783 have_libvisual="yes" |
784 | |
785 AC_CHECK_HEADERS([GL/gl.h GL/glx.h GL/glu.h],opengl="yes",opengl="no") | |
786 if test x"$opengl" = xno; then | |
787 AC_WARN([OpenGL and Glu headers not found, libvisual support cannot be built]) | |
788 have_libvisual="no" | |
789 fi | |
790 | |
791 AC_PATH_PROG(SDL_CONFIG, [sdl-config], [no]) | |
792 AM_PATH_SDL(1.2.5, , [AC_WARN([*** SDL >= 1.2.5 not installed - please install first ***]) | |
793 have_libvisual="no"]) | |
794 | |
795 PKG_CHECK_MODULES(LIBVISUAL, libvisual = 0.2.0, [libvis="yes"], [libvis="no"]) | |
796 if test x"$libvis" = xno; then | |
797 have_libvisual="no" | |
798 fi | |
799 AC_SUBST(LIBVISUAL_LIBS) | |
800 AC_SUBST(LIBVISUAL_CFLAGS) | |
801 | |
802 AM_CONDITIONAL(HAVE_LIBVISUAL, test "x$have_libvisual" = xyes) | |
803 | |
0 | 804 AC_CONFIG_FILES([ |
805 Makefile | |
806 audacious.1 | |
807 audacious.spec | |
808 audacious.pc | |
809 audacious/audacious.desktop | |
810 audacious/Makefile | |
811 audacious/glade/Makefile | |
812 audacious/images/Makefile | |
813 libaudacious/Makefile | |
62 | 814 Plugins/Makefile |
815 Plugins/Output/Makefile | |
816 Plugins/Output/OSS/Makefile | |
817 Plugins/Output/esd/Makefile | |
818 Plugins/Output/alsa/Makefile | |
325
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
819 Plugins/Output/jack/Makefile |
263 | 820 Plugins/Output/crossfade/Makefile |
62 | 821 Plugins/Output/disk_writer/Makefile |
822 Plugins/Input/Makefile | |
823 Plugins/Input/mpg123/Makefile | |
824 Plugins/Input/aac/Makefile | |
825 Plugins/Input/aac/libmp4v2/Makefile | |
826 Plugins/Input/aac/libfaad2/Makefile | |
827 Plugins/Input/aac/src/Makefile | |
278
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
828 Plugins/Input/modplug/Makefile |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
829 Plugins/Input/modplug/archive/Makefile |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
830 Plugins/Input/modplug/gui/Makefile |
293
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
831 Plugins/Input/musepack/Makefile |
62 | 832 Plugins/Input/tonegen/Makefile |
833 Plugins/Input/vorbis/Makefile | |
834 Plugins/Input/cdaudio/Makefile | |
835 Plugins/Input/wav/Makefile | |
836 Plugins/Input/flac/Makefile | |
837 Plugins/Input/flac/plugin_common/Makefile | |
269
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
838 Plugins/Input/sid/Makefile |
111
9d6a24d21322
[svn] Update configure to generate the makefile for the SPC decoder...
nenolod
parents:
89
diff
changeset
|
839 Plugins/Input/console/Makefile |
139 | 840 Plugins/Input/wma/Makefile |
841 Plugins/Input/wma/libffwma/Makefile | |
285
d1762728ea4b
[svn] Timidity support, via external contractor dai+audacious@cdr.jp.
nenolod
parents:
283
diff
changeset
|
842 Plugins/Input/timidity/Makefile |
d1762728ea4b
[svn] Timidity support, via external contractor dai+audacious@cdr.jp.
nenolod
parents:
283
diff
changeset
|
843 Plugins/Input/timidity/libtimidity/Makefile |
d1762728ea4b
[svn] Timidity support, via external contractor dai+audacious@cdr.jp.
nenolod
parents:
283
diff
changeset
|
844 Plugins/Input/timidity/src/Makefile |
332
07576d3ed844
[svn] Sexypsf input plugin; patch by dai in bug #395.
chainsaw
parents:
325
diff
changeset
|
845 Plugins/Input/sexypsf/Makefile |
359 | 846 Plugins/Input/adplug/Makefile |
847 Plugins/Input/adplug/core/Makefile | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
848 Plugins/Input/amidi-plug/Makefile |
62 | 849 Plugins/Visualization/Makefile |
850 Plugins/Visualization/blur_scope/Makefile | |
851 Plugins/Visualization/libvisual-proxy/Makefile | |
116 | 852 Plugins/General/Makefile |
853 Plugins/General/song_change/Makefile | |
157 | 854 Plugins/General/lirc/Makefile |
277 | 855 Plugins/Effect/Makefile |
856 Plugins/Effect/ladspa/Makefile | |
0 | 857 po/Makefile.in |
858 intl/Makefile | |
859 icons/Makefile | |
860 skin/Makefile | |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
539
diff
changeset
|
861 mk/rules.mk |
0 | 862 ]) |
863 | |
864 AC_OUTPUT | |
865 | |
866 | |
867 echo | |
868 echo "Configuration:" | |
869 echo | |
870 echo " Install path: ${prefix}" | |
871 | |
872 if test "$BEEP_PATH" != "no"; then | |
38 | 873 echo " Current Audacious executable: $BEEP_PATH" |
0 | 874 fi |
875 | |
876 echo " Configuration path: \$HOME/$rc_path" | |
877 echo | |
878 echo " Use one plugin dir: $enable_one_plugin_dir" | |
879 echo " Allow user plugin dir: $enable_user_plugin_dir" | |
880 echo | |
881 echo " XMMS Legacy" | |
882 echo " -----------" | |
883 echo " Equalization (works only with mpg123) $use_xmms_eq" | |
884 echo | |
885 echo " GNOME support" | |
886 echo " -------------" | |
887 echo " GConf support $enable_gconf" | |
888 echo " VFS support $enable_gnomevfs" | |
889 echo | |
890 echo " Output Plugins" | |
891 echo " --------------" | |
892 echo " Open Sound System (oss): $have_oss" | |
893 echo " Advanced Linux Sound Arch. (alsa): $have_alsa" | |
894 echo " Enlightenment Sound Daemon (esd): $have_esd" | |
325
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
895 echo " Jack Audio Connection Kit (jack): $have_jack" |
270
c7efd92ee0e8
[svn] Update plugin descriptions in feature overview.
chainsaw
parents:
269
diff
changeset
|
896 echo " Crossfading (crossfade): $enable_crossfade" |
c7efd92ee0e8
[svn] Update plugin descriptions in feature overview.
chainsaw
parents:
269
diff
changeset
|
897 echo " + libsamplerate support $have_libsamplerate" |
0 | 898 echo |
899 echo " Input Plugins" | |
900 echo " -------------" | |
901 echo " MPEG 1/2/3 (mpg123): $enable_mp3" | |
902 echo " + id3v2 editing: $have_id3lib" | |
2 | 903 echo " MPEG 4 Audio (AAC): $enable_aac" |
260
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
904 echo " Windows Media Audio (wma): $enable_wma" |
293
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
905 echo " .mpc playback (musepack): $enable_musepack" |
278
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
906 echo " Module decoder (modplug): $enable_modplug" |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
907 echo " MIDI hw synth via ALSA (amidi-plug): $enable_amidiplug" |
285
d1762728ea4b
[svn] Timidity support, via external contractor dai+audacious@cdr.jp.
nenolod
parents:
283
diff
changeset
|
908 echo " MIDI to WAVE converter (timidity): $enable_timidity" |
0 | 909 echo " CD Digital Audio (cdda): yes" |
910 echo " Microsoft WAV (wav): yes" | |
184
740c072f8e23
[svn] List sndfile extensions in the plugin configuration table.
chainsaw
parents:
165
diff
changeset
|
911 echo " + sndfile extensions: $enable_sndfile" |
11 | 912 echo " Tone Generator: yes" |
0 | 913 echo " Ogg Vorbis (vorbis): $have_oggvorbis" |
270
c7efd92ee0e8
[svn] Update plugin descriptions in feature overview.
chainsaw
parents:
269
diff
changeset
|
914 echo " Free Lossless Audio Codec (flac): $have_flac" |
c7efd92ee0e8
[svn] Update plugin descriptions in feature overview.
chainsaw
parents:
269
diff
changeset
|
915 echo " Commodore 64 audio (sid): $have_sidplay" |
c7efd92ee0e8
[svn] Update plugin descriptions in feature overview.
chainsaw
parents:
269
diff
changeset
|
916 echo " Game music (spc, nsf & gbs): yes" |
343
7b71e0dbb62d
[svn] Replace a tab with spaces to make Mikachu happy.
chainsaw
parents:
332
diff
changeset
|
917 echo " PlayStation audio (sexypsf): yes" |
359 | 918 echo " AdLib synthesizer (adplug): $have_adplug" |
270
c7efd92ee0e8
[svn] Update plugin descriptions in feature overview.
chainsaw
parents:
269
diff
changeset
|
919 echo |
116 | 920 echo " General" |
921 echo " -------" | |
922 echo " Song Change: yes" | |
157 | 923 echo " LIRC: $have_lirc" |
270
c7efd92ee0e8
[svn] Update plugin descriptions in feature overview.
chainsaw
parents:
269
diff
changeset
|
924 echo |
277 | 925 echo " Effect" |
926 echo " ------" | |
927 echo " LADSPA effects host (ladspa): yes" | |
928 echo | |
0 | 929 echo " Visualization" |
930 echo " -------------" | |
931 echo " Blur Scope: yes" | |
38 | 932 echo " libvisual-proxy: $have_libvisual" |
0 | 933 echo |
934 | |
935 if test "$beep_cv_lib_xlibs_threadsafe" = "no"; then | |
32 | 936 echo "Note: You need to have thread-safe xlibs to use Audacious." |
0 | 937 echo "If you are using libc5 thread aware Xlibs just skip this." |
938 echo "" | |
939 echo "If you don't have those libs and you are on a libc5 system get them at:" | |
940 echo "ftp://ftp.dent.med.uni-muenchen.de/pub/wmglo/" | |
941 fi | |
942 | |
943 if test "$BEEP_PATH" != "no" && test "$prefix/bin/audacious" != "$BEEP_PATH" ; then | |
944 echo "" | |
945 echo "Note: Configure has discovered that you already have Audacious installed" | |
946 echo "and it does not match with the given --prefix. You have Audacious installed " | |
947 echo "in $(dirname $BEEP_PATH) and you chose $prefix/bin." | |
948 echo | |
949 echo "If you don't want two copies of Audacious installed, rerun configure with" | |
950 echo "the --prefix option set to the location of the old Audacious, or uninstall" | |
951 echo "the old Audacious." | |
952 fi | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
953 |
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
954 if test "x$ap_disable_timidity" = "xyes" && test "x$enable_timidity" = "xno"; then |
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
955 echo "Note: an ALSA-supported hardware midi synth was detected in configuration;" |
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
956 echo "in order to use it, the amidi-plug (MIDI through ALSA) input plugin" |
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
957 echo "will be compiled in place of timidity. If you wish to compile timidity" |
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
958 echo "anyway, simply use --enable-timidity in configuration." |
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
959 echo "" |
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
960 fi |