Skip to content

Commit

Permalink
Updated generated configure script.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Jul 9, 2017
1 parent 707ee5b commit 8810023
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion configure
Expand Up @@ -21328,6 +21328,32 @@ $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
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;
Expand Down Expand Up @@ -22227,6 +22253,10 @@ fi
pthread_cflags="-D_REENTRANT"
pthread_lib=""
;;
*-*-nto*)
pthread_cflags="-D_REENTRANT"
pthread_lib=""
;;
*)
pthread_cflags="-D_REENTRANT"
pthread_lib="-lpthread"
Expand Down Expand Up @@ -23306,7 +23336,7 @@ fi
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
Expand Down Expand Up @@ -23371,6 +23401,9 @@ case "$host" in
*-*-hpux*) ARCH=hpux ;;
*-*-aix*) ARCH=aix ;;
*-*-minix*) ARCH=minix ;;
*-*-nto*) ARCH=nto
CheckQNXVideo
;;
esac
CheckVisibilityHidden
CheckDeclarationAfterStatement
Expand Down Expand Up @@ -23412,6 +23445,7 @@ case "$host" in
CheckLinuxVersion
CheckRPATH
CheckVivanteVideo

# Set up files for the audio library
if test x$enable_audio = xyes; then
case $ARCH in
Expand All @@ -23420,20 +23454,23 @@ case "$host" 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)
Expand All @@ -23444,6 +23481,9 @@ $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
SUMMARY_audio="${SUMMARY_audio} android"
have_audio=yes
;;
nto)
CheckQNXAudio
;;
esac
fi
# Set up files for the joystick library
Expand Down Expand Up @@ -23758,6 +23798,7 @@ fi
$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
Expand Down

0 comments on commit 8810023

Please sign in to comment.