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 to
> decide whether to use the GNULIB version of getopt or not.  If we wanted
> 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 me
> your config.log when you are done building, that would be helpful as well.

Yes, i'm going to test this asap.


Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
  >> Im prämotorischen Cortex kann jeder ein Held sein. (bdw) <<

Bug-cvs mailing list

Reply via email to