The "--libs" option to fltk-config seems to have changed recently,  
but I'm not convinced by the new version.

The fltk-config.in file now has this code:


if test "$echo_libs" = "yes"; then
     echo $libdir/libfltk.a

     if test x$use_forms = xyes; then
         echo $libdir/libfltk_images.a
     fi

     if test x$use_gl = xyes; then
         echo $libdir/libfltk_images.a
     fi

     if test x$use_images = xyes; then
         echo $libdir/libfltk_images.a

         for lib in fltk_jpeg fltk_png fltk_z; do
             if test -f $libdir/lib$lib.a; then
                 echo $libdir/lib$lib.a
             fi
        done
     fi
fi


Now, my problems with this are:

- you get $libdir/libfltk_images.a if you ask for forms, gl or images  
- that's gotta be a typo, surely?

- it lists the libs in the "wrong" order, in that libfltk.a really  
ought to be last.

- this option now lists it output on separate lines, whereas it used  
to print it on a single line.
Viz:

    $ ./fltk-config --use-gl --libs

returns

   ./lib/libfltk.a
   ./lib/libfltk_images.a
(sic)

Cheers,
-- 
Ian


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to