commit b945564afc276a3a60a6252edadbfe71cdf4f65f
Author: Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Wed Mar 26 13:14:11 2014 +0100
Commit: Fabian Greffrath <fabian@greffrath.com>
CommitDate: Wed Mar 26 13:14:11 2014 +0100
Add explicit check for libz
Fixes static linking and libpng won't link without it anyway.
---
configure.ac | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 4d63d1e0..a9c3d8cb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,7 +86,8 @@ AC_SDL_MAIN_WORKAROUND([
[Build without libpng @<:@default=check@:>@]),
[],
[
- AC_CHECK_LIB(png, png_get_io_ptr, [], [], -lz)
+ AC_CHECK_LIB(z, zlibVersion)
+ AC_CHECK_LIB(png, png_get_io_ptr)
])
AC_CHECK_LIB(m, log)