comparison configure.in @ 371:db0cc6034336

Added David Hedbor's Qtopia patches
author Sam Lantinga <slouken@libsdl.org>
date Sun, 19 May 2002 20:06:01 +0000
parents 8c1f8c4d2dd1
children 6089cd59e3ca
comparison
equal deleted inserted replaced
370:ba72f259bc88 371:db0cc6034336
320 { 320 {
321 AC_ARG_ENABLE(esd, 321 AC_ARG_ENABLE(esd,
322 [ --enable-esd support the Enlightened Sound Daemon [default=yes]], 322 [ --enable-esd support the Enlightened Sound Daemon [default=yes]],
323 , enable_esd=yes) 323 , enable_esd=yes)
324 if test x$enable_audio = xyes -a x$enable_esd = xyes; then 324 if test x$enable_audio = xyes -a x$enable_esd = xyes; then
325 use_esd=no 325 use_esd=no
326 AM_PATH_ESD(0.2.8, use_esd=yes) 326 AM_PATH_ESD(0.2.8, use_esd=yes)
327 if test x$use_esd = xyes; then 327 if test x$use_esd = xyes; then
328 AC_ARG_ENABLE(esd-shared, 328 AC_ARG_ENABLE(esd-shared,
329 [ --enable-esd-shared dynamically load ESD audio support [default=no]], 329 [ --enable-esd-shared dynamically load ESD audio support [default=no]],
330 , enable_esd_shared=no) 330 , enable_esd_shared=no)
331 esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'` 331 esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'`
332 esd_lib=`ls $esd_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'` 332 esd_lib=`ls $esd_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'`
333 echo "-- $esd_lib_spec -> $esd_lib" 333 echo "-- $esd_lib_spec -> $esd_lib"
334 if test x$enable_dlopen != xyes && \ 334 if test x$enable_dlopen != xyes && \
335 test x$enable_esd_shared = xyes; then 335 test x$enable_esd_shared = xyes; then
336 AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option]) 336 AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option])
337 fi 337 fi
338 if test x$enable_dlopen = xyes && \ 338 if test x$enable_dlopen = xyes && \
339 test x$enable_esd_shared = xyes && test x$esd_lib != x; then 339 test x$enable_esd_shared = xyes && test x$esd_lib != x; then
340 CFLAGS="$CFLAGS -DESD_SUPPORT -DESD_DYNAMIC=\$(esd_lib) $ESD_CFLAGS" 340 CFLAGS="$CFLAGS -DESD_SUPPORT -DESD_DYNAMIC=\$(esd_lib) $ESD_CFLAGS"
341 AC_SUBST(esd_lib) 341 AC_SUBST(esd_lib)
342 else 342 else
343 CFLAGS="$CFLAGS -DESD_SUPPORT $ESD_CFLAGS" 343 CFLAGS="$CFLAGS -DESD_SUPPORT $ESD_CFLAGS"
344 SYSTEM_LIBS="$SYSTEM_LIBS $ESD_LIBS" 344 SYSTEM_LIBS="$SYSTEM_LIBS $ESD_LIBS"
345 fi 345 fi
346 AUDIO_SUBDIRS="$AUDIO_SUBDIRS esd" 346 AUDIO_SUBDIRS="$AUDIO_SUBDIRS esd"
377 if test x$audio_arts = xyes; then 377 if test x$audio_arts = xyes; then
378 AC_ARG_ENABLE(arts-shared, 378 AC_ARG_ENABLE(arts-shared,
379 [ --enable-arts-shared dynamically load aRts audio support [default=no]], 379 [ --enable-arts-shared dynamically load aRts audio support [default=no]],
380 , enable_arts_shared=no) 380 , enable_arts_shared=no)
381 arts_lib_spec=`echo $ARTSC_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libartsc.so.*/'` 381 arts_lib_spec=`echo $ARTSC_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libartsc.so.*/'`
382 arts_lib=`ls $arts_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'` 382 arts_lib=`ls $arts_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'`
383 echo "-- $arts_lib_spec -> $arts_lib" 383 echo "-- $arts_lib_spec -> $arts_lib"
384 if test x$enable_dlopen != xyes && \ 384 if test x$enable_dlopen != xyes && \
385 test x$enable_arts_shared = xyes; then 385 test x$enable_arts_shared = xyes; then
386 AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option]) 386 AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option])
387 fi 387 fi
388 if test x$enable_dlopen = xyes && \ 388 if test x$enable_dlopen = xyes && \
389 test x$enable_arts_shared = xyes && test x$arts_lib != x; then 389 test x$enable_arts_shared = xyes && test x$arts_lib != x; then
390 CFLAGS="$CFLAGS -DARTSC_SUPPORT -DARTSC_DYNAMIC=\$(arts_lib) $ARTSC_CFLAGS" 390 CFLAGS="$CFLAGS -DARTSC_SUPPORT -DARTSC_DYNAMIC=\$(arts_lib) $ARTSC_CFLAGS"
391 AC_SUBST(arts_lib) 391 AC_SUBST(arts_lib)
392 else 392 else
393 CFLAGS="$CFLAGS -DARTSC_SUPPORT $ARTSC_CFLAGS" 393 CFLAGS="$CFLAGS -DARTSC_SUPPORT $ARTSC_CFLAGS"
394 SYSTEM_LIBS="$SYSTEM_LIBS $ARTSC_LIBS" 394 SYSTEM_LIBS="$SYSTEM_LIBS $ARTSC_LIBS"
395 fi 395 fi
396 AUDIO_SUBDIRS="$AUDIO_SUBDIRS arts" 396 AUDIO_SUBDIRS="$AUDIO_SUBDIRS arts"
1163 has_recursive_mutexes=no 1163 has_recursive_mutexes=no
1164 AC_TRY_LINK([ 1164 AC_TRY_LINK([
1165 #include <pthread.h> 1165 #include <pthread.h>
1166 ],[ 1166 ],[
1167 pthread_mutexattr_t attr; 1167 pthread_mutexattr_t attr;
1168 #ifdef linux 1168 #if defined(linux) && !(defined(__arm__) && defined(QWS))
1169 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP); 1169 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
1170 #else 1170 #else
1171 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); 1171 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
1172 #endif 1172 #endif
1173 ],[ 1173 ],[
1347 CFLAGS="$CFLAGS -DENABLE_BWINDOW" 1347 CFLAGS="$CFLAGS -DENABLE_BWINDOW"
1348 VIDEO_SUBDIRS="$VIDEO_SUBDIRS bwindow" 1348 VIDEO_SUBDIRS="$VIDEO_SUBDIRS bwindow"
1349 VIDEO_DRIVERS="$VIDEO_DRIVERS bwindow/libvideo_bwindow.la" 1349 VIDEO_DRIVERS="$VIDEO_DRIVERS bwindow/libvideo_bwindow.la"
1350 } 1350 }
1351 1351
1352 dnl Set up the QTopia video driver if enabled
1353 CheckQtopia()
1354 {
1355 AC_ARG_ENABLE(video-qtopia,
1356 [ --enable-video-qtopia use Qtopia video driver [default=no]],
1357 , enable_video_qtopia=no)
1358 if test x$enable_video = xyes -a x$enable_video_qtopia = xyes; then
1359 AC_MSG_CHECKING(for Qtopia support)
1360 video_qtopia=no
1361 AC_LANG_CPLUSPLUS
1362 OLD_CXX="$CXXFLAGS"
1363 CXXFLAGS="-DQT_QWS_EBX -fno-rtti -fno-exceptions -DQT_QWS_CUSTOM -DQWS -I${QPEDIR}/include -I${QTDIR}/include/ -DNO_DEBUG"
1364 AC_TRY_COMPILE([
1365 #include <qpe/qpeapplication.h>
1366 ],[
1367 ],[
1368 video_qtopia=yes
1369 ])
1370 CXXFLAGS="$OLD_CXX"
1371 AC_MSG_RESULT($video_qtopia)
1372 if test x$video_qtopia = xyes; then
1373 CFLAGS="$CFLAGS -DENABLE_QTOPIA -DQT_QWS_EBX -DQT_QWS_CUSTOM -DQWS -I${QPEDIR}/include -I${QTDIR}/include/ -DNO_DEBUG -fno-rtti -fno-exceptions"
1374 SYSTEM_LIBS="$SYSTEM_LIBS -:${QPEDIR}/lib -L${QTDIR}/lib/ -lqpe -lqte"
1375 VIDEO_SUBDIRS="$VIDEO_SUBDIRS qtopia"
1376 VIDEO_DRIVERS="$VIDEO_DRIVERS qtopia/libvideo_qtopia.la"
1377 fi
1378 AC_LANG_C
1379 fi
1380 }
1381
1352 dnl Set up the Mac toolbox video driver for Mac OS 7-9 1382 dnl Set up the Mac toolbox video driver for Mac OS 7-9
1353 CheckTOOLBOX() 1383 CheckTOOLBOX()
1354 { 1384 {
1355 VIDEO_SUBDIRS="$VIDEO_SUBDIRS maccommon" 1385 VIDEO_SUBDIRS="$VIDEO_SUBDIRS maccommon"
1356 VIDEO_DRIVERS="$VIDEO_DRIVERS maccommon/libvideo_maccommon.la" 1386 VIDEO_DRIVERS="$VIDEO_DRIVERS maccommon/libvideo_maccommon.la"
1418 case "$target" in 1448 case "$target" in
1419 *-*-linux*) 1449 *-*-linux*)
1420 ARCH=linux 1450 ARCH=linux
1421 CheckDummyVideo 1451 CheckDummyVideo
1422 CheckDiskAudio 1452 CheckDiskAudio
1423 CheckDLOPEN 1453 CheckDLOPEN
1424 CheckNASM 1454 CheckNASM
1425 CheckOSS 1455 CheckOSS
1426 CheckALSA 1456 CheckALSA
1427 CheckARTSC 1457 CheckARTSC
1428 CheckESD 1458 CheckESD
1434 CheckDirectFB 1464 CheckDirectFB
1435 CheckPS2GS 1465 CheckPS2GS
1436 CheckGGI 1466 CheckGGI
1437 CheckSVGA 1467 CheckSVGA
1438 CheckAAlib 1468 CheckAAlib
1469 CheckQtopia
1439 CheckOpenGL 1470 CheckOpenGL
1440 CheckInputEvents 1471 CheckInputEvents
1441 CheckPTHREAD 1472 CheckPTHREAD
1442 # Set up files for the main() stub 1473 # Set up files for the main() stub
1443 COPY_ARCH_SRC(src/main, linux, SDL_main.c) 1474 if test "x$video_qtopia" = "xyes"; then
1475 COPY_ARCH_SRC(src/main, linux, SDL_Qtopia_main.cc)
1476 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
1477 SDL_LIBS="-lSDLmain $SDL_LIBS"
1478 else
1479 COPY_ARCH_SRC(src/main, linux, SDL_main.c)
1480 fi
1444 # Set up files for the audio library 1481 # Set up files for the audio library
1445 # We use the OSS and ALSA API's, not the Sun audio API 1482 # We use the OSS and ALSA API's, not the Sun audio API
1446 #if test x$enable_audio = xyes; then 1483 #if test x$enable_audio = xyes; then
1447 # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" 1484 # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"
1448 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" 1485 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
1477 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c) 1514 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c)
1478 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) 1515 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1479 else 1516 else
1480 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c) 1517 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c)
1481 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h) 1518 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h)
1482 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c) 1519 if test x$has_recursive_mutexes != xyes; then
1520 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c)
1521 else
1522 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c)
1523 fi
1483 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) 1524 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1484 fi 1525 fi
1485 fi 1526 fi
1486 # Set up files for the timer library 1527 # Set up files for the timer library
1487 if test x$enable_timers = xyes; then 1528 if test x$enable_timers = xyes; then
1490 ;; 1531 ;;
1491 *-*-bsdi*) 1532 *-*-bsdi*)
1492 ARCH=bsdi 1533 ARCH=bsdi
1493 CheckDummyVideo 1534 CheckDummyVideo
1494 CheckDiskAudio 1535 CheckDiskAudio
1495 CheckDLOPEN 1536 CheckDLOPEN
1496 CheckNASM 1537 CheckNASM
1497 CheckOSS 1538 CheckOSS
1498 CheckARTSC 1539 CheckARTSC
1499 CheckESD 1540 CheckESD
1500 CheckNAS 1541 CheckNAS
1542 ;; 1583 ;;
1543 *-*-freebsd*) 1584 *-*-freebsd*)
1544 ARCH=freebsd 1585 ARCH=freebsd
1545 CheckDummyVideo 1586 CheckDummyVideo
1546 CheckDiskAudio 1587 CheckDiskAudio
1547 CheckDLOPEN 1588 CheckDLOPEN
1548 CheckVGL 1589 CheckVGL
1549 CheckNASM 1590 CheckNASM
1550 CheckOSS 1591 CheckOSS
1551 CheckARTSC 1592 CheckARTSC
1552 CheckESD 1593 CheckESD
1599 ;; 1640 ;;
1600 *-*-netbsd*) 1641 *-*-netbsd*)
1601 ARCH=netbsd 1642 ARCH=netbsd
1602 CheckDummyVideo 1643 CheckDummyVideo
1603 CheckDiskAudio 1644 CheckDiskAudio
1604 CheckDLOPEN 1645 CheckDLOPEN
1605 CheckNASM 1646 CheckNASM
1606 CheckOSS 1647 CheckOSS
1607 CheckARTSC 1648 CheckARTSC
1608 CheckESD 1649 CheckESD
1609 CheckNAS 1650 CheckNAS
1654 ;; 1695 ;;
1655 *-*-openbsd*) 1696 *-*-openbsd*)
1656 ARCH=openbsd 1697 ARCH=openbsd
1657 CheckDummyVideo 1698 CheckDummyVideo
1658 CheckDiskAudio 1699 CheckDiskAudio
1659 CheckDLOPEN 1700 CheckDLOPEN
1660 CheckNASM 1701 CheckNASM
1661 CheckOSS 1702 CheckOSS
1662 CheckARTSC 1703 CheckARTSC
1663 CheckESD 1704 CheckESD
1664 CheckNAS 1705 CheckNAS
1713 ;; 1754 ;;
1714 *-*-sysv5*) 1755 *-*-sysv5*)
1715 ARCH=sysv5 1756 ARCH=sysv5
1716 CheckDummyVideo 1757 CheckDummyVideo
1717 CheckDiskAudio 1758 CheckDiskAudio
1718 CheckDLOPEN 1759 CheckDLOPEN
1719 CheckNASM 1760 CheckNASM
1720 CheckOSS 1761 CheckOSS
1721 CheckARTSC 1762 CheckARTSC
1722 CheckESD 1763 CheckESD
1723 CheckNAS 1764 CheckNAS
1763 *-*-solaris*) 1804 *-*-solaris*)
1764 ARCH=solaris 1805 ARCH=solaris
1765 CFLAGS="$CFLAGS -D__ELF__" # Fix for nasm on Solaris x86 1806 CFLAGS="$CFLAGS -D__ELF__" # Fix for nasm on Solaris x86
1766 CheckDummyVideo 1807 CheckDummyVideo
1767 CheckDiskAudio 1808 CheckDiskAudio
1768 CheckDLOPEN 1809 CheckDLOPEN
1769 CheckNASM 1810 CheckNASM
1770 CheckOSS 1811 CheckOSS
1771 CheckARTSC 1812 CheckARTSC
1772 CheckESD 1813 CheckESD
1773 CheckNAS 1814 CheckNAS
1812 ;; 1853 ;;
1813 *-*-irix*) 1854 *-*-irix*)
1814 ARCH=irix 1855 ARCH=irix
1815 CheckDummyVideo 1856 CheckDummyVideo
1816 CheckDiskAudio 1857 CheckDiskAudio
1817 CheckDLOPEN 1858 CheckDLOPEN
1818 CheckDMEDIA 1859 CheckDMEDIA
1819 CheckESD 1860 CheckESD
1820 CheckNAS 1861 CheckNAS
1821 CheckX11 1862 CheckX11
1822 CheckAAlib 1863 CheckAAlib
1875 ;; 1916 ;;
1876 *-*-hpux*) 1917 *-*-hpux*)
1877 ARCH=hpux 1918 ARCH=hpux
1878 CheckDummyVideo 1919 CheckDummyVideo
1879 CheckDiskAudio 1920 CheckDiskAudio
1880 CheckDLOPEN 1921 CheckDLOPEN
1881 CheckOSS 1922 CheckOSS
1882 CheckNAS 1923 CheckNAS
1883 CheckX11 1924 CheckX11
1884 CheckGGI 1925 CheckGGI
1885 CheckAAlib 1926 CheckAAlib
1923 ;; 1964 ;;
1924 *-*-aix*) 1965 *-*-aix*)
1925 ARCH=aix 1966 ARCH=aix
1926 CheckDummyVideo 1967 CheckDummyVideo
1927 CheckDiskAudio 1968 CheckDiskAudio
1928 CheckDLOPEN 1969 CheckDLOPEN
1929 CheckOSS 1970 CheckOSS
1930 CheckNAS 1971 CheckNAS
1931 CheckX11 1972 CheckX11
1932 CheckGGI 1973 CheckGGI
1933 CheckAAlib 1974 CheckAAlib
1969 ;; 2010 ;;
1970 *-*-osf*) 2011 *-*-osf*)
1971 ARCH=osf 2012 ARCH=osf
1972 CheckDummyVideo 2013 CheckDummyVideo
1973 CheckDiskAudio 2014 CheckDiskAudio
1974 CheckDLOPEN 2015 CheckDLOPEN
1975 CheckNAS 2016 CheckNAS
1976 CheckX11 2017 CheckX11
1977 CheckGGI 2018 CheckGGI
1978 CheckAAlib 2019 CheckAAlib
1979 CheckOpenGL 2020 CheckOpenGL
2016 ;; 2057 ;;
2017 *-*-qnx*) 2058 *-*-qnx*)
2018 ARCH=qnx 2059 ARCH=qnx
2019 CheckDummyVideo 2060 CheckDummyVideo
2020 CheckDiskAudio 2061 CheckDiskAudio
2021 CheckDLOPEN 2062 CheckDLOPEN
2022 CheckNAS 2063 CheckNAS
2023 CheckPHOTON 2064 CheckPHOTON
2024 CheckX11 2065 CheckX11
2025 CheckOpenGL 2066 CheckOpenGL
2026 CheckPTHREAD 2067 CheckPTHREAD
2328 esac 2369 esac
2329 AC_SUBST(ARCH) 2370 AC_SUBST(ARCH)
2330 2371
2331 # Set the conditional variables for this target 2372 # Set the conditional variables for this target
2332 AM_CONDITIONAL(TARGET_LINUX, test $ARCH = linux) 2373 AM_CONDITIONAL(TARGET_LINUX, test $ARCH = linux)
2374 AM_CONDITIONAL(TARGET_QTOPIA, test "x$video_qtopia" = "xyes")
2333 AM_CONDITIONAL(TARGET_SOLARIS, test $ARCH = solaris) 2375 AM_CONDITIONAL(TARGET_SOLARIS, test $ARCH = solaris)
2334 AM_CONDITIONAL(TARGET_IRIX, test $ARCH = irix) 2376 AM_CONDITIONAL(TARGET_IRIX, test $ARCH = irix)
2335 AM_CONDITIONAL(TARGET_BSDI, test $ARCH = bsdi) 2377 AM_CONDITIONAL(TARGET_BSDI, test $ARCH = bsdi)
2336 AM_CONDITIONAL(TARGET_FREEBSD, test $ARCH = freebsd) 2378 AM_CONDITIONAL(TARGET_FREEBSD, test $ARCH = freebsd)
2337 AM_CONDITIONAL(TARGET_NETBSD, test $ARCH = netbsd) 2379 AM_CONDITIONAL(TARGET_NETBSD, test $ARCH = netbsd)
2484 src/video/epoc/Makefile 2526 src/video/epoc/Makefile
2485 src/video/dummy/Makefile 2527 src/video/dummy/Makefile
2486 src/video/ataricommon/Makefile 2528 src/video/ataricommon/Makefile
2487 src/video/xbios/Makefile 2529 src/video/xbios/Makefile
2488 src/video/gem/Makefile 2530 src/video/gem/Makefile
2531 src/video/qtopia/Makefile
2489 src/events/Makefile 2532 src/events/Makefile
2490 src/joystick/Makefile 2533 src/joystick/Makefile
2491 src/joystick/amigaos/Makefile 2534 src/joystick/amigaos/Makefile
2492 src/joystick/beos/Makefile 2535 src/joystick/beos/Makefile
2493 src/joystick/bsd/Makefile 2536 src/joystick/bsd/Makefile