mirror of
git://git.savannah.gnu.org/config.git
synced 2025-05-29 02:26:36 +12:00
* config.guess (*:Darwin:*:*): Set UNAME_PROCESSOR to powerpc when
__POWERPC__ is defined (e.g. when building with gcc -arch ppc). Signed-off-by: Ben Elliston <bje@gnu.org>
This commit is contained in:
parent
281c61b32f
commit
7d3d27baf8
@ -1,3 +1,8 @@
|
|||||||
|
2017-05-27 Mojca Miklavec <mojca.miklavec.lists@gmail.com>
|
||||||
|
|
||||||
|
* config.guess (*:Darwin:*:*): Set UNAME_PROCESSOR to powerpc when
|
||||||
|
__POWERPC__ is defined (e.g. when building with gcc -arch ppc).
|
||||||
|
|
||||||
2017-05-11 Ben Elliston <bje@gnu.org>
|
2017-05-11 Ben Elliston <bje@gnu.org>
|
||||||
|
|
||||||
* config.guess (NSR-*:NONSTOP_KERNEL:*:*): Match suffix with *.
|
* config.guess (NSR-*:NONSTOP_KERNEL:*:*): Match suffix with *.
|
||||||
|
13
config.guess
vendored
13
config.guess
vendored
@ -2,7 +2,7 @@
|
|||||||
# Attempt to guess a canonical system name.
|
# Attempt to guess a canonical system name.
|
||||||
# Copyright 1992-2017 Free Software Foundation, Inc.
|
# Copyright 1992-2017 Free Software Foundation, Inc.
|
||||||
|
|
||||||
timestamp='2017-05-11'
|
timestamp='2017-05-27'
|
||||||
|
|
||||||
# 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
|
||||||
@ -1304,14 +1304,21 @@ EOF
|
|||||||
if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
|
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
|
||||||
|
# On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
|
||||||
|
if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
|
||||||
|
(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
|
||||||
|
grep IS_PPC >/dev/null
|
||||||
|
then
|
||||||
|
UNAME_PROCESSOR=powerpc
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
elif test "$UNAME_PROCESSOR" = i386 ; then
|
elif test "$UNAME_PROCESSOR" = i386 ; then
|
||||||
# Avoid executing cc on OS X 10.9, as it ships with a stub
|
# Avoid executing cc on OS X 10.9, as it ships with a stub
|
||||||
|
Loading…
x
Reference in New Issue
Block a user