configure.in
changeset 11335 a9f4f63b5add
parent 11326 ba4fe3686323
child 11337 d9f24e95e8ba
equal deleted inserted replaced
11334:749cb40916f2 11335:a9f4f63b5add
  2874         AC_CHECK_HEADER(dsound.h, have_dsound=yes)
  2874         AC_CHECK_HEADER(dsound.h, have_dsound=yes)
  2875         AC_CHECK_HEADER(dinput.h, have_dinput=yes)
  2875         AC_CHECK_HEADER(dinput.h, have_dinput=yes)
  2876         AC_CHECK_HEADER(dxgi.h, have_dxgi=yes)
  2876         AC_CHECK_HEADER(dxgi.h, have_dxgi=yes)
  2877         AC_CHECK_HEADER(xaudio2.h, have_xaudio2=yes)
  2877         AC_CHECK_HEADER(xaudio2.h, have_xaudio2=yes)
  2878         AC_CHECK_HEADER(xinput.h, have_xinput=yes)
  2878         AC_CHECK_HEADER(xinput.h, have_xinput=yes)
       
  2879         AC_CHECK_HEADER(mmdeviceapi.h, have_wasapi=yes)
       
  2880         AC_CHECK_HEADER(audioclient.h,,have_wasapi=no)
  2879         AC_TRY_COMPILE([
  2881         AC_TRY_COMPILE([
  2880 #include <windows.h>
  2882 #include <windows.h>
  2881 #include <xinput.h>
  2883 #include <xinput.h>
  2882 XINPUT_GAMEPAD_EX x1;
  2884 XINPUT_GAMEPAD_EX x1;
  2883         ],[],[have_xinput_gamepadex=yes])
  2885         ],[],[have_xinput_gamepadex=yes])
  3403             fi
  3405             fi
  3404             if test x$have_xaudio2 = xyes; then
  3406             if test x$have_xaudio2 = xyes; then
  3405                 AC_DEFINE(SDL_AUDIO_DRIVER_XAUDIO2, 1, [ ])
  3407                 AC_DEFINE(SDL_AUDIO_DRIVER_XAUDIO2, 1, [ ])
  3406                 SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  3408                 SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  3407             fi
  3409             fi
  3408             AC_DEFINE(SDL_AUDIO_DRIVER_WASAPI, 1, [ ])
  3410             if test x$have_wasapi = xyes; then
  3409             SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  3411                 AC_DEFINE(SDL_AUDIO_DRIVER_WASAPI, 1, [ ])
       
  3412                 SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
       
  3413             fi
  3410             have_audio=yes
  3414             have_audio=yes
  3411         fi
  3415         fi
  3412         # Set up files for the joystick library
  3416         # Set up files for the joystick library
  3413         if test x$enable_joystick = xyes; then
  3417         if test x$enable_joystick = xyes; then
  3414             if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  3418             if test x$have_dinput = xyes -o x$have_xinput = xyes; then