config.log contains the output of the configure script, including the command used and error message.
I suspect you didn't add /usr/local/ to CFLAGS and/or LDFLAGS, which is why configure can't find libpng.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
|