Mercurial > mplayer.hg
changeset 20805:e5f38c16da31
Allow disabling internal libdvdcss.
author | diego |
---|---|
date | Thu, 09 Nov 2006 18:25:42 +0000 |
parents | cfd35d61bed3 |
children | 7f83031f1b97 |
files | configure libdvdread/Makefile |
diffstat | 2 files changed, 24 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Thu Nov 09 18:05:06 2006 +0000 +++ b/configure Thu Nov 09 18:25:42 2006 +0000 @@ -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
--- a/libdvdread/Makefile Thu Nov 09 18:05:06 2006 +0000 +++ b/libdvdread/Makefile Thu Nov 09 18:25:42 2006 +0000 @@ -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 $@ $<