annotate configure.ac @ 600:4a614d88c8cb trunk

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