comparison configure.in @ 5153:1435f8a6425c

Nobody is currently maintaining the QNX code, so removing it for now.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 01 Feb 2011 21:40:03 -0800
parents 57851a238c8f
children fb424691cfc7
comparison
equal deleted inserted replaced
5152:be02be2ea897 5153:1435f8a6425c
1324 fi 1324 fi
1325 fi 1325 fi
1326 fi 1326 fi
1327 } 1327 }
1328 1328
1329 dnl Check for QNX photon video driver
1330 CheckPHOTON()
1331 {
1332 AC_ARG_ENABLE(video-photon,
1333 AC_HELP_STRING([--enable-video-photon], [use QNX Photon video driver [[default=yes]]]),
1334 , enable_video_photon=yes)
1335 if test x$enable_video = xyes -a x$enable_video_photon = xyes; then
1336 AC_MSG_CHECKING(for QNX Photon support)
1337 video_photon=no
1338 AC_TRY_COMPILE([
1339 #include <Ph.h>
1340 #include <Pt.h>
1341 #include <photon/Pg.h>
1342 #include <photon/PdDirect.h>
1343 ],[
1344 PgDisplaySettings_t *visual;
1345 ],[
1346 video_photon=yes
1347 ])
1348 AC_MSG_RESULT($video_photon)
1349 if test x$video_photon = xyes; then
1350 AC_DEFINE(SDL_VIDEO_DRIVER_PHOTON)
1351 SOURCES="$SOURCES $srcdir/src/video/photon/*.c"
1352 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lph -lphrender"
1353 have_video=yes
1354
1355 CheckOpenGLQNX
1356 fi
1357 fi
1358 }
1359
1360 dnl Check for QNX photon video driver
1361 CheckQNXGF()
1362 {
1363 AC_ARG_ENABLE(video-qnxgf,
1364 AC_HELP_STRING([--enable-video-qnxgf], [use QNX GF video driver [[default=yes]]]),
1365 , enable_video_qnxgf=yes)
1366 if test x$enable_video = xyes -a x$enable_video_qnxgf = xyes; then
1367 AC_MSG_CHECKING(for QNX GF support)
1368 video_qnxgf=no
1369 AC_TRY_COMPILE([
1370 #include <gf/gf.h>
1371 #include <gf/gf3d.h>
1372 ],[
1373 gf_3d_config_info_t* gfinfo;
1374 ],[
1375 video_qnxgf=yes
1376 ])
1377 AC_MSG_RESULT($video_qnxgf)
1378 if test x$video_qnxgf = xyes; then
1379 AC_DEFINE(SDL_VIDEO_DRIVER_QNXGF)
1380 SOURCES="$SOURCES $srcdir/src/video/qnxgf/*.c"
1381 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lgf"
1382
1383 # Add HIDDI library for HID support using GF
1384 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lhiddi"
1385
1386 have_video=yes
1387
1388 CheckOpenGLESQNX
1389 fi
1390 fi
1391 }
1392
1393 dnl Set up the BWindow video driver if enabled 1329 dnl Set up the BWindow video driver if enabled
1394 CheckBWINDOW() 1330 CheckBWINDOW()
1395 { 1331 {
1396 if test x$enable_video = xyes; then 1332 if test x$enable_video = xyes; then
1397 AC_DEFINE(SDL_VIDEO_DRIVER_BWINDOW) 1333 AC_DEFINE(SDL_VIDEO_DRIVER_BWINDOW)
1591 AC_DEFINE(SDL_VIDEO_OPENGL_GLX) 1527 AC_DEFINE(SDL_VIDEO_OPENGL_GLX)
1592 AC_DEFINE(SDL_VIDEO_RENDER_OGL) 1528 AC_DEFINE(SDL_VIDEO_RENDER_OGL)
1593 fi 1529 fi
1594 fi 1530 fi
1595 } 1531 }
1596
1597 dnl Find QNX 6.x Software OpenGL
1598 CheckOpenGLQNX()
1599 {
1600 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
1601 AC_MSG_CHECKING(for QNX 6.x Photon OpenGL support)
1602 video_opengl=no
1603 AC_TRY_COMPILE([
1604 #include <GL/gl.h>
1605 ],[
1606 ],[
1607 video_opengl=yes
1608 ])
1609 AC_MSG_RESULT($video_opengl)
1610 if test x$video_opengl = xyes; then
1611 AC_DEFINE(SDL_VIDEO_OPENGL)
1612 AC_DEFINE(SDL_VIDEO_RENDER_OGL)
1613 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
1614 fi
1615 fi
1616 }
1617
1618 dnl Find QNX 6.3 and above OpenGL ES implementation
1619 CheckOpenGLESQNX()
1620 {
1621 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
1622 AC_MSG_CHECKING(for QNX OpenGL ES (CM) support)
1623 video_opengl=no
1624 AC_TRY_COMPILE([
1625 #include <GLES/egl.h>
1626 ],[
1627 ],[
1628 video_opengl=yes
1629 ])
1630 AC_MSG_RESULT($video_opengl)
1631 if test x$video_opengl = xyes; then
1632 AC_DEFINE(SDL_VIDEO_OPENGL_ES)
1633 AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES)
1634 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGLES_CM"
1635 else
1636 AC_MSG_CHECKING(for QNX OpenGL ES (CL) support)
1637 video_opengl=no
1638 AC_TRY_COMPILE([
1639 #define COMMON_LITE
1640 #include <GLES/egl.h>
1641 ],[
1642 ],[
1643 video_opengl=yes
1644 ])
1645 AC_MSG_RESULT($video_opengl)
1646 if test x$video_opengl = xyes; then
1647 AC_DEFINE(SDL_VIDEO_OPENGL_ES)
1648 AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES)
1649 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGLES_CLS"
1650 fi
1651 fi
1652 fi
1653 }
1654
1655 1532
1656 dnl Check for Windows OpenGL 1533 dnl Check for Windows OpenGL
1657 CheckWINDOWSGL() 1534 CheckWINDOWSGL()
1658 { 1535 {
1659 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 1536 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
1793 pthread_lib="-lpthread" 1670 pthread_lib="-lpthread"
1794 ;; 1671 ;;
1795 *-*-hpux11*) 1672 *-*-hpux11*)
1796 pthread_cflags="-D_REENTRANT" 1673 pthread_cflags="-D_REENTRANT"
1797 pthread_lib="-L/usr/lib -lpthread" 1674 pthread_lib="-L/usr/lib -lpthread"
1798 ;;
1799 *-*-qnx*)
1800 pthread_cflags=""
1801 pthread_lib=""
1802 ;; 1675 ;;
1803 *-*-osf*) 1676 *-*-osf*)
1804 pthread_cflags="-D_REENTRANT" 1677 pthread_cflags="-D_REENTRANT"
1805 if test x$ac_cv_prog_gcc = xyes; then 1678 if test x$ac_cv_prog_gcc = xyes; then
1806 pthread_lib="-lpthread -lrt" 1679 pthread_lib="-lpthread -lrt"
2285 AC_DEFINE(SDL_TIMER_UNIX) 2158 AC_DEFINE(SDL_TIMER_UNIX)
2286 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 2159 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
2287 have_timers=yes 2160 have_timers=yes
2288 fi 2161 fi
2289 ;; 2162 ;;
2290 *-*-qnx*)
2291
2292 EXTRA_CFLAGS="-I/usr/include $CFLAGS"
2293 EXTRA_LDLAGS="-L/usr/lib $LDFLAGS"
2294
2295 ARCH=qnx
2296 CheckVisibilityHidden
2297 CheckDummyVideo
2298 CheckDiskAudio
2299 CheckDummyAudio
2300 CheckDLOPEN
2301 CheckPulseAudio
2302 CheckESD
2303 CheckNAS
2304 CheckPHOTON
2305 CheckQNXGF
2306 CheckX11
2307 CheckOpenGLX11
2308 CheckPTHREAD
2309 CheckClockGettime
2310
2311
2312 # Set up files for the audio library
2313 if test x$enable_audio = xyes; then
2314 AC_DEFINE(SDL_AUDIO_DRIVER_QSA)
2315 SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
2316 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
2317 have_audio=yes
2318 fi
2319 # Set up files for the timer library
2320 if test x$enable_timers = xyes; then
2321 AC_DEFINE(SDL_TIMER_UNIX)
2322 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
2323 have_timers=yes
2324 fi
2325 # Set up dummy files for the joystick for now
2326 if test x$enable_joystick = xyes; then
2327 AC_DEFINE(SDL_JOYSTICK_DUMMY)
2328 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
2329 have_joystick=yes
2330 fi
2331 # Set up dummy files for the haptic for now
2332 if test x$enable_haptic = xyes; then
2333 AC_DEFINE(SDL_HAPTIC_DUMMY)
2334 SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
2335 have_haptic=yes
2336 fi
2337 ;;
2338 *-wince* | *-mingw32ce) 2163 *-wince* | *-mingw32ce)
2339 ARCH=win32 2164 ARCH=win32
2340 CheckDummyVideo 2165 CheckDummyVideo
2341 CheckDiskAudio 2166 CheckDiskAudio
2342 CheckDummyAudio 2167 CheckDummyAudio