summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-28 20:40:21 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-28 20:40:21 +0000
commit5475823f41bfe971bec6dd2208dd7c01bc11edd8 (patch)
tree69fec4aa970acebcae084d086f6a7846f5b669f2 /configure
parente55db72e97eb5f652db237cb16abb79d4f2c927d (diff)
downloadmpv-5475823f41bfe971bec6dd2208dd7c01bc11edd8.tar.bz2
mpv-5475823f41bfe971bec6dd2208dd7c01bc11edd8.tar.xz
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5381 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure32
1 files changed, 31 insertions, 1 deletions
diff --git a/configure b/configure
index 4acba25aed..afeaf420f1 100755
--- a/configure
+++ b/configure
@@ -207,6 +207,7 @@ Use these options if autodetection fails:
--with-csslibdir=DIR libcss in DIR
--with-madlibdir=DIR libmad (libmad shared lib.) in DIR
--with-mlibdir=DIR libmlib (MLIB support) in DIR (Solaris only)
+ --with-libdvdnav=DIR libdvdnav in DIR
--with-win32libdir=DIR W*ndows DLL files in DIR
--with-xanimlibdir=DIR XAnim DLL files in DIR
--with-xvidcore=PATH path to XviD libcore.a (e.g: /opt/lib/libcore.a)
@@ -787,6 +788,7 @@ _mad=auto
_vorbis=auto
_faad=auto
_css=auto
+_dvdnav=no
_dvdread=auto
_xanim=auto
_xinerama=auto
@@ -970,6 +972,10 @@ for ac_option do
--language=*)
LINGUAS=`echo $ac_option | cut -d '=' -f 2`
;;
+ --with-libdvdnav=*)
+ _dvdnavdir=`echo $ac_option | cut -d '=' -f 2`
+ _dvdnav=yes
+ ;;
--with-win32libdir=*)
_win32libdir=`echo $ac_option | cut -d '=' -f 2`
@@ -2414,7 +2420,6 @@ else
echores "no"
fi
-
echocheck "DVD support (libdvdread - new style)"
if test "$_dvdread" = auto ; then
cat > $TMPC << EOF
@@ -2443,6 +2448,28 @@ else
echores "no"
fi
+echocheck "libdvdnav"
+if test "$_dvdnav" = yes ; then
+ cat > $TMPC <<EOF
+#include <dvdnav.h>
+int main(void) { dvdnav_t *dvd=0; return 0; }
+EOF
+ _dvdnav=no
+ cc_check $_inc_extra -I$_dvdnavdir $_ld_css -L$_dvdnavdir/.libs -ldvdnav && _dvdnav=yes
+fi
+if test "$_dvdnav" = yes ; then
+ _largefiles=yes
+ _def_dvdnav='#define USE_DVDNAV 1'
+ _ld_css="$_ld_css -L$_dvdnavdir/.libs -ldvdnav"
+ _inc_extra="$_inc_extra -I$_dvdnavdir"
+ _inputmodules="dvdnav $_inputmodules"
+ echores "yes"
+else
+ _def_dvdnav='#undef USE_DVDNAV'
+ _noinputmodules="dvdnav $_noinputmodules"
+ echores "no"
+fi
+
echocheck "zlib"
cat > $TMPC << EOF
#include <zlib.h>
@@ -3466,6 +3493,9 @@ $_def_lirc
/* DeCSS support using libcss */
$_def_css
+/* DVD navigation support using libdvdnav */
+$_def_dvdnav
+
/* Define this to enable MPEG 1/2 image postprocessing (requires FAST cpu!) */
#define MPEG12_POSTPROC 1