changeset 1033:c8c2aefaae11

fix -lasound -lesd.
author pontscho
date Tue, 05 Jun 2001 10:59:38 +0000
parents e34336f4feaf
children 79e7a1d3186f
files Makefile configure
diffstat 2 files changed, 17 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Tue Jun 05 10:37:50 2001 +0000
+++ b/Makefile	Tue Jun 05 10:59:38 2001 +0000
@@ -18,7 +18,7 @@
 SRCS = find_sub.c aviprint.c dll_init.c dec_audio.c aviwrite.c aviheader.c asfheader.c demux_avi.c demux_asf.c demux_mpg.c demuxer.c stream.c codec-cfg.c subreader.c linux/getch2.c linux/timer-lx.c linux/shmem.c xa/xa_gsm.c lirc_mp.c cfgparser.c mixer.c dvdauth.c spudec.c
 OBJS = $(SRCS:.c=.o)
 CFLAGS = $(OPTFLAGS) -Iloader -Ilibvo $(CSS_INC) # -Wall
-A_LIBS = -Lmp3lib -lMP3 -Llibac3 -lac3
+A_LIBS = -Lmp3lib -lMP3 -Llibac3 -lac3 $(ALSA_LIB) $(ESD_LIB)
 VO_LIBS = -Llibvo -lvo $(X_LIBS)
 
 .SUFFIXES: .c .o
--- a/configure	Tue Jun 05 10:37:50 2001 +0000
+++ b/configure	Tue Jun 05 10:59:38 2001 +0000
@@ -1047,6 +1047,20 @@
    _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 @@
 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 @@
  _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