Mercurial > hg > nginx
comparison auto/os/features @ 875:7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 27 Nov 2006 11:07:09 +0000 |
parents | a0ce60f12e6b |
children | 345a014436d4 |
comparison
equal
deleted
inserted
replaced
874:98afa13ea7e5 | 875:7af8276b1c2f |
---|---|
28 | 28 |
29 ngx_feature="poll()" | 29 ngx_feature="poll()" |
30 ngx_feature_name= | 30 ngx_feature_name= |
31 ngx_feature_run=no | 31 ngx_feature_run=no |
32 ngx_feature_incs="#include <poll.h>" | 32 ngx_feature_incs="#include <poll.h>" |
33 ngx_feature_path= | |
33 ngx_feature_libs= | 34 ngx_feature_libs= |
34 ngx_feature_test="int n, dp; struct pollfd pl; | 35 ngx_feature_test="int n, dp; struct pollfd pl; |
35 dp = 0; | 36 dp = 0; |
36 pl.fd = 0; | 37 pl.fd = 0; |
37 pl.events = 0; | 38 pl.events = 0; |
46 | 47 |
47 ngx_feature="/dev/poll" | 48 ngx_feature="/dev/poll" |
48 ngx_feature_name="NGX_HAVE_DEVPOLL" | 49 ngx_feature_name="NGX_HAVE_DEVPOLL" |
49 ngx_feature_run=no | 50 ngx_feature_run=no |
50 ngx_feature_incs="#include <sys/devpoll.h>" | 51 ngx_feature_incs="#include <sys/devpoll.h>" |
52 ngx_feature_path= | |
51 ngx_feature_libs= | 53 ngx_feature_libs= |
52 ngx_feature_test="int n, dp; struct dvpoll dvp; | 54 ngx_feature_test="int n, dp; struct dvpoll dvp; |
53 dp = 0; | 55 dp = 0; |
54 dvp.dp_fds = NULL; | 56 dvp.dp_fds = NULL; |
55 dvp.dp_nfds = 0; | 57 dvp.dp_nfds = 0; |
67 if test -z "$NGX_KQUEUE_CHECKED"; then | 69 if test -z "$NGX_KQUEUE_CHECKED"; then |
68 ngx_feature="kqueue" | 70 ngx_feature="kqueue" |
69 ngx_feature_name="NGX_HAVE_KQUEUE" | 71 ngx_feature_name="NGX_HAVE_KQUEUE" |
70 ngx_feature_run=no | 72 ngx_feature_run=no |
71 ngx_feature_incs="#include <sys/event.h>" | 73 ngx_feature_incs="#include <sys/event.h>" |
74 ngx_feature_path= | |
72 ngx_feature_libs= | 75 ngx_feature_libs= |
73 ngx_feature_test="int kq; kq = kqueue()" | 76 ngx_feature_test="int kq; kq = kqueue()" |
74 . auto/feature | 77 . auto/feature |
75 | 78 |
76 if [ $ngx_found = yes ]; then | 79 if [ $ngx_found = yes ]; then |
82 | 85 |
83 ngx_feature="kqueue's NOTE_LOWAT" | 86 ngx_feature="kqueue's NOTE_LOWAT" |
84 ngx_feature_name="NGX_HAVE_LOWAT_EVENT" | 87 ngx_feature_name="NGX_HAVE_LOWAT_EVENT" |
85 ngx_feature_run=no | 88 ngx_feature_run=no |
86 ngx_feature_incs="#include <sys/event.h>" | 89 ngx_feature_incs="#include <sys/event.h>" |
90 ngx_feature_path= | |
87 ngx_feature_libs= | 91 ngx_feature_libs= |
88 ngx_feature_test="struct kevent kev; | 92 ngx_feature_test="struct kevent kev; |
89 kev.fflags = NOTE_LOWAT;" | 93 kev.fflags = NOTE_LOWAT;" |
90 . auto/feature | 94 . auto/feature |
91 | 95 |
93 ngx_feature="kqueue's EVFILT_TIMER" | 97 ngx_feature="kqueue's EVFILT_TIMER" |
94 ngx_feature_name="NGX_HAVE_TIMER_EVENT" | 98 ngx_feature_name="NGX_HAVE_TIMER_EVENT" |
95 ngx_feature_run=yes | 99 ngx_feature_run=yes |
96 ngx_feature_incs="#include <sys/event.h> | 100 ngx_feature_incs="#include <sys/event.h> |
97 #include <sys/time.h>" | 101 #include <sys/time.h>" |
102 ngx_feature_path= | |
98 ngx_feature_libs= | 103 ngx_feature_libs= |
99 ngx_feature_test="int kq; | 104 ngx_feature_test="int kq; |
100 struct kevent kev; | 105 struct kevent kev; |
101 struct timespec ts; | 106 struct timespec ts; |
102 | 107 |
124 ngx_feature="Darwin 64-bit kqueue millisecond timeout bug" | 129 ngx_feature="Darwin 64-bit kqueue millisecond timeout bug" |
125 ngx_feature_name=NGX_DARWIN_KEVENT_BUG | 130 ngx_feature_name=NGX_DARWIN_KEVENT_BUG |
126 ngx_feature_run=bug | 131 ngx_feature_run=bug |
127 ngx_feature_incs="#include <sys/event.h> | 132 ngx_feature_incs="#include <sys/event.h> |
128 #include <sys/time.h>" | 133 #include <sys/time.h>" |
134 ngx_feature_path= | |
129 ngx_feature_libs= | 135 ngx_feature_libs= |
130 ngx_feature_test="int kq; | 136 ngx_feature_test="int kq; |
131 struct kevent kev; | 137 struct kevent kev; |
132 struct timespec ts; | 138 struct timespec ts; |
133 struct timeval tv, tv0; | 139 struct timeval tv, tv0; |
172 | 178 |
173 ngx_feature="crypt()" | 179 ngx_feature="crypt()" |
174 ngx_feature_name= | 180 ngx_feature_name= |
175 ngx_feature_run=no | 181 ngx_feature_run=no |
176 ngx_feature_incs= | 182 ngx_feature_incs= |
183 ngx_feature_path= | |
177 ngx_feature_libs= | 184 ngx_feature_libs= |
178 ngx_feature_test="crypt(\"test\", \"salt\");" | 185 ngx_feature_test="crypt(\"test\", \"salt\");" |
179 . auto/feature | 186 . auto/feature |
180 | 187 |
181 | 188 |
182 if [ $ngx_found = no ]; then | 189 if [ $ngx_found = no ]; then |
183 | 190 |
184 ngx_feature="crypt() in libcrypt" | 191 ngx_feature="crypt() in libcrypt" |
192 ngx_feature_name= | |
193 ngx_feature_run=no | |
194 ngx_feature_incs= | |
195 ngx_feature_path= | |
185 ngx_feature_libs=-lcrypt | 196 ngx_feature_libs=-lcrypt |
186 . auto/feature | 197 . auto/feature |
187 | 198 |
188 if [ $ngx_found = yes ]; then | 199 if [ $ngx_found = yes ]; then |
189 CRYPT_LIB="-lcrypt" | 200 CRYPT_LIB="-lcrypt" |