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