diff options
| -rw-r--r-- | configure.ac | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index 4585cd4..33634a0 100644 --- a/configure.ac +++ b/configure.ac @@ -259,18 +259,20 @@ AS_CASE(["$systems"], [*" asio "*], [ ]) AS_CASE(["$systems"], [*" ds "*], [ - api="$api -D__WINDOWS_DS__" - need_ole32=yes - found="$found DirectSound" - LIBS="-ldsound -lwinmm $LIBS" + AC_CHECK_HEADERS(mmsystem.h mmreg.h dsound.h, + [api="$api -D__WINDOWS_DS__" + need_ole32=yes + found="$found DirectSound" + LIBS="-ldsound -lwinmm $LIBS"]) ]) AS_CASE(["$systems"], [*" wasapi "*], [ - api="$api -D__WINDOWS_WASAPI__" - CPPFLAGS="-I$srcdir/include $CPPFLAGS" - need_ole32=yes - found="$found WASAPI" - LIBS="-lwinmm -luuid -lksuser $LIBS" + AC_CHECK_HEADERS(windows.h audioclient.h avrt.h mmdeviceapi.h, + [api="$api -D__WINDOWS_WASAPI__" + CPPFLAGS="-I$srcdir/include $CPPFLAGS" + need_ole32=yes + found="$found WASAPI" + LIBS="-lwinmm -luuid -lksuser $LIBS"]) ]) AS_IF([test -n "$need_ole32"], [LIBS="-lole32 $LIBS"]) |
