diff options
author | Jeff Law <law@gcc.gnu.org> | 1997-11-26 16:54:57 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1997-11-26 16:54:57 -0700 |
commit | 5f1a18f64974e406315100fbf160a8624460e255 (patch) | |
tree | 7666e9849a5ea3a7db1010df6188b818ea845184 | |
parent | 20a2fbe20e01a12d6b45782ed98d090ecd17caf3 (diff) | |
download | gcc-5f1a18f64974e406315100fbf160a8624460e255.zip gcc-5f1a18f64974e406315100fbf160a8624460e255.tar.gz gcc-5f1a18f64974e406315100fbf160a8624460e255.tar.bz2 |
config.guess (alpha stuff): Merge with FSF to avoid incorrect guesses.
* config.guess (alpha stuff): Merge with FSF to avoid incorrect
guesses.
From-SVN: r16770
-rwxr-xr-x | config.guess | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/config.guess b/config.guess index 413ed41..34d431b 100755 --- a/config.guess +++ b/config.guess @@ -507,7 +507,36 @@ EOF i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;; sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; - elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;; + elf32ppc) + # Determine Lib Version + cat >dummy.c <<EOF +#include <features.h> +#if defined(__GLIBC__) +extern char __libc_version[]; +extern char __libc_release[]; +#endif +main(argc, argv) + int argc; + char *argv[]; +{ +#if defined(__GLIBC__) + printf("%s %s\n", __libc_version, __libc_release); +#else + printf("unkown\n"); +#endif + return 0; +} +EOF + LIBC="" + ${CC-cc} dummy.c -o dummy 2>/dev/null + if test "$?" = 0 ; then + ./dummy | grep 1\.99 > /dev/null + if test "$?" = 0 ; then + LIBC="libc1" + fi + fi + rm -f dummy.c dummy + echo powerpc-unknown-linux-gnu${LIBC} ; exit 0 ;; esac if test "${UNAME_MACHINE}" = "alpha" ; then |