Ticket #11625 (closed build error: fixed)
Build fails with libpng 1.4.x
| Reported by: | vog | Owned by: | |
|---|---|---|---|
| Priority: | blocker | Milestone: | |
| Component: | build | Version: | 2.8-svn |
| Keywords: | libpng libpng14 | Cc: | |
| Blocked By: | Patch: | yes | |
| Blocking: |
Description
On a system with libpng 1.4.x, a "configure --with-libpng=sys" fails with:
checking for png.h > 0.90...
checking for png.h... yes
checking for png_check_sig in -lpng... no
configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version
It checks for the deprecated function png_check_sig(). Since that function isn't used by wxWidgets anyway, checking instead for png_sig_cmp() solves the problem.
The attached patch does exactly that. Note that it changes just configure.ac, so the configure script needs to be recreated after applying the patch.
More information:
http://www.libpng.org/pub/png/src/libpng-1.2.x-to-1.4.x-summary.txt

