[MPlayer-cvslog] r20821 - in trunk: configure libdvdread/Makefile
diego
subversion at mplayerhq.hu
Thu Nov 9 19:25:42 CET 2006
Author: diego
Date: Thu Nov 9 19:25:42 2006
New Revision: 20821
Modified:
trunk/configure
trunk/libdvdread/Makefile
Log:
Allow disabling internal libdvdcss.
Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Thu Nov 9 19:25:42 2006
@@ -241,6 +241,7 @@
--disable-dvdnav disable libdvdnav [autodetect]
--disable-dvdread disable libdvdread [autodetect]
--disable-dvdread-internal disable internal libdvdread [autodetect]
+ --disable-libdvdcss-internal disable internal libdvdcss [autodetect]
--disable-cdparanoia disable cdparanoia [autodetect]
--disable-bitmap-font disable bitmap font support [enable]
--disable-freetype disable FreeType 2 font rendering [autodetect]
@@ -1626,6 +1627,7 @@
_dvdnavconfig=dvdnav-config
_dvdread=auto
_dvdread_internal=auto
+_libdvdcss_internal=auto
_xanim=auto
_real=auto
_live=auto
@@ -1860,6 +1862,8 @@
--disable-dvdread) _dvdread=no ;;
--enable-dvdread-internal) _dvdread_internal=yes ;;
--disable-dvdread-internal) _dvdread_internal=no ;;
+ --enable-libdvdcss-internal) _libdvdcss_internal=yes ;;
+ --disable-libdvdcss-internal) _libdvdcss_internal=no ;;
--enable-dvdnav) _dvdnav=yes ;;
--disable-dvdnav) _dvdnav=no ;;
--enable-xanim) _xanim=yes ;;
@@ -5197,6 +5201,19 @@
echores "$_dvdread"
+echocheck "internal libdvdcss"
+if test "$_libdvdcss_internal" = auto ; then
+ _libdvdcss_internal=no
+ test "$_dvdread_internal" = yes && _libdvdcss_internal=yes
+fi
+if test "$_libdvdcss_internal" = yes ; then
+ _inputmodules="libdvdcss $_inputmodules"
+else
+ _noinputmodules="libdvdcss $_noinputmodules"
+fi
+echores "$_libdvdcss_internal"
+
+
echocheck "cdparanoia"
if test "$_cdparanoia" = auto ; then
cat > $TMPC <<EOF
@@ -7426,6 +7443,7 @@
VCD = $_vcd
DVDREAD = $_dvdread
DVDREAD_INTERNAL = $_dvdread_internal
+DVDCSS_INTERNAL = $_libdvdcss_internal
DVDNAV = $_dvdnav
WIN32DLL = $_win32
W32_DEP = $_dep_win32
Modified: trunk/libdvdread/Makefile
==============================================================================
--- trunk/libdvdread/Makefile (original)
+++ trunk/libdvdread/Makefile Thu Nov 9 19:25:42 2006
@@ -18,9 +18,12 @@
.SUFFIXES: .c .o
-CFLAGS= -I../libdvdcss -I.. $(OPTFLAGS) -D__USE_UNIX98 -D_GNU_SOURCE \
- -DHAVE_DVDCSS_DVDCSS_H -DSTDC_HEADERS -DHAVE_LIMITS_H \
- -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+CFLAGS= -I.. $(OPTFLAGS) -D__USE_UNIX98 -D_GNU_SOURCE -DSTDC_HEADERS \
+ -DHAVE_LIMITS_H -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+
+ifeq ($(DVDCSS_INTERNAL),yes)
+CFLAGS += -I../libdvdcss -DHAVE_DVDCSS_DVDCSS_H
+endif
.c.o:
$(CC) $(CFLAGS) -c -o $@ $<
More information about the MPlayer-cvslog
mailing list