From c67509912bf37b1670e3ff0405db18c04b963e9e Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Wed, 11 Oct 2000 19:03:36 +0000 Subject: [PATCH] 2000-10-12 Ben Elliston * config.guess: Detect GNU/Linux on HP PA-RISC systems. From David Huggins-Daines . --- ChangeLog | 5 +++++ config.guess | 16 +++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a7b2070..eaefbea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-10-12 Ben Elliston + + * config.guess: Detect GNU/Linux on HP PA-RISC systems. + From David Huggins-Daines . + 2000-10-09 Ben Elliston * config.sub: Typo fix for sh{3,4} case. diff --git a/config.guess b/config.guess index adfb18c..3b095eb 100755 --- a/config.guess +++ b/config.guess @@ -3,7 +3,7 @@ # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 # Free Software Foundation, Inc. -version='2000-10-07' +version='2000-10-12' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -859,6 +859,20 @@ EOF echo s390-ibm-linux && exit 0 elif test "${UNAME_MACHINE}" = "x86_64"; then echo x86_64-unknown-linux-gnu && exit 0 + elif test "${UNAME_MACHINE}" = "parisc" -o "${UNAME_MACHINE}" = "hppa"; then + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) + echo hppa1.1-unknown-linux-gnu + ;; + PA8*) + echo hppa2.0-unknown-linux-gnu + ;; + *) + echo hppa-unknown-linux-gnu + ;; + esac + exit 0 else # Either a pre-BFD a.out linker (linux-gnuoldld) # or one that does not give us useful --help.