version 1.1, 2014/07/30 08:16:46
|
version 1.1.1.1.2.1, 2014/07/30 08:55:18
|
Line 2
|
Line 2
|
# Attempt to guess a canonical system name. |
# Attempt to guess a canonical system name. |
# Copyright 1992-2013 Free Software Foundation, Inc. |
# Copyright 1992-2013 Free Software Foundation, Inc. |
|
|
timestamp='2013-11-29' | timestamp='2013-05-16' |
|
|
# 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 |
# under the terms of the GNU General Public License as published by |
# under the terms of the GNU General Public License as published by |
Line 810 EOF
|
Line 810 EOF
|
exit ;; |
exit ;; |
*:FreeBSD:*:*) |
*:FreeBSD:*:*) |
UNAME_PROCESSOR=`/usr/bin/uname -p` |
UNAME_PROCESSOR=`/usr/bin/uname -p` |
case ${UNAME_PROCESSOR} in | echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
amd64) | |
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
*) | |
echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
esac | |
exit ;; |
exit ;; |
i*:CYGWIN*:*) |
i*:CYGWIN*:*) |
echo ${UNAME_MACHINE}-pc-cygwin |
echo ${UNAME_MACHINE}-pc-cygwin |
Line 995 EOF
|
Line 990 EOF
|
ppc:Linux:*:*) |
ppc:Linux:*:*) |
echo powerpc-unknown-linux-${LIBC} |
echo powerpc-unknown-linux-${LIBC} |
exit ;; |
exit ;; |
ppc64le:Linux:*:*) |
|
echo powerpc64le-unknown-linux-${LIBC} |
|
exit ;; |
|
ppcle:Linux:*:*) |
|
echo powerpcle-unknown-linux-${LIBC} |
|
exit ;; |
|
s390:Linux:*:* | s390x:Linux:*:*) |
s390:Linux:*:* | s390x:Linux:*:*) |
echo ${UNAME_MACHINE}-ibm-linux-${LIBC} |
echo ${UNAME_MACHINE}-ibm-linux-${LIBC} |
exit ;; |
exit ;; |
Line 1260 EOF
|
Line 1249 EOF
|
if test "$UNAME_PROCESSOR" = unknown ; then |
if test "$UNAME_PROCESSOR" = unknown ; then |
UNAME_PROCESSOR=powerpc |
UNAME_PROCESSOR=powerpc |
fi |
fi |
if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ |
if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ |
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | grep IS_64BIT_ARCH >/dev/null |
grep IS_64BIT_ARCH >/dev/null | then |
then | case $UNAME_PROCESSOR in |
case $UNAME_PROCESSOR in | i386) UNAME_PROCESSOR=x86_64 ;; |
i386) UNAME_PROCESSOR=x86_64 ;; | powerpc) UNAME_PROCESSOR=powerpc64 ;; |
powerpc) UNAME_PROCESSOR=powerpc64 ;; | esac |
esac | |
fi | |
fi |
fi |
elif test "$UNAME_PROCESSOR" = i386 ; then |
|
# Avoid executing cc on OS X 10.9, as it ships with a stub |
|
# that puts up a graphical alert prompting to install |
|
# developer tools. Any system running Mac OS X 10.7 or |
|
# later (Darwin 11 and later) is required to have a 64-bit |
|
# processor. This is not true of the ARM version of Darwin |
|
# that Apple uses in portable devices. |
|
UNAME_PROCESSOR=x86_64 |
|
fi |
fi |
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
exit ;; |
exit ;; |