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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
$NetBSD: patch-ah,v 1.2 1999/08/03 20:30:41 bad Exp $
--- mit-pthreads/config/configure.orig Tue Mar 10 10:11:25 1998
+++ mit-pthreads/config/configure Thu Jul 29 19:17:31 1999
@@ -1165,6 +1165,12 @@
name=$host_cpu-$host_os
case $host in
+ alpha-*-netbsd1.3[H-Z]|alpha-*-netbsd1.4*)
+ name=alpha-netbsd-1.3
+ sysincludes=netbsd-1.1
+ except="fork lseek pipe fstat"
+ available_syscalls="sigsuspend sigprocmask"
+ ;;
alpha-*-netbsd1.3*)
name=alpha-netbsd-1.3
sysincludes=netbsd-1.1
@@ -1183,6 +1189,17 @@
CFLAGS="$CFLAGS -std"
fi
;;
+ arm32-*-netbsd1.3[H-Z]|arm32-*-netbsd1.4*)
+ name=arm32-netbsd-1.3
+ sysincludes=netbsd-1.1
+ except="fork pipe lseek ftruncate fstat"
+ available_syscalls="sigsuspend sigprocmask"
+ ;;
+ arm32-*-netbsd1.3*)
+ name=arm32-netbsd-1.3
+ sysincludes=netbsd-1.1
+ except="fork pipe lseek ftruncate sigsuspend sigprocmask fstat"
+ ;;
hppa1.0-*-hpux10.20 | hppa1.1-*-hpux10.20)
name=hppa-hpux-10.20
sysincludes=hpux-10.20
@@ -1232,6 +1249,17 @@
EOF
;;
+ sparc-*-netbsd1.3[H-Z]|sparc-*-netbsd1.4*)
+ name=sparc-netbsd-1.3
+ sysincludes=netbsd-1.1
+ except="pipe fork lseek ftruncate fstat"
+ available_syscalls="sigprocmask sigsuspend"
+ ;;
+ sparc-*-netbsd1.3*)
+ name=sparc-netbsd-1.3
+ sysincludes=netbsd-1.1
+ except="pipe fork lseek ftruncate sigprocmask sigsuspend fstat"
+ ;;
sparc-*-netbsd1.0A | sparc-*-netbsd1.1* | sparc-*-netbsd1.2*)
name=sparc-sunos-4.1.3
sysincludes=netbsd-1.0
@@ -1257,6 +1285,12 @@
syscall=i386-bsdi-2.0
except="fork lseek ftruncate sigsuspend"
;;
+ i386-*-netbsd1.3[H-Z]|i386-*-netbsd1.4*)
+ name=i386-netbsd-1.3
+ sysincludes=netbsd-1.1
+ except="fork lseek ftruncate pipe fstat"
+ available_syscalls="sigsuspend sigprocmask"
+ ;;
i386-*-netbsd1.3*)
name=i386-netbsd-1.3
sysincludes=netbsd-1.1
@@ -1279,6 +1313,9 @@
;;
m68*-*-netbsd*)
name=m68000-netbsd
+ sysincludes=netbsd-1.1
+ except="lseek ftruncate pipe fstat"
+ available_syscalls="sigsuspend sigprocmask"
;;
i386-*-freebsd2.*)
name=i386-freebsd-2.0
@@ -1898,6 +1935,38 @@
if test $pthreads_cv_timespec_in_time = yes ; then
cat >> confdefs.h <<\EOF
#define _OS_HAS_TIMESPEC 1
+EOF
+fi
+
+echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'pthreads_cv_socklen_t'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 1678 "configure"
+#include "confdefs.h"
+#include <sys/types.h>
+#include <sys/socket.h>
+int main() { return 0; }
+int t() {
+socklen_t foo;
+; return 0; }
+EOF
+if { (eval echo configure:1686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ pthreads_cv_socklen_t=yes
+else
+ rm -rf conftest*
+ pthreads_cv_socklen_t=no
+fi
+rm -f conftest*
+
+fi
+
+echo "$ac_t""$pthreads_cv_socklen_t" 1>&6
+if test $pthreads_cv_socklen_t = yes ; then
+ cat >> confdefs.h <<\EOF
+#define _OS_HAS_SOCKLEN_T 1
EOF
fi
|