aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorArne Morten Kvarving <spiff@xbmc.org>2013-06-10 03:15:42 -0700
committerArne Morten Kvarving <spiff@xbmc.org>2013-06-10 03:15:42 -0700
commitf7827a3a15cd7cc5259dc59e1b66b853f54d6ec9 (patch)
treec20c0fde094bbc084584110ecc9bb872cde8ff4c /configure.in
parent70a35f3d4512442512524e1b26dc167f44082ea8 (diff)
parent90b09c5ef537e0cde2dace1a055758fe58f54aec (diff)
Merge pull request #2760 from aballier/ffmpeg_cleanups
External FFmpeg cleaning
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in52
1 files changed, 1 insertions, 51 deletions
diff --git a/configure.in b/configure.in
index 2a45c9f921..aefebff769 100644
--- a/configure.in
+++ b/configure.in
@@ -1621,9 +1621,6 @@ fi
if test "$use_external_ffmpeg" = "yes"; then
FFMPEG_LIBNAMES="libavcodec libavfilter libavformat libavutil libpostproc libswscale"
- # libavcore is optional
- PKG_CHECK_EXISTS([libavcore], FFMPEG_LIBNAMES="$FFMPEG_LIBNAMES libavcore")
-
# one of libswresample or libavresample is needed
PKG_CHECK_EXISTS([libswresample], FFMPEG_LIBNAMES="$FFMPEG_LIBNAMES libswresample",
[PKG_CHECK_EXISTS([libavresample],
@@ -1635,52 +1632,16 @@ if test "$use_external_ffmpeg" = "yes"; then
[INCLUDES="$INCLUDES $FFMPEG_CFLAGS"; LIBS="$LIBS $FFMPEG_LIBS"],
AC_MSG_ERROR($missing_library))
- # Determine whether AVPacket and relevant functions are defined in libavformat
- # or libavcodec
- AC_CHECK_LIB([avcodec], [av_free_packet],
- [AC_MSG_NOTICE(== AVPacket and relevant functions defined in libavcodec. ==)],
- [AC_MSG_NOTICE(== AVPacket and relevant functions defined in libavformat. ==)
- AC_DEFINE([AVPACKET_IN_AVFORMAT], [1], [Whether AVPacket is in libavformat.])])
-
# in case the headers are in a custom directory
SAVE_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $FFMPEG_CFLAGS"
- # Possible places the ffmpeg headers may be
AC_CHECK_HEADERS([libavcodec/avcodec.h libavfilter/avfilter.h libavformat/avformat.h libavutil/avutil.h libpostproc/postprocess.h libswscale/swscale.h],,
- [AC_CHECK_HEADERS([ffmpeg/avcodec.h ffmpeg/avfilter.h ffmpeg/avformat.h ffmpeg/avutil.h postproc/postprocess.h ffmpeg/swscale.h],,
- [AC_MSG_ERROR($missing_headers)])])
-
- # optional
- AC_CHECK_HEADERS([libavcore/avcore.h libavcore/samplefmt.h libavutil/mem.h libavutil/samplefmt.h])
-
- # old FFmpeg have this in libavcodec/opt.h instead:
- AC_CHECK_HEADERS([libavutil/opt.h])
-
- # new FFmpeg have math headers
- AC_CHECK_HEADERS([libavutil/mathematics.h],,)
-
- # We'll support the use of rgb2rgb.h if it exists.
- AC_CHECK_HEADERS([libswscale/rgb2rgb.h],,)
- AC_CHECK_HEADERS([ffmpeg/rgb2rgb.h],,)
+ [AC_MSG_ERROR($missing_headers)])
# Check for libswresample or libavresample headers.
AC_CHECK_HEADERS([libswresample/swresample.h libavresample/avresample.h])
- # Check if AVFilterBufferRefVideoProps AVRational member is named
- # 'pixel_aspect' or 'sample_aspect_ratio'.
- AC_CHECK_MEMBER([AVFilterBufferRefVideoProps.sample_aspect_ratio],
- [AC_DEFINE([HAVE_AVFILTERBUFFERREFVIDEOPROPS_SAMPLE_ASPECT_RATIO],
- [1],
- [Define to 1 if AVFilterBufferRefVideoProps has member sample_aspect_ratio.])],
- [AC_CHECK_MEMBER([AVFilterBufferRefVideoProps.sample_aspect_ratio],
- [AC_DEFINE([HAVE_AVFILTERBUFFERREFVIDEOPROPS_SAMPLE_ASPECT_RATIO],
- [1],
- [Define to 1 if AVFilterBufferRefVideoProps has member sample_aspect_ratio.])],
- ,
- [[#include <ffmpeg/avfilter.h>]])],
- [[#include <libavfilter/avfilter.h>]])
-
AC_MSG_NOTICE($external_ffmpeg_enabled)
USE_EXTERNAL_FFMPEG=1
AC_DEFINE([USE_EXTERNAL_FFMPEG], [1], [Whether to use external FFmpeg libraries.])
@@ -1694,21 +1655,10 @@ if test "$use_external_ffmpeg" = "yes"; then
AC_MSG_RESULT($ffmpeg_vdpau_not_supported)
fi])
- # Check for 'PIX_FMT_VDPAU_MPEG4' from libavutil
- if test "x$use_vdpau" != "xno"; then
- AC_LANG_PUSH([C++])
- AC_LINK_IFELSE(
- [AC_LANG_SOURCE([ #include <libavutil/pixfmt.h>
- int main() { PixelFormat format = PIX_FMT_VDPAU_MPEG4; }])],
- [AC_DEFINE([PIX_FMT_VDPAU_MPEG4_IN_AVUTIL], [1],
- [Whether AVUtil defines PIX_FMT_VDPAU_MPEG4.])],)
- AC_LANG_POP([C++])
- fi
CPPFLAGS="$SAVE_CPPFLAGS"
else
AC_MSG_NOTICE($external_ffmpeg_disabled)
USE_EXTERNAL_FFMPEG=0
- AC_DEFINE([PIX_FMT_VDPAU_MPEG4_IN_AVUTIL], [1], [Whether AVUtil defines PIX_FMT_VDPAU_MPEG4.])
fi
echo "Checking for SWIG installation"