Mercurial > SDL_sound_CoreAudio
annotate configure.in @ 95:4436f4587c9a
Updated.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 02 Oct 2001 17:23:08 +0000 |
parents | b939258bd177 |
children | 6d9fdec2f708 |
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 | |
18 MICRO_VERSION=2 | |
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 | |
46 AM_INIT_AUTOMAKE(SDL_sound, $VERSION) | |
47 | |
48 | |
49 dnl --------------------------------------------------------------------- | |
50 dnl Compilers and other tools | |
51 dnl --------------------------------------------------------------------- | |
52 | |
53 AC_PROG_CC | |
54 AC_PROG_INSTALL | |
55 AC_PROG_LN_S | |
56 AC_PROG_LIBTOOL | |
57 | |
58 | |
59 dnl --------------------------------------------------------------------- | |
60 dnl Checks for libraries. | |
61 dnl --------------------------------------------------------------------- | |
62 | |
63 dnl Check for SDL | |
64 SDL_VERSION=1.2.0 | |
65 AM_PATH_SDL($SDL_VERSION, | |
66 :, | |
67 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) | |
68 ) | |
69 CFLAGS="$CFLAGS $SDL_CFLAGS" | |
70 LIBS="$LIBS $SDL_LIBS" | |
71 | |
72 dnl Check for voc decoder inclusion... | |
73 AC_ARG_ENABLE(voc, | |
74 [ --enable-voc enable VOC decoding [default=yes]], | |
75 , enable_voc=yes) | |
76 if test x$enable_voc = xyes; then | |
77 AC_DEFINE(SOUND_SUPPORTS_VOC) | |
78 fi | |
79 | |
80 | |
81 dnl Check for wav decoder inclusion... | |
82 AC_ARG_ENABLE(wav, | |
83 [ --enable-wav enable WAV decoding [default=yes]], | |
84 , enable_wav=yes) | |
85 if test x$enable_wav = xyes; then | |
86 AC_DEFINE(SOUND_SUPPORTS_WAV) | |
87 fi | |
88 | |
89 | |
90 dnl Check for raw decoder inclusion... | |
91 AC_ARG_ENABLE(raw, | |
92 [ --enable-raw enable raw audio "decoding" [default=yes]], | |
93 , enable_raw=yes) | |
94 if test x$enable_raw = xyes; then | |
95 AC_DEFINE(SOUND_SUPPORTS_RAW) | |
96 fi | |
97 | |
98 | |
99 dnl Check for aiff decoder inclusion... | |
100 AC_ARG_ENABLE(aiff, | |
101 [ --enable-aiff enable AIFF decoding [default=yes]], | |
102 , enable_aiff=yes) | |
103 if test x$enable_aiff = xyes; then | |
104 AC_DEFINE(SOUND_SUPPORTS_AIFF) | |
105 fi | |
106 | |
107 | |
85 | 108 dnl DO NOT ENABLE THIS YET. IT'S NOT COMPLETE. |
109 dnl DO NOT ENABLE THIS YET. IT'S NOT COMPLETE. | |
110 dnl DO NOT ENABLE THIS YET. IT'S NOT COMPLETE. | |
111 dnl DO NOT ENABLE THIS YET. IT'S NOT COMPLETE. | |
112 dnl Check for shn decoder inclusion... | |
113 AC_ARG_ENABLE(shn, | |
114 [ --enable-shn enable SHN decoding [default=no]], | |
115 , enable_shn=no) | |
116 if test x$enable_shn = xyes; then | |
117 AC_DEFINE(SOUND_SUPPORTS_SHN) | |
118 fi | |
119 dnl DO NOT ENABLE THIS YET. IT'S NOT COMPLETE. | |
120 dnl DO NOT ENABLE THIS YET. IT'S NOT COMPLETE. | |
121 dnl DO NOT ENABLE THIS YET. IT'S NOT COMPLETE. | |
122 dnl DO NOT ENABLE THIS YET. IT'S NOT COMPLETE. | |
123 | |
124 | |
65 | 125 dnl Check for libmikmod |
126 AC_ARG_ENABLE(mikmod, | |
127 [ --enable-mikmod enable MOD decoding via mikmod [default=yes]], | |
128 , enable_mikmod=yes) | |
129 if test x$enable_mikmod = xyes; then | |
130 AM_PATH_LIBMIKMOD | |
131 if test "x$no_libmikmod" = "x" ; then | |
132 CFLAGS="$CFLAGS $LIBMIKMOD_CFLAGS" | |
133 LIBS="$LIBS $LIBMIKMOD_LIBS" | |
134 LDADD="$LDADD $LIBMIKMOD_LDADD" | |
135 AC_DEFINE(SOUND_SUPPORTS_MOD) | |
136 fi | |
137 fi | |
138 | |
139 dnl Check for vorbis | |
140 AC_ARG_ENABLE(vorbis, | |
141 [ --enable-vorbis enable OGG music via vorbis [default=yes]], | |
142 , enable_vorbis=yes) | |
143 if test x$enable_vorbis = xyes; then | |
144 AM_PATH_VORBIS | |
145 if test "x$no_vorbis" = "x" ; then | |
146 CFLAGS="$CFLAGS $VORBIS_CFLAGS" | |
147 LIBS="$LIBS $VORBIS_LIBS $VORBISFILE_LIBS $VORBISENC_LIBS" | |
148 AC_DEFINE(SOUND_SUPPORTS_OGG) | |
149 fi | |
150 fi | |
151 | |
152 dnl Check for SMPEG | |
153 AC_ARG_ENABLE(smpeg, | |
154 [ --enable-smpeg enable MP3 music via smpeg [default=yes]], | |
155 , enable_smpeg=yes) | |
156 if test x$enable_smpeg = xyes; then | |
157 SMPEG_VERSION=0.4.3 | |
158 AM_PATH_SMPEG($SMPEG_VERSION, , no_smpeg=yes) | |
159 if test "x$no_smpeg" = "x" ; then | |
160 CFLAGS="$CFLAGS $SMPEG_CFLAGS" | |
161 LIBS="$LIBS $SMPEG_LIBS" | |
162 AC_DEFINE(SOUND_SUPPORTS_MP3) | |
163 fi | |
164 fi | |
165 | |
166 | |
167 | |
168 # Checks for header files. | |
169 AC_HEADER_STDC | |
170 AC_CHECK_HEADERS([stdlib.h string.h]) | |
171 | |
172 # Checks for typedefs, structures, and compiler characteristics. | |
173 AC_C_CONST | |
174 AC_TYPE_SIZE_T | |
175 | |
176 # Checks for library functions. | |
74
2777e65f6478
Commented out AC_FUNC_MALLOC for now.
Ryan C. Gordon <icculus@icculus.org>
parents:
66
diff
changeset
|
177 |
2777e65f6478
Commented out AC_FUNC_MALLOC for now.
Ryan C. Gordon <icculus@icculus.org>
parents:
66
diff
changeset
|
178 # 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
|
179 #AC_FUNC_MALLOC |
2777e65f6478
Commented out AC_FUNC_MALLOC for now.
Ryan C. Gordon <icculus@icculus.org>
parents:
66
diff
changeset
|
180 |
65 | 181 AC_FUNC_MEMCMP |
182 AC_CHECK_FUNCS([memset strrchr]) | |
183 | |
184 | |
185 AC_OUTPUT([ | |
186 Makefile | |
187 decoders/Makefile | |
188 test/Makefile | |
189 ]) |