summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-05 10:59:38 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-05 10:59:38 +0000
commitc09a122c4c39ec16f94466be4cc022697cc5a885 (patch)
treeadf54df58a9701da75a2c29e5f83477adbcca202 /configure
parent9bfe5d61415386d2726bb456f847278c30a6af81 (diff)
downloadmpv-c09a122c4c39ec16f94466be4cc022697cc5a885.tar.bz2
mpv-c09a122c4c39ec16f94466be4cc022697cc5a885.tar.xz
fix -lasound -lesd.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1034 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure28
1 files changed, 16 insertions, 12 deletions
diff --git a/configure b/configure
index 9e3e00bbb0..bef03198e7 100755
--- a/configure
+++ b/configure
@@ -1047,6 +1047,20 @@ if [ $_png = yes ]; then
_libpng='-lpng -lz'
fi
+_alsa5='#undef HAVE_ALSA5'
+_alsa9='#undef HAVE_ALSA9'
+if [ $_alsa == 'yes' ]; then
+ [ $_alsaver == '0.5.x' ] && { _aosrc="$_aosrc ao_alsa5.c"; _alsa5='#define HAVE_ALSA5'; _alsalib='-lasound'; }
+ # [ $_alsaver == '0.9.x' ] && { _aosrc="$_aosrc ao_alsa9.c"; _alsa9='#define HAVE_ALSA9'; _alsalib='-lasound'; }
+fi
+
+_esdd='#undef HAVE_ESD'
+#if [ $_esd == 'yes' ]; then
+# _esdd='#define HAVE_ESD'
+# _aosrc="$ao_src ao_esd.c"
+# _esdlib='-lesd'
+#fi
+
# Checking for CFLAGS
if [ "$_profile" != "" ] || [ "$_debug" != "" ]; then
CFLAGS="-O2 -march=$proc -mcpu=$proc $_debug $_profile"
@@ -1076,6 +1090,8 @@ CSS_INC = $_cssinc
WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\"
DS_DEP = $_dshowdep
DS_LIB = $_dshowlib
+ALSA_LIB = $_alsalib
+ESD_LIB = $_esdlib
prefix = $_prefix
ARCH_LIBS = -ldl -lpthread
@@ -1237,18 +1253,6 @@ else
_gui='#undef HAVE_GUI'
fi
-_alsa5='#undef HAVE_ALSA5'
-_alsa9='#undef HAVE_ALSA9'
-if [ $_alsa == 'yes' ]; then
- [ $_alsaver == '0.5.x' ] && { _aosrc="$_aosrc ao_alsa5.c"; _alsa5='#define HAVE_ALSA5'; }
- # [ $_alsaver == '0.9.x' ] && { _aosrc="$_aosrc ao_alsa9.c"; _alsa9='#define HAVE_ALSA9'; }
-fi
-
-_esdd='#undef HAVE_ESD'
-if [ $_esd == 'yes' ]; then
- _esdd='#undef HAVE_ESD'
- # _aosrc="$ao_src ao_esd.c"
-fi
cat > $CCONF << EOF