The recent changes to the fltk-2 svn mean that it no longer correctly  
finds the system installed png libs on my FC6 box.
After running a "plain" configure, config.h has the following defines  
set:


/* Which header file do we include for libpng? */
/* #undef HAVE_LOCAL_PNG_H */
#define HAVE_PNG_H 1
/* #undef HAVE_LIBPNG_PNG_H */

However, the code does not seem to test for these. Instead fl_png.cxx  
just *assumes*...

#include <libpng/png.h>


Where I think something a bit like this would be better:

// What location for the png header file?
#if HAVE_LIBPNG_PNG_H
#  include <libpng/png.h>
#elif HAVE_PNG_H
#  include <png.h>
#elif HAVE_LOCAL_PNG_H
#  include "libpng/png.h"
#endif



Cheers,
-- 
Ian

_______________________________________________
fltk mailing list
[EMAIL PROTECTED]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to