summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Greffrath2014-03-26 13:14:11 +0100
committerFabian Greffrath2014-03-26 13:14:11 +0100
commitb945564afc276a3a60a6252edadbfe71cdf4f65f (patch)
treefafa5f07b880c6fb5249f7ad2cd6a4127e0f5c21
parent9981c42b4a8ab3000b22b9acf6ad4b0edd4b0ae7 (diff)
downloadchocolate-doom-b945564afc276a3a60a6252edadbfe71cdf4f65f.tar.gz
chocolate-doom-b945564afc276a3a60a6252edadbfe71cdf4f65f.tar.bz2
chocolate-doom-b945564afc276a3a60a6252edadbfe71cdf4f65f.zip
Add explicit check for libz
Fixes static linking and libpng won't link without it anyway.
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
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)