Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Disable OSS and BSD audio targets on OpenBSD.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 8, 2013
1 parent d80044c commit b9106e0
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions configure.in
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b9106e0

Please sign in to comment.