projects
/
rtaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ebd023a
)
Check for headers for Windows APIs (except ASIO)
author
Stephen Sinclair
<radarsat1@gmail.com>
Sat, 14 Jul 2018 00:24:52 +0000
(20:24 -0400)
committer
Stephen Sinclair
<radarsat1@gmail.com>
Sat, 14 Jul 2018 16:42:15 +0000
(12:42 -0400)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index 4585cd4b595eacebb3d85cddd1b278dfd4e4be84..33634a0214f88e9c8bb044c4ce0e587ab68b38af 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-259,18
+259,20
@@
AS_CASE(["$systems"], [*" asio "*], [
])
AS_CASE(["$systems"], [*" ds "*], [
])
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 "*], [
])
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"])
])
AS_IF([test -n "$need_ole32"], [LIBS="-lole32 $LIBS"])