X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=sdl_omap.git;a=blobdiff_plain;f=configure.in;h=209f6bcdead7fca4eee91e5d242ab26a760a526c;hp=a7e9b1831d2853b3ecae8832db99f475ec3066e4;hb=HEAD;hpb=e14743d15a38081776e29fcc16d2de7e61e3d2b6 diff --git a/configure.in b/configure.in index a7e9b18..209f6bc 100644 --- a/configure.in +++ b/configure.in @@ -1505,6 +1505,25 @@ AC_HELP_STRING([--enable-video-caca], [use libcaca video driver [[default=no]]]) fi } +dnl Check for ARM NEON +CheckARM_NEON() +{ + AC_MSG_CHECKING(for ARM NEON support) + have_arm_neon=no + AC_TRY_COMPILE([ + ],[ + #ifndef __ARM_NEON__ + #error NEON not available + #endif + ],[ + have_arm_neon=yes + ]) + AC_MSG_RESULT($have_arm_neon) + if test x$have_arm_neon = xyes; then + SOURCES="$SOURCES $srcdir/src/video/SDL_blit_neon.S" + fi +} + dnl Set up the QTopia video driver if enabled CheckQtopia() { @@ -1606,6 +1625,26 @@ AC_HELP_STRING([--enable-video-gem], [use Atari Gem video driver [[default=yes]] fi } +dnl OMAP +CheckOMAPDSS() +{ + AC_ARG_ENABLE(video-omapdss, +AC_HELP_STRING([--enable-video-omapdss], [use OMAP DSS2 video driver [[default=yes]]]), + , enable_video_omapdss=yes) + + if test x$enable_video_omapdss = xyes; then + AC_DEFINE(SDL_VIDEO_DRIVER_OMAPDSS) + SOURCES="$SOURCES $srcdir/src/video/omapdss/sdlif.c" + SOURCES="$SOURCES $srcdir/src/video/omapdss/osdl_input.c" + SOURCES="$SOURCES $srcdir/src/video/omapdss/osdl_video.c" + SOURCES="$SOURCES $srcdir/src/video/omapdss/config.c" + SOURCES="$SOURCES $srcdir/src/video/omapdss/SDL_x11reuse.c" + SOURCES="$SOURCES $srcdir/src/video/omapdss/linux/fbdev.c" + SOURCES="$SOURCES $srcdir/src/video/omapdss/linux/xenv.c" + have_video=yes + fi +} + dnl rcg04172001 Set up the Null video driver. CheckDummyVideo() { @@ -2341,6 +2380,8 @@ case "$host" in CheckClockGettime CheckLinuxVersion CheckRPATH + CheckOMAPDSS + CheckARM_NEON # Set up files for the audio library if test x$enable_audio = xyes; then case $ARCH in