[Flac-dev] detecting host machine in configure.in?

Josh Coalson xflac at yahoo.com
Tue May 22 17:15:36 PDT 2001


I am trying to set up a flexible infrastructure for the assembly
code.  Basically what I want is configure.in determination of
basic machine type (intel/compatible, alpha, ppc), then within
that (say intel) the code will detect variants like MMX, SSE,
and use the right routines.

I know how to do the second, but what is a good way to do the first?
Linux/Cygwin/Solaris seem to support the MACHTYPE environment variable.
Is uname -m or uname -p more reliable?  Is there a simple way than
knowing all the uname -m variants that mean intel 386 compatible?
(i386, i586, i686, athlon?  etc).

Josh


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/




More information about the Flac-dev mailing list