configure.in
changeset 5592 2e88d0742f4d
parent 5588 57bfc2a2a452
child 5596 d4b2f6543074
--- a/configure.in	Wed Aug 03 04:22:47 2011 -0400
+++ b/configure.in	Thu Aug 04 01:07:09 2011 -0400
@@ -1726,6 +1726,7 @@
         AC_CHECK_HEADER(ddraw.h, have_ddraw=yes)
         AC_CHECK_HEADER(dsound.h, have_dsound=yes)
         AC_CHECK_HEADER(dinput.h, have_dinput=yes)
+        AC_CHECK_HEADER(xaudio2.h, have_xaudio2=yes)
     fi
 }
 
@@ -2063,6 +2064,10 @@
                 AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND, 1, [ ])
                 SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
             fi
+            if test x$have_xaudio2 = xyes; then
+                AC_DEFINE(SDL_AUDIO_DRIVER_XAUDIO2, 1, [ ])
+                SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
+            fi
             have_audio=yes
         fi
         # Set up dummy files for the joystick for now
@@ -2150,6 +2155,10 @@
                 AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND, 1, [ ])
                 SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
             fi
+            if test x$have_xaudio2 = xyes; then
+                AC_DEFINE(SDL_AUDIO_DRIVER_XAUDIO2, 1, [ ])
+                SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
+            fi
             have_audio=yes
         fi
         # Set up files for the joystick library