Skip to content
Permalink
Browse files

Updated generated configure script.

  • Loading branch information
philippwiesemann committed Jul 9, 2017
1 parent 707ee5b commit 881002370413c0a2f70531550923042da7e57df0
Showing with 42 additions and 1 deletion.
  1. +42 −1 configure
fi
}

CheckQNXVideo()
{
if test x$enable_video = xyes; then

$as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h

SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
have_video=yes
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
SUMMARY_video="${SUMMARY_video} qnx"
fi
}

CheckQNXAudio()
{
if test x$enable_audio = xyes; then

$as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h

SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
have_audio=yes
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
SUMMARY_audio="${SUMMARY_audio} qsa"
fi
}

# Check whether --enable-video-opengl was given.
if test "${enable_video_opengl+set}" = set; then :
enableval=$enable_video_opengl;
pthread_cflags="-D_REENTRANT"
pthread_lib=""
;;
*-*-nto*)
pthread_cflags="-D_REENTRANT"
pthread_lib=""
;;
*)
pthread_cflags="-D_REENTRANT"
pthread_lib="-lpthread"
CheckWarnAll

case "$host" in
*-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
*-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
case "$host" in
*-raspberry-linux*)
# Raspberry Pi
*-*-hpux*) ARCH=hpux ;;
*-*-aix*) ARCH=aix ;;
*-*-minix*) ARCH=minix ;;
*-*-nto*) ARCH=nto
CheckQNXVideo
;;
esac
CheckVisibilityHidden
CheckDeclarationAfterStatement
CheckLinuxVersion
CheckRPATH
CheckVivanteVideo

# Set up files for the audio library
if test x$enable_audio = xyes; then
case $ARCH in
$as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h

SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
SUMMARY_audio="${SUMMARY_audio} sun"
have_audio=yes
;;
netbsd) # Don't use this on OpenBSD, it's busted.

$as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h

SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
SUMMARY_audio="${SUMMARY_audio} netbsd"
have_audio=yes
;;
aix)

$as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h

SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
SUMMARY_audio="${SUMMARY_audio} paudio"
have_audio=yes
;;
android)
SUMMARY_audio="${SUMMARY_audio} android"
have_audio=yes
;;
nto)
CheckQNXAudio
;;
esac
fi
# Set up files for the joystick library
$as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h

SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
SUMMARY_audio="${SUMMARY_audio} haiku"
have_audio=yes
fi
# Set up files for the joystick library

0 comments on commit 8810023

Please sign in to comment.