foxygit / doom Log in
commit f149adaeb7f6ea23aa09a8777a966420815bada1
Author:     Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Mon Mar 24 13:43:24 2014 +0100
Commit:     Fabian Greffrath <fabian@greffrath.com>
CommitDate: Mon Mar 24 13:43:24 2014 +0100

    Fix libpng detection for static libraries
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 04ad2865..4d63d1e0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,7 +86,7 @@ AC_SDL_MAIN_WORKAROUND([
         [Build without libpng @<:@default=check@:>@]),
     [],
     [
-        AC_CHECK_LIB(png, png_get_io_ptr)
+        AC_CHECK_LIB(png, png_get_io_ptr, [], [], -lz)
     ])
     AC_CHECK_LIB(m, log)