configure.in
changeset 12054 e604fe493d45
parent 12035 1a7dec71e8e0
child 12055 bf70bfa02215
     1.1 --- a/configure.in	Sat Jun 30 20:55:51 2018 +0300
     1.2 +++ b/configure.in	Sun Jul 01 17:01:04 2018 +0300
     1.3 @@ -3079,6 +3079,10 @@
     1.4          SUMMARY_video="${SUMMARY_video} directx"
     1.5          SUMMARY_audio="${SUMMARY_audio} directx"
     1.6  
     1.7 +        AC_ARG_ENABLE(audio-wasapi,
     1.8 +AC_HELP_STRING([--enable-audio-wasapi], [use the Windows WASAPI audio driver [[default=yes]]]),
     1.9 +                                , enable_audio_wasapi=yes)
    1.10 +
    1.11          # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
    1.12          # FIXME:  ...so force it off for now.
    1.13          case "$host" in
    1.14 @@ -3547,8 +3551,9 @@
    1.15                  AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND, 1, [ ])
    1.16                  SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
    1.17              fi
    1.18 -            if test x$have_wasapi = xyes; then
    1.19 +            if test x$have_wasapi = xyes -a x$enable_audio_wasapi = xyes; then
    1.20                  AC_DEFINE(SDL_AUDIO_DRIVER_WASAPI, 1, [ ])
    1.21 +                SUMMARY_audio="${SUMMARY_audio} wasapi"
    1.22                  SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
    1.23              fi
    1.24              have_audio=yes