annotate configure.ac @ 91:896d763051da trunk

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