From 78da8a8e6bcc975a2e92a60d4c41e9be4c02b786 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 10 Aug 2000 14:57:22 +0000 Subject: [PATCH] More compatible yet: sysctl used to be in /usr/sbin, not /sbin, so add both locations to $PATH before trying to run sysctl. --- gnu/dist/toolchain/config.guess | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/dist/toolchain/config.guess b/gnu/dist/toolchain/config.guess index 1d3c3a0de09f..26d87b0fda83 100755 --- a/gnu/dist/toolchain/config.guess +++ b/gnu/dist/toolchain/config.guess @@ -512,7 +512,8 @@ EOF fi exit 0 ;; *:NetBSD:*:*) - UNAME_MACHINE_ARCH=`(uname -p || /sbin/sysctl -n hw.machine_arch) 2>/dev/null` || UNAME_MACHINE_ARCH=unknown + PATH=$PATH:/sbin:/usr/sbin + UNAME_MACHINE_ARCH=`(uname -p || sysctl -n hw.machine_arch) 2>/dev/null` || UNAME_MACHINE_ARCH=unknown echo ${UNAME_MACHINE_ARCH}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` exit 0 ;; *:OpenBSD:*:*)