mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
configure: try pkg-config first when looking for zlib
This commit is contained in:
parent
685eb3b954
commit
a5933eb14b
1 changed files with 9 additions and 6 deletions
15
configure.ac
15
configure.ac
|
@ -508,12 +508,15 @@ fi
|
|||
dnl *** zlib is optionally used by id3 tag parsing in libgsttag ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_ZLIB, true)
|
||||
AG_GST_CHECK_FEATURE(ZLIB, [zlib support for ID3 parsing in libgsttag],, [
|
||||
AG_GST_CHECK_LIBHEADER(ZLIB,
|
||||
z, uncompress,, zlib.h, [
|
||||
HAVE_ZLIB="yes"
|
||||
ZLIB_LIBS="-lz"
|
||||
AC_SUBST(ZLIB_LIBS)
|
||||
])
|
||||
PKG_CHECK_MODULES(ZLIB, [ zlib ], [
|
||||
HAVE_ZLIB="yes"
|
||||
], [
|
||||
AG_GST_CHECK_LIBHEADER(ZLIB, z, uncompress,, zlib.h, [
|
||||
HAVE_ZLIB="yes"
|
||||
ZLIB_LIBS="-lz"
|
||||
AC_SUBST(ZLIB_LIBS)
|
||||
])
|
||||
])
|
||||
])
|
||||
|
||||
dnl *** sys plug-ins ***
|
||||
|
|
Loading…
Reference in a new issue