setup_suif: use config.guess to determine machine type
commitf1e131eeaf5119682e8633667c67b62bf9e32b2b
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 17 Jul 2007 13:13:05 +0000 (17 15:13 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 17 Jul 2007 13:17:03 +0000 (17 15:17 +0200)
tree310bbcad60e2c9cfab76a9cfc0d317fe35059f03
parentb4a5b5cc38ffcf17fe31a211cf1d22d452b8b7ff
setup_suif: use config.guess to determine machine type

The old version would try to extract this information
from the output of "gcc -v", specifically the location
of the specs file.
However, some versions of gcc have the specs built in
and therefore do not show any path for this file, e.g.,

Using built-in specs.
Target: i586-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.1.2
--enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib
--with-system-zlib --enable-shared --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --program-suffix=-4.1
--enable-version-specific-runtime-libs --without-system-libunwind
--with-cpu=generic --host=i586-suse-linux
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (SUSE Linux)
config.guess [new file with mode: 0755]
setup_suif