configure test for libpng fails with >=libpng-1.4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Armagetron Advanced |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
checking whether libpng is installed... yes
checking for png_check_sig... no
configure: error: You need libpng to compile Armagetron.
the problem is that configure checks for the existance of the png_check_sig() function. however, in new libpng this is defined as a macro so the test blows up. I simply replaced the tested function with png_sig_cmp() and it works like a charm :)
(i haven't checked, but i assume png_sig_cmp() also exists on older versions of libpng)
Index: configure.ac
=======
--- configure.ac (revision 9424)
+++ configure.ac (working copy)
@@ -981,7 +980,7 @@
CPPFLAGS=
LIBS="$LIBS $PNGLIBS"
-AC_CHECK_
+AC_CHECK_
,
AC_MSG_ERROR([You need libpng to compile Armagetron.]))
I think this is already fixed somewhere...