1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/lang/egcs/files/patch-aj
David E. O'Brien 9740802749 GNUHOST is now "i386-unknown-freebsd" for an ELF machine, and
"i386-unknown-freebsdaout" for an a.out machine.
1999-02-09 18:24:50 +00:00

16 lines
644 B
Plaintext

--- config.guess.orig Fri Oct 23 14:26:33 1998
+++ config.guess Mon Feb 8 12:13:06 1999
@@ -474,7 +474,11 @@
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
exit 0 ;;
*:FreeBSD:*:*)
- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+ if test -x /usr/bin/objformat -a "elf" = "`/usr/bin/objformat`"; then
+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+ else
+ echo ${UNAME_MACHINE}-unknown-freebsdaout`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+ fi
exit 0 ;;
*:NetBSD:*:*)
echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`