(qb) Try to find -lz if the zlib package doesnt exist

This commit is contained in:
Higor Eurípedes 2016-10-14 19:42:10 -03:00
parent c489f1a7a7
commit f20925a329

View File

@ -288,10 +288,13 @@ if [ "$HAVE_OPENGL" != 'no' ] && [ "$HAVE_OPENGLES" != 'yes' ]; then
fi
fi
if [ "$OS" = 'Darwin' ]; then
check_lib ZLIB "-lz"
else
if [ "$HAVE_ZLIB" != 'no' ]; then
check_pkgconf ZLIB zlib
if [ "$HAVE_ZLIB" = 'no' ]; then
HAVE_ZLIB='auto'
check_lib ZLIB '-lz'
fi
fi
if [ "$HAVE_THREADS" != 'no' ]; then