HAVE_LIBPNG has not been set since 2004 when 3325c0b52b ("remove old OSX bundle stuff") commented out the autoconf check to set it.
3325c0b52b