summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-06 03:22:14 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-06 03:22:14 +0000
commit6ab8e6a5c1a1a75b3ace1e705f91ec1b30bc0b53 (patch)
tree93d9d945859f85c703b80d8fe5452bfb13f620d2 /configure
parent9ba1292389f8e42099d1e238216ddf61c68c8ba6 (diff)
downloadmpv-6ab8e6a5c1a1a75b3ace1e705f91ec1b30bc0b53.tar.bz2
mpv-6ab8e6a5c1a1a75b3ace1e705f91ec1b30bc0b53.tar.xz
ffmpeg support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1280 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure24
1 files changed, 22 insertions, 2 deletions
diff --git a/configure b/configure
index be3ed60edb..c394cfe8a8 100755
--- a/configure
+++ b/configure
@@ -377,6 +377,7 @@ _css=no
_dshow=yes
_fastmemcpy=yes
_streaming=no
+_libavcodec=no
_x=1
_y=1
@@ -438,6 +439,11 @@ else
fi
fi
+if [ -d libavcodec ]; then
+ if [ -e libavcodec/Makefile ]; then
+ _libavcodec=yes
+ fi
+fi
if [ -c /dev/mga_vid ]; then
_mga=yes
@@ -1140,6 +1146,7 @@ echo "Checking for Sun Audio ... $_sun_audio"
echo "Checking for DeCSS support ... $_css"
echo "Checking for PNG support ... $_png"
echo "Checking for DirectShow ... $_dshow"
+echo "Checking for libavcodec ... $_libavcodec"
echo "Checking for fastmemcpy ... $_fastmemcpy"
echo "Extra libs : $_extralibdir"
echo "Extra headers : $_extraincdir"
@@ -1192,6 +1199,16 @@ else
_dshow='#undef USE_DIRECTSHOW'
fi
+if [ $_libavcodec = yes ]; then
+ _lavclib='-Llibavcodec -lavcodec'
+ _lavcdep='libavcodec/libavcodec.a'
+ _libavcodec='#define USE_LIBAVCODEC'
+else
+ _lavclib=''
+ _lavcdep=''
+ _libavcodec='#undef USE_LIBAVCODEC'
+fi
+
if [ $_fastmemcpy = yes ]; then
_fastmemcpy='#define USE_FASTMEMCPY'
else
@@ -1520,8 +1537,8 @@ LIRC_LIBS = $_lirclibs
CSS_LIB = $_csslib
CSS_INC = $_cssinc
SDL_INC = $_sdlcflags
-DS_DEP = $_dshowdep
-DS_LIB = $_dshowlib
+DS_DEP = $_dshowdep $_lavcdep
+DS_LIB = $_dshowlib $_lavclib
ALSA_LIB = $_alsalib
ESD_LIB = $_esdlib
ARCH_LIBS = $_archlibs
@@ -1609,6 +1626,9 @@ $_css
/* DirectShow support */
$_dshow
+/* ffmpeg's libavcodec support (requires libavcodec source) */
+$_libavcodec
+
/* Use 3dnow/mmxext/sse/mmx optimized fast memcpy() [maybe buggy... signal 4]*/
$_fastmemcpy