summaryrefslogtreecommitdiff
path: root/security/openssl/patches/patch-aa
blob: db5844b9c61f729652e288e8afda5004efea5de6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
$NetBSD: patch-aa,v 1.18 2005/10/11 17:19:21 jlam Exp $

--- config.orig	2005-04-07 16:26:10.000000000 -0400
+++ config
@@ -49,6 +49,7 @@ done
 # First get uname entries that we use below
 
 MACHINE=`(uname -m) 2>/dev/null` || MACHINE="unknown"
+MACHINE_ARCH=`(uname -p) 2>/dev/null` || MACHINE_ARCH="unknown"
 RELEASE=`(uname -r) 2>/dev/null` || RELEASE="unknown"
 SYSTEM=`(uname -s) 2>/dev/null`  || SYSTEM="unknown"
 VERSION=`(uname -v) 2>/dev/null` || VERSION="unknown"
@@ -155,6 +156,10 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${
 	echo "mips4-sgi-irix64"; exit 0
 	;;
 
+    Interix:3.*)
+	echo "i386-pc-interix3"; exit 0
+	;;
+
     Linux:[2-9].*)
 	echo "${MACHINE}-whatever-linux2"; exit 0
 	;;
@@ -216,7 +221,7 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${
 	;;
 
     NetBSD:*)
-	echo "${MACHINE}-whatever-netbsd"; exit 0
+	echo "${MACHINE_ARCH}-whatever-netbsd"; exit 0
 	;;
 
     OpenBSD:*)
@@ -671,9 +676,21 @@ EOF
   ia64-*-freebsd*) OUT="FreeBSD-ia64" ;;
   *-freebsd[3-9]*) OUT="FreeBSD-elf" ;;
   *-freebsd[1-2]*) OUT="FreeBSD" ;;
-  *86*-*-netbsd) OUT="NetBSD-x86" ;;
-  sun3*-*-netbsd) OUT="NetBSD-m68" ;;
-  *-*-netbsd) OUT="NetBSD-sparc" ;;
+  x86_64-*-netbsd) OUT="NetBSD-${MACHINE_ARCH}" ;;
+  *86*-*-netbsd)
+	if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+		OUT="NetBSD-x86-aout"
+	else
+		OUT="NetBSD-x86-elf"
+	fi
+	;;
+  alpha-*-netbsd|arm-*-netbsd|arm32-*-netbsd|m68000-*-netbsd|m68k-*-netbsd|\
+  mipseb-*-netbsd|mipsel-*-netbsd|ns32k-*-netbsd|powerpc-*-netbsd|\
+  sparc-*-netbsd|sparc64-*-netbsd|vax-*-netbsd)
+	OUT="NetBSD-${MACHINE_ARCH}"
+	;;
+  *-*-netbsd) OUT="NetBSD" ;;
+  *-*-interix3) OUT="Interix3" ;;
   alpha*-*-openbsd) OUT="OpenBSD-alpha" ;;
   *86*-*-openbsd) OUT="OpenBSD-i386" ;;
   m68k*-*-openbsd) OUT="OpenBSD-m68k" ;;