3 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 |
# 2000, 2001, 2002 Free Software Foundation, Inc. |
# 2000, 2001, 2002 Free Software Foundation, Inc. |
5 |
|
|
6 |
timestamp='2002-01-30' |
timestamp='2002-03-04' |
7 |
|
|
8 |
# This file is free software; you can redistribute it and/or modify it |
# This file is free software; you can redistribute it and/or modify it |
9 |
# under the terms of the GNU General Public License as published by |
# under the terms of the GNU General Public License as published by |
138 |
# |
# |
139 |
# Note: NetBSD doesn't particularly care about the vendor |
# Note: NetBSD doesn't particularly care about the vendor |
140 |
# portion of the name. We always set it to "unknown". |
# portion of the name. We always set it to "unknown". |
141 |
UNAME_MACHINE_ARCH=`(uname -p) 2>/dev/null` || \ |
sysctl="sysctl -n hw.machine_arch" |
142 |
UNAME_MACHINE_ARCH=unknown |
UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ |
143 |
|
/usr/sbin/$sysctl 2>/dev/null || echo unknown)` |
144 |
case "${UNAME_MACHINE_ARCH}" in |
case "${UNAME_MACHINE_ARCH}" in |
145 |
arm*) machine=arm-unknown ;; |
arm*) machine=arm-unknown ;; |
146 |
sh3el) machine=shl-unknown ;; |
sh3el) machine=shl-unknown ;; |
341 |
echo m68k-sun-sunos${UNAME_RELEASE} |
echo m68k-sun-sunos${UNAME_RELEASE} |
342 |
exit 0 ;; |
exit 0 ;; |
343 |
sun*:*:4.2BSD:*) |
sun*:*:4.2BSD:*) |
344 |
UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` |
UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` |
345 |
test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 |
test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 |
346 |
case "`/bin/arch`" in |
case "`/bin/arch`" in |
347 |
sun3) |
sun3) |
510 |
fi |
fi |
511 |
exit 0 ;; |
exit 0 ;; |
512 |
*:AIX:*:[45]) |
*:AIX:*:[45]) |
513 |
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` |
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
514 |
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
515 |
IBM_ARCH=rs6000 |
IBM_ARCH=rs6000 |
516 |
else |
else |
684 |
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
685 |
echo c4-convex-bsd |
echo c4-convex-bsd |
686 |
exit 0 ;; |
exit 0 ;; |
|
CRAY*X-MP:*:*:*) |
|
|
echo xmp-cray-unicos |
|
|
exit 0 ;; |
|
687 |
CRAY*Y-MP:*:*:*) |
CRAY*Y-MP:*:*:*) |
688 |
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
689 |
exit 0 ;; |
exit 0 ;; |
705 |
CRAY*SV1:*:*:*) |
CRAY*SV1:*:*:*) |
706 |
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
707 |
exit 0 ;; |
exit 0 ;; |
|
CRAY-2:*:*:*) |
|
|
echo cray2-cray-unicos |
|
|
exit 0 ;; |
|
708 |
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
709 |
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
710 |
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
832 |
# The BFD linker knows what the default object file format is, so |
# The BFD linker knows what the default object file format is, so |
833 |
# first see if it will tell us. cd to the root directory to prevent |
# first see if it will tell us. cd to the root directory to prevent |
834 |
# problems with other programs or directories called `ld' in the path. |
# problems with other programs or directories called `ld' in the path. |
835 |
# Export LANG=C to prevent ld from outputting information in other |
# Set LC_ALL=C to ensure ld outputs messages in English. |
836 |
# languages. |
ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ |
|
ld_supported_targets=`LANG=C; export LANG; cd /; ld --help 2>&1 \ |
|
837 |
| sed -ne '/supported targets:/!d |
| sed -ne '/supported targets:/!d |
838 |
s/[ ][ ]*/ /g |
s/[ ][ ]*/ /g |
839 |
s/.*supported targets: *// |
s/.*supported targets: *// |