summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorStephen Sinclair <radarsat1@gmail.com>2018-07-13 20:24:52 -0400
committerStephen Sinclair <radarsat1@gmail.com>2018-07-14 12:42:15 -0400
commit598a21f4114a4d49e4403215448ff4156778c616 (patch)
treef513457ede08decdbdb137ec4026d7a5fca17c42 /configure.ac
parentebd023a3c07aad609d8ee1c0195b0016b300c4e8 (diff)
Check for headers for Windows APIs (except ASIO)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac20
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"])