2002-03-04 Adrian Bunk <bunk@fs.tum.de>

* config.guess (*:NetBSD:*:*): Use "sysctl -n hw.machine_arch"
	instead of "uname -p" to get UNAME_MACHINE_ARCH.
This commit is contained in:
Ben Elliston 2002-03-03 21:57:39 +00:00
parent 08eb900414
commit b966da033f
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2002-03-04 Adrian Bunk <bunk@fs.tum.de>
* config.guess (*:NetBSD:*:*): Use "sysctl -n hw.machine_arch"
instead of "uname -p" to get UNAME_MACHINE_ARCH.
2002-02-22 Ben Elliston <bje@redhat.com>
Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>

7
config.guess vendored
View File

@ -3,7 +3,7 @@
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002 Free Software Foundation, Inc.
timestamp='2002-02-19'
timestamp='2002-03-04'
# 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
@ -138,8 +138,9 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
#
# Note: NetBSD doesn't particularly care about the vendor
# portion of the name. We always set it to "unknown".
UNAME_MACHINE_ARCH=`(uname -p) 2>/dev/null` || \
UNAME_MACHINE_ARCH=unknown
sysctl="sysctl -n hw.machine_arch"
UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
/usr/sbin/$sysctl 2>/dev/null || echo unknown)`
case "${UNAME_MACHINE_ARCH}" in
arm*) machine=arm-unknown ;;
sh3el) machine=shl-unknown ;;