[Liverpool] Runtime OS architecture detection
Bob Ham
rah at bash.sh
Fri Dec 10 23:23:32 UTC 2010
On Thu, 2010-12-09 at 15:30 +0000, Liam Devine wrote:
> Currently I am trying to figure out the best and most universal method
> of detecting the host architecture for Linux distros at runtime
Use config.guess from GNU autotools. Eg, on my system I can do the
following:
rah at myrtle:~$ /usr/share/automake-1.11/config.guess
x86_64-unknown-linux-gnu
rah at myrtle:~$ /usr/share/automake-1.11/config.guess | cut -f 1 -d -
x86_64
Note also that for your purposes, "use" will most likely mean reading
the source.
--
Bob Ham <rah at bash.sh>
for (;;) { ++pancakes; }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://mailman.lug.org.uk/pipermail/liverpool/attachments/20101210/c40a92f0/attachment.pgp>
More information about the Liverpool
mailing list