Mercurial > hg > xmms-sid
comparison configure.in @ 125:532ec0ad5e59
Added support/detection for libNanoSID.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 14 Jan 2004 03:56:01 +0000 |
parents | d2543dbd0e04 |
children | 1e38806f7a3b |
comparison
equal
deleted
inserted
replaced
124:c8f97c889f55 | 125:532ec0ad5e59 |
---|---|
19 AH_TEMPLATE([HAVE_SONG_POSITION],[Define if you have XMMS patched with the songpos patch.]) | 19 AH_TEMPLATE([HAVE_SONG_POSITION],[Define if you have XMMS patched with the songpos patch.]) |
20 AH_TEMPLATE([HAVE_XMMSEXTRA],[Define if you have XMMS version 1.2.5 or later and you want XMMS-SID to support some extra features.]) | 20 AH_TEMPLATE([HAVE_XMMSEXTRA],[Define if you have XMMS version 1.2.5 or later and you want XMMS-SID to support some extra features.]) |
21 AH_TEMPLATE([HAVE_UNSIGNEDPCM],[Define if your audiodevice supports _ONLY_ UNSIGNED PCM samples, otherwise leave undefined.]) | 21 AH_TEMPLATE([HAVE_UNSIGNEDPCM],[Define if your audiodevice supports _ONLY_ UNSIGNED PCM samples, otherwise leave undefined.]) |
22 AH_TEMPLATE([HAVE_SIDPLAY1],[Define if you have and want to use libSIDPlay 1]) | 22 AH_TEMPLATE([HAVE_SIDPLAY1],[Define if you have and want to use libSIDPlay 1]) |
23 AH_TEMPLATE([HAVE_SIDPLAY2],[Define if you have and want to use libSIDPlay 2]) | 23 AH_TEMPLATE([HAVE_SIDPLAY2],[Define if you have and want to use libSIDPlay 2]) |
24 AH_TEMPLATE([HAVE_NANOSID],[Define if you have and want to use libNanoSID]) | |
24 AH_TEMPLATE([HAVE_RESID_BUILDER],[Define if you have reSID with libSIDPlay 2]) | 25 AH_TEMPLATE([HAVE_RESID_BUILDER],[Define if you have reSID with libSIDPlay 2]) |
25 AH_TEMPLATE([HAVE_HARDSID_BUILDER],[Define if you have HardSID with libSIDPlay 2]) | 26 AH_TEMPLATE([HAVE_HARDSID_BUILDER],[Define if you have HardSID with libSIDPlay 2]) |
26 | 27 |
27 | 28 |
28 dnl *** | 29 dnl *** |
152 AC_ARG_WITH(sidplay2-lib, | 153 AC_ARG_WITH(sidplay2-lib, |
153 [ --with-sidplay2-lib=DIR Where the SIDPlay2 library is installed], | 154 [ --with-sidplay2-lib=DIR Where the SIDPlay2 library is installed], |
154 [xs_sidplay2_library="$withval"],) | 155 [xs_sidplay2_library="$withval"],) |
155 | 156 |
156 | 157 |
158 dnl *** | |
159 dnl *** libNanoSID options | |
160 dnl *** | |
161 AC_ARG_WITH(nanosid, | |
162 [ | |
163 --with-nanosid=PREFIX Enable NanoSID with PREFIX], | |
164 [ | |
165 if test "$withval" = yes; then | |
166 xs_nanosid=yes | |
167 xs_nanosid_library="" | |
168 xs_nanosid_includes="" | |
169 else | |
170 if test "$withval" = no; then | |
171 xs_nanosid=no | |
172 else | |
173 xs_nanosid=yes | |
174 xs_nanosid_includes="$withval/include" | |
175 xs_nanosid_library="$withval/lib" | |
176 fi | |
177 fi | |
178 ],[ | |
179 xs_nanosid=xtry | |
180 xs_nanosid_library="" | |
181 xs_nanosid_includes="" | |
182 ]) | |
183 | |
184 AC_ARG_WITH(nanosid-inc, | |
185 [ --with-nanosid-inc=DIR Where the NanoSID headers are located], | |
186 [xs_nanosid_includes="$withval"],) | |
187 | |
188 AC_ARG_WITH(sidplay1-lib, | |
189 [ --with-nanosid-lib=DIR Where the NanoSID library is installed], | |
190 [xs_nanosid_library="$withval"],) | |
191 | |
192 | |
193 dnl *** | |
157 dnl *** Determine if libraries are wanted and available | 194 dnl *** Determine if libraries are wanted and available |
195 dnl *** | |
158 OPT_SIDPLAY1="no" | 196 OPT_SIDPLAY1="no" |
159 if test "$xs_sidplay1" = xtry; then | 197 if test "$xs_sidplay1" = xtry; then |
160 XS_PATH_LIBSIDPLAY1 | 198 XS_PATH_LIBSIDPLAY1 |
161 else | 199 else |
162 if test "$xs_sidplay1" = yes; then | 200 if test "$xs_sidplay1" = yes; then |
196 if test "$builders_available" = no; then | 234 if test "$builders_available" = no; then |
197 AC_MSG_ERROR([No builder modules were found in the sidbuilders directory!]); | 235 AC_MSG_ERROR([No builder modules were found in the sidbuilders directory!]); |
198 fi | 236 fi |
199 fi | 237 fi |
200 | 238 |
239 | |
240 OPT_NANOSID="no" | |
241 if test "$xs_nanosid" = xtry; then | |
242 XS_PATH_LIBNANOSID | |
243 else | |
244 if test "$xs_nanosid" = yes; then | |
245 XS_PATH_LIBNANOSID | |
246 if test "$xs_have_nanosid" = no; then | |
247 AC_MSG_ERROR([libNanoSID library and/or headers were not found!]) | |
248 fi | |
249 fi | |
250 fi | |
251 if test "$xs_have_nanosid" = yes; then | |
252 AC_DEFINE(HAVE_NANOSID) | |
253 OPT_NANOSID="yes" | |
254 fi | |
255 | |
256 | |
201 AC_SUBST(REQUIRE_LIBRARY,$xs_reqlib) | 257 AC_SUBST(REQUIRE_LIBRARY,$xs_reqlib) |
202 | 258 |
259 dnl *** | |
203 dnl *** Check if we have some emulator library available? | 260 dnl *** Check if we have some emulator library available? |
261 dnl *** | |
204 if test "$OPT_SIDPLAY1" = no; then | 262 if test "$OPT_SIDPLAY1" = no; then |
205 if test "$OPT_SIDPLAY2" = no; then | 263 if test "$OPT_SIDPLAY2" = no; then |
206 AC_MSG_ERROR([Either libSIDPlay1 or libSIDPlay2 is required! Please read INSTALL for more information!]) | 264 if test "$OPT_NANOSID" = no; then |
265 AC_MSG_ERROR([Either libSIDPlay1, libSIDPlay2 or libNanoSID is required! Please read INSTALL for more information!]) | |
266 fi | |
207 fi | 267 fi |
208 fi | 268 fi |
209 | 269 |
210 | 270 |
211 dnl *** | 271 dnl *** |
267 XMMS >= v1.2.5 extra features : $OPT_XMMSEXTRA | 327 XMMS >= v1.2.5 extra features : $OPT_XMMSEXTRA |
268 Song-position patch : $OPT_SONGPOS | 328 Song-position patch : $OPT_SONGPOS |
269 libSIDPlay 1 support : $OPT_SIDPLAY1 | 329 libSIDPlay 1 support : $OPT_SIDPLAY1 |
270 libSIDPlay 2 support : $OPT_SIDPLAY2 | 330 libSIDPlay 2 support : $OPT_SIDPLAY2 |
271 Included builders : $xs_builders | 331 Included builders : $xs_builders |
272 | 332 libNanoSID support : $OPT_NANOSID |
273 ]) | 333 |
334 ]) |