summaryrefslogtreecommitdiff
path: root/devel/mit-pthreads/patches/patch-cc
blob: f567b188ec827b794f25bd2b07be2d9994c74a8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-cc,v 1.1 2001/01/10 01:28:50 briggs Exp $

--- config/config.guess.orig	Sat Nov  6 18:32:27 1999
+++ config/config.guess	Mon Jan  8 23:02:15 2001
@@ -292,7 +292,8 @@
 	echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
 	exit 0 ;;
     *:NetBSD:*:*)
-	echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+	UNAME_PROCESSOR=`uname -p 2>/dev/null` || UNAME_PROCESSOR=$UNAME_MACHINE
+	echo ${UNAME_PROCESSOR}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
 	exit 0 ;;
     *:GNU:*:*)
 	echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`