build: use pkg-config for zlib

Zlib has had a .pc file since 2010, and the default search paths we use
here can break the build on some distros (notably openSUSE Tumbleweed,
which our Travis builds use). Just check pkg-config instead.
This commit is contained in:
Mia Herkt 2020-12-06 00:05:09 +01:00
parent 7c4465cefb
commit 8e3fb7566b
No known key found for this signature in database
GPG Key ID: 72E154B8622EC191
1 changed files with 1 additions and 3 deletions

View File

@ -323,10 +323,8 @@ iconv support use --disable-iconv.",
}, {
'name': '--zlib',
'desc': 'zlib',
'func': check_libs(['z'],
check_statement('zlib.h', 'inflate(0, Z_NO_FLUSH)')),
'func': check_pkg_config('zlib'),
'req': True,
'fmsg': 'Unable to find development files for zlib.'
}, {
'name': '--libbluray',
'desc': 'Bluray support',