mirror of
https://github.com/yawut/SDL.git
synced 2026-08-26 18:55:32 -05:00
Disable OSS and BSD audio targets on OpenBSD.
This commit is contained in:
17
configure.in
17
configure.in
@@ -646,8 +646,19 @@ dnl See if the OSS audio interface is supported
|
||||
CheckOSS()
|
||||
{
|
||||
AC_ARG_ENABLE(oss,
|
||||
AC_HELP_STRING([--enable-oss], [support the OSS audio API [[default=yes]]]),
|
||||
, enable_oss=yes)
|
||||
AC_HELP_STRING([--enable-oss], [support the OSS audio API [[default=maybe]]]),
|
||||
, enable_oss=maybe)
|
||||
|
||||
# OpenBSD "has" OSS, but it's not really for app use. They want you to
|
||||
# use sndio instead. So on there, we default to disabled. You can force
|
||||
# it on if you really want, though.
|
||||
if test x$enable_oss = xmaybe; then
|
||||
enable_oss=yes
|
||||
case "$host" in
|
||||
*-*-openbsd*)
|
||||
enable_oss=no;;
|
||||
fi
|
||||
|
||||
if test x$enable_audio = xyes -a x$enable_oss = xyes; then
|
||||
AC_MSG_CHECKING(for OSS audio support)
|
||||
have_oss=no
|
||||
@@ -2334,7 +2345,7 @@ case "$host" in
|
||||
SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
|
||||
have_audio=yes
|
||||
;;
|
||||
netbsd|openbsd)
|
||||
netbsd) # Don't use this on OpenBSD, it's busted.
|
||||
AC_DEFINE(SDL_AUDIO_DRIVER_BSD, 1, [ ])
|
||||
SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
|
||||
have_audio=yes
|
||||
|
||||
Reference in New Issue
Block a user