Mercurial > sdl-ios-xcode
comparison configure.in @ 148:8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 09 Aug 2001 13:09:47 +0000 |
parents | 1cfa4282f2eb |
children | 2839f45bdba0 |
comparison
equal
deleted
inserted
replaced
147:8f9093e805c9 | 148:8758b8d42cd9 |
---|---|
302 , enable_openbsdaudio=yes) | 302 , enable_openbsdaudio=yes) |
303 if test x$enable_audio = xyes -a x$enable_openbsdaudio = xyes; then | 303 if test x$enable_audio = xyes -a x$enable_openbsdaudio = xyes; then |
304 CFLAGS="$CFLAGS -DOPENBSD_AUDIO_SUPPORT" | 304 CFLAGS="$CFLAGS -DOPENBSD_AUDIO_SUPPORT" |
305 AUDIO_SUBDIRS="$AUDIO_SUBDIRS openbsd" | 305 AUDIO_SUBDIRS="$AUDIO_SUBDIRS openbsd" |
306 AUDIO_DRIVERS="$AUDIO_DRIVERS openbsd/libaudio_openbsd.la" | 306 AUDIO_DRIVERS="$AUDIO_DRIVERS openbsd/libaudio_openbsd.la" |
307 fi | |
308 } | |
309 | |
310 dnl Check whether we want to use IRIX 6.5+ native audio or not | |
311 CheckDMEDIA() | |
312 { | |
313 if test x$enable_audio = xyes; then | |
314 AC_MSG_CHECKING(for dmedia audio support) | |
315 have_dmedia=no | |
316 AC_TRY_COMPILE([ | |
317 #include <dmedia/audio.h> | |
318 ],[ | |
319 ALport audio_port; | |
320 ],[ | |
321 have_dmedia=yes | |
322 ]) | |
323 # Set up files for the audio library | |
324 if test x$have_dmedia = xyes; then | |
325 CFLAGS="$CFLAGS -DDMEDIA_SUPPORT" | |
326 AUDIO_SUBDIRS="$AUDIO_SUBDIRS dmedia" | |
327 AUDIO_DRIVERS="$AUDIO_DRIVERS dmedia/libaudio_dmedia.la" | |
328 SYSTEM_LIBS="$SYSTEM_LIBS -laudio" | |
329 fi | |
307 fi | 330 fi |
308 } | 331 } |
309 | 332 |
310 dnl Find the ESD includes and libraries | 333 dnl Find the ESD includes and libraries |
311 CheckESD() | 334 CheckESD() |
1201 # Set up files for the main() stub | 1224 # Set up files for the main() stub |
1202 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | 1225 COPY_ARCH_SRC(src/main, linux, SDL_main.c) |
1203 # Set up files for the audio library | 1226 # Set up files for the audio library |
1204 # We use the OSS and ALSA API's, not the Sun audio API | 1227 # We use the OSS and ALSA API's, not the Sun audio API |
1205 #if test x$enable_audio = xyes; then | 1228 #if test x$enable_audio = xyes; then |
1229 # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" | |
1206 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" | 1230 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
1207 # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" | 1231 # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" |
1208 #fi | 1232 #fi |
1209 # Set up files for the joystick library | 1233 # Set up files for the joystick library |
1210 if test x$enable_joystick = xyes; then | 1234 if test x$enable_joystick = xyes; then |
1260 CheckAAlib | 1284 CheckAAlib |
1261 CheckOpenGL | 1285 CheckOpenGL |
1262 CheckPTHREAD | 1286 CheckPTHREAD |
1263 # Set up files for the main() stub | 1287 # Set up files for the main() stub |
1264 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | 1288 COPY_ARCH_SRC(src/main, linux, SDL_main.c) |
1289 # Set up files for the audio library | |
1290 # We use the OSS and ALSA API's, not the Sun audio API | |
1291 #if test x$enable_audio = xyes; then | |
1292 # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" | |
1293 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" | |
1294 # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" | |
1295 #fi | |
1265 # Set up files for the joystick library | 1296 # Set up files for the joystick library |
1266 # (No joystick support yet) | 1297 # (No joystick support yet) |
1267 if test x$enable_joystick = xyes; then | 1298 if test x$enable_joystick = xyes; then |
1268 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy" | 1299 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy" |
1269 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la" | 1300 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la" |
1308 # Set up files for the main() stub | 1339 # Set up files for the main() stub |
1309 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | 1340 COPY_ARCH_SRC(src/main, linux, SDL_main.c) |
1310 # Set up files for the audio library | 1341 # Set up files for the audio library |
1311 # We use the OSS and ALSA API's, not the Sun audio API | 1342 # We use the OSS and ALSA API's, not the Sun audio API |
1312 #if test x$enable_audio = xyes; then | 1343 #if test x$enable_audio = xyes; then |
1344 # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" | |
1313 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" | 1345 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
1314 # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" | 1346 # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" |
1315 #fi | 1347 #fi |
1316 # Set up files for the joystick library | 1348 # Set up files for the joystick library |
1317 # (No joystick support yet) | 1349 # (No joystick support yet) |
1358 CheckPTHREAD | 1390 CheckPTHREAD |
1359 # Set up files for the main() stub | 1391 # Set up files for the main() stub |
1360 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | 1392 COPY_ARCH_SRC(src/main, linux, SDL_main.c) |
1361 # Set up files for the audio library | 1393 # Set up files for the audio library |
1362 if test x$enable_audio = xyes; then | 1394 if test x$enable_audio = xyes; then |
1395 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" | |
1363 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" | 1396 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
1364 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" | 1397 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" |
1365 fi | 1398 fi |
1366 # Set up files for the joystick library | 1399 # Set up files for the joystick library |
1367 # (No joystick support yet) | 1400 # (No joystick support yet) |
1412 # Set up files for the main() stub | 1445 # Set up files for the main() stub |
1413 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | 1446 COPY_ARCH_SRC(src/main, linux, SDL_main.c) |
1414 # Set up files for the audio library | 1447 # Set up files for the audio library |
1415 # We use the OSS and native API's, not the Sun audio API | 1448 # We use the OSS and native API's, not the Sun audio API |
1416 #if test x$enable_audio = xyes; then | 1449 #if test x$enable_audio = xyes; then |
1450 # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" | |
1417 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" | 1451 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
1418 # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" | 1452 # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" |
1419 #fi | 1453 #fi |
1420 # OpenBSD needs linking with ossaudio emulation library | 1454 # OpenBSD needs linking with ossaudio emulation library |
1421 if test x$have_oss = xyes; then | 1455 if test x$have_oss = xyes; then |
1469 CheckKSTAT | 1503 CheckKSTAT |
1470 # Set up files for the main() stub | 1504 # Set up files for the main() stub |
1471 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | 1505 COPY_ARCH_SRC(src/main, linux, SDL_main.c) |
1472 # Set up files for the audio library | 1506 # Set up files for the audio library |
1473 if test x$enable_audio = xyes; then | 1507 if test x$enable_audio = xyes; then |
1508 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" | |
1474 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" | 1509 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
1475 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" | 1510 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" |
1476 fi | 1511 fi |
1477 # Set up files for the joystick library | 1512 # Set up files for the joystick library |
1478 # (No joystick support yet) | 1513 # (No joystick support yet) |
1517 CheckKSTAT | 1552 CheckKSTAT |
1518 # Set up files for the main() stub | 1553 # Set up files for the main() stub |
1519 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | 1554 COPY_ARCH_SRC(src/main, linux, SDL_main.c) |
1520 # Set up files for the audio library | 1555 # Set up files for the audio library |
1521 if test x$enable_audio = xyes; then | 1556 if test x$enable_audio = xyes; then |
1557 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" | |
1522 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" | 1558 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
1523 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" | 1559 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" |
1524 fi | 1560 fi |
1525 # Set up files for the joystick library | 1561 # Set up files for the joystick library |
1526 # (No joystick support yet) | 1562 # (No joystick support yet) |
1550 ;; | 1586 ;; |
1551 *-*-irix*) | 1587 *-*-irix*) |
1552 ARCH=irix | 1588 ARCH=irix |
1553 CheckDummyVideo | 1589 CheckDummyVideo |
1554 CheckDiskAudio | 1590 CheckDiskAudio |
1591 CheckDMEDIA | |
1592 CheckESD | |
1555 CheckNAS | 1593 CheckNAS |
1556 CheckX11 | 1594 CheckX11 |
1557 CheckAAlib | 1595 CheckAAlib |
1558 CheckOpenGL | 1596 CheckOpenGL |
1559 CheckPTHREAD | 1597 CheckPTHREAD |
1560 # Set up files for the main() stub | 1598 # Set up files for the main() stub |
1561 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | 1599 COPY_ARCH_SRC(src/main, linux, SDL_main.c) |
1562 # Set up files for the audio library | 1600 # We use the dmedia audio API, not the Sun audio API |
1563 if test x$enable_audio = xyes; then | 1601 #if test x$enable_audio = xyes; then |
1564 AUDIO_SUBDIRS="$AUDIO_SUBDIRS dmedia" | 1602 # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" |
1565 AUDIO_DRIVERS="$AUDIO_DRIVERS dmedia/libaudio_dmedia.la" | 1603 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
1566 SYSTEM_LIBS="$SYSTEM_LIBS -laudio" | 1604 # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" |
1567 fi | 1605 #fi |
1568 # Set up files for the joystick library | 1606 # Set up files for the joystick library |
1569 # (No joystick support yet) | 1607 # (No joystick support yet) |
1570 if test x$enable_joystick = xyes; then | 1608 if test x$enable_joystick = xyes; then |
1571 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy" | 1609 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy" |
1572 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la" | 1610 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la" |
1620 CheckPTHREAD | 1658 CheckPTHREAD |
1621 # Set up files for the main() stub | 1659 # Set up files for the main() stub |
1622 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | 1660 COPY_ARCH_SRC(src/main, linux, SDL_main.c) |
1623 # Set up files for the audio library | 1661 # Set up files for the audio library |
1624 if test x$enable_audio = xyes; then | 1662 if test x$enable_audio = xyes; then |
1663 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" | |
1625 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" | 1664 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
1626 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" | 1665 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" |
1627 fi | 1666 fi |
1628 # Set up files for the joystick library | 1667 # Set up files for the joystick library |
1629 # (No joystick support yet) | 1668 # (No joystick support yet) |
1708 CheckPTHREAD | 1747 CheckPTHREAD |
1709 # Set up files for the main() stub | 1748 # Set up files for the main() stub |
1710 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | 1749 COPY_ARCH_SRC(src/main, linux, SDL_main.c) |
1711 # Set up files for the audio library | 1750 # Set up files for the audio library |
1712 if test x$enable_audio = xyes; then | 1751 if test x$enable_audio = xyes; then |
1752 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" | |
1713 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" | 1753 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
1714 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" | 1754 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" |
1715 fi | 1755 fi |
1716 # Set up files for the joystick library | 1756 # Set up files for the joystick library |
1717 # (No joystick support yet) | 1757 # (No joystick support yet) |
1755 if test x$enable_audio = xyes; then | 1795 if test x$enable_audio = xyes; then |
1756 CFLAGS="$CFLAGS -DALSA_SUPPORT" | 1796 CFLAGS="$CFLAGS -DALSA_SUPPORT" |
1757 SYSTEM_LIBS="$SYSTEM_LIBS -lasound" | 1797 SYSTEM_LIBS="$SYSTEM_LIBS -lasound" |
1758 AUDIO_SUBDIRS="$AUDIO_SUBDIRS nto" | 1798 AUDIO_SUBDIRS="$AUDIO_SUBDIRS nto" |
1759 AUDIO_DRIVERS="$AUDIO_DRIVERS nto/libaudio_nto.la" | 1799 AUDIO_DRIVERS="$AUDIO_DRIVERS nto/libaudio_nto.la" |
1760 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" | |
1761 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" | |
1762 fi | 1800 fi |
1763 # Set up files for the joystick library | 1801 # Set up files for the joystick library |
1764 if test x$enable_joystick = xyes; then | 1802 if test x$enable_joystick = xyes; then |
1765 # (No joystick support yet) | 1803 # (No joystick support yet) |
1766 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy" | 1804 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy" |