Re: more getopt -- let's fix it (Re: minting with "-z")
Jonathan Morton <[email protected]>
| Newsgroups | gmane.mail.spam.hashcash |
|---|---|
| Message-ID | <[email protected]> |
> Yes more of the same -- the same getopt(3) difference on BSD vs linux; > the BSD one simply can't cope with ordered args -- it shuffles them > all to the end where they lose their context and meaning as far as > hashcash is concerned. > > I think it's quite straight-forward to put some #ifdefs in a file > gnut_getopt.c which #includes getopt.c only on architectures with > incompatible getopt. What is the #define for BSD+MAC? I really think it's time to start using GNU Autoconf. It's specifically designed to take care of things like this. You would be able to compile and run a program during the configure process to see whether the system getopt exists and is capable enough, then set a define HAVE_GNU_GETOPT=1 if so. -------------------------------------------------------------- from: Jonathan "Chromatix" Morton mail: [email protected] website: http://www.chromatix.uklinux.net/ tagline: The key to knowledge is not to rely on people to teach you it.