> we aren't running Linux so we
> don't have the GNU C library, and so we
> don't have getopt_long. That,
I just grabbed a netbsd libc and pulled getopt_long from that. Its a bit of work to remove all the references to the libc build framework common bits, bit a heck of a lot easier than writing a generator.
I think pretty much any *BSD libc will do - most include the code from netbsd as far as I know.
You should be able to use the CVS viewers to get the code without having a full distro handy.