Bug 9863

Summary: configure cannot find libpng without pkg-config even with libpng_* overrides
Product: cairo Reporter: Ambrose Li <ambrose.li>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.2.6   
Hardware: x86 (IA32)   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Ambrose Li 2007-02-03 09:35:02 UTC
With an old version of libpng that does not support pkg-config, configure cannot find libpng even if the png_CFLAGS and png_LIBS overrides are used.

If both png_CFLAGS and png_LIBS are set, configure should ignore pkg-config and just do a compile-and-link test. Currently, it ignores png_CFLAGS and png_LIBS (does not compile anything to test), contrary to what "configure --help" says.

On another hand, if the pkgconfig-enabled version of libpng is mandatory due to new functions or security fixes, configure still should report that in the error message, instead of just saying "not found".
Comment 1 Chris Wilson 2008-10-10 07:28:01 UTC
Hmm, currently we do have a verbose warning if we cannot find a pkg-config libpng. The message itself might be slightly opaque, but I cannot currently think of a better way to phrase it.

The second part of this is just a misleading pkg-config help statement. Your suggestion of how to handle png_LIBS and png_CFLAGS sounds like a good improvement as a means for the user to totally circumvent pkg-config.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.