only enable dsound in case the header file is present

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann 2015-06-10 09:07:35 +02:00
parent 3cec7cc22f
commit 307119e7d9
1 changed files with 13 additions and 1 deletions

14
configure vendored
View File

@ -435,6 +435,14 @@ EOF
compile_object compile_object
} }
check_include() {
cat > $TMPC <<EOF
#include <$1>
int main(void) { return 0; }
EOF
compile_object
}
write_c_skeleton() { write_c_skeleton() {
cat > $TMPC <<EOF cat > $TMPC <<EOF
int main(void) { return 0; } int main(void) { return 0; }
@ -568,7 +576,11 @@ CYGWIN*)
MINGW32*) MINGW32*)
mingw32="yes" mingw32="yes"
audio_possible_drivers="dsound sdl" audio_possible_drivers="dsound sdl"
audio_drv_list="dsound" if check_include dsound.h; then
audio_drv_list="dsound"
else
audio_drv_list=""
fi
;; ;;
GNU/kFreeBSD) GNU/kFreeBSD)
bsd="yes" bsd="yes"