configure.in
branchSDL-1.2
changeset 4165 3b8ac3d311a2
parent 4164 7a4c511c980a
child 4167 a6f635e5eaa6
     1.1 --- a/configure.in	Tue Mar 17 03:58:53 2009 +0000
     1.2 +++ b/configure.in	Thu Apr 02 04:06:55 2009 +0000
     1.3 @@ -1287,6 +1287,33 @@
     1.4      fi
     1.5  }
     1.6  
     1.7 +dnl See if we're running on PlayStation 3 Cell hardware
     1.8 +CheckPS3()
     1.9 +{
    1.10 +  AC_ARG_ENABLE(video-ps3,
    1.11 +                AC_HELP_STRING([--enable-video-ps3], [use PlayStation 3 Cell driver [[default=yes]]]),
    1.12 +                , enable_video_ps3=yes)
    1.13 +  if test x$enable_video = xyes -a x$enable_video_ps3 = xyes; then
    1.14 +    AC_MSG_CHECKING(for PlayStation 3 Cell support)
    1.15 +    video_ps3=no
    1.16 +    AC_TRY_COMPILE([
    1.17 +      #include <linux/fb.h>
    1.18 +      #include <asm/ps3fb.h>
    1.19 +    ],[
    1.20 +    ],[
    1.21 +      video_ps3=yes
    1.22 +    ])
    1.23 +    AC_MSG_RESULT($video_ps3)
    1.24 +    if test x$video_ps3 = xyes; then
    1.25 +      AC_DEFINE(SDL_VIDEO_DRIVER_PS3)
    1.26 +      SOURCES="$SOURCES $srcdir/src/video/ps3/*.c"
    1.27 +      EXTRA_CFLAGS="$EXTRA_CFLAGS -I/opt/cell/sdk/usr/include"
    1.28 +      EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lbilin_scaler_spu -lfb_writer_spu -lyuv2rgb_spu -L/opt/cell/sdk/usr/lib -lspe2"
    1.29 +      have_video=yes
    1.30 +    fi
    1.31 +  fi
    1.32 +}
    1.33 +
    1.34  dnl Find the GGI includes
    1.35  CheckGGI()
    1.36  {
    1.37 @@ -2251,6 +2278,7 @@
    1.38          CheckFBCON
    1.39          CheckDirectFB
    1.40          CheckPS2GS
    1.41 +        CheckPS3
    1.42          CheckGGI
    1.43          CheckSVGA
    1.44          CheckVGL