mirror of
git://git.savannah.gnu.org/config.git
synced 2025-05-29 02:26:36 +12:00
Support Linux elf and a.out systems; Add parisc support
This commit is contained in:
parent
f7d008c24e
commit
b435f4f551
29
config.guess
vendored
29
config.guess
vendored
@ -251,6 +251,9 @@ EOF
|
|||||||
hp8??:OSF1:*:*)
|
hp8??:OSF1:*:*)
|
||||||
echo hppa1.0-hp-osf
|
echo hppa1.0-hp-osf
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
|
parisc*:Lites*:*:*)
|
||||||
|
echo hppa1.1-hp-lites
|
||||||
|
exit 0 ;;
|
||||||
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
||||||
echo c1-convex-bsd
|
echo c1-convex-bsd
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
@ -297,8 +300,22 @@ EOF
|
|||||||
echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
|
echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
*:Linux:*:*)
|
*:Linux:*:*)
|
||||||
echo ${UNAME_MACHINE}-unknown-linux
|
# Determine whether the default compiler is a.out or elf
|
||||||
exit 0 ;;
|
cat >dummy.c <<EOF
|
||||||
|
main(argc, argv)
|
||||||
|
int argc;
|
||||||
|
char *argv[];
|
||||||
|
{
|
||||||
|
#ifdef __ELF__
|
||||||
|
printf ("%s-unknown-linux\n", argv[1]);
|
||||||
|
#else
|
||||||
|
printf ("%s-unknown-linuxaout\n", argv[1]);
|
||||||
|
#endif
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
|
||||||
|
rm -f dummy.c dummy;;
|
||||||
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
|
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
|
||||||
# are messed up and put the nodename in both sysname and nodename.
|
# are messed up and put the nodename in both sysname and nodename.
|
||||||
i[34]86:DYNIX/ptx:4*:*)
|
i[34]86:DYNIX/ptx:4*:*)
|
||||||
@ -312,13 +329,13 @@ EOF
|
|||||||
fi
|
fi
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
i[34]86:*:3.2:*)
|
i[34]86:*:3.2:*)
|
||||||
if test -f /usr/options/cb.name; then
|
if /bin/uname -X 2>/dev/null >/dev/null ; then
|
||||||
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
|
|
||||||
echo ${UNAME_MACHINE}-unknown-isc$UNAME_REL
|
|
||||||
elif /bin/uname -X 2>/dev/null >/dev/null ; then
|
|
||||||
UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
|
UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
|
||||||
(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
|
(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
|
||||||
echo ${UNAME_MACHINE}-unknown-sco$UNAME_REL
|
echo ${UNAME_MACHINE}-unknown-sco$UNAME_REL
|
||||||
|
elif test -f /usr/options/cb.name; then
|
||||||
|
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
|
||||||
|
echo ${UNAME_MACHINE}-unknown-isc$UNAME_REL
|
||||||
else
|
else
|
||||||
echo ${UNAME_MACHINE}-unknown-sysv32
|
echo ${UNAME_MACHINE}-unknown-sysv32
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user