|
1 | 1 | #! /bin/sh
|
2 | 2 | # Attempt to guess a canonical system name.
|
3 |
| -# Copyright 1992-2019 Free Software Foundation, Inc. |
| 3 | +# Copyright 1992-2020 Free Software Foundation, Inc. |
4 | 4 |
|
5 |
| -timestamp='2019-06-10' |
| 5 | +timestamp='2020-01-01' |
6 | 6 |
|
7 | 7 | # This file is free software; you can redistribute it and/or modify it
|
8 | 8 | # under the terms of the GNU General Public License as published by
|
@@ -50,7 +50,7 @@ version="\
|
50 | 50 | GNU config.guess ($timestamp)
|
51 | 51 |
|
52 | 52 | Originally written by Per Bothner.
|
53 |
| -Copyright 1992-2019 Free Software Foundation, Inc. |
| 53 | +Copyright 1992-2020 Free Software Foundation, Inc. |
54 | 54 |
|
55 | 55 | This is free software; see the source for copying conditions. There is NO
|
56 | 56 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
|
99 | 99 | trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15
|
100 | 100 |
|
101 | 101 | set_cc_for_build() {
|
| 102 | + # prevent multiple calls if $tmp is already set |
| 103 | + test "$tmp" && return 0 |
102 | 104 | : "${TMPDIR=/tmp}"
|
103 | 105 | # shellcheck disable=SC2039
|
104 | 106 | { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
|
@@ -274,12 +276,15 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
|
274 | 276 | *:Sortix:*:*)
|
275 | 277 | echo "$UNAME_MACHINE"-unknown-sortix
|
276 | 278 | exit ;;
|
| 279 | + *:Twizzler:*:*) |
| 280 | + echo "$UNAME_MACHINE"-unknown-twizzler |
| 281 | + exit ;; |
277 | 282 | *:Redox:*:*)
|
278 | 283 | echo "$UNAME_MACHINE"-unknown-redox
|
279 | 284 | exit ;;
|
280 | 285 | mips:OSF1:*.*)
|
281 |
| - echo mips-dec-osf1 |
282 |
| - exit ;; |
| 286 | + echo mips-dec-osf1 |
| 287 | + exit ;; |
283 | 288 | alpha:OSF1:*:*)
|
284 | 289 | case $UNAME_RELEASE in
|
285 | 290 | *4.0)
|
|
921 | 926 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
922 | 927 | exit ;;
|
923 | 928 | alpha:Linux:*:*)
|
924 |
| - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
| 929 | + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in |
925 | 930 | EV5) UNAME_MACHINE=alphaev5 ;;
|
926 | 931 | EV56) UNAME_MACHINE=alphaev56 ;;
|
927 | 932 | PCA56) UNAME_MACHINE=alphapca56 ;;
|
|
0 commit comments