mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 10:40:21 +00:00
configure: remove old libavcodec compat
the lavc version 57.107.100 is something like from 2017
This commit is contained in:
@@ -1861,17 +1861,12 @@ fi
|
|||||||
file=no
|
file=no
|
||||||
AC_ARG_ENABLE(file,
|
AC_ARG_ENABLE(file,
|
||||||
[ --disable-file disable file input support (default is auto)]
|
[ --disable-file disable file input support (default is auto)]
|
||||||
[ Requires: libavcodec >= 57.107.100 libavformat libavutil libswscale],
|
[ Requires: libavcodec libavformat libavutil libswscale],
|
||||||
[file_req=$enableval],
|
[file_req=$enableval],
|
||||||
[file_req=$build_default]
|
[file_req=$build_default]
|
||||||
)
|
)
|
||||||
|
|
||||||
PKG_CHECK_MODULES([LIBAVFORMAT], [libavformat], [found_libavformat=yes], [found_libavformat=no])
|
PKG_CHECK_MODULES([LIBAVFORMAT], [libavformat], [found_libavformat=yes], [found_libavformat=no])
|
||||||
PKG_CHECK_MODULES([LIBAVCODEC_MIN_VERSION], [libavcodec >= 57.107.100], [libavcodec_min_version=yes], [libavcodec_min_version=no])
|
|
||||||
# Windows doesn't use pkg-config so we assume that libavcodec is new enough
|
|
||||||
if test $system = Windows; then
|
|
||||||
libavcodec_min_version=yes
|
|
||||||
fi
|
|
||||||
if test "$found_libavformat" != yes; then
|
if test "$found_libavformat" != yes; then
|
||||||
SAVED_LIBS=$LIBS
|
SAVED_LIBS=$LIBS
|
||||||
AC_CHECK_HEADERS([libavformat/avformat.h])
|
AC_CHECK_HEADERS([libavformat/avformat.h])
|
||||||
@@ -1888,7 +1883,7 @@ if test "$found_libavformat" != yes; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test $file_req != no -a $libavcodec = yes -a $libswscale = yes -a $found_libavformat = yes -a "$libavcodec_min_version" = yes
|
if test $file_req != no -a $libavcodec = yes -a $libswscale = yes -a $found_libavformat = yes
|
||||||
then
|
then
|
||||||
AC_DEFINE([HAVE_FILE], [1], [Build with file input support])
|
AC_DEFINE([HAVE_FILE], [1], [Build with file input support])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user