1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-18 17:40:30 +00:00

don't use soundcard.h on non-linux if no OSS support

(based on idea & bugreport by Björn Sandell <biorn@dce.chalmers.se>)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7968 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-10-29 23:07:41 +00:00
parent c46abe48b7
commit 4a18befb17

8
configure vendored
View File

@ -1845,13 +1845,19 @@ int main(void) { return 0; }
EOF
_soundcard=no
cc_check && _soundcard=yes
if ! linux && test "$_ossaudio" = no ; then
# we don't want touse soundcard.h on non-linux if no OSS support enabled!
echores "$_soundcard, but ignored!"
_soundcard=no
else
echores "$_soundcard"
fi
if test "$_soundcard" = yes ; then
_def_soundcard='#define HAVE_SOUNDCARD_H 1'
_inc_soundcard='#include <soundcard.h>'
else
_def_soundcard='#undef HAVE_SOUNDCARD_H'
fi
echores "$_soundcard"
else
_def_soundcard='#undef HAVE_SOUNDCARD_H'
fi