mirror of
git://git.savannah.gnu.org/config.git
synced 2025-05-29 02:26:36 +12:00
From Apostolos Syropoulos <asyropoulos@gmail.com>:
* config.guess (i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*): Use the isainfo(1) command to guess what kind of system we have. Running isainfo -b returns either "32" or "64".
This commit is contained in:
parent
afe1fa96bf
commit
c85e3fc03c
@ -1,3 +1,10 @@
|
|||||||
|
2018-07-18 Ben Elliston <bje@gnu.org>
|
||||||
|
|
||||||
|
From Apostolos Syropoulos <asyropoulos@gmail.com>:
|
||||||
|
* config.guess (i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*): Use the
|
||||||
|
isainfo(1) command to guess what kind of system we have. Running
|
||||||
|
isainfo -b returns either "32" or "64".
|
||||||
|
|
||||||
2018-07-18 Mikaël Urankar <mikael.urankar@gmail.com>
|
2018-07-18 Mikaël Urankar <mikael.urankar@gmail.com>
|
||||||
|
|
||||||
* config.guess (arm*:FreeBSD:*:*): New.
|
* config.guess (arm*:FreeBSD:*:*): New.
|
||||||
|
23
config.guess
vendored
23
config.guess
vendored
@ -392,20 +392,15 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
|
|||||||
echo i386-pc-auroraux"$UNAME_RELEASE"
|
echo i386-pc-auroraux"$UNAME_RELEASE"
|
||||||
exit ;;
|
exit ;;
|
||||||
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
|
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
|
||||||
set_cc_for_build
|
UNAME_REL="`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
|
||||||
SUN_ARCH=i386
|
case `isainfo -b` in
|
||||||
# If there is a compiler, see if it is configured for 64-bit objects.
|
32)
|
||||||
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
|
echo i386-pc-solaris2"$UNAME_REL"
|
||||||
# This test works for both compilers.
|
;;
|
||||||
if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
|
64)
|
||||||
if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
|
echo x86_64-pc-solaris2"$UNAME_REL"
|
||||||
(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
|
;;
|
||||||
grep IS_64BIT_ARCH >/dev/null
|
esac
|
||||||
then
|
|
||||||
SUN_ARCH=x86_64
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
|
|
||||||
exit ;;
|
exit ;;
|
||||||
sun4*:SunOS:6*:*)
|
sun4*:SunOS:6*:*)
|
||||||
# According to config.sub, this is the proper way to canonicalize
|
# According to config.sub, this is the proper way to canonicalize
|
||||||
|
Loading…
x
Reference in New Issue
Block a user