@@ -2098,6 +2098,30 @@ AC_HELP_STRING([--enable-video-dummy], [use dummy video driver [[default=yes]]])
2098
2098
fi
2099
2099
}
2100
2100
2101
+ dnl Set up the QNX video driver if enabled
2102
+ CheckQNXVideo()
2103
+ {
2104
+ if test x$enable_video = xyes; then
2105
+ AC_DEFINE(SDL_VIDEO_DRIVER_QNX, 1, [ ])
2106
+ SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
2107
+ have_video=yes
2108
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
2109
+ SUMMARY_video="${SUMMARY_video} qnx"
2110
+ fi
2111
+ }
2112
+
2113
+ dnl Set up the QNX audio driver if enabled
2114
+ CheckQNXAudio()
2115
+ {
2116
+ if test x$enable_audio = xyes; then
2117
+ AC_DEFINE(SDL_AUDIO_DRIVER_QSA, 1, [ ])
2118
+ SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
2119
+ have_video=yes
2120
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
2121
+ SUMMARY_audio="${SUMMARY_audio} qsa"
2122
+ fi
2123
+ }
2124
+
2101
2125
dnl Check to see if OpenGL support is desired
2102
2126
AC_ARG_ENABLE(video-opengl,
2103
2127
AC_HELP_STRING([--enable-video-opengl], [include OpenGL support [[default=yes]]]),
@@ -2573,6 +2597,10 @@ AC_HELP_STRING([--enable-pthread-sem], [use pthread semaphores [[default=yes]]])
2573
2597
pthread_cflags="-D_REENTRANT"
2574
2598
pthread_lib=""
2575
2599
;;
2600
+ *-*-nto*)
2601
+ pthread_cflags="-D_REENTRANT"
2602
+ pthread_lib=""
2603
+ ;;
2576
2604
*)
2577
2605
pthread_cflags="-D_REENTRANT"
2578
2606
pthread_lib="-lpthread"
@@ -3017,7 +3045,7 @@ CheckWarnAll
3017
3045
3018
3046
dnl Set up the configuration based on the host platform!
3019
3047
case "$host" in
3020
- *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
3048
+ *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto* )
3021
3049
case "$host" in
3022
3050
*-raspberry-linux*)
3023
3051
# Raspberry Pi
@@ -3082,6 +3110,9 @@ case "$host" in
3082
3110
*-*-hpux*) ARCH=hpux ;;
3083
3111
*-*-aix*) ARCH=aix ;;
3084
3112
*-*-minix*) ARCH=minix ;;
3113
+ *-*-nto*) ARCH=nto
3114
+ CheckQNXVideo
3115
+ ;;
3085
3116
esac
3086
3117
CheckVisibilityHidden
3087
3118
CheckDeclarationAfterStatement
@@ -3123,6 +3154,7 @@ case "$host" in
3123
3154
CheckLinuxVersion
3124
3155
CheckRPATH
3125
3156
CheckVivanteVideo
3157
+
3126
3158
# Set up files for the audio library
3127
3159
if test x$enable_audio = xyes; then
3128
3160
case $ARCH in
@@ -3147,6 +3179,9 @@ case "$host" in
3147
3179
SUMMARY_audio="${SUMMARY_audio} android"
3148
3180
have_audio=yes
3149
3181
;;
3182
+ nto)
3183
+ CheckQNXAudio
3184
+ ;;
3150
3185
esac
3151
3186
fi
3152
3187
# Set up files for the joystick library
0 commit comments