mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 09:41:15 +00:00
Better NetBSD support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6192 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0dc29b6388
commit
433d24fdb6
2 changed files with 39 additions and 17 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2000-03-06 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
|
* config.guess: Better guess of NetBSD systems.
|
||||||
|
|
||||||
Sat mar 04 10:08:00 2000 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
Sat mar 04 10:08:00 2000 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||||
|
|
||||||
* Tools/Makefile.postamble: improved messages about gdomap installation.
|
* Tools/Makefile.postamble: improved messages about gdomap installation.
|
||||||
|
|
52
config.guess
vendored
52
config.guess
vendored
|
@ -161,9 +161,6 @@ EOF
|
||||||
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
||||||
echo arm-acorn-riscix${UNAME_RELEASE}
|
echo arm-acorn-riscix${UNAME_RELEASE}
|
||||||
exit 0;;
|
exit 0;;
|
||||||
arm32:NetBSD:*:*)
|
|
||||||
echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
|
||||||
exit 0 ;;
|
|
||||||
SR2?01:HI-UX/MPP:*:*)
|
SR2?01:HI-UX/MPP:*:*)
|
||||||
echo hppa1.1-hitachi-hiuxmpp
|
echo hppa1.1-hitachi-hiuxmpp
|
||||||
exit 0;;
|
exit 0;;
|
||||||
|
@ -252,15 +249,9 @@ EOF
|
||||||
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
||||||
echo m68k-unknown-mint${UNAME_RELEASE}
|
echo m68k-unknown-mint${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
sun3*:NetBSD:*:*)
|
|
||||||
echo m68k-sun-netbsd${UNAME_RELEASE}
|
|
||||||
exit 0 ;;
|
|
||||||
sun3*:OpenBSD:*:*)
|
sun3*:OpenBSD:*:*)
|
||||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
mac68k:NetBSD:*:*)
|
|
||||||
echo m68k-apple-netbsd${UNAME_RELEASE}
|
|
||||||
exit 0 ;;
|
|
||||||
mac68k:OpenBSD:*:*)
|
mac68k:OpenBSD:*:*)
|
||||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
|
@ -273,9 +264,6 @@ EOF
|
||||||
powerpc:machten:*:*)
|
powerpc:machten:*:*)
|
||||||
echo powerpc-apple-machten${UNAME_RELEASE}
|
echo powerpc-apple-machten${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
macppc:NetBSD:*:*)
|
|
||||||
echo powerpc-apple-netbsd${UNAME_RELEASE}
|
|
||||||
exit 0 ;;
|
|
||||||
RISC*:Mach:*:*)
|
RISC*:Mach:*:*)
|
||||||
echo mips-dec-mach_bsd4.3
|
echo mips-dec-mach_bsd4.3
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
|
@ -408,7 +396,7 @@ EOF
|
||||||
ibmrt:4.4BSD:*|romp-ibm:BSD:*)
|
ibmrt:4.4BSD:*|romp-ibm:BSD:*)
|
||||||
echo romp-ibm-bsd4.4
|
echo romp-ibm-bsd4.4
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and
|
ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
|
||||||
echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
|
echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
|
||||||
exit 0 ;; # report: romp-ibm BSD 4.3
|
exit 0 ;; # report: romp-ibm BSD 4.3
|
||||||
*:BOSX:*:*)
|
*:BOSX:*:*)
|
||||||
|
@ -572,9 +560,6 @@ EOF
|
||||||
F301:UNIX_System_V:*:*)
|
F301:UNIX_System_V:*:*)
|
||||||
echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
|
echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
hp3[0-9][05]:NetBSD:*:*)
|
|
||||||
echo m68k-hp-netbsd${UNAME_RELEASE}
|
|
||||||
exit 0 ;;
|
|
||||||
hp300:OpenBSD:*:*)
|
hp300:OpenBSD:*:*)
|
||||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
|
@ -597,7 +582,40 @@ EOF
|
||||||
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
*:NetBSD:*:*)
|
*:NetBSD:*:*)
|
||||||
echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
|
# Netbsd (nbsd) targets should (where applicable) match one or
|
||||||
|
# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
|
||||||
|
# *-*-netbsdcoff* and *-*-netbsd*. For targets that recently
|
||||||
|
# switched to ELF, *-*-netbsd* would select select the old
|
||||||
|
# object file format. This provides both forward
|
||||||
|
# compatibility and a consistent mechanism for selecting the
|
||||||
|
# object file format.
|
||||||
|
# Determine the machine/vendor (is the vendor relevant).
|
||||||
|
case "${UNAME_MACHINE}" in
|
||||||
|
amiga) machine=m68k-cbm ;;
|
||||||
|
arm32) machine=arm-unknown ;;
|
||||||
|
atari*) machine=m68k-atari ;;
|
||||||
|
sun3*) machine=m68k-sun ;;
|
||||||
|
mac68k) machine=m68k-apple ;;
|
||||||
|
macppc) machine=powerpc-apple ;;
|
||||||
|
hp3[0-9][05]) machine=m68k-hp ;;
|
||||||
|
ibmrt|romp-ibm) machine=romp-ibm ;;
|
||||||
|
*) machine=${UNAME_MACHINE}-unknown ;;
|
||||||
|
esac
|
||||||
|
# The Operating System including object format.
|
||||||
|
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null | grep __ELF__ >/dev/null
|
||||||
|
then
|
||||||
|
# Could be a.out (netbsdaout) or COFF (netbsdcoff).
|
||||||
|
# Return netbsd for either. FIX?
|
||||||
|
os=netbsd
|
||||||
|
else
|
||||||
|
os=netbsdelf
|
||||||
|
fi
|
||||||
|
# The OS release
|
||||||
|
release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/./'`
|
||||||
|
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
|
||||||
|
# contains redundant information, the shorter form:
|
||||||
|
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
|
||||||
|
echo "${machine}-${os}${release}"
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
*:OpenBSD:*:*)
|
*:OpenBSD:*:*)
|
||||||
echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
||||||
|
|
Loading…
Reference in a new issue