From a9aa5a1b1cf3573a219dec2b98aea06d3b866908 Mon Sep 17 00:00:00 2001 From: Mia Herkt Date: Sun, 6 Dec 2020 01:16:12 +0100 Subject: build: restore support for non-pkgconfig zlib Some platforms do not offer a .pc file for zlib, e.g. Android. --- wscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index b864de558e..7481c8c42b 100644 --- a/wscript +++ b/wscript @@ -323,8 +323,10 @@ iconv support use --disable-iconv.", }, { 'name': '--zlib', 'desc': 'zlib', - 'func': check_pkg_config('zlib'), + 'func': any_check(check_pkg_config('zlib'), + check_libs(['z'], check_statement('zlib.h', 'inflate(0, Z_NO_FLUSH)'))), 'req': True, + 'fmsg': 'Unable to find development files for zlib.' }, { 'name': '--libbluray', 'desc': 'Bluray support', -- cgit v1.2.3