summaryrefslogtreecommitdiff
path: root/config/config.guess
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-03-06 09:11:13 +0000
committerJim Meyering <jim@meyering.net>2002-03-06 09:11:13 +0000
commitaa0c7901a4ec3dbe15cdc31f7e77d29d4667b391 (patch)
treec30cf0a9bfaefedb5c4de144d7f630ea979c2fca /config/config.guess
parentef8f6fe459db44b3baf4313342bb4344b23dff7c (diff)
downloadcoreutils-aa0c7901a4ec3dbe15cdc31f7e77d29d4667b391.tar.xz
update from masters
Diffstat (limited to 'config/config.guess')
-rw-r--r--config/config.guess7
1 files changed, 4 insertions, 3 deletions
diff --git a/config/config.guess b/config/config.guess
index db494f806..f4f77724b 100644
--- a/config/config.guess
+++ b/config/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 ;;