Mercurial > sdl-ios-xcode
comparison configure.in @ 3257:94fb40a4a9a7
Merged Martin's code changes from Google Summer of Code 2009
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 07 Sep 2009 04:51:29 +0000 |
parents | 5db962a9a991 |
children | 82ce350be859 |
comparison
equal
deleted
inserted
replaced
3256:83c87f2b2aab | 3257:94fb40a4a9a7 |
---|---|
1507 have_video=yes | 1507 have_video=yes |
1508 fi | 1508 fi |
1509 fi | 1509 fi |
1510 } | 1510 } |
1511 | 1511 |
1512 dnl See if we're running on PlayStation 3 Cell hardware | |
1513 CheckPS3() | |
1514 { | |
1515 AC_ARG_ENABLE(video-ps3, | |
1516 AC_HELP_STRING([--enable-video-ps3], [use PlayStation 3 Cell driver [[default=yes]]]), | |
1517 , enable_video_ps3=yes) | |
1518 if test x$enable_video = xyes -a x$enable_video_ps3 = xyes; then | |
1519 video_ps3=no | |
1520 AC_CHECK_HEADER([linux/fb.h]) | |
1521 AC_CHECK_HEADER([asm/ps3fb.h], [have_ps3fb_hdr=yes], [], | |
1522 [#ifndef _LINUX_TYPES_H | |
1523 #include <linux/types.h> | |
1524 #endif]) | |
1525 AC_CHECK_HEADER([libspe2.h], have_libspe2_hdr=yes) | |
1526 AC_CHECK_LIB([spe2], spe_context_create, have_spe2_lib=yes) | |
1527 | |
1528 AC_CHECK_PROGS(SPU_GCC, [spu-gcc]) | |
1529 AC_CHECK_PROGS(EMBEDSPU, [embedspu]) | |
1530 | |
1531 have_spu_libs=yes | |
1532 AC_CHECK_LIB([fb_writer_spu], [main], [], [have_spu_libs=no]) | |
1533 AC_CHECK_LIB([yuv2rgb_spu], [main], [], [have_spu_libs=no]) | |
1534 AC_CHECK_LIB([bilin_scaler_spu], [main], [], [have_spu_libs=no]) | |
1535 if test x$have_ps3fb_hdr = xyes -a x$have_libspe2_hdr = xyes -a x$have_spe2_lib = xyes -a "$SPU_GCC" -a "$EMBEDSPU"; then | |
1536 AC_DEFINE(SDL_VIDEO_DRIVER_PS3) | |
1537 video_ps3=yes | |
1538 have_video=yes | |
1539 SOURCES="$SOURCES $srcdir/src/video/ps3/*.c" | |
1540 EXTRA_CFLAGS="$EXTRA_CFLAGS -I/opt/cell/sdk/usr/include" | |
1541 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/cell/sdk/usr/lib -lspe2 -lfb_writer_spu -lyuv2rgb_spu -lbilin_scaler_spu" | |
1542 | |
1543 if test x$have_spu_libs = xno; then | |
1544 AC_MSG_WARN([ps3libs missing, please run make ps3libs]) | |
1545 fi | |
1546 fi | |
1547 AC_MSG_CHECKING([for PlayStation 3 Cell support]) | |
1548 AC_MSG_RESULT([$video_ps3]) | |
1549 fi | |
1550 } | |
1551 | |
1512 dnl Find the SVGAlib includes and libraries | 1552 dnl Find the SVGAlib includes and libraries |
1513 CheckSVGA() | 1553 CheckSVGA() |
1514 { | 1554 { |
1515 AC_ARG_ENABLE(video-svga, | 1555 AC_ARG_ENABLE(video-svga, |
1516 AC_HELP_STRING([--enable-video-svga], [use SVGAlib video driver [[default=no]]]), | 1556 AC_HELP_STRING([--enable-video-svga], [use SVGAlib video driver [[default=no]]]), |
2399 CheckNANOX | 2439 CheckNANOX |
2400 CheckFBCON | 2440 CheckFBCON |
2401 CheckDirectFB | 2441 CheckDirectFB |
2402 CheckFusionSound | 2442 CheckFusionSound |
2403 CheckPS2GS | 2443 CheckPS2GS |
2444 CheckPS3 | |
2404 CheckSVGA | 2445 CheckSVGA |
2405 CheckVGL | 2446 CheckVGL |
2406 CheckWscons | 2447 CheckWscons |
2407 CheckOpenGLX11 | 2448 CheckOpenGLX11 |
2408 CheckInputEvents | 2449 CheckInputEvents |