I tested this too, but what is strange is that it seems the auto mode does _not_ work for all the image libs unless I misunderstood something. What I did : Under cygwin (under mac os x or linux, no compile problem was found).
Then I renamed my jpeglib.h and renamed the libpng folder in /usr/include. then I just ran ./configure As I understand auto mode, it should select the local libs if the system libs are not found and nothing was explicitly specified. But here, it _still_ selects the system jpeg and png libs. Please confirm if you have the same results. What I start to suspect is that at least under cygwin, this never worked well ? Fabien > What I don't understand is: why is the else part not executed, if the > option is defaulted. There must (have) be(en) a reason, why this and the > other lib tests have been coded this way (remember that we did discuss, > why ac_cv_lib_png_png_set_tRNS_to_alpha=no has been set to "no", if > using the builtin lib?). > > I think that I must read the autoconf docs before I can understand this > stuff, but I didn't have the time yet, and that's why I didn't try to > fix anything autoconf related. > > But: I tested (trial and error) and found that we can (maybe remove the > else part and) add another test (after the "fi"): > > if test x$enable_localpng != xyes; then > PNGINC="" > PNG="" > IMAGELIBS="-lpng $IMAGELIBS" > AC_DEFINE(HAVE_LIBPNG) > AC_DEFINE(HAVE_PNG_GET_VALID) > AC_CHECK_LIB(png,png_set_tRNS_to_alpha, > AC_DEFINE(HAVE_PNG_SET_TRNS_TO_ALPHA)) > AC_CHECK_HEADER(png.h, > AC_DEFINE(HAVE_PNG_H)) > fi > > This (or similar) should work, but somebody else who knows more about > autoconf should have a look at it, please... > > Albrecht _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
