Mercurial > audlegacy
annotate configure.ac @ 1490:ded11c19cc0a trunk
[svn] - do things in a less hackish way
author | nenolod |
---|---|
date | Thu, 03 Aug 2006 22:54:57 -0700 |
parents | bbd5869239e5 |
children | c5bb3813fbd8 |
rev | line source |
---|---|
0 | 1 dnl Process this file with autoconf to produce a configure script. |
2 | |
1408 | 3 AC_INIT(audacious, 1.1.1) |
1420 | 4 AC_PREREQ([2.59]) |
0 | 5 |
6 AC_CANONICAL_HOST | |
7 AC_CANONICAL_TARGET | |
8 | |
9 AC_CONFIG_HEADERS([config.h]) | |
10 | |
11 dnl libbeep | |
12 LIBBEEP_MAJOR_VERSION=2 | |
13 LIBBEEP_MINOR_VERSION=0 | |
14 LIBBEEP_MICRO_VERSION=0 | |
15 LIBBEEP_VERSION=$LIBBEEP_MAJOR_VERSION.$LIBBEEP_MINOR_VERSION.$LIBBEEP_MICRO_VERSION | |
16 AC_SUBST(LIBBEEP_MAJOR_VERSION) | |
17 AC_SUBST(LIBBEEP_MINOR_VERSION) | |
18 AC_SUBST(LIBBEEP_MICRO_VERSION) | |
19 | |
38 | 20 dnl XXX kludge for FreeBSD |
21 if test -d "/usr/X11R6/include"; then | |
22 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" | |
23 fi | |
0 | 24 |
756 | 25 AM_INIT_AUTOMAKE |
26 | |
0 | 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 | |
1353
35ef03569852
[svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents:
1317
diff
changeset
|
35 AC_PROG_CC |
35ef03569852
[svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents:
1317
diff
changeset
|
36 AC_PROG_CXX |
0 | 37 AC_ISC_POSIX |
38 AC_C_BIGENDIAN | |
39 | |
40 dnl Check for assembler | |
41 | |
42 AM_PROG_AS | |
43 | |
44 dnl Checks for various programs | |
45 | |
46 AC_PROG_INSTALL | |
47 AC_PROG_LN_S | |
48 AC_PROG_MAKE_SET | |
49 | |
750 | 50 AC_PATH_PROG(RM, rm) |
51 AC_PATH_PROG(MV, mv) | |
52 AC_PATH_PROG(CP, cp) | |
53 AC_PATH_PROG(AR, ar) | |
54 AC_PATH_PROG(RANLIB, ranlib) | |
55 | |
0 | 56 dnl Path settings |
57 | |
58 AC_PATH_PROG(BEEP_PATH, audacious, no) | |
59 | |
60 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
|
61 [ --rc-path=path Resource and configuration path for audacious relative to $HOME.], |
0 | 62 [rc_path=$withval], |
63 [rc_path=.audacious] | |
64 ) | |
65 AC_DEFINE_UNQUOTED(BMP_RCPATH, "$rc_path", | |
535 | 66 [Resource and configuration path for audacious relative to $HOME.] |
0 | 67 ) |
68 AC_SUBST(BMP_RCPATH) | |
69 | |
70 AC_ARG_ENABLE(one-plugin-dir, | |
71 [ --enable-one-plugin-dir Use a single plugin dir [default=no]], | |
72 [enable_one_plugin_dir=$enableval], | |
73 [enable_one_plugin_dir=no] | |
74 ) | |
75 | |
76 AC_ARG_ENABLE(user-plugin-dir, | |
77 [ --disable-user-plugin-dir disable per-user plugin dir], | |
78 [enable_user_plugin_dir=$enableval], | |
79 [enable_user_plugin_dir=yes] | |
80 ) | |
81 | |
82 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
|
83 [ --with-dev-dsp=path Path to OSS DSP data pipe, default is /dev/dsp.], |
0 | 84 [dev_dsp=$withval], |
85 [dev_dsp=/dev/dsp] | |
86 ) | |
87 AC_DEFINE_UNQUOTED(DEV_DSP, "$dev_dsp", | |
88 [Path to OSS DSP, really just a data pipe, default is /dev/dsp.] | |
89 ) | |
90 | |
91 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
|
92 [ --with-dev-mixer=path Path to OSS sound mixer, default is /dev/mixer.], |
0 | 93 [dev_mixer=$withval], |
94 [dev_mixer=/dev/mixer] | |
95 ) | |
96 AC_DEFINE_UNQUOTED(DEV_MIXER, "$dev_mixer", | |
97 [Path to OSS mixer, default is /dev/mixer.] | |
98 ) | |
99 | |
100 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
|
101 [ --with-cdda-device=path Path to default cdaudio device.], |
0 | 102 [AC_DEFINE_UNQUOTED(CDDA_DEVICE, "$withval", |
103 [Path to default cdaudio device.] | |
104 ) | |
105 ] | |
106 ) | |
107 | |
108 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
|
109 [ --with-cdda-dir=path Path to default cdaudio directory.], |
0 | 110 [AC_DEFINE_UNQUOTED(CDDA_DIRECTORY, "$withval", |
111 [Path to default cdaudio directory.] | |
112 ) | |
113 ] | |
114 ) | |
115 | |
634 | 116 dnl These plugins are always built. |
0 | 117 |
634 | 118 INPUT_PLUGINS="cdaudio tonegen console sexypsf wav" |
820 | 119 OUTPUT_PLUGINS="disk_writer" |
937
6158ee7d8b06
[svn] Port AudioCompress (AGC) effect plugin from XMMS, as requested by Junics on SorceryNet.
chainsaw
parents:
920
diff
changeset
|
120 EFFECT_PLUGINS="audiocompress ladspa voice_removal" |
710
500f6d54bc46
[svn] Remove references to inetctl from the build system.
chainsaw
parents:
706
diff
changeset
|
121 GENERAL_PLUGINS="song_change" |
634 | 122 VISUALIZATION_PLUGINS="blur_scope" |
0 | 123 |
124 dnl Option to change equalizer to the old XMMS one which only works with the mpg123 | |
125 dnl plugin (or rather, only implemented within the plugin) | |
126 | |
127 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
|
128 [ --with-xmms-eq Use old XMMS equalization code.], |
0 | 129 [use_xmms_eq=$withval], |
130 [use_xmms_eq=no] | |
131 ) | |
132 | |
133 if test "$use_xmms_eq" = "yes"; then | |
134 AC_DEFINE(XMMS_EQ, , [Define if building with old XMMS equalization code.]) | |
135 fi | |
136 | |
137 dnl Check for GTK/GLib/GThread/Pango | |
138 | |
535 | 139 PKG_CHECK_MODULES(GTK, [glib-2.0 >= 2.6.0 gtk+-2.0 >= 2.6.0 gthread-2.0 pango], |
140 [ADD_PC_REQUIRES([glib-2.0 >= 2.6.0, gtk+-2.0 >= 2.6.0])], | |
0 | 141 [AC_MSG_ERROR([Cannot find glib2/gtk2/pango])] |
142 ) | |
143 | |
144 dnl Check for libglade | |
145 | |
146 PKG_CHECK_MODULES(LIBGLADE, [libglade-2.0 >= 2.3.1], | |
147 [], | |
148 [AC_MSG_ERROR([Cannot find libglade])] | |
149 ) | |
150 | |
967
55757f96ef5d
[svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents:
960
diff
changeset
|
151 AC_PATH_PROG(TAGLIB_CONFIG, taglib-config, [no], [$PATH:$prefix/bin]) |
55757f96ef5d
[svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents:
960
diff
changeset
|
152 if test "x$TAGLIB_CONFIG" = "xno" ; then |
55757f96ef5d
[svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents:
960
diff
changeset
|
153 AC_MSG_ERROR([Cannot find taglib]) |
55757f96ef5d
[svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents:
960
diff
changeset
|
154 else |
55757f96ef5d
[svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents:
960
diff
changeset
|
155 TAGLIB_CFLAGS=[`$TAGLIB_CONFIG --cflags`] |
55757f96ef5d
[svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents:
960
diff
changeset
|
156 TAGLIB_LIBS=[`$TAGLIB_CONFIG --libs`] |
55757f96ef5d
[svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents:
960
diff
changeset
|
157 fi |
55757f96ef5d
[svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents:
960
diff
changeset
|
158 AC_SUBST(TAGLIB_CFLAGS) |
55757f96ef5d
[svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents:
960
diff
changeset
|
159 AC_SUBST(TAGLIB_LIBS) |
55757f96ef5d
[svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents:
960
diff
changeset
|
160 |
0 | 161 # Check if socklen_t is defined |
162 | |
163 AC_CACHE_CHECK(for socklen_t, beep_cv_type_socklen_t, | |
164 [AC_TRY_COMPILE( | |
165 [#include <sys/types.h> | |
166 #include <sys/socket.h>], | |
167 [socklen_t s;], | |
168 [beep_cv_type_socklen_t=yes], | |
169 [beep_cv_type_socklen_t=no] | |
170 ) | |
171 ] | |
172 ) | |
173 | |
174 if test "$beep_cv_type_socklen_t" = "no"; then | |
175 AC_DEFINE(socklen_t, int, [Define to int if the socklen_t type is missing]) | |
176 fi | |
177 | |
978 | 178 dnl IPv6 support |
179 dnl ======================== | |
180 AC_ARG_ENABLE(ipv6, | |
181 [ --enable-ipv6 enable IPv6 support (default=no)], | |
182 enable_ipv6=$enableval, enable_ipv6=no) | |
183 if test "x$enable_ipv6" = xyes; then | |
184 AC_DEFINE(USE_IPV6,, [Define if building with IPv6 support] ) | |
185 fi | |
186 AM_CONDITIONAL(USE_IPV6,test "x$enable_ipv6" = xyes) | |
187 AC_SUBST(USE_IPV6) | |
188 | |
1105
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
189 dnl chardet support |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
190 dnl ======================== |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
191 AC_ARG_ENABLE(chardet, |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
192 [ --enable-chardet enable character set detection support (default=no)], |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
193 enable_chardet=$enableval, enable_chardet=no) |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
194 if test "x$enable_chardet" = xyes; then |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
195 AC_DEFINE(USE_CHARDET, 1, [Define if character set detection enabled] ) |
1317
a698348c5155
[svn] - libaac: potential buffer overflow vulnerability fix
nenolod
parents:
1265
diff
changeset
|
196 AC_CHECK_LIB(guess, guess_jp, [SUBDIR_GUESS=[''] CHARDET_LIBS=['-lguess']], [SUBDIR_GUESS=['libguess'] CHARDET_LIBS=['../libguess/libguess.a']]) |
1105
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
197 AC_CHECK_LIB(udet_c, detectCharset, [AC_DEFINE(HAVE_UDET, 1,[Define if the system has Mozilla universal character detector library]) CHARDET_LIBS=["$CHARDET_LIBS -ludet -ludet_c"]]) |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
198 fi |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
199 AM_CONDITIONAL(USE_CHARDET,test "x$enable_chardet" = xyes) |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
200 AC_SUBST(USE_CHARDET) |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
201 AC_SUBST(CHARDET_LIBS) |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
202 AC_SUBST(SUBDIR_GUESS) |
0 | 203 |
204 dnl GConf support | |
205 | |
206 AC_ARG_ENABLE( gconf, | |
207 [ --enable-gconf enable GConf support (default=disabled)], | |
208 [enable_gconf=$enableval], | |
209 [enable_gconf="no"] | |
210 ) | |
211 | |
212 if test "$enable_gconf" = "yes"; then | |
213 PKG_CHECK_MODULES(GCONF, [gconf-2.0 >= 2.6.0], | |
214 [ | |
215 AC_DEFINE(HAVE_GCONF, , [Define if building with GConf support]) | |
216 ADD_PC_REQUIRES([gconf-2.0 >= 2.6.0]) | |
217 ], | |
218 [AC_MSG_ERROR([Cannot find GConf])] | |
219 ) | |
220 fi | |
221 | |
727 | 222 if test "$enable_gconf" = "yes"; then |
223 CONFIGDB_BACKEND="gconf" | |
224 else | |
225 CONFIGDB_BACKEND="rcfile" | |
226 fi | |
0 | 227 |
727 | 228 AC_SUBST(CONFIGDB_BACKEND) |
0 | 229 |
230 dnl GnomeVFS support | |
231 | |
232 AC_ARG_ENABLE( gnome-vfs, | |
233 [ --enable-gnome-vfs enable GnomeVFS support (default=disabled)], | |
234 [enable_gnomevfs=$enableval], | |
235 [enable_gnomevfs="no"] | |
236 ) | |
237 | |
238 if test "$enable_gnomevfs" = "yes"; then | |
239 PKG_CHECK_MODULES(GNOMEVFS, [gnome-vfs-2.0 >= 2.6.0], | |
240 [ | |
241 AC_DEFINE(HAVE_GNOME_VFS, , [Define if building with GnomeVFS support]) | |
242 ADD_PC_REQUIRES([gnome-vfs-2.0 >= 2.6.0]) | |
243 ], | |
244 [AC_MSG_ERROR([Cannot find GnomeVFS])] | |
245 ) | |
246 fi | |
247 | |
726 | 248 if test "$enable_gnomevfs" = "yes"; then |
249 VFS_BACKEND="gnome" | |
250 else | |
251 VFS_BACKEND="stdio" | |
252 fi | |
0 | 253 |
727 | 254 AC_SUBST(VFS_BACKEND) |
255 | |
0 | 256 dnl Check for esound |
257 | |
258 AC_ARG_ENABLE( esd, | |
259 [ --disable-esd disable esound output plugin [default=enabled]], | |
260 [enable_esd=$enableval], | |
261 [enable_esd="yes"] | |
262 ) | |
263 | |
264 if test "$enable_esd" = "yes"; then | |
265 PKG_CHECK_MODULES(ESD, [esound >= 0.2], | |
634 | 266 [have_esd=yes |
267 OUTPUT_PLUGINS="$OUTPUT_PLUGINS esd"], | |
0 | 268 [have_esd=no] |
269 ) | |
270 else | |
271 AC_MSG_RESULT([*** esound plugin disabled per user request ***]) | |
272 have_esd=no | |
273 fi | |
274 | |
1353
35ef03569852
[svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents:
1317
diff
changeset
|
275 dnl *** AltiVec |
35ef03569852
[svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents:
1317
diff
changeset
|
276 |
35ef03569852
[svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents:
1317
diff
changeset
|
277 AC_CHECK_HEADERS(altivec.h, |
35ef03569852
[svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents:
1317
diff
changeset
|
278 [AC_DEFINE(HAVE_ALTIVEC, 1, [Define to 1 if your system has AltiVec.]) |
1398
1ddaf20ab50e
[svn] AltiVec support for WMA, by Luca "lu_zero" Barbato from Gentoo.
chainsaw
parents:
1394
diff
changeset
|
279 AC_DEFINE(HAVE_ALTIVEC_H, 1, [Define to 1 if your system has an altivec.h file.]) |
1353
35ef03569852
[svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents:
1317
diff
changeset
|
280 AC_DEFINE(ARCH_POWERPC, 1, [Define to 1 if your system is a PowerPC.]) |
35ef03569852
[svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents:
1317
diff
changeset
|
281 DCT64=dct64_altivec.c], |
35ef03569852
[svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents:
1317
diff
changeset
|
282 [DCT64=dct64.c] |
35ef03569852
[svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents:
1317
diff
changeset
|
283 ) |
35ef03569852
[svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents:
1317
diff
changeset
|
284 AC_SUBST(DCT64) |
35ef03569852
[svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents:
1317
diff
changeset
|
285 |
0 | 286 dnl *** MP3 |
287 | |
288 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
|
289 [ --disable-mp3 disable mp3 plugin. (default=enabled) ], |
0 | 290 [enable_mp3=$enableval], |
291 [enable_mp3=yes] | |
292 ) | |
293 | |
634 | 294 if test "$enable_mp3" = "yes"; then |
295 INPUT_PLUGINS="$INPUT_PLUGINS mpg123" | |
296 fi | |
0 | 297 |
1457
bbd5869239e5
[svn] RockLight visualization plugin ported from XMMS.
chainsaw
parents:
1425
diff
changeset
|
298 dnl *** ThinkLight support |
bbd5869239e5
[svn] RockLight visualization plugin ported from XMMS.
chainsaw
parents:
1425
diff
changeset
|
299 |
bbd5869239e5
[svn] RockLight visualization plugin ported from XMMS.
chainsaw
parents:
1425
diff
changeset
|
300 AC_CHECK_FILE([/proc/acpi/ibm/light], [VISUALIZATION_PLUGINS="$VISUALIZATION_PLUGINS rocklight"]) |
bbd5869239e5
[svn] RockLight visualization plugin ported from XMMS.
chainsaw
parents:
1425
diff
changeset
|
301 |
157 | 302 dnl *** LIRC client libraries |
303 | |
304 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
|
305 [ --disable-lirc disable LIRC plugin (default=enabled)], |
157 | 306 [enable_lirc=$enableval], |
307 [enable_lirc="yes"] | |
308 ) | |
309 | |
310 if test "$enable_lirc" = "yes"; then | |
311 AC_CHECK_LIB([lirc_client],[lirc_init],[have_lirc=yes],[have_lirc=no]) | |
312 else | |
313 AC_MSG_RESULT([*** LIRC plugin disabled per user request ***]) | |
314 have_lirc="no" | |
315 fi | |
634 | 316 |
317 if test "$have_lirc" = "yes"; then | |
318 GENERAL_PLUGINS="$GENERAL_PLUGINS lirc" | |
319 fi | |
157 | 320 |
386 | 321 dnl *** AdPlug requirement (libbinio) |
359 | 322 |
323 AC_ARG_ENABLE(adplug, | |
324 [ --disable-adplug disable AdPlug plugin (default=enabled)], | |
325 [enable_adplug=$enableval], | |
326 [enable_adplug="yes"] | |
327 ) | |
328 | |
386 | 329 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
|
330 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
|
331 PKG_CHECK_MODULES(BINIO,[libbinio >= 1.4],,[have_adplug=no]) |
359 | 332 else |
333 AC_MSG_RESULT([*** AdPlug plugin disabled per user request ***]) | |
334 have_adplug="no" | |
335 fi | |
634 | 336 |
337 if test "$have_adplug" = "yes"; then | |
338 INPUT_PLUGINS="$INPUT_PLUGINS adplug" | |
339 fi | |
359 | 340 |
0 | 341 dnl *** Ogg Vorbis |
342 | |
343 AC_ARG_ENABLE(vorbis, | |
344 [ --disable-vorbis disable Ogg Vorbis input plugin (default=enabled)], | |
345 [enable_vorbis=$enableval], | |
346 [enable_vorbis="yes"] | |
347 ) | |
348 | |
349 if test "$enable_vorbis" = "yes"; then | |
350 PKG_CHECK_MODULES(OGG_VORBIS, [ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0], | |
351 [have_oggvorbis=yes], | |
352 [AC_MSG_ERROR([Cannot find libogg/libvorbis]) | |
353 have_oggvorbis=no] | |
354 ) | |
355 else | |
356 AC_MSG_RESULT([*** Ogg Vorbis plugin disabled per user request ***]) | |
357 have_oggvorbis=no | |
358 fi | |
359 | |
634 | 360 if test "$have_oggvorbis" = "yes"; then |
361 INPUT_PLUGINS="$INPUT_PLUGINS vorbis" | |
362 fi | |
0 | 363 |
2 | 364 dnl *** AAC |
365 | |
366 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
|
367 [ --disable-aac disable aac plugin (default=enabled) ], |
2 | 368 [enable_aac=$enableval], |
369 [enable_aac=yes] | |
370 ) | |
371 | |
706 | 372 if test "$enable_aac" = "yes"; then |
634 | 373 INPUT_PLUGINS="$INPUT_PLUGINS aac" |
374 fi | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
375 |
165 | 376 dnl *** sndfile |
377 | |
378 AC_ARG_ENABLE(sndfile, | |
379 [ --disable-sndfile disable sndfile extensions. [default=enabled] ], | |
380 [enable_sndfile=$enableval], | |
381 [enable_sndfile=yes] | |
382 ) | |
383 | |
384 if test "$enable_sndfile" = "yes"; then | |
385 PKG_CHECK_MODULES(SNDFILE, [sndfile >= 0.19], | |
386 [enable_sndfile=yes], | |
387 [enable_sndfile=no] | |
388 ) | |
389 else | |
390 AC_MSG_RESULT([*** libsndfile extensions disabled per user request ***]) | |
391 enable_sndfile=no | |
392 fi | |
393 | |
634 | 394 if test "$enable_sndfile" = "yes"; then |
725 | 395 WAV_SNDFILE="-sndfile" |
634 | 396 fi |
397 | |
725 | 398 AC_SUBST(WAV_SNDFILE) |
165 | 399 |
278
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
400 dnl *** modplug |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
401 |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
402 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
|
403 [ --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
|
404 [enable_modplug=$enableval], |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
405 [enable_modplug="yes"] |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
406 ) |
32 | 407 |
278
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
408 if test "$enable_modplug" = "yes"; then |
1375
d2c411305bf8
[svn] Modplug conftest fix by Christian "Joker" Birchinger from Gentoo.
chainsaw
parents:
1366
diff
changeset
|
409 AC_CHECK_LIB([modplug],[XMLinearTable],[have_modplug=yes],[have_modplug=no],[-lstdc++]) |
32 | 410 else |
278
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
411 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
|
412 have_modplug="no" |
32 | 413 fi |
278
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
414 |
634 | 415 if test "$have_modplug" = "yes"; then |
416 INPUT_PLUGINS="$INPUT_PLUGINS modplug" | |
417 fi | |
32 | 418 |
50 | 419 dnl *** flac |
420 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
|
421 [ --disable-flac disable flac input plugin (default=enabled)],, |
50 | 422 enable_flac="yes") |
423 | |
424 if test "x$enable_flac" = xyes; then | |
425 AM_PATH_LIBFLAC(have_flac=yes, have_flac=no) | |
426 else | |
427 AC_MSG_RESULT([*** flac plugin disabled per user request ***]) | |
428 have_flac=no | |
429 fi | |
634 | 430 |
431 if test "$have_flac" = "yes"; then | |
432 INPUT_PLUGINS="$INPUT_PLUGINS flac" | |
433 fi | |
32 | 434 |
260
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
435 dnl *** WMA |
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
436 |
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
437 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
|
438 [ --disable-wma disable wma plugin. (default=enabled)], |
260
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
439 [enable_wma=$enableval], |
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
440 [enable_wma=yes] |
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
441 ) |
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
442 |
634 | 443 if test "$enable_wma" = "yes"; then |
444 INPUT_PLUGINS="$INPUT_PLUGINS wma" | |
445 fi | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
446 |
325
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
447 dnl *** jack output plugin |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
448 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
|
449 [ --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
|
450 enable_jack="yes") |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
451 |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
452 if test "x$enable_jack" = xyes; then |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
453 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
|
454 else |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
455 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
|
456 have_jack=no |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
457 fi |
634 | 458 |
459 if test "$have_jack" = yes; then | |
460 OUTPUT_PLUGINS="$OUTPUT_PLUGINS jack" | |
461 fi | |
325
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
462 |
810
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
794
diff
changeset
|
463 dnl *** arts output plugin |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
794
diff
changeset
|
464 AC_ARG_ENABLE( arts, |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
794
diff
changeset
|
465 [ --disable-arts disable arts output plugin (default=enabled)],, |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
794
diff
changeset
|
466 enable_arts="yes") |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
794
diff
changeset
|
467 |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
794
diff
changeset
|
468 if test "x$enable_arts" = xyes; then |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
794
diff
changeset
|
469 AM_PATH_ARTSC(0.9.5, have_arts=yes, have_arts=no) |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
794
diff
changeset
|
470 else |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
794
diff
changeset
|
471 AC_MSG_RESULT([*** arts plugin disabled per user request ***]) |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
794
diff
changeset
|
472 have_arts=no |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
794
diff
changeset
|
473 fi |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
794
diff
changeset
|
474 |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
794
diff
changeset
|
475 if test "$have_arts" = yes; then |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
794
diff
changeset
|
476 OUTPUT_PLUGINS="$OUTPUT_PLUGINS arts" |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
794
diff
changeset
|
477 fi |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
794
diff
changeset
|
478 |
269
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
479 dnl *** sid |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
480 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
|
481 [ --disable-sid disable sid input plugin (default=enabled)],, |
269
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
482 enable_sid="yes") |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
483 |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
484 if test "x$enable_sid" = xyes; then |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
485 AM_PATH_SIDPLAY(have_sidplay=yes, have_sidplay=no) |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
486 else |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
487 AC_MSG_RESULT([*** sid plugin disabled per user request ***]) |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
488 have_sidplay=no |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
489 fi |
634 | 490 |
491 if test "$have_sidplay" = yes; then | |
492 INPUT_PLUGINS="$INPUT_PLUGINS sid" | |
493 fi | |
269
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
494 |
293
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
495 dnl *** Musepack |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
496 |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
497 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
|
498 [ --disable-musepack disable musepack input plugin (default=enabled)], |
293
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
499 [enable_musepack=$enableval], |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
500 [enable_musepack="yes"] |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
501 ) |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
502 |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
503 if test "$enable_musepack" = "yes"; then |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
504 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
|
505 enable_musepack=no |
293
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
506 ) |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
507 else |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
508 AC_MSG_RESULT([*** Musepack plugin disabled per user request ***]) |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
509 enable_musepack=no |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
510 fi |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
511 |
634 | 512 if test "$enable_musepack" = "yes"; then |
513 INPUT_PLUGINS="$INPUT_PLUGINS musepack" | |
514 fi | |
293
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
515 |
0 | 516 dnl *** OSS output |
517 | |
518 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
|
519 [ --disable-oss disable the OSS output plugin (default=enabled)], |
0 | 520 [have_oss=$enableval], |
521 [have_oss=yes] | |
522 ) | |
523 | |
524 if test "$have_oss" = "yes"; then | |
525 AC_MSG_CHECKING(for OSS include dir) | |
526 OSS_CFLAGS="" | |
527 if test -f "/etc/oss.conf" ; then | |
528 for i in `cat /etc/oss.conf`; do | |
529 t=`echo $i | sed -e 's/OSSLIBDIR=//'` | |
530 if test "$i" != "$t" ; then | |
531 if test -f "$t/include/sys/soundcard.h" ; then | |
532 OSS_CFLAGS="-I$t/include" | |
533 fi | |
534 fi | |
535 done | |
536 fi | |
537 if test -n "$OSS_CFLAGS" ; then | |
538 AC_MSG_RESULT([$OSS_CFLAGS]) | |
539 else | |
540 AC_MSG_RESULT([not found]) | |
541 fi | |
542 CFLAGS_save=$CFLAGS | |
543 CFLAGS="$CFLAGS $OSS_CFLAGS" | |
544 AC_CHECK_HEADERS(sys/soundcard.h) | |
545 AC_CHECK_HEADERS(machine/soundcard.h) | |
546 CFLAGS=$CFLAGS_save | |
547 | |
548 if test "${ac_cv_header_sys_soundcard_h}" = "yes" || test "${ac_cv_header_machine_soundcard_h}" = "yes"; then | |
549 have_oss=yes | |
550 fi | |
551 fi | |
552 | |
553 if test "$have_oss" = "yes"; then | |
554 AC_DEFINE(HAVE_OSS, 1, [Define if the OSS output plugin should be built]) | |
555 else | |
556 have_oss=no | |
557 fi | |
558 | |
634 | 559 if test "$have_oss" = "yes"; then |
560 OUTPUT_PLUGINS="$OUTPUT_PLUGINS OSS" | |
561 fi | |
0 | 562 |
563 dnl *** ALSA output plugin | |
564 | |
565 AC_ARG_ENABLE(alsa, | |
566 [ --disable-alsa disable ALSA input plugin (default=enabled)], | |
567 [enable_alsa=$enableval], | |
568 [enable_alsa=yes] | |
569 ) | |
570 | |
571 if test "$enable_alsa" = "yes"; then | |
572 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
|
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 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
|
575 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
|
576 ], |
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 [ |
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 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
|
579 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
|
580 ] |
0 | 581 ) |
582 else | |
583 AC_MSG_RESULT([*** ALSA output plugin disabled per user request ***]) | |
584 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
|
585 alsalib_available=check |
0 | 586 fi |
587 | |
635
6a9e1af8ee75
[svn] Check for have_alsa to enable ALSA, and not have_oss.
chainsaw
parents:
634
diff
changeset
|
588 if test "$have_alsa" = "yes"; then |
634 | 589 OUTPUT_PLUGINS="$OUTPUT_PLUGINS alsa" |
590 fi | |
0 | 591 |
1387 | 592 |
593 dnl *** amidi-plug (note: to avoid checking twice ALSA, this should appear somewhere after the alsa ouput plugin check) | |
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
|
594 |
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 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
|
596 [ --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
|
597 [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
|
598 [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
|
599 ) |
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 |
1387 | 601 AC_ARG_ENABLE(amidiplug-alsa, |
602 [ --disable-amidiplug-alsa disable amidi-plug ALSA backend (default=enabled) ], | |
603 [enable_amidiplug_alsa=$enableval], | |
604 [enable_amidiplug_alsa=auto] | |
605 ) | |
606 | |
607 AC_ARG_ENABLE(amidiplug-flsyn, | |
608 [ --disable-amidiplug-flsyn disable amidi-plug FluidSynth backend (default=enabled) ], | |
609 [enable_amidiplug_fluidsynth=$enableval], | |
610 [enable_amidiplug_fluidsynth=auto] | |
611 ) | |
612 | |
613 AC_ARG_ENABLE(amidiplug-dummy, | |
614 [ --disable-amidiplug-dummy disable amidi-plug dummy backend (default=enabled) ], | |
615 [enable_amidiplug_dummy=$enableval], | |
616 [enable_amidiplug_dummy=auto] | |
617 ) | |
618 | |
619 | |
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
|
620 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
|
621 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
|
622 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
|
623 else |
1387 | 624 if test "x$enable_amidiplug_alsa" != "xauto"; then |
625 enable_amidiplug=yes | |
626 elif test "x$enable_amidiplug_fluidsynth" != "xauto"; then | |
627 enable_amidiplug=yes | |
628 elif test "x$enable_amidiplug_dummy" != "xauto"; then | |
629 enable_amidiplug=yes | |
630 fi | |
631 fi | |
632 | |
633 if test "x$enable_amidiplug" = "xcheck"; then | |
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
|
634 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
|
635 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
|
636 [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
|
637 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
|
638 if test "x$alsalib_available" = "xyes"; then |
1387 | 639 AM_PATH_AMIDIPLUG_HWSYNTH(ap_have_hwsynth=yes, ap_have_hwsynth=no) |
640 if test "x$ap_have_hwsynth" = "xyes"; then | |
641 enable_amidiplug=yes | |
642 ap_disable_timidity=yes | |
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
|
643 else |
1387 | 644 PKG_CHECK_MODULES(FLUIDSYNTH, [fluidsynth >= 1.0.6], |
645 [fluidsynth_available=yes],[fluidsynth_available=no]) | |
646 if test "x$fluidsynth_available" = "xyes"; then | |
647 enable_amidiplug=yes | |
648 ap_disable_timidity=yes | |
649 else | |
650 enable_amidiplug=no | |
651 AC_MSG_WARN([*** Neither an ALSA-supported hardware synth or FluidSynth software synth (>= 1.0.6) have been found (even if ALSA was detected), so amidi-plug won't be compiled unless you explicitly request it with --enable-amidiplug ***]) | |
652 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
|
653 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
|
654 else |
1387 | 655 PKG_CHECK_MODULES(FLUIDSYNTH, [fluidsynth >= 1.0.6], |
656 [fluidsynth_available=yes],[fluidsynth_available=no]) | |
657 if test "x$fluidsynth_available" = "xyes"; then | |
658 enable_amidiplug=yes | |
659 ap_disable_timidity=yes | |
660 else | |
661 enable_amidiplug=no | |
662 AC_MSG_WARN([*** Neither ALSA or FluidSynth software synth (>= 1.0.6) have been found, so amidi-plug won't be compiled unless you explicitly request it with --enable-amidiplug ***]) | |
663 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
|
664 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
|
665 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
|
666 |
1387 | 667 if test "x$enable_amidiplug" = "xyes"; then |
668 INPUT_PLUGINS="$INPUT_PLUGINS amidi-plug" | |
669 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.6.0],,) | |
670 PKG_CHECK_MODULES(GMODULE, [gmodule-2.0 >= 2.6.0],,) | |
1394
65490480559e
[svn] - install the amidi-plug plugins to ${libdir}/amidi-plug.
nenolod
parents:
1387
diff
changeset
|
671 AMIDIPLUGDATADIR=${libdir}/amidi-plug/backends |
1387 | 672 AC_SUBST(AMIDIPLUGDATADIR) |
673 if test "x$enable_amidiplug_alsa" = "xauto" -o "x$enable_amidiplug_alsa" = "xyes"; then | |
674 if test "x$alsalib_available" = "xcheck"; then | |
675 PKG_CHECK_MODULES(ALSA, [alsa >= 1.0], | |
676 [alsalib_available=yes],[alsalib_available=no]) | |
677 fi | |
678 if test "x$alsalib_available" = "xyes"; then | |
679 AMIDIPLUG_BACKENDS="$AMIDIPLUG_BACKENDS backend-alsa" | |
680 enable_amidiplug_alsa=yes | |
681 else | |
682 if test "x$enable_amidiplug_alsa" = "xyes"; then | |
683 AC_MSG_ERROR([Cannot find ALSA development files (ver >= 1.0), but compilation of AMIDI-Plug ALSA backend has been explicitly requested; please install ALSA dev files and run configure again]) | |
684 enable_amidiplug_alsa=no | |
685 else | |
686 enable_amidiplug_alsa=no | |
687 fi | |
688 fi | |
689 fi | |
690 if test "x$enable_amidiplug_fluidsynth" = "xauto" -o "x$enable_amidiplug_fluidsynth" = "xyes"; then | |
691 if test "x$fluidsynth_available" != "xyes" -a "x$fluidsynth_available" != "xno"; then | |
692 PKG_CHECK_MODULES(FLUIDSYNTH, [fluidsynth >= 1.0.6], | |
693 [fluidsynth_available=yes],[fluidsynth_available=no]) | |
694 fi | |
695 if test "x$fluidsynth_available" = "xyes"; then | |
696 AMIDIPLUG_BACKENDS="$AMIDIPLUG_BACKENDS backend-fluidsynth" | |
697 enable_amidiplug_fluidsynth=yes | |
698 else | |
699 if test "x$enable_amidiplug_fluidsynth" = "xyes"; then | |
700 AC_MSG_ERROR([Cannot find FluidSynth development files (ver >= 1.0.6), but compilation of AMIDI-Plug FluidSynth backend has been explicitly requested; please install FluidSynth dev files and run configure again]) | |
701 enable_amidiplug_fluidsynth=no | |
702 else | |
703 enable_amidiplug_fluidsynth=no | |
704 fi | |
705 fi | |
706 fi | |
707 if test "x$enable_amidiplug_dummy" = "xauto" -o "x$enable_amidiplug_dummy" = "xyes"; then | |
708 AMIDIPLUG_BACKENDS="$AMIDIPLUG_BACKENDS backend-dummy" | |
709 enable_amidiplug_dummy=yes | |
710 fi | |
711 AC_SUBST(AMIDIPLUG_BACKENDS) | |
634 | 712 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
|
713 |
1387 | 714 if test "x$enable_amidiplug" = "xyes"; then |
715 INPUT_PLUGINS="$INPUT_PLUGINS amidi-plug" | |
716 fi | |
717 | |
718 | |
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
|
719 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
|
720 |
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
|
721 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
|
722 [ --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
|
723 [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
|
724 [ |
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
|
725 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
|
726 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
|
727 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
|
728 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
|
729 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
|
730 ] |
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
|
731 ) |
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
|
732 |
634 | 733 if test "$enable_timidity" = "yes"; then |
734 INPUT_PLUGINS="$INPUT_PLUGINS timidity" | |
735 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
|
736 |
0 | 737 dnl FreeBSD newpcm driver detection |
738 | |
739 AC_CACHE_CHECK(for FreeBSD newpcm driver, beep_cv_newpcm_driver, | |
740 if test -r "/dev/sndstat"; then | |
741 grep 'newpcm' /dev/sndstat 2>/dev/null 1>/dev/null | |
742 if test "x$?" = "x0"; then | |
743 beep_cv_newpcm_driver="yes" | |
744 else | |
745 beep_cv_newpcm_driver="no" | |
746 fi | |
747 else | |
748 beep_cv_newpcm_driver="no" | |
749 fi | |
750 ) | |
751 | |
752 if test "$beep_cv_newpcm_driver" = "yes"; then | |
753 AC_DEFINE(HAVE_NEWPCM, 1, [Define if you have the FreeBSD newpcm driver]) | |
754 fi | |
755 | |
756 | |
757 AC_CHECK_HEADERS(linux/cdrom.h) | |
758 AC_CHECK_HEADERS(sys/cdio.h) | |
759 AC_CHECK_HEADERS(linux/joystick.h) | |
760 AC_CHECK_HEADERS(unistd.h) | |
761 AC_CHECK_HEADERS(fcntl.h) | |
762 AC_CHECK_HEADERS(sys/ioctl.h) | |
763 AC_CHECK_HEADERS(fnmatch.h) | |
764 AC_CHECK_HEADERS(limits.h) | |
765 AC_CHECK_HEADERS(wchar.h) | |
766 AC_CHECK_HEADERS(fts.h) | |
767 | |
242 | 768 AC_CHECK_FUNCS([mkdtemp getmntinfo strtoul lrintf]) |
0 | 769 |
770 | |
771 if test "${ac_cv_header_linux_cdrom_h}" = "yes" || test "${ac_cv_header_sys_cdio_h}" = "yes" | |
772 then | |
773 case "$host" in | |
774 *-*-sunos* | *-*-solaris* | *-*-linux*) | |
775 AC_DEFINE(BEEP_CDROM_SOLARIS,, [Define if cdrom access is in Solaris style]) | |
776 ;; | |
777 *-*-freebsd*) | |
778 AC_DEFINE(BEEP_CDROM_BSD,, [Define if cdrom access is in BSD style]) | |
779 ;; | |
780 *-*-netbsd* | *-*-openbsd*) | |
781 AC_DEFINE(BEEP_CDROM_BSD,, [Define if cdrom access is in BSD style]) | |
782 AC_DEFINE(BEEP_CDROM_BSD_NETBSD,, [Define if cdrom access uses NetBSD variant]) | |
783 ;; | |
784 *-*darwin*) | |
785 AC_DEFINE(BEEP_CDROM_BSD,, [Define if cdrom access is in BSD style]) | |
786 AC_DEFINE(BEEP_CDROM_BSD_DARWIN,, [Define if cdrom access uses Darwin variant]) | |
787 ;; | |
788 esac | |
789 fi | |
790 | |
791 | |
792 AM_CONDITIONAL(HAVE_CDROM, test "${ac_cv_header_linux_cdrom_h}" = "yes" || test "${ac_cv_header_sys_cdio_h}" = "yes") | |
793 AM_CONDITIONAL(HAVE_LINUX_JOYSTICK,test "${ac_cv_header_linux_joystick_h}" = "yes") | |
794 | |
795 if test -n "$GCC" | |
796 then | |
995
e4089d6b0fcf
[svn] Reduce amount of emitted GCC 4.1 warnings to 6. For that boring rainy afternoon, remove the two -Wno statements in CFLAGS (configure.ac) and you will see the actual amount.
chainsaw
parents:
978
diff
changeset
|
797 CFLAGS="$CFLAGS -Wall -Wno-strict-aliasing -Wno-unused-parameter -Wpointer-arith -finline-functions -ffast-math" |
0 | 798 case "$CFLAGS" in |
799 -g*) ;; | |
800 *\ -g*) ;; | |
801 *) CFLAGS="$CFLAGS -fomit-frame-pointer" ;; | |
802 esac | |
803 case "$host" in | |
804 *-*-freebsd*) | |
805 ;; | |
806 *) | |
807 CFLAGS="$CFLAGS -funroll-all-loops" | |
808 ;; | |
809 esac | |
810 fi | |
811 | |
812 AC_MSG_CHECKING(if __ELF__ is defined) | |
813 AC_EGREP_CPP(yes, | |
814 [#ifdef __ELF__ | |
815 yes | |
816 #endif | |
817 ], | |
818 [is_elf=yes], | |
819 [is_elf=no] | |
820 ) | |
821 AC_MSG_RESULT([${is_elf}]) | |
822 | |
823 | |
824 have_solaris=no | |
825 have_sun=no | |
826 ARCH_DEFINES="" | |
827 case "$host" in | |
828 *-*-openbsd* | *-*-netbsd*) | |
829 have_sun=yes | |
830 if test "${is_elf}" = "no" | |
831 then | |
832 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any]) | |
833 fi | |
758
f9e8807ea6e5
[svn] - Initial port of the bsd/sun audio output plugin from XMMS. Needs testing.
nenolod
parents:
756
diff
changeset
|
834 OUTPUT_PLUGINS="$OUTPUT_PLUGINS sun" |
0 | 835 ;; |
836 *-*-darwin*) | |
837 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any]) | |
838 ;; | |
839 *-hpux-*) | |
840 ARCH_DEFINES="-DHPUX" | |
841 ;; | |
842 *-*-solaris* | *-*-sunos*) | |
843 have_solaris=yes | |
844 ;; | |
845 esac | |
846 | |
847 arch_type=other | |
848 x86_asm=no | |
849 case "$host" in | |
850 i386-*-* | i486-*-* | i586-*-* | i686-*-* | i86pc-*-*) | |
851 arch_type=ix86 | |
852 case "$host" in | |
853 *-*-netbsd* | *-*openbsd*) | |
854 ;; | |
855 *) | |
856 ARCH_DEFINES="-DI386_ASSEM" | |
857 x86_asm=yes | |
858 ;; | |
859 esac | |
860 ;; | |
861 esac | |
862 | |
688 | 863 dnl *** Scrobbler *** |
864 | |
865 scrobbler="yes" | |
866 | |
867 dnl Checks for libmusicbrainz | |
692 | 868 PKG_CHECK_MODULES(MUSICBRAINZ, [libmusicbrainz >= 2.0.0], , [scrobbler="no"]) |
688 | 869 |
870 dnl libcurl check | |
871 | |
872 my_cv_curl_vers=NONE | |
873 dnl check is the plain-text version of the required version | |
874 check="7.9.7" | |
875 dnl check_hex must be UPPERCASE if any hex letters are present | |
876 check_hex="070907" | |
877 | |
878 AC_MSG_CHECKING([for curl >= $check]) | |
879 | |
960 | 880 PKG_CHECK_MODULES(CURL, [libcurl >= 7.9.7], , [scrobbler="no"]) |
688 | 881 |
882 if test "x$scrobbler" = "xyes"; then | |
883 GENERAL_PLUGINS="$GENERAL_PLUGINS scrobbler" | |
884 fi | |
885 | |
886 AC_SUBST(CURL_CFLAGS) | |
887 AC_SUBST(CURL_LIBS) | |
888 AC_SUBST(MUSICBRAINZ_LIBS) | |
889 | |
890 dnl *** End of Scrobbler checks *** | |
0 | 891 |
892 AC_SUBST(ARCH_DEFINES) | |
893 AM_CONDITIONAL(ARCH_X86, test "x$arch_type" = "xix86") | |
894 AM_CONDITIONAL(USE_X86ASM, test "x$x86_asm" = xyes) | |
895 AM_CONDITIONAL(HAVE_SOLARIS, test "x$have_solaris" = xyes) | |
896 AM_CONDITIONAL(HAVE_SUN, test "x$have_sun" = xyes) | |
897 | |
1425 | 898 plugindir="$libdir/audacious" |
0 | 899 AC_SUBST(plugindir) |
900 | |
901 if test "x$enable_one_plugin_dir" = "xyes"; then | |
902 pluginsubs="\\\"Plugins\\\"" | |
903 INPUT_PLUGIN_DIR=Plugins | |
904 OUTPUT_PLUGIN_DIR=Plugins | |
905 EFFECT_PLUGIN_DIR=Plugins | |
906 GENERAL_PLUGIN_DIR=Plugins | |
907 VISUALIZATION_PLUGIN_DIR=Plugins | |
908 else | |
909 pluginsubs="\\\"Output\\\",\\\"Input\\\",\\\"Effect\\\",\\\"General\\\",\\\"Visualization\\\"" | |
910 INPUT_PLUGIN_DIR=Input | |
911 OUTPUT_PLUGIN_DIR=Output | |
912 EFFECT_PLUGIN_DIR=Effect | |
913 GENERAL_PLUGIN_DIR=General | |
914 VISUALIZATION_PLUGIN_DIR=Visualization | |
915 fi | |
916 | |
917 AC_SUBST(INPUT_PLUGIN_DIR) | |
918 AC_SUBST(OUTPUT_PLUGIN_DIR) | |
919 AC_SUBST(EFFECT_PLUGIN_DIR) | |
920 AC_SUBST(GENERAL_PLUGIN_DIR) | |
921 AC_SUBST(VISUALIZATION_PLUGIN_DIR) | |
922 AC_SUBST(pluginsubs) | |
923 | |
1421 | 924 dnl XXX Work around some autoconf bugs. |
1422 | 925 if test "$prefix" = "NONE"; then |
1421 | 926 prefix="${ac_default_prefix}" |
927 fi | |
928 | |
1425 | 929 if test -z "$datadir"; then |
930 datadir="${prefix}/share" | |
1418
0d6d938bc936
[svn] - work around a possible autoconf bug causing datadir to be blank
nenolod
parents:
1408
diff
changeset
|
931 fi |
0d6d938bc936
[svn] - work around a possible autoconf bug causing datadir to be blank
nenolod
parents:
1408
diff
changeset
|
932 |
1425 | 933 localedir="$datadir/locale" |
0 | 934 AC_SUBST(localedir) |
935 | |
936 BEEP_DEFINES="$CFLAGS -DDATA_DIR=\\\"$datadir/audacious\\\" -DPLUGIN_DIR=\\\"$plugindir\\\" -DPLUGINSUBS=$pluginsubs -DLOCALEDIR=\\\"$localedir\\\"" | |
937 CFLAGS="$CFLAGS $EXTRA_CFLAGS" | |
938 | |
939 if test "$enable_user_plugin_dir" = "no"; then | |
940 AC_DEFINE(DISABLE_USER_PLUGIN_DIR,, [Define to disable per user plugin directory]) | |
941 fi | |
942 | |
943 AC_SUBST(BEEP_DEFINES) | |
944 | |
945 AC_SUBST(beepdir) | |
946 AC_SUBST(plugindir) | |
947 | |
634 | 948 AC_SUBST(EFFECT_PLUGINS) |
949 AC_SUBST(GENERAL_PLUGINS) | |
950 AC_SUBST(INPUT_PLUGINS) | |
951 AC_SUBST(OUTPUT_PLUGINS) | |
952 AC_SUBST(VISUALIZATION_PLUGINS) | |
38 | 953 |
0 | 954 AC_CONFIG_FILES([ |
955 audacious.1 | |
956 audacious.spec | |
957 audacious.pc | |
958 audacious/audacious.desktop | |
959 audacious/images/Makefile | |
960 libaudacious/Makefile | |
1105
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
961 libguess/Makefile |
62 | 962 Plugins/Makefile |
963 Plugins/Output/Makefile | |
964 Plugins/Output/OSS/Makefile | |
965 Plugins/Output/esd/Makefile | |
966 Plugins/Output/alsa/Makefile | |
325
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
967 Plugins/Output/jack/Makefile |
810
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
794
diff
changeset
|
968 Plugins/Output/arts/Makefile |
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
794
diff
changeset
|
969 Plugins/Output/arts/arts_helper/Makefile |
62 | 970 Plugins/Output/disk_writer/Makefile |
759 | 971 Plugins/Output/sun/Makefile |
62 | 972 Plugins/Input/Makefile |
973 Plugins/Input/mpg123/Makefile | |
974 Plugins/Input/aac/Makefile | |
1025
2b42e48a688e
[svn] - fix a potential crash in our read callback (for VFS)
nenolod
parents:
1023
diff
changeset
|
975 Plugins/Input/aac/mp4ff/Makefile |
62 | 976 Plugins/Input/aac/libfaad2/Makefile |
977 Plugins/Input/aac/src/Makefile | |
278
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
978 Plugins/Input/modplug/Makefile |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
979 Plugins/Input/modplug/archive/Makefile |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
980 Plugins/Input/modplug/gui/Makefile |
293
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
981 Plugins/Input/musepack/Makefile |
62 | 982 Plugins/Input/tonegen/Makefile |
983 Plugins/Input/vorbis/Makefile | |
984 Plugins/Input/cdaudio/Makefile | |
985 Plugins/Input/wav/Makefile | |
986 Plugins/Input/flac/Makefile | |
987 Plugins/Input/flac/plugin_common/Makefile | |
269
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
988 Plugins/Input/sid/Makefile |
111
9d6a24d21322
[svn] Update configure to generate the makefile for the SPC decoder...
nenolod
parents:
89
diff
changeset
|
989 Plugins/Input/console/Makefile |
139 | 990 Plugins/Input/wma/Makefile |
991 Plugins/Input/wma/libffwma/Makefile | |
285
d1762728ea4b
[svn] Timidity support, via external contractor dai+audacious@cdr.jp.
nenolod
parents:
283
diff
changeset
|
992 Plugins/Input/timidity/Makefile |
d1762728ea4b
[svn] Timidity support, via external contractor dai+audacious@cdr.jp.
nenolod
parents:
283
diff
changeset
|
993 Plugins/Input/timidity/libtimidity/Makefile |
d1762728ea4b
[svn] Timidity support, via external contractor dai+audacious@cdr.jp.
nenolod
parents:
283
diff
changeset
|
994 Plugins/Input/timidity/src/Makefile |
332
07576d3ed844
[svn] Sexypsf input plugin; patch by dai in bug #395.
chainsaw
parents:
325
diff
changeset
|
995 Plugins/Input/sexypsf/Makefile |
359 | 996 Plugins/Input/adplug/Makefile |
997 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
|
998 Plugins/Input/amidi-plug/Makefile |
1387 | 999 Plugins/Input/amidi-plug/pcfg/Makefile |
1000 Plugins/Input/amidi-plug/backend-alsa/Makefile | |
1001 Plugins/Input/amidi-plug/backend-fluidsynth/Makefile | |
1002 Plugins/Input/amidi-plug/backend-dummy/Makefile | |
1457
bbd5869239e5
[svn] RockLight visualization plugin ported from XMMS.
chainsaw
parents:
1425
diff
changeset
|
1003 Plugins/Visualization/Makefile |
bbd5869239e5
[svn] RockLight visualization plugin ported from XMMS.
chainsaw
parents:
1425
diff
changeset
|
1004 Plugins/Visualization/blur_scope/Makefile |
bbd5869239e5
[svn] RockLight visualization plugin ported from XMMS.
chainsaw
parents:
1425
diff
changeset
|
1005 Plugins/Visualization/rocklight/Makefile |
116 | 1006 Plugins/General/Makefile |
1007 Plugins/General/song_change/Makefile | |
157 | 1008 Plugins/General/lirc/Makefile |
688 | 1009 Plugins/General/scrobbler/Makefile |
277 | 1010 Plugins/Effect/Makefile |
937
6158ee7d8b06
[svn] Port AudioCompress (AGC) effect plugin from XMMS, as requested by Junics on SorceryNet.
chainsaw
parents:
920
diff
changeset
|
1011 Plugins/Effect/audiocompress/Makefile |
277 | 1012 Plugins/Effect/ladspa/Makefile |
920
999d1af32ab4
[svn] Extra_stereo effect plugin ported by deitarion. Some last pointer-related touchups by nemo & me.
chainsaw
parents:
885
diff
changeset
|
1013 Plugins/Effect/stereo_plugin/Makefile |
812
f9a1ddb72432
[svn] - add voice_removal plugin. Ported by: Thomas Cort <linuxgeek -at- gmail.com>, tcort @ #audacious.
nenolod
parents:
810
diff
changeset
|
1014 Plugins/Effect/voice_removal/Makefile |
0 | 1015 po/Makefile.in |
1016 intl/Makefile | |
1017 icons/Makefile | |
1018 skin/Makefile | |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
539
diff
changeset
|
1019 mk/rules.mk |
0 | 1020 ]) |
1021 | |
1022 AC_OUTPUT | |
1023 | |
1024 | |
1025 echo | |
1026 echo "Configuration:" | |
1027 echo | |
1028 echo " Install path: ${prefix}" | |
1029 | |
1030 if test "$BEEP_PATH" != "no"; then | |
38 | 1031 echo " Current Audacious executable: $BEEP_PATH" |
0 | 1032 fi |
1033 | |
1034 echo " Configuration path: \$HOME/$rc_path" | |
1035 echo | |
1036 echo " Use one plugin dir: $enable_one_plugin_dir" | |
1037 echo " Allow user plugin dir: $enable_user_plugin_dir" | |
1038 echo | |
1039 echo " XMMS Legacy" | |
1040 echo " -----------" | |
1041 echo " Equalization (works only with mpg123) $use_xmms_eq" | |
1042 echo | |
1043 echo " GNOME support" | |
1044 echo " -------------" | |
1045 echo " GConf support $enable_gconf" | |
1046 echo " VFS support $enable_gnomevfs" | |
1047 echo | |
1048 echo " Output Plugins" | |
1049 echo " --------------" | |
1050 echo " Open Sound System (oss): $have_oss" | |
1051 echo " Advanced Linux Sound Arch. (alsa): $have_alsa" | |
1052 echo " Enlightenment Sound Daemon (esd): $have_esd" | |
325
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
1053 echo " Jack Audio Connection Kit (jack): $have_jack" |
810
e9509e909193
[svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents:
794
diff
changeset
|
1054 echo " Analog Realtime Synthesizer (arts): $have_arts" |
758
f9e8807ea6e5
[svn] - Initial port of the bsd/sun audio output plugin from XMMS. Needs testing.
nenolod
parents:
756
diff
changeset
|
1055 echo " BSD/SUN audio output (sun): $have_sun" |
0 | 1056 echo |
1057 echo " Input Plugins" | |
1058 echo " -------------" | |
1059 echo " MPEG 1/2/3 (mpg123): $enable_mp3" | |
2 | 1060 echo " MPEG 4 Audio (AAC): $enable_aac" |
260
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
1061 echo " Windows Media Audio (wma): $enable_wma" |
293
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
1062 echo " .mpc playback (musepack): $enable_musepack" |
1366
f66048e606f0
[svn] Show whether modplug will actually be built (wrong var was being displayed).
chainsaw
parents:
1353
diff
changeset
|
1063 echo " Module decoder (modplug): $have_modplug" |
1387 | 1064 echo " MIDI modular plugin (amidi-plug): $enable_amidiplug" |
1065 echo " -> ALSA backend: $enable_amidiplug_alsa" | |
1066 echo " -> FluidSynth backend: $enable_amidiplug_fluidsynth" | |
1067 echo " -> dummy backend: $enable_amidiplug_dummy" | |
285
d1762728ea4b
[svn] Timidity support, via external contractor dai+audacious@cdr.jp.
nenolod
parents:
283
diff
changeset
|
1068 echo " MIDI to WAVE converter (timidity): $enable_timidity" |
0 | 1069 echo " CD Digital Audio (cdda): yes" |
1070 echo " Microsoft WAV (wav): yes" | |
184
740c072f8e23
[svn] List sndfile extensions in the plugin configuration table.
chainsaw
parents:
165
diff
changeset
|
1071 echo " + sndfile extensions: $enable_sndfile" |
11 | 1072 echo " Tone Generator: yes" |
0 | 1073 echo " Ogg Vorbis (vorbis): $have_oggvorbis" |
270
c7efd92ee0e8
[svn] Update plugin descriptions in feature overview.
chainsaw
parents:
269
diff
changeset
|
1074 echo " Free Lossless Audio Codec (flac): $have_flac" |
c7efd92ee0e8
[svn] Update plugin descriptions in feature overview.
chainsaw
parents:
269
diff
changeset
|
1075 echo " Commodore 64 audio (sid): $have_sidplay" |
c7efd92ee0e8
[svn] Update plugin descriptions in feature overview.
chainsaw
parents:
269
diff
changeset
|
1076 echo " Game music (spc, nsf & gbs): yes" |
343
7b71e0dbb62d
[svn] Replace a tab with spaces to make Mikachu happy.
chainsaw
parents:
332
diff
changeset
|
1077 echo " PlayStation audio (sexypsf): yes" |
359 | 1078 echo " AdLib synthesizer (adplug): $have_adplug" |
270
c7efd92ee0e8
[svn] Update plugin descriptions in feature overview.
chainsaw
parents:
269
diff
changeset
|
1079 echo |
116 | 1080 echo " General" |
1081 echo " -------" | |
1082 echo " Song Change: yes" | |
157 | 1083 echo " LIRC: $have_lirc" |
688 | 1084 echo " AudioScrobbler Client: $scrobbler" |
270
c7efd92ee0e8
[svn] Update plugin descriptions in feature overview.
chainsaw
parents:
269
diff
changeset
|
1085 echo |
277 | 1086 echo " Effect" |
1087 echo " ------" | |
937
6158ee7d8b06
[svn] Port AudioCompress (AGC) effect plugin from XMMS, as requested by Junics on SorceryNet.
chainsaw
parents:
920
diff
changeset
|
1088 echo " AudioCompressor (AGC): yes" |
277 | 1089 echo " LADSPA effects host (ladspa): yes" |
812
f9a1ddb72432
[svn] - add voice_removal plugin. Ported by: Thomas Cort <linuxgeek -at- gmail.com>, tcort @ #audacious.
nenolod
parents:
810
diff
changeset
|
1090 echo " Voice Removal: yes" |
277 | 1091 echo |
0 | 1092 echo " Visualization" |
1093 echo " -------------" | |
1094 echo " Blur Scope: yes" | |
1095 echo | |
1096 | |
1097 if test "$beep_cv_lib_xlibs_threadsafe" = "no"; then | |
32 | 1098 echo "Note: You need to have thread-safe xlibs to use Audacious." |
0 | 1099 echo "If you are using libc5 thread aware Xlibs just skip this." |
1100 echo "" | |
1101 echo "If you don't have those libs and you are on a libc5 system get them at:" | |
1102 echo "ftp://ftp.dent.med.uni-muenchen.de/pub/wmglo/" | |
1103 fi | |
1104 | |
1105 if test "$BEEP_PATH" != "no" && test "$prefix/bin/audacious" != "$BEEP_PATH" ; then | |
1106 echo "" | |
1107 echo "Note: Configure has discovered that you already have Audacious installed" | |
1108 echo "and it does not match with the given --prefix. You have Audacious installed " | |
1109 echo "in $(dirname $BEEP_PATH) and you chose $prefix/bin." | |
1110 echo | |
1111 echo "If you don't want two copies of Audacious installed, rerun configure with" | |
1112 echo "the --prefix option set to the location of the old Audacious, or uninstall" | |
1113 echo "the old Audacious." | |
1114 fi | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
1115 |
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
1116 if test "x$ap_disable_timidity" = "xyes" && test "x$enable_timidity" = "xno"; then |
1387 | 1117 echo "Note: an ALSA-supported hardware midi synth or a FluidSynth software synth" |
1118 echo "was detected in configuration; in order to use it, the amidi-plug input" | |
1119 echo "plugin will be compiled in place of timidity. If you wish to compile timidity" | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
1120 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
|
1121 echo "" |
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
1122 fi |