OLD | NEW |
1 #! /bin/sh | 1 #! /bin/sh |
2 # Attempt to guess a canonical system name. | 2 # Attempt to guess a canonical system name. |
3 # Copyright 1992-2013 Free Software Foundation, Inc. | 3 # Copyright 1992-2013 Free Software Foundation, Inc. |
4 | 4 |
5 timestamp='2013-06-10' | 5 timestamp='2013-11-29' |
6 | 6 |
7 # This file is free software; you can redistribute it and/or modify it | 7 # This file is free software; you can redistribute it and/or modify it |
8 # under the terms of the GNU General Public License as published by | 8 # under the terms of the GNU General Public License as published by |
9 # the Free Software Foundation; either version 3 of the License, or | 9 # the Free Software Foundation; either version 3 of the License, or |
10 # (at your option) any later version. | 10 # (at your option) any later version. |
11 # | 11 # |
12 # This program is distributed in the hope that it will be useful, but | 12 # This program is distributed in the hope that it will be useful, but |
13 # WITHOUT ANY WARRANTY; without even the implied warranty of | 13 # WITHOUT ANY WARRANTY; without even the implied warranty of |
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 # General Public License for more details. | 15 # General Public License for more details. |
(...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1253 exit ;; | 1253 exit ;; |
1254 *:Rhapsody:*:*) | 1254 *:Rhapsody:*:*) |
1255 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | 1255 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
1256 exit ;; | 1256 exit ;; |
1257 *:Darwin:*:*) | 1257 *:Darwin:*:*) |
1258 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown | 1258 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
1259 eval $set_cc_for_build | 1259 eval $set_cc_for_build |
1260 if test "$UNAME_PROCESSOR" = unknown ; then | 1260 if test "$UNAME_PROCESSOR" = unknown ; then |
1261 UNAME_PROCESSOR=powerpc | 1261 UNAME_PROCESSOR=powerpc |
1262 fi | 1262 fi |
1263 » if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | 1263 » if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then |
1264 » if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | 1264 » if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
1265 » » (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | 1265 » » if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') |
\ |
1266 » » grep IS_64BIT_ARCH >/dev/null | 1266 » » (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ |
1267 » then | 1267 » » grep IS_64BIT_ARCH >/dev/null |
1268 » » case $UNAME_PROCESSOR in | 1268 » » then |
1269 » » i386) UNAME_PROCESSOR=x86_64 ;; | 1269 » » case $UNAME_PROCESSOR in |
1270 » » powerpc) UNAME_PROCESSOR=powerpc64 ;; | 1270 » » » i386) UNAME_PROCESSOR=x86_64 ;; |
1271 » » esac | 1271 » » » powerpc) UNAME_PROCESSOR=powerpc64 ;; |
| 1272 » » esac |
| 1273 » » fi |
1272 fi | 1274 fi |
| 1275 elif test "$UNAME_PROCESSOR" = i386 ; then |
| 1276 # Avoid executing cc on OS X 10.9, as it ships with a stub |
| 1277 # that puts up a graphical alert prompting to install |
| 1278 # developer tools. Any system running Mac OS X 10.7 or |
| 1279 # later (Darwin 11 and later) is required to have a 64-bit |
| 1280 # processor. This is not true of the ARM version of Darwin |
| 1281 # that Apple uses in portable devices. |
| 1282 UNAME_PROCESSOR=x86_64 |
1273 fi | 1283 fi |
1274 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | 1284 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
1275 exit ;; | 1285 exit ;; |
1276 *:procnto*:*:* | *:QNX:[0123456789]*:*) | 1286 *:procnto*:*:* | *:QNX:[0123456789]*:*) |
1277 UNAME_PROCESSOR=`uname -p` | 1287 UNAME_PROCESSOR=`uname -p` |
1278 if test "$UNAME_PROCESSOR" = "x86"; then | 1288 if test "$UNAME_PROCESSOR" = "x86"; then |
1279 UNAME_PROCESSOR=i386 | 1289 UNAME_PROCESSOR=i386 |
1280 UNAME_MACHINE=pc | 1290 UNAME_MACHINE=pc |
1281 fi | 1291 fi |
1282 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} | 1292 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1549 EOF | 1559 EOF |
1550 | 1560 |
1551 exit 1 | 1561 exit 1 |
1552 | 1562 |
1553 # Local variables: | 1563 # Local variables: |
1554 # eval: (add-hook 'write-file-hooks 'time-stamp) | 1564 # eval: (add-hook 'write-file-hooks 'time-stamp) |
1555 # time-stamp-start: "timestamp='" | 1565 # time-stamp-start: "timestamp='" |
1556 # time-stamp-format: "%:y-%02m-%02d" | 1566 # time-stamp-format: "%:y-%02m-%02d" |
1557 # time-stamp-end: "'" | 1567 # time-stamp-end: "'" |
1558 # End: | 1568 # End: |
OLD | NEW |