I used this for testing: $ CPPFLAGS=-I/opt/csw/include CC=CC gnulib-tool --with-tests --test getopt-gnu
Modulo a fix for working around the compiler bug in test-stdbool[1], this patch series allows me to pass the testss using CC on Solaris 9. I also tested with g++ on Fedora 12 (where getopt is replaced, but not setenv). [1] http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21554 ChangeLog | 15 +++++++++++ lib/getopt.c | 2 +- lib/getopt_int.h | 69 ++++++++++++++++++++++++++------------------------ lib/setenv.c | 6 ++-- tests/test-stdint.c | 1 + 5 files changed, 56 insertions(+), 37 deletions(-) So I'm going ahead and pushing these patches. -- Eric Blake ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org