This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Fwd: PATCH: libstd++-v3 configure script and target mingw32]


Phil Edwards wrote:
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.
OK, got it. I put in a few "echo's" in the configure script and
this is what I get (I explicitly specify "--target=mingw32"):

target_alias=mingw32    (Both before and after the assigment above)
target=i386-pc-mingw32  (Orig. "mingw32", changed by config.sub to this)

IMO then the "case switches" later should either be based on "target"
or should incorporate the teeny-weeny patch I submitted.

Sincerely Yours,
Ranjit Mathew.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]