configure.in
changeset 7380 e5830832d3f0
parent 7379 b27c778a2bdb
child 7388 058097637b4c
equal deleted inserted replaced
7379:b27c778a2bdb 7380:e5830832d3f0
   644 
   644 
   645 dnl See if the OSS audio interface is supported
   645 dnl See if the OSS audio interface is supported
   646 CheckOSS()
   646 CheckOSS()
   647 {
   647 {
   648     AC_ARG_ENABLE(oss,
   648     AC_ARG_ENABLE(oss,
   649 AC_HELP_STRING([--enable-oss], [support the OSS audio API [[default=yes]]]),
   649 AC_HELP_STRING([--enable-oss], [support the OSS audio API [[default=maybe]]]),
   650                   , enable_oss=yes)
   650                   , enable_oss=maybe)
       
   651 
       
   652     # OpenBSD "has" OSS, but it's not really for app use. They want you to
       
   653     #  use sndio instead. So on there, we default to disabled. You can force
       
   654     #  it on if you really want, though.
       
   655     if test x$enable_oss = xmaybe; then
       
   656         enable_oss=yes
       
   657         case "$host" in
       
   658             *-*-openbsd*)
       
   659                 enable_oss=no;;
       
   660     fi
       
   661 
   651     if test x$enable_audio = xyes -a x$enable_oss = xyes; then
   662     if test x$enable_audio = xyes -a x$enable_oss = xyes; then
   652         AC_MSG_CHECKING(for OSS audio support)
   663         AC_MSG_CHECKING(for OSS audio support)
   653         have_oss=no
   664         have_oss=no
   654         if test x$have_oss != xyes; then
   665         if test x$have_oss != xyes; then
   655             AC_TRY_COMPILE([
   666             AC_TRY_COMPILE([
  2332             sysv5|solaris|hpux)
  2343             sysv5|solaris|hpux)
  2333                 AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO, 1, [ ])
  2344                 AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO, 1, [ ])
  2334                 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  2345                 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  2335                 have_audio=yes
  2346                 have_audio=yes
  2336             ;;
  2347             ;;
  2337             netbsd|openbsd)
  2348             netbsd)  # Don't use this on OpenBSD, it's busted.
  2338                 AC_DEFINE(SDL_AUDIO_DRIVER_BSD, 1, [ ])
  2349                 AC_DEFINE(SDL_AUDIO_DRIVER_BSD, 1, [ ])
  2339                 SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  2350                 SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  2340                 have_audio=yes
  2351                 have_audio=yes
  2341             ;;
  2352             ;;
  2342             aix)
  2353             aix)