summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-29 23:34:53 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-29 23:34:53 +0000
commit32142c5e6a55f561865f288a42f63642912cd85a (patch)
tree4d382440d61749a71f898ae19371c2fe815ca0c3 /configure
parent6442bc2f88e3bd6b837d5ae8eda7cce4d642fc16 (diff)
downloadmpv-32142c5e6a55f561865f288a42f63642912cd85a.tar.bz2
mpv-32142c5e6a55f561865f288a42f63642912cd85a.tar.xz
libavcodec MBC detection fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3882 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 7 insertions, 12 deletions
diff --git a/configure b/configure
index b709071ff3..8a74eda7dc 100755
--- a/configure
+++ b/configure
@@ -2328,28 +2328,23 @@ echores "$_iconv"
echocheck "FFmpeg libavcodec (static)"
-if test "$_libavcodec" != no ; then
+if test "$_libavcodec" = auto ; then
# Note: static linking is preferred to dynamic linking
_libavcodec=no
- cat > $TMPC << EOF
-#define FF_POSTPROCESS 1
-#include "libavcodec/avcodec.h"
-int quant_store[MBR+1][MBC+1];
-int main(void) { return 0; }
-EOF
- if test -d libavcodec && test -f libavcodec/Makefile ; then
- if cc_check -I. -lm ; then
+ if test -d libavcodec && test -f libavcodec/avcodec.h ; then
+ if grep MBC libavcodec/avcodec.h > /dev/null 2>&1 ; then
_libavcodec=yes
echores "yes"
else
- echores "no: see DOC/codecs.html"
+ echores "no: old ffmpeg version, use CVS !"
fi
else
- echores "no: see DOC/codecs.html"
+ echores "no: see DOCS/codecs.html"
fi
else
- echores "no"
+ echores "$_libavcodec"
fi
+
echocheck "FFmpeg libavcodec (dynamic)"
if test "$_libavcodec" != yes && test "$_libavcodecso" = auto ; then
_libavcodecso=no