0
|
1 dnl Process this file with autoconf to produce a configure script.
|
|
2
|
|
3 AC_INIT(audacious, 0.1)
|
|
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,
|
|
69 [ --rc-path=path Resource and configuration path for bmp relative to $HOME.],
|
|
70 [rc_path=$withval],
|
|
71 [rc_path=.audacious]
|
|
72 )
|
|
73 AC_DEFINE_UNQUOTED(BMP_RCPATH, "$rc_path",
|
|
74 [Resource and configuration path for bmp relative to $HOME.]
|
|
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,
|
|
91 [ --with-dev-dsp=path Path to OSS DSP data pipe, default is /dev/dsp.],
|
|
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,
|
|
100 [ --with-dev-mixer=path Path to OSS sound mixer, default is /dev/mixer.],
|
|
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,
|
|
109 [ --with-cdda-device=path Path to default cdaudio device.],
|
|
110 [AC_DEFINE_UNQUOTED(CDDA_DEVICE, "$withval",
|
|
111 [Path to default cdaudio device.]
|
|
112 )
|
|
113 ]
|
|
114 )
|
|
115
|
|
116 AC_ARG_WITH(cdda-dir,
|
|
117 [ --with-cdda-dir=path Path to default cdaudio directory.],
|
|
118 [AC_DEFINE_UNQUOTED(CDDA_DIRECTORY, "$withval",
|
|
119 [Path to default cdaudio directory.]
|
|
120 )
|
|
121 ]
|
|
122 )
|
|
123
|
|
124
|
|
125 dnl If {type}_PLUGINS is defined, it should be a comma or space separated
|
|
126 dnl list of plugins that should be built, e.g.,
|
|
127 dnl INPUT_PLUGINS="mpg123,cdaudio cdin". If variable is not defined, all
|
|
128 dnl buildable plugins are compiled. This stuff makes life easier for
|
|
129 dnl automated builds that want to disable certain plugins.
|
|
130
|
|
131 for class in EFFECT GENERAL INPUT OUTPUT VISUALIZATION; do
|
|
132 value=`eval echo "\\$${class}_PLUGINS"`
|
|
133 if test "${value}" = ""; then
|
|
134 eval ${class}_PLUGINS="\$\(ALL_PLUGINS\)"
|
|
135 else
|
|
136 value=`echo ${value} | sed -e 's/,/ /g'`
|
|
137 eval ${class}_PLUGINS="\${value}"
|
|
138 fi
|
|
139 done
|
|
140
|
|
141 AC_SUBST(EFFECT_PLUGINS)
|
|
142 AC_SUBST(GENERAL_PLUGINS)
|
|
143 AC_SUBST(INPUT_PLUGINS)
|
|
144 AC_SUBST(OUTPUT_PLUGINS)
|
|
145 AC_SUBST(VISUALIZATION_PLUGINS)
|
|
146
|
|
147
|
|
148 dnl Option to change equalizer to the old XMMS one which only works with the mpg123
|
|
149 dnl plugin (or rather, only implemented within the plugin)
|
|
150
|
|
151 AC_ARG_WITH(xmms-eq,
|
|
152 [ --with-xmms-eq Use old XMMS equalization code.],
|
|
153 [use_xmms_eq=$withval],
|
|
154 [use_xmms_eq=no]
|
|
155 )
|
|
156
|
|
157 if test "$use_xmms_eq" = "yes"; then
|
|
158 AC_DEFINE(XMMS_EQ, , [Define if building with old XMMS equalization code.])
|
|
159 fi
|
|
160
|
|
161
|
|
162 dnl Check for X
|
|
163 dnl FIXME: remove this dependency
|
|
164
|
|
165 AC_PATH_XTRA
|
|
166 if test "$no_x" = "yes" ; then
|
|
167 AC_MSG_ERROR([Cannot find X11 headers/libraries])
|
|
168 fi
|
|
169
|
|
170 dnl Check for GTK/GLib/GThread/Pango
|
|
171
|
|
172 PKG_CHECK_MODULES(GTK, [glib-2.0 >= 2.4.0 gtk+-2.0 >= 2.4.0 gthread-2.0 pango],
|
|
173 [ADD_PC_REQUIRES([glib-2.0 >= 2.4.0, gtk+-2.0 >= 2.4.0])],
|
|
174 [AC_MSG_ERROR([Cannot find glib2/gtk2/pango])]
|
|
175 )
|
|
176
|
|
177 dnl Check for libglade
|
|
178
|
|
179 PKG_CHECK_MODULES(LIBGLADE, [libglade-2.0 >= 2.3.1],
|
|
180 [],
|
|
181 [AC_MSG_ERROR([Cannot find libglade])]
|
|
182 )
|
|
183
|
|
184
|
|
185 dnl x86 SIMD(3DNow!/MMX) instructions support
|
|
186 dnl ========================
|
|
187
|
|
188 AC_ARG_ENABLE(simd,
|
|
189 [ --enable-simd build with x86 SIMD(3DNow!/MMX) instructions support (default=no)],
|
|
190 [USE_SIMD=$enableval],
|
|
191 [USE_SIMD=no]
|
|
192 )
|
|
193
|
|
194 if test "$USE_SIMD" = "yes"; then
|
|
195 AC_DEFINE(USE_SIMD, , [Define if building with ia32 SIMD support])
|
|
196 fi
|
|
197
|
|
198 AM_CONDITIONAL(USE_SIMD, test "$USE_SIMD" = "yes")
|
|
199 AC_SUBST(USE_SIMD_TRUE)
|
|
200
|
|
201
|
|
202 # Check if socklen_t is defined
|
|
203
|
|
204 AC_CACHE_CHECK(for socklen_t, beep_cv_type_socklen_t,
|
|
205 [AC_TRY_COMPILE(
|
|
206 [#include <sys/types.h>
|
|
207 #include <sys/socket.h>],
|
|
208 [socklen_t s;],
|
|
209 [beep_cv_type_socklen_t=yes],
|
|
210 [beep_cv_type_socklen_t=no]
|
|
211 )
|
|
212 ]
|
|
213 )
|
|
214
|
|
215 if test "$beep_cv_type_socklen_t" = "no"; then
|
|
216 AC_DEFINE(socklen_t, int, [Define to int if the socklen_t type is missing])
|
|
217 fi
|
|
218
|
|
219
|
|
220 dnl GConf support
|
|
221
|
|
222 AC_ARG_ENABLE( gconf,
|
|
223 [ --enable-gconf enable GConf support (default=disabled)],
|
|
224 [enable_gconf=$enableval],
|
|
225 [enable_gconf="no"]
|
|
226 )
|
|
227
|
|
228 if test "$enable_gconf" = "yes"; then
|
|
229 PKG_CHECK_MODULES(GCONF, [gconf-2.0 >= 2.6.0],
|
|
230 [
|
|
231 AC_DEFINE(HAVE_GCONF, , [Define if building with GConf support])
|
|
232 ADD_PC_REQUIRES([gconf-2.0 >= 2.6.0])
|
|
233 ],
|
|
234 [AC_MSG_ERROR([Cannot find GConf])]
|
|
235 )
|
|
236 fi
|
|
237
|
|
238 AM_CONDITIONAL(HAVE_GCONF, test "$enable_gconf" = "yes")
|
|
239
|
|
240
|
|
241 dnl GnomeVFS support
|
|
242
|
|
243 AC_ARG_ENABLE( gnome-vfs,
|
|
244 [ --enable-gnome-vfs enable GnomeVFS support (default=disabled)],
|
|
245 [enable_gnomevfs=$enableval],
|
|
246 [enable_gnomevfs="no"]
|
|
247 )
|
|
248
|
|
249 if test "$enable_gnomevfs" = "yes"; then
|
|
250 PKG_CHECK_MODULES(GNOMEVFS, [gnome-vfs-2.0 >= 2.6.0],
|
|
251 [
|
|
252 AC_DEFINE(HAVE_GNOME_VFS, , [Define if building with GnomeVFS support])
|
|
253 ADD_PC_REQUIRES([gnome-vfs-2.0 >= 2.6.0])
|
|
254 ],
|
|
255 [AC_MSG_ERROR([Cannot find GnomeVFS])]
|
|
256 )
|
|
257 fi
|
|
258
|
|
259 AM_CONDITIONAL(HAVE_GNOME_VFS, test "$enable_gnomevfs" = "yes")
|
|
260
|
|
261
|
|
262 dnl Check for esound
|
|
263
|
|
264 AC_ARG_ENABLE( esd,
|
|
265 [ --disable-esd disable esound output plugin [default=enabled]],
|
|
266 [enable_esd=$enableval],
|
|
267 [enable_esd="yes"]
|
|
268 )
|
|
269
|
|
270 if test "$enable_esd" = "yes"; then
|
|
271 PKG_CHECK_MODULES(ESD, [esound >= 0.2],
|
|
272 [have_esd=yes],
|
|
273 [have_esd=no]
|
|
274 )
|
|
275 else
|
|
276 AC_MSG_RESULT([*** esound plugin disabled per user request ***])
|
|
277 have_esd=no
|
|
278 fi
|
|
279
|
|
280 AM_CONDITIONAL(HAVE_ESD, test "$have_esd" = "yes")
|
|
281
|
|
282
|
|
283 dnl *** MP3
|
|
284
|
|
285 AC_ARG_ENABLE(mp3,
|
|
286 [ --disable-mp3 disable mp3 plugin. [default=enabled] ],
|
|
287 [enable_mp3=$enableval],
|
|
288 [enable_mp3=yes]
|
|
289 )
|
|
290
|
|
291 AM_CONDITIONAL(ENABLE_MPG123, test "$enable_mp3" = "yes")
|
|
292
|
|
293 dnl *** id3lib
|
|
294 dnl only makes sence if mp3's enabled
|
|
295 if test "x$enable_mp3" = "xyes" ; then
|
|
296
|
|
297 ID3LIBS=""
|
|
298 have_id3lib="no"
|
|
299
|
|
300 dnl here we assume that if libz isn't installed but id3lib is
|
|
301 dnl it's compiled without compression support
|
|
302 AC_CHECK_HEADERS([id3.h],[
|
|
303 AC_CHECK_LIB([z],[compress],[ZLIB='-lz'],[ZLIB=''])
|
|
304 AC_CHECK_LIB([id3],[ID3Tag_New],
|
|
305 [have_id3lib=yes
|
|
306 AC_DEFINE(HAVE_ID3LIB,,[Define when using id3lib])
|
|
307 ID3LIBS="-lstdc++ $ZLIB -lid3"],,[-lstdc++ $ZLIB])])
|
|
308
|
|
309 AC_SUBST(ID3LIBS)
|
|
310
|
|
311 fi dnl $enable_mp3 = yes
|
|
312
|
|
313 dnl *** Ogg Vorbis
|
|
314
|
|
315 AC_ARG_ENABLE(vorbis,
|
|
316 [ --disable-vorbis disable Ogg Vorbis input plugin (default=enabled)],
|
|
317 [enable_vorbis=$enableval],
|
|
318 [enable_vorbis="yes"]
|
|
319 )
|
|
320
|
|
321 if test "$enable_vorbis" = "yes"; then
|
|
322 PKG_CHECK_MODULES(OGG_VORBIS, [ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0],
|
|
323 [have_oggvorbis=yes],
|
|
324 [AC_MSG_ERROR([Cannot find libogg/libvorbis])
|
|
325 have_oggvorbis=no]
|
|
326 )
|
|
327 else
|
|
328 AC_MSG_RESULT([*** Ogg Vorbis plugin disabled per user request ***])
|
|
329 have_oggvorbis=no
|
|
330 fi
|
|
331
|
|
332 AM_CONDITIONAL(HAVE_OGGVORBIS, [test "$have_oggvorbis" = "yes"])
|
|
333
|
2
|
334 dnl *** AAC
|
|
335
|
|
336 AC_ARG_ENABLE(aac,
|
|
337 [ --disable-aac disable aac plugin. [default=enabled] ],
|
|
338 [enable_aac=$enableval],
|
|
339 [enable_aac=yes]
|
|
340 )
|
|
341
|
|
342 AM_CONDITIONAL(ENABLE_AAC, test "$enable_aac" = "yes")
|
0
|
343
|
32
|
344 dnl *** mikmod
|
|
345 AC_ARG_ENABLE( mikmod,
|
|
346 [ --disable-mikmod Disable mikmod input plugin [default=enabled]],,
|
|
347 enable_mikmod="yes")
|
|
348
|
|
349 if test "x$enable_mikmod" = xyes; then
|
|
350 AM_PATH_LIBMIKMOD(3.1.5,have_mikmod=yes, have_mikmod=no)
|
|
351 else
|
|
352 AC_MSG_RESULT([*** mikmod plugin disabled per user request ***])
|
|
353 have_mikmod=no
|
|
354 fi
|
|
355 AM_CONDITIONAL(HAVE_MIKMOD,test "x$have_mikmod" = xyes)
|
|
356
|
50
|
357 dnl *** flac
|
|
358 AC_ARG_ENABLE( flc,
|
|
359 [ --disable-flac Disable flac input plugin [default=enabled]],,
|
|
360 enable_flac="yes")
|
|
361
|
|
362 if test "x$enable_flac" = xyes; then
|
|
363 AM_PATH_LIBFLAC(have_flac=yes, have_flac=no)
|
|
364 else
|
|
365 AC_MSG_RESULT([*** flac plugin disabled per user request ***])
|
|
366 have_flac=no
|
|
367 fi
|
|
368 AM_CONDITIONAL(HAVE_FLAC,test "x$have_flac" = xyes)
|
32
|
369
|
0
|
370 dnl *** OSS output
|
|
371
|
|
372 AC_ARG_ENABLE(oss,
|
|
373 [ --disable-oss disable the OSS output plugin],
|
|
374 [have_oss=$enableval],
|
|
375 [have_oss=yes]
|
|
376 )
|
|
377
|
|
378 if test "$have_oss" = "yes"; then
|
|
379 AC_MSG_CHECKING(for OSS include dir)
|
|
380 OSS_CFLAGS=""
|
|
381 if test -f "/etc/oss.conf" ; then
|
|
382 for i in `cat /etc/oss.conf`; do
|
|
383 t=`echo $i | sed -e 's/OSSLIBDIR=//'`
|
|
384 if test "$i" != "$t" ; then
|
|
385 if test -f "$t/include/sys/soundcard.h" ; then
|
|
386 OSS_CFLAGS="-I$t/include"
|
|
387 fi
|
|
388 fi
|
|
389 done
|
|
390 fi
|
|
391 if test -n "$OSS_CFLAGS" ; then
|
|
392 AC_MSG_RESULT([$OSS_CFLAGS])
|
|
393 else
|
|
394 AC_MSG_RESULT([not found])
|
|
395 fi
|
|
396 CFLAGS_save=$CFLAGS
|
|
397 CFLAGS="$CFLAGS $OSS_CFLAGS"
|
|
398 AC_CHECK_HEADERS(sys/soundcard.h)
|
|
399 AC_CHECK_HEADERS(machine/soundcard.h)
|
|
400 CFLAGS=$CFLAGS_save
|
|
401
|
|
402 if test "${ac_cv_header_sys_soundcard_h}" = "yes" || test "${ac_cv_header_machine_soundcard_h}" = "yes"; then
|
|
403 have_oss=yes
|
|
404 fi
|
|
405 fi
|
|
406
|
|
407 if test "$have_oss" = "yes"; then
|
|
408 AC_DEFINE(HAVE_OSS, 1, [Define if the OSS output plugin should be built])
|
|
409 else
|
|
410 have_oss=no
|
|
411 fi
|
|
412
|
|
413 AM_CONDITIONAL(HAVE_OSS, test "$have_oss" = "yes")
|
|
414
|
|
415
|
|
416 dnl *** ALSA output plugin
|
|
417
|
|
418 AC_ARG_ENABLE(alsa,
|
|
419 [ --disable-alsa disable ALSA input plugin (default=enabled)],
|
|
420 [enable_alsa=$enableval],
|
|
421 [enable_alsa=yes]
|
|
422 )
|
|
423
|
|
424 if test "$enable_alsa" = "yes"; then
|
|
425 PKG_CHECK_MODULES(ALSA, [alsa >= 1.0],
|
|
426 [have_alsa=yes],
|
|
427 [have_alsa=no]
|
|
428 )
|
|
429 else
|
|
430 AC_MSG_RESULT([*** ALSA output plugin disabled per user request ***])
|
|
431 have_alsa=no
|
|
432 fi
|
|
433
|
|
434 AM_CONDITIONAL(HAVE_ALSA, test "$have_alsa" = "yes")
|
|
435
|
|
436
|
|
437 dnl FreeBSD newpcm driver detection
|
|
438
|
|
439 AC_CACHE_CHECK(for FreeBSD newpcm driver, beep_cv_newpcm_driver,
|
|
440 if test -r "/dev/sndstat"; then
|
|
441 grep 'newpcm' /dev/sndstat 2>/dev/null 1>/dev/null
|
|
442 if test "x$?" = "x0"; then
|
|
443 beep_cv_newpcm_driver="yes"
|
|
444 else
|
|
445 beep_cv_newpcm_driver="no"
|
|
446 fi
|
|
447 else
|
|
448 beep_cv_newpcm_driver="no"
|
|
449 fi
|
|
450 )
|
|
451
|
|
452 if test "$beep_cv_newpcm_driver" = "yes"; then
|
|
453 AC_DEFINE(HAVE_NEWPCM, 1, [Define if you have the FreeBSD newpcm driver])
|
|
454 fi
|
|
455
|
|
456
|
|
457 AC_CHECK_HEADERS(linux/cdrom.h)
|
|
458 AC_CHECK_HEADERS(sys/cdio.h)
|
|
459 AC_CHECK_HEADERS(linux/joystick.h)
|
|
460 AC_CHECK_HEADERS(unistd.h)
|
|
461 AC_CHECK_HEADERS(fcntl.h)
|
|
462 AC_CHECK_HEADERS(sys/ioctl.h)
|
|
463 AC_CHECK_HEADERS(fnmatch.h)
|
|
464 AC_CHECK_HEADERS(limits.h)
|
|
465 AC_CHECK_HEADERS(wchar.h)
|
|
466 AC_CHECK_HEADERS(fts.h)
|
|
467
|
|
468 AC_CHECK_FUNCS(mkdtemp)
|
|
469 AC_CHECK_FUNCS(getmntinfo)
|
|
470 AC_CHECK_FUNCS(strtoul)
|
|
471
|
|
472
|
|
473 if test "${ac_cv_header_linux_cdrom_h}" = "yes" || test "${ac_cv_header_sys_cdio_h}" = "yes"
|
|
474 then
|
|
475 case "$host" in
|
|
476 *-*-sunos* | *-*-solaris* | *-*-linux*)
|
|
477 AC_DEFINE(BEEP_CDROM_SOLARIS,, [Define if cdrom access is in Solaris style])
|
|
478 ;;
|
|
479 *-*-freebsd*)
|
|
480 AC_DEFINE(BEEP_CDROM_BSD,, [Define if cdrom access is in BSD style])
|
|
481 ;;
|
|
482 *-*-netbsd* | *-*-openbsd*)
|
|
483 AC_DEFINE(BEEP_CDROM_BSD,, [Define if cdrom access is in BSD style])
|
|
484 AC_DEFINE(BEEP_CDROM_BSD_NETBSD,, [Define if cdrom access uses NetBSD variant])
|
|
485 ;;
|
|
486 *-*darwin*)
|
|
487 AC_DEFINE(BEEP_CDROM_BSD,, [Define if cdrom access is in BSD style])
|
|
488 AC_DEFINE(BEEP_CDROM_BSD_DARWIN,, [Define if cdrom access uses Darwin variant])
|
|
489 ;;
|
|
490 esac
|
|
491 fi
|
|
492
|
|
493
|
|
494 AM_CONDITIONAL(HAVE_CDROM, test "${ac_cv_header_linux_cdrom_h}" = "yes" || test "${ac_cv_header_sys_cdio_h}" = "yes")
|
|
495 AM_CONDITIONAL(HAVE_LINUX_JOYSTICK,test "${ac_cv_header_linux_joystick_h}" = "yes")
|
|
496
|
|
497 if test -n "$GCC"
|
|
498 then
|
|
499 CFLAGS="$CFLAGS -Wall -Wpointer-arith -finline-functions -ffast-math"
|
|
500 case "$CFLAGS" in
|
|
501 -g*) ;;
|
|
502 *\ -g*) ;;
|
|
503 *) CFLAGS="$CFLAGS -fomit-frame-pointer" ;;
|
|
504 esac
|
|
505 case "$host" in
|
|
506 *-*-freebsd*)
|
|
507 ;;
|
|
508 *)
|
|
509 CFLAGS="$CFLAGS -funroll-all-loops"
|
|
510 ;;
|
|
511 esac
|
|
512 fi
|
|
513
|
|
514 AC_MSG_CHECKING(if __ELF__ is defined)
|
|
515 AC_EGREP_CPP(yes,
|
|
516 [#ifdef __ELF__
|
|
517 yes
|
|
518 #endif
|
|
519 ],
|
|
520 [is_elf=yes],
|
|
521 [is_elf=no]
|
|
522 )
|
|
523 AC_MSG_RESULT([${is_elf}])
|
|
524
|
|
525
|
|
526 have_solaris=no
|
|
527 have_sun=no
|
|
528 ARCH_DEFINES=""
|
|
529 case "$host" in
|
|
530 *-*-openbsd* | *-*-netbsd*)
|
|
531 have_sun=yes
|
|
532 if test "${is_elf}" = "no"
|
|
533 then
|
|
534 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any])
|
|
535 fi
|
|
536 ;;
|
|
537 *-*-darwin*)
|
|
538 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any])
|
|
539 ;;
|
|
540 *-hpux-*)
|
|
541 ARCH_DEFINES="-DHPUX"
|
|
542 ;;
|
|
543 *-*-solaris* | *-*-sunos*)
|
|
544 have_solaris=yes
|
|
545 ;;
|
|
546 esac
|
|
547
|
|
548 arch_type=other
|
|
549 x86_asm=no
|
|
550 case "$host" in
|
|
551 i386-*-* | i486-*-* | i586-*-* | i686-*-* | i86pc-*-*)
|
|
552 arch_type=ix86
|
|
553 case "$host" in
|
|
554 *-*-netbsd* | *-*openbsd*)
|
|
555 ;;
|
|
556 *)
|
|
557 ARCH_DEFINES="-DI386_ASSEM"
|
|
558 x86_asm=yes
|
|
559 ;;
|
|
560 esac
|
|
561 ;;
|
|
562 esac
|
|
563
|
|
564
|
|
565 AC_SUBST(ARCH_DEFINES)
|
|
566 AM_CONDITIONAL(ARCH_X86, test "x$arch_type" = "xix86")
|
|
567 AM_CONDITIONAL(USE_X86ASM, test "x$x86_asm" = xyes)
|
|
568 AM_CONDITIONAL(HAVE_SOLARIS, test "x$have_solaris" = xyes)
|
|
569 AM_CONDITIONAL(HAVE_SUN, test "x$have_sun" = xyes)
|
|
570
|
|
571 plugindir=$libdir/audacious
|
|
572 AC_SUBST(plugindir)
|
|
573
|
|
574 if test "x$enable_one_plugin_dir" = "xyes"; then
|
|
575 pluginsubs="\\\"Plugins\\\""
|
|
576 INPUT_PLUGIN_DIR=Plugins
|
|
577 OUTPUT_PLUGIN_DIR=Plugins
|
|
578 EFFECT_PLUGIN_DIR=Plugins
|
|
579 GENERAL_PLUGIN_DIR=Plugins
|
|
580 VISUALIZATION_PLUGIN_DIR=Plugins
|
|
581 else
|
|
582 pluginsubs="\\\"Output\\\",\\\"Input\\\",\\\"Effect\\\",\\\"General\\\",\\\"Visualization\\\""
|
|
583 INPUT_PLUGIN_DIR=Input
|
|
584 OUTPUT_PLUGIN_DIR=Output
|
|
585 EFFECT_PLUGIN_DIR=Effect
|
|
586 GENERAL_PLUGIN_DIR=General
|
|
587 VISUALIZATION_PLUGIN_DIR=Visualization
|
|
588 fi
|
|
589
|
|
590 AC_SUBST(INPUT_PLUGIN_DIR)
|
|
591 AC_SUBST(OUTPUT_PLUGIN_DIR)
|
|
592 AC_SUBST(EFFECT_PLUGIN_DIR)
|
|
593 AC_SUBST(GENERAL_PLUGIN_DIR)
|
|
594 AC_SUBST(VISUALIZATION_PLUGIN_DIR)
|
|
595 AC_SUBST(pluginsubs)
|
|
596
|
|
597 localedir=$datadir/locale
|
|
598 AC_SUBST(localedir)
|
|
599
|
|
600 BEEP_DEFINES="$CFLAGS -DDATA_DIR=\\\"$datadir/audacious\\\" -DPLUGIN_DIR=\\\"$plugindir\\\" -DPLUGINSUBS=$pluginsubs -DLOCALEDIR=\\\"$localedir\\\""
|
|
601 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
|
|
602
|
|
603 if test "$enable_user_plugin_dir" = "no"; then
|
|
604 AC_DEFINE(DISABLE_USER_PLUGIN_DIR,, [Define to disable per user plugin directory])
|
|
605 fi
|
|
606
|
|
607 AC_SUBST(BEEP_DEFINES)
|
|
608
|
|
609 PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex "get_.plugin_info"'
|
|
610 AC_SUBST(PLUGIN_LDFLAGS)
|
|
611
|
|
612 AC_SUBST(beepdir)
|
|
613 AC_SUBST(plugindir)
|
|
614
|
38
|
615 have_libvisual="yes"
|
|
616
|
|
617 AC_CHECK_HEADERS([GL/gl.h GL/glx.h GL/glu.h],opengl="yes",opengl="no")
|
|
618 if test x"$opengl" = xno; then
|
|
619 AC_WARN([OpenGL and Glu headers not found, libvisual support cannot be built])
|
|
620 have_libvisual="no"
|
|
621 fi
|
|
622
|
|
623 AC_PATH_PROG(SDL_CONFIG, [sdl-config], [no])
|
|
624 if test x$SDL_CONFIG = xno ; then
|
|
625 AC_WARN([
|
|
626 *** sdl-config not found.
|
|
627 *** If you have installed from binaries, probably you have not
|
|
628 *** installed SDL development package.
|
|
629 *** See http://www.libsdl.org
|
|
630 ***
|
|
631 *** Disabling compilation of libvisual-proxy.
|
|
632 ])
|
|
633 fi
|
|
634 AM_PATH_SDL(1.2.5, , [AC_WARN([*** SDL >= 1.2.5 not installed - please install first ***])
|
|
635 have_libvisual="no"])
|
|
636
|
|
637 PKG_CHECK_MODULES(LIBVISUAL, libvisual = 0.2.0, [libvis="yes"], [libvis="no"])
|
|
638 if test x"$libvis" = xno; then
|
|
639 have_libvisual="no"
|
|
640 fi
|
|
641 AC_SUBST(LIBVISUAL_LIBS)
|
|
642 AC_SUBST(LIBVISUAL_CFLAGS)
|
|
643
|
|
644 AM_CONDITIONAL(HAVE_LIBVISUAL, test "x$have_libvisual" = xyes)
|
|
645
|
0
|
646 AC_CONFIG_FILES([
|
|
647 Makefile
|
|
648 audacious.1
|
|
649 audacious.spec
|
|
650 audacious.pc
|
|
651 audacious/audacious.desktop
|
|
652 audacious/Makefile
|
|
653 audacious/glade/Makefile
|
|
654 audacious/images/Makefile
|
|
655 libaudacious/Makefile
|
|
656 Output/Makefile
|
|
657 Output/OSS/Makefile
|
|
658 Output/esd/Makefile
|
|
659 Output/alsa/Makefile
|
48
|
660 Output/disk_writer/Makefile
|
0
|
661 Input/Makefile
|
|
662 Input/mpg123/Makefile
|
2
|
663 Input/aac/Makefile
|
|
664 Input/aac/libmp4v2/Makefile
|
|
665 Input/aac/libfaad2/Makefile
|
6
|
666 Input/aac/src/Makefile
|
32
|
667 Input/mikmod/Makefile
|
11
|
668 Input/tonegen/Makefile
|
0
|
669 Input/vorbis/Makefile
|
|
670 Input/cdaudio/Makefile
|
|
671 Input/wav/Makefile
|
50
|
672 Input/flac/Makefile
|
|
673 Input/flac/plugin_common/Makefile
|
0
|
674 Visualization/Makefile
|
|
675 Visualization/blur_scope/Makefile
|
38
|
676 Visualization/libvisual-proxy/Makefile
|
0
|
677 po/Makefile.in
|
|
678 intl/Makefile
|
|
679 icons/Makefile
|
|
680 skin/Makefile
|
|
681 ])
|
|
682
|
|
683 AC_OUTPUT
|
|
684
|
|
685
|
|
686 echo
|
|
687 echo "Configuration:"
|
|
688 echo
|
|
689 echo " Install path: ${prefix}"
|
|
690
|
|
691 if test "$BEEP_PATH" != "no"; then
|
38
|
692 echo " Current Audacious executable: $BEEP_PATH"
|
0
|
693 fi
|
|
694
|
|
695 echo " Configuration path: \$HOME/$rc_path"
|
|
696 echo
|
|
697 echo " Use one plugin dir: $enable_one_plugin_dir"
|
|
698 echo " Allow user plugin dir: $enable_user_plugin_dir"
|
|
699 echo
|
|
700 echo " XMMS Legacy"
|
|
701 echo " -----------"
|
|
702 echo " Equalization (works only with mpg123) $use_xmms_eq"
|
|
703 echo
|
|
704 echo " GNOME support"
|
|
705 echo " -------------"
|
|
706 echo " GConf support $enable_gconf"
|
|
707 echo " VFS support $enable_gnomevfs"
|
|
708 echo
|
|
709 echo " Output Plugins"
|
|
710 echo " --------------"
|
|
711 echo " Open Sound System (oss): $have_oss"
|
|
712 echo " Advanced Linux Sound Arch. (alsa): $have_alsa"
|
|
713 echo " Enlightenment Sound Daemon (esd): $have_esd"
|
|
714 echo
|
|
715 echo " Input Plugins"
|
|
716 echo " -------------"
|
|
717 echo " MPEG 1/2/3 (mpg123): $enable_mp3"
|
|
718 echo " + id3v2 editing: $have_id3lib"
|
2
|
719 echo " MPEG 4 Audio (AAC): $enable_aac"
|
32
|
720 echo " Module decoder (mikmod): $enable_mikmod"
|
0
|
721 echo " CD Digital Audio (cdda): yes"
|
|
722 echo " Microsoft WAV (wav): yes"
|
11
|
723 echo " Tone Generator: yes"
|
0
|
724 echo " Ogg Vorbis (vorbis): $have_oggvorbis"
|
50
|
725 echo " FLAC: $enable_flac"
|
0
|
726 echo ""
|
|
727 echo " Visualization"
|
|
728 echo " -------------"
|
|
729 echo " Blur Scope: yes"
|
38
|
730 echo " libvisual-proxy: $have_libvisual"
|
0
|
731 echo
|
|
732
|
|
733 if test "$beep_cv_lib_xlibs_threadsafe" = "no"; then
|
32
|
734 echo "Note: You need to have thread-safe xlibs to use Audacious."
|
0
|
735 echo "If you are using libc5 thread aware Xlibs just skip this."
|
|
736 echo ""
|
|
737 echo "If you don't have those libs and you are on a libc5 system get them at:"
|
|
738 echo "ftp://ftp.dent.med.uni-muenchen.de/pub/wmglo/"
|
|
739 fi
|
|
740
|
|
741 if test "$BEEP_PATH" != "no" && test "$prefix/bin/audacious" != "$BEEP_PATH" ; then
|
|
742 echo ""
|
|
743 echo "Note: Configure has discovered that you already have Audacious installed"
|
|
744 echo "and it does not match with the given --prefix. You have Audacious installed "
|
|
745 echo "in $(dirname $BEEP_PATH) and you chose $prefix/bin."
|
|
746 echo
|
|
747 echo "If you don't want two copies of Audacious installed, rerun configure with"
|
|
748 echo "the --prefix option set to the location of the old Audacious, or uninstall"
|
|
749 echo "the old Audacious."
|
|
750 fi
|