configure.in
changeset 11335 a9f4f63b5add
parent 11326 ba4fe3686323
child 11337 d9f24e95e8ba
     1.1 --- a/configure.in	Mon Aug 21 00:42:06 2017 -0400
     1.2 +++ b/configure.in	Mon Aug 21 11:17:38 2017 -0700
     1.3 @@ -2876,6 +2876,8 @@
     1.4          AC_CHECK_HEADER(dxgi.h, have_dxgi=yes)
     1.5          AC_CHECK_HEADER(xaudio2.h, have_xaudio2=yes)
     1.6          AC_CHECK_HEADER(xinput.h, have_xinput=yes)
     1.7 +        AC_CHECK_HEADER(mmdeviceapi.h, have_wasapi=yes)
     1.8 +        AC_CHECK_HEADER(audioclient.h,,have_wasapi=no)
     1.9          AC_TRY_COMPILE([
    1.10  #include <windows.h>
    1.11  #include <xinput.h>
    1.12 @@ -3405,8 +3407,10 @@
    1.13                  AC_DEFINE(SDL_AUDIO_DRIVER_XAUDIO2, 1, [ ])
    1.14                  SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
    1.15              fi
    1.16 -            AC_DEFINE(SDL_AUDIO_DRIVER_WASAPI, 1, [ ])
    1.17 -            SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
    1.18 +            if test x$have_wasapi = xyes; then
    1.19 +                AC_DEFINE(SDL_AUDIO_DRIVER_WASAPI, 1, [ ])
    1.20 +                SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
    1.21 +            fi
    1.22              have_audio=yes
    1.23          fi
    1.24          # Set up files for the joystick library