$HOSTTYPE

2008-07-15 Thread Peter Lowe

Hello,

How does bash determine $HOSTTYPE? Is it dependent on the version of bash 
installed - if I install i586 packages on an x86_64 platform, will $HOSTTYPE 
be i586? (I wouldn't've thought so, but I wanted to check.)


Thanks in advance for any help; and apologies if I'm missing somewhere I 
could easily find this out.


cheers,

 - Peter

--
PRAGUE: Home of the world's finest beer -- http://prague.tv/toys/beer/





Re: $HOSTTYPE

2008-07-15 Thread Chet Ramey

Peter Lowe wrote:

Hello,

How does bash determine $HOSTTYPE? Is it dependent on the version of 
bash installed - if I install i586 packages on an x86_64 platform, will 
$HOSTTYPE be i586? (I wouldn't've thought so, but I wanted to check.)


It's set from the `CONF_HOSTTYPE' define, which is passed to the
compiler in the top-level Makefile.  It gets into the Makefile via
`configure', which substitutes the value it gets from config.{guess,sub}
or the --build and --host options.

(In short, "configure sets it." :-) )

Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU[EMAIL PROTECTED]http://cnswww.cns.cwru.edu/~chet/