Bruce, > Once upon a time, long ago and far away, I proposed a new > library, "libcompat" that more-or-less would make all target > platforms look pretty much identical. Lo and behold, over the > past decade, gnulib has gradually grown up to provide all > that infrastructure. The only problem with it is that gnulib is > glued in to each project ...
Have you tried to follow the approach of <http://www.gnu.org/software/gnulib/manual/html_node/POSIX-Substitutes-Library.html>? I haven't, but I would like to hear about success or problems that you encounter. > I do think it would be Really, Really Nice if there were a > gnulib.pc file one could test. Forget about pkg-config *.pc files. They don't allow the user to use a different compiler than the one with which the library was built. That's why gnulib offers modules 'readline', 'libsigsegv', 'libunistring', etc. They use autoconf macros that *do* work with Solaris cc as well as GCC. Bruno