Commit e9954ee4 by Per Bothner

(netbsd, freebsd, linux): Accept any machine, not just i[34]86.

From-SVN: r7993
parent 405fc238
...@@ -44,9 +44,6 @@ trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15 ...@@ -44,9 +44,6 @@ trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15
# Note: order is significant - the case branches are not exclusive. # Note: order is significant - the case branches are not exclusive.
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
*:NetBSD:*:*)
echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
exit 0 ;;
alpha:OSF1:V*:*) alpha:OSF1:V*:*)
# After 1.2, OSF1 uses "V1.3" for uname -r. # After 1.2, OSF1 uses "V1.3" for uname -r.
echo alpha-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^V//'` echo alpha-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^V//'`
...@@ -239,10 +236,13 @@ EOF ...@@ -239,10 +236,13 @@ EOF
i[34]86:BSD/386:*:*) i[34]86:BSD/386:*:*)
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
exit 0 ;; exit 0 ;;
i[34]86:FreeBSD:*:*) *:FreeBSD:*:*)
echo ${UNAME_MACHINE}-unknown-freebsd echo ${UNAME_MACHINE}-unknown-freebsd${UNAME_RELEASE}
exit 0 ;;
*:NetBSD:*:*)
echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
exit 0 ;; exit 0 ;;
i[34]86:Linux:*:*) *:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux echo ${UNAME_MACHINE}-unknown-linux
exit 0 ;; exit 0 ;;
i[34]86:UNIX_SV:4.*:* | i[34]86:SYSTEM_V:4.*:*) i[34]86:UNIX_SV:4.*:* | i[34]86:SYSTEM_V:4.*:*)
...@@ -292,8 +292,8 @@ EOF ...@@ -292,8 +292,8 @@ EOF
echo m68k-lynx-lynxos${UNAME_RELEASE} echo m68k-lynx-lynxos${UNAME_RELEASE}
exit 0 ;; exit 0 ;;
mc68030:UNIX_System_V:4.*:*) mc68030:UNIX_System_V:4.*:*)
echo m68k-atari-sysv4 echo m68k-atari-sysv4
exit 0 ;; exit 0 ;;
i[34]86:LynxOS:2.2*:*) i[34]86:LynxOS:2.2*:*)
echo i386-lynx-lynxos${UNAME_RELEASE} echo i386-lynx-lynxos${UNAME_RELEASE}
exit 0 ;; exit 0 ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment