From b966da033f742f8672378dd9e13c6237fd3dd887 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Sun, 3 Mar 2002 21:57:39 +0000 Subject: [PATCH] 2002-03-04 Adrian Bunk * config.guess (*:NetBSD:*:*): Use "sysctl -n hw.machine_arch" instead of "uname -p" to get UNAME_MACHINE_ARCH. --- ChangeLog | 5 +++++ config.guess | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9afe867..6d77543 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-03-04 Adrian Bunk + + * config.guess (*:NetBSD:*:*): Use "sysctl -n hw.machine_arch" + instead of "uname -p" to get UNAME_MACHINE_ARCH. + 2002-02-22 Ben Elliston Thiemo Seufer diff --git a/config.guess b/config.guess index db494f8..f4f7772 100755 --- a/config.guess +++ b/config.guess @@ -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 ;;