Skip to content

Commit

Permalink
only enable dsound in case the header file is present
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
  • Loading branch information
kraxel committed Jun 15, 2015
1 parent 3cec7cc commit 307119e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion configure
Expand Up @@ -435,6 +435,14 @@ EOF
compile_object
}

check_include() {
cat > $TMPC <<EOF
#include <$1>
int main(void) { return 0; }
EOF
compile_object
}

write_c_skeleton() {
cat > $TMPC <<EOF
int main(void) { return 0; }
Expand Down Expand Up @@ -568,7 +576,11 @@ CYGWIN*)
MINGW32*)
mingw32="yes"
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)
bsd="yes"
Expand Down

0 comments on commit 307119e

Please sign in to comment.