mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
x264: uses pkg-config to locate libx264
This commit is contained in:
parent
ffd22c9184
commit
50521fded3
1 changed files with 1 additions and 18 deletions
19
configure.ac
19
configure.ac
|
@ -371,24 +371,7 @@ AG_GST_CHECK_FEATURE(TWOLAME, [twolame], twolame, [
|
|||
dnl *** x264 (MPEG-4 part 10/h.264/AVC encoder) ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_X264, true)
|
||||
AG_GST_CHECK_FEATURE(X264, [x264 plug-in], x264, [
|
||||
AG_GST_CHECK_LIBHEADER(X264, x264, x264_encoder_encode, -lm, x264.h,
|
||||
AC_MSG_CHECKING([for uptodate x264 API version])
|
||||
dnl _stdint not yet generated, so no compiling
|
||||
AC_TRY_CPP([
|
||||
#include <x264.h>
|
||||
#if X264_BUILD < 55
|
||||
#error "x264 build too old"
|
||||
#endif
|
||||
], [
|
||||
AC_MSG_RESULT(yes)
|
||||
X264_LIBS="$LDFLAGS -lx264 -lm"
|
||||
X264_CFLAGS="$CFLAGS"
|
||||
AC_SUBST(X264_LIBS)
|
||||
AC_SUBST(X264_CFLAGS)
|
||||
], [
|
||||
AC_MSG_RESULT(no)
|
||||
HAVE_X264=no
|
||||
]))
|
||||
AG_GST_PKG_CHECK_MODULES(X264, x264 >= 0.55.0)
|
||||
])
|
||||
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue