mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 08:39:20 +00:00
cleanup swscale/ffmpeg detection.
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@459 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
8bfffa92cd
commit
57969aa6a7
1 changed files with 7 additions and 8 deletions
|
|
@ -66,11 +66,13 @@ AC_DEFUN([MS_CHECK_VIDEO],[
|
|||
if test "$video" = "true"; then
|
||||
|
||||
dnl test for ffmpeg presence
|
||||
PKG_CHECK_MODULES(FFMPEG, [libavcodec >= 50.0.0 ],ffmpeg_found=yes , ffmpeg_found=no)
|
||||
dnl workaround for debian...
|
||||
PKG_CHECK_MODULES(FFMPEG, [libavcodec >= 0d.50.0.0 ], ffmpeg_found=yes, ffmpeg_found=no)
|
||||
PKG_CHECK_MODULES(FFMPEG, [libavcodec >= 51.0.0 ],ffmpeg_found=yes , ffmpeg_found=no)
|
||||
if test x$ffmpeg_found = xno ; then
|
||||
AC_MSG_ERROR([Could not find ffmpeg headers and library. This is mandatory for video support])
|
||||
AC_MSG_ERROR([Could not find libavcodec (from ffmpeg) headers and library. This is mandatory for video support])
|
||||
fi
|
||||
PKG_CHECK_MODULES(SWSCALE, [libswscale >= 0.7.0 ],swscale_found=yes , swscale_found=no)
|
||||
if test x$swscale_found = xno ; then
|
||||
AC_MSG_ERROR([Could not find libswscale (from ffmpeg) headers and library. This is mandatory for video support])
|
||||
fi
|
||||
|
||||
dnl check for new/old ffmpeg header file layout
|
||||
|
|
@ -94,13 +96,10 @@ AC_DEFUN([MS_CHECK_VIDEO],[
|
|||
dnl # include "swscale.h" // private linhone swscale.h
|
||||
dnl #endif
|
||||
CPPFLAGS_save=$CPPFLAGS
|
||||
CPPFLAGS="$FFMPEG_CFLAGS $CPPFLAGS"
|
||||
CPPFLAGS="SWSCALE_CFLAGS $CPPFLAGS"
|
||||
AC_CHECK_HEADERS(libswscale/swscale.h)
|
||||
CPPFLAGS=$CPPFLAGS_save
|
||||
|
||||
PKG_CHECK_MODULES(SWSCALE, [libswscale >= 0.5.0 ], [echo "We have libswscale"],
|
||||
[echo "We don't have libswscale, let's hope its symbols are in libavcodec"] )
|
||||
|
||||
if test "$libsdldir" != "none" ; then
|
||||
MS_CHECK_DEP([SDL],[SDL],[${libsdldir}/include],[${libsdldir}/lib],[SDL/SDL.h],[SDL],[SDL_Init])
|
||||
if test "$SDL_found" = "no" ; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue