Re: [bug-gnulib] Re: getopt and Solaris 10
Matthias Kurz <[email protected]> Mon, 9 May 2005 17:48:09 +0200
| Newsgroups | gmane.comp.gnu.core-utils.bugs,gmane.comp.lib.gnulib.bugs,gmane.comp.version-control.cvs.bugs |
|---|---|
| Message-ID | <[email protected]> |
On Mon, May 09, 2005, Derek Price wrote: [...] > Okay, one more revision, to actually check if the -+ registers as an > option or not. This fits the autoconf paradigm of testing for the bug, > even if it is using AC_TRY_RUN. This way, if Sun fixes the problem in = a > later Solaris release, we shouldn't need to change anything. I do not think that this is a Solaris _bug_. GNU getopt tries to do too much when it reorders the commandline and therefor needs the "+" as a workaround. I would not hold my breath to wait for a "fix" from the Sun side. But then, as long as it works for me, i'm happy with everything. > When cross-compiling, I fall back on looking for the odd Solaris decl t= o > decide whether to use the GNULIB version of getopt or not. If we wante= d > to be really pessimistic, we could always use the GNULIB getopt when > cross-compiling, but I thought this could wait at least until we get a > report of similar behavior from some system other than Solaris 10. I'd bet that every system that does not use GNU getopt will suffer from this problem. I don't know how many of them have a getopt.h, which "triggers" the problem. > Matthias, would you mind testing this version out? If you could send m= e > your config.log when you are done building, that would be helpful as we= ll. Yes, i'm going to test this asap. (mk) --=20 Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47 >> Im pr=E4motorischen Cortex kann jeder ein Held sein. (bdw) <<