comparison configure.in @ 5048:187d7d446306

PS3 Linux is no more...
author Sam Lantinga <slouken@libsdl.org>
date Wed, 19 Jan 2011 22:25:40 -0800
parents edaf3e364a05
children 2add0d17180b
comparison
equal deleted inserted replaced
5047:edaf3e364a05 5048:187d7d446306
1544 have_audio=yes 1544 have_audio=yes
1545 fi 1545 fi
1546 fi 1546 fi
1547 } 1547 }
1548 1548
1549 dnl See if we're running on PlayStation 3 Cell hardware
1550 CheckPS3()
1551 {
1552 AC_ARG_ENABLE(video-ps3,
1553 AC_HELP_STRING([--enable-video-ps3], [use PlayStation 3 Cell driver [[default=yes]]]),
1554 , enable_video_ps3=yes)
1555 if test x$enable_video = xyes -a x$enable_video_ps3 = xyes; then
1556 video_ps3=no
1557 AC_CHECK_HEADER([linux/fb.h])
1558 AC_CHECK_HEADER([asm/ps3fb.h], [have_ps3fb_hdr=yes], [],
1559 [#ifndef _LINUX_TYPES_H
1560 #include <linux/types.h>
1561 #endif])
1562 AC_CHECK_HEADER([libspe2.h], have_libspe2_hdr=yes)
1563 AC_CHECK_LIB([spe2], spe_context_create, have_spe2_lib=yes)
1564
1565 AC_CHECK_PROGS(SPU_GCC, [spu-gcc])
1566 AC_CHECK_PROGS(EMBEDSPU, [embedspu])
1567
1568 have_spu_libs=yes
1569 AC_CHECK_LIB([fb_writer_spu], [main], [], [have_spu_libs=no])
1570 AC_CHECK_LIB([yuv2rgb_spu], [main], [], [have_spu_libs=no])
1571 AC_CHECK_LIB([bilin_scaler_spu], [main], [], [have_spu_libs=no])
1572 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
1573 AC_DEFINE(SDL_VIDEO_DRIVER_PS3)
1574 video_ps3=yes
1575 have_video=yes
1576 SOURCES="$SOURCES $srcdir/src/video/ps3/*.c"
1577 EXTRA_CFLAGS="$EXTRA_CFLAGS -I/opt/cell/sdk/usr/include"
1578 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/cell/sdk/usr/lib -lspe2 -lfb_writer_spu -lyuv2rgb_spu -lbilin_scaler_spu"
1579
1580 if test x$have_spu_libs = xno; then
1581 AC_MSG_WARN([ps3libs missing, please run make ps3libs])
1582 fi
1583 fi
1584 AC_MSG_CHECKING([for PlayStation 3 Cell support])
1585 AC_MSG_RESULT([$video_ps3])
1586 fi
1587 }
1588
1589 dnl rcg04172001 Set up the Null video driver. 1549 dnl rcg04172001 Set up the Null video driver.
1590 CheckDummyVideo() 1550 CheckDummyVideo()
1591 { 1551 {
1592 AC_ARG_ENABLE(video-dummy, 1552 AC_ARG_ENABLE(video-dummy,
1593 AC_HELP_STRING([--enable-video-dummy], [use dummy video driver [[default=yes]]]), 1553 AC_HELP_STRING([--enable-video-dummy], [use dummy video driver [[default=yes]]]),
2243 CheckESD 2203 CheckESD
2244 CheckNAS 2204 CheckNAS
2245 CheckX11 2205 CheckX11
2246 CheckDirectFB 2206 CheckDirectFB
2247 CheckFusionSound 2207 CheckFusionSound
2248 CheckPS3
2249 CheckOpenGLX11 2208 CheckOpenGLX11
2250 CheckInputEvents 2209 CheckInputEvents
2251 CheckTslib 2210 CheckTslib
2252 CheckUSBHID 2211 CheckUSBHID
2253 CheckPTHREAD 2212 CheckPTHREAD