Mercurial > SDL_sound_CoreAudio
annotate configure.in @ 394:b495d05a88b3
Updated.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Thu, 11 Jul 2002 04:33:17 +0000 |
parents | cbb15ecf423a |
children | 5b06e23d934e |
rev | line source |
---|---|
65 | 1 # Process this file with autoconf to produce a configure script. |
66
54e10585e0cf
Changed AC_INIT() to look for SDL_sound.c, not COPYING, since I'm keeping
Ryan C. Gordon <icculus@icculus.org>
parents:
65
diff
changeset
|
2 AC_INIT(SDL_sound.c) |
65 | 3 |
4 dnl --------------------------------------------------------------------- | |
5 dnl System/version info | |
6 dnl --------------------------------------------------------------------- | |
7 | |
8 # Making releases: | |
9 # MICRO_VERSION += 1; | |
10 # INTERFACE_AGE += 1; | |
11 # BINARY_AGE += 1; | |
12 # if any functions have been added, set INTERFACE_AGE to 0. | |
13 # if backwards compatibility has been broken, | |
14 # set BINARY_AGE and INTERFACE_AGE to 0. | |
15 | |
16 MAJOR_VERSION=0 | |
17 MINOR_VERSION=1 | |
252
c54eae85f5f1
Upped version to 0.1.5.
Ryan C. Gordon <icculus@icculus.org>
parents:
229
diff
changeset
|
18 MICRO_VERSION=5 |
65 | 19 INTERFACE_AGE=0 |
20 BINARY_AGE=0 | |
21 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION | |
22 | |
23 AC_SUBST(MAJOR_VERSION) | |
24 AC_SUBST(MINOR_VERSION) | |
25 AC_SUBST(MICRO_VERSION) | |
26 AC_SUBST(INTERFACE_AGE) | |
27 AC_SUBST(BINARY_AGE) | |
28 AC_SUBST(VERSION) | |
29 | |
30 # libtool versioning | |
31 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION | |
32 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE` | |
33 LT_REVISION=$INTERFACE_AGE | |
34 LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE` | |
35 | |
36 AC_SUBST(LT_RELEASE) | |
37 AC_SUBST(LT_CURRENT) | |
38 AC_SUBST(LT_REVISION) | |
39 AC_SUBST(LT_AGE) | |
40 | |
41 dnl Detect the canonical host and target build environment | |
42 AC_CANONICAL_HOST | |
43 AC_CANONICAL_TARGET | |
44 | |
45 dnl Setup for automake | |
100
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
85
diff
changeset
|
46 AM_CONFIG_HEADER(config.h) |
65 | 47 AM_INIT_AUTOMAKE(SDL_sound, $VERSION) |
48 | |
49 | |
50 dnl --------------------------------------------------------------------- | |
51 dnl Compilers and other tools | |
52 dnl --------------------------------------------------------------------- | |
53 | |
54 AC_PROG_CC | |
55 AC_PROG_INSTALL | |
56 AC_PROG_LN_S | |
377
cbb15ecf423a
WinCE (PocketPC) patches from Tyler.
Ryan C. Gordon <icculus@icculus.org>
parents:
340
diff
changeset
|
57 AM_PROG_LIBTOOL |
65 | 58 |
59 | |
60 dnl --------------------------------------------------------------------- | |
100
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
85
diff
changeset
|
61 dnl Debug mode? |
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
85
diff
changeset
|
62 dnl --------------------------------------------------------------------- |
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
85
diff
changeset
|
63 |
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
85
diff
changeset
|
64 AC_ARG_ENABLE(debug, |
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
85
diff
changeset
|
65 [ --enable-debug enable debug mode [default=no]], |
152
1a0cf9aeee2a
Fix for SMPEG and debug settings.
Ryan C. Gordon <icculus@icculus.org>
parents:
132
diff
changeset
|
66 , enable_debug=no) |
100
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
85
diff
changeset
|
67 if test x$enable_debug = xyes; then |
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
85
diff
changeset
|
68 if test x$ac_cv_prog_cc_g = xyes; then |
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
85
diff
changeset
|
69 CFLAGS="-g -O0" |
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
85
diff
changeset
|
70 else |
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
85
diff
changeset
|
71 CFLAGS="-O0" |
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
85
diff
changeset
|
72 fi |
110 | 73 CFLAGS="$CFLAGS -Werror" |
100
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
85
diff
changeset
|
74 AC_DEFINE(DEBUG) |
105
de42ca5599ac
Added DEBUG_CHATTER to the --enable-debug defines. (This will become a
Ryan C. Gordon <icculus@icculus.org>
parents:
100
diff
changeset
|
75 AC_DEFINE(DEBUG_CHATTER) |
100
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
85
diff
changeset
|
76 else |
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
85
diff
changeset
|
77 AC_DEFINE(NDEBUG) |
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
85
diff
changeset
|
78 fi |
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
85
diff
changeset
|
79 |
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
85
diff
changeset
|
80 |
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
85
diff
changeset
|
81 dnl --------------------------------------------------------------------- |
65 | 82 dnl Checks for libraries. |
83 dnl --------------------------------------------------------------------- | |
84 | |
85 dnl Check for SDL | |
86 SDL_VERSION=1.2.0 | |
87 AM_PATH_SDL($SDL_VERSION, | |
88 :, | |
377
cbb15ecf423a
WinCE (PocketPC) patches from Tyler.
Ryan C. Gordon <icculus@icculus.org>
parents:
340
diff
changeset
|
89 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
65 | 90 ) |
91 CFLAGS="$CFLAGS $SDL_CFLAGS" | |
92 LIBS="$LIBS $SDL_LIBS" | |
93 | |
94 dnl Check for voc decoder inclusion... | |
95 AC_ARG_ENABLE(voc, | |
96 [ --enable-voc enable VOC decoding [default=yes]], | |
97 , enable_voc=yes) | |
98 if test x$enable_voc = xyes; then | |
99 AC_DEFINE(SOUND_SUPPORTS_VOC) | |
100 fi | |
101 | |
102 | |
103 dnl Check for wav decoder inclusion... | |
104 AC_ARG_ENABLE(wav, | |
105 [ --enable-wav enable WAV decoding [default=yes]], | |
106 , enable_wav=yes) | |
107 if test x$enable_wav = xyes; then | |
108 AC_DEFINE(SOUND_SUPPORTS_WAV) | |
109 fi | |
110 | |
111 | |
112 dnl Check for raw decoder inclusion... | |
113 AC_ARG_ENABLE(raw, | |
114 [ --enable-raw enable raw audio "decoding" [default=yes]], | |
115 , enable_raw=yes) | |
116 if test x$enable_raw = xyes; then | |
117 AC_DEFINE(SOUND_SUPPORTS_RAW) | |
118 fi | |
119 | |
120 | |
121 dnl Check for aiff decoder inclusion... | |
122 AC_ARG_ENABLE(aiff, | |
123 [ --enable-aiff enable AIFF decoding [default=yes]], | |
124 , enable_aiff=yes) | |
125 if test x$enable_aiff = xyes; then | |
126 AC_DEFINE(SOUND_SUPPORTS_AIFF) | |
127 fi | |
128 | |
216
07d0939d40e7
Support for .AU files added.
Ryan C. Gordon <icculus@icculus.org>
parents:
209
diff
changeset
|
129 dnl Check for au decoder inclusion |
07d0939d40e7
Support for .AU files added.
Ryan C. Gordon <icculus@icculus.org>
parents:
209
diff
changeset
|
130 AC_ARG_ENABLE(au, |
276
d7d55903124c
Changed --enable-vorbis to --enable-ogg, made other format tweaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
262
diff
changeset
|
131 [ --enable-au enable AU decoding [default=yes]], |
216
07d0939d40e7
Support for .AU files added.
Ryan C. Gordon <icculus@icculus.org>
parents:
209
diff
changeset
|
132 , enable_au=yes) |
07d0939d40e7
Support for .AU files added.
Ryan C. Gordon <icculus@icculus.org>
parents:
209
diff
changeset
|
133 if test x$enable_au = xyes; then |
07d0939d40e7
Support for .AU files added.
Ryan C. Gordon <icculus@icculus.org>
parents:
209
diff
changeset
|
134 AC_DEFINE(SOUND_SUPPORTS_AU) |
07d0939d40e7
Support for .AU files added.
Ryan C. Gordon <icculus@icculus.org>
parents:
209
diff
changeset
|
135 fi |
65 | 136 |
85 | 137 dnl Check for shn decoder inclusion... |
138 AC_ARG_ENABLE(shn, | |
105
de42ca5599ac
Added DEBUG_CHATTER to the --enable-debug defines. (This will become a
Ryan C. Gordon <icculus@icculus.org>
parents:
100
diff
changeset
|
139 [ --enable-shn enable SHN decoding [default=yes]], |
de42ca5599ac
Added DEBUG_CHATTER to the --enable-debug defines. (This will become a
Ryan C. Gordon <icculus@icculus.org>
parents:
100
diff
changeset
|
140 , enable_shn=yes) |
85 | 141 if test x$enable_shn = xyes; then |
142 AC_DEFINE(SOUND_SUPPORTS_SHN) | |
143 fi | |
144 | |
262 | 145 dnl Check for the MIDI decoder... |
110 | 146 AC_ARG_ENABLE(midi, |
201 | 147 [ --enable-midi enable software MIDI music [default=yes]], |
148 , enable_midi=yes) | |
110 | 149 if test x$enable_midi = xyes; then |
150 AC_DEFINE(SOUND_SUPPORTS_MIDI) | |
151 fi | |
152 | |
377
cbb15ecf423a
WinCE (PocketPC) patches from Tyler.
Ryan C. Gordon <icculus@icculus.org>
parents:
340
diff
changeset
|
153 dnl Hooray for shitty autoconf bugs! |
cbb15ecf423a
WinCE (PocketPC) patches from Tyler.
Ryan C. Gordon <icculus@icculus.org>
parents:
340
diff
changeset
|
154 x="C__stream_decoder_new" |
cbb15ecf423a
WinCE (PocketPC) patches from Tyler.
Ryan C. Gordon <icculus@icculus.org>
parents:
340
diff
changeset
|
155 flcsym="FLA$x" |
157 | 156 dnl Check for libFLAC |
157 AC_ARG_ENABLE(flac, | |
158 [ --enable-flac enable FLAC decoding via libFLAC [default=yes]], | |
159 , enable_flac=yes) | |
160 if test x$enable_flac = xyes; then | |
162
3ccce5bb41c0
Changed the header to look for regarding FLAC support from FLAC/all.h to
Ryan C. Gordon <icculus@icculus.org>
parents:
157
diff
changeset
|
161 AC_CHECK_HEADER(FLAC/stream_decoder.h, have_flac_hdr=yes) |
377
cbb15ecf423a
WinCE (PocketPC) patches from Tyler.
Ryan C. Gordon <icculus@icculus.org>
parents:
340
diff
changeset
|
162 AC_CHECK_LIB(FLAC, $flcsym, have_flac_lib=yes) |
157 | 163 if test x$have_flac_hdr = xyes -a x$have_flac_lib = xyes; then |
164 LIBS="$LIBS -lFLAC" | |
165 AC_DEFINE(SOUND_SUPPORTS_FLAC) | |
166 fi | |
167 fi | |
168 | |
377
cbb15ecf423a
WinCE (PocketPC) patches from Tyler.
Ryan C. Gordon <icculus@icculus.org>
parents:
340
diff
changeset
|
169 dnl Hooray for shitty autoconf bugs! |
cbb15ecf423a
WinCE (PocketPC) patches from Tyler.
Ryan C. Gordon <icculus@icculus.org>
parents:
340
diff
changeset
|
170 x="C__seekable_stream_decoder_new" |
cbb15ecf423a
WinCE (PocketPC) patches from Tyler.
Ryan C. Gordon <icculus@icculus.org>
parents:
340
diff
changeset
|
171 flcsym="FLA$x" |
314
e867f050912c
Seekable FLAC detection.
Ryan C. Gordon <icculus@icculus.org>
parents:
288
diff
changeset
|
172 dnl Check if libFLAC is recent enough for a seekable decoder |
e867f050912c
Seekable FLAC detection.
Ryan C. Gordon <icculus@icculus.org>
parents:
288
diff
changeset
|
173 AC_ARG_ENABLE(seekable-flac, |
e867f050912c
Seekable FLAC detection.
Ryan C. Gordon <icculus@icculus.org>
parents:
288
diff
changeset
|
174 [ --enable-seekable-flac enable the seekable decoder [default=yes]], |
e867f050912c
Seekable FLAC detection.
Ryan C. Gordon <icculus@icculus.org>
parents:
288
diff
changeset
|
175 , enable_seekable_flac=yes) |
e867f050912c
Seekable FLAC detection.
Ryan C. Gordon <icculus@icculus.org>
parents:
288
diff
changeset
|
176 if test x$enable_seekable_flac = xyes; then |
377
cbb15ecf423a
WinCE (PocketPC) patches from Tyler.
Ryan C. Gordon <icculus@icculus.org>
parents:
340
diff
changeset
|
177 AC_CHECK_LIB(FLAC, $flcsym, have_seekable_flac_lib=yes) |
314
e867f050912c
Seekable FLAC detection.
Ryan C. Gordon <icculus@icculus.org>
parents:
288
diff
changeset
|
178 if test x$have_flac_hdr = xyes -a x$have_seekable_flac_lib = xyes; then |
e867f050912c
Seekable FLAC detection.
Ryan C. Gordon <icculus@icculus.org>
parents:
288
diff
changeset
|
179 AC_DEFINE(SOUND_SUPPORTS_SEEKABLE_FLAC) |
e867f050912c
Seekable FLAC detection.
Ryan C. Gordon <icculus@icculus.org>
parents:
288
diff
changeset
|
180 fi |
e867f050912c
Seekable FLAC detection.
Ryan C. Gordon <icculus@icculus.org>
parents:
288
diff
changeset
|
181 fi |
e867f050912c
Seekable FLAC detection.
Ryan C. Gordon <icculus@icculus.org>
parents:
288
diff
changeset
|
182 |
110 | 183 dnl Check for SMPEG |
184 AC_ARG_ENABLE(smpeg, | |
262 | 185 [ --enable-smpeg enable MP3 decoding via smpeg [default=yes]], |
110 | 186 , enable_smpeg=yes) |
187 if test x$enable_smpeg = xyes; then | |
188 SMPEG_VERSION=0.4.3 | |
189 AM_PATH_SMPEG($SMPEG_VERSION, , no_smpeg=yes) | |
190 if test "x$no_smpeg" = "x" ; then | |
191 CFLAGS="$CFLAGS $SMPEG_CFLAGS" | |
192 LIBS="$LIBS $SMPEG_LIBS" | |
262 | 193 AC_DEFINE(SOUND_SUPPORTS_SMPEG) |
110 | 194 fi |
195 fi | |
85 | 196 |
262 | 197 dnl Check for the MIDI decoder... |
198 AC_ARG_ENABLE(mpglib, | |
199 [ --enable-mpglib enable MP3 decoding internally [default=yes]], | |
200 , enable_mpglib=yes) | |
201 if test x$enable_mpglib = xyes; then | |
202 AC_DEFINE(SOUND_SUPPORTS_MPGLIB) | |
203 fi | |
204 | |
205 | |
65 | 206 dnl Check for libmikmod |
207 AC_ARG_ENABLE(mikmod, | |
208 [ --enable-mikmod enable MOD decoding via mikmod [default=yes]], | |
209 , enable_mikmod=yes) | |
210 if test x$enable_mikmod = xyes; then | |
211 AM_PATH_LIBMIKMOD | |
212 if test "x$no_libmikmod" = "x" ; then | |
213 CFLAGS="$CFLAGS $LIBMIKMOD_CFLAGS" | |
214 LIBS="$LIBS $LIBMIKMOD_LIBS" | |
215 LDADD="$LDADD $LIBMIKMOD_LDADD" | |
209
e63b9393f6ce
Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents:
201
diff
changeset
|
216 AC_DEFINE(SOUND_SUPPORTS_MIKMOD) |
e63b9393f6ce
Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents:
201
diff
changeset
|
217 fi |
e63b9393f6ce
Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents:
201
diff
changeset
|
218 fi |
e63b9393f6ce
Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents:
201
diff
changeset
|
219 |
e63b9393f6ce
Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents:
201
diff
changeset
|
220 dnl Check for libmodplug |
e63b9393f6ce
Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents:
201
diff
changeset
|
221 AC_ARG_ENABLE(modplug, |
e63b9393f6ce
Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents:
201
diff
changeset
|
222 [ --enable-modplug enable MOD decoding via modplug [default=yes]], |
e63b9393f6ce
Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents:
201
diff
changeset
|
223 , enable_modplug=yes) |
e63b9393f6ce
Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents:
201
diff
changeset
|
224 if test x$enable_modplug = xyes; then |
e63b9393f6ce
Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents:
201
diff
changeset
|
225 AC_CHECK_HEADER(modplug.h, have_modplug_hdr=yes) |
e63b9393f6ce
Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents:
201
diff
changeset
|
226 AC_CHECK_LIB(modplug, ModPlug_Load, have_modplug_lib=yes) |
e63b9393f6ce
Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents:
201
diff
changeset
|
227 if test x$have_modplug_hdr = xyes -a x$have_modplug_lib = xyes; then |
e63b9393f6ce
Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents:
201
diff
changeset
|
228 LIBS="$LIBS -lmodplug" |
e63b9393f6ce
Added ModPlug support.
Ryan C. Gordon <icculus@icculus.org>
parents:
201
diff
changeset
|
229 AC_DEFINE(SOUND_SUPPORTS_MODPLUG) |
65 | 230 fi |
231 fi | |
232 | |
276
d7d55903124c
Changed --enable-vorbis to --enable-ogg, made other format tweaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
262
diff
changeset
|
233 dnl Check for ogg |
d7d55903124c
Changed --enable-vorbis to --enable-ogg, made other format tweaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
262
diff
changeset
|
234 AC_ARG_ENABLE(ogg, |
d7d55903124c
Changed --enable-vorbis to --enable-ogg, made other format tweaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
262
diff
changeset
|
235 [ --enable-ogg enable OGG decoding via libvorbis [default=yes]], |
d7d55903124c
Changed --enable-vorbis to --enable-ogg, made other format tweaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
262
diff
changeset
|
236 , enable_ogg=yes) |
d7d55903124c
Changed --enable-vorbis to --enable-ogg, made other format tweaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
262
diff
changeset
|
237 if test x$enable_ogg = xyes; then |
65 | 238 AM_PATH_VORBIS |
239 if test "x$no_vorbis" = "x" ; then | |
240 CFLAGS="$CFLAGS $VORBIS_CFLAGS" | |
241 LIBS="$LIBS $VORBIS_LIBS $VORBISFILE_LIBS $VORBISENC_LIBS" | |
242 AC_DEFINE(SOUND_SUPPORTS_OGG) | |
243 fi | |
244 fi | |
245 | |
288
259daddc2d6b
PhysicsFS support tied into build system.
Ryan C. Gordon <icculus@icculus.org>
parents:
276
diff
changeset
|
246 dnl Check for PhysicsFS http://icculus.org/physfs/ |
259daddc2d6b
PhysicsFS support tied into build system.
Ryan C. Gordon <icculus@icculus.org>
parents:
276
diff
changeset
|
247 AC_ARG_ENABLE(physfs, |
259daddc2d6b
PhysicsFS support tied into build system.
Ryan C. Gordon <icculus@icculus.org>
parents:
276
diff
changeset
|
248 [ --enable-physfs enable PhysicsFS in playsound [default=yes]], |
259daddc2d6b
PhysicsFS support tied into build system.
Ryan C. Gordon <icculus@icculus.org>
parents:
276
diff
changeset
|
249 , enable_physfs=yes) |
259daddc2d6b
PhysicsFS support tied into build system.
Ryan C. Gordon <icculus@icculus.org>
parents:
276
diff
changeset
|
250 if test x$enable_physfs = xyes; then |
259daddc2d6b
PhysicsFS support tied into build system.
Ryan C. Gordon <icculus@icculus.org>
parents:
276
diff
changeset
|
251 AC_CHECK_HEADER(physfs.h, have_physfs_hdr=yes) |
259daddc2d6b
PhysicsFS support tied into build system.
Ryan C. Gordon <icculus@icculus.org>
parents:
276
diff
changeset
|
252 AC_CHECK_LIB(physfs, PHYSFS_init, have_physfs_lib=yes) |
259daddc2d6b
PhysicsFS support tied into build system.
Ryan C. Gordon <icculus@icculus.org>
parents:
276
diff
changeset
|
253 if test x$have_physfs_hdr = xyes -a x$have_physfs_lib = xyes; then |
340
5a72981b8cba
Added optional, experimental audio conversion routines by Frank Ranostaj.
Ryan C. Gordon <icculus@icculus.org>
parents:
314
diff
changeset
|
254 enable_physfs="yes" |
5a72981b8cba
Added optional, experimental audio conversion routines by Frank Ranostaj.
Ryan C. Gordon <icculus@icculus.org>
parents:
314
diff
changeset
|
255 else |
5a72981b8cba
Added optional, experimental audio conversion routines by Frank Ranostaj.
Ryan C. Gordon <icculus@icculus.org>
parents:
314
diff
changeset
|
256 enable_physfs="no" |
288
259daddc2d6b
PhysicsFS support tied into build system.
Ryan C. Gordon <icculus@icculus.org>
parents:
276
diff
changeset
|
257 fi |
259daddc2d6b
PhysicsFS support tied into build system.
Ryan C. Gordon <icculus@icculus.org>
parents:
276
diff
changeset
|
258 fi |
259daddc2d6b
PhysicsFS support tied into build system.
Ryan C. Gordon <icculus@icculus.org>
parents:
276
diff
changeset
|
259 |
340
5a72981b8cba
Added optional, experimental audio conversion routines by Frank Ranostaj.
Ryan C. Gordon <icculus@icculus.org>
parents:
314
diff
changeset
|
260 dnl Check for PhysicsFS http://icculus.org/physfs/ |
5a72981b8cba
Added optional, experimental audio conversion routines by Frank Ranostaj.
Ryan C. Gordon <icculus@icculus.org>
parents:
314
diff
changeset
|
261 AC_ARG_ENABLE(altcvt, |
5a72981b8cba
Added optional, experimental audio conversion routines by Frank Ranostaj.
Ryan C. Gordon <icculus@icculus.org>
parents:
314
diff
changeset
|
262 [ --enable-altcvt enable EXPERIMENTAL audio converter [default=no]], |
5a72981b8cba
Added optional, experimental audio conversion routines by Frank Ranostaj.
Ryan C. Gordon <icculus@icculus.org>
parents:
314
diff
changeset
|
263 , enable_altcvt=no) |
5a72981b8cba
Added optional, experimental audio conversion routines by Frank Ranostaj.
Ryan C. Gordon <icculus@icculus.org>
parents:
314
diff
changeset
|
264 if test x$enable_altcvt = xyes; then |
5a72981b8cba
Added optional, experimental audio conversion routines by Frank Ranostaj.
Ryan C. Gordon <icculus@icculus.org>
parents:
314
diff
changeset
|
265 AC_DEFINE(SOUND_USE_ALTCVT) |
5a72981b8cba
Added optional, experimental audio conversion routines by Frank Ranostaj.
Ryan C. Gordon <icculus@icculus.org>
parents:
314
diff
changeset
|
266 fi |
5a72981b8cba
Added optional, experimental audio conversion routines by Frank Ranostaj.
Ryan C. Gordon <icculus@icculus.org>
parents:
314
diff
changeset
|
267 |
288
259daddc2d6b
PhysicsFS support tied into build system.
Ryan C. Gordon <icculus@icculus.org>
parents:
276
diff
changeset
|
268 |
188
8df5aff6ce12
Added (broken and commented out) ElectricFence support.
Ryan C. Gordon <icculus@icculus.org>
parents:
162
diff
changeset
|
269 dnl Check for efence (!!! FIXME : This doesn't work.) |
8df5aff6ce12
Added (broken and commented out) ElectricFence support.
Ryan C. Gordon <icculus@icculus.org>
parents:
162
diff
changeset
|
270 dnl AC_ARG_ENABLE(efence, |
8df5aff6ce12
Added (broken and commented out) ElectricFence support.
Ryan C. Gordon <icculus@icculus.org>
parents:
162
diff
changeset
|
271 dnl [ --enable-efence enable ElectricFence usage [default=no]], |
8df5aff6ce12
Added (broken and commented out) ElectricFence support.
Ryan C. Gordon <icculus@icculus.org>
parents:
162
diff
changeset
|
272 dnl , enable_efence=no) |
8df5aff6ce12
Added (broken and commented out) ElectricFence support.
Ryan C. Gordon <icculus@icculus.org>
parents:
162
diff
changeset
|
273 dnl if test x$enable_efence = xyes; then |
8df5aff6ce12
Added (broken and commented out) ElectricFence support.
Ryan C. Gordon <icculus@icculus.org>
parents:
162
diff
changeset
|
274 dnl LIBS="$LIBS /usr/lib/libefence.a" |
8df5aff6ce12
Added (broken and commented out) ElectricFence support.
Ryan C. Gordon <icculus@icculus.org>
parents:
162
diff
changeset
|
275 dnl fi |
8df5aff6ce12
Added (broken and commented out) ElectricFence support.
Ryan C. Gordon <icculus@icculus.org>
parents:
162
diff
changeset
|
276 |
65 | 277 # Checks for header files. |
278 AC_HEADER_STDC | |
377
cbb15ecf423a
WinCE (PocketPC) patches from Tyler.
Ryan C. Gordon <icculus@icculus.org>
parents:
340
diff
changeset
|
279 AC_CHECK_HEADERS([stdlib.h string.h signal.h assert.h]) |
65 | 280 |
281 # Checks for typedefs, structures, and compiler characteristics. | |
282 AC_C_CONST | |
283 AC_TYPE_SIZE_T | |
284 | |
285 # Checks for library functions. | |
74
2777e65f6478
Commented out AC_FUNC_MALLOC for now.
Ryan C. Gordon <icculus@icculus.org>
parents:
66
diff
changeset
|
286 |
2777e65f6478
Commented out AC_FUNC_MALLOC for now.
Ryan C. Gordon <icculus@icculus.org>
parents:
66
diff
changeset
|
287 # This is only in the bleeding edge autoconf distro... |
2777e65f6478
Commented out AC_FUNC_MALLOC for now.
Ryan C. Gordon <icculus@icculus.org>
parents:
66
diff
changeset
|
288 #AC_FUNC_MALLOC |
2777e65f6478
Commented out AC_FUNC_MALLOC for now.
Ryan C. Gordon <icculus@icculus.org>
parents:
66
diff
changeset
|
289 |
377
cbb15ecf423a
WinCE (PocketPC) patches from Tyler.
Ryan C. Gordon <icculus@icculus.org>
parents:
340
diff
changeset
|
290 |
65 | 291 AC_FUNC_MEMCMP |
377
cbb15ecf423a
WinCE (PocketPC) patches from Tyler.
Ryan C. Gordon <icculus@icculus.org>
parents:
340
diff
changeset
|
292 AC_CHECK_FUNCS([memset strrchr setbuf]) |
65 | 293 |
201 | 294 dnl Add Makefile conditionals |
295 AM_CONDITIONAL(USE_TIMIDITY, test x$enable_midi = xyes) | |
262 | 296 AM_CONDITIONAL(USE_MPGLIB, test x$enable_mpglib = xyes) |
340
5a72981b8cba
Added optional, experimental audio conversion routines by Frank Ranostaj.
Ryan C. Gordon <icculus@icculus.org>
parents:
314
diff
changeset
|
297 AM_CONDITIONAL(USE_PHYSICSFS, test x$enable_physfs = xyes) |
5a72981b8cba
Added optional, experimental audio conversion routines by Frank Ranostaj.
Ryan C. Gordon <icculus@icculus.org>
parents:
314
diff
changeset
|
298 AM_CONDITIONAL(USE_ALTCVT, test x$enable_altcvt = xyes) |
65 | 299 |
300 AC_OUTPUT([ | |
301 Makefile | |
302 decoders/Makefile | |
201 | 303 decoders/timidity/Makefile |
262 | 304 decoders/mpglib/Makefile |
229
fe5251b5624c
Changed test dir to playsound, and make playsound part of standard build and
Ryan C. Gordon <icculus@icculus.org>
parents:
216
diff
changeset
|
305 playsound/Makefile |
65 | 306 ]) |