Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
The configure test of libpng / png_start_read_image
fails even though everything builds fine when I disable
the test manually. I use a vanilla libpng 1.2.5 and gcc
Logged In: NO
Please explain your problem in more detail.
Logged In: YES
I use a shared Mac OS X lab, and as such I cannot use the
distributed frameworks (require admin privs). I have built
DevIL from source using GCC, GNU tools, and a custom
location for includes and libraries ($HOME/usr/local).
In order for this to work, I had to make changes to the
configure.in file and re-run autoconf (diff output is below).
The first changes prevents the configure script from
clobbering my supplied CPPFLAGS; the last change ensures
configure links against libpng properly (my libpng is built
against a shared zlib -- typically it is not). (the middle
change is only there because I didn't first thing to just
I believe the last change here may solve this bug.
< AC_CHECK_HEADER(lcms/lcms.h, ,no_lcms="yes")
> AC_CHECK_HEADER(lcms.h, ,no_lcms="yes")
< AC_CHECK_LIB(png, png_start_read_image, LIBPNG="-lpng",
> AC_CHECK_LIB(png, png_start_read_image, LIBPNG="-lpng",
I should add that my previous comment (if all changes are
used) will break configure's ability to detect OpenGL unless
the location of GL headers and libraries is included in
CPPFLAGS and LDFLAGS.
Obviously, this may not be desireable. An additional
modification to configure.in would likely fix it.