[cairo] cairo tests depend on PNG functions

Jason Dorje Short jdorje at users.sf.net
Wed Mar 30 13:09:49 PST 2005


If libpng isn't available then the cairo PNG functions won't be 
available and the cairo tests won't be able to compile - a bug.

This patch simply disables the test program if the PNG functions aren't 
available.  Note the test program doesn't (yet) use the cairo PNG 
functions; it uses libpng directly (read-png.c and write-png.c).  But 
the condition for success is the same (libpng being present).

-jason
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.diff
Type: text/x-patch
Size: 945 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050330/1fda9191/test.bin


More information about the cairo mailing list