[Mplayer-cvslog] CVS: main configure,1.392,1.393 Makefile,1.156,1.157

Alban Bedel CVS albeu at mplayer.dev.hu
Sat Feb 23 22:20:18 CET 2002


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv3691

Modified Files:
	configure Makefile 
Log Message:
Change in configure relative to lirc, same thing in Makefile plus
some cleanup (COMMONS_LIB is now really common :)


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.392
retrieving revision 1.393
diff -u -r1.392 -r1.393
--- configure	22 Feb 2002 13:47:31 -0000	1.392
+++ configure	23 Feb 2002 21:20:16 -0000	1.393
@@ -136,7 +136,7 @@
   --disable-streaming    disable network streaming support
                          (support for: http/mms/rtp) [enable]
   --disable-vidix        disable VIDIX stuff [enable]
-  --enable-new-input     enable new input system [disable]
+  --disable-new-input    disable new input system [enable]
   --enable-joystick      enable joystick support in new input [disable]
 Video:
   --enable-gl            build with OpenGL render support [autodetect]
@@ -2705,26 +2705,6 @@
 fi
 echores "$_mencoder"
 
-echocheck "lirc"
-if test "$_lirc" = auto ; then
-  _lirc=no
-  if test -c /dev/lirc ; then
-      cat > $TMPC <<EOF
-#include <lirc/lirc_client.h>
-int main(void) { return 0; }
-EOF
-      cc_check -llirc_client && _lirc=yes
-  fi
-fi
-if test "$_lirc" = yes ; then
-  _def_lirc='#define HAVE_LIRC 1'
-  _ld_lirc='-llirc_client'
-else
-  _def_lirc='#undef HAVE_LIRC'
-fi
-echores "$_lirc"
-
-
 echocheck "fastmemcpy"
 # fastmemcpy check is done earlier with tests of CPU & binutils features
 if test "$_fastmemcpy" = yes ; then
@@ -2962,6 +2942,7 @@
 echo Checking for new input ... "$_new_input"
 if test "$_new_input" = yes ; then 
   _def_new_input='#define HAVE_NEW_INPUT 1'
+  _ld_new_input="-Linput -linput"
   if test "$_joystick" = yes ; then
     if linux ; then
        # TODO add some check
@@ -2973,6 +2954,31 @@
   echo Checking for joystick ... "$_joystick"
 fi
 
+echocheck "lirc"
+if test "$_lirc" = auto ; then
+  _lirc=no
+  if test -c /dev/lirc ; then
+      cat > $TMPC <<EOF
+#include <lirc/lirc_client.h>
+int main(void) { return 0; }
+EOF
+      cc_check -llirc_client && _lirc=yes
+  fi
+fi
+if test "$_lirc" = yes ; then
+  _def_lirc='#define HAVE_LIRC 1'
+  if test "$_new_input" = yes ; then
+     _ld_new_input="-llirc_client $_ld_new_input"
+  else
+     _ld_lirc='-llirc_client'
+  fi
+else
+  _def_lirc='#undef HAVE_LIRC'
+fi
+echores "$_lirc"
+
+
+
 #############################################################################
 echo "Creating config.mak"
 cat > config.mak << EOF
@@ -3047,6 +3053,7 @@
 MENCODER = $_mencoder
 ENCORE_LIB =  $_ld_encore $_ld_mp3lame
 DIRECTFB_LIB = $_ld_directfb
+NEW_INPUT_LIB = $_ld_new_input
 
 # --- Some stuff for autoconfigure ----
 $_target_arch

Index: Makefile
===================================================================
RCS file: /cvsroot/mplayer/main/Makefile,v
retrieving revision 1.156
retrieving revision 1.157
diff -u -r1.156 -r1.157
--- Makefile	21 Feb 2002 22:48:35 -0000	1.156
+++ Makefile	23 Feb 2002 21:20:16 -0000	1.157
@@ -51,7 +51,7 @@
 A_LIBS = $(ALSA_LIB) $(NAS_LIB) $(MAD_LIB) $(VORBIS_LIB) $(SGIAUDIO_LIB)
 
 CODEC_LIBS = -Lg72x -lg72x -Lmp3lib -lMP3 -Llibac3 -lac3 -Lliba52 -la52 -Lxa -lxa -Llibmpeg2 -lmpeg2 $(AV_LIB)
-COMMON_LIBS = -Llinux -losdep -Lpostproc -lpostproc
+COMMON_LIBS = $(CODEC_LIBS) -Llibmpdemux -lmpdemux  $(NEW_INPUT_LIB)  $(LIB_LOADER) $(A_LIBS) $(CSS_LIB) $(ARCH_LIB) $(DECORE_LIB)  $(TERMCAP_LIB)  $(STREAMING_LIB) $(Z_LIB) $(GTK_LIBS) $(PNG_LIB) -Llinux -losdep -Lpostproc -lpostproc -lm
 ifeq ($(VIDIX),yes)
 MISC_LIBS += -Llibdha -ldha -Lvidix -lvidix
 endif
@@ -99,7 +99,7 @@
 .c.o:
 	$(CC) -c $(CFLAGS) -o $@ $<
 
-COMMON_DEPS = g72x/libg72x.a libmpdemux/libmpdemux.a libao2/libao2.a libac3/libac3.a liba52/liba52.a mp3lib/libMP3.a libmpeg2/libmpeg2.a linux/libosdep.a postproc/libpostproc.a opendivx/libdecore.a xa/libxa.a
+COMMON_DEPS = g72x/libg72x.a libmpdemux/libmpdemux.a libao2/libao2.a libac3/libac3.a liba52/liba52.a mp3lib/libMP3.a libmpeg2/libmpeg2.a linux/libosdep.a postproc/libpostproc.a opendivx/libdecore.a xa/libxa.a input/libinput.a
 
 ifeq ($(VIDIX),yes)
 COMMON_DEPS += libdha/libdha.so vidix/libvidix.a
@@ -179,7 +179,7 @@
 input/libinput.a:
 	$(MAKE) -C input
 
-MPLAYER_DEP = $(OBJS_MPLAYER) $(LOADER_DEP) $(MP1E_DEP) $(AV_DEP) $(COMMON_DEPS) input/libinput.a
+MPLAYER_DEP = $(OBJS_MPLAYER) $(LOADER_DEP) $(MP1E_DEP) $(AV_DEP) $(COMMON_DEPS)
 MENCODER_DEP = $(OBJS_MENCODER) $(LOADER_DEP) $(MP1E_DEP) $(AV_DEP) $(COMMON_DEPS)
 
 ifeq ($(GUI),yes)
@@ -194,14 +194,14 @@
 endif
 
 $(PRG):	$(MPLAYER_DEP)
-	$(CC) $(CFLAGS) -o $(PRG) $(OBJS_MPLAYER) $(CODEC_LIBS) -Llibmpdemux -lmpdemux $(VO_LIBS) $(GUI_LIBS) $(AO_LIBS) $(LIB_LOADER) $(COMMON_LIBS) $(EXTRA_LIB) $(A_LIBS) $(V_LIBS) $(LIRC_LIB) $(CSS_LIB) $(ARCH_LIB) $(DECORE_LIB) $(TERMCAP_LIB) $(STATIC_LIB) $(GTK_LIBS) $(PNG_LIB) $(Z_LIB) $(STREAMING_LIB) $(VIDIX_LIBS) -Linput -linput -lm
+	$(CC) $(CFLAGS) -o $(PRG) $(OBJS_MPLAYER) $(VO_LIBS)  $(COMMON_LIBS) $(EXTRA_LIB) $(V_LIBS) $(AO_LIBS) $(VIDIX_LIBS) $(GUI_LIBS)  $(LIRC_LIB) $(STATIC_LIB) 
 
 $(PRG_FIBMAP): fibmap_mplayer.o
 	$(CC) -o $(PRG_FIBMAP) fibmap_mplayer.o
 
 ifeq ($(MENCODER),yes)
 $(PRG_MENCODER): $(MENCODER_DEP)
-	$(CC) $(CFLAGS) -o $(PRG_MENCODER) $(OBJS_MENCODER) $(CODEC_LIBS) $(MLIB_LIB) -Llibmpdemux -lmpdemux $(LIB_LOADER) $(COMMON_LIBS) $(EXTRA_LIB) $(A_LIBS) $(CSS_LIB) $(GTK_LIBS) $(PNG_LIB) $(Z_LIB) $(ARCH_LIB) $(DECORE_LIB) $(ENCORE_LIB) $(TERMCAP_LIB) $(STREAMING_LIB) -lm
+	$(CC) $(CFLAGS) -o $(PRG_MENCODER) $(OBJS_MENCODER) $(COMMON_LIBS) $(EXTRA_LIB) $(ENCORE_LIB) $(MLIB_LIB)
 endif
 
 # Every mplayer dependancy depends on version.h, to force building version.h




More information about the MPlayer-cvslog mailing list