[Fwd: PATCH: libstd++-v3 configure script and target mingw32]
Phil Edwards
phil@jaj.com
Wed Oct 2 19:41:00 GMT 2002
On Tue, Oct 01, 2002 at 12:23:45PM +0530, Ranjit Mathew wrote:
> 21 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
> 22 # AC 2.5x sets target_alias iff the user specified --target,
> but we use
> it
> 23 # everywhere, so we set it here just to be sure. In AC 2.13
> 24 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
> 25 AC_CANONICAL_SYSTEM
> 26 target_alias=${target_alias-$target}
> 27 AC_SUBST(target_alias)
That '-' isn't what you think it is, I think. The construct on the right
hand side of the equals means, "if target_alias is set, expand to that,
but if target_alias is not set, expand to target instead." The '-'
doesn't appear in the output.
We do this for the reason specified in the comment. :-) GCC hasn't been
updated to use autoconf 2.5x, but I suspect they'll do something similar
once they are.
What /is/ target_alias being set to on your system? The dash should
be there.
Phil
--
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
- Edsger Dijkstra, 1930-2002
More information about the Libstdc++
mailing list