summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-17 10:38:48 +0000
committerjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-17 10:38:48 +0000
commit7094fe599b501acf7e7de2e40437038de7177926 (patch)
tree3ad9706de9ce0bc65e4e7408796ce3d83987ab58 /configure
parent7176de8ea9644e019b6f40be8748e719c10706e2 (diff)
downloadmpv-7094fe599b501acf7e7de2e40437038de7177926.tar.bz2
mpv-7094fe599b501acf7e7de2e40437038de7177926.tar.xz
Re-write the soundcard.h test, so that it does not use a "!" operator.
This part of configure was failing on solaris, with an error message: Checking for soundcard.h ... ./configure: !: not found no git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8490 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 5 insertions, 4 deletions
diff --git a/configure b/configure
index 47f188f355..de371f7e0e 100755
--- a/configure
+++ b/configure
@@ -1930,12 +1930,13 @@ 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!
+if linux || test "$_ossaudio" != no ; then
+ # use soundcard.h on linux, or when OSS support is enabled
+ echores "$_soundcard"
+else
+ # we don't want to use 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'