diff options
-rw-r--r-- | ChangeLog | 9202 | ||||
-rw-r--r-- | config.h.in | 1755 | ||||
-rwxr-xr-x | configure | 37573 | ||||
-rw-r--r-- | moduli.0 | 74 | ||||
-rw-r--r-- | scp.0 | 168 | ||||
-rw-r--r-- | sftp-server.0 | 96 | ||||
-rw-r--r-- | sftp.0 | 386 | ||||
-rw-r--r-- | ssh-add.0 | 129 | ||||
-rw-r--r-- | ssh-agent.0 | 112 | ||||
-rw-r--r-- | ssh-keygen.0 | 570 | ||||
-rw-r--r-- | ssh-keyscan.0 | 111 | ||||
-rw-r--r-- | ssh-keysign.0 | 52 | ||||
-rw-r--r-- | ssh-pkcs11-helper.0 | 25 | ||||
-rw-r--r-- | ssh.0 | 971 | ||||
-rw-r--r-- | ssh_config.0 | 1090 | ||||
-rw-r--r-- | sshd.0 | 665 | ||||
-rw-r--r-- | sshd_config.0 | 1063 |
17 files changed, 54042 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 000000000..f66ca4b1e --- /dev/null +++ b/ChangeLog | |||
@@ -0,0 +1,9202 @@ | |||
1 | commit 99522ba7ec6963a05c04a156bf20e3ba3605987c | ||
2 | Author: Damien Miller <djm@mindrot.org> | ||
3 | Date: Thu Jul 28 08:54:27 2016 +1000 | ||
4 | |||
5 | define _OPENBSD_SOURCE for reallocarray on NetBSD | ||
6 | |||
7 | Report by and debugged with Hisashi T Fujinaka, dtucker nailed | ||
8 | the problem (lack of prototype causing return type confusion). | ||
9 | |||
10 | commit 3e1e076550c27c6bbdddf36d8f42bd79fbaaa187 | ||
11 | Author: Damien Miller <djm@mindrot.org> | ||
12 | Date: Wed Jul 27 08:25:42 2016 +1000 | ||
13 | |||
14 | KNF | ||
15 | |||
16 | commit d99ee9c4e5e217e7d05eeec84e9ce641f4675331 | ||
17 | Author: Damien Miller <djm@mindrot.org> | ||
18 | Date: Wed Jul 27 08:25:23 2016 +1000 | ||
19 | |||
20 | Linux auditing also needs packet.h | ||
21 | |||
22 | commit 393bd381a45884b589baa9aed4394f1d250255ca | ||
23 | Author: Damien Miller <djm@mindrot.org> | ||
24 | Date: Wed Jul 27 08:18:05 2016 +1000 | ||
25 | |||
26 | fix auditing on Linux | ||
27 | |||
28 | get_remote_ipaddr() was replaced with ssh_remote_ipaddr() | ||
29 | |||
30 | commit 80e766fb089de4f3c92b1600eb99e9495e37c992 | ||
31 | Author: Damien Miller <djm@mindrot.org> | ||
32 | Date: Sun Jul 24 21:50:13 2016 +1000 | ||
33 | |||
34 | crank version numbers | ||
35 | |||
36 | commit b1a478792d458f2e938a302e64bab2b520edc1b3 | ||
37 | Author: djm@openbsd.org <djm@openbsd.org> | ||
38 | Date: Sun Jul 24 11:45:36 2016 +0000 | ||
39 | |||
40 | upstream commit | ||
41 | |||
42 | openssh-7.3 | ||
43 | |||
44 | Upstream-ID: af106a7eb665f642648cf1993e162c899f358718 | ||
45 | |||
46 | commit 353766e0881f069aeca30275ab706cd60a1a8fdd | ||
47 | Author: Darren Tucker <dtucker@zip.com.au> | ||
48 | Date: Sat Jul 23 16:14:42 2016 +1000 | ||
49 | |||
50 | Move Cygwin IPPORT_RESERVED overrride to defines.h | ||
51 | |||
52 | Patch from vinschen at redhat.com. | ||
53 | |||
54 | commit 368dd977ae07afb93f4ecea23615128c95ab2b32 | ||
55 | Author: djm@openbsd.org <djm@openbsd.org> | ||
56 | Date: Sat Jul 23 02:54:08 2016 +0000 | ||
57 | |||
58 | upstream commit | ||
59 | |||
60 | fix pledge violation with ssh -f; reported by Valentin | ||
61 | Kozamernik ok dtucker@ | ||
62 | |||
63 | Upstream-ID: a61db7988db88d9dac3c4dd70e18876a8edf84aa | ||
64 | |||
65 | commit f00211e3c6d24d6ea2b64b4b1209f671f6c1d42e | ||
66 | Author: djm@openbsd.org <djm@openbsd.org> | ||
67 | Date: Fri Jul 22 07:00:46 2016 +0000 | ||
68 | |||
69 | upstream commit | ||
70 | |||
71 | improve wording; suggested by jmc@ | ||
72 | |||
73 | Upstream-ID: 55cb0a24c8e0618b3ceec80998dc82c85db2d2f8 | ||
74 | |||
75 | commit 83cbca693c3b0719270e6a0f2efe3f9ee93a65b8 | ||
76 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
77 | Date: Fri Jul 22 05:46:11 2016 +0000 | ||
78 | |||
79 | upstream commit | ||
80 | |||
81 | Lower loglevel for "Authenticated with partial success" | ||
82 | message similar to other similar level. bz#2599, patch from cgallek at | ||
83 | gmail.com, ok markus@ | ||
84 | |||
85 | Upstream-ID: 3faab814e947dc7b2e292edede23e94c608cb4dd | ||
86 | |||
87 | commit 10358abd087ab228b7ce2048efc4f3854a9ab9a6 | ||
88 | Author: Damien Miller <djm@mindrot.org> | ||
89 | Date: Fri Jul 22 14:06:36 2016 +1000 | ||
90 | |||
91 | retry waitpid on EINTR failure | ||
92 | |||
93 | patch from Jakub Jelen on bz#2581; ok dtucker@ | ||
94 | |||
95 | commit da88a70a89c800e74ea8e5661ffa127a3cc79a92 | ||
96 | Author: djm@openbsd.org <djm@openbsd.org> | ||
97 | Date: Fri Jul 22 03:47:36 2016 +0000 | ||
98 | |||
99 | upstream commit | ||
100 | |||
101 | constify a few functions' arguments; patch from Jakub | ||
102 | Jelen bz#2581 | ||
103 | |||
104 | Upstream-ID: f2043f51454ea37830ff6ad60c8b32b4220f448d | ||
105 | |||
106 | commit c36d91bd4ebf767f310f7cea88d61d1c15f53ddf | ||
107 | Author: djm@openbsd.org <djm@openbsd.org> | ||
108 | Date: Fri Jul 22 03:39:13 2016 +0000 | ||
109 | |||
110 | upstream commit | ||
111 | |||
112 | move debug("%p", key) to before key is free'd; probable | ||
113 | undefined behaviour on strict compilers; reported by Jakub Jelen bz#2581 | ||
114 | |||
115 | Upstream-ID: 767f323e1f5819508a0e35e388ec241bac2f953a | ||
116 | |||
117 | commit 286f5a77c3bfec1e8892ca268087ac885ac871bf | ||
118 | Author: djm@openbsd.org <djm@openbsd.org> | ||
119 | Date: Fri Jul 22 03:35:11 2016 +0000 | ||
120 | |||
121 | upstream commit | ||
122 | |||
123 | reverse the order in which -J/JumpHost proxies are visited to | ||
124 | be more intuitive and document | ||
125 | |||
126 | reported by and manpage bits naddy@ | ||
127 | |||
128 | Upstream-ID: 3a68fd6a841fd6cf8cedf6552a9607ba99df179a | ||
129 | |||
130 | commit fcd135c9df440bcd2d5870405ad3311743d78d97 | ||
131 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
132 | Date: Thu Jul 21 01:39:35 2016 +0000 | ||
133 | |||
134 | upstream commit | ||
135 | |||
136 | Skip passwords longer than 1k in length so clients can't | ||
137 | easily DoS sshd by sending very long passwords, causing it to spend CPU | ||
138 | hashing them. feedback djm@, ok markus@. | ||
139 | |||
140 | Brought to our attention by tomas.kuthan at oracle.com, shilei-c at | ||
141 | 360.cn and coredump at autistici.org | ||
142 | |||
143 | Upstream-ID: d0af7d4a2190b63ba1d38eec502bc4be0be9e333 | ||
144 | |||
145 | commit 324583e8fb3935690be58790425793df619c6d4d | ||
146 | Author: naddy@openbsd.org <naddy@openbsd.org> | ||
147 | Date: Wed Jul 20 10:45:27 2016 +0000 | ||
148 | |||
149 | upstream commit | ||
150 | |||
151 | Do not clobber the global jump_host variables when | ||
152 | parsing an inactive configuration. ok djm@ | ||
153 | |||
154 | Upstream-ID: 5362210944d91417d5976346d41ac0b244350d31 | ||
155 | |||
156 | commit 32d921c323b989d28405e78d0a8923d12913d737 | ||
157 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
158 | Date: Tue Jul 19 12:59:16 2016 +0000 | ||
159 | |||
160 | upstream commit | ||
161 | |||
162 | tweak previous; | ||
163 | |||
164 | Upstream-ID: f3c1a5b3f05dff366f60c028728a2b43f15ff534 | ||
165 | |||
166 | commit d7eabc86fa049a12ba2c3fb198bd1d51b37f7025 | ||
167 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
168 | Date: Tue Jul 19 11:38:53 2016 +0000 | ||
169 | |||
170 | upstream commit | ||
171 | |||
172 | Allow wildcard for PermitOpen hosts as well as ports. | ||
173 | bz#2582, patch from openssh at mzpqnxow.com and jjelen at redhat.com. ok | ||
174 | markus@ | ||
175 | |||
176 | Upstream-ID: af0294e9b9394c4e16e991424ca0a47a7cc605f2 | ||
177 | |||
178 | commit b98a2a8348e907b3d71caafd80f0be8fdd075943 | ||
179 | Author: markus@openbsd.org <markus@openbsd.org> | ||
180 | Date: Mon Jul 18 11:35:33 2016 +0000 | ||
181 | |||
182 | upstream commit | ||
183 | |||
184 | Reduce timing attack against obsolete CBC modes by always | ||
185 | computing the MAC over a fixed size of data. Reported by Jean Paul | ||
186 | Degabriele, Kenny Paterson, Torben Hansen and Martin Albrecht. ok djm@ | ||
187 | |||
188 | Upstream-ID: f20a13279b00ba0afbacbcc1f04e62e9d41c2912 | ||
189 | |||
190 | commit dbf788b4d9d9490a5fff08a7b09888272bb10fcc | ||
191 | Author: Darren Tucker <dtucker@zip.com.au> | ||
192 | Date: Thu Jul 21 14:17:31 2016 +1000 | ||
193 | |||
194 | Search users for one with a valid salt. | ||
195 | |||
196 | If the root account is locked (eg password "!!" or "*LK*") keep looking | ||
197 | until we find a user with a valid salt to use for crypting passwords of | ||
198 | invalid users. ok djm@ | ||
199 | |||
200 | commit e8b58f48fbb1b524fb4f0d4865fa0005d6a4b782 | ||
201 | Author: Darren Tucker <dtucker@zip.com.au> | ||
202 | Date: Mon Jul 18 17:22:49 2016 +1000 | ||
203 | |||
204 | Explicitly specify source files for regress tools. | ||
205 | |||
206 | Since adding $(REGRESSLIBS), $? is wrong because it includes only the | ||
207 | changed source files. $< seems like it'd be right however it doesn't | ||
208 | seem to work on some non-GNU makes, so do what works everywhere. | ||
209 | |||
210 | commit eac1bbd06872c273f16ac0f9976b0aef026b701b | ||
211 | Author: Darren Tucker <dtucker@zip.com.au> | ||
212 | Date: Mon Jul 18 17:12:22 2016 +1000 | ||
213 | |||
214 | Conditionally include err.h. | ||
215 | |||
216 | commit 0a454147568746c503f669e1ba861f76a2e7a585 | ||
217 | Author: Darren Tucker <dtucker@zip.com.au> | ||
218 | Date: Mon Jul 18 16:26:26 2016 +1000 | ||
219 | |||
220 | Remove local implementation of err, errx. | ||
221 | |||
222 | We now have a shared implementation in libopenbsd-compat. | ||
223 | |||
224 | commit eb999a4590846ba4d56ddc90bd07c23abfbab7b1 | ||
225 | Author: djm@openbsd.org <djm@openbsd.org> | ||
226 | Date: Mon Jul 18 06:08:01 2016 +0000 | ||
227 | |||
228 | upstream commit | ||
229 | |||
230 | Add some unsigned overflow checks for extra_pad. None of | ||
231 | these are reachable with the amount of padding that we use internally. | ||
232 | bz#2566, pointed out by Torben Hansen. ok markus@ | ||
233 | |||
234 | Upstream-ID: 4d4be8450ab2fc1b852d5884339f8e8c31c3fd76 | ||
235 | |||
236 | commit c71ba790c304545464bb494de974cdf0f4b5cf1e | ||
237 | Author: Darren Tucker <dtucker@zip.com.au> | ||
238 | Date: Mon Jul 18 15:43:25 2016 +1000 | ||
239 | |||
240 | Add dependency on libs for unit tests. | ||
241 | |||
242 | Makes "./configure && make tests" work again. ok djm@ | ||
243 | |||
244 | commit 8199d0311aea3e6fd0284c9025e7a83f4ece79e8 | ||
245 | Author: Darren Tucker <dtucker@zip.com.au> | ||
246 | Date: Mon Jul 18 13:47:39 2016 +1000 | ||
247 | |||
248 | Correct location for kexfuzz in clean target. | ||
249 | |||
250 | commit 01558b7b07af43da774d3a11a5c51fa9c310849d | ||
251 | Author: Darren Tucker <dtucker@zip.com.au> | ||
252 | Date: Mon Jul 18 09:33:25 2016 +1000 | ||
253 | |||
254 | Handle PAM_MAXTRIES from modules. | ||
255 | |||
256 | bz#2249: handle the case where PAM returns PAM_MAXTRIES by ceasing to offer | ||
257 | password and keyboard-interative authentication methods. Should prevent | ||
258 | "sshd ignoring max retries" warnings in the log. ok djm@ | ||
259 | |||
260 | It probably won't trigger with keyboard-interactive in the default | ||
261 | configuration because the retry counter is stored in module-private | ||
262 | storage which goes away with the sshd PAM process (see bz#688). On the | ||
263 | other hand, those cases probably won't log a warning either. | ||
264 | |||
265 | commit 65c6c6b567ab5ab12945a5ad8e0ab3a8c26119cc | ||
266 | Author: djm@openbsd.org <djm@openbsd.org> | ||
267 | Date: Sun Jul 17 04:20:16 2016 +0000 | ||
268 | |||
269 | upstream commit | ||
270 | |||
271 | support UTF-8 characters in ssh(1) banners using | ||
272 | schwarze@'s safe fmprintf printer; bz#2058 | ||
273 | |||
274 | feedback schwarze@ ok dtucker@ | ||
275 | |||
276 | Upstream-ID: a72ce4e3644c957643c9524eea2959e41b91eea7 | ||
277 | |||
278 | commit e4eb7d910976fbfc7ce3e90c95c11b07b483d0d7 | ||
279 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
280 | Date: Sat Jul 16 06:57:55 2016 +0000 | ||
281 | |||
282 | upstream commit | ||
283 | |||
284 | - add proxyjump to the options list - formatting fixes - | ||
285 | update usage() | ||
286 | |||
287 | ok djm | ||
288 | |||
289 | Upstream-ID: 43d318e14ce677a2eec8f21ef5ba2f9f68a59457 | ||
290 | |||
291 | commit af1f084857621f14bd9391aba8033d35886c2455 | ||
292 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
293 | Date: Fri Jul 15 05:01:58 2016 +0000 | ||
294 | |||
295 | upstream commit | ||
296 | |||
297 | Reduce the syslog level of some relatively common protocol | ||
298 | events from LOG_CRIT by replacing fatal() calls with logdie(). Part of | ||
299 | bz#2585, ok djm@ | ||
300 | |||
301 | Upstream-ID: 9005805227c94edf6ac02a160f0e199638d288e5 | ||
302 | |||
303 | commit bd5f2b78b69cf38d6049a0de445a79c8595e4a1f | ||
304 | Author: Damien Miller <djm@mindrot.org> | ||
305 | Date: Fri Jul 15 19:14:48 2016 +1000 | ||
306 | |||
307 | missing openssl/dh.h | ||
308 | |||
309 | commit 4a984fd342effe5f0aad874a0d538c4322d973c0 | ||
310 | Author: Damien Miller <djm@mindrot.org> | ||
311 | Date: Fri Jul 15 18:47:07 2016 +1000 | ||
312 | |||
313 | cast to avoid type warning in error message | ||
314 | |||
315 | commit 5abfb15ced985c340359ae7fb65a625ed3692b3e | ||
316 | Author: Darren Tucker <dtucker@zip.com.au> | ||
317 | Date: Fri Jul 15 14:48:30 2016 +1000 | ||
318 | |||
319 | Move VA_COPY macro into compat header. | ||
320 | |||
321 | Some AIX compilers unconditionally undefine va_copy but don't set it back | ||
322 | to an internal function, causing link errors. In some compat code we | ||
323 | already use VA_COPY instead so move the two existing instances into the | ||
324 | shared header and use for sshbuf-getput-basic.c too. Should fix building | ||
325 | with at lease some versions of AIX's compiler. bz#2589, ok djm@ | ||
326 | |||
327 | commit 832b7443b7a8e181c95898bc5d73497b7190decd | ||
328 | Author: Damien Miller <djm@mindrot.org> | ||
329 | Date: Fri Jul 15 14:45:34 2016 +1000 | ||
330 | |||
331 | disable ciphers not supported by OpenSSL | ||
332 | |||
333 | bz#2466 ok dtucker@ | ||
334 | |||
335 | commit 5fbe93fc6fbb2fe211e035703dec759d095e3dd8 | ||
336 | Author: Damien Miller <djm@mindrot.org> | ||
337 | Date: Fri Jul 15 13:54:31 2016 +1000 | ||
338 | |||
339 | add a --disable-pkcs11 knob | ||
340 | |||
341 | commit 679ce88ec2a8e2fe6515261c489e8c1449bb9da9 | ||
342 | Author: Damien Miller <djm@mindrot.org> | ||
343 | Date: Fri Jul 15 13:44:38 2016 +1000 | ||
344 | |||
345 | fix newline escaping for unsupported_algorithms | ||
346 | |||
347 | The hmac-ripemd160 was incorrect and could lead to broken | ||
348 | Makefiles on systems that lacked support for it, but I made | ||
349 | all the others consistent too. | ||
350 | |||
351 | commit ed877ef653847d056bb433975d731b7a1132a979 | ||
352 | Author: djm@openbsd.org <djm@openbsd.org> | ||
353 | Date: Fri Jul 15 00:24:30 2016 +0000 | ||
354 | |||
355 | upstream commit | ||
356 | |||
357 | Add a ProxyJump ssh_config(5) option and corresponding -J | ||
358 | ssh(1) command-line flag to allow simplified indirection through a SSH | ||
359 | bastion or "jump host". | ||
360 | |||
361 | These options construct a proxy command that connects to the | ||
362 | specified jump host(s) (more than one may be specified) and uses | ||
363 | port-forwarding to establish a connection to the next destination. | ||
364 | |||
365 | This codifies the safest way of indirecting connections through SSH | ||
366 | servers and makes it easy to use. | ||
367 | |||
368 | ok markus@ | ||
369 | |||
370 | Upstream-ID: fa899cb8b26d889da8f142eb9774c1ea36b04397 | ||
371 | |||
372 | commit 5c02dd126206a26785379e80f2d3848e4470b711 | ||
373 | Author: Darren Tucker <dtucker@zip.com.au> | ||
374 | Date: Fri Jul 15 12:56:39 2016 +1000 | ||
375 | |||
376 | Map umac_ctx struct name too. | ||
377 | |||
378 | Prevents size mismatch linker warnings on Solaris 11. | ||
379 | |||
380 | commit 283b97ff33ea2c641161950849931bd578de6946 | ||
381 | Author: Darren Tucker <dtucker@zip.com.au> | ||
382 | Date: Fri Jul 15 13:49:44 2016 +1000 | ||
383 | |||
384 | Mitigate timing of disallowed users PAM logins. | ||
385 | |||
386 | When sshd decides to not allow a login (eg PermitRootLogin=no) and | ||
387 | it's using PAM, it sends a fake password to PAM so that the timing for | ||
388 | the failure is not noticeably different whether or not the password | ||
389 | is correct. This behaviour can be detected by sending a very long | ||
390 | password string which is slower to hash than the fake password. | ||
391 | |||
392 | Mitigate by constructing an invalid password that is the same length | ||
393 | as the one from the client and thus takes the same time to hash. | ||
394 | Diff from djm@ | ||
395 | |||
396 | commit 9286875a73b2de7736b5e50692739d314cd8d9dc | ||
397 | Author: Darren Tucker <dtucker@zip.com.au> | ||
398 | Date: Fri Jul 15 13:32:45 2016 +1000 | ||
399 | |||
400 | Determine appropriate salt for invalid users. | ||
401 | |||
402 | When sshd is processing a non-PAM login for a non-existent user it uses | ||
403 | the string from the fakepw structure as the salt for crypt(3)ing the | ||
404 | password supplied by the client. That string has a Blowfish prefix, so on | ||
405 | systems that don't understand that crypt will fail fast due to an invalid | ||
406 | salt, and even on those that do it may have significantly different timing | ||
407 | from the hash methods used for real accounts (eg sha512). This allows | ||
408 | user enumeration by, eg, sending large password strings. This was noted | ||
409 | by EddieEzra.Harari at verint.com (CVE-2016-6210). | ||
410 | |||
411 | To mitigate, use the same hash algorithm that root uses for hashing | ||
412 | passwords for users that do not exist on the system. ok djm@ | ||
413 | |||
414 | commit a162dd5e58ca5b224d7500abe35e1ef32b5de071 | ||
415 | Author: Darren Tucker <dtucker@zip.com.au> | ||
416 | Date: Thu Jul 14 21:19:59 2016 +1000 | ||
417 | |||
418 | OpenSSL 1.1.x not currently supported. | ||
419 | |||
420 | commit 7df91b01fc558a33941c5c5f31abbcdc53a729fb | ||
421 | Author: Darren Tucker <dtucker@zip.com.au> | ||
422 | Date: Thu Jul 14 12:25:24 2016 +1000 | ||
423 | |||
424 | Check for VIS_ALL. | ||
425 | |||
426 | If we don't have it, set BROKEN_STRNVIS to activate the compat replacement. | ||
427 | |||
428 | commit ee67716f61f1042d5e67f91c23707cca5dcdd7d0 | ||
429 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
430 | Date: Thu Jul 14 01:24:21 2016 +0000 | ||
431 | |||
432 | upstream commit | ||
433 | |||
434 | Correct equal in test. | ||
435 | |||
436 | Upstream-Regress-ID: 4e32f7a5c57a619c4e8766cb193be2a1327ec37a | ||
437 | |||
438 | commit 372807c2065c8572fdc6478b25cc5ac363743073 | ||
439 | Author: tb@openbsd.org <tb@openbsd.org> | ||
440 | Date: Mon Jul 11 21:38:13 2016 +0000 | ||
441 | |||
442 | upstream commit | ||
443 | |||
444 | Add missing "recvfd" pledge promise: Raf Czlonka reported | ||
445 | ssh coredumps when Control* keywords were set in ssh_config. This patch also | ||
446 | fixes similar problems with scp and sftp. | ||
447 | |||
448 | ok deraadt, looks good to millert | ||
449 | |||
450 | Upstream-ID: ca2099eade1ef3e87a79614fefa26a0297ad8a3b | ||
451 | |||
452 | commit e0453f3df64bf485c61c7eb6bd12893eee9fe2cd | ||
453 | Author: tedu@openbsd.org <tedu@openbsd.org> | ||
454 | Date: Mon Jul 11 03:19:44 2016 +0000 | ||
455 | |||
456 | upstream commit | ||
457 | |||
458 | obsolete note about fascistloggin is obsolete. ok djm | ||
459 | dtucker | ||
460 | |||
461 | Upstream-ID: dae60df23b2bb0e89f42661ddd96a7b0d1b7215a | ||
462 | |||
463 | commit a2333584170a565adf4f209586772ef8053b10b8 | ||
464 | Author: Darren Tucker <dtucker@zip.com.au> | ||
465 | Date: Thu Jul 14 10:59:09 2016 +1000 | ||
466 | |||
467 | Add compat code for missing wcwidth. | ||
468 | |||
469 | If we don't have wcwidth force fallback implementations of nl_langinfo | ||
470 | and mbtowc. Based on advice from Ingo Schwarze. | ||
471 | |||
472 | commit 8aaec7050614494014c47510b7e94daf6e644c62 | ||
473 | Author: Damien Miller <djm@mindrot.org> | ||
474 | Date: Thu Jul 14 09:48:48 2016 +1000 | ||
475 | |||
476 | fix missing include for systems with err.h | ||
477 | |||
478 | commit 6310ef27a2567cda66d6cf0c1ad290ee1167f243 | ||
479 | Author: Darren Tucker <dtucker@zip.com.au> | ||
480 | Date: Wed Jul 13 14:42:35 2016 +1000 | ||
481 | |||
482 | Move err.h replacements into compat lib. | ||
483 | |||
484 | Move implementations of err.h replacement functions into their own file | ||
485 | in the libopenbsd-compat so we can use them in kexfuzz.c too. ok djm@ | ||
486 | |||
487 | commit f3f2cc8386868f51440c45210098f65f9787449a | ||
488 | Author: Darren Tucker <dtucker@zip.com.au> | ||
489 | Date: Mon Jul 11 17:23:38 2016 +1000 | ||
490 | |||
491 | Check for wchar.h and langinfo.h | ||
492 | |||
493 | Wrap includes in the appropriate #ifdefs. | ||
494 | |||
495 | commit b9c50614eba9d90939b2b119b6e1b7e03b462278 | ||
496 | Author: Damien Miller <djm@mindrot.org> | ||
497 | Date: Fri Jul 8 13:59:13 2016 +1000 | ||
498 | |||
499 | whitelist more architectures for seccomp-bpf | ||
500 | |||
501 | bz#2590 - testing and patch from Jakub Jelen | ||
502 | |||
503 | commit 18813a32b6fd964037e0f5e1893cb4468ac6a758 | ||
504 | Author: guenther@openbsd.org <guenther@openbsd.org> | ||
505 | Date: Mon Jul 4 18:01:44 2016 +0000 | ||
506 | |||
507 | upstream commit | ||
508 | |||
509 | DEBUGLIBS has been broken since the gcc4 switch, so delete | ||
510 | it. CFLAGS contains -g by default anyway | ||
511 | |||
512 | problem noted by Edgar Pettijohn (edgar (at) pettijohn-web.com) | ||
513 | ok millert@ kettenis@ deraadt@ | ||
514 | |||
515 | Upstream-Regress-ID: 4a0bb72f95c63f2ae9daa8a040ac23914bddb542 | ||
516 | |||
517 | commit 6d31193d0baa3da339c196ac49625b7ba1c2ecc7 | ||
518 | Author: djm@openbsd.org <djm@openbsd.org> | ||
519 | Date: Fri Jul 8 03:44:42 2016 +0000 | ||
520 | |||
521 | upstream commit | ||
522 | |||
523 | Improve crypto ordering for Encrypt-then-MAC (EtM) mode | ||
524 | MAC algorithms. | ||
525 | |||
526 | Previously we were computing the MAC, decrypting the packet and then | ||
527 | checking the MAC. This gave rise to the possibility of creating a | ||
528 | side-channel oracle in the decryption step, though no such oracle has | ||
529 | been identified. | ||
530 | |||
531 | This adds a mac_check() function that computes and checks the MAC in | ||
532 | one pass, and uses it to advance MAC checking for EtM algorithms to | ||
533 | before payload decryption. | ||
534 | |||
535 | Reported by Jean Paul Degabriele, Kenny Paterson, Torben Hansen and | ||
536 | Martin Albrecht. feedback and ok markus@ | ||
537 | |||
538 | Upstream-ID: 1999bb67cab47dda5b10b80d8155fe83d4a1867b | ||
539 | |||
540 | commit 71f5598f06941f645a451948c4a5125c83828e1c | ||
541 | Author: guenther@openbsd.org <guenther@openbsd.org> | ||
542 | Date: Mon Jul 4 18:01:44 2016 +0000 | ||
543 | |||
544 | upstream commit | ||
545 | |||
546 | DEBUGLIBS has been broken since the gcc4 switch, so | ||
547 | delete it. CFLAGS contains -g by default anyway | ||
548 | |||
549 | problem noted by Edgar Pettijohn (edgar (at) pettijohn-web.com) | ||
550 | ok millert@ kettenis@ deraadt@ | ||
551 | |||
552 | Upstream-ID: 96c5054e3e1f170c6276902d5bc65bb3b87a2603 | ||
553 | |||
554 | commit e683fc6f1c8c7295648dbda679df8307786ec1ce | ||
555 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
556 | Date: Thu Jun 30 05:17:05 2016 +0000 | ||
557 | |||
558 | upstream commit | ||
559 | |||
560 | Explicitly check for 100% completion to avoid potential | ||
561 | floating point rounding error, which could cause progressmeter to report 99% | ||
562 | on completion. While there invert the test so the 100% case is clearer. with | ||
563 | & ok djm@ | ||
564 | |||
565 | Upstream-ID: a166870c5878e422f3c71ff802e2ccd7032f715d | ||
566 | |||
567 | commit 772e6cec0ed740fc7db618dc30b4134f5a358b43 | ||
568 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
569 | Date: Wed Jun 29 17:14:28 2016 +0000 | ||
570 | |||
571 | upstream commit | ||
572 | |||
573 | sort the -o list; | ||
574 | |||
575 | Upstream-ID: 1a97465ede8790b4d47cb618269978e07f41f8ac | ||
576 | |||
577 | commit 46ecd19e554ccca15a7309cd1b6b44bc8e6b84af | ||
578 | Author: djm@openbsd.org <djm@openbsd.org> | ||
579 | Date: Thu Jun 23 05:17:51 2016 +0000 | ||
580 | |||
581 | upstream commit | ||
582 | |||
583 | fix AuthenticationMethods during configuration re-parse; | ||
584 | reported by Juan Francisco Cantero Hurtado | ||
585 | |||
586 | Upstream-ID: 8ffa1dac25c7577eca8238e825317ab20848f9b4 | ||
587 | |||
588 | commit 3147e7595d0f2f842a666c844ac53e6c7a253d7e | ||
589 | Author: djm@openbsd.org <djm@openbsd.org> | ||
590 | Date: Sun Jun 19 07:48:02 2016 +0000 | ||
591 | |||
592 | upstream commit | ||
593 | |||
594 | revert 1.34; causes problems loading public keys | ||
595 | |||
596 | reported by semarie@ | ||
597 | |||
598 | Upstream-ID: b393794f8935c8b15d98a407fe7721c62d2ed179 | ||
599 | |||
600 | commit ad23a75509f4320d43f628c50f0817e3ad12bfa7 | ||
601 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
602 | Date: Fri Jun 17 06:33:30 2016 +0000 | ||
603 | |||
604 | upstream commit | ||
605 | |||
606 | grammar fix; | ||
607 | |||
608 | Upstream-ID: 5d5b21c80f1e81db367333ce0bb3e5874fb3e463 | ||
609 | |||
610 | commit 5e28b1a2a3757548b40018cc2493540a17c82e27 | ||
611 | Author: djm@openbsd.org <djm@openbsd.org> | ||
612 | Date: Fri Jun 17 05:06:23 2016 +0000 | ||
613 | |||
614 | upstream commit | ||
615 | |||
616 | translate OpenSSL error codes to something more | ||
617 | meaninful; bz#2522 reported by Jakub Jelen, ok dtucker@ | ||
618 | |||
619 | Upstream-ID: 4cb0795a366381724314e6515d57790c5930ffe5 | ||
620 | |||
621 | commit b64faeb5eda7eff8210c754d00464f9fe9d23de5 | ||
622 | Author: djm@openbsd.org <djm@openbsd.org> | ||
623 | Date: Fri Jun 17 05:03:40 2016 +0000 | ||
624 | |||
625 | upstream commit | ||
626 | |||
627 | ban AuthenticationMethods="" and accept | ||
628 | AuthenticationMethods=any for the default behaviour of not requiring multiple | ||
629 | authentication | ||
630 | |||
631 | bz#2398 from Jakub Jelen; ok dtucker@ | ||
632 | |||
633 | Upstream-ID: fabd7f44d59e4518d241d0d01e226435cc23cf27 | ||
634 | |||
635 | commit 9816fc5daee5ca924dd5c4781825afbaab728877 | ||
636 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
637 | Date: Thu Jun 16 11:00:17 2016 +0000 | ||
638 | |||
639 | upstream commit | ||
640 | |||
641 | Include stdarg.h for va_copy as per man page. | ||
642 | |||
643 | Upstream-ID: 105d6b2f1af2fbd9d91c893c436ab121434470bd | ||
644 | |||
645 | commit b6cf84b51bc0f5889db48bf29a0c771954ade283 | ||
646 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
647 | Date: Thu Jun 16 06:10:45 2016 +0000 | ||
648 | |||
649 | upstream commit | ||
650 | |||
651 | keys stored in openssh format can have comments too; diff | ||
652 | from yonas yanfa, tweaked a bit; | ||
653 | |||
654 | ok djm | ||
655 | |||
656 | Upstream-ID: 03d48536da6e51510d73ade6fcd44ace731ceb27 | ||
657 | |||
658 | commit aa37768f17d01974b6bfa481e5e83841b6c76f86 | ||
659 | Author: Darren Tucker <dtucker@zip.com.au> | ||
660 | Date: Mon Jun 20 15:55:34 2016 +1000 | ||
661 | |||
662 | get_remote_name_or_ip inside LOGIN_NEEDS_UTMPX | ||
663 | |||
664 | Apply the same get_remote_name_or_ip -> session_get_remote_name_or_ip | ||
665 | change as commit 95767262 to the code inside #ifdef LOGIN_NEEDS_UTMPX. | ||
666 | Fixes build on AIX. | ||
667 | |||
668 | commit 009891afc8df37bc2101e15d1e0b6433cfb90549 | ||
669 | Author: Darren Tucker <dtucker@zip.com.au> | ||
670 | Date: Fri Jun 17 14:34:09 2016 +1000 | ||
671 | |||
672 | Remove duplicate code from PAM. ok djm@ | ||
673 | |||
674 | commit e690fe85750e93fca1fb7c7c8587d4130a4f7aba | ||
675 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
676 | Date: Wed Jun 15 00:40:40 2016 +0000 | ||
677 | |||
678 | upstream commit | ||
679 | |||
680 | Remove "POSSIBLE BREAK-IN ATTEMPT!" from log message | ||
681 | about forward and reverse DNS not matching. We haven't supported IP-based | ||
682 | auth methods for a very long time so it's now misleading. part of bz#2585, | ||
683 | ok markus@ | ||
684 | |||
685 | Upstream-ID: 5565ef0ee0599b27f0bd1d3bb1f8a323d8274e29 | ||
686 | |||
687 | commit 57b4ee04cad0d3e0fec1194753b0c4d31e39a1cd | ||
688 | Author: Darren Tucker <dtucker@zip.com.au> | ||
689 | Date: Wed Jun 15 11:22:38 2016 +1000 | ||
690 | |||
691 | Move platform_disable_tracing into its own file. | ||
692 | |||
693 | Prevents link errors resolving the extern "options" when platform.o | ||
694 | gets linked into ssh-agent when building --with-pam. | ||
695 | |||
696 | commit 78dc8e3724e30ee3e1983ce013e80277dc6ca070 | ||
697 | Author: Darren Tucker <dtucker@zip.com.au> | ||
698 | Date: Tue Jun 14 13:55:12 2016 +1000 | ||
699 | |||
700 | Track skipped upstream commit IDs. | ||
701 | |||
702 | There are a small number of "upstream" commits that do not correspond to | ||
703 | a file in -portable. This file tracks those so that we can reconcile | ||
704 | OpenBSD and Portable to ensure that no commits are accidentally missed. | ||
705 | |||
706 | If you add something to .skipped-commit-ids please also add an upstream | ||
707 | ID line in the following format when you commit it. | ||
708 | |||
709 | Upstream-ID: 321065a95a7ccebdd5fd08482a1e19afbf524e35 | ||
710 | Upstream-ID: d4f699a421504df35254cf1c6f1a7c304fb907ca | ||
711 | Upstream-ID: aafe246655b53b52bc32c8a24002bc262f4230f7 | ||
712 | Upstream-ID: 8fa9cd1dee3c3339ae329cf20fb591db6d605120 | ||
713 | Upstream-ID: f31327a48dd4103333cc53315ec53fe65ed8a17a | ||
714 | Upstream-ID: edbfde98c40007b7752a4ac106095e060c25c1ef | ||
715 | Upstream-ID: 052fd565e3ff2d8cec3bc957d1788f50c827f8e2 | ||
716 | Upstream-ID: 7cf73737f357492776223da1c09179fa6ba74660 | ||
717 | Upstream-ID: 180d84674be1344e45a63990d60349988187c1ae | ||
718 | Upstream-ID: f6ae971186ba68d066cd102e57d5b0b2c211a5ee | ||
719 | |||
720 | commit 9f919d1a3219d476d6a662d18df058e1c4f36a6f | ||
721 | Author: Darren Tucker <dtucker@zip.com.au> | ||
722 | Date: Tue Jun 14 13:51:01 2016 +1000 | ||
723 | |||
724 | Remove now-defunct .cvsignore files. ok djm | ||
725 | |||
726 | commit 68777faf271efb2713960605c748f6c8a4b26d55 | ||
727 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
728 | Date: Wed Jun 8 02:13:01 2016 +0000 | ||
729 | |||
730 | upstream commit | ||
731 | |||
732 | Back out rev 1.28 "Check min and max sizes sent by the | ||
733 | client" change. It caused "key_verify failed for server_host_key" in clients | ||
734 | that send a DH-GEX min value less that DH_GRP_MIN, eg old OpenSSH and PuTTY. | ||
735 | ok djm@ | ||
736 | |||
737 | Upstream-ID: 452979d3ca5c1e9dff063287ea0a5314dd091f65 | ||
738 | |||
739 | commit a86ec4d0737ac5879223e7cd9d68c448df46e169 | ||
740 | Author: Darren Tucker <dtucker@zip.com.au> | ||
741 | Date: Tue Jun 14 10:48:27 2016 +1000 | ||
742 | |||
743 | Use Solaris setpflags(__PROC_PROTECT, ...). | ||
744 | |||
745 | Where possible, use Solaris setpflags to disable process tracing on | ||
746 | ssh-agent and sftp-server. bz#2584, based on a patch from huieying.lee | ||
747 | at oracle.com, ok djm. | ||
748 | |||
749 | commit 0f916d39b039fdc0b5baf9b5ab0754c0f11ec573 | ||
750 | Author: Darren Tucker <dtucker@zip.com.au> | ||
751 | Date: Tue Jun 14 10:43:53 2016 +1000 | ||
752 | |||
753 | Shorten prctl code a tiny bit. | ||
754 | |||
755 | commit 0fb7f5985351fbbcd2613d8485482c538e5123be | ||
756 | Author: Darren Tucker <dtucker@zip.com.au> | ||
757 | Date: Thu Jun 9 16:23:07 2016 +1000 | ||
758 | |||
759 | Move prctl PR_SET_DUMPABLE into platform.c. | ||
760 | |||
761 | This should make it easier to add additional platform support such as | ||
762 | Solaris (bz#2584). | ||
763 | |||
764 | commit e6508898c3cd838324ecfe1abd0eb8cf802e7106 | ||
765 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
766 | Date: Fri Jun 3 04:10:41 2016 +0000 | ||
767 | |||
768 | upstream commit | ||
769 | |||
770 | Add a test for ssh(1)'s config file parsing. | ||
771 | |||
772 | Upstream-Regress-ID: 558b7f4dc45cc3761cc3d3e889b9f3c5bc91e601 | ||
773 | |||
774 | commit ab0a536066dfa32def0bd7272c096ebb5eb25b11 | ||
775 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
776 | Date: Fri Jun 3 03:47:59 2016 +0000 | ||
777 | |||
778 | upstream commit | ||
779 | |||
780 | Add 'sshd' to the test ID as I'm about to add a similar | ||
781 | set for ssh. | ||
782 | |||
783 | Upstream-Regress-ID: aea7a9c3bac638530165c801ce836875b228ae7a | ||
784 | |||
785 | commit a5577c1ed3ecdfe4b7b1107c526cae886fc91afb | ||
786 | Author: schwarze@openbsd.org <schwarze@openbsd.org> | ||
787 | Date: Mon May 30 12:14:08 2016 +0000 | ||
788 | |||
789 | upstream commit | ||
790 | |||
791 | stricter malloc.conf(5) options for utf8 tests | ||
792 | |||
793 | Upstream-Regress-ID: 111efe20a0fb692fa1a987f6e823310f9b25abf6 | ||
794 | |||
795 | commit 75f0844b4f29d62ec3a5e166d2ee94b02df819fc | ||
796 | Author: schwarze@openbsd.org <schwarze@openbsd.org> | ||
797 | Date: Mon May 30 12:05:56 2016 +0000 | ||
798 | |||
799 | upstream commit | ||
800 | |||
801 | Fix two rare edge cases: 1. If vasprintf() returns < 0, | ||
802 | do not access a NULL pointer in snmprintf(), and do not free() the pointer | ||
803 | returned from vasprintf() because on some systems other than OpenBSD, it | ||
804 | might be a bogus pointer. 2. If vasprintf() returns == 0, return 0 and "" | ||
805 | rather than -1 and NULL. | ||
806 | |||
807 | Besides, free(dst) is pointless after failure (not a bug). | ||
808 | |||
809 | One half OK martijn@, the other half OK deraadt@; | ||
810 | committing quickly before people get hurt. | ||
811 | |||
812 | Upstream-Regress-ID: b164f20923812c9bac69856dbc1385eb1522cba4 | ||
813 | |||
814 | commit 016881eb33a7948028848c90f4c7ac42e3af0e87 | ||
815 | Author: schwarze@openbsd.org <schwarze@openbsd.org> | ||
816 | Date: Thu May 26 19:14:25 2016 +0000 | ||
817 | |||
818 | upstream commit | ||
819 | |||
820 | test the new utf8 module | ||
821 | |||
822 | Upstream-Regress-ID: c923d05a20e84e4ef152cbec947fdc4ce6eabbe3 | ||
823 | |||
824 | commit d4219028bdef448e089376f3afe81ef6079da264 | ||
825 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
826 | Date: Tue May 3 15:30:46 2016 +0000 | ||
827 | |||
828 | upstream commit | ||
829 | |||
830 | Set umask to prevent "Bad owner or permissions" errors. | ||
831 | |||
832 | Upstream-Regress-ID: 8fdf2fc4eb595ccd80c443f474d639f851145417 | ||
833 | |||
834 | commit 07d5608bb237e9b3fe86a2aeaa429392230faebf | ||
835 | Author: djm@openbsd.org <djm@openbsd.org> | ||
836 | Date: Tue May 3 14:41:04 2016 +0000 | ||
837 | |||
838 | upstream commit | ||
839 | |||
840 | support doas | ||
841 | |||
842 | Upstream-Regress-ID: 8d5572b27ea810394eeda432d8b4e9e1064a7c38 | ||
843 | |||
844 | commit 01cabf10adc7676cba5f40536a34d3b246edb73f | ||
845 | Author: djm@openbsd.org <djm@openbsd.org> | ||
846 | Date: Tue May 3 13:48:33 2016 +0000 | ||
847 | |||
848 | upstream commit | ||
849 | |||
850 | unit tests for sshbuf_dup_string() | ||
851 | |||
852 | Upstream-Regress-ID: 7521ff150dc7f20511d1c2c48fd3318e5850a96d | ||
853 | |||
854 | commit 6915f1698e3d1dd4e22eac20f435e1dfc1d46372 | ||
855 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
856 | Date: Fri Jun 3 06:44:12 2016 +0000 | ||
857 | |||
858 | upstream commit | ||
859 | |||
860 | tweak previous; | ||
861 | |||
862 | Upstream-ID: 92979f1a0b63e041a0e5b08c9ed0ba9b683a3698 | ||
863 | |||
864 | commit 0cb2f4c2494b115d0f346ed2d8b603ab3ba643f4 | ||
865 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
866 | Date: Fri Jun 3 04:09:38 2016 +0000 | ||
867 | |||
868 | upstream commit | ||
869 | |||
870 | Allow ExitOnForwardFailure and ClearAllForwardings to be | ||
871 | overridden when using ssh -W (but still default to yes in that case). | ||
872 | bz#2577, ok djm@. | ||
873 | |||
874 | Upstream-ID: 4b20c419e93ca11a861c81c284090cfabc8c54d4 | ||
875 | |||
876 | commit 8543ff3f5020fe659839b15f05b8c522bde6cee5 | ||
877 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
878 | Date: Fri Jun 3 03:14:41 2016 +0000 | ||
879 | |||
880 | upstream commit | ||
881 | |||
882 | Move the host and port used by ssh -W into the Options | ||
883 | struct. This will make future changes a bit easier. ok djm@ | ||
884 | |||
885 | Upstream-ID: 151bce5ecab2fbedf0d836250a27968d30389382 | ||
886 | |||
887 | commit 6b87311d3acdc460f926b2c40f4c4f3fd345f368 | ||
888 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
889 | Date: Wed Jun 1 04:19:49 2016 +0000 | ||
890 | |||
891 | upstream commit | ||
892 | |||
893 | Check min and max sizes sent by the client against what | ||
894 | we support before passing them to the monitor. ok djm@ | ||
895 | |||
896 | Upstream-ID: 750627e8117084215412bff00a25b1586ab17ece | ||
897 | |||
898 | commit 564cd2a8926ccb1dca43a535073540935b5e0373 | ||
899 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
900 | Date: Tue May 31 23:46:14 2016 +0000 | ||
901 | |||
902 | upstream commit | ||
903 | |||
904 | Ensure that the client's proposed DH-GEX max value is at | ||
905 | least as big as the minimum the server will accept. ok djm@ | ||
906 | |||
907 | Upstream-ID: b4b84fa04aab2de7e79a6fee4a6e1c189c0fe775 | ||
908 | |||
909 | commit df820722e40309c9b3f360ea4ed47a584ed74333 | ||
910 | Author: Darren Tucker <dtucker@zip.com.au> | ||
911 | Date: Mon Jun 6 11:36:13 2016 +1000 | ||
912 | |||
913 | Add compat bits to utf8.c. | ||
914 | |||
915 | commit 05c6574652571becfe9d924226c967a3f4b3f879 | ||
916 | Author: Darren Tucker <dtucker@zip.com.au> | ||
917 | Date: Mon Jun 6 11:33:43 2016 +1000 | ||
918 | |||
919 | Fix utf->utf8 typo. | ||
920 | |||
921 | commit 6c1717190b4d5ddd729cd9e24e8ed71ed4f087ce | ||
922 | Author: schwarze@openbsd.org <schwarze@openbsd.org> | ||
923 | Date: Mon May 30 18:34:41 2016 +0000 | ||
924 | |||
925 | upstream commit | ||
926 | |||
927 | Backout rev. 1.43 for now. | ||
928 | |||
929 | The function update_progress_meter() calls refresh_progress_meter() | ||
930 | which calls snmprintf() which calls malloc(); but update_progress_meter() | ||
931 | acts as the SIGALRM signal handler. | ||
932 | |||
933 | "malloc(): error: recursive call" reported by sobrado@. | ||
934 | |||
935 | Upstream-ID: aaae57989431e5239c101f8310f74ccc83aeb93e | ||
936 | |||
937 | commit cd9e1eabeb4137182200035ab6fa4522f8d24044 | ||
938 | Author: schwarze@openbsd.org <schwarze@openbsd.org> | ||
939 | Date: Mon May 30 12:57:21 2016 +0000 | ||
940 | |||
941 | upstream commit | ||
942 | |||
943 | Even when only writing an unescaped character, the dst | ||
944 | buffer may need to grow, or it would be overrun; issue found by tb@ with | ||
945 | malloc.conf(5) 'C'. | ||
946 | |||
947 | While here, reserve an additional byte for the terminating NUL | ||
948 | up front such that we don't have to realloc() later just for that. | ||
949 | |||
950 | OK tb@ | ||
951 | |||
952 | Upstream-ID: 30ebcc0c097c4571b16f0a78b44969f170db0cff | ||
953 | |||
954 | commit ac284a355f8065eaef2a16f446f3c44cdd17371d | ||
955 | Author: schwarze@openbsd.org <schwarze@openbsd.org> | ||
956 | Date: Mon May 30 12:05:56 2016 +0000 | ||
957 | |||
958 | upstream commit | ||
959 | |||
960 | Fix two rare edge cases: 1. If vasprintf() returns < 0, | ||
961 | do not access a NULL pointer in snmprintf(), and do not free() the pointer | ||
962 | returned from vasprintf() because on some systems other than OpenBSD, it | ||
963 | might be a bogus pointer. 2. If vasprintf() returns == 0, return 0 and "" | ||
964 | rather than -1 and NULL. | ||
965 | |||
966 | Besides, free(dst) is pointless after failure (not a bug). | ||
967 | |||
968 | One half OK martijn@, the other half OK deraadt@; | ||
969 | committing quickly before people get hurt. | ||
970 | |||
971 | Upstream-ID: b7bcd2e82fc168a8eff94e41f5db336ed986fed0 | ||
972 | |||
973 | commit 0e059cdf5fd86297546c63fa8607c24059118832 | ||
974 | Author: schwarze@openbsd.org <schwarze@openbsd.org> | ||
975 | Date: Wed May 25 23:48:45 2016 +0000 | ||
976 | |||
977 | upstream commit | ||
978 | |||
979 | To prevent screwing up terminal settings when printing to | ||
980 | the terminal, for ASCII and UTF-8, escape bytes not forming characters and | ||
981 | bytes forming non-printable characters with vis(3) VIS_OCTAL. For other | ||
982 | character sets, abort printing of the current string in these cases. In | ||
983 | particular, * let scp(1) respect the local user's LC_CTYPE locale(1); * | ||
984 | sanitize data received from the remote host; * sanitize filenames, usernames, | ||
985 | and similar data even locally; * take character display widths into account | ||
986 | for the progressmeter. | ||
987 | |||
988 | This is believed to be sufficient to keep the local terminal safe | ||
989 | on OpenBSD, but bad things can still happen on other systems with | ||
990 | state-dependent locales because many places in the code print | ||
991 | unencoded ASCII characters into the output stream. | ||
992 | |||
993 | Using feedback from djm@ and martijn@, | ||
994 | various aspects discussed with many others. | ||
995 | |||
996 | deraadt@ says it should go in now, i probably already hesitated too long | ||
997 | |||
998 | Upstream-ID: e66afbc94ee396ddcaffd433b9a3b80f387647e0 | ||
999 | |||
1000 | commit 8c02e3639acefe1e447e293dbe23a0917abd3734 | ||
1001 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
1002 | Date: Tue May 24 04:43:45 2016 +0000 | ||
1003 | |||
1004 | upstream commit | ||
1005 | |||
1006 | KNF compression proposal and simplify the client side a | ||
1007 | little. ok djm@ | ||
1008 | |||
1009 | Upstream-ID: aa814b694efe9e5af8a26e4c80a05526ae6d6605 | ||
1010 | |||
1011 | commit 7ec4946fb686813eb5f8c57397e465f5485159f4 | ||
1012 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
1013 | Date: Tue May 24 02:31:57 2016 +0000 | ||
1014 | |||
1015 | upstream commit | ||
1016 | |||
1017 | Back out 'plug memleak'. | ||
1018 | |||
1019 | Upstream-ID: 4faacdde136c24a961e24538de373660f869dbc0 | ||
1020 | |||
1021 | commit 82f24c3ddc52053aeb7beb3332fa94c92014b0c5 | ||
1022 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1023 | Date: Mon May 23 23:30:50 2016 +0000 | ||
1024 | |||
1025 | upstream commit | ||
1026 | |||
1027 | prefer agent-hosted keys to keys from PKCS#11; ok markus | ||
1028 | |||
1029 | Upstream-ID: 7417f7653d58d6306d9f8c08d0263d050e2fd8f4 | ||
1030 | |||
1031 | commit a0cb7778fbc9b43458f7072eb68dd858766384d1 | ||
1032 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
1033 | Date: Mon May 23 00:17:27 2016 +0000 | ||
1034 | |||
1035 | upstream commit | ||
1036 | |||
1037 | Plug mem leak in filter_proposal. ok djm@ | ||
1038 | |||
1039 | Upstream-ID: bf968da7cfcea2a41902832e7d548356a4e2af34 | ||
1040 | |||
1041 | commit ae9c0d4d5c581b3040d1f16b5c5f4b1cd1616743 | ||
1042 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1043 | Date: Fri Jun 3 16:03:44 2016 +1000 | ||
1044 | |||
1045 | Update vis.h and vis.c from OpenBSD. | ||
1046 | |||
1047 | This will be needed for the upcoming utf8 changes. | ||
1048 | |||
1049 | commit e1d93705f8f48f519433d6ca9fc3d0abe92a1b77 | ||
1050 | Author: Tim Rice <tim@multitalents.net> | ||
1051 | Date: Tue May 31 11:13:22 2016 -0700 | ||
1052 | |||
1053 | modified: configure.ac | ||
1054 | whitspace clean up. No code changes. | ||
1055 | |||
1056 | commit 604a037d84e41e31f0aec9075df0b8740c130200 | ||
1057 | Author: Damien Miller <djm@mindrot.org> | ||
1058 | Date: Tue May 31 16:45:28 2016 +1000 | ||
1059 | |||
1060 | whitespace at EOL | ||
1061 | |||
1062 | commit 18424200160ff5c923113e0a37ebe21ab7bcd17c | ||
1063 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1064 | Date: Mon May 30 19:35:28 2016 +1000 | ||
1065 | |||
1066 | Add missing ssh-host-config --name option | ||
1067 | |||
1068 | Patch from vinschen@redhat.com. | ||
1069 | |||
1070 | commit 39c0cecaa188a37a2e134795caa68e03f3ced592 | ||
1071 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1072 | Date: Fri May 20 10:01:58 2016 +1000 | ||
1073 | |||
1074 | Fix comment about sshpam_const and AIX. | ||
1075 | |||
1076 | From mschwager via github. | ||
1077 | |||
1078 | commit f64062b1f74ad5ee20a8a49aab2732efd0f7ce30 | ||
1079 | Author: Damien Miller <djm@mindrot.org> | ||
1080 | Date: Fri May 20 09:56:53 2016 +1000 | ||
1081 | |||
1082 | Deny lstat syscalls in seccomp sandbox | ||
1083 | |||
1084 | Avoids sandbox violations for some krb/gssapi libraries. | ||
1085 | |||
1086 | commit 531c135409b8d8810795b1f3692a4ebfd5c9cae0 | ||
1087 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1088 | Date: Thu May 19 07:45:32 2016 +0000 | ||
1089 | |||
1090 | upstream commit | ||
1091 | |||
1092 | fix type of ed25519 values | ||
1093 | |||
1094 | Upstream-ID: b32d0cb372bbe918ca2de56906901eae225a59b0 | ||
1095 | |||
1096 | commit 75e21688f523799c9e0cc6601d76a9c5ca79f787 | ||
1097 | Author: markus@openbsd.org <markus@openbsd.org> | ||
1098 | Date: Wed May 4 14:32:26 2016 +0000 | ||
1099 | |||
1100 | upstream commit | ||
1101 | |||
1102 | add IdentityAgent; noticed & ok jmc@ | ||
1103 | |||
1104 | Upstream-ID: 4ba9034b00a4cf1beae627f0728da897802df88a | ||
1105 | |||
1106 | commit 1a75d14daf4b60db903e6103cf50e74e0cd0a76b | ||
1107 | Author: markus@openbsd.org <markus@openbsd.org> | ||
1108 | Date: Wed May 4 14:29:58 2016 +0000 | ||
1109 | |||
1110 | upstream commit | ||
1111 | |||
1112 | allow setting IdentityAgent to SSH_AUTH_SOCK; ok djm@ | ||
1113 | |||
1114 | Upstream-ID: 20c508480d8db3eef18942c0fc39b1fcf25652ac | ||
1115 | |||
1116 | commit 0516454151ae722fc8256c3c56115c6baf24c5b0 | ||
1117 | Author: markus@openbsd.org <markus@openbsd.org> | ||
1118 | Date: Wed May 4 14:22:33 2016 +0000 | ||
1119 | |||
1120 | upstream commit | ||
1121 | |||
1122 | move SSH_MSG_NONE, so we don't have to include ssh1.h; | ||
1123 | ok deraadt@ | ||
1124 | |||
1125 | Upstream-ID: c2f97502efc761a41b18c17ddf460e138ca7994e | ||
1126 | |||
1127 | commit 332ff3d770631e7513fea38cf0d3689f673f0e3f | ||
1128 | Author: Damien Miller <djm@mindrot.org> | ||
1129 | Date: Tue May 10 09:51:06 2016 +1000 | ||
1130 | |||
1131 | initialise salen in binresvport_sa | ||
1132 | |||
1133 | avoids failures with UsePrivilegedPort=yes | ||
1134 | |||
1135 | patch from Juan Gallego | ||
1136 | |||
1137 | commit c5c1d5d2f04ce00d2ddd6647e61b32f28be39804 | ||
1138 | Author: markus@openbsd.org <markus@openbsd.org> | ||
1139 | Date: Wed May 4 14:04:40 2016 +0000 | ||
1140 | |||
1141 | upstream commit | ||
1142 | |||
1143 | missing const in prototypes (ssh1) | ||
1144 | |||
1145 | Upstream-ID: 789c6ad4928b5fa557369b88c3a6a34926082c05 | ||
1146 | |||
1147 | commit 9faae50e2e82ba42eb0cb2726bf6830fe7948f28 | ||
1148 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
1149 | Date: Wed May 4 14:00:09 2016 +0000 | ||
1150 | |||
1151 | upstream commit | ||
1152 | |||
1153 | Fix inverted logic for updating StreamLocalBindMask which | ||
1154 | would cause the server to set an invalid mask. ok djm@ | ||
1155 | |||
1156 | Upstream-ID: 8a4404c8307a5ef9e07ee2169fc6d8106b527587 | ||
1157 | |||
1158 | commit b02ad1ce9105bfa7394ac7590c0729dd52e26a81 | ||
1159 | Author: markus@openbsd.org <markus@openbsd.org> | ||
1160 | Date: Wed May 4 12:21:53 2016 +0000 | ||
1161 | |||
1162 | upstream commit | ||
1163 | |||
1164 | IdentityAgent for specifying specific agent sockets; ok | ||
1165 | djm@ | ||
1166 | |||
1167 | Upstream-ID: 3e6a15eb89ea0fd406f108826b7dc7dec4fbfac1 | ||
1168 | |||
1169 | commit 910e59bba09ac309d78ce61e356da35292212935 | ||
1170 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1171 | Date: Wed May 4 12:16:39 2016 +0000 | ||
1172 | |||
1173 | upstream commit | ||
1174 | |||
1175 | fix junk characters after quotes | ||
1176 | |||
1177 | Upstream-ID: cc4d0cd32cb6b55a2ef98975d2f7ae857d0dc578 | ||
1178 | |||
1179 | commit 9283884e647b8be50ccd2997537af0065672107d | ||
1180 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
1181 | Date: Tue May 3 18:38:12 2016 +0000 | ||
1182 | |||
1183 | upstream commit | ||
1184 | |||
1185 | correct article; | ||
1186 | |||
1187 | Upstream-ID: 1fbd5b7ab16d2d9834ec79c3cedd4738fa42a168 | ||
1188 | |||
1189 | commit cfefbcea1057c2623e76c579174a4107a0b6e6cd | ||
1190 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1191 | Date: Tue May 3 15:57:39 2016 +0000 | ||
1192 | |||
1193 | upstream commit | ||
1194 | |||
1195 | fix overriding of StreamLocalBindMask and | ||
1196 | StreamLocalBindUnlink in Match blocks; found the hard way Rogan Dawes | ||
1197 | |||
1198 | Upstream-ID: 940bc69ec0249ab428d24ccd0722ce35cb932ee2 | ||
1199 | |||
1200 | commit 771c2f51ffc0c9a2877b7892fada0c77bd1f6549 | ||
1201 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1202 | Date: Tue May 3 15:25:06 2016 +0000 | ||
1203 | |||
1204 | upstream commit | ||
1205 | |||
1206 | don't forget to include StreamLocalBindUnlink in the | ||
1207 | config dump output | ||
1208 | |||
1209 | Upstream-ID: 14a6d970b3b45c8e94272e3c661e9a0b2a0ee7cb | ||
1210 | |||
1211 | commit cdcd941994dc430f50d0a4e6a712d32b66e6199e | ||
1212 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1213 | Date: Tue May 3 14:54:08 2016 +0000 | ||
1214 | |||
1215 | upstream commit | ||
1216 | |||
1217 | make nethack^wrandomart fingerprint flag more readily | ||
1218 | searchable pointed out by Matt Johnston | ||
1219 | |||
1220 | Upstream-ID: cb40d0235dc153c478c1aad3bc60b195422a54fb | ||
1221 | |||
1222 | commit 05855bf2ce7d5cd0a6db18bc0b4214ed5ef7516d | ||
1223 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1224 | Date: Tue May 3 13:10:24 2016 +0000 | ||
1225 | |||
1226 | upstream commit | ||
1227 | |||
1228 | clarify ordering of subkeys; pointed out by ietf-ssh AT | ||
1229 | stbuehler.de | ||
1230 | |||
1231 | Upstream-ID: 05ebe9f949449a555ebce8e0aad7c8c9acaf8463 | ||
1232 | |||
1233 | commit cca3b4395807bfb7aaeb83d2838f5c062ce30566 | ||
1234 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
1235 | Date: Tue May 3 12:15:49 2016 +0000 | ||
1236 | |||
1237 | upstream commit | ||
1238 | |||
1239 | Use a subshell for constructing key types to work around | ||
1240 | different sed behaviours for -portable. | ||
1241 | |||
1242 | Upstream-Regress-ID: 0f6eb673162df229eda9a134a0f10da16151552d | ||
1243 | |||
1244 | commit fa58208c6502dcce3e0daac0ca991ee657daf1f5 | ||
1245 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1246 | Date: Tue May 3 10:27:59 2016 +0000 | ||
1247 | |||
1248 | upstream commit | ||
1249 | |||
1250 | correct some typos and remove a long-stale XXX note. | ||
1251 | |||
1252 | add specification for ed25519 certificates | ||
1253 | |||
1254 | mention no host certificate options/extensions are currently defined | ||
1255 | |||
1256 | pointed out by Simon Tatham | ||
1257 | |||
1258 | Upstream-ID: 7b535ab7dba3340b7d8210ede6791fdaefdf839a | ||
1259 | |||
1260 | commit b466f956c32cbaff4200bfcd5db6739fe4bc7d04 | ||
1261 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1262 | Date: Tue May 3 10:24:27 2016 +0000 | ||
1263 | |||
1264 | upstream commit | ||
1265 | |||
1266 | add ed25519 keys that are supported but missing from this | ||
1267 | documents; from Peter Moody | ||
1268 | |||
1269 | Upstream-ID: 8caac2d8e8cfd2fca6dc304877346e0a064b014b | ||
1270 | |||
1271 | commit 7f3d76319a69dab2efe3a520a8fef5b97e923636 | ||
1272 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
1273 | Date: Tue May 3 09:03:49 2016 +0000 | ||
1274 | |||
1275 | upstream commit | ||
1276 | |||
1277 | Implement IUTF8 as per draft-sgtatham-secsh-iutf8-00. Patch | ||
1278 | from Simon Tatham, ok markus@ | ||
1279 | |||
1280 | Upstream-ID: 58268ebdf37d9d467f78216c681705a5e10c58e8 | ||
1281 | |||
1282 | commit 31bc01c05d9f51bee3ebe33dc57c4fafb059fb62 | ||
1283 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1284 | Date: Mon May 2 14:10:58 2016 +0000 | ||
1285 | |||
1286 | upstream commit | ||
1287 | |||
1288 | unbreak config parsing on reexec from previous commit | ||
1289 | |||
1290 | Upstream-ID: bc69932638a291770955bd05ca55a32660a613ab | ||
1291 | |||
1292 | commit 67f1459efd2e85bf03d032539283fa8107218936 | ||
1293 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1294 | Date: Mon May 2 09:52:00 2016 +0000 | ||
1295 | |||
1296 | upstream commit | ||
1297 | |||
1298 | unit and regress tests for SHA256/512; ok markus | ||
1299 | |||
1300 | Upstream-Regress-ID: a0cd1a92dc824067076a5fcef83c18df9b0bf2c6 | ||
1301 | |||
1302 | commit 0e8eeec8e75f6d0eaf33317376f773160018a9c7 | ||
1303 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1304 | Date: Mon May 2 10:26:04 2016 +0000 | ||
1305 | |||
1306 | upstream commit | ||
1307 | |||
1308 | add support for additional fixed DH groups from | ||
1309 | draft-ietf-curdle-ssh-kex-sha2-03 | ||
1310 | |||
1311 | diffie-hellman-group14-sha256 (2K group) | ||
1312 | diffie-hellman-group16-sha512 (4K group) | ||
1313 | diffie-hellman-group18-sha512 (8K group) | ||
1314 | |||
1315 | based on patch from Mark D. Baushke and Darren Tucker | ||
1316 | ok markus@ | ||
1317 | |||
1318 | Upstream-ID: ac00406ada4f0dfec41585ca0839f039545bc46f | ||
1319 | |||
1320 | commit 57464e3934ba53ad8590ee3ccd840f693407fc1e | ||
1321 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1322 | Date: Mon May 2 09:36:42 2016 +0000 | ||
1323 | |||
1324 | upstream commit | ||
1325 | |||
1326 | support SHA256 and SHA512 RSA signatures in certificates; | ||
1327 | ok markus@ | ||
1328 | |||
1329 | Upstream-ID: b45be2f2ce8cacd794dc5730edaabc90e5eb434a | ||
1330 | |||
1331 | commit 1a31d02b2411c4718de58ce796dbb7b5e14db93e | ||
1332 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1333 | Date: Mon May 2 08:49:03 2016 +0000 | ||
1334 | |||
1335 | upstream commit | ||
1336 | |||
1337 | fix signed/unsigned errors reported by clang-3.7; add | ||
1338 | sshbuf_dup_string() to replace a common idiom of strdup(sshbuf_ptr()) with | ||
1339 | better safety checking; feedback and ok markus@ | ||
1340 | |||
1341 | Upstream-ID: 71f926d9bb3f1efed51319a6daf37e93d57c8820 | ||
1342 | |||
1343 | commit d2d6bf864e52af8491a60dd507f85b74361f5da3 | ||
1344 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1345 | Date: Fri Apr 29 08:07:53 2016 +0000 | ||
1346 | |||
1347 | upstream commit | ||
1348 | |||
1349 | close ControlPersist background process stderr when not | ||
1350 | in debug mode or when logging to a file or syslog. bz#1988 ok dtucker | ||
1351 | |||
1352 | Upstream-ID: 4fb726f0fdcb155ad419913cea10dc4afd409d24 | ||
1353 | |||
1354 | commit 9ee692fa1146e887e008a2b9a3d3ea81770c9fc8 | ||
1355 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1356 | Date: Thu Apr 28 14:30:21 2016 +0000 | ||
1357 | |||
1358 | upstream commit | ||
1359 | |||
1360 | fix comment | ||
1361 | |||
1362 | Upstream-ID: 313a385bd7b69a82f8e28ecbaf5789c774457b15 | ||
1363 | |||
1364 | commit ee1e0a16ff2ba41a4d203c7670b54644b6c57fa6 | ||
1365 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
1366 | Date: Wed Apr 27 13:53:48 2016 +0000 | ||
1367 | |||
1368 | upstream commit | ||
1369 | |||
1370 | cidr permitted for {allow,deny}users; from lars nooden ok djm | ||
1371 | |||
1372 | Upstream-ID: 13e7327fe85f6c63f3f7f069e0fdc8c351515d11 | ||
1373 | |||
1374 | commit b6e0140a5aa883c27b98415bd8aa9f65fc04ee22 | ||
1375 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1376 | Date: Thu Apr 21 06:08:02 2016 +0000 | ||
1377 | |||
1378 | upstream commit | ||
1379 | |||
1380 | make argument == NULL tests more consistent | ||
1381 | |||
1382 | Upstream-ID: dc4816678704aa5cbda3a702e0fa2033ff04581d | ||
1383 | |||
1384 | commit 6aaabc2b610e44bae473457ad9556ffb43d90ee3 | ||
1385 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
1386 | Date: Sun Apr 17 14:34:46 2016 +0000 | ||
1387 | |||
1388 | upstream commit | ||
1389 | |||
1390 | tweak previous; | ||
1391 | |||
1392 | Upstream-ID: 46c1bab91c164078edbccd5f7d06b9058edd814f | ||
1393 | |||
1394 | commit 0f839e5969efa3bda615991be8a9d9311554c573 | ||
1395 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1396 | Date: Fri Apr 15 02:57:10 2016 +0000 | ||
1397 | |||
1398 | upstream commit | ||
1399 | |||
1400 | missing bit of Include regress | ||
1401 | |||
1402 | Upstream-Regress-ID: 1063595f7f40f8489a1b7a27230b9e8acccea34f | ||
1403 | |||
1404 | commit 12e4ac46aed681da55c2bba3cd11dfcab23591be | ||
1405 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1406 | Date: Fri Apr 15 02:55:53 2016 +0000 | ||
1407 | |||
1408 | upstream commit | ||
1409 | |||
1410 | remove redundant CLEANFILES section | ||
1411 | |||
1412 | Upstream-Regress-ID: 29ef1b267fa56daa60a1463396635e7d53afb587 | ||
1413 | |||
1414 | commit b1d05aa653ae560c44baf8e8a9756e33f98ea75c | ||
1415 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1416 | Date: Fri Apr 15 00:48:01 2016 +0000 | ||
1417 | |||
1418 | upstream commit | ||
1419 | |||
1420 | sync CLEANFILES with portable, sort | ||
1421 | |||
1422 | Upstream-Regress-ID: cb782f4f1ab3e079efbc335c6b64942f790766ed | ||
1423 | |||
1424 | commit 35f22dad263cce5c61d933ae439998cb965b8748 | ||
1425 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1426 | Date: Fri Apr 15 00:31:10 2016 +0000 | ||
1427 | |||
1428 | upstream commit | ||
1429 | |||
1430 | regression test for ssh_config Include directive | ||
1431 | |||
1432 | Upstream-Regress-ID: 46a38c8101f635461c506d1aac2d96af80f97f1e | ||
1433 | |||
1434 | commit 6b8a1a87005818d4700ce8b42faef746e82c1f51 | ||
1435 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1436 | Date: Thu Apr 14 23:57:17 2016 +0000 | ||
1437 | |||
1438 | upstream commit | ||
1439 | |||
1440 | unbreak test for recent ssh de-duplicated forwarding | ||
1441 | change | ||
1442 | |||
1443 | Upstream-Regress-ID: 6b2b115d99acd7cff13986e6739ea214cf2a3da3 | ||
1444 | |||
1445 | commit 076787702418985a2cc6808212dc28ce7afc01f0 | ||
1446 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1447 | Date: Thu Apr 14 23:21:42 2016 +0000 | ||
1448 | |||
1449 | upstream commit | ||
1450 | |||
1451 | add test knob and warning for StrictModes | ||
1452 | |||
1453 | Upstream-Regress-ID: 8cd10952ce7898655ee58945904f2a0a3bdf7682 | ||
1454 | |||
1455 | commit dc7990be865450574c7940c9880567f5d2555b37 | ||
1456 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1457 | Date: Fri Apr 15 00:30:19 2016 +0000 | ||
1458 | |||
1459 | upstream commit | ||
1460 | |||
1461 | Include directive for ssh_config(5); feedback & ok markus@ | ||
1462 | |||
1463 | Upstream-ID: ae3b76e2e343322b9f74acde6f1e1c5f027d5fff | ||
1464 | |||
1465 | commit 85bdcd7c92fe7ff133bbc4e10a65c91810f88755 | ||
1466 | Author: Damien Miller <djm@mindrot.org> | ||
1467 | Date: Wed Apr 13 10:39:57 2016 +1000 | ||
1468 | |||
1469 | ignore PAM environment vars when UseLogin=yes | ||
1470 | |||
1471 | If PAM is configured to read user-specified environment variables | ||
1472 | and UseLogin=yes in sshd_config, then a hostile local user may | ||
1473 | attack /bin/login via LD_PRELOAD or similar environment variables | ||
1474 | set via PAM. | ||
1475 | |||
1476 | CVE-2015-8325, found by Shayan Sadigh, via Colin Watson | ||
1477 | |||
1478 | commit dce19bf6e4a2a3d0b13a81224de63fc316461ab9 | ||
1479 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1480 | Date: Sat Apr 9 12:39:30 2016 +0000 | ||
1481 | |||
1482 | upstream commit | ||
1483 | |||
1484 | make private key loading functions consistently handle NULL | ||
1485 | key pointer arguments; ok markus@ | ||
1486 | |||
1487 | Upstream-ID: 92038726ef4a338169c35dacc9c5a07fcc7fa761 | ||
1488 | |||
1489 | commit 5f41f030e2feb5295657285aa8c6602c7810bc4b | ||
1490 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1491 | Date: Fri Apr 8 21:14:13 2016 +1000 | ||
1492 | |||
1493 | Remove NO_IPPORT_RESERVED_CONCEPT | ||
1494 | |||
1495 | Replace by defining IPPORT_RESERVED to zero on Cygwin, which should have | ||
1496 | the same effect without causing problems syncing patches with OpenBSD. | ||
1497 | Resync the two affected functions with OpenBSD. ok djm, sanity checked | ||
1498 | by Corinna. | ||
1499 | |||
1500 | commit 34a01b2cf737d946ddb140618e28c3048ab7a229 | ||
1501 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1502 | Date: Fri Apr 8 08:19:17 2016 +0000 | ||
1503 | |||
1504 | upstream commit | ||
1505 | |||
1506 | whitespace at EOL | ||
1507 | |||
1508 | Upstream-ID: 5beffd4e001515da12851b974e2323ae4aa313b6 | ||
1509 | |||
1510 | commit 90ee563fa6b54c59896c6c332c5188f866c5e75f | ||
1511 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1512 | Date: Fri Apr 8 06:35:54 2016 +0000 | ||
1513 | |||
1514 | upstream commit | ||
1515 | |||
1516 | We accidentally send an empty string and a zero uint32 with | ||
1517 | every direct-streamlocal@openssh.com channel open, in contravention of our | ||
1518 | own spec. | ||
1519 | |||
1520 | Fixing this is too hard wrt existing versions that expect these | ||
1521 | fields to be present and fatal() if they aren't, so document them | ||
1522 | as "reserved" fields in the PROTOCOL spec as though we always | ||
1523 | intended this and let us never speak of it again. | ||
1524 | |||
1525 | bz#2529, reported by Ron Frederick | ||
1526 | |||
1527 | Upstream-ID: 34cd326a4d236ca6e39084c4ff796bd97ab833e7 | ||
1528 | |||
1529 | commit 0ccbd5eca0f0dd78e71a4b69c66f03a66908d558 | ||
1530 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1531 | Date: Wed Apr 6 06:42:17 2016 +0000 | ||
1532 | |||
1533 | upstream commit | ||
1534 | |||
1535 | don't record duplicate LocalForward and RemoteForward | ||
1536 | entries; fixes failure with ExitOnForwardFailure+hostname canonicalisation | ||
1537 | where the same forwards are added on the second pass through the | ||
1538 | configuration file. bz#2562; ok dtucker@ | ||
1539 | |||
1540 | Upstream-ID: 40a51d68b6300f1cc61deecdb7d4847b8b7b0de1 | ||
1541 | |||
1542 | commit 574def0eb493cd6efeffd4ff2e9257abcffee0c8 | ||
1543 | Author: krw@openbsd.org <krw@openbsd.org> | ||
1544 | Date: Sat Apr 2 14:37:42 2016 +0000 | ||
1545 | |||
1546 | upstream commit | ||
1547 | |||
1548 | Another use for fcntl() and thus of the superfluous 3rd | ||
1549 | parameter is when sanitising standard fd's before calling daemon(). | ||
1550 | |||
1551 | Use a tweaked version of the ssh(1) function in all three places | ||
1552 | found using fcntl() this way. | ||
1553 | |||
1554 | ok jca@ beck@ | ||
1555 | |||
1556 | Upstream-ID: f16811ffa19a1c5f4ef383c5f0fecb843c84e218 | ||
1557 | |||
1558 | commit b3413534aa9d71a941005df2760d1eec2c2b0854 | ||
1559 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1560 | Date: Mon Apr 4 11:09:21 2016 +1000 | ||
1561 | |||
1562 | Tidy up openssl header test. | ||
1563 | |||
1564 | commit 815bcac0b94bb448de5acdd6ba925b8725240b4f | ||
1565 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1566 | Date: Mon Apr 4 11:07:59 2016 +1000 | ||
1567 | |||
1568 | Fix configure-time warnings for openssl test. | ||
1569 | |||
1570 | commit 95687f5831ae680f7959446d8ae4b52452ee05dd | ||
1571 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1572 | Date: Fri Apr 1 02:34:10 2016 +0000 | ||
1573 | |||
1574 | upstream commit | ||
1575 | |||
1576 | whitespace at EOL | ||
1577 | |||
1578 | Upstream-ID: 40ae2203d07cb14e0a89e1a0d4c6120ee8fd8c3a | ||
1579 | |||
1580 | commit fdfbf4580de09d84a974211715e14f88a5704b8e | ||
1581 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
1582 | Date: Thu Mar 31 05:24:06 2016 +0000 | ||
1583 | |||
1584 | upstream commit | ||
1585 | |||
1586 | Remove fallback from moduli to "primes" file that was | ||
1587 | deprecated in 2001 and fix log messages referring to primes file. Based on | ||
1588 | patch from xnox at ubuntu.com via bz#2559. "kill it" deraadt@ | ||
1589 | |||
1590 | Upstream-ID: 0d4f8c70e2fa7431a83b95f8ca81033147ba8713 | ||
1591 | |||
1592 | commit 0235a5fa67fcac51adb564cba69011a535f86f6b | ||
1593 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1594 | Date: Thu Mar 17 17:19:43 2016 +0000 | ||
1595 | |||
1596 | upstream commit | ||
1597 | |||
1598 | UseDNS affects ssh hostname processing in authorized_keys, | ||
1599 | not known_hosts; bz#2554 reported by jjelen AT redhat.com | ||
1600 | |||
1601 | Upstream-ID: c1c1bb895dde46095fc6d81d8653703928437591 | ||
1602 | |||
1603 | commit 8c4739338f5e379d05b19d6e544540114965f07e | ||
1604 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1605 | Date: Tue Mar 15 09:24:43 2016 +1100 | ||
1606 | |||
1607 | Don't call Solaris setproject() with UsePAM=yes. | ||
1608 | |||
1609 | When Solaris Projects are enabled along with PAM setting the project | ||
1610 | is PAM's responsiblity. bz#2425, based on patch from | ||
1611 | brent.paulson at gmail.com. | ||
1612 | |||
1613 | commit cff26f373c58457a32cb263e212cfff53fca987b | ||
1614 | Author: Damien Miller <djm@mindrot.org> | ||
1615 | Date: Tue Mar 15 04:30:21 2016 +1100 | ||
1616 | |||
1617 | remove slogin from *.spec | ||
1618 | |||
1619 | commit c38905ba391434834da86abfc988a2b8b9b62477 | ||
1620 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1621 | Date: Mon Mar 14 16:20:54 2016 +0000 | ||
1622 | |||
1623 | upstream commit | ||
1624 | |||
1625 | unbreak authentication using lone certificate keys in | ||
1626 | ssh-agent: when attempting pubkey auth with a certificate, if no separate | ||
1627 | private key is found among the keys then try with the certificate key itself. | ||
1628 | |||
1629 | bz#2550 reported by Peter Moody | ||
1630 | |||
1631 | Upstream-ID: f939cd76d68e6a9a3d1711b5a943d6ed1e623966 | ||
1632 | |||
1633 | commit 4b4bfb01cd40b9ddb948e6026ddd287cc303d871 | ||
1634 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1635 | Date: Thu Mar 10 11:47:57 2016 +0000 | ||
1636 | |||
1637 | upstream commit | ||
1638 | |||
1639 | sanitise characters destined for xauth reported by | ||
1640 | github.com/tintinweb feedback and ok deraadt and markus | ||
1641 | |||
1642 | Upstream-ID: 18ad8d0d74cbd2ea3306a16595a306ee356aa261 | ||
1643 | |||
1644 | commit 732b463d37221722b1206f43aa59563766a6a968 | ||
1645 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1646 | Date: Mon Mar 14 16:04:23 2016 +1100 | ||
1647 | |||
1648 | Pass supported malloc options to connect-privsep. | ||
1649 | |||
1650 | This allows us to activate only the supported options during the malloc | ||
1651 | option portion of the connect-privsep test. | ||
1652 | |||
1653 | commit d29c5b9b3e9f27394ca97a364ed4bb4a55a59744 | ||
1654 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1655 | Date: Mon Mar 14 09:30:58 2016 +1100 | ||
1656 | |||
1657 | Remove leftover roaming.h file. | ||
1658 | |||
1659 | Pointed out by des at des.no. | ||
1660 | |||
1661 | commit 8ff20ec95f4377021ed5e9b2331320f5c5a34cea | ||
1662 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1663 | Date: Mon Mar 14 09:24:03 2016 +1100 | ||
1664 | |||
1665 | Quote variables that may contain whitespace. | ||
1666 | |||
1667 | The variable $L_TMP_ID_FILE needs to be surrounded by quotes in order to | ||
1668 | survive paths containing whitespace. bz#2551, from Corinna Vinschen via | ||
1669 | Philip Hands. | ||
1670 | |||
1671 | commit 627824480c01f0b24541842c7206ab9009644d02 | ||
1672 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1673 | Date: Fri Mar 11 14:47:41 2016 +1100 | ||
1674 | |||
1675 | Include priv.h for priv_set_t. | ||
1676 | |||
1677 | From alex at cooperi.net. | ||
1678 | |||
1679 | commit e960051f9a264f682c4d2fefbeecffcfc66b0ddf | ||
1680 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1681 | Date: Wed Mar 9 13:14:18 2016 +1100 | ||
1682 | |||
1683 | Wrap stdint.h inside #ifdef HAVE_STDINT_H. | ||
1684 | |||
1685 | commit 2c48bd344d2c4b5e08dae9aea5ff44fc19a5e363 | ||
1686 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1687 | Date: Wed Mar 9 12:46:50 2016 +1100 | ||
1688 | |||
1689 | Add compat to monotime_double(). | ||
1690 | |||
1691 | Apply all of the portability changes in monotime() to monotime() double. | ||
1692 | Fixes build on at least older FreeBSD systems. | ||
1693 | |||
1694 | commit 7b40ef6c2eef40c339f6ea8920cb8a44838e10c9 | ||
1695 | Author: Damien Miller <djm@mindrot.org> | ||
1696 | Date: Tue Mar 8 14:12:58 2016 -0800 | ||
1697 | |||
1698 | make a regress-binaries target | ||
1699 | |||
1700 | Easier to build all the regression/unit test binaries in one pass | ||
1701 | than going through all of ${REGRESS_BINARIES} | ||
1702 | |||
1703 | commit c425494d6b6181beb54a1b3763ef9e944fd3c214 | ||
1704 | Author: Damien Miller <djm@mindrot.org> | ||
1705 | Date: Tue Mar 8 14:03:54 2016 -0800 | ||
1706 | |||
1707 | unbreak kexfuzz for -Werror without __bounded__ | ||
1708 | |||
1709 | commit 3ed9218c336607846563daea5d5ab4f701f4e042 | ||
1710 | Author: Damien Miller <djm@mindrot.org> | ||
1711 | Date: Tue Mar 8 14:01:29 2016 -0800 | ||
1712 | |||
1713 | unbreak PAM after canohost refactor | ||
1714 | |||
1715 | commit 885fb2a44ff694f01e4f6470f803629e11f62961 | ||
1716 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1717 | Date: Tue Mar 8 11:58:43 2016 +1100 | ||
1718 | |||
1719 | auth_get_canonical_hostname in portable code. | ||
1720 | |||
1721 | "refactor canohost.c" replaced get_canonical_hostname, this makes the | ||
1722 | same change to some portable-specific code. | ||
1723 | |||
1724 | commit 95767262caa6692eff1e1565be1f5cb297949a89 | ||
1725 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1726 | Date: Mon Mar 7 19:02:43 2016 +0000 | ||
1727 | |||
1728 | upstream commit | ||
1729 | |||
1730 | refactor canohost.c: move functions that cache results closer | ||
1731 | to the places that use them (authn and session code). After this, no state is | ||
1732 | cached in canohost.c | ||
1733 | |||
1734 | feedback and ok markus@ | ||
1735 | |||
1736 | Upstream-ID: 5f2e4df88d4803fc8ec59ec53629105e23ce625e | ||
1737 | |||
1738 | commit af0bb38ffd1f2c4f9f43b0029be2efe922815255 | ||
1739 | Author: Damien Miller <djm@mindrot.org> | ||
1740 | Date: Fri Mar 4 15:11:55 2016 +1100 | ||
1741 | |||
1742 | hook unittests/misc/kexfuzz into build | ||
1743 | |||
1744 | commit 331b8e07ee5bcbdca12c11cc8f51a7e8de09b248 | ||
1745 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
1746 | Date: Fri Mar 4 02:48:06 2016 +0000 | ||
1747 | |||
1748 | upstream commit | ||
1749 | |||
1750 | Filter debug messages out of log before picking the last | ||
1751 | two lines. Should prevent problems if any more debug output is added late in | ||
1752 | the connection. | ||
1753 | |||
1754 | Upstream-Regress-ID: 345d0a9589c381e7d640a4ead06cfaadf4db1363 | ||
1755 | |||
1756 | commit 0892edaa3ce623381d3a7635544cbc69b31cf9cb | ||
1757 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1758 | Date: Fri Mar 4 02:30:36 2016 +0000 | ||
1759 | |||
1760 | upstream commit | ||
1761 | |||
1762 | add KEX fuzzer harness; ok deraadt@ | ||
1763 | |||
1764 | Upstream-Regress-ID: 3df5242d30551b12b828aa9ba4a4cec0846be8d1 | ||
1765 | |||
1766 | commit ae2562c47d41b68dbb00240fd6dd60bed205367a | ||
1767 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
1768 | Date: Thu Mar 3 00:46:53 2016 +0000 | ||
1769 | |||
1770 | upstream commit | ||
1771 | |||
1772 | Look back 3 lines for possible error messages. Changes | ||
1773 | to the code mean that "Bad packet length" errors are 3 lines back instead of | ||
1774 | the previous two, which meant we didn't skip some offsets that we intended | ||
1775 | to. | ||
1776 | |||
1777 | Upstream-Regress-ID: 24f36912740a634d509a3144ebc8eb7c09b9c684 | ||
1778 | |||
1779 | commit 988e429d903acfb298bfddfd75e7994327adfed0 | ||
1780 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1781 | Date: Fri Mar 4 03:35:44 2016 +0000 | ||
1782 | |||
1783 | upstream commit | ||
1784 | |||
1785 | fix ClientAliveInterval when a time-based RekeyLimit is | ||
1786 | set; previously keepalive packets were not being sent. bz#2252 report and | ||
1787 | analysis by Christian Wittenhorst and Garrett Lee feedback and ok dtucker@ | ||
1788 | |||
1789 | Upstream-ID: d48f9deadd35fdacdd5106b41bb07630ddd4aa81 | ||
1790 | |||
1791 | commit 8ef04d7a94bcdb8b0085fdd2a79a844b7d40792d | ||
1792 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
1793 | Date: Wed Mar 2 22:43:52 2016 +0000 | ||
1794 | |||
1795 | upstream commit | ||
1796 | |||
1797 | Improve accuracy of reported transfer speeds by waiting | ||
1798 | for the ack from the other end. Pointed out by mmcc@, ok deraadt@ markus@ | ||
1799 | |||
1800 | Upstream-ID: 99f1cf15c9a8f161086b814d414d862795ae153d | ||
1801 | |||
1802 | commit b8d4eafe29684fe4f5bb587f7eab948e6ed62723 | ||
1803 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
1804 | Date: Wed Mar 2 22:42:40 2016 +0000 | ||
1805 | |||
1806 | upstream commit | ||
1807 | |||
1808 | Improve precision of progressmeter for sftp and scp by | ||
1809 | storing sub-second timestamps. Pointed out by mmcc@, ok deraadt@ markus@ | ||
1810 | |||
1811 | Upstream-ID: 38fd83a3d83dbf81c8ff7b5d1302382fe54970ab | ||
1812 | |||
1813 | commit 18f64b969c70ed00e74b9d8e50359dbe698ce4c0 | ||
1814 | Author: jca@openbsd.org <jca@openbsd.org> | ||
1815 | Date: Mon Feb 29 20:22:36 2016 +0000 | ||
1816 | |||
1817 | upstream commit | ||
1818 | |||
1819 | Print ssize_t with %zd; ok deraadt@ mmcc@ | ||
1820 | |||
1821 | Upstream-ID: 0590313bbb013ff6692298c98f7e0be349d124bd | ||
1822 | |||
1823 | commit 6e7f68ce38130c794ec1fb8d2a6091fbe982628d | ||
1824 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1825 | Date: Sun Feb 28 22:27:00 2016 +0000 | ||
1826 | |||
1827 | upstream commit | ||
1828 | |||
1829 | rearrange DH public value tests to be a little more clear | ||
1830 | |||
1831 | rearrange DH private value generation to explain rationale more | ||
1832 | clearly and include an extra sanity check. | ||
1833 | |||
1834 | ok deraadt | ||
1835 | |||
1836 | Upstream-ID: 9ad8a07e1a12684e1b329f9bd88941b249d4b2ad | ||
1837 | |||
1838 | commit 2ed17aa34008bdfc8db674315adc425a0712be11 | ||
1839 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1840 | Date: Tue Mar 1 15:24:20 2016 +1100 | ||
1841 | |||
1842 | Import updated moduli file from OpenBSD. | ||
1843 | |||
1844 | Note that 1.5k bit groups have been removed. | ||
1845 | |||
1846 | commit 72b061d4ba0f909501c595d709ea76e06b01e5c9 | ||
1847 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1848 | Date: Fri Feb 26 14:40:04 2016 +1100 | ||
1849 | |||
1850 | Add a note about using xlc on AIX. | ||
1851 | |||
1852 | commit fd4e4f2416baa2e6565ea49d52aade296bad3e28 | ||
1853 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1854 | Date: Wed Feb 24 10:44:25 2016 +1100 | ||
1855 | |||
1856 | Skip PrintLastLog in config dump mode. | ||
1857 | |||
1858 | When DISABLE_LASTLOG is set, do not try to include PrintLastLog in the | ||
1859 | config dump since it'll be reported as UNKNOWN. | ||
1860 | |||
1861 | commit 99135c764fa250801da5ec3b8d06cbd0111caae8 | ||
1862 | Author: Damien Miller <djm@mindrot.org> | ||
1863 | Date: Tue Feb 23 20:17:23 2016 +1100 | ||
1864 | |||
1865 | update spec/README versions ahead of release | ||
1866 | |||
1867 | commit b86a334aaaa4d1e643eb1fd71f718573d6d948b5 | ||
1868 | Author: Damien Miller <djm@mindrot.org> | ||
1869 | Date: Tue Feb 23 20:16:53 2016 +1100 | ||
1870 | |||
1871 | put back portable patchlevel to p1 | ||
1872 | |||
1873 | commit 555dd35ff176847e3c6bd068ba2e8db4022eb24f | ||
1874 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1875 | Date: Tue Feb 23 09:14:34 2016 +0000 | ||
1876 | |||
1877 | upstream commit | ||
1878 | |||
1879 | openssh-7.2 | ||
1880 | |||
1881 | Upstream-ID: 9db776b26014147fc907ece8460ef2bcb0f11e78 | ||
1882 | |||
1883 | commit 1acc058d0a7913838c830ed998a1a1fb5b7864bf | ||
1884 | Author: Damien Miller <djm@mindrot.org> | ||
1885 | Date: Tue Feb 23 16:12:13 2016 +1100 | ||
1886 | |||
1887 | Disable tests where fs perms are incorrect | ||
1888 | |||
1889 | Some tests have strict requirements on the filesystem permissions | ||
1890 | for certain files and directories. This adds a regress/check-perm | ||
1891 | tool that copies the relevant logic from sshd to exactly test | ||
1892 | the paths in question. This lets us skip tests when the local | ||
1893 | filesystem doesn't conform to our expectations rather than | ||
1894 | continuing and failing the test run. | ||
1895 | |||
1896 | ok dtucker@ | ||
1897 | |||
1898 | commit 39f303b1f36d934d8410b05625f25c7bcb75db4d | ||
1899 | Author: Damien Miller <djm@mindrot.org> | ||
1900 | Date: Tue Feb 23 12:56:59 2016 +1100 | ||
1901 | |||
1902 | fix sandbox on OSX Lion | ||
1903 | |||
1904 | sshd was failing with: | ||
1905 | |||
1906 | ssh_sandbox_child: sandbox_init: dlopen(/usr/lib/libsandbox.1.dylib, 261):cw | ||
1907 | image not found [preauth] | ||
1908 | |||
1909 | caused by chroot before sandboxing. Avoid by explicitly linking libsandbox | ||
1910 | to sshd. Spotted by Darren. | ||
1911 | |||
1912 | commit 0d1451a32c7436e6d3d482351e776bc5e7824ce4 | ||
1913 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1914 | Date: Tue Feb 23 01:34:14 2016 +0000 | ||
1915 | |||
1916 | upstream commit | ||
1917 | |||
1918 | fix spurious error message when incorrect passphrase | ||
1919 | entered for keys; reported by espie@ ok deraadt@ | ||
1920 | |||
1921 | Upstream-ID: 58b2e46e63ed6912ed1ee780bd3bd8560f9a5899 | ||
1922 | |||
1923 | commit 09d87d79741beb85768b5e788d7dfdf4bc3543dc | ||
1924 | Author: sobrado@openbsd.org <sobrado@openbsd.org> | ||
1925 | Date: Sat Feb 20 23:06:23 2016 +0000 | ||
1926 | |||
1927 | upstream commit | ||
1928 | |||
1929 | set ssh(1) protocol version to 2 only. | ||
1930 | |||
1931 | ok djm@ | ||
1932 | |||
1933 | Upstream-ID: e168daf9d27d7e392e3c9923826bd8e87b2b3a10 | ||
1934 | |||
1935 | commit 9262e07826ba5eebf8423f7ac9e47ec488c47869 | ||
1936 | Author: sobrado@openbsd.org <sobrado@openbsd.org> | ||
1937 | Date: Sat Feb 20 23:02:39 2016 +0000 | ||
1938 | |||
1939 | upstream commit | ||
1940 | |||
1941 | add missing ~/.ssh/id_ecdsa and ~/.ssh/id_ed25519 to | ||
1942 | IdentityFile. | ||
1943 | |||
1944 | ok djm@ | ||
1945 | |||
1946 | Upstream-ID: 6ce99466312e4ae7708017c3665e3edb976f70cf | ||
1947 | |||
1948 | commit c12f0fdce8f985fca8d71829fd64c5b89dc777f5 | ||
1949 | Author: sobrado@openbsd.org <sobrado@openbsd.org> | ||
1950 | Date: Sat Feb 20 23:01:46 2016 +0000 | ||
1951 | |||
1952 | upstream commit | ||
1953 | |||
1954 | AddressFamily defaults to any. | ||
1955 | |||
1956 | ok djm@ | ||
1957 | |||
1958 | Upstream-ID: 0d94aa06a4b889bf57a7f631c45ba36d24c13e0c | ||
1959 | |||
1960 | commit 907091acb188b1057d50c2158f74c3ecf1c2302b | ||
1961 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1962 | Date: Fri Feb 19 09:05:39 2016 +1100 | ||
1963 | |||
1964 | Make Solaris privs code build on older systems. | ||
1965 | |||
1966 | Not all systems with Solaris privs have priv_basicset so factor that | ||
1967 | out and provide backward compatibility code. Similarly, not all have | ||
1968 | PRIV_NET_ACCESS so wrap that in #ifdef. Based on code from | ||
1969 | alex at cooperi.net and djm@ with help from carson at taltos.org and | ||
1970 | wieland at purdue.edu. | ||
1971 | |||
1972 | commit 292a8dee14e5e67dcd1b49ba5c7b9023e8420d59 | ||
1973 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1974 | Date: Wed Feb 17 22:20:14 2016 +0000 | ||
1975 | |||
1976 | upstream commit | ||
1977 | |||
1978 | rekey refactor broke SSH1; spotted by Tom G. Christensen | ||
1979 | |||
1980 | Upstream-ID: 43f0d57928cc077c949af0bfa71ef574dcb58243 | ||
1981 | |||
1982 | commit 3a13cb543df9919aec2fc6b75f3dd3802facaeca | ||
1983 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1984 | Date: Wed Feb 17 08:57:34 2016 +0000 | ||
1985 | |||
1986 | upstream commit | ||
1987 | |||
1988 | rsa-sha2-512,rsa-sha2-256 cannot be selected explicitly | ||
1989 | in *KeyTypes options yet. Remove them from the lists of algorithms for now. | ||
1990 | committing on behalf of markus@ ok djm@ | ||
1991 | |||
1992 | Upstream-ID: c6e8820eb8e610ac21551832c0c89684a9a51bb7 | ||
1993 | |||
1994 | commit a685ae8d1c24fb7c712c55a4f3280ee76f5f1e4b | ||
1995 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
1996 | Date: Wed Feb 17 07:38:19 2016 +0000 | ||
1997 | |||
1998 | upstream commit | ||
1999 | |||
2000 | since these pages now clearly tell folks to avoid v1, | ||
2001 | normalise the docs from a v2 perspective (i.e. stop pointing out which bits | ||
2002 | are v2 only); | ||
2003 | |||
2004 | ok/tweaks djm ok markus | ||
2005 | |||
2006 | Upstream-ID: eb474f8c36fb6a532dc05c282f7965e38dcfa129 | ||
2007 | |||
2008 | commit c5c3f3279a0e4044b8de71b70d3570d692d0f29d | ||
2009 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2010 | Date: Wed Feb 17 05:29:04 2016 +0000 | ||
2011 | |||
2012 | upstream commit | ||
2013 | |||
2014 | make sandboxed privilege separation the default, not just | ||
2015 | for new installs; "absolutely" deraadt@ | ||
2016 | |||
2017 | Upstream-ID: 5221ef3b927d2df044e9aa3f5db74ae91743f69b | ||
2018 | |||
2019 | commit eb3f7337a651aa01d5dec019025e6cdc124ed081 | ||
2020 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
2021 | Date: Tue Feb 16 07:47:54 2016 +0000 | ||
2022 | |||
2023 | upstream commit | ||
2024 | |||
2025 | no need to state that protocol 2 is the default twice; | ||
2026 | |||
2027 | Upstream-ID: b1e4c36b0c2e12e338e5b66e2978f2ac953b95eb | ||
2028 | |||
2029 | commit e7901efa9b24e5b0c7e74f2c5520d47eead4d005 | ||
2030 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2031 | Date: Tue Feb 16 05:11:04 2016 +0000 | ||
2032 | |||
2033 | upstream commit | ||
2034 | |||
2035 | Replace list of ciphers and MACs adjacent to -1/-2 flag | ||
2036 | descriptions in ssh(1) with a strong recommendation not to use protocol 1. | ||
2037 | Add a similar warning to the Protocol option descriptions in ssh_config(5) | ||
2038 | and sshd_config(5); | ||
2039 | |||
2040 | prompted by and ok mmcc@ | ||
2041 | |||
2042 | Upstream-ID: 961f99e5437d50e636feca023978950a232ead5e | ||
2043 | |||
2044 | commit 5a0fcb77287342e2fc2ba1cee79b6af108973dc2 | ||
2045 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2046 | Date: Tue Feb 16 03:37:48 2016 +0000 | ||
2047 | |||
2048 | upstream commit | ||
2049 | |||
2050 | add a "Close session" log entry (at loglevel=verbose) to | ||
2051 | correspond to the existing "Starting session" one. Also include the session | ||
2052 | id number to make multiplexed sessions more apparent. | ||
2053 | |||
2054 | feedback and ok dtucker@ | ||
2055 | |||
2056 | Upstream-ID: e72d2ac080e02774376325136e532cb24c2e617c | ||
2057 | |||
2058 | commit 624fd395b559820705171f460dd33d67743d13d6 | ||
2059 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2060 | Date: Wed Feb 17 02:24:17 2016 +0000 | ||
2061 | |||
2062 | upstream commit | ||
2063 | |||
2064 | include bad $SSH_CONNECTION in failure output | ||
2065 | |||
2066 | Upstream-Regress-ID: b22d72edfde78c403aaec2b9c9753ef633cc0529 | ||
2067 | |||
2068 | commit 60d860e54b4f199e5e89963b1c086981309753cb | ||
2069 | Author: Darren Tucker <dtucker@zip.com.au> | ||
2070 | Date: Wed Feb 17 13:37:09 2016 +1100 | ||
2071 | |||
2072 | Rollback addition of va_start. | ||
2073 | |||
2074 | va_start was added in 0f754e29dd3760fc0b172c1220f18b753fb0957e, however | ||
2075 | it has the wrong number of args and it's not usable in non-variadic | ||
2076 | functions anyway so it breaks things (for example Solaris 2.6 as | ||
2077 | reported by Tom G. Christensen).i ok djm@ | ||
2078 | |||
2079 | commit 2fee909c3cee2472a98b26eb82696297b81e0d38 | ||
2080 | Author: Darren Tucker <dtucker@zip.com.au> | ||
2081 | Date: Wed Feb 17 09:48:15 2016 +1100 | ||
2082 | |||
2083 | Look for gethostbyname in libresolv and libnsl. | ||
2084 | |||
2085 | Should fix build problem on Solaris 2.6 reported by Tom G. Christensen. | ||
2086 | |||
2087 | commit 5ac712d81a84396aab441a272ec429af5b738302 | ||
2088 | Author: Damien Miller <djm@mindrot.org> | ||
2089 | Date: Tue Feb 16 10:45:02 2016 +1100 | ||
2090 | |||
2091 | make existing ssh_malloc_init only for __OpenBSD__ | ||
2092 | |||
2093 | commit 24c9bded569d9f2449ded73f92fb6d12db7a9eec | ||
2094 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2095 | Date: Mon Feb 15 23:32:37 2016 +0000 | ||
2096 | |||
2097 | upstream commit | ||
2098 | |||
2099 | memleak of algorithm name in mm_answer_sign; reported by | ||
2100 | Jakub Jelen | ||
2101 | |||
2102 | Upstream-ID: ccd742cd25952240ebd23d7d4d6b605862584d08 | ||
2103 | |||
2104 | commit ffb1e7e896139a42ceb78676f637658f44612411 | ||
2105 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
2106 | Date: Mon Feb 15 09:47:49 2016 +0000 | ||
2107 | |||
2108 | upstream commit | ||
2109 | |||
2110 | Add a function to enable security-related malloc_options. | ||
2111 | With and ok deraadt@, something similar has been in the snaps for a while. | ||
2112 | |||
2113 | Upstream-ID: 43a95523b832b7f3b943d2908662191110c380ed | ||
2114 | |||
2115 | commit ef39e8c0497ff0564990a4f9e8b7338b3ba3507c | ||
2116 | Author: Damien Miller <djm@mindrot.org> | ||
2117 | Date: Tue Feb 16 10:34:39 2016 +1100 | ||
2118 | |||
2119 | sync ssh-copy-id with upstream 783ef08b0a75 | ||
2120 | |||
2121 | commit d2d772f55b19bb0e8d03c2fe1b9bb176d9779efd | ||
2122 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2123 | Date: Fri Feb 12 00:20:30 2016 +0000 | ||
2124 | |||
2125 | upstream commit | ||
2126 | |||
2127 | avoid fatal() for PKCS11 tokens that present empty key IDs | ||
2128 | bz#1773, ok markus@ | ||
2129 | |||
2130 | Upstream-ID: 044a764fee526f2c4a9d530bd10695422d01fc54 | ||
2131 | |||
2132 | commit e4c918a6c721410792b287c9fd21356a1bed5805 | ||
2133 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2134 | Date: Thu Feb 11 02:56:32 2016 +0000 | ||
2135 | |||
2136 | upstream commit | ||
2137 | |||
2138 | sync crypto algorithm lists in ssh_config(5) and | ||
2139 | sshd_config(5) with current reality. bz#2527 | ||
2140 | |||
2141 | Upstream-ID: d7fd1b6c1ed848d866236bcb1d7049d2bb9b2ff6 | ||
2142 | |||
2143 | commit e30cabfa4ab456a30b3224f7f545f1bdfc4a2517 | ||
2144 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2145 | Date: Thu Feb 11 02:21:34 2016 +0000 | ||
2146 | |||
2147 | upstream commit | ||
2148 | |||
2149 | fix regression in openssh-6.8 sftp client: existing | ||
2150 | destination directories would incorrectly terminate recursive uploads; | ||
2151 | bz#2528 | ||
2152 | |||
2153 | Upstream-ID: 3306be469f41f26758e3d447987ac6d662623e18 | ||
2154 | |||
2155 | commit 714e367226ded4dc3897078be48b961637350b05 | ||
2156 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2157 | Date: Tue Feb 9 05:30:04 2016 +0000 | ||
2158 | |||
2159 | upstream commit | ||
2160 | |||
2161 | turn off more old crypto in the client: hmac-md5, ripemd, | ||
2162 | truncated HMACs, RC4, blowfish. ok markus@ dtucker@ | ||
2163 | |||
2164 | Upstream-ID: 96aa11c2c082be45267a690c12f1d2aae6acd46e | ||
2165 | |||
2166 | commit 5a622844ff7f78dcb75e223399f9ef0977e8d0a3 | ||
2167 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2168 | Date: Mon Feb 8 23:40:12 2016 +0000 | ||
2169 | |||
2170 | upstream commit | ||
2171 | |||
2172 | don't attempt to percent_expand() already-canonicalised | ||
2173 | addresses, avoiding unnecessary failures when attempting to connect to scoped | ||
2174 | IPv6 addresses (that naturally contain '%' characters) | ||
2175 | |||
2176 | Upstream-ID: f24569cffa1a7cbde5f08dc739a72f4d78aa5c6a | ||
2177 | |||
2178 | commit 19bcf2ea2d17413f2d9730dd2a19575ff86b9b6a | ||
2179 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2180 | Date: Mon Feb 8 10:57:07 2016 +0000 | ||
2181 | |||
2182 | upstream commit | ||
2183 | |||
2184 | refactor activation of rekeying | ||
2185 | |||
2186 | This makes automatic rekeying internal to the packet code (previously | ||
2187 | the server and client loops needed to assist). In doing to it makes | ||
2188 | application of rekey limits more accurate by accounting for packets | ||
2189 | about to be sent as well as packets queued during rekeying events | ||
2190 | themselves. | ||
2191 | |||
2192 | Based on a patch from dtucker@ which was in turn based on a patch | ||
2193 | Aleksander Adamowski in bz#2521; ok markus@ | ||
2194 | |||
2195 | Upstream-ID: a441227fd64f9739850ca97b4cf794202860fcd8 | ||
2196 | |||
2197 | commit 603ba41179e4b53951c7b90ee95b6ef3faa3f15d | ||
2198 | Author: naddy@openbsd.org <naddy@openbsd.org> | ||
2199 | Date: Fri Feb 5 13:28:19 2016 +0000 | ||
2200 | |||
2201 | upstream commit | ||
2202 | |||
2203 | Only check errno if read() has returned an error. EOF is | ||
2204 | not an error. This fixes a problem where the mux master would sporadically | ||
2205 | fail to notice that the client had exited. ok mikeb@ djm@ | ||
2206 | |||
2207 | Upstream-ID: 3c2dadc21fac6ef64665688aac8a75fffd57ae53 | ||
2208 | |||
2209 | commit 56d7dac790693ce420d225119283bc355cff9185 | ||
2210 | Author: jsg@openbsd.org <jsg@openbsd.org> | ||
2211 | Date: Fri Feb 5 04:31:21 2016 +0000 | ||
2212 | |||
2213 | upstream commit | ||
2214 | |||
2215 | avoid an uninitialised value when NumberOfPasswordPrompts | ||
2216 | is 0 ok markus@ djm@ | ||
2217 | |||
2218 | Upstream-ID: 11b068d83c2865343aeb46acf1e9eec00f829b6b | ||
2219 | |||
2220 | commit deae7d52d59c5019c528f977360d87fdda15d20b | ||
2221 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2222 | Date: Fri Feb 5 03:07:06 2016 +0000 | ||
2223 | |||
2224 | upstream commit | ||
2225 | |||
2226 | mention internal DH-GEX fallback groups; bz#2302 | ||
2227 | |||
2228 | Upstream-ID: e7b395fcca3122cd825515f45a2e41c9a157e09e | ||
2229 | |||
2230 | commit cac3b6665f884d46192c0dc98a64112e8b11a766 | ||
2231 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2232 | Date: Fri Feb 5 02:37:56 2016 +0000 | ||
2233 | |||
2234 | upstream commit | ||
2235 | |||
2236 | better description for MaxSessions; bz#2531 | ||
2237 | |||
2238 | Upstream-ID: e2c0d74ee185cd1a3e9d4ca1f1b939b745b354da | ||
2239 | |||
2240 | commit 5ef4b0fdcc7a239577a754829b50022b91ab4712 | ||
2241 | Author: Damien Miller <djm@mindrot.org> | ||
2242 | Date: Wed Jan 27 17:45:56 2016 +1100 | ||
2243 | |||
2244 | avoid FreeBSD RCS Id in comment | ||
2245 | |||
2246 | Change old $FreeBSD version string in comment so it doesn't | ||
2247 | become an RCS ident downstream; requested by des AT des.no | ||
2248 | |||
2249 | commit 696d12683c90d20a0a9c5f4275fc916b7011fb04 | ||
2250 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2251 | Date: Thu Feb 4 23:43:48 2016 +0000 | ||
2252 | |||
2253 | upstream commit | ||
2254 | |||
2255 | printf argument casts to avoid warnings on strict | ||
2256 | compilers | ||
2257 | |||
2258 | Upstream-ID: 7b9f6712cef01865ad29070262d366cf13587c9c | ||
2259 | |||
2260 | commit 5658ef2501e785fbbdf5de2dc33b1ff7a4dca73a | ||
2261 | Author: millert@openbsd.org <millert@openbsd.org> | ||
2262 | Date: Mon Feb 1 21:18:17 2016 +0000 | ||
2263 | |||
2264 | upstream commit | ||
2265 | |||
2266 | Avoid ugly "DISPLAY "(null)" invalid; disabling X11 | ||
2267 | forwarding" message when DISPLAY is not set. This could also result in a | ||
2268 | crash on systems with a printf that doesn't handle NULL. OK djm@ | ||
2269 | |||
2270 | Upstream-ID: 20ee0cfbda678a247264c20ed75362042b90b412 | ||
2271 | |||
2272 | commit 537f88ec7bcf40bd444ac5584c707c5588c55c43 | ||
2273 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
2274 | Date: Fri Jan 29 05:18:15 2016 +0000 | ||
2275 | |||
2276 | upstream commit | ||
2277 | |||
2278 | Add regression test for RekeyLimit parsing of >32bit values | ||
2279 | (4G and 8G). | ||
2280 | |||
2281 | Upstream-Regress-ID: 548390350c62747b6234f522a99c319eee401328 | ||
2282 | |||
2283 | commit 4c6cb8330460f94e6c7ae28a364236d4188156a3 | ||
2284 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
2285 | Date: Fri Jan 29 23:04:46 2016 +0000 | ||
2286 | |||
2287 | upstream commit | ||
2288 | |||
2289 | Remove leftover roaming dead code. ok djm markus. | ||
2290 | |||
2291 | Upstream-ID: 13d1f9c8b65a5109756bcfd3b74df949d53615be | ||
2292 | |||
2293 | commit 28136471809806d6246ef41e4341467a39fe2f91 | ||
2294 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2295 | Date: Fri Jan 29 05:46:01 2016 +0000 | ||
2296 | |||
2297 | upstream commit | ||
2298 | |||
2299 | include packet type of non-data packets in debug3 output; | ||
2300 | ok markus dtucker | ||
2301 | |||
2302 | Upstream-ID: 034eaf639acc96459b9c5ce782db9fcd8bd02d41 | ||
2303 | |||
2304 | commit 6fd6e28daccafaa35f02741036abe64534c361a1 | ||
2305 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
2306 | Date: Fri Jan 29 03:31:03 2016 +0000 | ||
2307 | |||
2308 | upstream commit | ||
2309 | |||
2310 | Revert "account for packets buffered but not yet | ||
2311 | processed" change as it breaks for very small RekeyLimit values due to | ||
2312 | continuous rekeying. ok djm@ | ||
2313 | |||
2314 | Upstream-ID: 7e03f636cb45ab60db18850236ccf19079182a19 | ||
2315 | |||
2316 | commit 921ff00b0ac429666fb361d2d6cb1c8fff0006cb | ||
2317 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
2318 | Date: Fri Jan 29 02:54:45 2016 +0000 | ||
2319 | |||
2320 | upstream commit | ||
2321 | |||
2322 | Allow RekeyLimits in excess of 4G up to 2**63 bits | ||
2323 | (limited by the return type of scan_scaled). Part of bz#2521, ok djm. | ||
2324 | |||
2325 | Upstream-ID: 13bea82be566b9704821b1ea05bf7804335c7979 | ||
2326 | |||
2327 | commit c0060a65296f01d4634f274eee184c0e93ba0f23 | ||
2328 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
2329 | Date: Fri Jan 29 02:42:46 2016 +0000 | ||
2330 | |||
2331 | upstream commit | ||
2332 | |||
2333 | Account for packets buffered but not yet processed when | ||
2334 | computing whether or not it is time to perform rekeying. bz#2521, based | ||
2335 | loosely on a patch from olo at fb.com, ok djm@ | ||
2336 | |||
2337 | Upstream-ID: 67e268b547f990ed220f3cb70a5624d9bda12b8c | ||
2338 | |||
2339 | commit 44cf930e670488c85c9efeb373fa5f4b455692ac | ||
2340 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2341 | Date: Wed Jan 27 06:44:58 2016 +0000 | ||
2342 | |||
2343 | upstream commit | ||
2344 | |||
2345 | change old $FreeBSD version string in comment so it doesn't | ||
2346 | become an RCS ident downstream; requested by des AT des.no | ||
2347 | |||
2348 | Upstream-ID: 8ca558c01f184e596b45e4fc8885534b2c864722 | ||
2349 | |||
2350 | commit ebacd377769ac07d1bf3c75169644336056b7060 | ||
2351 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2352 | Date: Wed Jan 27 00:53:12 2016 +0000 | ||
2353 | |||
2354 | upstream commit | ||
2355 | |||
2356 | make the debug messages a bit more useful here | ||
2357 | |||
2358 | Upstream-ID: 478ccd4e897e0af8486b294aa63aa3f90ab78d64 | ||
2359 | |||
2360 | commit 458abc2934e82034c5c281336d8dc0f910aecad3 | ||
2361 | Author: jsg@openbsd.org <jsg@openbsd.org> | ||
2362 | Date: Sat Jan 23 05:31:35 2016 +0000 | ||
2363 | |||
2364 | upstream commit | ||
2365 | |||
2366 | Zero a stack buffer with explicit_bzero() instead of | ||
2367 | memset() when returning from client_loop() for consistency with | ||
2368 | buffer_free()/sshbuf_free(). | ||
2369 | |||
2370 | ok dtucker@ deraadt@ djm@ | ||
2371 | |||
2372 | Upstream-ID: bc9975b2095339811c3b954694d7d15ea5c58f66 | ||
2373 | |||
2374 | commit 65a3c0dacbc7dbb75ddb6a70ebe22d8de084d0b0 | ||
2375 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
2376 | Date: Wed Jan 20 09:22:39 2016 +0000 | ||
2377 | |||
2378 | upstream commit | ||
2379 | |||
2380 | Include sys/time.h for gettimeofday. From sortie at | ||
2381 | maxsi.org. | ||
2382 | |||
2383 | Upstream-ID: 6ed0c33b836d9de0a664cd091e86523ecaa2fb3b | ||
2384 | |||
2385 | commit fc77ccdc2ce6d5d06628b8da5048a6a5f6ffca5a | ||
2386 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2387 | Date: Thu Jan 14 22:56:56 2016 +0000 | ||
2388 | |||
2389 | upstream commit | ||
2390 | |||
2391 | fd leaks; report Qualys Security Advisory team; ok | ||
2392 | deraadt@ | ||
2393 | |||
2394 | Upstream-ID: 4ec0f12b9d8fa202293c9effa115464185aa071d | ||
2395 | |||
2396 | commit a306863831c57ec5fad918687cc5d289ee8e2635 | ||
2397 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2398 | Date: Thu Jan 14 16:17:39 2016 +0000 | ||
2399 | |||
2400 | upstream commit | ||
2401 | |||
2402 | remove roaming support; ok djm@ | ||
2403 | |||
2404 | Upstream-ID: 2cab8f4b197bc95776fb1c8dc2859dad0c64dc56 | ||
2405 | |||
2406 | commit 6ef49e83e30688504552ac10875feabd5521565f | ||
2407 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
2408 | Date: Thu Jan 14 14:34:34 2016 +0000 | ||
2409 | |||
2410 | upstream commit | ||
2411 | |||
2412 | Disable experimental client-side roaming support. Server | ||
2413 | side was disabled/gutted for years already, but this aspect was surprisingly | ||
2414 | forgotten. Thanks for report from Qualys | ||
2415 | |||
2416 | Upstream-ID: 2328004b58f431a554d4c1bf67f5407eae3389df | ||
2417 | |||
2418 | commit 8d7b523b96d3be180572d9d338cedaafc0570f60 | ||
2419 | Author: Damien Miller <djm@mindrot.org> | ||
2420 | Date: Thu Jan 14 11:08:19 2016 +1100 | ||
2421 | |||
2422 | bump version numbers | ||
2423 | |||
2424 | commit 8c3d512a1fac8b9c83b4d0c9c3f2376290bd84ca | ||
2425 | Author: Damien Miller <djm@mindrot.org> | ||
2426 | Date: Thu Jan 14 11:04:04 2016 +1100 | ||
2427 | |||
2428 | openssh-7.1p2 | ||
2429 | |||
2430 | commit e6c85f8889c5c9eb04796fdb76d2807636b9eef5 | ||
2431 | Author: Damien Miller <djm@mindrot.org> | ||
2432 | Date: Fri Jan 15 01:30:36 2016 +1100 | ||
2433 | |||
2434 | forcibly disable roaming support in the client | ||
2435 | |||
2436 | commit ed4ce82dbfa8a3a3c8ea6fa0db113c71e234416c | ||
2437 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2438 | Date: Wed Jan 13 23:04:47 2016 +0000 | ||
2439 | |||
2440 | upstream commit | ||
2441 | |||
2442 | eliminate fallback from untrusted X11 forwarding to trusted | ||
2443 | forwarding when the X server disables the SECURITY extension; Reported by | ||
2444 | Thomas Hoger; ok deraadt@ | ||
2445 | |||
2446 | Upstream-ID: f76195bd2064615a63ef9674a0e4096b0713f938 | ||
2447 | |||
2448 | commit 9a728cc918fad67c8a9a71201088b1e150340ba4 | ||
2449 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2450 | Date: Tue Jan 12 23:42:54 2016 +0000 | ||
2451 | |||
2452 | upstream commit | ||
2453 | |||
2454 | use explicit_bzero() more liberally in the buffer code; ok | ||
2455 | deraadt | ||
2456 | |||
2457 | Upstream-ID: 0ece37069fd66bc6e4f55eb1321f93df372b65bf | ||
2458 | |||
2459 | commit 4626cbaf78767fc8e9c86dd04785386c59ae0839 | ||
2460 | Author: Damien Miller <djm@mindrot.org> | ||
2461 | Date: Fri Jan 8 14:24:56 2016 +1100 | ||
2462 | |||
2463 | Support Illumos/Solaris fine-grained privileges | ||
2464 | |||
2465 | Includes a pre-auth privsep sandbox and several pledge() | ||
2466 | emulations. bz#2511, patch by Alex Wilson. | ||
2467 | |||
2468 | ok dtucker@ | ||
2469 | |||
2470 | commit 422d1b3ee977ff4c724b597fb2e437d38fc8de9d | ||
2471 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2472 | Date: Thu Dec 31 00:33:52 2015 +0000 | ||
2473 | |||
2474 | upstream commit | ||
2475 | |||
2476 | fix three bugs in KRL code related to (unused) signature | ||
2477 | support: verification length was being incorrectly calculated, multiple | ||
2478 | signatures were being incorrectly processed and a NULL dereference that | ||
2479 | occurred when signatures were verified. Reported by Carl Jackson | ||
2480 | |||
2481 | Upstream-ID: e705e97ad3ccce84291eaa651708dd1b9692576b | ||
2482 | |||
2483 | commit 6074c84bf95d00f29cc7d5d3cd3798737851aa1a | ||
2484 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2485 | Date: Wed Dec 30 23:46:14 2015 +0000 | ||
2486 | |||
2487 | upstream commit | ||
2488 | |||
2489 | unused prototype | ||
2490 | |||
2491 | Upstream-ID: f3eef4389d53ed6c0d5c77dcdcca3060c745da97 | ||
2492 | |||
2493 | commit 6213f0e180e54122bb1ba928e11c784e2b4e5380 | ||
2494 | Author: guenther@openbsd.org <guenther@openbsd.org> | ||
2495 | Date: Sat Dec 26 20:51:35 2015 +0000 | ||
2496 | |||
2497 | upstream commit | ||
2498 | |||
2499 | Use pread/pwrite instead separate lseek+read/write for | ||
2500 | lastlog. Cast to off_t before multiplication to avoid truncation on ILP32 | ||
2501 | |||
2502 | ok kettenis@ mmcc@ | ||
2503 | |||
2504 | Upstream-ID: fc40092568cd195719ddf1a00aa0742340d616cf | ||
2505 | |||
2506 | commit d7d2bc95045a43dd56ea696cc1d030ac9d77e81f | ||
2507 | Author: semarie@openbsd.org <semarie@openbsd.org> | ||
2508 | Date: Sat Dec 26 07:46:03 2015 +0000 | ||
2509 | |||
2510 | upstream commit | ||
2511 | |||
2512 | adjust pledge promises for ControlMaster: when using | ||
2513 | "ask" or "autoask", the process will use ssh-askpass for asking confirmation. | ||
2514 | |||
2515 | problem found by halex@ | ||
2516 | |||
2517 | ok halex@ | ||
2518 | |||
2519 | Upstream-ID: 38a58b30ae3eef85051c74d3c247216ec0735f80 | ||
2520 | |||
2521 | commit 271df8185d9689b3fb0523f58514481b858f6843 | ||
2522 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2523 | Date: Sun Dec 13 22:42:23 2015 +0000 | ||
2524 | |||
2525 | upstream commit | ||
2526 | |||
2527 | unbreak connections with peers that set | ||
2528 | first_kex_follows; fix from Matt Johnston va bz#2515 | ||
2529 | |||
2530 | Upstream-ID: decc88ec4fc7515594fdb42b04aa03189a44184b | ||
2531 | |||
2532 | commit 43849a47c5f8687699eafbcb5604f6b9c395179f | ||
2533 | Author: doug@openbsd.org <doug@openbsd.org> | ||
2534 | Date: Fri Dec 11 17:41:37 2015 +0000 | ||
2535 | |||
2536 | upstream commit | ||
2537 | |||
2538 | Add "id" to ssh-agent pledge for subprocess support. | ||
2539 | |||
2540 | Found the hard way by Jan Johansson when using ssh-agent with X. Also, | ||
2541 | rearranged proc/exec and retval to match other pledge calls in the tree. | ||
2542 | |||
2543 | ok djm@ | ||
2544 | |||
2545 | Upstream-ID: 914255f6850e5e7fa830a2de6c38605333b584db | ||
2546 | |||
2547 | commit 52d7078421844b2f88329f5be3de370b0a938636 | ||
2548 | Author: mmcc@openbsd.org <mmcc@openbsd.org> | ||
2549 | Date: Fri Dec 11 04:21:11 2015 +0000 | ||
2550 | |||
2551 | upstream commit | ||
2552 | |||
2553 | Remove NULL-checks before sshbuf_free(). | ||
2554 | |||
2555 | ok djm@ | ||
2556 | |||
2557 | Upstream-ID: 5ebed00ed5f9f03b119a345085e8774565466917 | ||
2558 | |||
2559 | commit a4b9e0f4e4a6980a0eb8072f76ea611cab5b77e7 | ||
2560 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2561 | Date: Fri Dec 11 03:24:25 2015 +0000 | ||
2562 | |||
2563 | upstream commit | ||
2564 | |||
2565 | include remote port number in a few more messages; makes | ||
2566 | tying log messages together into a session a bit easier; bz#2503 ok dtucker@ | ||
2567 | |||
2568 | Upstream-ID: 9300dc354015f7a7368d94a8ff4a4266a69d237e | ||
2569 | |||
2570 | commit 6091c362e89079397e68744ae30df121b0a72c07 | ||
2571 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2572 | Date: Fri Dec 11 03:20:09 2015 +0000 | ||
2573 | |||
2574 | upstream commit | ||
2575 | |||
2576 | don't try to load SSHv1 private key when compiled without | ||
2577 | SSHv1 support. From Iain Morgan bz#2505 | ||
2578 | |||
2579 | Upstream-ID: 8b8e7b02a448cf5e5635979df2d83028f58868a7 | ||
2580 | |||
2581 | commit cce6a36bb95e81fa8bfb46daf22eabcf13afc352 | ||
2582 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2583 | Date: Fri Dec 11 03:19:09 2015 +0000 | ||
2584 | |||
2585 | upstream commit | ||
2586 | |||
2587 | use SSH_MAX_PUBKEY_BYTES consistently as buffer size when | ||
2588 | reading key files. Increase it to match the size of the buffers already being | ||
2589 | used. | ||
2590 | |||
2591 | Upstream-ID: 1b60586b484b55a947d99a0b32bd25e0ced56fae | ||
2592 | |||
2593 | commit 89540b6de025b80404a0cb8418c06377f3f98848 | ||
2594 | Author: mmcc@openbsd.org <mmcc@openbsd.org> | ||
2595 | Date: Fri Dec 11 02:31:47 2015 +0000 | ||
2596 | |||
2597 | upstream commit | ||
2598 | |||
2599 | Remove NULL-checks before sshkey_free(). | ||
2600 | |||
2601 | ok djm@ | ||
2602 | |||
2603 | Upstream-ID: 3e35afe8a25e021216696b5d6cde7f5d2e5e3f52 | ||
2604 | |||
2605 | commit 79394ed6d74572c2d2643d73937dad33727fc240 | ||
2606 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
2607 | Date: Fri Dec 11 02:29:03 2015 +0000 | ||
2608 | |||
2609 | upstream commit | ||
2610 | |||
2611 | fflush stdout so that output is seen even when running in | ||
2612 | debug mode when output may otherwise not be flushed. Patch from dustin at | ||
2613 | null-ptr.net. | ||
2614 | |||
2615 | Upstream-ID: b0c6b4cd2cdb01d7e9eefbffdc522e35b5bc4acc | ||
2616 | |||
2617 | commit ee607cccb6636eb543282ba90e0677b0604d8b7a | ||
2618 | Author: Darren Tucker <dtucker@zip.com.au> | ||
2619 | Date: Tue Dec 15 15:23:49 2015 +1100 | ||
2620 | |||
2621 | Increase robustness of redhat/openssh.spec | ||
2622 | |||
2623 | - remove configure --with-rsh, because this option isn't supported anymore | ||
2624 | - replace last occurrence of BuildPreReq by BuildRequires | ||
2625 | - update grep statement to query the krb5 include directory | ||
2626 | |||
2627 | Patch from CarstenGrohmann via github, ok djm. | ||
2628 | |||
2629 | commit b5fa0cd73555b991a543145603658d7088ec6b60 | ||
2630 | Author: Darren Tucker <dtucker@zip.com.au> | ||
2631 | Date: Tue Dec 15 15:10:32 2015 +1100 | ||
2632 | |||
2633 | Allow --without-ssl-engine with --without-openssl | ||
2634 | |||
2635 | Patch from Mike Frysinger via github. | ||
2636 | |||
2637 | commit c1d7e546f6029024f3257cc25c92f2bddf163125 | ||
2638 | Author: Darren Tucker <dtucker@zip.com.au> | ||
2639 | Date: Tue Dec 15 14:27:09 2015 +1100 | ||
2640 | |||
2641 | Include openssl crypto.h for SSLeay. | ||
2642 | |||
2643 | Patch from doughdemon via github. | ||
2644 | |||
2645 | commit c6f5f01651526e88c00d988ce59d71f481ebac62 | ||
2646 | Author: Darren Tucker <dtucker@zip.com.au> | ||
2647 | Date: Tue Dec 15 13:59:12 2015 +1100 | ||
2648 | |||
2649 | Add sys/time.h for gettimeofday. | ||
2650 | |||
2651 | Should allow it it compile with MUSL libc. Based on patch from | ||
2652 | doughdemon via github. | ||
2653 | |||
2654 | commit 39736be06c7498ef57d6970f2d85cf066ae57c82 | ||
2655 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2656 | Date: Fri Dec 11 02:20:28 2015 +0000 | ||
2657 | |||
2658 | upstream commit | ||
2659 | |||
2660 | correct error messages; from Tomas Kuthan bz#2507 | ||
2661 | |||
2662 | Upstream-ID: 7454a0affeab772398052954c79300aa82077093 | ||
2663 | |||
2664 | commit 94141b7ade24afceeb6762a3f99e09e47a6c42b6 | ||
2665 | Author: mmcc@openbsd.org <mmcc@openbsd.org> | ||
2666 | Date: Fri Dec 11 00:20:04 2015 +0000 | ||
2667 | |||
2668 | upstream commit | ||
2669 | |||
2670 | Pass (char *)NULL rather than (char *)0 to execl and | ||
2671 | execlp. | ||
2672 | |||
2673 | ok dtucker@ | ||
2674 | |||
2675 | Upstream-ID: 56c955106cbddba86c3dd9bbf786ac0d1b361492 | ||
2676 | |||
2677 | commit d59ce08811bf94111c2f442184cf7d1257ffae24 | ||
2678 | Author: mmcc@openbsd.org <mmcc@openbsd.org> | ||
2679 | Date: Thu Dec 10 17:08:40 2015 +0000 | ||
2680 | |||
2681 | upstream commit | ||
2682 | |||
2683 | Remove NULL-checks before free(). | ||
2684 | |||
2685 | ok dtucker@ | ||
2686 | |||
2687 | Upstream-ID: e3d3cb1ce900179906af36517b5eea0fb15e6ef8 | ||
2688 | |||
2689 | commit 8e56dd46cb37879c73bce2d6032cf5e7f82d5a71 | ||
2690 | Author: mmcc@openbsd.org <mmcc@openbsd.org> | ||
2691 | Date: Thu Dec 10 07:01:35 2015 +0000 | ||
2692 | |||
2693 | upstream commit | ||
2694 | |||
2695 | Fix a couple "the the" typos. ok dtucker@ | ||
2696 | |||
2697 | Upstream-ID: ec364c5af32031f013001fd28d1bd3dfacfe9a72 | ||
2698 | |||
2699 | commit 6262a0522ddc2c0f2e9358dcb68d59b46e9c533e | ||
2700 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2701 | Date: Mon Dec 7 20:04:09 2015 +0000 | ||
2702 | |||
2703 | upstream commit | ||
2704 | |||
2705 | stricter encoding type checks for ssh-rsa; ok djm@ | ||
2706 | |||
2707 | Upstream-ID: 8cca7c787599a5e8391e184d0b4f36fdc3665650 | ||
2708 | |||
2709 | commit d86a3ba7af160c13496102aed861ae48a4297072 | ||
2710 | Author: Damien Miller <djm@mindrot.org> | ||
2711 | Date: Wed Dec 9 09:18:45 2015 +1100 | ||
2712 | |||
2713 | Don't set IPV6_V6ONLY on OpenBSD | ||
2714 | |||
2715 | It isn't necessary and runs afoul of pledge(2) restrictions. | ||
2716 | |||
2717 | commit da98c11d03d819a15429d8fff9688acd7505439f | ||
2718 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2719 | Date: Mon Dec 7 02:20:46 2015 +0000 | ||
2720 | |||
2721 | upstream commit | ||
2722 | |||
2723 | basic unit tests for rsa-sha2-* signature types | ||
2724 | |||
2725 | Upstream-Regress-ID: 7dc4b9db809d578ff104d591b4d86560c3598d3c | ||
2726 | |||
2727 | commit 3da893fdec9936dd2c23739cdb3c0c9d4c59fca0 | ||
2728 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2729 | Date: Sat Dec 5 20:53:21 2015 +0000 | ||
2730 | |||
2731 | upstream commit | ||
2732 | |||
2733 | prefer rsa-sha2-512 over -256 for hostkeys, too; noticed | ||
2734 | by naddy@ | ||
2735 | |||
2736 | Upstream-ID: 685f55f7ec566a8caca587750672723a0faf3ffe | ||
2737 | |||
2738 | commit 8b56e59714d87181505e4678f0d6d39955caf10e | ||
2739 | Author: tobias@openbsd.org <tobias@openbsd.org> | ||
2740 | Date: Fri Dec 4 21:51:06 2015 +0000 | ||
2741 | |||
2742 | upstream commit | ||
2743 | |||
2744 | Properly handle invalid %-format by calling fatal. | ||
2745 | |||
2746 | ok deraadt, djm | ||
2747 | |||
2748 | Upstream-ID: 5692bce7d9f6eaa9c488cb93d3b55e758bef1eac | ||
2749 | |||
2750 | commit 76c9fbbe35aabc1db977fb78e827644345e9442e | ||
2751 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2752 | Date: Fri Dec 4 16:41:28 2015 +0000 | ||
2753 | |||
2754 | upstream commit | ||
2755 | |||
2756 | implement SHA2-{256,512} for RSASSA-PKCS1-v1_5 signatures | ||
2757 | (user and host auth) based on draft-rsa-dsa-sha2-256-03.txt and | ||
2758 | draft-ssh-ext-info-04.txt; with & ok djm@ | ||
2759 | |||
2760 | Upstream-ID: cf82ce532b2733e5c4b34bb7b7c94835632db309 | ||
2761 | |||
2762 | commit 6064a8b8295cb5a17b5ebcfade53053377714f40 | ||
2763 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2764 | Date: Fri Dec 4 00:24:55 2015 +0000 | ||
2765 | |||
2766 | upstream commit | ||
2767 | |||
2768 | clean up agent_fd handling; properly initialise it to -1 | ||
2769 | and make tests consistent | ||
2770 | |||
2771 | ok markus@ | ||
2772 | |||
2773 | Upstream-ID: ac9554323d5065745caf17b5e37cb0f0d4825707 | ||
2774 | |||
2775 | commit b91926a97620f3e51761c271ba57aa5db790f48d | ||
2776 | Author: semarie@openbsd.org <semarie@openbsd.org> | ||
2777 | Date: Thu Dec 3 17:00:18 2015 +0000 | ||
2778 | |||
2779 | upstream commit | ||
2780 | |||
2781 | pledges ssh client: - mux client: which is used when | ||
2782 | ControlMaster is in use. will end with "stdio proc tty" (proc is to | ||
2783 | permit sending SIGWINCH to mux master on window resize) | ||
2784 | |||
2785 | - client loop: several levels of pledging depending of your used options | ||
2786 | |||
2787 | ok deraadt@ | ||
2788 | |||
2789 | Upstream-ID: 21676155a700e51f2ce911e33538e92a2cd1d94b | ||
2790 | |||
2791 | commit bcce47466bbc974636f588b5e4a9a18ae386f64a | ||
2792 | Author: doug@openbsd.org <doug@openbsd.org> | ||
2793 | Date: Wed Dec 2 08:30:50 2015 +0000 | ||
2794 | |||
2795 | upstream commit | ||
2796 | |||
2797 | Add "cpath" to the ssh-agent pledge so the cleanup | ||
2798 | handler can unlink(). | ||
2799 | |||
2800 | ok djm@ | ||
2801 | |||
2802 | Upstream-ID: 9e632991d48241d56db645602d381253a3d8c29d | ||
2803 | |||
2804 | commit a90d001543f46716b6590c6dcc681d5f5322f8cf | ||
2805 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2806 | Date: Wed Dec 2 08:00:58 2015 +0000 | ||
2807 | |||
2808 | upstream commit | ||
2809 | |||
2810 | ssh-agent pledge needs proc for askpass; spotted by todd@ | ||
2811 | |||
2812 | Upstream-ID: 349aa261b29cc0e7de47ef56167769c432630b2a | ||
2813 | |||
2814 | commit d952162b3c158a8f23220587bb6c8fcda75da551 | ||
2815 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2816 | Date: Tue Dec 1 23:29:24 2015 +0000 | ||
2817 | |||
2818 | upstream commit | ||
2819 | |||
2820 | basic pledge() for ssh-agent, more refinement needed | ||
2821 | |||
2822 | Upstream-ID: 5b5b03c88162fce549e45e1b6dd833f20bbb5e13 | ||
2823 | |||
2824 | commit f0191d7c8e76e30551084b79341886d9bb38e453 | ||
2825 | Author: Damien Miller <djm@mindrot.org> | ||
2826 | Date: Mon Nov 30 10:53:25 2015 +1100 | ||
2827 | |||
2828 | Revert "stub for pledge(2) for systems that lack it" | ||
2829 | |||
2830 | This reverts commit 14c887c8393adde2d9fd437d498be30f8c98535c. | ||
2831 | |||
2832 | dtucker beat me to it :/ | ||
2833 | |||
2834 | commit 6283cc72eb0e49a3470d30e07ca99a1ba9e89676 | ||
2835 | Author: Damien Miller <djm@mindrot.org> | ||
2836 | Date: Mon Nov 30 10:37:03 2015 +1100 | ||
2837 | |||
2838 | revert 7d4c7513: bring back S/Key prototypes | ||
2839 | |||
2840 | (but leave RCSID changes) | ||
2841 | |||
2842 | commit 14c887c8393adde2d9fd437d498be30f8c98535c | ||
2843 | Author: Damien Miller <djm@mindrot.org> | ||
2844 | Date: Mon Nov 30 09:45:29 2015 +1100 | ||
2845 | |||
2846 | stub for pledge(2) for systems that lack it | ||
2847 | |||
2848 | commit 452c0b6af5d14c37553e30059bf74456012493f3 | ||
2849 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2850 | Date: Sun Nov 29 22:18:37 2015 +0000 | ||
2851 | |||
2852 | upstream commit | ||
2853 | |||
2854 | pledge, better fatal() messages; feedback deraadt@ | ||
2855 | |||
2856 | Upstream-ID: 3e00f6ccfe2b9a7a2d1dbba5409586180801488f | ||
2857 | |||
2858 | commit 6da413c085dba37127687b2617a415602505729b | ||
2859 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
2860 | Date: Sat Nov 28 06:50:52 2015 +0000 | ||
2861 | |||
2862 | upstream commit | ||
2863 | |||
2864 | do not leak temp file if there is no known_hosts file | ||
2865 | from craig leres, ok djm | ||
2866 | |||
2867 | Upstream-ID: c820497fd5574844c782e79405c55860f170e426 | ||
2868 | |||
2869 | commit 3ddd15e1b63a4d4f06c8ab16fbdd8a5a61764f16 | ||
2870 | Author: Darren Tucker <dtucker@zip.com.au> | ||
2871 | Date: Mon Nov 30 07:23:53 2015 +1100 | ||
2872 | |||
2873 | Add a null implementation of pledge. | ||
2874 | |||
2875 | Fixes builds on almost everything. | ||
2876 | |||
2877 | commit b1d6b3971ef256a08692efc409fc9ada719111cc | ||
2878 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2879 | Date: Sat Nov 28 06:41:03 2015 +0000 | ||
2880 | |||
2881 | upstream commit | ||
2882 | |||
2883 | don't include port number in tcpip-forward replies for | ||
2884 | requests that don't allocate a port; bz#2509 diagnosed by Ron Frederick ok | ||
2885 | markus | ||
2886 | |||
2887 | Upstream-ID: 77efad818addb61ec638b5a2362f1554e21a970a | ||
2888 | |||
2889 | commit 9080bd0b9cf10d0f13b1f642f20cb84285cb8d65 | ||
2890 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
2891 | Date: Fri Nov 27 00:49:31 2015 +0000 | ||
2892 | |||
2893 | upstream commit | ||
2894 | |||
2895 | pledge "stdio rpath wpath cpath fattr tty proc exec" | ||
2896 | except for the -p option (which sadly has insane semantics...) ok semarie | ||
2897 | dtucker | ||
2898 | |||
2899 | Upstream-ID: 8854bbd58279abe00f6c33f8094bdc02c8c65059 | ||
2900 | |||
2901 | commit 4d90625b229cf6b3551d81550a9861897509a65f | ||
2902 | Author: halex@openbsd.org <halex@openbsd.org> | ||
2903 | Date: Fri Nov 20 23:04:01 2015 +0000 | ||
2904 | |||
2905 | upstream commit | ||
2906 | |||
2907 | allow comment change for all supported formats | ||
2908 | |||
2909 | ok djm@ | ||
2910 | |||
2911 | Upstream-ID: 5fc477cf2f119b2d44aa9c683af16cb00bb3744b | ||
2912 | |||
2913 | commit 8ca915fc761519dd1f7766a550ec597a81db5646 | ||
2914 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2915 | Date: Fri Nov 20 01:45:29 2015 +0000 | ||
2916 | |||
2917 | upstream commit | ||
2918 | |||
2919 | add cast to make -Werror clean | ||
2920 | |||
2921 | Upstream-ID: 288db4f8f810bd475be01320c198250a04ff064d | ||
2922 | |||
2923 | commit ac9473580dcd401f8281305af98635cdaae9bf96 | ||
2924 | Author: Damien Miller <djm@mindrot.org> | ||
2925 | Date: Fri Nov 20 12:35:41 2015 +1100 | ||
2926 | |||
2927 | fix multiple authentication using S/Key w/ privsep | ||
2928 | |||
2929 | bz#2502, patch from Kevin Korb and feandil_ | ||
2930 | |||
2931 | commit 88b6fcdeb87a2fb76767854d9eb15006662dca57 | ||
2932 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2933 | Date: Thu Nov 19 08:23:27 2015 +0000 | ||
2934 | |||
2935 | upstream commit | ||
2936 | |||
2937 | ban ConnectionAttempts=0, it makes no sense and would cause | ||
2938 | ssh_connect_direct() to print an uninitialised stack variable; bz#2500 | ||
2939 | reported by dvw AT phas.ubc.ca | ||
2940 | |||
2941 | Upstream-ID: 32b5134c608270583a90b93a07b3feb3cbd5f7d5 | ||
2942 | |||
2943 | commit 964ab3ee7a8f96bdbc963d5b5a91933d6045ebe7 | ||
2944 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2945 | Date: Thu Nov 19 01:12:32 2015 +0000 | ||
2946 | |||
2947 | upstream commit | ||
2948 | |||
2949 | trailing whitespace | ||
2950 | |||
2951 | Upstream-ID: 31fe0ad7c4d08e87f1d69c79372f5e3c5cd79051 | ||
2952 | |||
2953 | commit f96516d052dbe38561f6b92b0e4365d8e24bb686 | ||
2954 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2955 | Date: Thu Nov 19 01:09:38 2015 +0000 | ||
2956 | |||
2957 | upstream commit | ||
2958 | |||
2959 | print host certificate contents at debug level | ||
2960 | |||
2961 | Upstream-ID: 39354cdd8a2b32b308fd03f98645f877f540f00d | ||
2962 | |||
2963 | commit 499cf36fecd6040e30e2912dd25655bc574739a7 | ||
2964 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2965 | Date: Thu Nov 19 01:08:55 2015 +0000 | ||
2966 | |||
2967 | upstream commit | ||
2968 | |||
2969 | move the certificate validity formatting code to | ||
2970 | sshkey.[ch] | ||
2971 | |||
2972 | Upstream-ID: f05f7c78fab20d02ff1d5ceeda533ef52e8fe523 | ||
2973 | |||
2974 | commit bcb7bc77bbb1535d1008c7714085556f3065d99d | ||
2975 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2976 | Date: Wed Nov 18 08:37:28 2015 +0000 | ||
2977 | |||
2978 | upstream commit | ||
2979 | |||
2980 | fix "ssh-keygen -l" of private key, broken in support for | ||
2981 | multiple plain keys on stdin | ||
2982 | |||
2983 | Upstream-ID: 6b3132d2c62d03d0bad6f2bcd7e2d8b7dab5cd9d | ||
2984 | |||
2985 | commit 259adb6179e23195c8f6913635ea71040d1ccd63 | ||
2986 | Author: millert@openbsd.org <millert@openbsd.org> | ||
2987 | Date: Mon Nov 16 23:47:52 2015 +0000 | ||
2988 | |||
2989 | upstream commit | ||
2990 | |||
2991 | Replace remaining calls to index(3) with strchr(3). OK | ||
2992 | jca@ krw@ | ||
2993 | |||
2994 | Upstream-ID: 33837d767a0cf1db1489b96055f9e330bc0bab6d | ||
2995 | |||
2996 | commit c56a255162c2166884539c0a1f7511575325b477 | ||
2997 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2998 | Date: Mon Nov 16 22:53:07 2015 +0000 | ||
2999 | |||
3000 | upstream commit | ||
3001 | |||
3002 | Allow fingerprinting from standard input "ssh-keygen -lf | ||
3003 | -" | ||
3004 | |||
3005 | Support fingerprinting multiple plain keys in a file and authorized_keys | ||
3006 | files too (bz#1319) | ||
3007 | |||
3008 | ok markus@ | ||
3009 | |||
3010 | Upstream-ID: 903f8b4502929d6ccf53509e4e07eae084574b77 | ||
3011 | |||
3012 | commit 5b4010d9b923cf1b46c9c7b1887c013c2967e204 | ||
3013 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3014 | Date: Mon Nov 16 22:51:05 2015 +0000 | ||
3015 | |||
3016 | upstream commit | ||
3017 | |||
3018 | always call privsep_preauth_child() regardless of whether | ||
3019 | sshd was started by root; it does important priming before sandboxing and | ||
3020 | failing to call it could result in sandbox violations later; ok markus@ | ||
3021 | |||
3022 | Upstream-ID: c8a6d0d56c42f3faab38460dc917ca0d1705d383 | ||
3023 | |||
3024 | commit 3a9f84b58b0534bbb485f1eeab75665e2d03371f | ||
3025 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3026 | Date: Mon Nov 16 22:50:01 2015 +0000 | ||
3027 | |||
3028 | upstream commit | ||
3029 | |||
3030 | improve sshkey_read() semantics; only update *cpp when a | ||
3031 | key is successfully read; ok markus@ | ||
3032 | |||
3033 | Upstream-ID: f371e78e8f4fab366cf69a42bdecedaed5d1b089 | ||
3034 | |||
3035 | commit db6f8dc5dd5655b59368efd074994d4568bc3556 | ||
3036 | Author: logan@openbsd.org <logan@openbsd.org> | ||
3037 | Date: Mon Nov 16 06:13:04 2015 +0000 | ||
3038 | |||
3039 | upstream commit | ||
3040 | |||
3041 | 1) Use xcalloc() instead of xmalloc() to check for | ||
3042 | potential overflow. (Feedback from both mmcc@ and djm@) 2) move set_size | ||
3043 | just before the for loop. (suggested by djm@) | ||
3044 | |||
3045 | OK djm@ | ||
3046 | |||
3047 | Upstream-ID: 013534c308187284756c3141f11d2c0f33c47213 | ||
3048 | |||
3049 | commit 383f10fb84a0fee3c01f9d97594f3e22aa3cd5e0 | ||
3050 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3051 | Date: Mon Nov 16 00:30:02 2015 +0000 | ||
3052 | |||
3053 | upstream commit | ||
3054 | |||
3055 | Add a new authorized_keys option "restrict" that | ||
3056 | includes all current and future key restrictions (no-*-forwarding, etc). Also | ||
3057 | add permissive versions of the existing restrictions, e.g. "no-pty" -> "pty". | ||
3058 | This simplifies the task of setting up restricted keys and ensures they are | ||
3059 | maximally-restricted, regardless of any permissions we might implement in the | ||
3060 | future. | ||
3061 | |||
3062 | Example: | ||
3063 | |||
3064 | restrict,pty,command="nethack" ssh-ed25519 AAAAC3NzaC1lZDI1... | ||
3065 | |||
3066 | Idea from Jann Horn; ok markus@ | ||
3067 | |||
3068 | Upstream-ID: 04ceb9d448e46e67e13887a7ae5ea45b4f1719d0 | ||
3069 | |||
3070 | commit e41a071f7bda6af1fb3f081bed0151235fa61f15 | ||
3071 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
3072 | Date: Sun Nov 15 23:58:04 2015 +0000 | ||
3073 | |||
3074 | upstream commit | ||
3075 | |||
3076 | correct section number for ssh-agent; | ||
3077 | |||
3078 | Upstream-ID: 44be72fd8bcc167635c49b357b1beea8d5674bd6 | ||
3079 | |||
3080 | commit 1a11670286acddcc19f5eff0966c380831fc4638 | ||
3081 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
3082 | Date: Sun Nov 15 23:54:15 2015 +0000 | ||
3083 | |||
3084 | upstream commit | ||
3085 | |||
3086 | do not confuse mandoc by presenting "Dd"; | ||
3087 | |||
3088 | Upstream-ID: 1470fce171c47b60bbc7ecd0fc717a442c2cfe65 | ||
3089 | |||
3090 | commit f361df474c49a097bfcf16d1b7b5c36fcd844b4b | ||
3091 | Author: jcs@openbsd.org <jcs@openbsd.org> | ||
3092 | Date: Sun Nov 15 22:26:49 2015 +0000 | ||
3093 | |||
3094 | upstream commit | ||
3095 | |||
3096 | Add an AddKeysToAgent client option which can be set to | ||
3097 | 'yes', 'no', 'ask', or 'confirm', and defaults to 'no'. When enabled, a | ||
3098 | private key that is used during authentication will be added to ssh-agent if | ||
3099 | it is running (with confirmation enabled if set to 'confirm'). | ||
3100 | |||
3101 | Initial version from Joachim Schipper many years ago. | ||
3102 | |||
3103 | ok markus@ | ||
3104 | |||
3105 | Upstream-ID: a680db2248e8064ec55f8be72d539458c987d5f4 | ||
3106 | |||
3107 | commit d87063d9baf5479b6e813d47dfb694a97df6f6f5 | ||
3108 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3109 | Date: Fri Nov 13 04:39:35 2015 +0000 | ||
3110 | |||
3111 | upstream commit | ||
3112 | |||
3113 | send SSH2_MSG_UNIMPLEMENTED replies to unexpected | ||
3114 | messages during KEX; bz#2949, ok dtucker@ | ||
3115 | |||
3116 | Upstream-ID: 2b3abdff344d53c8d505f45c83a7b12e84935786 | ||
3117 | |||
3118 | commit 9fd04681a1e9b0af21e08ff82eb674cf0a499bfc | ||
3119 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3120 | Date: Fri Nov 13 04:38:06 2015 +0000 | ||
3121 | |||
3122 | upstream commit | ||
3123 | |||
3124 | Support "none" as an argument for sshd_config | ||
3125 | ForceCommand and ChrootDirectory. Useful inside Match blocks to override a | ||
3126 | global default. bz#2486 ok dtucker@ | ||
3127 | |||
3128 | Upstream-ID: 7ef478d6592bc7db5c7376fc33b4443e63dccfa5 | ||
3129 | |||
3130 | commit 94bc0b72c29e511cbbc5772190d43282e5acfdfe | ||
3131 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3132 | Date: Fri Nov 13 04:34:15 2015 +0000 | ||
3133 | |||
3134 | upstream commit | ||
3135 | |||
3136 | support multiple certificates (one per line) and | ||
3137 | reading from standard input (using "-f -") for "ssh-keygen -L"; ok dtucker@ | ||
3138 | |||
3139 | Upstream-ID: ecbadeeef3926e5be6281689b7250a32a80e88db | ||
3140 | |||
3141 | commit b6b9108f5b561c83612cb97ece4134eb59fde071 | ||
3142 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3143 | Date: Fri Nov 13 02:57:46 2015 +0000 | ||
3144 | |||
3145 | upstream commit | ||
3146 | |||
3147 | list a couple more options usable in Match blocks; | ||
3148 | bz#2489 | ||
3149 | |||
3150 | Upstream-ID: e4d03f39d254db4c0cc54101921bb89fbda19879 | ||
3151 | |||
3152 | commit a7994b3f5a5a5a33b52b0a6065d08e888f0a99fb | ||
3153 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3154 | Date: Wed Nov 11 04:56:39 2015 +0000 | ||
3155 | |||
3156 | upstream commit | ||
3157 | |||
3158 | improve PEEK/POKE macros: better casts, don't multiply | ||
3159 | evaluate arguments; ok deraadt@ | ||
3160 | |||
3161 | Upstream-ID: 9a1889e19647615ededbbabab89064843ba92d3e | ||
3162 | |||
3163 | commit 7d4c7513a7f209cb303a608ac6e46b3f1dfc11ec | ||
3164 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3165 | Date: Wed Nov 11 01:48:01 2015 +0000 | ||
3166 | |||
3167 | upstream commit | ||
3168 | |||
3169 | remove prototypes for long-gone s/key support; ok | ||
3170 | dtucker@ | ||
3171 | |||
3172 | Upstream-ID: db5bed3c57118af986490ab23d399df807359a79 | ||
3173 | |||
3174 | commit 07889c75926c040b8e095949c724e66af26441cb | ||
3175 | Author: Damien Miller <djm@mindrot.org> | ||
3176 | Date: Sat Nov 14 18:44:49 2015 +1100 | ||
3177 | |||
3178 | read back from libcrypto RAND when privdropping | ||
3179 | |||
3180 | makes certain libcrypto implementations cache a /dev/urandom fd | ||
3181 | in preparation of sandboxing. Based on patch by Greg Hartman. | ||
3182 | |||
3183 | commit 1560596f44c01bb0cef977816410950ed17b8ecd | ||
3184 | Author: Darren Tucker <dtucker@zip.com.au> | ||
3185 | Date: Tue Nov 10 11:14:47 2015 +1100 | ||
3186 | |||
3187 | Fix compiler warnings in the openssl header check. | ||
3188 | |||
3189 | Noted by Austin English. | ||
3190 | |||
3191 | commit e72a8575ffe1d8adff42c9abe9ca36938acc036b | ||
3192 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
3193 | Date: Sun Nov 8 23:24:03 2015 +0000 | ||
3194 | |||
3195 | upstream commit | ||
3196 | |||
3197 | -c before -H, in SYNOPSIS and usage(); | ||
3198 | |||
3199 | Upstream-ID: 25e8c58a69e1f37fcd54ac2cd1699370acb5e404 | ||
3200 | |||
3201 | commit 3a424cdd21db08c7b0ded902f97b8f02af5aa485 | ||
3202 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3203 | Date: Sun Nov 8 22:30:20 2015 +0000 | ||
3204 | |||
3205 | upstream commit | ||
3206 | |||
3207 | Add "ssh-keyscan -c ..." flag to allow fetching | ||
3208 | certificates instead of plain keys; ok markus@ | ||
3209 | |||
3210 | Upstream-ID: 0947e2177dba92339eced9e49d3c5bf7dda69f82 | ||
3211 | |||
3212 | commit 69fead5d7cdaa73bdece9fcba80f8e8e70b90346 | ||
3213 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
3214 | Date: Sun Nov 8 22:08:38 2015 +0000 | ||
3215 | |||
3216 | upstream commit | ||
3217 | |||
3218 | remove slogin links; ok deraadt markus djm | ||
3219 | |||
3220 | Upstream-ID: 39ba08548acde4c54f2d4520c202c2a863a3c730 | ||
3221 | |||
3222 | commit 2fecfd486bdba9f51b3a789277bb0733ca36e1c0 | ||
3223 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3224 | Date: Sun Nov 8 21:59:11 2015 +0000 | ||
3225 | |||
3226 | upstream commit | ||
3227 | |||
3228 | fix OOB read in packet code caused by missing return | ||
3229 | statement found by Ben Hawkes; ok markus@ deraadt@ | ||
3230 | |||
3231 | Upstream-ID: a3e3a85434ebfa0690d4879091959591f30efc62 | ||
3232 | |||
3233 | commit 5e288923a303ca672b686908320bc5368ebec6e6 | ||
3234 | Author: mmcc@openbsd.org <mmcc@openbsd.org> | ||
3235 | Date: Fri Nov 6 00:31:41 2015 +0000 | ||
3236 | |||
3237 | upstream commit | ||
3238 | |||
3239 | 1. rlogin and rsh are long gone 2. protocol version isn't | ||
3240 | of core relevance here, and v1 is going away | ||
3241 | |||
3242 | ok markus@, deraadt@ | ||
3243 | |||
3244 | Upstream-ID: 8b46bc94cf1ca7c8c1a75b1c958b2bb38d7579c8 | ||
3245 | |||
3246 | commit 8b29008bbe97f33381d9b4b93fcfa304168d0286 | ||
3247 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
3248 | Date: Thu Nov 5 09:48:05 2015 +0000 | ||
3249 | |||
3250 | upstream commit | ||
3251 | |||
3252 | "commandline" -> "command line", since there are so few | ||
3253 | examples of the former in the pages, so many of the latter, and in some of | ||
3254 | these pages we had multiple spellings; | ||
3255 | |||
3256 | prompted by tj | ||
3257 | |||
3258 | Upstream-ID: 78459d59bff74223f8139d9001ccd56fc4310659 | ||
3259 | |||
3260 | commit 996b24cebf20077fbe5db07b3a2c20c2d9db736e | ||
3261 | Author: Darren Tucker <dtucker@zip.com.au> | ||
3262 | Date: Thu Oct 29 20:57:34 2015 +1100 | ||
3263 | |||
3264 | (re)wrap SYS_sendsyslog in ifdef. | ||
3265 | |||
3266 | Replace ifdef that went missing in commit | ||
3267 | c61b42f2678f21f05653ac2d3d241b48ab5d59ac. Fixes build on older | ||
3268 | OpenBSDs. | ||
3269 | |||
3270 | commit b67e2e76fcf1ae7c802eb27ca927e16c91a513ff | ||
3271 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3272 | Date: Thu Oct 29 08:05:17 2015 +0000 | ||
3273 | |||
3274 | upstream commit | ||
3275 | |||
3276 | regress test for "PubkeyAcceptedKeyTypes +..." inside a | ||
3277 | Match block | ||
3278 | |||
3279 | Upstream-Regress-ID: 246c37ed64a2e5704d4c158ccdca1ff700e10647 | ||
3280 | |||
3281 | commit abd9dbc3c0d8c8c7561347cfa22166156e78c077 | ||
3282 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
3283 | Date: Mon Oct 26 02:50:58 2015 +0000 | ||
3284 | |||
3285 | upstream commit | ||
3286 | |||
3287 | Fix typo certopt->certopts in shell variable. This would | ||
3288 | cause the test to hang at a host key prompt if you have an A or CNAME for | ||
3289 | "proxy" in your local domain. | ||
3290 | |||
3291 | Upstream-Regress-ID: 6ea03bcd39443a83c89e2c5606392ceb9585836a | ||
3292 | |||
3293 | commit ed08510d38aef930a061ae30d10f2a9cf233bafa | ||
3294 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3295 | Date: Thu Oct 29 08:05:01 2015 +0000 | ||
3296 | |||
3297 | upstream commit | ||
3298 | |||
3299 | Fix "PubkeyAcceptedKeyTypes +..." inside a Match block; | ||
3300 | ok dtucker@ | ||
3301 | |||
3302 | Upstream-ID: 853662c4036730b966aab77684390c47b9738c69 | ||
3303 | |||
3304 | commit a4aef3ed29071719b2af82fdf1ac3c2514f82bc5 | ||
3305 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3306 | Date: Tue Oct 27 08:54:52 2015 +0000 | ||
3307 | |||
3308 | upstream commit | ||
3309 | |||
3310 | fix execv arguments in a way less likely to cause grief | ||
3311 | for -portable; ok dtucker@ | ||
3312 | |||
3313 | Upstream-ID: 5902bf0ea0371f39f1300698dc3b8e4105fc0fc5 | ||
3314 | |||
3315 | commit 63d188175accea83305e89fafa011136ff3d96ad | ||
3316 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3317 | Date: Tue Oct 27 01:44:45 2015 +0000 | ||
3318 | |||
3319 | upstream commit | ||
3320 | |||
3321 | log certificate serial in verbose() messages to match the | ||
3322 | main auth success/fail message; ok dtucker@ | ||
3323 | |||
3324 | Upstream-ID: dfc48b417c320b97c36ff351d303c142f2186288 | ||
3325 | |||
3326 | commit 2aaba0cfd560ecfe92aa50c00750e6143842cf1f | ||
3327 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3328 | Date: Tue Oct 27 00:49:53 2015 +0000 | ||
3329 | |||
3330 | upstream commit | ||
3331 | |||
3332 | avoid de-const warning & shrink; ok dtucker@ | ||
3333 | |||
3334 | Upstream-ID: 69a85ef94832378952a22c172009cbf52aaa11db | ||
3335 | |||
3336 | commit 03239c18312b9bab7d1c3b03062c61e8bbc1ca6e | ||
3337 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
3338 | Date: Sun Oct 25 23:42:00 2015 +0000 | ||
3339 | |||
3340 | upstream commit | ||
3341 | |||
3342 | Expand tildes in filenames passed to -i before checking | ||
3343 | whether or not the identity file exists. This means that if the shell | ||
3344 | doesn't do the expansion (eg because the option and filename were given as a | ||
3345 | single argument) then we'll still add the key. bz#2481, ok markus@ | ||
3346 | |||
3347 | Upstream-ID: db1757178a14ac519e9a3e1a2dbd21113cb3bfc6 | ||
3348 | |||
3349 | commit 97e184e508dd33c37860c732c0eca3fc57698b40 | ||
3350 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
3351 | Date: Sun Oct 25 23:14:03 2015 +0000 | ||
3352 | |||
3353 | upstream commit | ||
3354 | |||
3355 | Do not prepend "exec" to the shell command run by "Match | ||
3356 | exec" in a config file. It's an unnecessary optimization from repurposed | ||
3357 | ProxyCommand code and prevents some things working with some shells. | ||
3358 | bz#2471, pointed out by res at qoxp.net. ok markus@ | ||
3359 | |||
3360 | Upstream-ID: a1ead25ae336bfa15fb58d8c6b5589f85b4c33a3 | ||
3361 | |||
3362 | commit 8db134e7f457bcb069ec72bc4ee722e2af557c69 | ||
3363 | Author: Darren Tucker <dtucker@zip.com.au> | ||
3364 | Date: Thu Oct 29 10:48:23 2015 +1100 | ||
3365 | |||
3366 | Prevent name collisions with system glob (bz#2463) | ||
3367 | |||
3368 | Move glob.h from includes.h to the only caller (sftp) and override the | ||
3369 | names for the symbols. This prevents name collisions with the system glob | ||
3370 | in the case where something other than ssh uses it (eg kerberos). With | ||
3371 | jjelen at redhat.com, ok djm@ | ||
3372 | |||
3373 | commit 86c10dbbef6a5800d2431a66cf7f41a954bb62b5 | ||
3374 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
3375 | Date: Fri Oct 23 02:22:01 2015 +0000 | ||
3376 | |||
3377 | upstream commit | ||
3378 | |||
3379 | Update expected group sizes to match recent code changes. | ||
3380 | |||
3381 | Upstream-Regress-ID: 0004f0ea93428969fe75bcfff0d521c553977794 | ||
3382 | |||
3383 | commit 9ada37d36003a77902e90a3214981e417457cf13 | ||
3384 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3385 | Date: Sat Oct 24 22:56:19 2015 +0000 | ||
3386 | |||
3387 | upstream commit | ||
3388 | |||
3389 | fix keyscan output for multiple hosts/addrs on one line | ||
3390 | when host hashing or a non standard port is in use; bz#2479 ok dtucker@ | ||
3391 | |||
3392 | Upstream-ID: 5321dabfaeceba343da3c8a8b5754c6f4a0a307b | ||
3393 | |||
3394 | commit 44fc7cd7dcef6c52c6b7e9ff830dfa32879bd319 | ||
3395 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3396 | Date: Sat Oct 24 22:52:22 2015 +0000 | ||
3397 | |||
3398 | upstream commit | ||
3399 | |||
3400 | skip "Could not chdir to home directory" message when | ||
3401 | chrooted | ||
3402 | |||
3403 | patch from Christian Hesse in bz#2485 ok dtucker@ | ||
3404 | |||
3405 | Upstream-ID: 86783c1953da426dff5b03b03ce46e699d9e5431 | ||
3406 | |||
3407 | commit a820a8618ec44735dabc688fab96fba38ad66bb2 | ||
3408 | Author: sthen@openbsd.org <sthen@openbsd.org> | ||
3409 | Date: Sat Oct 24 08:34:09 2015 +0000 | ||
3410 | |||
3411 | upstream commit | ||
3412 | |||
3413 | Handle the split of tun(4) "link0" into tap(4) in ssh | ||
3414 | tun-forwarding. Adapted from portable (using separate devices for this is the | ||
3415 | normal case in most OS). ok djm@ | ||
3416 | |||
3417 | Upstream-ID: 90facf4c59ce73d6741db1bc926e578ef465cd39 | ||
3418 | |||
3419 | commit 66d2e229baa9fe57b868c373b05f7ff3bb20055b | ||
3420 | Author: gsoares@openbsd.org <gsoares@openbsd.org> | ||
3421 | Date: Wed Oct 21 11:33:03 2015 +0000 | ||
3422 | |||
3423 | upstream commit | ||
3424 | |||
3425 | fix memory leak in error path ok djm@ | ||
3426 | |||
3427 | Upstream-ID: dd2f402b0a0029b755df029fc7f0679e1365ce35 | ||
3428 | |||
3429 | commit 7d6c0362039ceacdc1366b5df29ad5d2693c13e5 | ||
3430 | Author: mmcc@openbsd.org <mmcc@openbsd.org> | ||
3431 | Date: Tue Oct 20 23:24:25 2015 +0000 | ||
3432 | |||
3433 | upstream commit | ||
3434 | |||
3435 | Compare pointers to NULL rather than 0. | ||
3436 | |||
3437 | ok djm@ | ||
3438 | |||
3439 | Upstream-ID: 21616cfea27eda65a06e772cc887530b9a1a27f8 | ||
3440 | |||
3441 | commit f98a09cacff7baad8748c9aa217afd155a4d493f | ||
3442 | Author: mmcc@openbsd.org <mmcc@openbsd.org> | ||
3443 | Date: Tue Oct 20 03:36:35 2015 +0000 | ||
3444 | |||
3445 | upstream commit | ||
3446 | |||
3447 | Replace a function-local allocation with stack memory. | ||
3448 | |||
3449 | ok djm@ | ||
3450 | |||
3451 | Upstream-ID: c09fbbab637053a2ab9f33ca142b4e20a4c5a17e | ||
3452 | |||
3453 | commit ac908c1eeacccfa85659594d92428659320fd57e | ||
3454 | Author: Damien Miller <djm@mindrot.org> | ||
3455 | Date: Thu Oct 22 09:35:24 2015 +1100 | ||
3456 | |||
3457 | turn off PrintLastLog when --disable-lastlog | ||
3458 | |||
3459 | bz#2278 from Brent Paulson | ||
3460 | |||
3461 | commit b56deb847f4a0115a8bf488bf6ee8524658162fd | ||
3462 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3463 | Date: Fri Oct 16 22:32:22 2015 +0000 | ||
3464 | |||
3465 | upstream commit | ||
3466 | |||
3467 | increase the minimum modulus that we will send or accept in | ||
3468 | diffie-hellman-group-exchange to 2048 bits; ok markus@ | ||
3469 | |||
3470 | Upstream-ID: 06dce7a24c17b999a0f5fadfe95de1ed6a1a9b6a | ||
3471 | |||
3472 | commit 5ee0063f024bf5b3f3ffb275b8cd20055d62b4b9 | ||
3473 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3474 | Date: Fri Oct 16 18:40:49 2015 +0000 | ||
3475 | |||
3476 | upstream commit | ||
3477 | |||
3478 | better handle anchored FQDNs (e.g. 'cvs.openbsd.org.') in | ||
3479 | hostname canonicalisation - treat them as already canonical and remove the | ||
3480 | trailing '.' before matching ssh_config; ok markus@ | ||
3481 | |||
3482 | Upstream-ID: f7619652e074ac3febe8363f19622aa4853b679a | ||
3483 | |||
3484 | commit e92c499a75477ecfe94dd7b4aed89f20b1fac5a7 | ||
3485 | Author: mmcc@openbsd.org <mmcc@openbsd.org> | ||
3486 | Date: Fri Oct 16 17:07:24 2015 +0000 | ||
3487 | |||
3488 | upstream commit | ||
3489 | |||
3490 | 0 -> NULL when comparing with a char*. | ||
3491 | |||
3492 | ok dtucker@, djm@. | ||
3493 | |||
3494 | Upstream-ID: a928e9c21c0a9020727d99738ff64027c1272300 | ||
3495 | |||
3496 | commit b1d38a3cc6fe349feb8d16a5f520ef12d1de7cb2 | ||
3497 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3498 | Date: Thu Oct 15 23:51:40 2015 +0000 | ||
3499 | |||
3500 | upstream commit | ||
3501 | |||
3502 | fix some signed/unsigned integer type mismatches in | ||
3503 | format strings; reported by Nicholas Lemonias | ||
3504 | |||
3505 | Upstream-ID: 78cd55420a0eef68c4095bdfddd1af84afe5f95c | ||
3506 | |||
3507 | commit 1a2663a15d356bb188196b6414b4c50dc12fd42b | ||
3508 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3509 | Date: Thu Oct 15 23:08:23 2015 +0000 | ||
3510 | |||
3511 | upstream commit | ||
3512 | |||
3513 | argument to sshkey_from_private() and sshkey_demote() | ||
3514 | can't be NULL | ||
3515 | |||
3516 | Upstream-ID: 0111245b1641d387977a9b38da15916820a5fd1f | ||
3517 | |||
3518 | commit 0f754e29dd3760fc0b172c1220f18b753fb0957e | ||
3519 | Author: Damien Miller <djm@mindrot.org> | ||
3520 | Date: Fri Oct 16 10:53:14 2015 +1100 | ||
3521 | |||
3522 | need va_copy before va_start | ||
3523 | |||
3524 | reported by Nicholas Lemonias | ||
3525 | |||
3526 | commit eb6c50d82aa1f0d3fc95f5630ea69761e918bfcd | ||
3527 | Author: Damien Miller <djm@mindrot.org> | ||
3528 | Date: Thu Oct 15 15:48:28 2015 -0700 | ||
3529 | |||
3530 | fix compilation on systems without SYMLOOP_MAX | ||
3531 | |||
3532 | commit fafe1d84a210fb3dae7744f268059cc583db8c12 | ||
3533 | Author: Damien Miller <djm@mindrot.org> | ||
3534 | Date: Wed Oct 14 09:22:15 2015 -0700 | ||
3535 | |||
3536 | s/SANDBOX_TAME/SANDBOX_PLEDGE/g | ||
3537 | |||
3538 | commit 8f22911027ff6c17d7226d232ccd20727f389310 | ||
3539 | Author: Damien Miller <djm@mindrot.org> | ||
3540 | Date: Wed Oct 14 08:28:19 2015 +1100 | ||
3541 | |||
3542 | upstream commit | ||
3543 | |||
3544 | revision 1.20 | ||
3545 | date: 2015/10/13 20:55:37; author: millert; state: Exp; lines: +2 -2; commitid: X39sl5ay1czgFIgp; | ||
3546 | In rev 1.15 the sizeof argument was fixed in a strlcat() call but | ||
3547 | the truncation check immediately following it was not updated to | ||
3548 | match. Not an issue in practice since the buffers are the same | ||
3549 | size. OK deraadt@ | ||
3550 | |||
3551 | commit 23fa695bb735f54f04d46123662609edb6c76767 | ||
3552 | Author: Damien Miller <djm@mindrot.org> | ||
3553 | Date: Wed Oct 14 08:27:51 2015 +1100 | ||
3554 | |||
3555 | upstream commit | ||
3556 | |||
3557 | revision 1.19 | ||
3558 | date: 2015/01/16 16:48:51; author: deraadt; state: Exp; lines: +3 -3; commitid: 0DYulI8hhujBHMcR; | ||
3559 | Move to the <limits.h> universe. | ||
3560 | review by millert, binary checking process with doug, concept with guenther | ||
3561 | |||
3562 | commit c71be375a69af00c2d0a0c24d8752bec12d8fd1b | ||
3563 | Author: Damien Miller <djm@mindrot.org> | ||
3564 | Date: Wed Oct 14 08:27:08 2015 +1100 | ||
3565 | |||
3566 | upstream commit | ||
3567 | |||
3568 | revision 1.18 | ||
3569 | date: 2014/10/19 03:56:28; author: doug; state: Exp; lines: +9 -9; commitid: U6QxmtbXrGoc02S5; | ||
3570 | Revert last commit due to changed semantics found by make release. | ||
3571 | |||
3572 | commit c39ad23b06e9aecc3ff788e92f787a08472905b1 | ||
3573 | Author: Damien Miller <djm@mindrot.org> | ||
3574 | Date: Wed Oct 14 08:26:24 2015 +1100 | ||
3575 | |||
3576 | upstream commit | ||
3577 | |||
3578 | revision 1.17 | ||
3579 | date: 2014/10/18 20:43:52; author: doug; state: Exp; lines: +10 -10; commitid: I74hI1tVZtsspKEt; | ||
3580 | Better POSIX compliance in realpath(3). | ||
3581 | |||
3582 | millert@ made changes to realpath.c based on FreeBSD's version. I merged | ||
3583 | Todd's changes into dl_realpath.c. | ||
3584 | |||
3585 | ok millert@, guenther@ | ||
3586 | |||
3587 | commit e929a43f957dbd1254aca2aaf85c8c00cbfc25f4 | ||
3588 | Author: Damien Miller <djm@mindrot.org> | ||
3589 | Date: Wed Oct 14 08:25:55 2015 +1100 | ||
3590 | |||
3591 | upstream commit | ||
3592 | |||
3593 | revision 1.16 | ||
3594 | date: 2013/04/05 12:59:54; author: kurt; state: Exp; lines: +3 -1; | ||
3595 | - Add comments regarding copies of these files also in libexec/ld.so | ||
3596 | okay guenther@ | ||
3597 | |||
3598 | commit 5225db68e58a1048cb17f0e36e0d33bc4a8fc410 | ||
3599 | Author: Damien Miller <djm@mindrot.org> | ||
3600 | Date: Wed Oct 14 08:25:32 2015 +1100 | ||
3601 | |||
3602 | upstream commit | ||
3603 | |||
3604 | revision 1.15 | ||
3605 | date: 2012/09/13 15:39:05; author: deraadt; state: Exp; lines: +2 -2; | ||
3606 | specify the bounds of the dst to strlcat (both values were static and | ||
3607 | equal, but it is more correct) | ||
3608 | from Michal Mazurek | ||
3609 | |||
3610 | commit 7365fe5b4859de2305e40ea132da3823830fa710 | ||
3611 | Author: Damien Miller <djm@mindrot.org> | ||
3612 | Date: Wed Oct 14 08:25:09 2015 +1100 | ||
3613 | |||
3614 | upstream commit | ||
3615 | |||
3616 | revision 1.14 | ||
3617 | date: 2011/07/24 21:03:00; author: miod; state: Exp; lines: +35 -13; | ||
3618 | Recent Single Unix will malloc memory if the second argument of realpath() | ||
3619 | is NULL, and third-party software is starting to rely upon this. | ||
3620 | Adapted from FreeBSD via Jona Joachim (jaj ; hcl-club , .lu), with minor | ||
3621 | tweaks from nicm@ and yours truly. | ||
3622 | |||
3623 | commit e679c09cd1951f963793aa3d9748d1c3fdcf808f | ||
3624 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3625 | Date: Tue Oct 13 16:15:21 2015 +0000 | ||
3626 | |||
3627 | upstream commit | ||
3628 | |||
3629 | apply PubkeyAcceptedKeyTypes filtering earlier, so all | ||
3630 | skipped keys are noted before pubkey authentication starts. ok dtucker@ | ||
3631 | |||
3632 | Upstream-ID: ba4f52f54268a421a2a5f98bb375403f4cb044b8 | ||
3633 | |||
3634 | commit 179c353f564ec7ada64b87730b25fb41107babd7 | ||
3635 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3636 | Date: Tue Oct 13 00:21:27 2015 +0000 | ||
3637 | |||
3638 | upstream commit | ||
3639 | |||
3640 | free the correct IV length, don't assume it's always the | ||
3641 | cipher blocksize; ok dtucker@ | ||
3642 | |||
3643 | Upstream-ID: c260d9e5ec73628d9ff4b067fbb060eff5a7d298 | ||
3644 | |||
3645 | commit 2539dce2a049a8f6bb0d44cac51f07ad48e691d3 | ||
3646 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
3647 | Date: Fri Oct 9 01:37:08 2015 +0000 | ||
3648 | |||
3649 | upstream commit | ||
3650 | |||
3651 | Change all tame callers to namechange to pledge(2). | ||
3652 | |||
3653 | Upstream-ID: 17e654fc27ceaf523c60f4ffd9ec7ae4e7efc7f2 | ||
3654 | |||
3655 | commit 9846a2f4067383bb76b4e31a9d2303e0a9c13a73 | ||
3656 | Author: Damien Miller <djm@mindrot.org> | ||
3657 | Date: Thu Oct 8 04:30:48 2015 +1100 | ||
3658 | |||
3659 | hook tame(2) sandbox up to build | ||
3660 | |||
3661 | OpenBSD only for now | ||
3662 | |||
3663 | commit 0c46bbe68b70bdf0d6d20588e5847e71f3739fe6 | ||
3664 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3665 | Date: Wed Oct 7 15:59:12 2015 +0000 | ||
3666 | |||
3667 | upstream commit | ||
3668 | |||
3669 | include PubkeyAcceptedKeyTypes in ssh -G config dump | ||
3670 | |||
3671 | Upstream-ID: 6c097ce6ffebf6fe393fb7988b5d152a5d6b36bb | ||
3672 | |||
3673 | commit bdcb73fb7641b1cf73c0065d1a0dd57b1e8b778e | ||
3674 | Author: sobrado@openbsd.org <sobrado@openbsd.org> | ||
3675 | Date: Wed Oct 7 14:45:30 2015 +0000 | ||
3676 | |||
3677 | upstream commit | ||
3678 | |||
3679 | UsePrivilegeSeparation defaults to sandbox now. | ||
3680 | |||
3681 | ok djm@ | ||
3682 | |||
3683 | Upstream-ID: bff136c38bcae89df82e044d2f42de21e1ad914f | ||
3684 | |||
3685 | commit 2905d6f99c837bb699b6ebc61711b19acd030709 | ||
3686 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3687 | Date: Wed Oct 7 00:54:06 2015 +0000 | ||
3688 | |||
3689 | upstream commit | ||
3690 | |||
3691 | don't try to change tun device flags if they are already | ||
3692 | what we need; makes it possible to use tun/tap networking as non- root user | ||
3693 | if device permissions and interface flags are pre-established; based on patch | ||
3694 | by Ossi Herrala | ||
3695 | |||
3696 | Upstream-ID: 89099ac4634cd477b066865acf54cb230780fd21 | ||
3697 | |||
3698 | commit 0dc74512bdb105b048883f07de538b37e5e024d4 | ||
3699 | Author: Damien Miller <djm@mindrot.org> | ||
3700 | Date: Mon Oct 5 18:33:05 2015 -0700 | ||
3701 | |||
3702 | unbreak merge botch | ||
3703 | |||
3704 | commit fdd020e86439afa7f537e2429d29d4b744c94331 | ||
3705 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3706 | Date: Tue Oct 6 01:20:59 2015 +0000 | ||
3707 | |||
3708 | upstream commit | ||
3709 | |||
3710 | adapt to recent sshkey_parse_private_fileblob() API | ||
3711 | change | ||
3712 | |||
3713 | Upstream-Regress-ID: 5c0d818da511e33e0abf6a92a31bd7163b7ad988 | ||
3714 | |||
3715 | commit 21ae8ee3b630b0925f973db647a1b9aa5fcdd4c5 | ||
3716 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3717 | Date: Thu Sep 24 07:15:39 2015 +0000 | ||
3718 | |||
3719 | upstream commit | ||
3720 | |||
3721 | fix command-line option to match what was actually | ||
3722 | committed | ||
3723 | |||
3724 | Upstream-Regress-ID: 3e8c24a2044e8afd37e7ce17b69002ca817ac699 | ||
3725 | |||
3726 | commit e14ac43b75e68f1ffbd3e1a5e44143c8ae578dcd | ||
3727 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3728 | Date: Thu Sep 24 06:16:53 2015 +0000 | ||
3729 | |||
3730 | upstream commit | ||
3731 | |||
3732 | regress test for CertificateFile; patch from Meghana Bhat | ||
3733 | via bz#2436 | ||
3734 | |||
3735 | Upstream-Regress-ID: e7a6e980cbe0f8081ba2e83de40d06c17be8bd25 | ||
3736 | |||
3737 | commit 905b054ed24e0d5b4ef226ebf2c8bfc02ae6d4ad | ||
3738 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3739 | Date: Mon Oct 5 17:11:21 2015 +0000 | ||
3740 | |||
3741 | upstream commit | ||
3742 | |||
3743 | some more bzero->explicit_bzero, from Michael McConville | ||
3744 | |||
3745 | Upstream-ID: 17f19545685c33327db2efdc357c1c9225ff00d0 | ||
3746 | |||
3747 | commit b007159a0acdbcf65814b3ee05dbe2cf4ea46011 | ||
3748 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
3749 | Date: Fri Oct 2 15:52:55 2015 +0000 | ||
3750 | |||
3751 | upstream commit | ||
3752 | |||
3753 | fix email | ||
3754 | |||
3755 | Upstream-ID: 72150f2d54b94de14ebef1ea054ef974281bf834 | ||
3756 | |||
3757 | commit b19e1b4ab11884c4f62aee9f8ab53127a4732658 | ||
3758 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
3759 | Date: Fri Oct 2 01:39:52 2015 +0000 | ||
3760 | |||
3761 | upstream commit | ||
3762 | |||
3763 | a sandbox using tame ok djm | ||
3764 | |||
3765 | Upstream-ID: 4ca24e47895e72f5daaa02f3e3d3e5ca2d820fa3 | ||
3766 | |||
3767 | commit c61b42f2678f21f05653ac2d3d241b48ab5d59ac | ||
3768 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
3769 | Date: Fri Oct 2 01:39:26 2015 +0000 | ||
3770 | |||
3771 | upstream commit | ||
3772 | |||
3773 | re-order system calls in order of risk, ok i'll be | ||
3774 | honest, ordered this way they look like tame... ok djm | ||
3775 | |||
3776 | Upstream-ID: 42a1e6d251fd8be13c8262bee026059ae6328813 | ||
3777 | |||
3778 | commit c5f7c0843cb6e6074a93c8ac34e49ce33a6f5546 | ||
3779 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
3780 | Date: Fri Sep 25 18:19:54 2015 +0000 | ||
3781 | |||
3782 | upstream commit | ||
3783 | |||
3784 | some certificatefile tweaks; ok djm | ||
3785 | |||
3786 | Upstream-ID: 0e5a7852c28c05fc193419cc7e50e64c1c535af0 | ||
3787 | |||
3788 | commit 4e44a79a07d4b88b6a4e5e8c1bed5f58c841b1b8 | ||
3789 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3790 | Date: Thu Sep 24 06:15:11 2015 +0000 | ||
3791 | |||
3792 | upstream commit | ||
3793 | |||
3794 | add ssh_config CertificateFile option to explicitly list | ||
3795 | a certificate; patch from Meghana Bhat on bz#2436; ok markus@ | ||
3796 | |||
3797 | Upstream-ID: 58648ec53c510b41c1f46d8fe293aadc87229ab8 | ||
3798 | |||
3799 | commit e3cbb06ade83c72b640a53728d362bbefa0008e2 | ||
3800 | Author: sobrado@openbsd.org <sobrado@openbsd.org> | ||
3801 | Date: Tue Sep 22 08:33:23 2015 +0000 | ||
3802 | |||
3803 | upstream commit | ||
3804 | |||
3805 | fix two typos. | ||
3806 | |||
3807 | Upstream-ID: 424402c0d8863a11b51749bacd7f8d932083b709 | ||
3808 | |||
3809 | commit 8408218c1ca88cb17d15278174a24a94a6f65fe1 | ||
3810 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3811 | Date: Mon Sep 21 04:31:00 2015 +0000 | ||
3812 | |||
3813 | upstream commit | ||
3814 | |||
3815 | fix possible hang on closed output; bz#2469 reported by Tomas | ||
3816 | Kuthan ok markus@ | ||
3817 | |||
3818 | Upstream-ID: f7afd41810f8540f524284f1be6b970859f94fe3 | ||
3819 | |||
3820 | commit 0097248f90a00865082e8c146b905a6555cc146f | ||
3821 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3822 | Date: Fri Sep 11 04:55:01 2015 +0000 | ||
3823 | |||
3824 | upstream commit | ||
3825 | |||
3826 | skip if running as root; many systems (inc OpenBSD) allow | ||
3827 | root to ptrace arbitrary processes | ||
3828 | |||
3829 | Upstream-Regress-ID: be2b925df89360dff36f972951fa0fa793769038 | ||
3830 | |||
3831 | commit 9c06c814aff925e11a5cc592c06929c258a014f6 | ||
3832 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3833 | Date: Fri Sep 11 03:44:21 2015 +0000 | ||
3834 | |||
3835 | upstream commit | ||
3836 | |||
3837 | try all supported key types here; bz#2455 reported by | ||
3838 | Jakub Jelen | ||
3839 | |||
3840 | Upstream-Regress-ID: 188cb7d9031cdbac3a0fa58b428b8fa2b2482bba | ||
3841 | |||
3842 | commit 3c019a936b43f3e2773f3edbde7c114d73caaa4c | ||
3843 | Author: tim@openbsd.org <tim@openbsd.org> | ||
3844 | Date: Sun Sep 13 14:39:16 2015 +0000 | ||
3845 | |||
3846 | upstream commit | ||
3847 | |||
3848 | - Fix error message: passphrase needs to be at least 5 | ||
3849 | characters, not 4. - Remove unused function argument. - Remove two | ||
3850 | unnecessary variables. | ||
3851 | |||
3852 | OK djm@ | ||
3853 | |||
3854 | Upstream-ID: 13010c05bfa8b523da1c0dc19e81dd180662bc30 | ||
3855 | |||
3856 | commit 2681cdb6e0de7c1af549dac37a9531af202b4434 | ||
3857 | Author: tim@openbsd.org <tim@openbsd.org> | ||
3858 | Date: Sun Sep 13 13:48:19 2015 +0000 | ||
3859 | |||
3860 | upstream commit | ||
3861 | |||
3862 | When adding keys to the agent, don't ignore the comment | ||
3863 | of keys for which the user is prompted for a passphrase. | ||
3864 | |||
3865 | Tweak and OK djm@ | ||
3866 | |||
3867 | Upstream-ID: dc737c620a5a8d282cc4f66e3b9b624e9abefbec | ||
3868 | |||
3869 | commit 14692f7b8251cdda847e648a82735eef8a4d2a33 | ||
3870 | Author: guenther@openbsd.org <guenther@openbsd.org> | ||
3871 | Date: Fri Sep 11 08:50:04 2015 +0000 | ||
3872 | |||
3873 | upstream commit | ||
3874 | |||
3875 | Use explicit_bzero() when zeroing before free() | ||
3876 | |||
3877 | from Michael McConville (mmcconv1 (at) sccs.swarthmore.edu) | ||
3878 | ok millert@ djm@ | ||
3879 | |||
3880 | Upstream-ID: 2e3337db046c3fe70c7369ee31515ac73ec00f50 | ||
3881 | |||
3882 | commit 846f6fa4cfa8483a9195971dbdd162220f199d85 | ||
3883 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
3884 | Date: Fri Sep 11 06:55:46 2015 +0000 | ||
3885 | |||
3886 | upstream commit | ||
3887 | |||
3888 | sync -Q in usage() to SYNOPSIS; since it's drastically | ||
3889 | shorter, i've reformatted the block to sync with the man (80 cols) and saved | ||
3890 | a line; | ||
3891 | |||
3892 | Upstream-ID: 86e2c65c3989a0777a6258a77e589b9f6f354abd | ||
3893 | |||
3894 | commit 95923e0520a8647417ee6dcdff44694703dfeef0 | ||
3895 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
3896 | Date: Fri Sep 11 06:51:39 2015 +0000 | ||
3897 | |||
3898 | upstream commit | ||
3899 | |||
3900 | tweak previous; | ||
3901 | |||
3902 | Upstream-ID: f29b3cfcfd9aa31fa140c393e7bd48c1c74139d6 | ||
3903 | |||
3904 | commit 86ac462f833b05d8ed9de9c50ccb295d7faa79ff | ||
3905 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
3906 | Date: Fri Sep 11 05:27:02 2015 +0000 | ||
3907 | |||
3908 | upstream commit | ||
3909 | |||
3910 | Update usage to match man page. | ||
3911 | |||
3912 | Upstream-ID: 9e85aefaecfb6aaf34c7cfd0700cd21783a35675 | ||
3913 | |||
3914 | commit 674b3b68c1d36b2562324927cd03857b565e05e8 | ||
3915 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3916 | Date: Fri Sep 11 03:47:28 2015 +0000 | ||
3917 | |||
3918 | upstream commit | ||
3919 | |||
3920 | expand %i in ControlPath to UID; bz#2449 | ||
3921 | |||
3922 | patch from Christian Hesse w/ feedback from dtucker@ | ||
3923 | |||
3924 | Upstream-ID: 2ba8d303e555a84e2f2165ab4b324b41e80ab925 | ||
3925 | |||
3926 | commit c0f55db7ee00c8202b05cb4b9ad4ce72cc45df41 | ||
3927 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3928 | Date: Fri Sep 11 03:42:32 2015 +0000 | ||
3929 | |||
3930 | upstream commit | ||
3931 | |||
3932 | mention -Q key-plain and -Q key-cert; bz#2455 pointed out | ||
3933 | by Jakub Jelen | ||
3934 | |||
3935 | Upstream-ID: c8f1f8169332e4fa73ac96b0043e3b84e01d4896 | ||
3936 | |||
3937 | commit cfffbdb10fdf0f02d3f4232232eef7ec3876c383 | ||
3938 | Author: Darren Tucker <dtucker@zip.com.au> | ||
3939 | Date: Mon Sep 14 16:24:21 2015 +1000 | ||
3940 | |||
3941 | Use ssh-keygen -A when generating host keys. | ||
3942 | |||
3943 | Use ssh-keygen -A instead of per-keytype invocations when generating host | ||
3944 | keys. Add tests when doing host-key-force since we can't use ssh-keygen -A | ||
3945 | since it can't specify alternate locations. bz#2459, ok djm@ | ||
3946 | |||
3947 | commit 366bada1e9e124654aac55b72b6ccf878755b0dc | ||
3948 | Author: Darren Tucker <dtucker@zip.com.au> | ||
3949 | Date: Fri Sep 11 13:29:22 2015 +1000 | ||
3950 | |||
3951 | Correct default value for --with-ssh1. | ||
3952 | |||
3953 | bz#2457, from konto-mindrot.org at walimnieto.com. | ||
3954 | |||
3955 | commit 2bca8a43e7dd9b04d7070824ffebb823c72587b2 | ||
3956 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3957 | Date: Fri Sep 11 03:13:36 2015 +0000 | ||
3958 | |||
3959 | upstream commit | ||
3960 | |||
3961 | more clarity on what AuthorizedKeysFile=none does; based | ||
3962 | on diff by Thiebaud Weksteen | ||
3963 | |||
3964 | Upstream-ID: 78ab87f069080f0cc3bc353bb04eddd9e8ad3704 | ||
3965 | |||
3966 | commit 61942ea4a01e6db4fdf37ad61de81312ffe310e9 | ||
3967 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3968 | Date: Wed Sep 9 00:52:44 2015 +0000 | ||
3969 | |||
3970 | upstream commit | ||
3971 | |||
3972 | openssh_RSA_verify return type is int, so don't make it | ||
3973 | size_t within the function itself with only negative numbers or zero assigned | ||
3974 | to it. bz#2460 | ||
3975 | |||
3976 | Upstream-ID: b6e794b0c7fc4f9f329509263c8668d35f83ea55 | ||
3977 | |||
3978 | commit 4f7cc2f8cc861a21e6dbd7f6c25652afb38b9b96 | ||
3979 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
3980 | Date: Fri Sep 4 08:21:47 2015 +0000 | ||
3981 | |||
3982 | upstream commit | ||
3983 | |||
3984 | Plug minor memory leaks when options are used more than | ||
3985 | once. bz#2182, patch from Tiago Cunha, ok deraadt djm | ||
3986 | |||
3987 | Upstream-ID: 5b84d0401e27fe1614c10997010cc55933adb48e | ||
3988 | |||
3989 | commit 7ad8b287c8453a3e61dbc0d34d467632b8b06fc8 | ||
3990 | Author: Darren Tucker <dtucker@zip.com.au> | ||
3991 | Date: Fri Sep 11 13:11:02 2015 +1000 | ||
3992 | |||
3993 | Force resolution of _res for correct detection. | ||
3994 | |||
3995 | bz#2259, from sconeu at yahoo.com. | ||
3996 | |||
3997 | commit 26ad18247213ff72b4438abe7fc660c958810fa2 | ||
3998 | Author: Damien Miller <djm@mindrot.org> | ||
3999 | Date: Thu Sep 10 10:57:41 2015 +1000 | ||
4000 | |||
4001 | allow getrandom syscall; from Felix von Leitner | ||
4002 | |||
4003 | commit 5245bc1e6b129a10a928f73f11c3aa32656c44b4 | ||
4004 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
4005 | Date: Fri Sep 4 06:40:45 2015 +0000 | ||
4006 | |||
4007 | upstream commit | ||
4008 | |||
4009 | full stop belongs outside the brackets, not inside; | ||
4010 | |||
4011 | Upstream-ID: 99d098287767799ac33d2442a05b5053fa5a551a | ||
4012 | |||
4013 | commit a85768a9321d74b41219eeb3c9be9f1702cbf6a5 | ||
4014 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4015 | Date: Fri Sep 4 04:56:09 2015 +0000 | ||
4016 | |||
4017 | upstream commit | ||
4018 | |||
4019 | add a debug2() right before DNS resolution; it's a place | ||
4020 | where ssh could previously silently hang for a while. bz#2433 | ||
4021 | |||
4022 | Upstream-ID: 52a1a3e0748db66518e7598352c427145692a6a0 | ||
4023 | |||
4024 | commit 46152af8d27aa34d5d26ed1c371dc8aa142d4730 | ||
4025 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4026 | Date: Fri Sep 4 04:55:24 2015 +0000 | ||
4027 | |||
4028 | upstream commit | ||
4029 | |||
4030 | correct function name in error messages | ||
4031 | |||
4032 | Upstream-ID: 92fb2798617ad9561370897f4ab60adef2ff4c0e | ||
4033 | |||
4034 | commit a954cdb799a4d83c2d40fbf3e7b9f187fbfd72fc | ||
4035 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4036 | Date: Fri Sep 4 04:47:50 2015 +0000 | ||
4037 | |||
4038 | upstream commit | ||
4039 | |||
4040 | better document ExitOnForwardFailure; bz#2444, ok | ||
4041 | dtucker@ | ||
4042 | |||
4043 | Upstream-ID: a126209b5a6d9cb3117ac7ab5bc63d284538bfc2 | ||
4044 | |||
4045 | commit f54d8ac2474b6fc3afa081cf759b48a6c89d3319 | ||
4046 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4047 | Date: Fri Sep 4 04:44:08 2015 +0000 | ||
4048 | |||
4049 | upstream commit | ||
4050 | |||
4051 | don't record hostbased authentication hostkeys as user | ||
4052 | keys in test for multiple authentication with the same key | ||
4053 | |||
4054 | Upstream-ID: 26b368fa2cff481f47f37e01b8da1ae5b57b1adc | ||
4055 | |||
4056 | commit ac3451dd65f27ecf85dc045c46d49e2bbcb8dddd | ||
4057 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4058 | Date: Fri Sep 4 03:57:38 2015 +0000 | ||
4059 | |||
4060 | upstream commit | ||
4061 | |||
4062 | remove extra newline in nethack-mode hostkey; from | ||
4063 | Christian Hesse bz#2686 | ||
4064 | |||
4065 | Upstream-ID: 4f56368b1cc47baeea0531912186f66007fd5b92 | ||
4066 | |||
4067 | commit 9e3ed9ebb1a7e47c155c28399ddf09b306ea05df | ||
4068 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4069 | Date: Fri Sep 4 04:23:10 2015 +0000 | ||
4070 | |||
4071 | upstream commit | ||
4072 | |||
4073 | trim junk from end of file; bz#2455 from Jakub Jelen | ||
4074 | |||
4075 | Upstream-Regress-ID: a4e64e8931e40d23874b047074444eff919cdfe6 | ||
4076 | |||
4077 | commit f3a3ea180afff080bab82087ee0b60db9fd84f6c | ||
4078 | Author: jsg@openbsd.org <jsg@openbsd.org> | ||
4079 | Date: Wed Sep 2 07:51:12 2015 +0000 | ||
4080 | |||
4081 | upstream commit | ||
4082 | |||
4083 | Fix occurrences of "r = func() != 0" which result in the | ||
4084 | wrong error codes being returned due to != having higher precedence than =. | ||
4085 | |||
4086 | ok deraadt@ markus@ | ||
4087 | |||
4088 | Upstream-ID: 5fc35c9fc0319cc6fca243632662d2f06b5fd840 | ||
4089 | |||
4090 | commit f498a98cf83feeb7ea01c15cd1c98b3111361f3a | ||
4091 | Author: Damien Miller <djm@mindrot.org> | ||
4092 | Date: Thu Sep 3 09:11:22 2015 +1000 | ||
4093 | |||
4094 | don't check for yp_match; ok tim@ | ||
4095 | |||
4096 | commit 9690b78b7848b0b376980a61d51b1613e187ddb5 | ||
4097 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4098 | Date: Fri Aug 21 23:57:48 2015 +0000 | ||
4099 | |||
4100 | upstream commit | ||
4101 | |||
4102 | Improve printing of KEX offers and decisions | ||
4103 | |||
4104 | The debug output now labels the client and server offers and the | ||
4105 | negotiated options. ok markus@ | ||
4106 | |||
4107 | Upstream-ID: 8db921b3f92a4565271b1c1fbce6e7f508e1a2cb | ||
4108 | |||
4109 | commit 60a92470e21340e1a3fc10f9c7140d8e1519dc55 | ||
4110 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4111 | Date: Fri Aug 21 23:53:08 2015 +0000 | ||
4112 | |||
4113 | upstream commit | ||
4114 | |||
4115 | Fix printing (ssh -G ...) of HostKeyAlgorithms=+... | ||
4116 | Reported by Bryan Drewery | ||
4117 | |||
4118 | Upstream-ID: 19ad20c41bd5971e006289b6f9af829dd46c1293 | ||
4119 | |||
4120 | commit 6310f60fffca2d1e464168e7d1f7e3b6b0268897 | ||
4121 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4122 | Date: Fri Aug 21 23:52:30 2015 +0000 | ||
4123 | |||
4124 | upstream commit | ||
4125 | |||
4126 | Fix expansion of HostkeyAlgorithms=+... | ||
4127 | |||
4128 | Reported by Bryan Drewery | ||
4129 | |||
4130 | Upstream-ID: 70ca1deea39d758ba36d36428ae832e28566f78d | ||
4131 | |||
4132 | commit e774e5ea56237fd626a8161f9005023dff3e76c9 | ||
4133 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
4134 | Date: Fri Aug 21 23:29:31 2015 +0000 | ||
4135 | |||
4136 | upstream commit | ||
4137 | |||
4138 | Improve size == 0, count == 0 checking in mm_zalloc, | ||
4139 | which is "array" like. Discussed with tedu, millert, otto.... and ok djm | ||
4140 | |||
4141 | Upstream-ID: 899b021be43b913fad3eca1aef44efe710c53e29 | ||
4142 | |||
4143 | commit 189de02d9ad6f3645417c0ddf359b923aae5f926 | ||
4144 | Author: Damien Miller <djm@mindrot.org> | ||
4145 | Date: Fri Aug 21 15:45:02 2015 +1000 | ||
4146 | |||
4147 | expose POLLHUP and POLLNVAL for netcat.c | ||
4148 | |||
4149 | commit e91346dc2bbf460246df2ab591b7613908c1b0ad | ||
4150 | Author: Damien Miller <djm@mindrot.org> | ||
4151 | Date: Fri Aug 21 14:49:03 2015 +1000 | ||
4152 | |||
4153 | we don't use Github for issues/pull-requests | ||
4154 | |||
4155 | commit a4f5b507c708cc3dc2c8dd2d02e4416d7514dc23 | ||
4156 | Author: Damien Miller <djm@mindrot.org> | ||
4157 | Date: Fri Aug 21 14:43:55 2015 +1000 | ||
4158 | |||
4159 | fix URL for connect.c | ||
4160 | |||
4161 | commit d026a8d3da0f8186598442997c7d0a28e7275414 | ||
4162 | Author: Damien Miller <djm@mindrot.org> | ||
4163 | Date: Fri Aug 21 13:47:10 2015 +1000 | ||
4164 | |||
4165 | update version numbers for 7.1 | ||
4166 | |||
4167 | commit 78f8f589f0ca1c9f41e5a9bae3cda5ce8a6b42ed | ||
4168 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4169 | Date: Fri Aug 21 03:45:26 2015 +0000 | ||
4170 | |||
4171 | upstream commit | ||
4172 | |||
4173 | openssh-7.1 | ||
4174 | |||
4175 | Upstream-ID: ff7b1ef4b06caddfb45e08ba998128c88be3d73f | ||
4176 | |||
4177 | commit 32a181980c62fce94f7f9ffaf6a79d90f0c309cf | ||
4178 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4179 | Date: Fri Aug 21 03:42:19 2015 +0000 | ||
4180 | |||
4181 | upstream commit | ||
4182 | |||
4183 | fix inverted logic that broke PermitRootLogin; reported | ||
4184 | by Mantas Mikulenas; ok markus@ | ||
4185 | |||
4186 | Upstream-ID: 260dd6a904c1bb7e43267e394b1c9cf70bdd5ea5 | ||
4187 | |||
4188 | commit ce445b0ed927e45bd5bdce8f836eb353998dd65c | ||
4189 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
4190 | Date: Thu Aug 20 22:32:42 2015 +0000 | ||
4191 | |||
4192 | upstream commit | ||
4193 | |||
4194 | Do not cast result of malloc/calloc/realloc* if stdlib.h | ||
4195 | is in scope ok krw millert | ||
4196 | |||
4197 | Upstream-ID: 5e50ded78cadf3841556649a16cc4b1cb6c58667 | ||
4198 | |||
4199 | commit 05291e5288704d1a98bacda269eb5a0153599146 | ||
4200 | Author: naddy@openbsd.org <naddy@openbsd.org> | ||
4201 | Date: Thu Aug 20 19:20:06 2015 +0000 | ||
4202 | |||
4203 | upstream commit | ||
4204 | |||
4205 | In the certificates section, be consistent about using | ||
4206 | "host_key" and "user_key" for the respective key types. ok sthen@ deraadt@ | ||
4207 | |||
4208 | Upstream-ID: 9e037ea3b15577b238604c5533e082a3947f13cb | ||
4209 | |||
4210 | commit 8543d4ef6f2e9f98c3e6b77c894ceec30c5e4ae4 | ||
4211 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4212 | Date: Wed Aug 19 23:21:42 2015 +0000 | ||
4213 | |||
4214 | upstream commit | ||
4215 | |||
4216 | Better compat matching for WinSCP, add compat matching | ||
4217 | for FuTTY (fork of PuTTY); ok markus@ deraadt@ | ||
4218 | |||
4219 | Upstream-ID: 24001d1ac115fa3260fbdc329a4b9aeb283c5389 | ||
4220 | |||
4221 | commit ec6eda16ebab771aa3dfc90629b41953b999cb1e | ||
4222 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4223 | Date: Wed Aug 19 23:19:01 2015 +0000 | ||
4224 | |||
4225 | upstream commit | ||
4226 | |||
4227 | fix double-free() in error path of DSA key generation | ||
4228 | reported by Mateusz Kocielski; ok markus@ | ||
4229 | |||
4230 | Upstream-ID: 4735d8f888b10599a935fa1b374787089116713c | ||
4231 | |||
4232 | commit 45b0eb752c94954a6de046bfaaf129e518ad4b5b | ||
4233 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4234 | Date: Wed Aug 19 23:18:26 2015 +0000 | ||
4235 | |||
4236 | upstream commit | ||
4237 | |||
4238 | fix free() of uninitialised pointer reported by Mateusz | ||
4239 | Kocielski; ok markus@ | ||
4240 | |||
4241 | Upstream-ID: 519552b050618501a06b7b023de5cb104e2c5663 | ||
4242 | |||
4243 | commit c837643b93509a3ef538cb6624b678c5fe32ff79 | ||
4244 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4245 | Date: Wed Aug 19 23:17:51 2015 +0000 | ||
4246 | |||
4247 | upstream commit | ||
4248 | |||
4249 | fixed unlink([uninitialised memory]) reported by Mateusz | ||
4250 | Kocielski; ok markus@ | ||
4251 | |||
4252 | Upstream-ID: 14a0c4e7d891f5a8dabc4b89d4f6b7c0d5a20109 | ||
4253 | |||
4254 | commit 1f8d3d629cd553031021068eb9c646a5f1e50994 | ||
4255 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
4256 | Date: Fri Aug 14 15:32:41 2015 +0000 | ||
4257 | |||
4258 | upstream commit | ||
4259 | |||
4260 | match myproposal.h order; from brian conway (i snuck in a | ||
4261 | tweak while here) | ||
4262 | |||
4263 | ok dtucker | ||
4264 | |||
4265 | Upstream-ID: 35174a19b5237ea36aa3798f042bf5933b772c67 | ||
4266 | |||
4267 | commit 1dc8d93ce69d6565747eb44446ed117187621b26 | ||
4268 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
4269 | Date: Thu Aug 6 14:53:21 2015 +0000 | ||
4270 | |||
4271 | upstream commit | ||
4272 | |||
4273 | add prohibit-password as a synonymn for without-password, | ||
4274 | since the without-password is causing too many questions. Harden it to ban | ||
4275 | all but pubkey, hostbased, and GSSAPI auth (when the latter is enabled) from | ||
4276 | djm, ok markus | ||
4277 | |||
4278 | Upstream-ID: d53317d7b28942153e6236d3fd6e12ceb482db7a | ||
4279 | |||
4280 | commit 90a95a4745a531b62b81ce3b025e892bdc434de5 | ||
4281 | Author: Damien Miller <djm@mindrot.org> | ||
4282 | Date: Tue Aug 11 13:53:41 2015 +1000 | ||
4283 | |||
4284 | update version in README | ||
4285 | |||
4286 | commit 318c37743534b58124f1bab37a8a0087a3a9bd2f | ||
4287 | Author: Damien Miller <djm@mindrot.org> | ||
4288 | Date: Tue Aug 11 13:53:09 2015 +1000 | ||
4289 | |||
4290 | update versions in *.spec | ||
4291 | |||
4292 | commit 5e75f5198769056089fb06c4d738ab0e5abc66f7 | ||
4293 | Author: Damien Miller <djm@mindrot.org> | ||
4294 | Date: Tue Aug 11 13:34:12 2015 +1000 | ||
4295 | |||
4296 | set sshpam_ctxt to NULL after free | ||
4297 | |||
4298 | Avoids use-after-free in monitor when privsep child is compromised. | ||
4299 | Reported by Moritz Jodeit; ok dtucker@ | ||
4300 | |||
4301 | commit d4697fe9a28dab7255c60433e4dd23cf7fce8a8b | ||
4302 | Author: Damien Miller <djm@mindrot.org> | ||
4303 | Date: Tue Aug 11 13:33:24 2015 +1000 | ||
4304 | |||
4305 | Don't resend username to PAM; it already has it. | ||
4306 | |||
4307 | Pointed out by Moritz Jodeit; ok dtucker@ | ||
4308 | |||
4309 | commit 88763a6c893bf3dfe951ba9271bf09715e8d91ca | ||
4310 | Author: Darren Tucker <dtucker@zip.com.au> | ||
4311 | Date: Mon Jul 27 12:14:25 2015 +1000 | ||
4312 | |||
4313 | Import updated moduli file from OpenBSD. | ||
4314 | |||
4315 | commit 55b263fb7cfeacb81aaf1c2036e0394c881637da | ||
4316 | Author: Damien Miller <djm@mindrot.org> | ||
4317 | Date: Mon Aug 10 11:13:44 2015 +1000 | ||
4318 | |||
4319 | let principals-command.sh work for noexec /var/run | ||
4320 | |||
4321 | commit 2651e34cd11b1aac3a0fe23b86d8c2ff35c07897 | ||
4322 | Author: Damien Miller <djm@mindrot.org> | ||
4323 | Date: Thu Aug 6 11:43:42 2015 +1000 | ||
4324 | |||
4325 | work around echo -n / sed behaviour in tests | ||
4326 | |||
4327 | commit d85dad81778c1aa8106acd46930b25fdf0d15b2a | ||
4328 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4329 | Date: Wed Aug 5 05:27:33 2015 +0000 | ||
4330 | |||
4331 | upstream commit | ||
4332 | |||
4333 | adjust for RSA minimum modulus switch; ok deraadt@ | ||
4334 | |||
4335 | Upstream-Regress-ID: 5a72c83431b96224d583c573ca281cd3a3ebfdae | ||
4336 | |||
4337 | commit 57e8e229bad5fe6056b5f1199665f5f7008192c6 | ||
4338 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4339 | Date: Tue Aug 4 05:23:06 2015 +0000 | ||
4340 | |||
4341 | upstream commit | ||
4342 | |||
4343 | backout SSH_RSA_MINIMUM_MODULUS_SIZE increase for this | ||
4344 | release; problems spotted by sthen@ ok deraadt@ markus@ | ||
4345 | |||
4346 | Upstream-ID: d0bd60dde9e8c3cd7030007680371894c1499822 | ||
4347 | |||
4348 | commit f097d0ea1e0889ca0fa2e53a00214e43ab7fa22a | ||
4349 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4350 | Date: Sun Aug 2 09:56:42 2015 +0000 | ||
4351 | |||
4352 | upstream commit | ||
4353 | |||
4354 | openssh 7.0; ok deraadt@ | ||
4355 | |||
4356 | Upstream-ID: c63afdef537f57f28ae84145c5a8e29e9250221f | ||
4357 | |||
4358 | commit 3d5728a0f6874ce4efb16913a12963595070f3a9 | ||
4359 | Author: chris@openbsd.org <chris@openbsd.org> | ||
4360 | Date: Fri Jul 31 15:38:09 2015 +0000 | ||
4361 | |||
4362 | upstream commit | ||
4363 | |||
4364 | Allow PermitRootLogin to be overridden by config | ||
4365 | |||
4366 | ok markus@ deeradt@ | ||
4367 | |||
4368 | Upstream-ID: 5cf3e26ed702888de84e2dc9d0054ccf4d9125b4 | ||
4369 | |||
4370 | commit 6f941396b6835ad18018845f515b0c4fe20be21a | ||
4371 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4372 | Date: Thu Jul 30 23:09:15 2015 +0000 | ||
4373 | |||
4374 | upstream commit | ||
4375 | |||
4376 | fix pty permissions; patch from Nikolay Edigaryev; ok | ||
4377 | deraadt | ||
4378 | |||
4379 | Upstream-ID: 40ff076d2878b916fbfd8e4f45dbe5bec019e550 | ||
4380 | |||
4381 | commit f4373ed1e8fbc7c8ce3fc4ea97d0ba2e0c1d7ef0 | ||
4382 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
4383 | Date: Thu Jul 30 19:23:02 2015 +0000 | ||
4384 | |||
4385 | upstream commit | ||
4386 | |||
4387 | change default: PermitRootLogin without-password matching | ||
4388 | install script changes coming as well ok djm markus | ||
4389 | |||
4390 | Upstream-ID: 0e2a6c4441daf5498b47a61767382bead5eb8ea6 | ||
4391 | |||
4392 | commit 0c30ba91f87fcda7e975e6ff8a057f624e87ea1c | ||
4393 | Author: Damien Miller <djm@mindrot.org> | ||
4394 | Date: Thu Jul 30 12:31:39 2015 +1000 | ||
4395 | |||
4396 | downgrade OOM adjustment logging: verbose -> debug | ||
4397 | |||
4398 | commit f9eca249d4961f28ae4b09186d7dc91de74b5895 | ||
4399 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4400 | Date: Thu Jul 30 00:01:34 2015 +0000 | ||
4401 | |||
4402 | upstream commit | ||
4403 | |||
4404 | Allow ssh_config and sshd_config kex parameters options be | ||
4405 | prefixed by a '+' to indicate that the specified items be appended to the | ||
4406 | default rather than replacing it. | ||
4407 | |||
4408 | approach suggested by dtucker@, feedback dlg@, ok markus@ | ||
4409 | |||
4410 | Upstream-ID: 0f901137298fc17095d5756ff1561a7028e8882a | ||
4411 | |||
4412 | commit 5cefe769105a2a2e3ca7479d28d9a325d5ef0163 | ||
4413 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4414 | Date: Wed Jul 29 08:34:54 2015 +0000 | ||
4415 | |||
4416 | upstream commit | ||
4417 | |||
4418 | fix bug in previous; was printing incorrect string for | ||
4419 | failed host key algorithms negotiation | ||
4420 | |||
4421 | Upstream-ID: 22c0dc6bc61930513065d92e11f0753adc4c6e6e | ||
4422 | |||
4423 | commit f319912b0d0e1675b8bb051ed8213792c788bcb2 | ||
4424 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4425 | Date: Wed Jul 29 04:43:06 2015 +0000 | ||
4426 | |||
4427 | upstream commit | ||
4428 | |||
4429 | include the peer's offer when logging a failure to | ||
4430 | negotiate a mutual set of algorithms (kex, pubkey, ciphers, etc.) ok markus@ | ||
4431 | |||
4432 | Upstream-ID: bbb8caabf5c01790bb845f5ce135565248d7c796 | ||
4433 | |||
4434 | commit b6ea0e573042eb85d84defb19227c89eb74cf05a | ||
4435 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4436 | Date: Tue Jul 28 23:20:42 2015 +0000 | ||
4437 | |||
4438 | upstream commit | ||
4439 | |||
4440 | add Cisco to the list of clients that choke on the | ||
4441 | hostkeys update extension. Pointed out by Howard Kash | ||
4442 | |||
4443 | Upstream-ID: c9eadde28ecec056c73d09ee10ba4570dfba7e84 | ||
4444 | |||
4445 | commit 3f628c7b537291c1019ce86af90756fb4e66d0fd | ||
4446 | Author: guenther@openbsd.org <guenther@openbsd.org> | ||
4447 | Date: Mon Jul 27 16:29:23 2015 +0000 | ||
4448 | |||
4449 | upstream commit | ||
4450 | |||
4451 | Permit kbind(2) use in the sandbox now, to ease testing | ||
4452 | of ld.so work using it | ||
4453 | |||
4454 | reminded by miod@, ok deraadt@ | ||
4455 | |||
4456 | Upstream-ID: 523922e4d1ba7a091e3824e77a8a3c818ee97413 | ||
4457 | |||
4458 | commit ebe27ebe520098bbc0fe58945a87ce8490121edb | ||
4459 | Author: millert@openbsd.org <millert@openbsd.org> | ||
4460 | Date: Mon Jul 20 18:44:12 2015 +0000 | ||
4461 | |||
4462 | upstream commit | ||
4463 | |||
4464 | Move .Pp before .Bl, not after to quiet mandoc -Tlint. | ||
4465 | Noticed by jmc@ | ||
4466 | |||
4467 | Upstream-ID: 59fadbf8407cec4e6931e50c53cfa0214a848e23 | ||
4468 | |||
4469 | commit d5d91d0da819611167782c66ab629159169d94d4 | ||
4470 | Author: millert@openbsd.org <millert@openbsd.org> | ||
4471 | Date: Mon Jul 20 18:42:35 2015 +0000 | ||
4472 | |||
4473 | upstream commit | ||
4474 | |||
4475 | Sync usage with SYNOPSIS | ||
4476 | |||
4477 | Upstream-ID: 7a321a170181a54f6450deabaccb6ef60cf3f0b7 | ||
4478 | |||
4479 | commit 79ec2142fbc68dd2ed9688608da355fc0b1ed743 | ||
4480 | Author: millert@openbsd.org <millert@openbsd.org> | ||
4481 | Date: Mon Jul 20 15:39:52 2015 +0000 | ||
4482 | |||
4483 | upstream commit | ||
4484 | |||
4485 | Better desciption of Unix domain socket forwarding. | ||
4486 | bz#2423; ok jmc@ | ||
4487 | |||
4488 | Upstream-ID: 85e28874726897e3f26ae50dfa2e8d2de683805d | ||
4489 | |||
4490 | commit d56fd1828074a4031b18b8faa0bf949669eb18a0 | ||
4491 | Author: Damien Miller <djm@mindrot.org> | ||
4492 | Date: Mon Jul 20 11:19:51 2015 +1000 | ||
4493 | |||
4494 | make realpath.c compile -Wsign-compare clean | ||
4495 | |||
4496 | commit c63c9a691dca26bb7648827f5a13668832948929 | ||
4497 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4498 | Date: Mon Jul 20 00:30:01 2015 +0000 | ||
4499 | |||
4500 | upstream commit | ||
4501 | |||
4502 | mention that the default of UseDNS=no implies that | ||
4503 | hostnames cannot be used for host matching in sshd_config and | ||
4504 | authorized_keys; bz#2045, ok dtucker@ | ||
4505 | |||
4506 | Upstream-ID: 0812705d5f2dfa59aab01f2764ee800b1741c4e1 | ||
4507 | |||
4508 | commit 63ebcd0005e9894fcd6871b7b80aeea1fec0ff76 | ||
4509 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4510 | Date: Sat Jul 18 08:02:17 2015 +0000 | ||
4511 | |||
4512 | upstream commit | ||
4513 | |||
4514 | don't ignore PKCS#11 hosted keys that return empty | ||
4515 | CKA_ID; patch by Jakub Jelen via bz#2429; ok markus | ||
4516 | |||
4517 | Upstream-ID: 2f7c94744eb0342f8ee8bf97b2351d4e00116485 | ||
4518 | |||
4519 | commit b15fd989c8c62074397160147a8d5bc34b3f3c63 | ||
4520 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4521 | Date: Sat Jul 18 08:00:21 2015 +0000 | ||
4522 | |||
4523 | upstream commit | ||
4524 | |||
4525 | skip uninitialised PKCS#11 slots; patch from Jakub Jelen | ||
4526 | in bz#2427 ok markus@ | ||
4527 | |||
4528 | Upstream-ID: 744c1e7796e237ad32992d0d02148e8a18f27d29 | ||
4529 | |||
4530 | commit 5b64f85bb811246c59ebab70aed331f26ba37b18 | ||
4531 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4532 | Date: Sat Jul 18 07:57:14 2015 +0000 | ||
4533 | |||
4534 | upstream commit | ||
4535 | |||
4536 | only query each keyboard-interactive device once per | ||
4537 | authentication request regardless of how many times it is listed; ok markus@ | ||
4538 | |||
4539 | Upstream-ID: d73fafba6e86030436ff673656ec1f33d9ffeda1 | ||
4540 | |||
4541 | commit cd7324d0667794eb5c236d8a4e0f236251babc2d | ||
4542 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4543 | Date: Fri Jul 17 03:34:27 2015 +0000 | ||
4544 | |||
4545 | upstream commit | ||
4546 | |||
4547 | remove -u flag to diff (only used for error output) to make | ||
4548 | things easier for -portable | ||
4549 | |||
4550 | Upstream-Regress-ID: a5d6777d2909540d87afec3039d9bb2414ade548 | ||
4551 | |||
4552 | commit deb8d99ecba70b67f4af7880b11ca8768df9ec3a | ||
4553 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4554 | Date: Fri Jul 17 03:09:19 2015 +0000 | ||
4555 | |||
4556 | upstream commit | ||
4557 | |||
4558 | direct-streamlocal@openssh.com Unix domain foward | ||
4559 | messages do not contain a "reserved for future use" field and in fact, | ||
4560 | serverloop.c checks that there isn't one. Remove erroneous mention from | ||
4561 | PROTOCOL description. bz#2421 from Daniel Black | ||
4562 | |||
4563 | Upstream-ID: 3d51a19e64f72f764682f1b08f35a8aa810a43ac | ||
4564 | |||
4565 | commit 356b61f365405b5257f5b2ab446e5d7bd33a7b52 | ||
4566 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4567 | Date: Fri Jul 17 03:04:27 2015 +0000 | ||
4568 | |||
4569 | upstream commit | ||
4570 | |||
4571 | describe magic for setting up Unix domain socket fowards | ||
4572 | via the mux channel; bz#2422 patch from Daniel Black | ||
4573 | |||
4574 | Upstream-ID: 943080fe3864715c423bdeb7c920bb30c4eee861 | ||
4575 | |||
4576 | commit d3e2aee41487d55b8d7d40f538b84ff1db7989bc | ||
4577 | Author: Darren Tucker <dtucker@zip.com.au> | ||
4578 | Date: Fri Jul 17 12:52:34 2015 +1000 | ||
4579 | |||
4580 | Check if realpath works on nonexistent files. | ||
4581 | |||
4582 | On some platforms the native realpath doesn't work with non-existent | ||
4583 | files (this is actually specified in some versions of POSIX), however | ||
4584 | the sftp spec says its realpath with "canonicalize any given path name". | ||
4585 | On those platforms, use realpath from the compat library. | ||
4586 | |||
4587 | In addition, when compiling with -DFORTIFY_SOURCE, glibc redefines | ||
4588 | the realpath symbol to the checked version, so redefine ours to | ||
4589 | something else so we pick up the compat version we want. | ||
4590 | |||
4591 | bz#2428, ok djm@ | ||
4592 | |||
4593 | commit 25b14610dab655646a109db5ef8cb4c4bf2a48a0 | ||
4594 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4595 | Date: Fri Jul 17 02:47:45 2015 +0000 | ||
4596 | |||
4597 | upstream commit | ||
4598 | |||
4599 | fix incorrect test for SSH1 keys when compiled without SSH1 | ||
4600 | support | ||
4601 | |||
4602 | Upstream-ID: 6004d720345b8e481c405e8ad05ce2271726e451 | ||
4603 | |||
4604 | commit df56a8035d429b2184ee94aaa7e580c1ff67f73a | ||
4605 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4606 | Date: Wed Jul 15 08:00:11 2015 +0000 | ||
4607 | |||
4608 | upstream commit | ||
4609 | |||
4610 | fix NULL-deref when SSH1 reenabled | ||
4611 | |||
4612 | Upstream-ID: f22fd805288c92b3e9646782d15b48894b2d5295 | ||
4613 | |||
4614 | commit 41e38c4d49dd60908484e6703316651333f16b93 | ||
4615 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4616 | Date: Wed Jul 15 07:19:50 2015 +0000 | ||
4617 | |||
4618 | upstream commit | ||
4619 | |||
4620 | regen RSA1 test keys; the last batch was missing their | ||
4621 | private parts | ||
4622 | |||
4623 | Upstream-Regress-ID: 7ccf437305dd63ff0b48dd50c5fd0f4d4230c10a | ||
4624 | |||
4625 | commit 5bf0933184cb622ca3f96d224bf3299fd2285acc | ||
4626 | Author: markus@openbsd.org <markus@openbsd.org> | ||
4627 | Date: Fri Jul 10 06:23:25 2015 +0000 | ||
4628 | |||
4629 | upstream commit | ||
4630 | |||
4631 | Adapt tests, now that DSA if off by default; use | ||
4632 | PubkeyAcceptedKeyTypes and PubkeyAcceptedKeyTypes to test DSA. | ||
4633 | |||
4634 | Upstream-Regress-ID: 0ff2a3ff5ac1ce5f92321d27aa07b98656efcc5c | ||
4635 | |||
4636 | commit 7a6e3fd7b41dbd3756b6bf9acd67954c0b1564cc | ||
4637 | Author: markus@openbsd.org <markus@openbsd.org> | ||
4638 | Date: Tue Jul 7 14:54:16 2015 +0000 | ||
4639 | |||
4640 | upstream commit | ||
4641 | |||
4642 | regen test data after mktestdata.sh changes | ||
4643 | |||
4644 | Upstream-Regress-ID: 3495ecb082b9a7c048a2d7c5c845d3bf181d25a4 | ||
4645 | |||
4646 | commit 7c8c174c69f681d4910fa41c37646763692b28e2 | ||
4647 | Author: markus@openbsd.org <markus@openbsd.org> | ||
4648 | Date: Tue Jul 7 14:53:30 2015 +0000 | ||
4649 | |||
4650 | upstream commit | ||
4651 | |||
4652 | adapt tests to new minimum RSA size and default FP format | ||
4653 | |||
4654 | Upstream-Regress-ID: a4b30afd174ce82b96df14eb49fb0b81398ffd0e | ||
4655 | |||
4656 | commit 6a977a4b68747ade189e43d302f33403fd4a47ac | ||
4657 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4658 | Date: Fri Jul 3 04:39:23 2015 +0000 | ||
4659 | |||
4660 | upstream commit | ||
4661 | |||
4662 | legacy v00 certificates are gone; adapt and don't try to | ||
4663 | test them; "sure" markus@ dtucker@ | ||
4664 | |||
4665 | Upstream-Regress-ID: c57321e69b3cd4a3b3396dfcc43f0803d047da12 | ||
4666 | |||
4667 | commit 0c4123ad5e93fb90fee9c6635b13a6cdabaac385 | ||
4668 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4669 | Date: Wed Jul 1 23:11:18 2015 +0000 | ||
4670 | |||
4671 | upstream commit | ||
4672 | |||
4673 | don't expect SSH v.1 in unittests | ||
4674 | |||
4675 | Upstream-Regress-ID: f8812b16668ba78e6a698646b2a652b90b653397 | ||
4676 | |||
4677 | commit 3c099845798a817cdde513c39074ec2063781f18 | ||
4678 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4679 | Date: Mon Jun 15 06:38:50 2015 +0000 | ||
4680 | |||
4681 | upstream commit | ||
4682 | |||
4683 | turn SSH1 back on to match src/usr.bin/ssh being tested | ||
4684 | |||
4685 | Upstream-Regress-ID: 6c4f763a2f0cc6893bf33983919e9030ae638333 | ||
4686 | |||
4687 | commit b1dc2b33689668c75e95f873a42d5aea1f4af1db | ||
4688 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
4689 | Date: Mon Jul 13 04:57:14 2015 +0000 | ||
4690 | |||
4691 | upstream commit | ||
4692 | |||
4693 | Add "PuTTY_Local:" to the clients to which we do not | ||
4694 | offer DH-GEX. This was the string that was used for development versions | ||
4695 | prior to September 2014 and they don't do RFC4419 DH-GEX, but unfortunately | ||
4696 | there are some extant products based on those versions. bx2424 from Jay | ||
4697 | Rouman, ok markus@ djm@ | ||
4698 | |||
4699 | Upstream-ID: be34d41e18b966832fe09ca243d275b81882e1d5 | ||
4700 | |||
4701 | commit 3a1638dda19bbc73d0ae02b4c251ce08e564b4b9 | ||
4702 | Author: markus@openbsd.org <markus@openbsd.org> | ||
4703 | Date: Fri Jul 10 06:21:53 2015 +0000 | ||
4704 | |||
4705 | upstream commit | ||
4706 | |||
4707 | Turn off DSA by default; add HostKeyAlgorithms to the | ||
4708 | server and PubkeyAcceptedKeyTypes to the client side, so it still can be | ||
4709 | tested or turned back on; feedback and ok djm@ | ||
4710 | |||
4711 | Upstream-ID: 8450a9e6d83f80c9bfed864ff061dfc9323cec21 | ||
4712 | |||
4713 | commit 16db0a7ee9a87945cc594d13863cfcb86038db59 | ||
4714 | Author: markus@openbsd.org <markus@openbsd.org> | ||
4715 | Date: Thu Jul 9 09:49:46 2015 +0000 | ||
4716 | |||
4717 | upstream commit | ||
4718 | |||
4719 | re-enable ed25519-certs if compiled w/o openssl; ok djm | ||
4720 | |||
4721 | Upstream-ID: e10c90808b001fd2c7a93778418e9b318f5c4c49 | ||
4722 | |||
4723 | commit c355bf306ac33de6545ce9dac22b84a194601e2f | ||
4724 | Author: markus@openbsd.org <markus@openbsd.org> | ||
4725 | Date: Wed Jul 8 20:24:02 2015 +0000 | ||
4726 | |||
4727 | upstream commit | ||
4728 | |||
4729 | no need to include the old buffer/key API | ||
4730 | |||
4731 | Upstream-ID: fb13c9f7c0bba2545f3eb0a0e69cb0030819f52b | ||
4732 | |||
4733 | commit a3cc48cdf9853f1e832d78cb29bedfab7adce1ee | ||
4734 | Author: markus@openbsd.org <markus@openbsd.org> | ||
4735 | Date: Wed Jul 8 19:09:25 2015 +0000 | ||
4736 | |||
4737 | upstream commit | ||
4738 | |||
4739 | typedefs for Cipher&CipherContext are unused | ||
4740 | |||
4741 | Upstream-ID: 50e6a18ee92221d23ad173a96d5b6c42207cf9a7 | ||
4742 | |||
4743 | commit a635bd06b5c427a57c3ae760d3a2730bb2c863c0 | ||
4744 | Author: markus@openbsd.org <markus@openbsd.org> | ||
4745 | Date: Wed Jul 8 19:04:21 2015 +0000 | ||
4746 | |||
4747 | upstream commit | ||
4748 | |||
4749 | xmalloc.h is unused | ||
4750 | |||
4751 | Upstream-ID: afb532355b7fa7135a60d944ca1e644d1d63cb58 | ||
4752 | |||
4753 | commit 2521cf0e36c7f3f6b19f206da0af134f535e4a31 | ||
4754 | Author: markus@openbsd.org <markus@openbsd.org> | ||
4755 | Date: Wed Jul 8 19:01:15 2015 +0000 | ||
4756 | |||
4757 | upstream commit | ||
4758 | |||
4759 | compress.c is gone | ||
4760 | |||
4761 | Upstream-ID: 174fa7faa9b9643cba06164b5e498591356fbced | ||
4762 | |||
4763 | commit c65a7aa6c43aa7a308ee1ab8a96f216169ae9615 | ||
4764 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4765 | Date: Fri Jul 3 04:05:54 2015 +0000 | ||
4766 | |||
4767 | upstream commit | ||
4768 | |||
4769 | another SSH_RSA_MINIMUM_MODULUS_SIZE that needed | ||
4770 | cranking | ||
4771 | |||
4772 | Upstream-ID: 9d8826cafe96aab4ae8e2f6fd22800874b7ffef1 | ||
4773 | |||
4774 | commit b1f383da5cd3cb921fc7776f17a14f44b8a31757 | ||
4775 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4776 | Date: Fri Jul 3 03:56:25 2015 +0000 | ||
4777 | |||
4778 | upstream commit | ||
4779 | |||
4780 | add an XXX reminder for getting correct key paths from | ||
4781 | sshd_config | ||
4782 | |||
4783 | Upstream-ID: feae52b209d7782ad742df04a4260e9fe41741db | ||
4784 | |||
4785 | commit 933935ce8d093996c34d7efa4d59113163080680 | ||
4786 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4787 | Date: Fri Jul 3 03:49:45 2015 +0000 | ||
4788 | |||
4789 | upstream commit | ||
4790 | |||
4791 | refuse to generate or accept RSA keys smaller than 1024 | ||
4792 | bits; feedback and ok dtucker@ | ||
4793 | |||
4794 | Upstream-ID: 7ea3d31271366ba264f06e34a3539bf1ac30f0ba | ||
4795 | |||
4796 | commit bdfd29f60b74f3e678297269dc6247a5699583c1 | ||
4797 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4798 | Date: Fri Jul 3 03:47:00 2015 +0000 | ||
4799 | |||
4800 | upstream commit | ||
4801 | |||
4802 | turn off 1024 bit diffie-hellman-group1-sha1 key | ||
4803 | exchange method (already off in server, this turns it off in the client by | ||
4804 | default too) ok dtucker@ | ||
4805 | |||
4806 | Upstream-ID: f59b88f449210ab7acf7d9d88f20f1daee97a4fa | ||
4807 | |||
4808 | commit c28fc62d789d860c75e23a9fa9fb250eb2beca57 | ||
4809 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4810 | Date: Fri Jul 3 03:43:18 2015 +0000 | ||
4811 | |||
4812 | upstream commit | ||
4813 | |||
4814 | delete support for legacy v00 certificates; "sure" | ||
4815 | markus@ dtucker@ | ||
4816 | |||
4817 | Upstream-ID: b5b9bb5f9202d09e88f912989d74928601b6636f | ||
4818 | |||
4819 | commit 564d63e1b4a9637a209d42a9d49646781fc9caef | ||
4820 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4821 | Date: Wed Jul 1 23:10:47 2015 +0000 | ||
4822 | |||
4823 | upstream commit | ||
4824 | |||
4825 | Compile-time disable SSH v.1 again | ||
4826 | |||
4827 | Upstream-ID: 1d4b513a3a06232f02650b73bad25100d1b800af | ||
4828 | |||
4829 | commit 868109b650504dd9bcccdb1f51d0906f967c20ff | ||
4830 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4831 | Date: Wed Jul 1 02:39:06 2015 +0000 | ||
4832 | |||
4833 | upstream commit | ||
4834 | |||
4835 | twiddle PermitRootLogin back | ||
4836 | |||
4837 | Upstream-ID: 2bd23976305d0512e9f84d054e1fc23cd70b89f2 | ||
4838 | |||
4839 | commit 7de4b03a6e4071d454b72927ffaf52949fa34545 | ||
4840 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4841 | Date: Wed Jul 1 02:32:17 2015 +0000 | ||
4842 | |||
4843 | upstream commit | ||
4844 | |||
4845 | twiddle; (this commit marks the openssh-6.9 release) | ||
4846 | |||
4847 | Upstream-ID: 78500582819f61dd8adee36ec5cc9b9ac9351234 | ||
4848 | |||
4849 | commit 1bf477d3cdf1a864646d59820878783d42357a1d | ||
4850 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4851 | Date: Wed Jul 1 02:26:31 2015 +0000 | ||
4852 | |||
4853 | upstream commit | ||
4854 | |||
4855 | better refuse ForwardX11Trusted=no connections attempted | ||
4856 | after ForwardX11Timeout expires; reported by Jann Horn | ||
4857 | |||
4858 | Upstream-ID: bf0fddadc1b46a0334e26c080038313b4b6dea21 | ||
4859 | |||
4860 | commit 47aa7a0f8551b471fcae0447c1d78464f6dba869 | ||
4861 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4862 | Date: Wed Jul 1 01:56:13 2015 +0000 | ||
4863 | |||
4864 | upstream commit | ||
4865 | |||
4866 | put back default PermitRootLogin=no | ||
4867 | |||
4868 | Upstream-ID: 7bdedd5cead99c57ed5571f3b6b7840922d5f728 | ||
4869 | |||
4870 | commit 984b064fe2a23733733262f88d2e1b2a1a501662 | ||
4871 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4872 | Date: Wed Jul 1 01:55:13 2015 +0000 | ||
4873 | |||
4874 | upstream commit | ||
4875 | |||
4876 | openssh-6.9 | ||
4877 | |||
4878 | Upstream-ID: 6cfe8e1904812531080e6ab6e752d7001b5b2d45 | ||
4879 | |||
4880 | commit d921082ed670f516652eeba50705e1e9f6325346 | ||
4881 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4882 | Date: Wed Jul 1 01:55:00 2015 +0000 | ||
4883 | |||
4884 | upstream commit | ||
4885 | |||
4886 | reset default PermitRootLogin to 'yes' (momentarily, for | ||
4887 | release) | ||
4888 | |||
4889 | Upstream-ID: cad8513527066e65dd7a1c16363d6903e8cefa24 | ||
4890 | |||
4891 | commit 66295e0e1ba860e527f191b6325d2d77dec4dbce | ||
4892 | Author: Damien Miller <djm@mindrot.org> | ||
4893 | Date: Wed Jul 1 11:49:12 2015 +1000 | ||
4894 | |||
4895 | crank version numbers for release | ||
4896 | |||
4897 | commit 37035c07d4f26bb1fbe000d2acf78efdb008681d | ||
4898 | Author: Damien Miller <djm@mindrot.org> | ||
4899 | Date: Wed Jul 1 10:49:37 2015 +1000 | ||
4900 | |||
4901 | s/--with-ssh1/--without-ssh1/ | ||
4902 | |||
4903 | commit 629df770dbadc2accfbe1c81b3f31f876d0acd84 | ||
4904 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4905 | Date: Tue Jun 30 05:25:07 2015 +0000 | ||
4906 | |||
4907 | upstream commit | ||
4908 | |||
4909 | fatal() when a remote window update causes the window | ||
4910 | value to overflow. Reported by Georg Wicherski, ok markus@ | ||
4911 | |||
4912 | Upstream-ID: ead397a9aceb3bf74ebfa5fcaf259d72e569f351 | ||
4913 | |||
4914 | commit f715afebe735d61df3fd30ad72d9ac1c8bd3b5f2 | ||
4915 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4916 | Date: Tue Jun 30 05:23:25 2015 +0000 | ||
4917 | |||
4918 | upstream commit | ||
4919 | |||
4920 | Fix math error in remote window calculations that causes | ||
4921 | eventual stalls for datagram channels. Reported by Georg Wicherski, ok | ||
4922 | markus@ | ||
4923 | |||
4924 | Upstream-ID: be54059d11bf64e0d85061f7257f53067842e2ab | ||
4925 | |||
4926 | commit 52fb6b9b034fcfd24bf88cc7be313e9c31de9889 | ||
4927 | Author: Damien Miller <djm@mindrot.org> | ||
4928 | Date: Tue Jun 30 16:05:40 2015 +1000 | ||
4929 | |||
4930 | skip IPv6-related portions on hosts without IPv6 | ||
4931 | |||
4932 | with Tim Rice | ||
4933 | |||
4934 | commit 512caddf590857af6aa12218461b5c0441028cf5 | ||
4935 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4936 | Date: Mon Jun 29 22:35:12 2015 +0000 | ||
4937 | |||
4938 | upstream commit | ||
4939 | |||
4940 | add getpid to sandbox, reachable by grace_alarm_handler | ||
4941 | |||
4942 | reported by Jakub Jelen; bz#2419 | ||
4943 | |||
4944 | Upstream-ID: d0da1117c16d4c223954995d35b0f47c8f684cd8 | ||
4945 | |||
4946 | commit 78c2a4f883ea9aba866358e2acd9793a7f42ca93 | ||
4947 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4948 | Date: Fri Jun 26 05:13:20 2015 +0000 | ||
4949 | |||
4950 | upstream commit | ||
4951 | |||
4952 | Fix \-escaping bug that caused forward path parsing to skip | ||
4953 | two characters and skip past the end of the string. | ||
4954 | |||
4955 | Based on patch by Salvador Fandino; ok dtucker@ | ||
4956 | |||
4957 | Upstream-ID: 7b879dc446335677cbe4cb549495636a0535f3bd | ||
4958 | |||
4959 | commit bc20205c91c9920361d12b15d253d4997dba494a | ||
4960 | Author: Damien Miller <djm@mindrot.org> | ||
4961 | Date: Thu Jun 25 09:51:39 2015 +1000 | ||
4962 | |||
4963 | add missing pselect6 | ||
4964 | |||
4965 | patch from Jakub Jelen | ||
4966 | |||
4967 | commit 9d27fb73b4a4e5e99cb880af790d5b1ce44f720a | ||
4968 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4969 | Date: Wed Jun 24 23:47:23 2015 +0000 | ||
4970 | |||
4971 | upstream commit | ||
4972 | |||
4973 | correct test to sshkey_sign(); spotted by Albert S. | ||
4974 | |||
4975 | Upstream-ID: 5f7347f40f0ca6abdaca2edb3bd62f4776518933 | ||
4976 | |||
4977 | commit 7ed01a96a1911d8b4a9ef4f3d064e1923bfad7e3 | ||
4978 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
4979 | Date: Wed Jun 24 01:49:19 2015 +0000 | ||
4980 | |||
4981 | upstream commit | ||
4982 | |||
4983 | Revert previous commit. We still want to call setgroups | ||
4984 | in the case where there are zero groups to remove any that we might otherwise | ||
4985 | inherit (as pointed out by grawity at gmail.com) and since the 2nd argument | ||
4986 | to setgroups is always a static global it's always valid to dereference in | ||
4987 | this case. ok deraadt@ djm@ | ||
4988 | |||
4989 | Upstream-ID: 895b5ac560a10befc6b82afa778641315725fd01 | ||
4990 | |||
4991 | commit 882f8bf94f79528caa65b0ba71c185d705bb7195 | ||
4992 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
4993 | Date: Wed Jun 24 01:49:19 2015 +0000 | ||
4994 | |||
4995 | upstream commit | ||
4996 | |||
4997 | Revert previous commit. We still want to call setgroups in | ||
4998 | the case where there are zero groups to remove any that we might otherwise | ||
4999 | inherit (as pointed out by grawity at gmail.com) and since the 2nd argument | ||
5000 | to setgroups is always a static global it's always valid to dereference in | ||
5001 | this case. ok deraadt@ djm@ | ||
5002 | |||
5003 | Upstream-ID: 895b5ac560a10befc6b82afa778641315725fd01 | ||
5004 | |||
5005 | commit 9488538a726951e82b3a4374f3c558d72c80a89b | ||
5006 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5007 | Date: Mon Jun 22 23:42:16 2015 +0000 | ||
5008 | |||
5009 | upstream commit | ||
5010 | |||
5011 | Don't count successful partial authentication as failures | ||
5012 | in monitor; this may have caused the monitor to refuse multiple | ||
5013 | authentications that would otherwise have successfully completed; ok markus@ | ||
5014 | |||
5015 | Upstream-ID: eb74b8e506714d0f649bd5c300f762a527af04a3 | ||
5016 | |||
5017 | commit 63b78d003bd8ca111a736e6cea6333da50f5f09b | ||
5018 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5019 | Date: Mon Jun 22 12:29:57 2015 +0000 | ||
5020 | |||
5021 | upstream commit | ||
5022 | |||
5023 | Don't call setgroups if we have zero groups; there's no | ||
5024 | guarantee that it won't try to deref the pointer. Based on a patch from mail | ||
5025 | at quitesimple.org, ok djm deraadt | ||
5026 | |||
5027 | Upstream-ID: 2fff85e11d7a9a387ef7fddf41fbfaf566708ab1 | ||
5028 | |||
5029 | commit 5c15e22c691c79a47747bcf5490126656f97cecd | ||
5030 | Author: Damien Miller <djm@mindrot.org> | ||
5031 | Date: Thu Jun 18 15:07:56 2015 +1000 | ||
5032 | |||
5033 | fix syntax error | ||
5034 | |||
5035 | commit 596dbca82f3f567fb3d2d69af4b4e1d3ba1e6403 | ||
5036 | Author: jsing@openbsd.org <jsing@openbsd.org> | ||
5037 | Date: Mon Jun 15 18:44:22 2015 +0000 | ||
5038 | |||
5039 | upstream commit | ||
5040 | |||
5041 | If AuthorizedPrincipalsCommand is specified, however | ||
5042 | AuthorizedPrincipalsFile is not (or is set to "none"), authentication will | ||
5043 | potentially fail due to key_cert_check_authority() failing to locate a | ||
5044 | principal that matches the username, even though an authorized principal has | ||
5045 | already been matched in the output of the subprocess. Fix this by using the | ||
5046 | same logic to determine if pw->pw_name should be passed, as is used to | ||
5047 | determine if a authorized principal must be matched earlier on. | ||
5048 | |||
5049 | ok djm@ | ||
5050 | |||
5051 | Upstream-ID: 43b42302ec846b0ea68aceb40677245391b9409d | ||
5052 | |||
5053 | commit aff3e94c0d75d0d0fa84ea392b50ab04f8c57905 | ||
5054 | Author: jsing@openbsd.org <jsing@openbsd.org> | ||
5055 | Date: Mon Jun 15 18:42:19 2015 +0000 | ||
5056 | |||
5057 | upstream commit | ||
5058 | |||
5059 | Make the arguments to match_principals_command() similar | ||
5060 | to match_principals_file(), by changing the last argument a struct | ||
5061 | sshkey_cert * and dereferencing key->cert in the caller. | ||
5062 | |||
5063 | No functional change. | ||
5064 | |||
5065 | ok djm@ | ||
5066 | |||
5067 | Upstream-ID: 533f99b844b21b47342b32b62e198dfffcf8651c | ||
5068 | |||
5069 | commit 97e2e1596c202a4693468378b16b2353fd2d6c5e | ||
5070 | Author: Damien Miller <djm@mindrot.org> | ||
5071 | Date: Wed Jun 17 14:36:54 2015 +1000 | ||
5072 | |||
5073 | trivial optimisation for seccomp-bpf | ||
5074 | |||
5075 | When doing arg inspection and the syscall doesn't match, skip | ||
5076 | past the instruction that reloads the syscall into the accumulator, | ||
5077 | since the accumulator hasn't been modified at this point. | ||
5078 | |||
5079 | commit 99f33d7304893bd9fa04d227cb6e870171cded19 | ||
5080 | Author: Damien Miller <djm@mindrot.org> | ||
5081 | Date: Wed Jun 17 10:50:51 2015 +1000 | ||
5082 | |||
5083 | aarch64 support for seccomp-bpf sandbox | ||
5084 | |||
5085 | Also resort and tidy syscall list. Based on patches by Jakub Jelen | ||
5086 | bz#2361; ok dtucker@ | ||
5087 | |||
5088 | commit 4ef702e1244633c1025ec7cfe044b9ab267097bf | ||
5089 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5090 | Date: Mon Jun 15 01:32:50 2015 +0000 | ||
5091 | |||
5092 | upstream commit | ||
5093 | |||
5094 | return failure on RSA signature error; reported by Albert S | ||
5095 | |||
5096 | Upstream-ID: e61bb93dbe0349625807b0810bc213a6822121fa | ||
5097 | |||
5098 | commit a170f22baf18af0b1acf2788b8b715605f41a1f9 | ||
5099 | Author: Tim Rice <tim@multitalents.net> | ||
5100 | Date: Tue Jun 9 22:41:13 2015 -0700 | ||
5101 | |||
5102 | Fix t12 rules for out of tree builds. | ||
5103 | |||
5104 | commit ec04dc4a5515c913121bc04ed261857e68fa5c18 | ||
5105 | Author: millert@openbsd.org <millert@openbsd.org> | ||
5106 | Date: Fri Jun 5 15:13:13 2015 +0000 | ||
5107 | |||
5108 | upstream commit | ||
5109 | |||
5110 | For "ssh -L 12345:/tmp/sock" don't fail with "No forward host | ||
5111 | name." (we have a path, not a host name). Based on a diff from Jared | ||
5112 | Yanovich. OK djm@ | ||
5113 | |||
5114 | Upstream-ID: 2846b0a8c7de037e33657f95afbd282837fc213f | ||
5115 | |||
5116 | commit 732d61f417a6aea0aa5308b59cb0f563bcd6edd6 | ||
5117 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5118 | Date: Fri Jun 5 03:44:14 2015 +0000 | ||
5119 | |||
5120 | upstream commit | ||
5121 | |||
5122 | typo: accidental repetition; bz#2386 | ||
5123 | |||
5124 | Upstream-ID: 45e620d99f6bc301e5949d34a54027374991c88b | ||
5125 | |||
5126 | commit adfb24c69d1b6f5e758db200866c711e25a2ba73 | ||
5127 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5128 | Date: Fri Jun 5 14:51:40 2015 +1000 | ||
5129 | |||
5130 | Add Linux powerpc64le and powerpcle entries. | ||
5131 | |||
5132 | Stopgap to resolve bz#2409 because we are so close to release and will | ||
5133 | update config.guess and friends shortly after the release. ok djm@ | ||
5134 | |||
5135 | commit a1195a0fdc9eddddb04d3e9e44c4775431cb77da | ||
5136 | Merge: 6397eed d2480bc | ||
5137 | Author: Tim Rice <tim@multitalents.net> | ||
5138 | Date: Wed Jun 3 21:43:13 2015 -0700 | ||
5139 | |||
5140 | Merge branch 'master' of git.mindrot.org:/var/git/openssh | ||
5141 | |||
5142 | commit 6397eedf953b2b973d2d7cbb504ab501a07f8ddc | ||
5143 | Author: Tim Rice <tim@multitalents.net> | ||
5144 | Date: Wed Jun 3 21:41:11 2015 -0700 | ||
5145 | |||
5146 | Remove unneeded backslashes. Patch from Ángel González | ||
5147 | |||
5148 | commit d2480bcac1caf31b03068de877a47d6e1027bf6d | ||
5149 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5150 | Date: Thu Jun 4 14:10:55 2015 +1000 | ||
5151 | |||
5152 | Remove redundant include of stdarg.h. bz#2410 | ||
5153 | |||
5154 | commit 5e67859a623826ccdf2df284cbb37e2d8e2787eb | ||
5155 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5156 | Date: Tue Jun 2 09:10:40 2015 +0000 | ||
5157 | |||
5158 | upstream commit | ||
5159 | |||
5160 | mention CheckHostIP adding addresses to known_hosts; | ||
5161 | bz#1993; ok dtucker@ | ||
5162 | |||
5163 | Upstream-ID: fd44b68440fd0dc29abf9f2d3f703d74a2396cb7 | ||
5164 | |||
5165 | commit d7a58bbac6583e33fd5eca8e2c2cc70c57617818 | ||
5166 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5167 | Date: Tue Jun 2 20:15:26 2015 +1000 | ||
5168 | |||
5169 | Replace strcpy with strlcpy. | ||
5170 | |||
5171 | ok djm, sanity check by Corinna Vinschen. | ||
5172 | |||
5173 | commit 51a1c2115265c6e80ede8a5c9dccada9aeed7143 | ||
5174 | Author: Damien Miller <djm@mindrot.org> | ||
5175 | Date: Fri May 29 18:27:21 2015 +1000 | ||
5176 | |||
5177 | skip, rather than fatal when run without SUDO set | ||
5178 | |||
5179 | commit 599f01142a376645b15cbc9349d7e8975e1cf245 | ||
5180 | Author: Damien Miller <djm@mindrot.org> | ||
5181 | Date: Fri May 29 18:03:15 2015 +1000 | ||
5182 | |||
5183 | fix merge botch that left ",," in KEX algs | ||
5184 | |||
5185 | commit 0c2a81dfc21822f2423edd30751e5ec53467b347 | ||
5186 | Author: Damien Miller <djm@mindrot.org> | ||
5187 | Date: Fri May 29 17:08:28 2015 +1000 | ||
5188 | |||
5189 | re-enable SSH protocol 1 at compile time | ||
5190 | |||
5191 | commit db438f9285d64282d3ac9e8c0944f59f037c0151 | ||
5192 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5193 | Date: Fri May 29 03:05:13 2015 +0000 | ||
5194 | |||
5195 | upstream commit | ||
5196 | |||
5197 | make this work without SUDO set; ok dtucker@ | ||
5198 | |||
5199 | Upstream-Regress-ID: bca88217b70bce2fe52b23b8e06bdeb82d98c715 | ||
5200 | |||
5201 | commit 1d9a2e2849c9864fe75daabf433436341c968e14 | ||
5202 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5203 | Date: Thu May 28 07:37:31 2015 +0000 | ||
5204 | |||
5205 | upstream commit | ||
5206 | |||
5207 | wrap all moduli-related code in #ifdef WITH_OPENSSL. | ||
5208 | based on patch from Reuben Hawkins; bz#2388 feedback and ok dtucker@ | ||
5209 | |||
5210 | Upstream-ID: d80cfc8be3e6ec65b3fac9e87c4466533b31b7cf | ||
5211 | |||
5212 | commit 496aeb25bc2d6c434171292e4714771b594bd00e | ||
5213 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5214 | Date: Thu May 28 05:41:29 2015 +0000 | ||
5215 | |||
5216 | upstream commit | ||
5217 | |||
5218 | Increase the allowed length of the known host file name | ||
5219 | in the log message to be consistent with other cases. Part of bz#1993, ok | ||
5220 | deraadt. | ||
5221 | |||
5222 | Upstream-ID: a9e97567be49f25daf286721450968251ff78397 | ||
5223 | |||
5224 | commit dd2cfeb586c646ff8d70eb93567b2e559ace5b14 | ||
5225 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5226 | Date: Thu May 28 05:09:45 2015 +0000 | ||
5227 | |||
5228 | upstream commit | ||
5229 | |||
5230 | Fix typo (keywork->keyword) | ||
5231 | |||
5232 | Upstream-ID: 8aacd0f4089c0a244cf43417f4f9045dfaeab534 | ||
5233 | |||
5234 | commit 9cc6842493fbf23025ccc1edab064869640d3bec | ||
5235 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5236 | Date: Thu May 28 04:50:53 2015 +0000 | ||
5237 | |||
5238 | upstream commit | ||
5239 | |||
5240 | add error message on ftruncate failure; bz#2176 | ||
5241 | |||
5242 | Upstream-ID: cbcc606e0b748520c74a210d8f3cc9718d3148cf | ||
5243 | |||
5244 | commit d1958793a0072c22be26d136dbda5ae263e717a0 | ||
5245 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5246 | Date: Thu May 28 04:40:13 2015 +0000 | ||
5247 | |||
5248 | upstream commit | ||
5249 | |||
5250 | make ssh-keygen default to ed25519 keys when compiled | ||
5251 | without OpenSSL; bz#2388, ok dtucker@ | ||
5252 | |||
5253 | Upstream-ID: 85a471fa6d3fa57a7b8e882d22cfbfc1d84cdc71 | ||
5254 | |||
5255 | commit 3ecde664c9fc5fb3667aedf9e6671462600f6496 | ||
5256 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5257 | Date: Wed May 27 23:51:10 2015 +0000 | ||
5258 | |||
5259 | upstream commit | ||
5260 | |||
5261 | Reorder client proposal to prefer | ||
5262 | diffie-hellman-group-exchange-sha1 over diffie-hellman-group14-sha1. ok djm@ | ||
5263 | |||
5264 | Upstream-ID: 552c08d47347c3ee1a9a57d88441ab50abe17058 | ||
5265 | |||
5266 | commit 40f64292b907afd0a674fdbf3e4c2356d17a7d68 | ||
5267 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5268 | Date: Wed May 27 23:39:18 2015 +0000 | ||
5269 | |||
5270 | upstream commit | ||
5271 | |||
5272 | Add a stronger (4k bit) fallback group that sshd can use | ||
5273 | when the moduli file is missing or broken, sourced from RFC3526. bz#2302, ok | ||
5274 | markus@ (earlier version), djm@ | ||
5275 | |||
5276 | Upstream-ID: b635215746a25a829d117673d5e5a76d4baee7f4 | ||
5277 | |||
5278 | commit 5ab7d5fa03ad55bc438fab45dfb3aeb30a3c237a | ||
5279 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5280 | Date: Thu May 28 10:03:40 2015 +1000 | ||
5281 | |||
5282 | New moduli file from OpenBSD, removing 1k groups. | ||
5283 | |||
5284 | Remove 1k bit groups. ok deraadt@, markus@ | ||
5285 | |||
5286 | commit a71ba58adf34e599f30cdda6e9b93ae6e3937eea | ||
5287 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5288 | Date: Wed May 27 05:15:02 2015 +0000 | ||
5289 | |||
5290 | upstream commit | ||
5291 | |||
5292 | support PKCS#11 devices with external PIN entry devices | ||
5293 | bz#2240, based on patch from Dirk-Willem van Gulik; feedback and ok dtucker@ | ||
5294 | |||
5295 | Upstream-ID: 504568992b55a8fc984375242b1bd505ced61b0d | ||
5296 | |||
5297 | commit b282fec1aa05246ed3482270eb70fc3ec5f39a00 | ||
5298 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5299 | Date: Tue May 26 23:23:40 2015 +0000 | ||
5300 | |||
5301 | upstream commit | ||
5302 | |||
5303 | Cap DH-GEX group size at 4kbits for Cisco implementations. | ||
5304 | Some of them will choke when asked for preferred sizes >4k instead of | ||
5305 | returning the 4k group that they do have. bz#2209, ok djm@ | ||
5306 | |||
5307 | Upstream-ID: 54b863a19713446b7431f9d06ad0532b4fcfef8d | ||
5308 | |||
5309 | commit 3e91b4e8b0dc2b4b7e7d42cf6e8994a32e4cb55e | ||
5310 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5311 | Date: Sun May 24 23:39:16 2015 +0000 | ||
5312 | |||
5313 | upstream commit | ||
5314 | |||
5315 | add missing 'c' option to getopt(), case statement was | ||
5316 | already there; from Felix Bolte | ||
5317 | |||
5318 | Upstream-ID: 9b19b4e2e0b54d6fefa0dfac707c51cf4bae3081 | ||
5319 | |||
5320 | commit 64a89ec07660abba4d0da7c0095b7371c98bab62 | ||
5321 | Author: jsg@openbsd.org <jsg@openbsd.org> | ||
5322 | Date: Sat May 23 14:28:37 2015 +0000 | ||
5323 | |||
5324 | upstream commit | ||
5325 | |||
5326 | fix a memory leak in an error path ok markus@ dtucker@ | ||
5327 | |||
5328 | Upstream-ID: bc1da0f205494944918533d8780fde65dff6c598 | ||
5329 | |||
5330 | commit f948737449257d2cb83ffcfe7275eb79b677fd4a | ||
5331 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5332 | Date: Fri May 22 05:28:45 2015 +0000 | ||
5333 | |||
5334 | upstream commit | ||
5335 | |||
5336 | mention ssh-keygen -E for comparing legacy MD5 | ||
5337 | fingerprints; bz#2332 | ||
5338 | |||
5339 | Upstream-ID: 079a3669549041dbf10dbc072d9563f0dc3b2859 | ||
5340 | |||
5341 | commit 0882332616e4f0272c31cc47bf2018f9cb258a4e | ||
5342 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5343 | Date: Fri May 22 04:45:52 2015 +0000 | ||
5344 | |||
5345 | upstream commit | ||
5346 | |||
5347 | Reorder EscapeChar option parsing to avoid a single-byte | ||
5348 | out- of-bounds read. bz#2396 from Jaak Ristioja; ok dtucker@ | ||
5349 | |||
5350 | Upstream-ID: 1dc6b5b63d1c8d9a88619da0b27ade461d79b060 | ||
5351 | |||
5352 | commit d7c31da4d42c115843edee2074d7d501f8804420 | ||
5353 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5354 | Date: Fri May 22 03:50:02 2015 +0000 | ||
5355 | |||
5356 | upstream commit | ||
5357 | |||
5358 | add knob to relax GSSAPI host credential check for | ||
5359 | multihomed hosts bz#928, patch by Simon Wilkinson; ok dtucker | ||
5360 | (kerberos/GSSAPI is not compiled by default on OpenBSD) | ||
5361 | |||
5362 | Upstream-ID: 15ddf1c6f7fd9d98eea9962f480079ae3637285d | ||
5363 | |||
5364 | commit aa72196a00be6e0b666215edcffbc10af234cb0e | ||
5365 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5366 | Date: Fri May 22 17:49:46 2015 +1000 | ||
5367 | |||
5368 | Include signal.h for sig_atomic_t, used by kex.h. | ||
5369 | |||
5370 | bz#2402, from tomas.kuthan at oracle com. | ||
5371 | |||
5372 | commit 8b02481143d75e91c49d1bfae0876ac1fbf9511a | ||
5373 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5374 | Date: Fri May 22 12:47:24 2015 +1000 | ||
5375 | |||
5376 | Import updated moduli file from OpenBSD. | ||
5377 | |||
5378 | commit 4739e8d5e1c0be49624082bd9f6b077e9e758db9 | ||
5379 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5380 | Date: Thu May 21 12:01:19 2015 +0000 | ||
5381 | |||
5382 | upstream commit | ||
5383 | |||
5384 | Support "ssh-keygen -lF hostname" to find search known_hosts | ||
5385 | and print key hashes. Already advertised by ssh-keygen(1), but not delivered | ||
5386 | by code; ok dtucker@ | ||
5387 | |||
5388 | Upstream-ID: 459e0e2bf39825e41b0811c336db2d56a1c23387 | ||
5389 | |||
5390 | commit e97201feca10b5196da35819ae516d0b87cf3a50 | ||
5391 | Author: Damien Miller <djm@mindrot.org> | ||
5392 | Date: Thu May 21 17:55:15 2015 +1000 | ||
5393 | |||
5394 | conditionalise util.h inclusion | ||
5395 | |||
5396 | commit 13640798c7dd011ece0a7d02841fe48e94cfa0e0 | ||
5397 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5398 | Date: Thu May 21 06:44:25 2015 +0000 | ||
5399 | |||
5400 | upstream commit | ||
5401 | |||
5402 | regress test for AuthorizedPrincipalsCommand | ||
5403 | |||
5404 | Upstream-Regress-ID: c658fbf1ab6b6011dc83b73402322e396f1e1219 | ||
5405 | |||
5406 | commit 84452c5d03c21f9bfb28c234e0dc1dc67dd817b1 | ||
5407 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5408 | Date: Thu May 21 06:40:02 2015 +0000 | ||
5409 | |||
5410 | upstream commit | ||
5411 | |||
5412 | regress test for AuthorizedKeysCommand arguments | ||
5413 | |||
5414 | Upstream-Regress-ID: bbd65c13c6b3be9a442ec115800bff9625898f12 | ||
5415 | |||
5416 | commit bcc50d816187fa9a03907ac1f3a52f04a52e10d1 | ||
5417 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5418 | Date: Thu May 21 06:43:30 2015 +0000 | ||
5419 | |||
5420 | upstream commit | ||
5421 | |||
5422 | add AuthorizedPrincipalsCommand that allows getting | ||
5423 | authorized_principals from a subprocess rather than a file, which is quite | ||
5424 | useful in deployments with large userbases | ||
5425 | |||
5426 | feedback and ok markus@ | ||
5427 | |||
5428 | Upstream-ID: aa1bdac7b16fc6d2fa3524ef08f04c7258d247f6 | ||
5429 | |||
5430 | commit 24232a3e5ab467678a86aa67968bbb915caffed4 | ||
5431 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5432 | Date: Thu May 21 06:38:35 2015 +0000 | ||
5433 | |||
5434 | upstream commit | ||
5435 | |||
5436 | support arguments to AuthorizedKeysCommand | ||
5437 | |||
5438 | bz#2081 loosely based on patch by Sami Hartikainen | ||
5439 | feedback and ok markus@ | ||
5440 | |||
5441 | Upstream-ID: b080387a14aa67dddd8ece67c00f268d626541f7 | ||
5442 | |||
5443 | commit d80fbe41a57c72420c87a628444da16d09d66ca7 | ||
5444 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5445 | Date: Thu May 21 04:55:51 2015 +0000 | ||
5446 | |||
5447 | upstream commit | ||
5448 | |||
5449 | refactor: split base64 encoding of pubkey into its own | ||
5450 | sshkey_to_base64() function and out of sshkey_write(); ok markus@ | ||
5451 | |||
5452 | Upstream-ID: 54fc38f5832e9b91028900819bda46c3959a0c1a | ||
5453 | |||
5454 | commit 7cc44ef74133a473734bbcbd3484f24d6a7328c5 | ||
5455 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
5456 | Date: Mon May 18 15:06:05 2015 +0000 | ||
5457 | |||
5458 | upstream commit | ||
5459 | |||
5460 | getentropy() and sendsyslog() have been around long | ||
5461 | enough. openssh-portable may want the #ifdef's but not base. discussed with | ||
5462 | djm few weeks back | ||
5463 | |||
5464 | Upstream-ID: 0506a4334de108e3fb6c66f8d6e0f9c112866926 | ||
5465 | |||
5466 | commit 9173d0fbe44de7ebcad8a15618e13a8b8d78902e | ||
5467 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5468 | Date: Fri May 15 05:44:21 2015 +0000 | ||
5469 | |||
5470 | upstream commit | ||
5471 | |||
5472 | Use a salted hash of the lock passphrase instead of plain | ||
5473 | text and do constant-time comparisons of it. Should prevent leaking any | ||
5474 | information about it via timing, pointed out by Ryan Castellucci. Add a 0.1s | ||
5475 | incrementing delay for each failed unlock attempt up to 10s. ok markus@ | ||
5476 | (earlier version), djm@ | ||
5477 | |||
5478 | Upstream-ID: c599fcc325aa1cc65496b25220b622d22208c85f | ||
5479 | |||
5480 | commit d028d5d3a697c71b21e4066d8672cacab3caa0a8 | ||
5481 | Author: Damien Miller <djm@mindrot.org> | ||
5482 | Date: Tue May 5 19:10:58 2015 +1000 | ||
5483 | |||
5484 | upstream commit | ||
5485 | |||
5486 | - tedu@cvs.openbsd.org 2015/01/12 03:20:04 | ||
5487 | [bcrypt_pbkdf.c] | ||
5488 | rename blocks to words. bcrypt "blocks" are unrelated to blowfish blocks, | ||
5489 | nor are they the same size. | ||
5490 | |||
5491 | commit f6391d4e59b058984163ab28f4e317e7a72478f1 | ||
5492 | Author: Damien Miller <djm@mindrot.org> | ||
5493 | Date: Tue May 5 19:10:23 2015 +1000 | ||
5494 | |||
5495 | upstream commit | ||
5496 | |||
5497 | - deraadt@cvs.openbsd.org 2015/01/08 00:30:07 | ||
5498 | [bcrypt_pbkdf.c] | ||
5499 | declare a local version of MIN(), call it MINIMUM() | ||
5500 | |||
5501 | commit 8ac6b13cc9113eb47cd9e86c97d7b26b4b71b77f | ||
5502 | Author: Damien Miller <djm@mindrot.org> | ||
5503 | Date: Tue May 5 19:09:46 2015 +1000 | ||
5504 | |||
5505 | upstream commit | ||
5506 | |||
5507 | - djm@cvs.openbsd.org 2014/12/30 01:41:43 | ||
5508 | [bcrypt_pbkdf.c] | ||
5509 | typo in comment: ouput => output | ||
5510 | |||
5511 | commit 1f792489d5cf86a4f4e3003e6e9177654033f0f2 | ||
5512 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5513 | Date: Mon May 4 06:10:48 2015 +0000 | ||
5514 | |||
5515 | upstream commit | ||
5516 | |||
5517 | Remove pattern length argument from match_pattern_list(), we | ||
5518 | only ever use it for strlen(pattern). | ||
5519 | |||
5520 | Prompted by hanno AT hboeck.de pointing an out-of-bound read | ||
5521 | error caused by an incorrect pattern length found using AFL | ||
5522 | and his own tools. | ||
5523 | |||
5524 | ok markus@ | ||
5525 | |||
5526 | commit 639d6bc57b1942393ed12fb48f00bc05d4e093e4 | ||
5527 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5528 | Date: Fri May 1 07:10:01 2015 +0000 | ||
5529 | |||
5530 | upstream commit | ||
5531 | |||
5532 | refactor ssh_dispatch_run_fatal() to use sshpkt_fatal() | ||
5533 | to better report error conditions. Teach sshpkt_fatal() about ECONNRESET. | ||
5534 | |||
5535 | Improves error messages on TCP connection resets. bz#2257 | ||
5536 | |||
5537 | ok dtucker@ | ||
5538 | |||
5539 | commit 9559d7de34c572d4d3fd990ca211f8ec99f62c4d | ||
5540 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5541 | Date: Fri May 1 07:08:08 2015 +0000 | ||
5542 | |||
5543 | upstream commit | ||
5544 | |||
5545 | a couple of parse targets were missing activep checks, | ||
5546 | causing them to be misapplied in match context; bz#2272 diagnosis and | ||
5547 | original patch from Sami Hartikainen ok dtucker@ | ||
5548 | |||
5549 | commit 7e8528cad04b2775c3b7db08abf8fb42e47e6b2a | ||
5550 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5551 | Date: Fri May 1 04:17:51 2015 +0000 | ||
5552 | |||
5553 | upstream commit | ||
5554 | |||
5555 | make handling of AuthorizedPrincipalsFile=none more | ||
5556 | consistent with other =none options; bz#2288 from Jakub Jelen; ok dtucker@ | ||
5557 | |||
5558 | commit ca430d4d9cc0f62eca3b1fb1e2928395b7ce80f7 | ||
5559 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5560 | Date: Fri May 1 04:03:20 2015 +0000 | ||
5561 | |||
5562 | upstream commit | ||
5563 | |||
5564 | remove failed remote forwards established by muliplexing | ||
5565 | from the list of active forwards; bz#2363, patch mostly by Yoann Ricordel; ok | ||
5566 | dtucker@ | ||
5567 | |||
5568 | commit 8312cfb8ad88657517b3e23ac8c56c8e38eb9792 | ||
5569 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5570 | Date: Fri May 1 04:01:58 2015 +0000 | ||
5571 | |||
5572 | upstream commit | ||
5573 | |||
5574 | reduce stderr spam when using ssh -S /path/mux -O forward | ||
5575 | -R 0:... ok dtucker@ | ||
5576 | |||
5577 | commit 179be0f5e62f1f492462571944e45a3da660d82b | ||
5578 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5579 | Date: Fri May 1 03:23:51 2015 +0000 | ||
5580 | |||
5581 | upstream commit | ||
5582 | |||
5583 | prevent authorized_keys options picked up on public key | ||
5584 | tests without a corresponding private key authentication being applied to | ||
5585 | other authentication methods. Reported by halex@, ok markus@ | ||
5586 | |||
5587 | commit a42d67be65b719a430b7fcaba2a4e4118382723a | ||
5588 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5589 | Date: Fri May 1 03:20:54 2015 +0000 | ||
5590 | |||
5591 | upstream commit | ||
5592 | |||
5593 | Don't make parsing of authorized_keys' environment= | ||
5594 | option conditional on PermitUserEnv - always parse it, but only use the | ||
5595 | result if the option is enabled. This prevents the syntax of authorized_keys | ||
5596 | changing depending on which sshd_config options were enabled. | ||
5597 | |||
5598 | bz#2329; based on patch from coladict AT gmail.com, ok dtucker@ | ||
5599 | |||
5600 | commit e661a86353e11592c7ed6a847e19a83609f49e77 | ||
5601 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5602 | Date: Mon May 4 06:10:48 2015 +0000 | ||
5603 | |||
5604 | upstream commit | ||
5605 | |||
5606 | Remove pattern length argument from match_pattern_list(), we | ||
5607 | only ever use it for strlen(pattern). | ||
5608 | |||
5609 | Prompted by hanno AT hboeck.de pointing an out-of-bound read | ||
5610 | error caused by an incorrect pattern length found using AFL | ||
5611 | and his own tools. | ||
5612 | |||
5613 | ok markus@ | ||
5614 | |||
5615 | commit 0ef1de742be2ee4b10381193fe90730925b7f027 | ||
5616 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5617 | Date: Thu Apr 23 05:01:19 2015 +0000 | ||
5618 | |||
5619 | upstream commit | ||
5620 | |||
5621 | Add a simple regression test for sshd's configuration | ||
5622 | parser. Right now, all it does is run the output of sshd -T back through | ||
5623 | itself and ensure the output is valid and invariant. | ||
5624 | |||
5625 | commit 368f83c793275faa2c52f60eaa9bdac155c4254b | ||
5626 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5627 | Date: Wed Apr 22 01:38:36 2015 +0000 | ||
5628 | |||
5629 | upstream commit | ||
5630 | |||
5631 | use correct key for nested certificate test | ||
5632 | |||
5633 | commit 8d4d1bfddbbd7d21f545dc6997081d1ea1fbc99a | ||
5634 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5635 | Date: Fri May 1 07:11:47 2015 +0000 | ||
5636 | |||
5637 | upstream commit | ||
5638 | |||
5639 | mention that the user's shell from /etc/passwd is used | ||
5640 | for commands too; bz#1459 ok dtucker@ | ||
5641 | |||
5642 | commit 5ab283d0016bbc9d4d71e8e5284d011bc5a930cf | ||
5643 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5644 | Date: Fri May 8 07:29:00 2015 +0000 | ||
5645 | |||
5646 | upstream commit | ||
5647 | |||
5648 | whitespace | ||
5649 | |||
5650 | Upstream-Regress-ID: 6b708a3e709d5b7fd37890f874bafdff1f597519 | ||
5651 | |||
5652 | commit 8377d5008ad260048192e1e56ad7d15a56d103dd | ||
5653 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5654 | Date: Fri May 8 07:26:13 2015 +0000 | ||
5655 | |||
5656 | upstream commit | ||
5657 | |||
5658 | whitespace at EOL | ||
5659 | |||
5660 | Upstream-Regress-ID: 9c48911643d5b05173b36a012041bed4080b8554 | ||
5661 | |||
5662 | commit c28a3436fa8737709ea88e4437f8f23a6ab50359 | ||
5663 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5664 | Date: Fri May 8 06:45:13 2015 +0000 | ||
5665 | |||
5666 | upstream commit | ||
5667 | |||
5668 | moar whitespace at eol | ||
5669 | |||
5670 | Upstream-ID: 64eaf872a3ba52ed41e494287e80d40aaba4b515 | ||
5671 | |||
5672 | commit 2b64c490468fd4ca35ac8d5cc31c0520dc1508bb | ||
5673 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5674 | Date: Fri May 8 06:41:56 2015 +0000 | ||
5675 | |||
5676 | upstream commit | ||
5677 | |||
5678 | whitespace at EOL | ||
5679 | |||
5680 | Upstream-ID: 57bcf67d666c6fc1ad798aee448fdc3f70f7ec2c | ||
5681 | |||
5682 | commit 4e636cf201ce6e7e3b9088568218f9d4e2c51712 | ||
5683 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5684 | Date: Fri May 8 03:56:51 2015 +0000 | ||
5685 | |||
5686 | upstream commit | ||
5687 | |||
5688 | whitespace at EOL | ||
5689 | |||
5690 | commit 38b8272f823dc1dd4e29dbcee83943ed48bb12fa | ||
5691 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5692 | Date: Mon May 4 01:47:53 2015 +0000 | ||
5693 | |||
5694 | upstream commit | ||
5695 | |||
5696 | Use diff w/out -u for better portability | ||
5697 | |||
5698 | commit 297060f42d5189a4065ea1b6f0afdf6371fb0507 | ||
5699 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5700 | Date: Fri May 8 03:25:07 2015 +0000 | ||
5701 | |||
5702 | upstream commit | ||
5703 | |||
5704 | Use xcalloc for permitted_adm_opens instead of xmalloc to | ||
5705 | ensure it's zeroed. Fixes post-auth crash with permitopen=none. bz#2355, ok | ||
5706 | djm@ | ||
5707 | |||
5708 | commit 63ebf019be863b2d90492a85e248cf55a6e87403 | ||
5709 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5710 | Date: Fri May 8 03:17:49 2015 +0000 | ||
5711 | |||
5712 | upstream commit | ||
5713 | |||
5714 | don't choke on new-format private keys encrypted with an | ||
5715 | AEAD cipher; bz#2366, patch from Ron Frederick; ok markus@ | ||
5716 | |||
5717 | commit f8484dac678ab3098ae522a5f03bb2530f822987 | ||
5718 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5719 | Date: Wed May 6 05:45:17 2015 +0000 | ||
5720 | |||
5721 | upstream commit | ||
5722 | |||
5723 | Clarify pseudo-terminal request behaviour and use | ||
5724 | "pseudo-terminal" consistently. bz#1716, ok jmc@ "I like it" deraadt@. | ||
5725 | |||
5726 | commit ea139507bef8bad26e86ed99a42c7233ad115c38 | ||
5727 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5728 | Date: Wed May 6 04:07:18 2015 +0000 | ||
5729 | |||
5730 | upstream commit | ||
5731 | |||
5732 | Blacklist DH-GEX for specific PuTTY versions known to | ||
5733 | send non-RFC4419 DH-GEX messages rather than all versions of PuTTY. | ||
5734 | According to Simon Tatham, 0.65 and newer versions will send RFC4419 DH-GEX | ||
5735 | messages. ok djm@ | ||
5736 | |||
5737 | commit b58234f00ee3872eb84f6e9e572a9a34e902e36e | ||
5738 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5739 | Date: Tue May 5 10:17:49 2015 +0000 | ||
5740 | |||
5741 | upstream commit | ||
5742 | |||
5743 | WinSCP doesn't implement RFC4419 DH-GEX so flag it so we | ||
5744 | don't offer that KEX method. ok markus@ | ||
5745 | |||
5746 | commit d5b1507a207253b39e810e91e68f9598691b7a29 | ||
5747 | Author: jsg@openbsd.org <jsg@openbsd.org> | ||
5748 | Date: Tue May 5 02:48:17 2015 +0000 | ||
5749 | |||
5750 | upstream commit | ||
5751 | |||
5752 | use the sizeof the struct not the sizeof a pointer to the | ||
5753 | struct in ssh_digest_start() | ||
5754 | |||
5755 | This file is only used if ssh is built with OPENSSL=no | ||
5756 | |||
5757 | ok markus@ | ||
5758 | |||
5759 | commit a647b9b8e616c231594b2710c925d31b1b8afea3 | ||
5760 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5761 | Date: Fri May 8 11:07:27 2015 +1000 | ||
5762 | |||
5763 | Put brackets around mblen() compat constant. | ||
5764 | |||
5765 | This might help with the reported problem cross compiling for Android | ||
5766 | ("error: expected identifier or '(' before numeric constant") but | ||
5767 | shouldn't hurt in any case. | ||
5768 | |||
5769 | commit d1680d36e17244d9af3843aeb5025cb8e40d6c07 | ||
5770 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5771 | Date: Thu Apr 30 09:18:11 2015 +1000 | ||
5772 | |||
5773 | xrealloc -> xreallocarray in portable code too. | ||
5774 | |||
5775 | commit 531a57a3893f9fcd4aaaba8c312b612bbbcc021e | ||
5776 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5777 | Date: Wed Apr 29 03:48:56 2015 +0000 | ||
5778 | |||
5779 | upstream commit | ||
5780 | |||
5781 | Allow ListenAddress, Port and AddressFamily in any | ||
5782 | order. bz#68, ok djm@, jmc@ (for the man page bit). | ||
5783 | |||
5784 | commit c1d5bcf1aaf1209af02f79e48ba1cbc76a87b56f | ||
5785 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
5786 | Date: Tue Apr 28 13:47:38 2015 +0000 | ||
5787 | |||
5788 | upstream commit | ||
5789 | |||
5790 | enviroment -> environment: apologies to darren for not | ||
5791 | spotting that first time round... | ||
5792 | |||
5793 | commit 43beea053db191cac47c2cd8d3dc1930158aff1a | ||
5794 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5795 | Date: Tue Apr 28 10:25:15 2015 +0000 | ||
5796 | |||
5797 | upstream commit | ||
5798 | |||
5799 | Fix typo in previous | ||
5800 | |||
5801 | commit 85b96ef41374f3ddc9139581f87da09b2cd9199e | ||
5802 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5803 | Date: Tue Apr 28 10:17:58 2015 +0000 | ||
5804 | |||
5805 | upstream commit | ||
5806 | |||
5807 | Document that the TERM environment variable is not | ||
5808 | subject to SendEnv and AcceptEnv. bz#2386, based loosely on a patch from | ||
5809 | jjelen at redhat, help and ok jmc@ | ||
5810 | |||
5811 | commit 88a7c598a94ff53f76df228eeaae238d2d467565 | ||
5812 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5813 | Date: Mon Apr 27 21:42:48 2015 +0000 | ||
5814 | |||
5815 | upstream commit | ||
5816 | |||
5817 | Make sshd default to PermitRootLogin=no; ok deraadt@ | ||
5818 | rpe@ | ||
5819 | |||
5820 | commit 734226b4480a6c736096c729fcf6f391400599c7 | ||
5821 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5822 | Date: Mon Apr 27 01:52:30 2015 +0000 | ||
5823 | |||
5824 | upstream commit | ||
5825 | |||
5826 | fix compilation with OPENSSL=no; ok dtucker@ | ||
5827 | |||
5828 | commit a4b9d2ce1eb7703eaf0809b0c8a82ded8aa4f1c6 | ||
5829 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5830 | Date: Mon Apr 27 00:37:53 2015 +0000 | ||
5831 | |||
5832 | upstream commit | ||
5833 | |||
5834 | Include stdio.h for FILE (used in sshkey.h) so it | ||
5835 | compiles with OPENSSL=no. | ||
5836 | |||
5837 | commit dbcc652f4ca11fe04e5930c7ef18a219318c6cda | ||
5838 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5839 | Date: Mon Apr 27 00:21:21 2015 +0000 | ||
5840 | |||
5841 | upstream commit | ||
5842 | |||
5843 | allow "sshd -f none" to skip reading the config file, | ||
5844 | much like "ssh -F none" does. ok dtucker | ||
5845 | |||
5846 | commit b7ca276fca316c952f0b90f5adb1448c8481eedc | ||
5847 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
5848 | Date: Fri Apr 24 06:26:49 2015 +0000 | ||
5849 | |||
5850 | upstream commit | ||
5851 | |||
5852 | combine -Dd onto one line and update usage(); | ||
5853 | |||
5854 | commit 2ea974630d7017e4c7666d14d9dc939707613e96 | ||
5855 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5856 | Date: Fri Apr 24 05:26:44 2015 +0000 | ||
5857 | |||
5858 | upstream commit | ||
5859 | |||
5860 | add ssh-agent -D to leave ssh-agent in foreground | ||
5861 | without enabling debug mode; bz#2381 ok dtucker@ | ||
5862 | |||
5863 | commit 8ac2ffd7aa06042f6b924c87139f2fea5c5682f7 | ||
5864 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
5865 | Date: Fri Apr 24 01:36:24 2015 +0000 | ||
5866 | |||
5867 | upstream commit | ||
5868 | |||
5869 | 2*len -> use xreallocarray() ok djm | ||
5870 | |||
5871 | commit 657a5fbc0d0aff309079ff8fb386f17e964963c2 | ||
5872 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
5873 | Date: Fri Apr 24 01:36:00 2015 +0000 | ||
5874 | |||
5875 | upstream commit | ||
5876 | |||
5877 | rename xrealloc() to xreallocarray() since it follows | ||
5878 | that form. ok djm | ||
5879 | |||
5880 | commit 1108ae242fdd2c304307b68ddf46aebe43ebffaa | ||
5881 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5882 | Date: Thu Apr 23 04:59:10 2015 +0000 | ||
5883 | |||
5884 | upstream commit | ||
5885 | |||
5886 | Two small fixes for sshd -T: ListenAddress'es are added | ||
5887 | to a list head so reverse the order when printing them to ensure the | ||
5888 | behaviour remains the same, and print StreamLocalBindMask as octal with | ||
5889 | leading zero. ok deraadt@ | ||
5890 | |||
5891 | commit bd902b8473e1168f19378d5d0ae68d0c203525df | ||
5892 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5893 | Date: Thu Apr 23 04:53:53 2015 +0000 | ||
5894 | |||
5895 | upstream commit | ||
5896 | |||
5897 | Check for and reject missing arguments for | ||
5898 | VersionAddendum and ForceCommand. bz#2281, patch from plautrba at redhat com, | ||
5899 | ok djm@ | ||
5900 | |||
5901 | commit ca42c1758575e592239de1d5755140e054b91a0d | ||
5902 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5903 | Date: Wed Apr 22 01:24:01 2015 +0000 | ||
5904 | |||
5905 | upstream commit | ||
5906 | |||
5907 | unknown certificate extensions are non-fatal, so don't | ||
5908 | fatal when they are encountered; bz#2387 reported by Bob Van Zant; ok | ||
5909 | dtucker@ | ||
5910 | |||
5911 | commit 39bfbf7caad231cc4bda6909fb1af0705bca04d8 | ||
5912 | Author: jsg@openbsd.org <jsg@openbsd.org> | ||
5913 | Date: Tue Apr 21 07:01:00 2015 +0000 | ||
5914 | |||
5915 | upstream commit | ||
5916 | |||
5917 | Add back a backslash removed in rev 1.42 so | ||
5918 | KEX_SERVER_ENCRYPT will include aes again. | ||
5919 | |||
5920 | ok deraadt@ | ||
5921 | |||
5922 | commit 6b0d576bb87eca3efd2b309fcfe4edfefc289f9c | ||
5923 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5924 | Date: Fri Apr 17 13:32:09 2015 +0000 | ||
5925 | |||
5926 | upstream commit | ||
5927 | |||
5928 | s/recommended/required/ that private keys be og-r this | ||
5929 | wording change was made a while ago but got accidentally reverted | ||
5930 | |||
5931 | commit 44a8e7ce6f3ab4c2eb1ae49115c210b98e53c4df | ||
5932 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5933 | Date: Fri Apr 17 13:25:52 2015 +0000 | ||
5934 | |||
5935 | upstream commit | ||
5936 | |||
5937 | don't try to cleanup NULL KEX proposals in | ||
5938 | kex_prop_free(); found by Jukka Taimisto and Markus Hietava | ||
5939 | |||
5940 | commit 3038a191872d2882052306098c1810d14835e704 | ||
5941 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5942 | Date: Fri Apr 17 13:19:22 2015 +0000 | ||
5943 | |||
5944 | upstream commit | ||
5945 | |||
5946 | use error/logit/fatal instead of fprintf(stderr, ...) | ||
5947 | and exit(0), fix a few errors that were being printed to stdout instead of | ||
5948 | stderr and a few non-errors that were going to stderr instead of stdout | ||
5949 | bz#2325; ok dtucker | ||
5950 | |||
5951 | commit a58be33cb6cd24441fa7e634db0e5babdd56f07f | ||
5952 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5953 | Date: Fri Apr 17 13:16:48 2015 +0000 | ||
5954 | |||
5955 | upstream commit | ||
5956 | |||
5957 | debug log missing DISPLAY environment when X11 | ||
5958 | forwarding requested; bz#1682 ok dtucker@ | ||
5959 | |||
5960 | commit 17d4d9d9fbc8fb80e322f94d95eecc604588a474 | ||
5961 | Author: djm@openbsd.org <djm@openbsd.org> | ||
5962 | Date: Fri Apr 17 04:32:31 2015 +0000 | ||
5963 | |||
5964 | upstream commit | ||
5965 | |||
5966 | don't call record_login() in monitor when UseLogin is | ||
5967 | enabled; bz#278 reported by drk AT sgi.com; ok dtucker | ||
5968 | |||
5969 | commit 40132ff87b6cbc3dc05fb5df2e9d8e3afa06aafd | ||
5970 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5971 | Date: Fri Apr 17 04:12:35 2015 +0000 | ||
5972 | |||
5973 | upstream commit | ||
5974 | |||
5975 | Add some missing options to sshd -T and fix the output | ||
5976 | of VersionAddendum HostCertificate. bz#2346, patch from jjelen at redhat | ||
5977 | com, ok djm. | ||
5978 | |||
5979 | commit 6cc7cfa936afde2d829e56ee6528c7ea47a42441 | ||
5980 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5981 | Date: Thu Apr 16 23:25:50 2015 +0000 | ||
5982 | |||
5983 | upstream commit | ||
5984 | |||
5985 | Document "none" for PidFile XAuthLocation | ||
5986 | TrustedUserCAKeys and RevokedKeys. bz#2382, feedback from jmc@, ok djm@ | ||
5987 | |||
5988 | commit 15fdfc9b1c6808b26bc54d4d61a38b54541763ed | ||
5989 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5990 | Date: Wed Apr 15 23:23:25 2015 +0000 | ||
5991 | |||
5992 | upstream commit | ||
5993 | |||
5994 | Plug leak of address passed to logging. bz#2373, patch | ||
5995 | from jjelen at redhat, ok markus@ | ||
5996 | |||
5997 | commit bb2289e2a47d465eaaaeff3dee2a6b7777b4c291 | ||
5998 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
5999 | Date: Tue Apr 14 04:17:03 2015 +0000 | ||
6000 | |||
6001 | upstream commit | ||
6002 | |||
6003 | Output remote username in debug output since with Host | ||
6004 | and Match it's not always obvious what it will be. bz#2368, ok djm@ | ||
6005 | |||
6006 | commit 70860b6d07461906730632f9758ff1b7c98c695a | ||
6007 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6008 | Date: Fri Apr 17 10:56:13 2015 +1000 | ||
6009 | |||
6010 | Format UsePAM setting when using sshd -T. | ||
6011 | |||
6012 | Part of bz#2346, patch from jjelen at redhat com. | ||
6013 | |||
6014 | commit ee15d9c9f0720f5a8b0b34e4b10ecf21f9824814 | ||
6015 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6016 | Date: Fri Apr 17 10:40:23 2015 +1000 | ||
6017 | |||
6018 | Wrap endian.h include inside ifdef (bz#2370). | ||
6019 | |||
6020 | commit 408f4c2ad4a4c41baa7b9b2b7423d875abbfa70b | ||
6021 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6022 | Date: Fri Apr 17 09:39:58 2015 +1000 | ||
6023 | |||
6024 | Look for '${host}-ar' before 'ar'. | ||
6025 | |||
6026 | This changes configure.ac to look for '${host}-ar' as set by | ||
6027 | AC_CANONICAL_HOST before looking for the unprefixed 'ar'. | ||
6028 | Useful when cross-compiling when all your binutils are prefixed. | ||
6029 | |||
6030 | Patch from moben at exherbo org via astrand at lysator liu se and | ||
6031 | bz#2352. | ||
6032 | |||
6033 | commit 673a1c16ad078d41558247ce739fe812c960acc8 | ||
6034 | Author: Damien Miller <djm@google.com> | ||
6035 | Date: Thu Apr 16 11:40:20 2015 +1000 | ||
6036 | |||
6037 | remove dependency on arpa/telnet.h | ||
6038 | |||
6039 | commit 202d443eeda1829d336595a3cfc07827e49f45ed | ||
6040 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6041 | Date: Wed Apr 15 15:59:49 2015 +1000 | ||
6042 | |||
6043 | Remove duplicate include of pwd.h. bz#2337, patch from Mordy Ovits. | ||
6044 | |||
6045 | commit 597986493412c499f2bc2209420cb195f97b3668 | ||
6046 | Author: Damien Miller <djm@google.com> | ||
6047 | Date: Thu Apr 9 10:14:48 2015 +1000 | ||
6048 | |||
6049 | platform's with openpty don't need pty_release | ||
6050 | |||
6051 | commit 318be28cda1fd9108f2e6f2f86b0b7589ba2aed0 | ||
6052 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6053 | Date: Mon Apr 13 02:04:08 2015 +0000 | ||
6054 | |||
6055 | upstream commit | ||
6056 | |||
6057 | deprecate ancient, pre-RFC4419 and undocumented | ||
6058 | SSH2_MSG_KEX_DH_GEX_REQUEST_OLD message; ok markus@ deraadt@ "seems | ||
6059 | reasonable" dtucker@ | ||
6060 | |||
6061 | commit d8f391caef62378463a0e6b36f940170dadfe605 | ||
6062 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
6063 | Date: Fri Apr 10 05:16:50 2015 +0000 | ||
6064 | |||
6065 | upstream commit | ||
6066 | |||
6067 | Don't send hostkey advertisments | ||
6068 | (hostkeys-00@openssh.com) to current versions of Tera Term as they can't | ||
6069 | handle them. Newer versions should be OK. Patch from Bryan Drewery and | ||
6070 | IWAMOTO Kouichi, ok djm@ | ||
6071 | |||
6072 | commit 2c2cfe1a1c97eb9a08cc9817fd0678209680c636 | ||
6073 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6074 | Date: Fri Apr 10 00:08:55 2015 +0000 | ||
6075 | |||
6076 | upstream commit | ||
6077 | |||
6078 | include port number if a non-default one has been | ||
6079 | specified; based on patch from Michael Handler | ||
6080 | |||
6081 | commit 4492a4f222da4cf1e8eab12689196322e27b08c4 | ||
6082 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6083 | Date: Tue Apr 7 23:00:42 2015 +0000 | ||
6084 | |||
6085 | upstream commit | ||
6086 | |||
6087 | treat Protocol=1,2|2,1 as Protocol=2 when compiled | ||
6088 | without SSH1 support; ok dtucker@ millert@ | ||
6089 | |||
6090 | commit c265e2e6e932efc6d86f6cc885dea33637a67564 | ||
6091 | Author: miod@openbsd.org <miod@openbsd.org> | ||
6092 | Date: Sun Apr 5 15:43:43 2015 +0000 | ||
6093 | |||
6094 | upstream commit | ||
6095 | |||
6096 | Do not use int for sig_atomic_t; spotted by | ||
6097 | christos@netbsd; ok markus@ | ||
6098 | |||
6099 | commit e7bf3a5eda6a1b02bef6096fed78527ee11e54cc | ||
6100 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6101 | Date: Tue Apr 7 10:48:04 2015 +1000 | ||
6102 | |||
6103 | Use do{}while(0) for no-op functions. | ||
6104 | |||
6105 | From FreeBSD. | ||
6106 | |||
6107 | commit bb99844abae2b6447272f79e7fa84134802eb4df | ||
6108 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6109 | Date: Tue Apr 7 10:47:15 2015 +1000 | ||
6110 | |||
6111 | Wrap blf.h include in ifdef. From FreeBSD. | ||
6112 | |||
6113 | commit d9b9b43656091cf0ad55c122f08fadb07dad0abd | ||
6114 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6115 | Date: Tue Apr 7 09:10:00 2015 +1000 | ||
6116 | |||
6117 | Fix misspellings of regress CONFOPTS env variables. | ||
6118 | |||
6119 | Patch from Bryan Drewery. | ||
6120 | |||
6121 | commit 3f4ea3c9ab1d32d43c9222c4351f58ca11144156 | ||
6122 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6123 | Date: Fri Apr 3 22:17:27 2015 +0000 | ||
6124 | |||
6125 | upstream commit | ||
6126 | |||
6127 | correct return value in pubkey parsing, spotted by Ben Hawkes | ||
6128 | ok markus@ | ||
6129 | |||
6130 | commit 7da2be0cb9601ed25460c83aa4d44052b967ba0f | ||
6131 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6132 | Date: Tue Mar 31 22:59:01 2015 +0000 | ||
6133 | |||
6134 | upstream commit | ||
6135 | |||
6136 | adapt to recent hostfile.c change: when parsing | ||
6137 | known_hosts without fully parsing the keys therein, hostkeys_foreach() will | ||
6138 | now correctly identify KEY_RSA1 keys; ok markus@ miod@ | ||
6139 | |||
6140 | commit 9e1777a0d1c706714b055811c12ab8cc21033e4a | ||
6141 | Author: markus@openbsd.org <markus@openbsd.org> | ||
6142 | Date: Tue Mar 24 20:19:15 2015 +0000 | ||
6143 | |||
6144 | upstream commit | ||
6145 | |||
6146 | use ${SSH} for -Q instead of installed ssh | ||
6147 | |||
6148 | commit ce1b358ea414a2cc88e4430cd5a2ea7fecd9de57 | ||
6149 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6150 | Date: Mon Mar 16 22:46:14 2015 +0000 | ||
6151 | |||
6152 | upstream commit | ||
6153 | |||
6154 | make CLEANFILES clean up more of the tests' droppings | ||
6155 | |||
6156 | commit 398f9ef192d820b67beba01ec234d66faca65775 | ||
6157 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6158 | Date: Tue Mar 31 22:57:06 2015 +0000 | ||
6159 | |||
6160 | upstream commit | ||
6161 | |||
6162 | downgrade error() for known_hosts parse errors to debug() | ||
6163 | to quiet warnings from ssh1 keys present when compiled !ssh1. | ||
6164 | |||
6165 | also identify ssh1 keys when scanning, even when compiled !ssh1 | ||
6166 | |||
6167 | ok markus@ miod@ | ||
6168 | |||
6169 | commit 9a47ab80030a31f2d122b8fd95bd48c408b9fcd9 | ||
6170 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6171 | Date: Tue Mar 31 22:55:50 2015 +0000 | ||
6172 | |||
6173 | upstream commit | ||
6174 | |||
6175 | fd leak for !ssh1 case; found by unittests; ok markus@ | ||
6176 | |||
6177 | commit c9a0805a6280681901c270755a7cd630d7c5280e | ||
6178 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6179 | Date: Tue Mar 31 22:55:24 2015 +0000 | ||
6180 | |||
6181 | upstream commit | ||
6182 | |||
6183 | don't fatal when a !ssh1 sshd is reexeced from a w/ssh1 | ||
6184 | listener; reported by miod@; ok miod@ markus@ | ||
6185 | |||
6186 | commit 704d8c88988cae38fb755a6243b119731d223222 | ||
6187 | Author: tobias@openbsd.org <tobias@openbsd.org> | ||
6188 | Date: Tue Mar 31 11:06:49 2015 +0000 | ||
6189 | |||
6190 | upstream commit | ||
6191 | |||
6192 | Comments are only supported for RSA1 keys. If a user | ||
6193 | tried to add one and entered his passphrase, explicitly clear it before exit. | ||
6194 | This is done in all other error paths, too. | ||
6195 | |||
6196 | ok djm | ||
6197 | |||
6198 | commit 78de1673c05ea2c33e0d4a4b64ecb5186b6ea2e9 | ||
6199 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
6200 | Date: Mon Mar 30 18:28:37 2015 +0000 | ||
6201 | |||
6202 | upstream commit | ||
6203 | |||
6204 | ssh-askpass(1) is the default, overridden by SSH_ASKPASS; | ||
6205 | diff originally from jiri b; | ||
6206 | |||
6207 | commit 26e0bcf766fadb4a44fb6199386fb1dcab65ad00 | ||
6208 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6209 | Date: Mon Mar 30 00:00:29 2015 +0000 | ||
6210 | |||
6211 | upstream commit | ||
6212 | |||
6213 | fix uninitialised memory read when parsing a config file | ||
6214 | consisting of a single nul byte. Found by hanno AT hboeck.de using AFL; ok | ||
6215 | dtucker | ||
6216 | |||
6217 | commit fecede00a76fbb33a349f5121c0b2f9fbc04a777 | ||
6218 | Author: markus@openbsd.org <markus@openbsd.org> | ||
6219 | Date: Thu Mar 26 19:32:19 2015 +0000 | ||
6220 | |||
6221 | upstream commit | ||
6222 | |||
6223 | sigp and lenp are not optional in ssh_agent_sign(); ok | ||
6224 | djm@ | ||
6225 | |||
6226 | commit 1b0ef3813244c78669e6d4d54c624f600945327d | ||
6227 | Author: naddy@openbsd.org <naddy@openbsd.org> | ||
6228 | Date: Thu Mar 26 12:32:38 2015 +0000 | ||
6229 | |||
6230 | upstream commit | ||
6231 | |||
6232 | don't try to load .ssh/identity by default if SSH1 is | ||
6233 | disabled; ok markus@ | ||
6234 | |||
6235 | commit f9b78852379b74a2d14e6fc94fe52af30b7e9c31 | ||
6236 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6237 | Date: Thu Mar 26 07:00:04 2015 +0000 | ||
6238 | |||
6239 | upstream commit | ||
6240 | |||
6241 | ban all-zero curve25519 keys as recommended by latest | ||
6242 | CFRG curves draft; ok markus | ||
6243 | |||
6244 | commit b8afbe2c1aaf573565e4da775261dfafc8b1ba9c | ||
6245 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6246 | Date: Thu Mar 26 06:59:28 2015 +0000 | ||
6247 | |||
6248 | upstream commit | ||
6249 | |||
6250 | relax bits needed check to allow | ||
6251 | diffie-hellman-group1-sha1 key exchange to complete for chacha20-poly1305 was | ||
6252 | selected as symmetric cipher; ok markus | ||
6253 | |||
6254 | commit 47842f71e31da130555353c1d57a1e5a8937f1c0 | ||
6255 | Author: markus@openbsd.org <markus@openbsd.org> | ||
6256 | Date: Wed Mar 25 19:29:58 2015 +0000 | ||
6257 | |||
6258 | upstream commit | ||
6259 | |||
6260 | ignore v1 errors on ssh-add -D; only try v2 keys on | ||
6261 | -l/-L (unless WITH_SSH1) ok djm@ | ||
6262 | |||
6263 | commit 5f57e77f91bf2230c09eca96eb5ecec39e5f2da6 | ||
6264 | Author: markus@openbsd.org <markus@openbsd.org> | ||
6265 | Date: Wed Mar 25 19:21:48 2015 +0000 | ||
6266 | |||
6267 | upstream commit | ||
6268 | |||
6269 | unbreak ssh_agent_sign (lenp vs *lenp) | ||
6270 | |||
6271 | commit 4daeb67181054f2a377677fac919ee8f9ed3490e | ||
6272 | Author: markus@openbsd.org <markus@openbsd.org> | ||
6273 | Date: Tue Mar 24 20:10:08 2015 +0000 | ||
6274 | |||
6275 | upstream commit | ||
6276 | |||
6277 | don't leak 'setp' on error; noted by Nicholas Lemonias; | ||
6278 | ok djm@ | ||
6279 | |||
6280 | commit 7d4f96f9de2a18af0d9fa75ea89a4990de0344f5 | ||
6281 | Author: markus@openbsd.org <markus@openbsd.org> | ||
6282 | Date: Tue Mar 24 20:09:11 2015 +0000 | ||
6283 | |||
6284 | upstream commit | ||
6285 | |||
6286 | consistent check for NULL as noted by Nicholas | ||
6287 | Lemonias; ok djm@ | ||
6288 | |||
6289 | commit df100be51354e447d9345cf1ec22e6013c0eed50 | ||
6290 | Author: markus@openbsd.org <markus@openbsd.org> | ||
6291 | Date: Tue Mar 24 20:03:44 2015 +0000 | ||
6292 | |||
6293 | upstream commit | ||
6294 | |||
6295 | correct fmt-string for size_t as noted by Nicholas | ||
6296 | Lemonias; ok djm@ | ||
6297 | |||
6298 | commit a22b9ef21285e81775732436f7c84a27bd3f71e0 | ||
6299 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6300 | Date: Tue Mar 24 09:17:21 2015 +0000 | ||
6301 | |||
6302 | upstream commit | ||
6303 | |||
6304 | promote chacha20-poly1305@openssh.com to be the default | ||
6305 | cipher; ok markus | ||
6306 | |||
6307 | commit 2aa9da1a3b360cf7b13e96fe1521534b91501fb5 | ||
6308 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6309 | Date: Tue Mar 24 01:29:19 2015 +0000 | ||
6310 | |||
6311 | upstream commit | ||
6312 | |||
6313 | Compile-time disable SSH protocol 1. You can turn it | ||
6314 | back on using the Makefile.inc knob if you need it to talk to ancient | ||
6315 | devices. | ||
6316 | |||
6317 | commit 53097b2022154edf96b4e8526af5666f979503f7 | ||
6318 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6319 | Date: Tue Mar 24 01:11:12 2015 +0000 | ||
6320 | |||
6321 | upstream commit | ||
6322 | |||
6323 | fix double-negative error message "ssh1 is not | ||
6324 | unsupported" | ||
6325 | |||
6326 | commit 5c27e3b6ec2db711dfcd40e6359c0bcdd0b62ea9 | ||
6327 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6328 | Date: Mon Mar 23 06:06:38 2015 +0000 | ||
6329 | |||
6330 | upstream commit | ||
6331 | |||
6332 | for ssh-keygen -A, don't try (and fail) to generate ssh | ||
6333 | v.1 keys when compiled without SSH1 support RSA/DSA/ECDSA keys when compiled | ||
6334 | without OpenSSL based on patch by Mike Frysinger; bz#2369 | ||
6335 | |||
6336 | commit 725fd22a8c41db7de73a638539a5157b7e4424ae | ||
6337 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6338 | Date: Wed Mar 18 01:44:21 2015 +0000 | ||
6339 | |||
6340 | upstream commit | ||
6341 | |||
6342 | KRL support doesn't need OpenSSL anymore, remove #ifdefs | ||
6343 | from around call | ||
6344 | |||
6345 | commit b07011c18e0b2e172c5fd09d21fb159a0bf5fcc7 | ||
6346 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6347 | Date: Mon Mar 16 11:09:52 2015 +0000 | ||
6348 | |||
6349 | upstream commit | ||
6350 | |||
6351 | #if 0 some more arrays used only for decrypting (we don't | ||
6352 | use since we only need encrypt for AES-CTR) | ||
6353 | |||
6354 | commit 1cb3016635898d287e9d58b50c430995652d5358 | ||
6355 | Author: jsg@openbsd.org <jsg@openbsd.org> | ||
6356 | Date: Wed Mar 11 00:48:39 2015 +0000 | ||
6357 | |||
6358 | upstream commit | ||
6359 | |||
6360 | add back the changes from rev 1.206, djm reverted this by | ||
6361 | mistake in rev 1.207 | ||
6362 | |||
6363 | commit 4d24b3b6a4a6383e05e7da26d183b79fa8663697 | ||
6364 | Author: Damien Miller <djm@mindrot.org> | ||
6365 | Date: Fri Mar 20 09:11:59 2015 +1100 | ||
6366 | |||
6367 | remove error() accidentally inserted for debugging | ||
6368 | |||
6369 | pointed out by Christian Hesse | ||
6370 | |||
6371 | commit 9f82e5a9042f2d872e98f48a876fcab3e25dd9bb | ||
6372 | Author: Tim Rice <tim@multitalents.net> | ||
6373 | Date: Mon Mar 16 22:49:20 2015 -0700 | ||
6374 | |||
6375 | portability fix: Solaris systems may not have a grep that understands -q | ||
6376 | |||
6377 | commit 8ef691f7d9ef500257a549d0906d78187490668f | ||
6378 | Author: Damien Miller <djm@google.com> | ||
6379 | Date: Wed Mar 11 10:35:26 2015 +1100 | ||
6380 | |||
6381 | fix compile with clang | ||
6382 | |||
6383 | commit 4df590cf8dc799e8986268d62019b487a8ed63ad | ||
6384 | Author: Damien Miller <djm@google.com> | ||
6385 | Date: Wed Mar 11 10:02:39 2015 +1100 | ||
6386 | |||
6387 | make unit tests work for !OPENSSH_HAS_ECC | ||
6388 | |||
6389 | commit 307bb40277ca2c32e97e61d70d1ed74b571fd6ba | ||
6390 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6391 | Date: Sat Mar 7 04:41:48 2015 +0000 | ||
6392 | |||
6393 | upstream commit | ||
6394 | |||
6395 | unbreak for w/SSH1 (default) case; ok markus@ deraadt@ | ||
6396 | |||
6397 | commit b44ee0c998fb4c5f3c3281f2398af5ce42840b6f | ||
6398 | Author: Damien Miller <djm@mindrot.org> | ||
6399 | Date: Thu Mar 5 18:39:20 2015 -0800 | ||
6400 | |||
6401 | unbreak hostkeys test for w/ SSH1 case | ||
6402 | |||
6403 | commit 55e5bdeb519cb60cc18b7ba0545be581fb8598b4 | ||
6404 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6405 | Date: Fri Mar 6 01:40:56 2015 +0000 | ||
6406 | |||
6407 | upstream commit | ||
6408 | |||
6409 | fix sshkey_certify() return value for unsupported key types; | ||
6410 | ok markus@ deraadt@ | ||
6411 | |||
6412 | commit be8f658e550a434eac04256bfbc4289457a24e99 | ||
6413 | Author: Damien Miller <djm@mindrot.org> | ||
6414 | Date: Wed Mar 4 15:38:03 2015 -0800 | ||
6415 | |||
6416 | update version numbers to match version.h | ||
6417 | |||
6418 | commit ac5e8acefa253eb5e5ba186e34236c0e8007afdc | ||
6419 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6420 | Date: Wed Mar 4 23:22:35 2015 +0000 | ||
6421 | |||
6422 | upstream commit | ||
6423 | |||
6424 | make these work with !SSH1; ok markus@ deraadt@ | ||
6425 | |||
6426 | commit 2f04af92f036b0c87a23efb259c37da98cd81fe6 | ||
6427 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6428 | Date: Wed Mar 4 21:12:59 2015 +0000 | ||
6429 | |||
6430 | upstream commit | ||
6431 | |||
6432 | make ssh-add -D work with !SSH1 agent | ||
6433 | |||
6434 | commit a05adf95d2af6abb2b7826ddaa7a0ec0cdc1726b | ||
6435 | Author: Damien Miller <djm@mindrot.org> | ||
6436 | Date: Wed Mar 4 00:55:48 2015 -0800 | ||
6437 | |||
6438 | netcat needs poll.h portability goop | ||
6439 | |||
6440 | commit dad2b1892b4c1b7e58df483a8c5b983c4454e099 | ||
6441 | Author: markus@openbsd.org <markus@openbsd.org> | ||
6442 | Date: Tue Mar 3 22:35:19 2015 +0000 | ||
6443 | |||
6444 | upstream commit | ||
6445 | |||
6446 | make it possible to run tests w/o ssh1 support; ok djm@ | ||
6447 | |||
6448 | commit d48a22601bdd3eec054794c535f4ae8d8ae4c6e2 | ||
6449 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6450 | Date: Wed Mar 4 18:53:53 2015 +0000 | ||
6451 | |||
6452 | upstream commit | ||
6453 | |||
6454 | crank; ok markus, deraadt | ||
6455 | |||
6456 | commit bbffb23daa0b002dd9f296e396a9ab8a5866b339 | ||
6457 | Author: Damien Miller <djm@mindrot.org> | ||
6458 | Date: Tue Mar 3 13:50:27 2015 -0800 | ||
6459 | |||
6460 | more --without-ssh1 fixes | ||
6461 | |||
6462 | commit 6c2039286f503e2012a58a1d109e389016e7a99b | ||
6463 | Author: Damien Miller <djm@mindrot.org> | ||
6464 | Date: Tue Mar 3 13:48:48 2015 -0800 | ||
6465 | |||
6466 | fix merge both that broke --without-ssh1 compile | ||
6467 | |||
6468 | commit 111dfb225478a76f89ecbcd31e96eaf1311b59d3 | ||
6469 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6470 | Date: Tue Mar 3 21:21:13 2015 +0000 | ||
6471 | |||
6472 | upstream commit | ||
6473 | |||
6474 | add SSH1 Makefile knob to make it easier to build without | ||
6475 | SSH1 support; ok markus@ | ||
6476 | |||
6477 | commit 3f7f5e6c5d2aa3f6710289c1a30119e534e56c5c | ||
6478 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6479 | Date: Tue Mar 3 20:42:49 2015 +0000 | ||
6480 | |||
6481 | upstream commit | ||
6482 | |||
6483 | expand __unused to full __attribute__ for better portability | ||
6484 | |||
6485 | commit 2fab9b0f8720baf990c931e3f68babb0bf9949c6 | ||
6486 | Author: Damien Miller <djm@mindrot.org> | ||
6487 | Date: Wed Mar 4 07:41:27 2015 +1100 | ||
6488 | |||
6489 | avoid warning | ||
6490 | |||
6491 | commit d1bc844322461f882b4fd2277ba9a8d4966573d2 | ||
6492 | Author: Damien Miller <djm@mindrot.org> | ||
6493 | Date: Wed Mar 4 06:31:45 2015 +1100 | ||
6494 | |||
6495 | Revert "define __unused to nothing if not already defined" | ||
6496 | |||
6497 | This reverts commit 1598419e38afbaa8aa5df8dd6b0af98301e2c908. | ||
6498 | |||
6499 | Some system headers have objects named __unused | ||
6500 | |||
6501 | commit 00797e86b2d98334d1bb808f65fa1fd47f328ff1 | ||
6502 | Author: Damien Miller <djm@mindrot.org> | ||
6503 | Date: Wed Mar 4 05:02:45 2015 +1100 | ||
6504 | |||
6505 | check for crypt and DES_crypt in openssl block | ||
6506 | |||
6507 | fixes builds on systems that use DES_crypt; based on patch | ||
6508 | from Roumen Petrov | ||
6509 | |||
6510 | commit 1598419e38afbaa8aa5df8dd6b0af98301e2c908 | ||
6511 | Author: Damien Miller <djm@mindrot.org> | ||
6512 | Date: Wed Mar 4 04:59:13 2015 +1100 | ||
6513 | |||
6514 | define __unused to nothing if not already defined | ||
6515 | |||
6516 | fixes builds on BSD/OS | ||
6517 | |||
6518 | commit d608a51daad4f14ad6ab43d7cf74ef4801cc3fe9 | ||
6519 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6520 | Date: Tue Mar 3 17:53:40 2015 +0000 | ||
6521 | |||
6522 | upstream commit | ||
6523 | |||
6524 | reorder logic for better portability; patch from Roumen | ||
6525 | Petrov | ||
6526 | |||
6527 | commit 68d2dfc464fbcdf8d6387884260f9801f4352393 | ||
6528 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6529 | Date: Tue Mar 3 06:48:58 2015 +0000 | ||
6530 | |||
6531 | upstream commit | ||
6532 | |||
6533 | Allow "ssh -Q protocol-version" to list supported SSH | ||
6534 | protocol versions. Useful for detecting builds without SSH v.1 support; idea | ||
6535 | and ok markus@ | ||
6536 | |||
6537 | commit 39e2f1229562e1195169905607bc12290d21f021 | ||
6538 | Author: millert@openbsd.org <millert@openbsd.org> | ||
6539 | Date: Sun Mar 1 15:44:40 2015 +0000 | ||
6540 | |||
6541 | upstream commit | ||
6542 | |||
6543 | Make sure we only call getnameinfo() for AF_INET or AF_INET6 | ||
6544 | sockets. getpeername() of a Unix domain socket may return without error on | ||
6545 | some systems without actually setting ss_family so getnameinfo() was getting | ||
6546 | called with ss_family set to AF_UNSPEC. OK djm@ | ||
6547 | |||
6548 | commit e47536ba9692d271b8ad89078abdecf0a1c11707 | ||
6549 | Author: Damien Miller <djm@mindrot.org> | ||
6550 | Date: Sat Feb 28 08:20:11 2015 -0800 | ||
6551 | |||
6552 | portability fixes for regress/netcat.c | ||
6553 | |||
6554 | Mostly avoiding "err(1, NULL)" | ||
6555 | |||
6556 | commit 02973ad5f6f49d8420e50a392331432b0396c100 | ||
6557 | Author: Damien Miller <djm@mindrot.org> | ||
6558 | Date: Sat Feb 28 08:05:27 2015 -0800 | ||
6559 | |||
6560 | twiddle another test for portability | ||
6561 | |||
6562 | from Tom G. Christensen | ||
6563 | |||
6564 | commit f7f3116abf2a6e2f309ab096b08c58d19613e5d0 | ||
6565 | Author: Damien Miller <djm@mindrot.org> | ||
6566 | Date: Fri Feb 27 15:52:49 2015 -0800 | ||
6567 | |||
6568 | twiddle test for portability | ||
6569 | |||
6570 | commit 1ad3a77cc9d5568f5437ff99d377aa7a41859b83 | ||
6571 | Author: Damien Miller <djm@mindrot.org> | ||
6572 | Date: Thu Feb 26 20:33:22 2015 -0800 | ||
6573 | |||
6574 | make regress/netcat.c fd passing (more) portable | ||
6575 | |||
6576 | commit 9e1cfca7e1fe9cf8edb634fc894e43993e4da1ea | ||
6577 | Author: Damien Miller <djm@mindrot.org> | ||
6578 | Date: Thu Feb 26 20:32:58 2015 -0800 | ||
6579 | |||
6580 | create OBJ/valgrind-out before running unittests | ||
6581 | |||
6582 | commit bd58853102cee739f0e115e6d4b5334332ab1442 | ||
6583 | Author: Damien Miller <djm@mindrot.org> | ||
6584 | Date: Wed Feb 25 16:58:22 2015 -0800 | ||
6585 | |||
6586 | valgrind support | ||
6587 | |||
6588 | commit f43d17269194761eded9e89f17456332f4c83824 | ||
6589 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6590 | Date: Thu Feb 26 20:45:47 2015 +0000 | ||
6591 | |||
6592 | upstream commit | ||
6593 | |||
6594 | don't printf NULL key comments; reported by Tom Christensen | ||
6595 | |||
6596 | commit 6e6458b476ec854db33e3e68ebf4f489d0ab3df8 | ||
6597 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6598 | Date: Wed Feb 25 23:05:47 2015 +0000 | ||
6599 | |||
6600 | upstream commit | ||
6601 | |||
6602 | zero cmsgbuf before use; we initialise the bits we use | ||
6603 | but valgrind still spams warning on it | ||
6604 | |||
6605 | commit a63cfa26864b93ab6afefad0b630e5358ed8edfa | ||
6606 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6607 | Date: Wed Feb 25 19:54:02 2015 +0000 | ||
6608 | |||
6609 | upstream commit | ||
6610 | |||
6611 | fix small memory leak when UpdateHostkeys=no | ||
6612 | |||
6613 | commit e6b950341dd75baa8526f1862bca39e52f5b879b | ||
6614 | Author: Tim Rice <tim@multitalents.net> | ||
6615 | Date: Wed Feb 25 09:56:48 2015 -0800 | ||
6616 | |||
6617 | Revert "Work around finicky USL linker so netcat will build." | ||
6618 | |||
6619 | This reverts commit d1db656021d0cd8c001a6692f772f1de29b67c8b. | ||
6620 | |||
6621 | No longer needed with commit 678e473e2af2e4802f24dd913985864d9ead7fb3 | ||
6622 | |||
6623 | commit 6f621603f9cff2a5d6016a404c96cb2f8ac2dec0 | ||
6624 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6625 | Date: Wed Feb 25 17:29:38 2015 +0000 | ||
6626 | |||
6627 | upstream commit | ||
6628 | |||
6629 | don't leak validity of user in "too many authentication | ||
6630 | failures" disconnect message; reported by Sebastian Reitenbach | ||
6631 | |||
6632 | commit 6288e3a935494df12519164f52ca5c8c65fc3ca5 | ||
6633 | Author: naddy@openbsd.org <naddy@openbsd.org> | ||
6634 | Date: Tue Feb 24 15:24:05 2015 +0000 | ||
6635 | |||
6636 | upstream commit | ||
6637 | |||
6638 | add -v (show ASCII art) to -l's synopsis; ok djm@ | ||
6639 | |||
6640 | commit 678e473e2af2e4802f24dd913985864d9ead7fb3 | ||
6641 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6642 | Date: Thu Feb 26 04:12:58 2015 +1100 | ||
6643 | |||
6644 | Remove dependency on xmalloc. | ||
6645 | |||
6646 | Remove ssh_get_progname's dependency on xmalloc, which should reduce | ||
6647 | link order problems. ok djm@ | ||
6648 | |||
6649 | commit 5d5ec165c5b614b03678afdad881f10e25832e46 | ||
6650 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6651 | Date: Wed Feb 25 15:32:49 2015 +1100 | ||
6652 | |||
6653 | Restrict ECDSA and ECDH tests. | ||
6654 | |||
6655 | ifdef out some more ECDSA and ECDH tests when built against an OpenSSL | ||
6656 | that does not have eliptic curve functionality. | ||
6657 | |||
6658 | commit 1734e276d99b17e92d4233fac7aef3a3180aaca7 | ||
6659 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6660 | Date: Wed Feb 25 13:40:45 2015 +1100 | ||
6661 | |||
6662 | Move definition of _NSIG. | ||
6663 | |||
6664 | _NSIG is only unsed in one file, so move it there prevent redefinition | ||
6665 | warnings reported by Kevin Brott. | ||
6666 | |||
6667 | commit a47ead7c95cfbeb72721066c4da2312e5b1b9f3d | ||
6668 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6669 | Date: Wed Feb 25 13:17:40 2015 +1100 | ||
6670 | |||
6671 | Add includes.h for compatibility stuff. | ||
6672 | |||
6673 | commit 38806bda6d2e48ad32812b461eebe17672ada771 | ||
6674 | Author: Damien Miller <djm@mindrot.org> | ||
6675 | Date: Tue Feb 24 16:50:06 2015 -0800 | ||
6676 | |||
6677 | include netdb.h to look for MAXHOSTNAMELEN; ok tim | ||
6678 | |||
6679 | commit d1db656021d0cd8c001a6692f772f1de29b67c8b | ||
6680 | Author: Tim Rice <tim@multitalents.net> | ||
6681 | Date: Tue Feb 24 10:42:08 2015 -0800 | ||
6682 | |||
6683 | Work around finicky USL linker so netcat will build. | ||
6684 | |||
6685 | commit cb030ce25f555737e8ba97bdd7883ac43f3ff2a3 | ||
6686 | Author: Damien Miller <djm@mindrot.org> | ||
6687 | Date: Tue Feb 24 09:23:04 2015 -0800 | ||
6688 | |||
6689 | include includes.h to avoid build failure on AIX | ||
6690 | |||
6691 | commit 13af342458f5064144abbb07e5ac9bbd4eb42567 | ||
6692 | Author: Tim Rice <tim@multitalents.net> | ||
6693 | Date: Tue Feb 24 07:56:47 2015 -0800 | ||
6694 | |||
6695 | Original portability patch from djm@ for platforms missing err.h. | ||
6696 | Fix name space clash on Solaris 10. Still more to do for Solaris 10 | ||
6697 | to deal with msghdr structure differences. ok djm@ | ||
6698 | |||
6699 | commit 910209203d0cd60c5083901cbcc0b7b44d9f48d2 | ||
6700 | Author: Tim Rice <tim@multitalents.net> | ||
6701 | Date: Mon Feb 23 22:06:56 2015 -0800 | ||
6702 | |||
6703 | cleaner way fix dispatch.h portion of commit | ||
6704 | a88dd1da119052870bb2654c1a32c51971eade16 | ||
6705 | (some systems have sig_atomic_t in signal.h, some in sys/signal.h) | ||
6706 | Sounds good to me djm@ | ||
6707 | |||
6708 | commit 676c38d7cbe65b76bbfff796861bb6615cc6a596 | ||
6709 | Author: Tim Rice <tim@multitalents.net> | ||
6710 | Date: Mon Feb 23 21:51:33 2015 -0800 | ||
6711 | |||
6712 | portability fix: if we can't dind a better define for HOST_NAME_MAX, use 255 | ||
6713 | |||
6714 | commit 1221b22023dce38cbc90ba77eae4c5d78c77a5e6 | ||
6715 | Author: Tim Rice <tim@multitalents.net> | ||
6716 | Date: Mon Feb 23 21:50:34 2015 -0800 | ||
6717 | |||
6718 | portablity fix: s/__inline__/inline/ | ||
6719 | |||
6720 | commit 4c356308a88d309c796325bb75dce90ca16591d5 | ||
6721 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6722 | Date: Tue Feb 24 13:49:31 2015 +1100 | ||
6723 | |||
6724 | Wrap stdint.h includes in HAVE_STDINT_H. | ||
6725 | |||
6726 | commit c9c88355c6a27a908e7d1e5003a2b35ea99c1614 | ||
6727 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6728 | Date: Tue Feb 24 13:43:57 2015 +1100 | ||
6729 | |||
6730 | Add AI_NUMERICSERV to fake-rfc2553. | ||
6731 | |||
6732 | Our getaddrinfo implementation always returns numeric values already. | ||
6733 | |||
6734 | commit ef342ab1ce6fb9a4b30186c89c309d0ae9d0eeb4 | ||
6735 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6736 | Date: Tue Feb 24 13:39:57 2015 +1100 | ||
6737 | |||
6738 | Include OpenSSL's objects.h before bn.h. | ||
6739 | |||
6740 | Prevents compile errors on some platforms (at least old GCCs and AIX's | ||
6741 | XLC compilers). | ||
6742 | |||
6743 | commit dcc8997d116f615195aa7c9ec019fb36c28c6228 | ||
6744 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6745 | Date: Tue Feb 24 12:30:59 2015 +1100 | ||
6746 | |||
6747 | Convert two macros into functions. | ||
6748 | |||
6749 | Convert packet_send_debug and packet_disconnect from macros to | ||
6750 | functions. Some older GCCs (2.7.x, 2.95.x) see to have problems with | ||
6751 | variadic macros with only one argument so we convert these two into | ||
6752 | functions. ok djm@ | ||
6753 | |||
6754 | commit 2285c30d51b7e2052c6526445abe7e7cc7e170a1 | ||
6755 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6756 | Date: Mon Feb 23 22:21:21 2015 +0000 | ||
6757 | |||
6758 | upstream commit | ||
6759 | |||
6760 | further silence spurious error message even when -v is | ||
6761 | specified (e.g. to get visual host keys); reported by naddy@ | ||
6762 | |||
6763 | commit 9af21979c00652029e160295e988dea40758ece2 | ||
6764 | Author: Damien Miller <djm@mindrot.org> | ||
6765 | Date: Tue Feb 24 09:04:32 2015 +1100 | ||
6766 | |||
6767 | don't include stdint.h unless HAVE_STDINT_H set | ||
6768 | |||
6769 | commit 62f678dd51660d6f8aee1da33d3222c5de10a89e | ||
6770 | Author: Damien Miller <djm@mindrot.org> | ||
6771 | Date: Tue Feb 24 09:02:54 2015 +1100 | ||
6772 | |||
6773 | nother sys/queue.h -> sys-queue.h fix | ||
6774 | |||
6775 | spotted by Tom Christensen | ||
6776 | |||
6777 | commit b3c19151cba2c0ed01b27f55de0d723ad07ca98f | ||
6778 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6779 | Date: Mon Feb 23 20:32:15 2015 +0000 | ||
6780 | |||
6781 | upstream commit | ||
6782 | |||
6783 | fix a race condition by using a mux socket rather than an | ||
6784 | ineffectual wait statement | ||
6785 | |||
6786 | commit a88dd1da119052870bb2654c1a32c51971eade16 | ||
6787 | Author: Damien Miller <djm@mindrot.org> | ||
6788 | Date: Tue Feb 24 06:30:29 2015 +1100 | ||
6789 | |||
6790 | various include fixes for portable | ||
6791 | |||
6792 | commit 5248429b5ec524d0a65507cff0cdd6e0cb99effd | ||
6793 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6794 | Date: Mon Feb 23 16:55:51 2015 +0000 | ||
6795 | |||
6796 | upstream commit | ||
6797 | |||
6798 | add an XXX to remind me to improve sshkey_load_public | ||
6799 | |||
6800 | commit e94e4b07ef2eaead38b085a60535df9981cdbcdb | ||
6801 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6802 | Date: Mon Feb 23 16:55:31 2015 +0000 | ||
6803 | |||
6804 | upstream commit | ||
6805 | |||
6806 | silence a spurious error message when listing | ||
6807 | fingerprints for known_hosts; bz#2342 | ||
6808 | |||
6809 | commit f2293a65392b54ac721f66bc0b44462e8d1d81f8 | ||
6810 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6811 | Date: Mon Feb 23 16:33:25 2015 +0000 | ||
6812 | |||
6813 | upstream commit | ||
6814 | |||
6815 | fix setting/clearing of TTY raw mode around | ||
6816 | UpdateHostKeys=ask confirmation question; reported by Herb Goldman | ||
6817 | |||
6818 | commit f2004cd1adf34492eae0a44b1ef84e0e31b06088 | ||
6819 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6820 | Date: Mon Feb 23 05:04:21 2015 +1100 | ||
6821 | |||
6822 | Repair for non-ECC OpenSSL. | ||
6823 | |||
6824 | Ifdef out the ECC parts when building with an OpenSSL that doesn't have | ||
6825 | it. | ||
6826 | |||
6827 | commit 37f9220db8d1a52c75894c3de1e5f2ae5bd71b6f | ||
6828 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6829 | Date: Mon Feb 23 03:07:24 2015 +1100 | ||
6830 | |||
6831 | Wrap stdint.h includes in ifdefs. | ||
6832 | |||
6833 | commit f81f1bbc5b892c8614ea740b1f92735652eb43f0 | ||
6834 | Author: Tim Rice <tim@multitalents.net> | ||
6835 | Date: Sat Feb 21 18:12:10 2015 -0800 | ||
6836 | |||
6837 | out of tree build fix | ||
6838 | |||
6839 | commit 2e13a1e4d22f3b503c3bfc878562cc7386a1d1ae | ||
6840 | Author: Tim Rice <tim@multitalents.net> | ||
6841 | Date: Sat Feb 21 18:08:51 2015 -0800 | ||
6842 | |||
6843 | mkdir kex unit test directory so testing out of tree builds works | ||
6844 | |||
6845 | commit 1797f49b1ba31e8700231cd6b1d512d80bb50d2c | ||
6846 | Author: halex@openbsd.org <halex@openbsd.org> | ||
6847 | Date: Sat Feb 21 21:46:57 2015 +0000 | ||
6848 | |||
6849 | upstream commit | ||
6850 | |||
6851 | make "ssh-add -d" properly remove a corresponding | ||
6852 | certificate, and also not whine and fail if there is none | ||
6853 | |||
6854 | ok djm@ | ||
6855 | |||
6856 | commit 7faaa32da83a609059d95dbfcb0649fdb04caaf6 | ||
6857 | Author: Damien Miller <djm@mindrot.org> | ||
6858 | Date: Sun Feb 22 07:57:27 2015 +1100 | ||
6859 | |||
6860 | mkdir hostkey and bitmap unit test directories | ||
6861 | |||
6862 | commit bd49da2ef197efac5e38f5399263a8b47990c538 | ||
6863 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6864 | Date: Fri Feb 20 23:46:01 2015 +0000 | ||
6865 | |||
6866 | upstream commit | ||
6867 | |||
6868 | sort options useable under Match case-insensitively; prodded | ||
6869 | jmc@ | ||
6870 | |||
6871 | commit 1a779a0dd6cd8b4a1a40ea33b5415ab8408128ac | ||
6872 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6873 | Date: Sat Feb 21 20:51:02 2015 +0000 | ||
6874 | |||
6875 | upstream commit | ||
6876 | |||
6877 | correct paths to configuration files being written/updated; | ||
6878 | they live in $OBJ not cwd; some by Roumen Petrov | ||
6879 | |||
6880 | commit 28ba006c1acddff992ae946d0bc0b500b531ba6b | ||
6881 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6882 | Date: Sat Feb 21 15:41:07 2015 +1100 | ||
6883 | |||
6884 | More correct checking of HAVE_DECL_AI_NUMERICSERV. | ||
6885 | |||
6886 | commit e50e8c97a9cecae1f28febccaa6ca5ab3bc10f54 | ||
6887 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6888 | Date: Sat Feb 21 15:10:33 2015 +1100 | ||
6889 | |||
6890 | Add null declaration of AI_NUMERICINFO. | ||
6891 | |||
6892 | Some platforms (older FreeBSD and DragonFly versions) do have | ||
6893 | getaddrinfo() but do not have AI_NUMERICINFO. so define it to zero | ||
6894 | in those cases. | ||
6895 | |||
6896 | commit 18a208d6a460d707a45916db63a571e805f5db46 | ||
6897 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6898 | Date: Fri Feb 20 22:40:32 2015 +0000 | ||
6899 | |||
6900 | upstream commit | ||
6901 | |||
6902 | more options that are available under Match; bz#2353 reported | ||
6903 | by calestyo AT scientia.net | ||
6904 | |||
6905 | commit 44732de06884238049f285f1455b2181baa7dc82 | ||
6906 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6907 | Date: Fri Feb 20 22:17:21 2015 +0000 | ||
6908 | |||
6909 | upstream commit | ||
6910 | |||
6911 | UpdateHostKeys fixes: | ||
6912 | |||
6913 | I accidentally changed the format of the hostkeys@openssh.com messages | ||
6914 | last week without changing the extension name, and this has been causing | ||
6915 | connection failures for people who are running -current. First reported | ||
6916 | by sthen@ | ||
6917 | |||
6918 | s/hostkeys@openssh.com/hostkeys-00@openssh.com/ | ||
6919 | Change the name of the proof message too, and reorder it a little. | ||
6920 | |||
6921 | Also, UpdateHostKeys=ask is incompatible with ControlPersist (no TTY | ||
6922 | available to read the response) so disable UpdateHostKeys if it is in | ||
6923 | ask mode and ControlPersist is active (and document this) | ||
6924 | |||
6925 | commit 13a39414d25646f93e6d355521d832a03aaaffe2 | ||
6926 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6927 | Date: Tue Feb 17 00:14:05 2015 +0000 | ||
6928 | |||
6929 | upstream commit | ||
6930 | |||
6931 | Regression: I broke logging of public key fingerprints in | ||
6932 | 1.46. Pointed out by Pontus Lundkvist | ||
6933 | |||
6934 | commit 773dda25e828c4c9a52f7bdce6e1e5924157beab | ||
6935 | Author: Damien Miller <djm@mindrot.org> | ||
6936 | Date: Fri Jan 30 23:10:17 2015 +1100 | ||
6937 | |||
6938 | repair --without-openssl; broken in refactor | ||
6939 | |||
6940 | commit e89c780886b23600de1e1c8d74aabd1ff61f43f0 | ||
6941 | Author: Damien Miller <djm@google.com> | ||
6942 | Date: Tue Feb 17 10:04:55 2015 +1100 | ||
6943 | |||
6944 | hook up hostkeys unittest to portable Makefiles | ||
6945 | |||
6946 | commit 0abf41f99aa16ff09b263bead242d6cb2dbbcf99 | ||
6947 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6948 | Date: Mon Feb 16 22:21:03 2015 +0000 | ||
6949 | |||
6950 | upstream commit | ||
6951 | |||
6952 | enable hostkeys unit tests | ||
6953 | |||
6954 | commit 68a5d647ccf0fb6782b2f749433a1eee5bc9044b | ||
6955 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6956 | Date: Mon Feb 16 22:20:50 2015 +0000 | ||
6957 | |||
6958 | upstream commit | ||
6959 | |||
6960 | check string/memory compare arguments aren't NULL | ||
6961 | |||
6962 | commit ef575ef20d09f20722e26b45dab80b3620469687 | ||
6963 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6964 | Date: Mon Feb 16 22:18:34 2015 +0000 | ||
6965 | |||
6966 | upstream commit | ||
6967 | |||
6968 | unit tests for hostfile.c code, just hostkeys_foreach so | ||
6969 | far | ||
6970 | |||
6971 | commit 8ea3365e6aa2759ccf5c76eaea62cbc8a280b0e7 | ||
6972 | Author: markus@openbsd.org <markus@openbsd.org> | ||
6973 | Date: Sat Feb 14 12:43:16 2015 +0000 | ||
6974 | |||
6975 | upstream commit | ||
6976 | |||
6977 | test server rekey limit | ||
6978 | |||
6979 | commit ce63c4b063c39b2b22d4ada449c9e3fbde788cb3 | ||
6980 | Author: djm@openbsd.org <djm@openbsd.org> | ||
6981 | Date: Mon Feb 16 22:30:03 2015 +0000 | ||
6982 | |||
6983 | upstream commit | ||
6984 | |||
6985 | partial backout of: | ||
6986 | |||
6987 | revision 1.441 | ||
6988 | date: 2015/01/31 20:30:05; author: djm; state: Exp; lines: +17 -10; commitid | ||
6989 | : x8klYPZMJSrVlt3O; | ||
6990 | Let sshd load public host keys even when private keys are missing. | ||
6991 | Allows sshd to advertise additional keys for future key rotation. | ||
6992 | Also log fingerprint of hostkeys loaded; ok markus@ | ||
6993 | |||
6994 | hostkey updates now require access to the private key, so we can't | ||
6995 | load public keys only. The improved log messages (fingerprints of keys | ||
6996 | loaded) are kept. | ||
6997 | |||
6998 | commit 523463a3a2a9bfc6cfc5afa01bae9147f76a37cc | ||
6999 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7000 | Date: Mon Feb 16 22:13:32 2015 +0000 | ||
7001 | |||
7002 | upstream commit | ||
7003 | |||
7004 | Revise hostkeys@openssh.com hostkey learning extension. | ||
7005 | |||
7006 | The client will not ask the server to prove ownership of the private | ||
7007 | halves of any hitherto-unseen hostkeys it offers to the client. | ||
7008 | |||
7009 | Allow UpdateHostKeys option to take an 'ask' argument to let the | ||
7010 | user manually review keys offered. | ||
7011 | |||
7012 | ok markus@ | ||
7013 | |||
7014 | commit 6c5c949782d86a6e7d58006599c7685bfcd01685 | ||
7015 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7016 | Date: Mon Feb 16 22:08:57 2015 +0000 | ||
7017 | |||
7018 | upstream commit | ||
7019 | |||
7020 | Refactor hostkeys_foreach() and dependent code Deal with | ||
7021 | IP addresses (i.e. CheckHostIP) Don't clobber known_hosts when nothing | ||
7022 | changed ok markus@ as part of larger commit | ||
7023 | |||
7024 | commit 51b082ccbe633dc970df1d1f4c9c0497115fe721 | ||
7025 | Author: miod@openbsd.org <miod@openbsd.org> | ||
7026 | Date: Mon Feb 16 18:26:26 2015 +0000 | ||
7027 | |||
7028 | upstream commit | ||
7029 | |||
7030 | Declare ge25519_base as extern, to prevent it from | ||
7031 | becoming a common. Gets us rid of ``lignment 4 of symbol | ||
7032 | `crypto_sign_ed25519_ref_ge25519_base' in mod_ge25519.o is smaller than 16 in | ||
7033 | mod_ed25519.o'' warnings at link time. | ||
7034 | |||
7035 | commit 02db468bf7e3281a8e3c058ced571b38b6407c34 | ||
7036 | Author: markus@openbsd.org <markus@openbsd.org> | ||
7037 | Date: Fri Feb 13 18:57:00 2015 +0000 | ||
7038 | |||
7039 | upstream commit | ||
7040 | |||
7041 | make rekey_limit for sshd w/privsep work; ok djm@ | ||
7042 | dtucker@ | ||
7043 | |||
7044 | commit 8ec67d505bd23c8bf9e17b7a364b563a07a58ec8 | ||
7045 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
7046 | Date: Thu Feb 12 20:34:19 2015 +0000 | ||
7047 | |||
7048 | upstream commit | ||
7049 | |||
7050 | Prevent sshd spamming syslog with | ||
7051 | "ssh_dispatch_run_fatal: disconnected". ok markus@ | ||
7052 | |||
7053 | commit d4c0295d1afc342057ba358237acad6be8af480b | ||
7054 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7055 | Date: Wed Feb 11 01:20:38 2015 +0000 | ||
7056 | |||
7057 | upstream commit | ||
7058 | |||
7059 | Some packet error messages show the address of the peer, | ||
7060 | but might be generated after the socket to the peer has suffered a TCP reset. | ||
7061 | In these cases, getpeername() won't work so cache the address earlier. | ||
7062 | |||
7063 | spotted in the wild via deraadt@ and tedu@ | ||
7064 | |||
7065 | commit 4af1709cf774475ce5d1bc3ddcc165f6c222897d | ||
7066 | Author: jsg@openbsd.org <jsg@openbsd.org> | ||
7067 | Date: Mon Feb 9 23:22:37 2015 +0000 | ||
7068 | |||
7069 | upstream commit | ||
7070 | |||
7071 | fix some leaks in error paths ok markus@ | ||
7072 | |||
7073 | commit fd36834871d06a03e1ff8d69e41992efa1bbf85f | ||
7074 | Author: millert@openbsd.org <millert@openbsd.org> | ||
7075 | Date: Fri Feb 6 23:21:59 2015 +0000 | ||
7076 | |||
7077 | upstream commit | ||
7078 | |||
7079 | SIZE_MAX is standard, we should be using it in preference to | ||
7080 | the obsolete SIZE_T_MAX. OK miod@ beck@ | ||
7081 | |||
7082 | commit 1910a286d7771eab84c0b047f31c0a17505236fa | ||
7083 | Author: millert@openbsd.org <millert@openbsd.org> | ||
7084 | Date: Thu Feb 5 12:59:57 2015 +0000 | ||
7085 | |||
7086 | upstream commit | ||
7087 | |||
7088 | Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@ | ||
7089 | |||
7090 | commit ce4f59b2405845584f45e0b3214760eb0008c06c | ||
7091 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
7092 | Date: Tue Feb 3 08:07:20 2015 +0000 | ||
7093 | |||
7094 | upstream commit | ||
7095 | |||
7096 | missing ; djm and mlarkin really having great | ||
7097 | interactions recently | ||
7098 | |||
7099 | commit 5d34aa94938abb12b877a25be51862757f25d54b | ||
7100 | Author: halex@openbsd.org <halex@openbsd.org> | ||
7101 | Date: Tue Feb 3 00:34:14 2015 +0000 | ||
7102 | |||
7103 | upstream commit | ||
7104 | |||
7105 | slightly extend the passphrase prompt if running with -c | ||
7106 | in order to give the user a chance to notice if unintentionally running | ||
7107 | without it | ||
7108 | |||
7109 | wording tweak and ok djm@ | ||
7110 | |||
7111 | commit cb3bde373e80902c7d5d0db429f85068d19b2918 | ||
7112 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7113 | Date: Mon Feb 2 22:48:53 2015 +0000 | ||
7114 | |||
7115 | upstream commit | ||
7116 | |||
7117 | handle PKCS#11 C_Login returning | ||
7118 | CKR_USER_ALREADY_LOGGED_IN; based on patch from Yuri Samoilenko; ok markus@ | ||
7119 | |||
7120 | commit 15ad750e5ec3cc69765b7eba1ce90060e7083399 | ||
7121 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7122 | Date: Mon Feb 2 07:41:40 2015 +0000 | ||
7123 | |||
7124 | upstream commit | ||
7125 | |||
7126 | turn UpdateHostkeys off by default until I figure out | ||
7127 | mlarkin@'s warning message; requested by deraadt@ | ||
7128 | |||
7129 | commit 3cd5103c1e1aaa59bd66f7f52f6ebbcd5deb12f9 | ||
7130 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
7131 | Date: Mon Feb 2 01:57:44 2015 +0000 | ||
7132 | |||
7133 | upstream commit | ||
7134 | |||
7135 | increasing encounters with difficult DNS setups in | ||
7136 | darknets has convinced me UseDNS off by default is better ok djm | ||
7137 | |||
7138 | commit 6049a548a8a68ff0bbe581ab1748ea6a59ecdc38 | ||
7139 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7140 | Date: Sat Jan 31 20:30:05 2015 +0000 | ||
7141 | |||
7142 | upstream commit | ||
7143 | |||
7144 | Let sshd load public host keys even when private keys are | ||
7145 | missing. Allows sshd to advertise additional keys for future key rotation. | ||
7146 | Also log fingerprint of hostkeys loaded; ok markus@ | ||
7147 | |||
7148 | commit 46347ed5968f582661e8a70a45f448e0179ca0ab | ||
7149 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7150 | Date: Fri Jan 30 11:43:14 2015 +0000 | ||
7151 | |||
7152 | upstream commit | ||
7153 | |||
7154 | Add a ssh_config HostbasedKeyType option to control which | ||
7155 | host public key types are tried during hostbased authentication. | ||
7156 | |||
7157 | This may be used to prevent too many keys being sent to the server, | ||
7158 | and blowing past its MaxAuthTries limit. | ||
7159 | |||
7160 | bz#2211 based on patch by Iain Morgan; ok markus@ | ||
7161 | |||
7162 | commit 802660cb70453fa4d230cb0233bc1bbdf8328de1 | ||
7163 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7164 | Date: Fri Jan 30 10:44:49 2015 +0000 | ||
7165 | |||
7166 | upstream commit | ||
7167 | |||
7168 | set a timeout to prevent hangs when talking to busted | ||
7169 | servers; ok markus@ | ||
7170 | |||
7171 | commit 86936ec245a15c7abe71a0722610998b0a28b194 | ||
7172 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7173 | Date: Fri Jan 30 01:11:39 2015 +0000 | ||
7174 | |||
7175 | upstream commit | ||
7176 | |||
7177 | regression test for 'wildcard CA' serial/key ID revocations | ||
7178 | |||
7179 | commit 4509b5d4a4fa645a022635bfa7e86d09b285001f | ||
7180 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7181 | Date: Fri Jan 30 01:13:33 2015 +0000 | ||
7182 | |||
7183 | upstream commit | ||
7184 | |||
7185 | avoid more fatal/exit in the packet.c paths that | ||
7186 | ssh-keyscan uses; feedback and "looks good" markus@ | ||
7187 | |||
7188 | commit 669aee994348468af8b4b2ebd29b602cf2860b22 | ||
7189 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7190 | Date: Fri Jan 30 01:10:33 2015 +0000 | ||
7191 | |||
7192 | upstream commit | ||
7193 | |||
7194 | permit KRLs that revoke certificates by serial number or | ||
7195 | key ID without scoping to a particular CA; ok markus@ | ||
7196 | |||
7197 | commit 7a2c368477e26575d0866247d3313da4256cb2b5 | ||
7198 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7199 | Date: Fri Jan 30 00:59:19 2015 +0000 | ||
7200 | |||
7201 | upstream commit | ||
7202 | |||
7203 | missing parentheses after if in do_convert_from() broke | ||
7204 | private key conversion from other formats some time in 2010; bz#2345 reported | ||
7205 | by jjelen AT redhat.com | ||
7206 | |||
7207 | commit 25f5f78d8bf5c22d9cea8b49de24ebeee648a355 | ||
7208 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7209 | Date: Fri Jan 30 00:22:25 2015 +0000 | ||
7210 | |||
7211 | upstream commit | ||
7212 | |||
7213 | fix ssh protocol 1, spotted by miod@ | ||
7214 | |||
7215 | commit 9ce86c926dfa6e0635161b035e3944e611cbccf0 | ||
7216 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7217 | Date: Wed Jan 28 22:36:00 2015 +0000 | ||
7218 | |||
7219 | upstream commit | ||
7220 | |||
7221 | update to new API (key_fingerprint => sshkey_fingerprint) | ||
7222 | check sshkey_fingerprint return values; ok markus | ||
7223 | |||
7224 | commit 9125525c37bf73ad3ee4025520889d2ce9d10f29 | ||
7225 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7226 | Date: Wed Jan 28 22:05:31 2015 +0000 | ||
7227 | |||
7228 | upstream commit | ||
7229 | |||
7230 | avoid fatal() calls in packet code makes ssh-keyscan more | ||
7231 | reliable against server failures ok dtucker@ markus@ | ||
7232 | |||
7233 | commit fae7bbe544cba7a9e5e4ab47ff6faa3d978646eb | ||
7234 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7235 | Date: Wed Jan 28 21:15:47 2015 +0000 | ||
7236 | |||
7237 | upstream commit | ||
7238 | |||
7239 | avoid fatal() calls in packet code makes ssh-keyscan more | ||
7240 | reliable against server failures ok dtucker@ markus@ | ||
7241 | |||
7242 | commit 1a3d14f6b44a494037c7deab485abe6496bf2c60 | ||
7243 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7244 | Date: Wed Jan 28 11:07:25 2015 +0000 | ||
7245 | |||
7246 | upstream commit | ||
7247 | |||
7248 | remove obsolete comment | ||
7249 | |||
7250 | commit 80c25b7bc0a71d75c43a4575d9a1336f589eb639 | ||
7251 | Author: okan@openbsd.org <okan@openbsd.org> | ||
7252 | Date: Tue Jan 27 12:54:06 2015 +0000 | ||
7253 | |||
7254 | upstream commit | ||
7255 | |||
7256 | Since r1.2 removed the use of PRI* macros, inttypes.h is | ||
7257 | no longer required. | ||
7258 | |||
7259 | ok djm@ | ||
7260 | |||
7261 | commit 69ff64f69615c2a21c97cb5878a0996c21423257 | ||
7262 | Author: Damien Miller <djm@mindrot.org> | ||
7263 | Date: Tue Jan 27 23:07:43 2015 +1100 | ||
7264 | |||
7265 | compile on systems without TCP_MD5SIG (e.g. OSX) | ||
7266 | |||
7267 | commit 358964f3082fb90b2ae15bcab07b6105cfad5a43 | ||
7268 | Author: Damien Miller <djm@mindrot.org> | ||
7269 | Date: Tue Jan 27 23:07:25 2015 +1100 | ||
7270 | |||
7271 | use ssh-keygen under test rather than system's | ||
7272 | |||
7273 | commit a2c95c1bf33ea53038324d1fdd774bc953f98236 | ||
7274 | Author: Damien Miller <djm@mindrot.org> | ||
7275 | Date: Tue Jan 27 23:06:59 2015 +1100 | ||
7276 | |||
7277 | OSX lacks HOST_NAME_MAX, has _POSIX_HOST_NAME_MAX | ||
7278 | |||
7279 | commit ade31d7b6f608a19b85bee29a7a00b1e636a2919 | ||
7280 | Author: Damien Miller <djm@mindrot.org> | ||
7281 | Date: Tue Jan 27 23:06:23 2015 +1100 | ||
7282 | |||
7283 | these need active_state defined to link on OSX | ||
7284 | |||
7285 | temporary measure until active_state goes away entirely | ||
7286 | |||
7287 | commit e56aa87502f22c5844918c10190e8b4f785f067b | ||
7288 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7289 | Date: Tue Jan 27 12:01:36 2015 +0000 | ||
7290 | |||
7291 | upstream commit | ||
7292 | |||
7293 | use printf instead of echo -n to reduce diff against | ||
7294 | -portable | ||
7295 | |||
7296 | commit 9f7637f56eddfaf62ce3c0af89c25480f2cf1068 | ||
7297 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
7298 | Date: Mon Jan 26 13:55:29 2015 +0000 | ||
7299 | |||
7300 | upstream commit | ||
7301 | |||
7302 | sort previous; | ||
7303 | |||
7304 | commit 3076ee7d530d5b16842fac7a6229706c7e5acd26 | ||
7305 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7306 | Date: Mon Jan 26 13:36:53 2015 +0000 | ||
7307 | |||
7308 | upstream commit | ||
7309 | |||
7310 | properly restore umask | ||
7311 | |||
7312 | commit d411d395556b73ba1b9e451516a0bd6697c4b03d | ||
7313 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7314 | Date: Mon Jan 26 06:12:18 2015 +0000 | ||
7315 | |||
7316 | upstream commit | ||
7317 | |||
7318 | regression test for host key rotation | ||
7319 | |||
7320 | commit fe8a3a51699afbc6407a8fae59b73349d01e49f8 | ||
7321 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7322 | Date: Mon Jan 26 06:11:28 2015 +0000 | ||
7323 | |||
7324 | upstream commit | ||
7325 | |||
7326 | adapt to sshkey API tweaks | ||
7327 | |||
7328 | commit 7dd355fb1f0038a3d5cdca57ebab4356c7a5b434 | ||
7329 | Author: miod@openbsd.org <miod@openbsd.org> | ||
7330 | Date: Sat Jan 24 10:39:21 2015 +0000 | ||
7331 | |||
7332 | upstream commit | ||
7333 | |||
7334 | Move -lz late in the linker commandline for things to | ||
7335 | build on static arches. | ||
7336 | |||
7337 | commit 0dad3b806fddb93c475b30853b9be1a25d673a33 | ||
7338 | Author: miod@openbsd.org <miod@openbsd.org> | ||
7339 | Date: Fri Jan 23 21:21:23 2015 +0000 | ||
7340 | |||
7341 | upstream commit | ||
7342 | |||
7343 | -Wpointer-sign is supported by gcc 4 only. | ||
7344 | |||
7345 | commit 2b3b1c1e4bd9577b6e780c255c278542ea66c098 | ||
7346 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7347 | Date: Tue Jan 20 22:58:57 2015 +0000 | ||
7348 | |||
7349 | upstream commit | ||
7350 | |||
7351 | use SUBDIR to recuse into unit tests; makes "make obj" | ||
7352 | actually work | ||
7353 | |||
7354 | commit 1d1092bff8db27080155541212b420703f8b9c92 | ||
7355 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7356 | Date: Mon Jan 26 12:16:36 2015 +0000 | ||
7357 | |||
7358 | upstream commit | ||
7359 | |||
7360 | correct description of UpdateHostKeys in ssh_config.5 and | ||
7361 | add it to -o lists for ssh, scp and sftp; pointed out by jmc@ | ||
7362 | |||
7363 | commit 5104db7cbd6cdd9c5971f4358e74414862fc1022 | ||
7364 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7365 | Date: Mon Jan 26 06:10:03 2015 +0000 | ||
7366 | |||
7367 | upstream commit | ||
7368 | |||
7369 | correctly match ECDSA subtype (== curve) for | ||
7370 | offered/recevied host keys. Fixes connection-killing host key mismatches when | ||
7371 | a server offers multiple ECDSA keys with different curve type (an extremely | ||
7372 | unlikely configuration). | ||
7373 | |||
7374 | ok markus, "looks mechanical" deraadt@ | ||
7375 | |||
7376 | commit 8d4f87258f31cb6def9b3b55b6a7321d84728ff2 | ||
7377 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7378 | Date: Mon Jan 26 03:04:45 2015 +0000 | ||
7379 | |||
7380 | upstream commit | ||
7381 | |||
7382 | Host key rotation support. | ||
7383 | |||
7384 | Add a hostkeys@openssh.com protocol extension (global request) for | ||
7385 | a server to inform a client of all its available host key after | ||
7386 | authentication has completed. The client may record the keys in | ||
7387 | known_hosts, allowing it to upgrade to better host key algorithms | ||
7388 | and a server to gracefully rotate its keys. | ||
7389 | |||
7390 | The client side of this is controlled by a UpdateHostkeys config | ||
7391 | option (default on). | ||
7392 | |||
7393 | ok markus@ | ||
7394 | |||
7395 | commit 60b1825262b1f1e24fc72050b907189c92daf18e | ||
7396 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7397 | Date: Mon Jan 26 02:59:11 2015 +0000 | ||
7398 | |||
7399 | upstream commit | ||
7400 | |||
7401 | small refactor and add some convenience functions; ok | ||
7402 | markus | ||
7403 | |||
7404 | commit a5a3e3328ddce91e76f71ff479022d53e35c60c9 | ||
7405 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
7406 | Date: Thu Jan 22 21:00:42 2015 +0000 | ||
7407 | |||
7408 | upstream commit | ||
7409 | |||
7410 | heirarchy -> hierarchy; | ||
7411 | |||
7412 | commit dcff5810a11195c57e1b3343c0d6b6f2b9974c11 | ||
7413 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
7414 | Date: Thu Jan 22 20:24:41 2015 +0000 | ||
7415 | |||
7416 | upstream commit | ||
7417 | |||
7418 | Provide a warning about chroot misuses (which sadly, seem | ||
7419 | to have become quite popular because shiny). sshd cannot detect/manage/do | ||
7420 | anything about these cases, best we can do is warn in the right spot in the | ||
7421 | man page. ok markus | ||
7422 | |||
7423 | commit 087266ec33c76fc8d54ac5a19efacf2f4a4ca076 | ||
7424 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
7425 | Date: Tue Jan 20 23:14:00 2015 +0000 | ||
7426 | |||
7427 | upstream commit | ||
7428 | |||
7429 | Reduce use of <sys/param.h> and transition to <limits.h> | ||
7430 | throughout. ok djm markus | ||
7431 | |||
7432 | commit 57e783c8ba2c0797f93977e83b2a8644a03065d8 | ||
7433 | Author: markus@openbsd.org <markus@openbsd.org> | ||
7434 | Date: Tue Jan 20 20:16:21 2015 +0000 | ||
7435 | |||
7436 | upstream commit | ||
7437 | |||
7438 | kex_setup errors are fatal() | ||
7439 | |||
7440 | commit 1d6424a6ff94633c221297ae8f42d54e12a20912 | ||
7441 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7442 | Date: Tue Jan 20 08:02:33 2015 +0000 | ||
7443 | |||
7444 | upstream commit | ||
7445 | |||
7446 | this test would accidentally delete agent.sh if run without | ||
7447 | obj/ | ||
7448 | |||
7449 | commit 12b5f50777203e12575f1b08568281e447249ed3 | ||
7450 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7451 | Date: Tue Jan 20 07:56:44 2015 +0000 | ||
7452 | |||
7453 | upstream commit | ||
7454 | |||
7455 | make this compile with KERBEROS5 enabled | ||
7456 | |||
7457 | commit e2cc6bef08941256817d44d146115b3478586ad4 | ||
7458 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7459 | Date: Tue Jan 20 07:55:33 2015 +0000 | ||
7460 | |||
7461 | upstream commit | ||
7462 | |||
7463 | fix hostkeys in agent; ok markus@ | ||
7464 | |||
7465 | commit 1ca3e2155aa5d3801a7ae050f85c71f41fcb95b1 | ||
7466 | Author: Damien Miller <djm@mindrot.org> | ||
7467 | Date: Tue Jan 20 10:11:31 2015 +1100 | ||
7468 | |||
7469 | fix kex test | ||
7470 | |||
7471 | commit c78a578107c7e6dcf5d30a2f34cb6581bef14029 | ||
7472 | Author: markus@openbsd.org <markus@openbsd.org> | ||
7473 | Date: Mon Jan 19 20:45:25 2015 +0000 | ||
7474 | |||
7475 | upstream commit | ||
7476 | |||
7477 | finally enable the KEX tests I wrote some years ago... | ||
7478 | |||
7479 | commit 31821d7217e686667d04935aeec99e1fc4a46e7e | ||
7480 | Author: markus@openbsd.org <markus@openbsd.org> | ||
7481 | Date: Mon Jan 19 20:42:31 2015 +0000 | ||
7482 | |||
7483 | upstream commit | ||
7484 | |||
7485 | adapt to new error message (SSH_ERR_MAC_INVALID) | ||
7486 | |||
7487 | commit d3716ca19e510e95d956ae14d5b367e364bff7f1 | ||
7488 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7489 | Date: Mon Jan 19 17:31:13 2015 +0000 | ||
7490 | |||
7491 | upstream commit | ||
7492 | |||
7493 | this test was broken in at least two ways, such that it | ||
7494 | wasn't checking that a KRL was not excluding valid keys | ||
7495 | |||
7496 | commit 3f797653748e7c2b037dacb57574c01d9ef3b4d3 | ||
7497 | Author: markus@openbsd.org <markus@openbsd.org> | ||
7498 | Date: Mon Jan 19 20:32:39 2015 +0000 | ||
7499 | |||
7500 | upstream commit | ||
7501 | |||
7502 | switch ssh-keyscan from setjmp to multiple ssh transport | ||
7503 | layer instances ok djm@ | ||
7504 | |||
7505 | commit f582f0e917bb0017b00944783cd5f408bf4b0b5e | ||
7506 | Author: markus@openbsd.org <markus@openbsd.org> | ||
7507 | Date: Mon Jan 19 20:30:23 2015 +0000 | ||
7508 | |||
7509 | upstream commit | ||
7510 | |||
7511 | add experimental api for packet layer; ok djm@ | ||
7512 | |||
7513 | commit 48b3b2ba75181f11fca7f327058a591f4426cade | ||
7514 | Author: markus@openbsd.org <markus@openbsd.org> | ||
7515 | Date: Mon Jan 19 20:20:20 2015 +0000 | ||
7516 | |||
7517 | upstream commit | ||
7518 | |||
7519 | store compat flags in struct ssh; ok djm@ | ||
7520 | |||
7521 | commit 57d10cbe861a235dd269c74fb2fe248469ecee9d | ||
7522 | Author: markus@openbsd.org <markus@openbsd.org> | ||
7523 | Date: Mon Jan 19 20:16:15 2015 +0000 | ||
7524 | |||
7525 | upstream commit | ||
7526 | |||
7527 | adapt kex to sshbuf and struct ssh; ok djm@ | ||
7528 | |||
7529 | commit 3fdc88a0def4f86aa88a5846ac079dc964c0546a | ||
7530 | Author: markus@openbsd.org <markus@openbsd.org> | ||
7531 | Date: Mon Jan 19 20:07:45 2015 +0000 | ||
7532 | |||
7533 | upstream commit | ||
7534 | |||
7535 | move dispatch to struct ssh; ok djm@ | ||
7536 | |||
7537 | commit 091c302829210c41e7f57c3f094c7b9c054306f0 | ||
7538 | Author: markus@openbsd.org <markus@openbsd.org> | ||
7539 | Date: Mon Jan 19 19:52:16 2015 +0000 | ||
7540 | |||
7541 | upstream commit | ||
7542 | |||
7543 | update packet.c & isolate, introduce struct ssh a) switch | ||
7544 | packet.c to buffer api and isolate per-connection info into struct ssh b) | ||
7545 | (de)serialization of the state is moved from monitor to packet.c c) the old | ||
7546 | packet.c API is implemented in opacket.[ch] d) compress.c/h is removed and | ||
7547 | integrated into packet.c with and ok djm@ | ||
7548 | |||
7549 | commit 4e62cc68ce4ba20245d208b252e74e91d3785b74 | ||
7550 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7551 | Date: Mon Jan 19 17:35:48 2015 +0000 | ||
7552 | |||
7553 | upstream commit | ||
7554 | |||
7555 | fix format strings in (disabled) debugging | ||
7556 | |||
7557 | commit d85e06245907d49a2cd0cfa0abf59150ad616f42 | ||
7558 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7559 | Date: Mon Jan 19 06:01:32 2015 +0000 | ||
7560 | |||
7561 | upstream commit | ||
7562 | |||
7563 | be a bit more careful in these tests to ensure that | ||
7564 | known_hosts is clean | ||
7565 | |||
7566 | commit 7947810eab5fe0ad311f32a48f4d4eb1f71be6cf | ||
7567 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7568 | Date: Sun Jan 18 22:00:18 2015 +0000 | ||
7569 | |||
7570 | upstream commit | ||
7571 | |||
7572 | regression test for known_host file editing using | ||
7573 | ssh-keygen (-H / -R / -F) after hostkeys_foreach() change; feedback and ok | ||
7574 | markus@ | ||
7575 | |||
7576 | commit 3a2b09d147a565d8a47edf37491e149a02c0d3a3 | ||
7577 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7578 | Date: Sun Jan 18 19:54:46 2015 +0000 | ||
7579 | |||
7580 | upstream commit | ||
7581 | |||
7582 | more and better key tests | ||
7583 | |||
7584 | test signatures and verification | ||
7585 | test certificate generation | ||
7586 | flesh out nested cert test | ||
7587 | |||
7588 | removes most of the XXX todo markers | ||
7589 | |||
7590 | commit 589e69fd82724cfc9738f128e4771da2e6405d0d | ||
7591 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7592 | Date: Sun Jan 18 19:53:58 2015 +0000 | ||
7593 | |||
7594 | upstream commit | ||
7595 | |||
7596 | make the signature fuzzing test much more rigorous: | ||
7597 | ensure that the fuzzed input cases do not match the original (using new | ||
7598 | fuzz_matches_original() function) and check that the verification fails in | ||
7599 | each case | ||
7600 | |||
7601 | commit 80603c0daa2538c349c1c152405580b164d5475f | ||
7602 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7603 | Date: Sun Jan 18 19:52:44 2015 +0000 | ||
7604 | |||
7605 | upstream commit | ||
7606 | |||
7607 | add a fuzz_matches_original() function to the fuzzer to | ||
7608 | detect fuzz cases that are identical to the original data. Hacky | ||
7609 | implementation, but very useful when you need the fuzz to be different, e.g. | ||
7610 | when verifying signature | ||
7611 | |||
7612 | commit 87d5495bd337e358ad69c524fcb9495208c0750b | ||
7613 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7614 | Date: Sun Jan 18 19:50:55 2015 +0000 | ||
7615 | |||
7616 | upstream commit | ||
7617 | |||
7618 | better dumps from the fuzzer (shown on errors) - | ||
7619 | include the original data as well as the fuzzed copy. | ||
7620 | |||
7621 | commit d59ec478c453a3fff05badbbfd96aa856364f2c2 | ||
7622 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7623 | Date: Sun Jan 18 19:47:55 2015 +0000 | ||
7624 | |||
7625 | upstream commit | ||
7626 | |||
7627 | enable hostkey-agent.sh test | ||
7628 | |||
7629 | commit 26b3425170bf840e4b095e1c10bf25a0a3e3a105 | ||
7630 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7631 | Date: Sat Jan 17 18:54:30 2015 +0000 | ||
7632 | |||
7633 | upstream commit | ||
7634 | |||
7635 | unit test for hostkeys in ssh-agent | ||
7636 | |||
7637 | commit 9e06a0fb23ec55d9223b26a45bb63c7649e2f2f2 | ||
7638 | Author: markus@openbsd.org <markus@openbsd.org> | ||
7639 | Date: Thu Jan 15 23:41:29 2015 +0000 | ||
7640 | |||
7641 | upstream commit | ||
7642 | |||
7643 | add kex unit tests | ||
7644 | |||
7645 | commit d2099dec6da21ae627f6289aedae6bc1d41a22ce | ||
7646 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
7647 | Date: Mon Jan 19 00:32:54 2015 +0000 | ||
7648 | |||
7649 | upstream commit | ||
7650 | |||
7651 | djm, your /usr/include tree is old | ||
7652 | |||
7653 | commit 2b3c3c76c30dc5076fe09d590f5b26880f148a54 | ||
7654 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7655 | Date: Sun Jan 18 21:51:19 2015 +0000 | ||
7656 | |||
7657 | upstream commit | ||
7658 | |||
7659 | some feedback from markus@: comment hostkeys_foreach() | ||
7660 | context and avoid a member in it. | ||
7661 | |||
7662 | commit cecb30bc2ba6d594366e657d664d5c494b6c8a7f | ||
7663 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7664 | Date: Sun Jan 18 21:49:42 2015 +0000 | ||
7665 | |||
7666 | upstream commit | ||
7667 | |||
7668 | make ssh-keygen use hostkeys_foreach(). Removes some | ||
7669 | horrendous code; ok markus@ | ||
7670 | |||
7671 | commit ec3d065df3a9557ea96b02d061fd821a18c1a0b9 | ||
7672 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7673 | Date: Sun Jan 18 21:48:09 2015 +0000 | ||
7674 | |||
7675 | upstream commit | ||
7676 | |||
7677 | convert load_hostkeys() (hostkey ordering and | ||
7678 | known_host matching) to use the new hostkey_foreach() iterator; ok markus | ||
7679 | |||
7680 | commit c29811cc480a260e42fd88849fc86a80c1e91038 | ||
7681 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7682 | Date: Sun Jan 18 21:40:23 2015 +0000 | ||
7683 | |||
7684 | upstream commit | ||
7685 | |||
7686 | introduce hostkeys_foreach() to allow iteration over a | ||
7687 | known_hosts file or controlled subset thereof. This will allow us to pull out | ||
7688 | some ugly and duplicated code, and will be used to implement hostkey rotation | ||
7689 | later. | ||
7690 | |||
7691 | feedback and ok markus | ||
7692 | |||
7693 | commit f101d8291da01bbbfd6fb8c569cfd0cc61c0d346 | ||
7694 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
7695 | Date: Sun Jan 18 14:01:00 2015 +0000 | ||
7696 | |||
7697 | upstream commit | ||
7698 | |||
7699 | string truncation due to sizeof(size) ok djm markus | ||
7700 | |||
7701 | commit 35d6022b55b7969fc10c261cb6aa78cc4a5fcc41 | ||
7702 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7703 | Date: Sun Jan 18 13:33:34 2015 +0000 | ||
7704 | |||
7705 | upstream commit | ||
7706 | |||
7707 | avoid trailing ',' in host key algorithms | ||
7708 | |||
7709 | commit 7efb455789a0cb76bdcdee91c6060a3dc8f5c007 | ||
7710 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7711 | Date: Sun Jan 18 13:22:28 2015 +0000 | ||
7712 | |||
7713 | upstream commit | ||
7714 | |||
7715 | infer key length correctly when user specified a fully- | ||
7716 | qualified key name instead of using the -b bits option; ok markus@ | ||
7717 | |||
7718 | commit 83f8ffa6a55ccd0ce9d8a205e3e7439ec18fedf5 | ||
7719 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7720 | Date: Sat Jan 17 18:53:34 2015 +0000 | ||
7721 | |||
7722 | upstream commit | ||
7723 | |||
7724 | fix hostkeys on ssh agent; found by unit test I'm about | ||
7725 | to commit | ||
7726 | |||
7727 | commit 369d61f17657b814124268f99c033e4dc6e436c1 | ||
7728 | Author: schwarze@openbsd.org <schwarze@openbsd.org> | ||
7729 | Date: Fri Jan 16 16:20:23 2015 +0000 | ||
7730 | |||
7731 | upstream commit | ||
7732 | |||
7733 | garbage collect empty .No macros mandoc warns about | ||
7734 | |||
7735 | commit bb8b442d32dbdb8521d610e10d8b248d938bd747 | ||
7736 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7737 | Date: Fri Jan 16 15:55:07 2015 +0000 | ||
7738 | |||
7739 | upstream commit | ||
7740 | |||
7741 | regression: incorrect error message on | ||
7742 | otherwise-successful ssh-keygen -A. Reported by Dmitry Orlov, via deraadt@ | ||
7743 | |||
7744 | commit 9010902954a40b59d0bf3df3ccbc3140a653e2bc | ||
7745 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7746 | Date: Fri Jan 16 07:19:48 2015 +0000 | ||
7747 | |||
7748 | upstream commit | ||
7749 | |||
7750 | when hostname canonicalisation is enabled, try to parse | ||
7751 | hostnames as addresses before looking them up for canonicalisation. fixes | ||
7752 | bz#2074 and avoids needless DNS lookups in some cases; ok markus | ||
7753 | |||
7754 | commit 2ae4f337b2a5fb2841b6b0053b49496fef844d1c | ||
7755 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
7756 | Date: Fri Jan 16 06:40:12 2015 +0000 | ||
7757 | |||
7758 | upstream commit | ||
7759 | |||
7760 | Replace <sys/param.h> with <limits.h> and other less | ||
7761 | dirty headers where possible. Annotate <sys/param.h> lines with their | ||
7762 | current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, | ||
7763 | LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of | ||
7764 | MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. | ||
7765 | These are the files confirmed through binary verification. ok guenther, | ||
7766 | millert, doug (helped with the verification protocol) | ||
7767 | |||
7768 | commit 3c4726f4c24118e8f1bb80bf75f1456c76df072c | ||
7769 | Author: markus@openbsd.org <markus@openbsd.org> | ||
7770 | Date: Thu Jan 15 21:38:50 2015 +0000 | ||
7771 | |||
7772 | upstream commit | ||
7773 | |||
7774 | remove xmalloc, switch to sshbuf | ||
7775 | |||
7776 | commit e17ac01f8b763e4b83976b9e521e90a280acc097 | ||
7777 | Author: markus@openbsd.org <markus@openbsd.org> | ||
7778 | Date: Thu Jan 15 21:37:14 2015 +0000 | ||
7779 | |||
7780 | upstream commit | ||
7781 | |||
7782 | switch to sshbuf | ||
7783 | |||
7784 | commit ddef9995a1fa6c7a8ff3b38bfe6cf724bebf13d0 | ||
7785 | Author: naddy@openbsd.org <naddy@openbsd.org> | ||
7786 | Date: Thu Jan 15 18:32:54 2015 +0000 | ||
7787 | |||
7788 | upstream commit | ||
7789 | |||
7790 | handle UMAC128 initialization like UMAC; ok djm@ markus@ | ||
7791 | |||
7792 | commit f14564c1f7792446bca143580aef0e7ac25dcdae | ||
7793 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7794 | Date: Thu Jan 15 11:04:36 2015 +0000 | ||
7795 | |||
7796 | upstream commit | ||
7797 | |||
7798 | fix regression reported by brad@ for passworded keys without | ||
7799 | agent present | ||
7800 | |||
7801 | commit 45c0fd70bb2a88061319dfff20cb12ef7b1bc47e | ||
7802 | Author: Damien Miller <djm@mindrot.org> | ||
7803 | Date: Thu Jan 15 22:08:23 2015 +1100 | ||
7804 | |||
7805 | make bitmap test compile | ||
7806 | |||
7807 | commit d333f89abf7179021e5c3f28673f469abe032062 | ||
7808 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7809 | Date: Thu Jan 15 07:36:28 2015 +0000 | ||
7810 | |||
7811 | upstream commit | ||
7812 | |||
7813 | unit tests for KRL bitmap | ||
7814 | |||
7815 | commit 7613f828f49c55ff356007ae9645038ab6682556 | ||
7816 | Author: markus@openbsd.org <markus@openbsd.org> | ||
7817 | Date: Wed Jan 14 09:58:21 2015 +0000 | ||
7818 | |||
7819 | upstream commit | ||
7820 | |||
7821 | re-add comment about full path | ||
7822 | |||
7823 | commit 6c43b48b307c41cd656b415621a644074579a578 | ||
7824 | Author: markus@openbsd.org <markus@openbsd.org> | ||
7825 | Date: Wed Jan 14 09:54:38 2015 +0000 | ||
7826 | |||
7827 | upstream commit | ||
7828 | |||
7829 | don't reset to the installed sshd; connect before | ||
7830 | reconfigure, too | ||
7831 | |||
7832 | commit 771bb47a1df8b69061f09462e78aa0b66cd594bf | ||
7833 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7834 | Date: Tue Jan 13 14:51:51 2015 +0000 | ||
7835 | |||
7836 | upstream commit | ||
7837 | |||
7838 | implement a SIGINFO handler so we can discern a stuck | ||
7839 | fuzz test from a merely glacial one; prompted by and ok markus | ||
7840 | |||
7841 | commit cfaa57962f8536f3cf0fd7daf4d6a55d6f6de45f | ||
7842 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7843 | Date: Tue Jan 13 08:23:26 2015 +0000 | ||
7844 | |||
7845 | upstream commit | ||
7846 | |||
7847 | use $SSH instead of installed ssh to allow override; | ||
7848 | spotted by markus@ | ||
7849 | |||
7850 | commit 0920553d0aee117a596b03ed5b49b280d34a32c5 | ||
7851 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7852 | Date: Tue Jan 13 07:49:49 2015 +0000 | ||
7853 | |||
7854 | upstream commit | ||
7855 | |||
7856 | regress test for PubkeyAcceptedKeyTypes; ok markus@ | ||
7857 | |||
7858 | commit 27ca1a5c0095eda151934bca39a77e391f875d17 | ||
7859 | Author: markus@openbsd.org <markus@openbsd.org> | ||
7860 | Date: Mon Jan 12 20:13:27 2015 +0000 | ||
7861 | |||
7862 | upstream commit | ||
7863 | |||
7864 | unbreak parsing of pubkey comments; with gerhard; ok | ||
7865 | djm/deraadt | ||
7866 | |||
7867 | commit 55358f0b4e0b83bc0df81c5f854c91b11e0bb4dc | ||
7868 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7869 | Date: Mon Jan 12 11:46:32 2015 +0000 | ||
7870 | |||
7871 | upstream commit | ||
7872 | |||
7873 | fatal if soft-PKCS11 library is missing rather (rather | ||
7874 | than continue and fail with a more cryptic error) | ||
7875 | |||
7876 | commit c3554cdd2a1a62434b8161017aa76fa09718a003 | ||
7877 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7878 | Date: Mon Jan 12 11:12:38 2015 +0000 | ||
7879 | |||
7880 | upstream commit | ||
7881 | |||
7882 | let this test all supporte key types; pointed out/ok | ||
7883 | markus@ | ||
7884 | |||
7885 | commit 1129dcfc5a3e508635004bcc05a3574cb7687167 | ||
7886 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7887 | Date: Thu Jan 15 09:40:00 2015 +0000 | ||
7888 | |||
7889 | upstream commit | ||
7890 | |||
7891 | sync ssh-keysign, ssh-keygen and some dependencies to the | ||
7892 | new buffer/key API; mostly mechanical, ok markus@ | ||
7893 | |||
7894 | commit e4ebf5586452bf512da662ac277aaf6ecf0efe7c | ||
7895 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7896 | Date: Thu Jan 15 07:57:08 2015 +0000 | ||
7897 | |||
7898 | upstream commit | ||
7899 | |||
7900 | remove commented-out test code now that it has moved to a | ||
7901 | proper unit test | ||
7902 | |||
7903 | commit e81cba066c1e9eb70aba0f6e7c0ff220611b370f | ||
7904 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7905 | Date: Wed Jan 14 20:54:29 2015 +0000 | ||
7906 | |||
7907 | upstream commit | ||
7908 | |||
7909 | whitespace | ||
7910 | |||
7911 | commit 141efe49542f7156cdbc2e4cd0a041d8b1aab622 | ||
7912 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7913 | Date: Wed Jan 14 20:05:27 2015 +0000 | ||
7914 | |||
7915 | upstream commit | ||
7916 | |||
7917 | move authfd.c and its tentacles to the new buffer/key | ||
7918 | API; ok markus@ | ||
7919 | |||
7920 | commit 0088c57af302cda278bd26d8c3ae81d5b6f7c289 | ||
7921 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7922 | Date: Wed Jan 14 19:33:41 2015 +0000 | ||
7923 | |||
7924 | upstream commit | ||
7925 | |||
7926 | fix small regression: ssh-agent would return a success | ||
7927 | message but an empty signature if asked to sign using an unknown key; ok | ||
7928 | markus@ | ||
7929 | |||
7930 | commit b03ebe2c22b8166e4f64c37737f4278676e3488d | ||
7931 | Author: Damien Miller <djm@mindrot.org> | ||
7932 | Date: Thu Jan 15 03:08:58 2015 +1100 | ||
7933 | |||
7934 | more --without-openssl | ||
7935 | |||
7936 | fix some regressions caused by upstream merges | ||
7937 | |||
7938 | enable KRLs now that they no longer require BIGNUMs | ||
7939 | |||
7940 | commit bc42cc6fe784f36df225c44c93b74830027cb5a2 | ||
7941 | Author: Damien Miller <djm@mindrot.org> | ||
7942 | Date: Thu Jan 15 03:08:29 2015 +1100 | ||
7943 | |||
7944 | kludge around tun API mismatch betterer | ||
7945 | |||
7946 | commit c332110291089b624fa0951fbf2d1ee6de525b9f | ||
7947 | Author: Damien Miller <djm@mindrot.org> | ||
7948 | Date: Thu Jan 15 02:59:51 2015 +1100 | ||
7949 | |||
7950 | some systems lack SO_REUSEPORT | ||
7951 | |||
7952 | commit 83b9678a62cbdc74eb2031cf1e1e4ffd58e233ae | ||
7953 | Author: Damien Miller <djm@mindrot.org> | ||
7954 | Date: Thu Jan 15 02:35:50 2015 +1100 | ||
7955 | |||
7956 | fix merge botch | ||
7957 | |||
7958 | commit 0cdc5a3eb6fb383569a4da2a30705d9b90428d6b | ||
7959 | Author: Damien Miller <djm@mindrot.org> | ||
7960 | Date: Thu Jan 15 02:35:33 2015 +1100 | ||
7961 | |||
7962 | unbreak across API change | ||
7963 | |||
7964 | commit 6e2549ac2b5e7f96cbc2d83a6e0784b120444b47 | ||
7965 | Author: Damien Miller <djm@mindrot.org> | ||
7966 | Date: Thu Jan 15 02:30:18 2015 +1100 | ||
7967 | |||
7968 | need includes.h for portable OpenSSH | ||
7969 | |||
7970 | commit 72ef7c148c42db7d5632a29f137f8b87b579f2d9 | ||
7971 | Author: Damien Miller <djm@mindrot.org> | ||
7972 | Date: Thu Jan 15 02:21:31 2015 +1100 | ||
7973 | |||
7974 | support --without-openssl at configure time | ||
7975 | |||
7976 | Disables and removes dependency on OpenSSL. Many features don't | ||
7977 | work and the set of crypto options is greatly restricted. This | ||
7978 | will only work on system with native arc4random or /dev/urandom. | ||
7979 | |||
7980 | Considered highly experimental for now. | ||
7981 | |||
7982 | commit 4f38c61c68ae7e3f9ee4b3c38bc86cd39f65ece9 | ||
7983 | Author: Damien Miller <djm@mindrot.org> | ||
7984 | Date: Thu Jan 15 02:28:00 2015 +1100 | ||
7985 | |||
7986 | add files missed in last commit | ||
7987 | |||
7988 | commit a165bab605f7be55940bb8fae977398e8c96a46d | ||
7989 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7990 | Date: Wed Jan 14 15:02:39 2015 +0000 | ||
7991 | |||
7992 | upstream commit | ||
7993 | |||
7994 | avoid BIGNUM in KRL code by using a simple bitmap; | ||
7995 | feedback and ok markus | ||
7996 | |||
7997 | commit 7d845f4a0b7ec97887be204c3760e44de8bf1f32 | ||
7998 | Author: djm@openbsd.org <djm@openbsd.org> | ||
7999 | Date: Wed Jan 14 13:54:13 2015 +0000 | ||
8000 | |||
8001 | upstream commit | ||
8002 | |||
8003 | update sftp client and server to new buffer API. pretty | ||
8004 | much just mechanical changes; with & ok markus | ||
8005 | |||
8006 | commit 139ca81866ec1b219c717d17061e5e7ad1059e2a | ||
8007 | Author: markus@openbsd.org <markus@openbsd.org> | ||
8008 | Date: Wed Jan 14 13:09:09 2015 +0000 | ||
8009 | |||
8010 | upstream commit | ||
8011 | |||
8012 | switch to sshbuf/sshkey; with & ok djm@ | ||
8013 | |||
8014 | commit 81bfbd0bd35683de5d7f2238b985e5f8150a9180 | ||
8015 | Author: Damien Miller <djm@mindrot.org> | ||
8016 | Date: Wed Jan 14 21:48:18 2015 +1100 | ||
8017 | |||
8018 | support --without-openssl at configure time | ||
8019 | |||
8020 | Disables and removes dependency on OpenSSL. Many features don't | ||
8021 | work and the set of crypto options is greatly restricted. This | ||
8022 | will only work on system with native arc4random or /dev/urandom. | ||
8023 | |||
8024 | Considered highly experimental for now. | ||
8025 | |||
8026 | commit 54924b53af15ccdcbb9f89984512b5efef641a31 | ||
8027 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8028 | Date: Wed Jan 14 10:46:28 2015 +0000 | ||
8029 | |||
8030 | upstream commit | ||
8031 | |||
8032 | avoid an warning for the !OPENSSL case | ||
8033 | |||
8034 | commit ae8b463217f7c9b66655bfc3945c050ffdaeb861 | ||
8035 | Author: markus@openbsd.org <markus@openbsd.org> | ||
8036 | Date: Wed Jan 14 10:30:34 2015 +0000 | ||
8037 | |||
8038 | upstream commit | ||
8039 | |||
8040 | swith auth-options to new sshbuf/sshkey; ok djm@ | ||
8041 | |||
8042 | commit 540e891191b98b89ee90aacf5b14a4a68635e763 | ||
8043 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8044 | Date: Wed Jan 14 10:29:45 2015 +0000 | ||
8045 | |||
8046 | upstream commit | ||
8047 | |||
8048 | make non-OpenSSL aes-ctr work on sshd w/ privsep; ok | ||
8049 | markus@ | ||
8050 | |||
8051 | commit 60c2c4ea5e1ad0ddfe8b2877b78ed5143be79c53 | ||
8052 | Author: markus@openbsd.org <markus@openbsd.org> | ||
8053 | Date: Wed Jan 14 10:24:42 2015 +0000 | ||
8054 | |||
8055 | upstream commit | ||
8056 | |||
8057 | remove unneeded includes, sync my copyright across files | ||
8058 | & whitespace; ok djm@ | ||
8059 | |||
8060 | commit 128343bcdb0b60fc826f2733df8cf979ec1627b4 | ||
8061 | Author: markus@openbsd.org <markus@openbsd.org> | ||
8062 | Date: Tue Jan 13 19:31:40 2015 +0000 | ||
8063 | |||
8064 | upstream commit | ||
8065 | |||
8066 | adapt mac.c to ssherr.h return codes (de-fatal) and | ||
8067 | simplify dependencies ok djm@ | ||
8068 | |||
8069 | commit e7fd952f4ea01f09ceb068721a5431ac2fd416ed | ||
8070 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8071 | Date: Tue Jan 13 19:04:35 2015 +0000 | ||
8072 | |||
8073 | upstream commit | ||
8074 | |||
8075 | sync changes from libopenssh; prepared by markus@ mostly | ||
8076 | debug output tweaks, a couple of error return value changes and some other | ||
8077 | minor stuff | ||
8078 | |||
8079 | commit 76c0480a85675f03a1376167cb686abed01a3583 | ||
8080 | Author: Damien Miller <djm@mindrot.org> | ||
8081 | Date: Tue Jan 13 19:38:18 2015 +1100 | ||
8082 | |||
8083 | add --without-ssh1 option to configure | ||
8084 | |||
8085 | Allows disabling support for SSH protocol 1. | ||
8086 | |||
8087 | commit 1f729f0614d1376c3332fa1edb6a5e5cec7e9e03 | ||
8088 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8089 | Date: Tue Jan 13 07:39:19 2015 +0000 | ||
8090 | |||
8091 | upstream commit | ||
8092 | |||
8093 | add sshd_config HostbasedAcceptedKeyTypes and | ||
8094 | PubkeyAcceptedKeyTypes options to allow sshd to control what public key types | ||
8095 | will be accepted. Currently defaults to all. Feedback & ok markus@ | ||
8096 | |||
8097 | commit 816d1538c24209a93ba0560b27c4fda57c3fff65 | ||
8098 | Author: markus@openbsd.org <markus@openbsd.org> | ||
8099 | Date: Mon Jan 12 20:13:27 2015 +0000 | ||
8100 | |||
8101 | upstream commit | ||
8102 | |||
8103 | unbreak parsing of pubkey comments; with gerhard; ok | ||
8104 | djm/deraadt | ||
8105 | |||
8106 | commit 0097565f849851812df610b7b6b3c4bd414f6c62 | ||
8107 | Author: markus@openbsd.org <markus@openbsd.org> | ||
8108 | Date: Mon Jan 12 19:22:46 2015 +0000 | ||
8109 | |||
8110 | upstream commit | ||
8111 | |||
8112 | missing error assigment on sshbuf_put_string() | ||
8113 | |||
8114 | commit a7f49dcb527dd17877fcb8d5c3a9a6f550e0bba5 | ||
8115 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8116 | Date: Mon Jan 12 15:18:07 2015 +0000 | ||
8117 | |||
8118 | upstream commit | ||
8119 | |||
8120 | apparently memcpy(x, NULL, 0) is undefined behaviour | ||
8121 | according to C99 (cf. sections 7.21.1 and 7.1.4), so check skip memcpy calls | ||
8122 | when length==0; ok markus@ | ||
8123 | |||
8124 | commit 905fe30fca82f38213763616d0d26eb6790bde33 | ||
8125 | Author: markus@openbsd.org <markus@openbsd.org> | ||
8126 | Date: Mon Jan 12 14:05:19 2015 +0000 | ||
8127 | |||
8128 | upstream commit | ||
8129 | |||
8130 | free->sshkey_free; ok djm@ | ||
8131 | |||
8132 | commit f067cca2bc20c86b110174c3fef04086a7f57b13 | ||
8133 | Author: markus@openbsd.org <markus@openbsd.org> | ||
8134 | Date: Mon Jan 12 13:29:27 2015 +0000 | ||
8135 | |||
8136 | upstream commit | ||
8137 | |||
8138 | allow WITH_OPENSSL w/o WITH_SSH1; ok djm@ | ||
8139 | |||
8140 | commit c4bfafcc2a9300d9cfb3c15e75572d3a7d74670d | ||
8141 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8142 | Date: Thu Jan 8 13:10:58 2015 +0000 | ||
8143 | |||
8144 | upstream commit | ||
8145 | |||
8146 | adjust for sshkey_load_file() API change | ||
8147 | |||
8148 | commit e752c6d547036c602b89e9e704851463bd160e32 | ||
8149 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8150 | Date: Thu Jan 8 13:44:36 2015 +0000 | ||
8151 | |||
8152 | upstream commit | ||
8153 | |||
8154 | fix ssh_config FingerprintHash evaluation order; from Petr | ||
8155 | Lautrbach | ||
8156 | |||
8157 | commit ab24ab847b0fc94c8d5e419feecff0bcb6d6d1bf | ||
8158 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8159 | Date: Thu Jan 8 10:15:45 2015 +0000 | ||
8160 | |||
8161 | upstream commit | ||
8162 | |||
8163 | reorder hostbased key attempts to better match the | ||
8164 | default hostkey algorithms order in myproposal.h; ok markus@ | ||
8165 | |||
8166 | commit 1195f4cb07ef4b0405c839293c38600b3e9bdb46 | ||
8167 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8168 | Date: Thu Jan 8 10:14:08 2015 +0000 | ||
8169 | |||
8170 | upstream commit | ||
8171 | |||
8172 | deprecate key_load_private_pem() and | ||
8173 | sshkey_load_private_pem() interfaces. Refactor the generic key loading API to | ||
8174 | not require pathnames to be specified (they weren't really used). | ||
8175 | |||
8176 | Fixes a few other things en passant: | ||
8177 | |||
8178 | Makes ed25519 keys work for hostbased authentication (ssh-keysign | ||
8179 | previously used the PEM-only routines). | ||
8180 | |||
8181 | Fixes key comment regression bz#2306: key pathnames were being lost as | ||
8182 | comment fields. | ||
8183 | |||
8184 | ok markus@ | ||
8185 | |||
8186 | commit febbe09e4e9aff579b0c5cc1623f756862e4757d | ||
8187 | Author: tedu@openbsd.org <tedu@openbsd.org> | ||
8188 | Date: Wed Jan 7 18:15:07 2015 +0000 | ||
8189 | |||
8190 | upstream commit | ||
8191 | |||
8192 | workaround for the Meyer, et al, Bleichenbacher Side | ||
8193 | Channel Attack. fake up a bignum key before RSA decryption. discussed/ok djm | ||
8194 | markus | ||
8195 | |||
8196 | commit 5191df927db282d3123ca2f34a04d8d96153911a | ||
8197 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8198 | Date: Tue Dec 23 22:42:48 2014 +0000 | ||
8199 | |||
8200 | upstream commit | ||
8201 | |||
8202 | KNF and add a little more debug() | ||
8203 | |||
8204 | commit 8abd80315d3419b20e6938f74d37e2e2b547f0b7 | ||
8205 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
8206 | Date: Mon Dec 22 09:26:31 2014 +0000 | ||
8207 | |||
8208 | upstream commit | ||
8209 | |||
8210 | add fingerprinthash to the options list; | ||
8211 | |||
8212 | commit 296ef0560f60980da01d83b9f0e1a5257826536f | ||
8213 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
8214 | Date: Mon Dec 22 09:24:59 2014 +0000 | ||
8215 | |||
8216 | upstream commit | ||
8217 | |||
8218 | tweak previous; | ||
8219 | |||
8220 | commit 462082eacbd37778a173afb6b84c6f4d898a18b5 | ||
8221 | Author: Damien Miller <djm@google.com> | ||
8222 | Date: Tue Dec 30 08:16:11 2014 +1100 | ||
8223 | |||
8224 | avoid uninitialised free of ldns_res | ||
8225 | |||
8226 | If an invalid rdclass was passed to getrrsetbyname() then | ||
8227 | this would execute a free on an uninitialised pointer. | ||
8228 | OpenSSH only ever calls this with a fixed and valid rdclass. | ||
8229 | |||
8230 | Reported by Joshua Rogers | ||
8231 | |||
8232 | commit 01b63498801053f131a0740eb9d13faf35d636c8 | ||
8233 | Author: Damien Miller <djm@google.com> | ||
8234 | Date: Mon Dec 29 18:10:18 2014 +1100 | ||
8235 | |||
8236 | pull updated OpenBSD BCrypt PBKDF implementation | ||
8237 | |||
8238 | Includes fix for 1 byte output overflow for large key length | ||
8239 | requests (not reachable in OpenSSH). | ||
8240 | |||
8241 | Pointed out by Joshua Rogers | ||
8242 | |||
8243 | commit c528c1b4af2f06712177b3de9b30705752f7cbcb | ||
8244 | Author: Damien Miller <djm@google.com> | ||
8245 | Date: Tue Dec 23 15:26:13 2014 +1100 | ||
8246 | |||
8247 | fix variable name for IPv6 case in construct_utmpx | ||
8248 | |||
8249 | patch from writeonce AT midipix.org via bz#2296 | ||
8250 | |||
8251 | commit 293cac52dcda123244b2e594d15592e5e481c55e | ||
8252 | Author: Damien Miller <djm@google.com> | ||
8253 | Date: Mon Dec 22 16:30:42 2014 +1100 | ||
8254 | |||
8255 | include and use OpenBSD netcat in regress/ | ||
8256 | |||
8257 | commit 8f6784f0cb56dc4fd00af3e81a10050a5785228d | ||
8258 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8259 | Date: Mon Dec 22 09:05:17 2014 +0000 | ||
8260 | |||
8261 | upstream commit | ||
8262 | |||
8263 | mention ssh -Q feature to list supported { MAC, cipher, | ||
8264 | KEX, key } algorithms in more places and include the query string used to | ||
8265 | list the relevant information; bz#2288 | ||
8266 | |||
8267 | commit 449e11b4d7847079bd0a2daa6e3e7ea03d8ef700 | ||
8268 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
8269 | Date: Mon Dec 22 08:24:17 2014 +0000 | ||
8270 | |||
8271 | upstream commit | ||
8272 | |||
8273 | tweak previous; | ||
8274 | |||
8275 | commit 4bea0ab3290c0b9dd2aa199e932de8e7e18062d6 | ||
8276 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8277 | Date: Mon Dec 22 08:06:03 2014 +0000 | ||
8278 | |||
8279 | upstream commit | ||
8280 | |||
8281 | regression test for multiple required pubkey authentication; | ||
8282 | ok markus@ | ||
8283 | |||
8284 | commit f1c4d8ec52158b6f57834b8cd839605b0a33e7f2 | ||
8285 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8286 | Date: Mon Dec 22 08:04:23 2014 +0000 | ||
8287 | |||
8288 | upstream commit | ||
8289 | |||
8290 | correct description of what will happen when a | ||
8291 | AuthorizedKeysCommand is specified but AuthorizedKeysCommandUser is not (sshd | ||
8292 | will refuse to start) | ||
8293 | |||
8294 | commit 161cf419f412446635013ac49e8c660cadc36080 | ||
8295 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8296 | Date: Mon Dec 22 07:55:51 2014 +0000 | ||
8297 | |||
8298 | upstream commit | ||
8299 | |||
8300 | make internal handling of filename arguments of "none" | ||
8301 | more consistent with ssh. "none" arguments are now replaced with NULL when | ||
8302 | the configuration is finalised. | ||
8303 | |||
8304 | Simplifies checking later on (just need to test not-NULL rather than | ||
8305 | that + strcmp) and cleans up some inconsistencies. ok markus@ | ||
8306 | |||
8307 | commit f69b69b8625be447b8826b21d87713874dac25a6 | ||
8308 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8309 | Date: Mon Dec 22 07:51:30 2014 +0000 | ||
8310 | |||
8311 | upstream commit | ||
8312 | |||
8313 | remember which public keys have been used for | ||
8314 | authentication and refuse to accept previously-used keys. | ||
8315 | |||
8316 | This allows AuthenticationMethods=publickey,publickey to require | ||
8317 | that users authenticate using two _different_ pubkeys. | ||
8318 | |||
8319 | ok markus@ | ||
8320 | |||
8321 | commit 46ac2ed4677968224c4ca825bc98fc68dae183f0 | ||
8322 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8323 | Date: Mon Dec 22 07:24:11 2014 +0000 | ||
8324 | |||
8325 | upstream commit | ||
8326 | |||
8327 | fix passing of wildcard forward bind addresses when | ||
8328 | connection multiplexing is in use; patch from Sami Hartikainen via bz#2324; | ||
8329 | ok dtucker@ | ||
8330 | |||
8331 | commit 0d1b241a262e4d0a6bbfdd595489ab1b853c43a1 | ||
8332 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8333 | Date: Mon Dec 22 06:14:29 2014 +0000 | ||
8334 | |||
8335 | upstream commit | ||
8336 | |||
8337 | make this slightly easier to diff against portable | ||
8338 | |||
8339 | commit 0715bcdddbf68953964058f17255bf54734b8737 | ||
8340 | Author: Damien Miller <djm@mindrot.org> | ||
8341 | Date: Mon Dec 22 13:47:07 2014 +1100 | ||
8342 | |||
8343 | add missing regress output file | ||
8344 | |||
8345 | commit 1e30483c8ad2c2f39445d4a4b6ab20c241e40593 | ||
8346 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8347 | Date: Mon Dec 22 02:15:52 2014 +0000 | ||
8348 | |||
8349 | upstream commit | ||
8350 | |||
8351 | adjust for new SHA256 key fingerprints and | ||
8352 | slightly-different MD5 hex fingerprint format | ||
8353 | |||
8354 | commit 6b40567ed722df98593ad8e6a2d2448fc2b4b151 | ||
8355 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8356 | Date: Mon Dec 22 01:14:49 2014 +0000 | ||
8357 | |||
8358 | upstream commit | ||
8359 | |||
8360 | poll changes to netcat (usr.bin/netcat.c r1.125) broke | ||
8361 | this test; fix it by ensuring more stdio fds are sent to devnull | ||
8362 | |||
8363 | commit a5375ccb970f49dddf7d0ef63c9b713ede9e7260 | ||
8364 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
8365 | Date: Sun Dec 21 23:35:14 2014 +0000 | ||
8366 | |||
8367 | upstream commit | ||
8368 | |||
8369 | tweak previous; | ||
8370 | |||
8371 | commit b79efde5c3badf5ce4312fe608d8307eade533c5 | ||
8372 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8373 | Date: Sun Dec 21 23:12:42 2014 +0000 | ||
8374 | |||
8375 | upstream commit | ||
8376 | |||
8377 | document FingerprintHash here too | ||
8378 | |||
8379 | commit d16bdd8027dd116afa01324bb071a4016cdc1a75 | ||
8380 | Author: Damien Miller <djm@mindrot.org> | ||
8381 | Date: Mon Dec 22 10:18:09 2014 +1100 | ||
8382 | |||
8383 | missing include for base64 encoding | ||
8384 | |||
8385 | commit 56d1c83cdd1ac76f1c6bd41e01e80dad834f3994 | ||
8386 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8387 | Date: Sun Dec 21 22:27:55 2014 +0000 | ||
8388 | |||
8389 | upstream commit | ||
8390 | |||
8391 | Add FingerprintHash option to control algorithm used for | ||
8392 | key fingerprints. Default changes from MD5 to SHA256 and format from hex to | ||
8393 | base64. | ||
8394 | |||
8395 | Feedback and ok naddy@ markus@ | ||
8396 | |||
8397 | commit 058f839fe15c51be8b3a844a76ab9a8db550be4f | ||
8398 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8399 | Date: Thu Dec 18 23:58:04 2014 +0000 | ||
8400 | |||
8401 | upstream commit | ||
8402 | |||
8403 | don't count partial authentication success as a failure | ||
8404 | against MaxAuthTries; ok deraadt@ | ||
8405 | |||
8406 | commit c7219f4f54d64d6dde66dbcf7a2699daa782d2a1 | ||
8407 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8408 | Date: Fri Dec 12 00:02:17 2014 +0000 | ||
8409 | |||
8410 | upstream commit | ||
8411 | |||
8412 | revert chunk I didn't mean to commit yet; via jmc@ | ||
8413 | |||
8414 | commit 7de5991aa3997e2981440f39c1ea01273a0a2c7b | ||
8415 | Author: Damien Miller <djm@mindrot.org> | ||
8416 | Date: Thu Dec 18 11:44:06 2014 +1100 | ||
8417 | |||
8418 | upstream libc change | ||
8419 | |||
8420 | revision 1.2 | ||
8421 | date: 2014/12/08 03:45:00; author: bcook; state: Exp; lines: +2 -2; commitid: 7zWEBgJJOCZ2hvTV; | ||
8422 | avoid left shift overflow in reallocarray. | ||
8423 | |||
8424 | Some 64-bit platforms (e.g. Windows 64) have a 32-bit long. So, shifting | ||
8425 | 1UL 32-bits to the left causes an overflow. This replaces the constant 1UL with | ||
8426 | (size_t)1 so that we get the correct constant size for the platform. | ||
8427 | |||
8428 | discussed with tedu@ & deraadt@ | ||
8429 | |||
8430 | commit 2048f85a5e6da8bc6e0532efe02ecfd4e63c978c | ||
8431 | Author: Damien Miller <djm@mindrot.org> | ||
8432 | Date: Thu Dec 18 10:15:49 2014 +1100 | ||
8433 | |||
8434 | include CFLAGS in gnome askpass targets | ||
8435 | |||
8436 | from Fedora | ||
8437 | |||
8438 | commit 48b68ce19ca42fa488960028048dec023f7899bb | ||
8439 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8440 | Date: Thu Dec 11 08:20:09 2014 +0000 | ||
8441 | |||
8442 | upstream commit | ||
8443 | |||
8444 | explicitly include sys/param.h in files that use the | ||
8445 | howmany() macro; from portable | ||
8446 | |||
8447 | commit d663bea30a294d440fef4398e5cd816317bd4518 | ||
8448 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8449 | Date: Thu Dec 11 05:25:06 2014 +0000 | ||
8450 | |||
8451 | upstream commit | ||
8452 | |||
8453 | mention AuthorizedKeysCommandUser must be set for | ||
8454 | AuthorizedKeysCommand to be run; bz#2287 | ||
8455 | |||
8456 | commit 17bf3d81e00f2abb414a4fd271118cf4913f049f | ||
8457 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8458 | Date: Thu Dec 11 05:13:28 2014 +0000 | ||
8459 | |||
8460 | upstream commit | ||
8461 | |||
8462 | show in debug output which hostkeys are being tried when | ||
8463 | attempting hostbased auth; patch from Iain Morgan | ||
8464 | |||
8465 | commit da0277e3717eadf5b15e03379fc29db133487e94 | ||
8466 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8467 | Date: Thu Dec 11 04:16:14 2014 +0000 | ||
8468 | |||
8469 | upstream commit | ||
8470 | |||
8471 | Make manual reflect reality: sftp-server's -d option | ||
8472 | accepts a "%d" option, not a "%h" one. | ||
8473 | |||
8474 | bz#2316; reported by Kirk Wolf | ||
8475 | |||
8476 | commit 4cf87f4b81fa9380bce5fcff7b0f8382ae3ad996 | ||
8477 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8478 | Date: Wed Dec 10 01:24:09 2014 +0000 | ||
8479 | |||
8480 | upstream commit | ||
8481 | |||
8482 | better error value for invalid signature length | ||
8483 | |||
8484 | commit 4bfad14ca56f8ae04f418997816b4ba84e2cfc3c | ||
8485 | Author: Darren Tucker <dtucker@zip.com.au> | ||
8486 | Date: Wed Dec 10 02:12:51 2014 +1100 | ||
8487 | |||
8488 | Resync more with OpenBSD's rijndael.c, in particular "#if 0"-ing out some | ||
8489 | unused code. Should fix compile error reported by plautrba at redhat. | ||
8490 | |||
8491 | commit 642652d280499691c8212ec6b79724b50008ce09 | ||
8492 | Author: Darren Tucker <dtucker@zip.com.au> | ||
8493 | Date: Wed Dec 10 01:32:23 2014 +1100 | ||
8494 | |||
8495 | Add reallocarray to compat library | ||
8496 | |||
8497 | commit 3dfd8d93dfcc69261f5af99df56f3ff598581979 | ||
8498 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8499 | Date: Thu Dec 4 22:31:50 2014 +0000 | ||
8500 | |||
8501 | upstream commit | ||
8502 | |||
8503 | add tests for new client RevokedHostKeys option; refactor | ||
8504 | to make it a bit more readable | ||
8505 | |||
8506 | commit a31046cad1aed16a0b55171192faa6d02665ccec | ||
8507 | Author: krw@openbsd.org <krw@openbsd.org> | ||
8508 | Date: Wed Nov 19 13:35:37 2014 +0000 | ||
8509 | |||
8510 | upstream commit | ||
8511 | |||
8512 | Nuke yet more obvious #include duplications. | ||
8513 | |||
8514 | ok deraadt@ | ||
8515 | |||
8516 | commit a7c762e5b2c1093542c0bc1df25ccec0b4cf479f | ||
8517 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8518 | Date: Thu Dec 4 20:47:36 2014 +0000 | ||
8519 | |||
8520 | upstream commit | ||
8521 | |||
8522 | key_in_file() wrapper is no longer used | ||
8523 | |||
8524 | commit 5e39a49930d885aac9c76af3129332b6e772cd75 | ||
8525 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8526 | Date: Thu Dec 4 02:24:32 2014 +0000 | ||
8527 | |||
8528 | upstream commit | ||
8529 | |||
8530 | add RevokedHostKeys option for the client | ||
8531 | |||
8532 | Allow textfile or KRL-based revocation of hostkeys. | ||
8533 | |||
8534 | commit 74de254bb92c684cf53461da97f52d5ba34ded80 | ||
8535 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8536 | Date: Thu Dec 4 01:49:59 2014 +0000 | ||
8537 | |||
8538 | upstream commit | ||
8539 | |||
8540 | convert KRL code to new buffer API | ||
8541 | |||
8542 | ok markus@ | ||
8543 | |||
8544 | commit db995f2eed5fc432598626fa3e30654503bf7151 | ||
8545 | Author: millert@openbsd.org <millert@openbsd.org> | ||
8546 | Date: Wed Nov 26 18:34:51 2014 +0000 | ||
8547 | |||
8548 | upstream commit | ||
8549 | |||
8550 | Prefer setvbuf() to setlinebuf() for portability; ok | ||
8551 | deraadt@ | ||
8552 | |||
8553 | commit 72bba3d179ced8b425272efe6956a309202a91f3 | ||
8554 | Author: jsg@openbsd.org <jsg@openbsd.org> | ||
8555 | Date: Mon Nov 24 03:39:22 2014 +0000 | ||
8556 | |||
8557 | upstream commit | ||
8558 | |||
8559 | Fix crashes in the handling of the sshd config file found | ||
8560 | with the afl fuzzer. | ||
8561 | |||
8562 | ok deraadt@ djm@ | ||
8563 | |||
8564 | commit 867f49c666adcfe92bf539d9c37c1accdea08bf6 | ||
8565 | Author: Damien Miller <djm@mindrot.org> | ||
8566 | Date: Wed Nov 26 13:22:41 2014 +1100 | ||
8567 | |||
8568 | Avoid Cygwin ssh-host-config reading /etc/group | ||
8569 | |||
8570 | Patch from Corinna Vinschen | ||
8571 | |||
8572 | commit 8b66f36291a721b1ba7c44f24a07fdf39235593e | ||
8573 | Author: Damien Miller <djm@mindrot.org> | ||
8574 | Date: Wed Nov 26 13:20:35 2014 +1100 | ||
8575 | |||
8576 | allow custom service name for sshd on Cygwin | ||
8577 | |||
8578 | Permits the use of multiple sshd running with different service names. | ||
8579 | |||
8580 | Patch by Florian Friesdorf via Corinna Vinschen | ||
8581 | |||
8582 | commit 08c0eebf55d70a9ae1964399e609288ae3186a0c | ||
8583 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
8584 | Date: Sat Nov 22 19:21:03 2014 +0000 | ||
8585 | |||
8586 | upstream commit | ||
8587 | |||
8588 | restore word zapped in previous, and remove some useless | ||
8589 | "No" macros; | ||
8590 | |||
8591 | commit a1418a0033fba43f061513e992e1cbcc3343e563 | ||
8592 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
8593 | Date: Sat Nov 22 18:15:41 2014 +0000 | ||
8594 | |||
8595 | upstream commit | ||
8596 | |||
8597 | /dev/random has created the same effect as /dev/arandom | ||
8598 | (and /dev/urandom) for quite some time. Mop up the last few, by using | ||
8599 | /dev/random where we actually want it, or not even mentioning arandom where | ||
8600 | it is irrelevant. | ||
8601 | |||
8602 | commit b6de5ac9ed421362f479d1ad4fa433d2e25dad5b | ||
8603 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8604 | Date: Fri Nov 21 01:00:38 2014 +0000 | ||
8605 | |||
8606 | upstream commit | ||
8607 | |||
8608 | fix NULL pointer dereference crash on invalid timestamp | ||
8609 | |||
8610 | found using Michal Zalewski's afl fuzzer | ||
8611 | |||
8612 | commit a1f8110cd5ed818d59b3a2964fab7de76e92c18e | ||
8613 | Author: mikeb@openbsd.org <mikeb@openbsd.org> | ||
8614 | Date: Tue Nov 18 22:38:48 2014 +0000 | ||
8615 | |||
8616 | upstream commit | ||
8617 | |||
8618 | Sync AES code to the one shipped in OpenSSL/LibreSSL. | ||
8619 | |||
8620 | This includes a commit made by Andy Polyakov <appro at openssl ! org> | ||
8621 | to the OpenSSL source tree on Wed, 28 Jun 2006 with the following | ||
8622 | message: "Mitigate cache-collision timing attack on last round." | ||
8623 | |||
8624 | OK naddy, miod, djm | ||
8625 | |||
8626 | commit 335c83d5f35d8620e16b8aa26592d4f836e09ad2 | ||
8627 | Author: krw@openbsd.org <krw@openbsd.org> | ||
8628 | Date: Tue Nov 18 20:54:28 2014 +0000 | ||
8629 | |||
8630 | upstream commit | ||
8631 | |||
8632 | Nuke more obvious #include duplications. | ||
8633 | |||
8634 | ok deraadt@ millert@ tedu@ | ||
8635 | |||
8636 | commit 51b64e44121194ae4bf153dee391228dada2abcb | ||
8637 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8638 | Date: Mon Nov 17 00:21:40 2014 +0000 | ||
8639 | |||
8640 | upstream commit | ||
8641 | |||
8642 | fix KRL generation when multiple CAs are in use | ||
8643 | |||
8644 | We would generate an invalid KRL when revoking certs by serial | ||
8645 | number for multiple CA keys due to a section being written out | ||
8646 | twice. | ||
8647 | |||
8648 | Also extend the regress test to catch this case by having it | ||
8649 | produce a multi-CA KRL. | ||
8650 | |||
8651 | Reported by peter AT pean.org | ||
8652 | |||
8653 | commit d2d51003a623e21fb2b25567c4878d915e90aa2a | ||
8654 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8655 | Date: Tue Nov 18 01:02:25 2014 +0000 | ||
8656 | |||
8657 | upstream commit | ||
8658 | |||
8659 | fix NULL pointer dereference crash in key loading | ||
8660 | |||
8661 | found by Michal Zalewski's AFL fuzzer | ||
8662 | |||
8663 | commit 9f9fad0191028edc43d100d0ded39419b6895fdf | ||
8664 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8665 | Date: Mon Nov 17 00:21:40 2014 +0000 | ||
8666 | |||
8667 | upstream commit | ||
8668 | |||
8669 | fix KRL generation when multiple CAs are in use | ||
8670 | |||
8671 | We would generate an invalid KRL when revoking certs by serial | ||
8672 | number for multiple CA keys due to a section being written out | ||
8673 | twice. | ||
8674 | |||
8675 | Also extend the regress test to catch this case by having it | ||
8676 | produce a multi-CA KRL. | ||
8677 | |||
8678 | Reported by peter AT pean.org | ||
8679 | |||
8680 | commit da8af83d3f7ec00099963e455010e0ed1d7d0140 | ||
8681 | Author: bentley@openbsd.org <bentley@openbsd.org> | ||
8682 | Date: Sat Nov 15 14:41:03 2014 +0000 | ||
8683 | |||
8684 | upstream commit | ||
8685 | |||
8686 | Reduce instances of `` '' in manuals. | ||
8687 | |||
8688 | troff displays these as typographic quotes, but nroff implementations | ||
8689 | almost always print them literally, which rarely has the intended effect | ||
8690 | with modern fonts, even in stock xterm. | ||
8691 | |||
8692 | These uses of `` '' can be replaced either with more semantic alternatives | ||
8693 | or with Dq, which prints typographic quotes in a UTF-8 locale (but will | ||
8694 | automatically fall back to `` '' in an ASCII locale). | ||
8695 | |||
8696 | improvements and ok schwarze@ | ||
8697 | |||
8698 | commit fc302561369483bb755b17f671f70fb894aec01d | ||
8699 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8700 | Date: Mon Nov 10 22:25:49 2014 +0000 | ||
8701 | |||
8702 | upstream commit | ||
8703 | |||
8704 | mux-related manual tweaks | ||
8705 | |||
8706 | mention ControlPersist=0 is the same as ControlPersist=yes | ||
8707 | |||
8708 | recommend that ControlPath sockets be placed in a og-w directory | ||
8709 | |||
8710 | commit 0e4cff5f35ed11102fe3783779960ef07e0cd381 | ||
8711 | Author: Damien Miller <djm@google.com> | ||
8712 | Date: Wed Nov 5 11:01:31 2014 +1100 | ||
8713 | |||
8714 | Prepare scripts for next Cygwin release | ||
8715 | |||
8716 | Makes the Cygwin-specific ssh-user-config script independent of the | ||
8717 | existence of /etc/passwd. The next Cygwin release will allow to | ||
8718 | generate passwd and group entries from the Windows account DBs, so the | ||
8719 | scripts have to adapt. | ||
8720 | |||
8721 | from Corinna Vinschen | ||
8722 | |||
8723 | commit 7d0ba5336651731949762eb8877ce9e3b52df436 | ||
8724 | Author: Damien Miller <djm@mindrot.org> | ||
8725 | Date: Thu Oct 30 10:45:41 2014 +1100 | ||
8726 | |||
8727 | include version number in OpenSSL-too-old error | ||
8728 | |||
8729 | commit 3bcb92e04d9207e9f78d82f7918c6d3422054ce9 | ||
8730 | Author: lteo@openbsd.org <lteo@openbsd.org> | ||
8731 | Date: Fri Oct 24 02:01:20 2014 +0000 | ||
8732 | |||
8733 | upstream commit | ||
8734 | |||
8735 | Remove unnecessary include: netinet/in_systm.h is not needed | ||
8736 | by these programs. | ||
8737 | |||
8738 | NB. skipped for portable | ||
8739 | |||
8740 | ok deraadt@ millert@ | ||
8741 | |||
8742 | commit 6fdcaeb99532e28a69f1a1599fbd540bb15b70a0 | ||
8743 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8744 | Date: Mon Oct 20 03:43:01 2014 +0000 | ||
8745 | |||
8746 | upstream commit | ||
8747 | |||
8748 | whitespace | ||
8749 | |||
8750 | commit 165bc8786299e261706ed60342985f9de93a7461 | ||
8751 | Author: daniel@openbsd.org <daniel@openbsd.org> | ||
8752 | Date: Tue Oct 14 03:09:59 2014 +0000 | ||
8753 | |||
8754 | upstream commit | ||
8755 | |||
8756 | plug a memory leak; from Maxime Villard. | ||
8757 | |||
8758 | ok djm@ | ||
8759 | |||
8760 | commit b1ba15f3885947c245c2dbfaad0a04ba050abea0 | ||
8761 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
8762 | Date: Thu Oct 9 06:21:31 2014 +0000 | ||
8763 | |||
8764 | upstream commit | ||
8765 | |||
8766 | tweak previous; | ||
8767 | |||
8768 | commit 259a02ebdf74ad90b41d116ecf70aa823fa4c6e7 | ||
8769 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8770 | Date: Mon Oct 13 00:38:35 2014 +0000 | ||
8771 | |||
8772 | upstream commit | ||
8773 | |||
8774 | whitespace | ||
8775 | |||
8776 | commit 957fbceb0f3166e41b76fdb54075ab3b9cc84cba | ||
8777 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8778 | Date: Wed Oct 8 22:20:25 2014 +0000 | ||
8779 | |||
8780 | upstream commit | ||
8781 | |||
8782 | Tweak config reparsing with host canonicalisation | ||
8783 | |||
8784 | Make the second pass through the config files always run when | ||
8785 | hostname canonicalisation is enabled. | ||
8786 | |||
8787 | Add a "Match canonical" criteria that allows ssh_config Match | ||
8788 | blocks to trigger only in the second config pass. | ||
8789 | |||
8790 | Add a -G option to ssh that causes it to parse its configuration | ||
8791 | and dump the result to stdout, similar to "sshd -T" | ||
8792 | |||
8793 | Allow ssh_config Port options set in the second config parse | ||
8794 | phase to be applied (they were being ignored). | ||
8795 | |||
8796 | bz#2267 bz#2286; ok markus | ||
8797 | |||
8798 | commit 5c0dafd38bf66feeeb45fa0741a5baf5ad8039ba | ||
8799 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8800 | Date: Wed Oct 8 22:15:27 2014 +0000 | ||
8801 | |||
8802 | upstream commit | ||
8803 | |||
8804 | another -Wpointer-sign from clang | ||
8805 | |||
8806 | commit bb005dc815ebda9af3ae4b39ca101c4da918f835 | ||
8807 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8808 | Date: Wed Oct 8 22:15:06 2014 +0000 | ||
8809 | |||
8810 | upstream commit | ||
8811 | |||
8812 | fix a few -Wpointer-sign warnings from clang | ||
8813 | |||
8814 | commit 3cc1fbb4fb0e804bfb873fd363cea91b27fc8188 | ||
8815 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8816 | Date: Wed Oct 8 21:45:48 2014 +0000 | ||
8817 | |||
8818 | upstream commit | ||
8819 | |||
8820 | parse cert sections using nested buffers to reduce | ||
8821 | copies; ok markus | ||
8822 | |||
8823 | commit 4a45922aebf99164e2fc83d34fe55b11ae1866ef | ||
8824 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8825 | Date: Mon Oct 6 00:47:15 2014 +0000 | ||
8826 | |||
8827 | upstream commit | ||
8828 | |||
8829 | correct options in usage(); from mancha1 AT zoho.com | ||
8830 | |||
8831 | commit 48dffd5bebae6fed0556dc5c36cece0370690618 | ||
8832 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8833 | Date: Tue Sep 9 09:45:36 2014 +0000 | ||
8834 | |||
8835 | upstream commit | ||
8836 | |||
8837 | mention permissions on tun(4) devices in PermitTunnel | ||
8838 | documentation; bz#2273 | ||
8839 | |||
8840 | commit a5883d4eccb94b16c355987f58f86a7dee17a0c2 | ||
8841 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8842 | Date: Wed Sep 3 18:55:07 2014 +0000 | ||
8843 | |||
8844 | upstream commit | ||
8845 | |||
8846 | tighten permissions on pty when the "tty" group does | ||
8847 | not exist; pointed out by Corinna Vinschen; ok markus | ||
8848 | |||
8849 | commit 180bcb406b58bf30723c01a6b010e48ee626dda8 | ||
8850 | Author: sobrado@openbsd.org <sobrado@openbsd.org> | ||
8851 | Date: Sat Aug 30 16:32:25 2014 +0000 | ||
8852 | |||
8853 | upstream commit | ||
8854 | |||
8855 | typo. | ||
8856 | |||
8857 | commit f70b22bcdd52f6bf127047b3584371e6e5d45627 | ||
8858 | Author: sobrado@openbsd.org <sobrado@openbsd.org> | ||
8859 | Date: Sat Aug 30 15:33:50 2014 +0000 | ||
8860 | |||
8861 | upstream commit | ||
8862 | |||
8863 | improve capitalization for the Ed25519 public-key | ||
8864 | signature system. | ||
8865 | |||
8866 | ok djm@ | ||
8867 | |||
8868 | commit 7df8818409c752cf3f0c3f8044fe9aebed8647bd | ||
8869 | Author: doug@openbsd.org <doug@openbsd.org> | ||
8870 | Date: Thu Aug 21 01:08:52 2014 +0000 | ||
8871 | |||
8872 | upstream commit | ||
8873 | |||
8874 | Free resources on error in mkstemp and fdopen | ||
8875 | |||
8876 | ok djm@ | ||
8877 | |||
8878 | commit 40ba4c9733aaed08304714faeb61529f18da144b | ||
8879 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
8880 | Date: Wed Aug 20 01:28:55 2014 +0000 | ||
8881 | |||
8882 | upstream commit | ||
8883 | |||
8884 | djm how did you make a typo like that... | ||
8885 | |||
8886 | commit 57d378ec9278ba417a726f615daad67d157de666 | ||
8887 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8888 | Date: Tue Aug 19 23:58:28 2014 +0000 | ||
8889 | |||
8890 | upstream commit | ||
8891 | |||
8892 | When dumping the server configuration (sshd -T), print | ||
8893 | correct KEX, MAC and cipher defaults. Spotted by Iain Morgan | ||
8894 | |||
8895 | commit 7ff880ede5195d0b17e7f1e3b6cfbc4cb6f85240 | ||
8896 | Author: djm@openbsd.org <djm@openbsd.org> | ||
8897 | Date: Tue Aug 19 23:57:18 2014 +0000 | ||
8898 | |||
8899 | upstream commit | ||
8900 | |||
8901 | ~-expand lcd paths | ||
8902 | |||
8903 | commit 4460a7ad0c78d4cd67c467f6e9f4254d0404ed59 | ||
8904 | Author: Damien Miller <djm@mindrot.org> | ||
8905 | Date: Sun Oct 12 12:35:48 2014 +1100 | ||
8906 | |||
8907 | remove duplicated KEX_DH1 entry | ||
8908 | |||
8909 | commit c9b8426a616138d0d762176c94f51aff3faad5ff | ||
8910 | Author: Damien Miller <djm@mindrot.org> | ||
8911 | Date: Thu Oct 9 10:34:06 2014 +1100 | ||
8912 | |||
8913 | remove ChangeLog file | ||
8914 | |||
8915 | Commit logs will be generated from git at release time. | ||
8916 | |||
8917 | commit 81d18ff7c93a04affbf3903e0963859763219aed | ||
8918 | Author: Damien Miller <djm@google.com> | ||
8919 | Date: Tue Oct 7 21:24:25 2014 +1100 | ||
8920 | |||
8921 | delete contrib/caldera directory | ||
8922 | |||
8923 | commit 0ec9e87d3638206456968202f05bb5123670607a | ||
8924 | Author: Damien Miller <djm@google.com> | ||
8925 | Date: Tue Oct 7 19:57:27 2014 +1100 | ||
8926 | |||
8927 | test commit | ||
8928 | |||
8929 | commit 8fb65a44568701b779f3d77326bceae63412d28d | ||
8930 | Author: Damien Miller <djm@mindrot.org> | ||
8931 | Date: Tue Oct 7 09:21:49 2014 +1100 | ||
8932 | |||
8933 | - (djm) Release OpenSSH-6.7 | ||
8934 | |||
8935 | commit e8c9f2602c46f6781df5e52e6cd8413dab4602a3 | ||
8936 | Author: Damien Miller <djm@mindrot.org> | ||
8937 | Date: Fri Oct 3 09:24:56 2014 +1000 | ||
8938 | |||
8939 | - (djm) [sshd_config.5] typo; from Iain Morgan | ||
8940 | |||
8941 | commit 703b98a26706f5083801d11059486d77491342ae | ||
8942 | Author: Damien Miller <djm@mindrot.org> | ||
8943 | Date: Wed Oct 1 09:43:07 2014 +1000 | ||
8944 | |||
8945 | - (djm) [openbsd-compat/Makefile.in openbsd-compat/kludge-fd_set.c] | ||
8946 | [openbsd-compat/openbsd-compat.h] Kludge around bad glibc | ||
8947 | _FORTIFY_SOURCE check that doesn't grok heap-allocated fd_sets; | ||
8948 | ok dtucker@ | ||
8949 | |||
8950 | commit 0fa0ed061bbfedb0daa705e220748154a84c3413 | ||
8951 | Author: Damien Miller <djm@mindrot.org> | ||
8952 | Date: Wed Sep 10 08:15:34 2014 +1000 | ||
8953 | |||
8954 | - (djm) [sandbox-seccomp-filter.c] Allow mremap and exit for DietLibc; | ||
8955 | patch from Felix von Leitner; ok dtucker | ||
8956 | |||
8957 | commit ad7d23d461c3b7e1dcb15db13aee5f4b94dc1a95 | ||
8958 | Author: Darren Tucker <dtucker@zip.com.au> | ||
8959 | Date: Tue Sep 9 12:23:10 2014 +1000 | ||
8960 | |||
8961 | 20140908 | ||
8962 | - (dtucker) [INSTALL] Update info about egd. ok djm@ | ||
8963 | |||
8964 | commit 2a8699f37cc2515e3bc60e0c677ba060f4d48191 | ||
8965 | Author: Damien Miller <djm@mindrot.org> | ||
8966 | Date: Thu Sep 4 03:46:05 2014 +1000 | ||
8967 | |||
8968 | - (djm) [openbsd-compat/arc4random.c] Zero seed after keying PRNG | ||
8969 | |||
8970 | commit 44988defb1f5e3afe576d86000365e1f07a1b494 | ||
8971 | Author: Damien Miller <djm@mindrot.org> | ||
8972 | Date: Wed Sep 3 05:35:32 2014 +1000 | ||
8973 | |||
8974 | - (djm) [contrib/cygwin/ssh-host-config] Fix old code leading to | ||
8975 | permissions/ACLs; from Corinna Vinschen | ||
8976 | |||
8977 | commit 23f269562b7537b2f6f5014e50a25e5dcc55a837 | ||
8978 | Author: Damien Miller <djm@mindrot.org> | ||
8979 | Date: Wed Sep 3 05:33:25 2014 +1000 | ||
8980 | |||
8981 | - (djm) [defines.h sshbuf.c] Move __predict_true|false to defines.h and | ||
8982 | conditionalise to avoid duplicate definition. | ||
8983 | |||
8984 | commit 41c8de2c0031cf59e7cf0c06b5bcfbf4852c1fda | ||
8985 | Author: Damien Miller <djm@mindrot.org> | ||
8986 | Date: Sat Aug 30 16:23:06 2014 +1000 | ||
8987 | |||
8988 | - (djm) [Makefile.in] Make TEST_SHELL a variable; "good idea" tim@ | ||
8989 | |||
8990 | commit d7c81e216a7bd9eed6e239c970d9261bb1651947 | ||
8991 | Author: Damien Miller <djm@mindrot.org> | ||
8992 | Date: Sat Aug 30 04:18:28 2014 +1000 | ||
8993 | |||
8994 | - (djm) [openbsd-compat/openssl-compat.h] add include guard | ||
8995 | |||
8996 | commit 4687802dda57365b984b897fc3c8e2867ea09b22 | ||
8997 | Author: Damien Miller <djm@mindrot.org> | ||
8998 | Date: Sat Aug 30 03:29:19 2014 +1000 | ||
8999 | |||
9000 | - (djm) [misc.c] Missing newline between functions | ||
9001 | |||
9002 | commit 51c77e29220dee87c53be2dc47092934acab26fe | ||
9003 | Author: Damien Miller <djm@mindrot.org> | ||
9004 | Date: Sat Aug 30 02:30:30 2014 +1000 | ||
9005 | |||
9006 | - (djm) [openbsd-compat/openssl-compat.h] add | ||
9007 | OPENSSL_[RD]SA_MAX_MODULUS_BITS defines for OpenSSL that lacks them | ||
9008 | |||
9009 | commit 3d673d103bad35afaec6e7ef73e5277216ce33a3 | ||
9010 | Author: Damien Miller <djm@mindrot.org> | ||
9011 | Date: Wed Aug 27 06:32:01 2014 +1000 | ||
9012 | |||
9013 | - (djm) [openbsd-compat/explicit_bzero.c] implement explicit_bzero() | ||
9014 | using memset_s() where possible; improve fallback to indirect bzero | ||
9015 | via a volatile pointer to give it more of a chance to avoid being | ||
9016 | optimised away. | ||
9017 | |||
9018 | commit 146218ac11a1eb0dcade6f793d7acdef163b5ddc | ||
9019 | Author: Damien Miller <djm@mindrot.org> | ||
9020 | Date: Wed Aug 27 04:11:55 2014 +1000 | ||
9021 | |||
9022 | - (djm) [monitor.c sshd.c] SIGXFSZ needs to be ignored in postauth | ||
9023 | monitor, not preauth; bz#2263 | ||
9024 | |||
9025 | commit 1b215c098b3b37e38aa4e4c91bb908eee41183b1 | ||
9026 | Author: Damien Miller <djm@mindrot.org> | ||
9027 | Date: Wed Aug 27 04:04:40 2014 +1000 | ||
9028 | |||
9029 | - (djm) [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c] | ||
9030 | [regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c] | ||
9031 | [regress/unittests/sshkey/common.c] | ||
9032 | [regress/unittests/sshkey/test_file.c] | ||
9033 | [regress/unittests/sshkey/test_fuzz.c] | ||
9034 | [regress/unittests/sshkey/test_sshkey.c] Don't include openssl/ec.h | ||
9035 | on !ECC OpenSSL systems | ||
9036 | |||
9037 | commit ad013944af0a19e3f612089d0099bb397cf6502d | ||
9038 | Author: Damien Miller <djm@mindrot.org> | ||
9039 | Date: Tue Aug 26 09:27:28 2014 +1000 | ||
9040 | |||
9041 | - (djm) [INSTALL] Recommend libcrypto be built -fPIC, mention LibreSSL, | ||
9042 | update OpenSSL version requirement. | ||
9043 | |||
9044 | commit ed126de8ee04c66640a0ea2697c4aaf36801f100 | ||
9045 | Author: Damien Miller <djm@mindrot.org> | ||
9046 | Date: Tue Aug 26 08:37:47 2014 +1000 | ||
9047 | |||
9048 | - (djm) [bufec.c] Skip this file on !ECC OpenSSL | ||
9049 | |||
9050 | commit 9c1dede005746864a4fdb36a7cdf6c51296ca909 | ||
9051 | Author: Damien Miller <djm@mindrot.org> | ||
9052 | Date: Sun Aug 24 03:01:06 2014 +1000 | ||
9053 | |||
9054 | - (djm) [sftp-server.c] Some systems (e.g. Irix) have prctl() but not | ||
9055 | PR_SET_DUMPABLE, so adjust ifdef; reported by Tom Christensen | ||
9056 | |||
9057 | commit d244a5816fd1312a33404b436e4dd83594f1119e | ||
9058 | Author: Damien Miller <djm@mindrot.org> | ||
9059 | Date: Sat Aug 23 17:06:49 2014 +1000 | ||
9060 | |||
9061 | - (djm) [configure.ac] We now require a working vsnprintf everywhere (not | ||
9062 | just for systems that lack asprintf); check for it always and extend | ||
9063 | test to catch more brokenness. Fixes builds on Solaris <= 9 | ||
9064 | |||
9065 | commit 4cec036362a358e398e6a2e6d19d8e5780558634 | ||
9066 | Author: Damien Miller <djm@mindrot.org> | ||
9067 | Date: Sat Aug 23 03:11:09 2014 +1000 | ||
9068 | |||
9069 | - (djm) [sshd.c] Ignore SIGXFSZ in preauth monitor child; can explode on | ||
9070 | lastlog writing on platforms with high UIDs; bz#2263 | ||
9071 | |||
9072 | commit 394a60f2598d28b670d934b93942a3370b779b39 | ||
9073 | Author: Damien Miller <djm@mindrot.org> | ||
9074 | Date: Fri Aug 22 18:06:20 2014 +1000 | ||
9075 | |||
9076 | - (djm) [configure.ac] double braces to appease autoconf | ||
9077 | |||
9078 | commit 4d69aeabd6e60afcdc7cca177ca751708ab79a9d | ||
9079 | Author: Damien Miller <djm@mindrot.org> | ||
9080 | Date: Fri Aug 22 17:48:27 2014 +1000 | ||
9081 | |||
9082 | - (djm) [openbsd-compat/bsd-snprintf.c] Fix compilation failure (prototype/ | ||
9083 | definition mismatch) and warning for broken/missing snprintf case. | ||
9084 | |||
9085 | commit 0c11f1ac369d2c0aeb0ab0458a7cd04c72fe5e9e | ||
9086 | Author: Damien Miller <djm@mindrot.org> | ||
9087 | Date: Fri Aug 22 17:36:56 2014 +1000 | ||
9088 | |||
9089 | - (djm) [sshbuf-getput-crypto.c] Fix compilation when OpenSSL lacks ECC | ||
9090 | |||
9091 | commit 6d62784b8973340b251fea6b04890f471adf28db | ||
9092 | Author: Damien Miller <djm@mindrot.org> | ||
9093 | Date: Fri Aug 22 17:36:19 2014 +1000 | ||
9094 | |||
9095 | - (djm) [configure.ac] include leading zero characters in OpenSSL version | ||
9096 | number; fixes test for unsupported versions | ||
9097 | |||
9098 | commit 4f1ff1ed782117f5d5204d4e91156ed5da07cbb7 | ||
9099 | Author: Damien Miller <djm@mindrot.org> | ||
9100 | Date: Thu Aug 21 15:54:50 2014 +1000 | ||
9101 | |||
9102 | - (djm) [regress/unittests/test_helper/test_helper.c] Fix for systems that | ||
9103 | don't set __progname. Diagnosed by Tom Christensen. | ||
9104 | |||
9105 | commit 005a64da0f457410045ef0bfa93c863c2450447d | ||
9106 | Author: Damien Miller <djm@mindrot.org> | ||
9107 | Date: Thu Aug 21 10:48:41 2014 +1000 | ||
9108 | |||
9109 | - (djm) [key.h] Fix ifdefs for no-ECC OpenSSL | ||
9110 | |||
9111 | commit aa6598ebb3343c7380e918388e10e8ca5852b613 | ||
9112 | Author: Damien Miller <djm@mindrot.org> | ||
9113 | Date: Thu Aug 21 10:47:54 2014 +1000 | ||
9114 | |||
9115 | - (djm) [Makefile.in] fix reference to libtest_helper.a in sshkey test too. | ||
9116 | |||
9117 | commit 54703e3cf63f0c80d4157e5ad7dbc2b363ee2c56 | ||
9118 | Author: Damien Miller <djm@mindrot.org> | ||
9119 | Date: Wed Aug 20 11:10:51 2014 +1000 | ||
9120 | |||
9121 | - (djm) [contrib/cygwin/README] Correct build instructions; from Corinna | ||
9122 | |||
9123 | commit f0935698f0461f24d8d1f1107b476ee5fd4db1cb | ||
9124 | Author: Damien Miller <djm@mindrot.org> | ||
9125 | Date: Wed Aug 20 11:06:50 2014 +1000 | ||
9126 | |||
9127 | - (djm) [sshkey.h] Fix compilation when OpenSSL lacks ECC | ||
9128 | |||
9129 | commit c5089ecaec3b2c02f014f4e67518390702a4ba14 | ||
9130 | Author: Damien Miller <djm@mindrot.org> | ||
9131 | Date: Wed Aug 20 11:06:20 2014 +1000 | ||
9132 | |||
9133 | - (djm) [Makefile.in] refer to libtest_helper.a by explicit path rather than | ||
9134 | -L/-l; fixes linking problems on some platforms | ||
9135 | |||
9136 | commit 2195847e503a382f83ee969b0a8bd3dfe0e55c18 | ||
9137 | Author: Damien Miller <djm@mindrot.org> | ||
9138 | Date: Wed Aug 20 11:05:03 2014 +1000 | ||
9139 | |||
9140 | - (djm) [configure.ac] Check OpenSSL version is supported at configure time; | ||
9141 | suggested by Kevin Brott | ||
9142 | |||
9143 | commit a75aca1bbc989aa9f8b1b08489d37855f3d24d1a | ||
9144 | Author: Damien Miller <djm@mindrot.org> | ||
9145 | Date: Tue Aug 19 11:36:07 2014 +1000 | ||
9146 | |||
9147 | - (djm) [INSTALL contrib/caldera/openssh.spec contrib/cygwin/README] | ||
9148 | [contrib/redhat/openssh.spec contrib/suse/openssh.spec] Remove mentions | ||
9149 | of TCP wrappers. | ||
9150 | |||
9151 | commit 3f022b5a9477abceeb1bbeab04b055f3cc7ca8f6 | ||
9152 | Author: Damien Miller <djm@mindrot.org> | ||
9153 | Date: Tue Aug 19 11:32:34 2014 +1000 | ||
9154 | |||
9155 | - (djm) [ssh-dss.c] Include openssl/dsa.h for DSA_SIG | ||
9156 | |||
9157 | commit 88137902632aceb923990e98cf5dc923bb3ef2f5 | ||
9158 | Author: Damien Miller <djm@mindrot.org> | ||
9159 | Date: Tue Aug 19 11:28:11 2014 +1000 | ||
9160 | |||
9161 | - (djm) [sshbuf.h] Fix compilation on systems without OPENSSL_HAS_ECC. | ||
9162 | |||
9163 | commit 2f3d1e7fb2eabd3cfbfd8d0f7bdd2f9a1888690b | ||
9164 | Author: Damien Miller <djm@mindrot.org> | ||
9165 | Date: Tue Aug 19 11:14:36 2014 +1000 | ||
9166 | |||
9167 | - (djm) [myproposal.h] Make curve25519 KEX dependent on | ||
9168 | HAVE_EVP_SHA256 instead of OPENSSL_HAS_ECC. | ||
9169 | |||
9170 | commit d4e7d59d01a6c7f59e8c1f94a83c086e9a33d8aa | ||
9171 | Author: Damien Miller <djm@mindrot.org> | ||
9172 | Date: Tue Aug 19 11:14:17 2014 +1000 | ||
9173 | |||
9174 | - (djm) [serverloop.c] Fix syntax error on Cygwin; from Corinna Vinschen | ||
9175 | |||
9176 | commit 9eaeea2cf2b6af5f166cfa9ad3c7a90711a147a9 | ||
9177 | Author: Damien Miller <djm@mindrot.org> | ||
9178 | Date: Sun Aug 10 11:35:05 2014 +1000 | ||
9179 | |||
9180 | - (djm) [README contrib/caldera/openssh.spec] | ||
9181 | [contrib/redhat/openssh.spec contrib/suse/openssh.spec] Update versions | ||
9182 | |||
9183 | commit f8988fbef0c9801d19fa2f8f4f041690412bec37 | ||
9184 | Author: Damien Miller <djm@mindrot.org> | ||
9185 | Date: Fri Aug 1 13:31:52 2014 +1000 | ||
9186 | |||
9187 | - (djm) [regress/multiplex.sh] Use -d (detach stdin) flag to disassociate | ||
9188 | nc from stdin, it's more portable | ||
9189 | |||
9190 | commit 5b3879fd4b7a4e3d43bab8f40addda39bc1169d0 | ||
9191 | Author: Damien Miller <djm@mindrot.org> | ||
9192 | Date: Fri Aug 1 12:28:31 2014 +1000 | ||
9193 | |||
9194 | - (djm) [regress/multiplex.sh] Instruct nc not to quit as soon as stdin | ||
9195 | is closed; avoid regress failures when stdin is /dev/null | ||
9196 | |||
9197 | commit a9c46746d266f8a1b092a72b2150682d1af8ebfc | ||
9198 | Author: Damien Miller <djm@mindrot.org> | ||
9199 | Date: Fri Aug 1 12:26:49 2014 +1000 | ||
9200 | |||
9201 | - (djm) [regress/multiplex.sh] Skip test for non-OpenBSD netcat. We need | ||
9202 | a better solution, but this will have to do for now. | ||
diff --git a/config.h.in b/config.h.in new file mode 100644 index 000000000..39d018f4c --- /dev/null +++ b/config.h.in | |||
@@ -0,0 +1,1755 @@ | |||
1 | /* config.h.in. Generated from configure.ac by autoheader. */ | ||
2 | |||
3 | /* Define if you have a getaddrinfo that fails for the all-zeros IPv6 address | ||
4 | */ | ||
5 | #undef AIX_GETNAMEINFO_HACK | ||
6 | |||
7 | /* Define if your AIX loginfailed() function takes 4 arguments (AIX >= 5.2) */ | ||
8 | #undef AIX_LOGINFAILED_4ARG | ||
9 | |||
10 | /* System only supports IPv4 audit records */ | ||
11 | #undef AU_IPv4 | ||
12 | |||
13 | /* Define if your resolver libs need this for getrrsetbyname */ | ||
14 | #undef BIND_8_COMPAT | ||
15 | |||
16 | /* The system has incomplete BSM API */ | ||
17 | #undef BROKEN_BSM_API | ||
18 | |||
19 | /* Define if cmsg_type is not passed correctly */ | ||
20 | #undef BROKEN_CMSG_TYPE | ||
21 | |||
22 | /* getaddrinfo is broken (if present) */ | ||
23 | #undef BROKEN_GETADDRINFO | ||
24 | |||
25 | /* getgroups(0,NULL) will return -1 */ | ||
26 | #undef BROKEN_GETGROUPS | ||
27 | |||
28 | /* FreeBSD glob does not do what we need */ | ||
29 | #undef BROKEN_GLOB | ||
30 | |||
31 | /* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */ | ||
32 | #undef BROKEN_INET_NTOA | ||
33 | |||
34 | /* ia_uinfo routines not supported by OS yet */ | ||
35 | #undef BROKEN_LIBIAF | ||
36 | |||
37 | /* Ultrix mmap can't map files */ | ||
38 | #undef BROKEN_MMAP | ||
39 | |||
40 | /* Define if your struct dirent expects you to allocate extra space for d_name | ||
41 | */ | ||
42 | #undef BROKEN_ONE_BYTE_DIRENT_D_NAME | ||
43 | |||
44 | /* Can't do comparisons on readv */ | ||
45 | #undef BROKEN_READV_COMPARISON | ||
46 | |||
47 | /* NetBSD read function is sometimes redirected, breaking atomicio comparisons | ||
48 | against it */ | ||
49 | #undef BROKEN_READ_COMPARISON | ||
50 | |||
51 | /* realpath does not work with nonexistent files */ | ||
52 | #undef BROKEN_REALPATH | ||
53 | |||
54 | /* Needed for NeXT */ | ||
55 | #undef BROKEN_SAVED_UIDS | ||
56 | |||
57 | /* Define if your setregid() is broken */ | ||
58 | #undef BROKEN_SETREGID | ||
59 | |||
60 | /* Define if your setresgid() is broken */ | ||
61 | #undef BROKEN_SETRESGID | ||
62 | |||
63 | /* Define if your setresuid() is broken */ | ||
64 | #undef BROKEN_SETRESUID | ||
65 | |||
66 | /* Define if your setreuid() is broken */ | ||
67 | #undef BROKEN_SETREUID | ||
68 | |||
69 | /* LynxOS has broken setvbuf() implementation */ | ||
70 | #undef BROKEN_SETVBUF | ||
71 | |||
72 | /* QNX shadow support is broken */ | ||
73 | #undef BROKEN_SHADOW_EXPIRE | ||
74 | |||
75 | /* Define if your snprintf is busted */ | ||
76 | #undef BROKEN_SNPRINTF | ||
77 | |||
78 | /* missing VIS_ALL */ | ||
79 | #undef BROKEN_STRNVIS | ||
80 | |||
81 | /* tcgetattr with ICANON may hang */ | ||
82 | #undef BROKEN_TCGETATTR_ICANON | ||
83 | |||
84 | /* updwtmpx is broken (if present) */ | ||
85 | #undef BROKEN_UPDWTMPX | ||
86 | |||
87 | /* Define if you have BSD auth support */ | ||
88 | #undef BSD_AUTH | ||
89 | |||
90 | /* Define if you want to specify the path to your lastlog file */ | ||
91 | #undef CONF_LASTLOG_FILE | ||
92 | |||
93 | /* Define if you want to specify the path to your utmp file */ | ||
94 | #undef CONF_UTMP_FILE | ||
95 | |||
96 | /* Define if you want to specify the path to your wtmpx file */ | ||
97 | #undef CONF_WTMPX_FILE | ||
98 | |||
99 | /* Define if you want to specify the path to your wtmp file */ | ||
100 | #undef CONF_WTMP_FILE | ||
101 | |||
102 | /* Define if your platform needs to skip post auth file descriptor passing */ | ||
103 | #undef DISABLE_FD_PASSING | ||
104 | |||
105 | /* Define if you don't want to use lastlog */ | ||
106 | #undef DISABLE_LASTLOG | ||
107 | |||
108 | /* Define if you don't want to use your system's login() call */ | ||
109 | #undef DISABLE_LOGIN | ||
110 | |||
111 | /* Define if you don't want to use pututline() etc. to write [uw]tmp */ | ||
112 | #undef DISABLE_PUTUTLINE | ||
113 | |||
114 | /* Define if you don't want to use pututxline() etc. to write [uw]tmpx */ | ||
115 | #undef DISABLE_PUTUTXLINE | ||
116 | |||
117 | /* Define if you want to disable shadow passwords */ | ||
118 | #undef DISABLE_SHADOW | ||
119 | |||
120 | /* Define if you don't want to use utmp */ | ||
121 | #undef DISABLE_UTMP | ||
122 | |||
123 | /* Define if you don't want to use utmpx */ | ||
124 | #undef DISABLE_UTMPX | ||
125 | |||
126 | /* Define if you don't want to use wtmp */ | ||
127 | #undef DISABLE_WTMP | ||
128 | |||
129 | /* Define if you don't want to use wtmpx */ | ||
130 | #undef DISABLE_WTMPX | ||
131 | |||
132 | /* Enable for PKCS#11 support */ | ||
133 | #undef ENABLE_PKCS11 | ||
134 | |||
135 | /* File names may not contain backslash characters */ | ||
136 | #undef FILESYSTEM_NO_BACKSLASH | ||
137 | |||
138 | /* fsid_t has member val */ | ||
139 | #undef FSID_HAS_VAL | ||
140 | |||
141 | /* fsid_t has member __val */ | ||
142 | #undef FSID_HAS___VAL | ||
143 | |||
144 | /* Define to 1 if the `getpgrp' function requires zero arguments. */ | ||
145 | #undef GETPGRP_VOID | ||
146 | |||
147 | /* Conflicting defs for getspnam */ | ||
148 | #undef GETSPNAM_CONFLICTING_DEFS | ||
149 | |||
150 | /* Define if your system glob() function has the GLOB_ALTDIRFUNC extension */ | ||
151 | #undef GLOB_HAS_ALTDIRFUNC | ||
152 | |||
153 | /* Define if your system glob() function has gl_matchc options in glob_t */ | ||
154 | #undef GLOB_HAS_GL_MATCHC | ||
155 | |||
156 | /* Define if your system glob() function has gl_statv options in glob_t */ | ||
157 | #undef GLOB_HAS_GL_STATV | ||
158 | |||
159 | /* Define this if you want GSSAPI support in the version 2 protocol */ | ||
160 | #undef GSSAPI | ||
161 | |||
162 | /* Define if you want to use shadow password expire field */ | ||
163 | #undef HAS_SHADOW_EXPIRE | ||
164 | |||
165 | /* Define if your system uses access rights style file descriptor passing */ | ||
166 | #undef HAVE_ACCRIGHTS_IN_MSGHDR | ||
167 | |||
168 | /* Define if you have ut_addr in utmp.h */ | ||
169 | #undef HAVE_ADDR_IN_UTMP | ||
170 | |||
171 | /* Define if you have ut_addr in utmpx.h */ | ||
172 | #undef HAVE_ADDR_IN_UTMPX | ||
173 | |||
174 | /* Define if you have ut_addr_v6 in utmp.h */ | ||
175 | #undef HAVE_ADDR_V6_IN_UTMP | ||
176 | |||
177 | /* Define if you have ut_addr_v6 in utmpx.h */ | ||
178 | #undef HAVE_ADDR_V6_IN_UTMPX | ||
179 | |||
180 | /* Define to 1 if you have the `arc4random' function. */ | ||
181 | #undef HAVE_ARC4RANDOM | ||
182 | |||
183 | /* Define to 1 if you have the `arc4random_buf' function. */ | ||
184 | #undef HAVE_ARC4RANDOM_BUF | ||
185 | |||
186 | /* Define to 1 if you have the `arc4random_stir' function. */ | ||
187 | #undef HAVE_ARC4RANDOM_STIR | ||
188 | |||
189 | /* Define to 1 if you have the `arc4random_uniform' function. */ | ||
190 | #undef HAVE_ARC4RANDOM_UNIFORM | ||
191 | |||
192 | /* Define to 1 if you have the `asprintf' function. */ | ||
193 | #undef HAVE_ASPRINTF | ||
194 | |||
195 | /* OpenBSD's gcc has bounded */ | ||
196 | #undef HAVE_ATTRIBUTE__BOUNDED__ | ||
197 | |||
198 | /* Have attribute nonnull */ | ||
199 | #undef HAVE_ATTRIBUTE__NONNULL__ | ||
200 | |||
201 | /* OpenBSD's gcc has sentinel */ | ||
202 | #undef HAVE_ATTRIBUTE__SENTINEL__ | ||
203 | |||
204 | /* Define to 1 if you have the `aug_get_machine' function. */ | ||
205 | #undef HAVE_AUG_GET_MACHINE | ||
206 | |||
207 | /* Define to 1 if you have the `b64_ntop' function. */ | ||
208 | #undef HAVE_B64_NTOP | ||
209 | |||
210 | /* Define to 1 if you have the `b64_pton' function. */ | ||
211 | #undef HAVE_B64_PTON | ||
212 | |||
213 | /* Define if you have the basename function. */ | ||
214 | #undef HAVE_BASENAME | ||
215 | |||
216 | /* Define to 1 if you have the `bcopy' function. */ | ||
217 | #undef HAVE_BCOPY | ||
218 | |||
219 | /* Define to 1 if you have the `bcrypt_pbkdf' function. */ | ||
220 | #undef HAVE_BCRYPT_PBKDF | ||
221 | |||
222 | /* Define to 1 if you have the `bindresvport_sa' function. */ | ||
223 | #undef HAVE_BINDRESVPORT_SA | ||
224 | |||
225 | /* Define to 1 if you have the `blf_enc' function. */ | ||
226 | #undef HAVE_BLF_ENC | ||
227 | |||
228 | /* Define to 1 if you have the <blf.h> header file. */ | ||
229 | #undef HAVE_BLF_H | ||
230 | |||
231 | /* Define to 1 if you have the `Blowfish_expand0state' function. */ | ||
232 | #undef HAVE_BLOWFISH_EXPAND0STATE | ||
233 | |||
234 | /* Define to 1 if you have the `Blowfish_expandstate' function. */ | ||
235 | #undef HAVE_BLOWFISH_EXPANDSTATE | ||
236 | |||
237 | /* Define to 1 if you have the `Blowfish_initstate' function. */ | ||
238 | #undef HAVE_BLOWFISH_INITSTATE | ||
239 | |||
240 | /* Define to 1 if you have the `Blowfish_stream2word' function. */ | ||
241 | #undef HAVE_BLOWFISH_STREAM2WORD | ||
242 | |||
243 | /* Define to 1 if you have the `BN_is_prime_ex' function. */ | ||
244 | #undef HAVE_BN_IS_PRIME_EX | ||
245 | |||
246 | /* Define to 1 if you have the <bsd/libutil.h> header file. */ | ||
247 | #undef HAVE_BSD_LIBUTIL_H | ||
248 | |||
249 | /* Define to 1 if you have the <bsm/audit.h> header file. */ | ||
250 | #undef HAVE_BSM_AUDIT_H | ||
251 | |||
252 | /* Define to 1 if you have the <bstring.h> header file. */ | ||
253 | #undef HAVE_BSTRING_H | ||
254 | |||
255 | /* Define to 1 if you have the `cap_rights_limit' function. */ | ||
256 | #undef HAVE_CAP_RIGHTS_LIMIT | ||
257 | |||
258 | /* Define to 1 if you have the `clock' function. */ | ||
259 | #undef HAVE_CLOCK | ||
260 | |||
261 | /* Have clock_gettime */ | ||
262 | #undef HAVE_CLOCK_GETTIME | ||
263 | |||
264 | /* define if you have clock_t data type */ | ||
265 | #undef HAVE_CLOCK_T | ||
266 | |||
267 | /* Define to 1 if you have the `closefrom' function. */ | ||
268 | #undef HAVE_CLOSEFROM | ||
269 | |||
270 | /* Define if gai_strerror() returns const char * */ | ||
271 | #undef HAVE_CONST_GAI_STRERROR_PROTO | ||
272 | |||
273 | /* Define if your system uses ancillary data style file descriptor passing */ | ||
274 | #undef HAVE_CONTROL_IN_MSGHDR | ||
275 | |||
276 | /* Define to 1 if you have the `crypt' function. */ | ||
277 | #undef HAVE_CRYPT | ||
278 | |||
279 | /* Define to 1 if you have the <crypto/sha2.h> header file. */ | ||
280 | #undef HAVE_CRYPTO_SHA2_H | ||
281 | |||
282 | /* Define to 1 if you have the <crypt.h> header file. */ | ||
283 | #undef HAVE_CRYPT_H | ||
284 | |||
285 | /* Define if you are on Cygwin */ | ||
286 | #undef HAVE_CYGWIN | ||
287 | |||
288 | /* Define if your libraries define daemon() */ | ||
289 | #undef HAVE_DAEMON | ||
290 | |||
291 | /* Define to 1 if you have the declaration of `AI_NUMERICSERV', and to 0 if | ||
292 | you don't. */ | ||
293 | #undef HAVE_DECL_AI_NUMERICSERV | ||
294 | |||
295 | /* Define to 1 if you have the declaration of `authenticate', and to 0 if you | ||
296 | don't. */ | ||
297 | #undef HAVE_DECL_AUTHENTICATE | ||
298 | |||
299 | /* Define to 1 if you have the declaration of `GLOB_NOMATCH', and to 0 if you | ||
300 | don't. */ | ||
301 | #undef HAVE_DECL_GLOB_NOMATCH | ||
302 | |||
303 | /* Define to 1 if you have the declaration of `GSS_C_NT_HOSTBASED_SERVICE', | ||
304 | and to 0 if you don't. */ | ||
305 | #undef HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE | ||
306 | |||
307 | /* Define to 1 if you have the declaration of `howmany', and to 0 if you | ||
308 | don't. */ | ||
309 | #undef HAVE_DECL_HOWMANY | ||
310 | |||
311 | /* Define to 1 if you have the declaration of `h_errno', and to 0 if you | ||
312 | don't. */ | ||
313 | #undef HAVE_DECL_H_ERRNO | ||
314 | |||
315 | /* Define to 1 if you have the declaration of `loginfailed', and to 0 if you | ||
316 | don't. */ | ||
317 | #undef HAVE_DECL_LOGINFAILED | ||
318 | |||
319 | /* Define to 1 if you have the declaration of `loginrestrictions', and to 0 if | ||
320 | you don't. */ | ||
321 | #undef HAVE_DECL_LOGINRESTRICTIONS | ||
322 | |||
323 | /* Define to 1 if you have the declaration of `loginsuccess', and to 0 if you | ||
324 | don't. */ | ||
325 | #undef HAVE_DECL_LOGINSUCCESS | ||
326 | |||
327 | /* Define to 1 if you have the declaration of `MAXSYMLINKS', and to 0 if you | ||
328 | don't. */ | ||
329 | #undef HAVE_DECL_MAXSYMLINKS | ||
330 | |||
331 | /* Define to 1 if you have the declaration of `NFDBITS', and to 0 if you | ||
332 | don't. */ | ||
333 | #undef HAVE_DECL_NFDBITS | ||
334 | |||
335 | /* Define to 1 if you have the declaration of `offsetof', and to 0 if you | ||
336 | don't. */ | ||
337 | #undef HAVE_DECL_OFFSETOF | ||
338 | |||
339 | /* Define to 1 if you have the declaration of `O_NONBLOCK', and to 0 if you | ||
340 | don't. */ | ||
341 | #undef HAVE_DECL_O_NONBLOCK | ||
342 | |||
343 | /* Define to 1 if you have the declaration of `passwdexpired', and to 0 if you | ||
344 | don't. */ | ||
345 | #undef HAVE_DECL_PASSWDEXPIRED | ||
346 | |||
347 | /* Define to 1 if you have the declaration of `setauthdb', and to 0 if you | ||
348 | don't. */ | ||
349 | #undef HAVE_DECL_SETAUTHDB | ||
350 | |||
351 | /* Define to 1 if you have the declaration of `SHUT_RD', and to 0 if you | ||
352 | don't. */ | ||
353 | #undef HAVE_DECL_SHUT_RD | ||
354 | |||
355 | /* Define to 1 if you have the declaration of `writev', and to 0 if you don't. | ||
356 | */ | ||
357 | #undef HAVE_DECL_WRITEV | ||
358 | |||
359 | /* Define to 1 if you have the declaration of `_getlong', and to 0 if you | ||
360 | don't. */ | ||
361 | #undef HAVE_DECL__GETLONG | ||
362 | |||
363 | /* Define to 1 if you have the declaration of `_getshort', and to 0 if you | ||
364 | don't. */ | ||
365 | #undef HAVE_DECL__GETSHORT | ||
366 | |||
367 | /* Define to 1 if you have the `DES_crypt' function. */ | ||
368 | #undef HAVE_DES_CRYPT | ||
369 | |||
370 | /* Define if you have /dev/ptmx */ | ||
371 | #undef HAVE_DEV_PTMX | ||
372 | |||
373 | /* Define if you have /dev/ptc */ | ||
374 | #undef HAVE_DEV_PTS_AND_PTC | ||
375 | |||
376 | /* Define to 1 if you have the <dirent.h> header file. */ | ||
377 | #undef HAVE_DIRENT_H | ||
378 | |||
379 | /* Define to 1 if you have the `dirfd' function. */ | ||
380 | #undef HAVE_DIRFD | ||
381 | |||
382 | /* Define to 1 if you have the `dirname' function. */ | ||
383 | #undef HAVE_DIRNAME | ||
384 | |||
385 | /* Define to 1 if you have the `DSA_generate_parameters_ex' function. */ | ||
386 | #undef HAVE_DSA_GENERATE_PARAMETERS_EX | ||
387 | |||
388 | /* Define to 1 if you have the <elf.h> header file. */ | ||
389 | #undef HAVE_ELF_H | ||
390 | |||
391 | /* Define to 1 if you have the `endgrent' function. */ | ||
392 | #undef HAVE_ENDGRENT | ||
393 | |||
394 | /* Define to 1 if you have the <endian.h> header file. */ | ||
395 | #undef HAVE_ENDIAN_H | ||
396 | |||
397 | /* Define to 1 if you have the `endutent' function. */ | ||
398 | #undef HAVE_ENDUTENT | ||
399 | |||
400 | /* Define to 1 if you have the `endutxent' function. */ | ||
401 | #undef HAVE_ENDUTXENT | ||
402 | |||
403 | /* Define to 1 if you have the `err' function. */ | ||
404 | #undef HAVE_ERR | ||
405 | |||
406 | /* Define to 1 if you have the `errx' function. */ | ||
407 | #undef HAVE_ERRX | ||
408 | |||
409 | /* Define to 1 if you have the <err.h> header file. */ | ||
410 | #undef HAVE_ERR_H | ||
411 | |||
412 | /* Define if your system has /etc/default/login */ | ||
413 | #undef HAVE_ETC_DEFAULT_LOGIN | ||
414 | |||
415 | /* Define if libcrypto has EVP_CIPHER_CTX_ctrl */ | ||
416 | #undef HAVE_EVP_CIPHER_CTX_CTRL | ||
417 | |||
418 | /* Define to 1 if you have the `EVP_DigestFinal_ex' function. */ | ||
419 | #undef HAVE_EVP_DIGESTFINAL_EX | ||
420 | |||
421 | /* Define to 1 if you have the `EVP_DigestInit_ex' function. */ | ||
422 | #undef HAVE_EVP_DIGESTINIT_EX | ||
423 | |||
424 | /* Define to 1 if you have the `EVP_MD_CTX_cleanup' function. */ | ||
425 | #undef HAVE_EVP_MD_CTX_CLEANUP | ||
426 | |||
427 | /* Define to 1 if you have the `EVP_MD_CTX_copy_ex' function. */ | ||
428 | #undef HAVE_EVP_MD_CTX_COPY_EX | ||
429 | |||
430 | /* Define to 1 if you have the `EVP_MD_CTX_init' function. */ | ||
431 | #undef HAVE_EVP_MD_CTX_INIT | ||
432 | |||
433 | /* Define to 1 if you have the `EVP_ripemd160' function. */ | ||
434 | #undef HAVE_EVP_RIPEMD160 | ||
435 | |||
436 | /* Define to 1 if you have the `EVP_sha256' function. */ | ||
437 | #undef HAVE_EVP_SHA256 | ||
438 | |||
439 | /* Define if you have ut_exit in utmp.h */ | ||
440 | #undef HAVE_EXIT_IN_UTMP | ||
441 | |||
442 | /* Define to 1 if you have the `explicit_bzero' function. */ | ||
443 | #undef HAVE_EXPLICIT_BZERO | ||
444 | |||
445 | /* Define to 1 if you have the `fchmod' function. */ | ||
446 | #undef HAVE_FCHMOD | ||
447 | |||
448 | /* Define to 1 if you have the `fchown' function. */ | ||
449 | #undef HAVE_FCHOWN | ||
450 | |||
451 | /* Use F_CLOSEM fcntl for closefrom */ | ||
452 | #undef HAVE_FCNTL_CLOSEM | ||
453 | |||
454 | /* Define to 1 if you have the <fcntl.h> header file. */ | ||
455 | #undef HAVE_FCNTL_H | ||
456 | |||
457 | /* Define to 1 if the system has the type `fd_mask'. */ | ||
458 | #undef HAVE_FD_MASK | ||
459 | |||
460 | /* Define to 1 if you have the <features.h> header file. */ | ||
461 | #undef HAVE_FEATURES_H | ||
462 | |||
463 | /* Define to 1 if you have the <floatingpoint.h> header file. */ | ||
464 | #undef HAVE_FLOATINGPOINT_H | ||
465 | |||
466 | /* Define to 1 if you have the `fmt_scaled' function. */ | ||
467 | #undef HAVE_FMT_SCALED | ||
468 | |||
469 | /* Define to 1 if you have the `freeaddrinfo' function. */ | ||
470 | #undef HAVE_FREEADDRINFO | ||
471 | |||
472 | /* Define to 1 if the system has the type `fsblkcnt_t'. */ | ||
473 | #undef HAVE_FSBLKCNT_T | ||
474 | |||
475 | /* Define to 1 if the system has the type `fsfilcnt_t'. */ | ||
476 | #undef HAVE_FSFILCNT_T | ||
477 | |||
478 | /* Define to 1 if you have the `fstatfs' function. */ | ||
479 | #undef HAVE_FSTATFS | ||
480 | |||
481 | /* Define to 1 if you have the `fstatvfs' function. */ | ||
482 | #undef HAVE_FSTATVFS | ||
483 | |||
484 | /* Define to 1 if you have the `futimes' function. */ | ||
485 | #undef HAVE_FUTIMES | ||
486 | |||
487 | /* Define to 1 if you have the `gai_strerror' function. */ | ||
488 | #undef HAVE_GAI_STRERROR | ||
489 | |||
490 | /* Define to 1 if you have the `getaddrinfo' function. */ | ||
491 | #undef HAVE_GETADDRINFO | ||
492 | |||
493 | /* Define to 1 if you have the `getaudit' function. */ | ||
494 | #undef HAVE_GETAUDIT | ||
495 | |||
496 | /* Define to 1 if you have the `getaudit_addr' function. */ | ||
497 | #undef HAVE_GETAUDIT_ADDR | ||
498 | |||
499 | /* Define to 1 if you have the `getcwd' function. */ | ||
500 | #undef HAVE_GETCWD | ||
501 | |||
502 | /* Define to 1 if you have the `getgrouplist' function. */ | ||
503 | #undef HAVE_GETGROUPLIST | ||
504 | |||
505 | /* Define to 1 if you have the `getgrset' function. */ | ||
506 | #undef HAVE_GETGRSET | ||
507 | |||
508 | /* Define to 1 if you have the `getlastlogxbyname' function. */ | ||
509 | #undef HAVE_GETLASTLOGXBYNAME | ||
510 | |||
511 | /* Define to 1 if you have the `getluid' function. */ | ||
512 | #undef HAVE_GETLUID | ||
513 | |||
514 | /* Define to 1 if you have the `getnameinfo' function. */ | ||
515 | #undef HAVE_GETNAMEINFO | ||
516 | |||
517 | /* Define to 1 if you have the `getopt' function. */ | ||
518 | #undef HAVE_GETOPT | ||
519 | |||
520 | /* Define to 1 if you have the <getopt.h> header file. */ | ||
521 | #undef HAVE_GETOPT_H | ||
522 | |||
523 | /* Define if your getopt(3) defines and uses optreset */ | ||
524 | #undef HAVE_GETOPT_OPTRESET | ||
525 | |||
526 | /* Define if your libraries define getpagesize() */ | ||
527 | #undef HAVE_GETPAGESIZE | ||
528 | |||
529 | /* Define to 1 if you have the `getpeereid' function. */ | ||
530 | #undef HAVE_GETPEEREID | ||
531 | |||
532 | /* Define to 1 if you have the `getpeerucred' function. */ | ||
533 | #undef HAVE_GETPEERUCRED | ||
534 | |||
535 | /* Define to 1 if you have the `getpgid' function. */ | ||
536 | #undef HAVE_GETPGID | ||
537 | |||
538 | /* Define to 1 if you have the `getpgrp' function. */ | ||
539 | #undef HAVE_GETPGRP | ||
540 | |||
541 | /* Define to 1 if you have the `getpwanam' function. */ | ||
542 | #undef HAVE_GETPWANAM | ||
543 | |||
544 | /* Define to 1 if you have the `getrlimit' function. */ | ||
545 | #undef HAVE_GETRLIMIT | ||
546 | |||
547 | /* Define if getrrsetbyname() exists */ | ||
548 | #undef HAVE_GETRRSETBYNAME | ||
549 | |||
550 | /* Define to 1 if you have the `getrusage' function. */ | ||
551 | #undef HAVE_GETRUSAGE | ||
552 | |||
553 | /* Define to 1 if you have the `getseuserbyname' function. */ | ||
554 | #undef HAVE_GETSEUSERBYNAME | ||
555 | |||
556 | /* Define to 1 if you have the `gettimeofday' function. */ | ||
557 | #undef HAVE_GETTIMEOFDAY | ||
558 | |||
559 | /* Define to 1 if you have the `getttyent' function. */ | ||
560 | #undef HAVE_GETTTYENT | ||
561 | |||
562 | /* Define to 1 if you have the `getutent' function. */ | ||
563 | #undef HAVE_GETUTENT | ||
564 | |||
565 | /* Define to 1 if you have the `getutid' function. */ | ||
566 | #undef HAVE_GETUTID | ||
567 | |||
568 | /* Define to 1 if you have the `getutline' function. */ | ||
569 | #undef HAVE_GETUTLINE | ||
570 | |||
571 | /* Define to 1 if you have the `getutxent' function. */ | ||
572 | #undef HAVE_GETUTXENT | ||
573 | |||
574 | /* Define to 1 if you have the `getutxid' function. */ | ||
575 | #undef HAVE_GETUTXID | ||
576 | |||
577 | /* Define to 1 if you have the `getutxline' function. */ | ||
578 | #undef HAVE_GETUTXLINE | ||
579 | |||
580 | /* Define to 1 if you have the `getutxuser' function. */ | ||
581 | #undef HAVE_GETUTXUSER | ||
582 | |||
583 | /* Define to 1 if you have the `get_default_context_with_level' function. */ | ||
584 | #undef HAVE_GET_DEFAULT_CONTEXT_WITH_LEVEL | ||
585 | |||
586 | /* Define to 1 if you have the `glob' function. */ | ||
587 | #undef HAVE_GLOB | ||
588 | |||
589 | /* Define to 1 if you have the <glob.h> header file. */ | ||
590 | #undef HAVE_GLOB_H | ||
591 | |||
592 | /* Define to 1 if you have the `group_from_gid' function. */ | ||
593 | #undef HAVE_GROUP_FROM_GID | ||
594 | |||
595 | /* Define to 1 if you have the <gssapi_generic.h> header file. */ | ||
596 | #undef HAVE_GSSAPI_GENERIC_H | ||
597 | |||
598 | /* Define to 1 if you have the <gssapi/gssapi_generic.h> header file. */ | ||
599 | #undef HAVE_GSSAPI_GSSAPI_GENERIC_H | ||
600 | |||
601 | /* Define to 1 if you have the <gssapi/gssapi.h> header file. */ | ||
602 | #undef HAVE_GSSAPI_GSSAPI_H | ||
603 | |||
604 | /* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */ | ||
605 | #undef HAVE_GSSAPI_GSSAPI_KRB5_H | ||
606 | |||
607 | /* Define to 1 if you have the <gssapi.h> header file. */ | ||
608 | #undef HAVE_GSSAPI_H | ||
609 | |||
610 | /* Define to 1 if you have the <gssapi_krb5.h> header file. */ | ||
611 | #undef HAVE_GSSAPI_KRB5_H | ||
612 | |||
613 | /* Define if HEADER.ad exists in arpa/nameser.h */ | ||
614 | #undef HAVE_HEADER_AD | ||
615 | |||
616 | /* Define to 1 if you have the `HMAC_CTX_init' function. */ | ||
617 | #undef HAVE_HMAC_CTX_INIT | ||
618 | |||
619 | /* Define if you have ut_host in utmp.h */ | ||
620 | #undef HAVE_HOST_IN_UTMP | ||
621 | |||
622 | /* Define if you have ut_host in utmpx.h */ | ||
623 | #undef HAVE_HOST_IN_UTMPX | ||
624 | |||
625 | /* Define to 1 if you have the <iaf.h> header file. */ | ||
626 | #undef HAVE_IAF_H | ||
627 | |||
628 | /* Define to 1 if you have the <ia.h> header file. */ | ||
629 | #undef HAVE_IA_H | ||
630 | |||
631 | /* Define if you have ut_id in utmp.h */ | ||
632 | #undef HAVE_ID_IN_UTMP | ||
633 | |||
634 | /* Define if you have ut_id in utmpx.h */ | ||
635 | #undef HAVE_ID_IN_UTMPX | ||
636 | |||
637 | /* Define to 1 if you have the `inet_aton' function. */ | ||
638 | #undef HAVE_INET_ATON | ||
639 | |||
640 | /* Define to 1 if you have the `inet_ntoa' function. */ | ||
641 | #undef HAVE_INET_NTOA | ||
642 | |||
643 | /* Define to 1 if you have the `inet_ntop' function. */ | ||
644 | #undef HAVE_INET_NTOP | ||
645 | |||
646 | /* Define to 1 if you have the `innetgr' function. */ | ||
647 | #undef HAVE_INNETGR | ||
648 | |||
649 | /* define if you have int64_t data type */ | ||
650 | #undef HAVE_INT64_T | ||
651 | |||
652 | /* Define to 1 if the system has the type `intmax_t'. */ | ||
653 | #undef HAVE_INTMAX_T | ||
654 | |||
655 | /* Define to 1 if you have the <inttypes.h> header file. */ | ||
656 | #undef HAVE_INTTYPES_H | ||
657 | |||
658 | /* define if you have intxx_t data type */ | ||
659 | #undef HAVE_INTXX_T | ||
660 | |||
661 | /* Define to 1 if the system has the type `in_addr_t'. */ | ||
662 | #undef HAVE_IN_ADDR_T | ||
663 | |||
664 | /* Define to 1 if the system has the type `in_port_t'. */ | ||
665 | #undef HAVE_IN_PORT_T | ||
666 | |||
667 | /* Define if you have isblank(3C). */ | ||
668 | #undef HAVE_ISBLANK | ||
669 | |||
670 | /* Define to 1 if you have the `krb5_cc_new_unique' function. */ | ||
671 | #undef HAVE_KRB5_CC_NEW_UNIQUE | ||
672 | |||
673 | /* Define to 1 if you have the `krb5_free_error_message' function. */ | ||
674 | #undef HAVE_KRB5_FREE_ERROR_MESSAGE | ||
675 | |||
676 | /* Define to 1 if you have the `krb5_get_error_message' function. */ | ||
677 | #undef HAVE_KRB5_GET_ERROR_MESSAGE | ||
678 | |||
679 | /* Define to 1 if you have the <langinfo.h> header file. */ | ||
680 | #undef HAVE_LANGINFO_H | ||
681 | |||
682 | /* Define to 1 if you have the <lastlog.h> header file. */ | ||
683 | #undef HAVE_LASTLOG_H | ||
684 | |||
685 | /* Define if you want ldns support */ | ||
686 | #undef HAVE_LDNS | ||
687 | |||
688 | /* Define to 1 if you have the <libaudit.h> header file. */ | ||
689 | #undef HAVE_LIBAUDIT_H | ||
690 | |||
691 | /* Define to 1 if you have the `bsm' library (-lbsm). */ | ||
692 | #undef HAVE_LIBBSM | ||
693 | |||
694 | /* Define to 1 if you have the `crypt' library (-lcrypt). */ | ||
695 | #undef HAVE_LIBCRYPT | ||
696 | |||
697 | /* Define to 1 if you have the `dl' library (-ldl). */ | ||
698 | #undef HAVE_LIBDL | ||
699 | |||
700 | /* Define to 1 if you have the <libgen.h> header file. */ | ||
701 | #undef HAVE_LIBGEN_H | ||
702 | |||
703 | /* Define if system has libiaf that supports set_id */ | ||
704 | #undef HAVE_LIBIAF | ||
705 | |||
706 | /* Define to 1 if you have the `network' library (-lnetwork). */ | ||
707 | #undef HAVE_LIBNETWORK | ||
708 | |||
709 | /* Define to 1 if you have the `pam' library (-lpam). */ | ||
710 | #undef HAVE_LIBPAM | ||
711 | |||
712 | /* Define to 1 if you have the `socket' library (-lsocket). */ | ||
713 | #undef HAVE_LIBSOCKET | ||
714 | |||
715 | /* Define to 1 if you have the <libutil.h> header file. */ | ||
716 | #undef HAVE_LIBUTIL_H | ||
717 | |||
718 | /* Define to 1 if you have the `xnet' library (-lxnet). */ | ||
719 | #undef HAVE_LIBXNET | ||
720 | |||
721 | /* Define to 1 if you have the `z' library (-lz). */ | ||
722 | #undef HAVE_LIBZ | ||
723 | |||
724 | /* Define to 1 if you have the <limits.h> header file. */ | ||
725 | #undef HAVE_LIMITS_H | ||
726 | |||
727 | /* Define to 1 if you have the <linux/audit.h> header file. */ | ||
728 | #undef HAVE_LINUX_AUDIT_H | ||
729 | |||
730 | /* Define to 1 if you have the <linux/filter.h> header file. */ | ||
731 | #undef HAVE_LINUX_FILTER_H | ||
732 | |||
733 | /* Define to 1 if you have the <linux/if_tun.h> header file. */ | ||
734 | #undef HAVE_LINUX_IF_TUN_H | ||
735 | |||
736 | /* Define to 1 if you have the <linux/seccomp.h> header file. */ | ||
737 | #undef HAVE_LINUX_SECCOMP_H | ||
738 | |||
739 | /* Define to 1 if you have the <locale.h> header file. */ | ||
740 | #undef HAVE_LOCALE_H | ||
741 | |||
742 | /* Define to 1 if you have the `login' function. */ | ||
743 | #undef HAVE_LOGIN | ||
744 | |||
745 | /* Define to 1 if you have the <login_cap.h> header file. */ | ||
746 | #undef HAVE_LOGIN_CAP_H | ||
747 | |||
748 | /* Define to 1 if you have the `login_getcapbool' function. */ | ||
749 | #undef HAVE_LOGIN_GETCAPBOOL | ||
750 | |||
751 | /* Define to 1 if you have the <login.h> header file. */ | ||
752 | #undef HAVE_LOGIN_H | ||
753 | |||
754 | /* Define to 1 if you have the `logout' function. */ | ||
755 | #undef HAVE_LOGOUT | ||
756 | |||
757 | /* Define to 1 if you have the `logwtmp' function. */ | ||
758 | #undef HAVE_LOGWTMP | ||
759 | |||
760 | /* Define to 1 if the system has the type `long double'. */ | ||
761 | #undef HAVE_LONG_DOUBLE | ||
762 | |||
763 | /* Define to 1 if the system has the type `long long'. */ | ||
764 | #undef HAVE_LONG_LONG | ||
765 | |||
766 | /* Define to 1 if you have the <maillock.h> header file. */ | ||
767 | #undef HAVE_MAILLOCK_H | ||
768 | |||
769 | /* Define to 1 if you have the `mblen' function. */ | ||
770 | #undef HAVE_MBLEN | ||
771 | |||
772 | /* Define to 1 if you have the `mbtowc' function. */ | ||
773 | #undef HAVE_MBTOWC | ||
774 | |||
775 | /* Define to 1 if you have the `md5_crypt' function. */ | ||
776 | #undef HAVE_MD5_CRYPT | ||
777 | |||
778 | /* Define if you want to allow MD5 passwords */ | ||
779 | #undef HAVE_MD5_PASSWORDS | ||
780 | |||
781 | /* Define to 1 if you have the `memmove' function. */ | ||
782 | #undef HAVE_MEMMOVE | ||
783 | |||
784 | /* Define to 1 if you have the <memory.h> header file. */ | ||
785 | #undef HAVE_MEMORY_H | ||
786 | |||
787 | /* Define to 1 if you have the `memset_s' function. */ | ||
788 | #undef HAVE_MEMSET_S | ||
789 | |||
790 | /* Define to 1 if you have the `mkdtemp' function. */ | ||
791 | #undef HAVE_MKDTEMP | ||
792 | |||
793 | /* Define to 1 if you have the `mmap' function. */ | ||
794 | #undef HAVE_MMAP | ||
795 | |||
796 | /* define if you have mode_t data type */ | ||
797 | #undef HAVE_MODE_T | ||
798 | |||
799 | /* Some systems put nanosleep outside of libc */ | ||
800 | #undef HAVE_NANOSLEEP | ||
801 | |||
802 | /* Define to 1 if you have the <ndir.h> header file. */ | ||
803 | #undef HAVE_NDIR_H | ||
804 | |||
805 | /* Define to 1 if you have the <netdb.h> header file. */ | ||
806 | #undef HAVE_NETDB_H | ||
807 | |||
808 | /* Define to 1 if you have the <netgroup.h> header file. */ | ||
809 | #undef HAVE_NETGROUP_H | ||
810 | |||
811 | /* Define to 1 if you have the <net/if_tun.h> header file. */ | ||
812 | #undef HAVE_NET_IF_TUN_H | ||
813 | |||
814 | /* Define if you are on NeXT */ | ||
815 | #undef HAVE_NEXT | ||
816 | |||
817 | /* Define to 1 if you have the `ngetaddrinfo' function. */ | ||
818 | #undef HAVE_NGETADDRINFO | ||
819 | |||
820 | /* Define to 1 if you have the `nl_langinfo' function. */ | ||
821 | #undef HAVE_NL_LANGINFO | ||
822 | |||
823 | /* Define to 1 if you have the `nsleep' function. */ | ||
824 | #undef HAVE_NSLEEP | ||
825 | |||
826 | /* Define to 1 if you have the `ogetaddrinfo' function. */ | ||
827 | #undef HAVE_OGETADDRINFO | ||
828 | |||
829 | /* Define if you have an old version of PAM which takes only one argument to | ||
830 | pam_strerror */ | ||
831 | #undef HAVE_OLD_PAM | ||
832 | |||
833 | /* Define to 1 if you have the `openlog_r' function. */ | ||
834 | #undef HAVE_OPENLOG_R | ||
835 | |||
836 | /* Define to 1 if you have the `openpty' function. */ | ||
837 | #undef HAVE_OPENPTY | ||
838 | |||
839 | /* Define if your ssl headers are included with #include <openssl/header.h> */ | ||
840 | #undef HAVE_OPENSSL | ||
841 | |||
842 | /* Define if you have Digital Unix Security Integration Architecture */ | ||
843 | #undef HAVE_OSF_SIA | ||
844 | |||
845 | /* Define to 1 if you have the `pam_getenvlist' function. */ | ||
846 | #undef HAVE_PAM_GETENVLIST | ||
847 | |||
848 | /* Define to 1 if you have the <pam/pam_appl.h> header file. */ | ||
849 | #undef HAVE_PAM_PAM_APPL_H | ||
850 | |||
851 | /* Define to 1 if you have the `pam_putenv' function. */ | ||
852 | #undef HAVE_PAM_PUTENV | ||
853 | |||
854 | /* Define to 1 if you have the <paths.h> header file. */ | ||
855 | #undef HAVE_PATHS_H | ||
856 | |||
857 | /* Define if you have ut_pid in utmp.h */ | ||
858 | #undef HAVE_PID_IN_UTMP | ||
859 | |||
860 | /* define if you have pid_t data type */ | ||
861 | #undef HAVE_PID_T | ||
862 | |||
863 | /* Define to 1 if you have the `pledge' function. */ | ||
864 | #undef HAVE_PLEDGE | ||
865 | |||
866 | /* Define to 1 if you have the `poll' function. */ | ||
867 | #undef HAVE_POLL | ||
868 | |||
869 | /* Define to 1 if you have the <poll.h> header file. */ | ||
870 | #undef HAVE_POLL_H | ||
871 | |||
872 | /* Define to 1 if you have the `prctl' function. */ | ||
873 | #undef HAVE_PRCTL | ||
874 | |||
875 | /* Define to 1 if you have the `priv_basicset' function. */ | ||
876 | #undef HAVE_PRIV_BASICSET | ||
877 | |||
878 | /* Define to 1 if you have the <priv.h> header file. */ | ||
879 | #undef HAVE_PRIV_H | ||
880 | |||
881 | /* Define if you have /proc/$pid/fd */ | ||
882 | #undef HAVE_PROC_PID | ||
883 | |||
884 | /* Define to 1 if you have the `pstat' function. */ | ||
885 | #undef HAVE_PSTAT | ||
886 | |||
887 | /* Define to 1 if you have the <pty.h> header file. */ | ||
888 | #undef HAVE_PTY_H | ||
889 | |||
890 | /* Define to 1 if you have the `pututline' function. */ | ||
891 | #undef HAVE_PUTUTLINE | ||
892 | |||
893 | /* Define to 1 if you have the `pututxline' function. */ | ||
894 | #undef HAVE_PUTUTXLINE | ||
895 | |||
896 | /* Define to 1 if you have the `readpassphrase' function. */ | ||
897 | #undef HAVE_READPASSPHRASE | ||
898 | |||
899 | /* Define to 1 if you have the <readpassphrase.h> header file. */ | ||
900 | #undef HAVE_READPASSPHRASE_H | ||
901 | |||
902 | /* Define to 1 if you have the `reallocarray' function. */ | ||
903 | #undef HAVE_REALLOCARRAY | ||
904 | |||
905 | /* Define to 1 if you have the `realpath' function. */ | ||
906 | #undef HAVE_REALPATH | ||
907 | |||
908 | /* Define to 1 if you have the `recvmsg' function. */ | ||
909 | #undef HAVE_RECVMSG | ||
910 | |||
911 | /* sys/resource.h has RLIMIT_NPROC */ | ||
912 | #undef HAVE_RLIMIT_NPROC | ||
913 | |||
914 | /* Define to 1 if you have the <rpc/types.h> header file. */ | ||
915 | #undef HAVE_RPC_TYPES_H | ||
916 | |||
917 | /* Define to 1 if you have the `rresvport_af' function. */ | ||
918 | #undef HAVE_RRESVPORT_AF | ||
919 | |||
920 | /* Define to 1 if you have the `RSA_generate_key_ex' function. */ | ||
921 | #undef HAVE_RSA_GENERATE_KEY_EX | ||
922 | |||
923 | /* Define to 1 if you have the `RSA_get_default_method' function. */ | ||
924 | #undef HAVE_RSA_GET_DEFAULT_METHOD | ||
925 | |||
926 | /* Define to 1 if you have the <sandbox.h> header file. */ | ||
927 | #undef HAVE_SANDBOX_H | ||
928 | |||
929 | /* Define to 1 if you have the `sandbox_init' function. */ | ||
930 | #undef HAVE_SANDBOX_INIT | ||
931 | |||
932 | /* define if you have sa_family_t data type */ | ||
933 | #undef HAVE_SA_FAMILY_T | ||
934 | |||
935 | /* Define to 1 if you have the `scan_scaled' function. */ | ||
936 | #undef HAVE_SCAN_SCALED | ||
937 | |||
938 | /* Define if you have SecureWare-based protected password database */ | ||
939 | #undef HAVE_SECUREWARE | ||
940 | |||
941 | /* Define to 1 if you have the <security/pam_appl.h> header file. */ | ||
942 | #undef HAVE_SECURITY_PAM_APPL_H | ||
943 | |||
944 | /* Define to 1 if you have the `sendmsg' function. */ | ||
945 | #undef HAVE_SENDMSG | ||
946 | |||
947 | /* Define to 1 if you have the `setauthdb' function. */ | ||
948 | #undef HAVE_SETAUTHDB | ||
949 | |||
950 | /* Define to 1 if you have the `setdtablesize' function. */ | ||
951 | #undef HAVE_SETDTABLESIZE | ||
952 | |||
953 | /* Define to 1 if you have the `setegid' function. */ | ||
954 | #undef HAVE_SETEGID | ||
955 | |||
956 | /* Define to 1 if you have the `setenv' function. */ | ||
957 | #undef HAVE_SETENV | ||
958 | |||
959 | /* Define to 1 if you have the `seteuid' function. */ | ||
960 | #undef HAVE_SETEUID | ||
961 | |||
962 | /* Define to 1 if you have the `setgroupent' function. */ | ||
963 | #undef HAVE_SETGROUPENT | ||
964 | |||
965 | /* Define to 1 if you have the `setgroups' function. */ | ||
966 | #undef HAVE_SETGROUPS | ||
967 | |||
968 | /* Define to 1 if you have the `setlinebuf' function. */ | ||
969 | #undef HAVE_SETLINEBUF | ||
970 | |||
971 | /* Define to 1 if you have the `setlogin' function. */ | ||
972 | #undef HAVE_SETLOGIN | ||
973 | |||
974 | /* Define to 1 if you have the `setluid' function. */ | ||
975 | #undef HAVE_SETLUID | ||
976 | |||
977 | /* Define to 1 if you have the `setpassent' function. */ | ||
978 | #undef HAVE_SETPASSENT | ||
979 | |||
980 | /* Define to 1 if you have the `setpcred' function. */ | ||
981 | #undef HAVE_SETPCRED | ||
982 | |||
983 | /* Define to 1 if you have the `setpflags' function. */ | ||
984 | #undef HAVE_SETPFLAGS | ||
985 | |||
986 | /* Define to 1 if you have the `setppriv' function. */ | ||
987 | #undef HAVE_SETPPRIV | ||
988 | |||
989 | /* Define to 1 if you have the `setproctitle' function. */ | ||
990 | #undef HAVE_SETPROCTITLE | ||
991 | |||
992 | /* Define to 1 if you have the `setregid' function. */ | ||
993 | #undef HAVE_SETREGID | ||
994 | |||
995 | /* Define to 1 if you have the `setresgid' function. */ | ||
996 | #undef HAVE_SETRESGID | ||
997 | |||
998 | /* Define to 1 if you have the `setresuid' function. */ | ||
999 | #undef HAVE_SETRESUID | ||
1000 | |||
1001 | /* Define to 1 if you have the `setreuid' function. */ | ||
1002 | #undef HAVE_SETREUID | ||
1003 | |||
1004 | /* Define to 1 if you have the `setrlimit' function. */ | ||
1005 | #undef HAVE_SETRLIMIT | ||
1006 | |||
1007 | /* Define to 1 if you have the `setsid' function. */ | ||
1008 | #undef HAVE_SETSID | ||
1009 | |||
1010 | /* Define to 1 if you have the `setutent' function. */ | ||
1011 | #undef HAVE_SETUTENT | ||
1012 | |||
1013 | /* Define to 1 if you have the `setutxdb' function. */ | ||
1014 | #undef HAVE_SETUTXDB | ||
1015 | |||
1016 | /* Define to 1 if you have the `setutxent' function. */ | ||
1017 | #undef HAVE_SETUTXENT | ||
1018 | |||
1019 | /* Define to 1 if you have the `setvbuf' function. */ | ||
1020 | #undef HAVE_SETVBUF | ||
1021 | |||
1022 | /* Define to 1 if you have the `set_id' function. */ | ||
1023 | #undef HAVE_SET_ID | ||
1024 | |||
1025 | /* Define to 1 if you have the `SHA256_Update' function. */ | ||
1026 | #undef HAVE_SHA256_UPDATE | ||
1027 | |||
1028 | /* Define to 1 if you have the <sha2.h> header file. */ | ||
1029 | #undef HAVE_SHA2_H | ||
1030 | |||
1031 | /* Define to 1 if you have the <shadow.h> header file. */ | ||
1032 | #undef HAVE_SHADOW_H | ||
1033 | |||
1034 | /* Define to 1 if you have the `sigaction' function. */ | ||
1035 | #undef HAVE_SIGACTION | ||
1036 | |||
1037 | /* Define to 1 if you have the `sigvec' function. */ | ||
1038 | #undef HAVE_SIGVEC | ||
1039 | |||
1040 | /* Define to 1 if the system has the type `sig_atomic_t'. */ | ||
1041 | #undef HAVE_SIG_ATOMIC_T | ||
1042 | |||
1043 | /* define if you have size_t data type */ | ||
1044 | #undef HAVE_SIZE_T | ||
1045 | |||
1046 | /* Define to 1 if you have the `snprintf' function. */ | ||
1047 | #undef HAVE_SNPRINTF | ||
1048 | |||
1049 | /* Define to 1 if you have the `socketpair' function. */ | ||
1050 | #undef HAVE_SOCKETPAIR | ||
1051 | |||
1052 | /* Have PEERCRED socket option */ | ||
1053 | #undef HAVE_SO_PEERCRED | ||
1054 | |||
1055 | /* define if you have ssize_t data type */ | ||
1056 | #undef HAVE_SSIZE_T | ||
1057 | |||
1058 | /* Fields in struct sockaddr_storage */ | ||
1059 | #undef HAVE_SS_FAMILY_IN_SS | ||
1060 | |||
1061 | /* Define to 1 if you have the `statfs' function. */ | ||
1062 | #undef HAVE_STATFS | ||
1063 | |||
1064 | /* Define to 1 if you have the `statvfs' function. */ | ||
1065 | #undef HAVE_STATVFS | ||
1066 | |||
1067 | /* Define to 1 if you have the <stddef.h> header file. */ | ||
1068 | #undef HAVE_STDDEF_H | ||
1069 | |||
1070 | /* Define to 1 if you have the <stdint.h> header file. */ | ||
1071 | #undef HAVE_STDINT_H | ||
1072 | |||
1073 | /* Define to 1 if you have the <stdlib.h> header file. */ | ||
1074 | #undef HAVE_STDLIB_H | ||
1075 | |||
1076 | /* Define to 1 if you have the `strdup' function. */ | ||
1077 | #undef HAVE_STRDUP | ||
1078 | |||
1079 | /* Define to 1 if you have the `strerror' function. */ | ||
1080 | #undef HAVE_STRERROR | ||
1081 | |||
1082 | /* Define to 1 if you have the `strftime' function. */ | ||
1083 | #undef HAVE_STRFTIME | ||
1084 | |||
1085 | /* Silly mkstemp() */ | ||
1086 | #undef HAVE_STRICT_MKSTEMP | ||
1087 | |||
1088 | /* Define to 1 if you have the <strings.h> header file. */ | ||
1089 | #undef HAVE_STRINGS_H | ||
1090 | |||
1091 | /* Define to 1 if you have the <string.h> header file. */ | ||
1092 | #undef HAVE_STRING_H | ||
1093 | |||
1094 | /* Define to 1 if you have the `strlcat' function. */ | ||
1095 | #undef HAVE_STRLCAT | ||
1096 | |||
1097 | /* Define to 1 if you have the `strlcpy' function. */ | ||
1098 | #undef HAVE_STRLCPY | ||
1099 | |||
1100 | /* Define to 1 if you have the `strmode' function. */ | ||
1101 | #undef HAVE_STRMODE | ||
1102 | |||
1103 | /* Define to 1 if you have the `strnlen' function. */ | ||
1104 | #undef HAVE_STRNLEN | ||
1105 | |||
1106 | /* Define to 1 if you have the `strnvis' function. */ | ||
1107 | #undef HAVE_STRNVIS | ||
1108 | |||
1109 | /* Define to 1 if you have the `strptime' function. */ | ||
1110 | #undef HAVE_STRPTIME | ||
1111 | |||
1112 | /* Define to 1 if you have the `strsep' function. */ | ||
1113 | #undef HAVE_STRSEP | ||
1114 | |||
1115 | /* Define to 1 if you have the `strtoll' function. */ | ||
1116 | #undef HAVE_STRTOLL | ||
1117 | |||
1118 | /* Define to 1 if you have the `strtonum' function. */ | ||
1119 | #undef HAVE_STRTONUM | ||
1120 | |||
1121 | /* Define to 1 if you have the `strtoul' function. */ | ||
1122 | #undef HAVE_STRTOUL | ||
1123 | |||
1124 | /* Define to 1 if you have the `strtoull' function. */ | ||
1125 | #undef HAVE_STRTOULL | ||
1126 | |||
1127 | /* define if you have struct addrinfo data type */ | ||
1128 | #undef HAVE_STRUCT_ADDRINFO | ||
1129 | |||
1130 | /* define if you have struct in6_addr data type */ | ||
1131 | #undef HAVE_STRUCT_IN6_ADDR | ||
1132 | |||
1133 | /* Define to 1 if `pw_change' is member of `struct passwd'. */ | ||
1134 | #undef HAVE_STRUCT_PASSWD_PW_CHANGE | ||
1135 | |||
1136 | /* Define to 1 if `pw_class' is member of `struct passwd'. */ | ||
1137 | #undef HAVE_STRUCT_PASSWD_PW_CLASS | ||
1138 | |||
1139 | /* Define to 1 if `pw_expire' is member of `struct passwd'. */ | ||
1140 | #undef HAVE_STRUCT_PASSWD_PW_EXPIRE | ||
1141 | |||
1142 | /* Define to 1 if `pw_gecos' is member of `struct passwd'. */ | ||
1143 | #undef HAVE_STRUCT_PASSWD_PW_GECOS | ||
1144 | |||
1145 | /* define if you have struct sockaddr_in6 data type */ | ||
1146 | #undef HAVE_STRUCT_SOCKADDR_IN6 | ||
1147 | |||
1148 | /* Define to 1 if `sin6_scope_id' is member of `struct sockaddr_in6'. */ | ||
1149 | #undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID | ||
1150 | |||
1151 | /* define if you have struct sockaddr_storage data type */ | ||
1152 | #undef HAVE_STRUCT_SOCKADDR_STORAGE | ||
1153 | |||
1154 | /* Define to 1 if `st_blksize' is member of `struct stat'. */ | ||
1155 | #undef HAVE_STRUCT_STAT_ST_BLKSIZE | ||
1156 | |||
1157 | /* Define to 1 if the system has the type `struct timespec'. */ | ||
1158 | #undef HAVE_STRUCT_TIMESPEC | ||
1159 | |||
1160 | /* define if you have struct timeval */ | ||
1161 | #undef HAVE_STRUCT_TIMEVAL | ||
1162 | |||
1163 | /* Define to 1 if you have the `swap32' function. */ | ||
1164 | #undef HAVE_SWAP32 | ||
1165 | |||
1166 | /* Define to 1 if you have the `sysconf' function. */ | ||
1167 | #undef HAVE_SYSCONF | ||
1168 | |||
1169 | /* Define if you have syslen in utmpx.h */ | ||
1170 | #undef HAVE_SYSLEN_IN_UTMPX | ||
1171 | |||
1172 | /* Define to 1 if you have the <sys/audit.h> header file. */ | ||
1173 | #undef HAVE_SYS_AUDIT_H | ||
1174 | |||
1175 | /* Define to 1 if you have the <sys/bitypes.h> header file. */ | ||
1176 | #undef HAVE_SYS_BITYPES_H | ||
1177 | |||
1178 | /* Define to 1 if you have the <sys/bsdtty.h> header file. */ | ||
1179 | #undef HAVE_SYS_BSDTTY_H | ||
1180 | |||
1181 | /* Define to 1 if you have the <sys/capability.h> header file. */ | ||
1182 | #undef HAVE_SYS_CAPABILITY_H | ||
1183 | |||
1184 | /* Define to 1 if you have the <sys/cdefs.h> header file. */ | ||
1185 | #undef HAVE_SYS_CDEFS_H | ||
1186 | |||
1187 | /* Define to 1 if you have the <sys/dir.h> header file. */ | ||
1188 | #undef HAVE_SYS_DIR_H | ||
1189 | |||
1190 | /* Define if your system defines sys_errlist[] */ | ||
1191 | #undef HAVE_SYS_ERRLIST | ||
1192 | |||
1193 | /* Define to 1 if you have the <sys/mman.h> header file. */ | ||
1194 | #undef HAVE_SYS_MMAN_H | ||
1195 | |||
1196 | /* Define to 1 if you have the <sys/mount.h> header file. */ | ||
1197 | #undef HAVE_SYS_MOUNT_H | ||
1198 | |||
1199 | /* Define to 1 if you have the <sys/ndir.h> header file. */ | ||
1200 | #undef HAVE_SYS_NDIR_H | ||
1201 | |||
1202 | /* Define if your system defines sys_nerr */ | ||
1203 | #undef HAVE_SYS_NERR | ||
1204 | |||
1205 | /* Define to 1 if you have the <sys/poll.h> header file. */ | ||
1206 | #undef HAVE_SYS_POLL_H | ||
1207 | |||
1208 | /* Define to 1 if you have the <sys/prctl.h> header file. */ | ||
1209 | #undef HAVE_SYS_PRCTL_H | ||
1210 | |||
1211 | /* Define to 1 if you have the <sys/pstat.h> header file. */ | ||
1212 | #undef HAVE_SYS_PSTAT_H | ||
1213 | |||
1214 | /* Define to 1 if you have the <sys/ptms.h> header file. */ | ||
1215 | #undef HAVE_SYS_PTMS_H | ||
1216 | |||
1217 | /* Define to 1 if you have the <sys/select.h> header file. */ | ||
1218 | #undef HAVE_SYS_SELECT_H | ||
1219 | |||
1220 | /* Define to 1 if you have the <sys/statvfs.h> header file. */ | ||
1221 | #undef HAVE_SYS_STATVFS_H | ||
1222 | |||
1223 | /* Define to 1 if you have the <sys/stat.h> header file. */ | ||
1224 | #undef HAVE_SYS_STAT_H | ||
1225 | |||
1226 | /* Define to 1 if you have the <sys/stream.h> header file. */ | ||
1227 | #undef HAVE_SYS_STREAM_H | ||
1228 | |||
1229 | /* Define to 1 if you have the <sys/stropts.h> header file. */ | ||
1230 | #undef HAVE_SYS_STROPTS_H | ||
1231 | |||
1232 | /* Define to 1 if you have the <sys/strtio.h> header file. */ | ||
1233 | #undef HAVE_SYS_STRTIO_H | ||
1234 | |||
1235 | /* Force use of sys/syslog.h on Ultrix */ | ||
1236 | #undef HAVE_SYS_SYSLOG_H | ||
1237 | |||
1238 | /* Define to 1 if you have the <sys/sysmacros.h> header file. */ | ||
1239 | #undef HAVE_SYS_SYSMACROS_H | ||
1240 | |||
1241 | /* Define to 1 if you have the <sys/timers.h> header file. */ | ||
1242 | #undef HAVE_SYS_TIMERS_H | ||
1243 | |||
1244 | /* Define to 1 if you have the <sys/time.h> header file. */ | ||
1245 | #undef HAVE_SYS_TIME_H | ||
1246 | |||
1247 | /* Define to 1 if you have the <sys/types.h> header file. */ | ||
1248 | #undef HAVE_SYS_TYPES_H | ||
1249 | |||
1250 | /* Define to 1 if you have the <sys/un.h> header file. */ | ||
1251 | #undef HAVE_SYS_UN_H | ||
1252 | |||
1253 | /* Define to 1 if you have the `tcgetpgrp' function. */ | ||
1254 | #undef HAVE_TCGETPGRP | ||
1255 | |||
1256 | /* Define to 1 if you have the `tcsendbreak' function. */ | ||
1257 | #undef HAVE_TCSENDBREAK | ||
1258 | |||
1259 | /* Define to 1 if you have the `time' function. */ | ||
1260 | #undef HAVE_TIME | ||
1261 | |||
1262 | /* Define to 1 if you have the <time.h> header file. */ | ||
1263 | #undef HAVE_TIME_H | ||
1264 | |||
1265 | /* Define if you have ut_time in utmp.h */ | ||
1266 | #undef HAVE_TIME_IN_UTMP | ||
1267 | |||
1268 | /* Define if you have ut_time in utmpx.h */ | ||
1269 | #undef HAVE_TIME_IN_UTMPX | ||
1270 | |||
1271 | /* Define to 1 if you have the `timingsafe_bcmp' function. */ | ||
1272 | #undef HAVE_TIMINGSAFE_BCMP | ||
1273 | |||
1274 | /* Define to 1 if you have the <tmpdir.h> header file. */ | ||
1275 | #undef HAVE_TMPDIR_H | ||
1276 | |||
1277 | /* Define to 1 if you have the `truncate' function. */ | ||
1278 | #undef HAVE_TRUNCATE | ||
1279 | |||
1280 | /* Define to 1 if you have the <ttyent.h> header file. */ | ||
1281 | #undef HAVE_TTYENT_H | ||
1282 | |||
1283 | /* Define if you have ut_tv in utmp.h */ | ||
1284 | #undef HAVE_TV_IN_UTMP | ||
1285 | |||
1286 | /* Define if you have ut_tv in utmpx.h */ | ||
1287 | #undef HAVE_TV_IN_UTMPX | ||
1288 | |||
1289 | /* Define if you have ut_type in utmp.h */ | ||
1290 | #undef HAVE_TYPE_IN_UTMP | ||
1291 | |||
1292 | /* Define if you have ut_type in utmpx.h */ | ||
1293 | #undef HAVE_TYPE_IN_UTMPX | ||
1294 | |||
1295 | /* Define to 1 if you have the <ucred.h> header file. */ | ||
1296 | #undef HAVE_UCRED_H | ||
1297 | |||
1298 | /* Define to 1 if the system has the type `uintmax_t'. */ | ||
1299 | #undef HAVE_UINTMAX_T | ||
1300 | |||
1301 | /* define if you have uintxx_t data type */ | ||
1302 | #undef HAVE_UINTXX_T | ||
1303 | |||
1304 | /* Define to 1 if you have the <unistd.h> header file. */ | ||
1305 | #undef HAVE_UNISTD_H | ||
1306 | |||
1307 | /* Define to 1 if you have the `unsetenv' function. */ | ||
1308 | #undef HAVE_UNSETENV | ||
1309 | |||
1310 | /* Define to 1 if the system has the type `unsigned long long'. */ | ||
1311 | #undef HAVE_UNSIGNED_LONG_LONG | ||
1312 | |||
1313 | /* Define to 1 if you have the `updwtmp' function. */ | ||
1314 | #undef HAVE_UPDWTMP | ||
1315 | |||
1316 | /* Define to 1 if you have the `updwtmpx' function. */ | ||
1317 | #undef HAVE_UPDWTMPX | ||
1318 | |||
1319 | /* Define to 1 if you have the <usersec.h> header file. */ | ||
1320 | #undef HAVE_USERSEC_H | ||
1321 | |||
1322 | /* Define to 1 if you have the `user_from_uid' function. */ | ||
1323 | #undef HAVE_USER_FROM_UID | ||
1324 | |||
1325 | /* Define to 1 if you have the `usleep' function. */ | ||
1326 | #undef HAVE_USLEEP | ||
1327 | |||
1328 | /* Define to 1 if you have the <util.h> header file. */ | ||
1329 | #undef HAVE_UTIL_H | ||
1330 | |||
1331 | /* Define to 1 if you have the `utimes' function. */ | ||
1332 | #undef HAVE_UTIMES | ||
1333 | |||
1334 | /* Define to 1 if you have the <utime.h> header file. */ | ||
1335 | #undef HAVE_UTIME_H | ||
1336 | |||
1337 | /* Define to 1 if you have the `utmpname' function. */ | ||
1338 | #undef HAVE_UTMPNAME | ||
1339 | |||
1340 | /* Define to 1 if you have the `utmpxname' function. */ | ||
1341 | #undef HAVE_UTMPXNAME | ||
1342 | |||
1343 | /* Define to 1 if you have the <utmpx.h> header file. */ | ||
1344 | #undef HAVE_UTMPX_H | ||
1345 | |||
1346 | /* Define to 1 if you have the <utmp.h> header file. */ | ||
1347 | #undef HAVE_UTMP_H | ||
1348 | |||
1349 | /* define if you have u_char data type */ | ||
1350 | #undef HAVE_U_CHAR | ||
1351 | |||
1352 | /* define if you have u_int data type */ | ||
1353 | #undef HAVE_U_INT | ||
1354 | |||
1355 | /* define if you have u_int64_t data type */ | ||
1356 | #undef HAVE_U_INT64_T | ||
1357 | |||
1358 | /* define if you have u_intxx_t data type */ | ||
1359 | #undef HAVE_U_INTXX_T | ||
1360 | |||
1361 | /* Define to 1 if you have the `vasprintf' function. */ | ||
1362 | #undef HAVE_VASPRINTF | ||
1363 | |||
1364 | /* Define if va_copy exists */ | ||
1365 | #undef HAVE_VA_COPY | ||
1366 | |||
1367 | /* Define to 1 if you have the <vis.h> header file. */ | ||
1368 | #undef HAVE_VIS_H | ||
1369 | |||
1370 | /* Define to 1 if you have the `vsnprintf' function. */ | ||
1371 | #undef HAVE_VSNPRINTF | ||
1372 | |||
1373 | /* Define to 1 if you have the `waitpid' function. */ | ||
1374 | #undef HAVE_WAITPID | ||
1375 | |||
1376 | /* Define to 1 if you have the `warn' function. */ | ||
1377 | #undef HAVE_WARN | ||
1378 | |||
1379 | /* Define to 1 if you have the <wchar.h> header file. */ | ||
1380 | #undef HAVE_WCHAR_H | ||
1381 | |||
1382 | /* Define to 1 if you have the `wcwidth' function. */ | ||
1383 | #undef HAVE_WCWIDTH | ||
1384 | |||
1385 | /* Define to 1 if you have the `_getlong' function. */ | ||
1386 | #undef HAVE__GETLONG | ||
1387 | |||
1388 | /* Define to 1 if you have the `_getpty' function. */ | ||
1389 | #undef HAVE__GETPTY | ||
1390 | |||
1391 | /* Define to 1 if you have the `_getshort' function. */ | ||
1392 | #undef HAVE__GETSHORT | ||
1393 | |||
1394 | /* Define if you have struct __res_state _res as an extern */ | ||
1395 | #undef HAVE__RES_EXTERN | ||
1396 | |||
1397 | /* Define to 1 if you have the `__b64_ntop' function. */ | ||
1398 | #undef HAVE___B64_NTOP | ||
1399 | |||
1400 | /* Define to 1 if you have the `__b64_pton' function. */ | ||
1401 | #undef HAVE___B64_PTON | ||
1402 | |||
1403 | /* Define if compiler implements __FUNCTION__ */ | ||
1404 | #undef HAVE___FUNCTION__ | ||
1405 | |||
1406 | /* Define if libc defines __progname */ | ||
1407 | #undef HAVE___PROGNAME | ||
1408 | |||
1409 | /* Fields in struct sockaddr_storage */ | ||
1410 | #undef HAVE___SS_FAMILY_IN_SS | ||
1411 | |||
1412 | /* Define if __va_copy exists */ | ||
1413 | #undef HAVE___VA_COPY | ||
1414 | |||
1415 | /* Define if compiler implements __func__ */ | ||
1416 | #undef HAVE___func__ | ||
1417 | |||
1418 | /* Define this if you are using the Heimdal version of Kerberos V5 */ | ||
1419 | #undef HEIMDAL | ||
1420 | |||
1421 | /* Define if you need to use IP address instead of hostname in $DISPLAY */ | ||
1422 | #undef IPADDR_IN_DISPLAY | ||
1423 | |||
1424 | /* Detect IPv4 in IPv6 mapped addresses and treat as IPv4 */ | ||
1425 | #undef IPV4_IN_IPV6 | ||
1426 | |||
1427 | /* Define if your system choked on IP TOS setting */ | ||
1428 | #undef IP_TOS_IS_BROKEN | ||
1429 | |||
1430 | /* Define if you want Kerberos 5 support */ | ||
1431 | #undef KRB5 | ||
1432 | |||
1433 | /* Define if pututxline updates lastlog too */ | ||
1434 | #undef LASTLOG_WRITE_PUTUTXLINE | ||
1435 | |||
1436 | /* Define to whatever link() returns for "not supported" if it doesn't return | ||
1437 | EOPNOTSUPP. */ | ||
1438 | #undef LINK_OPNOTSUPP_ERRNO | ||
1439 | |||
1440 | /* Adjust Linux out-of-memory killer */ | ||
1441 | #undef LINUX_OOM_ADJUST | ||
1442 | |||
1443 | /* max value of long long calculated by configure */ | ||
1444 | #undef LLONG_MAX | ||
1445 | |||
1446 | /* min value of long long calculated by configure */ | ||
1447 | #undef LLONG_MIN | ||
1448 | |||
1449 | /* Account locked with pw(1) */ | ||
1450 | #undef LOCKED_PASSWD_PREFIX | ||
1451 | |||
1452 | /* String used in /etc/passwd to denote locked account */ | ||
1453 | #undef LOCKED_PASSWD_STRING | ||
1454 | |||
1455 | /* String used in /etc/passwd to denote locked account */ | ||
1456 | #undef LOCKED_PASSWD_SUBSTR | ||
1457 | |||
1458 | /* Some versions of /bin/login need the TERM supplied on the commandline */ | ||
1459 | #undef LOGIN_NEEDS_TERM | ||
1460 | |||
1461 | /* Some systems need a utmpx entry for /bin/login to work */ | ||
1462 | #undef LOGIN_NEEDS_UTMPX | ||
1463 | |||
1464 | /* Define if your login program cannot handle end of options ("--") */ | ||
1465 | #undef LOGIN_NO_ENDOPT | ||
1466 | |||
1467 | /* If your header files don't define LOGIN_PROGRAM, then use this (detected) | ||
1468 | from environment and PATH */ | ||
1469 | #undef LOGIN_PROGRAM_FALLBACK | ||
1470 | |||
1471 | /* Set this to your mail directory if you do not have _PATH_MAILDIR */ | ||
1472 | #undef MAIL_DIRECTORY | ||
1473 | |||
1474 | /* Need setpgrp to acquire controlling tty */ | ||
1475 | #undef NEED_SETPGRP | ||
1476 | |||
1477 | /* compiler does not accept __attribute__ on return types */ | ||
1478 | #undef NO_ATTRIBUTE_ON_RETURN_TYPE | ||
1479 | |||
1480 | /* Define if you don't want to use lastlog in session.c */ | ||
1481 | #undef NO_SSH_LASTLOG | ||
1482 | |||
1483 | /* Define to disable UID restoration test */ | ||
1484 | #undef NO_UID_RESTORATION_TEST | ||
1485 | |||
1486 | /* Define if X11 doesn't support AF_UNIX sockets on that system */ | ||
1487 | #undef NO_X11_UNIX_SOCKETS | ||
1488 | |||
1489 | /* Define if EVP_DigestUpdate returns void */ | ||
1490 | #undef OPENSSL_EVP_DIGESTUPDATE_VOID | ||
1491 | |||
1492 | /* OpenSSL has ECC */ | ||
1493 | #undef OPENSSL_HAS_ECC | ||
1494 | |||
1495 | /* libcrypto has NID_X9_62_prime256v1 */ | ||
1496 | #undef OPENSSL_HAS_NISTP256 | ||
1497 | |||
1498 | /* libcrypto has NID_secp384r1 */ | ||
1499 | #undef OPENSSL_HAS_NISTP384 | ||
1500 | |||
1501 | /* libcrypto has NID_secp521r1 */ | ||
1502 | #undef OPENSSL_HAS_NISTP521 | ||
1503 | |||
1504 | /* libcrypto has EVP AES CTR */ | ||
1505 | #undef OPENSSL_HAVE_EVPCTR | ||
1506 | |||
1507 | /* libcrypto has EVP AES GCM */ | ||
1508 | #undef OPENSSL_HAVE_EVPGCM | ||
1509 | |||
1510 | /* libcrypto is missing AES 192 and 256 bit functions */ | ||
1511 | #undef OPENSSL_LOBOTOMISED_AES | ||
1512 | |||
1513 | /* Define if you want the OpenSSL internally seeded PRNG only */ | ||
1514 | #undef OPENSSL_PRNG_ONLY | ||
1515 | |||
1516 | /* Define to the address where bug reports for this package should be sent. */ | ||
1517 | #undef PACKAGE_BUGREPORT | ||
1518 | |||
1519 | /* Define to the full name of this package. */ | ||
1520 | #undef PACKAGE_NAME | ||
1521 | |||
1522 | /* Define to the full name and version of this package. */ | ||
1523 | #undef PACKAGE_STRING | ||
1524 | |||
1525 | /* Define to the one symbol short name of this package. */ | ||
1526 | #undef PACKAGE_TARNAME | ||
1527 | |||
1528 | /* Define to the version of this package. */ | ||
1529 | #undef PACKAGE_VERSION | ||
1530 | |||
1531 | /* Define if you are using Solaris-derived PAM which passes pam_messages to | ||
1532 | the conversation function with an extra level of indirection */ | ||
1533 | #undef PAM_SUN_CODEBASE | ||
1534 | |||
1535 | /* Work around problematic Linux PAM modules handling of PAM_TTY */ | ||
1536 | #undef PAM_TTY_KLUDGE | ||
1537 | |||
1538 | /* must supply username to passwd */ | ||
1539 | #undef PASSWD_NEEDS_USERNAME | ||
1540 | |||
1541 | /* System dirs owned by bin (uid 2) */ | ||
1542 | #undef PLATFORM_SYS_DIR_UID | ||
1543 | |||
1544 | /* Port number of PRNGD/EGD random number socket */ | ||
1545 | #undef PRNGD_PORT | ||
1546 | |||
1547 | /* Location of PRNGD/EGD random number socket */ | ||
1548 | #undef PRNGD_SOCKET | ||
1549 | |||
1550 | /* read(1) can return 0 for a non-closed fd */ | ||
1551 | #undef PTY_ZEROREAD | ||
1552 | |||
1553 | /* Sandbox using capsicum */ | ||
1554 | #undef SANDBOX_CAPSICUM | ||
1555 | |||
1556 | /* Sandbox using Darwin sandbox_init(3) */ | ||
1557 | #undef SANDBOX_DARWIN | ||
1558 | |||
1559 | /* no privsep sandboxing */ | ||
1560 | #undef SANDBOX_NULL | ||
1561 | |||
1562 | /* Sandbox using pledge(2) */ | ||
1563 | #undef SANDBOX_PLEDGE | ||
1564 | |||
1565 | /* Sandbox using setrlimit(2) */ | ||
1566 | #undef SANDBOX_RLIMIT | ||
1567 | |||
1568 | /* Sandbox using seccomp filter */ | ||
1569 | #undef SANDBOX_SECCOMP_FILTER | ||
1570 | |||
1571 | /* setrlimit RLIMIT_FSIZE works */ | ||
1572 | #undef SANDBOX_SKIP_RLIMIT_FSIZE | ||
1573 | |||
1574 | /* define if setrlimit RLIMIT_NOFILE breaks things */ | ||
1575 | #undef SANDBOX_SKIP_RLIMIT_NOFILE | ||
1576 | |||
1577 | /* Sandbox using Solaris/Illumos privileges */ | ||
1578 | #undef SANDBOX_SOLARIS | ||
1579 | |||
1580 | /* Sandbox using systrace(4) */ | ||
1581 | #undef SANDBOX_SYSTRACE | ||
1582 | |||
1583 | /* Specify the system call convention in use */ | ||
1584 | #undef SECCOMP_AUDIT_ARCH | ||
1585 | |||
1586 | /* Define if your platform breaks doing a seteuid before a setuid */ | ||
1587 | #undef SETEUID_BREAKS_SETUID | ||
1588 | |||
1589 | /* The size of `int', as computed by sizeof. */ | ||
1590 | #undef SIZEOF_INT | ||
1591 | |||
1592 | /* The size of `long int', as computed by sizeof. */ | ||
1593 | #undef SIZEOF_LONG_INT | ||
1594 | |||
1595 | /* The size of `long long int', as computed by sizeof. */ | ||
1596 | #undef SIZEOF_LONG_LONG_INT | ||
1597 | |||
1598 | /* The size of `short int', as computed by sizeof. */ | ||
1599 | #undef SIZEOF_SHORT_INT | ||
1600 | |||
1601 | /* Define if you want S/Key support */ | ||
1602 | #undef SKEY | ||
1603 | |||
1604 | /* Define if your skeychallenge() function takes 4 arguments (NetBSD) */ | ||
1605 | #undef SKEYCHALLENGE_4ARG | ||
1606 | |||
1607 | /* Define as const if snprintf() can declare const char *fmt */ | ||
1608 | #undef SNPRINTF_CONST | ||
1609 | |||
1610 | /* Define to a Set Process Title type if your system is supported by | ||
1611 | bsd-setproctitle.c */ | ||
1612 | #undef SPT_TYPE | ||
1613 | |||
1614 | /* Define if sshd somehow reacquires a controlling TTY after setsid() */ | ||
1615 | #undef SSHD_ACQUIRES_CTTY | ||
1616 | |||
1617 | /* Define if pam_chauthtok wants real uid set to the unpriv'ed user */ | ||
1618 | #undef SSHPAM_CHAUTHTOK_NEEDS_RUID | ||
1619 | |||
1620 | /* Use audit debugging module */ | ||
1621 | #undef SSH_AUDIT_EVENTS | ||
1622 | |||
1623 | /* Windows is sensitive to read buffer size */ | ||
1624 | #undef SSH_IOBUFSZ | ||
1625 | |||
1626 | /* non-privileged user for privilege separation */ | ||
1627 | #undef SSH_PRIVSEP_USER | ||
1628 | |||
1629 | /* Use tunnel device compatibility to OpenBSD */ | ||
1630 | #undef SSH_TUN_COMPAT_AF | ||
1631 | |||
1632 | /* Open tunnel devices the FreeBSD way */ | ||
1633 | #undef SSH_TUN_FREEBSD | ||
1634 | |||
1635 | /* Open tunnel devices the Linux tun/tap way */ | ||
1636 | #undef SSH_TUN_LINUX | ||
1637 | |||
1638 | /* No layer 2 tunnel support */ | ||
1639 | #undef SSH_TUN_NO_L2 | ||
1640 | |||
1641 | /* Open tunnel devices the OpenBSD way */ | ||
1642 | #undef SSH_TUN_OPENBSD | ||
1643 | |||
1644 | /* Prepend the address family to IP tunnel traffic */ | ||
1645 | #undef SSH_TUN_PREPEND_AF | ||
1646 | |||
1647 | /* Define to 1 if you have the ANSI C header files. */ | ||
1648 | #undef STDC_HEADERS | ||
1649 | |||
1650 | /* Define if you want a different $PATH for the superuser */ | ||
1651 | #undef SUPERUSER_PATH | ||
1652 | |||
1653 | /* syslog_r function is safe to use in in a signal handler */ | ||
1654 | #undef SYSLOG_R_SAFE_IN_SIGHAND | ||
1655 | |||
1656 | /* Support passwords > 8 chars */ | ||
1657 | #undef UNIXWARE_LONG_PASSWORDS | ||
1658 | |||
1659 | /* Specify default $PATH */ | ||
1660 | #undef USER_PATH | ||
1661 | |||
1662 | /* Define this if you want to use libkafs' AFS support */ | ||
1663 | #undef USE_AFS | ||
1664 | |||
1665 | /* Use BSM audit module */ | ||
1666 | #undef USE_BSM_AUDIT | ||
1667 | |||
1668 | /* Use btmp to log bad logins */ | ||
1669 | #undef USE_BTMP | ||
1670 | |||
1671 | /* Use libedit for sftp */ | ||
1672 | #undef USE_LIBEDIT | ||
1673 | |||
1674 | /* Use Linux audit module */ | ||
1675 | #undef USE_LINUX_AUDIT | ||
1676 | |||
1677 | /* Enable OpenSSL engine support */ | ||
1678 | #undef USE_OPENSSL_ENGINE | ||
1679 | |||
1680 | /* Define if you want to enable PAM support */ | ||
1681 | #undef USE_PAM | ||
1682 | |||
1683 | /* Use PIPES instead of a socketpair() */ | ||
1684 | #undef USE_PIPES | ||
1685 | |||
1686 | /* Define if you have Solaris privileges */ | ||
1687 | #undef USE_SOLARIS_PRIVS | ||
1688 | |||
1689 | /* Define if you have Solaris process contracts */ | ||
1690 | #undef USE_SOLARIS_PROCESS_CONTRACTS | ||
1691 | |||
1692 | /* Define if you have Solaris projects */ | ||
1693 | #undef USE_SOLARIS_PROJECTS | ||
1694 | |||
1695 | /* Define if you shouldn't strip 'tty' from your ttyname in [uw]tmp */ | ||
1696 | #undef WITH_ABBREV_NO_TTY | ||
1697 | |||
1698 | /* Define if you want to enable AIX4's authenticate function */ | ||
1699 | #undef WITH_AIXAUTHENTICATE | ||
1700 | |||
1701 | /* Define if you have/want arrays (cluster-wide session managment, not C | ||
1702 | arrays) */ | ||
1703 | #undef WITH_IRIX_ARRAY | ||
1704 | |||
1705 | /* Define if you want IRIX audit trails */ | ||
1706 | #undef WITH_IRIX_AUDIT | ||
1707 | |||
1708 | /* Define if you want IRIX kernel jobs */ | ||
1709 | #undef WITH_IRIX_JOBS | ||
1710 | |||
1711 | /* Define if you want IRIX project management */ | ||
1712 | #undef WITH_IRIX_PROJECT | ||
1713 | |||
1714 | /* use libcrypto for cryptography */ | ||
1715 | #undef WITH_OPENSSL | ||
1716 | |||
1717 | /* Define if you want SELinux support. */ | ||
1718 | #undef WITH_SELINUX | ||
1719 | |||
1720 | /* include SSH protocol version 1 support */ | ||
1721 | #undef WITH_SSH1 | ||
1722 | |||
1723 | /* Define to 1 if your processor stores words with the most significant byte | ||
1724 | first (like Motorola and SPARC, unlike Intel and VAX). */ | ||
1725 | #undef WORDS_BIGENDIAN | ||
1726 | |||
1727 | /* Define if xauth is found in your path */ | ||
1728 | #undef XAUTH_PATH | ||
1729 | |||
1730 | /* Number of bits in a file offset, on hosts where this is settable. */ | ||
1731 | #undef _FILE_OFFSET_BITS | ||
1732 | |||
1733 | /* Define for large files, on AIX-style hosts. */ | ||
1734 | #undef _LARGE_FILES | ||
1735 | |||
1736 | /* log for bad login attempts */ | ||
1737 | #undef _PATH_BTMP | ||
1738 | |||
1739 | /* Full path of your "passwd" program */ | ||
1740 | #undef _PATH_PASSWD_PROG | ||
1741 | |||
1742 | /* Specify location of ssh.pid */ | ||
1743 | #undef _PATH_SSH_PIDDIR | ||
1744 | |||
1745 | /* Define if we don't have struct __res_state in resolv.h */ | ||
1746 | #undef __res_state | ||
1747 | |||
1748 | /* Define to `__inline__' or `__inline' if that's what the C compiler | ||
1749 | calls it, or to nothing if 'inline' is not supported under any name. */ | ||
1750 | #ifndef __cplusplus | ||
1751 | #undef inline | ||
1752 | #endif | ||
1753 | |||
1754 | /* type to use in place of socklen_t if not defined */ | ||
1755 | #undef socklen_t | ||
diff --git a/configure b/configure new file mode 100755 index 000000000..c836ee546 --- /dev/null +++ b/configure | |||
@@ -0,0 +1,37573 @@ | |||
1 | #! /bin/sh | ||
2 | # From configure.ac Revision: 1.583 . | ||
3 | # Guess values for system-dependent variables and create Makefiles. | ||
4 | # Generated by GNU Autoconf 2.61 for OpenSSH Portable. | ||
5 | # | ||
6 | # Report bugs to <openssh-unix-dev@mindrot.org>. | ||
7 | # | ||
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
9 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
10 | # This configure script is free software; the Free Software Foundation | ||
11 | # gives unlimited permission to copy, distribute and modify it. | ||
12 | ## --------------------- ## | ||
13 | ## M4sh Initialization. ## | ||
14 | ## --------------------- ## | ||
15 | |||
16 | # Be more Bourne compatible | ||
17 | DUALCASE=1; export DUALCASE # for MKS sh | ||
18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
19 | emulate sh | ||
20 | NULLCMD=: | ||
21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
22 | # is contrary to our usage. Disable this feature. | ||
23 | alias -g '${1+"$@"}'='"$@"' | ||
24 | setopt NO_GLOB_SUBST | ||
25 | else | ||
26 | case `(set -o) 2>/dev/null` in | ||
27 | *posix*) set -o posix ;; | ||
28 | esac | ||
29 | |||
30 | fi | ||
31 | |||
32 | |||
33 | |||
34 | |||
35 | # PATH needs CR | ||
36 | # Avoid depending upon Character Ranges. | ||
37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
40 | as_cr_digits='0123456789' | ||
41 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
42 | |||
43 | # The user is always right. | ||
44 | if test "${PATH_SEPARATOR+set}" != set; then | ||
45 | echo "#! /bin/sh" >conf$$.sh | ||
46 | echo "exit 0" >>conf$$.sh | ||
47 | chmod +x conf$$.sh | ||
48 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
49 | PATH_SEPARATOR=';' | ||
50 | else | ||
51 | PATH_SEPARATOR=: | ||
52 | fi | ||
53 | rm -f conf$$.sh | ||
54 | fi | ||
55 | |||
56 | # Support unset when possible. | ||
57 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
58 | as_unset=unset | ||
59 | else | ||
60 | as_unset=false | ||
61 | fi | ||
62 | |||
63 | |||
64 | # IFS | ||
65 | # We need space, tab and new line, in precisely that order. Quoting is | ||
66 | # there to prevent editors from complaining about space-tab. | ||
67 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
68 | # splitting by setting IFS to empty value.) | ||
69 | as_nl=' | ||
70 | ' | ||
71 | IFS=" "" $as_nl" | ||
72 | |||
73 | # Find who we are. Look in the path if we contain no directory separator. | ||
74 | case $0 in | ||
75 | *[\\/]* ) as_myself=$0 ;; | ||
76 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
77 | for as_dir in $PATH | ||
78 | do | ||
79 | IFS=$as_save_IFS | ||
80 | test -z "$as_dir" && as_dir=. | ||
81 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
82 | done | ||
83 | IFS=$as_save_IFS | ||
84 | |||
85 | ;; | ||
86 | esac | ||
87 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
88 | # in which case we are not to be found in the path. | ||
89 | if test "x$as_myself" = x; then | ||
90 | as_myself=$0 | ||
91 | fi | ||
92 | if test ! -f "$as_myself"; then | ||
93 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
94 | { (exit 1); exit 1; } | ||
95 | fi | ||
96 | |||
97 | # Work around bugs in pre-3.0 UWIN ksh. | ||
98 | for as_var in ENV MAIL MAILPATH | ||
99 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
100 | done | ||
101 | PS1='$ ' | ||
102 | PS2='> ' | ||
103 | PS4='+ ' | ||
104 | |||
105 | # NLS nuisances. | ||
106 | for as_var in \ | ||
107 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
108 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
109 | LC_TELEPHONE LC_TIME | ||
110 | do | ||
111 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
112 | eval $as_var=C; export $as_var | ||
113 | else | ||
114 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
115 | fi | ||
116 | done | ||
117 | |||
118 | # Required to use basename. | ||
119 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
120 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
121 | as_expr=expr | ||
122 | else | ||
123 | as_expr=false | ||
124 | fi | ||
125 | |||
126 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
127 | as_basename=basename | ||
128 | else | ||
129 | as_basename=false | ||
130 | fi | ||
131 | |||
132 | |||
133 | # Name of the executable. | ||
134 | as_me=`$as_basename -- "$0" || | ||
135 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
136 | X"$0" : 'X\(//\)$' \| \ | ||
137 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
138 | echo X/"$0" | | ||
139 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
140 | s//\1/ | ||
141 | q | ||
142 | } | ||
143 | /^X\/\(\/\/\)$/{ | ||
144 | s//\1/ | ||
145 | q | ||
146 | } | ||
147 | /^X\/\(\/\).*/{ | ||
148 | s//\1/ | ||
149 | q | ||
150 | } | ||
151 | s/.*/./; q'` | ||
152 | |||
153 | # CDPATH. | ||
154 | $as_unset CDPATH | ||
155 | |||
156 | |||
157 | if test "x$CONFIG_SHELL" = x; then | ||
158 | if (eval ":") 2>/dev/null; then | ||
159 | as_have_required=yes | ||
160 | else | ||
161 | as_have_required=no | ||
162 | fi | ||
163 | |||
164 | if test $as_have_required = yes && (eval ": | ||
165 | (as_func_return () { | ||
166 | (exit \$1) | ||
167 | } | ||
168 | as_func_success () { | ||
169 | as_func_return 0 | ||
170 | } | ||
171 | as_func_failure () { | ||
172 | as_func_return 1 | ||
173 | } | ||
174 | as_func_ret_success () { | ||
175 | return 0 | ||
176 | } | ||
177 | as_func_ret_failure () { | ||
178 | return 1 | ||
179 | } | ||
180 | |||
181 | exitcode=0 | ||
182 | if as_func_success; then | ||
183 | : | ||
184 | else | ||
185 | exitcode=1 | ||
186 | echo as_func_success failed. | ||
187 | fi | ||
188 | |||
189 | if as_func_failure; then | ||
190 | exitcode=1 | ||
191 | echo as_func_failure succeeded. | ||
192 | fi | ||
193 | |||
194 | if as_func_ret_success; then | ||
195 | : | ||
196 | else | ||
197 | exitcode=1 | ||
198 | echo as_func_ret_success failed. | ||
199 | fi | ||
200 | |||
201 | if as_func_ret_failure; then | ||
202 | exitcode=1 | ||
203 | echo as_func_ret_failure succeeded. | ||
204 | fi | ||
205 | |||
206 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
207 | : | ||
208 | else | ||
209 | exitcode=1 | ||
210 | echo positional parameters were not saved. | ||
211 | fi | ||
212 | |||
213 | test \$exitcode = 0) || { (exit 1); exit 1; } | ||
214 | |||
215 | ( | ||
216 | as_lineno_1=\$LINENO | ||
217 | as_lineno_2=\$LINENO | ||
218 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | ||
219 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | ||
220 | ") 2> /dev/null; then | ||
221 | : | ||
222 | else | ||
223 | as_candidate_shells= | ||
224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
225 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
226 | do | ||
227 | IFS=$as_save_IFS | ||
228 | test -z "$as_dir" && as_dir=. | ||
229 | case $as_dir in | ||
230 | /*) | ||
231 | for as_base in sh bash ksh sh5; do | ||
232 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | ||
233 | done;; | ||
234 | esac | ||
235 | done | ||
236 | IFS=$as_save_IFS | ||
237 | |||
238 | |||
239 | for as_shell in $as_candidate_shells $SHELL; do | ||
240 | # Try only shells that exist, to save several forks. | ||
241 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
242 | { ("$as_shell") 2> /dev/null <<\_ASEOF | ||
243 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
244 | emulate sh | ||
245 | NULLCMD=: | ||
246 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
247 | # is contrary to our usage. Disable this feature. | ||
248 | alias -g '${1+"$@"}'='"$@"' | ||
249 | setopt NO_GLOB_SUBST | ||
250 | else | ||
251 | case `(set -o) 2>/dev/null` in | ||
252 | *posix*) set -o posix ;; | ||
253 | esac | ||
254 | |||
255 | fi | ||
256 | |||
257 | |||
258 | : | ||
259 | _ASEOF | ||
260 | }; then | ||
261 | CONFIG_SHELL=$as_shell | ||
262 | as_have_required=yes | ||
263 | if { "$as_shell" 2> /dev/null <<\_ASEOF | ||
264 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
265 | emulate sh | ||
266 | NULLCMD=: | ||
267 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
268 | # is contrary to our usage. Disable this feature. | ||
269 | alias -g '${1+"$@"}'='"$@"' | ||
270 | setopt NO_GLOB_SUBST | ||
271 | else | ||
272 | case `(set -o) 2>/dev/null` in | ||
273 | *posix*) set -o posix ;; | ||
274 | esac | ||
275 | |||
276 | fi | ||
277 | |||
278 | |||
279 | : | ||
280 | (as_func_return () { | ||
281 | (exit $1) | ||
282 | } | ||
283 | as_func_success () { | ||
284 | as_func_return 0 | ||
285 | } | ||
286 | as_func_failure () { | ||
287 | as_func_return 1 | ||
288 | } | ||
289 | as_func_ret_success () { | ||
290 | return 0 | ||
291 | } | ||
292 | as_func_ret_failure () { | ||
293 | return 1 | ||
294 | } | ||
295 | |||
296 | exitcode=0 | ||
297 | if as_func_success; then | ||
298 | : | ||
299 | else | ||
300 | exitcode=1 | ||
301 | echo as_func_success failed. | ||
302 | fi | ||
303 | |||
304 | if as_func_failure; then | ||
305 | exitcode=1 | ||
306 | echo as_func_failure succeeded. | ||
307 | fi | ||
308 | |||
309 | if as_func_ret_success; then | ||
310 | : | ||
311 | else | ||
312 | exitcode=1 | ||
313 | echo as_func_ret_success failed. | ||
314 | fi | ||
315 | |||
316 | if as_func_ret_failure; then | ||
317 | exitcode=1 | ||
318 | echo as_func_ret_failure succeeded. | ||
319 | fi | ||
320 | |||
321 | if ( set x; as_func_ret_success y && test x = "$1" ); then | ||
322 | : | ||
323 | else | ||
324 | exitcode=1 | ||
325 | echo positional parameters were not saved. | ||
326 | fi | ||
327 | |||
328 | test $exitcode = 0) || { (exit 1); exit 1; } | ||
329 | |||
330 | ( | ||
331 | as_lineno_1=$LINENO | ||
332 | as_lineno_2=$LINENO | ||
333 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
334 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | ||
335 | |||
336 | _ASEOF | ||
337 | }; then | ||
338 | break | ||
339 | fi | ||
340 | |||
341 | fi | ||
342 | |||
343 | done | ||
344 | |||
345 | if test "x$CONFIG_SHELL" != x; then | ||
346 | for as_var in BASH_ENV ENV | ||
347 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
348 | done | ||
349 | export CONFIG_SHELL | ||
350 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
351 | fi | ||
352 | |||
353 | |||
354 | if test $as_have_required = no; then | ||
355 | echo This script requires a shell more modern than all the | ||
356 | echo shells that I found on your system. Please install a | ||
357 | echo modern shell, or manually run the script under such a | ||
358 | echo shell if you do have one. | ||
359 | { (exit 1); exit 1; } | ||
360 | fi | ||
361 | |||
362 | |||
363 | fi | ||
364 | |||
365 | fi | ||
366 | |||
367 | |||
368 | |||
369 | (eval "as_func_return () { | ||
370 | (exit \$1) | ||
371 | } | ||
372 | as_func_success () { | ||
373 | as_func_return 0 | ||
374 | } | ||
375 | as_func_failure () { | ||
376 | as_func_return 1 | ||
377 | } | ||
378 | as_func_ret_success () { | ||
379 | return 0 | ||
380 | } | ||
381 | as_func_ret_failure () { | ||
382 | return 1 | ||
383 | } | ||
384 | |||
385 | exitcode=0 | ||
386 | if as_func_success; then | ||
387 | : | ||
388 | else | ||
389 | exitcode=1 | ||
390 | echo as_func_success failed. | ||
391 | fi | ||
392 | |||
393 | if as_func_failure; then | ||
394 | exitcode=1 | ||
395 | echo as_func_failure succeeded. | ||
396 | fi | ||
397 | |||
398 | if as_func_ret_success; then | ||
399 | : | ||
400 | else | ||
401 | exitcode=1 | ||
402 | echo as_func_ret_success failed. | ||
403 | fi | ||
404 | |||
405 | if as_func_ret_failure; then | ||
406 | exitcode=1 | ||
407 | echo as_func_ret_failure succeeded. | ||
408 | fi | ||
409 | |||
410 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
411 | : | ||
412 | else | ||
413 | exitcode=1 | ||
414 | echo positional parameters were not saved. | ||
415 | fi | ||
416 | |||
417 | test \$exitcode = 0") || { | ||
418 | echo No shell found that supports shell functions. | ||
419 | echo Please tell autoconf@gnu.org about your system, | ||
420 | echo including any error possibly output before this | ||
421 | echo message | ||
422 | } | ||
423 | |||
424 | |||
425 | |||
426 | as_lineno_1=$LINENO | ||
427 | as_lineno_2=$LINENO | ||
428 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
429 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
430 | |||
431 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
432 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
433 | # line-number line after each line using $LINENO; the second 'sed' | ||
434 | # does the real work. The second script uses 'N' to pair each | ||
435 | # line-number line with the line containing $LINENO, and appends | ||
436 | # trailing '-' during substitution so that $LINENO is not a special | ||
437 | # case at line end. | ||
438 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
439 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
440 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
441 | sed -n ' | ||
442 | p | ||
443 | /[$]LINENO/= | ||
444 | ' <$as_myself | | ||
445 | sed ' | ||
446 | s/[$]LINENO.*/&-/ | ||
447 | t lineno | ||
448 | b | ||
449 | :lineno | ||
450 | N | ||
451 | :loop | ||
452 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
453 | t loop | ||
454 | s/-\n.*// | ||
455 | ' >$as_me.lineno && | ||
456 | chmod +x "$as_me.lineno" || | ||
457 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
458 | { (exit 1); exit 1; }; } | ||
459 | |||
460 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
461 | # (the dirname of $[0] is not the place where we might find the | ||
462 | # original and so on. Autoconf is especially sensitive to this). | ||
463 | . "./$as_me.lineno" | ||
464 | # Exit status is that of the last command. | ||
465 | exit | ||
466 | } | ||
467 | |||
468 | |||
469 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
470 | as_dirname=dirname | ||
471 | else | ||
472 | as_dirname=false | ||
473 | fi | ||
474 | |||
475 | ECHO_C= ECHO_N= ECHO_T= | ||
476 | case `echo -n x` in | ||
477 | -n*) | ||
478 | case `echo 'x\c'` in | ||
479 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
480 | *) ECHO_C='\c';; | ||
481 | esac;; | ||
482 | *) | ||
483 | ECHO_N='-n';; | ||
484 | esac | ||
485 | |||
486 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
487 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
488 | as_expr=expr | ||
489 | else | ||
490 | as_expr=false | ||
491 | fi | ||
492 | |||
493 | rm -f conf$$ conf$$.exe conf$$.file | ||
494 | if test -d conf$$.dir; then | ||
495 | rm -f conf$$.dir/conf$$.file | ||
496 | else | ||
497 | rm -f conf$$.dir | ||
498 | mkdir conf$$.dir | ||
499 | fi | ||
500 | echo >conf$$.file | ||
501 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
502 | as_ln_s='ln -s' | ||
503 | # ... but there are two gotchas: | ||
504 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
505 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
506 | # In both cases, we have to default to `cp -p'. | ||
507 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
508 | as_ln_s='cp -p' | ||
509 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
510 | as_ln_s=ln | ||
511 | else | ||
512 | as_ln_s='cp -p' | ||
513 | fi | ||
514 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
515 | rmdir conf$$.dir 2>/dev/null | ||
516 | |||
517 | if mkdir -p . 2>/dev/null; then | ||
518 | as_mkdir_p=: | ||
519 | else | ||
520 | test -d ./-p && rmdir ./-p | ||
521 | as_mkdir_p=false | ||
522 | fi | ||
523 | |||
524 | if test -x / >/dev/null 2>&1; then | ||
525 | as_test_x='test -x' | ||
526 | else | ||
527 | if ls -dL / >/dev/null 2>&1; then | ||
528 | as_ls_L_option=L | ||
529 | else | ||
530 | as_ls_L_option= | ||
531 | fi | ||
532 | as_test_x=' | ||
533 | eval sh -c '\'' | ||
534 | if test -d "$1"; then | ||
535 | test -d "$1/."; | ||
536 | else | ||
537 | case $1 in | ||
538 | -*)set "./$1";; | ||
539 | esac; | ||
540 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | ||
541 | ???[sx]*):;;*)false;;esac;fi | ||
542 | '\'' sh | ||
543 | ' | ||
544 | fi | ||
545 | as_executable_p=$as_test_x | ||
546 | |||
547 | # Sed expression to map a string onto a valid CPP name. | ||
548 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
549 | |||
550 | # Sed expression to map a string onto a valid variable name. | ||
551 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
552 | |||
553 | |||
554 | |||
555 | exec 7<&0 </dev/null 6>&1 | ||
556 | |||
557 | # Name of the host. | ||
558 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
559 | # so uname gets run too. | ||
560 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
561 | |||
562 | # | ||
563 | # Initializations. | ||
564 | # | ||
565 | ac_default_prefix=/usr/local | ||
566 | ac_clean_files= | ||
567 | ac_config_libobj_dir=. | ||
568 | LIBOBJS= | ||
569 | cross_compiling=no | ||
570 | subdirs= | ||
571 | MFLAGS= | ||
572 | MAKEFLAGS= | ||
573 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
574 | |||
575 | # Identity of this package. | ||
576 | PACKAGE_NAME='OpenSSH' | ||
577 | PACKAGE_TARNAME='openssh' | ||
578 | PACKAGE_VERSION='Portable' | ||
579 | PACKAGE_STRING='OpenSSH Portable' | ||
580 | PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org' | ||
581 | |||
582 | ac_unique_file="ssh.c" | ||
583 | # Factoring default headers for most tests. | ||
584 | ac_includes_default="\ | ||
585 | #include <stdio.h> | ||
586 | #ifdef HAVE_SYS_TYPES_H | ||
587 | # include <sys/types.h> | ||
588 | #endif | ||
589 | #ifdef HAVE_SYS_STAT_H | ||
590 | # include <sys/stat.h> | ||
591 | #endif | ||
592 | #ifdef STDC_HEADERS | ||
593 | # include <stdlib.h> | ||
594 | # include <stddef.h> | ||
595 | #else | ||
596 | # ifdef HAVE_STDLIB_H | ||
597 | # include <stdlib.h> | ||
598 | # endif | ||
599 | #endif | ||
600 | #ifdef HAVE_STRING_H | ||
601 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
602 | # include <memory.h> | ||
603 | # endif | ||
604 | # include <string.h> | ||
605 | #endif | ||
606 | #ifdef HAVE_STRINGS_H | ||
607 | # include <strings.h> | ||
608 | #endif | ||
609 | #ifdef HAVE_INTTYPES_H | ||
610 | # include <inttypes.h> | ||
611 | #endif | ||
612 | #ifdef HAVE_STDINT_H | ||
613 | # include <stdint.h> | ||
614 | #endif | ||
615 | #ifdef HAVE_UNISTD_H | ||
616 | # include <unistd.h> | ||
617 | #endif" | ||
618 | |||
619 | ac_subst_vars='SHELL | ||
620 | PATH_SEPARATOR | ||
621 | PACKAGE_NAME | ||
622 | PACKAGE_TARNAME | ||
623 | PACKAGE_VERSION | ||
624 | PACKAGE_STRING | ||
625 | PACKAGE_BUGREPORT | ||
626 | exec_prefix | ||
627 | prefix | ||
628 | program_transform_name | ||
629 | bindir | ||
630 | sbindir | ||
631 | libexecdir | ||
632 | datarootdir | ||
633 | datadir | ||
634 | sysconfdir | ||
635 | sharedstatedir | ||
636 | localstatedir | ||
637 | includedir | ||
638 | oldincludedir | ||
639 | docdir | ||
640 | infodir | ||
641 | htmldir | ||
642 | dvidir | ||
643 | pdfdir | ||
644 | psdir | ||
645 | libdir | ||
646 | localedir | ||
647 | mandir | ||
648 | DEFS | ||
649 | ECHO_C | ||
650 | ECHO_N | ||
651 | ECHO_T | ||
652 | LIBS | ||
653 | build_alias | ||
654 | host_alias | ||
655 | target_alias | ||
656 | CC | ||
657 | CFLAGS | ||
658 | LDFLAGS | ||
659 | CPPFLAGS | ||
660 | ac_ct_CC | ||
661 | EXEEXT | ||
662 | OBJEXT | ||
663 | build | ||
664 | build_cpu | ||
665 | build_vendor | ||
666 | build_os | ||
667 | host | ||
668 | host_cpu | ||
669 | host_vendor | ||
670 | host_os | ||
671 | CPP | ||
672 | GREP | ||
673 | EGREP | ||
674 | AWK | ||
675 | RANLIB | ||
676 | INSTALL_PROGRAM | ||
677 | INSTALL_SCRIPT | ||
678 | INSTALL_DATA | ||
679 | AR | ||
680 | ac_ct_AR | ||
681 | CAT | ||
682 | KILL | ||
683 | PERL | ||
684 | SED | ||
685 | ENT | ||
686 | TEST_MINUS_S_SH | ||
687 | SH | ||
688 | GROFF | ||
689 | NROFF | ||
690 | MANDOC | ||
691 | TEST_SHELL | ||
692 | MANFMT | ||
693 | PATH_GROUPADD_PROG | ||
694 | PATH_USERADD_PROG | ||
695 | MAKE_PACKAGE_SUPPORTED | ||
696 | STARTUP_SCRIPT_SHELL | ||
697 | LOGIN_PROGRAM_FALLBACK | ||
698 | PATH_PASSWD_PROG | ||
699 | LD | ||
700 | PKGCONFIG | ||
701 | LIBEDIT | ||
702 | TEST_SSH_ECC | ||
703 | COMMENT_OUT_ECC | ||
704 | SSH_PRIVSEP_USER | ||
705 | SSHLIBS | ||
706 | SSHDLIBS | ||
707 | KRB5CONF | ||
708 | GSSLIBS | ||
709 | K5LIBS | ||
710 | PRIVSEP_PATH | ||
711 | xauth_path | ||
712 | STRIP_OPT | ||
713 | XAUTH_PATH | ||
714 | MANTYPE | ||
715 | mansubdir | ||
716 | user_path | ||
717 | piddir | ||
718 | TEST_SSH_IPV6 | ||
719 | TEST_MALLOC_OPTIONS | ||
720 | UNSUPPORTED_ALGORITHMS | ||
721 | LIBOBJS | ||
722 | LTLIBOBJS' | ||
723 | ac_subst_files='' | ||
724 | ac_precious_vars='build_alias | ||
725 | host_alias | ||
726 | target_alias | ||
727 | CC | ||
728 | CFLAGS | ||
729 | LDFLAGS | ||
730 | LIBS | ||
731 | CPPFLAGS | ||
732 | CPP' | ||
733 | |||
734 | |||
735 | # Initialize some variables set by options. | ||
736 | ac_init_help= | ||
737 | ac_init_version=false | ||
738 | # The variables have the same names as the options, with | ||
739 | # dashes changed to underlines. | ||
740 | cache_file=/dev/null | ||
741 | exec_prefix=NONE | ||
742 | no_create= | ||
743 | no_recursion= | ||
744 | prefix=NONE | ||
745 | program_prefix=NONE | ||
746 | program_suffix=NONE | ||
747 | program_transform_name=s,x,x, | ||
748 | silent= | ||
749 | site= | ||
750 | srcdir= | ||
751 | verbose= | ||
752 | x_includes=NONE | ||
753 | x_libraries=NONE | ||
754 | |||
755 | # Installation directory options. | ||
756 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
757 | # and all the variables that are supposed to be based on exec_prefix | ||
758 | # by default will actually change. | ||
759 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
760 | # (The list follows the same order as the GNU Coding Standards.) | ||
761 | bindir='${exec_prefix}/bin' | ||
762 | sbindir='${exec_prefix}/sbin' | ||
763 | libexecdir='${exec_prefix}/libexec' | ||
764 | datarootdir='${prefix}/share' | ||
765 | datadir='${datarootdir}' | ||
766 | sysconfdir='${prefix}/etc' | ||
767 | sharedstatedir='${prefix}/com' | ||
768 | localstatedir='${prefix}/var' | ||
769 | includedir='${prefix}/include' | ||
770 | oldincludedir='/usr/include' | ||
771 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
772 | infodir='${datarootdir}/info' | ||
773 | htmldir='${docdir}' | ||
774 | dvidir='${docdir}' | ||
775 | pdfdir='${docdir}' | ||
776 | psdir='${docdir}' | ||
777 | libdir='${exec_prefix}/lib' | ||
778 | localedir='${datarootdir}/locale' | ||
779 | mandir='${datarootdir}/man' | ||
780 | |||
781 | ac_prev= | ||
782 | ac_dashdash= | ||
783 | for ac_option | ||
784 | do | ||
785 | # If the previous option needs an argument, assign it. | ||
786 | if test -n "$ac_prev"; then | ||
787 | eval $ac_prev=\$ac_option | ||
788 | ac_prev= | ||
789 | continue | ||
790 | fi | ||
791 | |||
792 | case $ac_option in | ||
793 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
794 | *) ac_optarg=yes ;; | ||
795 | esac | ||
796 | |||
797 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
798 | |||
799 | case $ac_dashdash$ac_option in | ||
800 | --) | ||
801 | ac_dashdash=yes ;; | ||
802 | |||
803 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
804 | ac_prev=bindir ;; | ||
805 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
806 | bindir=$ac_optarg ;; | ||
807 | |||
808 | -build | --build | --buil | --bui | --bu) | ||
809 | ac_prev=build_alias ;; | ||
810 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
811 | build_alias=$ac_optarg ;; | ||
812 | |||
813 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
814 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
815 | ac_prev=cache_file ;; | ||
816 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
817 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
818 | cache_file=$ac_optarg ;; | ||
819 | |||
820 | --config-cache | -C) | ||
821 | cache_file=config.cache ;; | ||
822 | |||
823 | -datadir | --datadir | --datadi | --datad) | ||
824 | ac_prev=datadir ;; | ||
825 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
826 | datadir=$ac_optarg ;; | ||
827 | |||
828 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
829 | | --dataroo | --dataro | --datar) | ||
830 | ac_prev=datarootdir ;; | ||
831 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
832 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
833 | datarootdir=$ac_optarg ;; | ||
834 | |||
835 | -disable-* | --disable-*) | ||
836 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
837 | # Reject names that are not valid shell variable names. | ||
838 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
839 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
840 | { (exit 1); exit 1; }; } | ||
841 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | ||
842 | eval enable_$ac_feature=no ;; | ||
843 | |||
844 | -docdir | --docdir | --docdi | --doc | --do) | ||
845 | ac_prev=docdir ;; | ||
846 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
847 | docdir=$ac_optarg ;; | ||
848 | |||
849 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
850 | ac_prev=dvidir ;; | ||
851 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
852 | dvidir=$ac_optarg ;; | ||
853 | |||
854 | -enable-* | --enable-*) | ||
855 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
856 | # Reject names that are not valid shell variable names. | ||
857 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
858 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
859 | { (exit 1); exit 1; }; } | ||
860 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | ||
861 | eval enable_$ac_feature=\$ac_optarg ;; | ||
862 | |||
863 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
864 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
865 | | --exec | --exe | --ex) | ||
866 | ac_prev=exec_prefix ;; | ||
867 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
868 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
869 | | --exec=* | --exe=* | --ex=*) | ||
870 | exec_prefix=$ac_optarg ;; | ||
871 | |||
872 | -gas | --gas | --ga | --g) | ||
873 | # Obsolete; use --with-gas. | ||
874 | with_gas=yes ;; | ||
875 | |||
876 | -help | --help | --hel | --he | -h) | ||
877 | ac_init_help=long ;; | ||
878 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
879 | ac_init_help=recursive ;; | ||
880 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
881 | ac_init_help=short ;; | ||
882 | |||
883 | -host | --host | --hos | --ho) | ||
884 | ac_prev=host_alias ;; | ||
885 | -host=* | --host=* | --hos=* | --ho=*) | ||
886 | host_alias=$ac_optarg ;; | ||
887 | |||
888 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
889 | ac_prev=htmldir ;; | ||
890 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
891 | | --ht=*) | ||
892 | htmldir=$ac_optarg ;; | ||
893 | |||
894 | -includedir | --includedir | --includedi | --included | --include \ | ||
895 | | --includ | --inclu | --incl | --inc) | ||
896 | ac_prev=includedir ;; | ||
897 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
898 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
899 | includedir=$ac_optarg ;; | ||
900 | |||
901 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
902 | ac_prev=infodir ;; | ||
903 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
904 | infodir=$ac_optarg ;; | ||
905 | |||
906 | -libdir | --libdir | --libdi | --libd) | ||
907 | ac_prev=libdir ;; | ||
908 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
909 | libdir=$ac_optarg ;; | ||
910 | |||
911 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
912 | | --libexe | --libex | --libe) | ||
913 | ac_prev=libexecdir ;; | ||
914 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
915 | | --libexe=* | --libex=* | --libe=*) | ||
916 | libexecdir=$ac_optarg ;; | ||
917 | |||
918 | -localedir | --localedir | --localedi | --localed | --locale) | ||
919 | ac_prev=localedir ;; | ||
920 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
921 | localedir=$ac_optarg ;; | ||
922 | |||
923 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
924 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
925 | ac_prev=localstatedir ;; | ||
926 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
927 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
928 | localstatedir=$ac_optarg ;; | ||
929 | |||
930 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
931 | ac_prev=mandir ;; | ||
932 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
933 | mandir=$ac_optarg ;; | ||
934 | |||
935 | -nfp | --nfp | --nf) | ||
936 | # Obsolete; use --without-fp. | ||
937 | with_fp=no ;; | ||
938 | |||
939 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
940 | | --no-cr | --no-c | -n) | ||
941 | no_create=yes ;; | ||
942 | |||
943 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
944 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
945 | no_recursion=yes ;; | ||
946 | |||
947 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
948 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
949 | | --oldin | --oldi | --old | --ol | --o) | ||
950 | ac_prev=oldincludedir ;; | ||
951 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
952 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
953 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
954 | oldincludedir=$ac_optarg ;; | ||
955 | |||
956 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
957 | ac_prev=prefix ;; | ||
958 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
959 | prefix=$ac_optarg ;; | ||
960 | |||
961 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
962 | | --program-pre | --program-pr | --program-p) | ||
963 | ac_prev=program_prefix ;; | ||
964 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
965 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
966 | program_prefix=$ac_optarg ;; | ||
967 | |||
968 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
969 | | --program-suf | --program-su | --program-s) | ||
970 | ac_prev=program_suffix ;; | ||
971 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
972 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
973 | program_suffix=$ac_optarg ;; | ||
974 | |||
975 | -program-transform-name | --program-transform-name \ | ||
976 | | --program-transform-nam | --program-transform-na \ | ||
977 | | --program-transform-n | --program-transform- \ | ||
978 | | --program-transform | --program-transfor \ | ||
979 | | --program-transfo | --program-transf \ | ||
980 | | --program-trans | --program-tran \ | ||
981 | | --progr-tra | --program-tr | --program-t) | ||
982 | ac_prev=program_transform_name ;; | ||
983 | -program-transform-name=* | --program-transform-name=* \ | ||
984 | | --program-transform-nam=* | --program-transform-na=* \ | ||
985 | | --program-transform-n=* | --program-transform-=* \ | ||
986 | | --program-transform=* | --program-transfor=* \ | ||
987 | | --program-transfo=* | --program-transf=* \ | ||
988 | | --program-trans=* | --program-tran=* \ | ||
989 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
990 | program_transform_name=$ac_optarg ;; | ||
991 | |||
992 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
993 | ac_prev=pdfdir ;; | ||
994 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
995 | pdfdir=$ac_optarg ;; | ||
996 | |||
997 | -psdir | --psdir | --psdi | --psd | --ps) | ||
998 | ac_prev=psdir ;; | ||
999 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1000 | psdir=$ac_optarg ;; | ||
1001 | |||
1002 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1003 | | -silent | --silent | --silen | --sile | --sil) | ||
1004 | silent=yes ;; | ||
1005 | |||
1006 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1007 | ac_prev=sbindir ;; | ||
1008 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1009 | | --sbi=* | --sb=*) | ||
1010 | sbindir=$ac_optarg ;; | ||
1011 | |||
1012 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1013 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1014 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1015 | | --sha | --sh) | ||
1016 | ac_prev=sharedstatedir ;; | ||
1017 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1018 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1019 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1020 | | --sha=* | --sh=*) | ||
1021 | sharedstatedir=$ac_optarg ;; | ||
1022 | |||
1023 | -site | --site | --sit) | ||
1024 | ac_prev=site ;; | ||
1025 | -site=* | --site=* | --sit=*) | ||
1026 | site=$ac_optarg ;; | ||
1027 | |||
1028 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1029 | ac_prev=srcdir ;; | ||
1030 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1031 | srcdir=$ac_optarg ;; | ||
1032 | |||
1033 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1034 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1035 | ac_prev=sysconfdir ;; | ||
1036 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1037 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1038 | sysconfdir=$ac_optarg ;; | ||
1039 | |||
1040 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1041 | ac_prev=target_alias ;; | ||
1042 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1043 | target_alias=$ac_optarg ;; | ||
1044 | |||
1045 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1046 | verbose=yes ;; | ||
1047 | |||
1048 | -version | --version | --versio | --versi | --vers | -V) | ||
1049 | ac_init_version=: ;; | ||
1050 | |||
1051 | -with-* | --with-*) | ||
1052 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1053 | # Reject names that are not valid shell variable names. | ||
1054 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1055 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1056 | { (exit 1); exit 1; }; } | ||
1057 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | ||
1058 | eval with_$ac_package=\$ac_optarg ;; | ||
1059 | |||
1060 | -without-* | --without-*) | ||
1061 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1062 | # Reject names that are not valid shell variable names. | ||
1063 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1064 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1065 | { (exit 1); exit 1; }; } | ||
1066 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | ||
1067 | eval with_$ac_package=no ;; | ||
1068 | |||
1069 | --x) | ||
1070 | # Obsolete; use --with-x. | ||
1071 | with_x=yes ;; | ||
1072 | |||
1073 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1074 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1075 | ac_prev=x_includes ;; | ||
1076 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1077 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1078 | x_includes=$ac_optarg ;; | ||
1079 | |||
1080 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1081 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1082 | ac_prev=x_libraries ;; | ||
1083 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1084 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1085 | x_libraries=$ac_optarg ;; | ||
1086 | |||
1087 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
1088 | Try \`$0 --help' for more information." >&2 | ||
1089 | { (exit 1); exit 1; }; } | ||
1090 | ;; | ||
1091 | |||
1092 | *=*) | ||
1093 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1094 | # Reject names that are not valid shell variable names. | ||
1095 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
1096 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
1097 | { (exit 1); exit 1; }; } | ||
1098 | eval $ac_envvar=\$ac_optarg | ||
1099 | export $ac_envvar ;; | ||
1100 | |||
1101 | *) | ||
1102 | # FIXME: should be removed in autoconf 3.0. | ||
1103 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1104 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1105 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1106 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1107 | ;; | ||
1108 | |||
1109 | esac | ||
1110 | done | ||
1111 | |||
1112 | if test -n "$ac_prev"; then | ||
1113 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1114 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
1115 | { (exit 1); exit 1; }; } | ||
1116 | fi | ||
1117 | |||
1118 | # Be sure to have absolute directory names. | ||
1119 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1120 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1121 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1122 | libdir localedir mandir | ||
1123 | do | ||
1124 | eval ac_val=\$$ac_var | ||
1125 | case $ac_val in | ||
1126 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1127 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1128 | esac | ||
1129 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
1130 | { (exit 1); exit 1; }; } | ||
1131 | done | ||
1132 | |||
1133 | # There might be people who depend on the old broken behavior: `$host' | ||
1134 | # used to hold the argument of --host etc. | ||
1135 | # FIXME: To remove some day. | ||
1136 | build=$build_alias | ||
1137 | host=$host_alias | ||
1138 | target=$target_alias | ||
1139 | |||
1140 | # FIXME: To remove some day. | ||
1141 | if test "x$host_alias" != x; then | ||
1142 | if test "x$build_alias" = x; then | ||
1143 | cross_compiling=maybe | ||
1144 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
1145 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
1146 | elif test "x$build_alias" != "x$host_alias"; then | ||
1147 | cross_compiling=yes | ||
1148 | fi | ||
1149 | fi | ||
1150 | |||
1151 | ac_tool_prefix= | ||
1152 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1153 | |||
1154 | test "$silent" = yes && exec 6>/dev/null | ||
1155 | |||
1156 | |||
1157 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1158 | ac_ls_di=`ls -di .` && | ||
1159 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1160 | { echo "$as_me: error: Working directory cannot be determined" >&2 | ||
1161 | { (exit 1); exit 1; }; } | ||
1162 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1163 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | ||
1164 | { (exit 1); exit 1; }; } | ||
1165 | |||
1166 | |||
1167 | # Find the source files, if location was not specified. | ||
1168 | if test -z "$srcdir"; then | ||
1169 | ac_srcdir_defaulted=yes | ||
1170 | # Try the directory containing this script, then the parent directory. | ||
1171 | ac_confdir=`$as_dirname -- "$0" || | ||
1172 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1173 | X"$0" : 'X\(//\)[^/]' \| \ | ||
1174 | X"$0" : 'X\(//\)$' \| \ | ||
1175 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
1176 | echo X"$0" | | ||
1177 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1178 | s//\1/ | ||
1179 | q | ||
1180 | } | ||
1181 | /^X\(\/\/\)[^/].*/{ | ||
1182 | s//\1/ | ||
1183 | q | ||
1184 | } | ||
1185 | /^X\(\/\/\)$/{ | ||
1186 | s//\1/ | ||
1187 | q | ||
1188 | } | ||
1189 | /^X\(\/\).*/{ | ||
1190 | s//\1/ | ||
1191 | q | ||
1192 | } | ||
1193 | s/.*/./; q'` | ||
1194 | srcdir=$ac_confdir | ||
1195 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1196 | srcdir=.. | ||
1197 | fi | ||
1198 | else | ||
1199 | ac_srcdir_defaulted=no | ||
1200 | fi | ||
1201 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1202 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1203 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
1204 | { (exit 1); exit 1; }; } | ||
1205 | fi | ||
1206 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1207 | ac_abs_confdir=`( | ||
1208 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | ||
1209 | { (exit 1); exit 1; }; } | ||
1210 | pwd)` | ||
1211 | # When building in place, set srcdir=. | ||
1212 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1213 | srcdir=. | ||
1214 | fi | ||
1215 | # Remove unnecessary trailing slashes from srcdir. | ||
1216 | # Double slashes in file names in object file debugging info | ||
1217 | # mess up M-x gdb in Emacs. | ||
1218 | case $srcdir in | ||
1219 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1220 | esac | ||
1221 | for ac_var in $ac_precious_vars; do | ||
1222 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1223 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1224 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1225 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1226 | done | ||
1227 | |||
1228 | # | ||
1229 | # Report the --help message. | ||
1230 | # | ||
1231 | if test "$ac_init_help" = "long"; then | ||
1232 | # Omit some internal or obsolete options to make the list less imposing. | ||
1233 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1234 | cat <<_ACEOF | ||
1235 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. | ||
1236 | |||
1237 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1238 | |||
1239 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1240 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1241 | |||
1242 | Defaults for the options are specified in brackets. | ||
1243 | |||
1244 | Configuration: | ||
1245 | -h, --help display this help and exit | ||
1246 | --help=short display options specific to this package | ||
1247 | --help=recursive display the short help of all the included packages | ||
1248 | -V, --version display version information and exit | ||
1249 | -q, --quiet, --silent do not print \`checking...' messages | ||
1250 | --cache-file=FILE cache test results in FILE [disabled] | ||
1251 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1252 | -n, --no-create do not create output files | ||
1253 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1254 | |||
1255 | Installation directories: | ||
1256 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1257 | [$ac_default_prefix] | ||
1258 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1259 | [PREFIX] | ||
1260 | |||
1261 | By default, \`make install' will install all the files in | ||
1262 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1263 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1264 | for instance \`--prefix=\$HOME'. | ||
1265 | |||
1266 | For better control, use the options below. | ||
1267 | |||
1268 | Fine tuning of the installation directories: | ||
1269 | --bindir=DIR user executables [EPREFIX/bin] | ||
1270 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1271 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1272 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1273 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1274 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1275 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1276 | --includedir=DIR C header files [PREFIX/include] | ||
1277 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1278 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1279 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1280 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1281 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1282 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1283 | --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] | ||
1284 | --htmldir=DIR html documentation [DOCDIR] | ||
1285 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1286 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1287 | --psdir=DIR ps documentation [DOCDIR] | ||
1288 | _ACEOF | ||
1289 | |||
1290 | cat <<\_ACEOF | ||
1291 | |||
1292 | System types: | ||
1293 | --build=BUILD configure for building on BUILD [guessed] | ||
1294 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1295 | _ACEOF | ||
1296 | fi | ||
1297 | |||
1298 | if test -n "$ac_init_help"; then | ||
1299 | case $ac_init_help in | ||
1300 | short | recursive ) echo "Configuration of OpenSSH Portable:";; | ||
1301 | esac | ||
1302 | cat <<\_ACEOF | ||
1303 | |||
1304 | Optional Features: | ||
1305 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1306 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1307 | --disable-largefile omit support for large files | ||
1308 | --disable-pkcs11 disable PKCS#11 support code [no] | ||
1309 | --disable-strip Disable calling strip(1) on install | ||
1310 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
1311 | --disable-lastlog disable use of lastlog even if detected no | ||
1312 | --disable-utmp disable use of utmp even if detected no | ||
1313 | --disable-utmpx disable use of utmpx even if detected no | ||
1314 | --disable-wtmp disable use of wtmp even if detected no | ||
1315 | --disable-wtmpx disable use of wtmpx even if detected no | ||
1316 | --disable-libutil disable use of libutil (login() etc.) no | ||
1317 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
1318 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
1319 | |||
1320 | Optional Packages: | ||
1321 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1322 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1323 | --without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL** | ||
1324 | --with-ssh1 Enable support for SSH protocol 1 | ||
1325 | --without-stackprotect Don't use compiler's stack protection | ||
1326 | --without-hardening Don't use toolchain hardening flags | ||
1327 | --without-rpath Disable auto-added -R linker paths | ||
1328 | --with-cflags Specify additional flags to pass to compiler | ||
1329 | --with-cppflags Specify additional flags to pass to preprocessor | ||
1330 | --with-ldflags Specify additional flags to pass to linker | ||
1331 | --with-libs Specify additional libraries to link with | ||
1332 | --with-Werror Build main code with -Werror | ||
1333 | --with-solaris-contracts Enable Solaris process contracts (experimental) | ||
1334 | --with-solaris-projects Enable Solaris projects (experimental) | ||
1335 | --with-solaris-privs Enable Solaris/Illumos privileges (experimental) | ||
1336 | --with-osfsia Enable Digital Unix SIA | ||
1337 | --with-zlib=PATH Use zlib in PATH | ||
1338 | --without-zlib-version-check Disable zlib version check | ||
1339 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | ||
1340 | --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH) | ||
1341 | --with-libedit[=PATH] Enable libedit support for sftp | ||
1342 | --with-audit=module Enable audit support (modules=debug,bsm,linux) | ||
1343 | --with-pie Build Position Independent Executables if possible | ||
1344 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
1345 | --without-openssl-header-check Disable OpenSSL version consistency check | ||
1346 | --with-ssl-engine Enable OpenSSL (hardware) ENGINE support | ||
1347 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
1348 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
1349 | --with-pam Enable PAM support | ||
1350 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
1351 | --with-sandbox=style Specify privilege separation sandbox (no, capsicum, darwin, rlimit, seccomp_filter, systrace, pledge) | ||
1352 | --with-selinux Enable SELinux support | ||
1353 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
1354 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
1355 | --with-xauth=PATH Specify path to xauth program | ||
1356 | --with-maildir=/path/to/mail Specify your system mail directory | ||
1357 | --with-mantype=man|cat|doc Set man page type | ||
1358 | --with-md5-passwords Enable use of MD5 passwords | ||
1359 | --without-shadow Disable shadow password support | ||
1360 | --with-ipaddr-display Use ip address instead of hostname in $DISPLAY | ||
1361 | --with-default-path= Specify default $PATH environment for server | ||
1362 | --with-superuser-path= Specify different path for super-user | ||
1363 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
1364 | --with-bsd-auth Enable BSD auth support | ||
1365 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
1366 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
1367 | |||
1368 | Some influential environment variables: | ||
1369 | CC C compiler command | ||
1370 | CFLAGS C compiler flags | ||
1371 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1372 | nonstandard directory <lib dir> | ||
1373 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1374 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | ||
1375 | you have headers in a nonstandard directory <include dir> | ||
1376 | CPP C preprocessor | ||
1377 | |||
1378 | Use these variables to override the choices made by `configure' or to help | ||
1379 | it to find libraries and programs with nonstandard names/locations. | ||
1380 | |||
1381 | Report bugs to <openssh-unix-dev@mindrot.org>. | ||
1382 | _ACEOF | ||
1383 | ac_status=$? | ||
1384 | fi | ||
1385 | |||
1386 | if test "$ac_init_help" = "recursive"; then | ||
1387 | # If there are subdirs, report their specific --help. | ||
1388 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1389 | test -d "$ac_dir" || continue | ||
1390 | ac_builddir=. | ||
1391 | |||
1392 | case "$ac_dir" in | ||
1393 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1394 | *) | ||
1395 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
1396 | # A ".." for each directory in $ac_dir_suffix. | ||
1397 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
1398 | case $ac_top_builddir_sub in | ||
1399 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1400 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1401 | esac ;; | ||
1402 | esac | ||
1403 | ac_abs_top_builddir=$ac_pwd | ||
1404 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1405 | # for backward compatibility: | ||
1406 | ac_top_builddir=$ac_top_build_prefix | ||
1407 | |||
1408 | case $srcdir in | ||
1409 | .) # We are building in place. | ||
1410 | ac_srcdir=. | ||
1411 | ac_top_srcdir=$ac_top_builddir_sub | ||
1412 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1413 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1414 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1415 | ac_top_srcdir=$srcdir | ||
1416 | ac_abs_top_srcdir=$srcdir ;; | ||
1417 | *) # Relative name. | ||
1418 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1419 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1420 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1421 | esac | ||
1422 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1423 | |||
1424 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1425 | # Check for guested configure. | ||
1426 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1427 | echo && | ||
1428 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1429 | elif test -f "$ac_srcdir/configure"; then | ||
1430 | echo && | ||
1431 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1432 | else | ||
1433 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1434 | fi || ac_status=$? | ||
1435 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1436 | done | ||
1437 | fi | ||
1438 | |||
1439 | test -n "$ac_init_help" && exit $ac_status | ||
1440 | if $ac_init_version; then | ||
1441 | cat <<\_ACEOF | ||
1442 | OpenSSH configure Portable | ||
1443 | generated by GNU Autoconf 2.61 | ||
1444 | |||
1445 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
1446 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
1447 | This configure script is free software; the Free Software Foundation | ||
1448 | gives unlimited permission to copy, distribute and modify it. | ||
1449 | _ACEOF | ||
1450 | exit | ||
1451 | fi | ||
1452 | cat >config.log <<_ACEOF | ||
1453 | This file contains any messages produced by compilers while | ||
1454 | running configure, to aid debugging if configure makes a mistake. | ||
1455 | |||
1456 | It was created by OpenSSH $as_me Portable, which was | ||
1457 | generated by GNU Autoconf 2.61. Invocation command line was | ||
1458 | |||
1459 | $ $0 $@ | ||
1460 | |||
1461 | _ACEOF | ||
1462 | exec 5>>config.log | ||
1463 | { | ||
1464 | cat <<_ASUNAME | ||
1465 | ## --------- ## | ||
1466 | ## Platform. ## | ||
1467 | ## --------- ## | ||
1468 | |||
1469 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1470 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1471 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1472 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1473 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1474 | |||
1475 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1476 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1477 | |||
1478 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1479 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1480 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1481 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
1482 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1483 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1484 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1485 | |||
1486 | _ASUNAME | ||
1487 | |||
1488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1489 | for as_dir in $PATH | ||
1490 | do | ||
1491 | IFS=$as_save_IFS | ||
1492 | test -z "$as_dir" && as_dir=. | ||
1493 | echo "PATH: $as_dir" | ||
1494 | done | ||
1495 | IFS=$as_save_IFS | ||
1496 | |||
1497 | } >&5 | ||
1498 | |||
1499 | cat >&5 <<_ACEOF | ||
1500 | |||
1501 | |||
1502 | ## ----------- ## | ||
1503 | ## Core tests. ## | ||
1504 | ## ----------- ## | ||
1505 | |||
1506 | _ACEOF | ||
1507 | |||
1508 | |||
1509 | # Keep a trace of the command line. | ||
1510 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1511 | # Strip out --silent because we don't want to record it for future runs. | ||
1512 | # Also quote any args containing shell meta-characters. | ||
1513 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1514 | ac_configure_args= | ||
1515 | ac_configure_args0= | ||
1516 | ac_configure_args1= | ||
1517 | ac_must_keep_next=false | ||
1518 | for ac_pass in 1 2 | ||
1519 | do | ||
1520 | for ac_arg | ||
1521 | do | ||
1522 | case $ac_arg in | ||
1523 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1524 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1525 | | -silent | --silent | --silen | --sile | --sil) | ||
1526 | continue ;; | ||
1527 | *\'*) | ||
1528 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1529 | esac | ||
1530 | case $ac_pass in | ||
1531 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1532 | 2) | ||
1533 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1534 | if test $ac_must_keep_next = true; then | ||
1535 | ac_must_keep_next=false # Got value, back to normal. | ||
1536 | else | ||
1537 | case $ac_arg in | ||
1538 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1539 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1540 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1541 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1542 | case "$ac_configure_args0 " in | ||
1543 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1544 | esac | ||
1545 | ;; | ||
1546 | -* ) ac_must_keep_next=true ;; | ||
1547 | esac | ||
1548 | fi | ||
1549 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
1550 | ;; | ||
1551 | esac | ||
1552 | done | ||
1553 | done | ||
1554 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1555 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1556 | |||
1557 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1558 | # config.log. We remove comments because anyway the quotes in there | ||
1559 | # would cause problems or look ugly. | ||
1560 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
1561 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
1562 | trap 'exit_status=$? | ||
1563 | # Save into config.log some information that might help in debugging. | ||
1564 | { | ||
1565 | echo | ||
1566 | |||
1567 | cat <<\_ASBOX | ||
1568 | ## ---------------- ## | ||
1569 | ## Cache variables. ## | ||
1570 | ## ---------------- ## | ||
1571 | _ASBOX | ||
1572 | echo | ||
1573 | # The following way of writing the cache mishandles newlines in values, | ||
1574 | ( | ||
1575 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
1576 | eval ac_val=\$$ac_var | ||
1577 | case $ac_val in #( | ||
1578 | *${as_nl}*) | ||
1579 | case $ac_var in #( | ||
1580 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
1581 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
1582 | esac | ||
1583 | case $ac_var in #( | ||
1584 | _ | IFS | as_nl) ;; #( | ||
1585 | *) $as_unset $ac_var ;; | ||
1586 | esac ;; | ||
1587 | esac | ||
1588 | done | ||
1589 | (set) 2>&1 | | ||
1590 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
1591 | *${as_nl}ac_space=\ *) | ||
1592 | sed -n \ | ||
1593 | "s/'\''/'\''\\\\'\'''\''/g; | ||
1594 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
1595 | ;; #( | ||
1596 | *) | ||
1597 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
1598 | ;; | ||
1599 | esac | | ||
1600 | sort | ||
1601 | ) | ||
1602 | echo | ||
1603 | |||
1604 | cat <<\_ASBOX | ||
1605 | ## ----------------- ## | ||
1606 | ## Output variables. ## | ||
1607 | ## ----------------- ## | ||
1608 | _ASBOX | ||
1609 | echo | ||
1610 | for ac_var in $ac_subst_vars | ||
1611 | do | ||
1612 | eval ac_val=\$$ac_var | ||
1613 | case $ac_val in | ||
1614 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1615 | esac | ||
1616 | echo "$ac_var='\''$ac_val'\''" | ||
1617 | done | sort | ||
1618 | echo | ||
1619 | |||
1620 | if test -n "$ac_subst_files"; then | ||
1621 | cat <<\_ASBOX | ||
1622 | ## ------------------- ## | ||
1623 | ## File substitutions. ## | ||
1624 | ## ------------------- ## | ||
1625 | _ASBOX | ||
1626 | echo | ||
1627 | for ac_var in $ac_subst_files | ||
1628 | do | ||
1629 | eval ac_val=\$$ac_var | ||
1630 | case $ac_val in | ||
1631 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1632 | esac | ||
1633 | echo "$ac_var='\''$ac_val'\''" | ||
1634 | done | sort | ||
1635 | echo | ||
1636 | fi | ||
1637 | |||
1638 | if test -s confdefs.h; then | ||
1639 | cat <<\_ASBOX | ||
1640 | ## ----------- ## | ||
1641 | ## confdefs.h. ## | ||
1642 | ## ----------- ## | ||
1643 | _ASBOX | ||
1644 | echo | ||
1645 | cat confdefs.h | ||
1646 | echo | ||
1647 | fi | ||
1648 | test "$ac_signal" != 0 && | ||
1649 | echo "$as_me: caught signal $ac_signal" | ||
1650 | echo "$as_me: exit $exit_status" | ||
1651 | } >&5 | ||
1652 | rm -f core *.core core.conftest.* && | ||
1653 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
1654 | exit $exit_status | ||
1655 | ' 0 | ||
1656 | for ac_signal in 1 2 13 15; do | ||
1657 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1658 | done | ||
1659 | ac_signal=0 | ||
1660 | |||
1661 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1662 | rm -f -r conftest* confdefs.h | ||
1663 | |||
1664 | # Predefined preprocessor variables. | ||
1665 | |||
1666 | cat >>confdefs.h <<_ACEOF | ||
1667 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1668 | _ACEOF | ||
1669 | |||
1670 | |||
1671 | cat >>confdefs.h <<_ACEOF | ||
1672 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1673 | _ACEOF | ||
1674 | |||
1675 | |||
1676 | cat >>confdefs.h <<_ACEOF | ||
1677 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1678 | _ACEOF | ||
1679 | |||
1680 | |||
1681 | cat >>confdefs.h <<_ACEOF | ||
1682 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1683 | _ACEOF | ||
1684 | |||
1685 | |||
1686 | cat >>confdefs.h <<_ACEOF | ||
1687 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1688 | _ACEOF | ||
1689 | |||
1690 | |||
1691 | # Let the site file select an alternate cache file if it wants to. | ||
1692 | # Prefer explicitly selected file to automatically selected ones. | ||
1693 | if test -n "$CONFIG_SITE"; then | ||
1694 | set x "$CONFIG_SITE" | ||
1695 | elif test "x$prefix" != xNONE; then | ||
1696 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | ||
1697 | else | ||
1698 | set x "$ac_default_prefix/share/config.site" \ | ||
1699 | "$ac_default_prefix/etc/config.site" | ||
1700 | fi | ||
1701 | shift | ||
1702 | for ac_site_file | ||
1703 | do | ||
1704 | if test -r "$ac_site_file"; then | ||
1705 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1706 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1707 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1708 | . "$ac_site_file" | ||
1709 | fi | ||
1710 | done | ||
1711 | |||
1712 | if test -r "$cache_file"; then | ||
1713 | # Some versions of bash will fail to source /dev/null (special | ||
1714 | # files actually), so we avoid doing that. | ||
1715 | if test -f "$cache_file"; then | ||
1716 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1717 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1718 | case $cache_file in | ||
1719 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
1720 | *) . "./$cache_file";; | ||
1721 | esac | ||
1722 | fi | ||
1723 | else | ||
1724 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1725 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1726 | >$cache_file | ||
1727 | fi | ||
1728 | |||
1729 | # Check that the precious variables saved in the cache have kept the same | ||
1730 | # value. | ||
1731 | ac_cache_corrupted=false | ||
1732 | for ac_var in $ac_precious_vars; do | ||
1733 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1734 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1735 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
1736 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
1737 | case $ac_old_set,$ac_new_set in | ||
1738 | set,) | ||
1739 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1740 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1741 | ac_cache_corrupted=: ;; | ||
1742 | ,set) | ||
1743 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1744 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1745 | ac_cache_corrupted=: ;; | ||
1746 | ,);; | ||
1747 | *) | ||
1748 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1749 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1750 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1751 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1752 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1753 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1754 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1755 | ac_cache_corrupted=: | ||
1756 | fi;; | ||
1757 | esac | ||
1758 | # Pass precious variables to config.status. | ||
1759 | if test "$ac_new_set" = set; then | ||
1760 | case $ac_new_val in | ||
1761 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1762 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1763 | esac | ||
1764 | case " $ac_configure_args " in | ||
1765 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1766 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1767 | esac | ||
1768 | fi | ||
1769 | done | ||
1770 | if $ac_cache_corrupted; then | ||
1771 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1772 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1773 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1774 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1775 | { (exit 1); exit 1; }; } | ||
1776 | fi | ||
1777 | |||
1778 | |||
1779 | |||
1780 | |||
1781 | |||
1782 | |||
1783 | |||
1784 | |||
1785 | |||
1786 | |||
1787 | |||
1788 | |||
1789 | |||
1790 | |||
1791 | |||
1792 | |||
1793 | |||
1794 | |||
1795 | |||
1796 | |||
1797 | |||
1798 | |||
1799 | |||
1800 | |||
1801 | |||
1802 | ac_ext=c | ||
1803 | ac_cpp='$CPP $CPPFLAGS' | ||
1804 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1805 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1806 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1807 | |||
1808 | |||
1809 | |||
1810 | |||
1811 | ac_ext=c | ||
1812 | ac_cpp='$CPP $CPPFLAGS' | ||
1813 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1814 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1815 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1816 | |||
1817 | |||
1818 | ac_config_headers="$ac_config_headers config.h" | ||
1819 | |||
1820 | ac_ext=c | ||
1821 | ac_cpp='$CPP $CPPFLAGS' | ||
1822 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1823 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1824 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1825 | if test -n "$ac_tool_prefix"; then | ||
1826 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1827 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1828 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1830 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1832 | else | ||
1833 | if test -n "$CC"; then | ||
1834 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1835 | else | ||
1836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1837 | for as_dir in $PATH | ||
1838 | do | ||
1839 | IFS=$as_save_IFS | ||
1840 | test -z "$as_dir" && as_dir=. | ||
1841 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1842 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1843 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1844 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1845 | break 2 | ||
1846 | fi | ||
1847 | done | ||
1848 | done | ||
1849 | IFS=$as_save_IFS | ||
1850 | |||
1851 | fi | ||
1852 | fi | ||
1853 | CC=$ac_cv_prog_CC | ||
1854 | if test -n "$CC"; then | ||
1855 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
1856 | echo "${ECHO_T}$CC" >&6; } | ||
1857 | else | ||
1858 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1859 | echo "${ECHO_T}no" >&6; } | ||
1860 | fi | ||
1861 | |||
1862 | |||
1863 | fi | ||
1864 | if test -z "$ac_cv_prog_CC"; then | ||
1865 | ac_ct_CC=$CC | ||
1866 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1867 | set dummy gcc; ac_word=$2 | ||
1868 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1870 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1872 | else | ||
1873 | if test -n "$ac_ct_CC"; then | ||
1874 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1875 | else | ||
1876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1877 | for as_dir in $PATH | ||
1878 | do | ||
1879 | IFS=$as_save_IFS | ||
1880 | test -z "$as_dir" && as_dir=. | ||
1881 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1883 | ac_cv_prog_ac_ct_CC="gcc" | ||
1884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1885 | break 2 | ||
1886 | fi | ||
1887 | done | ||
1888 | done | ||
1889 | IFS=$as_save_IFS | ||
1890 | |||
1891 | fi | ||
1892 | fi | ||
1893 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1894 | if test -n "$ac_ct_CC"; then | ||
1895 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1896 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
1897 | else | ||
1898 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1899 | echo "${ECHO_T}no" >&6; } | ||
1900 | fi | ||
1901 | |||
1902 | if test "x$ac_ct_CC" = x; then | ||
1903 | CC="" | ||
1904 | else | ||
1905 | case $cross_compiling:$ac_tool_warned in | ||
1906 | yes:) | ||
1907 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
1908 | whose name does not start with the host triplet. If you think this | ||
1909 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
1910 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
1911 | whose name does not start with the host triplet. If you think this | ||
1912 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
1913 | ac_tool_warned=yes ;; | ||
1914 | esac | ||
1915 | CC=$ac_ct_CC | ||
1916 | fi | ||
1917 | else | ||
1918 | CC="$ac_cv_prog_CC" | ||
1919 | fi | ||
1920 | |||
1921 | if test -z "$CC"; then | ||
1922 | if test -n "$ac_tool_prefix"; then | ||
1923 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1924 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1925 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1926 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1927 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1929 | else | ||
1930 | if test -n "$CC"; then | ||
1931 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1932 | else | ||
1933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1934 | for as_dir in $PATH | ||
1935 | do | ||
1936 | IFS=$as_save_IFS | ||
1937 | test -z "$as_dir" && as_dir=. | ||
1938 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1939 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1940 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1941 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1942 | break 2 | ||
1943 | fi | ||
1944 | done | ||
1945 | done | ||
1946 | IFS=$as_save_IFS | ||
1947 | |||
1948 | fi | ||
1949 | fi | ||
1950 | CC=$ac_cv_prog_CC | ||
1951 | if test -n "$CC"; then | ||
1952 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
1953 | echo "${ECHO_T}$CC" >&6; } | ||
1954 | else | ||
1955 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1956 | echo "${ECHO_T}no" >&6; } | ||
1957 | fi | ||
1958 | |||
1959 | |||
1960 | fi | ||
1961 | fi | ||
1962 | if test -z "$CC"; then | ||
1963 | # Extract the first word of "cc", so it can be a program name with args. | ||
1964 | set dummy cc; ac_word=$2 | ||
1965 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1967 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1969 | else | ||
1970 | if test -n "$CC"; then | ||
1971 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1972 | else | ||
1973 | ac_prog_rejected=no | ||
1974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1975 | for as_dir in $PATH | ||
1976 | do | ||
1977 | IFS=$as_save_IFS | ||
1978 | test -z "$as_dir" && as_dir=. | ||
1979 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1980 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1981 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
1982 | ac_prog_rejected=yes | ||
1983 | continue | ||
1984 | fi | ||
1985 | ac_cv_prog_CC="cc" | ||
1986 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1987 | break 2 | ||
1988 | fi | ||
1989 | done | ||
1990 | done | ||
1991 | IFS=$as_save_IFS | ||
1992 | |||
1993 | if test $ac_prog_rejected = yes; then | ||
1994 | # We found a bogon in the path, so make sure we never use it. | ||
1995 | set dummy $ac_cv_prog_CC | ||
1996 | shift | ||
1997 | if test $# != 0; then | ||
1998 | # We chose a different compiler from the bogus one. | ||
1999 | # However, it has the same basename, so the bogon will be chosen | ||
2000 | # first if we set CC to just the basename; use the full file name. | ||
2001 | shift | ||
2002 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2003 | fi | ||
2004 | fi | ||
2005 | fi | ||
2006 | fi | ||
2007 | CC=$ac_cv_prog_CC | ||
2008 | if test -n "$CC"; then | ||
2009 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2010 | echo "${ECHO_T}$CC" >&6; } | ||
2011 | else | ||
2012 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2013 | echo "${ECHO_T}no" >&6; } | ||
2014 | fi | ||
2015 | |||
2016 | |||
2017 | fi | ||
2018 | if test -z "$CC"; then | ||
2019 | if test -n "$ac_tool_prefix"; then | ||
2020 | for ac_prog in cl.exe | ||
2021 | do | ||
2022 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2023 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2024 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2025 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2026 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2028 | else | ||
2029 | if test -n "$CC"; then | ||
2030 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2031 | else | ||
2032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2033 | for as_dir in $PATH | ||
2034 | do | ||
2035 | IFS=$as_save_IFS | ||
2036 | test -z "$as_dir" && as_dir=. | ||
2037 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2038 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2039 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2040 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2041 | break 2 | ||
2042 | fi | ||
2043 | done | ||
2044 | done | ||
2045 | IFS=$as_save_IFS | ||
2046 | |||
2047 | fi | ||
2048 | fi | ||
2049 | CC=$ac_cv_prog_CC | ||
2050 | if test -n "$CC"; then | ||
2051 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2052 | echo "${ECHO_T}$CC" >&6; } | ||
2053 | else | ||
2054 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2055 | echo "${ECHO_T}no" >&6; } | ||
2056 | fi | ||
2057 | |||
2058 | |||
2059 | test -n "$CC" && break | ||
2060 | done | ||
2061 | fi | ||
2062 | if test -z "$CC"; then | ||
2063 | ac_ct_CC=$CC | ||
2064 | for ac_prog in cl.exe | ||
2065 | do | ||
2066 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2067 | set dummy $ac_prog; ac_word=$2 | ||
2068 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2069 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2070 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2072 | else | ||
2073 | if test -n "$ac_ct_CC"; then | ||
2074 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2075 | else | ||
2076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2077 | for as_dir in $PATH | ||
2078 | do | ||
2079 | IFS=$as_save_IFS | ||
2080 | test -z "$as_dir" && as_dir=. | ||
2081 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2082 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2083 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2084 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2085 | break 2 | ||
2086 | fi | ||
2087 | done | ||
2088 | done | ||
2089 | IFS=$as_save_IFS | ||
2090 | |||
2091 | fi | ||
2092 | fi | ||
2093 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2094 | if test -n "$ac_ct_CC"; then | ||
2095 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2096 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2097 | else | ||
2098 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2099 | echo "${ECHO_T}no" >&6; } | ||
2100 | fi | ||
2101 | |||
2102 | |||
2103 | test -n "$ac_ct_CC" && break | ||
2104 | done | ||
2105 | |||
2106 | if test "x$ac_ct_CC" = x; then | ||
2107 | CC="" | ||
2108 | else | ||
2109 | case $cross_compiling:$ac_tool_warned in | ||
2110 | yes:) | ||
2111 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2112 | whose name does not start with the host triplet. If you think this | ||
2113 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2114 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2115 | whose name does not start with the host triplet. If you think this | ||
2116 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2117 | ac_tool_warned=yes ;; | ||
2118 | esac | ||
2119 | CC=$ac_ct_CC | ||
2120 | fi | ||
2121 | fi | ||
2122 | |||
2123 | fi | ||
2124 | |||
2125 | |||
2126 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
2127 | See \`config.log' for more details." >&5 | ||
2128 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
2129 | See \`config.log' for more details." >&2;} | ||
2130 | { (exit 1); exit 1; }; } | ||
2131 | |||
2132 | # Provide some information about the compiler. | ||
2133 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | ||
2134 | ac_compiler=`set X $ac_compile; echo $2` | ||
2135 | { (ac_try="$ac_compiler --version >&5" | ||
2136 | case "(($ac_try" in | ||
2137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2138 | *) ac_try_echo=$ac_try;; | ||
2139 | esac | ||
2140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2141 | (eval "$ac_compiler --version >&5") 2>&5 | ||
2142 | ac_status=$? | ||
2143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2144 | (exit $ac_status); } | ||
2145 | { (ac_try="$ac_compiler -v >&5" | ||
2146 | case "(($ac_try" in | ||
2147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2148 | *) ac_try_echo=$ac_try;; | ||
2149 | esac | ||
2150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2151 | (eval "$ac_compiler -v >&5") 2>&5 | ||
2152 | ac_status=$? | ||
2153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2154 | (exit $ac_status); } | ||
2155 | { (ac_try="$ac_compiler -V >&5" | ||
2156 | case "(($ac_try" in | ||
2157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2158 | *) ac_try_echo=$ac_try;; | ||
2159 | esac | ||
2160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2161 | (eval "$ac_compiler -V >&5") 2>&5 | ||
2162 | ac_status=$? | ||
2163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2164 | (exit $ac_status); } | ||
2165 | |||
2166 | cat >conftest.$ac_ext <<_ACEOF | ||
2167 | /* confdefs.h. */ | ||
2168 | _ACEOF | ||
2169 | cat confdefs.h >>conftest.$ac_ext | ||
2170 | cat >>conftest.$ac_ext <<_ACEOF | ||
2171 | /* end confdefs.h. */ | ||
2172 | |||
2173 | int | ||
2174 | main () | ||
2175 | { | ||
2176 | |||
2177 | ; | ||
2178 | return 0; | ||
2179 | } | ||
2180 | _ACEOF | ||
2181 | ac_clean_files_save=$ac_clean_files | ||
2182 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
2183 | # Try to create an executable without -o first, disregard a.out. | ||
2184 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2185 | # of exeext. | ||
2186 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
2187 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | ||
2188 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2189 | # | ||
2190 | # List of possible output files, starting from the most likely. | ||
2191 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | ||
2192 | # only as a last resort. b.out is created by i960 compilers. | ||
2193 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | ||
2194 | # | ||
2195 | # The IRIX 6 linker writes into existing files which may not be | ||
2196 | # executable, retaining their permissions. Remove them first so a | ||
2197 | # subsequent execution test works. | ||
2198 | ac_rmfiles= | ||
2199 | for ac_file in $ac_files | ||
2200 | do | ||
2201 | case $ac_file in | ||
2202 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2203 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2204 | esac | ||
2205 | done | ||
2206 | rm -f $ac_rmfiles | ||
2207 | |||
2208 | if { (ac_try="$ac_link_default" | ||
2209 | case "(($ac_try" in | ||
2210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2211 | *) ac_try_echo=$ac_try;; | ||
2212 | esac | ||
2213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2214 | (eval "$ac_link_default") 2>&5 | ||
2215 | ac_status=$? | ||
2216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2217 | (exit $ac_status); }; then | ||
2218 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2219 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2220 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2221 | # so that the user can short-circuit this test for compilers unknown to | ||
2222 | # Autoconf. | ||
2223 | for ac_file in $ac_files '' | ||
2224 | do | ||
2225 | test -f "$ac_file" || continue | ||
2226 | case $ac_file in | ||
2227 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | ||
2228 | ;; | ||
2229 | [ab].out ) | ||
2230 | # We found the default executable, but exeext='' is most | ||
2231 | # certainly right. | ||
2232 | break;; | ||
2233 | *.* ) | ||
2234 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2235 | then :; else | ||
2236 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2237 | fi | ||
2238 | # We set ac_cv_exeext here because the later test for it is not | ||
2239 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2240 | # argument, so we may need to know it at that point already. | ||
2241 | # Even if this section looks crufty: it has the advantage of | ||
2242 | # actually working. | ||
2243 | break;; | ||
2244 | * ) | ||
2245 | break;; | ||
2246 | esac | ||
2247 | done | ||
2248 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2249 | |||
2250 | else | ||
2251 | ac_file='' | ||
2252 | fi | ||
2253 | |||
2254 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2255 | echo "${ECHO_T}$ac_file" >&6; } | ||
2256 | if test -z "$ac_file"; then | ||
2257 | echo "$as_me: failed program was:" >&5 | ||
2258 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2259 | |||
2260 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
2261 | See \`config.log' for more details." >&5 | ||
2262 | echo "$as_me: error: C compiler cannot create executables | ||
2263 | See \`config.log' for more details." >&2;} | ||
2264 | { (exit 77); exit 77; }; } | ||
2265 | fi | ||
2266 | |||
2267 | ac_exeext=$ac_cv_exeext | ||
2268 | |||
2269 | # Check that the compiler produces executables we can run. If not, either | ||
2270 | # the compiler is broken, or we cross compile. | ||
2271 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
2272 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | ||
2273 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
2274 | # If not cross compiling, check that we can run a simple program. | ||
2275 | if test "$cross_compiling" != yes; then | ||
2276 | if { ac_try='./$ac_file' | ||
2277 | { (case "(($ac_try" in | ||
2278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2279 | *) ac_try_echo=$ac_try;; | ||
2280 | esac | ||
2281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2282 | (eval "$ac_try") 2>&5 | ||
2283 | ac_status=$? | ||
2284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2285 | (exit $ac_status); }; }; then | ||
2286 | cross_compiling=no | ||
2287 | else | ||
2288 | if test "$cross_compiling" = maybe; then | ||
2289 | cross_compiling=yes | ||
2290 | else | ||
2291 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
2292 | If you meant to cross compile, use \`--host'. | ||
2293 | See \`config.log' for more details." >&5 | ||
2294 | echo "$as_me: error: cannot run C compiled programs. | ||
2295 | If you meant to cross compile, use \`--host'. | ||
2296 | See \`config.log' for more details." >&2;} | ||
2297 | { (exit 1); exit 1; }; } | ||
2298 | fi | ||
2299 | fi | ||
2300 | fi | ||
2301 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2302 | echo "${ECHO_T}yes" >&6; } | ||
2303 | |||
2304 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
2305 | ac_clean_files=$ac_clean_files_save | ||
2306 | # Check that the compiler produces executables we can run. If not, either | ||
2307 | # the compiler is broken, or we cross compile. | ||
2308 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
2309 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | ||
2310 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
2311 | echo "${ECHO_T}$cross_compiling" >&6; } | ||
2312 | |||
2313 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
2314 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | ||
2315 | if { (ac_try="$ac_link" | ||
2316 | case "(($ac_try" in | ||
2317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2318 | *) ac_try_echo=$ac_try;; | ||
2319 | esac | ||
2320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2321 | (eval "$ac_link") 2>&5 | ||
2322 | ac_status=$? | ||
2323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2324 | (exit $ac_status); }; then | ||
2325 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
2326 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
2327 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
2328 | # `rm'. | ||
2329 | for ac_file in conftest.exe conftest conftest.*; do | ||
2330 | test -f "$ac_file" || continue | ||
2331 | case $ac_file in | ||
2332 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2333 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2334 | break;; | ||
2335 | * ) break;; | ||
2336 | esac | ||
2337 | done | ||
2338 | else | ||
2339 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
2340 | See \`config.log' for more details." >&5 | ||
2341 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
2342 | See \`config.log' for more details." >&2;} | ||
2343 | { (exit 1); exit 1; }; } | ||
2344 | fi | ||
2345 | |||
2346 | rm -f conftest$ac_cv_exeext | ||
2347 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
2348 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | ||
2349 | |||
2350 | rm -f conftest.$ac_ext | ||
2351 | EXEEXT=$ac_cv_exeext | ||
2352 | ac_exeext=$EXEEXT | ||
2353 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
2354 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | ||
2355 | if test "${ac_cv_objext+set}" = set; then | ||
2356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2357 | else | ||
2358 | cat >conftest.$ac_ext <<_ACEOF | ||
2359 | /* confdefs.h. */ | ||
2360 | _ACEOF | ||
2361 | cat confdefs.h >>conftest.$ac_ext | ||
2362 | cat >>conftest.$ac_ext <<_ACEOF | ||
2363 | /* end confdefs.h. */ | ||
2364 | |||
2365 | int | ||
2366 | main () | ||
2367 | { | ||
2368 | |||
2369 | ; | ||
2370 | return 0; | ||
2371 | } | ||
2372 | _ACEOF | ||
2373 | rm -f conftest.o conftest.obj | ||
2374 | if { (ac_try="$ac_compile" | ||
2375 | case "(($ac_try" in | ||
2376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2377 | *) ac_try_echo=$ac_try;; | ||
2378 | esac | ||
2379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2380 | (eval "$ac_compile") 2>&5 | ||
2381 | ac_status=$? | ||
2382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2383 | (exit $ac_status); }; then | ||
2384 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
2385 | test -f "$ac_file" || continue; | ||
2386 | case $ac_file in | ||
2387 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | ||
2388 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
2389 | break;; | ||
2390 | esac | ||
2391 | done | ||
2392 | else | ||
2393 | echo "$as_me: failed program was:" >&5 | ||
2394 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2395 | |||
2396 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
2397 | See \`config.log' for more details." >&5 | ||
2398 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
2399 | See \`config.log' for more details." >&2;} | ||
2400 | { (exit 1); exit 1; }; } | ||
2401 | fi | ||
2402 | |||
2403 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
2404 | fi | ||
2405 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
2406 | echo "${ECHO_T}$ac_cv_objext" >&6; } | ||
2407 | OBJEXT=$ac_cv_objext | ||
2408 | ac_objext=$OBJEXT | ||
2409 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
2410 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | ||
2411 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
2412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2413 | else | ||
2414 | cat >conftest.$ac_ext <<_ACEOF | ||
2415 | /* confdefs.h. */ | ||
2416 | _ACEOF | ||
2417 | cat confdefs.h >>conftest.$ac_ext | ||
2418 | cat >>conftest.$ac_ext <<_ACEOF | ||
2419 | /* end confdefs.h. */ | ||
2420 | |||
2421 | int | ||
2422 | main () | ||
2423 | { | ||
2424 | #ifndef __GNUC__ | ||
2425 | choke me | ||
2426 | #endif | ||
2427 | |||
2428 | ; | ||
2429 | return 0; | ||
2430 | } | ||
2431 | _ACEOF | ||
2432 | rm -f conftest.$ac_objext | ||
2433 | if { (ac_try="$ac_compile" | ||
2434 | case "(($ac_try" in | ||
2435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2436 | *) ac_try_echo=$ac_try;; | ||
2437 | esac | ||
2438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2439 | (eval "$ac_compile") 2>conftest.er1 | ||
2440 | ac_status=$? | ||
2441 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2442 | rm -f conftest.er1 | ||
2443 | cat conftest.err >&5 | ||
2444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2445 | (exit $ac_status); } && { | ||
2446 | test -z "$ac_c_werror_flag" || | ||
2447 | test ! -s conftest.err | ||
2448 | } && test -s conftest.$ac_objext; then | ||
2449 | ac_compiler_gnu=yes | ||
2450 | else | ||
2451 | echo "$as_me: failed program was:" >&5 | ||
2452 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2453 | |||
2454 | ac_compiler_gnu=no | ||
2455 | fi | ||
2456 | |||
2457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2458 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
2459 | |||
2460 | fi | ||
2461 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
2462 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | ||
2463 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
2464 | ac_test_CFLAGS=${CFLAGS+set} | ||
2465 | ac_save_CFLAGS=$CFLAGS | ||
2466 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
2467 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | ||
2468 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
2469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2470 | else | ||
2471 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
2472 | ac_c_werror_flag=yes | ||
2473 | ac_cv_prog_cc_g=no | ||
2474 | CFLAGS="-g" | ||
2475 | cat >conftest.$ac_ext <<_ACEOF | ||
2476 | /* confdefs.h. */ | ||
2477 | _ACEOF | ||
2478 | cat confdefs.h >>conftest.$ac_ext | ||
2479 | cat >>conftest.$ac_ext <<_ACEOF | ||
2480 | /* end confdefs.h. */ | ||
2481 | |||
2482 | int | ||
2483 | main () | ||
2484 | { | ||
2485 | |||
2486 | ; | ||
2487 | return 0; | ||
2488 | } | ||
2489 | _ACEOF | ||
2490 | rm -f conftest.$ac_objext | ||
2491 | if { (ac_try="$ac_compile" | ||
2492 | case "(($ac_try" in | ||
2493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2494 | *) ac_try_echo=$ac_try;; | ||
2495 | esac | ||
2496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2497 | (eval "$ac_compile") 2>conftest.er1 | ||
2498 | ac_status=$? | ||
2499 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2500 | rm -f conftest.er1 | ||
2501 | cat conftest.err >&5 | ||
2502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2503 | (exit $ac_status); } && { | ||
2504 | test -z "$ac_c_werror_flag" || | ||
2505 | test ! -s conftest.err | ||
2506 | } && test -s conftest.$ac_objext; then | ||
2507 | ac_cv_prog_cc_g=yes | ||
2508 | else | ||
2509 | echo "$as_me: failed program was:" >&5 | ||
2510 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2511 | |||
2512 | CFLAGS="" | ||
2513 | cat >conftest.$ac_ext <<_ACEOF | ||
2514 | /* confdefs.h. */ | ||
2515 | _ACEOF | ||
2516 | cat confdefs.h >>conftest.$ac_ext | ||
2517 | cat >>conftest.$ac_ext <<_ACEOF | ||
2518 | /* end confdefs.h. */ | ||
2519 | |||
2520 | int | ||
2521 | main () | ||
2522 | { | ||
2523 | |||
2524 | ; | ||
2525 | return 0; | ||
2526 | } | ||
2527 | _ACEOF | ||
2528 | rm -f conftest.$ac_objext | ||
2529 | if { (ac_try="$ac_compile" | ||
2530 | case "(($ac_try" in | ||
2531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2532 | *) ac_try_echo=$ac_try;; | ||
2533 | esac | ||
2534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2535 | (eval "$ac_compile") 2>conftest.er1 | ||
2536 | ac_status=$? | ||
2537 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2538 | rm -f conftest.er1 | ||
2539 | cat conftest.err >&5 | ||
2540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2541 | (exit $ac_status); } && { | ||
2542 | test -z "$ac_c_werror_flag" || | ||
2543 | test ! -s conftest.err | ||
2544 | } && test -s conftest.$ac_objext; then | ||
2545 | : | ||
2546 | else | ||
2547 | echo "$as_me: failed program was:" >&5 | ||
2548 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2549 | |||
2550 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2551 | CFLAGS="-g" | ||
2552 | cat >conftest.$ac_ext <<_ACEOF | ||
2553 | /* confdefs.h. */ | ||
2554 | _ACEOF | ||
2555 | cat confdefs.h >>conftest.$ac_ext | ||
2556 | cat >>conftest.$ac_ext <<_ACEOF | ||
2557 | /* end confdefs.h. */ | ||
2558 | |||
2559 | int | ||
2560 | main () | ||
2561 | { | ||
2562 | |||
2563 | ; | ||
2564 | return 0; | ||
2565 | } | ||
2566 | _ACEOF | ||
2567 | rm -f conftest.$ac_objext | ||
2568 | if { (ac_try="$ac_compile" | ||
2569 | case "(($ac_try" in | ||
2570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2571 | *) ac_try_echo=$ac_try;; | ||
2572 | esac | ||
2573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2574 | (eval "$ac_compile") 2>conftest.er1 | ||
2575 | ac_status=$? | ||
2576 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2577 | rm -f conftest.er1 | ||
2578 | cat conftest.err >&5 | ||
2579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2580 | (exit $ac_status); } && { | ||
2581 | test -z "$ac_c_werror_flag" || | ||
2582 | test ! -s conftest.err | ||
2583 | } && test -s conftest.$ac_objext; then | ||
2584 | ac_cv_prog_cc_g=yes | ||
2585 | else | ||
2586 | echo "$as_me: failed program was:" >&5 | ||
2587 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2588 | |||
2589 | |||
2590 | fi | ||
2591 | |||
2592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2593 | fi | ||
2594 | |||
2595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2596 | fi | ||
2597 | |||
2598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2599 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2600 | fi | ||
2601 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
2602 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | ||
2603 | if test "$ac_test_CFLAGS" = set; then | ||
2604 | CFLAGS=$ac_save_CFLAGS | ||
2605 | elif test $ac_cv_prog_cc_g = yes; then | ||
2606 | if test "$GCC" = yes; then | ||
2607 | CFLAGS="-g -O2" | ||
2608 | else | ||
2609 | CFLAGS="-g" | ||
2610 | fi | ||
2611 | else | ||
2612 | if test "$GCC" = yes; then | ||
2613 | CFLAGS="-O2" | ||
2614 | else | ||
2615 | CFLAGS= | ||
2616 | fi | ||
2617 | fi | ||
2618 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | ||
2619 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | ||
2620 | if test "${ac_cv_prog_cc_c89+set}" = set; then | ||
2621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2622 | else | ||
2623 | ac_cv_prog_cc_c89=no | ||
2624 | ac_save_CC=$CC | ||
2625 | cat >conftest.$ac_ext <<_ACEOF | ||
2626 | /* confdefs.h. */ | ||
2627 | _ACEOF | ||
2628 | cat confdefs.h >>conftest.$ac_ext | ||
2629 | cat >>conftest.$ac_ext <<_ACEOF | ||
2630 | /* end confdefs.h. */ | ||
2631 | #include <stdarg.h> | ||
2632 | #include <stdio.h> | ||
2633 | #include <sys/types.h> | ||
2634 | #include <sys/stat.h> | ||
2635 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2636 | struct buf { int x; }; | ||
2637 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2638 | static char *e (p, i) | ||
2639 | char **p; | ||
2640 | int i; | ||
2641 | { | ||
2642 | return p[i]; | ||
2643 | } | ||
2644 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2645 | { | ||
2646 | char *s; | ||
2647 | va_list v; | ||
2648 | va_start (v,p); | ||
2649 | s = g (p, va_arg (v,int)); | ||
2650 | va_end (v); | ||
2651 | return s; | ||
2652 | } | ||
2653 | |||
2654 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
2655 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
2656 | These don't provoke an error unfortunately, instead are silently treated | ||
2657 | as 'x'. The following induces an error, until -std is added to get | ||
2658 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
2659 | array size at least. It's necessary to write '\x00'==0 to get something | ||
2660 | that's true only with -std. */ | ||
2661 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
2662 | |||
2663 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
2664 | inside strings and character constants. */ | ||
2665 | #define FOO(x) 'x' | ||
2666 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
2667 | |||
2668 | int test (int i, double x); | ||
2669 | struct s1 {int (*f) (int a);}; | ||
2670 | struct s2 {int (*f) (double a);}; | ||
2671 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2672 | int argc; | ||
2673 | char **argv; | ||
2674 | int | ||
2675 | main () | ||
2676 | { | ||
2677 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2678 | ; | ||
2679 | return 0; | ||
2680 | } | ||
2681 | _ACEOF | ||
2682 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
2683 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
2684 | do | ||
2685 | CC="$ac_save_CC $ac_arg" | ||
2686 | rm -f conftest.$ac_objext | ||
2687 | if { (ac_try="$ac_compile" | ||
2688 | case "(($ac_try" in | ||
2689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2690 | *) ac_try_echo=$ac_try;; | ||
2691 | esac | ||
2692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2693 | (eval "$ac_compile") 2>conftest.er1 | ||
2694 | ac_status=$? | ||
2695 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2696 | rm -f conftest.er1 | ||
2697 | cat conftest.err >&5 | ||
2698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2699 | (exit $ac_status); } && { | ||
2700 | test -z "$ac_c_werror_flag" || | ||
2701 | test ! -s conftest.err | ||
2702 | } && test -s conftest.$ac_objext; then | ||
2703 | ac_cv_prog_cc_c89=$ac_arg | ||
2704 | else | ||
2705 | echo "$as_me: failed program was:" >&5 | ||
2706 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2707 | |||
2708 | |||
2709 | fi | ||
2710 | |||
2711 | rm -f core conftest.err conftest.$ac_objext | ||
2712 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
2713 | done | ||
2714 | rm -f conftest.$ac_ext | ||
2715 | CC=$ac_save_CC | ||
2716 | |||
2717 | fi | ||
2718 | # AC_CACHE_VAL | ||
2719 | case "x$ac_cv_prog_cc_c89" in | ||
2720 | x) | ||
2721 | { echo "$as_me:$LINENO: result: none needed" >&5 | ||
2722 | echo "${ECHO_T}none needed" >&6; } ;; | ||
2723 | xno) | ||
2724 | { echo "$as_me:$LINENO: result: unsupported" >&5 | ||
2725 | echo "${ECHO_T}unsupported" >&6; } ;; | ||
2726 | *) | ||
2727 | CC="$CC $ac_cv_prog_cc_c89" | ||
2728 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | ||
2729 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | ||
2730 | esac | ||
2731 | |||
2732 | |||
2733 | ac_ext=c | ||
2734 | ac_cpp='$CPP $CPPFLAGS' | ||
2735 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2736 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2737 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2738 | |||
2739 | ac_aux_dir= | ||
2740 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
2741 | if test -f "$ac_dir/install-sh"; then | ||
2742 | ac_aux_dir=$ac_dir | ||
2743 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2744 | break | ||
2745 | elif test -f "$ac_dir/install.sh"; then | ||
2746 | ac_aux_dir=$ac_dir | ||
2747 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2748 | break | ||
2749 | elif test -f "$ac_dir/shtool"; then | ||
2750 | ac_aux_dir=$ac_dir | ||
2751 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2752 | break | ||
2753 | fi | ||
2754 | done | ||
2755 | if test -z "$ac_aux_dir"; then | ||
2756 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | ||
2757 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | ||
2758 | { (exit 1); exit 1; }; } | ||
2759 | fi | ||
2760 | |||
2761 | # These three variables are undocumented and unsupported, | ||
2762 | # and are intended to be withdrawn in a future Autoconf release. | ||
2763 | # They can cause serious problems if a builder's source tree is in a directory | ||
2764 | # whose full name contains unusual characters. | ||
2765 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
2766 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
2767 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2768 | |||
2769 | |||
2770 | # Make sure we can run config.sub. | ||
2771 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
2772 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | ||
2773 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | ||
2774 | { (exit 1); exit 1; }; } | ||
2775 | |||
2776 | { echo "$as_me:$LINENO: checking build system type" >&5 | ||
2777 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | ||
2778 | if test "${ac_cv_build+set}" = set; then | ||
2779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2780 | else | ||
2781 | ac_build_alias=$build_alias | ||
2782 | test "x$ac_build_alias" = x && | ||
2783 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
2784 | test "x$ac_build_alias" = x && | ||
2785 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
2786 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
2787 | { (exit 1); exit 1; }; } | ||
2788 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
2789 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | ||
2790 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | ||
2791 | { (exit 1); exit 1; }; } | ||
2792 | |||
2793 | fi | ||
2794 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
2795 | echo "${ECHO_T}$ac_cv_build" >&6; } | ||
2796 | case $ac_cv_build in | ||
2797 | *-*-*) ;; | ||
2798 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | ||
2799 | echo "$as_me: error: invalid value of canonical build" >&2;} | ||
2800 | { (exit 1); exit 1; }; };; | ||
2801 | esac | ||
2802 | build=$ac_cv_build | ||
2803 | ac_save_IFS=$IFS; IFS='-' | ||
2804 | set x $ac_cv_build | ||
2805 | shift | ||
2806 | build_cpu=$1 | ||
2807 | build_vendor=$2 | ||
2808 | shift; shift | ||
2809 | # Remember, the first character of IFS is used to create $*, | ||
2810 | # except with old shells: | ||
2811 | build_os=$* | ||
2812 | IFS=$ac_save_IFS | ||
2813 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
2814 | |||
2815 | |||
2816 | { echo "$as_me:$LINENO: checking host system type" >&5 | ||
2817 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | ||
2818 | if test "${ac_cv_host+set}" = set; then | ||
2819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2820 | else | ||
2821 | if test "x$host_alias" = x; then | ||
2822 | ac_cv_host=$ac_cv_build | ||
2823 | else | ||
2824 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
2825 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | ||
2826 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | ||
2827 | { (exit 1); exit 1; }; } | ||
2828 | fi | ||
2829 | |||
2830 | fi | ||
2831 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
2832 | echo "${ECHO_T}$ac_cv_host" >&6; } | ||
2833 | case $ac_cv_host in | ||
2834 | *-*-*) ;; | ||
2835 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | ||
2836 | echo "$as_me: error: invalid value of canonical host" >&2;} | ||
2837 | { (exit 1); exit 1; }; };; | ||
2838 | esac | ||
2839 | host=$ac_cv_host | ||
2840 | ac_save_IFS=$IFS; IFS='-' | ||
2841 | set x $ac_cv_host | ||
2842 | shift | ||
2843 | host_cpu=$1 | ||
2844 | host_vendor=$2 | ||
2845 | shift; shift | ||
2846 | # Remember, the first character of IFS is used to create $*, | ||
2847 | # except with old shells: | ||
2848 | host_os=$* | ||
2849 | IFS=$ac_save_IFS | ||
2850 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
2851 | |||
2852 | |||
2853 | |||
2854 | ac_ext=c | ||
2855 | ac_cpp='$CPP $CPPFLAGS' | ||
2856 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2857 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2858 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2859 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
2860 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
2861 | # On Suns, sometimes $CPP names a directory. | ||
2862 | if test -n "$CPP" && test -d "$CPP"; then | ||
2863 | CPP= | ||
2864 | fi | ||
2865 | if test -z "$CPP"; then | ||
2866 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
2867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2868 | else | ||
2869 | # Double quotes because CPP needs to be expanded | ||
2870 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
2871 | do | ||
2872 | ac_preproc_ok=false | ||
2873 | for ac_c_preproc_warn_flag in '' yes | ||
2874 | do | ||
2875 | # Use a header file that comes with gcc, so configuring glibc | ||
2876 | # with a fresh cross-compiler works. | ||
2877 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2878 | # <limits.h> exists even on freestanding compilers. | ||
2879 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2880 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2881 | cat >conftest.$ac_ext <<_ACEOF | ||
2882 | /* confdefs.h. */ | ||
2883 | _ACEOF | ||
2884 | cat confdefs.h >>conftest.$ac_ext | ||
2885 | cat >>conftest.$ac_ext <<_ACEOF | ||
2886 | /* end confdefs.h. */ | ||
2887 | #ifdef __STDC__ | ||
2888 | # include <limits.h> | ||
2889 | #else | ||
2890 | # include <assert.h> | ||
2891 | #endif | ||
2892 | Syntax error | ||
2893 | _ACEOF | ||
2894 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2895 | case "(($ac_try" in | ||
2896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2897 | *) ac_try_echo=$ac_try;; | ||
2898 | esac | ||
2899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2900 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
2901 | ac_status=$? | ||
2902 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2903 | rm -f conftest.er1 | ||
2904 | cat conftest.err >&5 | ||
2905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2906 | (exit $ac_status); } >/dev/null && { | ||
2907 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2908 | test ! -s conftest.err | ||
2909 | }; then | ||
2910 | : | ||
2911 | else | ||
2912 | echo "$as_me: failed program was:" >&5 | ||
2913 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2914 | |||
2915 | # Broken: fails on valid input. | ||
2916 | continue | ||
2917 | fi | ||
2918 | |||
2919 | rm -f conftest.err conftest.$ac_ext | ||
2920 | |||
2921 | # OK, works on sane cases. Now check whether nonexistent headers | ||
2922 | # can be detected and how. | ||
2923 | cat >conftest.$ac_ext <<_ACEOF | ||
2924 | /* confdefs.h. */ | ||
2925 | _ACEOF | ||
2926 | cat confdefs.h >>conftest.$ac_ext | ||
2927 | cat >>conftest.$ac_ext <<_ACEOF | ||
2928 | /* end confdefs.h. */ | ||
2929 | #include <ac_nonexistent.h> | ||
2930 | _ACEOF | ||
2931 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2932 | case "(($ac_try" in | ||
2933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2934 | *) ac_try_echo=$ac_try;; | ||
2935 | esac | ||
2936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2937 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
2938 | ac_status=$? | ||
2939 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2940 | rm -f conftest.er1 | ||
2941 | cat conftest.err >&5 | ||
2942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2943 | (exit $ac_status); } >/dev/null && { | ||
2944 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2945 | test ! -s conftest.err | ||
2946 | }; then | ||
2947 | # Broken: success on invalid input. | ||
2948 | continue | ||
2949 | else | ||
2950 | echo "$as_me: failed program was:" >&5 | ||
2951 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2952 | |||
2953 | # Passes both tests. | ||
2954 | ac_preproc_ok=: | ||
2955 | break | ||
2956 | fi | ||
2957 | |||
2958 | rm -f conftest.err conftest.$ac_ext | ||
2959 | |||
2960 | done | ||
2961 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2962 | rm -f conftest.err conftest.$ac_ext | ||
2963 | if $ac_preproc_ok; then | ||
2964 | break | ||
2965 | fi | ||
2966 | |||
2967 | done | ||
2968 | ac_cv_prog_CPP=$CPP | ||
2969 | |||
2970 | fi | ||
2971 | CPP=$ac_cv_prog_CPP | ||
2972 | else | ||
2973 | ac_cv_prog_CPP=$CPP | ||
2974 | fi | ||
2975 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
2976 | echo "${ECHO_T}$CPP" >&6; } | ||
2977 | ac_preproc_ok=false | ||
2978 | for ac_c_preproc_warn_flag in '' yes | ||
2979 | do | ||
2980 | # Use a header file that comes with gcc, so configuring glibc | ||
2981 | # with a fresh cross-compiler works. | ||
2982 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2983 | # <limits.h> exists even on freestanding compilers. | ||
2984 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2985 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2986 | cat >conftest.$ac_ext <<_ACEOF | ||
2987 | /* confdefs.h. */ | ||
2988 | _ACEOF | ||
2989 | cat confdefs.h >>conftest.$ac_ext | ||
2990 | cat >>conftest.$ac_ext <<_ACEOF | ||
2991 | /* end confdefs.h. */ | ||
2992 | #ifdef __STDC__ | ||
2993 | # include <limits.h> | ||
2994 | #else | ||
2995 | # include <assert.h> | ||
2996 | #endif | ||
2997 | Syntax error | ||
2998 | _ACEOF | ||
2999 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3000 | case "(($ac_try" in | ||
3001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3002 | *) ac_try_echo=$ac_try;; | ||
3003 | esac | ||
3004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3005 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3006 | ac_status=$? | ||
3007 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3008 | rm -f conftest.er1 | ||
3009 | cat conftest.err >&5 | ||
3010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3011 | (exit $ac_status); } >/dev/null && { | ||
3012 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3013 | test ! -s conftest.err | ||
3014 | }; then | ||
3015 | : | ||
3016 | else | ||
3017 | echo "$as_me: failed program was:" >&5 | ||
3018 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3019 | |||
3020 | # Broken: fails on valid input. | ||
3021 | continue | ||
3022 | fi | ||
3023 | |||
3024 | rm -f conftest.err conftest.$ac_ext | ||
3025 | |||
3026 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3027 | # can be detected and how. | ||
3028 | cat >conftest.$ac_ext <<_ACEOF | ||
3029 | /* confdefs.h. */ | ||
3030 | _ACEOF | ||
3031 | cat confdefs.h >>conftest.$ac_ext | ||
3032 | cat >>conftest.$ac_ext <<_ACEOF | ||
3033 | /* end confdefs.h. */ | ||
3034 | #include <ac_nonexistent.h> | ||
3035 | _ACEOF | ||
3036 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3037 | case "(($ac_try" in | ||
3038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3039 | *) ac_try_echo=$ac_try;; | ||
3040 | esac | ||
3041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3042 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3043 | ac_status=$? | ||
3044 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3045 | rm -f conftest.er1 | ||
3046 | cat conftest.err >&5 | ||
3047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3048 | (exit $ac_status); } >/dev/null && { | ||
3049 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3050 | test ! -s conftest.err | ||
3051 | }; then | ||
3052 | # Broken: success on invalid input. | ||
3053 | continue | ||
3054 | else | ||
3055 | echo "$as_me: failed program was:" >&5 | ||
3056 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3057 | |||
3058 | # Passes both tests. | ||
3059 | ac_preproc_ok=: | ||
3060 | break | ||
3061 | fi | ||
3062 | |||
3063 | rm -f conftest.err conftest.$ac_ext | ||
3064 | |||
3065 | done | ||
3066 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3067 | rm -f conftest.err conftest.$ac_ext | ||
3068 | if $ac_preproc_ok; then | ||
3069 | : | ||
3070 | else | ||
3071 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3072 | See \`config.log' for more details." >&5 | ||
3073 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3074 | See \`config.log' for more details." >&2;} | ||
3075 | { (exit 1); exit 1; }; } | ||
3076 | fi | ||
3077 | |||
3078 | ac_ext=c | ||
3079 | ac_cpp='$CPP $CPPFLAGS' | ||
3080 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3081 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3082 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3083 | |||
3084 | |||
3085 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | ||
3086 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | ||
3087 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3089 | else | ||
3090 | # Extract the first word of "grep ggrep" to use in msg output | ||
3091 | if test -z "$GREP"; then | ||
3092 | set dummy grep ggrep; ac_prog_name=$2 | ||
3093 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3095 | else | ||
3096 | ac_path_GREP_found=false | ||
3097 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3099 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3100 | do | ||
3101 | IFS=$as_save_IFS | ||
3102 | test -z "$as_dir" && as_dir=. | ||
3103 | for ac_prog in grep ggrep; do | ||
3104 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3105 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3106 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
3107 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3108 | # Check for GNU $ac_path_GREP | ||
3109 | case `"$ac_path_GREP" --version 2>&1` in | ||
3110 | *GNU*) | ||
3111 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3112 | *) | ||
3113 | ac_count=0 | ||
3114 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3115 | while : | ||
3116 | do | ||
3117 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3118 | mv "conftest.tmp" "conftest.in" | ||
3119 | cp "conftest.in" "conftest.nl" | ||
3120 | echo 'GREP' >> "conftest.nl" | ||
3121 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3122 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3123 | ac_count=`expr $ac_count + 1` | ||
3124 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3125 | # Best one so far, save it but keep looking for a better one | ||
3126 | ac_cv_path_GREP="$ac_path_GREP" | ||
3127 | ac_path_GREP_max=$ac_count | ||
3128 | fi | ||
3129 | # 10*(2^10) chars as input seems more than enough | ||
3130 | test $ac_count -gt 10 && break | ||
3131 | done | ||
3132 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3133 | esac | ||
3134 | |||
3135 | |||
3136 | $ac_path_GREP_found && break 3 | ||
3137 | done | ||
3138 | done | ||
3139 | |||
3140 | done | ||
3141 | IFS=$as_save_IFS | ||
3142 | |||
3143 | |||
3144 | fi | ||
3145 | |||
3146 | GREP="$ac_cv_path_GREP" | ||
3147 | if test -z "$GREP"; then | ||
3148 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3149 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3150 | { (exit 1); exit 1; }; } | ||
3151 | fi | ||
3152 | |||
3153 | else | ||
3154 | ac_cv_path_GREP=$GREP | ||
3155 | fi | ||
3156 | |||
3157 | |||
3158 | fi | ||
3159 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | ||
3160 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | ||
3161 | GREP="$ac_cv_path_GREP" | ||
3162 | |||
3163 | |||
3164 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
3165 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
3166 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3168 | else | ||
3169 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3170 | then ac_cv_path_EGREP="$GREP -E" | ||
3171 | else | ||
3172 | # Extract the first word of "egrep" to use in msg output | ||
3173 | if test -z "$EGREP"; then | ||
3174 | set dummy egrep; ac_prog_name=$2 | ||
3175 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3177 | else | ||
3178 | ac_path_EGREP_found=false | ||
3179 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3181 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3182 | do | ||
3183 | IFS=$as_save_IFS | ||
3184 | test -z "$as_dir" && as_dir=. | ||
3185 | for ac_prog in egrep; do | ||
3186 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3187 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3188 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
3189 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3190 | # Check for GNU $ac_path_EGREP | ||
3191 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3192 | *GNU*) | ||
3193 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3194 | *) | ||
3195 | ac_count=0 | ||
3196 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3197 | while : | ||
3198 | do | ||
3199 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3200 | mv "conftest.tmp" "conftest.in" | ||
3201 | cp "conftest.in" "conftest.nl" | ||
3202 | echo 'EGREP' >> "conftest.nl" | ||
3203 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3204 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3205 | ac_count=`expr $ac_count + 1` | ||
3206 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3207 | # Best one so far, save it but keep looking for a better one | ||
3208 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3209 | ac_path_EGREP_max=$ac_count | ||
3210 | fi | ||
3211 | # 10*(2^10) chars as input seems more than enough | ||
3212 | test $ac_count -gt 10 && break | ||
3213 | done | ||
3214 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3215 | esac | ||
3216 | |||
3217 | |||
3218 | $ac_path_EGREP_found && break 3 | ||
3219 | done | ||
3220 | done | ||
3221 | |||
3222 | done | ||
3223 | IFS=$as_save_IFS | ||
3224 | |||
3225 | |||
3226 | fi | ||
3227 | |||
3228 | EGREP="$ac_cv_path_EGREP" | ||
3229 | if test -z "$EGREP"; then | ||
3230 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3231 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3232 | { (exit 1); exit 1; }; } | ||
3233 | fi | ||
3234 | |||
3235 | else | ||
3236 | ac_cv_path_EGREP=$EGREP | ||
3237 | fi | ||
3238 | |||
3239 | |||
3240 | fi | ||
3241 | fi | ||
3242 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
3243 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
3244 | EGREP="$ac_cv_path_EGREP" | ||
3245 | |||
3246 | |||
3247 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
3248 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | ||
3249 | if test "${ac_cv_header_stdc+set}" = set; then | ||
3250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3251 | else | ||
3252 | cat >conftest.$ac_ext <<_ACEOF | ||
3253 | /* confdefs.h. */ | ||
3254 | _ACEOF | ||
3255 | cat confdefs.h >>conftest.$ac_ext | ||
3256 | cat >>conftest.$ac_ext <<_ACEOF | ||
3257 | /* end confdefs.h. */ | ||
3258 | #include <stdlib.h> | ||
3259 | #include <stdarg.h> | ||
3260 | #include <string.h> | ||
3261 | #include <float.h> | ||
3262 | |||
3263 | int | ||
3264 | main () | ||
3265 | { | ||
3266 | |||
3267 | ; | ||
3268 | return 0; | ||
3269 | } | ||
3270 | _ACEOF | ||
3271 | rm -f conftest.$ac_objext | ||
3272 | if { (ac_try="$ac_compile" | ||
3273 | case "(($ac_try" in | ||
3274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3275 | *) ac_try_echo=$ac_try;; | ||
3276 | esac | ||
3277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3278 | (eval "$ac_compile") 2>conftest.er1 | ||
3279 | ac_status=$? | ||
3280 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3281 | rm -f conftest.er1 | ||
3282 | cat conftest.err >&5 | ||
3283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3284 | (exit $ac_status); } && { | ||
3285 | test -z "$ac_c_werror_flag" || | ||
3286 | test ! -s conftest.err | ||
3287 | } && test -s conftest.$ac_objext; then | ||
3288 | ac_cv_header_stdc=yes | ||
3289 | else | ||
3290 | echo "$as_me: failed program was:" >&5 | ||
3291 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3292 | |||
3293 | ac_cv_header_stdc=no | ||
3294 | fi | ||
3295 | |||
3296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3297 | |||
3298 | if test $ac_cv_header_stdc = yes; then | ||
3299 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3300 | cat >conftest.$ac_ext <<_ACEOF | ||
3301 | /* confdefs.h. */ | ||
3302 | _ACEOF | ||
3303 | cat confdefs.h >>conftest.$ac_ext | ||
3304 | cat >>conftest.$ac_ext <<_ACEOF | ||
3305 | /* end confdefs.h. */ | ||
3306 | #include <string.h> | ||
3307 | |||
3308 | _ACEOF | ||
3309 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3310 | $EGREP "memchr" >/dev/null 2>&1; then | ||
3311 | : | ||
3312 | else | ||
3313 | ac_cv_header_stdc=no | ||
3314 | fi | ||
3315 | rm -f conftest* | ||
3316 | |||
3317 | fi | ||
3318 | |||
3319 | if test $ac_cv_header_stdc = yes; then | ||
3320 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3321 | cat >conftest.$ac_ext <<_ACEOF | ||
3322 | /* confdefs.h. */ | ||
3323 | _ACEOF | ||
3324 | cat confdefs.h >>conftest.$ac_ext | ||
3325 | cat >>conftest.$ac_ext <<_ACEOF | ||
3326 | /* end confdefs.h. */ | ||
3327 | #include <stdlib.h> | ||
3328 | |||
3329 | _ACEOF | ||
3330 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3331 | $EGREP "free" >/dev/null 2>&1; then | ||
3332 | : | ||
3333 | else | ||
3334 | ac_cv_header_stdc=no | ||
3335 | fi | ||
3336 | rm -f conftest* | ||
3337 | |||
3338 | fi | ||
3339 | |||
3340 | if test $ac_cv_header_stdc = yes; then | ||
3341 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
3342 | if test "$cross_compiling" = yes; then | ||
3343 | : | ||
3344 | else | ||
3345 | cat >conftest.$ac_ext <<_ACEOF | ||
3346 | /* confdefs.h. */ | ||
3347 | _ACEOF | ||
3348 | cat confdefs.h >>conftest.$ac_ext | ||
3349 | cat >>conftest.$ac_ext <<_ACEOF | ||
3350 | /* end confdefs.h. */ | ||
3351 | #include <ctype.h> | ||
3352 | #include <stdlib.h> | ||
3353 | #if ((' ' & 0x0FF) == 0x020) | ||
3354 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
3355 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
3356 | #else | ||
3357 | # define ISLOWER(c) \ | ||
3358 | (('a' <= (c) && (c) <= 'i') \ | ||
3359 | || ('j' <= (c) && (c) <= 'r') \ | ||
3360 | || ('s' <= (c) && (c) <= 'z')) | ||
3361 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
3362 | #endif | ||
3363 | |||
3364 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
3365 | int | ||
3366 | main () | ||
3367 | { | ||
3368 | int i; | ||
3369 | for (i = 0; i < 256; i++) | ||
3370 | if (XOR (islower (i), ISLOWER (i)) | ||
3371 | || toupper (i) != TOUPPER (i)) | ||
3372 | return 2; | ||
3373 | return 0; | ||
3374 | } | ||
3375 | _ACEOF | ||
3376 | rm -f conftest$ac_exeext | ||
3377 | if { (ac_try="$ac_link" | ||
3378 | case "(($ac_try" in | ||
3379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3380 | *) ac_try_echo=$ac_try;; | ||
3381 | esac | ||
3382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3383 | (eval "$ac_link") 2>&5 | ||
3384 | ac_status=$? | ||
3385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3386 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3387 | { (case "(($ac_try" in | ||
3388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3389 | *) ac_try_echo=$ac_try;; | ||
3390 | esac | ||
3391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3392 | (eval "$ac_try") 2>&5 | ||
3393 | ac_status=$? | ||
3394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3395 | (exit $ac_status); }; }; then | ||
3396 | : | ||
3397 | else | ||
3398 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3399 | echo "$as_me: failed program was:" >&5 | ||
3400 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3401 | |||
3402 | ( exit $ac_status ) | ||
3403 | ac_cv_header_stdc=no | ||
3404 | fi | ||
3405 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3406 | fi | ||
3407 | |||
3408 | |||
3409 | fi | ||
3410 | fi | ||
3411 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
3412 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | ||
3413 | if test $ac_cv_header_stdc = yes; then | ||
3414 | |||
3415 | cat >>confdefs.h <<\_ACEOF | ||
3416 | #define STDC_HEADERS 1 | ||
3417 | _ACEOF | ||
3418 | |||
3419 | fi | ||
3420 | |||
3421 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3422 | |||
3423 | |||
3424 | |||
3425 | |||
3426 | |||
3427 | |||
3428 | |||
3429 | |||
3430 | |||
3431 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
3432 | inttypes.h stdint.h unistd.h | ||
3433 | do | ||
3434 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
3435 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
3436 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
3437 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
3438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3439 | else | ||
3440 | cat >conftest.$ac_ext <<_ACEOF | ||
3441 | /* confdefs.h. */ | ||
3442 | _ACEOF | ||
3443 | cat confdefs.h >>conftest.$ac_ext | ||
3444 | cat >>conftest.$ac_ext <<_ACEOF | ||
3445 | /* end confdefs.h. */ | ||
3446 | $ac_includes_default | ||
3447 | |||
3448 | #include <$ac_header> | ||
3449 | _ACEOF | ||
3450 | rm -f conftest.$ac_objext | ||
3451 | if { (ac_try="$ac_compile" | ||
3452 | case "(($ac_try" in | ||
3453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3454 | *) ac_try_echo=$ac_try;; | ||
3455 | esac | ||
3456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3457 | (eval "$ac_compile") 2>conftest.er1 | ||
3458 | ac_status=$? | ||
3459 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3460 | rm -f conftest.er1 | ||
3461 | cat conftest.err >&5 | ||
3462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3463 | (exit $ac_status); } && { | ||
3464 | test -z "$ac_c_werror_flag" || | ||
3465 | test ! -s conftest.err | ||
3466 | } && test -s conftest.$ac_objext; then | ||
3467 | eval "$as_ac_Header=yes" | ||
3468 | else | ||
3469 | echo "$as_me: failed program was:" >&5 | ||
3470 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3471 | |||
3472 | eval "$as_ac_Header=no" | ||
3473 | fi | ||
3474 | |||
3475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3476 | fi | ||
3477 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
3478 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
3479 | echo "${ECHO_T}$ac_res" >&6; } | ||
3480 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
3481 | cat >>confdefs.h <<_ACEOF | ||
3482 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
3483 | _ACEOF | ||
3484 | |||
3485 | fi | ||
3486 | |||
3487 | done | ||
3488 | |||
3489 | |||
3490 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | ||
3491 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | ||
3492 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
3493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3494 | else | ||
3495 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
3496 | cat >conftest.$ac_ext <<_ACEOF | ||
3497 | /* confdefs.h. */ | ||
3498 | _ACEOF | ||
3499 | cat confdefs.h >>conftest.$ac_ext | ||
3500 | cat >>conftest.$ac_ext <<_ACEOF | ||
3501 | /* end confdefs.h. */ | ||
3502 | #include <sys/types.h> | ||
3503 | #include <sys/param.h> | ||
3504 | |||
3505 | int | ||
3506 | main () | ||
3507 | { | ||
3508 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ | ||
3509 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | ||
3510 | bogus endian macros | ||
3511 | #endif | ||
3512 | |||
3513 | ; | ||
3514 | return 0; | ||
3515 | } | ||
3516 | _ACEOF | ||
3517 | rm -f conftest.$ac_objext | ||
3518 | if { (ac_try="$ac_compile" | ||
3519 | case "(($ac_try" in | ||
3520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3521 | *) ac_try_echo=$ac_try;; | ||
3522 | esac | ||
3523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3524 | (eval "$ac_compile") 2>conftest.er1 | ||
3525 | ac_status=$? | ||
3526 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3527 | rm -f conftest.er1 | ||
3528 | cat conftest.err >&5 | ||
3529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3530 | (exit $ac_status); } && { | ||
3531 | test -z "$ac_c_werror_flag" || | ||
3532 | test ! -s conftest.err | ||
3533 | } && test -s conftest.$ac_objext; then | ||
3534 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
3535 | cat >conftest.$ac_ext <<_ACEOF | ||
3536 | /* confdefs.h. */ | ||
3537 | _ACEOF | ||
3538 | cat confdefs.h >>conftest.$ac_ext | ||
3539 | cat >>conftest.$ac_ext <<_ACEOF | ||
3540 | /* end confdefs.h. */ | ||
3541 | #include <sys/types.h> | ||
3542 | #include <sys/param.h> | ||
3543 | |||
3544 | int | ||
3545 | main () | ||
3546 | { | ||
3547 | #if BYTE_ORDER != BIG_ENDIAN | ||
3548 | not big endian | ||
3549 | #endif | ||
3550 | |||
3551 | ; | ||
3552 | return 0; | ||
3553 | } | ||
3554 | _ACEOF | ||
3555 | rm -f conftest.$ac_objext | ||
3556 | if { (ac_try="$ac_compile" | ||
3557 | case "(($ac_try" in | ||
3558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3559 | *) ac_try_echo=$ac_try;; | ||
3560 | esac | ||
3561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3562 | (eval "$ac_compile") 2>conftest.er1 | ||
3563 | ac_status=$? | ||
3564 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3565 | rm -f conftest.er1 | ||
3566 | cat conftest.err >&5 | ||
3567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3568 | (exit $ac_status); } && { | ||
3569 | test -z "$ac_c_werror_flag" || | ||
3570 | test ! -s conftest.err | ||
3571 | } && test -s conftest.$ac_objext; then | ||
3572 | ac_cv_c_bigendian=yes | ||
3573 | else | ||
3574 | echo "$as_me: failed program was:" >&5 | ||
3575 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3576 | |||
3577 | ac_cv_c_bigendian=no | ||
3578 | fi | ||
3579 | |||
3580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3581 | else | ||
3582 | echo "$as_me: failed program was:" >&5 | ||
3583 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3584 | |||
3585 | # It does not; compile a test program. | ||
3586 | if test "$cross_compiling" = yes; then | ||
3587 | # try to guess the endianness by grepping values into an object file | ||
3588 | ac_cv_c_bigendian=unknown | ||
3589 | cat >conftest.$ac_ext <<_ACEOF | ||
3590 | /* confdefs.h. */ | ||
3591 | _ACEOF | ||
3592 | cat confdefs.h >>conftest.$ac_ext | ||
3593 | cat >>conftest.$ac_ext <<_ACEOF | ||
3594 | /* end confdefs.h. */ | ||
3595 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
3596 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
3597 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | ||
3598 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
3599 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
3600 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | ||
3601 | int | ||
3602 | main () | ||
3603 | { | ||
3604 | _ascii (); _ebcdic (); | ||
3605 | ; | ||
3606 | return 0; | ||
3607 | } | ||
3608 | _ACEOF | ||
3609 | rm -f conftest.$ac_objext | ||
3610 | if { (ac_try="$ac_compile" | ||
3611 | case "(($ac_try" in | ||
3612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3613 | *) ac_try_echo=$ac_try;; | ||
3614 | esac | ||
3615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3616 | (eval "$ac_compile") 2>conftest.er1 | ||
3617 | ac_status=$? | ||
3618 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3619 | rm -f conftest.er1 | ||
3620 | cat conftest.err >&5 | ||
3621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3622 | (exit $ac_status); } && { | ||
3623 | test -z "$ac_c_werror_flag" || | ||
3624 | test ! -s conftest.err | ||
3625 | } && test -s conftest.$ac_objext; then | ||
3626 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | ||
3627 | ac_cv_c_bigendian=yes | ||
3628 | fi | ||
3629 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
3630 | if test "$ac_cv_c_bigendian" = unknown; then | ||
3631 | ac_cv_c_bigendian=no | ||
3632 | else | ||
3633 | # finding both strings is unlikely to happen, but who knows? | ||
3634 | ac_cv_c_bigendian=unknown | ||
3635 | fi | ||
3636 | fi | ||
3637 | else | ||
3638 | echo "$as_me: failed program was:" >&5 | ||
3639 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3640 | |||
3641 | |||
3642 | fi | ||
3643 | |||
3644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3645 | else | ||
3646 | cat >conftest.$ac_ext <<_ACEOF | ||
3647 | /* confdefs.h. */ | ||
3648 | _ACEOF | ||
3649 | cat confdefs.h >>conftest.$ac_ext | ||
3650 | cat >>conftest.$ac_ext <<_ACEOF | ||
3651 | /* end confdefs.h. */ | ||
3652 | $ac_includes_default | ||
3653 | int | ||
3654 | main () | ||
3655 | { | ||
3656 | |||
3657 | /* Are we little or big endian? From Harbison&Steele. */ | ||
3658 | union | ||
3659 | { | ||
3660 | long int l; | ||
3661 | char c[sizeof (long int)]; | ||
3662 | } u; | ||
3663 | u.l = 1; | ||
3664 | return u.c[sizeof (long int) - 1] == 1; | ||
3665 | |||
3666 | ; | ||
3667 | return 0; | ||
3668 | } | ||
3669 | _ACEOF | ||
3670 | rm -f conftest$ac_exeext | ||
3671 | if { (ac_try="$ac_link" | ||
3672 | case "(($ac_try" in | ||
3673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3674 | *) ac_try_echo=$ac_try;; | ||
3675 | esac | ||
3676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3677 | (eval "$ac_link") 2>&5 | ||
3678 | ac_status=$? | ||
3679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3680 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3681 | { (case "(($ac_try" in | ||
3682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3683 | *) ac_try_echo=$ac_try;; | ||
3684 | esac | ||
3685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3686 | (eval "$ac_try") 2>&5 | ||
3687 | ac_status=$? | ||
3688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3689 | (exit $ac_status); }; }; then | ||
3690 | ac_cv_c_bigendian=no | ||
3691 | else | ||
3692 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3693 | echo "$as_me: failed program was:" >&5 | ||
3694 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3695 | |||
3696 | ( exit $ac_status ) | ||
3697 | ac_cv_c_bigendian=yes | ||
3698 | fi | ||
3699 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3700 | fi | ||
3701 | |||
3702 | |||
3703 | fi | ||
3704 | |||
3705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3706 | fi | ||
3707 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | ||
3708 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | ||
3709 | case $ac_cv_c_bigendian in | ||
3710 | yes) | ||
3711 | |||
3712 | cat >>confdefs.h <<\_ACEOF | ||
3713 | #define WORDS_BIGENDIAN 1 | ||
3714 | _ACEOF | ||
3715 | ;; | ||
3716 | no) | ||
3717 | ;; | ||
3718 | *) | ||
3719 | { { echo "$as_me:$LINENO: error: unknown endianness | ||
3720 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | ||
3721 | echo "$as_me: error: unknown endianness | ||
3722 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | ||
3723 | { (exit 1); exit 1; }; } ;; | ||
3724 | esac | ||
3725 | |||
3726 | |||
3727 | # Checks for programs. | ||
3728 | for ac_prog in gawk mawk nawk awk | ||
3729 | do | ||
3730 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3731 | set dummy $ac_prog; ac_word=$2 | ||
3732 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3733 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
3734 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
3735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3736 | else | ||
3737 | if test -n "$AWK"; then | ||
3738 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
3739 | else | ||
3740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3741 | for as_dir in $PATH | ||
3742 | do | ||
3743 | IFS=$as_save_IFS | ||
3744 | test -z "$as_dir" && as_dir=. | ||
3745 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3746 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3747 | ac_cv_prog_AWK="$ac_prog" | ||
3748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3749 | break 2 | ||
3750 | fi | ||
3751 | done | ||
3752 | done | ||
3753 | IFS=$as_save_IFS | ||
3754 | |||
3755 | fi | ||
3756 | fi | ||
3757 | AWK=$ac_cv_prog_AWK | ||
3758 | if test -n "$AWK"; then | ||
3759 | { echo "$as_me:$LINENO: result: $AWK" >&5 | ||
3760 | echo "${ECHO_T}$AWK" >&6; } | ||
3761 | else | ||
3762 | { echo "$as_me:$LINENO: result: no" >&5 | ||
3763 | echo "${ECHO_T}no" >&6; } | ||
3764 | fi | ||
3765 | |||
3766 | |||
3767 | test -n "$AWK" && break | ||
3768 | done | ||
3769 | |||
3770 | ac_ext=c | ||
3771 | ac_cpp='$CPP $CPPFLAGS' | ||
3772 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3773 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3774 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3775 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
3776 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
3777 | # On Suns, sometimes $CPP names a directory. | ||
3778 | if test -n "$CPP" && test -d "$CPP"; then | ||
3779 | CPP= | ||
3780 | fi | ||
3781 | if test -z "$CPP"; then | ||
3782 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
3783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3784 | else | ||
3785 | # Double quotes because CPP needs to be expanded | ||
3786 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3787 | do | ||
3788 | ac_preproc_ok=false | ||
3789 | for ac_c_preproc_warn_flag in '' yes | ||
3790 | do | ||
3791 | # Use a header file that comes with gcc, so configuring glibc | ||
3792 | # with a fresh cross-compiler works. | ||
3793 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3794 | # <limits.h> exists even on freestanding compilers. | ||
3795 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3796 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3797 | cat >conftest.$ac_ext <<_ACEOF | ||
3798 | /* confdefs.h. */ | ||
3799 | _ACEOF | ||
3800 | cat confdefs.h >>conftest.$ac_ext | ||
3801 | cat >>conftest.$ac_ext <<_ACEOF | ||
3802 | /* end confdefs.h. */ | ||
3803 | #ifdef __STDC__ | ||
3804 | # include <limits.h> | ||
3805 | #else | ||
3806 | # include <assert.h> | ||
3807 | #endif | ||
3808 | Syntax error | ||
3809 | _ACEOF | ||
3810 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3811 | case "(($ac_try" in | ||
3812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3813 | *) ac_try_echo=$ac_try;; | ||
3814 | esac | ||
3815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3816 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3817 | ac_status=$? | ||
3818 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3819 | rm -f conftest.er1 | ||
3820 | cat conftest.err >&5 | ||
3821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3822 | (exit $ac_status); } >/dev/null && { | ||
3823 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3824 | test ! -s conftest.err | ||
3825 | }; then | ||
3826 | : | ||
3827 | else | ||
3828 | echo "$as_me: failed program was:" >&5 | ||
3829 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3830 | |||
3831 | # Broken: fails on valid input. | ||
3832 | continue | ||
3833 | fi | ||
3834 | |||
3835 | rm -f conftest.err conftest.$ac_ext | ||
3836 | |||
3837 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3838 | # can be detected and how. | ||
3839 | cat >conftest.$ac_ext <<_ACEOF | ||
3840 | /* confdefs.h. */ | ||
3841 | _ACEOF | ||
3842 | cat confdefs.h >>conftest.$ac_ext | ||
3843 | cat >>conftest.$ac_ext <<_ACEOF | ||
3844 | /* end confdefs.h. */ | ||
3845 | #include <ac_nonexistent.h> | ||
3846 | _ACEOF | ||
3847 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3848 | case "(($ac_try" in | ||
3849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3850 | *) ac_try_echo=$ac_try;; | ||
3851 | esac | ||
3852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3853 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3854 | ac_status=$? | ||
3855 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3856 | rm -f conftest.er1 | ||
3857 | cat conftest.err >&5 | ||
3858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3859 | (exit $ac_status); } >/dev/null && { | ||
3860 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3861 | test ! -s conftest.err | ||
3862 | }; then | ||
3863 | # Broken: success on invalid input. | ||
3864 | continue | ||
3865 | else | ||
3866 | echo "$as_me: failed program was:" >&5 | ||
3867 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3868 | |||
3869 | # Passes both tests. | ||
3870 | ac_preproc_ok=: | ||
3871 | break | ||
3872 | fi | ||
3873 | |||
3874 | rm -f conftest.err conftest.$ac_ext | ||
3875 | |||
3876 | done | ||
3877 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3878 | rm -f conftest.err conftest.$ac_ext | ||
3879 | if $ac_preproc_ok; then | ||
3880 | break | ||
3881 | fi | ||
3882 | |||
3883 | done | ||
3884 | ac_cv_prog_CPP=$CPP | ||
3885 | |||
3886 | fi | ||
3887 | CPP=$ac_cv_prog_CPP | ||
3888 | else | ||
3889 | ac_cv_prog_CPP=$CPP | ||
3890 | fi | ||
3891 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
3892 | echo "${ECHO_T}$CPP" >&6; } | ||
3893 | ac_preproc_ok=false | ||
3894 | for ac_c_preproc_warn_flag in '' yes | ||
3895 | do | ||
3896 | # Use a header file that comes with gcc, so configuring glibc | ||
3897 | # with a fresh cross-compiler works. | ||
3898 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3899 | # <limits.h> exists even on freestanding compilers. | ||
3900 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3901 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3902 | cat >conftest.$ac_ext <<_ACEOF | ||
3903 | /* confdefs.h. */ | ||
3904 | _ACEOF | ||
3905 | cat confdefs.h >>conftest.$ac_ext | ||
3906 | cat >>conftest.$ac_ext <<_ACEOF | ||
3907 | /* end confdefs.h. */ | ||
3908 | #ifdef __STDC__ | ||
3909 | # include <limits.h> | ||
3910 | #else | ||
3911 | # include <assert.h> | ||
3912 | #endif | ||
3913 | Syntax error | ||
3914 | _ACEOF | ||
3915 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3916 | case "(($ac_try" in | ||
3917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3918 | *) ac_try_echo=$ac_try;; | ||
3919 | esac | ||
3920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3921 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3922 | ac_status=$? | ||
3923 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3924 | rm -f conftest.er1 | ||
3925 | cat conftest.err >&5 | ||
3926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3927 | (exit $ac_status); } >/dev/null && { | ||
3928 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3929 | test ! -s conftest.err | ||
3930 | }; then | ||
3931 | : | ||
3932 | else | ||
3933 | echo "$as_me: failed program was:" >&5 | ||
3934 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3935 | |||
3936 | # Broken: fails on valid input. | ||
3937 | continue | ||
3938 | fi | ||
3939 | |||
3940 | rm -f conftest.err conftest.$ac_ext | ||
3941 | |||
3942 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3943 | # can be detected and how. | ||
3944 | cat >conftest.$ac_ext <<_ACEOF | ||
3945 | /* confdefs.h. */ | ||
3946 | _ACEOF | ||
3947 | cat confdefs.h >>conftest.$ac_ext | ||
3948 | cat >>conftest.$ac_ext <<_ACEOF | ||
3949 | /* end confdefs.h. */ | ||
3950 | #include <ac_nonexistent.h> | ||
3951 | _ACEOF | ||
3952 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3953 | case "(($ac_try" in | ||
3954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3955 | *) ac_try_echo=$ac_try;; | ||
3956 | esac | ||
3957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3958 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3959 | ac_status=$? | ||
3960 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3961 | rm -f conftest.er1 | ||
3962 | cat conftest.err >&5 | ||
3963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3964 | (exit $ac_status); } >/dev/null && { | ||
3965 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3966 | test ! -s conftest.err | ||
3967 | }; then | ||
3968 | # Broken: success on invalid input. | ||
3969 | continue | ||
3970 | else | ||
3971 | echo "$as_me: failed program was:" >&5 | ||
3972 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3973 | |||
3974 | # Passes both tests. | ||
3975 | ac_preproc_ok=: | ||
3976 | break | ||
3977 | fi | ||
3978 | |||
3979 | rm -f conftest.err conftest.$ac_ext | ||
3980 | |||
3981 | done | ||
3982 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3983 | rm -f conftest.err conftest.$ac_ext | ||
3984 | if $ac_preproc_ok; then | ||
3985 | : | ||
3986 | else | ||
3987 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3988 | See \`config.log' for more details." >&5 | ||
3989 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3990 | See \`config.log' for more details." >&2;} | ||
3991 | { (exit 1); exit 1; }; } | ||
3992 | fi | ||
3993 | |||
3994 | ac_ext=c | ||
3995 | ac_cpp='$CPP $CPPFLAGS' | ||
3996 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3997 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3998 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3999 | |||
4000 | if test -n "$ac_tool_prefix"; then | ||
4001 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
4002 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
4003 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4005 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
4006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4007 | else | ||
4008 | if test -n "$RANLIB"; then | ||
4009 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
4010 | else | ||
4011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4012 | for as_dir in $PATH | ||
4013 | do | ||
4014 | IFS=$as_save_IFS | ||
4015 | test -z "$as_dir" && as_dir=. | ||
4016 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4017 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4018 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
4019 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4020 | break 2 | ||
4021 | fi | ||
4022 | done | ||
4023 | done | ||
4024 | IFS=$as_save_IFS | ||
4025 | |||
4026 | fi | ||
4027 | fi | ||
4028 | RANLIB=$ac_cv_prog_RANLIB | ||
4029 | if test -n "$RANLIB"; then | ||
4030 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
4031 | echo "${ECHO_T}$RANLIB" >&6; } | ||
4032 | else | ||
4033 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4034 | echo "${ECHO_T}no" >&6; } | ||
4035 | fi | ||
4036 | |||
4037 | |||
4038 | fi | ||
4039 | if test -z "$ac_cv_prog_RANLIB"; then | ||
4040 | ac_ct_RANLIB=$RANLIB | ||
4041 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
4042 | set dummy ranlib; ac_word=$2 | ||
4043 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4044 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4045 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
4046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4047 | else | ||
4048 | if test -n "$ac_ct_RANLIB"; then | ||
4049 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
4050 | else | ||
4051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4052 | for as_dir in $PATH | ||
4053 | do | ||
4054 | IFS=$as_save_IFS | ||
4055 | test -z "$as_dir" && as_dir=. | ||
4056 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4057 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4058 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
4059 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4060 | break 2 | ||
4061 | fi | ||
4062 | done | ||
4063 | done | ||
4064 | IFS=$as_save_IFS | ||
4065 | |||
4066 | fi | ||
4067 | fi | ||
4068 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
4069 | if test -n "$ac_ct_RANLIB"; then | ||
4070 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
4071 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | ||
4072 | else | ||
4073 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4074 | echo "${ECHO_T}no" >&6; } | ||
4075 | fi | ||
4076 | |||
4077 | if test "x$ac_ct_RANLIB" = x; then | ||
4078 | RANLIB=":" | ||
4079 | else | ||
4080 | case $cross_compiling:$ac_tool_warned in | ||
4081 | yes:) | ||
4082 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
4083 | whose name does not start with the host triplet. If you think this | ||
4084 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
4085 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
4086 | whose name does not start with the host triplet. If you think this | ||
4087 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
4088 | ac_tool_warned=yes ;; | ||
4089 | esac | ||
4090 | RANLIB=$ac_ct_RANLIB | ||
4091 | fi | ||
4092 | else | ||
4093 | RANLIB="$ac_cv_prog_RANLIB" | ||
4094 | fi | ||
4095 | |||
4096 | # Find a good install program. We prefer a C program (faster), | ||
4097 | # so one script is as good as another. But avoid the broken or | ||
4098 | # incompatible versions: | ||
4099 | # SysV /etc/install, /usr/sbin/install | ||
4100 | # SunOS /usr/etc/install | ||
4101 | # IRIX /sbin/install | ||
4102 | # AIX /bin/install | ||
4103 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
4104 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
4105 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
4106 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
4107 | # OS/2's system install, which has a completely different semantic | ||
4108 | # ./install, which can be erroneously created by make from ./install.sh. | ||
4109 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
4110 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | ||
4111 | if test -z "$INSTALL"; then | ||
4112 | if test "${ac_cv_path_install+set}" = set; then | ||
4113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4114 | else | ||
4115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4116 | for as_dir in $PATH | ||
4117 | do | ||
4118 | IFS=$as_save_IFS | ||
4119 | test -z "$as_dir" && as_dir=. | ||
4120 | # Account for people who put trailing slashes in PATH elements. | ||
4121 | case $as_dir/ in | ||
4122 | ./ | .// | /cC/* | \ | ||
4123 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
4124 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
4125 | /usr/ucb/* ) ;; | ||
4126 | *) | ||
4127 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
4128 | # Don't use installbsd from OSF since it installs stuff as root | ||
4129 | # by default. | ||
4130 | for ac_prog in ginstall scoinst install; do | ||
4131 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4132 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
4133 | if test $ac_prog = install && | ||
4134 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4135 | # AIX install. It has an incompatible calling convention. | ||
4136 | : | ||
4137 | elif test $ac_prog = install && | ||
4138 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4139 | # program-specific install script used by HP pwplus--don't use. | ||
4140 | : | ||
4141 | else | ||
4142 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
4143 | break 3 | ||
4144 | fi | ||
4145 | fi | ||
4146 | done | ||
4147 | done | ||
4148 | ;; | ||
4149 | esac | ||
4150 | done | ||
4151 | IFS=$as_save_IFS | ||
4152 | |||
4153 | |||
4154 | fi | ||
4155 | if test "${ac_cv_path_install+set}" = set; then | ||
4156 | INSTALL=$ac_cv_path_install | ||
4157 | else | ||
4158 | # As a last resort, use the slow shell script. Don't cache a | ||
4159 | # value for INSTALL within a source directory, because that will | ||
4160 | # break other packages using the cache if that directory is | ||
4161 | # removed, or if the value is a relative name. | ||
4162 | INSTALL=$ac_install_sh | ||
4163 | fi | ||
4164 | fi | ||
4165 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
4166 | echo "${ECHO_T}$INSTALL" >&6; } | ||
4167 | |||
4168 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
4169 | # It thinks the first close brace ends the variable substitution. | ||
4170 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
4171 | |||
4172 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
4173 | |||
4174 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
4175 | |||
4176 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
4177 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
4178 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4180 | else | ||
4181 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4182 | then ac_cv_path_EGREP="$GREP -E" | ||
4183 | else | ||
4184 | # Extract the first word of "egrep" to use in msg output | ||
4185 | if test -z "$EGREP"; then | ||
4186 | set dummy egrep; ac_prog_name=$2 | ||
4187 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4189 | else | ||
4190 | ac_path_EGREP_found=false | ||
4191 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4193 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4194 | do | ||
4195 | IFS=$as_save_IFS | ||
4196 | test -z "$as_dir" && as_dir=. | ||
4197 | for ac_prog in egrep; do | ||
4198 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4199 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4200 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4201 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4202 | # Check for GNU $ac_path_EGREP | ||
4203 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4204 | *GNU*) | ||
4205 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4206 | *) | ||
4207 | ac_count=0 | ||
4208 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
4209 | while : | ||
4210 | do | ||
4211 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4212 | mv "conftest.tmp" "conftest.in" | ||
4213 | cp "conftest.in" "conftest.nl" | ||
4214 | echo 'EGREP' >> "conftest.nl" | ||
4215 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4216 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4217 | ac_count=`expr $ac_count + 1` | ||
4218 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4219 | # Best one so far, save it but keep looking for a better one | ||
4220 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4221 | ac_path_EGREP_max=$ac_count | ||
4222 | fi | ||
4223 | # 10*(2^10) chars as input seems more than enough | ||
4224 | test $ac_count -gt 10 && break | ||
4225 | done | ||
4226 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4227 | esac | ||
4228 | |||
4229 | |||
4230 | $ac_path_EGREP_found && break 3 | ||
4231 | done | ||
4232 | done | ||
4233 | |||
4234 | done | ||
4235 | IFS=$as_save_IFS | ||
4236 | |||
4237 | |||
4238 | fi | ||
4239 | |||
4240 | EGREP="$ac_cv_path_EGREP" | ||
4241 | if test -z "$EGREP"; then | ||
4242 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
4243 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
4244 | { (exit 1); exit 1; }; } | ||
4245 | fi | ||
4246 | |||
4247 | else | ||
4248 | ac_cv_path_EGREP=$EGREP | ||
4249 | fi | ||
4250 | |||
4251 | |||
4252 | fi | ||
4253 | fi | ||
4254 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
4255 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
4256 | EGREP="$ac_cv_path_EGREP" | ||
4257 | |||
4258 | |||
4259 | if test -n "$ac_tool_prefix"; then | ||
4260 | for ac_prog in ar | ||
4261 | do | ||
4262 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
4263 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
4264 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4265 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4266 | if test "${ac_cv_prog_AR+set}" = set; then | ||
4267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4268 | else | ||
4269 | if test -n "$AR"; then | ||
4270 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
4271 | else | ||
4272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4273 | for as_dir in $PATH | ||
4274 | do | ||
4275 | IFS=$as_save_IFS | ||
4276 | test -z "$as_dir" && as_dir=. | ||
4277 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4278 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4279 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
4280 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4281 | break 2 | ||
4282 | fi | ||
4283 | done | ||
4284 | done | ||
4285 | IFS=$as_save_IFS | ||
4286 | |||
4287 | fi | ||
4288 | fi | ||
4289 | AR=$ac_cv_prog_AR | ||
4290 | if test -n "$AR"; then | ||
4291 | { echo "$as_me:$LINENO: result: $AR" >&5 | ||
4292 | echo "${ECHO_T}$AR" >&6; } | ||
4293 | else | ||
4294 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4295 | echo "${ECHO_T}no" >&6; } | ||
4296 | fi | ||
4297 | |||
4298 | |||
4299 | test -n "$AR" && break | ||
4300 | done | ||
4301 | fi | ||
4302 | if test -z "$AR"; then | ||
4303 | ac_ct_AR=$AR | ||
4304 | for ac_prog in ar | ||
4305 | do | ||
4306 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4307 | set dummy $ac_prog; ac_word=$2 | ||
4308 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4309 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4310 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | ||
4311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4312 | else | ||
4313 | if test -n "$ac_ct_AR"; then | ||
4314 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
4315 | else | ||
4316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4317 | for as_dir in $PATH | ||
4318 | do | ||
4319 | IFS=$as_save_IFS | ||
4320 | test -z "$as_dir" && as_dir=. | ||
4321 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4322 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4323 | ac_cv_prog_ac_ct_AR="$ac_prog" | ||
4324 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4325 | break 2 | ||
4326 | fi | ||
4327 | done | ||
4328 | done | ||
4329 | IFS=$as_save_IFS | ||
4330 | |||
4331 | fi | ||
4332 | fi | ||
4333 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
4334 | if test -n "$ac_ct_AR"; then | ||
4335 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | ||
4336 | echo "${ECHO_T}$ac_ct_AR" >&6; } | ||
4337 | else | ||
4338 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4339 | echo "${ECHO_T}no" >&6; } | ||
4340 | fi | ||
4341 | |||
4342 | |||
4343 | test -n "$ac_ct_AR" && break | ||
4344 | done | ||
4345 | |||
4346 | if test "x$ac_ct_AR" = x; then | ||
4347 | AR="" | ||
4348 | else | ||
4349 | case $cross_compiling:$ac_tool_warned in | ||
4350 | yes:) | ||
4351 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
4352 | whose name does not start with the host triplet. If you think this | ||
4353 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
4354 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
4355 | whose name does not start with the host triplet. If you think this | ||
4356 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
4357 | ac_tool_warned=yes ;; | ||
4358 | esac | ||
4359 | AR=$ac_ct_AR | ||
4360 | fi | ||
4361 | fi | ||
4362 | |||
4363 | # Extract the first word of "cat", so it can be a program name with args. | ||
4364 | set dummy cat; ac_word=$2 | ||
4365 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4366 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4367 | if test "${ac_cv_path_CAT+set}" = set; then | ||
4368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4369 | else | ||
4370 | case $CAT in | ||
4371 | [\\/]* | ?:[\\/]*) | ||
4372 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
4373 | ;; | ||
4374 | *) | ||
4375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4376 | for as_dir in $PATH | ||
4377 | do | ||
4378 | IFS=$as_save_IFS | ||
4379 | test -z "$as_dir" && as_dir=. | ||
4380 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4381 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4382 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
4383 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4384 | break 2 | ||
4385 | fi | ||
4386 | done | ||
4387 | done | ||
4388 | IFS=$as_save_IFS | ||
4389 | |||
4390 | ;; | ||
4391 | esac | ||
4392 | fi | ||
4393 | CAT=$ac_cv_path_CAT | ||
4394 | if test -n "$CAT"; then | ||
4395 | { echo "$as_me:$LINENO: result: $CAT" >&5 | ||
4396 | echo "${ECHO_T}$CAT" >&6; } | ||
4397 | else | ||
4398 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4399 | echo "${ECHO_T}no" >&6; } | ||
4400 | fi | ||
4401 | |||
4402 | |||
4403 | # Extract the first word of "kill", so it can be a program name with args. | ||
4404 | set dummy kill; ac_word=$2 | ||
4405 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4406 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4407 | if test "${ac_cv_path_KILL+set}" = set; then | ||
4408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4409 | else | ||
4410 | case $KILL in | ||
4411 | [\\/]* | ?:[\\/]*) | ||
4412 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
4413 | ;; | ||
4414 | *) | ||
4415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4416 | for as_dir in $PATH | ||
4417 | do | ||
4418 | IFS=$as_save_IFS | ||
4419 | test -z "$as_dir" && as_dir=. | ||
4420 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4421 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4422 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
4423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4424 | break 2 | ||
4425 | fi | ||
4426 | done | ||
4427 | done | ||
4428 | IFS=$as_save_IFS | ||
4429 | |||
4430 | ;; | ||
4431 | esac | ||
4432 | fi | ||
4433 | KILL=$ac_cv_path_KILL | ||
4434 | if test -n "$KILL"; then | ||
4435 | { echo "$as_me:$LINENO: result: $KILL" >&5 | ||
4436 | echo "${ECHO_T}$KILL" >&6; } | ||
4437 | else | ||
4438 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4439 | echo "${ECHO_T}no" >&6; } | ||
4440 | fi | ||
4441 | |||
4442 | |||
4443 | for ac_prog in perl5 perl | ||
4444 | do | ||
4445 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4446 | set dummy $ac_prog; ac_word=$2 | ||
4447 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4448 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4449 | if test "${ac_cv_path_PERL+set}" = set; then | ||
4450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4451 | else | ||
4452 | case $PERL in | ||
4453 | [\\/]* | ?:[\\/]*) | ||
4454 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
4455 | ;; | ||
4456 | *) | ||
4457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4458 | for as_dir in $PATH | ||
4459 | do | ||
4460 | IFS=$as_save_IFS | ||
4461 | test -z "$as_dir" && as_dir=. | ||
4462 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4463 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4464 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
4465 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4466 | break 2 | ||
4467 | fi | ||
4468 | done | ||
4469 | done | ||
4470 | IFS=$as_save_IFS | ||
4471 | |||
4472 | ;; | ||
4473 | esac | ||
4474 | fi | ||
4475 | PERL=$ac_cv_path_PERL | ||
4476 | if test -n "$PERL"; then | ||
4477 | { echo "$as_me:$LINENO: result: $PERL" >&5 | ||
4478 | echo "${ECHO_T}$PERL" >&6; } | ||
4479 | else | ||
4480 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4481 | echo "${ECHO_T}no" >&6; } | ||
4482 | fi | ||
4483 | |||
4484 | |||
4485 | test -n "$PERL" && break | ||
4486 | done | ||
4487 | |||
4488 | # Extract the first word of "sed", so it can be a program name with args. | ||
4489 | set dummy sed; ac_word=$2 | ||
4490 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4491 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4492 | if test "${ac_cv_path_SED+set}" = set; then | ||
4493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4494 | else | ||
4495 | case $SED in | ||
4496 | [\\/]* | ?:[\\/]*) | ||
4497 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
4498 | ;; | ||
4499 | *) | ||
4500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4501 | for as_dir in $PATH | ||
4502 | do | ||
4503 | IFS=$as_save_IFS | ||
4504 | test -z "$as_dir" && as_dir=. | ||
4505 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4506 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4507 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
4508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4509 | break 2 | ||
4510 | fi | ||
4511 | done | ||
4512 | done | ||
4513 | IFS=$as_save_IFS | ||
4514 | |||
4515 | ;; | ||
4516 | esac | ||
4517 | fi | ||
4518 | SED=$ac_cv_path_SED | ||
4519 | if test -n "$SED"; then | ||
4520 | { echo "$as_me:$LINENO: result: $SED" >&5 | ||
4521 | echo "${ECHO_T}$SED" >&6; } | ||
4522 | else | ||
4523 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4524 | echo "${ECHO_T}no" >&6; } | ||
4525 | fi | ||
4526 | |||
4527 | |||
4528 | |||
4529 | # Extract the first word of "ent", so it can be a program name with args. | ||
4530 | set dummy ent; ac_word=$2 | ||
4531 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4532 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4533 | if test "${ac_cv_path_ENT+set}" = set; then | ||
4534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4535 | else | ||
4536 | case $ENT in | ||
4537 | [\\/]* | ?:[\\/]*) | ||
4538 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
4539 | ;; | ||
4540 | *) | ||
4541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4542 | for as_dir in $PATH | ||
4543 | do | ||
4544 | IFS=$as_save_IFS | ||
4545 | test -z "$as_dir" && as_dir=. | ||
4546 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4547 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4548 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
4549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4550 | break 2 | ||
4551 | fi | ||
4552 | done | ||
4553 | done | ||
4554 | IFS=$as_save_IFS | ||
4555 | |||
4556 | ;; | ||
4557 | esac | ||
4558 | fi | ||
4559 | ENT=$ac_cv_path_ENT | ||
4560 | if test -n "$ENT"; then | ||
4561 | { echo "$as_me:$LINENO: result: $ENT" >&5 | ||
4562 | echo "${ECHO_T}$ENT" >&6; } | ||
4563 | else | ||
4564 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4565 | echo "${ECHO_T}no" >&6; } | ||
4566 | fi | ||
4567 | |||
4568 | |||
4569 | |||
4570 | # Extract the first word of "bash", so it can be a program name with args. | ||
4571 | set dummy bash; ac_word=$2 | ||
4572 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4573 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4574 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4576 | else | ||
4577 | case $TEST_MINUS_S_SH in | ||
4578 | [\\/]* | ?:[\\/]*) | ||
4579 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4580 | ;; | ||
4581 | *) | ||
4582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4583 | for as_dir in $PATH | ||
4584 | do | ||
4585 | IFS=$as_save_IFS | ||
4586 | test -z "$as_dir" && as_dir=. | ||
4587 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4588 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4589 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4590 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4591 | break 2 | ||
4592 | fi | ||
4593 | done | ||
4594 | done | ||
4595 | IFS=$as_save_IFS | ||
4596 | |||
4597 | ;; | ||
4598 | esac | ||
4599 | fi | ||
4600 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4601 | if test -n "$TEST_MINUS_S_SH"; then | ||
4602 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4603 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4604 | else | ||
4605 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4606 | echo "${ECHO_T}no" >&6; } | ||
4607 | fi | ||
4608 | |||
4609 | |||
4610 | # Extract the first word of "ksh", so it can be a program name with args. | ||
4611 | set dummy ksh; ac_word=$2 | ||
4612 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4613 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4614 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4616 | else | ||
4617 | case $TEST_MINUS_S_SH in | ||
4618 | [\\/]* | ?:[\\/]*) | ||
4619 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4620 | ;; | ||
4621 | *) | ||
4622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4623 | for as_dir in $PATH | ||
4624 | do | ||
4625 | IFS=$as_save_IFS | ||
4626 | test -z "$as_dir" && as_dir=. | ||
4627 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4628 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4629 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4630 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4631 | break 2 | ||
4632 | fi | ||
4633 | done | ||
4634 | done | ||
4635 | IFS=$as_save_IFS | ||
4636 | |||
4637 | ;; | ||
4638 | esac | ||
4639 | fi | ||
4640 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4641 | if test -n "$TEST_MINUS_S_SH"; then | ||
4642 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4643 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4644 | else | ||
4645 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4646 | echo "${ECHO_T}no" >&6; } | ||
4647 | fi | ||
4648 | |||
4649 | |||
4650 | # Extract the first word of "sh", so it can be a program name with args. | ||
4651 | set dummy sh; ac_word=$2 | ||
4652 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4653 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4654 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4656 | else | ||
4657 | case $TEST_MINUS_S_SH in | ||
4658 | [\\/]* | ?:[\\/]*) | ||
4659 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4660 | ;; | ||
4661 | *) | ||
4662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4663 | for as_dir in $PATH | ||
4664 | do | ||
4665 | IFS=$as_save_IFS | ||
4666 | test -z "$as_dir" && as_dir=. | ||
4667 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4668 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4669 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4670 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4671 | break 2 | ||
4672 | fi | ||
4673 | done | ||
4674 | done | ||
4675 | IFS=$as_save_IFS | ||
4676 | |||
4677 | ;; | ||
4678 | esac | ||
4679 | fi | ||
4680 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4681 | if test -n "$TEST_MINUS_S_SH"; then | ||
4682 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4683 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4684 | else | ||
4685 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4686 | echo "${ECHO_T}no" >&6; } | ||
4687 | fi | ||
4688 | |||
4689 | |||
4690 | # Extract the first word of "sh", so it can be a program name with args. | ||
4691 | set dummy sh; ac_word=$2 | ||
4692 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4693 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4694 | if test "${ac_cv_path_SH+set}" = set; then | ||
4695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4696 | else | ||
4697 | case $SH in | ||
4698 | [\\/]* | ?:[\\/]*) | ||
4699 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
4700 | ;; | ||
4701 | *) | ||
4702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4703 | for as_dir in $PATH | ||
4704 | do | ||
4705 | IFS=$as_save_IFS | ||
4706 | test -z "$as_dir" && as_dir=. | ||
4707 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4708 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4709 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4710 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4711 | break 2 | ||
4712 | fi | ||
4713 | done | ||
4714 | done | ||
4715 | IFS=$as_save_IFS | ||
4716 | |||
4717 | ;; | ||
4718 | esac | ||
4719 | fi | ||
4720 | SH=$ac_cv_path_SH | ||
4721 | if test -n "$SH"; then | ||
4722 | { echo "$as_me:$LINENO: result: $SH" >&5 | ||
4723 | echo "${ECHO_T}$SH" >&6; } | ||
4724 | else | ||
4725 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4726 | echo "${ECHO_T}no" >&6; } | ||
4727 | fi | ||
4728 | |||
4729 | |||
4730 | # Extract the first word of "groff", so it can be a program name with args. | ||
4731 | set dummy groff; ac_word=$2 | ||
4732 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4733 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4734 | if test "${ac_cv_path_GROFF+set}" = set; then | ||
4735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4736 | else | ||
4737 | case $GROFF in | ||
4738 | [\\/]* | ?:[\\/]*) | ||
4739 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. | ||
4740 | ;; | ||
4741 | *) | ||
4742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4743 | for as_dir in $PATH | ||
4744 | do | ||
4745 | IFS=$as_save_IFS | ||
4746 | test -z "$as_dir" && as_dir=. | ||
4747 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4748 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4749 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" | ||
4750 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4751 | break 2 | ||
4752 | fi | ||
4753 | done | ||
4754 | done | ||
4755 | IFS=$as_save_IFS | ||
4756 | |||
4757 | ;; | ||
4758 | esac | ||
4759 | fi | ||
4760 | GROFF=$ac_cv_path_GROFF | ||
4761 | if test -n "$GROFF"; then | ||
4762 | { echo "$as_me:$LINENO: result: $GROFF" >&5 | ||
4763 | echo "${ECHO_T}$GROFF" >&6; } | ||
4764 | else | ||
4765 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4766 | echo "${ECHO_T}no" >&6; } | ||
4767 | fi | ||
4768 | |||
4769 | |||
4770 | # Extract the first word of "nroff", so it can be a program name with args. | ||
4771 | set dummy nroff; ac_word=$2 | ||
4772 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4774 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
4775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4776 | else | ||
4777 | case $NROFF in | ||
4778 | [\\/]* | ?:[\\/]*) | ||
4779 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
4780 | ;; | ||
4781 | *) | ||
4782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4783 | for as_dir in $PATH | ||
4784 | do | ||
4785 | IFS=$as_save_IFS | ||
4786 | test -z "$as_dir" && as_dir=. | ||
4787 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4788 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4789 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
4790 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4791 | break 2 | ||
4792 | fi | ||
4793 | done | ||
4794 | done | ||
4795 | IFS=$as_save_IFS | ||
4796 | |||
4797 | ;; | ||
4798 | esac | ||
4799 | fi | ||
4800 | NROFF=$ac_cv_path_NROFF | ||
4801 | if test -n "$NROFF"; then | ||
4802 | { echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
4803 | echo "${ECHO_T}$NROFF" >&6; } | ||
4804 | else | ||
4805 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4806 | echo "${ECHO_T}no" >&6; } | ||
4807 | fi | ||
4808 | |||
4809 | |||
4810 | # Extract the first word of "mandoc", so it can be a program name with args. | ||
4811 | set dummy mandoc; ac_word=$2 | ||
4812 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4813 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4814 | if test "${ac_cv_path_MANDOC+set}" = set; then | ||
4815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4816 | else | ||
4817 | case $MANDOC in | ||
4818 | [\\/]* | ?:[\\/]*) | ||
4819 | ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path. | ||
4820 | ;; | ||
4821 | *) | ||
4822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4823 | for as_dir in $PATH | ||
4824 | do | ||
4825 | IFS=$as_save_IFS | ||
4826 | test -z "$as_dir" && as_dir=. | ||
4827 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4828 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4829 | ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext" | ||
4830 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4831 | break 2 | ||
4832 | fi | ||
4833 | done | ||
4834 | done | ||
4835 | IFS=$as_save_IFS | ||
4836 | |||
4837 | ;; | ||
4838 | esac | ||
4839 | fi | ||
4840 | MANDOC=$ac_cv_path_MANDOC | ||
4841 | if test -n "$MANDOC"; then | ||
4842 | { echo "$as_me:$LINENO: result: $MANDOC" >&5 | ||
4843 | echo "${ECHO_T}$MANDOC" >&6; } | ||
4844 | else | ||
4845 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4846 | echo "${ECHO_T}no" >&6; } | ||
4847 | fi | ||
4848 | |||
4849 | |||
4850 | TEST_SHELL=sh | ||
4851 | |||
4852 | |||
4853 | if test "x$MANDOC" != "x" ; then | ||
4854 | MANFMT="$MANDOC" | ||
4855 | elif test "x$NROFF" != "x" ; then | ||
4856 | MANFMT="$NROFF -mandoc" | ||
4857 | elif test "x$GROFF" != "x" ; then | ||
4858 | MANFMT="$GROFF -mandoc -Tascii" | ||
4859 | else | ||
4860 | { echo "$as_me:$LINENO: WARNING: no manpage formatted found" >&5 | ||
4861 | echo "$as_me: WARNING: no manpage formatted found" >&2;} | ||
4862 | MANFMT="false" | ||
4863 | fi | ||
4864 | |||
4865 | |||
4866 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
4867 | set dummy groupadd; ac_word=$2 | ||
4868 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4870 | if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then | ||
4871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4872 | else | ||
4873 | case $PATH_GROUPADD_PROG in | ||
4874 | [\\/]* | ?:[\\/]*) | ||
4875 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
4876 | ;; | ||
4877 | *) | ||
4878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4879 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4880 | do | ||
4881 | IFS=$as_save_IFS | ||
4882 | test -z "$as_dir" && as_dir=. | ||
4883 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4884 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4885 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4886 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4887 | break 2 | ||
4888 | fi | ||
4889 | done | ||
4890 | done | ||
4891 | IFS=$as_save_IFS | ||
4892 | |||
4893 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
4894 | ;; | ||
4895 | esac | ||
4896 | fi | ||
4897 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
4898 | if test -n "$PATH_GROUPADD_PROG"; then | ||
4899 | { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5 | ||
4900 | echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; } | ||
4901 | else | ||
4902 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4903 | echo "${ECHO_T}no" >&6; } | ||
4904 | fi | ||
4905 | |||
4906 | |||
4907 | # Extract the first word of "useradd", so it can be a program name with args. | ||
4908 | set dummy useradd; ac_word=$2 | ||
4909 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4910 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4911 | if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then | ||
4912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4913 | else | ||
4914 | case $PATH_USERADD_PROG in | ||
4915 | [\\/]* | ?:[\\/]*) | ||
4916 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
4917 | ;; | ||
4918 | *) | ||
4919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4920 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4921 | do | ||
4922 | IFS=$as_save_IFS | ||
4923 | test -z "$as_dir" && as_dir=. | ||
4924 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4925 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4926 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4927 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4928 | break 2 | ||
4929 | fi | ||
4930 | done | ||
4931 | done | ||
4932 | IFS=$as_save_IFS | ||
4933 | |||
4934 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
4935 | ;; | ||
4936 | esac | ||
4937 | fi | ||
4938 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
4939 | if test -n "$PATH_USERADD_PROG"; then | ||
4940 | { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5 | ||
4941 | echo "${ECHO_T}$PATH_USERADD_PROG" >&6; } | ||
4942 | else | ||
4943 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4944 | echo "${ECHO_T}no" >&6; } | ||
4945 | fi | ||
4946 | |||
4947 | |||
4948 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
4949 | set dummy pkgmk; ac_word=$2 | ||
4950 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4951 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4952 | if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then | ||
4953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4954 | else | ||
4955 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
4956 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
4957 | else | ||
4958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4959 | for as_dir in $PATH | ||
4960 | do | ||
4961 | IFS=$as_save_IFS | ||
4962 | test -z "$as_dir" && as_dir=. | ||
4963 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4964 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4965 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
4966 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4967 | break 2 | ||
4968 | fi | ||
4969 | done | ||
4970 | done | ||
4971 | IFS=$as_save_IFS | ||
4972 | |||
4973 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
4974 | fi | ||
4975 | fi | ||
4976 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
4977 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
4978 | { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
4979 | echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; } | ||
4980 | else | ||
4981 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4982 | echo "${ECHO_T}no" >&6; } | ||
4983 | fi | ||
4984 | |||
4985 | |||
4986 | if test -x /sbin/sh; then | ||
4987 | STARTUP_SCRIPT_SHELL=/sbin/sh | ||
4988 | |||
4989 | else | ||
4990 | STARTUP_SCRIPT_SHELL=/bin/sh | ||
4991 | |||
4992 | fi | ||
4993 | |||
4994 | # System features | ||
4995 | # Check whether --enable-largefile was given. | ||
4996 | if test "${enable_largefile+set}" = set; then | ||
4997 | enableval=$enable_largefile; | ||
4998 | fi | ||
4999 | |||
5000 | if test "$enable_largefile" != no; then | ||
5001 | |||
5002 | { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | ||
5003 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } | ||
5004 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
5005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5006 | else | ||
5007 | ac_cv_sys_largefile_CC=no | ||
5008 | if test "$GCC" != yes; then | ||
5009 | ac_save_CC=$CC | ||
5010 | while :; do | ||
5011 | # IRIX 6.2 and later do not support large files by default, | ||
5012 | # so use the C compiler's -n32 option if that helps. | ||
5013 | cat >conftest.$ac_ext <<_ACEOF | ||
5014 | /* confdefs.h. */ | ||
5015 | _ACEOF | ||
5016 | cat confdefs.h >>conftest.$ac_ext | ||
5017 | cat >>conftest.$ac_ext <<_ACEOF | ||
5018 | /* end confdefs.h. */ | ||
5019 | #include <sys/types.h> | ||
5020 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5021 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5022 | since some C++ compilers masquerading as C compilers | ||
5023 | incorrectly reject 9223372036854775807. */ | ||
5024 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5025 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5026 | && LARGE_OFF_T % 2147483647 == 1) | ||
5027 | ? 1 : -1]; | ||
5028 | int | ||
5029 | main () | ||
5030 | { | ||
5031 | |||
5032 | ; | ||
5033 | return 0; | ||
5034 | } | ||
5035 | _ACEOF | ||
5036 | rm -f conftest.$ac_objext | ||
5037 | if { (ac_try="$ac_compile" | ||
5038 | case "(($ac_try" in | ||
5039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5040 | *) ac_try_echo=$ac_try;; | ||
5041 | esac | ||
5042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5043 | (eval "$ac_compile") 2>conftest.er1 | ||
5044 | ac_status=$? | ||
5045 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5046 | rm -f conftest.er1 | ||
5047 | cat conftest.err >&5 | ||
5048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5049 | (exit $ac_status); } && { | ||
5050 | test -z "$ac_c_werror_flag" || | ||
5051 | test ! -s conftest.err | ||
5052 | } && test -s conftest.$ac_objext; then | ||
5053 | break | ||
5054 | else | ||
5055 | echo "$as_me: failed program was:" >&5 | ||
5056 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5057 | |||
5058 | |||
5059 | fi | ||
5060 | |||
5061 | rm -f core conftest.err conftest.$ac_objext | ||
5062 | CC="$CC -n32" | ||
5063 | rm -f conftest.$ac_objext | ||
5064 | if { (ac_try="$ac_compile" | ||
5065 | case "(($ac_try" in | ||
5066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5067 | *) ac_try_echo=$ac_try;; | ||
5068 | esac | ||
5069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5070 | (eval "$ac_compile") 2>conftest.er1 | ||
5071 | ac_status=$? | ||
5072 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5073 | rm -f conftest.er1 | ||
5074 | cat conftest.err >&5 | ||
5075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5076 | (exit $ac_status); } && { | ||
5077 | test -z "$ac_c_werror_flag" || | ||
5078 | test ! -s conftest.err | ||
5079 | } && test -s conftest.$ac_objext; then | ||
5080 | ac_cv_sys_largefile_CC=' -n32'; break | ||
5081 | else | ||
5082 | echo "$as_me: failed program was:" >&5 | ||
5083 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5084 | |||
5085 | |||
5086 | fi | ||
5087 | |||
5088 | rm -f core conftest.err conftest.$ac_objext | ||
5089 | break | ||
5090 | done | ||
5091 | CC=$ac_save_CC | ||
5092 | rm -f conftest.$ac_ext | ||
5093 | fi | ||
5094 | fi | ||
5095 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | ||
5096 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } | ||
5097 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
5098 | CC=$CC$ac_cv_sys_largefile_CC | ||
5099 | fi | ||
5100 | |||
5101 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
5102 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } | ||
5103 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
5104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5105 | else | ||
5106 | while :; do | ||
5107 | cat >conftest.$ac_ext <<_ACEOF | ||
5108 | /* confdefs.h. */ | ||
5109 | _ACEOF | ||
5110 | cat confdefs.h >>conftest.$ac_ext | ||
5111 | cat >>conftest.$ac_ext <<_ACEOF | ||
5112 | /* end confdefs.h. */ | ||
5113 | #include <sys/types.h> | ||
5114 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5115 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5116 | since some C++ compilers masquerading as C compilers | ||
5117 | incorrectly reject 9223372036854775807. */ | ||
5118 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5119 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5120 | && LARGE_OFF_T % 2147483647 == 1) | ||
5121 | ? 1 : -1]; | ||
5122 | int | ||
5123 | main () | ||
5124 | { | ||
5125 | |||
5126 | ; | ||
5127 | return 0; | ||
5128 | } | ||
5129 | _ACEOF | ||
5130 | rm -f conftest.$ac_objext | ||
5131 | if { (ac_try="$ac_compile" | ||
5132 | case "(($ac_try" in | ||
5133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5134 | *) ac_try_echo=$ac_try;; | ||
5135 | esac | ||
5136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5137 | (eval "$ac_compile") 2>conftest.er1 | ||
5138 | ac_status=$? | ||
5139 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5140 | rm -f conftest.er1 | ||
5141 | cat conftest.err >&5 | ||
5142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5143 | (exit $ac_status); } && { | ||
5144 | test -z "$ac_c_werror_flag" || | ||
5145 | test ! -s conftest.err | ||
5146 | } && test -s conftest.$ac_objext; then | ||
5147 | ac_cv_sys_file_offset_bits=no; break | ||
5148 | else | ||
5149 | echo "$as_me: failed program was:" >&5 | ||
5150 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5151 | |||
5152 | |||
5153 | fi | ||
5154 | |||
5155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5156 | cat >conftest.$ac_ext <<_ACEOF | ||
5157 | /* confdefs.h. */ | ||
5158 | _ACEOF | ||
5159 | cat confdefs.h >>conftest.$ac_ext | ||
5160 | cat >>conftest.$ac_ext <<_ACEOF | ||
5161 | /* end confdefs.h. */ | ||
5162 | #define _FILE_OFFSET_BITS 64 | ||
5163 | #include <sys/types.h> | ||
5164 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5165 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5166 | since some C++ compilers masquerading as C compilers | ||
5167 | incorrectly reject 9223372036854775807. */ | ||
5168 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5169 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5170 | && LARGE_OFF_T % 2147483647 == 1) | ||
5171 | ? 1 : -1]; | ||
5172 | int | ||
5173 | main () | ||
5174 | { | ||
5175 | |||
5176 | ; | ||
5177 | return 0; | ||
5178 | } | ||
5179 | _ACEOF | ||
5180 | rm -f conftest.$ac_objext | ||
5181 | if { (ac_try="$ac_compile" | ||
5182 | case "(($ac_try" in | ||
5183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5184 | *) ac_try_echo=$ac_try;; | ||
5185 | esac | ||
5186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5187 | (eval "$ac_compile") 2>conftest.er1 | ||
5188 | ac_status=$? | ||
5189 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5190 | rm -f conftest.er1 | ||
5191 | cat conftest.err >&5 | ||
5192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5193 | (exit $ac_status); } && { | ||
5194 | test -z "$ac_c_werror_flag" || | ||
5195 | test ! -s conftest.err | ||
5196 | } && test -s conftest.$ac_objext; then | ||
5197 | ac_cv_sys_file_offset_bits=64; break | ||
5198 | else | ||
5199 | echo "$as_me: failed program was:" >&5 | ||
5200 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5201 | |||
5202 | |||
5203 | fi | ||
5204 | |||
5205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5206 | ac_cv_sys_file_offset_bits=unknown | ||
5207 | break | ||
5208 | done | ||
5209 | fi | ||
5210 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | ||
5211 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } | ||
5212 | case $ac_cv_sys_file_offset_bits in #( | ||
5213 | no | unknown) ;; | ||
5214 | *) | ||
5215 | cat >>confdefs.h <<_ACEOF | ||
5216 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
5217 | _ACEOF | ||
5218 | ;; | ||
5219 | esac | ||
5220 | rm -f conftest* | ||
5221 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
5222 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | ||
5223 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } | ||
5224 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
5225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5226 | else | ||
5227 | while :; do | ||
5228 | cat >conftest.$ac_ext <<_ACEOF | ||
5229 | /* confdefs.h. */ | ||
5230 | _ACEOF | ||
5231 | cat confdefs.h >>conftest.$ac_ext | ||
5232 | cat >>conftest.$ac_ext <<_ACEOF | ||
5233 | /* end confdefs.h. */ | ||
5234 | #include <sys/types.h> | ||
5235 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5236 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5237 | since some C++ compilers masquerading as C compilers | ||
5238 | incorrectly reject 9223372036854775807. */ | ||
5239 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5240 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5241 | && LARGE_OFF_T % 2147483647 == 1) | ||
5242 | ? 1 : -1]; | ||
5243 | int | ||
5244 | main () | ||
5245 | { | ||
5246 | |||
5247 | ; | ||
5248 | return 0; | ||
5249 | } | ||
5250 | _ACEOF | ||
5251 | rm -f conftest.$ac_objext | ||
5252 | if { (ac_try="$ac_compile" | ||
5253 | case "(($ac_try" in | ||
5254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5255 | *) ac_try_echo=$ac_try;; | ||
5256 | esac | ||
5257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5258 | (eval "$ac_compile") 2>conftest.er1 | ||
5259 | ac_status=$? | ||
5260 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5261 | rm -f conftest.er1 | ||
5262 | cat conftest.err >&5 | ||
5263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5264 | (exit $ac_status); } && { | ||
5265 | test -z "$ac_c_werror_flag" || | ||
5266 | test ! -s conftest.err | ||
5267 | } && test -s conftest.$ac_objext; then | ||
5268 | ac_cv_sys_large_files=no; break | ||
5269 | else | ||
5270 | echo "$as_me: failed program was:" >&5 | ||
5271 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5272 | |||
5273 | |||
5274 | fi | ||
5275 | |||
5276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5277 | cat >conftest.$ac_ext <<_ACEOF | ||
5278 | /* confdefs.h. */ | ||
5279 | _ACEOF | ||
5280 | cat confdefs.h >>conftest.$ac_ext | ||
5281 | cat >>conftest.$ac_ext <<_ACEOF | ||
5282 | /* end confdefs.h. */ | ||
5283 | #define _LARGE_FILES 1 | ||
5284 | #include <sys/types.h> | ||
5285 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5286 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5287 | since some C++ compilers masquerading as C compilers | ||
5288 | incorrectly reject 9223372036854775807. */ | ||
5289 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5290 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5291 | && LARGE_OFF_T % 2147483647 == 1) | ||
5292 | ? 1 : -1]; | ||
5293 | int | ||
5294 | main () | ||
5295 | { | ||
5296 | |||
5297 | ; | ||
5298 | return 0; | ||
5299 | } | ||
5300 | _ACEOF | ||
5301 | rm -f conftest.$ac_objext | ||
5302 | if { (ac_try="$ac_compile" | ||
5303 | case "(($ac_try" in | ||
5304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5305 | *) ac_try_echo=$ac_try;; | ||
5306 | esac | ||
5307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5308 | (eval "$ac_compile") 2>conftest.er1 | ||
5309 | ac_status=$? | ||
5310 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5311 | rm -f conftest.er1 | ||
5312 | cat conftest.err >&5 | ||
5313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5314 | (exit $ac_status); } && { | ||
5315 | test -z "$ac_c_werror_flag" || | ||
5316 | test ! -s conftest.err | ||
5317 | } && test -s conftest.$ac_objext; then | ||
5318 | ac_cv_sys_large_files=1; break | ||
5319 | else | ||
5320 | echo "$as_me: failed program was:" >&5 | ||
5321 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5322 | |||
5323 | |||
5324 | fi | ||
5325 | |||
5326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5327 | ac_cv_sys_large_files=unknown | ||
5328 | break | ||
5329 | done | ||
5330 | fi | ||
5331 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | ||
5332 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } | ||
5333 | case $ac_cv_sys_large_files in #( | ||
5334 | no | unknown) ;; | ||
5335 | *) | ||
5336 | cat >>confdefs.h <<_ACEOF | ||
5337 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
5338 | _ACEOF | ||
5339 | ;; | ||
5340 | esac | ||
5341 | rm -f conftest* | ||
5342 | fi | ||
5343 | fi | ||
5344 | |||
5345 | |||
5346 | if test -z "$AR" ; then | ||
5347 | { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
5348 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
5349 | { (exit 1); exit 1; }; } | ||
5350 | fi | ||
5351 | |||
5352 | # Use LOGIN_PROGRAM from environment if possible | ||
5353 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
5354 | |||
5355 | cat >>confdefs.h <<_ACEOF | ||
5356 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
5357 | _ACEOF | ||
5358 | |||
5359 | else | ||
5360 | # Search for login | ||
5361 | # Extract the first word of "login", so it can be a program name with args. | ||
5362 | set dummy login; ac_word=$2 | ||
5363 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5364 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5365 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
5366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5367 | else | ||
5368 | case $LOGIN_PROGRAM_FALLBACK in | ||
5369 | [\\/]* | ?:[\\/]*) | ||
5370 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
5371 | ;; | ||
5372 | *) | ||
5373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5374 | for as_dir in $PATH | ||
5375 | do | ||
5376 | IFS=$as_save_IFS | ||
5377 | test -z "$as_dir" && as_dir=. | ||
5378 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5379 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5380 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
5381 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5382 | break 2 | ||
5383 | fi | ||
5384 | done | ||
5385 | done | ||
5386 | IFS=$as_save_IFS | ||
5387 | |||
5388 | ;; | ||
5389 | esac | ||
5390 | fi | ||
5391 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
5392 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
5393 | { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
5394 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; } | ||
5395 | else | ||
5396 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5397 | echo "${ECHO_T}no" >&6; } | ||
5398 | fi | ||
5399 | |||
5400 | |||
5401 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
5402 | cat >>confdefs.h <<_ACEOF | ||
5403 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
5404 | _ACEOF | ||
5405 | |||
5406 | fi | ||
5407 | fi | ||
5408 | |||
5409 | # Extract the first word of "passwd", so it can be a program name with args. | ||
5410 | set dummy passwd; ac_word=$2 | ||
5411 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5412 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5413 | if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then | ||
5414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5415 | else | ||
5416 | case $PATH_PASSWD_PROG in | ||
5417 | [\\/]* | ?:[\\/]*) | ||
5418 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
5419 | ;; | ||
5420 | *) | ||
5421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5422 | for as_dir in $PATH | ||
5423 | do | ||
5424 | IFS=$as_save_IFS | ||
5425 | test -z "$as_dir" && as_dir=. | ||
5426 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5427 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5428 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5429 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5430 | break 2 | ||
5431 | fi | ||
5432 | done | ||
5433 | done | ||
5434 | IFS=$as_save_IFS | ||
5435 | |||
5436 | ;; | ||
5437 | esac | ||
5438 | fi | ||
5439 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
5440 | if test -n "$PATH_PASSWD_PROG"; then | ||
5441 | { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5 | ||
5442 | echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; } | ||
5443 | else | ||
5444 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5445 | echo "${ECHO_T}no" >&6; } | ||
5446 | fi | ||
5447 | |||
5448 | |||
5449 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
5450 | |||
5451 | cat >>confdefs.h <<_ACEOF | ||
5452 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
5453 | _ACEOF | ||
5454 | |||
5455 | fi | ||
5456 | |||
5457 | if test -z "$LD" ; then | ||
5458 | LD=$CC | ||
5459 | fi | ||
5460 | |||
5461 | |||
5462 | { echo "$as_me:$LINENO: checking for inline" >&5 | ||
5463 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | ||
5464 | if test "${ac_cv_c_inline+set}" = set; then | ||
5465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5466 | else | ||
5467 | ac_cv_c_inline=no | ||
5468 | for ac_kw in inline __inline__ __inline; do | ||
5469 | cat >conftest.$ac_ext <<_ACEOF | ||
5470 | /* confdefs.h. */ | ||
5471 | _ACEOF | ||
5472 | cat confdefs.h >>conftest.$ac_ext | ||
5473 | cat >>conftest.$ac_ext <<_ACEOF | ||
5474 | /* end confdefs.h. */ | ||
5475 | #ifndef __cplusplus | ||
5476 | typedef int foo_t; | ||
5477 | static $ac_kw foo_t static_foo () {return 0; } | ||
5478 | $ac_kw foo_t foo () {return 0; } | ||
5479 | #endif | ||
5480 | |||
5481 | _ACEOF | ||
5482 | rm -f conftest.$ac_objext | ||
5483 | if { (ac_try="$ac_compile" | ||
5484 | case "(($ac_try" in | ||
5485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5486 | *) ac_try_echo=$ac_try;; | ||
5487 | esac | ||
5488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5489 | (eval "$ac_compile") 2>conftest.er1 | ||
5490 | ac_status=$? | ||
5491 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5492 | rm -f conftest.er1 | ||
5493 | cat conftest.err >&5 | ||
5494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5495 | (exit $ac_status); } && { | ||
5496 | test -z "$ac_c_werror_flag" || | ||
5497 | test ! -s conftest.err | ||
5498 | } && test -s conftest.$ac_objext; then | ||
5499 | ac_cv_c_inline=$ac_kw | ||
5500 | else | ||
5501 | echo "$as_me: failed program was:" >&5 | ||
5502 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5503 | |||
5504 | |||
5505 | fi | ||
5506 | |||
5507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5508 | test "$ac_cv_c_inline" != no && break | ||
5509 | done | ||
5510 | |||
5511 | fi | ||
5512 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
5513 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | ||
5514 | |||
5515 | |||
5516 | case $ac_cv_c_inline in | ||
5517 | inline | yes) ;; | ||
5518 | *) | ||
5519 | case $ac_cv_c_inline in | ||
5520 | no) ac_val=;; | ||
5521 | *) ac_val=$ac_cv_c_inline;; | ||
5522 | esac | ||
5523 | cat >>confdefs.h <<_ACEOF | ||
5524 | #ifndef __cplusplus | ||
5525 | #define inline $ac_val | ||
5526 | #endif | ||
5527 | _ACEOF | ||
5528 | ;; | ||
5529 | esac | ||
5530 | |||
5531 | |||
5532 | { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
5533 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } | ||
5534 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
5535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5536 | else | ||
5537 | cat >conftest.$ac_ext <<_ACEOF | ||
5538 | /* confdefs.h. */ | ||
5539 | _ACEOF | ||
5540 | cat confdefs.h >>conftest.$ac_ext | ||
5541 | cat >>conftest.$ac_ext <<_ACEOF | ||
5542 | /* end confdefs.h. */ | ||
5543 | #include <limits.h> | ||
5544 | |||
5545 | int | ||
5546 | main () | ||
5547 | { | ||
5548 | #ifndef LLONG_MAX | ||
5549 | (void) LLONG_MAX; | ||
5550 | #endif | ||
5551 | |||
5552 | ; | ||
5553 | return 0; | ||
5554 | } | ||
5555 | _ACEOF | ||
5556 | rm -f conftest.$ac_objext | ||
5557 | if { (ac_try="$ac_compile" | ||
5558 | case "(($ac_try" in | ||
5559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5560 | *) ac_try_echo=$ac_try;; | ||
5561 | esac | ||
5562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5563 | (eval "$ac_compile") 2>conftest.er1 | ||
5564 | ac_status=$? | ||
5565 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5566 | rm -f conftest.er1 | ||
5567 | cat conftest.err >&5 | ||
5568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5569 | (exit $ac_status); } && { | ||
5570 | test -z "$ac_c_werror_flag" || | ||
5571 | test ! -s conftest.err | ||
5572 | } && test -s conftest.$ac_objext; then | ||
5573 | ac_cv_have_decl_LLONG_MAX=yes | ||
5574 | else | ||
5575 | echo "$as_me: failed program was:" >&5 | ||
5576 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5577 | |||
5578 | ac_cv_have_decl_LLONG_MAX=no | ||
5579 | fi | ||
5580 | |||
5581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5582 | fi | ||
5583 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
5584 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
5585 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
5586 | have_llong_max=1 | ||
5587 | fi | ||
5588 | |||
5589 | { echo "$as_me:$LINENO: checking whether SYSTR_POLICY_KILL is declared" >&5 | ||
5590 | echo $ECHO_N "checking whether SYSTR_POLICY_KILL is declared... $ECHO_C" >&6; } | ||
5591 | if test "${ac_cv_have_decl_SYSTR_POLICY_KILL+set}" = set; then | ||
5592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5593 | else | ||
5594 | cat >conftest.$ac_ext <<_ACEOF | ||
5595 | /* confdefs.h. */ | ||
5596 | _ACEOF | ||
5597 | cat confdefs.h >>conftest.$ac_ext | ||
5598 | cat >>conftest.$ac_ext <<_ACEOF | ||
5599 | /* end confdefs.h. */ | ||
5600 | |||
5601 | #include <sys/types.h> | ||
5602 | #include <sys/param.h> | ||
5603 | #include <dev/systrace.h> | ||
5604 | |||
5605 | |||
5606 | int | ||
5607 | main () | ||
5608 | { | ||
5609 | #ifndef SYSTR_POLICY_KILL | ||
5610 | (void) SYSTR_POLICY_KILL; | ||
5611 | #endif | ||
5612 | |||
5613 | ; | ||
5614 | return 0; | ||
5615 | } | ||
5616 | _ACEOF | ||
5617 | rm -f conftest.$ac_objext | ||
5618 | if { (ac_try="$ac_compile" | ||
5619 | case "(($ac_try" in | ||
5620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5621 | *) ac_try_echo=$ac_try;; | ||
5622 | esac | ||
5623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5624 | (eval "$ac_compile") 2>conftest.er1 | ||
5625 | ac_status=$? | ||
5626 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5627 | rm -f conftest.er1 | ||
5628 | cat conftest.err >&5 | ||
5629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5630 | (exit $ac_status); } && { | ||
5631 | test -z "$ac_c_werror_flag" || | ||
5632 | test ! -s conftest.err | ||
5633 | } && test -s conftest.$ac_objext; then | ||
5634 | ac_cv_have_decl_SYSTR_POLICY_KILL=yes | ||
5635 | else | ||
5636 | echo "$as_me: failed program was:" >&5 | ||
5637 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5638 | |||
5639 | ac_cv_have_decl_SYSTR_POLICY_KILL=no | ||
5640 | fi | ||
5641 | |||
5642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5643 | fi | ||
5644 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SYSTR_POLICY_KILL" >&5 | ||
5645 | echo "${ECHO_T}$ac_cv_have_decl_SYSTR_POLICY_KILL" >&6; } | ||
5646 | if test $ac_cv_have_decl_SYSTR_POLICY_KILL = yes; then | ||
5647 | have_systr_policy_kill=1 | ||
5648 | fi | ||
5649 | |||
5650 | { echo "$as_me:$LINENO: checking whether RLIMIT_NPROC is declared" >&5 | ||
5651 | echo $ECHO_N "checking whether RLIMIT_NPROC is declared... $ECHO_C" >&6; } | ||
5652 | if test "${ac_cv_have_decl_RLIMIT_NPROC+set}" = set; then | ||
5653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5654 | else | ||
5655 | cat >conftest.$ac_ext <<_ACEOF | ||
5656 | /* confdefs.h. */ | ||
5657 | _ACEOF | ||
5658 | cat confdefs.h >>conftest.$ac_ext | ||
5659 | cat >>conftest.$ac_ext <<_ACEOF | ||
5660 | /* end confdefs.h. */ | ||
5661 | |||
5662 | #include <sys/types.h> | ||
5663 | #include <sys/resource.h> | ||
5664 | |||
5665 | |||
5666 | int | ||
5667 | main () | ||
5668 | { | ||
5669 | #ifndef RLIMIT_NPROC | ||
5670 | (void) RLIMIT_NPROC; | ||
5671 | #endif | ||
5672 | |||
5673 | ; | ||
5674 | return 0; | ||
5675 | } | ||
5676 | _ACEOF | ||
5677 | rm -f conftest.$ac_objext | ||
5678 | if { (ac_try="$ac_compile" | ||
5679 | case "(($ac_try" in | ||
5680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5681 | *) ac_try_echo=$ac_try;; | ||
5682 | esac | ||
5683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5684 | (eval "$ac_compile") 2>conftest.er1 | ||
5685 | ac_status=$? | ||
5686 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5687 | rm -f conftest.er1 | ||
5688 | cat conftest.err >&5 | ||
5689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5690 | (exit $ac_status); } && { | ||
5691 | test -z "$ac_c_werror_flag" || | ||
5692 | test ! -s conftest.err | ||
5693 | } && test -s conftest.$ac_objext; then | ||
5694 | ac_cv_have_decl_RLIMIT_NPROC=yes | ||
5695 | else | ||
5696 | echo "$as_me: failed program was:" >&5 | ||
5697 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5698 | |||
5699 | ac_cv_have_decl_RLIMIT_NPROC=no | ||
5700 | fi | ||
5701 | |||
5702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5703 | fi | ||
5704 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_RLIMIT_NPROC" >&5 | ||
5705 | echo "${ECHO_T}$ac_cv_have_decl_RLIMIT_NPROC" >&6; } | ||
5706 | if test $ac_cv_have_decl_RLIMIT_NPROC = yes; then | ||
5707 | |||
5708 | cat >>confdefs.h <<\_ACEOF | ||
5709 | #define HAVE_RLIMIT_NPROC | ||
5710 | _ACEOF | ||
5711 | |||
5712 | fi | ||
5713 | |||
5714 | { echo "$as_me:$LINENO: checking whether PR_SET_NO_NEW_PRIVS is declared" >&5 | ||
5715 | echo $ECHO_N "checking whether PR_SET_NO_NEW_PRIVS is declared... $ECHO_C" >&6; } | ||
5716 | if test "${ac_cv_have_decl_PR_SET_NO_NEW_PRIVS+set}" = set; then | ||
5717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5718 | else | ||
5719 | cat >conftest.$ac_ext <<_ACEOF | ||
5720 | /* confdefs.h. */ | ||
5721 | _ACEOF | ||
5722 | cat confdefs.h >>conftest.$ac_ext | ||
5723 | cat >>conftest.$ac_ext <<_ACEOF | ||
5724 | /* end confdefs.h. */ | ||
5725 | |||
5726 | #include <sys/types.h> | ||
5727 | #include <linux/prctl.h> | ||
5728 | |||
5729 | |||
5730 | int | ||
5731 | main () | ||
5732 | { | ||
5733 | #ifndef PR_SET_NO_NEW_PRIVS | ||
5734 | (void) PR_SET_NO_NEW_PRIVS; | ||
5735 | #endif | ||
5736 | |||
5737 | ; | ||
5738 | return 0; | ||
5739 | } | ||
5740 | _ACEOF | ||
5741 | rm -f conftest.$ac_objext | ||
5742 | if { (ac_try="$ac_compile" | ||
5743 | case "(($ac_try" in | ||
5744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5745 | *) ac_try_echo=$ac_try;; | ||
5746 | esac | ||
5747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5748 | (eval "$ac_compile") 2>conftest.er1 | ||
5749 | ac_status=$? | ||
5750 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5751 | rm -f conftest.er1 | ||
5752 | cat conftest.err >&5 | ||
5753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5754 | (exit $ac_status); } && { | ||
5755 | test -z "$ac_c_werror_flag" || | ||
5756 | test ! -s conftest.err | ||
5757 | } && test -s conftest.$ac_objext; then | ||
5758 | ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=yes | ||
5759 | else | ||
5760 | echo "$as_me: failed program was:" >&5 | ||
5761 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5762 | |||
5763 | ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=no | ||
5764 | fi | ||
5765 | |||
5766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5767 | fi | ||
5768 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&5 | ||
5769 | echo "${ECHO_T}$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&6; } | ||
5770 | if test $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS = yes; then | ||
5771 | have_linux_no_new_privs=1 | ||
5772 | fi | ||
5773 | |||
5774 | |||
5775 | openssl=yes | ||
5776 | ssh1=no | ||
5777 | |||
5778 | # Check whether --with-openssl was given. | ||
5779 | if test "${with_openssl+set}" = set; then | ||
5780 | withval=$with_openssl; if test "x$withval" = "xno" ; then | ||
5781 | openssl=no | ||
5782 | ssh1=no | ||
5783 | fi | ||
5784 | |||
5785 | |||
5786 | fi | ||
5787 | |||
5788 | { echo "$as_me:$LINENO: checking whether OpenSSL will be used for cryptography" >&5 | ||
5789 | echo $ECHO_N "checking whether OpenSSL will be used for cryptography... $ECHO_C" >&6; } | ||
5790 | if test "x$openssl" = "xyes" ; then | ||
5791 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5792 | echo "${ECHO_T}yes" >&6; } | ||
5793 | |||
5794 | cat >>confdefs.h <<_ACEOF | ||
5795 | #define WITH_OPENSSL 1 | ||
5796 | _ACEOF | ||
5797 | |||
5798 | else | ||
5799 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5800 | echo "${ECHO_T}no" >&6; } | ||
5801 | fi | ||
5802 | |||
5803 | |||
5804 | # Check whether --with-ssh1 was given. | ||
5805 | if test "${with_ssh1+set}" = set; then | ||
5806 | withval=$with_ssh1; | ||
5807 | if test "x$withval" = "xyes" ; then | ||
5808 | if test "x$openssl" = "xno" ; then | ||
5809 | { { echo "$as_me:$LINENO: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&5 | ||
5810 | echo "$as_me: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&2;} | ||
5811 | { (exit 1); exit 1; }; } | ||
5812 | fi | ||
5813 | ssh1=yes | ||
5814 | elif test "x$withval" = "xno" ; then | ||
5815 | ssh1=no | ||
5816 | else | ||
5817 | { { echo "$as_me:$LINENO: error: unknown --with-ssh1 argument" >&5 | ||
5818 | echo "$as_me: error: unknown --with-ssh1 argument" >&2;} | ||
5819 | { (exit 1); exit 1; }; } | ||
5820 | fi | ||
5821 | |||
5822 | |||
5823 | fi | ||
5824 | |||
5825 | { echo "$as_me:$LINENO: checking whether SSH protocol 1 support is enabled" >&5 | ||
5826 | echo $ECHO_N "checking whether SSH protocol 1 support is enabled... $ECHO_C" >&6; } | ||
5827 | if test "x$ssh1" = "xyes" ; then | ||
5828 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5829 | echo "${ECHO_T}yes" >&6; } | ||
5830 | |||
5831 | cat >>confdefs.h <<_ACEOF | ||
5832 | #define WITH_SSH1 1 | ||
5833 | _ACEOF | ||
5834 | |||
5835 | else | ||
5836 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5837 | echo "${ECHO_T}no" >&6; } | ||
5838 | fi | ||
5839 | |||
5840 | use_stack_protector=1 | ||
5841 | use_toolchain_hardening=1 | ||
5842 | |||
5843 | # Check whether --with-stackprotect was given. | ||
5844 | if test "${with_stackprotect+set}" = set; then | ||
5845 | withval=$with_stackprotect; | ||
5846 | if test "x$withval" = "xno"; then | ||
5847 | use_stack_protector=0 | ||
5848 | fi | ||
5849 | fi | ||
5850 | |||
5851 | |||
5852 | # Check whether --with-hardening was given. | ||
5853 | if test "${with_hardening+set}" = set; then | ||
5854 | withval=$with_hardening; | ||
5855 | if test "x$withval" = "xno"; then | ||
5856 | use_toolchain_hardening=0 | ||
5857 | fi | ||
5858 | fi | ||
5859 | |||
5860 | |||
5861 | # We use -Werror for the tests only so that we catch warnings like "this is | ||
5862 | # on by default" for things like -fPIE. | ||
5863 | { echo "$as_me:$LINENO: checking if $CC supports -Werror" >&5 | ||
5864 | echo $ECHO_N "checking if $CC supports -Werror... $ECHO_C" >&6; } | ||
5865 | saved_CFLAGS="$CFLAGS" | ||
5866 | CFLAGS="$CFLAGS -Werror" | ||
5867 | cat >conftest.$ac_ext <<_ACEOF | ||
5868 | /* confdefs.h. */ | ||
5869 | _ACEOF | ||
5870 | cat confdefs.h >>conftest.$ac_ext | ||
5871 | cat >>conftest.$ac_ext <<_ACEOF | ||
5872 | /* end confdefs.h. */ | ||
5873 | int main(void) { return 0; } | ||
5874 | _ACEOF | ||
5875 | rm -f conftest.$ac_objext | ||
5876 | if { (ac_try="$ac_compile" | ||
5877 | case "(($ac_try" in | ||
5878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5879 | *) ac_try_echo=$ac_try;; | ||
5880 | esac | ||
5881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5882 | (eval "$ac_compile") 2>conftest.er1 | ||
5883 | ac_status=$? | ||
5884 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5885 | rm -f conftest.er1 | ||
5886 | cat conftest.err >&5 | ||
5887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5888 | (exit $ac_status); } && { | ||
5889 | test -z "$ac_c_werror_flag" || | ||
5890 | test ! -s conftest.err | ||
5891 | } && test -s conftest.$ac_objext; then | ||
5892 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5893 | echo "${ECHO_T}yes" >&6; } | ||
5894 | WERROR="-Werror" | ||
5895 | else | ||
5896 | echo "$as_me: failed program was:" >&5 | ||
5897 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5898 | |||
5899 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5900 | echo "${ECHO_T}no" >&6; } | ||
5901 | WERROR="" | ||
5902 | |||
5903 | fi | ||
5904 | |||
5905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5906 | CFLAGS="$saved_CFLAGS" | ||
5907 | |||
5908 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
5909 | { | ||
5910 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Qunused-arguments" >&5 | ||
5911 | echo $ECHO_N "checking if $CC supports compile flag -Qunused-arguments... $ECHO_C" >&6; } | ||
5912 | saved_CFLAGS="$CFLAGS" | ||
5913 | CFLAGS="$CFLAGS $WERROR -Qunused-arguments" | ||
5914 | _define_flag="" | ||
5915 | test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments" | ||
5916 | cat >conftest.$ac_ext <<_ACEOF | ||
5917 | /* confdefs.h. */ | ||
5918 | _ACEOF | ||
5919 | cat confdefs.h >>conftest.$ac_ext | ||
5920 | cat >>conftest.$ac_ext <<_ACEOF | ||
5921 | /* end confdefs.h. */ | ||
5922 | |||
5923 | #include <stdlib.h> | ||
5924 | #include <stdio.h> | ||
5925 | int main(int argc, char **argv) { | ||
5926 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5927 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5928 | float l = i * 2.1; | ||
5929 | double m = l / 0.5; | ||
5930 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5931 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5932 | exit(0); | ||
5933 | } | ||
5934 | |||
5935 | _ACEOF | ||
5936 | rm -f conftest.$ac_objext | ||
5937 | if { (ac_try="$ac_compile" | ||
5938 | case "(($ac_try" in | ||
5939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5940 | *) ac_try_echo=$ac_try;; | ||
5941 | esac | ||
5942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5943 | (eval "$ac_compile") 2>conftest.er1 | ||
5944 | ac_status=$? | ||
5945 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5946 | rm -f conftest.er1 | ||
5947 | cat conftest.err >&5 | ||
5948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5949 | (exit $ac_status); } && { | ||
5950 | test -z "$ac_c_werror_flag" || | ||
5951 | test ! -s conftest.err | ||
5952 | } && test -s conftest.$ac_objext; then | ||
5953 | |||
5954 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5955 | then | ||
5956 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5957 | echo "${ECHO_T}no" >&6; } | ||
5958 | CFLAGS="$saved_CFLAGS" | ||
5959 | else | ||
5960 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5961 | echo "${ECHO_T}yes" >&6; } | ||
5962 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5963 | fi | ||
5964 | else | ||
5965 | echo "$as_me: failed program was:" >&5 | ||
5966 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5967 | |||
5968 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5969 | echo "${ECHO_T}no" >&6; } | ||
5970 | CFLAGS="$saved_CFLAGS" | ||
5971 | |||
5972 | fi | ||
5973 | |||
5974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5975 | } | ||
5976 | { | ||
5977 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunknown-warning-option" >&5 | ||
5978 | echo $ECHO_N "checking if $CC supports compile flag -Wunknown-warning-option... $ECHO_C" >&6; } | ||
5979 | saved_CFLAGS="$CFLAGS" | ||
5980 | CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option" | ||
5981 | _define_flag="" | ||
5982 | test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option" | ||
5983 | cat >conftest.$ac_ext <<_ACEOF | ||
5984 | /* confdefs.h. */ | ||
5985 | _ACEOF | ||
5986 | cat confdefs.h >>conftest.$ac_ext | ||
5987 | cat >>conftest.$ac_ext <<_ACEOF | ||
5988 | /* end confdefs.h. */ | ||
5989 | |||
5990 | #include <stdlib.h> | ||
5991 | #include <stdio.h> | ||
5992 | int main(int argc, char **argv) { | ||
5993 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5994 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5995 | float l = i * 2.1; | ||
5996 | double m = l / 0.5; | ||
5997 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5998 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5999 | exit(0); | ||
6000 | } | ||
6001 | |||
6002 | _ACEOF | ||
6003 | rm -f conftest.$ac_objext | ||
6004 | if { (ac_try="$ac_compile" | ||
6005 | case "(($ac_try" in | ||
6006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6007 | *) ac_try_echo=$ac_try;; | ||
6008 | esac | ||
6009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6010 | (eval "$ac_compile") 2>conftest.er1 | ||
6011 | ac_status=$? | ||
6012 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6013 | rm -f conftest.er1 | ||
6014 | cat conftest.err >&5 | ||
6015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6016 | (exit $ac_status); } && { | ||
6017 | test -z "$ac_c_werror_flag" || | ||
6018 | test ! -s conftest.err | ||
6019 | } && test -s conftest.$ac_objext; then | ||
6020 | |||
6021 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6022 | then | ||
6023 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6024 | echo "${ECHO_T}no" >&6; } | ||
6025 | CFLAGS="$saved_CFLAGS" | ||
6026 | else | ||
6027 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6028 | echo "${ECHO_T}yes" >&6; } | ||
6029 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6030 | fi | ||
6031 | else | ||
6032 | echo "$as_me: failed program was:" >&5 | ||
6033 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6034 | |||
6035 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6036 | echo "${ECHO_T}no" >&6; } | ||
6037 | CFLAGS="$saved_CFLAGS" | ||
6038 | |||
6039 | fi | ||
6040 | |||
6041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6042 | } | ||
6043 | { | ||
6044 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wall" >&5 | ||
6045 | echo $ECHO_N "checking if $CC supports compile flag -Wall... $ECHO_C" >&6; } | ||
6046 | saved_CFLAGS="$CFLAGS" | ||
6047 | CFLAGS="$CFLAGS $WERROR -Wall" | ||
6048 | _define_flag="" | ||
6049 | test "x$_define_flag" = "x" && _define_flag="-Wall" | ||
6050 | cat >conftest.$ac_ext <<_ACEOF | ||
6051 | /* confdefs.h. */ | ||
6052 | _ACEOF | ||
6053 | cat confdefs.h >>conftest.$ac_ext | ||
6054 | cat >>conftest.$ac_ext <<_ACEOF | ||
6055 | /* end confdefs.h. */ | ||
6056 | |||
6057 | #include <stdlib.h> | ||
6058 | #include <stdio.h> | ||
6059 | int main(int argc, char **argv) { | ||
6060 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6061 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6062 | float l = i * 2.1; | ||
6063 | double m = l / 0.5; | ||
6064 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6065 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6066 | exit(0); | ||
6067 | } | ||
6068 | |||
6069 | _ACEOF | ||
6070 | rm -f conftest.$ac_objext | ||
6071 | if { (ac_try="$ac_compile" | ||
6072 | case "(($ac_try" in | ||
6073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6074 | *) ac_try_echo=$ac_try;; | ||
6075 | esac | ||
6076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6077 | (eval "$ac_compile") 2>conftest.er1 | ||
6078 | ac_status=$? | ||
6079 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6080 | rm -f conftest.er1 | ||
6081 | cat conftest.err >&5 | ||
6082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6083 | (exit $ac_status); } && { | ||
6084 | test -z "$ac_c_werror_flag" || | ||
6085 | test ! -s conftest.err | ||
6086 | } && test -s conftest.$ac_objext; then | ||
6087 | |||
6088 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6089 | then | ||
6090 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6091 | echo "${ECHO_T}no" >&6; } | ||
6092 | CFLAGS="$saved_CFLAGS" | ||
6093 | else | ||
6094 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6095 | echo "${ECHO_T}yes" >&6; } | ||
6096 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6097 | fi | ||
6098 | else | ||
6099 | echo "$as_me: failed program was:" >&5 | ||
6100 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6101 | |||
6102 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6103 | echo "${ECHO_T}no" >&6; } | ||
6104 | CFLAGS="$saved_CFLAGS" | ||
6105 | |||
6106 | fi | ||
6107 | |||
6108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6109 | } | ||
6110 | { | ||
6111 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-arith" >&5 | ||
6112 | echo $ECHO_N "checking if $CC supports compile flag -Wpointer-arith... $ECHO_C" >&6; } | ||
6113 | saved_CFLAGS="$CFLAGS" | ||
6114 | CFLAGS="$CFLAGS $WERROR -Wpointer-arith" | ||
6115 | _define_flag="" | ||
6116 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith" | ||
6117 | cat >conftest.$ac_ext <<_ACEOF | ||
6118 | /* confdefs.h. */ | ||
6119 | _ACEOF | ||
6120 | cat confdefs.h >>conftest.$ac_ext | ||
6121 | cat >>conftest.$ac_ext <<_ACEOF | ||
6122 | /* end confdefs.h. */ | ||
6123 | |||
6124 | #include <stdlib.h> | ||
6125 | #include <stdio.h> | ||
6126 | int main(int argc, char **argv) { | ||
6127 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6128 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6129 | float l = i * 2.1; | ||
6130 | double m = l / 0.5; | ||
6131 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6132 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6133 | exit(0); | ||
6134 | } | ||
6135 | |||
6136 | _ACEOF | ||
6137 | rm -f conftest.$ac_objext | ||
6138 | if { (ac_try="$ac_compile" | ||
6139 | case "(($ac_try" in | ||
6140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6141 | *) ac_try_echo=$ac_try;; | ||
6142 | esac | ||
6143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6144 | (eval "$ac_compile") 2>conftest.er1 | ||
6145 | ac_status=$? | ||
6146 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6147 | rm -f conftest.er1 | ||
6148 | cat conftest.err >&5 | ||
6149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6150 | (exit $ac_status); } && { | ||
6151 | test -z "$ac_c_werror_flag" || | ||
6152 | test ! -s conftest.err | ||
6153 | } && test -s conftest.$ac_objext; then | ||
6154 | |||
6155 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6156 | then | ||
6157 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6158 | echo "${ECHO_T}no" >&6; } | ||
6159 | CFLAGS="$saved_CFLAGS" | ||
6160 | else | ||
6161 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6162 | echo "${ECHO_T}yes" >&6; } | ||
6163 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6164 | fi | ||
6165 | else | ||
6166 | echo "$as_me: failed program was:" >&5 | ||
6167 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6168 | |||
6169 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6170 | echo "${ECHO_T}no" >&6; } | ||
6171 | CFLAGS="$saved_CFLAGS" | ||
6172 | |||
6173 | fi | ||
6174 | |||
6175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6176 | } | ||
6177 | { | ||
6178 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wuninitialized" >&5 | ||
6179 | echo $ECHO_N "checking if $CC supports compile flag -Wuninitialized... $ECHO_C" >&6; } | ||
6180 | saved_CFLAGS="$CFLAGS" | ||
6181 | CFLAGS="$CFLAGS $WERROR -Wuninitialized" | ||
6182 | _define_flag="" | ||
6183 | test "x$_define_flag" = "x" && _define_flag="-Wuninitialized" | ||
6184 | cat >conftest.$ac_ext <<_ACEOF | ||
6185 | /* confdefs.h. */ | ||
6186 | _ACEOF | ||
6187 | cat confdefs.h >>conftest.$ac_ext | ||
6188 | cat >>conftest.$ac_ext <<_ACEOF | ||
6189 | /* end confdefs.h. */ | ||
6190 | |||
6191 | #include <stdlib.h> | ||
6192 | #include <stdio.h> | ||
6193 | int main(int argc, char **argv) { | ||
6194 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6195 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6196 | float l = i * 2.1; | ||
6197 | double m = l / 0.5; | ||
6198 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6199 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6200 | exit(0); | ||
6201 | } | ||
6202 | |||
6203 | _ACEOF | ||
6204 | rm -f conftest.$ac_objext | ||
6205 | if { (ac_try="$ac_compile" | ||
6206 | case "(($ac_try" in | ||
6207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6208 | *) ac_try_echo=$ac_try;; | ||
6209 | esac | ||
6210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6211 | (eval "$ac_compile") 2>conftest.er1 | ||
6212 | ac_status=$? | ||
6213 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6214 | rm -f conftest.er1 | ||
6215 | cat conftest.err >&5 | ||
6216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6217 | (exit $ac_status); } && { | ||
6218 | test -z "$ac_c_werror_flag" || | ||
6219 | test ! -s conftest.err | ||
6220 | } && test -s conftest.$ac_objext; then | ||
6221 | |||
6222 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6223 | then | ||
6224 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6225 | echo "${ECHO_T}no" >&6; } | ||
6226 | CFLAGS="$saved_CFLAGS" | ||
6227 | else | ||
6228 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6229 | echo "${ECHO_T}yes" >&6; } | ||
6230 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6231 | fi | ||
6232 | else | ||
6233 | echo "$as_me: failed program was:" >&5 | ||
6234 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6235 | |||
6236 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6237 | echo "${ECHO_T}no" >&6; } | ||
6238 | CFLAGS="$saved_CFLAGS" | ||
6239 | |||
6240 | fi | ||
6241 | |||
6242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6243 | } | ||
6244 | { | ||
6245 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsign-compare" >&5 | ||
6246 | echo $ECHO_N "checking if $CC supports compile flag -Wsign-compare... $ECHO_C" >&6; } | ||
6247 | saved_CFLAGS="$CFLAGS" | ||
6248 | CFLAGS="$CFLAGS $WERROR -Wsign-compare" | ||
6249 | _define_flag="" | ||
6250 | test "x$_define_flag" = "x" && _define_flag="-Wsign-compare" | ||
6251 | cat >conftest.$ac_ext <<_ACEOF | ||
6252 | /* confdefs.h. */ | ||
6253 | _ACEOF | ||
6254 | cat confdefs.h >>conftest.$ac_ext | ||
6255 | cat >>conftest.$ac_ext <<_ACEOF | ||
6256 | /* end confdefs.h. */ | ||
6257 | |||
6258 | #include <stdlib.h> | ||
6259 | #include <stdio.h> | ||
6260 | int main(int argc, char **argv) { | ||
6261 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6262 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6263 | float l = i * 2.1; | ||
6264 | double m = l / 0.5; | ||
6265 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6266 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6267 | exit(0); | ||
6268 | } | ||
6269 | |||
6270 | _ACEOF | ||
6271 | rm -f conftest.$ac_objext | ||
6272 | if { (ac_try="$ac_compile" | ||
6273 | case "(($ac_try" in | ||
6274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6275 | *) ac_try_echo=$ac_try;; | ||
6276 | esac | ||
6277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6278 | (eval "$ac_compile") 2>conftest.er1 | ||
6279 | ac_status=$? | ||
6280 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6281 | rm -f conftest.er1 | ||
6282 | cat conftest.err >&5 | ||
6283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6284 | (exit $ac_status); } && { | ||
6285 | test -z "$ac_c_werror_flag" || | ||
6286 | test ! -s conftest.err | ||
6287 | } && test -s conftest.$ac_objext; then | ||
6288 | |||
6289 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6290 | then | ||
6291 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6292 | echo "${ECHO_T}no" >&6; } | ||
6293 | CFLAGS="$saved_CFLAGS" | ||
6294 | else | ||
6295 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6296 | echo "${ECHO_T}yes" >&6; } | ||
6297 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6298 | fi | ||
6299 | else | ||
6300 | echo "$as_me: failed program was:" >&5 | ||
6301 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6302 | |||
6303 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6304 | echo "${ECHO_T}no" >&6; } | ||
6305 | CFLAGS="$saved_CFLAGS" | ||
6306 | |||
6307 | fi | ||
6308 | |||
6309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6310 | } | ||
6311 | { | ||
6312 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wformat-security" >&5 | ||
6313 | echo $ECHO_N "checking if $CC supports compile flag -Wformat-security... $ECHO_C" >&6; } | ||
6314 | saved_CFLAGS="$CFLAGS" | ||
6315 | CFLAGS="$CFLAGS $WERROR -Wformat-security" | ||
6316 | _define_flag="" | ||
6317 | test "x$_define_flag" = "x" && _define_flag="-Wformat-security" | ||
6318 | cat >conftest.$ac_ext <<_ACEOF | ||
6319 | /* confdefs.h. */ | ||
6320 | _ACEOF | ||
6321 | cat confdefs.h >>conftest.$ac_ext | ||
6322 | cat >>conftest.$ac_ext <<_ACEOF | ||
6323 | /* end confdefs.h. */ | ||
6324 | |||
6325 | #include <stdlib.h> | ||
6326 | #include <stdio.h> | ||
6327 | int main(int argc, char **argv) { | ||
6328 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6329 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6330 | float l = i * 2.1; | ||
6331 | double m = l / 0.5; | ||
6332 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6333 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6334 | exit(0); | ||
6335 | } | ||
6336 | |||
6337 | _ACEOF | ||
6338 | rm -f conftest.$ac_objext | ||
6339 | if { (ac_try="$ac_compile" | ||
6340 | case "(($ac_try" in | ||
6341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6342 | *) ac_try_echo=$ac_try;; | ||
6343 | esac | ||
6344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6345 | (eval "$ac_compile") 2>conftest.er1 | ||
6346 | ac_status=$? | ||
6347 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6348 | rm -f conftest.er1 | ||
6349 | cat conftest.err >&5 | ||
6350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6351 | (exit $ac_status); } && { | ||
6352 | test -z "$ac_c_werror_flag" || | ||
6353 | test ! -s conftest.err | ||
6354 | } && test -s conftest.$ac_objext; then | ||
6355 | |||
6356 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6357 | then | ||
6358 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6359 | echo "${ECHO_T}no" >&6; } | ||
6360 | CFLAGS="$saved_CFLAGS" | ||
6361 | else | ||
6362 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6363 | echo "${ECHO_T}yes" >&6; } | ||
6364 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6365 | fi | ||
6366 | else | ||
6367 | echo "$as_me: failed program was:" >&5 | ||
6368 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6369 | |||
6370 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6371 | echo "${ECHO_T}no" >&6; } | ||
6372 | CFLAGS="$saved_CFLAGS" | ||
6373 | |||
6374 | fi | ||
6375 | |||
6376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6377 | } | ||
6378 | { | ||
6379 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5 | ||
6380 | echo $ECHO_N "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... $ECHO_C" >&6; } | ||
6381 | saved_CFLAGS="$CFLAGS" | ||
6382 | CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess" | ||
6383 | _define_flag="" | ||
6384 | test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess" | ||
6385 | cat >conftest.$ac_ext <<_ACEOF | ||
6386 | /* confdefs.h. */ | ||
6387 | _ACEOF | ||
6388 | cat confdefs.h >>conftest.$ac_ext | ||
6389 | cat >>conftest.$ac_ext <<_ACEOF | ||
6390 | /* end confdefs.h. */ | ||
6391 | |||
6392 | #include <stdlib.h> | ||
6393 | #include <stdio.h> | ||
6394 | int main(int argc, char **argv) { | ||
6395 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6396 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6397 | float l = i * 2.1; | ||
6398 | double m = l / 0.5; | ||
6399 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6400 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6401 | exit(0); | ||
6402 | } | ||
6403 | |||
6404 | _ACEOF | ||
6405 | rm -f conftest.$ac_objext | ||
6406 | if { (ac_try="$ac_compile" | ||
6407 | case "(($ac_try" in | ||
6408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6409 | *) ac_try_echo=$ac_try;; | ||
6410 | esac | ||
6411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6412 | (eval "$ac_compile") 2>conftest.er1 | ||
6413 | ac_status=$? | ||
6414 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6415 | rm -f conftest.er1 | ||
6416 | cat conftest.err >&5 | ||
6417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6418 | (exit $ac_status); } && { | ||
6419 | test -z "$ac_c_werror_flag" || | ||
6420 | test ! -s conftest.err | ||
6421 | } && test -s conftest.$ac_objext; then | ||
6422 | |||
6423 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6424 | then | ||
6425 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6426 | echo "${ECHO_T}no" >&6; } | ||
6427 | CFLAGS="$saved_CFLAGS" | ||
6428 | else | ||
6429 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6430 | echo "${ECHO_T}yes" >&6; } | ||
6431 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6432 | fi | ||
6433 | else | ||
6434 | echo "$as_me: failed program was:" >&5 | ||
6435 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6436 | |||
6437 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6438 | echo "${ECHO_T}no" >&6; } | ||
6439 | CFLAGS="$saved_CFLAGS" | ||
6440 | |||
6441 | fi | ||
6442 | |||
6443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6444 | } | ||
6445 | { | ||
6446 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-sign" >&5 | ||
6447 | echo $ECHO_N "checking if $CC supports compile flag -Wpointer-sign... $ECHO_C" >&6; } | ||
6448 | saved_CFLAGS="$CFLAGS" | ||
6449 | CFLAGS="$CFLAGS $WERROR -Wpointer-sign" | ||
6450 | _define_flag="-Wno-pointer-sign" | ||
6451 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign" | ||
6452 | cat >conftest.$ac_ext <<_ACEOF | ||
6453 | /* confdefs.h. */ | ||
6454 | _ACEOF | ||
6455 | cat confdefs.h >>conftest.$ac_ext | ||
6456 | cat >>conftest.$ac_ext <<_ACEOF | ||
6457 | /* end confdefs.h. */ | ||
6458 | |||
6459 | #include <stdlib.h> | ||
6460 | #include <stdio.h> | ||
6461 | int main(int argc, char **argv) { | ||
6462 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6463 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6464 | float l = i * 2.1; | ||
6465 | double m = l / 0.5; | ||
6466 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6467 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6468 | exit(0); | ||
6469 | } | ||
6470 | |||
6471 | _ACEOF | ||
6472 | rm -f conftest.$ac_objext | ||
6473 | if { (ac_try="$ac_compile" | ||
6474 | case "(($ac_try" in | ||
6475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6476 | *) ac_try_echo=$ac_try;; | ||
6477 | esac | ||
6478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6479 | (eval "$ac_compile") 2>conftest.er1 | ||
6480 | ac_status=$? | ||
6481 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6482 | rm -f conftest.er1 | ||
6483 | cat conftest.err >&5 | ||
6484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6485 | (exit $ac_status); } && { | ||
6486 | test -z "$ac_c_werror_flag" || | ||
6487 | test ! -s conftest.err | ||
6488 | } && test -s conftest.$ac_objext; then | ||
6489 | |||
6490 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6491 | then | ||
6492 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6493 | echo "${ECHO_T}no" >&6; } | ||
6494 | CFLAGS="$saved_CFLAGS" | ||
6495 | else | ||
6496 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6497 | echo "${ECHO_T}yes" >&6; } | ||
6498 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6499 | fi | ||
6500 | else | ||
6501 | echo "$as_me: failed program was:" >&5 | ||
6502 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6503 | |||
6504 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6505 | echo "${ECHO_T}no" >&6; } | ||
6506 | CFLAGS="$saved_CFLAGS" | ||
6507 | |||
6508 | fi | ||
6509 | |||
6510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6511 | } | ||
6512 | { | ||
6513 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunused-result" >&5 | ||
6514 | echo $ECHO_N "checking if $CC supports compile flag -Wunused-result... $ECHO_C" >&6; } | ||
6515 | saved_CFLAGS="$CFLAGS" | ||
6516 | CFLAGS="$CFLAGS $WERROR -Wunused-result" | ||
6517 | _define_flag="-Wno-unused-result" | ||
6518 | test "x$_define_flag" = "x" && _define_flag="-Wunused-result" | ||
6519 | cat >conftest.$ac_ext <<_ACEOF | ||
6520 | /* confdefs.h. */ | ||
6521 | _ACEOF | ||
6522 | cat confdefs.h >>conftest.$ac_ext | ||
6523 | cat >>conftest.$ac_ext <<_ACEOF | ||
6524 | /* end confdefs.h. */ | ||
6525 | |||
6526 | #include <stdlib.h> | ||
6527 | #include <stdio.h> | ||
6528 | int main(int argc, char **argv) { | ||
6529 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6530 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6531 | float l = i * 2.1; | ||
6532 | double m = l / 0.5; | ||
6533 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6534 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6535 | exit(0); | ||
6536 | } | ||
6537 | |||
6538 | _ACEOF | ||
6539 | rm -f conftest.$ac_objext | ||
6540 | if { (ac_try="$ac_compile" | ||
6541 | case "(($ac_try" in | ||
6542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6543 | *) ac_try_echo=$ac_try;; | ||
6544 | esac | ||
6545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6546 | (eval "$ac_compile") 2>conftest.er1 | ||
6547 | ac_status=$? | ||
6548 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6549 | rm -f conftest.er1 | ||
6550 | cat conftest.err >&5 | ||
6551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6552 | (exit $ac_status); } && { | ||
6553 | test -z "$ac_c_werror_flag" || | ||
6554 | test ! -s conftest.err | ||
6555 | } && test -s conftest.$ac_objext; then | ||
6556 | |||
6557 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6558 | then | ||
6559 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6560 | echo "${ECHO_T}no" >&6; } | ||
6561 | CFLAGS="$saved_CFLAGS" | ||
6562 | else | ||
6563 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6564 | echo "${ECHO_T}yes" >&6; } | ||
6565 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6566 | fi | ||
6567 | else | ||
6568 | echo "$as_me: failed program was:" >&5 | ||
6569 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6570 | |||
6571 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6572 | echo "${ECHO_T}no" >&6; } | ||
6573 | CFLAGS="$saved_CFLAGS" | ||
6574 | |||
6575 | fi | ||
6576 | |||
6577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6578 | } | ||
6579 | { | ||
6580 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -fno-strict-aliasing" >&5 | ||
6581 | echo $ECHO_N "checking if $CC supports compile flag -fno-strict-aliasing... $ECHO_C" >&6; } | ||
6582 | saved_CFLAGS="$CFLAGS" | ||
6583 | CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing" | ||
6584 | _define_flag="" | ||
6585 | test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing" | ||
6586 | cat >conftest.$ac_ext <<_ACEOF | ||
6587 | /* confdefs.h. */ | ||
6588 | _ACEOF | ||
6589 | cat confdefs.h >>conftest.$ac_ext | ||
6590 | cat >>conftest.$ac_ext <<_ACEOF | ||
6591 | /* end confdefs.h. */ | ||
6592 | |||
6593 | #include <stdlib.h> | ||
6594 | #include <stdio.h> | ||
6595 | int main(int argc, char **argv) { | ||
6596 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6597 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6598 | float l = i * 2.1; | ||
6599 | double m = l / 0.5; | ||
6600 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6601 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6602 | exit(0); | ||
6603 | } | ||
6604 | |||
6605 | _ACEOF | ||
6606 | rm -f conftest.$ac_objext | ||
6607 | if { (ac_try="$ac_compile" | ||
6608 | case "(($ac_try" in | ||
6609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6610 | *) ac_try_echo=$ac_try;; | ||
6611 | esac | ||
6612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6613 | (eval "$ac_compile") 2>conftest.er1 | ||
6614 | ac_status=$? | ||
6615 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6616 | rm -f conftest.er1 | ||
6617 | cat conftest.err >&5 | ||
6618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6619 | (exit $ac_status); } && { | ||
6620 | test -z "$ac_c_werror_flag" || | ||
6621 | test ! -s conftest.err | ||
6622 | } && test -s conftest.$ac_objext; then | ||
6623 | |||
6624 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6625 | then | ||
6626 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6627 | echo "${ECHO_T}no" >&6; } | ||
6628 | CFLAGS="$saved_CFLAGS" | ||
6629 | else | ||
6630 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6631 | echo "${ECHO_T}yes" >&6; } | ||
6632 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6633 | fi | ||
6634 | else | ||
6635 | echo "$as_me: failed program was:" >&5 | ||
6636 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6637 | |||
6638 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6639 | echo "${ECHO_T}no" >&6; } | ||
6640 | CFLAGS="$saved_CFLAGS" | ||
6641 | |||
6642 | fi | ||
6643 | |||
6644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6645 | } | ||
6646 | { | ||
6647 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5 | ||
6648 | echo $ECHO_N "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... $ECHO_C" >&6; } | ||
6649 | saved_CFLAGS="$CFLAGS" | ||
6650 | CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2" | ||
6651 | _define_flag="" | ||
6652 | test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2" | ||
6653 | cat >conftest.$ac_ext <<_ACEOF | ||
6654 | /* confdefs.h. */ | ||
6655 | _ACEOF | ||
6656 | cat confdefs.h >>conftest.$ac_ext | ||
6657 | cat >>conftest.$ac_ext <<_ACEOF | ||
6658 | /* end confdefs.h. */ | ||
6659 | |||
6660 | #include <stdlib.h> | ||
6661 | #include <stdio.h> | ||
6662 | int main(int argc, char **argv) { | ||
6663 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6664 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6665 | float l = i * 2.1; | ||
6666 | double m = l / 0.5; | ||
6667 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6668 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6669 | exit(0); | ||
6670 | } | ||
6671 | |||
6672 | _ACEOF | ||
6673 | rm -f conftest.$ac_objext | ||
6674 | if { (ac_try="$ac_compile" | ||
6675 | case "(($ac_try" in | ||
6676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6677 | *) ac_try_echo=$ac_try;; | ||
6678 | esac | ||
6679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6680 | (eval "$ac_compile") 2>conftest.er1 | ||
6681 | ac_status=$? | ||
6682 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6683 | rm -f conftest.er1 | ||
6684 | cat conftest.err >&5 | ||
6685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6686 | (exit $ac_status); } && { | ||
6687 | test -z "$ac_c_werror_flag" || | ||
6688 | test ! -s conftest.err | ||
6689 | } && test -s conftest.$ac_objext; then | ||
6690 | |||
6691 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6692 | then | ||
6693 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6694 | echo "${ECHO_T}no" >&6; } | ||
6695 | CFLAGS="$saved_CFLAGS" | ||
6696 | else | ||
6697 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6698 | echo "${ECHO_T}yes" >&6; } | ||
6699 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6700 | fi | ||
6701 | else | ||
6702 | echo "$as_me: failed program was:" >&5 | ||
6703 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6704 | |||
6705 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6706 | echo "${ECHO_T}no" >&6; } | ||
6707 | CFLAGS="$saved_CFLAGS" | ||
6708 | |||
6709 | fi | ||
6710 | |||
6711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6712 | } | ||
6713 | if test "x$use_toolchain_hardening" = "x1"; then | ||
6714 | { | ||
6715 | { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,relro" >&5 | ||
6716 | echo $ECHO_N "checking if $LD supports link flag -Wl,-z,relro... $ECHO_C" >&6; } | ||
6717 | saved_LDFLAGS="$LDFLAGS" | ||
6718 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro" | ||
6719 | _define_flag="" | ||
6720 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro" | ||
6721 | cat >conftest.$ac_ext <<_ACEOF | ||
6722 | /* confdefs.h. */ | ||
6723 | _ACEOF | ||
6724 | cat confdefs.h >>conftest.$ac_ext | ||
6725 | cat >>conftest.$ac_ext <<_ACEOF | ||
6726 | /* end confdefs.h. */ | ||
6727 | |||
6728 | #include <stdlib.h> | ||
6729 | #include <stdio.h> | ||
6730 | int main(int argc, char **argv) { | ||
6731 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6732 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6733 | float l = i * 2.1; | ||
6734 | double m = l / 0.5; | ||
6735 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6736 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6737 | exit(0); | ||
6738 | } | ||
6739 | |||
6740 | _ACEOF | ||
6741 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6742 | if { (ac_try="$ac_link" | ||
6743 | case "(($ac_try" in | ||
6744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6745 | *) ac_try_echo=$ac_try;; | ||
6746 | esac | ||
6747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6748 | (eval "$ac_link") 2>conftest.er1 | ||
6749 | ac_status=$? | ||
6750 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6751 | rm -f conftest.er1 | ||
6752 | cat conftest.err >&5 | ||
6753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6754 | (exit $ac_status); } && { | ||
6755 | test -z "$ac_c_werror_flag" || | ||
6756 | test ! -s conftest.err | ||
6757 | } && test -s conftest$ac_exeext && | ||
6758 | $as_test_x conftest$ac_exeext; then | ||
6759 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6760 | echo "${ECHO_T}yes" >&6; } | ||
6761 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6762 | else | ||
6763 | echo "$as_me: failed program was:" >&5 | ||
6764 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6765 | |||
6766 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6767 | echo "${ECHO_T}no" >&6; } | ||
6768 | LDFLAGS="$saved_LDFLAGS" | ||
6769 | |||
6770 | fi | ||
6771 | |||
6772 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6773 | conftest$ac_exeext conftest.$ac_ext | ||
6774 | } | ||
6775 | { | ||
6776 | { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,now" >&5 | ||
6777 | echo $ECHO_N "checking if $LD supports link flag -Wl,-z,now... $ECHO_C" >&6; } | ||
6778 | saved_LDFLAGS="$LDFLAGS" | ||
6779 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now" | ||
6780 | _define_flag="" | ||
6781 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now" | ||
6782 | cat >conftest.$ac_ext <<_ACEOF | ||
6783 | /* confdefs.h. */ | ||
6784 | _ACEOF | ||
6785 | cat confdefs.h >>conftest.$ac_ext | ||
6786 | cat >>conftest.$ac_ext <<_ACEOF | ||
6787 | /* end confdefs.h. */ | ||
6788 | |||
6789 | #include <stdlib.h> | ||
6790 | #include <stdio.h> | ||
6791 | int main(int argc, char **argv) { | ||
6792 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6793 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6794 | float l = i * 2.1; | ||
6795 | double m = l / 0.5; | ||
6796 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6797 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6798 | exit(0); | ||
6799 | } | ||
6800 | |||
6801 | _ACEOF | ||
6802 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6803 | if { (ac_try="$ac_link" | ||
6804 | case "(($ac_try" in | ||
6805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6806 | *) ac_try_echo=$ac_try;; | ||
6807 | esac | ||
6808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6809 | (eval "$ac_link") 2>conftest.er1 | ||
6810 | ac_status=$? | ||
6811 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6812 | rm -f conftest.er1 | ||
6813 | cat conftest.err >&5 | ||
6814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6815 | (exit $ac_status); } && { | ||
6816 | test -z "$ac_c_werror_flag" || | ||
6817 | test ! -s conftest.err | ||
6818 | } && test -s conftest$ac_exeext && | ||
6819 | $as_test_x conftest$ac_exeext; then | ||
6820 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6821 | echo "${ECHO_T}yes" >&6; } | ||
6822 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6823 | else | ||
6824 | echo "$as_me: failed program was:" >&5 | ||
6825 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6826 | |||
6827 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6828 | echo "${ECHO_T}no" >&6; } | ||
6829 | LDFLAGS="$saved_LDFLAGS" | ||
6830 | |||
6831 | fi | ||
6832 | |||
6833 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6834 | conftest$ac_exeext conftest.$ac_ext | ||
6835 | } | ||
6836 | { | ||
6837 | { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,noexecstack" >&5 | ||
6838 | echo $ECHO_N "checking if $LD supports link flag -Wl,-z,noexecstack... $ECHO_C" >&6; } | ||
6839 | saved_LDFLAGS="$LDFLAGS" | ||
6840 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack" | ||
6841 | _define_flag="" | ||
6842 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack" | ||
6843 | cat >conftest.$ac_ext <<_ACEOF | ||
6844 | /* confdefs.h. */ | ||
6845 | _ACEOF | ||
6846 | cat confdefs.h >>conftest.$ac_ext | ||
6847 | cat >>conftest.$ac_ext <<_ACEOF | ||
6848 | /* end confdefs.h. */ | ||
6849 | |||
6850 | #include <stdlib.h> | ||
6851 | #include <stdio.h> | ||
6852 | int main(int argc, char **argv) { | ||
6853 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6854 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6855 | float l = i * 2.1; | ||
6856 | double m = l / 0.5; | ||
6857 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6858 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6859 | exit(0); | ||
6860 | } | ||
6861 | |||
6862 | _ACEOF | ||
6863 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6864 | if { (ac_try="$ac_link" | ||
6865 | case "(($ac_try" in | ||
6866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6867 | *) ac_try_echo=$ac_try;; | ||
6868 | esac | ||
6869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6870 | (eval "$ac_link") 2>conftest.er1 | ||
6871 | ac_status=$? | ||
6872 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6873 | rm -f conftest.er1 | ||
6874 | cat conftest.err >&5 | ||
6875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6876 | (exit $ac_status); } && { | ||
6877 | test -z "$ac_c_werror_flag" || | ||
6878 | test ! -s conftest.err | ||
6879 | } && test -s conftest$ac_exeext && | ||
6880 | $as_test_x conftest$ac_exeext; then | ||
6881 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6882 | echo "${ECHO_T}yes" >&6; } | ||
6883 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6884 | else | ||
6885 | echo "$as_me: failed program was:" >&5 | ||
6886 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6887 | |||
6888 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6889 | echo "${ECHO_T}no" >&6; } | ||
6890 | LDFLAGS="$saved_LDFLAGS" | ||
6891 | |||
6892 | fi | ||
6893 | |||
6894 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6895 | conftest$ac_exeext conftest.$ac_ext | ||
6896 | } | ||
6897 | # NB. -ftrapv expects certain support functions to be present in | ||
6898 | # the compiler library (libgcc or similar) to detect integer operations | ||
6899 | # that can overflow. We must check that the result of enabling it | ||
6900 | # actually links. The test program compiled/linked includes a number | ||
6901 | # of integer operations that should exercise this. | ||
6902 | { | ||
6903 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5 | ||
6904 | echo $ECHO_N "checking if $CC supports compile flag -ftrapv and linking succeeds... $ECHO_C" >&6; } | ||
6905 | saved_CFLAGS="$CFLAGS" | ||
6906 | CFLAGS="$CFLAGS $WERROR -ftrapv" | ||
6907 | _define_flag="" | ||
6908 | test "x$_define_flag" = "x" && _define_flag="-ftrapv" | ||
6909 | cat >conftest.$ac_ext <<_ACEOF | ||
6910 | /* confdefs.h. */ | ||
6911 | _ACEOF | ||
6912 | cat confdefs.h >>conftest.$ac_ext | ||
6913 | cat >>conftest.$ac_ext <<_ACEOF | ||
6914 | /* end confdefs.h. */ | ||
6915 | |||
6916 | #include <stdlib.h> | ||
6917 | #include <stdio.h> | ||
6918 | int main(int argc, char **argv) { | ||
6919 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6920 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6921 | float l = i * 2.1; | ||
6922 | double m = l / 0.5; | ||
6923 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6924 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6925 | exit(0); | ||
6926 | } | ||
6927 | |||
6928 | _ACEOF | ||
6929 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6930 | if { (ac_try="$ac_link" | ||
6931 | case "(($ac_try" in | ||
6932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6933 | *) ac_try_echo=$ac_try;; | ||
6934 | esac | ||
6935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6936 | (eval "$ac_link") 2>conftest.er1 | ||
6937 | ac_status=$? | ||
6938 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6939 | rm -f conftest.er1 | ||
6940 | cat conftest.err >&5 | ||
6941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6942 | (exit $ac_status); } && { | ||
6943 | test -z "$ac_c_werror_flag" || | ||
6944 | test ! -s conftest.err | ||
6945 | } && test -s conftest$ac_exeext && | ||
6946 | $as_test_x conftest$ac_exeext; then | ||
6947 | |||
6948 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6949 | then | ||
6950 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6951 | echo "${ECHO_T}no" >&6; } | ||
6952 | CFLAGS="$saved_CFLAGS" | ||
6953 | else | ||
6954 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6955 | echo "${ECHO_T}yes" >&6; } | ||
6956 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6957 | fi | ||
6958 | else | ||
6959 | echo "$as_me: failed program was:" >&5 | ||
6960 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6961 | |||
6962 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6963 | echo "${ECHO_T}no" >&6; } | ||
6964 | CFLAGS="$saved_CFLAGS" | ||
6965 | |||
6966 | fi | ||
6967 | |||
6968 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6969 | conftest$ac_exeext conftest.$ac_ext | ||
6970 | } | ||
6971 | fi | ||
6972 | { echo "$as_me:$LINENO: checking gcc version" >&5 | ||
6973 | echo $ECHO_N "checking gcc version... $ECHO_C" >&6; } | ||
6974 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` | ||
6975 | case $GCC_VER in | ||
6976 | 1.*) no_attrib_nonnull=1 ;; | ||
6977 | 2.8* | 2.9*) | ||
6978 | no_attrib_nonnull=1 | ||
6979 | ;; | ||
6980 | 2.*) no_attrib_nonnull=1 ;; | ||
6981 | *) ;; | ||
6982 | esac | ||
6983 | { echo "$as_me:$LINENO: result: $GCC_VER" >&5 | ||
6984 | echo "${ECHO_T}$GCC_VER" >&6; } | ||
6985 | |||
6986 | { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5 | ||
6987 | echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; } | ||
6988 | saved_CFLAGS="$CFLAGS" | ||
6989 | CFLAGS="$CFLAGS -fno-builtin-memset" | ||
6990 | cat >conftest.$ac_ext <<_ACEOF | ||
6991 | /* confdefs.h. */ | ||
6992 | _ACEOF | ||
6993 | cat confdefs.h >>conftest.$ac_ext | ||
6994 | cat >>conftest.$ac_ext <<_ACEOF | ||
6995 | /* end confdefs.h. */ | ||
6996 | #include <string.h> | ||
6997 | int | ||
6998 | main () | ||
6999 | { | ||
7000 | char b[10]; memset(b, 0, sizeof(b)); | ||
7001 | ; | ||
7002 | return 0; | ||
7003 | } | ||
7004 | _ACEOF | ||
7005 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7006 | if { (ac_try="$ac_link" | ||
7007 | case "(($ac_try" in | ||
7008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7009 | *) ac_try_echo=$ac_try;; | ||
7010 | esac | ||
7011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7012 | (eval "$ac_link") 2>conftest.er1 | ||
7013 | ac_status=$? | ||
7014 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7015 | rm -f conftest.er1 | ||
7016 | cat conftest.err >&5 | ||
7017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7018 | (exit $ac_status); } && { | ||
7019 | test -z "$ac_c_werror_flag" || | ||
7020 | test ! -s conftest.err | ||
7021 | } && test -s conftest$ac_exeext && | ||
7022 | $as_test_x conftest$ac_exeext; then | ||
7023 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
7024 | echo "${ECHO_T}yes" >&6; } | ||
7025 | else | ||
7026 | echo "$as_me: failed program was:" >&5 | ||
7027 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7028 | |||
7029 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7030 | echo "${ECHO_T}no" >&6; } | ||
7031 | CFLAGS="$saved_CFLAGS" | ||
7032 | |||
7033 | fi | ||
7034 | |||
7035 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7036 | conftest$ac_exeext conftest.$ac_ext | ||
7037 | |||
7038 | # -fstack-protector-all doesn't always work for some GCC versions | ||
7039 | # and/or platforms, so we test if we can. If it's not supported | ||
7040 | # on a given platform gcc will emit a warning so we use -Werror. | ||
7041 | if test "x$use_stack_protector" = "x1"; then | ||
7042 | for t in -fstack-protector-strong -fstack-protector-all \ | ||
7043 | -fstack-protector; do | ||
7044 | { echo "$as_me:$LINENO: checking if $CC supports $t" >&5 | ||
7045 | echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; } | ||
7046 | saved_CFLAGS="$CFLAGS" | ||
7047 | saved_LDFLAGS="$LDFLAGS" | ||
7048 | CFLAGS="$CFLAGS $t -Werror" | ||
7049 | LDFLAGS="$LDFLAGS $t -Werror" | ||
7050 | cat >conftest.$ac_ext <<_ACEOF | ||
7051 | /* confdefs.h. */ | ||
7052 | _ACEOF | ||
7053 | cat confdefs.h >>conftest.$ac_ext | ||
7054 | cat >>conftest.$ac_ext <<_ACEOF | ||
7055 | /* end confdefs.h. */ | ||
7056 | #include <stdio.h> | ||
7057 | int | ||
7058 | main () | ||
7059 | { | ||
7060 | |||
7061 | char x[256]; | ||
7062 | snprintf(x, sizeof(x), "XXX"); | ||
7063 | |||
7064 | ; | ||
7065 | return 0; | ||
7066 | } | ||
7067 | _ACEOF | ||
7068 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7069 | if { (ac_try="$ac_link" | ||
7070 | case "(($ac_try" in | ||
7071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7072 | *) ac_try_echo=$ac_try;; | ||
7073 | esac | ||
7074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7075 | (eval "$ac_link") 2>conftest.er1 | ||
7076 | ac_status=$? | ||
7077 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7078 | rm -f conftest.er1 | ||
7079 | cat conftest.err >&5 | ||
7080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7081 | (exit $ac_status); } && { | ||
7082 | test -z "$ac_c_werror_flag" || | ||
7083 | test ! -s conftest.err | ||
7084 | } && test -s conftest$ac_exeext && | ||
7085 | $as_test_x conftest$ac_exeext; then | ||
7086 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
7087 | echo "${ECHO_T}yes" >&6; } | ||
7088 | CFLAGS="$saved_CFLAGS $t" | ||
7089 | LDFLAGS="$saved_LDFLAGS $t" | ||
7090 | { echo "$as_me:$LINENO: checking if $t works" >&5 | ||
7091 | echo $ECHO_N "checking if $t works... $ECHO_C" >&6; } | ||
7092 | if test "$cross_compiling" = yes; then | ||
7093 | { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5 | ||
7094 | echo "$as_me: WARNING: cross compiling: cannot test" >&2;} | ||
7095 | break | ||
7096 | |||
7097 | else | ||
7098 | cat >conftest.$ac_ext <<_ACEOF | ||
7099 | /* confdefs.h. */ | ||
7100 | _ACEOF | ||
7101 | cat confdefs.h >>conftest.$ac_ext | ||
7102 | cat >>conftest.$ac_ext <<_ACEOF | ||
7103 | /* end confdefs.h. */ | ||
7104 | #include <stdio.h> | ||
7105 | int | ||
7106 | main () | ||
7107 | { | ||
7108 | |||
7109 | char x[256]; | ||
7110 | snprintf(x, sizeof(x), "XXX"); | ||
7111 | |||
7112 | ; | ||
7113 | return 0; | ||
7114 | } | ||
7115 | _ACEOF | ||
7116 | rm -f conftest$ac_exeext | ||
7117 | if { (ac_try="$ac_link" | ||
7118 | case "(($ac_try" in | ||
7119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7120 | *) ac_try_echo=$ac_try;; | ||
7121 | esac | ||
7122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7123 | (eval "$ac_link") 2>&5 | ||
7124 | ac_status=$? | ||
7125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7126 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7127 | { (case "(($ac_try" in | ||
7128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7129 | *) ac_try_echo=$ac_try;; | ||
7130 | esac | ||
7131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7132 | (eval "$ac_try") 2>&5 | ||
7133 | ac_status=$? | ||
7134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7135 | (exit $ac_status); }; }; then | ||
7136 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
7137 | echo "${ECHO_T}yes" >&6; } | ||
7138 | break | ||
7139 | else | ||
7140 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7141 | echo "$as_me: failed program was:" >&5 | ||
7142 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7143 | |||
7144 | ( exit $ac_status ) | ||
7145 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7146 | echo "${ECHO_T}no" >&6; } | ||
7147 | fi | ||
7148 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7149 | fi | ||
7150 | |||
7151 | |||
7152 | |||
7153 | else | ||
7154 | echo "$as_me: failed program was:" >&5 | ||
7155 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7156 | |||
7157 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7158 | echo "${ECHO_T}no" >&6; } | ||
7159 | |||
7160 | fi | ||
7161 | |||
7162 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7163 | conftest$ac_exeext conftest.$ac_ext | ||
7164 | CFLAGS="$saved_CFLAGS" | ||
7165 | LDFLAGS="$saved_LDFLAGS" | ||
7166 | done | ||
7167 | fi | ||
7168 | |||
7169 | if test -z "$have_llong_max"; then | ||
7170 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes | ||
7171 | unset ac_cv_have_decl_LLONG_MAX | ||
7172 | saved_CFLAGS="$CFLAGS" | ||
7173 | CFLAGS="$CFLAGS -std=gnu99" | ||
7174 | { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
7175 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } | ||
7176 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
7177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7178 | else | ||
7179 | cat >conftest.$ac_ext <<_ACEOF | ||
7180 | /* confdefs.h. */ | ||
7181 | _ACEOF | ||
7182 | cat confdefs.h >>conftest.$ac_ext | ||
7183 | cat >>conftest.$ac_ext <<_ACEOF | ||
7184 | /* end confdefs.h. */ | ||
7185 | #include <limits.h> | ||
7186 | |||
7187 | |||
7188 | int | ||
7189 | main () | ||
7190 | { | ||
7191 | #ifndef LLONG_MAX | ||
7192 | (void) LLONG_MAX; | ||
7193 | #endif | ||
7194 | |||
7195 | ; | ||
7196 | return 0; | ||
7197 | } | ||
7198 | _ACEOF | ||
7199 | rm -f conftest.$ac_objext | ||
7200 | if { (ac_try="$ac_compile" | ||
7201 | case "(($ac_try" in | ||
7202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7203 | *) ac_try_echo=$ac_try;; | ||
7204 | esac | ||
7205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7206 | (eval "$ac_compile") 2>conftest.er1 | ||
7207 | ac_status=$? | ||
7208 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7209 | rm -f conftest.er1 | ||
7210 | cat conftest.err >&5 | ||
7211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7212 | (exit $ac_status); } && { | ||
7213 | test -z "$ac_c_werror_flag" || | ||
7214 | test ! -s conftest.err | ||
7215 | } && test -s conftest.$ac_objext; then | ||
7216 | ac_cv_have_decl_LLONG_MAX=yes | ||
7217 | else | ||
7218 | echo "$as_me: failed program was:" >&5 | ||
7219 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7220 | |||
7221 | ac_cv_have_decl_LLONG_MAX=no | ||
7222 | fi | ||
7223 | |||
7224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7225 | fi | ||
7226 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
7227 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
7228 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
7229 | have_llong_max=1 | ||
7230 | else | ||
7231 | CFLAGS="$saved_CFLAGS" | ||
7232 | fi | ||
7233 | |||
7234 | fi | ||
7235 | fi | ||
7236 | |||
7237 | { echo "$as_me:$LINENO: checking if compiler allows __attribute__ on return types" >&5 | ||
7238 | echo $ECHO_N "checking if compiler allows __attribute__ on return types... $ECHO_C" >&6; } | ||
7239 | cat >conftest.$ac_ext <<_ACEOF | ||
7240 | /* confdefs.h. */ | ||
7241 | _ACEOF | ||
7242 | cat confdefs.h >>conftest.$ac_ext | ||
7243 | cat >>conftest.$ac_ext <<_ACEOF | ||
7244 | /* end confdefs.h. */ | ||
7245 | |||
7246 | #include <stdlib.h> | ||
7247 | __attribute__((__unused__)) static void foo(void){return;} | ||
7248 | int | ||
7249 | main () | ||
7250 | { | ||
7251 | exit(0); | ||
7252 | ; | ||
7253 | return 0; | ||
7254 | } | ||
7255 | _ACEOF | ||
7256 | rm -f conftest.$ac_objext | ||
7257 | if { (ac_try="$ac_compile" | ||
7258 | case "(($ac_try" in | ||
7259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7260 | *) ac_try_echo=$ac_try;; | ||
7261 | esac | ||
7262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7263 | (eval "$ac_compile") 2>conftest.er1 | ||
7264 | ac_status=$? | ||
7265 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7266 | rm -f conftest.er1 | ||
7267 | cat conftest.err >&5 | ||
7268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7269 | (exit $ac_status); } && { | ||
7270 | test -z "$ac_c_werror_flag" || | ||
7271 | test ! -s conftest.err | ||
7272 | } && test -s conftest.$ac_objext; then | ||
7273 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
7274 | echo "${ECHO_T}yes" >&6; } | ||
7275 | else | ||
7276 | echo "$as_me: failed program was:" >&5 | ||
7277 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7278 | |||
7279 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7280 | echo "${ECHO_T}no" >&6; } | ||
7281 | |||
7282 | cat >>confdefs.h <<\_ACEOF | ||
7283 | #define NO_ATTRIBUTE_ON_RETURN_TYPE 1 | ||
7284 | _ACEOF | ||
7285 | |||
7286 | |||
7287 | fi | ||
7288 | |||
7289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7290 | |||
7291 | if test "x$no_attrib_nonnull" != "x1" ; then | ||
7292 | |||
7293 | cat >>confdefs.h <<\_ACEOF | ||
7294 | #define HAVE_ATTRIBUTE__NONNULL__ 1 | ||
7295 | _ACEOF | ||
7296 | |||
7297 | fi | ||
7298 | |||
7299 | |||
7300 | # Check whether --with-rpath was given. | ||
7301 | if test "${with_rpath+set}" = set; then | ||
7302 | withval=$with_rpath; | ||
7303 | if test "x$withval" = "xno" ; then | ||
7304 | need_dash_r="" | ||
7305 | fi | ||
7306 | if test "x$withval" = "xyes" ; then | ||
7307 | need_dash_r=1 | ||
7308 | fi | ||
7309 | |||
7310 | |||
7311 | fi | ||
7312 | |||
7313 | |||
7314 | # Allow user to specify flags | ||
7315 | |||
7316 | # Check whether --with-cflags was given. | ||
7317 | if test "${with_cflags+set}" = set; then | ||
7318 | withval=$with_cflags; | ||
7319 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
7320 | test "x${withval}" != "xyes"; then | ||
7321 | CFLAGS="$CFLAGS $withval" | ||
7322 | fi | ||
7323 | |||
7324 | |||
7325 | fi | ||
7326 | |||
7327 | |||
7328 | # Check whether --with-cppflags was given. | ||
7329 | if test "${with_cppflags+set}" = set; then | ||
7330 | withval=$with_cppflags; | ||
7331 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
7332 | test "x${withval}" != "xyes"; then | ||
7333 | CPPFLAGS="$CPPFLAGS $withval" | ||
7334 | fi | ||
7335 | |||
7336 | |||
7337 | fi | ||
7338 | |||
7339 | |||
7340 | # Check whether --with-ldflags was given. | ||
7341 | if test "${with_ldflags+set}" = set; then | ||
7342 | withval=$with_ldflags; | ||
7343 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
7344 | test "x${withval}" != "xyes"; then | ||
7345 | LDFLAGS="$LDFLAGS $withval" | ||
7346 | fi | ||
7347 | |||
7348 | |||
7349 | fi | ||
7350 | |||
7351 | |||
7352 | # Check whether --with-libs was given. | ||
7353 | if test "${with_libs+set}" = set; then | ||
7354 | withval=$with_libs; | ||
7355 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
7356 | test "x${withval}" != "xyes"; then | ||
7357 | LIBS="$LIBS $withval" | ||
7358 | fi | ||
7359 | |||
7360 | |||
7361 | fi | ||
7362 | |||
7363 | |||
7364 | # Check whether --with-Werror was given. | ||
7365 | if test "${with_Werror+set}" = set; then | ||
7366 | withval=$with_Werror; | ||
7367 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
7368 | werror_flags="-Werror" | ||
7369 | if test "x${withval}" != "xyes"; then | ||
7370 | werror_flags="$withval" | ||
7371 | fi | ||
7372 | fi | ||
7373 | |||
7374 | |||
7375 | fi | ||
7376 | |||
7377 | |||
7378 | |||
7379 | |||
7380 | |||
7381 | |||
7382 | |||
7383 | |||
7384 | |||
7385 | |||
7386 | |||
7387 | |||
7388 | |||
7389 | |||
7390 | |||
7391 | |||
7392 | |||
7393 | |||
7394 | |||
7395 | |||
7396 | |||
7397 | |||
7398 | |||
7399 | |||
7400 | |||
7401 | |||
7402 | |||
7403 | |||
7404 | |||
7405 | |||
7406 | |||
7407 | |||
7408 | |||
7409 | |||
7410 | |||
7411 | |||
7412 | |||
7413 | |||
7414 | |||
7415 | |||
7416 | |||
7417 | |||
7418 | |||
7419 | |||
7420 | |||
7421 | |||
7422 | |||
7423 | |||
7424 | |||
7425 | |||
7426 | |||
7427 | |||
7428 | |||
7429 | |||
7430 | |||
7431 | |||
7432 | |||
7433 | |||
7434 | |||
7435 | |||
7436 | |||
7437 | |||
7438 | |||
7439 | |||
7440 | |||
7441 | |||
7442 | |||
7443 | |||
7444 | |||
7445 | |||
7446 | |||
7447 | |||
7448 | for ac_header in \ | ||
7449 | blf.h \ | ||
7450 | bstring.h \ | ||
7451 | crypt.h \ | ||
7452 | crypto/sha2.h \ | ||
7453 | dirent.h \ | ||
7454 | endian.h \ | ||
7455 | elf.h \ | ||
7456 | err.h \ | ||
7457 | features.h \ | ||
7458 | fcntl.h \ | ||
7459 | floatingpoint.h \ | ||
7460 | getopt.h \ | ||
7461 | glob.h \ | ||
7462 | ia.h \ | ||
7463 | iaf.h \ | ||
7464 | inttypes.h \ | ||
7465 | langinfo.h \ | ||
7466 | limits.h \ | ||
7467 | locale.h \ | ||
7468 | login.h \ | ||
7469 | maillock.h \ | ||
7470 | ndir.h \ | ||
7471 | net/if_tun.h \ | ||
7472 | netdb.h \ | ||
7473 | netgroup.h \ | ||
7474 | pam/pam_appl.h \ | ||
7475 | paths.h \ | ||
7476 | poll.h \ | ||
7477 | pty.h \ | ||
7478 | readpassphrase.h \ | ||
7479 | rpc/types.h \ | ||
7480 | security/pam_appl.h \ | ||
7481 | sha2.h \ | ||
7482 | shadow.h \ | ||
7483 | stddef.h \ | ||
7484 | stdint.h \ | ||
7485 | string.h \ | ||
7486 | strings.h \ | ||
7487 | sys/audit.h \ | ||
7488 | sys/bitypes.h \ | ||
7489 | sys/bsdtty.h \ | ||
7490 | sys/capability.h \ | ||
7491 | sys/cdefs.h \ | ||
7492 | sys/dir.h \ | ||
7493 | sys/mman.h \ | ||
7494 | sys/ndir.h \ | ||
7495 | sys/poll.h \ | ||
7496 | sys/prctl.h \ | ||
7497 | sys/pstat.h \ | ||
7498 | sys/select.h \ | ||
7499 | sys/stat.h \ | ||
7500 | sys/stream.h \ | ||
7501 | sys/stropts.h \ | ||
7502 | sys/strtio.h \ | ||
7503 | sys/statvfs.h \ | ||
7504 | sys/sysmacros.h \ | ||
7505 | sys/time.h \ | ||
7506 | sys/timers.h \ | ||
7507 | time.h \ | ||
7508 | tmpdir.h \ | ||
7509 | ttyent.h \ | ||
7510 | ucred.h \ | ||
7511 | unistd.h \ | ||
7512 | usersec.h \ | ||
7513 | util.h \ | ||
7514 | utime.h \ | ||
7515 | utmp.h \ | ||
7516 | utmpx.h \ | ||
7517 | vis.h \ | ||
7518 | wchar.h \ | ||
7519 | |||
7520 | do | ||
7521 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7522 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7523 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7524 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7525 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7527 | fi | ||
7528 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7529 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7530 | echo "${ECHO_T}$ac_res" >&6; } | ||
7531 | else | ||
7532 | # Is the header compilable? | ||
7533 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7534 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
7535 | cat >conftest.$ac_ext <<_ACEOF | ||
7536 | /* confdefs.h. */ | ||
7537 | _ACEOF | ||
7538 | cat confdefs.h >>conftest.$ac_ext | ||
7539 | cat >>conftest.$ac_ext <<_ACEOF | ||
7540 | /* end confdefs.h. */ | ||
7541 | $ac_includes_default | ||
7542 | #include <$ac_header> | ||
7543 | _ACEOF | ||
7544 | rm -f conftest.$ac_objext | ||
7545 | if { (ac_try="$ac_compile" | ||
7546 | case "(($ac_try" in | ||
7547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7548 | *) ac_try_echo=$ac_try;; | ||
7549 | esac | ||
7550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7551 | (eval "$ac_compile") 2>conftest.er1 | ||
7552 | ac_status=$? | ||
7553 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7554 | rm -f conftest.er1 | ||
7555 | cat conftest.err >&5 | ||
7556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7557 | (exit $ac_status); } && { | ||
7558 | test -z "$ac_c_werror_flag" || | ||
7559 | test ! -s conftest.err | ||
7560 | } && test -s conftest.$ac_objext; then | ||
7561 | ac_header_compiler=yes | ||
7562 | else | ||
7563 | echo "$as_me: failed program was:" >&5 | ||
7564 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7565 | |||
7566 | ac_header_compiler=no | ||
7567 | fi | ||
7568 | |||
7569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7570 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7571 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
7572 | |||
7573 | # Is the header present? | ||
7574 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7575 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
7576 | cat >conftest.$ac_ext <<_ACEOF | ||
7577 | /* confdefs.h. */ | ||
7578 | _ACEOF | ||
7579 | cat confdefs.h >>conftest.$ac_ext | ||
7580 | cat >>conftest.$ac_ext <<_ACEOF | ||
7581 | /* end confdefs.h. */ | ||
7582 | #include <$ac_header> | ||
7583 | _ACEOF | ||
7584 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
7585 | case "(($ac_try" in | ||
7586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7587 | *) ac_try_echo=$ac_try;; | ||
7588 | esac | ||
7589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7590 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
7591 | ac_status=$? | ||
7592 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7593 | rm -f conftest.er1 | ||
7594 | cat conftest.err >&5 | ||
7595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7596 | (exit $ac_status); } >/dev/null && { | ||
7597 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
7598 | test ! -s conftest.err | ||
7599 | }; then | ||
7600 | ac_header_preproc=yes | ||
7601 | else | ||
7602 | echo "$as_me: failed program was:" >&5 | ||
7603 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7604 | |||
7605 | ac_header_preproc=no | ||
7606 | fi | ||
7607 | |||
7608 | rm -f conftest.err conftest.$ac_ext | ||
7609 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7610 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
7611 | |||
7612 | # So? What about this header? | ||
7613 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7614 | yes:no: ) | ||
7615 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7616 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7617 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
7618 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
7619 | ac_header_preproc=yes | ||
7620 | ;; | ||
7621 | no:yes:* ) | ||
7622 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7623 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7624 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7625 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7626 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
7627 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
7628 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
7629 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7630 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7631 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
7632 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
7633 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
7634 | ( cat <<\_ASBOX | ||
7635 | ## ------------------------------------------- ## | ||
7636 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
7637 | ## ------------------------------------------- ## | ||
7638 | _ASBOX | ||
7639 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
7640 | ;; | ||
7641 | esac | ||
7642 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7643 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7644 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7646 | else | ||
7647 | eval "$as_ac_Header=\$ac_header_preproc" | ||
7648 | fi | ||
7649 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7650 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7651 | echo "${ECHO_T}$ac_res" >&6; } | ||
7652 | |||
7653 | fi | ||
7654 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7655 | cat >>confdefs.h <<_ACEOF | ||
7656 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7657 | _ACEOF | ||
7658 | |||
7659 | fi | ||
7660 | |||
7661 | done | ||
7662 | |||
7663 | |||
7664 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
7665 | |||
7666 | for ac_header in lastlog.h | ||
7667 | do | ||
7668 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7669 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7670 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7671 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7673 | else | ||
7674 | cat >conftest.$ac_ext <<_ACEOF | ||
7675 | /* confdefs.h. */ | ||
7676 | _ACEOF | ||
7677 | cat confdefs.h >>conftest.$ac_ext | ||
7678 | cat >>conftest.$ac_ext <<_ACEOF | ||
7679 | /* end confdefs.h. */ | ||
7680 | |||
7681 | #ifdef HAVE_SYS_TIME_H | ||
7682 | # include <sys/time.h> | ||
7683 | #endif | ||
7684 | |||
7685 | |||
7686 | #include <$ac_header> | ||
7687 | _ACEOF | ||
7688 | rm -f conftest.$ac_objext | ||
7689 | if { (ac_try="$ac_compile" | ||
7690 | case "(($ac_try" in | ||
7691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7692 | *) ac_try_echo=$ac_try;; | ||
7693 | esac | ||
7694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7695 | (eval "$ac_compile") 2>conftest.er1 | ||
7696 | ac_status=$? | ||
7697 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7698 | rm -f conftest.er1 | ||
7699 | cat conftest.err >&5 | ||
7700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7701 | (exit $ac_status); } && { | ||
7702 | test -z "$ac_c_werror_flag" || | ||
7703 | test ! -s conftest.err | ||
7704 | } && test -s conftest.$ac_objext; then | ||
7705 | eval "$as_ac_Header=yes" | ||
7706 | else | ||
7707 | echo "$as_me: failed program was:" >&5 | ||
7708 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7709 | |||
7710 | eval "$as_ac_Header=no" | ||
7711 | fi | ||
7712 | |||
7713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7714 | fi | ||
7715 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7716 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7717 | echo "${ECHO_T}$ac_res" >&6; } | ||
7718 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7719 | cat >>confdefs.h <<_ACEOF | ||
7720 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7721 | _ACEOF | ||
7722 | |||
7723 | fi | ||
7724 | |||
7725 | done | ||
7726 | |||
7727 | |||
7728 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
7729 | |||
7730 | for ac_header in sys/ptms.h | ||
7731 | do | ||
7732 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7733 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7734 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7735 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7737 | else | ||
7738 | cat >conftest.$ac_ext <<_ACEOF | ||
7739 | /* confdefs.h. */ | ||
7740 | _ACEOF | ||
7741 | cat confdefs.h >>conftest.$ac_ext | ||
7742 | cat >>conftest.$ac_ext <<_ACEOF | ||
7743 | /* end confdefs.h. */ | ||
7744 | |||
7745 | #ifdef HAVE_SYS_STREAM_H | ||
7746 | # include <sys/stream.h> | ||
7747 | #endif | ||
7748 | |||
7749 | |||
7750 | #include <$ac_header> | ||
7751 | _ACEOF | ||
7752 | rm -f conftest.$ac_objext | ||
7753 | if { (ac_try="$ac_compile" | ||
7754 | case "(($ac_try" in | ||
7755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7756 | *) ac_try_echo=$ac_try;; | ||
7757 | esac | ||
7758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7759 | (eval "$ac_compile") 2>conftest.er1 | ||
7760 | ac_status=$? | ||
7761 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7762 | rm -f conftest.er1 | ||
7763 | cat conftest.err >&5 | ||
7764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7765 | (exit $ac_status); } && { | ||
7766 | test -z "$ac_c_werror_flag" || | ||
7767 | test ! -s conftest.err | ||
7768 | } && test -s conftest.$ac_objext; then | ||
7769 | eval "$as_ac_Header=yes" | ||
7770 | else | ||
7771 | echo "$as_me: failed program was:" >&5 | ||
7772 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7773 | |||
7774 | eval "$as_ac_Header=no" | ||
7775 | fi | ||
7776 | |||
7777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7778 | fi | ||
7779 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7780 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7781 | echo "${ECHO_T}$ac_res" >&6; } | ||
7782 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7783 | cat >>confdefs.h <<_ACEOF | ||
7784 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7785 | _ACEOF | ||
7786 | |||
7787 | fi | ||
7788 | |||
7789 | done | ||
7790 | |||
7791 | |||
7792 | # login_cap.h requires sys/types.h on NetBSD | ||
7793 | |||
7794 | for ac_header in login_cap.h | ||
7795 | do | ||
7796 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7797 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7798 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7799 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7801 | else | ||
7802 | cat >conftest.$ac_ext <<_ACEOF | ||
7803 | /* confdefs.h. */ | ||
7804 | _ACEOF | ||
7805 | cat confdefs.h >>conftest.$ac_ext | ||
7806 | cat >>conftest.$ac_ext <<_ACEOF | ||
7807 | /* end confdefs.h. */ | ||
7808 | |||
7809 | #include <sys/types.h> | ||
7810 | |||
7811 | |||
7812 | #include <$ac_header> | ||
7813 | _ACEOF | ||
7814 | rm -f conftest.$ac_objext | ||
7815 | if { (ac_try="$ac_compile" | ||
7816 | case "(($ac_try" in | ||
7817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7818 | *) ac_try_echo=$ac_try;; | ||
7819 | esac | ||
7820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7821 | (eval "$ac_compile") 2>conftest.er1 | ||
7822 | ac_status=$? | ||
7823 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7824 | rm -f conftest.er1 | ||
7825 | cat conftest.err >&5 | ||
7826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7827 | (exit $ac_status); } && { | ||
7828 | test -z "$ac_c_werror_flag" || | ||
7829 | test ! -s conftest.err | ||
7830 | } && test -s conftest.$ac_objext; then | ||
7831 | eval "$as_ac_Header=yes" | ||
7832 | else | ||
7833 | echo "$as_me: failed program was:" >&5 | ||
7834 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7835 | |||
7836 | eval "$as_ac_Header=no" | ||
7837 | fi | ||
7838 | |||
7839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7840 | fi | ||
7841 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7842 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7843 | echo "${ECHO_T}$ac_res" >&6; } | ||
7844 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7845 | cat >>confdefs.h <<_ACEOF | ||
7846 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7847 | _ACEOF | ||
7848 | |||
7849 | fi | ||
7850 | |||
7851 | done | ||
7852 | |||
7853 | |||
7854 | # older BSDs need sys/param.h before sys/mount.h | ||
7855 | |||
7856 | for ac_header in sys/mount.h | ||
7857 | do | ||
7858 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7859 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7860 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7861 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7863 | else | ||
7864 | cat >conftest.$ac_ext <<_ACEOF | ||
7865 | /* confdefs.h. */ | ||
7866 | _ACEOF | ||
7867 | cat confdefs.h >>conftest.$ac_ext | ||
7868 | cat >>conftest.$ac_ext <<_ACEOF | ||
7869 | /* end confdefs.h. */ | ||
7870 | |||
7871 | #include <sys/param.h> | ||
7872 | |||
7873 | |||
7874 | #include <$ac_header> | ||
7875 | _ACEOF | ||
7876 | rm -f conftest.$ac_objext | ||
7877 | if { (ac_try="$ac_compile" | ||
7878 | case "(($ac_try" in | ||
7879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7880 | *) ac_try_echo=$ac_try;; | ||
7881 | esac | ||
7882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7883 | (eval "$ac_compile") 2>conftest.er1 | ||
7884 | ac_status=$? | ||
7885 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7886 | rm -f conftest.er1 | ||
7887 | cat conftest.err >&5 | ||
7888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7889 | (exit $ac_status); } && { | ||
7890 | test -z "$ac_c_werror_flag" || | ||
7891 | test ! -s conftest.err | ||
7892 | } && test -s conftest.$ac_objext; then | ||
7893 | eval "$as_ac_Header=yes" | ||
7894 | else | ||
7895 | echo "$as_me: failed program was:" >&5 | ||
7896 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7897 | |||
7898 | eval "$as_ac_Header=no" | ||
7899 | fi | ||
7900 | |||
7901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7902 | fi | ||
7903 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7904 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7905 | echo "${ECHO_T}$ac_res" >&6; } | ||
7906 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7907 | cat >>confdefs.h <<_ACEOF | ||
7908 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7909 | _ACEOF | ||
7910 | |||
7911 | fi | ||
7912 | |||
7913 | done | ||
7914 | |||
7915 | |||
7916 | # Android requires sys/socket.h to be included before sys/un.h | ||
7917 | |||
7918 | for ac_header in sys/un.h | ||
7919 | do | ||
7920 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7921 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7922 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7923 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7925 | else | ||
7926 | cat >conftest.$ac_ext <<_ACEOF | ||
7927 | /* confdefs.h. */ | ||
7928 | _ACEOF | ||
7929 | cat confdefs.h >>conftest.$ac_ext | ||
7930 | cat >>conftest.$ac_ext <<_ACEOF | ||
7931 | /* end confdefs.h. */ | ||
7932 | |||
7933 | #include <sys/types.h> | ||
7934 | #include <sys/socket.h> | ||
7935 | |||
7936 | |||
7937 | #include <$ac_header> | ||
7938 | _ACEOF | ||
7939 | rm -f conftest.$ac_objext | ||
7940 | if { (ac_try="$ac_compile" | ||
7941 | case "(($ac_try" in | ||
7942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7943 | *) ac_try_echo=$ac_try;; | ||
7944 | esac | ||
7945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7946 | (eval "$ac_compile") 2>conftest.er1 | ||
7947 | ac_status=$? | ||
7948 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7949 | rm -f conftest.er1 | ||
7950 | cat conftest.err >&5 | ||
7951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7952 | (exit $ac_status); } && { | ||
7953 | test -z "$ac_c_werror_flag" || | ||
7954 | test ! -s conftest.err | ||
7955 | } && test -s conftest.$ac_objext; then | ||
7956 | eval "$as_ac_Header=yes" | ||
7957 | else | ||
7958 | echo "$as_me: failed program was:" >&5 | ||
7959 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7960 | |||
7961 | eval "$as_ac_Header=no" | ||
7962 | fi | ||
7963 | |||
7964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7965 | fi | ||
7966 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7967 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7968 | echo "${ECHO_T}$ac_res" >&6; } | ||
7969 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7970 | cat >>confdefs.h <<_ACEOF | ||
7971 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7972 | _ACEOF | ||
7973 | |||
7974 | fi | ||
7975 | |||
7976 | done | ||
7977 | |||
7978 | |||
7979 | # Messages for features tested for in target-specific section | ||
7980 | SIA_MSG="no" | ||
7981 | SPC_MSG="no" | ||
7982 | SP_MSG="no" | ||
7983 | SPP_MSG="no" | ||
7984 | |||
7985 | # Support for Solaris/Illumos privileges (this test is used by both | ||
7986 | # the --with-solaris-privs option and --with-sandbox=solaris). | ||
7987 | SOLARIS_PRIVS="no" | ||
7988 | |||
7989 | # Check for some target-specific stuff | ||
7990 | case "$host" in | ||
7991 | *-*-aix*) | ||
7992 | # Some versions of VAC won't allow macro redefinitions at | ||
7993 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that | ||
7994 | # particularly with older versions of vac or xlc. | ||
7995 | # It also throws errors about null macro argments, but these are | ||
7996 | # not fatal. | ||
7997 | { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5 | ||
7998 | echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; } | ||
7999 | cat >conftest.$ac_ext <<_ACEOF | ||
8000 | /* confdefs.h. */ | ||
8001 | _ACEOF | ||
8002 | cat confdefs.h >>conftest.$ac_ext | ||
8003 | cat >>conftest.$ac_ext <<_ACEOF | ||
8004 | /* end confdefs.h. */ | ||
8005 | |||
8006 | #define testmacro foo | ||
8007 | #define testmacro bar | ||
8008 | int | ||
8009 | main () | ||
8010 | { | ||
8011 | exit(0); | ||
8012 | ; | ||
8013 | return 0; | ||
8014 | } | ||
8015 | _ACEOF | ||
8016 | rm -f conftest.$ac_objext | ||
8017 | if { (ac_try="$ac_compile" | ||
8018 | case "(($ac_try" in | ||
8019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8020 | *) ac_try_echo=$ac_try;; | ||
8021 | esac | ||
8022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8023 | (eval "$ac_compile") 2>conftest.er1 | ||
8024 | ac_status=$? | ||
8025 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8026 | rm -f conftest.er1 | ||
8027 | cat conftest.err >&5 | ||
8028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8029 | (exit $ac_status); } && { | ||
8030 | test -z "$ac_c_werror_flag" || | ||
8031 | test ! -s conftest.err | ||
8032 | } && test -s conftest.$ac_objext; then | ||
8033 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
8034 | echo "${ECHO_T}yes" >&6; } | ||
8035 | else | ||
8036 | echo "$as_me: failed program was:" >&5 | ||
8037 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8038 | |||
8039 | { echo "$as_me:$LINENO: result: no" >&5 | ||
8040 | echo "${ECHO_T}no" >&6; } | ||
8041 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" | ||
8042 | LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" | ||
8043 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
8044 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
8045 | |||
8046 | |||
8047 | fi | ||
8048 | |||
8049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8050 | |||
8051 | { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5 | ||
8052 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; } | ||
8053 | if (test -z "$blibpath"); then | ||
8054 | blibpath="/usr/lib:/lib" | ||
8055 | fi | ||
8056 | saved_LDFLAGS="$LDFLAGS" | ||
8057 | if test "$GCC" = "yes"; then | ||
8058 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" | ||
8059 | else | ||
8060 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," | ||
8061 | fi | ||
8062 | for tryflags in $flags ;do | ||
8063 | if (test -z "$blibflags"); then | ||
8064 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
8065 | cat >conftest.$ac_ext <<_ACEOF | ||
8066 | /* confdefs.h. */ | ||
8067 | _ACEOF | ||
8068 | cat confdefs.h >>conftest.$ac_ext | ||
8069 | cat >>conftest.$ac_ext <<_ACEOF | ||
8070 | /* end confdefs.h. */ | ||
8071 | |||
8072 | int | ||
8073 | main () | ||
8074 | { | ||
8075 | |||
8076 | ; | ||
8077 | return 0; | ||
8078 | } | ||
8079 | _ACEOF | ||
8080 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8081 | if { (ac_try="$ac_link" | ||
8082 | case "(($ac_try" in | ||
8083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8084 | *) ac_try_echo=$ac_try;; | ||
8085 | esac | ||
8086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8087 | (eval "$ac_link") 2>conftest.er1 | ||
8088 | ac_status=$? | ||
8089 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8090 | rm -f conftest.er1 | ||
8091 | cat conftest.err >&5 | ||
8092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8093 | (exit $ac_status); } && { | ||
8094 | test -z "$ac_c_werror_flag" || | ||
8095 | test ! -s conftest.err | ||
8096 | } && test -s conftest$ac_exeext && | ||
8097 | $as_test_x conftest$ac_exeext; then | ||
8098 | blibflags=$tryflags | ||
8099 | else | ||
8100 | echo "$as_me: failed program was:" >&5 | ||
8101 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8102 | |||
8103 | |||
8104 | fi | ||
8105 | |||
8106 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8107 | conftest$ac_exeext conftest.$ac_ext | ||
8108 | fi | ||
8109 | done | ||
8110 | if (test -z "$blibflags"); then | ||
8111 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
8112 | echo "${ECHO_T}not found" >&6; } | ||
8113 | { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5 | ||
8114 | echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} | ||
8115 | { (exit 1); exit 1; }; } | ||
8116 | else | ||
8117 | { echo "$as_me:$LINENO: result: $blibflags" >&5 | ||
8118 | echo "${ECHO_T}$blibflags" >&6; } | ||
8119 | fi | ||
8120 | LDFLAGS="$saved_LDFLAGS" | ||
8121 | { echo "$as_me:$LINENO: checking for authenticate" >&5 | ||
8122 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; } | ||
8123 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
8124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8125 | else | ||
8126 | cat >conftest.$ac_ext <<_ACEOF | ||
8127 | /* confdefs.h. */ | ||
8128 | _ACEOF | ||
8129 | cat confdefs.h >>conftest.$ac_ext | ||
8130 | cat >>conftest.$ac_ext <<_ACEOF | ||
8131 | /* end confdefs.h. */ | ||
8132 | /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate. | ||
8133 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8134 | #define authenticate innocuous_authenticate | ||
8135 | |||
8136 | /* System header to define __stub macros and hopefully few prototypes, | ||
8137 | which can conflict with char authenticate (); below. | ||
8138 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8139 | <limits.h> exists even on freestanding compilers. */ | ||
8140 | |||
8141 | #ifdef __STDC__ | ||
8142 | # include <limits.h> | ||
8143 | #else | ||
8144 | # include <assert.h> | ||
8145 | #endif | ||
8146 | |||
8147 | #undef authenticate | ||
8148 | |||
8149 | /* Override any GCC internal prototype to avoid an error. | ||
8150 | Use char because int might match the return type of a GCC | ||
8151 | builtin and then its argument prototype would still apply. */ | ||
8152 | #ifdef __cplusplus | ||
8153 | extern "C" | ||
8154 | #endif | ||
8155 | char authenticate (); | ||
8156 | /* The GNU C library defines this for functions which it implements | ||
8157 | to always fail with ENOSYS. Some functions are actually named | ||
8158 | something starting with __ and the normal name is an alias. */ | ||
8159 | #if defined __stub_authenticate || defined __stub___authenticate | ||
8160 | choke me | ||
8161 | #endif | ||
8162 | |||
8163 | int | ||
8164 | main () | ||
8165 | { | ||
8166 | return authenticate (); | ||
8167 | ; | ||
8168 | return 0; | ||
8169 | } | ||
8170 | _ACEOF | ||
8171 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8172 | if { (ac_try="$ac_link" | ||
8173 | case "(($ac_try" in | ||
8174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8175 | *) ac_try_echo=$ac_try;; | ||
8176 | esac | ||
8177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8178 | (eval "$ac_link") 2>conftest.er1 | ||
8179 | ac_status=$? | ||
8180 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8181 | rm -f conftest.er1 | ||
8182 | cat conftest.err >&5 | ||
8183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8184 | (exit $ac_status); } && { | ||
8185 | test -z "$ac_c_werror_flag" || | ||
8186 | test ! -s conftest.err | ||
8187 | } && test -s conftest$ac_exeext && | ||
8188 | $as_test_x conftest$ac_exeext; then | ||
8189 | ac_cv_func_authenticate=yes | ||
8190 | else | ||
8191 | echo "$as_me: failed program was:" >&5 | ||
8192 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8193 | |||
8194 | ac_cv_func_authenticate=no | ||
8195 | fi | ||
8196 | |||
8197 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8198 | conftest$ac_exeext conftest.$ac_ext | ||
8199 | fi | ||
8200 | { echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | ||
8201 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6; } | ||
8202 | if test $ac_cv_func_authenticate = yes; then | ||
8203 | |||
8204 | cat >>confdefs.h <<\_ACEOF | ||
8205 | #define WITH_AIXAUTHENTICATE 1 | ||
8206 | _ACEOF | ||
8207 | |||
8208 | else | ||
8209 | { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5 | ||
8210 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; } | ||
8211 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
8212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8213 | else | ||
8214 | ac_check_lib_save_LIBS=$LIBS | ||
8215 | LIBS="-ls $LIBS" | ||
8216 | cat >conftest.$ac_ext <<_ACEOF | ||
8217 | /* confdefs.h. */ | ||
8218 | _ACEOF | ||
8219 | cat confdefs.h >>conftest.$ac_ext | ||
8220 | cat >>conftest.$ac_ext <<_ACEOF | ||
8221 | /* end confdefs.h. */ | ||
8222 | |||
8223 | /* Override any GCC internal prototype to avoid an error. | ||
8224 | Use char because int might match the return type of a GCC | ||
8225 | builtin and then its argument prototype would still apply. */ | ||
8226 | #ifdef __cplusplus | ||
8227 | extern "C" | ||
8228 | #endif | ||
8229 | char authenticate (); | ||
8230 | int | ||
8231 | main () | ||
8232 | { | ||
8233 | return authenticate (); | ||
8234 | ; | ||
8235 | return 0; | ||
8236 | } | ||
8237 | _ACEOF | ||
8238 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8239 | if { (ac_try="$ac_link" | ||
8240 | case "(($ac_try" in | ||
8241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8242 | *) ac_try_echo=$ac_try;; | ||
8243 | esac | ||
8244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8245 | (eval "$ac_link") 2>conftest.er1 | ||
8246 | ac_status=$? | ||
8247 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8248 | rm -f conftest.er1 | ||
8249 | cat conftest.err >&5 | ||
8250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8251 | (exit $ac_status); } && { | ||
8252 | test -z "$ac_c_werror_flag" || | ||
8253 | test ! -s conftest.err | ||
8254 | } && test -s conftest$ac_exeext && | ||
8255 | $as_test_x conftest$ac_exeext; then | ||
8256 | ac_cv_lib_s_authenticate=yes | ||
8257 | else | ||
8258 | echo "$as_me: failed program was:" >&5 | ||
8259 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8260 | |||
8261 | ac_cv_lib_s_authenticate=no | ||
8262 | fi | ||
8263 | |||
8264 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8265 | conftest$ac_exeext conftest.$ac_ext | ||
8266 | LIBS=$ac_check_lib_save_LIBS | ||
8267 | fi | ||
8268 | { echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5 | ||
8269 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; } | ||
8270 | if test $ac_cv_lib_s_authenticate = yes; then | ||
8271 | cat >>confdefs.h <<\_ACEOF | ||
8272 | #define WITH_AIXAUTHENTICATE 1 | ||
8273 | _ACEOF | ||
8274 | |||
8275 | LIBS="$LIBS -ls" | ||
8276 | |||
8277 | fi | ||
8278 | |||
8279 | |||
8280 | fi | ||
8281 | |||
8282 | { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5 | ||
8283 | echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; } | ||
8284 | if test "${ac_cv_have_decl_authenticate+set}" = set; then | ||
8285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8286 | else | ||
8287 | cat >conftest.$ac_ext <<_ACEOF | ||
8288 | /* confdefs.h. */ | ||
8289 | _ACEOF | ||
8290 | cat confdefs.h >>conftest.$ac_ext | ||
8291 | cat >>conftest.$ac_ext <<_ACEOF | ||
8292 | /* end confdefs.h. */ | ||
8293 | #include <usersec.h> | ||
8294 | |||
8295 | int | ||
8296 | main () | ||
8297 | { | ||
8298 | #ifndef authenticate | ||
8299 | (void) authenticate; | ||
8300 | #endif | ||
8301 | |||
8302 | ; | ||
8303 | return 0; | ||
8304 | } | ||
8305 | _ACEOF | ||
8306 | rm -f conftest.$ac_objext | ||
8307 | if { (ac_try="$ac_compile" | ||
8308 | case "(($ac_try" in | ||
8309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8310 | *) ac_try_echo=$ac_try;; | ||
8311 | esac | ||
8312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8313 | (eval "$ac_compile") 2>conftest.er1 | ||
8314 | ac_status=$? | ||
8315 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8316 | rm -f conftest.er1 | ||
8317 | cat conftest.err >&5 | ||
8318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8319 | (exit $ac_status); } && { | ||
8320 | test -z "$ac_c_werror_flag" || | ||
8321 | test ! -s conftest.err | ||
8322 | } && test -s conftest.$ac_objext; then | ||
8323 | ac_cv_have_decl_authenticate=yes | ||
8324 | else | ||
8325 | echo "$as_me: failed program was:" >&5 | ||
8326 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8327 | |||
8328 | ac_cv_have_decl_authenticate=no | ||
8329 | fi | ||
8330 | |||
8331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8332 | fi | ||
8333 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5 | ||
8334 | echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; } | ||
8335 | if test $ac_cv_have_decl_authenticate = yes; then | ||
8336 | |||
8337 | cat >>confdefs.h <<_ACEOF | ||
8338 | #define HAVE_DECL_AUTHENTICATE 1 | ||
8339 | _ACEOF | ||
8340 | |||
8341 | |||
8342 | else | ||
8343 | cat >>confdefs.h <<_ACEOF | ||
8344 | #define HAVE_DECL_AUTHENTICATE 0 | ||
8345 | _ACEOF | ||
8346 | |||
8347 | |||
8348 | fi | ||
8349 | { echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5 | ||
8350 | echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; } | ||
8351 | if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then | ||
8352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8353 | else | ||
8354 | cat >conftest.$ac_ext <<_ACEOF | ||
8355 | /* confdefs.h. */ | ||
8356 | _ACEOF | ||
8357 | cat confdefs.h >>conftest.$ac_ext | ||
8358 | cat >>conftest.$ac_ext <<_ACEOF | ||
8359 | /* end confdefs.h. */ | ||
8360 | #include <usersec.h> | ||
8361 | |||
8362 | int | ||
8363 | main () | ||
8364 | { | ||
8365 | #ifndef loginrestrictions | ||
8366 | (void) loginrestrictions; | ||
8367 | #endif | ||
8368 | |||
8369 | ; | ||
8370 | return 0; | ||
8371 | } | ||
8372 | _ACEOF | ||
8373 | rm -f conftest.$ac_objext | ||
8374 | if { (ac_try="$ac_compile" | ||
8375 | case "(($ac_try" in | ||
8376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8377 | *) ac_try_echo=$ac_try;; | ||
8378 | esac | ||
8379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8380 | (eval "$ac_compile") 2>conftest.er1 | ||
8381 | ac_status=$? | ||
8382 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8383 | rm -f conftest.er1 | ||
8384 | cat conftest.err >&5 | ||
8385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8386 | (exit $ac_status); } && { | ||
8387 | test -z "$ac_c_werror_flag" || | ||
8388 | test ! -s conftest.err | ||
8389 | } && test -s conftest.$ac_objext; then | ||
8390 | ac_cv_have_decl_loginrestrictions=yes | ||
8391 | else | ||
8392 | echo "$as_me: failed program was:" >&5 | ||
8393 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8394 | |||
8395 | ac_cv_have_decl_loginrestrictions=no | ||
8396 | fi | ||
8397 | |||
8398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8399 | fi | ||
8400 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5 | ||
8401 | echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; } | ||
8402 | if test $ac_cv_have_decl_loginrestrictions = yes; then | ||
8403 | |||
8404 | cat >>confdefs.h <<_ACEOF | ||
8405 | #define HAVE_DECL_LOGINRESTRICTIONS 1 | ||
8406 | _ACEOF | ||
8407 | |||
8408 | |||
8409 | else | ||
8410 | cat >>confdefs.h <<_ACEOF | ||
8411 | #define HAVE_DECL_LOGINRESTRICTIONS 0 | ||
8412 | _ACEOF | ||
8413 | |||
8414 | |||
8415 | fi | ||
8416 | { echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5 | ||
8417 | echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; } | ||
8418 | if test "${ac_cv_have_decl_loginsuccess+set}" = set; then | ||
8419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8420 | else | ||
8421 | cat >conftest.$ac_ext <<_ACEOF | ||
8422 | /* confdefs.h. */ | ||
8423 | _ACEOF | ||
8424 | cat confdefs.h >>conftest.$ac_ext | ||
8425 | cat >>conftest.$ac_ext <<_ACEOF | ||
8426 | /* end confdefs.h. */ | ||
8427 | #include <usersec.h> | ||
8428 | |||
8429 | int | ||
8430 | main () | ||
8431 | { | ||
8432 | #ifndef loginsuccess | ||
8433 | (void) loginsuccess; | ||
8434 | #endif | ||
8435 | |||
8436 | ; | ||
8437 | return 0; | ||
8438 | } | ||
8439 | _ACEOF | ||
8440 | rm -f conftest.$ac_objext | ||
8441 | if { (ac_try="$ac_compile" | ||
8442 | case "(($ac_try" in | ||
8443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8444 | *) ac_try_echo=$ac_try;; | ||
8445 | esac | ||
8446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8447 | (eval "$ac_compile") 2>conftest.er1 | ||
8448 | ac_status=$? | ||
8449 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8450 | rm -f conftest.er1 | ||
8451 | cat conftest.err >&5 | ||
8452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8453 | (exit $ac_status); } && { | ||
8454 | test -z "$ac_c_werror_flag" || | ||
8455 | test ! -s conftest.err | ||
8456 | } && test -s conftest.$ac_objext; then | ||
8457 | ac_cv_have_decl_loginsuccess=yes | ||
8458 | else | ||
8459 | echo "$as_me: failed program was:" >&5 | ||
8460 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8461 | |||
8462 | ac_cv_have_decl_loginsuccess=no | ||
8463 | fi | ||
8464 | |||
8465 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8466 | fi | ||
8467 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5 | ||
8468 | echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; } | ||
8469 | if test $ac_cv_have_decl_loginsuccess = yes; then | ||
8470 | |||
8471 | cat >>confdefs.h <<_ACEOF | ||
8472 | #define HAVE_DECL_LOGINSUCCESS 1 | ||
8473 | _ACEOF | ||
8474 | |||
8475 | |||
8476 | else | ||
8477 | cat >>confdefs.h <<_ACEOF | ||
8478 | #define HAVE_DECL_LOGINSUCCESS 0 | ||
8479 | _ACEOF | ||
8480 | |||
8481 | |||
8482 | fi | ||
8483 | { echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5 | ||
8484 | echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; } | ||
8485 | if test "${ac_cv_have_decl_passwdexpired+set}" = set; then | ||
8486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8487 | else | ||
8488 | cat >conftest.$ac_ext <<_ACEOF | ||
8489 | /* confdefs.h. */ | ||
8490 | _ACEOF | ||
8491 | cat confdefs.h >>conftest.$ac_ext | ||
8492 | cat >>conftest.$ac_ext <<_ACEOF | ||
8493 | /* end confdefs.h. */ | ||
8494 | #include <usersec.h> | ||
8495 | |||
8496 | int | ||
8497 | main () | ||
8498 | { | ||
8499 | #ifndef passwdexpired | ||
8500 | (void) passwdexpired; | ||
8501 | #endif | ||
8502 | |||
8503 | ; | ||
8504 | return 0; | ||
8505 | } | ||
8506 | _ACEOF | ||
8507 | rm -f conftest.$ac_objext | ||
8508 | if { (ac_try="$ac_compile" | ||
8509 | case "(($ac_try" in | ||
8510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8511 | *) ac_try_echo=$ac_try;; | ||
8512 | esac | ||
8513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8514 | (eval "$ac_compile") 2>conftest.er1 | ||
8515 | ac_status=$? | ||
8516 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8517 | rm -f conftest.er1 | ||
8518 | cat conftest.err >&5 | ||
8519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8520 | (exit $ac_status); } && { | ||
8521 | test -z "$ac_c_werror_flag" || | ||
8522 | test ! -s conftest.err | ||
8523 | } && test -s conftest.$ac_objext; then | ||
8524 | ac_cv_have_decl_passwdexpired=yes | ||
8525 | else | ||
8526 | echo "$as_me: failed program was:" >&5 | ||
8527 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8528 | |||
8529 | ac_cv_have_decl_passwdexpired=no | ||
8530 | fi | ||
8531 | |||
8532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8533 | fi | ||
8534 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5 | ||
8535 | echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; } | ||
8536 | if test $ac_cv_have_decl_passwdexpired = yes; then | ||
8537 | |||
8538 | cat >>confdefs.h <<_ACEOF | ||
8539 | #define HAVE_DECL_PASSWDEXPIRED 1 | ||
8540 | _ACEOF | ||
8541 | |||
8542 | |||
8543 | else | ||
8544 | cat >>confdefs.h <<_ACEOF | ||
8545 | #define HAVE_DECL_PASSWDEXPIRED 0 | ||
8546 | _ACEOF | ||
8547 | |||
8548 | |||
8549 | fi | ||
8550 | { echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5 | ||
8551 | echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; } | ||
8552 | if test "${ac_cv_have_decl_setauthdb+set}" = set; then | ||
8553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8554 | else | ||
8555 | cat >conftest.$ac_ext <<_ACEOF | ||
8556 | /* confdefs.h. */ | ||
8557 | _ACEOF | ||
8558 | cat confdefs.h >>conftest.$ac_ext | ||
8559 | cat >>conftest.$ac_ext <<_ACEOF | ||
8560 | /* end confdefs.h. */ | ||
8561 | #include <usersec.h> | ||
8562 | |||
8563 | int | ||
8564 | main () | ||
8565 | { | ||
8566 | #ifndef setauthdb | ||
8567 | (void) setauthdb; | ||
8568 | #endif | ||
8569 | |||
8570 | ; | ||
8571 | return 0; | ||
8572 | } | ||
8573 | _ACEOF | ||
8574 | rm -f conftest.$ac_objext | ||
8575 | if { (ac_try="$ac_compile" | ||
8576 | case "(($ac_try" in | ||
8577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8578 | *) ac_try_echo=$ac_try;; | ||
8579 | esac | ||
8580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8581 | (eval "$ac_compile") 2>conftest.er1 | ||
8582 | ac_status=$? | ||
8583 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8584 | rm -f conftest.er1 | ||
8585 | cat conftest.err >&5 | ||
8586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8587 | (exit $ac_status); } && { | ||
8588 | test -z "$ac_c_werror_flag" || | ||
8589 | test ! -s conftest.err | ||
8590 | } && test -s conftest.$ac_objext; then | ||
8591 | ac_cv_have_decl_setauthdb=yes | ||
8592 | else | ||
8593 | echo "$as_me: failed program was:" >&5 | ||
8594 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8595 | |||
8596 | ac_cv_have_decl_setauthdb=no | ||
8597 | fi | ||
8598 | |||
8599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8600 | fi | ||
8601 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5 | ||
8602 | echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; } | ||
8603 | if test $ac_cv_have_decl_setauthdb = yes; then | ||
8604 | |||
8605 | cat >>confdefs.h <<_ACEOF | ||
8606 | #define HAVE_DECL_SETAUTHDB 1 | ||
8607 | _ACEOF | ||
8608 | |||
8609 | |||
8610 | else | ||
8611 | cat >>confdefs.h <<_ACEOF | ||
8612 | #define HAVE_DECL_SETAUTHDB 0 | ||
8613 | _ACEOF | ||
8614 | |||
8615 | |||
8616 | fi | ||
8617 | |||
8618 | |||
8619 | { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5 | ||
8620 | echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; } | ||
8621 | if test "${ac_cv_have_decl_loginfailed+set}" = set; then | ||
8622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8623 | else | ||
8624 | cat >conftest.$ac_ext <<_ACEOF | ||
8625 | /* confdefs.h. */ | ||
8626 | _ACEOF | ||
8627 | cat confdefs.h >>conftest.$ac_ext | ||
8628 | cat >>conftest.$ac_ext <<_ACEOF | ||
8629 | /* end confdefs.h. */ | ||
8630 | #include <usersec.h> | ||
8631 | |||
8632 | |||
8633 | int | ||
8634 | main () | ||
8635 | { | ||
8636 | #ifndef loginfailed | ||
8637 | (void) loginfailed; | ||
8638 | #endif | ||
8639 | |||
8640 | ; | ||
8641 | return 0; | ||
8642 | } | ||
8643 | _ACEOF | ||
8644 | rm -f conftest.$ac_objext | ||
8645 | if { (ac_try="$ac_compile" | ||
8646 | case "(($ac_try" in | ||
8647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8648 | *) ac_try_echo=$ac_try;; | ||
8649 | esac | ||
8650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8651 | (eval "$ac_compile") 2>conftest.er1 | ||
8652 | ac_status=$? | ||
8653 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8654 | rm -f conftest.er1 | ||
8655 | cat conftest.err >&5 | ||
8656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8657 | (exit $ac_status); } && { | ||
8658 | test -z "$ac_c_werror_flag" || | ||
8659 | test ! -s conftest.err | ||
8660 | } && test -s conftest.$ac_objext; then | ||
8661 | ac_cv_have_decl_loginfailed=yes | ||
8662 | else | ||
8663 | echo "$as_me: failed program was:" >&5 | ||
8664 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8665 | |||
8666 | ac_cv_have_decl_loginfailed=no | ||
8667 | fi | ||
8668 | |||
8669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8670 | fi | ||
8671 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5 | ||
8672 | echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; } | ||
8673 | if test $ac_cv_have_decl_loginfailed = yes; then | ||
8674 | |||
8675 | cat >>confdefs.h <<_ACEOF | ||
8676 | #define HAVE_DECL_LOGINFAILED 1 | ||
8677 | _ACEOF | ||
8678 | |||
8679 | { echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5 | ||
8680 | echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; } | ||
8681 | cat >conftest.$ac_ext <<_ACEOF | ||
8682 | /* confdefs.h. */ | ||
8683 | _ACEOF | ||
8684 | cat confdefs.h >>conftest.$ac_ext | ||
8685 | cat >>conftest.$ac_ext <<_ACEOF | ||
8686 | /* end confdefs.h. */ | ||
8687 | #include <usersec.h> | ||
8688 | int | ||
8689 | main () | ||
8690 | { | ||
8691 | (void)loginfailed("user","host","tty",0); | ||
8692 | ; | ||
8693 | return 0; | ||
8694 | } | ||
8695 | _ACEOF | ||
8696 | rm -f conftest.$ac_objext | ||
8697 | if { (ac_try="$ac_compile" | ||
8698 | case "(($ac_try" in | ||
8699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8700 | *) ac_try_echo=$ac_try;; | ||
8701 | esac | ||
8702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8703 | (eval "$ac_compile") 2>conftest.er1 | ||
8704 | ac_status=$? | ||
8705 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8706 | rm -f conftest.er1 | ||
8707 | cat conftest.err >&5 | ||
8708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8709 | (exit $ac_status); } && { | ||
8710 | test -z "$ac_c_werror_flag" || | ||
8711 | test ! -s conftest.err | ||
8712 | } && test -s conftest.$ac_objext; then | ||
8713 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
8714 | echo "${ECHO_T}yes" >&6; } | ||
8715 | |||
8716 | cat >>confdefs.h <<\_ACEOF | ||
8717 | #define AIX_LOGINFAILED_4ARG 1 | ||
8718 | _ACEOF | ||
8719 | |||
8720 | else | ||
8721 | echo "$as_me: failed program was:" >&5 | ||
8722 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8723 | |||
8724 | { echo "$as_me:$LINENO: result: no" >&5 | ||
8725 | echo "${ECHO_T}no" >&6; } | ||
8726 | |||
8727 | fi | ||
8728 | |||
8729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8730 | else | ||
8731 | cat >>confdefs.h <<_ACEOF | ||
8732 | #define HAVE_DECL_LOGINFAILED 0 | ||
8733 | _ACEOF | ||
8734 | |||
8735 | |||
8736 | fi | ||
8737 | |||
8738 | |||
8739 | |||
8740 | |||
8741 | for ac_func in getgrset setauthdb | ||
8742 | do | ||
8743 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8744 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
8745 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
8746 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8748 | else | ||
8749 | cat >conftest.$ac_ext <<_ACEOF | ||
8750 | /* confdefs.h. */ | ||
8751 | _ACEOF | ||
8752 | cat confdefs.h >>conftest.$ac_ext | ||
8753 | cat >>conftest.$ac_ext <<_ACEOF | ||
8754 | /* end confdefs.h. */ | ||
8755 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
8756 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8757 | #define $ac_func innocuous_$ac_func | ||
8758 | |||
8759 | /* System header to define __stub macros and hopefully few prototypes, | ||
8760 | which can conflict with char $ac_func (); below. | ||
8761 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8762 | <limits.h> exists even on freestanding compilers. */ | ||
8763 | |||
8764 | #ifdef __STDC__ | ||
8765 | # include <limits.h> | ||
8766 | #else | ||
8767 | # include <assert.h> | ||
8768 | #endif | ||
8769 | |||
8770 | #undef $ac_func | ||
8771 | |||
8772 | /* Override any GCC internal prototype to avoid an error. | ||
8773 | Use char because int might match the return type of a GCC | ||
8774 | builtin and then its argument prototype would still apply. */ | ||
8775 | #ifdef __cplusplus | ||
8776 | extern "C" | ||
8777 | #endif | ||
8778 | char $ac_func (); | ||
8779 | /* The GNU C library defines this for functions which it implements | ||
8780 | to always fail with ENOSYS. Some functions are actually named | ||
8781 | something starting with __ and the normal name is an alias. */ | ||
8782 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
8783 | choke me | ||
8784 | #endif | ||
8785 | |||
8786 | int | ||
8787 | main () | ||
8788 | { | ||
8789 | return $ac_func (); | ||
8790 | ; | ||
8791 | return 0; | ||
8792 | } | ||
8793 | _ACEOF | ||
8794 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8795 | if { (ac_try="$ac_link" | ||
8796 | case "(($ac_try" in | ||
8797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8798 | *) ac_try_echo=$ac_try;; | ||
8799 | esac | ||
8800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8801 | (eval "$ac_link") 2>conftest.er1 | ||
8802 | ac_status=$? | ||
8803 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8804 | rm -f conftest.er1 | ||
8805 | cat conftest.err >&5 | ||
8806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8807 | (exit $ac_status); } && { | ||
8808 | test -z "$ac_c_werror_flag" || | ||
8809 | test ! -s conftest.err | ||
8810 | } && test -s conftest$ac_exeext && | ||
8811 | $as_test_x conftest$ac_exeext; then | ||
8812 | eval "$as_ac_var=yes" | ||
8813 | else | ||
8814 | echo "$as_me: failed program was:" >&5 | ||
8815 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8816 | |||
8817 | eval "$as_ac_var=no" | ||
8818 | fi | ||
8819 | |||
8820 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8821 | conftest$ac_exeext conftest.$ac_ext | ||
8822 | fi | ||
8823 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
8824 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8825 | echo "${ECHO_T}$ac_res" >&6; } | ||
8826 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8827 | cat >>confdefs.h <<_ACEOF | ||
8828 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8829 | _ACEOF | ||
8830 | |||
8831 | fi | ||
8832 | done | ||
8833 | |||
8834 | { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5 | ||
8835 | echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; } | ||
8836 | if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then | ||
8837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8838 | else | ||
8839 | cat >conftest.$ac_ext <<_ACEOF | ||
8840 | /* confdefs.h. */ | ||
8841 | _ACEOF | ||
8842 | cat confdefs.h >>conftest.$ac_ext | ||
8843 | cat >>conftest.$ac_ext <<_ACEOF | ||
8844 | /* end confdefs.h. */ | ||
8845 | #include <limits.h> | ||
8846 | #include <fcntl.h> | ||
8847 | |||
8848 | |||
8849 | int | ||
8850 | main () | ||
8851 | { | ||
8852 | #ifndef F_CLOSEM | ||
8853 | (void) F_CLOSEM; | ||
8854 | #endif | ||
8855 | |||
8856 | ; | ||
8857 | return 0; | ||
8858 | } | ||
8859 | _ACEOF | ||
8860 | rm -f conftest.$ac_objext | ||
8861 | if { (ac_try="$ac_compile" | ||
8862 | case "(($ac_try" in | ||
8863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8864 | *) ac_try_echo=$ac_try;; | ||
8865 | esac | ||
8866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8867 | (eval "$ac_compile") 2>conftest.er1 | ||
8868 | ac_status=$? | ||
8869 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8870 | rm -f conftest.er1 | ||
8871 | cat conftest.err >&5 | ||
8872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8873 | (exit $ac_status); } && { | ||
8874 | test -z "$ac_c_werror_flag" || | ||
8875 | test ! -s conftest.err | ||
8876 | } && test -s conftest.$ac_objext; then | ||
8877 | ac_cv_have_decl_F_CLOSEM=yes | ||
8878 | else | ||
8879 | echo "$as_me: failed program was:" >&5 | ||
8880 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8881 | |||
8882 | ac_cv_have_decl_F_CLOSEM=no | ||
8883 | fi | ||
8884 | |||
8885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8886 | fi | ||
8887 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5 | ||
8888 | echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; } | ||
8889 | if test $ac_cv_have_decl_F_CLOSEM = yes; then | ||
8890 | |||
8891 | cat >>confdefs.h <<\_ACEOF | ||
8892 | #define HAVE_FCNTL_CLOSEM 1 | ||
8893 | _ACEOF | ||
8894 | |||
8895 | fi | ||
8896 | |||
8897 | check_for_aix_broken_getaddrinfo=1 | ||
8898 | |||
8899 | cat >>confdefs.h <<\_ACEOF | ||
8900 | #define BROKEN_REALPATH 1 | ||
8901 | _ACEOF | ||
8902 | |||
8903 | |||
8904 | cat >>confdefs.h <<\_ACEOF | ||
8905 | #define SETEUID_BREAKS_SETUID 1 | ||
8906 | _ACEOF | ||
8907 | |||
8908 | |||
8909 | cat >>confdefs.h <<\_ACEOF | ||
8910 | #define BROKEN_SETREUID 1 | ||
8911 | _ACEOF | ||
8912 | |||
8913 | |||
8914 | cat >>confdefs.h <<\_ACEOF | ||
8915 | #define BROKEN_SETREGID 1 | ||
8916 | _ACEOF | ||
8917 | |||
8918 | |||
8919 | cat >>confdefs.h <<\_ACEOF | ||
8920 | #define DISABLE_LASTLOG 1 | ||
8921 | _ACEOF | ||
8922 | |||
8923 | |||
8924 | cat >>confdefs.h <<\_ACEOF | ||
8925 | #define LOGIN_NEEDS_UTMPX 1 | ||
8926 | _ACEOF | ||
8927 | |||
8928 | |||
8929 | cat >>confdefs.h <<\_ACEOF | ||
8930 | #define SPT_TYPE SPT_REUSEARGV | ||
8931 | _ACEOF | ||
8932 | |||
8933 | |||
8934 | cat >>confdefs.h <<\_ACEOF | ||
8935 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
8936 | _ACEOF | ||
8937 | |||
8938 | |||
8939 | cat >>confdefs.h <<\_ACEOF | ||
8940 | #define PTY_ZEROREAD 1 | ||
8941 | _ACEOF | ||
8942 | |||
8943 | |||
8944 | cat >>confdefs.h <<\_ACEOF | ||
8945 | #define PLATFORM_SYS_DIR_UID 2 | ||
8946 | _ACEOF | ||
8947 | |||
8948 | ;; | ||
8949 | *-*-android*) | ||
8950 | |||
8951 | cat >>confdefs.h <<\_ACEOF | ||
8952 | #define DISABLE_UTMP 1 | ||
8953 | _ACEOF | ||
8954 | |||
8955 | |||
8956 | cat >>confdefs.h <<\_ACEOF | ||
8957 | #define DISABLE_WTMP 1 | ||
8958 | _ACEOF | ||
8959 | |||
8960 | ;; | ||
8961 | *-*-cygwin*) | ||
8962 | check_for_libcrypt_later=1 | ||
8963 | LIBS="$LIBS /usr/lib/textreadmode.o" | ||
8964 | |||
8965 | cat >>confdefs.h <<\_ACEOF | ||
8966 | #define HAVE_CYGWIN 1 | ||
8967 | _ACEOF | ||
8968 | |||
8969 | |||
8970 | cat >>confdefs.h <<\_ACEOF | ||
8971 | #define USE_PIPES 1 | ||
8972 | _ACEOF | ||
8973 | |||
8974 | |||
8975 | cat >>confdefs.h <<\_ACEOF | ||
8976 | #define NO_UID_RESTORATION_TEST 1 | ||
8977 | _ACEOF | ||
8978 | |||
8979 | |||
8980 | cat >>confdefs.h <<\_ACEOF | ||
8981 | #define DISABLE_SHADOW 1 | ||
8982 | _ACEOF | ||
8983 | |||
8984 | |||
8985 | cat >>confdefs.h <<\_ACEOF | ||
8986 | #define NO_X11_UNIX_SOCKETS 1 | ||
8987 | _ACEOF | ||
8988 | |||
8989 | |||
8990 | cat >>confdefs.h <<\_ACEOF | ||
8991 | #define DISABLE_FD_PASSING 1 | ||
8992 | _ACEOF | ||
8993 | |||
8994 | |||
8995 | cat >>confdefs.h <<\_ACEOF | ||
8996 | #define SSH_IOBUFSZ 65535 | ||
8997 | _ACEOF | ||
8998 | |||
8999 | |||
9000 | cat >>confdefs.h <<\_ACEOF | ||
9001 | #define FILESYSTEM_NO_BACKSLASH 1 | ||
9002 | _ACEOF | ||
9003 | |||
9004 | # Cygwin defines optargs, optargs as declspec(dllimport) for historical | ||
9005 | # reasons which cause compile warnings, so we disable those warnings. | ||
9006 | { | ||
9007 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wno-attributes" >&5 | ||
9008 | echo $ECHO_N "checking if $CC supports compile flag -Wno-attributes... $ECHO_C" >&6; } | ||
9009 | saved_CFLAGS="$CFLAGS" | ||
9010 | CFLAGS="$CFLAGS $WERROR -Wno-attributes" | ||
9011 | _define_flag="" | ||
9012 | test "x$_define_flag" = "x" && _define_flag="-Wno-attributes" | ||
9013 | cat >conftest.$ac_ext <<_ACEOF | ||
9014 | /* confdefs.h. */ | ||
9015 | _ACEOF | ||
9016 | cat confdefs.h >>conftest.$ac_ext | ||
9017 | cat >>conftest.$ac_ext <<_ACEOF | ||
9018 | /* end confdefs.h. */ | ||
9019 | |||
9020 | #include <stdlib.h> | ||
9021 | #include <stdio.h> | ||
9022 | int main(int argc, char **argv) { | ||
9023 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
9024 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
9025 | float l = i * 2.1; | ||
9026 | double m = l / 0.5; | ||
9027 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
9028 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
9029 | exit(0); | ||
9030 | } | ||
9031 | |||
9032 | _ACEOF | ||
9033 | rm -f conftest.$ac_objext | ||
9034 | if { (ac_try="$ac_compile" | ||
9035 | case "(($ac_try" in | ||
9036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9037 | *) ac_try_echo=$ac_try;; | ||
9038 | esac | ||
9039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9040 | (eval "$ac_compile") 2>conftest.er1 | ||
9041 | ac_status=$? | ||
9042 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9043 | rm -f conftest.er1 | ||
9044 | cat conftest.err >&5 | ||
9045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9046 | (exit $ac_status); } && { | ||
9047 | test -z "$ac_c_werror_flag" || | ||
9048 | test ! -s conftest.err | ||
9049 | } && test -s conftest.$ac_objext; then | ||
9050 | |||
9051 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
9052 | then | ||
9053 | { echo "$as_me:$LINENO: result: no" >&5 | ||
9054 | echo "${ECHO_T}no" >&6; } | ||
9055 | CFLAGS="$saved_CFLAGS" | ||
9056 | else | ||
9057 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
9058 | echo "${ECHO_T}yes" >&6; } | ||
9059 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
9060 | fi | ||
9061 | else | ||
9062 | echo "$as_me: failed program was:" >&5 | ||
9063 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9064 | |||
9065 | { echo "$as_me:$LINENO: result: no" >&5 | ||
9066 | echo "${ECHO_T}no" >&6; } | ||
9067 | CFLAGS="$saved_CFLAGS" | ||
9068 | |||
9069 | fi | ||
9070 | |||
9071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9072 | } | ||
9073 | ;; | ||
9074 | *-*-dgux*) | ||
9075 | |||
9076 | cat >>confdefs.h <<\_ACEOF | ||
9077 | #define IP_TOS_IS_BROKEN 1 | ||
9078 | _ACEOF | ||
9079 | |||
9080 | cat >>confdefs.h <<\_ACEOF | ||
9081 | #define SETEUID_BREAKS_SETUID 1 | ||
9082 | _ACEOF | ||
9083 | |||
9084 | cat >>confdefs.h <<\_ACEOF | ||
9085 | #define BROKEN_SETREUID 1 | ||
9086 | _ACEOF | ||
9087 | |||
9088 | cat >>confdefs.h <<\_ACEOF | ||
9089 | #define BROKEN_SETREGID 1 | ||
9090 | _ACEOF | ||
9091 | |||
9092 | ;; | ||
9093 | *-*-darwin*) | ||
9094 | use_pie=auto | ||
9095 | { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5 | ||
9096 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; } | ||
9097 | if test "$cross_compiling" = yes; then | ||
9098 | { echo "$as_me:$LINENO: result: assume it is working" >&5 | ||
9099 | echo "${ECHO_T}assume it is working" >&6; } | ||
9100 | else | ||
9101 | cat >conftest.$ac_ext <<_ACEOF | ||
9102 | /* confdefs.h. */ | ||
9103 | _ACEOF | ||
9104 | cat confdefs.h >>conftest.$ac_ext | ||
9105 | cat >>conftest.$ac_ext <<_ACEOF | ||
9106 | /* end confdefs.h. */ | ||
9107 | #include <mach-o/dyld.h> | ||
9108 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
9109 | exit(0); | ||
9110 | else | ||
9111 | exit(1); | ||
9112 | } | ||
9113 | |||
9114 | _ACEOF | ||
9115 | rm -f conftest$ac_exeext | ||
9116 | if { (ac_try="$ac_link" | ||
9117 | case "(($ac_try" in | ||
9118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9119 | *) ac_try_echo=$ac_try;; | ||
9120 | esac | ||
9121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9122 | (eval "$ac_link") 2>&5 | ||
9123 | ac_status=$? | ||
9124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9125 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9126 | { (case "(($ac_try" in | ||
9127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9128 | *) ac_try_echo=$ac_try;; | ||
9129 | esac | ||
9130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9131 | (eval "$ac_try") 2>&5 | ||
9132 | ac_status=$? | ||
9133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9134 | (exit $ac_status); }; }; then | ||
9135 | { echo "$as_me:$LINENO: result: working" >&5 | ||
9136 | echo "${ECHO_T}working" >&6; } | ||
9137 | else | ||
9138 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9139 | echo "$as_me: failed program was:" >&5 | ||
9140 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9141 | |||
9142 | ( exit $ac_status ) | ||
9143 | { echo "$as_me:$LINENO: result: buggy" >&5 | ||
9144 | echo "${ECHO_T}buggy" >&6; } | ||
9145 | |||
9146 | cat >>confdefs.h <<\_ACEOF | ||
9147 | #define BROKEN_GETADDRINFO 1 | ||
9148 | _ACEOF | ||
9149 | |||
9150 | |||
9151 | fi | ||
9152 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9153 | fi | ||
9154 | |||
9155 | |||
9156 | cat >>confdefs.h <<\_ACEOF | ||
9157 | #define SETEUID_BREAKS_SETUID 1 | ||
9158 | _ACEOF | ||
9159 | |||
9160 | cat >>confdefs.h <<\_ACEOF | ||
9161 | #define BROKEN_SETREUID 1 | ||
9162 | _ACEOF | ||
9163 | |||
9164 | cat >>confdefs.h <<\_ACEOF | ||
9165 | #define BROKEN_SETREGID 1 | ||
9166 | _ACEOF | ||
9167 | |||
9168 | |||
9169 | cat >>confdefs.h <<\_ACEOF | ||
9170 | #define BROKEN_GLOB 1 | ||
9171 | _ACEOF | ||
9172 | |||
9173 | |||
9174 | cat >>confdefs.h <<_ACEOF | ||
9175 | #define BIND_8_COMPAT 1 | ||
9176 | _ACEOF | ||
9177 | |||
9178 | |||
9179 | cat >>confdefs.h <<\_ACEOF | ||
9180 | #define SSH_TUN_FREEBSD 1 | ||
9181 | _ACEOF | ||
9182 | |||
9183 | |||
9184 | cat >>confdefs.h <<\_ACEOF | ||
9185 | #define SSH_TUN_COMPAT_AF 1 | ||
9186 | _ACEOF | ||
9187 | |||
9188 | |||
9189 | cat >>confdefs.h <<\_ACEOF | ||
9190 | #define SSH_TUN_PREPEND_AF 1 | ||
9191 | _ACEOF | ||
9192 | |||
9193 | |||
9194 | { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5 | ||
9195 | echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; } | ||
9196 | if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then | ||
9197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9198 | else | ||
9199 | cat >conftest.$ac_ext <<_ACEOF | ||
9200 | /* confdefs.h. */ | ||
9201 | _ACEOF | ||
9202 | cat confdefs.h >>conftest.$ac_ext | ||
9203 | cat >>conftest.$ac_ext <<_ACEOF | ||
9204 | /* end confdefs.h. */ | ||
9205 | $ac_includes_default | ||
9206 | int | ||
9207 | main () | ||
9208 | { | ||
9209 | #ifndef AU_IPv4 | ||
9210 | (void) AU_IPv4; | ||
9211 | #endif | ||
9212 | |||
9213 | ; | ||
9214 | return 0; | ||
9215 | } | ||
9216 | _ACEOF | ||
9217 | rm -f conftest.$ac_objext | ||
9218 | if { (ac_try="$ac_compile" | ||
9219 | case "(($ac_try" in | ||
9220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9221 | *) ac_try_echo=$ac_try;; | ||
9222 | esac | ||
9223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9224 | (eval "$ac_compile") 2>conftest.er1 | ||
9225 | ac_status=$? | ||
9226 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9227 | rm -f conftest.er1 | ||
9228 | cat conftest.err >&5 | ||
9229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9230 | (exit $ac_status); } && { | ||
9231 | test -z "$ac_c_werror_flag" || | ||
9232 | test ! -s conftest.err | ||
9233 | } && test -s conftest.$ac_objext; then | ||
9234 | ac_cv_have_decl_AU_IPv4=yes | ||
9235 | else | ||
9236 | echo "$as_me: failed program was:" >&5 | ||
9237 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9238 | |||
9239 | ac_cv_have_decl_AU_IPv4=no | ||
9240 | fi | ||
9241 | |||
9242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9243 | fi | ||
9244 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5 | ||
9245 | echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; } | ||
9246 | if test $ac_cv_have_decl_AU_IPv4 = yes; then | ||
9247 | : | ||
9248 | else | ||
9249 | |||
9250 | cat >>confdefs.h <<\_ACEOF | ||
9251 | #define AU_IPv4 0 | ||
9252 | _ACEOF | ||
9253 | |||
9254 | #include <bsm/audit.h> | ||
9255 | |||
9256 | cat >>confdefs.h <<\_ACEOF | ||
9257 | #define LASTLOG_WRITE_PUTUTXLINE 1 | ||
9258 | _ACEOF | ||
9259 | |||
9260 | |||
9261 | fi | ||
9262 | |||
9263 | |||
9264 | cat >>confdefs.h <<\_ACEOF | ||
9265 | #define SPT_TYPE SPT_REUSEARGV | ||
9266 | _ACEOF | ||
9267 | |||
9268 | |||
9269 | for ac_func in sandbox_init | ||
9270 | do | ||
9271 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9272 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9273 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
9274 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9276 | else | ||
9277 | cat >conftest.$ac_ext <<_ACEOF | ||
9278 | /* confdefs.h. */ | ||
9279 | _ACEOF | ||
9280 | cat confdefs.h >>conftest.$ac_ext | ||
9281 | cat >>conftest.$ac_ext <<_ACEOF | ||
9282 | /* end confdefs.h. */ | ||
9283 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9284 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9285 | #define $ac_func innocuous_$ac_func | ||
9286 | |||
9287 | /* System header to define __stub macros and hopefully few prototypes, | ||
9288 | which can conflict with char $ac_func (); below. | ||
9289 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9290 | <limits.h> exists even on freestanding compilers. */ | ||
9291 | |||
9292 | #ifdef __STDC__ | ||
9293 | # include <limits.h> | ||
9294 | #else | ||
9295 | # include <assert.h> | ||
9296 | #endif | ||
9297 | |||
9298 | #undef $ac_func | ||
9299 | |||
9300 | /* Override any GCC internal prototype to avoid an error. | ||
9301 | Use char because int might match the return type of a GCC | ||
9302 | builtin and then its argument prototype would still apply. */ | ||
9303 | #ifdef __cplusplus | ||
9304 | extern "C" | ||
9305 | #endif | ||
9306 | char $ac_func (); | ||
9307 | /* The GNU C library defines this for functions which it implements | ||
9308 | to always fail with ENOSYS. Some functions are actually named | ||
9309 | something starting with __ and the normal name is an alias. */ | ||
9310 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
9311 | choke me | ||
9312 | #endif | ||
9313 | |||
9314 | int | ||
9315 | main () | ||
9316 | { | ||
9317 | return $ac_func (); | ||
9318 | ; | ||
9319 | return 0; | ||
9320 | } | ||
9321 | _ACEOF | ||
9322 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9323 | if { (ac_try="$ac_link" | ||
9324 | case "(($ac_try" in | ||
9325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9326 | *) ac_try_echo=$ac_try;; | ||
9327 | esac | ||
9328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9329 | (eval "$ac_link") 2>conftest.er1 | ||
9330 | ac_status=$? | ||
9331 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9332 | rm -f conftest.er1 | ||
9333 | cat conftest.err >&5 | ||
9334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9335 | (exit $ac_status); } && { | ||
9336 | test -z "$ac_c_werror_flag" || | ||
9337 | test ! -s conftest.err | ||
9338 | } && test -s conftest$ac_exeext && | ||
9339 | $as_test_x conftest$ac_exeext; then | ||
9340 | eval "$as_ac_var=yes" | ||
9341 | else | ||
9342 | echo "$as_me: failed program was:" >&5 | ||
9343 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9344 | |||
9345 | eval "$as_ac_var=no" | ||
9346 | fi | ||
9347 | |||
9348 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9349 | conftest$ac_exeext conftest.$ac_ext | ||
9350 | fi | ||
9351 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
9352 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9353 | echo "${ECHO_T}$ac_res" >&6; } | ||
9354 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9355 | cat >>confdefs.h <<_ACEOF | ||
9356 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9357 | _ACEOF | ||
9358 | |||
9359 | fi | ||
9360 | done | ||
9361 | |||
9362 | |||
9363 | for ac_header in sandbox.h | ||
9364 | do | ||
9365 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
9366 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9367 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9368 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
9369 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9371 | fi | ||
9372 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
9373 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9374 | echo "${ECHO_T}$ac_res" >&6; } | ||
9375 | else | ||
9376 | # Is the header compilable? | ||
9377 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
9378 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
9379 | cat >conftest.$ac_ext <<_ACEOF | ||
9380 | /* confdefs.h. */ | ||
9381 | _ACEOF | ||
9382 | cat confdefs.h >>conftest.$ac_ext | ||
9383 | cat >>conftest.$ac_ext <<_ACEOF | ||
9384 | /* end confdefs.h. */ | ||
9385 | $ac_includes_default | ||
9386 | #include <$ac_header> | ||
9387 | _ACEOF | ||
9388 | rm -f conftest.$ac_objext | ||
9389 | if { (ac_try="$ac_compile" | ||
9390 | case "(($ac_try" in | ||
9391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9392 | *) ac_try_echo=$ac_try;; | ||
9393 | esac | ||
9394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9395 | (eval "$ac_compile") 2>conftest.er1 | ||
9396 | ac_status=$? | ||
9397 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9398 | rm -f conftest.er1 | ||
9399 | cat conftest.err >&5 | ||
9400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9401 | (exit $ac_status); } && { | ||
9402 | test -z "$ac_c_werror_flag" || | ||
9403 | test ! -s conftest.err | ||
9404 | } && test -s conftest.$ac_objext; then | ||
9405 | ac_header_compiler=yes | ||
9406 | else | ||
9407 | echo "$as_me: failed program was:" >&5 | ||
9408 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9409 | |||
9410 | ac_header_compiler=no | ||
9411 | fi | ||
9412 | |||
9413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9414 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
9415 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
9416 | |||
9417 | # Is the header present? | ||
9418 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
9419 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
9420 | cat >conftest.$ac_ext <<_ACEOF | ||
9421 | /* confdefs.h. */ | ||
9422 | _ACEOF | ||
9423 | cat confdefs.h >>conftest.$ac_ext | ||
9424 | cat >>conftest.$ac_ext <<_ACEOF | ||
9425 | /* end confdefs.h. */ | ||
9426 | #include <$ac_header> | ||
9427 | _ACEOF | ||
9428 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
9429 | case "(($ac_try" in | ||
9430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9431 | *) ac_try_echo=$ac_try;; | ||
9432 | esac | ||
9433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9434 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
9435 | ac_status=$? | ||
9436 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9437 | rm -f conftest.er1 | ||
9438 | cat conftest.err >&5 | ||
9439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9440 | (exit $ac_status); } >/dev/null && { | ||
9441 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
9442 | test ! -s conftest.err | ||
9443 | }; then | ||
9444 | ac_header_preproc=yes | ||
9445 | else | ||
9446 | echo "$as_me: failed program was:" >&5 | ||
9447 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9448 | |||
9449 | ac_header_preproc=no | ||
9450 | fi | ||
9451 | |||
9452 | rm -f conftest.err conftest.$ac_ext | ||
9453 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
9454 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
9455 | |||
9456 | # So? What about this header? | ||
9457 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
9458 | yes:no: ) | ||
9459 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
9460 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
9461 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
9462 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
9463 | ac_header_preproc=yes | ||
9464 | ;; | ||
9465 | no:yes:* ) | ||
9466 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
9467 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
9468 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
9469 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
9470 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
9471 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
9472 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
9473 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
9474 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
9475 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
9476 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
9477 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
9478 | ( cat <<\_ASBOX | ||
9479 | ## ------------------------------------------- ## | ||
9480 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
9481 | ## ------------------------------------------- ## | ||
9482 | _ASBOX | ||
9483 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
9484 | ;; | ||
9485 | esac | ||
9486 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9487 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
9488 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9490 | else | ||
9491 | eval "$as_ac_Header=\$ac_header_preproc" | ||
9492 | fi | ||
9493 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
9494 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9495 | echo "${ECHO_T}$ac_res" >&6; } | ||
9496 | |||
9497 | fi | ||
9498 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
9499 | cat >>confdefs.h <<_ACEOF | ||
9500 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
9501 | _ACEOF | ||
9502 | |||
9503 | fi | ||
9504 | |||
9505 | done | ||
9506 | |||
9507 | { echo "$as_me:$LINENO: checking for sandbox_apply in -lsandbox" >&5 | ||
9508 | echo $ECHO_N "checking for sandbox_apply in -lsandbox... $ECHO_C" >&6; } | ||
9509 | if test "${ac_cv_lib_sandbox_sandbox_apply+set}" = set; then | ||
9510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9511 | else | ||
9512 | ac_check_lib_save_LIBS=$LIBS | ||
9513 | LIBS="-lsandbox $LIBS" | ||
9514 | cat >conftest.$ac_ext <<_ACEOF | ||
9515 | /* confdefs.h. */ | ||
9516 | _ACEOF | ||
9517 | cat confdefs.h >>conftest.$ac_ext | ||
9518 | cat >>conftest.$ac_ext <<_ACEOF | ||
9519 | /* end confdefs.h. */ | ||
9520 | |||
9521 | /* Override any GCC internal prototype to avoid an error. | ||
9522 | Use char because int might match the return type of a GCC | ||
9523 | builtin and then its argument prototype would still apply. */ | ||
9524 | #ifdef __cplusplus | ||
9525 | extern "C" | ||
9526 | #endif | ||
9527 | char sandbox_apply (); | ||
9528 | int | ||
9529 | main () | ||
9530 | { | ||
9531 | return sandbox_apply (); | ||
9532 | ; | ||
9533 | return 0; | ||
9534 | } | ||
9535 | _ACEOF | ||
9536 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9537 | if { (ac_try="$ac_link" | ||
9538 | case "(($ac_try" in | ||
9539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9540 | *) ac_try_echo=$ac_try;; | ||
9541 | esac | ||
9542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9543 | (eval "$ac_link") 2>conftest.er1 | ||
9544 | ac_status=$? | ||
9545 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9546 | rm -f conftest.er1 | ||
9547 | cat conftest.err >&5 | ||
9548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9549 | (exit $ac_status); } && { | ||
9550 | test -z "$ac_c_werror_flag" || | ||
9551 | test ! -s conftest.err | ||
9552 | } && test -s conftest$ac_exeext && | ||
9553 | $as_test_x conftest$ac_exeext; then | ||
9554 | ac_cv_lib_sandbox_sandbox_apply=yes | ||
9555 | else | ||
9556 | echo "$as_me: failed program was:" >&5 | ||
9557 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9558 | |||
9559 | ac_cv_lib_sandbox_sandbox_apply=no | ||
9560 | fi | ||
9561 | |||
9562 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9563 | conftest$ac_exeext conftest.$ac_ext | ||
9564 | LIBS=$ac_check_lib_save_LIBS | ||
9565 | fi | ||
9566 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sandbox_sandbox_apply" >&5 | ||
9567 | echo "${ECHO_T}$ac_cv_lib_sandbox_sandbox_apply" >&6; } | ||
9568 | if test $ac_cv_lib_sandbox_sandbox_apply = yes; then | ||
9569 | |||
9570 | SSHDLIBS="$SSHDLIBS -lsandbox" | ||
9571 | |||
9572 | fi | ||
9573 | |||
9574 | ;; | ||
9575 | *-*-dragonfly*) | ||
9576 | SSHDLIBS="$SSHDLIBS -lcrypt" | ||
9577 | TEST_MALLOC_OPTIONS="AFGJPRX" | ||
9578 | ;; | ||
9579 | *-*-haiku*) | ||
9580 | LIBS="$LIBS -lbsd " | ||
9581 | |||
9582 | { echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5 | ||
9583 | echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; } | ||
9584 | if test "${ac_cv_lib_network_socket+set}" = set; then | ||
9585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9586 | else | ||
9587 | ac_check_lib_save_LIBS=$LIBS | ||
9588 | LIBS="-lnetwork $LIBS" | ||
9589 | cat >conftest.$ac_ext <<_ACEOF | ||
9590 | /* confdefs.h. */ | ||
9591 | _ACEOF | ||
9592 | cat confdefs.h >>conftest.$ac_ext | ||
9593 | cat >>conftest.$ac_ext <<_ACEOF | ||
9594 | /* end confdefs.h. */ | ||
9595 | |||
9596 | /* Override any GCC internal prototype to avoid an error. | ||
9597 | Use char because int might match the return type of a GCC | ||
9598 | builtin and then its argument prototype would still apply. */ | ||
9599 | #ifdef __cplusplus | ||
9600 | extern "C" | ||
9601 | #endif | ||
9602 | char socket (); | ||
9603 | int | ||
9604 | main () | ||
9605 | { | ||
9606 | return socket (); | ||
9607 | ; | ||
9608 | return 0; | ||
9609 | } | ||
9610 | _ACEOF | ||
9611 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9612 | if { (ac_try="$ac_link" | ||
9613 | case "(($ac_try" in | ||
9614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9615 | *) ac_try_echo=$ac_try;; | ||
9616 | esac | ||
9617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9618 | (eval "$ac_link") 2>conftest.er1 | ||
9619 | ac_status=$? | ||
9620 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9621 | rm -f conftest.er1 | ||
9622 | cat conftest.err >&5 | ||
9623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9624 | (exit $ac_status); } && { | ||
9625 | test -z "$ac_c_werror_flag" || | ||
9626 | test ! -s conftest.err | ||
9627 | } && test -s conftest$ac_exeext && | ||
9628 | $as_test_x conftest$ac_exeext; then | ||
9629 | ac_cv_lib_network_socket=yes | ||
9630 | else | ||
9631 | echo "$as_me: failed program was:" >&5 | ||
9632 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9633 | |||
9634 | ac_cv_lib_network_socket=no | ||
9635 | fi | ||
9636 | |||
9637 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9638 | conftest$ac_exeext conftest.$ac_ext | ||
9639 | LIBS=$ac_check_lib_save_LIBS | ||
9640 | fi | ||
9641 | { echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5 | ||
9642 | echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; } | ||
9643 | if test $ac_cv_lib_network_socket = yes; then | ||
9644 | cat >>confdefs.h <<_ACEOF | ||
9645 | #define HAVE_LIBNETWORK 1 | ||
9646 | _ACEOF | ||
9647 | |||
9648 | LIBS="-lnetwork $LIBS" | ||
9649 | |||
9650 | fi | ||
9651 | |||
9652 | cat >>confdefs.h <<\_ACEOF | ||
9653 | #define HAVE_U_INT64_T 1 | ||
9654 | _ACEOF | ||
9655 | |||
9656 | MANTYPE=man | ||
9657 | ;; | ||
9658 | *-*-hpux*) | ||
9659 | # first we define all of the options common to all HP-UX releases | ||
9660 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
9661 | IPADDR_IN_DISPLAY=yes | ||
9662 | cat >>confdefs.h <<\_ACEOF | ||
9663 | #define USE_PIPES 1 | ||
9664 | _ACEOF | ||
9665 | |||
9666 | |||
9667 | cat >>confdefs.h <<\_ACEOF | ||
9668 | #define LOGIN_NO_ENDOPT 1 | ||
9669 | _ACEOF | ||
9670 | |||
9671 | cat >>confdefs.h <<\_ACEOF | ||
9672 | #define LOGIN_NEEDS_UTMPX 1 | ||
9673 | _ACEOF | ||
9674 | |||
9675 | |||
9676 | cat >>confdefs.h <<\_ACEOF | ||
9677 | #define LOCKED_PASSWD_STRING "*" | ||
9678 | _ACEOF | ||
9679 | |||
9680 | cat >>confdefs.h <<\_ACEOF | ||
9681 | #define SPT_TYPE SPT_PSTAT | ||
9682 | _ACEOF | ||
9683 | |||
9684 | |||
9685 | cat >>confdefs.h <<\_ACEOF | ||
9686 | #define PLATFORM_SYS_DIR_UID 2 | ||
9687 | _ACEOF | ||
9688 | |||
9689 | maildir="/var/mail" | ||
9690 | LIBS="$LIBS -lsec" | ||
9691 | |||
9692 | { echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
9693 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; } | ||
9694 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
9695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9696 | else | ||
9697 | ac_check_lib_save_LIBS=$LIBS | ||
9698 | LIBS="-lxnet $LIBS" | ||
9699 | cat >conftest.$ac_ext <<_ACEOF | ||
9700 | /* confdefs.h. */ | ||
9701 | _ACEOF | ||
9702 | cat confdefs.h >>conftest.$ac_ext | ||
9703 | cat >>conftest.$ac_ext <<_ACEOF | ||
9704 | /* end confdefs.h. */ | ||
9705 | |||
9706 | /* Override any GCC internal prototype to avoid an error. | ||
9707 | Use char because int might match the return type of a GCC | ||
9708 | builtin and then its argument prototype would still apply. */ | ||
9709 | #ifdef __cplusplus | ||
9710 | extern "C" | ||
9711 | #endif | ||
9712 | char t_error (); | ||
9713 | int | ||
9714 | main () | ||
9715 | { | ||
9716 | return t_error (); | ||
9717 | ; | ||
9718 | return 0; | ||
9719 | } | ||
9720 | _ACEOF | ||
9721 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9722 | if { (ac_try="$ac_link" | ||
9723 | case "(($ac_try" in | ||
9724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9725 | *) ac_try_echo=$ac_try;; | ||
9726 | esac | ||
9727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9728 | (eval "$ac_link") 2>conftest.er1 | ||
9729 | ac_status=$? | ||
9730 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9731 | rm -f conftest.er1 | ||
9732 | cat conftest.err >&5 | ||
9733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9734 | (exit $ac_status); } && { | ||
9735 | test -z "$ac_c_werror_flag" || | ||
9736 | test ! -s conftest.err | ||
9737 | } && test -s conftest$ac_exeext && | ||
9738 | $as_test_x conftest$ac_exeext; then | ||
9739 | ac_cv_lib_xnet_t_error=yes | ||
9740 | else | ||
9741 | echo "$as_me: failed program was:" >&5 | ||
9742 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9743 | |||
9744 | ac_cv_lib_xnet_t_error=no | ||
9745 | fi | ||
9746 | |||
9747 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9748 | conftest$ac_exeext conftest.$ac_ext | ||
9749 | LIBS=$ac_check_lib_save_LIBS | ||
9750 | fi | ||
9751 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
9752 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; } | ||
9753 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
9754 | cat >>confdefs.h <<_ACEOF | ||
9755 | #define HAVE_LIBXNET 1 | ||
9756 | _ACEOF | ||
9757 | |||
9758 | LIBS="-lxnet $LIBS" | ||
9759 | |||
9760 | else | ||
9761 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
9762 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
9763 | { (exit 1); exit 1; }; } | ||
9764 | fi | ||
9765 | |||
9766 | |||
9767 | # next, we define all of the options specific to major releases | ||
9768 | case "$host" in | ||
9769 | *-*-hpux10*) | ||
9770 | if test -z "$GCC"; then | ||
9771 | CFLAGS="$CFLAGS -Ae" | ||
9772 | fi | ||
9773 | ;; | ||
9774 | *-*-hpux11*) | ||
9775 | |||
9776 | cat >>confdefs.h <<\_ACEOF | ||
9777 | #define PAM_SUN_CODEBASE 1 | ||
9778 | _ACEOF | ||
9779 | |||
9780 | |||
9781 | cat >>confdefs.h <<\_ACEOF | ||
9782 | #define DISABLE_UTMP 1 | ||
9783 | _ACEOF | ||
9784 | |||
9785 | |||
9786 | cat >>confdefs.h <<\_ACEOF | ||
9787 | #define USE_BTMP 1 | ||
9788 | _ACEOF | ||
9789 | |||
9790 | check_for_hpux_broken_getaddrinfo=1 | ||
9791 | check_for_conflicting_getspnam=1 | ||
9792 | ;; | ||
9793 | esac | ||
9794 | |||
9795 | # lastly, we define options specific to minor releases | ||
9796 | case "$host" in | ||
9797 | *-*-hpux10.26) | ||
9798 | |||
9799 | cat >>confdefs.h <<\_ACEOF | ||
9800 | #define HAVE_SECUREWARE 1 | ||
9801 | _ACEOF | ||
9802 | |||
9803 | disable_ptmx_check=yes | ||
9804 | LIBS="$LIBS -lsecpw" | ||
9805 | ;; | ||
9806 | esac | ||
9807 | ;; | ||
9808 | *-*-irix5*) | ||
9809 | PATH="$PATH:/usr/etc" | ||
9810 | |||
9811 | cat >>confdefs.h <<\_ACEOF | ||
9812 | #define BROKEN_INET_NTOA 1 | ||
9813 | _ACEOF | ||
9814 | |||
9815 | cat >>confdefs.h <<\_ACEOF | ||
9816 | #define SETEUID_BREAKS_SETUID 1 | ||
9817 | _ACEOF | ||
9818 | |||
9819 | cat >>confdefs.h <<\_ACEOF | ||
9820 | #define BROKEN_SETREUID 1 | ||
9821 | _ACEOF | ||
9822 | |||
9823 | cat >>confdefs.h <<\_ACEOF | ||
9824 | #define BROKEN_SETREGID 1 | ||
9825 | _ACEOF | ||
9826 | |||
9827 | |||
9828 | cat >>confdefs.h <<\_ACEOF | ||
9829 | #define WITH_ABBREV_NO_TTY 1 | ||
9830 | _ACEOF | ||
9831 | |||
9832 | cat >>confdefs.h <<\_ACEOF | ||
9833 | #define LOCKED_PASSWD_STRING "*LK*" | ||
9834 | _ACEOF | ||
9835 | |||
9836 | ;; | ||
9837 | *-*-irix6*) | ||
9838 | PATH="$PATH:/usr/etc" | ||
9839 | |||
9840 | cat >>confdefs.h <<\_ACEOF | ||
9841 | #define WITH_IRIX_ARRAY 1 | ||
9842 | _ACEOF | ||
9843 | |||
9844 | |||
9845 | cat >>confdefs.h <<\_ACEOF | ||
9846 | #define WITH_IRIX_PROJECT 1 | ||
9847 | _ACEOF | ||
9848 | |||
9849 | |||
9850 | cat >>confdefs.h <<\_ACEOF | ||
9851 | #define WITH_IRIX_AUDIT 1 | ||
9852 | _ACEOF | ||
9853 | |||
9854 | { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | ||
9855 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; } | ||
9856 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
9857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9858 | else | ||
9859 | cat >conftest.$ac_ext <<_ACEOF | ||
9860 | /* confdefs.h. */ | ||
9861 | _ACEOF | ||
9862 | cat confdefs.h >>conftest.$ac_ext | ||
9863 | cat >>conftest.$ac_ext <<_ACEOF | ||
9864 | /* end confdefs.h. */ | ||
9865 | /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob. | ||
9866 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9867 | #define jlimit_startjob innocuous_jlimit_startjob | ||
9868 | |||
9869 | /* System header to define __stub macros and hopefully few prototypes, | ||
9870 | which can conflict with char jlimit_startjob (); below. | ||
9871 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9872 | <limits.h> exists even on freestanding compilers. */ | ||
9873 | |||
9874 | #ifdef __STDC__ | ||
9875 | # include <limits.h> | ||
9876 | #else | ||
9877 | # include <assert.h> | ||
9878 | #endif | ||
9879 | |||
9880 | #undef jlimit_startjob | ||
9881 | |||
9882 | /* Override any GCC internal prototype to avoid an error. | ||
9883 | Use char because int might match the return type of a GCC | ||
9884 | builtin and then its argument prototype would still apply. */ | ||
9885 | #ifdef __cplusplus | ||
9886 | extern "C" | ||
9887 | #endif | ||
9888 | char jlimit_startjob (); | ||
9889 | /* The GNU C library defines this for functions which it implements | ||
9890 | to always fail with ENOSYS. Some functions are actually named | ||
9891 | something starting with __ and the normal name is an alias. */ | ||
9892 | #if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob | ||
9893 | choke me | ||
9894 | #endif | ||
9895 | |||
9896 | int | ||
9897 | main () | ||
9898 | { | ||
9899 | return jlimit_startjob (); | ||
9900 | ; | ||
9901 | return 0; | ||
9902 | } | ||
9903 | _ACEOF | ||
9904 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9905 | if { (ac_try="$ac_link" | ||
9906 | case "(($ac_try" in | ||
9907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9908 | *) ac_try_echo=$ac_try;; | ||
9909 | esac | ||
9910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9911 | (eval "$ac_link") 2>conftest.er1 | ||
9912 | ac_status=$? | ||
9913 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9914 | rm -f conftest.er1 | ||
9915 | cat conftest.err >&5 | ||
9916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9917 | (exit $ac_status); } && { | ||
9918 | test -z "$ac_c_werror_flag" || | ||
9919 | test ! -s conftest.err | ||
9920 | } && test -s conftest$ac_exeext && | ||
9921 | $as_test_x conftest$ac_exeext; then | ||
9922 | ac_cv_func_jlimit_startjob=yes | ||
9923 | else | ||
9924 | echo "$as_me: failed program was:" >&5 | ||
9925 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9926 | |||
9927 | ac_cv_func_jlimit_startjob=no | ||
9928 | fi | ||
9929 | |||
9930 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9931 | conftest$ac_exeext conftest.$ac_ext | ||
9932 | fi | ||
9933 | { echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | ||
9934 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; } | ||
9935 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
9936 | |||
9937 | cat >>confdefs.h <<\_ACEOF | ||
9938 | #define WITH_IRIX_JOBS 1 | ||
9939 | _ACEOF | ||
9940 | |||
9941 | fi | ||
9942 | |||
9943 | cat >>confdefs.h <<\_ACEOF | ||
9944 | #define BROKEN_INET_NTOA 1 | ||
9945 | _ACEOF | ||
9946 | |||
9947 | cat >>confdefs.h <<\_ACEOF | ||
9948 | #define SETEUID_BREAKS_SETUID 1 | ||
9949 | _ACEOF | ||
9950 | |||
9951 | cat >>confdefs.h <<\_ACEOF | ||
9952 | #define BROKEN_SETREUID 1 | ||
9953 | _ACEOF | ||
9954 | |||
9955 | cat >>confdefs.h <<\_ACEOF | ||
9956 | #define BROKEN_SETREGID 1 | ||
9957 | _ACEOF | ||
9958 | |||
9959 | |||
9960 | cat >>confdefs.h <<\_ACEOF | ||
9961 | #define BROKEN_UPDWTMPX 1 | ||
9962 | _ACEOF | ||
9963 | |||
9964 | cat >>confdefs.h <<\_ACEOF | ||
9965 | #define WITH_ABBREV_NO_TTY 1 | ||
9966 | _ACEOF | ||
9967 | |||
9968 | cat >>confdefs.h <<\_ACEOF | ||
9969 | #define LOCKED_PASSWD_STRING "*LK*" | ||
9970 | _ACEOF | ||
9971 | |||
9972 | ;; | ||
9973 | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | ||
9974 | check_for_libcrypt_later=1 | ||
9975 | cat >>confdefs.h <<\_ACEOF | ||
9976 | #define PAM_TTY_KLUDGE 1 | ||
9977 | _ACEOF | ||
9978 | |||
9979 | cat >>confdefs.h <<\_ACEOF | ||
9980 | #define LOCKED_PASSWD_PREFIX "!" | ||
9981 | _ACEOF | ||
9982 | |||
9983 | cat >>confdefs.h <<\_ACEOF | ||
9984 | #define SPT_TYPE SPT_REUSEARGV | ||
9985 | _ACEOF | ||
9986 | |||
9987 | |||
9988 | cat >>confdefs.h <<\_ACEOF | ||
9989 | #define _PATH_BTMP "/var/log/btmp" | ||
9990 | _ACEOF | ||
9991 | |||
9992 | |||
9993 | cat >>confdefs.h <<\_ACEOF | ||
9994 | #define USE_BTMP 1 | ||
9995 | _ACEOF | ||
9996 | |||
9997 | ;; | ||
9998 | *-*-linux*) | ||
9999 | no_dev_ptmx=1 | ||
10000 | use_pie=auto | ||
10001 | check_for_libcrypt_later=1 | ||
10002 | check_for_openpty_ctty_bug=1 | ||
10003 | |||
10004 | cat >>confdefs.h <<\_ACEOF | ||
10005 | #define PAM_TTY_KLUDGE 1 | ||
10006 | _ACEOF | ||
10007 | |||
10008 | |||
10009 | cat >>confdefs.h <<\_ACEOF | ||
10010 | #define LOCKED_PASSWD_PREFIX "!" | ||
10011 | _ACEOF | ||
10012 | |||
10013 | cat >>confdefs.h <<\_ACEOF | ||
10014 | #define SPT_TYPE SPT_REUSEARGV | ||
10015 | _ACEOF | ||
10016 | |||
10017 | |||
10018 | cat >>confdefs.h <<\_ACEOF | ||
10019 | #define LINK_OPNOTSUPP_ERRNO EPERM | ||
10020 | _ACEOF | ||
10021 | |||
10022 | |||
10023 | cat >>confdefs.h <<\_ACEOF | ||
10024 | #define _PATH_BTMP "/var/log/btmp" | ||
10025 | _ACEOF | ||
10026 | |||
10027 | cat >>confdefs.h <<\_ACEOF | ||
10028 | #define USE_BTMP 1 | ||
10029 | _ACEOF | ||
10030 | |||
10031 | |||
10032 | cat >>confdefs.h <<\_ACEOF | ||
10033 | #define LINUX_OOM_ADJUST 1 | ||
10034 | _ACEOF | ||
10035 | |||
10036 | inet6_default_4in6=yes | ||
10037 | case `uname -r` in | ||
10038 | 1.*|2.0.*) | ||
10039 | |||
10040 | cat >>confdefs.h <<\_ACEOF | ||
10041 | #define BROKEN_CMSG_TYPE 1 | ||
10042 | _ACEOF | ||
10043 | |||
10044 | ;; | ||
10045 | esac | ||
10046 | # tun(4) forwarding compat code | ||
10047 | |||
10048 | for ac_header in linux/if_tun.h | ||
10049 | do | ||
10050 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
10051 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10052 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10053 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10054 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10056 | fi | ||
10057 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10058 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10059 | echo "${ECHO_T}$ac_res" >&6; } | ||
10060 | else | ||
10061 | # Is the header compilable? | ||
10062 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
10063 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
10064 | cat >conftest.$ac_ext <<_ACEOF | ||
10065 | /* confdefs.h. */ | ||
10066 | _ACEOF | ||
10067 | cat confdefs.h >>conftest.$ac_ext | ||
10068 | cat >>conftest.$ac_ext <<_ACEOF | ||
10069 | /* end confdefs.h. */ | ||
10070 | $ac_includes_default | ||
10071 | #include <$ac_header> | ||
10072 | _ACEOF | ||
10073 | rm -f conftest.$ac_objext | ||
10074 | if { (ac_try="$ac_compile" | ||
10075 | case "(($ac_try" in | ||
10076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10077 | *) ac_try_echo=$ac_try;; | ||
10078 | esac | ||
10079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10080 | (eval "$ac_compile") 2>conftest.er1 | ||
10081 | ac_status=$? | ||
10082 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10083 | rm -f conftest.er1 | ||
10084 | cat conftest.err >&5 | ||
10085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10086 | (exit $ac_status); } && { | ||
10087 | test -z "$ac_c_werror_flag" || | ||
10088 | test ! -s conftest.err | ||
10089 | } && test -s conftest.$ac_objext; then | ||
10090 | ac_header_compiler=yes | ||
10091 | else | ||
10092 | echo "$as_me: failed program was:" >&5 | ||
10093 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10094 | |||
10095 | ac_header_compiler=no | ||
10096 | fi | ||
10097 | |||
10098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10099 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10100 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10101 | |||
10102 | # Is the header present? | ||
10103 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
10104 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
10105 | cat >conftest.$ac_ext <<_ACEOF | ||
10106 | /* confdefs.h. */ | ||
10107 | _ACEOF | ||
10108 | cat confdefs.h >>conftest.$ac_ext | ||
10109 | cat >>conftest.$ac_ext <<_ACEOF | ||
10110 | /* end confdefs.h. */ | ||
10111 | #include <$ac_header> | ||
10112 | _ACEOF | ||
10113 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10114 | case "(($ac_try" in | ||
10115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10116 | *) ac_try_echo=$ac_try;; | ||
10117 | esac | ||
10118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10119 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10120 | ac_status=$? | ||
10121 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10122 | rm -f conftest.er1 | ||
10123 | cat conftest.err >&5 | ||
10124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10125 | (exit $ac_status); } >/dev/null && { | ||
10126 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10127 | test ! -s conftest.err | ||
10128 | }; then | ||
10129 | ac_header_preproc=yes | ||
10130 | else | ||
10131 | echo "$as_me: failed program was:" >&5 | ||
10132 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10133 | |||
10134 | ac_header_preproc=no | ||
10135 | fi | ||
10136 | |||
10137 | rm -f conftest.err conftest.$ac_ext | ||
10138 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10139 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10140 | |||
10141 | # So? What about this header? | ||
10142 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10143 | yes:no: ) | ||
10144 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10145 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10146 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
10147 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
10148 | ac_header_preproc=yes | ||
10149 | ;; | ||
10150 | no:yes:* ) | ||
10151 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
10152 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
10153 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
10154 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
10155 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
10156 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
10157 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
10158 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10159 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
10160 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
10161 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
10162 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
10163 | ( cat <<\_ASBOX | ||
10164 | ## ------------------------------------------- ## | ||
10165 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10166 | ## ------------------------------------------- ## | ||
10167 | _ASBOX | ||
10168 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10169 | ;; | ||
10170 | esac | ||
10171 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10172 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10173 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10175 | else | ||
10176 | eval "$as_ac_Header=\$ac_header_preproc" | ||
10177 | fi | ||
10178 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10179 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10180 | echo "${ECHO_T}$ac_res" >&6; } | ||
10181 | |||
10182 | fi | ||
10183 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10184 | cat >>confdefs.h <<_ACEOF | ||
10185 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10186 | _ACEOF | ||
10187 | |||
10188 | fi | ||
10189 | |||
10190 | done | ||
10191 | |||
10192 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then | ||
10193 | |||
10194 | cat >>confdefs.h <<\_ACEOF | ||
10195 | #define SSH_TUN_LINUX 1 | ||
10196 | _ACEOF | ||
10197 | |||
10198 | |||
10199 | cat >>confdefs.h <<\_ACEOF | ||
10200 | #define SSH_TUN_COMPAT_AF 1 | ||
10201 | _ACEOF | ||
10202 | |||
10203 | |||
10204 | cat >>confdefs.h <<\_ACEOF | ||
10205 | #define SSH_TUN_PREPEND_AF 1 | ||
10206 | _ACEOF | ||
10207 | |||
10208 | fi | ||
10209 | |||
10210 | |||
10211 | |||
10212 | for ac_header in linux/seccomp.h linux/filter.h linux/audit.h | ||
10213 | do | ||
10214 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
10215 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10216 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10217 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10219 | else | ||
10220 | cat >conftest.$ac_ext <<_ACEOF | ||
10221 | /* confdefs.h. */ | ||
10222 | _ACEOF | ||
10223 | cat confdefs.h >>conftest.$ac_ext | ||
10224 | cat >>conftest.$ac_ext <<_ACEOF | ||
10225 | /* end confdefs.h. */ | ||
10226 | #include <linux/types.h> | ||
10227 | |||
10228 | #include <$ac_header> | ||
10229 | _ACEOF | ||
10230 | rm -f conftest.$ac_objext | ||
10231 | if { (ac_try="$ac_compile" | ||
10232 | case "(($ac_try" in | ||
10233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10234 | *) ac_try_echo=$ac_try;; | ||
10235 | esac | ||
10236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10237 | (eval "$ac_compile") 2>conftest.er1 | ||
10238 | ac_status=$? | ||
10239 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10240 | rm -f conftest.er1 | ||
10241 | cat conftest.err >&5 | ||
10242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10243 | (exit $ac_status); } && { | ||
10244 | test -z "$ac_c_werror_flag" || | ||
10245 | test ! -s conftest.err | ||
10246 | } && test -s conftest.$ac_objext; then | ||
10247 | eval "$as_ac_Header=yes" | ||
10248 | else | ||
10249 | echo "$as_me: failed program was:" >&5 | ||
10250 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10251 | |||
10252 | eval "$as_ac_Header=no" | ||
10253 | fi | ||
10254 | |||
10255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10256 | fi | ||
10257 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10258 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10259 | echo "${ECHO_T}$ac_res" >&6; } | ||
10260 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10261 | cat >>confdefs.h <<_ACEOF | ||
10262 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10263 | _ACEOF | ||
10264 | |||
10265 | fi | ||
10266 | |||
10267 | done | ||
10268 | |||
10269 | |||
10270 | for ac_func in prctl | ||
10271 | do | ||
10272 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10273 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10274 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
10275 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10277 | else | ||
10278 | cat >conftest.$ac_ext <<_ACEOF | ||
10279 | /* confdefs.h. */ | ||
10280 | _ACEOF | ||
10281 | cat confdefs.h >>conftest.$ac_ext | ||
10282 | cat >>conftest.$ac_ext <<_ACEOF | ||
10283 | /* end confdefs.h. */ | ||
10284 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10285 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10286 | #define $ac_func innocuous_$ac_func | ||
10287 | |||
10288 | /* System header to define __stub macros and hopefully few prototypes, | ||
10289 | which can conflict with char $ac_func (); below. | ||
10290 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10291 | <limits.h> exists even on freestanding compilers. */ | ||
10292 | |||
10293 | #ifdef __STDC__ | ||
10294 | # include <limits.h> | ||
10295 | #else | ||
10296 | # include <assert.h> | ||
10297 | #endif | ||
10298 | |||
10299 | #undef $ac_func | ||
10300 | |||
10301 | /* Override any GCC internal prototype to avoid an error. | ||
10302 | Use char because int might match the return type of a GCC | ||
10303 | builtin and then its argument prototype would still apply. */ | ||
10304 | #ifdef __cplusplus | ||
10305 | extern "C" | ||
10306 | #endif | ||
10307 | char $ac_func (); | ||
10308 | /* The GNU C library defines this for functions which it implements | ||
10309 | to always fail with ENOSYS. Some functions are actually named | ||
10310 | something starting with __ and the normal name is an alias. */ | ||
10311 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
10312 | choke me | ||
10313 | #endif | ||
10314 | |||
10315 | int | ||
10316 | main () | ||
10317 | { | ||
10318 | return $ac_func (); | ||
10319 | ; | ||
10320 | return 0; | ||
10321 | } | ||
10322 | _ACEOF | ||
10323 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10324 | if { (ac_try="$ac_link" | ||
10325 | case "(($ac_try" in | ||
10326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10327 | *) ac_try_echo=$ac_try;; | ||
10328 | esac | ||
10329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10330 | (eval "$ac_link") 2>conftest.er1 | ||
10331 | ac_status=$? | ||
10332 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10333 | rm -f conftest.er1 | ||
10334 | cat conftest.err >&5 | ||
10335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10336 | (exit $ac_status); } && { | ||
10337 | test -z "$ac_c_werror_flag" || | ||
10338 | test ! -s conftest.err | ||
10339 | } && test -s conftest$ac_exeext && | ||
10340 | $as_test_x conftest$ac_exeext; then | ||
10341 | eval "$as_ac_var=yes" | ||
10342 | else | ||
10343 | echo "$as_me: failed program was:" >&5 | ||
10344 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10345 | |||
10346 | eval "$as_ac_var=no" | ||
10347 | fi | ||
10348 | |||
10349 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10350 | conftest$ac_exeext conftest.$ac_ext | ||
10351 | fi | ||
10352 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
10353 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10354 | echo "${ECHO_T}$ac_res" >&6; } | ||
10355 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10356 | cat >>confdefs.h <<_ACEOF | ||
10357 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10358 | _ACEOF | ||
10359 | |||
10360 | fi | ||
10361 | done | ||
10362 | |||
10363 | { echo "$as_me:$LINENO: checking for seccomp architecture" >&5 | ||
10364 | echo $ECHO_N "checking for seccomp architecture... $ECHO_C" >&6; } | ||
10365 | seccomp_audit_arch= | ||
10366 | case "$host" in | ||
10367 | x86_64-*) | ||
10368 | seccomp_audit_arch=AUDIT_ARCH_X86_64 | ||
10369 | ;; | ||
10370 | i*86-*) | ||
10371 | seccomp_audit_arch=AUDIT_ARCH_I386 | ||
10372 | ;; | ||
10373 | arm*-*) | ||
10374 | seccomp_audit_arch=AUDIT_ARCH_ARM | ||
10375 | ;; | ||
10376 | aarch64*-*) | ||
10377 | seccomp_audit_arch=AUDIT_ARCH_AARCH64 | ||
10378 | ;; | ||
10379 | s390x-*) | ||
10380 | seccomp_audit_arch=AUDIT_ARCH_S390X | ||
10381 | ;; | ||
10382 | s390-*) | ||
10383 | seccomp_audit_arch=AUDIT_ARCH_S390 | ||
10384 | ;; | ||
10385 | powerpc64-*) | ||
10386 | seccomp_audit_arch=AUDIT_ARCH_PPC64 | ||
10387 | ;; | ||
10388 | powerpc64le-*) | ||
10389 | seccomp_audit_arch=AUDIT_ARCH_PPC64LE | ||
10390 | ;; | ||
10391 | mips-*) | ||
10392 | seccomp_audit_arch=AUDIT_ARCH_MIPS | ||
10393 | ;; | ||
10394 | mipsel-*) | ||
10395 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL | ||
10396 | ;; | ||
10397 | mips64-*) | ||
10398 | seccomp_audit_arch=AUDIT_ARCH_MIPS64 | ||
10399 | ;; | ||
10400 | mips64el-*) | ||
10401 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL64 | ||
10402 | ;; | ||
10403 | esac | ||
10404 | if test "x$seccomp_audit_arch" != "x" ; then | ||
10405 | { echo "$as_me:$LINENO: result: \"$seccomp_audit_arch\"" >&5 | ||
10406 | echo "${ECHO_T}\"$seccomp_audit_arch\"" >&6; } | ||
10407 | |||
10408 | cat >>confdefs.h <<_ACEOF | ||
10409 | #define SECCOMP_AUDIT_ARCH $seccomp_audit_arch | ||
10410 | _ACEOF | ||
10411 | |||
10412 | else | ||
10413 | { echo "$as_me:$LINENO: result: architecture not supported" >&5 | ||
10414 | echo "${ECHO_T}architecture not supported" >&6; } | ||
10415 | fi | ||
10416 | ;; | ||
10417 | mips-sony-bsd|mips-sony-newsos4) | ||
10418 | |||
10419 | cat >>confdefs.h <<\_ACEOF | ||
10420 | #define NEED_SETPGRP 1 | ||
10421 | _ACEOF | ||
10422 | |||
10423 | SONY=1 | ||
10424 | ;; | ||
10425 | *-*-netbsd*) | ||
10426 | check_for_libcrypt_before=1 | ||
10427 | if test "x$withval" != "xno" ; then | ||
10428 | need_dash_r=1 | ||
10429 | fi | ||
10430 | CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE" | ||
10431 | |||
10432 | cat >>confdefs.h <<\_ACEOF | ||
10433 | #define SSH_TUN_FREEBSD 1 | ||
10434 | _ACEOF | ||
10435 | |||
10436 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
10437 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
10438 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
10439 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
10440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10441 | fi | ||
10442 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
10443 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
10444 | else | ||
10445 | # Is the header compilable? | ||
10446 | { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
10447 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } | ||
10448 | cat >conftest.$ac_ext <<_ACEOF | ||
10449 | /* confdefs.h. */ | ||
10450 | _ACEOF | ||
10451 | cat confdefs.h >>conftest.$ac_ext | ||
10452 | cat >>conftest.$ac_ext <<_ACEOF | ||
10453 | /* end confdefs.h. */ | ||
10454 | $ac_includes_default | ||
10455 | #include <net/if_tap.h> | ||
10456 | _ACEOF | ||
10457 | rm -f conftest.$ac_objext | ||
10458 | if { (ac_try="$ac_compile" | ||
10459 | case "(($ac_try" in | ||
10460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10461 | *) ac_try_echo=$ac_try;; | ||
10462 | esac | ||
10463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10464 | (eval "$ac_compile") 2>conftest.er1 | ||
10465 | ac_status=$? | ||
10466 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10467 | rm -f conftest.er1 | ||
10468 | cat conftest.err >&5 | ||
10469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10470 | (exit $ac_status); } && { | ||
10471 | test -z "$ac_c_werror_flag" || | ||
10472 | test ! -s conftest.err | ||
10473 | } && test -s conftest.$ac_objext; then | ||
10474 | ac_header_compiler=yes | ||
10475 | else | ||
10476 | echo "$as_me: failed program was:" >&5 | ||
10477 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10478 | |||
10479 | ac_header_compiler=no | ||
10480 | fi | ||
10481 | |||
10482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10483 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10484 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10485 | |||
10486 | # Is the header present? | ||
10487 | { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
10488 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } | ||
10489 | cat >conftest.$ac_ext <<_ACEOF | ||
10490 | /* confdefs.h. */ | ||
10491 | _ACEOF | ||
10492 | cat confdefs.h >>conftest.$ac_ext | ||
10493 | cat >>conftest.$ac_ext <<_ACEOF | ||
10494 | /* end confdefs.h. */ | ||
10495 | #include <net/if_tap.h> | ||
10496 | _ACEOF | ||
10497 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10498 | case "(($ac_try" in | ||
10499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10500 | *) ac_try_echo=$ac_try;; | ||
10501 | esac | ||
10502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10503 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10504 | ac_status=$? | ||
10505 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10506 | rm -f conftest.er1 | ||
10507 | cat conftest.err >&5 | ||
10508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10509 | (exit $ac_status); } >/dev/null && { | ||
10510 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10511 | test ! -s conftest.err | ||
10512 | }; then | ||
10513 | ac_header_preproc=yes | ||
10514 | else | ||
10515 | echo "$as_me: failed program was:" >&5 | ||
10516 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10517 | |||
10518 | ac_header_preproc=no | ||
10519 | fi | ||
10520 | |||
10521 | rm -f conftest.err conftest.$ac_ext | ||
10522 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10523 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10524 | |||
10525 | # So? What about this header? | ||
10526 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10527 | yes:no: ) | ||
10528 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10529 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10530 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
10531 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
10532 | ac_header_preproc=yes | ||
10533 | ;; | ||
10534 | no:yes:* ) | ||
10535 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
10536 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
10537 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
10538 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
10539 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
10540 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
10541 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
10542 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10543 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
10544 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
10545 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
10546 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
10547 | ( cat <<\_ASBOX | ||
10548 | ## ------------------------------------------- ## | ||
10549 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10550 | ## ------------------------------------------- ## | ||
10551 | _ASBOX | ||
10552 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10553 | ;; | ||
10554 | esac | ||
10555 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
10556 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
10557 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
10558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10559 | else | ||
10560 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
10561 | fi | ||
10562 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
10563 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
10564 | |||
10565 | fi | ||
10566 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
10567 | : | ||
10568 | else | ||
10569 | |||
10570 | cat >>confdefs.h <<\_ACEOF | ||
10571 | #define SSH_TUN_NO_L2 1 | ||
10572 | _ACEOF | ||
10573 | |||
10574 | fi | ||
10575 | |||
10576 | |||
10577 | |||
10578 | cat >>confdefs.h <<\_ACEOF | ||
10579 | #define SSH_TUN_PREPEND_AF 1 | ||
10580 | _ACEOF | ||
10581 | |||
10582 | TEST_MALLOC_OPTIONS="AJRX" | ||
10583 | |||
10584 | cat >>confdefs.h <<\_ACEOF | ||
10585 | #define BROKEN_STRNVIS 1 | ||
10586 | _ACEOF | ||
10587 | |||
10588 | |||
10589 | cat >>confdefs.h <<\_ACEOF | ||
10590 | #define BROKEN_READ_COMPARISON 1 | ||
10591 | _ACEOF | ||
10592 | |||
10593 | ;; | ||
10594 | *-*-freebsd*) | ||
10595 | check_for_libcrypt_later=1 | ||
10596 | |||
10597 | cat >>confdefs.h <<\_ACEOF | ||
10598 | #define LOCKED_PASSWD_PREFIX "*LOCKED*" | ||
10599 | _ACEOF | ||
10600 | |||
10601 | |||
10602 | cat >>confdefs.h <<\_ACEOF | ||
10603 | #define SSH_TUN_FREEBSD 1 | ||
10604 | _ACEOF | ||
10605 | |||
10606 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
10607 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
10608 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
10609 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
10610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10611 | fi | ||
10612 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
10613 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
10614 | else | ||
10615 | # Is the header compilable? | ||
10616 | { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
10617 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } | ||
10618 | cat >conftest.$ac_ext <<_ACEOF | ||
10619 | /* confdefs.h. */ | ||
10620 | _ACEOF | ||
10621 | cat confdefs.h >>conftest.$ac_ext | ||
10622 | cat >>conftest.$ac_ext <<_ACEOF | ||
10623 | /* end confdefs.h. */ | ||
10624 | $ac_includes_default | ||
10625 | #include <net/if_tap.h> | ||
10626 | _ACEOF | ||
10627 | rm -f conftest.$ac_objext | ||
10628 | if { (ac_try="$ac_compile" | ||
10629 | case "(($ac_try" in | ||
10630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10631 | *) ac_try_echo=$ac_try;; | ||
10632 | esac | ||
10633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10634 | (eval "$ac_compile") 2>conftest.er1 | ||
10635 | ac_status=$? | ||
10636 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10637 | rm -f conftest.er1 | ||
10638 | cat conftest.err >&5 | ||
10639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10640 | (exit $ac_status); } && { | ||
10641 | test -z "$ac_c_werror_flag" || | ||
10642 | test ! -s conftest.err | ||
10643 | } && test -s conftest.$ac_objext; then | ||
10644 | ac_header_compiler=yes | ||
10645 | else | ||
10646 | echo "$as_me: failed program was:" >&5 | ||
10647 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10648 | |||
10649 | ac_header_compiler=no | ||
10650 | fi | ||
10651 | |||
10652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10653 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10654 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10655 | |||
10656 | # Is the header present? | ||
10657 | { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
10658 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } | ||
10659 | cat >conftest.$ac_ext <<_ACEOF | ||
10660 | /* confdefs.h. */ | ||
10661 | _ACEOF | ||
10662 | cat confdefs.h >>conftest.$ac_ext | ||
10663 | cat >>conftest.$ac_ext <<_ACEOF | ||
10664 | /* end confdefs.h. */ | ||
10665 | #include <net/if_tap.h> | ||
10666 | _ACEOF | ||
10667 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10668 | case "(($ac_try" in | ||
10669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10670 | *) ac_try_echo=$ac_try;; | ||
10671 | esac | ||
10672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10673 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10674 | ac_status=$? | ||
10675 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10676 | rm -f conftest.er1 | ||
10677 | cat conftest.err >&5 | ||
10678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10679 | (exit $ac_status); } >/dev/null && { | ||
10680 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10681 | test ! -s conftest.err | ||
10682 | }; then | ||
10683 | ac_header_preproc=yes | ||
10684 | else | ||
10685 | echo "$as_me: failed program was:" >&5 | ||
10686 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10687 | |||
10688 | ac_header_preproc=no | ||
10689 | fi | ||
10690 | |||
10691 | rm -f conftest.err conftest.$ac_ext | ||
10692 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10693 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10694 | |||
10695 | # So? What about this header? | ||
10696 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10697 | yes:no: ) | ||
10698 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10699 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10700 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
10701 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
10702 | ac_header_preproc=yes | ||
10703 | ;; | ||
10704 | no:yes:* ) | ||
10705 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
10706 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
10707 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
10708 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
10709 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
10710 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
10711 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
10712 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10713 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
10714 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
10715 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
10716 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
10717 | ( cat <<\_ASBOX | ||
10718 | ## ------------------------------------------- ## | ||
10719 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10720 | ## ------------------------------------------- ## | ||
10721 | _ASBOX | ||
10722 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10723 | ;; | ||
10724 | esac | ||
10725 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
10726 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
10727 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
10728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10729 | else | ||
10730 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
10731 | fi | ||
10732 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
10733 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
10734 | |||
10735 | fi | ||
10736 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
10737 | : | ||
10738 | else | ||
10739 | |||
10740 | cat >>confdefs.h <<\_ACEOF | ||
10741 | #define SSH_TUN_NO_L2 1 | ||
10742 | _ACEOF | ||
10743 | |||
10744 | fi | ||
10745 | |||
10746 | |||
10747 | |||
10748 | cat >>confdefs.h <<\_ACEOF | ||
10749 | #define BROKEN_GLOB 1 | ||
10750 | _ACEOF | ||
10751 | |||
10752 | |||
10753 | cat >>confdefs.h <<\_ACEOF | ||
10754 | #define BROKEN_STRNVIS 1 | ||
10755 | _ACEOF | ||
10756 | |||
10757 | TEST_MALLOC_OPTIONS="AJRX" | ||
10758 | # Preauth crypto occasionally uses file descriptors for crypto offload | ||
10759 | # and will crash if they cannot be opened. | ||
10760 | |||
10761 | cat >>confdefs.h <<\_ACEOF | ||
10762 | #define SANDBOX_SKIP_RLIMIT_NOFILE 1 | ||
10763 | _ACEOF | ||
10764 | |||
10765 | ;; | ||
10766 | *-*-bsdi*) | ||
10767 | cat >>confdefs.h <<\_ACEOF | ||
10768 | #define SETEUID_BREAKS_SETUID 1 | ||
10769 | _ACEOF | ||
10770 | |||
10771 | cat >>confdefs.h <<\_ACEOF | ||
10772 | #define BROKEN_SETREUID 1 | ||
10773 | _ACEOF | ||
10774 | |||
10775 | cat >>confdefs.h <<\_ACEOF | ||
10776 | #define BROKEN_SETREGID 1 | ||
10777 | _ACEOF | ||
10778 | |||
10779 | ;; | ||
10780 | *-next-*) | ||
10781 | conf_lastlog_location="/usr/adm/lastlog" | ||
10782 | conf_utmp_location=/etc/utmp | ||
10783 | conf_wtmp_location=/usr/adm/wtmp | ||
10784 | maildir=/usr/spool/mail | ||
10785 | |||
10786 | cat >>confdefs.h <<\_ACEOF | ||
10787 | #define HAVE_NEXT 1 | ||
10788 | _ACEOF | ||
10789 | |||
10790 | cat >>confdefs.h <<\_ACEOF | ||
10791 | #define BROKEN_REALPATH 1 | ||
10792 | _ACEOF | ||
10793 | |||
10794 | cat >>confdefs.h <<\_ACEOF | ||
10795 | #define USE_PIPES 1 | ||
10796 | _ACEOF | ||
10797 | |||
10798 | |||
10799 | cat >>confdefs.h <<\_ACEOF | ||
10800 | #define BROKEN_SAVED_UIDS 1 | ||
10801 | _ACEOF | ||
10802 | |||
10803 | ;; | ||
10804 | *-*-openbsd*) | ||
10805 | use_pie=auto | ||
10806 | |||
10807 | cat >>confdefs.h <<\_ACEOF | ||
10808 | #define HAVE_ATTRIBUTE__SENTINEL__ 1 | ||
10809 | _ACEOF | ||
10810 | |||
10811 | |||
10812 | cat >>confdefs.h <<\_ACEOF | ||
10813 | #define HAVE_ATTRIBUTE__BOUNDED__ 1 | ||
10814 | _ACEOF | ||
10815 | |||
10816 | |||
10817 | cat >>confdefs.h <<\_ACEOF | ||
10818 | #define SSH_TUN_OPENBSD 1 | ||
10819 | _ACEOF | ||
10820 | |||
10821 | |||
10822 | cat >>confdefs.h <<\_ACEOF | ||
10823 | #define SYSLOG_R_SAFE_IN_SIGHAND 1 | ||
10824 | _ACEOF | ||
10825 | |||
10826 | TEST_MALLOC_OPTIONS="AFGJPRX" | ||
10827 | ;; | ||
10828 | *-*-solaris*) | ||
10829 | if test "x$withval" != "xno" ; then | ||
10830 | need_dash_r=1 | ||
10831 | fi | ||
10832 | cat >>confdefs.h <<\_ACEOF | ||
10833 | #define PAM_SUN_CODEBASE 1 | ||
10834 | _ACEOF | ||
10835 | |||
10836 | cat >>confdefs.h <<\_ACEOF | ||
10837 | #define LOGIN_NEEDS_UTMPX 1 | ||
10838 | _ACEOF | ||
10839 | |||
10840 | |||
10841 | cat >>confdefs.h <<\_ACEOF | ||
10842 | #define LOGIN_NEEDS_TERM 1 | ||
10843 | _ACEOF | ||
10844 | |||
10845 | cat >>confdefs.h <<\_ACEOF | ||
10846 | #define PAM_TTY_KLUDGE 1 | ||
10847 | _ACEOF | ||
10848 | |||
10849 | |||
10850 | cat >>confdefs.h <<\_ACEOF | ||
10851 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
10852 | _ACEOF | ||
10853 | |||
10854 | cat >>confdefs.h <<\_ACEOF | ||
10855 | #define LOCKED_PASSWD_STRING "*LK*" | ||
10856 | _ACEOF | ||
10857 | |||
10858 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
10859 | |||
10860 | cat >>confdefs.h <<\_ACEOF | ||
10861 | #define SSHD_ACQUIRES_CTTY 1 | ||
10862 | _ACEOF | ||
10863 | |||
10864 | |||
10865 | cat >>confdefs.h <<\_ACEOF | ||
10866 | #define PASSWD_NEEDS_USERNAME 1 | ||
10867 | _ACEOF | ||
10868 | |||
10869 | |||
10870 | cat >>confdefs.h <<\_ACEOF | ||
10871 | #define BROKEN_TCGETATTR_ICANON 1 | ||
10872 | _ACEOF | ||
10873 | |||
10874 | external_path_file=/etc/default/login | ||
10875 | # hardwire lastlog location (can't detect it on some versions) | ||
10876 | conf_lastlog_location="/var/adm/lastlog" | ||
10877 | { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
10878 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; } | ||
10879 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
10880 | if test "$sol2ver" -ge 8; then | ||
10881 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
10882 | echo "${ECHO_T}yes" >&6; } | ||
10883 | cat >>confdefs.h <<\_ACEOF | ||
10884 | #define DISABLE_UTMP 1 | ||
10885 | _ACEOF | ||
10886 | |||
10887 | |||
10888 | cat >>confdefs.h <<\_ACEOF | ||
10889 | #define DISABLE_WTMP 1 | ||
10890 | _ACEOF | ||
10891 | |||
10892 | else | ||
10893 | { echo "$as_me:$LINENO: result: no" >&5 | ||
10894 | echo "${ECHO_T}no" >&6; } | ||
10895 | fi | ||
10896 | |||
10897 | for ac_func in setpflags | ||
10898 | do | ||
10899 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10900 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10901 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
10902 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10904 | else | ||
10905 | cat >conftest.$ac_ext <<_ACEOF | ||
10906 | /* confdefs.h. */ | ||
10907 | _ACEOF | ||
10908 | cat confdefs.h >>conftest.$ac_ext | ||
10909 | cat >>conftest.$ac_ext <<_ACEOF | ||
10910 | /* end confdefs.h. */ | ||
10911 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10912 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10913 | #define $ac_func innocuous_$ac_func | ||
10914 | |||
10915 | /* System header to define __stub macros and hopefully few prototypes, | ||
10916 | which can conflict with char $ac_func (); below. | ||
10917 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10918 | <limits.h> exists even on freestanding compilers. */ | ||
10919 | |||
10920 | #ifdef __STDC__ | ||
10921 | # include <limits.h> | ||
10922 | #else | ||
10923 | # include <assert.h> | ||
10924 | #endif | ||
10925 | |||
10926 | #undef $ac_func | ||
10927 | |||
10928 | /* Override any GCC internal prototype to avoid an error. | ||
10929 | Use char because int might match the return type of a GCC | ||
10930 | builtin and then its argument prototype would still apply. */ | ||
10931 | #ifdef __cplusplus | ||
10932 | extern "C" | ||
10933 | #endif | ||
10934 | char $ac_func (); | ||
10935 | /* The GNU C library defines this for functions which it implements | ||
10936 | to always fail with ENOSYS. Some functions are actually named | ||
10937 | something starting with __ and the normal name is an alias. */ | ||
10938 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
10939 | choke me | ||
10940 | #endif | ||
10941 | |||
10942 | int | ||
10943 | main () | ||
10944 | { | ||
10945 | return $ac_func (); | ||
10946 | ; | ||
10947 | return 0; | ||
10948 | } | ||
10949 | _ACEOF | ||
10950 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10951 | if { (ac_try="$ac_link" | ||
10952 | case "(($ac_try" in | ||
10953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10954 | *) ac_try_echo=$ac_try;; | ||
10955 | esac | ||
10956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10957 | (eval "$ac_link") 2>conftest.er1 | ||
10958 | ac_status=$? | ||
10959 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10960 | rm -f conftest.er1 | ||
10961 | cat conftest.err >&5 | ||
10962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10963 | (exit $ac_status); } && { | ||
10964 | test -z "$ac_c_werror_flag" || | ||
10965 | test ! -s conftest.err | ||
10966 | } && test -s conftest$ac_exeext && | ||
10967 | $as_test_x conftest$ac_exeext; then | ||
10968 | eval "$as_ac_var=yes" | ||
10969 | else | ||
10970 | echo "$as_me: failed program was:" >&5 | ||
10971 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10972 | |||
10973 | eval "$as_ac_var=no" | ||
10974 | fi | ||
10975 | |||
10976 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10977 | conftest$ac_exeext conftest.$ac_ext | ||
10978 | fi | ||
10979 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
10980 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10981 | echo "${ECHO_T}$ac_res" >&6; } | ||
10982 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10983 | cat >>confdefs.h <<_ACEOF | ||
10984 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10985 | _ACEOF | ||
10986 | |||
10987 | fi | ||
10988 | done | ||
10989 | |||
10990 | |||
10991 | for ac_func in setppriv | ||
10992 | do | ||
10993 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10994 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10995 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
10996 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10998 | else | ||
10999 | cat >conftest.$ac_ext <<_ACEOF | ||
11000 | /* confdefs.h. */ | ||
11001 | _ACEOF | ||
11002 | cat confdefs.h >>conftest.$ac_ext | ||
11003 | cat >>conftest.$ac_ext <<_ACEOF | ||
11004 | /* end confdefs.h. */ | ||
11005 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11006 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11007 | #define $ac_func innocuous_$ac_func | ||
11008 | |||
11009 | /* System header to define __stub macros and hopefully few prototypes, | ||
11010 | which can conflict with char $ac_func (); below. | ||
11011 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11012 | <limits.h> exists even on freestanding compilers. */ | ||
11013 | |||
11014 | #ifdef __STDC__ | ||
11015 | # include <limits.h> | ||
11016 | #else | ||
11017 | # include <assert.h> | ||
11018 | #endif | ||
11019 | |||
11020 | #undef $ac_func | ||
11021 | |||
11022 | /* Override any GCC internal prototype to avoid an error. | ||
11023 | Use char because int might match the return type of a GCC | ||
11024 | builtin and then its argument prototype would still apply. */ | ||
11025 | #ifdef __cplusplus | ||
11026 | extern "C" | ||
11027 | #endif | ||
11028 | char $ac_func (); | ||
11029 | /* The GNU C library defines this for functions which it implements | ||
11030 | to always fail with ENOSYS. Some functions are actually named | ||
11031 | something starting with __ and the normal name is an alias. */ | ||
11032 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11033 | choke me | ||
11034 | #endif | ||
11035 | |||
11036 | int | ||
11037 | main () | ||
11038 | { | ||
11039 | return $ac_func (); | ||
11040 | ; | ||
11041 | return 0; | ||
11042 | } | ||
11043 | _ACEOF | ||
11044 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11045 | if { (ac_try="$ac_link" | ||
11046 | case "(($ac_try" in | ||
11047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11048 | *) ac_try_echo=$ac_try;; | ||
11049 | esac | ||
11050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11051 | (eval "$ac_link") 2>conftest.er1 | ||
11052 | ac_status=$? | ||
11053 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11054 | rm -f conftest.er1 | ||
11055 | cat conftest.err >&5 | ||
11056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11057 | (exit $ac_status); } && { | ||
11058 | test -z "$ac_c_werror_flag" || | ||
11059 | test ! -s conftest.err | ||
11060 | } && test -s conftest$ac_exeext && | ||
11061 | $as_test_x conftest$ac_exeext; then | ||
11062 | eval "$as_ac_var=yes" | ||
11063 | else | ||
11064 | echo "$as_me: failed program was:" >&5 | ||
11065 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11066 | |||
11067 | eval "$as_ac_var=no" | ||
11068 | fi | ||
11069 | |||
11070 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11071 | conftest$ac_exeext conftest.$ac_ext | ||
11072 | fi | ||
11073 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11074 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11075 | echo "${ECHO_T}$ac_res" >&6; } | ||
11076 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11077 | cat >>confdefs.h <<_ACEOF | ||
11078 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11079 | _ACEOF | ||
11080 | |||
11081 | fi | ||
11082 | done | ||
11083 | |||
11084 | |||
11085 | for ac_func in priv_basicset | ||
11086 | do | ||
11087 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11088 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11089 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11090 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11092 | else | ||
11093 | cat >conftest.$ac_ext <<_ACEOF | ||
11094 | /* confdefs.h. */ | ||
11095 | _ACEOF | ||
11096 | cat confdefs.h >>conftest.$ac_ext | ||
11097 | cat >>conftest.$ac_ext <<_ACEOF | ||
11098 | /* end confdefs.h. */ | ||
11099 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11100 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11101 | #define $ac_func innocuous_$ac_func | ||
11102 | |||
11103 | /* System header to define __stub macros and hopefully few prototypes, | ||
11104 | which can conflict with char $ac_func (); below. | ||
11105 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11106 | <limits.h> exists even on freestanding compilers. */ | ||
11107 | |||
11108 | #ifdef __STDC__ | ||
11109 | # include <limits.h> | ||
11110 | #else | ||
11111 | # include <assert.h> | ||
11112 | #endif | ||
11113 | |||
11114 | #undef $ac_func | ||
11115 | |||
11116 | /* Override any GCC internal prototype to avoid an error. | ||
11117 | Use char because int might match the return type of a GCC | ||
11118 | builtin and then its argument prototype would still apply. */ | ||
11119 | #ifdef __cplusplus | ||
11120 | extern "C" | ||
11121 | #endif | ||
11122 | char $ac_func (); | ||
11123 | /* The GNU C library defines this for functions which it implements | ||
11124 | to always fail with ENOSYS. Some functions are actually named | ||
11125 | something starting with __ and the normal name is an alias. */ | ||
11126 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11127 | choke me | ||
11128 | #endif | ||
11129 | |||
11130 | int | ||
11131 | main () | ||
11132 | { | ||
11133 | return $ac_func (); | ||
11134 | ; | ||
11135 | return 0; | ||
11136 | } | ||
11137 | _ACEOF | ||
11138 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11139 | if { (ac_try="$ac_link" | ||
11140 | case "(($ac_try" in | ||
11141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11142 | *) ac_try_echo=$ac_try;; | ||
11143 | esac | ||
11144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11145 | (eval "$ac_link") 2>conftest.er1 | ||
11146 | ac_status=$? | ||
11147 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11148 | rm -f conftest.er1 | ||
11149 | cat conftest.err >&5 | ||
11150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11151 | (exit $ac_status); } && { | ||
11152 | test -z "$ac_c_werror_flag" || | ||
11153 | test ! -s conftest.err | ||
11154 | } && test -s conftest$ac_exeext && | ||
11155 | $as_test_x conftest$ac_exeext; then | ||
11156 | eval "$as_ac_var=yes" | ||
11157 | else | ||
11158 | echo "$as_me: failed program was:" >&5 | ||
11159 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11160 | |||
11161 | eval "$as_ac_var=no" | ||
11162 | fi | ||
11163 | |||
11164 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11165 | conftest$ac_exeext conftest.$ac_ext | ||
11166 | fi | ||
11167 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11168 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11169 | echo "${ECHO_T}$ac_res" >&6; } | ||
11170 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11171 | cat >>confdefs.h <<_ACEOF | ||
11172 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11173 | _ACEOF | ||
11174 | |||
11175 | fi | ||
11176 | done | ||
11177 | |||
11178 | |||
11179 | for ac_header in priv.h | ||
11180 | do | ||
11181 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
11182 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11183 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
11184 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
11185 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11187 | fi | ||
11188 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
11189 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11190 | echo "${ECHO_T}$ac_res" >&6; } | ||
11191 | else | ||
11192 | # Is the header compilable? | ||
11193 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
11194 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
11195 | cat >conftest.$ac_ext <<_ACEOF | ||
11196 | /* confdefs.h. */ | ||
11197 | _ACEOF | ||
11198 | cat confdefs.h >>conftest.$ac_ext | ||
11199 | cat >>conftest.$ac_ext <<_ACEOF | ||
11200 | /* end confdefs.h. */ | ||
11201 | $ac_includes_default | ||
11202 | #include <$ac_header> | ||
11203 | _ACEOF | ||
11204 | rm -f conftest.$ac_objext | ||
11205 | if { (ac_try="$ac_compile" | ||
11206 | case "(($ac_try" in | ||
11207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11208 | *) ac_try_echo=$ac_try;; | ||
11209 | esac | ||
11210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11211 | (eval "$ac_compile") 2>conftest.er1 | ||
11212 | ac_status=$? | ||
11213 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11214 | rm -f conftest.er1 | ||
11215 | cat conftest.err >&5 | ||
11216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11217 | (exit $ac_status); } && { | ||
11218 | test -z "$ac_c_werror_flag" || | ||
11219 | test ! -s conftest.err | ||
11220 | } && test -s conftest.$ac_objext; then | ||
11221 | ac_header_compiler=yes | ||
11222 | else | ||
11223 | echo "$as_me: failed program was:" >&5 | ||
11224 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11225 | |||
11226 | ac_header_compiler=no | ||
11227 | fi | ||
11228 | |||
11229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11230 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
11231 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
11232 | |||
11233 | # Is the header present? | ||
11234 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
11235 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
11236 | cat >conftest.$ac_ext <<_ACEOF | ||
11237 | /* confdefs.h. */ | ||
11238 | _ACEOF | ||
11239 | cat confdefs.h >>conftest.$ac_ext | ||
11240 | cat >>conftest.$ac_ext <<_ACEOF | ||
11241 | /* end confdefs.h. */ | ||
11242 | #include <$ac_header> | ||
11243 | _ACEOF | ||
11244 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
11245 | case "(($ac_try" in | ||
11246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11247 | *) ac_try_echo=$ac_try;; | ||
11248 | esac | ||
11249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11250 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
11251 | ac_status=$? | ||
11252 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11253 | rm -f conftest.er1 | ||
11254 | cat conftest.err >&5 | ||
11255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11256 | (exit $ac_status); } >/dev/null && { | ||
11257 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
11258 | test ! -s conftest.err | ||
11259 | }; then | ||
11260 | ac_header_preproc=yes | ||
11261 | else | ||
11262 | echo "$as_me: failed program was:" >&5 | ||
11263 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11264 | |||
11265 | ac_header_preproc=no | ||
11266 | fi | ||
11267 | |||
11268 | rm -f conftest.err conftest.$ac_ext | ||
11269 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
11270 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
11271 | |||
11272 | # So? What about this header? | ||
11273 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
11274 | yes:no: ) | ||
11275 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
11276 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
11277 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
11278 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
11279 | ac_header_preproc=yes | ||
11280 | ;; | ||
11281 | no:yes:* ) | ||
11282 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
11283 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
11284 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
11285 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
11286 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
11287 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
11288 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
11289 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
11290 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
11291 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
11292 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
11293 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
11294 | ( cat <<\_ASBOX | ||
11295 | ## ------------------------------------------- ## | ||
11296 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
11297 | ## ------------------------------------------- ## | ||
11298 | _ASBOX | ||
11299 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
11300 | ;; | ||
11301 | esac | ||
11302 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
11303 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
11304 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11306 | else | ||
11307 | eval "$as_ac_Header=\$ac_header_preproc" | ||
11308 | fi | ||
11309 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
11310 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11311 | echo "${ECHO_T}$ac_res" >&6; } | ||
11312 | |||
11313 | fi | ||
11314 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
11315 | cat >>confdefs.h <<_ACEOF | ||
11316 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
11317 | _ACEOF | ||
11318 | |||
11319 | fi | ||
11320 | |||
11321 | done | ||
11322 | |||
11323 | |||
11324 | # Check whether --with-solaris-contracts was given. | ||
11325 | if test "${with_solaris_contracts+set}" = set; then | ||
11326 | withval=$with_solaris_contracts; | ||
11327 | { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5 | ||
11328 | echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; } | ||
11329 | if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then | ||
11330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11331 | else | ||
11332 | ac_check_lib_save_LIBS=$LIBS | ||
11333 | LIBS="-lcontract $LIBS" | ||
11334 | cat >conftest.$ac_ext <<_ACEOF | ||
11335 | /* confdefs.h. */ | ||
11336 | _ACEOF | ||
11337 | cat confdefs.h >>conftest.$ac_ext | ||
11338 | cat >>conftest.$ac_ext <<_ACEOF | ||
11339 | /* end confdefs.h. */ | ||
11340 | |||
11341 | /* Override any GCC internal prototype to avoid an error. | ||
11342 | Use char because int might match the return type of a GCC | ||
11343 | builtin and then its argument prototype would still apply. */ | ||
11344 | #ifdef __cplusplus | ||
11345 | extern "C" | ||
11346 | #endif | ||
11347 | char ct_tmpl_activate (); | ||
11348 | int | ||
11349 | main () | ||
11350 | { | ||
11351 | return ct_tmpl_activate (); | ||
11352 | ; | ||
11353 | return 0; | ||
11354 | } | ||
11355 | _ACEOF | ||
11356 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11357 | if { (ac_try="$ac_link" | ||
11358 | case "(($ac_try" in | ||
11359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11360 | *) ac_try_echo=$ac_try;; | ||
11361 | esac | ||
11362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11363 | (eval "$ac_link") 2>conftest.er1 | ||
11364 | ac_status=$? | ||
11365 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11366 | rm -f conftest.er1 | ||
11367 | cat conftest.err >&5 | ||
11368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11369 | (exit $ac_status); } && { | ||
11370 | test -z "$ac_c_werror_flag" || | ||
11371 | test ! -s conftest.err | ||
11372 | } && test -s conftest$ac_exeext && | ||
11373 | $as_test_x conftest$ac_exeext; then | ||
11374 | ac_cv_lib_contract_ct_tmpl_activate=yes | ||
11375 | else | ||
11376 | echo "$as_me: failed program was:" >&5 | ||
11377 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11378 | |||
11379 | ac_cv_lib_contract_ct_tmpl_activate=no | ||
11380 | fi | ||
11381 | |||
11382 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11383 | conftest$ac_exeext conftest.$ac_ext | ||
11384 | LIBS=$ac_check_lib_save_LIBS | ||
11385 | fi | ||
11386 | { echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 | ||
11387 | echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; } | ||
11388 | if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then | ||
11389 | |||
11390 | cat >>confdefs.h <<\_ACEOF | ||
11391 | #define USE_SOLARIS_PROCESS_CONTRACTS 1 | ||
11392 | _ACEOF | ||
11393 | |||
11394 | LIBS="$LIBS -lcontract" | ||
11395 | SPC_MSG="yes" | ||
11396 | fi | ||
11397 | |||
11398 | |||
11399 | fi | ||
11400 | |||
11401 | |||
11402 | # Check whether --with-solaris-projects was given. | ||
11403 | if test "${with_solaris_projects+set}" = set; then | ||
11404 | withval=$with_solaris_projects; | ||
11405 | { echo "$as_me:$LINENO: checking for setproject in -lproject" >&5 | ||
11406 | echo $ECHO_N "checking for setproject in -lproject... $ECHO_C" >&6; } | ||
11407 | if test "${ac_cv_lib_project_setproject+set}" = set; then | ||
11408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11409 | else | ||
11410 | ac_check_lib_save_LIBS=$LIBS | ||
11411 | LIBS="-lproject $LIBS" | ||
11412 | cat >conftest.$ac_ext <<_ACEOF | ||
11413 | /* confdefs.h. */ | ||
11414 | _ACEOF | ||
11415 | cat confdefs.h >>conftest.$ac_ext | ||
11416 | cat >>conftest.$ac_ext <<_ACEOF | ||
11417 | /* end confdefs.h. */ | ||
11418 | |||
11419 | /* Override any GCC internal prototype to avoid an error. | ||
11420 | Use char because int might match the return type of a GCC | ||
11421 | builtin and then its argument prototype would still apply. */ | ||
11422 | #ifdef __cplusplus | ||
11423 | extern "C" | ||
11424 | #endif | ||
11425 | char setproject (); | ||
11426 | int | ||
11427 | main () | ||
11428 | { | ||
11429 | return setproject (); | ||
11430 | ; | ||
11431 | return 0; | ||
11432 | } | ||
11433 | _ACEOF | ||
11434 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11435 | if { (ac_try="$ac_link" | ||
11436 | case "(($ac_try" in | ||
11437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11438 | *) ac_try_echo=$ac_try;; | ||
11439 | esac | ||
11440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11441 | (eval "$ac_link") 2>conftest.er1 | ||
11442 | ac_status=$? | ||
11443 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11444 | rm -f conftest.er1 | ||
11445 | cat conftest.err >&5 | ||
11446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11447 | (exit $ac_status); } && { | ||
11448 | test -z "$ac_c_werror_flag" || | ||
11449 | test ! -s conftest.err | ||
11450 | } && test -s conftest$ac_exeext && | ||
11451 | $as_test_x conftest$ac_exeext; then | ||
11452 | ac_cv_lib_project_setproject=yes | ||
11453 | else | ||
11454 | echo "$as_me: failed program was:" >&5 | ||
11455 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11456 | |||
11457 | ac_cv_lib_project_setproject=no | ||
11458 | fi | ||
11459 | |||
11460 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11461 | conftest$ac_exeext conftest.$ac_ext | ||
11462 | LIBS=$ac_check_lib_save_LIBS | ||
11463 | fi | ||
11464 | { echo "$as_me:$LINENO: result: $ac_cv_lib_project_setproject" >&5 | ||
11465 | echo "${ECHO_T}$ac_cv_lib_project_setproject" >&6; } | ||
11466 | if test $ac_cv_lib_project_setproject = yes; then | ||
11467 | |||
11468 | cat >>confdefs.h <<\_ACEOF | ||
11469 | #define USE_SOLARIS_PROJECTS 1 | ||
11470 | _ACEOF | ||
11471 | |||
11472 | LIBS="$LIBS -lproject" | ||
11473 | SP_MSG="yes" | ||
11474 | fi | ||
11475 | |||
11476 | |||
11477 | fi | ||
11478 | |||
11479 | |||
11480 | # Check whether --with-solaris-privs was given. | ||
11481 | if test "${with_solaris_privs+set}" = set; then | ||
11482 | withval=$with_solaris_privs; | ||
11483 | { echo "$as_me:$LINENO: checking for Solaris/Illumos privilege support" >&5 | ||
11484 | echo $ECHO_N "checking for Solaris/Illumos privilege support... $ECHO_C" >&6; } | ||
11485 | if test "x$ac_cv_func_setppriv" = "xyes" -a \ | ||
11486 | "x$ac_cv_header_priv_h" = "xyes" ; then | ||
11487 | SOLARIS_PRIVS=yes | ||
11488 | { echo "$as_me:$LINENO: result: found" >&5 | ||
11489 | echo "${ECHO_T}found" >&6; } | ||
11490 | |||
11491 | cat >>confdefs.h <<\_ACEOF | ||
11492 | #define NO_UID_RESTORATION_TEST 1 | ||
11493 | _ACEOF | ||
11494 | |||
11495 | |||
11496 | cat >>confdefs.h <<\_ACEOF | ||
11497 | #define USE_SOLARIS_PRIVS 1 | ||
11498 | _ACEOF | ||
11499 | |||
11500 | SPP_MSG="yes" | ||
11501 | else | ||
11502 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
11503 | echo "${ECHO_T}not found" >&6; } | ||
11504 | { { echo "$as_me:$LINENO: error: *** must have support for Solaris privileges to use --with-solaris-privs" >&5 | ||
11505 | echo "$as_me: error: *** must have support for Solaris privileges to use --with-solaris-privs" >&2;} | ||
11506 | { (exit 1); exit 1; }; } | ||
11507 | fi | ||
11508 | |||
11509 | fi | ||
11510 | |||
11511 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
11512 | ;; | ||
11513 | *-*-sunos4*) | ||
11514 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
11515 | |||
11516 | for ac_func in getpwanam | ||
11517 | do | ||
11518 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11519 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11520 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11521 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11523 | else | ||
11524 | cat >conftest.$ac_ext <<_ACEOF | ||
11525 | /* confdefs.h. */ | ||
11526 | _ACEOF | ||
11527 | cat confdefs.h >>conftest.$ac_ext | ||
11528 | cat >>conftest.$ac_ext <<_ACEOF | ||
11529 | /* end confdefs.h. */ | ||
11530 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11531 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11532 | #define $ac_func innocuous_$ac_func | ||
11533 | |||
11534 | /* System header to define __stub macros and hopefully few prototypes, | ||
11535 | which can conflict with char $ac_func (); below. | ||
11536 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11537 | <limits.h> exists even on freestanding compilers. */ | ||
11538 | |||
11539 | #ifdef __STDC__ | ||
11540 | # include <limits.h> | ||
11541 | #else | ||
11542 | # include <assert.h> | ||
11543 | #endif | ||
11544 | |||
11545 | #undef $ac_func | ||
11546 | |||
11547 | /* Override any GCC internal prototype to avoid an error. | ||
11548 | Use char because int might match the return type of a GCC | ||
11549 | builtin and then its argument prototype would still apply. */ | ||
11550 | #ifdef __cplusplus | ||
11551 | extern "C" | ||
11552 | #endif | ||
11553 | char $ac_func (); | ||
11554 | /* The GNU C library defines this for functions which it implements | ||
11555 | to always fail with ENOSYS. Some functions are actually named | ||
11556 | something starting with __ and the normal name is an alias. */ | ||
11557 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11558 | choke me | ||
11559 | #endif | ||
11560 | |||
11561 | int | ||
11562 | main () | ||
11563 | { | ||
11564 | return $ac_func (); | ||
11565 | ; | ||
11566 | return 0; | ||
11567 | } | ||
11568 | _ACEOF | ||
11569 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11570 | if { (ac_try="$ac_link" | ||
11571 | case "(($ac_try" in | ||
11572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11573 | *) ac_try_echo=$ac_try;; | ||
11574 | esac | ||
11575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11576 | (eval "$ac_link") 2>conftest.er1 | ||
11577 | ac_status=$? | ||
11578 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11579 | rm -f conftest.er1 | ||
11580 | cat conftest.err >&5 | ||
11581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11582 | (exit $ac_status); } && { | ||
11583 | test -z "$ac_c_werror_flag" || | ||
11584 | test ! -s conftest.err | ||
11585 | } && test -s conftest$ac_exeext && | ||
11586 | $as_test_x conftest$ac_exeext; then | ||
11587 | eval "$as_ac_var=yes" | ||
11588 | else | ||
11589 | echo "$as_me: failed program was:" >&5 | ||
11590 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11591 | |||
11592 | eval "$as_ac_var=no" | ||
11593 | fi | ||
11594 | |||
11595 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11596 | conftest$ac_exeext conftest.$ac_ext | ||
11597 | fi | ||
11598 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11599 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11600 | echo "${ECHO_T}$ac_res" >&6; } | ||
11601 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11602 | cat >>confdefs.h <<_ACEOF | ||
11603 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11604 | _ACEOF | ||
11605 | |||
11606 | fi | ||
11607 | done | ||
11608 | |||
11609 | cat >>confdefs.h <<\_ACEOF | ||
11610 | #define PAM_SUN_CODEBASE 1 | ||
11611 | _ACEOF | ||
11612 | |||
11613 | conf_utmp_location=/etc/utmp | ||
11614 | conf_wtmp_location=/var/adm/wtmp | ||
11615 | conf_lastlog_location=/var/adm/lastlog | ||
11616 | cat >>confdefs.h <<\_ACEOF | ||
11617 | #define USE_PIPES 1 | ||
11618 | _ACEOF | ||
11619 | |||
11620 | ;; | ||
11621 | *-ncr-sysv*) | ||
11622 | LIBS="$LIBS -lc89" | ||
11623 | cat >>confdefs.h <<\_ACEOF | ||
11624 | #define USE_PIPES 1 | ||
11625 | _ACEOF | ||
11626 | |||
11627 | cat >>confdefs.h <<\_ACEOF | ||
11628 | #define SSHD_ACQUIRES_CTTY 1 | ||
11629 | _ACEOF | ||
11630 | |||
11631 | cat >>confdefs.h <<\_ACEOF | ||
11632 | #define SETEUID_BREAKS_SETUID 1 | ||
11633 | _ACEOF | ||
11634 | |||
11635 | cat >>confdefs.h <<\_ACEOF | ||
11636 | #define BROKEN_SETREUID 1 | ||
11637 | _ACEOF | ||
11638 | |||
11639 | cat >>confdefs.h <<\_ACEOF | ||
11640 | #define BROKEN_SETREGID 1 | ||
11641 | _ACEOF | ||
11642 | |||
11643 | ;; | ||
11644 | *-sni-sysv*) | ||
11645 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
11646 | |||
11647 | { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 | ||
11648 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; } | ||
11649 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then | ||
11650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11651 | else | ||
11652 | ac_check_lib_save_LIBS=$LIBS | ||
11653 | LIBS="-ldl $LIBS" | ||
11654 | cat >conftest.$ac_ext <<_ACEOF | ||
11655 | /* confdefs.h. */ | ||
11656 | _ACEOF | ||
11657 | cat confdefs.h >>conftest.$ac_ext | ||
11658 | cat >>conftest.$ac_ext <<_ACEOF | ||
11659 | /* end confdefs.h. */ | ||
11660 | |||
11661 | /* Override any GCC internal prototype to avoid an error. | ||
11662 | Use char because int might match the return type of a GCC | ||
11663 | builtin and then its argument prototype would still apply. */ | ||
11664 | #ifdef __cplusplus | ||
11665 | extern "C" | ||
11666 | #endif | ||
11667 | char dlsym (); | ||
11668 | int | ||
11669 | main () | ||
11670 | { | ||
11671 | return dlsym (); | ||
11672 | ; | ||
11673 | return 0; | ||
11674 | } | ||
11675 | _ACEOF | ||
11676 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11677 | if { (ac_try="$ac_link" | ||
11678 | case "(($ac_try" in | ||
11679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11680 | *) ac_try_echo=$ac_try;; | ||
11681 | esac | ||
11682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11683 | (eval "$ac_link") 2>conftest.er1 | ||
11684 | ac_status=$? | ||
11685 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11686 | rm -f conftest.er1 | ||
11687 | cat conftest.err >&5 | ||
11688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11689 | (exit $ac_status); } && { | ||
11690 | test -z "$ac_c_werror_flag" || | ||
11691 | test ! -s conftest.err | ||
11692 | } && test -s conftest$ac_exeext && | ||
11693 | $as_test_x conftest$ac_exeext; then | ||
11694 | ac_cv_lib_dl_dlsym=yes | ||
11695 | else | ||
11696 | echo "$as_me: failed program was:" >&5 | ||
11697 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11698 | |||
11699 | ac_cv_lib_dl_dlsym=no | ||
11700 | fi | ||
11701 | |||
11702 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11703 | conftest$ac_exeext conftest.$ac_ext | ||
11704 | LIBS=$ac_check_lib_save_LIBS | ||
11705 | fi | ||
11706 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 | ||
11707 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; } | ||
11708 | if test $ac_cv_lib_dl_dlsym = yes; then | ||
11709 | cat >>confdefs.h <<_ACEOF | ||
11710 | #define HAVE_LIBDL 1 | ||
11711 | _ACEOF | ||
11712 | |||
11713 | LIBS="-ldl $LIBS" | ||
11714 | |||
11715 | fi | ||
11716 | |||
11717 | # -lresolv needs to be at the end of LIBS or DNS lookups break | ||
11718 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
11719 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } | ||
11720 | if test "${ac_cv_lib_resolv_res_query+set}" = set; then | ||
11721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11722 | else | ||
11723 | ac_check_lib_save_LIBS=$LIBS | ||
11724 | LIBS="-lresolv $LIBS" | ||
11725 | cat >conftest.$ac_ext <<_ACEOF | ||
11726 | /* confdefs.h. */ | ||
11727 | _ACEOF | ||
11728 | cat confdefs.h >>conftest.$ac_ext | ||
11729 | cat >>conftest.$ac_ext <<_ACEOF | ||
11730 | /* end confdefs.h. */ | ||
11731 | |||
11732 | /* Override any GCC internal prototype to avoid an error. | ||
11733 | Use char because int might match the return type of a GCC | ||
11734 | builtin and then its argument prototype would still apply. */ | ||
11735 | #ifdef __cplusplus | ||
11736 | extern "C" | ||
11737 | #endif | ||
11738 | char res_query (); | ||
11739 | int | ||
11740 | main () | ||
11741 | { | ||
11742 | return res_query (); | ||
11743 | ; | ||
11744 | return 0; | ||
11745 | } | ||
11746 | _ACEOF | ||
11747 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11748 | if { (ac_try="$ac_link" | ||
11749 | case "(($ac_try" in | ||
11750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11751 | *) ac_try_echo=$ac_try;; | ||
11752 | esac | ||
11753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11754 | (eval "$ac_link") 2>conftest.er1 | ||
11755 | ac_status=$? | ||
11756 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11757 | rm -f conftest.er1 | ||
11758 | cat conftest.err >&5 | ||
11759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11760 | (exit $ac_status); } && { | ||
11761 | test -z "$ac_c_werror_flag" || | ||
11762 | test ! -s conftest.err | ||
11763 | } && test -s conftest$ac_exeext && | ||
11764 | $as_test_x conftest$ac_exeext; then | ||
11765 | ac_cv_lib_resolv_res_query=yes | ||
11766 | else | ||
11767 | echo "$as_me: failed program was:" >&5 | ||
11768 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11769 | |||
11770 | ac_cv_lib_resolv_res_query=no | ||
11771 | fi | ||
11772 | |||
11773 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11774 | conftest$ac_exeext conftest.$ac_ext | ||
11775 | LIBS=$ac_check_lib_save_LIBS | ||
11776 | fi | ||
11777 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5 | ||
11778 | echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; } | ||
11779 | if test $ac_cv_lib_resolv_res_query = yes; then | ||
11780 | LIBS="$LIBS -lresolv" | ||
11781 | fi | ||
11782 | |||
11783 | IPADDR_IN_DISPLAY=yes | ||
11784 | cat >>confdefs.h <<\_ACEOF | ||
11785 | #define USE_PIPES 1 | ||
11786 | _ACEOF | ||
11787 | |||
11788 | cat >>confdefs.h <<\_ACEOF | ||
11789 | #define IP_TOS_IS_BROKEN 1 | ||
11790 | _ACEOF | ||
11791 | |||
11792 | cat >>confdefs.h <<\_ACEOF | ||
11793 | #define SETEUID_BREAKS_SETUID 1 | ||
11794 | _ACEOF | ||
11795 | |||
11796 | cat >>confdefs.h <<\_ACEOF | ||
11797 | #define BROKEN_SETREUID 1 | ||
11798 | _ACEOF | ||
11799 | |||
11800 | cat >>confdefs.h <<\_ACEOF | ||
11801 | #define BROKEN_SETREGID 1 | ||
11802 | _ACEOF | ||
11803 | |||
11804 | cat >>confdefs.h <<\_ACEOF | ||
11805 | #define SSHD_ACQUIRES_CTTY 1 | ||
11806 | _ACEOF | ||
11807 | |||
11808 | external_path_file=/etc/default/login | ||
11809 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
11810 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
11811 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
11812 | ;; | ||
11813 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
11814 | *-*-sysv4.2*) | ||
11815 | cat >>confdefs.h <<\_ACEOF | ||
11816 | #define USE_PIPES 1 | ||
11817 | _ACEOF | ||
11818 | |||
11819 | cat >>confdefs.h <<\_ACEOF | ||
11820 | #define SETEUID_BREAKS_SETUID 1 | ||
11821 | _ACEOF | ||
11822 | |||
11823 | cat >>confdefs.h <<\_ACEOF | ||
11824 | #define BROKEN_SETREUID 1 | ||
11825 | _ACEOF | ||
11826 | |||
11827 | cat >>confdefs.h <<\_ACEOF | ||
11828 | #define BROKEN_SETREGID 1 | ||
11829 | _ACEOF | ||
11830 | |||
11831 | |||
11832 | cat >>confdefs.h <<\_ACEOF | ||
11833 | #define PASSWD_NEEDS_USERNAME 1 | ||
11834 | _ACEOF | ||
11835 | |||
11836 | cat >>confdefs.h <<\_ACEOF | ||
11837 | #define LOCKED_PASSWD_STRING "*LK*" | ||
11838 | _ACEOF | ||
11839 | |||
11840 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
11841 | ;; | ||
11842 | # UnixWare 7.x, OpenUNIX 8 | ||
11843 | *-*-sysv5*) | ||
11844 | CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf" | ||
11845 | |||
11846 | cat >>confdefs.h <<\_ACEOF | ||
11847 | #define UNIXWARE_LONG_PASSWORDS 1 | ||
11848 | _ACEOF | ||
11849 | |||
11850 | cat >>confdefs.h <<\_ACEOF | ||
11851 | #define USE_PIPES 1 | ||
11852 | _ACEOF | ||
11853 | |||
11854 | cat >>confdefs.h <<\_ACEOF | ||
11855 | #define SETEUID_BREAKS_SETUID 1 | ||
11856 | _ACEOF | ||
11857 | |||
11858 | cat >>confdefs.h <<\_ACEOF | ||
11859 | #define BROKEN_GETADDRINFO 1 | ||
11860 | _ACEOF | ||
11861 | |||
11862 | cat >>confdefs.h <<\_ACEOF | ||
11863 | #define BROKEN_SETREUID 1 | ||
11864 | _ACEOF | ||
11865 | |||
11866 | cat >>confdefs.h <<\_ACEOF | ||
11867 | #define BROKEN_SETREGID 1 | ||
11868 | _ACEOF | ||
11869 | |||
11870 | cat >>confdefs.h <<\_ACEOF | ||
11871 | #define PASSWD_NEEDS_USERNAME 1 | ||
11872 | _ACEOF | ||
11873 | |||
11874 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
11875 | case "$host" in | ||
11876 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | ||
11877 | maildir=/var/spool/mail | ||
11878 | |||
11879 | cat >>confdefs.h <<\_ACEOF | ||
11880 | #define BROKEN_LIBIAF 1 | ||
11881 | _ACEOF | ||
11882 | |||
11883 | cat >>confdefs.h <<\_ACEOF | ||
11884 | #define BROKEN_UPDWTMPX 1 | ||
11885 | _ACEOF | ||
11886 | |||
11887 | { echo "$as_me:$LINENO: checking for getluid in -lprot" >&5 | ||
11888 | echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; } | ||
11889 | if test "${ac_cv_lib_prot_getluid+set}" = set; then | ||
11890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11891 | else | ||
11892 | ac_check_lib_save_LIBS=$LIBS | ||
11893 | LIBS="-lprot $LIBS" | ||
11894 | cat >conftest.$ac_ext <<_ACEOF | ||
11895 | /* confdefs.h. */ | ||
11896 | _ACEOF | ||
11897 | cat confdefs.h >>conftest.$ac_ext | ||
11898 | cat >>conftest.$ac_ext <<_ACEOF | ||
11899 | /* end confdefs.h. */ | ||
11900 | |||
11901 | /* Override any GCC internal prototype to avoid an error. | ||
11902 | Use char because int might match the return type of a GCC | ||
11903 | builtin and then its argument prototype would still apply. */ | ||
11904 | #ifdef __cplusplus | ||
11905 | extern "C" | ||
11906 | #endif | ||
11907 | char getluid (); | ||
11908 | int | ||
11909 | main () | ||
11910 | { | ||
11911 | return getluid (); | ||
11912 | ; | ||
11913 | return 0; | ||
11914 | } | ||
11915 | _ACEOF | ||
11916 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11917 | if { (ac_try="$ac_link" | ||
11918 | case "(($ac_try" in | ||
11919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11920 | *) ac_try_echo=$ac_try;; | ||
11921 | esac | ||
11922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11923 | (eval "$ac_link") 2>conftest.er1 | ||
11924 | ac_status=$? | ||
11925 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11926 | rm -f conftest.er1 | ||
11927 | cat conftest.err >&5 | ||
11928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11929 | (exit $ac_status); } && { | ||
11930 | test -z "$ac_c_werror_flag" || | ||
11931 | test ! -s conftest.err | ||
11932 | } && test -s conftest$ac_exeext && | ||
11933 | $as_test_x conftest$ac_exeext; then | ||
11934 | ac_cv_lib_prot_getluid=yes | ||
11935 | else | ||
11936 | echo "$as_me: failed program was:" >&5 | ||
11937 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11938 | |||
11939 | ac_cv_lib_prot_getluid=no | ||
11940 | fi | ||
11941 | |||
11942 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11943 | conftest$ac_exeext conftest.$ac_ext | ||
11944 | LIBS=$ac_check_lib_save_LIBS | ||
11945 | fi | ||
11946 | { echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5 | ||
11947 | echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; } | ||
11948 | if test $ac_cv_lib_prot_getluid = yes; then | ||
11949 | LIBS="$LIBS -lprot" | ||
11950 | |||
11951 | |||
11952 | for ac_func in getluid setluid | ||
11953 | do | ||
11954 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11955 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11956 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11957 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11959 | else | ||
11960 | cat >conftest.$ac_ext <<_ACEOF | ||
11961 | /* confdefs.h. */ | ||
11962 | _ACEOF | ||
11963 | cat confdefs.h >>conftest.$ac_ext | ||
11964 | cat >>conftest.$ac_ext <<_ACEOF | ||
11965 | /* end confdefs.h. */ | ||
11966 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11967 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11968 | #define $ac_func innocuous_$ac_func | ||
11969 | |||
11970 | /* System header to define __stub macros and hopefully few prototypes, | ||
11971 | which can conflict with char $ac_func (); below. | ||
11972 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11973 | <limits.h> exists even on freestanding compilers. */ | ||
11974 | |||
11975 | #ifdef __STDC__ | ||
11976 | # include <limits.h> | ||
11977 | #else | ||
11978 | # include <assert.h> | ||
11979 | #endif | ||
11980 | |||
11981 | #undef $ac_func | ||
11982 | |||
11983 | /* Override any GCC internal prototype to avoid an error. | ||
11984 | Use char because int might match the return type of a GCC | ||
11985 | builtin and then its argument prototype would still apply. */ | ||
11986 | #ifdef __cplusplus | ||
11987 | extern "C" | ||
11988 | #endif | ||
11989 | char $ac_func (); | ||
11990 | /* The GNU C library defines this for functions which it implements | ||
11991 | to always fail with ENOSYS. Some functions are actually named | ||
11992 | something starting with __ and the normal name is an alias. */ | ||
11993 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11994 | choke me | ||
11995 | #endif | ||
11996 | |||
11997 | int | ||
11998 | main () | ||
11999 | { | ||
12000 | return $ac_func (); | ||
12001 | ; | ||
12002 | return 0; | ||
12003 | } | ||
12004 | _ACEOF | ||
12005 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12006 | if { (ac_try="$ac_link" | ||
12007 | case "(($ac_try" in | ||
12008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12009 | *) ac_try_echo=$ac_try;; | ||
12010 | esac | ||
12011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12012 | (eval "$ac_link") 2>conftest.er1 | ||
12013 | ac_status=$? | ||
12014 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12015 | rm -f conftest.er1 | ||
12016 | cat conftest.err >&5 | ||
12017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12018 | (exit $ac_status); } && { | ||
12019 | test -z "$ac_c_werror_flag" || | ||
12020 | test ! -s conftest.err | ||
12021 | } && test -s conftest$ac_exeext && | ||
12022 | $as_test_x conftest$ac_exeext; then | ||
12023 | eval "$as_ac_var=yes" | ||
12024 | else | ||
12025 | echo "$as_me: failed program was:" >&5 | ||
12026 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12027 | |||
12028 | eval "$as_ac_var=no" | ||
12029 | fi | ||
12030 | |||
12031 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12032 | conftest$ac_exeext conftest.$ac_ext | ||
12033 | fi | ||
12034 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12035 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12036 | echo "${ECHO_T}$ac_res" >&6; } | ||
12037 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12038 | cat >>confdefs.h <<_ACEOF | ||
12039 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12040 | _ACEOF | ||
12041 | |||
12042 | fi | ||
12043 | done | ||
12044 | |||
12045 | cat >>confdefs.h <<\_ACEOF | ||
12046 | #define HAVE_SECUREWARE 1 | ||
12047 | _ACEOF | ||
12048 | |||
12049 | cat >>confdefs.h <<\_ACEOF | ||
12050 | #define DISABLE_SHADOW 1 | ||
12051 | _ACEOF | ||
12052 | |||
12053 | |||
12054 | fi | ||
12055 | |||
12056 | ;; | ||
12057 | *) cat >>confdefs.h <<\_ACEOF | ||
12058 | #define LOCKED_PASSWD_STRING "*LK*" | ||
12059 | _ACEOF | ||
12060 | |||
12061 | check_for_libcrypt_later=1 | ||
12062 | ;; | ||
12063 | esac | ||
12064 | ;; | ||
12065 | *-*-sysv*) | ||
12066 | ;; | ||
12067 | # SCO UNIX and OEM versions of SCO UNIX | ||
12068 | *-*-sco3.2v4*) | ||
12069 | { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5 | ||
12070 | echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;} | ||
12071 | { (exit 1); exit 1; }; } | ||
12072 | ;; | ||
12073 | # SCO OpenServer 5.x | ||
12074 | *-*-sco3.2v5*) | ||
12075 | if test -z "$GCC"; then | ||
12076 | CFLAGS="$CFLAGS -belf" | ||
12077 | fi | ||
12078 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
12079 | no_dev_ptmx=1 | ||
12080 | cat >>confdefs.h <<\_ACEOF | ||
12081 | #define USE_PIPES 1 | ||
12082 | _ACEOF | ||
12083 | |||
12084 | cat >>confdefs.h <<\_ACEOF | ||
12085 | #define HAVE_SECUREWARE 1 | ||
12086 | _ACEOF | ||
12087 | |||
12088 | cat >>confdefs.h <<\_ACEOF | ||
12089 | #define DISABLE_SHADOW 1 | ||
12090 | _ACEOF | ||
12091 | |||
12092 | cat >>confdefs.h <<\_ACEOF | ||
12093 | #define DISABLE_FD_PASSING 1 | ||
12094 | _ACEOF | ||
12095 | |||
12096 | cat >>confdefs.h <<\_ACEOF | ||
12097 | #define SETEUID_BREAKS_SETUID 1 | ||
12098 | _ACEOF | ||
12099 | |||
12100 | cat >>confdefs.h <<\_ACEOF | ||
12101 | #define BROKEN_GETADDRINFO 1 | ||
12102 | _ACEOF | ||
12103 | |||
12104 | cat >>confdefs.h <<\_ACEOF | ||
12105 | #define BROKEN_SETREUID 1 | ||
12106 | _ACEOF | ||
12107 | |||
12108 | cat >>confdefs.h <<\_ACEOF | ||
12109 | #define BROKEN_SETREGID 1 | ||
12110 | _ACEOF | ||
12111 | |||
12112 | cat >>confdefs.h <<\_ACEOF | ||
12113 | #define WITH_ABBREV_NO_TTY 1 | ||
12114 | _ACEOF | ||
12115 | |||
12116 | cat >>confdefs.h <<\_ACEOF | ||
12117 | #define BROKEN_UPDWTMPX 1 | ||
12118 | _ACEOF | ||
12119 | |||
12120 | cat >>confdefs.h <<\_ACEOF | ||
12121 | #define PASSWD_NEEDS_USERNAME 1 | ||
12122 | _ACEOF | ||
12123 | |||
12124 | |||
12125 | |||
12126 | for ac_func in getluid setluid | ||
12127 | do | ||
12128 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12129 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12130 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12131 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12133 | else | ||
12134 | cat >conftest.$ac_ext <<_ACEOF | ||
12135 | /* confdefs.h. */ | ||
12136 | _ACEOF | ||
12137 | cat confdefs.h >>conftest.$ac_ext | ||
12138 | cat >>conftest.$ac_ext <<_ACEOF | ||
12139 | /* end confdefs.h. */ | ||
12140 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12141 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12142 | #define $ac_func innocuous_$ac_func | ||
12143 | |||
12144 | /* System header to define __stub macros and hopefully few prototypes, | ||
12145 | which can conflict with char $ac_func (); below. | ||
12146 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12147 | <limits.h> exists even on freestanding compilers. */ | ||
12148 | |||
12149 | #ifdef __STDC__ | ||
12150 | # include <limits.h> | ||
12151 | #else | ||
12152 | # include <assert.h> | ||
12153 | #endif | ||
12154 | |||
12155 | #undef $ac_func | ||
12156 | |||
12157 | /* Override any GCC internal prototype to avoid an error. | ||
12158 | Use char because int might match the return type of a GCC | ||
12159 | builtin and then its argument prototype would still apply. */ | ||
12160 | #ifdef __cplusplus | ||
12161 | extern "C" | ||
12162 | #endif | ||
12163 | char $ac_func (); | ||
12164 | /* The GNU C library defines this for functions which it implements | ||
12165 | to always fail with ENOSYS. Some functions are actually named | ||
12166 | something starting with __ and the normal name is an alias. */ | ||
12167 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12168 | choke me | ||
12169 | #endif | ||
12170 | |||
12171 | int | ||
12172 | main () | ||
12173 | { | ||
12174 | return $ac_func (); | ||
12175 | ; | ||
12176 | return 0; | ||
12177 | } | ||
12178 | _ACEOF | ||
12179 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12180 | if { (ac_try="$ac_link" | ||
12181 | case "(($ac_try" in | ||
12182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12183 | *) ac_try_echo=$ac_try;; | ||
12184 | esac | ||
12185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12186 | (eval "$ac_link") 2>conftest.er1 | ||
12187 | ac_status=$? | ||
12188 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12189 | rm -f conftest.er1 | ||
12190 | cat conftest.err >&5 | ||
12191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12192 | (exit $ac_status); } && { | ||
12193 | test -z "$ac_c_werror_flag" || | ||
12194 | test ! -s conftest.err | ||
12195 | } && test -s conftest$ac_exeext && | ||
12196 | $as_test_x conftest$ac_exeext; then | ||
12197 | eval "$as_ac_var=yes" | ||
12198 | else | ||
12199 | echo "$as_me: failed program was:" >&5 | ||
12200 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12201 | |||
12202 | eval "$as_ac_var=no" | ||
12203 | fi | ||
12204 | |||
12205 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12206 | conftest$ac_exeext conftest.$ac_ext | ||
12207 | fi | ||
12208 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12209 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12210 | echo "${ECHO_T}$ac_res" >&6; } | ||
12211 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12212 | cat >>confdefs.h <<_ACEOF | ||
12213 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12214 | _ACEOF | ||
12215 | |||
12216 | fi | ||
12217 | done | ||
12218 | |||
12219 | MANTYPE=man | ||
12220 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
12221 | SKIP_DISABLE_LASTLOG_DEFINE=yes | ||
12222 | ;; | ||
12223 | *-*-unicosmk*) | ||
12224 | |||
12225 | cat >>confdefs.h <<\_ACEOF | ||
12226 | #define NO_SSH_LASTLOG 1 | ||
12227 | _ACEOF | ||
12228 | |||
12229 | cat >>confdefs.h <<\_ACEOF | ||
12230 | #define SETEUID_BREAKS_SETUID 1 | ||
12231 | _ACEOF | ||
12232 | |||
12233 | cat >>confdefs.h <<\_ACEOF | ||
12234 | #define BROKEN_SETREUID 1 | ||
12235 | _ACEOF | ||
12236 | |||
12237 | cat >>confdefs.h <<\_ACEOF | ||
12238 | #define BROKEN_SETREGID 1 | ||
12239 | _ACEOF | ||
12240 | |||
12241 | cat >>confdefs.h <<\_ACEOF | ||
12242 | #define USE_PIPES 1 | ||
12243 | _ACEOF | ||
12244 | |||
12245 | cat >>confdefs.h <<\_ACEOF | ||
12246 | #define DISABLE_FD_PASSING 1 | ||
12247 | _ACEOF | ||
12248 | |||
12249 | LDFLAGS="$LDFLAGS" | ||
12250 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
12251 | MANTYPE=cat | ||
12252 | ;; | ||
12253 | *-*-unicosmp*) | ||
12254 | cat >>confdefs.h <<\_ACEOF | ||
12255 | #define SETEUID_BREAKS_SETUID 1 | ||
12256 | _ACEOF | ||
12257 | |||
12258 | cat >>confdefs.h <<\_ACEOF | ||
12259 | #define BROKEN_SETREUID 1 | ||
12260 | _ACEOF | ||
12261 | |||
12262 | cat >>confdefs.h <<\_ACEOF | ||
12263 | #define BROKEN_SETREGID 1 | ||
12264 | _ACEOF | ||
12265 | |||
12266 | cat >>confdefs.h <<\_ACEOF | ||
12267 | #define WITH_ABBREV_NO_TTY 1 | ||
12268 | _ACEOF | ||
12269 | |||
12270 | cat >>confdefs.h <<\_ACEOF | ||
12271 | #define USE_PIPES 1 | ||
12272 | _ACEOF | ||
12273 | |||
12274 | cat >>confdefs.h <<\_ACEOF | ||
12275 | #define DISABLE_FD_PASSING 1 | ||
12276 | _ACEOF | ||
12277 | |||
12278 | LDFLAGS="$LDFLAGS" | ||
12279 | LIBS="$LIBS -lgen -lacid -ldb" | ||
12280 | MANTYPE=cat | ||
12281 | ;; | ||
12282 | *-*-unicos*) | ||
12283 | cat >>confdefs.h <<\_ACEOF | ||
12284 | #define SETEUID_BREAKS_SETUID 1 | ||
12285 | _ACEOF | ||
12286 | |||
12287 | cat >>confdefs.h <<\_ACEOF | ||
12288 | #define BROKEN_SETREUID 1 | ||
12289 | _ACEOF | ||
12290 | |||
12291 | cat >>confdefs.h <<\_ACEOF | ||
12292 | #define BROKEN_SETREGID 1 | ||
12293 | _ACEOF | ||
12294 | |||
12295 | cat >>confdefs.h <<\_ACEOF | ||
12296 | #define USE_PIPES 1 | ||
12297 | _ACEOF | ||
12298 | |||
12299 | cat >>confdefs.h <<\_ACEOF | ||
12300 | #define DISABLE_FD_PASSING 1 | ||
12301 | _ACEOF | ||
12302 | |||
12303 | cat >>confdefs.h <<\_ACEOF | ||
12304 | #define NO_SSH_LASTLOG 1 | ||
12305 | _ACEOF | ||
12306 | |||
12307 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
12308 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
12309 | MANTYPE=cat | ||
12310 | ;; | ||
12311 | *-dec-osf*) | ||
12312 | { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | ||
12313 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; } | ||
12314 | no_osfsia="" | ||
12315 | |||
12316 | # Check whether --with-osfsia was given. | ||
12317 | if test "${with_osfsia+set}" = set; then | ||
12318 | withval=$with_osfsia; | ||
12319 | if test "x$withval" = "xno" ; then | ||
12320 | { echo "$as_me:$LINENO: result: disabled" >&5 | ||
12321 | echo "${ECHO_T}disabled" >&6; } | ||
12322 | no_osfsia=1 | ||
12323 | fi | ||
12324 | |||
12325 | fi | ||
12326 | |||
12327 | if test -z "$no_osfsia" ; then | ||
12328 | if test -f /etc/sia/matrix.conf; then | ||
12329 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12330 | echo "${ECHO_T}yes" >&6; } | ||
12331 | |||
12332 | cat >>confdefs.h <<\_ACEOF | ||
12333 | #define HAVE_OSF_SIA 1 | ||
12334 | _ACEOF | ||
12335 | |||
12336 | |||
12337 | cat >>confdefs.h <<\_ACEOF | ||
12338 | #define DISABLE_LOGIN 1 | ||
12339 | _ACEOF | ||
12340 | |||
12341 | cat >>confdefs.h <<\_ACEOF | ||
12342 | #define DISABLE_FD_PASSING 1 | ||
12343 | _ACEOF | ||
12344 | |||
12345 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
12346 | SIA_MSG="yes" | ||
12347 | else | ||
12348 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12349 | echo "${ECHO_T}no" >&6; } | ||
12350 | |||
12351 | cat >>confdefs.h <<\_ACEOF | ||
12352 | #define LOCKED_PASSWD_SUBSTR "Nologin" | ||
12353 | _ACEOF | ||
12354 | |||
12355 | fi | ||
12356 | fi | ||
12357 | cat >>confdefs.h <<\_ACEOF | ||
12358 | #define BROKEN_GETADDRINFO 1 | ||
12359 | _ACEOF | ||
12360 | |||
12361 | cat >>confdefs.h <<\_ACEOF | ||
12362 | #define SETEUID_BREAKS_SETUID 1 | ||
12363 | _ACEOF | ||
12364 | |||
12365 | cat >>confdefs.h <<\_ACEOF | ||
12366 | #define BROKEN_SETREUID 1 | ||
12367 | _ACEOF | ||
12368 | |||
12369 | cat >>confdefs.h <<\_ACEOF | ||
12370 | #define BROKEN_SETREGID 1 | ||
12371 | _ACEOF | ||
12372 | |||
12373 | |||
12374 | cat >>confdefs.h <<\_ACEOF | ||
12375 | #define BROKEN_READV_COMPARISON 1 | ||
12376 | _ACEOF | ||
12377 | |||
12378 | ;; | ||
12379 | |||
12380 | *-*-nto-qnx*) | ||
12381 | cat >>confdefs.h <<\_ACEOF | ||
12382 | #define USE_PIPES 1 | ||
12383 | _ACEOF | ||
12384 | |||
12385 | cat >>confdefs.h <<\_ACEOF | ||
12386 | #define NO_X11_UNIX_SOCKETS 1 | ||
12387 | _ACEOF | ||
12388 | |||
12389 | cat >>confdefs.h <<\_ACEOF | ||
12390 | #define DISABLE_LASTLOG 1 | ||
12391 | _ACEOF | ||
12392 | |||
12393 | cat >>confdefs.h <<\_ACEOF | ||
12394 | #define SSHD_ACQUIRES_CTTY 1 | ||
12395 | _ACEOF | ||
12396 | |||
12397 | |||
12398 | cat >>confdefs.h <<\_ACEOF | ||
12399 | #define BROKEN_SHADOW_EXPIRE 1 | ||
12400 | _ACEOF | ||
12401 | |||
12402 | enable_etc_default_login=no # has incompatible /etc/default/login | ||
12403 | case "$host" in | ||
12404 | *-*-nto-qnx6*) | ||
12405 | cat >>confdefs.h <<\_ACEOF | ||
12406 | #define DISABLE_FD_PASSING 1 | ||
12407 | _ACEOF | ||
12408 | |||
12409 | ;; | ||
12410 | esac | ||
12411 | ;; | ||
12412 | |||
12413 | *-*-ultrix*) | ||
12414 | |||
12415 | cat >>confdefs.h <<\_ACEOF | ||
12416 | #define BROKEN_GETGROUPS 1 | ||
12417 | _ACEOF | ||
12418 | |||
12419 | |||
12420 | cat >>confdefs.h <<\_ACEOF | ||
12421 | #define BROKEN_MMAP 1 | ||
12422 | _ACEOF | ||
12423 | |||
12424 | cat >>confdefs.h <<\_ACEOF | ||
12425 | #define NEED_SETPGRP 1 | ||
12426 | _ACEOF | ||
12427 | |||
12428 | |||
12429 | cat >>confdefs.h <<\_ACEOF | ||
12430 | #define HAVE_SYS_SYSLOG_H 1 | ||
12431 | _ACEOF | ||
12432 | |||
12433 | ;; | ||
12434 | |||
12435 | *-*-lynxos) | ||
12436 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" | ||
12437 | |||
12438 | cat >>confdefs.h <<\_ACEOF | ||
12439 | #define BROKEN_SETVBUF 1 | ||
12440 | _ACEOF | ||
12441 | |||
12442 | ;; | ||
12443 | esac | ||
12444 | |||
12445 | { echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 | ||
12446 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; } | ||
12447 | if test "$cross_compiling" = yes; then | ||
12448 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
12449 | echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
12450 | |||
12451 | else | ||
12452 | cat >conftest.$ac_ext <<_ACEOF | ||
12453 | /* confdefs.h. */ | ||
12454 | _ACEOF | ||
12455 | cat confdefs.h >>conftest.$ac_ext | ||
12456 | cat >>conftest.$ac_ext <<_ACEOF | ||
12457 | /* end confdefs.h. */ | ||
12458 | #include <stdio.h> | ||
12459 | int | ||
12460 | main () | ||
12461 | { | ||
12462 | exit(0); | ||
12463 | ; | ||
12464 | return 0; | ||
12465 | } | ||
12466 | _ACEOF | ||
12467 | rm -f conftest$ac_exeext | ||
12468 | if { (ac_try="$ac_link" | ||
12469 | case "(($ac_try" in | ||
12470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12471 | *) ac_try_echo=$ac_try;; | ||
12472 | esac | ||
12473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12474 | (eval "$ac_link") 2>&5 | ||
12475 | ac_status=$? | ||
12476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12477 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12478 | { (case "(($ac_try" in | ||
12479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12480 | *) ac_try_echo=$ac_try;; | ||
12481 | esac | ||
12482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12483 | (eval "$ac_try") 2>&5 | ||
12484 | ac_status=$? | ||
12485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12486 | (exit $ac_status); }; }; then | ||
12487 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12488 | echo "${ECHO_T}yes" >&6; } | ||
12489 | else | ||
12490 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12491 | echo "$as_me: failed program was:" >&5 | ||
12492 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12493 | |||
12494 | ( exit $ac_status ) | ||
12495 | |||
12496 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12497 | echo "${ECHO_T}no" >&6; } | ||
12498 | { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5 | ||
12499 | echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} | ||
12500 | { (exit 1); exit 1; }; } | ||
12501 | |||
12502 | fi | ||
12503 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12504 | fi | ||
12505 | |||
12506 | |||
12507 | |||
12508 | # Checks for libraries. | ||
12509 | { echo "$as_me:$LINENO: checking for setsockopt" >&5 | ||
12510 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } | ||
12511 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
12512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12513 | else | ||
12514 | cat >conftest.$ac_ext <<_ACEOF | ||
12515 | /* confdefs.h. */ | ||
12516 | _ACEOF | ||
12517 | cat confdefs.h >>conftest.$ac_ext | ||
12518 | cat >>conftest.$ac_ext <<_ACEOF | ||
12519 | /* end confdefs.h. */ | ||
12520 | /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. | ||
12521 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12522 | #define setsockopt innocuous_setsockopt | ||
12523 | |||
12524 | /* System header to define __stub macros and hopefully few prototypes, | ||
12525 | which can conflict with char setsockopt (); below. | ||
12526 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12527 | <limits.h> exists even on freestanding compilers. */ | ||
12528 | |||
12529 | #ifdef __STDC__ | ||
12530 | # include <limits.h> | ||
12531 | #else | ||
12532 | # include <assert.h> | ||
12533 | #endif | ||
12534 | |||
12535 | #undef setsockopt | ||
12536 | |||
12537 | /* Override any GCC internal prototype to avoid an error. | ||
12538 | Use char because int might match the return type of a GCC | ||
12539 | builtin and then its argument prototype would still apply. */ | ||
12540 | #ifdef __cplusplus | ||
12541 | extern "C" | ||
12542 | #endif | ||
12543 | char setsockopt (); | ||
12544 | /* The GNU C library defines this for functions which it implements | ||
12545 | to always fail with ENOSYS. Some functions are actually named | ||
12546 | something starting with __ and the normal name is an alias. */ | ||
12547 | #if defined __stub_setsockopt || defined __stub___setsockopt | ||
12548 | choke me | ||
12549 | #endif | ||
12550 | |||
12551 | int | ||
12552 | main () | ||
12553 | { | ||
12554 | return setsockopt (); | ||
12555 | ; | ||
12556 | return 0; | ||
12557 | } | ||
12558 | _ACEOF | ||
12559 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12560 | if { (ac_try="$ac_link" | ||
12561 | case "(($ac_try" in | ||
12562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12563 | *) ac_try_echo=$ac_try;; | ||
12564 | esac | ||
12565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12566 | (eval "$ac_link") 2>conftest.er1 | ||
12567 | ac_status=$? | ||
12568 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12569 | rm -f conftest.er1 | ||
12570 | cat conftest.err >&5 | ||
12571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12572 | (exit $ac_status); } && { | ||
12573 | test -z "$ac_c_werror_flag" || | ||
12574 | test ! -s conftest.err | ||
12575 | } && test -s conftest$ac_exeext && | ||
12576 | $as_test_x conftest$ac_exeext; then | ||
12577 | ac_cv_func_setsockopt=yes | ||
12578 | else | ||
12579 | echo "$as_me: failed program was:" >&5 | ||
12580 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12581 | |||
12582 | ac_cv_func_setsockopt=no | ||
12583 | fi | ||
12584 | |||
12585 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12586 | conftest$ac_exeext conftest.$ac_ext | ||
12587 | fi | ||
12588 | { echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | ||
12589 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } | ||
12590 | if test $ac_cv_func_setsockopt = yes; then | ||
12591 | : | ||
12592 | else | ||
12593 | |||
12594 | { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | ||
12595 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } | ||
12596 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
12597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12598 | else | ||
12599 | ac_check_lib_save_LIBS=$LIBS | ||
12600 | LIBS="-lsocket $LIBS" | ||
12601 | cat >conftest.$ac_ext <<_ACEOF | ||
12602 | /* confdefs.h. */ | ||
12603 | _ACEOF | ||
12604 | cat confdefs.h >>conftest.$ac_ext | ||
12605 | cat >>conftest.$ac_ext <<_ACEOF | ||
12606 | /* end confdefs.h. */ | ||
12607 | |||
12608 | /* Override any GCC internal prototype to avoid an error. | ||
12609 | Use char because int might match the return type of a GCC | ||
12610 | builtin and then its argument prototype would still apply. */ | ||
12611 | #ifdef __cplusplus | ||
12612 | extern "C" | ||
12613 | #endif | ||
12614 | char setsockopt (); | ||
12615 | int | ||
12616 | main () | ||
12617 | { | ||
12618 | return setsockopt (); | ||
12619 | ; | ||
12620 | return 0; | ||
12621 | } | ||
12622 | _ACEOF | ||
12623 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12624 | if { (ac_try="$ac_link" | ||
12625 | case "(($ac_try" in | ||
12626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12627 | *) ac_try_echo=$ac_try;; | ||
12628 | esac | ||
12629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12630 | (eval "$ac_link") 2>conftest.er1 | ||
12631 | ac_status=$? | ||
12632 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12633 | rm -f conftest.er1 | ||
12634 | cat conftest.err >&5 | ||
12635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12636 | (exit $ac_status); } && { | ||
12637 | test -z "$ac_c_werror_flag" || | ||
12638 | test ! -s conftest.err | ||
12639 | } && test -s conftest$ac_exeext && | ||
12640 | $as_test_x conftest$ac_exeext; then | ||
12641 | ac_cv_lib_socket_setsockopt=yes | ||
12642 | else | ||
12643 | echo "$as_me: failed program was:" >&5 | ||
12644 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12645 | |||
12646 | ac_cv_lib_socket_setsockopt=no | ||
12647 | fi | ||
12648 | |||
12649 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12650 | conftest$ac_exeext conftest.$ac_ext | ||
12651 | LIBS=$ac_check_lib_save_LIBS | ||
12652 | fi | ||
12653 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
12654 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } | ||
12655 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
12656 | cat >>confdefs.h <<_ACEOF | ||
12657 | #define HAVE_LIBSOCKET 1 | ||
12658 | _ACEOF | ||
12659 | |||
12660 | LIBS="-lsocket $LIBS" | ||
12661 | |||
12662 | fi | ||
12663 | |||
12664 | fi | ||
12665 | |||
12666 | |||
12667 | |||
12668 | for ac_func in dirname | ||
12669 | do | ||
12670 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12671 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12672 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12673 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12675 | else | ||
12676 | cat >conftest.$ac_ext <<_ACEOF | ||
12677 | /* confdefs.h. */ | ||
12678 | _ACEOF | ||
12679 | cat confdefs.h >>conftest.$ac_ext | ||
12680 | cat >>conftest.$ac_ext <<_ACEOF | ||
12681 | /* end confdefs.h. */ | ||
12682 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12683 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12684 | #define $ac_func innocuous_$ac_func | ||
12685 | |||
12686 | /* System header to define __stub macros and hopefully few prototypes, | ||
12687 | which can conflict with char $ac_func (); below. | ||
12688 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12689 | <limits.h> exists even on freestanding compilers. */ | ||
12690 | |||
12691 | #ifdef __STDC__ | ||
12692 | # include <limits.h> | ||
12693 | #else | ||
12694 | # include <assert.h> | ||
12695 | #endif | ||
12696 | |||
12697 | #undef $ac_func | ||
12698 | |||
12699 | /* Override any GCC internal prototype to avoid an error. | ||
12700 | Use char because int might match the return type of a GCC | ||
12701 | builtin and then its argument prototype would still apply. */ | ||
12702 | #ifdef __cplusplus | ||
12703 | extern "C" | ||
12704 | #endif | ||
12705 | char $ac_func (); | ||
12706 | /* The GNU C library defines this for functions which it implements | ||
12707 | to always fail with ENOSYS. Some functions are actually named | ||
12708 | something starting with __ and the normal name is an alias. */ | ||
12709 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12710 | choke me | ||
12711 | #endif | ||
12712 | |||
12713 | int | ||
12714 | main () | ||
12715 | { | ||
12716 | return $ac_func (); | ||
12717 | ; | ||
12718 | return 0; | ||
12719 | } | ||
12720 | _ACEOF | ||
12721 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12722 | if { (ac_try="$ac_link" | ||
12723 | case "(($ac_try" in | ||
12724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12725 | *) ac_try_echo=$ac_try;; | ||
12726 | esac | ||
12727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12728 | (eval "$ac_link") 2>conftest.er1 | ||
12729 | ac_status=$? | ||
12730 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12731 | rm -f conftest.er1 | ||
12732 | cat conftest.err >&5 | ||
12733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12734 | (exit $ac_status); } && { | ||
12735 | test -z "$ac_c_werror_flag" || | ||
12736 | test ! -s conftest.err | ||
12737 | } && test -s conftest$ac_exeext && | ||
12738 | $as_test_x conftest$ac_exeext; then | ||
12739 | eval "$as_ac_var=yes" | ||
12740 | else | ||
12741 | echo "$as_me: failed program was:" >&5 | ||
12742 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12743 | |||
12744 | eval "$as_ac_var=no" | ||
12745 | fi | ||
12746 | |||
12747 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12748 | conftest$ac_exeext conftest.$ac_ext | ||
12749 | fi | ||
12750 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12751 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12752 | echo "${ECHO_T}$ac_res" >&6; } | ||
12753 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12754 | cat >>confdefs.h <<_ACEOF | ||
12755 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12756 | _ACEOF | ||
12757 | |||
12758 | for ac_header in libgen.h | ||
12759 | do | ||
12760 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
12761 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12762 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
12763 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
12764 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12766 | fi | ||
12767 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
12768 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12769 | echo "${ECHO_T}$ac_res" >&6; } | ||
12770 | else | ||
12771 | # Is the header compilable? | ||
12772 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
12773 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
12774 | cat >conftest.$ac_ext <<_ACEOF | ||
12775 | /* confdefs.h. */ | ||
12776 | _ACEOF | ||
12777 | cat confdefs.h >>conftest.$ac_ext | ||
12778 | cat >>conftest.$ac_ext <<_ACEOF | ||
12779 | /* end confdefs.h. */ | ||
12780 | $ac_includes_default | ||
12781 | #include <$ac_header> | ||
12782 | _ACEOF | ||
12783 | rm -f conftest.$ac_objext | ||
12784 | if { (ac_try="$ac_compile" | ||
12785 | case "(($ac_try" in | ||
12786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12787 | *) ac_try_echo=$ac_try;; | ||
12788 | esac | ||
12789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12790 | (eval "$ac_compile") 2>conftest.er1 | ||
12791 | ac_status=$? | ||
12792 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12793 | rm -f conftest.er1 | ||
12794 | cat conftest.err >&5 | ||
12795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12796 | (exit $ac_status); } && { | ||
12797 | test -z "$ac_c_werror_flag" || | ||
12798 | test ! -s conftest.err | ||
12799 | } && test -s conftest.$ac_objext; then | ||
12800 | ac_header_compiler=yes | ||
12801 | else | ||
12802 | echo "$as_me: failed program was:" >&5 | ||
12803 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12804 | |||
12805 | ac_header_compiler=no | ||
12806 | fi | ||
12807 | |||
12808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12809 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
12810 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
12811 | |||
12812 | # Is the header present? | ||
12813 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
12814 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
12815 | cat >conftest.$ac_ext <<_ACEOF | ||
12816 | /* confdefs.h. */ | ||
12817 | _ACEOF | ||
12818 | cat confdefs.h >>conftest.$ac_ext | ||
12819 | cat >>conftest.$ac_ext <<_ACEOF | ||
12820 | /* end confdefs.h. */ | ||
12821 | #include <$ac_header> | ||
12822 | _ACEOF | ||
12823 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
12824 | case "(($ac_try" in | ||
12825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12826 | *) ac_try_echo=$ac_try;; | ||
12827 | esac | ||
12828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12829 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
12830 | ac_status=$? | ||
12831 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12832 | rm -f conftest.er1 | ||
12833 | cat conftest.err >&5 | ||
12834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12835 | (exit $ac_status); } >/dev/null && { | ||
12836 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
12837 | test ! -s conftest.err | ||
12838 | }; then | ||
12839 | ac_header_preproc=yes | ||
12840 | else | ||
12841 | echo "$as_me: failed program was:" >&5 | ||
12842 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12843 | |||
12844 | ac_header_preproc=no | ||
12845 | fi | ||
12846 | |||
12847 | rm -f conftest.err conftest.$ac_ext | ||
12848 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
12849 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
12850 | |||
12851 | # So? What about this header? | ||
12852 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
12853 | yes:no: ) | ||
12854 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
12855 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
12856 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
12857 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
12858 | ac_header_preproc=yes | ||
12859 | ;; | ||
12860 | no:yes:* ) | ||
12861 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
12862 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
12863 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
12864 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
12865 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
12866 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
12867 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
12868 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
12869 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
12870 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
12871 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
12872 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
12873 | ( cat <<\_ASBOX | ||
12874 | ## ------------------------------------------- ## | ||
12875 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
12876 | ## ------------------------------------------- ## | ||
12877 | _ASBOX | ||
12878 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
12879 | ;; | ||
12880 | esac | ||
12881 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
12882 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
12883 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12885 | else | ||
12886 | eval "$as_ac_Header=\$ac_header_preproc" | ||
12887 | fi | ||
12888 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
12889 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12890 | echo "${ECHO_T}$ac_res" >&6; } | ||
12891 | |||
12892 | fi | ||
12893 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
12894 | cat >>confdefs.h <<_ACEOF | ||
12895 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
12896 | _ACEOF | ||
12897 | |||
12898 | fi | ||
12899 | |||
12900 | done | ||
12901 | |||
12902 | else | ||
12903 | |||
12904 | { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | ||
12905 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; } | ||
12906 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
12907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12908 | else | ||
12909 | ac_check_lib_save_LIBS=$LIBS | ||
12910 | LIBS="-lgen $LIBS" | ||
12911 | cat >conftest.$ac_ext <<_ACEOF | ||
12912 | /* confdefs.h. */ | ||
12913 | _ACEOF | ||
12914 | cat confdefs.h >>conftest.$ac_ext | ||
12915 | cat >>conftest.$ac_ext <<_ACEOF | ||
12916 | /* end confdefs.h. */ | ||
12917 | |||
12918 | /* Override any GCC internal prototype to avoid an error. | ||
12919 | Use char because int might match the return type of a GCC | ||
12920 | builtin and then its argument prototype would still apply. */ | ||
12921 | #ifdef __cplusplus | ||
12922 | extern "C" | ||
12923 | #endif | ||
12924 | char dirname (); | ||
12925 | int | ||
12926 | main () | ||
12927 | { | ||
12928 | return dirname (); | ||
12929 | ; | ||
12930 | return 0; | ||
12931 | } | ||
12932 | _ACEOF | ||
12933 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12934 | if { (ac_try="$ac_link" | ||
12935 | case "(($ac_try" in | ||
12936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12937 | *) ac_try_echo=$ac_try;; | ||
12938 | esac | ||
12939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12940 | (eval "$ac_link") 2>conftest.er1 | ||
12941 | ac_status=$? | ||
12942 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12943 | rm -f conftest.er1 | ||
12944 | cat conftest.err >&5 | ||
12945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12946 | (exit $ac_status); } && { | ||
12947 | test -z "$ac_c_werror_flag" || | ||
12948 | test ! -s conftest.err | ||
12949 | } && test -s conftest$ac_exeext && | ||
12950 | $as_test_x conftest$ac_exeext; then | ||
12951 | ac_cv_lib_gen_dirname=yes | ||
12952 | else | ||
12953 | echo "$as_me: failed program was:" >&5 | ||
12954 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12955 | |||
12956 | ac_cv_lib_gen_dirname=no | ||
12957 | fi | ||
12958 | |||
12959 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12960 | conftest$ac_exeext conftest.$ac_ext | ||
12961 | LIBS=$ac_check_lib_save_LIBS | ||
12962 | fi | ||
12963 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | ||
12964 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; } | ||
12965 | if test $ac_cv_lib_gen_dirname = yes; then | ||
12966 | |||
12967 | { echo "$as_me:$LINENO: checking for broken dirname" >&5 | ||
12968 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; } | ||
12969 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
12970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12971 | else | ||
12972 | |||
12973 | save_LIBS="$LIBS" | ||
12974 | LIBS="$LIBS -lgen" | ||
12975 | if test "$cross_compiling" = yes; then | ||
12976 | ac_cv_have_broken_dirname="no" | ||
12977 | else | ||
12978 | cat >conftest.$ac_ext <<_ACEOF | ||
12979 | /* confdefs.h. */ | ||
12980 | _ACEOF | ||
12981 | cat confdefs.h >>conftest.$ac_ext | ||
12982 | cat >>conftest.$ac_ext <<_ACEOF | ||
12983 | /* end confdefs.h. */ | ||
12984 | |||
12985 | #include <libgen.h> | ||
12986 | #include <string.h> | ||
12987 | |||
12988 | int main(int argc, char **argv) { | ||
12989 | char *s, buf[32]; | ||
12990 | |||
12991 | strncpy(buf,"/etc", 32); | ||
12992 | s = dirname(buf); | ||
12993 | if (!s || strncmp(s, "/", 32) != 0) { | ||
12994 | exit(1); | ||
12995 | } else { | ||
12996 | exit(0); | ||
12997 | } | ||
12998 | } | ||
12999 | |||
13000 | _ACEOF | ||
13001 | rm -f conftest$ac_exeext | ||
13002 | if { (ac_try="$ac_link" | ||
13003 | case "(($ac_try" in | ||
13004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13005 | *) ac_try_echo=$ac_try;; | ||
13006 | esac | ||
13007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13008 | (eval "$ac_link") 2>&5 | ||
13009 | ac_status=$? | ||
13010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13011 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13012 | { (case "(($ac_try" in | ||
13013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13014 | *) ac_try_echo=$ac_try;; | ||
13015 | esac | ||
13016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13017 | (eval "$ac_try") 2>&5 | ||
13018 | ac_status=$? | ||
13019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13020 | (exit $ac_status); }; }; then | ||
13021 | ac_cv_have_broken_dirname="no" | ||
13022 | else | ||
13023 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13024 | echo "$as_me: failed program was:" >&5 | ||
13025 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13026 | |||
13027 | ( exit $ac_status ) | ||
13028 | ac_cv_have_broken_dirname="yes" | ||
13029 | fi | ||
13030 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13031 | fi | ||
13032 | |||
13033 | |||
13034 | LIBS="$save_LIBS" | ||
13035 | |||
13036 | fi | ||
13037 | { echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | ||
13038 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; } | ||
13039 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
13040 | LIBS="$LIBS -lgen" | ||
13041 | cat >>confdefs.h <<\_ACEOF | ||
13042 | #define HAVE_DIRNAME 1 | ||
13043 | _ACEOF | ||
13044 | |||
13045 | |||
13046 | for ac_header in libgen.h | ||
13047 | do | ||
13048 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
13049 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13050 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
13051 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
13052 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13054 | fi | ||
13055 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
13056 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13057 | echo "${ECHO_T}$ac_res" >&6; } | ||
13058 | else | ||
13059 | # Is the header compilable? | ||
13060 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
13061 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
13062 | cat >conftest.$ac_ext <<_ACEOF | ||
13063 | /* confdefs.h. */ | ||
13064 | _ACEOF | ||
13065 | cat confdefs.h >>conftest.$ac_ext | ||
13066 | cat >>conftest.$ac_ext <<_ACEOF | ||
13067 | /* end confdefs.h. */ | ||
13068 | $ac_includes_default | ||
13069 | #include <$ac_header> | ||
13070 | _ACEOF | ||
13071 | rm -f conftest.$ac_objext | ||
13072 | if { (ac_try="$ac_compile" | ||
13073 | case "(($ac_try" in | ||
13074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13075 | *) ac_try_echo=$ac_try;; | ||
13076 | esac | ||
13077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13078 | (eval "$ac_compile") 2>conftest.er1 | ||
13079 | ac_status=$? | ||
13080 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13081 | rm -f conftest.er1 | ||
13082 | cat conftest.err >&5 | ||
13083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13084 | (exit $ac_status); } && { | ||
13085 | test -z "$ac_c_werror_flag" || | ||
13086 | test ! -s conftest.err | ||
13087 | } && test -s conftest.$ac_objext; then | ||
13088 | ac_header_compiler=yes | ||
13089 | else | ||
13090 | echo "$as_me: failed program was:" >&5 | ||
13091 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13092 | |||
13093 | ac_header_compiler=no | ||
13094 | fi | ||
13095 | |||
13096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13097 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
13098 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
13099 | |||
13100 | # Is the header present? | ||
13101 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
13102 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
13103 | cat >conftest.$ac_ext <<_ACEOF | ||
13104 | /* confdefs.h. */ | ||
13105 | _ACEOF | ||
13106 | cat confdefs.h >>conftest.$ac_ext | ||
13107 | cat >>conftest.$ac_ext <<_ACEOF | ||
13108 | /* end confdefs.h. */ | ||
13109 | #include <$ac_header> | ||
13110 | _ACEOF | ||
13111 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
13112 | case "(($ac_try" in | ||
13113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13114 | *) ac_try_echo=$ac_try;; | ||
13115 | esac | ||
13116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13117 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
13118 | ac_status=$? | ||
13119 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13120 | rm -f conftest.er1 | ||
13121 | cat conftest.err >&5 | ||
13122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13123 | (exit $ac_status); } >/dev/null && { | ||
13124 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
13125 | test ! -s conftest.err | ||
13126 | }; then | ||
13127 | ac_header_preproc=yes | ||
13128 | else | ||
13129 | echo "$as_me: failed program was:" >&5 | ||
13130 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13131 | |||
13132 | ac_header_preproc=no | ||
13133 | fi | ||
13134 | |||
13135 | rm -f conftest.err conftest.$ac_ext | ||
13136 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
13137 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
13138 | |||
13139 | # So? What about this header? | ||
13140 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
13141 | yes:no: ) | ||
13142 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
13143 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
13144 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
13145 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
13146 | ac_header_preproc=yes | ||
13147 | ;; | ||
13148 | no:yes:* ) | ||
13149 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
13150 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
13151 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
13152 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
13153 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
13154 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
13155 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
13156 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
13157 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
13158 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
13159 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
13160 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
13161 | ( cat <<\_ASBOX | ||
13162 | ## ------------------------------------------- ## | ||
13163 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
13164 | ## ------------------------------------------- ## | ||
13165 | _ASBOX | ||
13166 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
13167 | ;; | ||
13168 | esac | ||
13169 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
13170 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
13171 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13173 | else | ||
13174 | eval "$as_ac_Header=\$ac_header_preproc" | ||
13175 | fi | ||
13176 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
13177 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13178 | echo "${ECHO_T}$ac_res" >&6; } | ||
13179 | |||
13180 | fi | ||
13181 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
13182 | cat >>confdefs.h <<_ACEOF | ||
13183 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
13184 | _ACEOF | ||
13185 | |||
13186 | fi | ||
13187 | |||
13188 | done | ||
13189 | |||
13190 | fi | ||
13191 | |||
13192 | fi | ||
13193 | |||
13194 | |||
13195 | fi | ||
13196 | done | ||
13197 | |||
13198 | |||
13199 | { echo "$as_me:$LINENO: checking for getspnam" >&5 | ||
13200 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; } | ||
13201 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
13202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13203 | else | ||
13204 | cat >conftest.$ac_ext <<_ACEOF | ||
13205 | /* confdefs.h. */ | ||
13206 | _ACEOF | ||
13207 | cat confdefs.h >>conftest.$ac_ext | ||
13208 | cat >>conftest.$ac_ext <<_ACEOF | ||
13209 | /* end confdefs.h. */ | ||
13210 | /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam. | ||
13211 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13212 | #define getspnam innocuous_getspnam | ||
13213 | |||
13214 | /* System header to define __stub macros and hopefully few prototypes, | ||
13215 | which can conflict with char getspnam (); below. | ||
13216 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13217 | <limits.h> exists even on freestanding compilers. */ | ||
13218 | |||
13219 | #ifdef __STDC__ | ||
13220 | # include <limits.h> | ||
13221 | #else | ||
13222 | # include <assert.h> | ||
13223 | #endif | ||
13224 | |||
13225 | #undef getspnam | ||
13226 | |||
13227 | /* Override any GCC internal prototype to avoid an error. | ||
13228 | Use char because int might match the return type of a GCC | ||
13229 | builtin and then its argument prototype would still apply. */ | ||
13230 | #ifdef __cplusplus | ||
13231 | extern "C" | ||
13232 | #endif | ||
13233 | char getspnam (); | ||
13234 | /* The GNU C library defines this for functions which it implements | ||
13235 | to always fail with ENOSYS. Some functions are actually named | ||
13236 | something starting with __ and the normal name is an alias. */ | ||
13237 | #if defined __stub_getspnam || defined __stub___getspnam | ||
13238 | choke me | ||
13239 | #endif | ||
13240 | |||
13241 | int | ||
13242 | main () | ||
13243 | { | ||
13244 | return getspnam (); | ||
13245 | ; | ||
13246 | return 0; | ||
13247 | } | ||
13248 | _ACEOF | ||
13249 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13250 | if { (ac_try="$ac_link" | ||
13251 | case "(($ac_try" in | ||
13252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13253 | *) ac_try_echo=$ac_try;; | ||
13254 | esac | ||
13255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13256 | (eval "$ac_link") 2>conftest.er1 | ||
13257 | ac_status=$? | ||
13258 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13259 | rm -f conftest.er1 | ||
13260 | cat conftest.err >&5 | ||
13261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13262 | (exit $ac_status); } && { | ||
13263 | test -z "$ac_c_werror_flag" || | ||
13264 | test ! -s conftest.err | ||
13265 | } && test -s conftest$ac_exeext && | ||
13266 | $as_test_x conftest$ac_exeext; then | ||
13267 | ac_cv_func_getspnam=yes | ||
13268 | else | ||
13269 | echo "$as_me: failed program was:" >&5 | ||
13270 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13271 | |||
13272 | ac_cv_func_getspnam=no | ||
13273 | fi | ||
13274 | |||
13275 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13276 | conftest$ac_exeext conftest.$ac_ext | ||
13277 | fi | ||
13278 | { echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | ||
13279 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6; } | ||
13280 | if test $ac_cv_func_getspnam = yes; then | ||
13281 | : | ||
13282 | else | ||
13283 | { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | ||
13284 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; } | ||
13285 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
13286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13287 | else | ||
13288 | ac_check_lib_save_LIBS=$LIBS | ||
13289 | LIBS="-lgen $LIBS" | ||
13290 | cat >conftest.$ac_ext <<_ACEOF | ||
13291 | /* confdefs.h. */ | ||
13292 | _ACEOF | ||
13293 | cat confdefs.h >>conftest.$ac_ext | ||
13294 | cat >>conftest.$ac_ext <<_ACEOF | ||
13295 | /* end confdefs.h. */ | ||
13296 | |||
13297 | /* Override any GCC internal prototype to avoid an error. | ||
13298 | Use char because int might match the return type of a GCC | ||
13299 | builtin and then its argument prototype would still apply. */ | ||
13300 | #ifdef __cplusplus | ||
13301 | extern "C" | ||
13302 | #endif | ||
13303 | char getspnam (); | ||
13304 | int | ||
13305 | main () | ||
13306 | { | ||
13307 | return getspnam (); | ||
13308 | ; | ||
13309 | return 0; | ||
13310 | } | ||
13311 | _ACEOF | ||
13312 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13313 | if { (ac_try="$ac_link" | ||
13314 | case "(($ac_try" in | ||
13315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13316 | *) ac_try_echo=$ac_try;; | ||
13317 | esac | ||
13318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13319 | (eval "$ac_link") 2>conftest.er1 | ||
13320 | ac_status=$? | ||
13321 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13322 | rm -f conftest.er1 | ||
13323 | cat conftest.err >&5 | ||
13324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13325 | (exit $ac_status); } && { | ||
13326 | test -z "$ac_c_werror_flag" || | ||
13327 | test ! -s conftest.err | ||
13328 | } && test -s conftest$ac_exeext && | ||
13329 | $as_test_x conftest$ac_exeext; then | ||
13330 | ac_cv_lib_gen_getspnam=yes | ||
13331 | else | ||
13332 | echo "$as_me: failed program was:" >&5 | ||
13333 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13334 | |||
13335 | ac_cv_lib_gen_getspnam=no | ||
13336 | fi | ||
13337 | |||
13338 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13339 | conftest$ac_exeext conftest.$ac_ext | ||
13340 | LIBS=$ac_check_lib_save_LIBS | ||
13341 | fi | ||
13342 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | ||
13343 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; } | ||
13344 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
13345 | LIBS="$LIBS -lgen" | ||
13346 | fi | ||
13347 | |||
13348 | fi | ||
13349 | |||
13350 | { echo "$as_me:$LINENO: checking for library containing basename" >&5 | ||
13351 | echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; } | ||
13352 | if test "${ac_cv_search_basename+set}" = set; then | ||
13353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13354 | else | ||
13355 | ac_func_search_save_LIBS=$LIBS | ||
13356 | cat >conftest.$ac_ext <<_ACEOF | ||
13357 | /* confdefs.h. */ | ||
13358 | _ACEOF | ||
13359 | cat confdefs.h >>conftest.$ac_ext | ||
13360 | cat >>conftest.$ac_ext <<_ACEOF | ||
13361 | /* end confdefs.h. */ | ||
13362 | |||
13363 | /* Override any GCC internal prototype to avoid an error. | ||
13364 | Use char because int might match the return type of a GCC | ||
13365 | builtin and then its argument prototype would still apply. */ | ||
13366 | #ifdef __cplusplus | ||
13367 | extern "C" | ||
13368 | #endif | ||
13369 | char basename (); | ||
13370 | int | ||
13371 | main () | ||
13372 | { | ||
13373 | return basename (); | ||
13374 | ; | ||
13375 | return 0; | ||
13376 | } | ||
13377 | _ACEOF | ||
13378 | for ac_lib in '' gen; do | ||
13379 | if test -z "$ac_lib"; then | ||
13380 | ac_res="none required" | ||
13381 | else | ||
13382 | ac_res=-l$ac_lib | ||
13383 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13384 | fi | ||
13385 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13386 | if { (ac_try="$ac_link" | ||
13387 | case "(($ac_try" in | ||
13388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13389 | *) ac_try_echo=$ac_try;; | ||
13390 | esac | ||
13391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13392 | (eval "$ac_link") 2>conftest.er1 | ||
13393 | ac_status=$? | ||
13394 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13395 | rm -f conftest.er1 | ||
13396 | cat conftest.err >&5 | ||
13397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13398 | (exit $ac_status); } && { | ||
13399 | test -z "$ac_c_werror_flag" || | ||
13400 | test ! -s conftest.err | ||
13401 | } && test -s conftest$ac_exeext && | ||
13402 | $as_test_x conftest$ac_exeext; then | ||
13403 | ac_cv_search_basename=$ac_res | ||
13404 | else | ||
13405 | echo "$as_me: failed program was:" >&5 | ||
13406 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13407 | |||
13408 | |||
13409 | fi | ||
13410 | |||
13411 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13412 | conftest$ac_exeext | ||
13413 | if test "${ac_cv_search_basename+set}" = set; then | ||
13414 | break | ||
13415 | fi | ||
13416 | done | ||
13417 | if test "${ac_cv_search_basename+set}" = set; then | ||
13418 | : | ||
13419 | else | ||
13420 | ac_cv_search_basename=no | ||
13421 | fi | ||
13422 | rm conftest.$ac_ext | ||
13423 | LIBS=$ac_func_search_save_LIBS | ||
13424 | fi | ||
13425 | { echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5 | ||
13426 | echo "${ECHO_T}$ac_cv_search_basename" >&6; } | ||
13427 | ac_res=$ac_cv_search_basename | ||
13428 | if test "$ac_res" != no; then | ||
13429 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13430 | |||
13431 | cat >>confdefs.h <<\_ACEOF | ||
13432 | #define HAVE_BASENAME 1 | ||
13433 | _ACEOF | ||
13434 | |||
13435 | fi | ||
13436 | |||
13437 | |||
13438 | |||
13439 | # Check whether --with-zlib was given. | ||
13440 | if test "${with_zlib+set}" = set; then | ||
13441 | withval=$with_zlib; if test "x$withval" = "xno" ; then | ||
13442 | { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | ||
13443 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
13444 | { (exit 1); exit 1; }; } | ||
13445 | elif test "x$withval" != "xyes"; then | ||
13446 | if test -d "$withval/lib"; then | ||
13447 | if test -n "${need_dash_r}"; then | ||
13448 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
13449 | else | ||
13450 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
13451 | fi | ||
13452 | else | ||
13453 | if test -n "${need_dash_r}"; then | ||
13454 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
13455 | else | ||
13456 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
13457 | fi | ||
13458 | fi | ||
13459 | if test -d "$withval/include"; then | ||
13460 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
13461 | else | ||
13462 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
13463 | fi | ||
13464 | fi | ||
13465 | |||
13466 | fi | ||
13467 | |||
13468 | |||
13469 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
13470 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
13471 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
13472 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
13473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13474 | fi | ||
13475 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
13476 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
13477 | else | ||
13478 | # Is the header compilable? | ||
13479 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 | ||
13480 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | ||
13481 | cat >conftest.$ac_ext <<_ACEOF | ||
13482 | /* confdefs.h. */ | ||
13483 | _ACEOF | ||
13484 | cat confdefs.h >>conftest.$ac_ext | ||
13485 | cat >>conftest.$ac_ext <<_ACEOF | ||
13486 | /* end confdefs.h. */ | ||
13487 | $ac_includes_default | ||
13488 | #include <zlib.h> | ||
13489 | _ACEOF | ||
13490 | rm -f conftest.$ac_objext | ||
13491 | if { (ac_try="$ac_compile" | ||
13492 | case "(($ac_try" in | ||
13493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13494 | *) ac_try_echo=$ac_try;; | ||
13495 | esac | ||
13496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13497 | (eval "$ac_compile") 2>conftest.er1 | ||
13498 | ac_status=$? | ||
13499 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13500 | rm -f conftest.er1 | ||
13501 | cat conftest.err >&5 | ||
13502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13503 | (exit $ac_status); } && { | ||
13504 | test -z "$ac_c_werror_flag" || | ||
13505 | test ! -s conftest.err | ||
13506 | } && test -s conftest.$ac_objext; then | ||
13507 | ac_header_compiler=yes | ||
13508 | else | ||
13509 | echo "$as_me: failed program was:" >&5 | ||
13510 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13511 | |||
13512 | ac_header_compiler=no | ||
13513 | fi | ||
13514 | |||
13515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13516 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
13517 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
13518 | |||
13519 | # Is the header present? | ||
13520 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 | ||
13521 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | ||
13522 | cat >conftest.$ac_ext <<_ACEOF | ||
13523 | /* confdefs.h. */ | ||
13524 | _ACEOF | ||
13525 | cat confdefs.h >>conftest.$ac_ext | ||
13526 | cat >>conftest.$ac_ext <<_ACEOF | ||
13527 | /* end confdefs.h. */ | ||
13528 | #include <zlib.h> | ||
13529 | _ACEOF | ||
13530 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
13531 | case "(($ac_try" in | ||
13532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13533 | *) ac_try_echo=$ac_try;; | ||
13534 | esac | ||
13535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13536 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
13537 | ac_status=$? | ||
13538 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13539 | rm -f conftest.er1 | ||
13540 | cat conftest.err >&5 | ||
13541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13542 | (exit $ac_status); } >/dev/null && { | ||
13543 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
13544 | test ! -s conftest.err | ||
13545 | }; then | ||
13546 | ac_header_preproc=yes | ||
13547 | else | ||
13548 | echo "$as_me: failed program was:" >&5 | ||
13549 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13550 | |||
13551 | ac_header_preproc=no | ||
13552 | fi | ||
13553 | |||
13554 | rm -f conftest.err conftest.$ac_ext | ||
13555 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
13556 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
13557 | |||
13558 | # So? What about this header? | ||
13559 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
13560 | yes:no: ) | ||
13561 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
13562 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
13563 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | ||
13564 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | ||
13565 | ac_header_preproc=yes | ||
13566 | ;; | ||
13567 | no:yes:* ) | ||
13568 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | ||
13569 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | ||
13570 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | ||
13571 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | ||
13572 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | ||
13573 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | ||
13574 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
13575 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
13576 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | ||
13577 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | ||
13578 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | ||
13579 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | ||
13580 | ( cat <<\_ASBOX | ||
13581 | ## ------------------------------------------- ## | ||
13582 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
13583 | ## ------------------------------------------- ## | ||
13584 | _ASBOX | ||
13585 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
13586 | ;; | ||
13587 | esac | ||
13588 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
13589 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
13590 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
13591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13592 | else | ||
13593 | ac_cv_header_zlib_h=$ac_header_preproc | ||
13594 | fi | ||
13595 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
13596 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
13597 | |||
13598 | fi | ||
13599 | if test $ac_cv_header_zlib_h = yes; then | ||
13600 | : | ||
13601 | else | ||
13602 | { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5 | ||
13603 | echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;} | ||
13604 | { (exit 1); exit 1; }; } | ||
13605 | fi | ||
13606 | |||
13607 | |||
13608 | |||
13609 | { echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | ||
13610 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; } | ||
13611 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
13612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13613 | else | ||
13614 | ac_check_lib_save_LIBS=$LIBS | ||
13615 | LIBS="-lz $LIBS" | ||
13616 | cat >conftest.$ac_ext <<_ACEOF | ||
13617 | /* confdefs.h. */ | ||
13618 | _ACEOF | ||
13619 | cat confdefs.h >>conftest.$ac_ext | ||
13620 | cat >>conftest.$ac_ext <<_ACEOF | ||
13621 | /* end confdefs.h. */ | ||
13622 | |||
13623 | /* Override any GCC internal prototype to avoid an error. | ||
13624 | Use char because int might match the return type of a GCC | ||
13625 | builtin and then its argument prototype would still apply. */ | ||
13626 | #ifdef __cplusplus | ||
13627 | extern "C" | ||
13628 | #endif | ||
13629 | char deflate (); | ||
13630 | int | ||
13631 | main () | ||
13632 | { | ||
13633 | return deflate (); | ||
13634 | ; | ||
13635 | return 0; | ||
13636 | } | ||
13637 | _ACEOF | ||
13638 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13639 | if { (ac_try="$ac_link" | ||
13640 | case "(($ac_try" in | ||
13641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13642 | *) ac_try_echo=$ac_try;; | ||
13643 | esac | ||
13644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13645 | (eval "$ac_link") 2>conftest.er1 | ||
13646 | ac_status=$? | ||
13647 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13648 | rm -f conftest.er1 | ||
13649 | cat conftest.err >&5 | ||
13650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13651 | (exit $ac_status); } && { | ||
13652 | test -z "$ac_c_werror_flag" || | ||
13653 | test ! -s conftest.err | ||
13654 | } && test -s conftest$ac_exeext && | ||
13655 | $as_test_x conftest$ac_exeext; then | ||
13656 | ac_cv_lib_z_deflate=yes | ||
13657 | else | ||
13658 | echo "$as_me: failed program was:" >&5 | ||
13659 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13660 | |||
13661 | ac_cv_lib_z_deflate=no | ||
13662 | fi | ||
13663 | |||
13664 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13665 | conftest$ac_exeext conftest.$ac_ext | ||
13666 | LIBS=$ac_check_lib_save_LIBS | ||
13667 | fi | ||
13668 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | ||
13669 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; } | ||
13670 | if test $ac_cv_lib_z_deflate = yes; then | ||
13671 | cat >>confdefs.h <<_ACEOF | ||
13672 | #define HAVE_LIBZ 1 | ||
13673 | _ACEOF | ||
13674 | |||
13675 | LIBS="-lz $LIBS" | ||
13676 | |||
13677 | else | ||
13678 | |||
13679 | saved_CPPFLAGS="$CPPFLAGS" | ||
13680 | saved_LDFLAGS="$LDFLAGS" | ||
13681 | save_LIBS="$LIBS" | ||
13682 | if test -n "${need_dash_r}"; then | ||
13683 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
13684 | else | ||
13685 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
13686 | fi | ||
13687 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
13688 | LIBS="$LIBS -lz" | ||
13689 | cat >conftest.$ac_ext <<_ACEOF | ||
13690 | /* confdefs.h. */ | ||
13691 | _ACEOF | ||
13692 | cat confdefs.h >>conftest.$ac_ext | ||
13693 | cat >>conftest.$ac_ext <<_ACEOF | ||
13694 | /* end confdefs.h. */ | ||
13695 | |||
13696 | /* Override any GCC internal prototype to avoid an error. | ||
13697 | Use char because int might match the return type of a GCC | ||
13698 | builtin and then its argument prototype would still apply. */ | ||
13699 | #ifdef __cplusplus | ||
13700 | extern "C" | ||
13701 | #endif | ||
13702 | char deflate (); | ||
13703 | int | ||
13704 | main () | ||
13705 | { | ||
13706 | return deflate (); | ||
13707 | ; | ||
13708 | return 0; | ||
13709 | } | ||
13710 | _ACEOF | ||
13711 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13712 | if { (ac_try="$ac_link" | ||
13713 | case "(($ac_try" in | ||
13714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13715 | *) ac_try_echo=$ac_try;; | ||
13716 | esac | ||
13717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13718 | (eval "$ac_link") 2>conftest.er1 | ||
13719 | ac_status=$? | ||
13720 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13721 | rm -f conftest.er1 | ||
13722 | cat conftest.err >&5 | ||
13723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13724 | (exit $ac_status); } && { | ||
13725 | test -z "$ac_c_werror_flag" || | ||
13726 | test ! -s conftest.err | ||
13727 | } && test -s conftest$ac_exeext && | ||
13728 | $as_test_x conftest$ac_exeext; then | ||
13729 | cat >>confdefs.h <<\_ACEOF | ||
13730 | #define HAVE_LIBZ 1 | ||
13731 | _ACEOF | ||
13732 | |||
13733 | else | ||
13734 | echo "$as_me: failed program was:" >&5 | ||
13735 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13736 | |||
13737 | |||
13738 | { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
13739 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
13740 | { (exit 1); exit 1; }; } | ||
13741 | |||
13742 | |||
13743 | fi | ||
13744 | |||
13745 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13746 | conftest$ac_exeext conftest.$ac_ext | ||
13747 | |||
13748 | |||
13749 | fi | ||
13750 | |||
13751 | |||
13752 | |||
13753 | # Check whether --with-zlib-version-check was given. | ||
13754 | if test "${with_zlib_version_check+set}" = set; then | ||
13755 | withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then | ||
13756 | zlib_check_nonfatal=1 | ||
13757 | fi | ||
13758 | |||
13759 | |||
13760 | fi | ||
13761 | |||
13762 | |||
13763 | { echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5 | ||
13764 | echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; } | ||
13765 | if test "$cross_compiling" = yes; then | ||
13766 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5 | ||
13767 | echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
13768 | |||
13769 | else | ||
13770 | cat >conftest.$ac_ext <<_ACEOF | ||
13771 | /* confdefs.h. */ | ||
13772 | _ACEOF | ||
13773 | cat confdefs.h >>conftest.$ac_ext | ||
13774 | cat >>conftest.$ac_ext <<_ACEOF | ||
13775 | /* end confdefs.h. */ | ||
13776 | |||
13777 | #include <stdio.h> | ||
13778 | #include <stdlib.h> | ||
13779 | #include <zlib.h> | ||
13780 | |||
13781 | int | ||
13782 | main () | ||
13783 | { | ||
13784 | |||
13785 | int a=0, b=0, c=0, d=0, n, v; | ||
13786 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
13787 | if (n != 3 && n != 4) | ||
13788 | exit(1); | ||
13789 | v = a*1000000 + b*10000 + c*100 + d; | ||
13790 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
13791 | |||
13792 | /* 1.1.4 is OK */ | ||
13793 | if (a == 1 && b == 1 && c >= 4) | ||
13794 | exit(0); | ||
13795 | |||
13796 | /* 1.2.3 and up are OK */ | ||
13797 | if (v >= 1020300) | ||
13798 | exit(0); | ||
13799 | |||
13800 | exit(2); | ||
13801 | |||
13802 | ; | ||
13803 | return 0; | ||
13804 | } | ||
13805 | _ACEOF | ||
13806 | rm -f conftest$ac_exeext | ||
13807 | if { (ac_try="$ac_link" | ||
13808 | case "(($ac_try" in | ||
13809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13810 | *) ac_try_echo=$ac_try;; | ||
13811 | esac | ||
13812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13813 | (eval "$ac_link") 2>&5 | ||
13814 | ac_status=$? | ||
13815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13816 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13817 | { (case "(($ac_try" in | ||
13818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13819 | *) ac_try_echo=$ac_try;; | ||
13820 | esac | ||
13821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13822 | (eval "$ac_try") 2>&5 | ||
13823 | ac_status=$? | ||
13824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13825 | (exit $ac_status); }; }; then | ||
13826 | { echo "$as_me:$LINENO: result: no" >&5 | ||
13827 | echo "${ECHO_T}no" >&6; } | ||
13828 | else | ||
13829 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13830 | echo "$as_me: failed program was:" >&5 | ||
13831 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13832 | |||
13833 | ( exit $ac_status ) | ||
13834 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
13835 | echo "${ECHO_T}yes" >&6; } | ||
13836 | if test -z "$zlib_check_nonfatal" ; then | ||
13837 | { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log *** | ||
13838 | Your reported zlib version has known security problems. It's possible your | ||
13839 | vendor has fixed these problems without changing the version number. If you | ||
13840 | are sure this is the case, you can disable the check by running | ||
13841 | \"./configure --without-zlib-version-check\". | ||
13842 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
13843 | See http://www.gzip.org/zlib/ for details." >&5 | ||
13844 | echo "$as_me: error: *** zlib too old - check config.log *** | ||
13845 | Your reported zlib version has known security problems. It's possible your | ||
13846 | vendor has fixed these problems without changing the version number. If you | ||
13847 | are sure this is the case, you can disable the check by running | ||
13848 | \"./configure --without-zlib-version-check\". | ||
13849 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
13850 | See http://www.gzip.org/zlib/ for details." >&2;} | ||
13851 | { (exit 1); exit 1; }; } | ||
13852 | else | ||
13853 | { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5 | ||
13854 | echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
13855 | fi | ||
13856 | |||
13857 | fi | ||
13858 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13859 | fi | ||
13860 | |||
13861 | |||
13862 | |||
13863 | { echo "$as_me:$LINENO: checking for strcasecmp" >&5 | ||
13864 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; } | ||
13865 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
13866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13867 | else | ||
13868 | cat >conftest.$ac_ext <<_ACEOF | ||
13869 | /* confdefs.h. */ | ||
13870 | _ACEOF | ||
13871 | cat confdefs.h >>conftest.$ac_ext | ||
13872 | cat >>conftest.$ac_ext <<_ACEOF | ||
13873 | /* end confdefs.h. */ | ||
13874 | /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp. | ||
13875 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13876 | #define strcasecmp innocuous_strcasecmp | ||
13877 | |||
13878 | /* System header to define __stub macros and hopefully few prototypes, | ||
13879 | which can conflict with char strcasecmp (); below. | ||
13880 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13881 | <limits.h> exists even on freestanding compilers. */ | ||
13882 | |||
13883 | #ifdef __STDC__ | ||
13884 | # include <limits.h> | ||
13885 | #else | ||
13886 | # include <assert.h> | ||
13887 | #endif | ||
13888 | |||
13889 | #undef strcasecmp | ||
13890 | |||
13891 | /* Override any GCC internal prototype to avoid an error. | ||
13892 | Use char because int might match the return type of a GCC | ||
13893 | builtin and then its argument prototype would still apply. */ | ||
13894 | #ifdef __cplusplus | ||
13895 | extern "C" | ||
13896 | #endif | ||
13897 | char strcasecmp (); | ||
13898 | /* The GNU C library defines this for functions which it implements | ||
13899 | to always fail with ENOSYS. Some functions are actually named | ||
13900 | something starting with __ and the normal name is an alias. */ | ||
13901 | #if defined __stub_strcasecmp || defined __stub___strcasecmp | ||
13902 | choke me | ||
13903 | #endif | ||
13904 | |||
13905 | int | ||
13906 | main () | ||
13907 | { | ||
13908 | return strcasecmp (); | ||
13909 | ; | ||
13910 | return 0; | ||
13911 | } | ||
13912 | _ACEOF | ||
13913 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13914 | if { (ac_try="$ac_link" | ||
13915 | case "(($ac_try" in | ||
13916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13917 | *) ac_try_echo=$ac_try;; | ||
13918 | esac | ||
13919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13920 | (eval "$ac_link") 2>conftest.er1 | ||
13921 | ac_status=$? | ||
13922 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13923 | rm -f conftest.er1 | ||
13924 | cat conftest.err >&5 | ||
13925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13926 | (exit $ac_status); } && { | ||
13927 | test -z "$ac_c_werror_flag" || | ||
13928 | test ! -s conftest.err | ||
13929 | } && test -s conftest$ac_exeext && | ||
13930 | $as_test_x conftest$ac_exeext; then | ||
13931 | ac_cv_func_strcasecmp=yes | ||
13932 | else | ||
13933 | echo "$as_me: failed program was:" >&5 | ||
13934 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13935 | |||
13936 | ac_cv_func_strcasecmp=no | ||
13937 | fi | ||
13938 | |||
13939 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13940 | conftest$ac_exeext conftest.$ac_ext | ||
13941 | fi | ||
13942 | { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | ||
13943 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; } | ||
13944 | if test $ac_cv_func_strcasecmp = yes; then | ||
13945 | : | ||
13946 | else | ||
13947 | { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | ||
13948 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; } | ||
13949 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
13950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13951 | else | ||
13952 | ac_check_lib_save_LIBS=$LIBS | ||
13953 | LIBS="-lresolv $LIBS" | ||
13954 | cat >conftest.$ac_ext <<_ACEOF | ||
13955 | /* confdefs.h. */ | ||
13956 | _ACEOF | ||
13957 | cat confdefs.h >>conftest.$ac_ext | ||
13958 | cat >>conftest.$ac_ext <<_ACEOF | ||
13959 | /* end confdefs.h. */ | ||
13960 | |||
13961 | /* Override any GCC internal prototype to avoid an error. | ||
13962 | Use char because int might match the return type of a GCC | ||
13963 | builtin and then its argument prototype would still apply. */ | ||
13964 | #ifdef __cplusplus | ||
13965 | extern "C" | ||
13966 | #endif | ||
13967 | char strcasecmp (); | ||
13968 | int | ||
13969 | main () | ||
13970 | { | ||
13971 | return strcasecmp (); | ||
13972 | ; | ||
13973 | return 0; | ||
13974 | } | ||
13975 | _ACEOF | ||
13976 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13977 | if { (ac_try="$ac_link" | ||
13978 | case "(($ac_try" in | ||
13979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13980 | *) ac_try_echo=$ac_try;; | ||
13981 | esac | ||
13982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13983 | (eval "$ac_link") 2>conftest.er1 | ||
13984 | ac_status=$? | ||
13985 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13986 | rm -f conftest.er1 | ||
13987 | cat conftest.err >&5 | ||
13988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13989 | (exit $ac_status); } && { | ||
13990 | test -z "$ac_c_werror_flag" || | ||
13991 | test ! -s conftest.err | ||
13992 | } && test -s conftest$ac_exeext && | ||
13993 | $as_test_x conftest$ac_exeext; then | ||
13994 | ac_cv_lib_resolv_strcasecmp=yes | ||
13995 | else | ||
13996 | echo "$as_me: failed program was:" >&5 | ||
13997 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13998 | |||
13999 | ac_cv_lib_resolv_strcasecmp=no | ||
14000 | fi | ||
14001 | |||
14002 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14003 | conftest$ac_exeext conftest.$ac_ext | ||
14004 | LIBS=$ac_check_lib_save_LIBS | ||
14005 | fi | ||
14006 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
14007 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; } | ||
14008 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
14009 | LIBS="$LIBS -lresolv" | ||
14010 | fi | ||
14011 | |||
14012 | |||
14013 | fi | ||
14014 | |||
14015 | |||
14016 | for ac_func in utimes | ||
14017 | do | ||
14018 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14019 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14020 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14021 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14023 | else | ||
14024 | cat >conftest.$ac_ext <<_ACEOF | ||
14025 | /* confdefs.h. */ | ||
14026 | _ACEOF | ||
14027 | cat confdefs.h >>conftest.$ac_ext | ||
14028 | cat >>conftest.$ac_ext <<_ACEOF | ||
14029 | /* end confdefs.h. */ | ||
14030 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14031 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14032 | #define $ac_func innocuous_$ac_func | ||
14033 | |||
14034 | /* System header to define __stub macros and hopefully few prototypes, | ||
14035 | which can conflict with char $ac_func (); below. | ||
14036 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14037 | <limits.h> exists even on freestanding compilers. */ | ||
14038 | |||
14039 | #ifdef __STDC__ | ||
14040 | # include <limits.h> | ||
14041 | #else | ||
14042 | # include <assert.h> | ||
14043 | #endif | ||
14044 | |||
14045 | #undef $ac_func | ||
14046 | |||
14047 | /* Override any GCC internal prototype to avoid an error. | ||
14048 | Use char because int might match the return type of a GCC | ||
14049 | builtin and then its argument prototype would still apply. */ | ||
14050 | #ifdef __cplusplus | ||
14051 | extern "C" | ||
14052 | #endif | ||
14053 | char $ac_func (); | ||
14054 | /* The GNU C library defines this for functions which it implements | ||
14055 | to always fail with ENOSYS. Some functions are actually named | ||
14056 | something starting with __ and the normal name is an alias. */ | ||
14057 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14058 | choke me | ||
14059 | #endif | ||
14060 | |||
14061 | int | ||
14062 | main () | ||
14063 | { | ||
14064 | return $ac_func (); | ||
14065 | ; | ||
14066 | return 0; | ||
14067 | } | ||
14068 | _ACEOF | ||
14069 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14070 | if { (ac_try="$ac_link" | ||
14071 | case "(($ac_try" in | ||
14072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14073 | *) ac_try_echo=$ac_try;; | ||
14074 | esac | ||
14075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14076 | (eval "$ac_link") 2>conftest.er1 | ||
14077 | ac_status=$? | ||
14078 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14079 | rm -f conftest.er1 | ||
14080 | cat conftest.err >&5 | ||
14081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14082 | (exit $ac_status); } && { | ||
14083 | test -z "$ac_c_werror_flag" || | ||
14084 | test ! -s conftest.err | ||
14085 | } && test -s conftest$ac_exeext && | ||
14086 | $as_test_x conftest$ac_exeext; then | ||
14087 | eval "$as_ac_var=yes" | ||
14088 | else | ||
14089 | echo "$as_me: failed program was:" >&5 | ||
14090 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14091 | |||
14092 | eval "$as_ac_var=no" | ||
14093 | fi | ||
14094 | |||
14095 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14096 | conftest$ac_exeext conftest.$ac_ext | ||
14097 | fi | ||
14098 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14099 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14100 | echo "${ECHO_T}$ac_res" >&6; } | ||
14101 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14102 | cat >>confdefs.h <<_ACEOF | ||
14103 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14104 | _ACEOF | ||
14105 | |||
14106 | else | ||
14107 | { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | ||
14108 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; } | ||
14109 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
14110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14111 | else | ||
14112 | ac_check_lib_save_LIBS=$LIBS | ||
14113 | LIBS="-lc89 $LIBS" | ||
14114 | cat >conftest.$ac_ext <<_ACEOF | ||
14115 | /* confdefs.h. */ | ||
14116 | _ACEOF | ||
14117 | cat confdefs.h >>conftest.$ac_ext | ||
14118 | cat >>conftest.$ac_ext <<_ACEOF | ||
14119 | /* end confdefs.h. */ | ||
14120 | |||
14121 | /* Override any GCC internal prototype to avoid an error. | ||
14122 | Use char because int might match the return type of a GCC | ||
14123 | builtin and then its argument prototype would still apply. */ | ||
14124 | #ifdef __cplusplus | ||
14125 | extern "C" | ||
14126 | #endif | ||
14127 | char utimes (); | ||
14128 | int | ||
14129 | main () | ||
14130 | { | ||
14131 | return utimes (); | ||
14132 | ; | ||
14133 | return 0; | ||
14134 | } | ||
14135 | _ACEOF | ||
14136 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14137 | if { (ac_try="$ac_link" | ||
14138 | case "(($ac_try" in | ||
14139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14140 | *) ac_try_echo=$ac_try;; | ||
14141 | esac | ||
14142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14143 | (eval "$ac_link") 2>conftest.er1 | ||
14144 | ac_status=$? | ||
14145 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14146 | rm -f conftest.er1 | ||
14147 | cat conftest.err >&5 | ||
14148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14149 | (exit $ac_status); } && { | ||
14150 | test -z "$ac_c_werror_flag" || | ||
14151 | test ! -s conftest.err | ||
14152 | } && test -s conftest$ac_exeext && | ||
14153 | $as_test_x conftest$ac_exeext; then | ||
14154 | ac_cv_lib_c89_utimes=yes | ||
14155 | else | ||
14156 | echo "$as_me: failed program was:" >&5 | ||
14157 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14158 | |||
14159 | ac_cv_lib_c89_utimes=no | ||
14160 | fi | ||
14161 | |||
14162 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14163 | conftest$ac_exeext conftest.$ac_ext | ||
14164 | LIBS=$ac_check_lib_save_LIBS | ||
14165 | fi | ||
14166 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | ||
14167 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; } | ||
14168 | if test $ac_cv_lib_c89_utimes = yes; then | ||
14169 | cat >>confdefs.h <<\_ACEOF | ||
14170 | #define HAVE_UTIMES 1 | ||
14171 | _ACEOF | ||
14172 | |||
14173 | LIBS="$LIBS -lc89" | ||
14174 | fi | ||
14175 | |||
14176 | |||
14177 | fi | ||
14178 | done | ||
14179 | |||
14180 | |||
14181 | |||
14182 | |||
14183 | for ac_header in bsd/libutil.h libutil.h | ||
14184 | do | ||
14185 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
14186 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14187 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
14188 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
14189 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14191 | fi | ||
14192 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
14193 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14194 | echo "${ECHO_T}$ac_res" >&6; } | ||
14195 | else | ||
14196 | # Is the header compilable? | ||
14197 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
14198 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
14199 | cat >conftest.$ac_ext <<_ACEOF | ||
14200 | /* confdefs.h. */ | ||
14201 | _ACEOF | ||
14202 | cat confdefs.h >>conftest.$ac_ext | ||
14203 | cat >>conftest.$ac_ext <<_ACEOF | ||
14204 | /* end confdefs.h. */ | ||
14205 | $ac_includes_default | ||
14206 | #include <$ac_header> | ||
14207 | _ACEOF | ||
14208 | rm -f conftest.$ac_objext | ||
14209 | if { (ac_try="$ac_compile" | ||
14210 | case "(($ac_try" in | ||
14211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14212 | *) ac_try_echo=$ac_try;; | ||
14213 | esac | ||
14214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14215 | (eval "$ac_compile") 2>conftest.er1 | ||
14216 | ac_status=$? | ||
14217 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14218 | rm -f conftest.er1 | ||
14219 | cat conftest.err >&5 | ||
14220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14221 | (exit $ac_status); } && { | ||
14222 | test -z "$ac_c_werror_flag" || | ||
14223 | test ! -s conftest.err | ||
14224 | } && test -s conftest.$ac_objext; then | ||
14225 | ac_header_compiler=yes | ||
14226 | else | ||
14227 | echo "$as_me: failed program was:" >&5 | ||
14228 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14229 | |||
14230 | ac_header_compiler=no | ||
14231 | fi | ||
14232 | |||
14233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14234 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
14235 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
14236 | |||
14237 | # Is the header present? | ||
14238 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
14239 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
14240 | cat >conftest.$ac_ext <<_ACEOF | ||
14241 | /* confdefs.h. */ | ||
14242 | _ACEOF | ||
14243 | cat confdefs.h >>conftest.$ac_ext | ||
14244 | cat >>conftest.$ac_ext <<_ACEOF | ||
14245 | /* end confdefs.h. */ | ||
14246 | #include <$ac_header> | ||
14247 | _ACEOF | ||
14248 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
14249 | case "(($ac_try" in | ||
14250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14251 | *) ac_try_echo=$ac_try;; | ||
14252 | esac | ||
14253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14254 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
14255 | ac_status=$? | ||
14256 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14257 | rm -f conftest.er1 | ||
14258 | cat conftest.err >&5 | ||
14259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14260 | (exit $ac_status); } >/dev/null && { | ||
14261 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
14262 | test ! -s conftest.err | ||
14263 | }; then | ||
14264 | ac_header_preproc=yes | ||
14265 | else | ||
14266 | echo "$as_me: failed program was:" >&5 | ||
14267 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14268 | |||
14269 | ac_header_preproc=no | ||
14270 | fi | ||
14271 | |||
14272 | rm -f conftest.err conftest.$ac_ext | ||
14273 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
14274 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
14275 | |||
14276 | # So? What about this header? | ||
14277 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
14278 | yes:no: ) | ||
14279 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
14280 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
14281 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
14282 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
14283 | ac_header_preproc=yes | ||
14284 | ;; | ||
14285 | no:yes:* ) | ||
14286 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
14287 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
14288 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
14289 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
14290 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
14291 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
14292 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
14293 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
14294 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
14295 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
14296 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
14297 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
14298 | ( cat <<\_ASBOX | ||
14299 | ## ------------------------------------------- ## | ||
14300 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
14301 | ## ------------------------------------------- ## | ||
14302 | _ASBOX | ||
14303 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
14304 | ;; | ||
14305 | esac | ||
14306 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
14307 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
14308 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14310 | else | ||
14311 | eval "$as_ac_Header=\$ac_header_preproc" | ||
14312 | fi | ||
14313 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
14314 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14315 | echo "${ECHO_T}$ac_res" >&6; } | ||
14316 | |||
14317 | fi | ||
14318 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
14319 | cat >>confdefs.h <<_ACEOF | ||
14320 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
14321 | _ACEOF | ||
14322 | |||
14323 | fi | ||
14324 | |||
14325 | done | ||
14326 | |||
14327 | { echo "$as_me:$LINENO: checking for library containing fmt_scaled" >&5 | ||
14328 | echo $ECHO_N "checking for library containing fmt_scaled... $ECHO_C" >&6; } | ||
14329 | if test "${ac_cv_search_fmt_scaled+set}" = set; then | ||
14330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14331 | else | ||
14332 | ac_func_search_save_LIBS=$LIBS | ||
14333 | cat >conftest.$ac_ext <<_ACEOF | ||
14334 | /* confdefs.h. */ | ||
14335 | _ACEOF | ||
14336 | cat confdefs.h >>conftest.$ac_ext | ||
14337 | cat >>conftest.$ac_ext <<_ACEOF | ||
14338 | /* end confdefs.h. */ | ||
14339 | |||
14340 | /* Override any GCC internal prototype to avoid an error. | ||
14341 | Use char because int might match the return type of a GCC | ||
14342 | builtin and then its argument prototype would still apply. */ | ||
14343 | #ifdef __cplusplus | ||
14344 | extern "C" | ||
14345 | #endif | ||
14346 | char fmt_scaled (); | ||
14347 | int | ||
14348 | main () | ||
14349 | { | ||
14350 | return fmt_scaled (); | ||
14351 | ; | ||
14352 | return 0; | ||
14353 | } | ||
14354 | _ACEOF | ||
14355 | for ac_lib in '' util bsd; do | ||
14356 | if test -z "$ac_lib"; then | ||
14357 | ac_res="none required" | ||
14358 | else | ||
14359 | ac_res=-l$ac_lib | ||
14360 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14361 | fi | ||
14362 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14363 | if { (ac_try="$ac_link" | ||
14364 | case "(($ac_try" in | ||
14365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14366 | *) ac_try_echo=$ac_try;; | ||
14367 | esac | ||
14368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14369 | (eval "$ac_link") 2>conftest.er1 | ||
14370 | ac_status=$? | ||
14371 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14372 | rm -f conftest.er1 | ||
14373 | cat conftest.err >&5 | ||
14374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14375 | (exit $ac_status); } && { | ||
14376 | test -z "$ac_c_werror_flag" || | ||
14377 | test ! -s conftest.err | ||
14378 | } && test -s conftest$ac_exeext && | ||
14379 | $as_test_x conftest$ac_exeext; then | ||
14380 | ac_cv_search_fmt_scaled=$ac_res | ||
14381 | else | ||
14382 | echo "$as_me: failed program was:" >&5 | ||
14383 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14384 | |||
14385 | |||
14386 | fi | ||
14387 | |||
14388 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14389 | conftest$ac_exeext | ||
14390 | if test "${ac_cv_search_fmt_scaled+set}" = set; then | ||
14391 | break | ||
14392 | fi | ||
14393 | done | ||
14394 | if test "${ac_cv_search_fmt_scaled+set}" = set; then | ||
14395 | : | ||
14396 | else | ||
14397 | ac_cv_search_fmt_scaled=no | ||
14398 | fi | ||
14399 | rm conftest.$ac_ext | ||
14400 | LIBS=$ac_func_search_save_LIBS | ||
14401 | fi | ||
14402 | { echo "$as_me:$LINENO: result: $ac_cv_search_fmt_scaled" >&5 | ||
14403 | echo "${ECHO_T}$ac_cv_search_fmt_scaled" >&6; } | ||
14404 | ac_res=$ac_cv_search_fmt_scaled | ||
14405 | if test "$ac_res" != no; then | ||
14406 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14407 | |||
14408 | fi | ||
14409 | |||
14410 | { echo "$as_me:$LINENO: checking for library containing scan_scaled" >&5 | ||
14411 | echo $ECHO_N "checking for library containing scan_scaled... $ECHO_C" >&6; } | ||
14412 | if test "${ac_cv_search_scan_scaled+set}" = set; then | ||
14413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14414 | else | ||
14415 | ac_func_search_save_LIBS=$LIBS | ||
14416 | cat >conftest.$ac_ext <<_ACEOF | ||
14417 | /* confdefs.h. */ | ||
14418 | _ACEOF | ||
14419 | cat confdefs.h >>conftest.$ac_ext | ||
14420 | cat >>conftest.$ac_ext <<_ACEOF | ||
14421 | /* end confdefs.h. */ | ||
14422 | |||
14423 | /* Override any GCC internal prototype to avoid an error. | ||
14424 | Use char because int might match the return type of a GCC | ||
14425 | builtin and then its argument prototype would still apply. */ | ||
14426 | #ifdef __cplusplus | ||
14427 | extern "C" | ||
14428 | #endif | ||
14429 | char scan_scaled (); | ||
14430 | int | ||
14431 | main () | ||
14432 | { | ||
14433 | return scan_scaled (); | ||
14434 | ; | ||
14435 | return 0; | ||
14436 | } | ||
14437 | _ACEOF | ||
14438 | for ac_lib in '' util bsd; do | ||
14439 | if test -z "$ac_lib"; then | ||
14440 | ac_res="none required" | ||
14441 | else | ||
14442 | ac_res=-l$ac_lib | ||
14443 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14444 | fi | ||
14445 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14446 | if { (ac_try="$ac_link" | ||
14447 | case "(($ac_try" in | ||
14448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14449 | *) ac_try_echo=$ac_try;; | ||
14450 | esac | ||
14451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14452 | (eval "$ac_link") 2>conftest.er1 | ||
14453 | ac_status=$? | ||
14454 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14455 | rm -f conftest.er1 | ||
14456 | cat conftest.err >&5 | ||
14457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14458 | (exit $ac_status); } && { | ||
14459 | test -z "$ac_c_werror_flag" || | ||
14460 | test ! -s conftest.err | ||
14461 | } && test -s conftest$ac_exeext && | ||
14462 | $as_test_x conftest$ac_exeext; then | ||
14463 | ac_cv_search_scan_scaled=$ac_res | ||
14464 | else | ||
14465 | echo "$as_me: failed program was:" >&5 | ||
14466 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14467 | |||
14468 | |||
14469 | fi | ||
14470 | |||
14471 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14472 | conftest$ac_exeext | ||
14473 | if test "${ac_cv_search_scan_scaled+set}" = set; then | ||
14474 | break | ||
14475 | fi | ||
14476 | done | ||
14477 | if test "${ac_cv_search_scan_scaled+set}" = set; then | ||
14478 | : | ||
14479 | else | ||
14480 | ac_cv_search_scan_scaled=no | ||
14481 | fi | ||
14482 | rm conftest.$ac_ext | ||
14483 | LIBS=$ac_func_search_save_LIBS | ||
14484 | fi | ||
14485 | { echo "$as_me:$LINENO: result: $ac_cv_search_scan_scaled" >&5 | ||
14486 | echo "${ECHO_T}$ac_cv_search_scan_scaled" >&6; } | ||
14487 | ac_res=$ac_cv_search_scan_scaled | ||
14488 | if test "$ac_res" != no; then | ||
14489 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14490 | |||
14491 | fi | ||
14492 | |||
14493 | { echo "$as_me:$LINENO: checking for library containing login" >&5 | ||
14494 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; } | ||
14495 | if test "${ac_cv_search_login+set}" = set; then | ||
14496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14497 | else | ||
14498 | ac_func_search_save_LIBS=$LIBS | ||
14499 | cat >conftest.$ac_ext <<_ACEOF | ||
14500 | /* confdefs.h. */ | ||
14501 | _ACEOF | ||
14502 | cat confdefs.h >>conftest.$ac_ext | ||
14503 | cat >>conftest.$ac_ext <<_ACEOF | ||
14504 | /* end confdefs.h. */ | ||
14505 | |||
14506 | /* Override any GCC internal prototype to avoid an error. | ||
14507 | Use char because int might match the return type of a GCC | ||
14508 | builtin and then its argument prototype would still apply. */ | ||
14509 | #ifdef __cplusplus | ||
14510 | extern "C" | ||
14511 | #endif | ||
14512 | char login (); | ||
14513 | int | ||
14514 | main () | ||
14515 | { | ||
14516 | return login (); | ||
14517 | ; | ||
14518 | return 0; | ||
14519 | } | ||
14520 | _ACEOF | ||
14521 | for ac_lib in '' util bsd; do | ||
14522 | if test -z "$ac_lib"; then | ||
14523 | ac_res="none required" | ||
14524 | else | ||
14525 | ac_res=-l$ac_lib | ||
14526 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14527 | fi | ||
14528 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14529 | if { (ac_try="$ac_link" | ||
14530 | case "(($ac_try" in | ||
14531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14532 | *) ac_try_echo=$ac_try;; | ||
14533 | esac | ||
14534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14535 | (eval "$ac_link") 2>conftest.er1 | ||
14536 | ac_status=$? | ||
14537 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14538 | rm -f conftest.er1 | ||
14539 | cat conftest.err >&5 | ||
14540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14541 | (exit $ac_status); } && { | ||
14542 | test -z "$ac_c_werror_flag" || | ||
14543 | test ! -s conftest.err | ||
14544 | } && test -s conftest$ac_exeext && | ||
14545 | $as_test_x conftest$ac_exeext; then | ||
14546 | ac_cv_search_login=$ac_res | ||
14547 | else | ||
14548 | echo "$as_me: failed program was:" >&5 | ||
14549 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14550 | |||
14551 | |||
14552 | fi | ||
14553 | |||
14554 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14555 | conftest$ac_exeext | ||
14556 | if test "${ac_cv_search_login+set}" = set; then | ||
14557 | break | ||
14558 | fi | ||
14559 | done | ||
14560 | if test "${ac_cv_search_login+set}" = set; then | ||
14561 | : | ||
14562 | else | ||
14563 | ac_cv_search_login=no | ||
14564 | fi | ||
14565 | rm conftest.$ac_ext | ||
14566 | LIBS=$ac_func_search_save_LIBS | ||
14567 | fi | ||
14568 | { echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | ||
14569 | echo "${ECHO_T}$ac_cv_search_login" >&6; } | ||
14570 | ac_res=$ac_cv_search_login | ||
14571 | if test "$ac_res" != no; then | ||
14572 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14573 | |||
14574 | fi | ||
14575 | |||
14576 | { echo "$as_me:$LINENO: checking for library containing logout" >&5 | ||
14577 | echo $ECHO_N "checking for library containing logout... $ECHO_C" >&6; } | ||
14578 | if test "${ac_cv_search_logout+set}" = set; then | ||
14579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14580 | else | ||
14581 | ac_func_search_save_LIBS=$LIBS | ||
14582 | cat >conftest.$ac_ext <<_ACEOF | ||
14583 | /* confdefs.h. */ | ||
14584 | _ACEOF | ||
14585 | cat confdefs.h >>conftest.$ac_ext | ||
14586 | cat >>conftest.$ac_ext <<_ACEOF | ||
14587 | /* end confdefs.h. */ | ||
14588 | |||
14589 | /* Override any GCC internal prototype to avoid an error. | ||
14590 | Use char because int might match the return type of a GCC | ||
14591 | builtin and then its argument prototype would still apply. */ | ||
14592 | #ifdef __cplusplus | ||
14593 | extern "C" | ||
14594 | #endif | ||
14595 | char logout (); | ||
14596 | int | ||
14597 | main () | ||
14598 | { | ||
14599 | return logout (); | ||
14600 | ; | ||
14601 | return 0; | ||
14602 | } | ||
14603 | _ACEOF | ||
14604 | for ac_lib in '' util bsd; do | ||
14605 | if test -z "$ac_lib"; then | ||
14606 | ac_res="none required" | ||
14607 | else | ||
14608 | ac_res=-l$ac_lib | ||
14609 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14610 | fi | ||
14611 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14612 | if { (ac_try="$ac_link" | ||
14613 | case "(($ac_try" in | ||
14614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14615 | *) ac_try_echo=$ac_try;; | ||
14616 | esac | ||
14617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14618 | (eval "$ac_link") 2>conftest.er1 | ||
14619 | ac_status=$? | ||
14620 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14621 | rm -f conftest.er1 | ||
14622 | cat conftest.err >&5 | ||
14623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14624 | (exit $ac_status); } && { | ||
14625 | test -z "$ac_c_werror_flag" || | ||
14626 | test ! -s conftest.err | ||
14627 | } && test -s conftest$ac_exeext && | ||
14628 | $as_test_x conftest$ac_exeext; then | ||
14629 | ac_cv_search_logout=$ac_res | ||
14630 | else | ||
14631 | echo "$as_me: failed program was:" >&5 | ||
14632 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14633 | |||
14634 | |||
14635 | fi | ||
14636 | |||
14637 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14638 | conftest$ac_exeext | ||
14639 | if test "${ac_cv_search_logout+set}" = set; then | ||
14640 | break | ||
14641 | fi | ||
14642 | done | ||
14643 | if test "${ac_cv_search_logout+set}" = set; then | ||
14644 | : | ||
14645 | else | ||
14646 | ac_cv_search_logout=no | ||
14647 | fi | ||
14648 | rm conftest.$ac_ext | ||
14649 | LIBS=$ac_func_search_save_LIBS | ||
14650 | fi | ||
14651 | { echo "$as_me:$LINENO: result: $ac_cv_search_logout" >&5 | ||
14652 | echo "${ECHO_T}$ac_cv_search_logout" >&6; } | ||
14653 | ac_res=$ac_cv_search_logout | ||
14654 | if test "$ac_res" != no; then | ||
14655 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14656 | |||
14657 | fi | ||
14658 | |||
14659 | { echo "$as_me:$LINENO: checking for library containing logwtmp" >&5 | ||
14660 | echo $ECHO_N "checking for library containing logwtmp... $ECHO_C" >&6; } | ||
14661 | if test "${ac_cv_search_logwtmp+set}" = set; then | ||
14662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14663 | else | ||
14664 | ac_func_search_save_LIBS=$LIBS | ||
14665 | cat >conftest.$ac_ext <<_ACEOF | ||
14666 | /* confdefs.h. */ | ||
14667 | _ACEOF | ||
14668 | cat confdefs.h >>conftest.$ac_ext | ||
14669 | cat >>conftest.$ac_ext <<_ACEOF | ||
14670 | /* end confdefs.h. */ | ||
14671 | |||
14672 | /* Override any GCC internal prototype to avoid an error. | ||
14673 | Use char because int might match the return type of a GCC | ||
14674 | builtin and then its argument prototype would still apply. */ | ||
14675 | #ifdef __cplusplus | ||
14676 | extern "C" | ||
14677 | #endif | ||
14678 | char logwtmp (); | ||
14679 | int | ||
14680 | main () | ||
14681 | { | ||
14682 | return logwtmp (); | ||
14683 | ; | ||
14684 | return 0; | ||
14685 | } | ||
14686 | _ACEOF | ||
14687 | for ac_lib in '' util bsd; do | ||
14688 | if test -z "$ac_lib"; then | ||
14689 | ac_res="none required" | ||
14690 | else | ||
14691 | ac_res=-l$ac_lib | ||
14692 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14693 | fi | ||
14694 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14695 | if { (ac_try="$ac_link" | ||
14696 | case "(($ac_try" in | ||
14697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14698 | *) ac_try_echo=$ac_try;; | ||
14699 | esac | ||
14700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14701 | (eval "$ac_link") 2>conftest.er1 | ||
14702 | ac_status=$? | ||
14703 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14704 | rm -f conftest.er1 | ||
14705 | cat conftest.err >&5 | ||
14706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14707 | (exit $ac_status); } && { | ||
14708 | test -z "$ac_c_werror_flag" || | ||
14709 | test ! -s conftest.err | ||
14710 | } && test -s conftest$ac_exeext && | ||
14711 | $as_test_x conftest$ac_exeext; then | ||
14712 | ac_cv_search_logwtmp=$ac_res | ||
14713 | else | ||
14714 | echo "$as_me: failed program was:" >&5 | ||
14715 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14716 | |||
14717 | |||
14718 | fi | ||
14719 | |||
14720 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14721 | conftest$ac_exeext | ||
14722 | if test "${ac_cv_search_logwtmp+set}" = set; then | ||
14723 | break | ||
14724 | fi | ||
14725 | done | ||
14726 | if test "${ac_cv_search_logwtmp+set}" = set; then | ||
14727 | : | ||
14728 | else | ||
14729 | ac_cv_search_logwtmp=no | ||
14730 | fi | ||
14731 | rm conftest.$ac_ext | ||
14732 | LIBS=$ac_func_search_save_LIBS | ||
14733 | fi | ||
14734 | { echo "$as_me:$LINENO: result: $ac_cv_search_logwtmp" >&5 | ||
14735 | echo "${ECHO_T}$ac_cv_search_logwtmp" >&6; } | ||
14736 | ac_res=$ac_cv_search_logwtmp | ||
14737 | if test "$ac_res" != no; then | ||
14738 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14739 | |||
14740 | fi | ||
14741 | |||
14742 | { echo "$as_me:$LINENO: checking for library containing openpty" >&5 | ||
14743 | echo $ECHO_N "checking for library containing openpty... $ECHO_C" >&6; } | ||
14744 | if test "${ac_cv_search_openpty+set}" = set; then | ||
14745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14746 | else | ||
14747 | ac_func_search_save_LIBS=$LIBS | ||
14748 | cat >conftest.$ac_ext <<_ACEOF | ||
14749 | /* confdefs.h. */ | ||
14750 | _ACEOF | ||
14751 | cat confdefs.h >>conftest.$ac_ext | ||
14752 | cat >>conftest.$ac_ext <<_ACEOF | ||
14753 | /* end confdefs.h. */ | ||
14754 | |||
14755 | /* Override any GCC internal prototype to avoid an error. | ||
14756 | Use char because int might match the return type of a GCC | ||
14757 | builtin and then its argument prototype would still apply. */ | ||
14758 | #ifdef __cplusplus | ||
14759 | extern "C" | ||
14760 | #endif | ||
14761 | char openpty (); | ||
14762 | int | ||
14763 | main () | ||
14764 | { | ||
14765 | return openpty (); | ||
14766 | ; | ||
14767 | return 0; | ||
14768 | } | ||
14769 | _ACEOF | ||
14770 | for ac_lib in '' util bsd; do | ||
14771 | if test -z "$ac_lib"; then | ||
14772 | ac_res="none required" | ||
14773 | else | ||
14774 | ac_res=-l$ac_lib | ||
14775 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14776 | fi | ||
14777 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14778 | if { (ac_try="$ac_link" | ||
14779 | case "(($ac_try" in | ||
14780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14781 | *) ac_try_echo=$ac_try;; | ||
14782 | esac | ||
14783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14784 | (eval "$ac_link") 2>conftest.er1 | ||
14785 | ac_status=$? | ||
14786 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14787 | rm -f conftest.er1 | ||
14788 | cat conftest.err >&5 | ||
14789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14790 | (exit $ac_status); } && { | ||
14791 | test -z "$ac_c_werror_flag" || | ||
14792 | test ! -s conftest.err | ||
14793 | } && test -s conftest$ac_exeext && | ||
14794 | $as_test_x conftest$ac_exeext; then | ||
14795 | ac_cv_search_openpty=$ac_res | ||
14796 | else | ||
14797 | echo "$as_me: failed program was:" >&5 | ||
14798 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14799 | |||
14800 | |||
14801 | fi | ||
14802 | |||
14803 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14804 | conftest$ac_exeext | ||
14805 | if test "${ac_cv_search_openpty+set}" = set; then | ||
14806 | break | ||
14807 | fi | ||
14808 | done | ||
14809 | if test "${ac_cv_search_openpty+set}" = set; then | ||
14810 | : | ||
14811 | else | ||
14812 | ac_cv_search_openpty=no | ||
14813 | fi | ||
14814 | rm conftest.$ac_ext | ||
14815 | LIBS=$ac_func_search_save_LIBS | ||
14816 | fi | ||
14817 | { echo "$as_me:$LINENO: result: $ac_cv_search_openpty" >&5 | ||
14818 | echo "${ECHO_T}$ac_cv_search_openpty" >&6; } | ||
14819 | ac_res=$ac_cv_search_openpty | ||
14820 | if test "$ac_res" != no; then | ||
14821 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14822 | |||
14823 | fi | ||
14824 | |||
14825 | { echo "$as_me:$LINENO: checking for library containing updwtmp" >&5 | ||
14826 | echo $ECHO_N "checking for library containing updwtmp... $ECHO_C" >&6; } | ||
14827 | if test "${ac_cv_search_updwtmp+set}" = set; then | ||
14828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14829 | else | ||
14830 | ac_func_search_save_LIBS=$LIBS | ||
14831 | cat >conftest.$ac_ext <<_ACEOF | ||
14832 | /* confdefs.h. */ | ||
14833 | _ACEOF | ||
14834 | cat confdefs.h >>conftest.$ac_ext | ||
14835 | cat >>conftest.$ac_ext <<_ACEOF | ||
14836 | /* end confdefs.h. */ | ||
14837 | |||
14838 | /* Override any GCC internal prototype to avoid an error. | ||
14839 | Use char because int might match the return type of a GCC | ||
14840 | builtin and then its argument prototype would still apply. */ | ||
14841 | #ifdef __cplusplus | ||
14842 | extern "C" | ||
14843 | #endif | ||
14844 | char updwtmp (); | ||
14845 | int | ||
14846 | main () | ||
14847 | { | ||
14848 | return updwtmp (); | ||
14849 | ; | ||
14850 | return 0; | ||
14851 | } | ||
14852 | _ACEOF | ||
14853 | for ac_lib in '' util bsd; do | ||
14854 | if test -z "$ac_lib"; then | ||
14855 | ac_res="none required" | ||
14856 | else | ||
14857 | ac_res=-l$ac_lib | ||
14858 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14859 | fi | ||
14860 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14861 | if { (ac_try="$ac_link" | ||
14862 | case "(($ac_try" in | ||
14863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14864 | *) ac_try_echo=$ac_try;; | ||
14865 | esac | ||
14866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14867 | (eval "$ac_link") 2>conftest.er1 | ||
14868 | ac_status=$? | ||
14869 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14870 | rm -f conftest.er1 | ||
14871 | cat conftest.err >&5 | ||
14872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14873 | (exit $ac_status); } && { | ||
14874 | test -z "$ac_c_werror_flag" || | ||
14875 | test ! -s conftest.err | ||
14876 | } && test -s conftest$ac_exeext && | ||
14877 | $as_test_x conftest$ac_exeext; then | ||
14878 | ac_cv_search_updwtmp=$ac_res | ||
14879 | else | ||
14880 | echo "$as_me: failed program was:" >&5 | ||
14881 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14882 | |||
14883 | |||
14884 | fi | ||
14885 | |||
14886 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14887 | conftest$ac_exeext | ||
14888 | if test "${ac_cv_search_updwtmp+set}" = set; then | ||
14889 | break | ||
14890 | fi | ||
14891 | done | ||
14892 | if test "${ac_cv_search_updwtmp+set}" = set; then | ||
14893 | : | ||
14894 | else | ||
14895 | ac_cv_search_updwtmp=no | ||
14896 | fi | ||
14897 | rm conftest.$ac_ext | ||
14898 | LIBS=$ac_func_search_save_LIBS | ||
14899 | fi | ||
14900 | { echo "$as_me:$LINENO: result: $ac_cv_search_updwtmp" >&5 | ||
14901 | echo "${ECHO_T}$ac_cv_search_updwtmp" >&6; } | ||
14902 | ac_res=$ac_cv_search_updwtmp | ||
14903 | if test "$ac_res" != no; then | ||
14904 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14905 | |||
14906 | fi | ||
14907 | |||
14908 | |||
14909 | |||
14910 | |||
14911 | |||
14912 | |||
14913 | |||
14914 | |||
14915 | for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp | ||
14916 | do | ||
14917 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14918 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14919 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14920 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14922 | else | ||
14923 | cat >conftest.$ac_ext <<_ACEOF | ||
14924 | /* confdefs.h. */ | ||
14925 | _ACEOF | ||
14926 | cat confdefs.h >>conftest.$ac_ext | ||
14927 | cat >>conftest.$ac_ext <<_ACEOF | ||
14928 | /* end confdefs.h. */ | ||
14929 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14930 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14931 | #define $ac_func innocuous_$ac_func | ||
14932 | |||
14933 | /* System header to define __stub macros and hopefully few prototypes, | ||
14934 | which can conflict with char $ac_func (); below. | ||
14935 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14936 | <limits.h> exists even on freestanding compilers. */ | ||
14937 | |||
14938 | #ifdef __STDC__ | ||
14939 | # include <limits.h> | ||
14940 | #else | ||
14941 | # include <assert.h> | ||
14942 | #endif | ||
14943 | |||
14944 | #undef $ac_func | ||
14945 | |||
14946 | /* Override any GCC internal prototype to avoid an error. | ||
14947 | Use char because int might match the return type of a GCC | ||
14948 | builtin and then its argument prototype would still apply. */ | ||
14949 | #ifdef __cplusplus | ||
14950 | extern "C" | ||
14951 | #endif | ||
14952 | char $ac_func (); | ||
14953 | /* The GNU C library defines this for functions which it implements | ||
14954 | to always fail with ENOSYS. Some functions are actually named | ||
14955 | something starting with __ and the normal name is an alias. */ | ||
14956 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14957 | choke me | ||
14958 | #endif | ||
14959 | |||
14960 | int | ||
14961 | main () | ||
14962 | { | ||
14963 | return $ac_func (); | ||
14964 | ; | ||
14965 | return 0; | ||
14966 | } | ||
14967 | _ACEOF | ||
14968 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14969 | if { (ac_try="$ac_link" | ||
14970 | case "(($ac_try" in | ||
14971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14972 | *) ac_try_echo=$ac_try;; | ||
14973 | esac | ||
14974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14975 | (eval "$ac_link") 2>conftest.er1 | ||
14976 | ac_status=$? | ||
14977 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14978 | rm -f conftest.er1 | ||
14979 | cat conftest.err >&5 | ||
14980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14981 | (exit $ac_status); } && { | ||
14982 | test -z "$ac_c_werror_flag" || | ||
14983 | test ! -s conftest.err | ||
14984 | } && test -s conftest$ac_exeext && | ||
14985 | $as_test_x conftest$ac_exeext; then | ||
14986 | eval "$as_ac_var=yes" | ||
14987 | else | ||
14988 | echo "$as_me: failed program was:" >&5 | ||
14989 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14990 | |||
14991 | eval "$as_ac_var=no" | ||
14992 | fi | ||
14993 | |||
14994 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14995 | conftest$ac_exeext conftest.$ac_ext | ||
14996 | fi | ||
14997 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14998 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14999 | echo "${ECHO_T}$ac_res" >&6; } | ||
15000 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15001 | cat >>confdefs.h <<_ACEOF | ||
15002 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15003 | _ACEOF | ||
15004 | |||
15005 | fi | ||
15006 | done | ||
15007 | |||
15008 | |||
15009 | # On some platforms, inet_ntop and gethostbyname may be found in libresolv | ||
15010 | # or libnsl. | ||
15011 | { echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5 | ||
15012 | echo $ECHO_N "checking for library containing inet_ntop... $ECHO_C" >&6; } | ||
15013 | if test "${ac_cv_search_inet_ntop+set}" = set; then | ||
15014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15015 | else | ||
15016 | ac_func_search_save_LIBS=$LIBS | ||
15017 | cat >conftest.$ac_ext <<_ACEOF | ||
15018 | /* confdefs.h. */ | ||
15019 | _ACEOF | ||
15020 | cat confdefs.h >>conftest.$ac_ext | ||
15021 | cat >>conftest.$ac_ext <<_ACEOF | ||
15022 | /* end confdefs.h. */ | ||
15023 | |||
15024 | /* Override any GCC internal prototype to avoid an error. | ||
15025 | Use char because int might match the return type of a GCC | ||
15026 | builtin and then its argument prototype would still apply. */ | ||
15027 | #ifdef __cplusplus | ||
15028 | extern "C" | ||
15029 | #endif | ||
15030 | char inet_ntop (); | ||
15031 | int | ||
15032 | main () | ||
15033 | { | ||
15034 | return inet_ntop (); | ||
15035 | ; | ||
15036 | return 0; | ||
15037 | } | ||
15038 | _ACEOF | ||
15039 | for ac_lib in '' resolv nsl; do | ||
15040 | if test -z "$ac_lib"; then | ||
15041 | ac_res="none required" | ||
15042 | else | ||
15043 | ac_res=-l$ac_lib | ||
15044 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15045 | fi | ||
15046 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15047 | if { (ac_try="$ac_link" | ||
15048 | case "(($ac_try" in | ||
15049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15050 | *) ac_try_echo=$ac_try;; | ||
15051 | esac | ||
15052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15053 | (eval "$ac_link") 2>conftest.er1 | ||
15054 | ac_status=$? | ||
15055 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15056 | rm -f conftest.er1 | ||
15057 | cat conftest.err >&5 | ||
15058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15059 | (exit $ac_status); } && { | ||
15060 | test -z "$ac_c_werror_flag" || | ||
15061 | test ! -s conftest.err | ||
15062 | } && test -s conftest$ac_exeext && | ||
15063 | $as_test_x conftest$ac_exeext; then | ||
15064 | ac_cv_search_inet_ntop=$ac_res | ||
15065 | else | ||
15066 | echo "$as_me: failed program was:" >&5 | ||
15067 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15068 | |||
15069 | |||
15070 | fi | ||
15071 | |||
15072 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15073 | conftest$ac_exeext | ||
15074 | if test "${ac_cv_search_inet_ntop+set}" = set; then | ||
15075 | break | ||
15076 | fi | ||
15077 | done | ||
15078 | if test "${ac_cv_search_inet_ntop+set}" = set; then | ||
15079 | : | ||
15080 | else | ||
15081 | ac_cv_search_inet_ntop=no | ||
15082 | fi | ||
15083 | rm conftest.$ac_ext | ||
15084 | LIBS=$ac_func_search_save_LIBS | ||
15085 | fi | ||
15086 | { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5 | ||
15087 | echo "${ECHO_T}$ac_cv_search_inet_ntop" >&6; } | ||
15088 | ac_res=$ac_cv_search_inet_ntop | ||
15089 | if test "$ac_res" != no; then | ||
15090 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
15091 | |||
15092 | fi | ||
15093 | |||
15094 | { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 | ||
15095 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; } | ||
15096 | if test "${ac_cv_search_gethostbyname+set}" = set; then | ||
15097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15098 | else | ||
15099 | ac_func_search_save_LIBS=$LIBS | ||
15100 | cat >conftest.$ac_ext <<_ACEOF | ||
15101 | /* confdefs.h. */ | ||
15102 | _ACEOF | ||
15103 | cat confdefs.h >>conftest.$ac_ext | ||
15104 | cat >>conftest.$ac_ext <<_ACEOF | ||
15105 | /* end confdefs.h. */ | ||
15106 | |||
15107 | /* Override any GCC internal prototype to avoid an error. | ||
15108 | Use char because int might match the return type of a GCC | ||
15109 | builtin and then its argument prototype would still apply. */ | ||
15110 | #ifdef __cplusplus | ||
15111 | extern "C" | ||
15112 | #endif | ||
15113 | char gethostbyname (); | ||
15114 | int | ||
15115 | main () | ||
15116 | { | ||
15117 | return gethostbyname (); | ||
15118 | ; | ||
15119 | return 0; | ||
15120 | } | ||
15121 | _ACEOF | ||
15122 | for ac_lib in '' resolv nsl; do | ||
15123 | if test -z "$ac_lib"; then | ||
15124 | ac_res="none required" | ||
15125 | else | ||
15126 | ac_res=-l$ac_lib | ||
15127 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15128 | fi | ||
15129 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15130 | if { (ac_try="$ac_link" | ||
15131 | case "(($ac_try" in | ||
15132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15133 | *) ac_try_echo=$ac_try;; | ||
15134 | esac | ||
15135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15136 | (eval "$ac_link") 2>conftest.er1 | ||
15137 | ac_status=$? | ||
15138 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15139 | rm -f conftest.er1 | ||
15140 | cat conftest.err >&5 | ||
15141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15142 | (exit $ac_status); } && { | ||
15143 | test -z "$ac_c_werror_flag" || | ||
15144 | test ! -s conftest.err | ||
15145 | } && test -s conftest$ac_exeext && | ||
15146 | $as_test_x conftest$ac_exeext; then | ||
15147 | ac_cv_search_gethostbyname=$ac_res | ||
15148 | else | ||
15149 | echo "$as_me: failed program was:" >&5 | ||
15150 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15151 | |||
15152 | |||
15153 | fi | ||
15154 | |||
15155 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15156 | conftest$ac_exeext | ||
15157 | if test "${ac_cv_search_gethostbyname+set}" = set; then | ||
15158 | break | ||
15159 | fi | ||
15160 | done | ||
15161 | if test "${ac_cv_search_gethostbyname+set}" = set; then | ||
15162 | : | ||
15163 | else | ||
15164 | ac_cv_search_gethostbyname=no | ||
15165 | fi | ||
15166 | rm conftest.$ac_ext | ||
15167 | LIBS=$ac_func_search_save_LIBS | ||
15168 | fi | ||
15169 | { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 | ||
15170 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; } | ||
15171 | ac_res=$ac_cv_search_gethostbyname | ||
15172 | if test "$ac_res" != no; then | ||
15173 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
15174 | |||
15175 | fi | ||
15176 | |||
15177 | |||
15178 | |||
15179 | for ac_func in strftime | ||
15180 | do | ||
15181 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15182 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15183 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
15184 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15186 | else | ||
15187 | cat >conftest.$ac_ext <<_ACEOF | ||
15188 | /* confdefs.h. */ | ||
15189 | _ACEOF | ||
15190 | cat confdefs.h >>conftest.$ac_ext | ||
15191 | cat >>conftest.$ac_ext <<_ACEOF | ||
15192 | /* end confdefs.h. */ | ||
15193 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15194 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15195 | #define $ac_func innocuous_$ac_func | ||
15196 | |||
15197 | /* System header to define __stub macros and hopefully few prototypes, | ||
15198 | which can conflict with char $ac_func (); below. | ||
15199 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15200 | <limits.h> exists even on freestanding compilers. */ | ||
15201 | |||
15202 | #ifdef __STDC__ | ||
15203 | # include <limits.h> | ||
15204 | #else | ||
15205 | # include <assert.h> | ||
15206 | #endif | ||
15207 | |||
15208 | #undef $ac_func | ||
15209 | |||
15210 | /* Override any GCC internal prototype to avoid an error. | ||
15211 | Use char because int might match the return type of a GCC | ||
15212 | builtin and then its argument prototype would still apply. */ | ||
15213 | #ifdef __cplusplus | ||
15214 | extern "C" | ||
15215 | #endif | ||
15216 | char $ac_func (); | ||
15217 | /* The GNU C library defines this for functions which it implements | ||
15218 | to always fail with ENOSYS. Some functions are actually named | ||
15219 | something starting with __ and the normal name is an alias. */ | ||
15220 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15221 | choke me | ||
15222 | #endif | ||
15223 | |||
15224 | int | ||
15225 | main () | ||
15226 | { | ||
15227 | return $ac_func (); | ||
15228 | ; | ||
15229 | return 0; | ||
15230 | } | ||
15231 | _ACEOF | ||
15232 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15233 | if { (ac_try="$ac_link" | ||
15234 | case "(($ac_try" in | ||
15235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15236 | *) ac_try_echo=$ac_try;; | ||
15237 | esac | ||
15238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15239 | (eval "$ac_link") 2>conftest.er1 | ||
15240 | ac_status=$? | ||
15241 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15242 | rm -f conftest.er1 | ||
15243 | cat conftest.err >&5 | ||
15244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15245 | (exit $ac_status); } && { | ||
15246 | test -z "$ac_c_werror_flag" || | ||
15247 | test ! -s conftest.err | ||
15248 | } && test -s conftest$ac_exeext && | ||
15249 | $as_test_x conftest$ac_exeext; then | ||
15250 | eval "$as_ac_var=yes" | ||
15251 | else | ||
15252 | echo "$as_me: failed program was:" >&5 | ||
15253 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15254 | |||
15255 | eval "$as_ac_var=no" | ||
15256 | fi | ||
15257 | |||
15258 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15259 | conftest$ac_exeext conftest.$ac_ext | ||
15260 | fi | ||
15261 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
15262 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15263 | echo "${ECHO_T}$ac_res" >&6; } | ||
15264 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15265 | cat >>confdefs.h <<_ACEOF | ||
15266 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15267 | _ACEOF | ||
15268 | |||
15269 | else | ||
15270 | # strftime is in -lintl on SCO UNIX. | ||
15271 | { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | ||
15272 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } | ||
15273 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
15274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15275 | else | ||
15276 | ac_check_lib_save_LIBS=$LIBS | ||
15277 | LIBS="-lintl $LIBS" | ||
15278 | cat >conftest.$ac_ext <<_ACEOF | ||
15279 | /* confdefs.h. */ | ||
15280 | _ACEOF | ||
15281 | cat confdefs.h >>conftest.$ac_ext | ||
15282 | cat >>conftest.$ac_ext <<_ACEOF | ||
15283 | /* end confdefs.h. */ | ||
15284 | |||
15285 | /* Override any GCC internal prototype to avoid an error. | ||
15286 | Use char because int might match the return type of a GCC | ||
15287 | builtin and then its argument prototype would still apply. */ | ||
15288 | #ifdef __cplusplus | ||
15289 | extern "C" | ||
15290 | #endif | ||
15291 | char strftime (); | ||
15292 | int | ||
15293 | main () | ||
15294 | { | ||
15295 | return strftime (); | ||
15296 | ; | ||
15297 | return 0; | ||
15298 | } | ||
15299 | _ACEOF | ||
15300 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15301 | if { (ac_try="$ac_link" | ||
15302 | case "(($ac_try" in | ||
15303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15304 | *) ac_try_echo=$ac_try;; | ||
15305 | esac | ||
15306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15307 | (eval "$ac_link") 2>conftest.er1 | ||
15308 | ac_status=$? | ||
15309 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15310 | rm -f conftest.er1 | ||
15311 | cat conftest.err >&5 | ||
15312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15313 | (exit $ac_status); } && { | ||
15314 | test -z "$ac_c_werror_flag" || | ||
15315 | test ! -s conftest.err | ||
15316 | } && test -s conftest$ac_exeext && | ||
15317 | $as_test_x conftest$ac_exeext; then | ||
15318 | ac_cv_lib_intl_strftime=yes | ||
15319 | else | ||
15320 | echo "$as_me: failed program was:" >&5 | ||
15321 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15322 | |||
15323 | ac_cv_lib_intl_strftime=no | ||
15324 | fi | ||
15325 | |||
15326 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15327 | conftest$ac_exeext conftest.$ac_ext | ||
15328 | LIBS=$ac_check_lib_save_LIBS | ||
15329 | fi | ||
15330 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | ||
15331 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } | ||
15332 | if test $ac_cv_lib_intl_strftime = yes; then | ||
15333 | cat >>confdefs.h <<\_ACEOF | ||
15334 | #define HAVE_STRFTIME 1 | ||
15335 | _ACEOF | ||
15336 | |||
15337 | LIBS="-lintl $LIBS" | ||
15338 | fi | ||
15339 | |||
15340 | fi | ||
15341 | done | ||
15342 | |||
15343 | |||
15344 | # Check for ALTDIRFUNC glob() extension | ||
15345 | { echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | ||
15346 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; } | ||
15347 | cat >conftest.$ac_ext <<_ACEOF | ||
15348 | /* confdefs.h. */ | ||
15349 | _ACEOF | ||
15350 | cat confdefs.h >>conftest.$ac_ext | ||
15351 | cat >>conftest.$ac_ext <<_ACEOF | ||
15352 | /* end confdefs.h. */ | ||
15353 | |||
15354 | #include <glob.h> | ||
15355 | #ifdef GLOB_ALTDIRFUNC | ||
15356 | FOUNDIT | ||
15357 | #endif | ||
15358 | |||
15359 | _ACEOF | ||
15360 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15361 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
15362 | |||
15363 | |||
15364 | cat >>confdefs.h <<\_ACEOF | ||
15365 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
15366 | _ACEOF | ||
15367 | |||
15368 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15369 | echo "${ECHO_T}yes" >&6; } | ||
15370 | |||
15371 | else | ||
15372 | |||
15373 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15374 | echo "${ECHO_T}no" >&6; } | ||
15375 | |||
15376 | |||
15377 | fi | ||
15378 | rm -f conftest* | ||
15379 | |||
15380 | |||
15381 | # Check for g.gl_matchc glob() extension | ||
15382 | { echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | ||
15383 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; } | ||
15384 | cat >conftest.$ac_ext <<_ACEOF | ||
15385 | /* confdefs.h. */ | ||
15386 | _ACEOF | ||
15387 | cat confdefs.h >>conftest.$ac_ext | ||
15388 | cat >>conftest.$ac_ext <<_ACEOF | ||
15389 | /* end confdefs.h. */ | ||
15390 | #include <glob.h> | ||
15391 | int | ||
15392 | main () | ||
15393 | { | ||
15394 | glob_t g; g.gl_matchc = 1; | ||
15395 | ; | ||
15396 | return 0; | ||
15397 | } | ||
15398 | _ACEOF | ||
15399 | rm -f conftest.$ac_objext | ||
15400 | if { (ac_try="$ac_compile" | ||
15401 | case "(($ac_try" in | ||
15402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15403 | *) ac_try_echo=$ac_try;; | ||
15404 | esac | ||
15405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15406 | (eval "$ac_compile") 2>conftest.er1 | ||
15407 | ac_status=$? | ||
15408 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15409 | rm -f conftest.er1 | ||
15410 | cat conftest.err >&5 | ||
15411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15412 | (exit $ac_status); } && { | ||
15413 | test -z "$ac_c_werror_flag" || | ||
15414 | test ! -s conftest.err | ||
15415 | } && test -s conftest.$ac_objext; then | ||
15416 | |||
15417 | |||
15418 | cat >>confdefs.h <<\_ACEOF | ||
15419 | #define GLOB_HAS_GL_MATCHC 1 | ||
15420 | _ACEOF | ||
15421 | |||
15422 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15423 | echo "${ECHO_T}yes" >&6; } | ||
15424 | |||
15425 | else | ||
15426 | echo "$as_me: failed program was:" >&5 | ||
15427 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15428 | |||
15429 | |||
15430 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15431 | echo "${ECHO_T}no" >&6; } | ||
15432 | |||
15433 | fi | ||
15434 | |||
15435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15436 | |||
15437 | # Check for g.gl_statv glob() extension | ||
15438 | { echo "$as_me:$LINENO: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5 | ||
15439 | echo $ECHO_N "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... $ECHO_C" >&6; } | ||
15440 | cat >conftest.$ac_ext <<_ACEOF | ||
15441 | /* confdefs.h. */ | ||
15442 | _ACEOF | ||
15443 | cat confdefs.h >>conftest.$ac_ext | ||
15444 | cat >>conftest.$ac_ext <<_ACEOF | ||
15445 | /* end confdefs.h. */ | ||
15446 | #include <glob.h> | ||
15447 | int | ||
15448 | main () | ||
15449 | { | ||
15450 | |||
15451 | #ifndef GLOB_KEEPSTAT | ||
15452 | #error "glob does not support GLOB_KEEPSTAT extension" | ||
15453 | #endif | ||
15454 | glob_t g; | ||
15455 | g.gl_statv = NULL; | ||
15456 | |||
15457 | ; | ||
15458 | return 0; | ||
15459 | } | ||
15460 | _ACEOF | ||
15461 | rm -f conftest.$ac_objext | ||
15462 | if { (ac_try="$ac_compile" | ||
15463 | case "(($ac_try" in | ||
15464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15465 | *) ac_try_echo=$ac_try;; | ||
15466 | esac | ||
15467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15468 | (eval "$ac_compile") 2>conftest.er1 | ||
15469 | ac_status=$? | ||
15470 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15471 | rm -f conftest.er1 | ||
15472 | cat conftest.err >&5 | ||
15473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15474 | (exit $ac_status); } && { | ||
15475 | test -z "$ac_c_werror_flag" || | ||
15476 | test ! -s conftest.err | ||
15477 | } && test -s conftest.$ac_objext; then | ||
15478 | |||
15479 | |||
15480 | cat >>confdefs.h <<\_ACEOF | ||
15481 | #define GLOB_HAS_GL_STATV 1 | ||
15482 | _ACEOF | ||
15483 | |||
15484 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15485 | echo "${ECHO_T}yes" >&6; } | ||
15486 | |||
15487 | else | ||
15488 | echo "$as_me: failed program was:" >&5 | ||
15489 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15490 | |||
15491 | |||
15492 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15493 | echo "${ECHO_T}no" >&6; } | ||
15494 | |||
15495 | |||
15496 | fi | ||
15497 | |||
15498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15499 | |||
15500 | { echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5 | ||
15501 | echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; } | ||
15502 | if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then | ||
15503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15504 | else | ||
15505 | cat >conftest.$ac_ext <<_ACEOF | ||
15506 | /* confdefs.h. */ | ||
15507 | _ACEOF | ||
15508 | cat confdefs.h >>conftest.$ac_ext | ||
15509 | cat >>conftest.$ac_ext <<_ACEOF | ||
15510 | /* end confdefs.h. */ | ||
15511 | #include <glob.h> | ||
15512 | |||
15513 | int | ||
15514 | main () | ||
15515 | { | ||
15516 | #ifndef GLOB_NOMATCH | ||
15517 | (void) GLOB_NOMATCH; | ||
15518 | #endif | ||
15519 | |||
15520 | ; | ||
15521 | return 0; | ||
15522 | } | ||
15523 | _ACEOF | ||
15524 | rm -f conftest.$ac_objext | ||
15525 | if { (ac_try="$ac_compile" | ||
15526 | case "(($ac_try" in | ||
15527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15528 | *) ac_try_echo=$ac_try;; | ||
15529 | esac | ||
15530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15531 | (eval "$ac_compile") 2>conftest.er1 | ||
15532 | ac_status=$? | ||
15533 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15534 | rm -f conftest.er1 | ||
15535 | cat conftest.err >&5 | ||
15536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15537 | (exit $ac_status); } && { | ||
15538 | test -z "$ac_c_werror_flag" || | ||
15539 | test ! -s conftest.err | ||
15540 | } && test -s conftest.$ac_objext; then | ||
15541 | ac_cv_have_decl_GLOB_NOMATCH=yes | ||
15542 | else | ||
15543 | echo "$as_me: failed program was:" >&5 | ||
15544 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15545 | |||
15546 | ac_cv_have_decl_GLOB_NOMATCH=no | ||
15547 | fi | ||
15548 | |||
15549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15550 | fi | ||
15551 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5 | ||
15552 | echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; } | ||
15553 | if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then | ||
15554 | |||
15555 | cat >>confdefs.h <<_ACEOF | ||
15556 | #define HAVE_DECL_GLOB_NOMATCH 1 | ||
15557 | _ACEOF | ||
15558 | |||
15559 | |||
15560 | else | ||
15561 | cat >>confdefs.h <<_ACEOF | ||
15562 | #define HAVE_DECL_GLOB_NOMATCH 0 | ||
15563 | _ACEOF | ||
15564 | |||
15565 | |||
15566 | fi | ||
15567 | |||
15568 | |||
15569 | |||
15570 | { echo "$as_me:$LINENO: checking whether VIS_ALL is declared" >&5 | ||
15571 | echo $ECHO_N "checking whether VIS_ALL is declared... $ECHO_C" >&6; } | ||
15572 | if test "${ac_cv_have_decl_VIS_ALL+set}" = set; then | ||
15573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15574 | else | ||
15575 | cat >conftest.$ac_ext <<_ACEOF | ||
15576 | /* confdefs.h. */ | ||
15577 | _ACEOF | ||
15578 | cat confdefs.h >>conftest.$ac_ext | ||
15579 | cat >>conftest.$ac_ext <<_ACEOF | ||
15580 | /* end confdefs.h. */ | ||
15581 | #include <vis.h> | ||
15582 | |||
15583 | int | ||
15584 | main () | ||
15585 | { | ||
15586 | #ifndef VIS_ALL | ||
15587 | (void) VIS_ALL; | ||
15588 | #endif | ||
15589 | |||
15590 | ; | ||
15591 | return 0; | ||
15592 | } | ||
15593 | _ACEOF | ||
15594 | rm -f conftest.$ac_objext | ||
15595 | if { (ac_try="$ac_compile" | ||
15596 | case "(($ac_try" in | ||
15597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15598 | *) ac_try_echo=$ac_try;; | ||
15599 | esac | ||
15600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15601 | (eval "$ac_compile") 2>conftest.er1 | ||
15602 | ac_status=$? | ||
15603 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15604 | rm -f conftest.er1 | ||
15605 | cat conftest.err >&5 | ||
15606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15607 | (exit $ac_status); } && { | ||
15608 | test -z "$ac_c_werror_flag" || | ||
15609 | test ! -s conftest.err | ||
15610 | } && test -s conftest.$ac_objext; then | ||
15611 | ac_cv_have_decl_VIS_ALL=yes | ||
15612 | else | ||
15613 | echo "$as_me: failed program was:" >&5 | ||
15614 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15615 | |||
15616 | ac_cv_have_decl_VIS_ALL=no | ||
15617 | fi | ||
15618 | |||
15619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15620 | fi | ||
15621 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_VIS_ALL" >&5 | ||
15622 | echo "${ECHO_T}$ac_cv_have_decl_VIS_ALL" >&6; } | ||
15623 | if test $ac_cv_have_decl_VIS_ALL = yes; then | ||
15624 | : | ||
15625 | else | ||
15626 | |||
15627 | cat >>confdefs.h <<\_ACEOF | ||
15628 | #define BROKEN_STRNVIS 1 | ||
15629 | _ACEOF | ||
15630 | |||
15631 | fi | ||
15632 | |||
15633 | |||
15634 | { echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | ||
15635 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; } | ||
15636 | if test "$cross_compiling" = yes; then | ||
15637 | |||
15638 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
15639 | echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
15640 | cat >>confdefs.h <<\_ACEOF | ||
15641 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
15642 | _ACEOF | ||
15643 | |||
15644 | |||
15645 | |||
15646 | else | ||
15647 | cat >conftest.$ac_ext <<_ACEOF | ||
15648 | /* confdefs.h. */ | ||
15649 | _ACEOF | ||
15650 | cat confdefs.h >>conftest.$ac_ext | ||
15651 | cat >>conftest.$ac_ext <<_ACEOF | ||
15652 | /* end confdefs.h. */ | ||
15653 | |||
15654 | #include <sys/types.h> | ||
15655 | #include <dirent.h> | ||
15656 | int | ||
15657 | main () | ||
15658 | { | ||
15659 | |||
15660 | struct dirent d; | ||
15661 | exit(sizeof(d.d_name)<=sizeof(char)); | ||
15662 | |||
15663 | ; | ||
15664 | return 0; | ||
15665 | } | ||
15666 | _ACEOF | ||
15667 | rm -f conftest$ac_exeext | ||
15668 | if { (ac_try="$ac_link" | ||
15669 | case "(($ac_try" in | ||
15670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15671 | *) ac_try_echo=$ac_try;; | ||
15672 | esac | ||
15673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15674 | (eval "$ac_link") 2>&5 | ||
15675 | ac_status=$? | ||
15676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15677 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15678 | { (case "(($ac_try" in | ||
15679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15680 | *) ac_try_echo=$ac_try;; | ||
15681 | esac | ||
15682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15683 | (eval "$ac_try") 2>&5 | ||
15684 | ac_status=$? | ||
15685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15686 | (exit $ac_status); }; }; then | ||
15687 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15688 | echo "${ECHO_T}yes" >&6; } | ||
15689 | else | ||
15690 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15691 | echo "$as_me: failed program was:" >&5 | ||
15692 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15693 | |||
15694 | ( exit $ac_status ) | ||
15695 | |||
15696 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15697 | echo "${ECHO_T}no" >&6; } | ||
15698 | |||
15699 | cat >>confdefs.h <<\_ACEOF | ||
15700 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
15701 | _ACEOF | ||
15702 | |||
15703 | |||
15704 | fi | ||
15705 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15706 | fi | ||
15707 | |||
15708 | |||
15709 | |||
15710 | { echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5 | ||
15711 | echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; } | ||
15712 | if test -d "/proc/$$/fd" ; then | ||
15713 | |||
15714 | cat >>confdefs.h <<\_ACEOF | ||
15715 | #define HAVE_PROC_PID 1 | ||
15716 | _ACEOF | ||
15717 | |||
15718 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15719 | echo "${ECHO_T}yes" >&6; } | ||
15720 | else | ||
15721 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15722 | echo "${ECHO_T}no" >&6; } | ||
15723 | fi | ||
15724 | |||
15725 | # Check whether user wants S/Key support | ||
15726 | SKEY_MSG="no" | ||
15727 | |||
15728 | # Check whether --with-skey was given. | ||
15729 | if test "${with_skey+set}" = set; then | ||
15730 | withval=$with_skey; | ||
15731 | if test "x$withval" != "xno" ; then | ||
15732 | |||
15733 | if test "x$withval" != "xyes" ; then | ||
15734 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
15735 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
15736 | fi | ||
15737 | |||
15738 | |||
15739 | cat >>confdefs.h <<\_ACEOF | ||
15740 | #define SKEY 1 | ||
15741 | _ACEOF | ||
15742 | |||
15743 | LIBS="-lskey $LIBS" | ||
15744 | SKEY_MSG="yes" | ||
15745 | |||
15746 | { echo "$as_me:$LINENO: checking for s/key support" >&5 | ||
15747 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; } | ||
15748 | cat >conftest.$ac_ext <<_ACEOF | ||
15749 | /* confdefs.h. */ | ||
15750 | _ACEOF | ||
15751 | cat confdefs.h >>conftest.$ac_ext | ||
15752 | cat >>conftest.$ac_ext <<_ACEOF | ||
15753 | /* end confdefs.h. */ | ||
15754 | |||
15755 | #include <stdio.h> | ||
15756 | #include <skey.h> | ||
15757 | |||
15758 | int | ||
15759 | main () | ||
15760 | { | ||
15761 | |||
15762 | char *ff = skey_keyinfo(""); ff=""; | ||
15763 | exit(0); | ||
15764 | |||
15765 | ; | ||
15766 | return 0; | ||
15767 | } | ||
15768 | _ACEOF | ||
15769 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15770 | if { (ac_try="$ac_link" | ||
15771 | case "(($ac_try" in | ||
15772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15773 | *) ac_try_echo=$ac_try;; | ||
15774 | esac | ||
15775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15776 | (eval "$ac_link") 2>conftest.er1 | ||
15777 | ac_status=$? | ||
15778 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15779 | rm -f conftest.er1 | ||
15780 | cat conftest.err >&5 | ||
15781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15782 | (exit $ac_status); } && { | ||
15783 | test -z "$ac_c_werror_flag" || | ||
15784 | test ! -s conftest.err | ||
15785 | } && test -s conftest$ac_exeext && | ||
15786 | $as_test_x conftest$ac_exeext; then | ||
15787 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15788 | echo "${ECHO_T}yes" >&6; } | ||
15789 | else | ||
15790 | echo "$as_me: failed program was:" >&5 | ||
15791 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15792 | |||
15793 | |||
15794 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15795 | echo "${ECHO_T}no" >&6; } | ||
15796 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | ||
15797 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
15798 | { (exit 1); exit 1; }; } | ||
15799 | |||
15800 | fi | ||
15801 | |||
15802 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15803 | conftest$ac_exeext conftest.$ac_ext | ||
15804 | { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5 | ||
15805 | echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; } | ||
15806 | cat >conftest.$ac_ext <<_ACEOF | ||
15807 | /* confdefs.h. */ | ||
15808 | _ACEOF | ||
15809 | cat confdefs.h >>conftest.$ac_ext | ||
15810 | cat >>conftest.$ac_ext <<_ACEOF | ||
15811 | /* end confdefs.h. */ | ||
15812 | |||
15813 | #include <stdio.h> | ||
15814 | #include <skey.h> | ||
15815 | |||
15816 | int | ||
15817 | main () | ||
15818 | { | ||
15819 | |||
15820 | (void)skeychallenge(NULL,"name","",0); | ||
15821 | |||
15822 | ; | ||
15823 | return 0; | ||
15824 | } | ||
15825 | _ACEOF | ||
15826 | rm -f conftest.$ac_objext | ||
15827 | if { (ac_try="$ac_compile" | ||
15828 | case "(($ac_try" in | ||
15829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15830 | *) ac_try_echo=$ac_try;; | ||
15831 | esac | ||
15832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15833 | (eval "$ac_compile") 2>conftest.er1 | ||
15834 | ac_status=$? | ||
15835 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15836 | rm -f conftest.er1 | ||
15837 | cat conftest.err >&5 | ||
15838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15839 | (exit $ac_status); } && { | ||
15840 | test -z "$ac_c_werror_flag" || | ||
15841 | test ! -s conftest.err | ||
15842 | } && test -s conftest.$ac_objext; then | ||
15843 | |||
15844 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15845 | echo "${ECHO_T}yes" >&6; } | ||
15846 | |||
15847 | cat >>confdefs.h <<\_ACEOF | ||
15848 | #define SKEYCHALLENGE_4ARG 1 | ||
15849 | _ACEOF | ||
15850 | |||
15851 | else | ||
15852 | echo "$as_me: failed program was:" >&5 | ||
15853 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15854 | |||
15855 | |||
15856 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15857 | echo "${ECHO_T}no" >&6; } | ||
15858 | |||
15859 | fi | ||
15860 | |||
15861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15862 | fi | ||
15863 | |||
15864 | |||
15865 | fi | ||
15866 | |||
15867 | |||
15868 | # Check whether user wants to use ldns | ||
15869 | LDNS_MSG="no" | ||
15870 | |||
15871 | # Check whether --with-ldns was given. | ||
15872 | if test "${with_ldns+set}" = set; then | ||
15873 | withval=$with_ldns; | ||
15874 | if test "x$withval" != "xno" ; then | ||
15875 | |||
15876 | if test "x$withval" != "xyes" ; then | ||
15877 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
15878 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
15879 | fi | ||
15880 | |||
15881 | |||
15882 | cat >>confdefs.h <<\_ACEOF | ||
15883 | #define HAVE_LDNS 1 | ||
15884 | _ACEOF | ||
15885 | |||
15886 | LIBS="-lldns $LIBS" | ||
15887 | LDNS_MSG="yes" | ||
15888 | |||
15889 | { echo "$as_me:$LINENO: checking for ldns support" >&5 | ||
15890 | echo $ECHO_N "checking for ldns support... $ECHO_C" >&6; } | ||
15891 | cat >conftest.$ac_ext <<_ACEOF | ||
15892 | /* confdefs.h. */ | ||
15893 | _ACEOF | ||
15894 | cat confdefs.h >>conftest.$ac_ext | ||
15895 | cat >>conftest.$ac_ext <<_ACEOF | ||
15896 | /* end confdefs.h. */ | ||
15897 | |||
15898 | #include <stdio.h> | ||
15899 | #include <stdlib.h> | ||
15900 | #include <stdint.h> | ||
15901 | #include <ldns/ldns.h> | ||
15902 | int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); } | ||
15903 | |||
15904 | |||
15905 | _ACEOF | ||
15906 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15907 | if { (ac_try="$ac_link" | ||
15908 | case "(($ac_try" in | ||
15909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15910 | *) ac_try_echo=$ac_try;; | ||
15911 | esac | ||
15912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15913 | (eval "$ac_link") 2>conftest.er1 | ||
15914 | ac_status=$? | ||
15915 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15916 | rm -f conftest.er1 | ||
15917 | cat conftest.err >&5 | ||
15918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15919 | (exit $ac_status); } && { | ||
15920 | test -z "$ac_c_werror_flag" || | ||
15921 | test ! -s conftest.err | ||
15922 | } && test -s conftest$ac_exeext && | ||
15923 | $as_test_x conftest$ac_exeext; then | ||
15924 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15925 | echo "${ECHO_T}yes" >&6; } | ||
15926 | else | ||
15927 | echo "$as_me: failed program was:" >&5 | ||
15928 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15929 | |||
15930 | |||
15931 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15932 | echo "${ECHO_T}no" >&6; } | ||
15933 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing ldns libraries." >&5 | ||
15934 | echo "$as_me: error: ** Incomplete or missing ldns libraries." >&2;} | ||
15935 | { (exit 1); exit 1; }; } | ||
15936 | |||
15937 | fi | ||
15938 | |||
15939 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15940 | conftest$ac_exeext conftest.$ac_ext | ||
15941 | fi | ||
15942 | |||
15943 | |||
15944 | fi | ||
15945 | |||
15946 | |||
15947 | # Check whether user wants libedit support | ||
15948 | LIBEDIT_MSG="no" | ||
15949 | |||
15950 | # Check whether --with-libedit was given. | ||
15951 | if test "${with_libedit+set}" = set; then | ||
15952 | withval=$with_libedit; if test "x$withval" != "xno" ; then | ||
15953 | if test "x$withval" = "xyes" ; then | ||
15954 | if test -n "$ac_tool_prefix"; then | ||
15955 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
15956 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
15957 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15958 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
15959 | if test "${ac_cv_path_PKGCONFIG+set}" = set; then | ||
15960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15961 | else | ||
15962 | case $PKGCONFIG in | ||
15963 | [\\/]* | ?:[\\/]*) | ||
15964 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. | ||
15965 | ;; | ||
15966 | *) | ||
15967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15968 | for as_dir in $PATH | ||
15969 | do | ||
15970 | IFS=$as_save_IFS | ||
15971 | test -z "$as_dir" && as_dir=. | ||
15972 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15973 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
15974 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
15975 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15976 | break 2 | ||
15977 | fi | ||
15978 | done | ||
15979 | done | ||
15980 | IFS=$as_save_IFS | ||
15981 | |||
15982 | ;; | ||
15983 | esac | ||
15984 | fi | ||
15985 | PKGCONFIG=$ac_cv_path_PKGCONFIG | ||
15986 | if test -n "$PKGCONFIG"; then | ||
15987 | { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5 | ||
15988 | echo "${ECHO_T}$PKGCONFIG" >&6; } | ||
15989 | else | ||
15990 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15991 | echo "${ECHO_T}no" >&6; } | ||
15992 | fi | ||
15993 | |||
15994 | |||
15995 | fi | ||
15996 | if test -z "$ac_cv_path_PKGCONFIG"; then | ||
15997 | ac_pt_PKGCONFIG=$PKGCONFIG | ||
15998 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
15999 | set dummy pkg-config; ac_word=$2 | ||
16000 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
16001 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
16002 | if test "${ac_cv_path_ac_pt_PKGCONFIG+set}" = set; then | ||
16003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16004 | else | ||
16005 | case $ac_pt_PKGCONFIG in | ||
16006 | [\\/]* | ?:[\\/]*) | ||
16007 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. | ||
16008 | ;; | ||
16009 | *) | ||
16010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16011 | for as_dir in $PATH | ||
16012 | do | ||
16013 | IFS=$as_save_IFS | ||
16014 | test -z "$as_dir" && as_dir=. | ||
16015 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16016 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16017 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
16018 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16019 | break 2 | ||
16020 | fi | ||
16021 | done | ||
16022 | done | ||
16023 | IFS=$as_save_IFS | ||
16024 | |||
16025 | ;; | ||
16026 | esac | ||
16027 | fi | ||
16028 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG | ||
16029 | if test -n "$ac_pt_PKGCONFIG"; then | ||
16030 | { echo "$as_me:$LINENO: result: $ac_pt_PKGCONFIG" >&5 | ||
16031 | echo "${ECHO_T}$ac_pt_PKGCONFIG" >&6; } | ||
16032 | else | ||
16033 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16034 | echo "${ECHO_T}no" >&6; } | ||
16035 | fi | ||
16036 | |||
16037 | if test "x$ac_pt_PKGCONFIG" = x; then | ||
16038 | PKGCONFIG="no" | ||
16039 | else | ||
16040 | case $cross_compiling:$ac_tool_warned in | ||
16041 | yes:) | ||
16042 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
16043 | whose name does not start with the host triplet. If you think this | ||
16044 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
16045 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
16046 | whose name does not start with the host triplet. If you think this | ||
16047 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
16048 | ac_tool_warned=yes ;; | ||
16049 | esac | ||
16050 | PKGCONFIG=$ac_pt_PKGCONFIG | ||
16051 | fi | ||
16052 | else | ||
16053 | PKGCONFIG="$ac_cv_path_PKGCONFIG" | ||
16054 | fi | ||
16055 | |||
16056 | if test "x$PKGCONFIG" != "xno"; then | ||
16057 | { echo "$as_me:$LINENO: checking if $PKGCONFIG knows about libedit" >&5 | ||
16058 | echo $ECHO_N "checking if $PKGCONFIG knows about libedit... $ECHO_C" >&6; } | ||
16059 | if "$PKGCONFIG" libedit; then | ||
16060 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16061 | echo "${ECHO_T}yes" >&6; } | ||
16062 | use_pkgconfig_for_libedit=yes | ||
16063 | else | ||
16064 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16065 | echo "${ECHO_T}no" >&6; } | ||
16066 | fi | ||
16067 | fi | ||
16068 | else | ||
16069 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
16070 | if test -n "${need_dash_r}"; then | ||
16071 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
16072 | else | ||
16073 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
16074 | fi | ||
16075 | fi | ||
16076 | if test "x$use_pkgconfig_for_libedit" = "xyes"; then | ||
16077 | LIBEDIT=`$PKGCONFIG --libs libedit` | ||
16078 | CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`" | ||
16079 | else | ||
16080 | LIBEDIT="-ledit -lcurses" | ||
16081 | fi | ||
16082 | OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` | ||
16083 | { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5 | ||
16084 | echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; } | ||
16085 | if test "${ac_cv_lib_edit_el_init+set}" = set; then | ||
16086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16087 | else | ||
16088 | ac_check_lib_save_LIBS=$LIBS | ||
16089 | LIBS="-ledit $OTHERLIBS | ||
16090 | $LIBS" | ||
16091 | cat >conftest.$ac_ext <<_ACEOF | ||
16092 | /* confdefs.h. */ | ||
16093 | _ACEOF | ||
16094 | cat confdefs.h >>conftest.$ac_ext | ||
16095 | cat >>conftest.$ac_ext <<_ACEOF | ||
16096 | /* end confdefs.h. */ | ||
16097 | |||
16098 | /* Override any GCC internal prototype to avoid an error. | ||
16099 | Use char because int might match the return type of a GCC | ||
16100 | builtin and then its argument prototype would still apply. */ | ||
16101 | #ifdef __cplusplus | ||
16102 | extern "C" | ||
16103 | #endif | ||
16104 | char el_init (); | ||
16105 | int | ||
16106 | main () | ||
16107 | { | ||
16108 | return el_init (); | ||
16109 | ; | ||
16110 | return 0; | ||
16111 | } | ||
16112 | _ACEOF | ||
16113 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16114 | if { (ac_try="$ac_link" | ||
16115 | case "(($ac_try" in | ||
16116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16117 | *) ac_try_echo=$ac_try;; | ||
16118 | esac | ||
16119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16120 | (eval "$ac_link") 2>conftest.er1 | ||
16121 | ac_status=$? | ||
16122 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16123 | rm -f conftest.er1 | ||
16124 | cat conftest.err >&5 | ||
16125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16126 | (exit $ac_status); } && { | ||
16127 | test -z "$ac_c_werror_flag" || | ||
16128 | test ! -s conftest.err | ||
16129 | } && test -s conftest$ac_exeext && | ||
16130 | $as_test_x conftest$ac_exeext; then | ||
16131 | ac_cv_lib_edit_el_init=yes | ||
16132 | else | ||
16133 | echo "$as_me: failed program was:" >&5 | ||
16134 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16135 | |||
16136 | ac_cv_lib_edit_el_init=no | ||
16137 | fi | ||
16138 | |||
16139 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16140 | conftest$ac_exeext conftest.$ac_ext | ||
16141 | LIBS=$ac_check_lib_save_LIBS | ||
16142 | fi | ||
16143 | { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5 | ||
16144 | echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; } | ||
16145 | if test $ac_cv_lib_edit_el_init = yes; then | ||
16146 | |||
16147 | cat >>confdefs.h <<\_ACEOF | ||
16148 | #define USE_LIBEDIT 1 | ||
16149 | _ACEOF | ||
16150 | |||
16151 | LIBEDIT_MSG="yes" | ||
16152 | |||
16153 | |||
16154 | else | ||
16155 | { { echo "$as_me:$LINENO: error: libedit not found" >&5 | ||
16156 | echo "$as_me: error: libedit not found" >&2;} | ||
16157 | { (exit 1); exit 1; }; } | ||
16158 | fi | ||
16159 | |||
16160 | { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5 | ||
16161 | echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; } | ||
16162 | cat >conftest.$ac_ext <<_ACEOF | ||
16163 | /* confdefs.h. */ | ||
16164 | _ACEOF | ||
16165 | cat confdefs.h >>conftest.$ac_ext | ||
16166 | cat >>conftest.$ac_ext <<_ACEOF | ||
16167 | /* end confdefs.h. */ | ||
16168 | #include <histedit.h> | ||
16169 | int | ||
16170 | main () | ||
16171 | { | ||
16172 | |||
16173 | int i = H_SETSIZE; | ||
16174 | el_init("", NULL, NULL, NULL); | ||
16175 | exit(0); | ||
16176 | |||
16177 | ; | ||
16178 | return 0; | ||
16179 | } | ||
16180 | _ACEOF | ||
16181 | rm -f conftest.$ac_objext | ||
16182 | if { (ac_try="$ac_compile" | ||
16183 | case "(($ac_try" in | ||
16184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16185 | *) ac_try_echo=$ac_try;; | ||
16186 | esac | ||
16187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16188 | (eval "$ac_compile") 2>conftest.er1 | ||
16189 | ac_status=$? | ||
16190 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16191 | rm -f conftest.er1 | ||
16192 | cat conftest.err >&5 | ||
16193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16194 | (exit $ac_status); } && { | ||
16195 | test -z "$ac_c_werror_flag" || | ||
16196 | test ! -s conftest.err | ||
16197 | } && test -s conftest.$ac_objext; then | ||
16198 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16199 | echo "${ECHO_T}yes" >&6; } | ||
16200 | else | ||
16201 | echo "$as_me: failed program was:" >&5 | ||
16202 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16203 | |||
16204 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16205 | echo "${ECHO_T}no" >&6; } | ||
16206 | { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5 | ||
16207 | echo "$as_me: error: libedit version is not compatible" >&2;} | ||
16208 | { (exit 1); exit 1; }; } | ||
16209 | |||
16210 | fi | ||
16211 | |||
16212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16213 | fi | ||
16214 | |||
16215 | fi | ||
16216 | |||
16217 | |||
16218 | AUDIT_MODULE=none | ||
16219 | |||
16220 | # Check whether --with-audit was given. | ||
16221 | if test "${with_audit+set}" = set; then | ||
16222 | withval=$with_audit; | ||
16223 | { echo "$as_me:$LINENO: checking for supported audit module" >&5 | ||
16224 | echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; } | ||
16225 | case "$withval" in | ||
16226 | bsm) | ||
16227 | { echo "$as_me:$LINENO: result: bsm" >&5 | ||
16228 | echo "${ECHO_T}bsm" >&6; } | ||
16229 | AUDIT_MODULE=bsm | ||
16230 | |||
16231 | for ac_header in bsm/audit.h | ||
16232 | do | ||
16233 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
16234 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
16235 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
16236 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16238 | else | ||
16239 | cat >conftest.$ac_ext <<_ACEOF | ||
16240 | /* confdefs.h. */ | ||
16241 | _ACEOF | ||
16242 | cat confdefs.h >>conftest.$ac_ext | ||
16243 | cat >>conftest.$ac_ext <<_ACEOF | ||
16244 | /* end confdefs.h. */ | ||
16245 | |||
16246 | #ifdef HAVE_TIME_H | ||
16247 | # include <time.h> | ||
16248 | #endif | ||
16249 | |||
16250 | |||
16251 | |||
16252 | #include <$ac_header> | ||
16253 | _ACEOF | ||
16254 | rm -f conftest.$ac_objext | ||
16255 | if { (ac_try="$ac_compile" | ||
16256 | case "(($ac_try" in | ||
16257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16258 | *) ac_try_echo=$ac_try;; | ||
16259 | esac | ||
16260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16261 | (eval "$ac_compile") 2>conftest.er1 | ||
16262 | ac_status=$? | ||
16263 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16264 | rm -f conftest.er1 | ||
16265 | cat conftest.err >&5 | ||
16266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16267 | (exit $ac_status); } && { | ||
16268 | test -z "$ac_c_werror_flag" || | ||
16269 | test ! -s conftest.err | ||
16270 | } && test -s conftest.$ac_objext; then | ||
16271 | eval "$as_ac_Header=yes" | ||
16272 | else | ||
16273 | echo "$as_me: failed program was:" >&5 | ||
16274 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16275 | |||
16276 | eval "$as_ac_Header=no" | ||
16277 | fi | ||
16278 | |||
16279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16280 | fi | ||
16281 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
16282 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16283 | echo "${ECHO_T}$ac_res" >&6; } | ||
16284 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
16285 | cat >>confdefs.h <<_ACEOF | ||
16286 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
16287 | _ACEOF | ||
16288 | |||
16289 | else | ||
16290 | { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5 | ||
16291 | echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;} | ||
16292 | { (exit 1); exit 1; }; } | ||
16293 | fi | ||
16294 | |||
16295 | done | ||
16296 | |||
16297 | |||
16298 | { echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5 | ||
16299 | echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; } | ||
16300 | if test "${ac_cv_lib_bsm_getaudit+set}" = set; then | ||
16301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16302 | else | ||
16303 | ac_check_lib_save_LIBS=$LIBS | ||
16304 | LIBS="-lbsm $LIBS" | ||
16305 | cat >conftest.$ac_ext <<_ACEOF | ||
16306 | /* confdefs.h. */ | ||
16307 | _ACEOF | ||
16308 | cat confdefs.h >>conftest.$ac_ext | ||
16309 | cat >>conftest.$ac_ext <<_ACEOF | ||
16310 | /* end confdefs.h. */ | ||
16311 | |||
16312 | /* Override any GCC internal prototype to avoid an error. | ||
16313 | Use char because int might match the return type of a GCC | ||
16314 | builtin and then its argument prototype would still apply. */ | ||
16315 | #ifdef __cplusplus | ||
16316 | extern "C" | ||
16317 | #endif | ||
16318 | char getaudit (); | ||
16319 | int | ||
16320 | main () | ||
16321 | { | ||
16322 | return getaudit (); | ||
16323 | ; | ||
16324 | return 0; | ||
16325 | } | ||
16326 | _ACEOF | ||
16327 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16328 | if { (ac_try="$ac_link" | ||
16329 | case "(($ac_try" in | ||
16330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16331 | *) ac_try_echo=$ac_try;; | ||
16332 | esac | ||
16333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16334 | (eval "$ac_link") 2>conftest.er1 | ||
16335 | ac_status=$? | ||
16336 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16337 | rm -f conftest.er1 | ||
16338 | cat conftest.err >&5 | ||
16339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16340 | (exit $ac_status); } && { | ||
16341 | test -z "$ac_c_werror_flag" || | ||
16342 | test ! -s conftest.err | ||
16343 | } && test -s conftest$ac_exeext && | ||
16344 | $as_test_x conftest$ac_exeext; then | ||
16345 | ac_cv_lib_bsm_getaudit=yes | ||
16346 | else | ||
16347 | echo "$as_me: failed program was:" >&5 | ||
16348 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16349 | |||
16350 | ac_cv_lib_bsm_getaudit=no | ||
16351 | fi | ||
16352 | |||
16353 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16354 | conftest$ac_exeext conftest.$ac_ext | ||
16355 | LIBS=$ac_check_lib_save_LIBS | ||
16356 | fi | ||
16357 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
16358 | echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; } | ||
16359 | if test $ac_cv_lib_bsm_getaudit = yes; then | ||
16360 | cat >>confdefs.h <<_ACEOF | ||
16361 | #define HAVE_LIBBSM 1 | ||
16362 | _ACEOF | ||
16363 | |||
16364 | LIBS="-lbsm $LIBS" | ||
16365 | |||
16366 | else | ||
16367 | { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5 | ||
16368 | echo "$as_me: error: BSM enabled and required library not found" >&2;} | ||
16369 | { (exit 1); exit 1; }; } | ||
16370 | fi | ||
16371 | |||
16372 | |||
16373 | for ac_func in getaudit | ||
16374 | do | ||
16375 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16376 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
16377 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
16378 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16380 | else | ||
16381 | cat >conftest.$ac_ext <<_ACEOF | ||
16382 | /* confdefs.h. */ | ||
16383 | _ACEOF | ||
16384 | cat confdefs.h >>conftest.$ac_ext | ||
16385 | cat >>conftest.$ac_ext <<_ACEOF | ||
16386 | /* end confdefs.h. */ | ||
16387 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
16388 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
16389 | #define $ac_func innocuous_$ac_func | ||
16390 | |||
16391 | /* System header to define __stub macros and hopefully few prototypes, | ||
16392 | which can conflict with char $ac_func (); below. | ||
16393 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
16394 | <limits.h> exists even on freestanding compilers. */ | ||
16395 | |||
16396 | #ifdef __STDC__ | ||
16397 | # include <limits.h> | ||
16398 | #else | ||
16399 | # include <assert.h> | ||
16400 | #endif | ||
16401 | |||
16402 | #undef $ac_func | ||
16403 | |||
16404 | /* Override any GCC internal prototype to avoid an error. | ||
16405 | Use char because int might match the return type of a GCC | ||
16406 | builtin and then its argument prototype would still apply. */ | ||
16407 | #ifdef __cplusplus | ||
16408 | extern "C" | ||
16409 | #endif | ||
16410 | char $ac_func (); | ||
16411 | /* The GNU C library defines this for functions which it implements | ||
16412 | to always fail with ENOSYS. Some functions are actually named | ||
16413 | something starting with __ and the normal name is an alias. */ | ||
16414 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
16415 | choke me | ||
16416 | #endif | ||
16417 | |||
16418 | int | ||
16419 | main () | ||
16420 | { | ||
16421 | return $ac_func (); | ||
16422 | ; | ||
16423 | return 0; | ||
16424 | } | ||
16425 | _ACEOF | ||
16426 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16427 | if { (ac_try="$ac_link" | ||
16428 | case "(($ac_try" in | ||
16429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16430 | *) ac_try_echo=$ac_try;; | ||
16431 | esac | ||
16432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16433 | (eval "$ac_link") 2>conftest.er1 | ||
16434 | ac_status=$? | ||
16435 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16436 | rm -f conftest.er1 | ||
16437 | cat conftest.err >&5 | ||
16438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16439 | (exit $ac_status); } && { | ||
16440 | test -z "$ac_c_werror_flag" || | ||
16441 | test ! -s conftest.err | ||
16442 | } && test -s conftest$ac_exeext && | ||
16443 | $as_test_x conftest$ac_exeext; then | ||
16444 | eval "$as_ac_var=yes" | ||
16445 | else | ||
16446 | echo "$as_me: failed program was:" >&5 | ||
16447 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16448 | |||
16449 | eval "$as_ac_var=no" | ||
16450 | fi | ||
16451 | |||
16452 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16453 | conftest$ac_exeext conftest.$ac_ext | ||
16454 | fi | ||
16455 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
16456 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16457 | echo "${ECHO_T}$ac_res" >&6; } | ||
16458 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
16459 | cat >>confdefs.h <<_ACEOF | ||
16460 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16461 | _ACEOF | ||
16462 | |||
16463 | else | ||
16464 | { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5 | ||
16465 | echo "$as_me: error: BSM enabled and required function not found" >&2;} | ||
16466 | { (exit 1); exit 1; }; } | ||
16467 | fi | ||
16468 | done | ||
16469 | |||
16470 | # These are optional | ||
16471 | |||
16472 | |||
16473 | for ac_func in getaudit_addr aug_get_machine | ||
16474 | do | ||
16475 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16476 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
16477 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
16478 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16480 | else | ||
16481 | cat >conftest.$ac_ext <<_ACEOF | ||
16482 | /* confdefs.h. */ | ||
16483 | _ACEOF | ||
16484 | cat confdefs.h >>conftest.$ac_ext | ||
16485 | cat >>conftest.$ac_ext <<_ACEOF | ||
16486 | /* end confdefs.h. */ | ||
16487 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
16488 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
16489 | #define $ac_func innocuous_$ac_func | ||
16490 | |||
16491 | /* System header to define __stub macros and hopefully few prototypes, | ||
16492 | which can conflict with char $ac_func (); below. | ||
16493 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
16494 | <limits.h> exists even on freestanding compilers. */ | ||
16495 | |||
16496 | #ifdef __STDC__ | ||
16497 | # include <limits.h> | ||
16498 | #else | ||
16499 | # include <assert.h> | ||
16500 | #endif | ||
16501 | |||
16502 | #undef $ac_func | ||
16503 | |||
16504 | /* Override any GCC internal prototype to avoid an error. | ||
16505 | Use char because int might match the return type of a GCC | ||
16506 | builtin and then its argument prototype would still apply. */ | ||
16507 | #ifdef __cplusplus | ||
16508 | extern "C" | ||
16509 | #endif | ||
16510 | char $ac_func (); | ||
16511 | /* The GNU C library defines this for functions which it implements | ||
16512 | to always fail with ENOSYS. Some functions are actually named | ||
16513 | something starting with __ and the normal name is an alias. */ | ||
16514 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
16515 | choke me | ||
16516 | #endif | ||
16517 | |||
16518 | int | ||
16519 | main () | ||
16520 | { | ||
16521 | return $ac_func (); | ||
16522 | ; | ||
16523 | return 0; | ||
16524 | } | ||
16525 | _ACEOF | ||
16526 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16527 | if { (ac_try="$ac_link" | ||
16528 | case "(($ac_try" in | ||
16529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16530 | *) ac_try_echo=$ac_try;; | ||
16531 | esac | ||
16532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16533 | (eval "$ac_link") 2>conftest.er1 | ||
16534 | ac_status=$? | ||
16535 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16536 | rm -f conftest.er1 | ||
16537 | cat conftest.err >&5 | ||
16538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16539 | (exit $ac_status); } && { | ||
16540 | test -z "$ac_c_werror_flag" || | ||
16541 | test ! -s conftest.err | ||
16542 | } && test -s conftest$ac_exeext && | ||
16543 | $as_test_x conftest$ac_exeext; then | ||
16544 | eval "$as_ac_var=yes" | ||
16545 | else | ||
16546 | echo "$as_me: failed program was:" >&5 | ||
16547 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16548 | |||
16549 | eval "$as_ac_var=no" | ||
16550 | fi | ||
16551 | |||
16552 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16553 | conftest$ac_exeext conftest.$ac_ext | ||
16554 | fi | ||
16555 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
16556 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16557 | echo "${ECHO_T}$ac_res" >&6; } | ||
16558 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
16559 | cat >>confdefs.h <<_ACEOF | ||
16560 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16561 | _ACEOF | ||
16562 | |||
16563 | fi | ||
16564 | done | ||
16565 | |||
16566 | |||
16567 | cat >>confdefs.h <<\_ACEOF | ||
16568 | #define USE_BSM_AUDIT 1 | ||
16569 | _ACEOF | ||
16570 | |||
16571 | if test "$sol2ver" -ge 11; then | ||
16572 | SSHDLIBS="$SSHDLIBS -lscf" | ||
16573 | |||
16574 | cat >>confdefs.h <<\_ACEOF | ||
16575 | #define BROKEN_BSM_API 1 | ||
16576 | _ACEOF | ||
16577 | |||
16578 | fi | ||
16579 | ;; | ||
16580 | linux) | ||
16581 | { echo "$as_me:$LINENO: result: linux" >&5 | ||
16582 | echo "${ECHO_T}linux" >&6; } | ||
16583 | AUDIT_MODULE=linux | ||
16584 | |||
16585 | for ac_header in libaudit.h | ||
16586 | do | ||
16587 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
16588 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16589 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
16590 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
16591 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16593 | fi | ||
16594 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
16595 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16596 | echo "${ECHO_T}$ac_res" >&6; } | ||
16597 | else | ||
16598 | # Is the header compilable? | ||
16599 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
16600 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
16601 | cat >conftest.$ac_ext <<_ACEOF | ||
16602 | /* confdefs.h. */ | ||
16603 | _ACEOF | ||
16604 | cat confdefs.h >>conftest.$ac_ext | ||
16605 | cat >>conftest.$ac_ext <<_ACEOF | ||
16606 | /* end confdefs.h. */ | ||
16607 | $ac_includes_default | ||
16608 | #include <$ac_header> | ||
16609 | _ACEOF | ||
16610 | rm -f conftest.$ac_objext | ||
16611 | if { (ac_try="$ac_compile" | ||
16612 | case "(($ac_try" in | ||
16613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16614 | *) ac_try_echo=$ac_try;; | ||
16615 | esac | ||
16616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16617 | (eval "$ac_compile") 2>conftest.er1 | ||
16618 | ac_status=$? | ||
16619 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16620 | rm -f conftest.er1 | ||
16621 | cat conftest.err >&5 | ||
16622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16623 | (exit $ac_status); } && { | ||
16624 | test -z "$ac_c_werror_flag" || | ||
16625 | test ! -s conftest.err | ||
16626 | } && test -s conftest.$ac_objext; then | ||
16627 | ac_header_compiler=yes | ||
16628 | else | ||
16629 | echo "$as_me: failed program was:" >&5 | ||
16630 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16631 | |||
16632 | ac_header_compiler=no | ||
16633 | fi | ||
16634 | |||
16635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16636 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
16637 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
16638 | |||
16639 | # Is the header present? | ||
16640 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
16641 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
16642 | cat >conftest.$ac_ext <<_ACEOF | ||
16643 | /* confdefs.h. */ | ||
16644 | _ACEOF | ||
16645 | cat confdefs.h >>conftest.$ac_ext | ||
16646 | cat >>conftest.$ac_ext <<_ACEOF | ||
16647 | /* end confdefs.h. */ | ||
16648 | #include <$ac_header> | ||
16649 | _ACEOF | ||
16650 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
16651 | case "(($ac_try" in | ||
16652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16653 | *) ac_try_echo=$ac_try;; | ||
16654 | esac | ||
16655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16656 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
16657 | ac_status=$? | ||
16658 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16659 | rm -f conftest.er1 | ||
16660 | cat conftest.err >&5 | ||
16661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16662 | (exit $ac_status); } >/dev/null && { | ||
16663 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
16664 | test ! -s conftest.err | ||
16665 | }; then | ||
16666 | ac_header_preproc=yes | ||
16667 | else | ||
16668 | echo "$as_me: failed program was:" >&5 | ||
16669 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16670 | |||
16671 | ac_header_preproc=no | ||
16672 | fi | ||
16673 | |||
16674 | rm -f conftest.err conftest.$ac_ext | ||
16675 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
16676 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
16677 | |||
16678 | # So? What about this header? | ||
16679 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
16680 | yes:no: ) | ||
16681 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
16682 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
16683 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
16684 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
16685 | ac_header_preproc=yes | ||
16686 | ;; | ||
16687 | no:yes:* ) | ||
16688 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
16689 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
16690 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
16691 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
16692 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
16693 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
16694 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
16695 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
16696 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
16697 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
16698 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
16699 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
16700 | ( cat <<\_ASBOX | ||
16701 | ## ------------------------------------------- ## | ||
16702 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
16703 | ## ------------------------------------------- ## | ||
16704 | _ASBOX | ||
16705 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
16706 | ;; | ||
16707 | esac | ||
16708 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
16709 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
16710 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16712 | else | ||
16713 | eval "$as_ac_Header=\$ac_header_preproc" | ||
16714 | fi | ||
16715 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
16716 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16717 | echo "${ECHO_T}$ac_res" >&6; } | ||
16718 | |||
16719 | fi | ||
16720 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
16721 | cat >>confdefs.h <<_ACEOF | ||
16722 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
16723 | _ACEOF | ||
16724 | |||
16725 | fi | ||
16726 | |||
16727 | done | ||
16728 | |||
16729 | SSHDLIBS="$SSHDLIBS -laudit" | ||
16730 | |||
16731 | cat >>confdefs.h <<\_ACEOF | ||
16732 | #define USE_LINUX_AUDIT 1 | ||
16733 | _ACEOF | ||
16734 | |||
16735 | ;; | ||
16736 | debug) | ||
16737 | AUDIT_MODULE=debug | ||
16738 | { echo "$as_me:$LINENO: result: debug" >&5 | ||
16739 | echo "${ECHO_T}debug" >&6; } | ||
16740 | |||
16741 | cat >>confdefs.h <<\_ACEOF | ||
16742 | #define SSH_AUDIT_EVENTS 1 | ||
16743 | _ACEOF | ||
16744 | |||
16745 | ;; | ||
16746 | no) | ||
16747 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16748 | echo "${ECHO_T}no" >&6; } | ||
16749 | ;; | ||
16750 | *) | ||
16751 | { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5 | ||
16752 | echo "$as_me: error: Unknown audit module $withval" >&2;} | ||
16753 | { (exit 1); exit 1; }; } | ||
16754 | ;; | ||
16755 | esac | ||
16756 | |||
16757 | fi | ||
16758 | |||
16759 | |||
16760 | |||
16761 | # Check whether --with-pie was given. | ||
16762 | if test "${with_pie+set}" = set; then | ||
16763 | withval=$with_pie; | ||
16764 | if test "x$withval" = "xno"; then | ||
16765 | use_pie=no | ||
16766 | fi | ||
16767 | if test "x$withval" = "xyes"; then | ||
16768 | use_pie=yes | ||
16769 | fi | ||
16770 | |||
16771 | |||
16772 | fi | ||
16773 | |||
16774 | if test "x$use_pie" = "x"; then | ||
16775 | use_pie=no | ||
16776 | fi | ||
16777 | if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then | ||
16778 | # Turn off automatic PIE when toolchain hardening is off. | ||
16779 | use_pie=no | ||
16780 | fi | ||
16781 | if test "x$use_pie" = "xauto"; then | ||
16782 | # Automatic PIE requires gcc >= 4.x | ||
16783 | { echo "$as_me:$LINENO: checking for gcc >= 4.x" >&5 | ||
16784 | echo $ECHO_N "checking for gcc >= 4.x... $ECHO_C" >&6; } | ||
16785 | cat >conftest.$ac_ext <<_ACEOF | ||
16786 | /* confdefs.h. */ | ||
16787 | _ACEOF | ||
16788 | cat confdefs.h >>conftest.$ac_ext | ||
16789 | cat >>conftest.$ac_ext <<_ACEOF | ||
16790 | /* end confdefs.h. */ | ||
16791 | |||
16792 | #if !defined(__GNUC__) || __GNUC__ < 4 | ||
16793 | #error gcc is too old | ||
16794 | #endif | ||
16795 | |||
16796 | _ACEOF | ||
16797 | rm -f conftest.$ac_objext | ||
16798 | if { (ac_try="$ac_compile" | ||
16799 | case "(($ac_try" in | ||
16800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16801 | *) ac_try_echo=$ac_try;; | ||
16802 | esac | ||
16803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16804 | (eval "$ac_compile") 2>conftest.er1 | ||
16805 | ac_status=$? | ||
16806 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16807 | rm -f conftest.er1 | ||
16808 | cat conftest.err >&5 | ||
16809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16810 | (exit $ac_status); } && { | ||
16811 | test -z "$ac_c_werror_flag" || | ||
16812 | test ! -s conftest.err | ||
16813 | } && test -s conftest.$ac_objext; then | ||
16814 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16815 | echo "${ECHO_T}yes" >&6; } | ||
16816 | else | ||
16817 | echo "$as_me: failed program was:" >&5 | ||
16818 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16819 | |||
16820 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16821 | echo "${ECHO_T}no" >&6; } | ||
16822 | use_pie=no | ||
16823 | |||
16824 | fi | ||
16825 | |||
16826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16827 | fi | ||
16828 | if test "x$use_pie" != "xno"; then | ||
16829 | SAVED_CFLAGS="$CFLAGS" | ||
16830 | SAVED_LDFLAGS="$LDFLAGS" | ||
16831 | { | ||
16832 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -fPIE" >&5 | ||
16833 | echo $ECHO_N "checking if $CC supports compile flag -fPIE... $ECHO_C" >&6; } | ||
16834 | saved_CFLAGS="$CFLAGS" | ||
16835 | CFLAGS="$CFLAGS $WERROR -fPIE" | ||
16836 | _define_flag="" | ||
16837 | test "x$_define_flag" = "x" && _define_flag="-fPIE" | ||
16838 | cat >conftest.$ac_ext <<_ACEOF | ||
16839 | /* confdefs.h. */ | ||
16840 | _ACEOF | ||
16841 | cat confdefs.h >>conftest.$ac_ext | ||
16842 | cat >>conftest.$ac_ext <<_ACEOF | ||
16843 | /* end confdefs.h. */ | ||
16844 | |||
16845 | #include <stdlib.h> | ||
16846 | #include <stdio.h> | ||
16847 | int main(int argc, char **argv) { | ||
16848 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
16849 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
16850 | float l = i * 2.1; | ||
16851 | double m = l / 0.5; | ||
16852 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
16853 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
16854 | exit(0); | ||
16855 | } | ||
16856 | |||
16857 | _ACEOF | ||
16858 | rm -f conftest.$ac_objext | ||
16859 | if { (ac_try="$ac_compile" | ||
16860 | case "(($ac_try" in | ||
16861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16862 | *) ac_try_echo=$ac_try;; | ||
16863 | esac | ||
16864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16865 | (eval "$ac_compile") 2>conftest.er1 | ||
16866 | ac_status=$? | ||
16867 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16868 | rm -f conftest.er1 | ||
16869 | cat conftest.err >&5 | ||
16870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16871 | (exit $ac_status); } && { | ||
16872 | test -z "$ac_c_werror_flag" || | ||
16873 | test ! -s conftest.err | ||
16874 | } && test -s conftest.$ac_objext; then | ||
16875 | |||
16876 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
16877 | then | ||
16878 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16879 | echo "${ECHO_T}no" >&6; } | ||
16880 | CFLAGS="$saved_CFLAGS" | ||
16881 | else | ||
16882 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16883 | echo "${ECHO_T}yes" >&6; } | ||
16884 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
16885 | fi | ||
16886 | else | ||
16887 | echo "$as_me: failed program was:" >&5 | ||
16888 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16889 | |||
16890 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16891 | echo "${ECHO_T}no" >&6; } | ||
16892 | CFLAGS="$saved_CFLAGS" | ||
16893 | |||
16894 | fi | ||
16895 | |||
16896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16897 | } | ||
16898 | { | ||
16899 | { echo "$as_me:$LINENO: checking if $LD supports link flag -pie" >&5 | ||
16900 | echo $ECHO_N "checking if $LD supports link flag -pie... $ECHO_C" >&6; } | ||
16901 | saved_LDFLAGS="$LDFLAGS" | ||
16902 | LDFLAGS="$LDFLAGS $WERROR -pie" | ||
16903 | _define_flag="" | ||
16904 | test "x$_define_flag" = "x" && _define_flag="-pie" | ||
16905 | cat >conftest.$ac_ext <<_ACEOF | ||
16906 | /* confdefs.h. */ | ||
16907 | _ACEOF | ||
16908 | cat confdefs.h >>conftest.$ac_ext | ||
16909 | cat >>conftest.$ac_ext <<_ACEOF | ||
16910 | /* end confdefs.h. */ | ||
16911 | |||
16912 | #include <stdlib.h> | ||
16913 | #include <stdio.h> | ||
16914 | int main(int argc, char **argv) { | ||
16915 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
16916 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
16917 | float l = i * 2.1; | ||
16918 | double m = l / 0.5; | ||
16919 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
16920 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
16921 | exit(0); | ||
16922 | } | ||
16923 | |||
16924 | _ACEOF | ||
16925 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16926 | if { (ac_try="$ac_link" | ||
16927 | case "(($ac_try" in | ||
16928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16929 | *) ac_try_echo=$ac_try;; | ||
16930 | esac | ||
16931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16932 | (eval "$ac_link") 2>conftest.er1 | ||
16933 | ac_status=$? | ||
16934 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16935 | rm -f conftest.er1 | ||
16936 | cat conftest.err >&5 | ||
16937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16938 | (exit $ac_status); } && { | ||
16939 | test -z "$ac_c_werror_flag" || | ||
16940 | test ! -s conftest.err | ||
16941 | } && test -s conftest$ac_exeext && | ||
16942 | $as_test_x conftest$ac_exeext; then | ||
16943 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16944 | echo "${ECHO_T}yes" >&6; } | ||
16945 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
16946 | else | ||
16947 | echo "$as_me: failed program was:" >&5 | ||
16948 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16949 | |||
16950 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16951 | echo "${ECHO_T}no" >&6; } | ||
16952 | LDFLAGS="$saved_LDFLAGS" | ||
16953 | |||
16954 | fi | ||
16955 | |||
16956 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16957 | conftest$ac_exeext conftest.$ac_ext | ||
16958 | } | ||
16959 | # We use both -fPIE and -pie or neither. | ||
16960 | { echo "$as_me:$LINENO: checking whether both -fPIE and -pie are supported" >&5 | ||
16961 | echo $ECHO_N "checking whether both -fPIE and -pie are supported... $ECHO_C" >&6; } | ||
16962 | if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \ | ||
16963 | echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then | ||
16964 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16965 | echo "${ECHO_T}yes" >&6; } | ||
16966 | else | ||
16967 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16968 | echo "${ECHO_T}no" >&6; } | ||
16969 | CFLAGS="$SAVED_CFLAGS" | ||
16970 | LDFLAGS="$SAVED_LDFLAGS" | ||
16971 | fi | ||
16972 | fi | ||
16973 | |||
16974 | |||
16975 | |||
16976 | |||
16977 | |||
16978 | |||
16979 | |||
16980 | |||
16981 | |||
16982 | |||
16983 | |||
16984 | |||
16985 | |||
16986 | |||
16987 | |||
16988 | |||
16989 | |||
16990 | |||
16991 | |||
16992 | |||
16993 | |||
16994 | |||
16995 | |||
16996 | |||
16997 | |||
16998 | |||
16999 | |||
17000 | |||
17001 | |||
17002 | |||
17003 | |||
17004 | |||
17005 | |||
17006 | |||
17007 | |||
17008 | |||
17009 | |||
17010 | |||
17011 | |||
17012 | |||
17013 | |||
17014 | |||
17015 | |||
17016 | |||
17017 | |||
17018 | |||
17019 | |||
17020 | |||
17021 | |||
17022 | |||
17023 | |||
17024 | |||
17025 | |||
17026 | |||
17027 | |||
17028 | |||
17029 | |||
17030 | |||
17031 | |||
17032 | |||
17033 | |||
17034 | |||
17035 | |||
17036 | |||
17037 | |||
17038 | |||
17039 | |||
17040 | |||
17041 | |||
17042 | |||
17043 | |||
17044 | |||
17045 | |||
17046 | |||
17047 | |||
17048 | |||
17049 | |||
17050 | |||
17051 | |||
17052 | |||
17053 | |||
17054 | |||
17055 | |||
17056 | |||
17057 | |||
17058 | |||
17059 | |||
17060 | |||
17061 | |||
17062 | |||
17063 | |||
17064 | |||
17065 | |||
17066 | |||
17067 | |||
17068 | |||
17069 | |||
17070 | |||
17071 | |||
17072 | |||
17073 | |||
17074 | |||
17075 | |||
17076 | |||
17077 | |||
17078 | |||
17079 | |||
17080 | |||
17081 | |||
17082 | |||
17083 | |||
17084 | |||
17085 | for ac_func in \ | ||
17086 | Blowfish_initstate \ | ||
17087 | Blowfish_expandstate \ | ||
17088 | Blowfish_expand0state \ | ||
17089 | Blowfish_stream2word \ | ||
17090 | asprintf \ | ||
17091 | b64_ntop \ | ||
17092 | __b64_ntop \ | ||
17093 | b64_pton \ | ||
17094 | __b64_pton \ | ||
17095 | bcopy \ | ||
17096 | bcrypt_pbkdf \ | ||
17097 | bindresvport_sa \ | ||
17098 | blf_enc \ | ||
17099 | cap_rights_limit \ | ||
17100 | clock \ | ||
17101 | closefrom \ | ||
17102 | dirfd \ | ||
17103 | endgrent \ | ||
17104 | err \ | ||
17105 | errx \ | ||
17106 | explicit_bzero \ | ||
17107 | fchmod \ | ||
17108 | fchown \ | ||
17109 | freeaddrinfo \ | ||
17110 | fstatfs \ | ||
17111 | fstatvfs \ | ||
17112 | futimes \ | ||
17113 | getaddrinfo \ | ||
17114 | getcwd \ | ||
17115 | getgrouplist \ | ||
17116 | getnameinfo \ | ||
17117 | getopt \ | ||
17118 | getpeereid \ | ||
17119 | getpeerucred \ | ||
17120 | getpgid \ | ||
17121 | getpgrp \ | ||
17122 | _getpty \ | ||
17123 | getrlimit \ | ||
17124 | getttyent \ | ||
17125 | glob \ | ||
17126 | group_from_gid \ | ||
17127 | inet_aton \ | ||
17128 | inet_ntoa \ | ||
17129 | inet_ntop \ | ||
17130 | innetgr \ | ||
17131 | login_getcapbool \ | ||
17132 | md5_crypt \ | ||
17133 | memmove \ | ||
17134 | memset_s \ | ||
17135 | mkdtemp \ | ||
17136 | mmap \ | ||
17137 | ngetaddrinfo \ | ||
17138 | nsleep \ | ||
17139 | ogetaddrinfo \ | ||
17140 | openlog_r \ | ||
17141 | pledge \ | ||
17142 | poll \ | ||
17143 | prctl \ | ||
17144 | pstat \ | ||
17145 | readpassphrase \ | ||
17146 | reallocarray \ | ||
17147 | recvmsg \ | ||
17148 | rresvport_af \ | ||
17149 | sendmsg \ | ||
17150 | setdtablesize \ | ||
17151 | setegid \ | ||
17152 | setenv \ | ||
17153 | seteuid \ | ||
17154 | setgroupent \ | ||
17155 | setgroups \ | ||
17156 | setlinebuf \ | ||
17157 | setlogin \ | ||
17158 | setpassent\ | ||
17159 | setpcred \ | ||
17160 | setproctitle \ | ||
17161 | setregid \ | ||
17162 | setreuid \ | ||
17163 | setrlimit \ | ||
17164 | setsid \ | ||
17165 | setvbuf \ | ||
17166 | sigaction \ | ||
17167 | sigvec \ | ||
17168 | snprintf \ | ||
17169 | socketpair \ | ||
17170 | statfs \ | ||
17171 | statvfs \ | ||
17172 | strdup \ | ||
17173 | strerror \ | ||
17174 | strlcat \ | ||
17175 | strlcpy \ | ||
17176 | strmode \ | ||
17177 | strnlen \ | ||
17178 | strnvis \ | ||
17179 | strptime \ | ||
17180 | strtonum \ | ||
17181 | strtoll \ | ||
17182 | strtoul \ | ||
17183 | strtoull \ | ||
17184 | swap32 \ | ||
17185 | sysconf \ | ||
17186 | tcgetpgrp \ | ||
17187 | timingsafe_bcmp \ | ||
17188 | truncate \ | ||
17189 | unsetenv \ | ||
17190 | updwtmpx \ | ||
17191 | user_from_uid \ | ||
17192 | usleep \ | ||
17193 | vasprintf \ | ||
17194 | vsnprintf \ | ||
17195 | waitpid \ | ||
17196 | warn \ | ||
17197 | |||
17198 | do | ||
17199 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17200 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17201 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17202 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17204 | else | ||
17205 | cat >conftest.$ac_ext <<_ACEOF | ||
17206 | /* confdefs.h. */ | ||
17207 | _ACEOF | ||
17208 | cat confdefs.h >>conftest.$ac_ext | ||
17209 | cat >>conftest.$ac_ext <<_ACEOF | ||
17210 | /* end confdefs.h. */ | ||
17211 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17212 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17213 | #define $ac_func innocuous_$ac_func | ||
17214 | |||
17215 | /* System header to define __stub macros and hopefully few prototypes, | ||
17216 | which can conflict with char $ac_func (); below. | ||
17217 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17218 | <limits.h> exists even on freestanding compilers. */ | ||
17219 | |||
17220 | #ifdef __STDC__ | ||
17221 | # include <limits.h> | ||
17222 | #else | ||
17223 | # include <assert.h> | ||
17224 | #endif | ||
17225 | |||
17226 | #undef $ac_func | ||
17227 | |||
17228 | /* Override any GCC internal prototype to avoid an error. | ||
17229 | Use char because int might match the return type of a GCC | ||
17230 | builtin and then its argument prototype would still apply. */ | ||
17231 | #ifdef __cplusplus | ||
17232 | extern "C" | ||
17233 | #endif | ||
17234 | char $ac_func (); | ||
17235 | /* The GNU C library defines this for functions which it implements | ||
17236 | to always fail with ENOSYS. Some functions are actually named | ||
17237 | something starting with __ and the normal name is an alias. */ | ||
17238 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17239 | choke me | ||
17240 | #endif | ||
17241 | |||
17242 | int | ||
17243 | main () | ||
17244 | { | ||
17245 | return $ac_func (); | ||
17246 | ; | ||
17247 | return 0; | ||
17248 | } | ||
17249 | _ACEOF | ||
17250 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17251 | if { (ac_try="$ac_link" | ||
17252 | case "(($ac_try" in | ||
17253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17254 | *) ac_try_echo=$ac_try;; | ||
17255 | esac | ||
17256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17257 | (eval "$ac_link") 2>conftest.er1 | ||
17258 | ac_status=$? | ||
17259 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17260 | rm -f conftest.er1 | ||
17261 | cat conftest.err >&5 | ||
17262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17263 | (exit $ac_status); } && { | ||
17264 | test -z "$ac_c_werror_flag" || | ||
17265 | test ! -s conftest.err | ||
17266 | } && test -s conftest$ac_exeext && | ||
17267 | $as_test_x conftest$ac_exeext; then | ||
17268 | eval "$as_ac_var=yes" | ||
17269 | else | ||
17270 | echo "$as_me: failed program was:" >&5 | ||
17271 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17272 | |||
17273 | eval "$as_ac_var=no" | ||
17274 | fi | ||
17275 | |||
17276 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17277 | conftest$ac_exeext conftest.$ac_ext | ||
17278 | fi | ||
17279 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17280 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17281 | echo "${ECHO_T}$ac_res" >&6; } | ||
17282 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17283 | cat >>confdefs.h <<_ACEOF | ||
17284 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17285 | _ACEOF | ||
17286 | |||
17287 | fi | ||
17288 | done | ||
17289 | |||
17290 | |||
17291 | saved_CFLAGS="$CFLAGS" | ||
17292 | CFLAGS="$CFLAGS -D_XOPEN_SOURCE" | ||
17293 | |||
17294 | |||
17295 | |||
17296 | |||
17297 | for ac_func in mblen mbtowc nl_langinfo wcwidth | ||
17298 | do | ||
17299 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17300 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17301 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17302 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17304 | else | ||
17305 | cat >conftest.$ac_ext <<_ACEOF | ||
17306 | /* confdefs.h. */ | ||
17307 | _ACEOF | ||
17308 | cat confdefs.h >>conftest.$ac_ext | ||
17309 | cat >>conftest.$ac_ext <<_ACEOF | ||
17310 | /* end confdefs.h. */ | ||
17311 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17312 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17313 | #define $ac_func innocuous_$ac_func | ||
17314 | |||
17315 | /* System header to define __stub macros and hopefully few prototypes, | ||
17316 | which can conflict with char $ac_func (); below. | ||
17317 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17318 | <limits.h> exists even on freestanding compilers. */ | ||
17319 | |||
17320 | #ifdef __STDC__ | ||
17321 | # include <limits.h> | ||
17322 | #else | ||
17323 | # include <assert.h> | ||
17324 | #endif | ||
17325 | |||
17326 | #undef $ac_func | ||
17327 | |||
17328 | /* Override any GCC internal prototype to avoid an error. | ||
17329 | Use char because int might match the return type of a GCC | ||
17330 | builtin and then its argument prototype would still apply. */ | ||
17331 | #ifdef __cplusplus | ||
17332 | extern "C" | ||
17333 | #endif | ||
17334 | char $ac_func (); | ||
17335 | /* The GNU C library defines this for functions which it implements | ||
17336 | to always fail with ENOSYS. Some functions are actually named | ||
17337 | something starting with __ and the normal name is an alias. */ | ||
17338 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17339 | choke me | ||
17340 | #endif | ||
17341 | |||
17342 | int | ||
17343 | main () | ||
17344 | { | ||
17345 | return $ac_func (); | ||
17346 | ; | ||
17347 | return 0; | ||
17348 | } | ||
17349 | _ACEOF | ||
17350 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17351 | if { (ac_try="$ac_link" | ||
17352 | case "(($ac_try" in | ||
17353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17354 | *) ac_try_echo=$ac_try;; | ||
17355 | esac | ||
17356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17357 | (eval "$ac_link") 2>conftest.er1 | ||
17358 | ac_status=$? | ||
17359 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17360 | rm -f conftest.er1 | ||
17361 | cat conftest.err >&5 | ||
17362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17363 | (exit $ac_status); } && { | ||
17364 | test -z "$ac_c_werror_flag" || | ||
17365 | test ! -s conftest.err | ||
17366 | } && test -s conftest$ac_exeext && | ||
17367 | $as_test_x conftest$ac_exeext; then | ||
17368 | eval "$as_ac_var=yes" | ||
17369 | else | ||
17370 | echo "$as_me: failed program was:" >&5 | ||
17371 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17372 | |||
17373 | eval "$as_ac_var=no" | ||
17374 | fi | ||
17375 | |||
17376 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17377 | conftest$ac_exeext conftest.$ac_ext | ||
17378 | fi | ||
17379 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17380 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17381 | echo "${ECHO_T}$ac_res" >&6; } | ||
17382 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17383 | cat >>confdefs.h <<_ACEOF | ||
17384 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17385 | _ACEOF | ||
17386 | |||
17387 | fi | ||
17388 | done | ||
17389 | |||
17390 | CFLAGS="$saved_CFLAGS" | ||
17391 | |||
17392 | cat >conftest.$ac_ext <<_ACEOF | ||
17393 | /* confdefs.h. */ | ||
17394 | _ACEOF | ||
17395 | cat confdefs.h >>conftest.$ac_ext | ||
17396 | cat >>conftest.$ac_ext <<_ACEOF | ||
17397 | /* end confdefs.h. */ | ||
17398 | #include <ctype.h> | ||
17399 | int | ||
17400 | main () | ||
17401 | { | ||
17402 | return (isblank('a')); | ||
17403 | ; | ||
17404 | return 0; | ||
17405 | } | ||
17406 | _ACEOF | ||
17407 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17408 | if { (ac_try="$ac_link" | ||
17409 | case "(($ac_try" in | ||
17410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17411 | *) ac_try_echo=$ac_try;; | ||
17412 | esac | ||
17413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17414 | (eval "$ac_link") 2>conftest.er1 | ||
17415 | ac_status=$? | ||
17416 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17417 | rm -f conftest.er1 | ||
17418 | cat conftest.err >&5 | ||
17419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17420 | (exit $ac_status); } && { | ||
17421 | test -z "$ac_c_werror_flag" || | ||
17422 | test ! -s conftest.err | ||
17423 | } && test -s conftest$ac_exeext && | ||
17424 | $as_test_x conftest$ac_exeext; then | ||
17425 | |||
17426 | cat >>confdefs.h <<\_ACEOF | ||
17427 | #define HAVE_ISBLANK 1 | ||
17428 | _ACEOF | ||
17429 | |||
17430 | |||
17431 | else | ||
17432 | echo "$as_me: failed program was:" >&5 | ||
17433 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17434 | |||
17435 | |||
17436 | fi | ||
17437 | |||
17438 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17439 | conftest$ac_exeext conftest.$ac_ext | ||
17440 | |||
17441 | disable_pkcs11= | ||
17442 | # Check whether --enable-pkcs11 was given. | ||
17443 | if test "${enable_pkcs11+set}" = set; then | ||
17444 | enableval=$enable_pkcs11; | ||
17445 | if test "x$enableval" = "xno" ; then | ||
17446 | disable_pkcs11=1 | ||
17447 | fi | ||
17448 | |||
17449 | |||
17450 | fi | ||
17451 | |||
17452 | |||
17453 | # PKCS11 depends on OpenSSL. | ||
17454 | if test "x$openssl" = "xyes" && test "x$disable_pkcs11" = "x"; then | ||
17455 | # PKCS#11 support requires dlopen() and co | ||
17456 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | ||
17457 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } | ||
17458 | if test "${ac_cv_search_dlopen+set}" = set; then | ||
17459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17460 | else | ||
17461 | ac_func_search_save_LIBS=$LIBS | ||
17462 | cat >conftest.$ac_ext <<_ACEOF | ||
17463 | /* confdefs.h. */ | ||
17464 | _ACEOF | ||
17465 | cat confdefs.h >>conftest.$ac_ext | ||
17466 | cat >>conftest.$ac_ext <<_ACEOF | ||
17467 | /* end confdefs.h. */ | ||
17468 | |||
17469 | /* Override any GCC internal prototype to avoid an error. | ||
17470 | Use char because int might match the return type of a GCC | ||
17471 | builtin and then its argument prototype would still apply. */ | ||
17472 | #ifdef __cplusplus | ||
17473 | extern "C" | ||
17474 | #endif | ||
17475 | char dlopen (); | ||
17476 | int | ||
17477 | main () | ||
17478 | { | ||
17479 | return dlopen (); | ||
17480 | ; | ||
17481 | return 0; | ||
17482 | } | ||
17483 | _ACEOF | ||
17484 | for ac_lib in '' dl; do | ||
17485 | if test -z "$ac_lib"; then | ||
17486 | ac_res="none required" | ||
17487 | else | ||
17488 | ac_res=-l$ac_lib | ||
17489 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17490 | fi | ||
17491 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17492 | if { (ac_try="$ac_link" | ||
17493 | case "(($ac_try" in | ||
17494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17495 | *) ac_try_echo=$ac_try;; | ||
17496 | esac | ||
17497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17498 | (eval "$ac_link") 2>conftest.er1 | ||
17499 | ac_status=$? | ||
17500 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17501 | rm -f conftest.er1 | ||
17502 | cat conftest.err >&5 | ||
17503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17504 | (exit $ac_status); } && { | ||
17505 | test -z "$ac_c_werror_flag" || | ||
17506 | test ! -s conftest.err | ||
17507 | } && test -s conftest$ac_exeext && | ||
17508 | $as_test_x conftest$ac_exeext; then | ||
17509 | ac_cv_search_dlopen=$ac_res | ||
17510 | else | ||
17511 | echo "$as_me: failed program was:" >&5 | ||
17512 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17513 | |||
17514 | |||
17515 | fi | ||
17516 | |||
17517 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17518 | conftest$ac_exeext | ||
17519 | if test "${ac_cv_search_dlopen+set}" = set; then | ||
17520 | break | ||
17521 | fi | ||
17522 | done | ||
17523 | if test "${ac_cv_search_dlopen+set}" = set; then | ||
17524 | : | ||
17525 | else | ||
17526 | ac_cv_search_dlopen=no | ||
17527 | fi | ||
17528 | rm conftest.$ac_ext | ||
17529 | LIBS=$ac_func_search_save_LIBS | ||
17530 | fi | ||
17531 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | ||
17532 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } | ||
17533 | ac_res=$ac_cv_search_dlopen | ||
17534 | if test "$ac_res" != no; then | ||
17535 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17536 | |||
17537 | cat >>confdefs.h <<\_ACEOF | ||
17538 | #define ENABLE_PKCS11 | ||
17539 | _ACEOF | ||
17540 | |||
17541 | |||
17542 | fi | ||
17543 | |||
17544 | fi | ||
17545 | |||
17546 | # IRIX has a const char return value for gai_strerror() | ||
17547 | |||
17548 | for ac_func in gai_strerror | ||
17549 | do | ||
17550 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17551 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17552 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17553 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17555 | else | ||
17556 | cat >conftest.$ac_ext <<_ACEOF | ||
17557 | /* confdefs.h. */ | ||
17558 | _ACEOF | ||
17559 | cat confdefs.h >>conftest.$ac_ext | ||
17560 | cat >>conftest.$ac_ext <<_ACEOF | ||
17561 | /* end confdefs.h. */ | ||
17562 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17563 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17564 | #define $ac_func innocuous_$ac_func | ||
17565 | |||
17566 | /* System header to define __stub macros and hopefully few prototypes, | ||
17567 | which can conflict with char $ac_func (); below. | ||
17568 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17569 | <limits.h> exists even on freestanding compilers. */ | ||
17570 | |||
17571 | #ifdef __STDC__ | ||
17572 | # include <limits.h> | ||
17573 | #else | ||
17574 | # include <assert.h> | ||
17575 | #endif | ||
17576 | |||
17577 | #undef $ac_func | ||
17578 | |||
17579 | /* Override any GCC internal prototype to avoid an error. | ||
17580 | Use char because int might match the return type of a GCC | ||
17581 | builtin and then its argument prototype would still apply. */ | ||
17582 | #ifdef __cplusplus | ||
17583 | extern "C" | ||
17584 | #endif | ||
17585 | char $ac_func (); | ||
17586 | /* The GNU C library defines this for functions which it implements | ||
17587 | to always fail with ENOSYS. Some functions are actually named | ||
17588 | something starting with __ and the normal name is an alias. */ | ||
17589 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17590 | choke me | ||
17591 | #endif | ||
17592 | |||
17593 | int | ||
17594 | main () | ||
17595 | { | ||
17596 | return $ac_func (); | ||
17597 | ; | ||
17598 | return 0; | ||
17599 | } | ||
17600 | _ACEOF | ||
17601 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17602 | if { (ac_try="$ac_link" | ||
17603 | case "(($ac_try" in | ||
17604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17605 | *) ac_try_echo=$ac_try;; | ||
17606 | esac | ||
17607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17608 | (eval "$ac_link") 2>conftest.er1 | ||
17609 | ac_status=$? | ||
17610 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17611 | rm -f conftest.er1 | ||
17612 | cat conftest.err >&5 | ||
17613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17614 | (exit $ac_status); } && { | ||
17615 | test -z "$ac_c_werror_flag" || | ||
17616 | test ! -s conftest.err | ||
17617 | } && test -s conftest$ac_exeext && | ||
17618 | $as_test_x conftest$ac_exeext; then | ||
17619 | eval "$as_ac_var=yes" | ||
17620 | else | ||
17621 | echo "$as_me: failed program was:" >&5 | ||
17622 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17623 | |||
17624 | eval "$as_ac_var=no" | ||
17625 | fi | ||
17626 | |||
17627 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17628 | conftest$ac_exeext conftest.$ac_ext | ||
17629 | fi | ||
17630 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17631 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17632 | echo "${ECHO_T}$ac_res" >&6; } | ||
17633 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17634 | cat >>confdefs.h <<_ACEOF | ||
17635 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17636 | _ACEOF | ||
17637 | |||
17638 | cat >>confdefs.h <<\_ACEOF | ||
17639 | #define HAVE_GAI_STRERROR 1 | ||
17640 | _ACEOF | ||
17641 | |||
17642 | cat >conftest.$ac_ext <<_ACEOF | ||
17643 | /* confdefs.h. */ | ||
17644 | _ACEOF | ||
17645 | cat confdefs.h >>conftest.$ac_ext | ||
17646 | cat >>conftest.$ac_ext <<_ACEOF | ||
17647 | /* end confdefs.h. */ | ||
17648 | |||
17649 | #include <sys/types.h> | ||
17650 | #include <sys/socket.h> | ||
17651 | #include <netdb.h> | ||
17652 | |||
17653 | const char *gai_strerror(int); | ||
17654 | |||
17655 | int | ||
17656 | main () | ||
17657 | { | ||
17658 | |||
17659 | char *str; | ||
17660 | str = gai_strerror(0); | ||
17661 | |||
17662 | ; | ||
17663 | return 0; | ||
17664 | } | ||
17665 | _ACEOF | ||
17666 | rm -f conftest.$ac_objext | ||
17667 | if { (ac_try="$ac_compile" | ||
17668 | case "(($ac_try" in | ||
17669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17670 | *) ac_try_echo=$ac_try;; | ||
17671 | esac | ||
17672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17673 | (eval "$ac_compile") 2>conftest.er1 | ||
17674 | ac_status=$? | ||
17675 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17676 | rm -f conftest.er1 | ||
17677 | cat conftest.err >&5 | ||
17678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17679 | (exit $ac_status); } && { | ||
17680 | test -z "$ac_c_werror_flag" || | ||
17681 | test ! -s conftest.err | ||
17682 | } && test -s conftest.$ac_objext; then | ||
17683 | |||
17684 | |||
17685 | cat >>confdefs.h <<\_ACEOF | ||
17686 | #define HAVE_CONST_GAI_STRERROR_PROTO 1 | ||
17687 | _ACEOF | ||
17688 | |||
17689 | else | ||
17690 | echo "$as_me: failed program was:" >&5 | ||
17691 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17692 | |||
17693 | |||
17694 | fi | ||
17695 | |||
17696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17697 | fi | ||
17698 | done | ||
17699 | |||
17700 | |||
17701 | { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 | ||
17702 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; } | ||
17703 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
17704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17705 | else | ||
17706 | ac_func_search_save_LIBS=$LIBS | ||
17707 | cat >conftest.$ac_ext <<_ACEOF | ||
17708 | /* confdefs.h. */ | ||
17709 | _ACEOF | ||
17710 | cat confdefs.h >>conftest.$ac_ext | ||
17711 | cat >>conftest.$ac_ext <<_ACEOF | ||
17712 | /* end confdefs.h. */ | ||
17713 | |||
17714 | /* Override any GCC internal prototype to avoid an error. | ||
17715 | Use char because int might match the return type of a GCC | ||
17716 | builtin and then its argument prototype would still apply. */ | ||
17717 | #ifdef __cplusplus | ||
17718 | extern "C" | ||
17719 | #endif | ||
17720 | char nanosleep (); | ||
17721 | int | ||
17722 | main () | ||
17723 | { | ||
17724 | return nanosleep (); | ||
17725 | ; | ||
17726 | return 0; | ||
17727 | } | ||
17728 | _ACEOF | ||
17729 | for ac_lib in '' rt posix4; do | ||
17730 | if test -z "$ac_lib"; then | ||
17731 | ac_res="none required" | ||
17732 | else | ||
17733 | ac_res=-l$ac_lib | ||
17734 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17735 | fi | ||
17736 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17737 | if { (ac_try="$ac_link" | ||
17738 | case "(($ac_try" in | ||
17739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17740 | *) ac_try_echo=$ac_try;; | ||
17741 | esac | ||
17742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17743 | (eval "$ac_link") 2>conftest.er1 | ||
17744 | ac_status=$? | ||
17745 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17746 | rm -f conftest.er1 | ||
17747 | cat conftest.err >&5 | ||
17748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17749 | (exit $ac_status); } && { | ||
17750 | test -z "$ac_c_werror_flag" || | ||
17751 | test ! -s conftest.err | ||
17752 | } && test -s conftest$ac_exeext && | ||
17753 | $as_test_x conftest$ac_exeext; then | ||
17754 | ac_cv_search_nanosleep=$ac_res | ||
17755 | else | ||
17756 | echo "$as_me: failed program was:" >&5 | ||
17757 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17758 | |||
17759 | |||
17760 | fi | ||
17761 | |||
17762 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17763 | conftest$ac_exeext | ||
17764 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
17765 | break | ||
17766 | fi | ||
17767 | done | ||
17768 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
17769 | : | ||
17770 | else | ||
17771 | ac_cv_search_nanosleep=no | ||
17772 | fi | ||
17773 | rm conftest.$ac_ext | ||
17774 | LIBS=$ac_func_search_save_LIBS | ||
17775 | fi | ||
17776 | { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 | ||
17777 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; } | ||
17778 | ac_res=$ac_cv_search_nanosleep | ||
17779 | if test "$ac_res" != no; then | ||
17780 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17781 | |||
17782 | cat >>confdefs.h <<\_ACEOF | ||
17783 | #define HAVE_NANOSLEEP 1 | ||
17784 | _ACEOF | ||
17785 | |||
17786 | fi | ||
17787 | |||
17788 | |||
17789 | { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5 | ||
17790 | echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; } | ||
17791 | if test "${ac_cv_search_clock_gettime+set}" = set; then | ||
17792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17793 | else | ||
17794 | ac_func_search_save_LIBS=$LIBS | ||
17795 | cat >conftest.$ac_ext <<_ACEOF | ||
17796 | /* confdefs.h. */ | ||
17797 | _ACEOF | ||
17798 | cat confdefs.h >>conftest.$ac_ext | ||
17799 | cat >>conftest.$ac_ext <<_ACEOF | ||
17800 | /* end confdefs.h. */ | ||
17801 | |||
17802 | /* Override any GCC internal prototype to avoid an error. | ||
17803 | Use char because int might match the return type of a GCC | ||
17804 | builtin and then its argument prototype would still apply. */ | ||
17805 | #ifdef __cplusplus | ||
17806 | extern "C" | ||
17807 | #endif | ||
17808 | char clock_gettime (); | ||
17809 | int | ||
17810 | main () | ||
17811 | { | ||
17812 | return clock_gettime (); | ||
17813 | ; | ||
17814 | return 0; | ||
17815 | } | ||
17816 | _ACEOF | ||
17817 | for ac_lib in '' rt; do | ||
17818 | if test -z "$ac_lib"; then | ||
17819 | ac_res="none required" | ||
17820 | else | ||
17821 | ac_res=-l$ac_lib | ||
17822 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17823 | fi | ||
17824 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17825 | if { (ac_try="$ac_link" | ||
17826 | case "(($ac_try" in | ||
17827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17828 | *) ac_try_echo=$ac_try;; | ||
17829 | esac | ||
17830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17831 | (eval "$ac_link") 2>conftest.er1 | ||
17832 | ac_status=$? | ||
17833 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17834 | rm -f conftest.er1 | ||
17835 | cat conftest.err >&5 | ||
17836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17837 | (exit $ac_status); } && { | ||
17838 | test -z "$ac_c_werror_flag" || | ||
17839 | test ! -s conftest.err | ||
17840 | } && test -s conftest$ac_exeext && | ||
17841 | $as_test_x conftest$ac_exeext; then | ||
17842 | ac_cv_search_clock_gettime=$ac_res | ||
17843 | else | ||
17844 | echo "$as_me: failed program was:" >&5 | ||
17845 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17846 | |||
17847 | |||
17848 | fi | ||
17849 | |||
17850 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17851 | conftest$ac_exeext | ||
17852 | if test "${ac_cv_search_clock_gettime+set}" = set; then | ||
17853 | break | ||
17854 | fi | ||
17855 | done | ||
17856 | if test "${ac_cv_search_clock_gettime+set}" = set; then | ||
17857 | : | ||
17858 | else | ||
17859 | ac_cv_search_clock_gettime=no | ||
17860 | fi | ||
17861 | rm conftest.$ac_ext | ||
17862 | LIBS=$ac_func_search_save_LIBS | ||
17863 | fi | ||
17864 | { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5 | ||
17865 | echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; } | ||
17866 | ac_res=$ac_cv_search_clock_gettime | ||
17867 | if test "$ac_res" != no; then | ||
17868 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17869 | |||
17870 | cat >>confdefs.h <<\_ACEOF | ||
17871 | #define HAVE_CLOCK_GETTIME 1 | ||
17872 | _ACEOF | ||
17873 | |||
17874 | fi | ||
17875 | |||
17876 | |||
17877 | { echo "$as_me:$LINENO: checking whether getrusage is declared" >&5 | ||
17878 | echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; } | ||
17879 | if test "${ac_cv_have_decl_getrusage+set}" = set; then | ||
17880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17881 | else | ||
17882 | cat >conftest.$ac_ext <<_ACEOF | ||
17883 | /* confdefs.h. */ | ||
17884 | _ACEOF | ||
17885 | cat confdefs.h >>conftest.$ac_ext | ||
17886 | cat >>conftest.$ac_ext <<_ACEOF | ||
17887 | /* end confdefs.h. */ | ||
17888 | $ac_includes_default | ||
17889 | int | ||
17890 | main () | ||
17891 | { | ||
17892 | #ifndef getrusage | ||
17893 | (void) getrusage; | ||
17894 | #endif | ||
17895 | |||
17896 | ; | ||
17897 | return 0; | ||
17898 | } | ||
17899 | _ACEOF | ||
17900 | rm -f conftest.$ac_objext | ||
17901 | if { (ac_try="$ac_compile" | ||
17902 | case "(($ac_try" in | ||
17903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17904 | *) ac_try_echo=$ac_try;; | ||
17905 | esac | ||
17906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17907 | (eval "$ac_compile") 2>conftest.er1 | ||
17908 | ac_status=$? | ||
17909 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17910 | rm -f conftest.er1 | ||
17911 | cat conftest.err >&5 | ||
17912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17913 | (exit $ac_status); } && { | ||
17914 | test -z "$ac_c_werror_flag" || | ||
17915 | test ! -s conftest.err | ||
17916 | } && test -s conftest.$ac_objext; then | ||
17917 | ac_cv_have_decl_getrusage=yes | ||
17918 | else | ||
17919 | echo "$as_me: failed program was:" >&5 | ||
17920 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17921 | |||
17922 | ac_cv_have_decl_getrusage=no | ||
17923 | fi | ||
17924 | |||
17925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17926 | fi | ||
17927 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5 | ||
17928 | echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; } | ||
17929 | if test $ac_cv_have_decl_getrusage = yes; then | ||
17930 | |||
17931 | for ac_func in getrusage | ||
17932 | do | ||
17933 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17934 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17935 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17936 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17938 | else | ||
17939 | cat >conftest.$ac_ext <<_ACEOF | ||
17940 | /* confdefs.h. */ | ||
17941 | _ACEOF | ||
17942 | cat confdefs.h >>conftest.$ac_ext | ||
17943 | cat >>conftest.$ac_ext <<_ACEOF | ||
17944 | /* end confdefs.h. */ | ||
17945 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17946 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17947 | #define $ac_func innocuous_$ac_func | ||
17948 | |||
17949 | /* System header to define __stub macros and hopefully few prototypes, | ||
17950 | which can conflict with char $ac_func (); below. | ||
17951 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17952 | <limits.h> exists even on freestanding compilers. */ | ||
17953 | |||
17954 | #ifdef __STDC__ | ||
17955 | # include <limits.h> | ||
17956 | #else | ||
17957 | # include <assert.h> | ||
17958 | #endif | ||
17959 | |||
17960 | #undef $ac_func | ||
17961 | |||
17962 | /* Override any GCC internal prototype to avoid an error. | ||
17963 | Use char because int might match the return type of a GCC | ||
17964 | builtin and then its argument prototype would still apply. */ | ||
17965 | #ifdef __cplusplus | ||
17966 | extern "C" | ||
17967 | #endif | ||
17968 | char $ac_func (); | ||
17969 | /* The GNU C library defines this for functions which it implements | ||
17970 | to always fail with ENOSYS. Some functions are actually named | ||
17971 | something starting with __ and the normal name is an alias. */ | ||
17972 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17973 | choke me | ||
17974 | #endif | ||
17975 | |||
17976 | int | ||
17977 | main () | ||
17978 | { | ||
17979 | return $ac_func (); | ||
17980 | ; | ||
17981 | return 0; | ||
17982 | } | ||
17983 | _ACEOF | ||
17984 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17985 | if { (ac_try="$ac_link" | ||
17986 | case "(($ac_try" in | ||
17987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17988 | *) ac_try_echo=$ac_try;; | ||
17989 | esac | ||
17990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17991 | (eval "$ac_link") 2>conftest.er1 | ||
17992 | ac_status=$? | ||
17993 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17994 | rm -f conftest.er1 | ||
17995 | cat conftest.err >&5 | ||
17996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17997 | (exit $ac_status); } && { | ||
17998 | test -z "$ac_c_werror_flag" || | ||
17999 | test ! -s conftest.err | ||
18000 | } && test -s conftest$ac_exeext && | ||
18001 | $as_test_x conftest$ac_exeext; then | ||
18002 | eval "$as_ac_var=yes" | ||
18003 | else | ||
18004 | echo "$as_me: failed program was:" >&5 | ||
18005 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18006 | |||
18007 | eval "$as_ac_var=no" | ||
18008 | fi | ||
18009 | |||
18010 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18011 | conftest$ac_exeext conftest.$ac_ext | ||
18012 | fi | ||
18013 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
18014 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18015 | echo "${ECHO_T}$ac_res" >&6; } | ||
18016 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
18017 | cat >>confdefs.h <<_ACEOF | ||
18018 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18019 | _ACEOF | ||
18020 | |||
18021 | fi | ||
18022 | done | ||
18023 | |||
18024 | fi | ||
18025 | |||
18026 | { echo "$as_me:$LINENO: checking whether strsep is declared" >&5 | ||
18027 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; } | ||
18028 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
18029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18030 | else | ||
18031 | cat >conftest.$ac_ext <<_ACEOF | ||
18032 | /* confdefs.h. */ | ||
18033 | _ACEOF | ||
18034 | cat confdefs.h >>conftest.$ac_ext | ||
18035 | cat >>conftest.$ac_ext <<_ACEOF | ||
18036 | /* end confdefs.h. */ | ||
18037 | |||
18038 | #ifdef HAVE_STRING_H | ||
18039 | # include <string.h> | ||
18040 | #endif | ||
18041 | |||
18042 | |||
18043 | int | ||
18044 | main () | ||
18045 | { | ||
18046 | #ifndef strsep | ||
18047 | (void) strsep; | ||
18048 | #endif | ||
18049 | |||
18050 | ; | ||
18051 | return 0; | ||
18052 | } | ||
18053 | _ACEOF | ||
18054 | rm -f conftest.$ac_objext | ||
18055 | if { (ac_try="$ac_compile" | ||
18056 | case "(($ac_try" in | ||
18057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18058 | *) ac_try_echo=$ac_try;; | ||
18059 | esac | ||
18060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18061 | (eval "$ac_compile") 2>conftest.er1 | ||
18062 | ac_status=$? | ||
18063 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18064 | rm -f conftest.er1 | ||
18065 | cat conftest.err >&5 | ||
18066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18067 | (exit $ac_status); } && { | ||
18068 | test -z "$ac_c_werror_flag" || | ||
18069 | test ! -s conftest.err | ||
18070 | } && test -s conftest.$ac_objext; then | ||
18071 | ac_cv_have_decl_strsep=yes | ||
18072 | else | ||
18073 | echo "$as_me: failed program was:" >&5 | ||
18074 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18075 | |||
18076 | ac_cv_have_decl_strsep=no | ||
18077 | fi | ||
18078 | |||
18079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18080 | fi | ||
18081 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 | ||
18082 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; } | ||
18083 | if test $ac_cv_have_decl_strsep = yes; then | ||
18084 | |||
18085 | for ac_func in strsep | ||
18086 | do | ||
18087 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18088 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18089 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
18090 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18092 | else | ||
18093 | cat >conftest.$ac_ext <<_ACEOF | ||
18094 | /* confdefs.h. */ | ||
18095 | _ACEOF | ||
18096 | cat confdefs.h >>conftest.$ac_ext | ||
18097 | cat >>conftest.$ac_ext <<_ACEOF | ||
18098 | /* end confdefs.h. */ | ||
18099 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18100 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18101 | #define $ac_func innocuous_$ac_func | ||
18102 | |||
18103 | /* System header to define __stub macros and hopefully few prototypes, | ||
18104 | which can conflict with char $ac_func (); below. | ||
18105 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18106 | <limits.h> exists even on freestanding compilers. */ | ||
18107 | |||
18108 | #ifdef __STDC__ | ||
18109 | # include <limits.h> | ||
18110 | #else | ||
18111 | # include <assert.h> | ||
18112 | #endif | ||
18113 | |||
18114 | #undef $ac_func | ||
18115 | |||
18116 | /* Override any GCC internal prototype to avoid an error. | ||
18117 | Use char because int might match the return type of a GCC | ||
18118 | builtin and then its argument prototype would still apply. */ | ||
18119 | #ifdef __cplusplus | ||
18120 | extern "C" | ||
18121 | #endif | ||
18122 | char $ac_func (); | ||
18123 | /* The GNU C library defines this for functions which it implements | ||
18124 | to always fail with ENOSYS. Some functions are actually named | ||
18125 | something starting with __ and the normal name is an alias. */ | ||
18126 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18127 | choke me | ||
18128 | #endif | ||
18129 | |||
18130 | int | ||
18131 | main () | ||
18132 | { | ||
18133 | return $ac_func (); | ||
18134 | ; | ||
18135 | return 0; | ||
18136 | } | ||
18137 | _ACEOF | ||
18138 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18139 | if { (ac_try="$ac_link" | ||
18140 | case "(($ac_try" in | ||
18141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18142 | *) ac_try_echo=$ac_try;; | ||
18143 | esac | ||
18144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18145 | (eval "$ac_link") 2>conftest.er1 | ||
18146 | ac_status=$? | ||
18147 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18148 | rm -f conftest.er1 | ||
18149 | cat conftest.err >&5 | ||
18150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18151 | (exit $ac_status); } && { | ||
18152 | test -z "$ac_c_werror_flag" || | ||
18153 | test ! -s conftest.err | ||
18154 | } && test -s conftest$ac_exeext && | ||
18155 | $as_test_x conftest$ac_exeext; then | ||
18156 | eval "$as_ac_var=yes" | ||
18157 | else | ||
18158 | echo "$as_me: failed program was:" >&5 | ||
18159 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18160 | |||
18161 | eval "$as_ac_var=no" | ||
18162 | fi | ||
18163 | |||
18164 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18165 | conftest$ac_exeext conftest.$ac_ext | ||
18166 | fi | ||
18167 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
18168 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18169 | echo "${ECHO_T}$ac_res" >&6; } | ||
18170 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
18171 | cat >>confdefs.h <<_ACEOF | ||
18172 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18173 | _ACEOF | ||
18174 | |||
18175 | fi | ||
18176 | done | ||
18177 | |||
18178 | fi | ||
18179 | |||
18180 | |||
18181 | { echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5 | ||
18182 | echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; } | ||
18183 | if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then | ||
18184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18185 | else | ||
18186 | cat >conftest.$ac_ext <<_ACEOF | ||
18187 | /* confdefs.h. */ | ||
18188 | _ACEOF | ||
18189 | cat confdefs.h >>conftest.$ac_ext | ||
18190 | cat >>conftest.$ac_ext <<_ACEOF | ||
18191 | /* end confdefs.h. */ | ||
18192 | #include <termios.h> | ||
18193 | |||
18194 | |||
18195 | int | ||
18196 | main () | ||
18197 | { | ||
18198 | #ifndef tcsendbreak | ||
18199 | (void) tcsendbreak; | ||
18200 | #endif | ||
18201 | |||
18202 | ; | ||
18203 | return 0; | ||
18204 | } | ||
18205 | _ACEOF | ||
18206 | rm -f conftest.$ac_objext | ||
18207 | if { (ac_try="$ac_compile" | ||
18208 | case "(($ac_try" in | ||
18209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18210 | *) ac_try_echo=$ac_try;; | ||
18211 | esac | ||
18212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18213 | (eval "$ac_compile") 2>conftest.er1 | ||
18214 | ac_status=$? | ||
18215 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18216 | rm -f conftest.er1 | ||
18217 | cat conftest.err >&5 | ||
18218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18219 | (exit $ac_status); } && { | ||
18220 | test -z "$ac_c_werror_flag" || | ||
18221 | test ! -s conftest.err | ||
18222 | } && test -s conftest.$ac_objext; then | ||
18223 | ac_cv_have_decl_tcsendbreak=yes | ||
18224 | else | ||
18225 | echo "$as_me: failed program was:" >&5 | ||
18226 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18227 | |||
18228 | ac_cv_have_decl_tcsendbreak=no | ||
18229 | fi | ||
18230 | |||
18231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18232 | fi | ||
18233 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5 | ||
18234 | echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; } | ||
18235 | if test $ac_cv_have_decl_tcsendbreak = yes; then | ||
18236 | cat >>confdefs.h <<\_ACEOF | ||
18237 | #define HAVE_TCSENDBREAK 1 | ||
18238 | _ACEOF | ||
18239 | |||
18240 | else | ||
18241 | |||
18242 | for ac_func in tcsendbreak | ||
18243 | do | ||
18244 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18245 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18246 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
18247 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18249 | else | ||
18250 | cat >conftest.$ac_ext <<_ACEOF | ||
18251 | /* confdefs.h. */ | ||
18252 | _ACEOF | ||
18253 | cat confdefs.h >>conftest.$ac_ext | ||
18254 | cat >>conftest.$ac_ext <<_ACEOF | ||
18255 | /* end confdefs.h. */ | ||
18256 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18257 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18258 | #define $ac_func innocuous_$ac_func | ||
18259 | |||
18260 | /* System header to define __stub macros and hopefully few prototypes, | ||
18261 | which can conflict with char $ac_func (); below. | ||
18262 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18263 | <limits.h> exists even on freestanding compilers. */ | ||
18264 | |||
18265 | #ifdef __STDC__ | ||
18266 | # include <limits.h> | ||
18267 | #else | ||
18268 | # include <assert.h> | ||
18269 | #endif | ||
18270 | |||
18271 | #undef $ac_func | ||
18272 | |||
18273 | /* Override any GCC internal prototype to avoid an error. | ||
18274 | Use char because int might match the return type of a GCC | ||
18275 | builtin and then its argument prototype would still apply. */ | ||
18276 | #ifdef __cplusplus | ||
18277 | extern "C" | ||
18278 | #endif | ||
18279 | char $ac_func (); | ||
18280 | /* The GNU C library defines this for functions which it implements | ||
18281 | to always fail with ENOSYS. Some functions are actually named | ||
18282 | something starting with __ and the normal name is an alias. */ | ||
18283 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18284 | choke me | ||
18285 | #endif | ||
18286 | |||
18287 | int | ||
18288 | main () | ||
18289 | { | ||
18290 | return $ac_func (); | ||
18291 | ; | ||
18292 | return 0; | ||
18293 | } | ||
18294 | _ACEOF | ||
18295 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18296 | if { (ac_try="$ac_link" | ||
18297 | case "(($ac_try" in | ||
18298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18299 | *) ac_try_echo=$ac_try;; | ||
18300 | esac | ||
18301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18302 | (eval "$ac_link") 2>conftest.er1 | ||
18303 | ac_status=$? | ||
18304 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18305 | rm -f conftest.er1 | ||
18306 | cat conftest.err >&5 | ||
18307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18308 | (exit $ac_status); } && { | ||
18309 | test -z "$ac_c_werror_flag" || | ||
18310 | test ! -s conftest.err | ||
18311 | } && test -s conftest$ac_exeext && | ||
18312 | $as_test_x conftest$ac_exeext; then | ||
18313 | eval "$as_ac_var=yes" | ||
18314 | else | ||
18315 | echo "$as_me: failed program was:" >&5 | ||
18316 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18317 | |||
18318 | eval "$as_ac_var=no" | ||
18319 | fi | ||
18320 | |||
18321 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18322 | conftest$ac_exeext conftest.$ac_ext | ||
18323 | fi | ||
18324 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
18325 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18326 | echo "${ECHO_T}$ac_res" >&6; } | ||
18327 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
18328 | cat >>confdefs.h <<_ACEOF | ||
18329 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18330 | _ACEOF | ||
18331 | |||
18332 | fi | ||
18333 | done | ||
18334 | |||
18335 | fi | ||
18336 | |||
18337 | |||
18338 | { echo "$as_me:$LINENO: checking whether h_errno is declared" >&5 | ||
18339 | echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; } | ||
18340 | if test "${ac_cv_have_decl_h_errno+set}" = set; then | ||
18341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18342 | else | ||
18343 | cat >conftest.$ac_ext <<_ACEOF | ||
18344 | /* confdefs.h. */ | ||
18345 | _ACEOF | ||
18346 | cat confdefs.h >>conftest.$ac_ext | ||
18347 | cat >>conftest.$ac_ext <<_ACEOF | ||
18348 | /* end confdefs.h. */ | ||
18349 | #include <netdb.h> | ||
18350 | |||
18351 | int | ||
18352 | main () | ||
18353 | { | ||
18354 | #ifndef h_errno | ||
18355 | (void) h_errno; | ||
18356 | #endif | ||
18357 | |||
18358 | ; | ||
18359 | return 0; | ||
18360 | } | ||
18361 | _ACEOF | ||
18362 | rm -f conftest.$ac_objext | ||
18363 | if { (ac_try="$ac_compile" | ||
18364 | case "(($ac_try" in | ||
18365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18366 | *) ac_try_echo=$ac_try;; | ||
18367 | esac | ||
18368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18369 | (eval "$ac_compile") 2>conftest.er1 | ||
18370 | ac_status=$? | ||
18371 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18372 | rm -f conftest.er1 | ||
18373 | cat conftest.err >&5 | ||
18374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18375 | (exit $ac_status); } && { | ||
18376 | test -z "$ac_c_werror_flag" || | ||
18377 | test ! -s conftest.err | ||
18378 | } && test -s conftest.$ac_objext; then | ||
18379 | ac_cv_have_decl_h_errno=yes | ||
18380 | else | ||
18381 | echo "$as_me: failed program was:" >&5 | ||
18382 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18383 | |||
18384 | ac_cv_have_decl_h_errno=no | ||
18385 | fi | ||
18386 | |||
18387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18388 | fi | ||
18389 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5 | ||
18390 | echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; } | ||
18391 | if test $ac_cv_have_decl_h_errno = yes; then | ||
18392 | |||
18393 | cat >>confdefs.h <<_ACEOF | ||
18394 | #define HAVE_DECL_H_ERRNO 1 | ||
18395 | _ACEOF | ||
18396 | |||
18397 | |||
18398 | else | ||
18399 | cat >>confdefs.h <<_ACEOF | ||
18400 | #define HAVE_DECL_H_ERRNO 0 | ||
18401 | _ACEOF | ||
18402 | |||
18403 | |||
18404 | fi | ||
18405 | |||
18406 | |||
18407 | |||
18408 | { echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5 | ||
18409 | echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; } | ||
18410 | if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then | ||
18411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18412 | else | ||
18413 | cat >conftest.$ac_ext <<_ACEOF | ||
18414 | /* confdefs.h. */ | ||
18415 | _ACEOF | ||
18416 | cat confdefs.h >>conftest.$ac_ext | ||
18417 | cat >>conftest.$ac_ext <<_ACEOF | ||
18418 | /* end confdefs.h. */ | ||
18419 | |||
18420 | #include <sys/types.h> | ||
18421 | #include <sys/socket.h> | ||
18422 | |||
18423 | |||
18424 | int | ||
18425 | main () | ||
18426 | { | ||
18427 | #ifndef SHUT_RD | ||
18428 | (void) SHUT_RD; | ||
18429 | #endif | ||
18430 | |||
18431 | ; | ||
18432 | return 0; | ||
18433 | } | ||
18434 | _ACEOF | ||
18435 | rm -f conftest.$ac_objext | ||
18436 | if { (ac_try="$ac_compile" | ||
18437 | case "(($ac_try" in | ||
18438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18439 | *) ac_try_echo=$ac_try;; | ||
18440 | esac | ||
18441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18442 | (eval "$ac_compile") 2>conftest.er1 | ||
18443 | ac_status=$? | ||
18444 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18445 | rm -f conftest.er1 | ||
18446 | cat conftest.err >&5 | ||
18447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18448 | (exit $ac_status); } && { | ||
18449 | test -z "$ac_c_werror_flag" || | ||
18450 | test ! -s conftest.err | ||
18451 | } && test -s conftest.$ac_objext; then | ||
18452 | ac_cv_have_decl_SHUT_RD=yes | ||
18453 | else | ||
18454 | echo "$as_me: failed program was:" >&5 | ||
18455 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18456 | |||
18457 | ac_cv_have_decl_SHUT_RD=no | ||
18458 | fi | ||
18459 | |||
18460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18461 | fi | ||
18462 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5 | ||
18463 | echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; } | ||
18464 | if test $ac_cv_have_decl_SHUT_RD = yes; then | ||
18465 | |||
18466 | cat >>confdefs.h <<_ACEOF | ||
18467 | #define HAVE_DECL_SHUT_RD 1 | ||
18468 | _ACEOF | ||
18469 | |||
18470 | |||
18471 | else | ||
18472 | cat >>confdefs.h <<_ACEOF | ||
18473 | #define HAVE_DECL_SHUT_RD 0 | ||
18474 | _ACEOF | ||
18475 | |||
18476 | |||
18477 | fi | ||
18478 | |||
18479 | |||
18480 | |||
18481 | { echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5 | ||
18482 | echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; } | ||
18483 | if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then | ||
18484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18485 | else | ||
18486 | cat >conftest.$ac_ext <<_ACEOF | ||
18487 | /* confdefs.h. */ | ||
18488 | _ACEOF | ||
18489 | cat confdefs.h >>conftest.$ac_ext | ||
18490 | cat >>conftest.$ac_ext <<_ACEOF | ||
18491 | /* end confdefs.h. */ | ||
18492 | |||
18493 | #include <sys/types.h> | ||
18494 | #ifdef HAVE_SYS_STAT_H | ||
18495 | # include <sys/stat.h> | ||
18496 | #endif | ||
18497 | #ifdef HAVE_FCNTL_H | ||
18498 | # include <fcntl.h> | ||
18499 | #endif | ||
18500 | |||
18501 | |||
18502 | int | ||
18503 | main () | ||
18504 | { | ||
18505 | #ifndef O_NONBLOCK | ||
18506 | (void) O_NONBLOCK; | ||
18507 | #endif | ||
18508 | |||
18509 | ; | ||
18510 | return 0; | ||
18511 | } | ||
18512 | _ACEOF | ||
18513 | rm -f conftest.$ac_objext | ||
18514 | if { (ac_try="$ac_compile" | ||
18515 | case "(($ac_try" in | ||
18516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18517 | *) ac_try_echo=$ac_try;; | ||
18518 | esac | ||
18519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18520 | (eval "$ac_compile") 2>conftest.er1 | ||
18521 | ac_status=$? | ||
18522 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18523 | rm -f conftest.er1 | ||
18524 | cat conftest.err >&5 | ||
18525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18526 | (exit $ac_status); } && { | ||
18527 | test -z "$ac_c_werror_flag" || | ||
18528 | test ! -s conftest.err | ||
18529 | } && test -s conftest.$ac_objext; then | ||
18530 | ac_cv_have_decl_O_NONBLOCK=yes | ||
18531 | else | ||
18532 | echo "$as_me: failed program was:" >&5 | ||
18533 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18534 | |||
18535 | ac_cv_have_decl_O_NONBLOCK=no | ||
18536 | fi | ||
18537 | |||
18538 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18539 | fi | ||
18540 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5 | ||
18541 | echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; } | ||
18542 | if test $ac_cv_have_decl_O_NONBLOCK = yes; then | ||
18543 | |||
18544 | cat >>confdefs.h <<_ACEOF | ||
18545 | #define HAVE_DECL_O_NONBLOCK 1 | ||
18546 | _ACEOF | ||
18547 | |||
18548 | |||
18549 | else | ||
18550 | cat >>confdefs.h <<_ACEOF | ||
18551 | #define HAVE_DECL_O_NONBLOCK 0 | ||
18552 | _ACEOF | ||
18553 | |||
18554 | |||
18555 | fi | ||
18556 | |||
18557 | |||
18558 | |||
18559 | { echo "$as_me:$LINENO: checking whether writev is declared" >&5 | ||
18560 | echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; } | ||
18561 | if test "${ac_cv_have_decl_writev+set}" = set; then | ||
18562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18563 | else | ||
18564 | cat >conftest.$ac_ext <<_ACEOF | ||
18565 | /* confdefs.h. */ | ||
18566 | _ACEOF | ||
18567 | cat confdefs.h >>conftest.$ac_ext | ||
18568 | cat >>conftest.$ac_ext <<_ACEOF | ||
18569 | /* end confdefs.h. */ | ||
18570 | |||
18571 | #include <sys/types.h> | ||
18572 | #include <sys/uio.h> | ||
18573 | #include <unistd.h> | ||
18574 | |||
18575 | |||
18576 | int | ||
18577 | main () | ||
18578 | { | ||
18579 | #ifndef writev | ||
18580 | (void) writev; | ||
18581 | #endif | ||
18582 | |||
18583 | ; | ||
18584 | return 0; | ||
18585 | } | ||
18586 | _ACEOF | ||
18587 | rm -f conftest.$ac_objext | ||
18588 | if { (ac_try="$ac_compile" | ||
18589 | case "(($ac_try" in | ||
18590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18591 | *) ac_try_echo=$ac_try;; | ||
18592 | esac | ||
18593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18594 | (eval "$ac_compile") 2>conftest.er1 | ||
18595 | ac_status=$? | ||
18596 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18597 | rm -f conftest.er1 | ||
18598 | cat conftest.err >&5 | ||
18599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18600 | (exit $ac_status); } && { | ||
18601 | test -z "$ac_c_werror_flag" || | ||
18602 | test ! -s conftest.err | ||
18603 | } && test -s conftest.$ac_objext; then | ||
18604 | ac_cv_have_decl_writev=yes | ||
18605 | else | ||
18606 | echo "$as_me: failed program was:" >&5 | ||
18607 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18608 | |||
18609 | ac_cv_have_decl_writev=no | ||
18610 | fi | ||
18611 | |||
18612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18613 | fi | ||
18614 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5 | ||
18615 | echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; } | ||
18616 | if test $ac_cv_have_decl_writev = yes; then | ||
18617 | |||
18618 | cat >>confdefs.h <<_ACEOF | ||
18619 | #define HAVE_DECL_WRITEV 1 | ||
18620 | _ACEOF | ||
18621 | |||
18622 | |||
18623 | else | ||
18624 | cat >>confdefs.h <<_ACEOF | ||
18625 | #define HAVE_DECL_WRITEV 0 | ||
18626 | _ACEOF | ||
18627 | |||
18628 | |||
18629 | fi | ||
18630 | |||
18631 | |||
18632 | |||
18633 | { echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5 | ||
18634 | echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; } | ||
18635 | if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then | ||
18636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18637 | else | ||
18638 | cat >conftest.$ac_ext <<_ACEOF | ||
18639 | /* confdefs.h. */ | ||
18640 | _ACEOF | ||
18641 | cat confdefs.h >>conftest.$ac_ext | ||
18642 | cat >>conftest.$ac_ext <<_ACEOF | ||
18643 | /* end confdefs.h. */ | ||
18644 | |||
18645 | #include <sys/param.h> | ||
18646 | |||
18647 | |||
18648 | int | ||
18649 | main () | ||
18650 | { | ||
18651 | #ifndef MAXSYMLINKS | ||
18652 | (void) MAXSYMLINKS; | ||
18653 | #endif | ||
18654 | |||
18655 | ; | ||
18656 | return 0; | ||
18657 | } | ||
18658 | _ACEOF | ||
18659 | rm -f conftest.$ac_objext | ||
18660 | if { (ac_try="$ac_compile" | ||
18661 | case "(($ac_try" in | ||
18662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18663 | *) ac_try_echo=$ac_try;; | ||
18664 | esac | ||
18665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18666 | (eval "$ac_compile") 2>conftest.er1 | ||
18667 | ac_status=$? | ||
18668 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18669 | rm -f conftest.er1 | ||
18670 | cat conftest.err >&5 | ||
18671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18672 | (exit $ac_status); } && { | ||
18673 | test -z "$ac_c_werror_flag" || | ||
18674 | test ! -s conftest.err | ||
18675 | } && test -s conftest.$ac_objext; then | ||
18676 | ac_cv_have_decl_MAXSYMLINKS=yes | ||
18677 | else | ||
18678 | echo "$as_me: failed program was:" >&5 | ||
18679 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18680 | |||
18681 | ac_cv_have_decl_MAXSYMLINKS=no | ||
18682 | fi | ||
18683 | |||
18684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18685 | fi | ||
18686 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5 | ||
18687 | echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; } | ||
18688 | if test $ac_cv_have_decl_MAXSYMLINKS = yes; then | ||
18689 | |||
18690 | cat >>confdefs.h <<_ACEOF | ||
18691 | #define HAVE_DECL_MAXSYMLINKS 1 | ||
18692 | _ACEOF | ||
18693 | |||
18694 | |||
18695 | else | ||
18696 | cat >>confdefs.h <<_ACEOF | ||
18697 | #define HAVE_DECL_MAXSYMLINKS 0 | ||
18698 | _ACEOF | ||
18699 | |||
18700 | |||
18701 | fi | ||
18702 | |||
18703 | |||
18704 | |||
18705 | { echo "$as_me:$LINENO: checking whether offsetof is declared" >&5 | ||
18706 | echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; } | ||
18707 | if test "${ac_cv_have_decl_offsetof+set}" = set; then | ||
18708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18709 | else | ||
18710 | cat >conftest.$ac_ext <<_ACEOF | ||
18711 | /* confdefs.h. */ | ||
18712 | _ACEOF | ||
18713 | cat confdefs.h >>conftest.$ac_ext | ||
18714 | cat >>conftest.$ac_ext <<_ACEOF | ||
18715 | /* end confdefs.h. */ | ||
18716 | |||
18717 | #include <stddef.h> | ||
18718 | |||
18719 | |||
18720 | int | ||
18721 | main () | ||
18722 | { | ||
18723 | #ifndef offsetof | ||
18724 | (void) offsetof; | ||
18725 | #endif | ||
18726 | |||
18727 | ; | ||
18728 | return 0; | ||
18729 | } | ||
18730 | _ACEOF | ||
18731 | rm -f conftest.$ac_objext | ||
18732 | if { (ac_try="$ac_compile" | ||
18733 | case "(($ac_try" in | ||
18734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18735 | *) ac_try_echo=$ac_try;; | ||
18736 | esac | ||
18737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18738 | (eval "$ac_compile") 2>conftest.er1 | ||
18739 | ac_status=$? | ||
18740 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18741 | rm -f conftest.er1 | ||
18742 | cat conftest.err >&5 | ||
18743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18744 | (exit $ac_status); } && { | ||
18745 | test -z "$ac_c_werror_flag" || | ||
18746 | test ! -s conftest.err | ||
18747 | } && test -s conftest.$ac_objext; then | ||
18748 | ac_cv_have_decl_offsetof=yes | ||
18749 | else | ||
18750 | echo "$as_me: failed program was:" >&5 | ||
18751 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18752 | |||
18753 | ac_cv_have_decl_offsetof=no | ||
18754 | fi | ||
18755 | |||
18756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18757 | fi | ||
18758 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5 | ||
18759 | echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; } | ||
18760 | if test $ac_cv_have_decl_offsetof = yes; then | ||
18761 | |||
18762 | cat >>confdefs.h <<_ACEOF | ||
18763 | #define HAVE_DECL_OFFSETOF 1 | ||
18764 | _ACEOF | ||
18765 | |||
18766 | |||
18767 | else | ||
18768 | cat >>confdefs.h <<_ACEOF | ||
18769 | #define HAVE_DECL_OFFSETOF 0 | ||
18770 | _ACEOF | ||
18771 | |||
18772 | |||
18773 | fi | ||
18774 | |||
18775 | |||
18776 | |||
18777 | # extra bits for select(2) | ||
18778 | { echo "$as_me:$LINENO: checking whether howmany is declared" >&5 | ||
18779 | echo $ECHO_N "checking whether howmany is declared... $ECHO_C" >&6; } | ||
18780 | if test "${ac_cv_have_decl_howmany+set}" = set; then | ||
18781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18782 | else | ||
18783 | cat >conftest.$ac_ext <<_ACEOF | ||
18784 | /* confdefs.h. */ | ||
18785 | _ACEOF | ||
18786 | cat confdefs.h >>conftest.$ac_ext | ||
18787 | cat >>conftest.$ac_ext <<_ACEOF | ||
18788 | /* end confdefs.h. */ | ||
18789 | |||
18790 | #include <sys/param.h> | ||
18791 | #include <sys/types.h> | ||
18792 | #ifdef HAVE_SYS_SYSMACROS_H | ||
18793 | #include <sys/sysmacros.h> | ||
18794 | #endif | ||
18795 | #ifdef HAVE_SYS_SELECT_H | ||
18796 | #include <sys/select.h> | ||
18797 | #endif | ||
18798 | #ifdef HAVE_SYS_TIME_H | ||
18799 | #include <sys/time.h> | ||
18800 | #endif | ||
18801 | #ifdef HAVE_UNISTD_H | ||
18802 | #include <unistd.h> | ||
18803 | #endif | ||
18804 | |||
18805 | |||
18806 | int | ||
18807 | main () | ||
18808 | { | ||
18809 | #ifndef howmany | ||
18810 | (void) howmany; | ||
18811 | #endif | ||
18812 | |||
18813 | ; | ||
18814 | return 0; | ||
18815 | } | ||
18816 | _ACEOF | ||
18817 | rm -f conftest.$ac_objext | ||
18818 | if { (ac_try="$ac_compile" | ||
18819 | case "(($ac_try" in | ||
18820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18821 | *) ac_try_echo=$ac_try;; | ||
18822 | esac | ||
18823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18824 | (eval "$ac_compile") 2>conftest.er1 | ||
18825 | ac_status=$? | ||
18826 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18827 | rm -f conftest.er1 | ||
18828 | cat conftest.err >&5 | ||
18829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18830 | (exit $ac_status); } && { | ||
18831 | test -z "$ac_c_werror_flag" || | ||
18832 | test ! -s conftest.err | ||
18833 | } && test -s conftest.$ac_objext; then | ||
18834 | ac_cv_have_decl_howmany=yes | ||
18835 | else | ||
18836 | echo "$as_me: failed program was:" >&5 | ||
18837 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18838 | |||
18839 | ac_cv_have_decl_howmany=no | ||
18840 | fi | ||
18841 | |||
18842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18843 | fi | ||
18844 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_howmany" >&5 | ||
18845 | echo "${ECHO_T}$ac_cv_have_decl_howmany" >&6; } | ||
18846 | if test $ac_cv_have_decl_howmany = yes; then | ||
18847 | |||
18848 | cat >>confdefs.h <<_ACEOF | ||
18849 | #define HAVE_DECL_HOWMANY 1 | ||
18850 | _ACEOF | ||
18851 | |||
18852 | |||
18853 | else | ||
18854 | cat >>confdefs.h <<_ACEOF | ||
18855 | #define HAVE_DECL_HOWMANY 0 | ||
18856 | _ACEOF | ||
18857 | |||
18858 | |||
18859 | fi | ||
18860 | { echo "$as_me:$LINENO: checking whether NFDBITS is declared" >&5 | ||
18861 | echo $ECHO_N "checking whether NFDBITS is declared... $ECHO_C" >&6; } | ||
18862 | if test "${ac_cv_have_decl_NFDBITS+set}" = set; then | ||
18863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18864 | else | ||
18865 | cat >conftest.$ac_ext <<_ACEOF | ||
18866 | /* confdefs.h. */ | ||
18867 | _ACEOF | ||
18868 | cat confdefs.h >>conftest.$ac_ext | ||
18869 | cat >>conftest.$ac_ext <<_ACEOF | ||
18870 | /* end confdefs.h. */ | ||
18871 | |||
18872 | #include <sys/param.h> | ||
18873 | #include <sys/types.h> | ||
18874 | #ifdef HAVE_SYS_SYSMACROS_H | ||
18875 | #include <sys/sysmacros.h> | ||
18876 | #endif | ||
18877 | #ifdef HAVE_SYS_SELECT_H | ||
18878 | #include <sys/select.h> | ||
18879 | #endif | ||
18880 | #ifdef HAVE_SYS_TIME_H | ||
18881 | #include <sys/time.h> | ||
18882 | #endif | ||
18883 | #ifdef HAVE_UNISTD_H | ||
18884 | #include <unistd.h> | ||
18885 | #endif | ||
18886 | |||
18887 | |||
18888 | int | ||
18889 | main () | ||
18890 | { | ||
18891 | #ifndef NFDBITS | ||
18892 | (void) NFDBITS; | ||
18893 | #endif | ||
18894 | |||
18895 | ; | ||
18896 | return 0; | ||
18897 | } | ||
18898 | _ACEOF | ||
18899 | rm -f conftest.$ac_objext | ||
18900 | if { (ac_try="$ac_compile" | ||
18901 | case "(($ac_try" in | ||
18902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18903 | *) ac_try_echo=$ac_try;; | ||
18904 | esac | ||
18905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18906 | (eval "$ac_compile") 2>conftest.er1 | ||
18907 | ac_status=$? | ||
18908 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18909 | rm -f conftest.er1 | ||
18910 | cat conftest.err >&5 | ||
18911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18912 | (exit $ac_status); } && { | ||
18913 | test -z "$ac_c_werror_flag" || | ||
18914 | test ! -s conftest.err | ||
18915 | } && test -s conftest.$ac_objext; then | ||
18916 | ac_cv_have_decl_NFDBITS=yes | ||
18917 | else | ||
18918 | echo "$as_me: failed program was:" >&5 | ||
18919 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18920 | |||
18921 | ac_cv_have_decl_NFDBITS=no | ||
18922 | fi | ||
18923 | |||
18924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18925 | fi | ||
18926 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_NFDBITS" >&5 | ||
18927 | echo "${ECHO_T}$ac_cv_have_decl_NFDBITS" >&6; } | ||
18928 | if test $ac_cv_have_decl_NFDBITS = yes; then | ||
18929 | |||
18930 | cat >>confdefs.h <<_ACEOF | ||
18931 | #define HAVE_DECL_NFDBITS 1 | ||
18932 | _ACEOF | ||
18933 | |||
18934 | |||
18935 | else | ||
18936 | cat >>confdefs.h <<_ACEOF | ||
18937 | #define HAVE_DECL_NFDBITS 0 | ||
18938 | _ACEOF | ||
18939 | |||
18940 | |||
18941 | fi | ||
18942 | |||
18943 | |||
18944 | { echo "$as_me:$LINENO: checking for fd_mask" >&5 | ||
18945 | echo $ECHO_N "checking for fd_mask... $ECHO_C" >&6; } | ||
18946 | if test "${ac_cv_type_fd_mask+set}" = set; then | ||
18947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18948 | else | ||
18949 | cat >conftest.$ac_ext <<_ACEOF | ||
18950 | /* confdefs.h. */ | ||
18951 | _ACEOF | ||
18952 | cat confdefs.h >>conftest.$ac_ext | ||
18953 | cat >>conftest.$ac_ext <<_ACEOF | ||
18954 | /* end confdefs.h. */ | ||
18955 | |||
18956 | #include <sys/param.h> | ||
18957 | #include <sys/types.h> | ||
18958 | #ifdef HAVE_SYS_SELECT_H | ||
18959 | #include <sys/select.h> | ||
18960 | #endif | ||
18961 | #ifdef HAVE_SYS_TIME_H | ||
18962 | #include <sys/time.h> | ||
18963 | #endif | ||
18964 | #ifdef HAVE_UNISTD_H | ||
18965 | #include <unistd.h> | ||
18966 | #endif | ||
18967 | |||
18968 | |||
18969 | typedef fd_mask ac__type_new_; | ||
18970 | int | ||
18971 | main () | ||
18972 | { | ||
18973 | if ((ac__type_new_ *) 0) | ||
18974 | return 0; | ||
18975 | if (sizeof (ac__type_new_)) | ||
18976 | return 0; | ||
18977 | ; | ||
18978 | return 0; | ||
18979 | } | ||
18980 | _ACEOF | ||
18981 | rm -f conftest.$ac_objext | ||
18982 | if { (ac_try="$ac_compile" | ||
18983 | case "(($ac_try" in | ||
18984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18985 | *) ac_try_echo=$ac_try;; | ||
18986 | esac | ||
18987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18988 | (eval "$ac_compile") 2>conftest.er1 | ||
18989 | ac_status=$? | ||
18990 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18991 | rm -f conftest.er1 | ||
18992 | cat conftest.err >&5 | ||
18993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18994 | (exit $ac_status); } && { | ||
18995 | test -z "$ac_c_werror_flag" || | ||
18996 | test ! -s conftest.err | ||
18997 | } && test -s conftest.$ac_objext; then | ||
18998 | ac_cv_type_fd_mask=yes | ||
18999 | else | ||
19000 | echo "$as_me: failed program was:" >&5 | ||
19001 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19002 | |||
19003 | ac_cv_type_fd_mask=no | ||
19004 | fi | ||
19005 | |||
19006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19007 | fi | ||
19008 | { echo "$as_me:$LINENO: result: $ac_cv_type_fd_mask" >&5 | ||
19009 | echo "${ECHO_T}$ac_cv_type_fd_mask" >&6; } | ||
19010 | if test $ac_cv_type_fd_mask = yes; then | ||
19011 | |||
19012 | cat >>confdefs.h <<_ACEOF | ||
19013 | #define HAVE_FD_MASK 1 | ||
19014 | _ACEOF | ||
19015 | |||
19016 | |||
19017 | fi | ||
19018 | |||
19019 | |||
19020 | |||
19021 | for ac_func in setresuid | ||
19022 | do | ||
19023 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19024 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
19025 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
19026 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
19027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19028 | else | ||
19029 | cat >conftest.$ac_ext <<_ACEOF | ||
19030 | /* confdefs.h. */ | ||
19031 | _ACEOF | ||
19032 | cat confdefs.h >>conftest.$ac_ext | ||
19033 | cat >>conftest.$ac_ext <<_ACEOF | ||
19034 | /* end confdefs.h. */ | ||
19035 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
19036 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
19037 | #define $ac_func innocuous_$ac_func | ||
19038 | |||
19039 | /* System header to define __stub macros and hopefully few prototypes, | ||
19040 | which can conflict with char $ac_func (); below. | ||
19041 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
19042 | <limits.h> exists even on freestanding compilers. */ | ||
19043 | |||
19044 | #ifdef __STDC__ | ||
19045 | # include <limits.h> | ||
19046 | #else | ||
19047 | # include <assert.h> | ||
19048 | #endif | ||
19049 | |||
19050 | #undef $ac_func | ||
19051 | |||
19052 | /* Override any GCC internal prototype to avoid an error. | ||
19053 | Use char because int might match the return type of a GCC | ||
19054 | builtin and then its argument prototype would still apply. */ | ||
19055 | #ifdef __cplusplus | ||
19056 | extern "C" | ||
19057 | #endif | ||
19058 | char $ac_func (); | ||
19059 | /* The GNU C library defines this for functions which it implements | ||
19060 | to always fail with ENOSYS. Some functions are actually named | ||
19061 | something starting with __ and the normal name is an alias. */ | ||
19062 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
19063 | choke me | ||
19064 | #endif | ||
19065 | |||
19066 | int | ||
19067 | main () | ||
19068 | { | ||
19069 | return $ac_func (); | ||
19070 | ; | ||
19071 | return 0; | ||
19072 | } | ||
19073 | _ACEOF | ||
19074 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19075 | if { (ac_try="$ac_link" | ||
19076 | case "(($ac_try" in | ||
19077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19078 | *) ac_try_echo=$ac_try;; | ||
19079 | esac | ||
19080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19081 | (eval "$ac_link") 2>conftest.er1 | ||
19082 | ac_status=$? | ||
19083 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19084 | rm -f conftest.er1 | ||
19085 | cat conftest.err >&5 | ||
19086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19087 | (exit $ac_status); } && { | ||
19088 | test -z "$ac_c_werror_flag" || | ||
19089 | test ! -s conftest.err | ||
19090 | } && test -s conftest$ac_exeext && | ||
19091 | $as_test_x conftest$ac_exeext; then | ||
19092 | eval "$as_ac_var=yes" | ||
19093 | else | ||
19094 | echo "$as_me: failed program was:" >&5 | ||
19095 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19096 | |||
19097 | eval "$as_ac_var=no" | ||
19098 | fi | ||
19099 | |||
19100 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19101 | conftest$ac_exeext conftest.$ac_ext | ||
19102 | fi | ||
19103 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
19104 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
19105 | echo "${ECHO_T}$ac_res" >&6; } | ||
19106 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
19107 | cat >>confdefs.h <<_ACEOF | ||
19108 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
19109 | _ACEOF | ||
19110 | |||
19111 | { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5 | ||
19112 | echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; } | ||
19113 | if test "$cross_compiling" = yes; then | ||
19114 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
19115 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
19116 | |||
19117 | else | ||
19118 | cat >conftest.$ac_ext <<_ACEOF | ||
19119 | /* confdefs.h. */ | ||
19120 | _ACEOF | ||
19121 | cat confdefs.h >>conftest.$ac_ext | ||
19122 | cat >>conftest.$ac_ext <<_ACEOF | ||
19123 | /* end confdefs.h. */ | ||
19124 | |||
19125 | #include <stdlib.h> | ||
19126 | #include <errno.h> | ||
19127 | |||
19128 | int | ||
19129 | main () | ||
19130 | { | ||
19131 | |||
19132 | errno=0; | ||
19133 | setresuid(0,0,0); | ||
19134 | if (errno==ENOSYS) | ||
19135 | exit(1); | ||
19136 | else | ||
19137 | exit(0); | ||
19138 | |||
19139 | ; | ||
19140 | return 0; | ||
19141 | } | ||
19142 | _ACEOF | ||
19143 | rm -f conftest$ac_exeext | ||
19144 | if { (ac_try="$ac_link" | ||
19145 | case "(($ac_try" in | ||
19146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19147 | *) ac_try_echo=$ac_try;; | ||
19148 | esac | ||
19149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19150 | (eval "$ac_link") 2>&5 | ||
19151 | ac_status=$? | ||
19152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19153 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19154 | { (case "(($ac_try" in | ||
19155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19156 | *) ac_try_echo=$ac_try;; | ||
19157 | esac | ||
19158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19159 | (eval "$ac_try") 2>&5 | ||
19160 | ac_status=$? | ||
19161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19162 | (exit $ac_status); }; }; then | ||
19163 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
19164 | echo "${ECHO_T}yes" >&6; } | ||
19165 | else | ||
19166 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19167 | echo "$as_me: failed program was:" >&5 | ||
19168 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19169 | |||
19170 | ( exit $ac_status ) | ||
19171 | |||
19172 | cat >>confdefs.h <<\_ACEOF | ||
19173 | #define BROKEN_SETRESUID 1 | ||
19174 | _ACEOF | ||
19175 | |||
19176 | { echo "$as_me:$LINENO: result: not implemented" >&5 | ||
19177 | echo "${ECHO_T}not implemented" >&6; } | ||
19178 | fi | ||
19179 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19180 | fi | ||
19181 | |||
19182 | |||
19183 | |||
19184 | fi | ||
19185 | done | ||
19186 | |||
19187 | |||
19188 | |||
19189 | for ac_func in setresgid | ||
19190 | do | ||
19191 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19192 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
19193 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
19194 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
19195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19196 | else | ||
19197 | cat >conftest.$ac_ext <<_ACEOF | ||
19198 | /* confdefs.h. */ | ||
19199 | _ACEOF | ||
19200 | cat confdefs.h >>conftest.$ac_ext | ||
19201 | cat >>conftest.$ac_ext <<_ACEOF | ||
19202 | /* end confdefs.h. */ | ||
19203 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
19204 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
19205 | #define $ac_func innocuous_$ac_func | ||
19206 | |||
19207 | /* System header to define __stub macros and hopefully few prototypes, | ||
19208 | which can conflict with char $ac_func (); below. | ||
19209 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
19210 | <limits.h> exists even on freestanding compilers. */ | ||
19211 | |||
19212 | #ifdef __STDC__ | ||
19213 | # include <limits.h> | ||
19214 | #else | ||
19215 | # include <assert.h> | ||
19216 | #endif | ||
19217 | |||
19218 | #undef $ac_func | ||
19219 | |||
19220 | /* Override any GCC internal prototype to avoid an error. | ||
19221 | Use char because int might match the return type of a GCC | ||
19222 | builtin and then its argument prototype would still apply. */ | ||
19223 | #ifdef __cplusplus | ||
19224 | extern "C" | ||
19225 | #endif | ||
19226 | char $ac_func (); | ||
19227 | /* The GNU C library defines this for functions which it implements | ||
19228 | to always fail with ENOSYS. Some functions are actually named | ||
19229 | something starting with __ and the normal name is an alias. */ | ||
19230 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
19231 | choke me | ||
19232 | #endif | ||
19233 | |||
19234 | int | ||
19235 | main () | ||
19236 | { | ||
19237 | return $ac_func (); | ||
19238 | ; | ||
19239 | return 0; | ||
19240 | } | ||
19241 | _ACEOF | ||
19242 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19243 | if { (ac_try="$ac_link" | ||
19244 | case "(($ac_try" in | ||
19245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19246 | *) ac_try_echo=$ac_try;; | ||
19247 | esac | ||
19248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19249 | (eval "$ac_link") 2>conftest.er1 | ||
19250 | ac_status=$? | ||
19251 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19252 | rm -f conftest.er1 | ||
19253 | cat conftest.err >&5 | ||
19254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19255 | (exit $ac_status); } && { | ||
19256 | test -z "$ac_c_werror_flag" || | ||
19257 | test ! -s conftest.err | ||
19258 | } && test -s conftest$ac_exeext && | ||
19259 | $as_test_x conftest$ac_exeext; then | ||
19260 | eval "$as_ac_var=yes" | ||
19261 | else | ||
19262 | echo "$as_me: failed program was:" >&5 | ||
19263 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19264 | |||
19265 | eval "$as_ac_var=no" | ||
19266 | fi | ||
19267 | |||
19268 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19269 | conftest$ac_exeext conftest.$ac_ext | ||
19270 | fi | ||
19271 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
19272 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
19273 | echo "${ECHO_T}$ac_res" >&6; } | ||
19274 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
19275 | cat >>confdefs.h <<_ACEOF | ||
19276 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
19277 | _ACEOF | ||
19278 | |||
19279 | { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5 | ||
19280 | echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; } | ||
19281 | if test "$cross_compiling" = yes; then | ||
19282 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
19283 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
19284 | |||
19285 | else | ||
19286 | cat >conftest.$ac_ext <<_ACEOF | ||
19287 | /* confdefs.h. */ | ||
19288 | _ACEOF | ||
19289 | cat confdefs.h >>conftest.$ac_ext | ||
19290 | cat >>conftest.$ac_ext <<_ACEOF | ||
19291 | /* end confdefs.h. */ | ||
19292 | |||
19293 | #include <stdlib.h> | ||
19294 | #include <errno.h> | ||
19295 | |||
19296 | int | ||
19297 | main () | ||
19298 | { | ||
19299 | |||
19300 | errno=0; | ||
19301 | setresgid(0,0,0); | ||
19302 | if (errno==ENOSYS) | ||
19303 | exit(1); | ||
19304 | else | ||
19305 | exit(0); | ||
19306 | |||
19307 | ; | ||
19308 | return 0; | ||
19309 | } | ||
19310 | _ACEOF | ||
19311 | rm -f conftest$ac_exeext | ||
19312 | if { (ac_try="$ac_link" | ||
19313 | case "(($ac_try" in | ||
19314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19315 | *) ac_try_echo=$ac_try;; | ||
19316 | esac | ||
19317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19318 | (eval "$ac_link") 2>&5 | ||
19319 | ac_status=$? | ||
19320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19321 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19322 | { (case "(($ac_try" in | ||
19323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19324 | *) ac_try_echo=$ac_try;; | ||
19325 | esac | ||
19326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19327 | (eval "$ac_try") 2>&5 | ||
19328 | ac_status=$? | ||
19329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19330 | (exit $ac_status); }; }; then | ||
19331 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
19332 | echo "${ECHO_T}yes" >&6; } | ||
19333 | else | ||
19334 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19335 | echo "$as_me: failed program was:" >&5 | ||
19336 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19337 | |||
19338 | ( exit $ac_status ) | ||
19339 | |||
19340 | cat >>confdefs.h <<\_ACEOF | ||
19341 | #define BROKEN_SETRESGID 1 | ||
19342 | _ACEOF | ||
19343 | |||
19344 | { echo "$as_me:$LINENO: result: not implemented" >&5 | ||
19345 | echo "${ECHO_T}not implemented" >&6; } | ||
19346 | fi | ||
19347 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19348 | fi | ||
19349 | |||
19350 | |||
19351 | |||
19352 | fi | ||
19353 | done | ||
19354 | |||
19355 | |||
19356 | |||
19357 | for ac_func in realpath | ||
19358 | do | ||
19359 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19360 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
19361 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
19362 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
19363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19364 | else | ||
19365 | cat >conftest.$ac_ext <<_ACEOF | ||
19366 | /* confdefs.h. */ | ||
19367 | _ACEOF | ||
19368 | cat confdefs.h >>conftest.$ac_ext | ||
19369 | cat >>conftest.$ac_ext <<_ACEOF | ||
19370 | /* end confdefs.h. */ | ||
19371 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
19372 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
19373 | #define $ac_func innocuous_$ac_func | ||
19374 | |||
19375 | /* System header to define __stub macros and hopefully few prototypes, | ||
19376 | which can conflict with char $ac_func (); below. | ||
19377 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
19378 | <limits.h> exists even on freestanding compilers. */ | ||
19379 | |||
19380 | #ifdef __STDC__ | ||
19381 | # include <limits.h> | ||
19382 | #else | ||
19383 | # include <assert.h> | ||
19384 | #endif | ||
19385 | |||
19386 | #undef $ac_func | ||
19387 | |||
19388 | /* Override any GCC internal prototype to avoid an error. | ||
19389 | Use char because int might match the return type of a GCC | ||
19390 | builtin and then its argument prototype would still apply. */ | ||
19391 | #ifdef __cplusplus | ||
19392 | extern "C" | ||
19393 | #endif | ||
19394 | char $ac_func (); | ||
19395 | /* The GNU C library defines this for functions which it implements | ||
19396 | to always fail with ENOSYS. Some functions are actually named | ||
19397 | something starting with __ and the normal name is an alias. */ | ||
19398 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
19399 | choke me | ||
19400 | #endif | ||
19401 | |||
19402 | int | ||
19403 | main () | ||
19404 | { | ||
19405 | return $ac_func (); | ||
19406 | ; | ||
19407 | return 0; | ||
19408 | } | ||
19409 | _ACEOF | ||
19410 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19411 | if { (ac_try="$ac_link" | ||
19412 | case "(($ac_try" in | ||
19413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19414 | *) ac_try_echo=$ac_try;; | ||
19415 | esac | ||
19416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19417 | (eval "$ac_link") 2>conftest.er1 | ||
19418 | ac_status=$? | ||
19419 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19420 | rm -f conftest.er1 | ||
19421 | cat conftest.err >&5 | ||
19422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19423 | (exit $ac_status); } && { | ||
19424 | test -z "$ac_c_werror_flag" || | ||
19425 | test ! -s conftest.err | ||
19426 | } && test -s conftest$ac_exeext && | ||
19427 | $as_test_x conftest$ac_exeext; then | ||
19428 | eval "$as_ac_var=yes" | ||
19429 | else | ||
19430 | echo "$as_me: failed program was:" >&5 | ||
19431 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19432 | |||
19433 | eval "$as_ac_var=no" | ||
19434 | fi | ||
19435 | |||
19436 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19437 | conftest$ac_exeext conftest.$ac_ext | ||
19438 | fi | ||
19439 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
19440 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
19441 | echo "${ECHO_T}$ac_res" >&6; } | ||
19442 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
19443 | cat >>confdefs.h <<_ACEOF | ||
19444 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
19445 | _ACEOF | ||
19446 | |||
19447 | { echo "$as_me:$LINENO: checking if realpath works with non-existent files" >&5 | ||
19448 | echo $ECHO_N "checking if realpath works with non-existent files... $ECHO_C" >&6; } | ||
19449 | if test "$cross_compiling" = yes; then | ||
19450 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming working" >&5 | ||
19451 | echo "$as_me: WARNING: cross compiling: assuming working" >&2;} | ||
19452 | |||
19453 | else | ||
19454 | cat >conftest.$ac_ext <<_ACEOF | ||
19455 | /* confdefs.h. */ | ||
19456 | _ACEOF | ||
19457 | cat confdefs.h >>conftest.$ac_ext | ||
19458 | cat >>conftest.$ac_ext <<_ACEOF | ||
19459 | /* end confdefs.h. */ | ||
19460 | |||
19461 | #include <limits.h> | ||
19462 | #include <stdlib.h> | ||
19463 | #include <errno.h> | ||
19464 | |||
19465 | int | ||
19466 | main () | ||
19467 | { | ||
19468 | |||
19469 | char buf[PATH_MAX]; | ||
19470 | if (realpath("/opensshnonexistentfilename1234", buf) == NULL) | ||
19471 | if (errno == ENOENT) | ||
19472 | exit(1); | ||
19473 | exit(0); | ||
19474 | |||
19475 | ; | ||
19476 | return 0; | ||
19477 | } | ||
19478 | _ACEOF | ||
19479 | rm -f conftest$ac_exeext | ||
19480 | if { (ac_try="$ac_link" | ||
19481 | case "(($ac_try" in | ||
19482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19483 | *) ac_try_echo=$ac_try;; | ||
19484 | esac | ||
19485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19486 | (eval "$ac_link") 2>&5 | ||
19487 | ac_status=$? | ||
19488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19489 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19490 | { (case "(($ac_try" in | ||
19491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19492 | *) ac_try_echo=$ac_try;; | ||
19493 | esac | ||
19494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19495 | (eval "$ac_try") 2>&5 | ||
19496 | ac_status=$? | ||
19497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19498 | (exit $ac_status); }; }; then | ||
19499 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
19500 | echo "${ECHO_T}yes" >&6; } | ||
19501 | else | ||
19502 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19503 | echo "$as_me: failed program was:" >&5 | ||
19504 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19505 | |||
19506 | ( exit $ac_status ) | ||
19507 | |||
19508 | cat >>confdefs.h <<\_ACEOF | ||
19509 | #define BROKEN_REALPATH 1 | ||
19510 | _ACEOF | ||
19511 | |||
19512 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19513 | echo "${ECHO_T}no" >&6; } | ||
19514 | fi | ||
19515 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19516 | fi | ||
19517 | |||
19518 | |||
19519 | |||
19520 | fi | ||
19521 | done | ||
19522 | |||
19523 | |||
19524 | |||
19525 | |||
19526 | for ac_func in gettimeofday time | ||
19527 | do | ||
19528 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19529 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
19530 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
19531 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
19532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19533 | else | ||
19534 | cat >conftest.$ac_ext <<_ACEOF | ||
19535 | /* confdefs.h. */ | ||
19536 | _ACEOF | ||
19537 | cat confdefs.h >>conftest.$ac_ext | ||
19538 | cat >>conftest.$ac_ext <<_ACEOF | ||
19539 | /* end confdefs.h. */ | ||
19540 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
19541 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
19542 | #define $ac_func innocuous_$ac_func | ||
19543 | |||
19544 | /* System header to define __stub macros and hopefully few prototypes, | ||
19545 | which can conflict with char $ac_func (); below. | ||
19546 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
19547 | <limits.h> exists even on freestanding compilers. */ | ||
19548 | |||
19549 | #ifdef __STDC__ | ||
19550 | # include <limits.h> | ||
19551 | #else | ||
19552 | # include <assert.h> | ||
19553 | #endif | ||
19554 | |||
19555 | #undef $ac_func | ||
19556 | |||
19557 | /* Override any GCC internal prototype to avoid an error. | ||
19558 | Use char because int might match the return type of a GCC | ||
19559 | builtin and then its argument prototype would still apply. */ | ||
19560 | #ifdef __cplusplus | ||
19561 | extern "C" | ||
19562 | #endif | ||
19563 | char $ac_func (); | ||
19564 | /* The GNU C library defines this for functions which it implements | ||
19565 | to always fail with ENOSYS. Some functions are actually named | ||
19566 | something starting with __ and the normal name is an alias. */ | ||
19567 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
19568 | choke me | ||
19569 | #endif | ||
19570 | |||
19571 | int | ||
19572 | main () | ||
19573 | { | ||
19574 | return $ac_func (); | ||
19575 | ; | ||
19576 | return 0; | ||
19577 | } | ||
19578 | _ACEOF | ||
19579 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19580 | if { (ac_try="$ac_link" | ||
19581 | case "(($ac_try" in | ||
19582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19583 | *) ac_try_echo=$ac_try;; | ||
19584 | esac | ||
19585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19586 | (eval "$ac_link") 2>conftest.er1 | ||
19587 | ac_status=$? | ||
19588 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19589 | rm -f conftest.er1 | ||
19590 | cat conftest.err >&5 | ||
19591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19592 | (exit $ac_status); } && { | ||
19593 | test -z "$ac_c_werror_flag" || | ||
19594 | test ! -s conftest.err | ||
19595 | } && test -s conftest$ac_exeext && | ||
19596 | $as_test_x conftest$ac_exeext; then | ||
19597 | eval "$as_ac_var=yes" | ||
19598 | else | ||
19599 | echo "$as_me: failed program was:" >&5 | ||
19600 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19601 | |||
19602 | eval "$as_ac_var=no" | ||
19603 | fi | ||
19604 | |||
19605 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19606 | conftest$ac_exeext conftest.$ac_ext | ||
19607 | fi | ||
19608 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
19609 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
19610 | echo "${ECHO_T}$ac_res" >&6; } | ||
19611 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
19612 | cat >>confdefs.h <<_ACEOF | ||
19613 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
19614 | _ACEOF | ||
19615 | |||
19616 | fi | ||
19617 | done | ||
19618 | |||
19619 | |||
19620 | |||
19621 | |||
19622 | |||
19623 | |||
19624 | |||
19625 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
19626 | do | ||
19627 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19628 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
19629 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
19630 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
19631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19632 | else | ||
19633 | cat >conftest.$ac_ext <<_ACEOF | ||
19634 | /* confdefs.h. */ | ||
19635 | _ACEOF | ||
19636 | cat confdefs.h >>conftest.$ac_ext | ||
19637 | cat >>conftest.$ac_ext <<_ACEOF | ||
19638 | /* end confdefs.h. */ | ||
19639 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
19640 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
19641 | #define $ac_func innocuous_$ac_func | ||
19642 | |||
19643 | /* System header to define __stub macros and hopefully few prototypes, | ||
19644 | which can conflict with char $ac_func (); below. | ||
19645 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
19646 | <limits.h> exists even on freestanding compilers. */ | ||
19647 | |||
19648 | #ifdef __STDC__ | ||
19649 | # include <limits.h> | ||
19650 | #else | ||
19651 | # include <assert.h> | ||
19652 | #endif | ||
19653 | |||
19654 | #undef $ac_func | ||
19655 | |||
19656 | /* Override any GCC internal prototype to avoid an error. | ||
19657 | Use char because int might match the return type of a GCC | ||
19658 | builtin and then its argument prototype would still apply. */ | ||
19659 | #ifdef __cplusplus | ||
19660 | extern "C" | ||
19661 | #endif | ||
19662 | char $ac_func (); | ||
19663 | /* The GNU C library defines this for functions which it implements | ||
19664 | to always fail with ENOSYS. Some functions are actually named | ||
19665 | something starting with __ and the normal name is an alias. */ | ||
19666 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
19667 | choke me | ||
19668 | #endif | ||
19669 | |||
19670 | int | ||
19671 | main () | ||
19672 | { | ||
19673 | return $ac_func (); | ||
19674 | ; | ||
19675 | return 0; | ||
19676 | } | ||
19677 | _ACEOF | ||
19678 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19679 | if { (ac_try="$ac_link" | ||
19680 | case "(($ac_try" in | ||
19681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19682 | *) ac_try_echo=$ac_try;; | ||
19683 | esac | ||
19684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19685 | (eval "$ac_link") 2>conftest.er1 | ||
19686 | ac_status=$? | ||
19687 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19688 | rm -f conftest.er1 | ||
19689 | cat conftest.err >&5 | ||
19690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19691 | (exit $ac_status); } && { | ||
19692 | test -z "$ac_c_werror_flag" || | ||
19693 | test ! -s conftest.err | ||
19694 | } && test -s conftest$ac_exeext && | ||
19695 | $as_test_x conftest$ac_exeext; then | ||
19696 | eval "$as_ac_var=yes" | ||
19697 | else | ||
19698 | echo "$as_me: failed program was:" >&5 | ||
19699 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19700 | |||
19701 | eval "$as_ac_var=no" | ||
19702 | fi | ||
19703 | |||
19704 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19705 | conftest$ac_exeext conftest.$ac_ext | ||
19706 | fi | ||
19707 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
19708 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
19709 | echo "${ECHO_T}$ac_res" >&6; } | ||
19710 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
19711 | cat >>confdefs.h <<_ACEOF | ||
19712 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
19713 | _ACEOF | ||
19714 | |||
19715 | fi | ||
19716 | done | ||
19717 | |||
19718 | |||
19719 | for ac_func in utmpname | ||
19720 | do | ||
19721 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19722 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
19723 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
19724 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
19725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19726 | else | ||
19727 | cat >conftest.$ac_ext <<_ACEOF | ||
19728 | /* confdefs.h. */ | ||
19729 | _ACEOF | ||
19730 | cat confdefs.h >>conftest.$ac_ext | ||
19731 | cat >>conftest.$ac_ext <<_ACEOF | ||
19732 | /* end confdefs.h. */ | ||
19733 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
19734 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
19735 | #define $ac_func innocuous_$ac_func | ||
19736 | |||
19737 | /* System header to define __stub macros and hopefully few prototypes, | ||
19738 | which can conflict with char $ac_func (); below. | ||
19739 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
19740 | <limits.h> exists even on freestanding compilers. */ | ||
19741 | |||
19742 | #ifdef __STDC__ | ||
19743 | # include <limits.h> | ||
19744 | #else | ||
19745 | # include <assert.h> | ||
19746 | #endif | ||
19747 | |||
19748 | #undef $ac_func | ||
19749 | |||
19750 | /* Override any GCC internal prototype to avoid an error. | ||
19751 | Use char because int might match the return type of a GCC | ||
19752 | builtin and then its argument prototype would still apply. */ | ||
19753 | #ifdef __cplusplus | ||
19754 | extern "C" | ||
19755 | #endif | ||
19756 | char $ac_func (); | ||
19757 | /* The GNU C library defines this for functions which it implements | ||
19758 | to always fail with ENOSYS. Some functions are actually named | ||
19759 | something starting with __ and the normal name is an alias. */ | ||
19760 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
19761 | choke me | ||
19762 | #endif | ||
19763 | |||
19764 | int | ||
19765 | main () | ||
19766 | { | ||
19767 | return $ac_func (); | ||
19768 | ; | ||
19769 | return 0; | ||
19770 | } | ||
19771 | _ACEOF | ||
19772 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19773 | if { (ac_try="$ac_link" | ||
19774 | case "(($ac_try" in | ||
19775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19776 | *) ac_try_echo=$ac_try;; | ||
19777 | esac | ||
19778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19779 | (eval "$ac_link") 2>conftest.er1 | ||
19780 | ac_status=$? | ||
19781 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19782 | rm -f conftest.er1 | ||
19783 | cat conftest.err >&5 | ||
19784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19785 | (exit $ac_status); } && { | ||
19786 | test -z "$ac_c_werror_flag" || | ||
19787 | test ! -s conftest.err | ||
19788 | } && test -s conftest$ac_exeext && | ||
19789 | $as_test_x conftest$ac_exeext; then | ||
19790 | eval "$as_ac_var=yes" | ||
19791 | else | ||
19792 | echo "$as_me: failed program was:" >&5 | ||
19793 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19794 | |||
19795 | eval "$as_ac_var=no" | ||
19796 | fi | ||
19797 | |||
19798 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19799 | conftest$ac_exeext conftest.$ac_ext | ||
19800 | fi | ||
19801 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
19802 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
19803 | echo "${ECHO_T}$ac_res" >&6; } | ||
19804 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
19805 | cat >>confdefs.h <<_ACEOF | ||
19806 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
19807 | _ACEOF | ||
19808 | |||
19809 | fi | ||
19810 | done | ||
19811 | |||
19812 | |||
19813 | |||
19814 | |||
19815 | |||
19816 | |||
19817 | |||
19818 | for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline | ||
19819 | do | ||
19820 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19821 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
19822 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
19823 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
19824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19825 | else | ||
19826 | cat >conftest.$ac_ext <<_ACEOF | ||
19827 | /* confdefs.h. */ | ||
19828 | _ACEOF | ||
19829 | cat confdefs.h >>conftest.$ac_ext | ||
19830 | cat >>conftest.$ac_ext <<_ACEOF | ||
19831 | /* end confdefs.h. */ | ||
19832 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
19833 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
19834 | #define $ac_func innocuous_$ac_func | ||
19835 | |||
19836 | /* System header to define __stub macros and hopefully few prototypes, | ||
19837 | which can conflict with char $ac_func (); below. | ||
19838 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
19839 | <limits.h> exists even on freestanding compilers. */ | ||
19840 | |||
19841 | #ifdef __STDC__ | ||
19842 | # include <limits.h> | ||
19843 | #else | ||
19844 | # include <assert.h> | ||
19845 | #endif | ||
19846 | |||
19847 | #undef $ac_func | ||
19848 | |||
19849 | /* Override any GCC internal prototype to avoid an error. | ||
19850 | Use char because int might match the return type of a GCC | ||
19851 | builtin and then its argument prototype would still apply. */ | ||
19852 | #ifdef __cplusplus | ||
19853 | extern "C" | ||
19854 | #endif | ||
19855 | char $ac_func (); | ||
19856 | /* The GNU C library defines this for functions which it implements | ||
19857 | to always fail with ENOSYS. Some functions are actually named | ||
19858 | something starting with __ and the normal name is an alias. */ | ||
19859 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
19860 | choke me | ||
19861 | #endif | ||
19862 | |||
19863 | int | ||
19864 | main () | ||
19865 | { | ||
19866 | return $ac_func (); | ||
19867 | ; | ||
19868 | return 0; | ||
19869 | } | ||
19870 | _ACEOF | ||
19871 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19872 | if { (ac_try="$ac_link" | ||
19873 | case "(($ac_try" in | ||
19874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19875 | *) ac_try_echo=$ac_try;; | ||
19876 | esac | ||
19877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19878 | (eval "$ac_link") 2>conftest.er1 | ||
19879 | ac_status=$? | ||
19880 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19881 | rm -f conftest.er1 | ||
19882 | cat conftest.err >&5 | ||
19883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19884 | (exit $ac_status); } && { | ||
19885 | test -z "$ac_c_werror_flag" || | ||
19886 | test ! -s conftest.err | ||
19887 | } && test -s conftest$ac_exeext && | ||
19888 | $as_test_x conftest$ac_exeext; then | ||
19889 | eval "$as_ac_var=yes" | ||
19890 | else | ||
19891 | echo "$as_me: failed program was:" >&5 | ||
19892 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19893 | |||
19894 | eval "$as_ac_var=no" | ||
19895 | fi | ||
19896 | |||
19897 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19898 | conftest$ac_exeext conftest.$ac_ext | ||
19899 | fi | ||
19900 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
19901 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
19902 | echo "${ECHO_T}$ac_res" >&6; } | ||
19903 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
19904 | cat >>confdefs.h <<_ACEOF | ||
19905 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
19906 | _ACEOF | ||
19907 | |||
19908 | fi | ||
19909 | done | ||
19910 | |||
19911 | |||
19912 | |||
19913 | |||
19914 | for ac_func in setutxdb setutxent utmpxname | ||
19915 | do | ||
19916 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19917 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
19918 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
19919 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
19920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19921 | else | ||
19922 | cat >conftest.$ac_ext <<_ACEOF | ||
19923 | /* confdefs.h. */ | ||
19924 | _ACEOF | ||
19925 | cat confdefs.h >>conftest.$ac_ext | ||
19926 | cat >>conftest.$ac_ext <<_ACEOF | ||
19927 | /* end confdefs.h. */ | ||
19928 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
19929 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
19930 | #define $ac_func innocuous_$ac_func | ||
19931 | |||
19932 | /* System header to define __stub macros and hopefully few prototypes, | ||
19933 | which can conflict with char $ac_func (); below. | ||
19934 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
19935 | <limits.h> exists even on freestanding compilers. */ | ||
19936 | |||
19937 | #ifdef __STDC__ | ||
19938 | # include <limits.h> | ||
19939 | #else | ||
19940 | # include <assert.h> | ||
19941 | #endif | ||
19942 | |||
19943 | #undef $ac_func | ||
19944 | |||
19945 | /* Override any GCC internal prototype to avoid an error. | ||
19946 | Use char because int might match the return type of a GCC | ||
19947 | builtin and then its argument prototype would still apply. */ | ||
19948 | #ifdef __cplusplus | ||
19949 | extern "C" | ||
19950 | #endif | ||
19951 | char $ac_func (); | ||
19952 | /* The GNU C library defines this for functions which it implements | ||
19953 | to always fail with ENOSYS. Some functions are actually named | ||
19954 | something starting with __ and the normal name is an alias. */ | ||
19955 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
19956 | choke me | ||
19957 | #endif | ||
19958 | |||
19959 | int | ||
19960 | main () | ||
19961 | { | ||
19962 | return $ac_func (); | ||
19963 | ; | ||
19964 | return 0; | ||
19965 | } | ||
19966 | _ACEOF | ||
19967 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19968 | if { (ac_try="$ac_link" | ||
19969 | case "(($ac_try" in | ||
19970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19971 | *) ac_try_echo=$ac_try;; | ||
19972 | esac | ||
19973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19974 | (eval "$ac_link") 2>conftest.er1 | ||
19975 | ac_status=$? | ||
19976 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19977 | rm -f conftest.er1 | ||
19978 | cat conftest.err >&5 | ||
19979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19980 | (exit $ac_status); } && { | ||
19981 | test -z "$ac_c_werror_flag" || | ||
19982 | test ! -s conftest.err | ||
19983 | } && test -s conftest$ac_exeext && | ||
19984 | $as_test_x conftest$ac_exeext; then | ||
19985 | eval "$as_ac_var=yes" | ||
19986 | else | ||
19987 | echo "$as_me: failed program was:" >&5 | ||
19988 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19989 | |||
19990 | eval "$as_ac_var=no" | ||
19991 | fi | ||
19992 | |||
19993 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19994 | conftest$ac_exeext conftest.$ac_ext | ||
19995 | fi | ||
19996 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
19997 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
19998 | echo "${ECHO_T}$ac_res" >&6; } | ||
19999 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
20000 | cat >>confdefs.h <<_ACEOF | ||
20001 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
20002 | _ACEOF | ||
20003 | |||
20004 | fi | ||
20005 | done | ||
20006 | |||
20007 | |||
20008 | for ac_func in getlastlogxbyname | ||
20009 | do | ||
20010 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
20011 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
20012 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
20013 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
20014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20015 | else | ||
20016 | cat >conftest.$ac_ext <<_ACEOF | ||
20017 | /* confdefs.h. */ | ||
20018 | _ACEOF | ||
20019 | cat confdefs.h >>conftest.$ac_ext | ||
20020 | cat >>conftest.$ac_ext <<_ACEOF | ||
20021 | /* end confdefs.h. */ | ||
20022 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
20023 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
20024 | #define $ac_func innocuous_$ac_func | ||
20025 | |||
20026 | /* System header to define __stub macros and hopefully few prototypes, | ||
20027 | which can conflict with char $ac_func (); below. | ||
20028 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
20029 | <limits.h> exists even on freestanding compilers. */ | ||
20030 | |||
20031 | #ifdef __STDC__ | ||
20032 | # include <limits.h> | ||
20033 | #else | ||
20034 | # include <assert.h> | ||
20035 | #endif | ||
20036 | |||
20037 | #undef $ac_func | ||
20038 | |||
20039 | /* Override any GCC internal prototype to avoid an error. | ||
20040 | Use char because int might match the return type of a GCC | ||
20041 | builtin and then its argument prototype would still apply. */ | ||
20042 | #ifdef __cplusplus | ||
20043 | extern "C" | ||
20044 | #endif | ||
20045 | char $ac_func (); | ||
20046 | /* The GNU C library defines this for functions which it implements | ||
20047 | to always fail with ENOSYS. Some functions are actually named | ||
20048 | something starting with __ and the normal name is an alias. */ | ||
20049 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
20050 | choke me | ||
20051 | #endif | ||
20052 | |||
20053 | int | ||
20054 | main () | ||
20055 | { | ||
20056 | return $ac_func (); | ||
20057 | ; | ||
20058 | return 0; | ||
20059 | } | ||
20060 | _ACEOF | ||
20061 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20062 | if { (ac_try="$ac_link" | ||
20063 | case "(($ac_try" in | ||
20064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20065 | *) ac_try_echo=$ac_try;; | ||
20066 | esac | ||
20067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20068 | (eval "$ac_link") 2>conftest.er1 | ||
20069 | ac_status=$? | ||
20070 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20071 | rm -f conftest.er1 | ||
20072 | cat conftest.err >&5 | ||
20073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20074 | (exit $ac_status); } && { | ||
20075 | test -z "$ac_c_werror_flag" || | ||
20076 | test ! -s conftest.err | ||
20077 | } && test -s conftest$ac_exeext && | ||
20078 | $as_test_x conftest$ac_exeext; then | ||
20079 | eval "$as_ac_var=yes" | ||
20080 | else | ||
20081 | echo "$as_me: failed program was:" >&5 | ||
20082 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20083 | |||
20084 | eval "$as_ac_var=no" | ||
20085 | fi | ||
20086 | |||
20087 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
20088 | conftest$ac_exeext conftest.$ac_ext | ||
20089 | fi | ||
20090 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
20091 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
20092 | echo "${ECHO_T}$ac_res" >&6; } | ||
20093 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
20094 | cat >>confdefs.h <<_ACEOF | ||
20095 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
20096 | _ACEOF | ||
20097 | |||
20098 | fi | ||
20099 | done | ||
20100 | |||
20101 | |||
20102 | { echo "$as_me:$LINENO: checking for daemon" >&5 | ||
20103 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6; } | ||
20104 | if test "${ac_cv_func_daemon+set}" = set; then | ||
20105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20106 | else | ||
20107 | cat >conftest.$ac_ext <<_ACEOF | ||
20108 | /* confdefs.h. */ | ||
20109 | _ACEOF | ||
20110 | cat confdefs.h >>conftest.$ac_ext | ||
20111 | cat >>conftest.$ac_ext <<_ACEOF | ||
20112 | /* end confdefs.h. */ | ||
20113 | /* Define daemon to an innocuous variant, in case <limits.h> declares daemon. | ||
20114 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
20115 | #define daemon innocuous_daemon | ||
20116 | |||
20117 | /* System header to define __stub macros and hopefully few prototypes, | ||
20118 | which can conflict with char daemon (); below. | ||
20119 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
20120 | <limits.h> exists even on freestanding compilers. */ | ||
20121 | |||
20122 | #ifdef __STDC__ | ||
20123 | # include <limits.h> | ||
20124 | #else | ||
20125 | # include <assert.h> | ||
20126 | #endif | ||
20127 | |||
20128 | #undef daemon | ||
20129 | |||
20130 | /* Override any GCC internal prototype to avoid an error. | ||
20131 | Use char because int might match the return type of a GCC | ||
20132 | builtin and then its argument prototype would still apply. */ | ||
20133 | #ifdef __cplusplus | ||
20134 | extern "C" | ||
20135 | #endif | ||
20136 | char daemon (); | ||
20137 | /* The GNU C library defines this for functions which it implements | ||
20138 | to always fail with ENOSYS. Some functions are actually named | ||
20139 | something starting with __ and the normal name is an alias. */ | ||
20140 | #if defined __stub_daemon || defined __stub___daemon | ||
20141 | choke me | ||
20142 | #endif | ||
20143 | |||
20144 | int | ||
20145 | main () | ||
20146 | { | ||
20147 | return daemon (); | ||
20148 | ; | ||
20149 | return 0; | ||
20150 | } | ||
20151 | _ACEOF | ||
20152 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20153 | if { (ac_try="$ac_link" | ||
20154 | case "(($ac_try" in | ||
20155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20156 | *) ac_try_echo=$ac_try;; | ||
20157 | esac | ||
20158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20159 | (eval "$ac_link") 2>conftest.er1 | ||
20160 | ac_status=$? | ||
20161 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20162 | rm -f conftest.er1 | ||
20163 | cat conftest.err >&5 | ||
20164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20165 | (exit $ac_status); } && { | ||
20166 | test -z "$ac_c_werror_flag" || | ||
20167 | test ! -s conftest.err | ||
20168 | } && test -s conftest$ac_exeext && | ||
20169 | $as_test_x conftest$ac_exeext; then | ||
20170 | ac_cv_func_daemon=yes | ||
20171 | else | ||
20172 | echo "$as_me: failed program was:" >&5 | ||
20173 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20174 | |||
20175 | ac_cv_func_daemon=no | ||
20176 | fi | ||
20177 | |||
20178 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
20179 | conftest$ac_exeext conftest.$ac_ext | ||
20180 | fi | ||
20181 | { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | ||
20182 | echo "${ECHO_T}$ac_cv_func_daemon" >&6; } | ||
20183 | if test $ac_cv_func_daemon = yes; then | ||
20184 | |||
20185 | cat >>confdefs.h <<\_ACEOF | ||
20186 | #define HAVE_DAEMON 1 | ||
20187 | _ACEOF | ||
20188 | |||
20189 | else | ||
20190 | { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | ||
20191 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; } | ||
20192 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
20193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20194 | else | ||
20195 | ac_check_lib_save_LIBS=$LIBS | ||
20196 | LIBS="-lbsd $LIBS" | ||
20197 | cat >conftest.$ac_ext <<_ACEOF | ||
20198 | /* confdefs.h. */ | ||
20199 | _ACEOF | ||
20200 | cat confdefs.h >>conftest.$ac_ext | ||
20201 | cat >>conftest.$ac_ext <<_ACEOF | ||
20202 | /* end confdefs.h. */ | ||
20203 | |||
20204 | /* Override any GCC internal prototype to avoid an error. | ||
20205 | Use char because int might match the return type of a GCC | ||
20206 | builtin and then its argument prototype would still apply. */ | ||
20207 | #ifdef __cplusplus | ||
20208 | extern "C" | ||
20209 | #endif | ||
20210 | char daemon (); | ||
20211 | int | ||
20212 | main () | ||
20213 | { | ||
20214 | return daemon (); | ||
20215 | ; | ||
20216 | return 0; | ||
20217 | } | ||
20218 | _ACEOF | ||
20219 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20220 | if { (ac_try="$ac_link" | ||
20221 | case "(($ac_try" in | ||
20222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20223 | *) ac_try_echo=$ac_try;; | ||
20224 | esac | ||
20225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20226 | (eval "$ac_link") 2>conftest.er1 | ||
20227 | ac_status=$? | ||
20228 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20229 | rm -f conftest.er1 | ||
20230 | cat conftest.err >&5 | ||
20231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20232 | (exit $ac_status); } && { | ||
20233 | test -z "$ac_c_werror_flag" || | ||
20234 | test ! -s conftest.err | ||
20235 | } && test -s conftest$ac_exeext && | ||
20236 | $as_test_x conftest$ac_exeext; then | ||
20237 | ac_cv_lib_bsd_daemon=yes | ||
20238 | else | ||
20239 | echo "$as_me: failed program was:" >&5 | ||
20240 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20241 | |||
20242 | ac_cv_lib_bsd_daemon=no | ||
20243 | fi | ||
20244 | |||
20245 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
20246 | conftest$ac_exeext conftest.$ac_ext | ||
20247 | LIBS=$ac_check_lib_save_LIBS | ||
20248 | fi | ||
20249 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | ||
20250 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; } | ||
20251 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
20252 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | ||
20253 | #define HAVE_DAEMON 1 | ||
20254 | _ACEOF | ||
20255 | |||
20256 | fi | ||
20257 | |||
20258 | |||
20259 | fi | ||
20260 | |||
20261 | |||
20262 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 | ||
20263 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } | ||
20264 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
20265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20266 | else | ||
20267 | cat >conftest.$ac_ext <<_ACEOF | ||
20268 | /* confdefs.h. */ | ||
20269 | _ACEOF | ||
20270 | cat confdefs.h >>conftest.$ac_ext | ||
20271 | cat >>conftest.$ac_ext <<_ACEOF | ||
20272 | /* end confdefs.h. */ | ||
20273 | /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize. | ||
20274 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
20275 | #define getpagesize innocuous_getpagesize | ||
20276 | |||
20277 | /* System header to define __stub macros and hopefully few prototypes, | ||
20278 | which can conflict with char getpagesize (); below. | ||
20279 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
20280 | <limits.h> exists even on freestanding compilers. */ | ||
20281 | |||
20282 | #ifdef __STDC__ | ||
20283 | # include <limits.h> | ||
20284 | #else | ||
20285 | # include <assert.h> | ||
20286 | #endif | ||
20287 | |||
20288 | #undef getpagesize | ||
20289 | |||
20290 | /* Override any GCC internal prototype to avoid an error. | ||
20291 | Use char because int might match the return type of a GCC | ||
20292 | builtin and then its argument prototype would still apply. */ | ||
20293 | #ifdef __cplusplus | ||
20294 | extern "C" | ||
20295 | #endif | ||
20296 | char getpagesize (); | ||
20297 | /* The GNU C library defines this for functions which it implements | ||
20298 | to always fail with ENOSYS. Some functions are actually named | ||
20299 | something starting with __ and the normal name is an alias. */ | ||
20300 | #if defined __stub_getpagesize || defined __stub___getpagesize | ||
20301 | choke me | ||
20302 | #endif | ||
20303 | |||
20304 | int | ||
20305 | main () | ||
20306 | { | ||
20307 | return getpagesize (); | ||
20308 | ; | ||
20309 | return 0; | ||
20310 | } | ||
20311 | _ACEOF | ||
20312 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20313 | if { (ac_try="$ac_link" | ||
20314 | case "(($ac_try" in | ||
20315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20316 | *) ac_try_echo=$ac_try;; | ||
20317 | esac | ||
20318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20319 | (eval "$ac_link") 2>conftest.er1 | ||
20320 | ac_status=$? | ||
20321 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20322 | rm -f conftest.er1 | ||
20323 | cat conftest.err >&5 | ||
20324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20325 | (exit $ac_status); } && { | ||
20326 | test -z "$ac_c_werror_flag" || | ||
20327 | test ! -s conftest.err | ||
20328 | } && test -s conftest$ac_exeext && | ||
20329 | $as_test_x conftest$ac_exeext; then | ||
20330 | ac_cv_func_getpagesize=yes | ||
20331 | else | ||
20332 | echo "$as_me: failed program was:" >&5 | ||
20333 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20334 | |||
20335 | ac_cv_func_getpagesize=no | ||
20336 | fi | ||
20337 | |||
20338 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
20339 | conftest$ac_exeext conftest.$ac_ext | ||
20340 | fi | ||
20341 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | ||
20342 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; } | ||
20343 | if test $ac_cv_func_getpagesize = yes; then | ||
20344 | |||
20345 | cat >>confdefs.h <<\_ACEOF | ||
20346 | #define HAVE_GETPAGESIZE 1 | ||
20347 | _ACEOF | ||
20348 | |||
20349 | else | ||
20350 | { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | ||
20351 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; } | ||
20352 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
20353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20354 | else | ||
20355 | ac_check_lib_save_LIBS=$LIBS | ||
20356 | LIBS="-lucb $LIBS" | ||
20357 | cat >conftest.$ac_ext <<_ACEOF | ||
20358 | /* confdefs.h. */ | ||
20359 | _ACEOF | ||
20360 | cat confdefs.h >>conftest.$ac_ext | ||
20361 | cat >>conftest.$ac_ext <<_ACEOF | ||
20362 | /* end confdefs.h. */ | ||
20363 | |||
20364 | /* Override any GCC internal prototype to avoid an error. | ||
20365 | Use char because int might match the return type of a GCC | ||
20366 | builtin and then its argument prototype would still apply. */ | ||
20367 | #ifdef __cplusplus | ||
20368 | extern "C" | ||
20369 | #endif | ||
20370 | char getpagesize (); | ||
20371 | int | ||
20372 | main () | ||
20373 | { | ||
20374 | return getpagesize (); | ||
20375 | ; | ||
20376 | return 0; | ||
20377 | } | ||
20378 | _ACEOF | ||
20379 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20380 | if { (ac_try="$ac_link" | ||
20381 | case "(($ac_try" in | ||
20382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20383 | *) ac_try_echo=$ac_try;; | ||
20384 | esac | ||
20385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20386 | (eval "$ac_link") 2>conftest.er1 | ||
20387 | ac_status=$? | ||
20388 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20389 | rm -f conftest.er1 | ||
20390 | cat conftest.err >&5 | ||
20391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20392 | (exit $ac_status); } && { | ||
20393 | test -z "$ac_c_werror_flag" || | ||
20394 | test ! -s conftest.err | ||
20395 | } && test -s conftest$ac_exeext && | ||
20396 | $as_test_x conftest$ac_exeext; then | ||
20397 | ac_cv_lib_ucb_getpagesize=yes | ||
20398 | else | ||
20399 | echo "$as_me: failed program was:" >&5 | ||
20400 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20401 | |||
20402 | ac_cv_lib_ucb_getpagesize=no | ||
20403 | fi | ||
20404 | |||
20405 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
20406 | conftest$ac_exeext conftest.$ac_ext | ||
20407 | LIBS=$ac_check_lib_save_LIBS | ||
20408 | fi | ||
20409 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
20410 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; } | ||
20411 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
20412 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | ||
20413 | #define HAVE_GETPAGESIZE 1 | ||
20414 | _ACEOF | ||
20415 | |||
20416 | fi | ||
20417 | |||
20418 | |||
20419 | fi | ||
20420 | |||
20421 | |||
20422 | # Check for broken snprintf | ||
20423 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
20424 | { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | ||
20425 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; } | ||
20426 | if test "$cross_compiling" = yes; then | ||
20427 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
20428 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
20429 | |||
20430 | else | ||
20431 | cat >conftest.$ac_ext <<_ACEOF | ||
20432 | /* confdefs.h. */ | ||
20433 | _ACEOF | ||
20434 | cat confdefs.h >>conftest.$ac_ext | ||
20435 | cat >>conftest.$ac_ext <<_ACEOF | ||
20436 | /* end confdefs.h. */ | ||
20437 | #include <stdio.h> | ||
20438 | int | ||
20439 | main () | ||
20440 | { | ||
20441 | |||
20442 | char b[5]; | ||
20443 | snprintf(b,5,"123456789"); | ||
20444 | exit(b[4]!='\0'); | ||
20445 | |||
20446 | ; | ||
20447 | return 0; | ||
20448 | } | ||
20449 | _ACEOF | ||
20450 | rm -f conftest$ac_exeext | ||
20451 | if { (ac_try="$ac_link" | ||
20452 | case "(($ac_try" in | ||
20453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20454 | *) ac_try_echo=$ac_try;; | ||
20455 | esac | ||
20456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20457 | (eval "$ac_link") 2>&5 | ||
20458 | ac_status=$? | ||
20459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20460 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20461 | { (case "(($ac_try" in | ||
20462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20463 | *) ac_try_echo=$ac_try;; | ||
20464 | esac | ||
20465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20466 | (eval "$ac_try") 2>&5 | ||
20467 | ac_status=$? | ||
20468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20469 | (exit $ac_status); }; }; then | ||
20470 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20471 | echo "${ECHO_T}yes" >&6; } | ||
20472 | else | ||
20473 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20474 | echo "$as_me: failed program was:" >&5 | ||
20475 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20476 | |||
20477 | ( exit $ac_status ) | ||
20478 | |||
20479 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20480 | echo "${ECHO_T}no" >&6; } | ||
20481 | |||
20482 | cat >>confdefs.h <<\_ACEOF | ||
20483 | #define BROKEN_SNPRINTF 1 | ||
20484 | _ACEOF | ||
20485 | |||
20486 | { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
20487 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
20488 | |||
20489 | fi | ||
20490 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20491 | fi | ||
20492 | |||
20493 | |||
20494 | fi | ||
20495 | |||
20496 | # We depend on vsnprintf returning the right thing on overflow: the | ||
20497 | # number of characters it tried to create (as per SUSv3) | ||
20498 | if test "x$ac_cv_func_vsnprintf" = "xyes" ; then | ||
20499 | { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5 | ||
20500 | echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; } | ||
20501 | if test "$cross_compiling" = yes; then | ||
20502 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5 | ||
20503 | echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} | ||
20504 | |||
20505 | else | ||
20506 | cat >conftest.$ac_ext <<_ACEOF | ||
20507 | /* confdefs.h. */ | ||
20508 | _ACEOF | ||
20509 | cat confdefs.h >>conftest.$ac_ext | ||
20510 | cat >>conftest.$ac_ext <<_ACEOF | ||
20511 | /* end confdefs.h. */ | ||
20512 | |||
20513 | #include <sys/types.h> | ||
20514 | #include <stdio.h> | ||
20515 | #include <stdarg.h> | ||
20516 | |||
20517 | int x_snprintf(char *str, size_t count, const char *fmt, ...) | ||
20518 | { | ||
20519 | size_t ret; | ||
20520 | va_list ap; | ||
20521 | |||
20522 | va_start(ap, fmt); | ||
20523 | ret = vsnprintf(str, count, fmt, ap); | ||
20524 | va_end(ap); | ||
20525 | return ret; | ||
20526 | } | ||
20527 | |||
20528 | int | ||
20529 | main () | ||
20530 | { | ||
20531 | |||
20532 | char x[1]; | ||
20533 | if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11) | ||
20534 | return 1; | ||
20535 | if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11) | ||
20536 | return 1; | ||
20537 | return 0; | ||
20538 | |||
20539 | ; | ||
20540 | return 0; | ||
20541 | } | ||
20542 | _ACEOF | ||
20543 | rm -f conftest$ac_exeext | ||
20544 | if { (ac_try="$ac_link" | ||
20545 | case "(($ac_try" in | ||
20546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20547 | *) ac_try_echo=$ac_try;; | ||
20548 | esac | ||
20549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20550 | (eval "$ac_link") 2>&5 | ||
20551 | ac_status=$? | ||
20552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20553 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20554 | { (case "(($ac_try" in | ||
20555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20556 | *) ac_try_echo=$ac_try;; | ||
20557 | esac | ||
20558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20559 | (eval "$ac_try") 2>&5 | ||
20560 | ac_status=$? | ||
20561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20562 | (exit $ac_status); }; }; then | ||
20563 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20564 | echo "${ECHO_T}yes" >&6; } | ||
20565 | else | ||
20566 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20567 | echo "$as_me: failed program was:" >&5 | ||
20568 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20569 | |||
20570 | ( exit $ac_status ) | ||
20571 | |||
20572 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20573 | echo "${ECHO_T}no" >&6; } | ||
20574 | |||
20575 | cat >>confdefs.h <<\_ACEOF | ||
20576 | #define BROKEN_SNPRINTF 1 | ||
20577 | _ACEOF | ||
20578 | |||
20579 | { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 | ||
20580 | echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} | ||
20581 | |||
20582 | fi | ||
20583 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20584 | fi | ||
20585 | |||
20586 | |||
20587 | fi | ||
20588 | |||
20589 | # On systems where [v]snprintf is broken, but is declared in stdio, | ||
20590 | # check that the fmt argument is const char * or just char *. | ||
20591 | # This is only useful for when BROKEN_SNPRINTF | ||
20592 | { echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5 | ||
20593 | echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; } | ||
20594 | cat >conftest.$ac_ext <<_ACEOF | ||
20595 | /* confdefs.h. */ | ||
20596 | _ACEOF | ||
20597 | cat confdefs.h >>conftest.$ac_ext | ||
20598 | cat >>conftest.$ac_ext <<_ACEOF | ||
20599 | /* end confdefs.h. */ | ||
20600 | |||
20601 | #include <stdio.h> | ||
20602 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } | ||
20603 | |||
20604 | int | ||
20605 | main () | ||
20606 | { | ||
20607 | |||
20608 | snprintf(0, 0, 0); | ||
20609 | |||
20610 | ; | ||
20611 | return 0; | ||
20612 | } | ||
20613 | _ACEOF | ||
20614 | rm -f conftest.$ac_objext | ||
20615 | if { (ac_try="$ac_compile" | ||
20616 | case "(($ac_try" in | ||
20617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20618 | *) ac_try_echo=$ac_try;; | ||
20619 | esac | ||
20620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20621 | (eval "$ac_compile") 2>conftest.er1 | ||
20622 | ac_status=$? | ||
20623 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20624 | rm -f conftest.er1 | ||
20625 | cat conftest.err >&5 | ||
20626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20627 | (exit $ac_status); } && { | ||
20628 | test -z "$ac_c_werror_flag" || | ||
20629 | test ! -s conftest.err | ||
20630 | } && test -s conftest.$ac_objext; then | ||
20631 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20632 | echo "${ECHO_T}yes" >&6; } | ||
20633 | |||
20634 | cat >>confdefs.h <<\_ACEOF | ||
20635 | #define SNPRINTF_CONST const | ||
20636 | _ACEOF | ||
20637 | |||
20638 | else | ||
20639 | echo "$as_me: failed program was:" >&5 | ||
20640 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20641 | |||
20642 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20643 | echo "${ECHO_T}no" >&6; } | ||
20644 | cat >>confdefs.h <<\_ACEOF | ||
20645 | #define SNPRINTF_CONST /* not const */ | ||
20646 | _ACEOF | ||
20647 | |||
20648 | fi | ||
20649 | |||
20650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20651 | |||
20652 | # Check for missing getpeereid (or equiv) support | ||
20653 | NO_PEERCHECK="" | ||
20654 | if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then | ||
20655 | { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
20656 | echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; } | ||
20657 | cat >conftest.$ac_ext <<_ACEOF | ||
20658 | /* confdefs.h. */ | ||
20659 | _ACEOF | ||
20660 | cat confdefs.h >>conftest.$ac_ext | ||
20661 | cat >>conftest.$ac_ext <<_ACEOF | ||
20662 | /* end confdefs.h. */ | ||
20663 | |||
20664 | #include <sys/types.h> | ||
20665 | #include <sys/socket.h> | ||
20666 | int | ||
20667 | main () | ||
20668 | { | ||
20669 | int i = SO_PEERCRED; | ||
20670 | ; | ||
20671 | return 0; | ||
20672 | } | ||
20673 | _ACEOF | ||
20674 | rm -f conftest.$ac_objext | ||
20675 | if { (ac_try="$ac_compile" | ||
20676 | case "(($ac_try" in | ||
20677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20678 | *) ac_try_echo=$ac_try;; | ||
20679 | esac | ||
20680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20681 | (eval "$ac_compile") 2>conftest.er1 | ||
20682 | ac_status=$? | ||
20683 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20684 | rm -f conftest.er1 | ||
20685 | cat conftest.err >&5 | ||
20686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20687 | (exit $ac_status); } && { | ||
20688 | test -z "$ac_c_werror_flag" || | ||
20689 | test ! -s conftest.err | ||
20690 | } && test -s conftest.$ac_objext; then | ||
20691 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20692 | echo "${ECHO_T}yes" >&6; } | ||
20693 | |||
20694 | cat >>confdefs.h <<\_ACEOF | ||
20695 | #define HAVE_SO_PEERCRED 1 | ||
20696 | _ACEOF | ||
20697 | |||
20698 | |||
20699 | else | ||
20700 | echo "$as_me: failed program was:" >&5 | ||
20701 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20702 | |||
20703 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20704 | echo "${ECHO_T}no" >&6; } | ||
20705 | NO_PEERCHECK=1 | ||
20706 | |||
20707 | fi | ||
20708 | |||
20709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20710 | fi | ||
20711 | |||
20712 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
20713 | { echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5 | ||
20714 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; } | ||
20715 | if test "$cross_compiling" = yes; then | ||
20716 | |||
20717 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20718 | echo "${ECHO_T}yes" >&6; } | ||
20719 | cat >>confdefs.h <<\_ACEOF | ||
20720 | #define HAVE_STRICT_MKSTEMP 1 | ||
20721 | _ACEOF | ||
20722 | |||
20723 | |||
20724 | |||
20725 | else | ||
20726 | cat >conftest.$ac_ext <<_ACEOF | ||
20727 | /* confdefs.h. */ | ||
20728 | _ACEOF | ||
20729 | cat confdefs.h >>conftest.$ac_ext | ||
20730 | cat >>conftest.$ac_ext <<_ACEOF | ||
20731 | /* end confdefs.h. */ | ||
20732 | |||
20733 | #include <stdlib.h> | ||
20734 | |||
20735 | int | ||
20736 | main () | ||
20737 | { | ||
20738 | |||
20739 | char template[]="conftest.mkstemp-test"; | ||
20740 | if (mkstemp(template) == -1) | ||
20741 | exit(1); | ||
20742 | unlink(template); | ||
20743 | exit(0); | ||
20744 | |||
20745 | ; | ||
20746 | return 0; | ||
20747 | } | ||
20748 | _ACEOF | ||
20749 | rm -f conftest$ac_exeext | ||
20750 | if { (ac_try="$ac_link" | ||
20751 | case "(($ac_try" in | ||
20752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20753 | *) ac_try_echo=$ac_try;; | ||
20754 | esac | ||
20755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20756 | (eval "$ac_link") 2>&5 | ||
20757 | ac_status=$? | ||
20758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20759 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20760 | { (case "(($ac_try" in | ||
20761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20762 | *) ac_try_echo=$ac_try;; | ||
20763 | esac | ||
20764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20765 | (eval "$ac_try") 2>&5 | ||
20766 | ac_status=$? | ||
20767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20768 | (exit $ac_status); }; }; then | ||
20769 | |||
20770 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20771 | echo "${ECHO_T}no" >&6; } | ||
20772 | |||
20773 | else | ||
20774 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20775 | echo "$as_me: failed program was:" >&5 | ||
20776 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20777 | |||
20778 | ( exit $ac_status ) | ||
20779 | |||
20780 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20781 | echo "${ECHO_T}yes" >&6; } | ||
20782 | |||
20783 | cat >>confdefs.h <<\_ACEOF | ||
20784 | #define HAVE_STRICT_MKSTEMP 1 | ||
20785 | _ACEOF | ||
20786 | |||
20787 | |||
20788 | fi | ||
20789 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20790 | fi | ||
20791 | |||
20792 | |||
20793 | fi | ||
20794 | |||
20795 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
20796 | { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5 | ||
20797 | echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; } | ||
20798 | if test "$cross_compiling" = yes; then | ||
20799 | |||
20800 | { echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5 | ||
20801 | echo "${ECHO_T}cross-compiling, assuming yes" >&6; } | ||
20802 | |||
20803 | |||
20804 | else | ||
20805 | cat >conftest.$ac_ext <<_ACEOF | ||
20806 | /* confdefs.h. */ | ||
20807 | _ACEOF | ||
20808 | cat confdefs.h >>conftest.$ac_ext | ||
20809 | cat >>conftest.$ac_ext <<_ACEOF | ||
20810 | /* end confdefs.h. */ | ||
20811 | |||
20812 | #include <stdio.h> | ||
20813 | #include <sys/fcntl.h> | ||
20814 | #include <sys/types.h> | ||
20815 | #include <sys/wait.h> | ||
20816 | |||
20817 | int | ||
20818 | main () | ||
20819 | { | ||
20820 | |||
20821 | pid_t pid; | ||
20822 | int fd, ptyfd, ttyfd, status; | ||
20823 | |||
20824 | pid = fork(); | ||
20825 | if (pid < 0) { /* failed */ | ||
20826 | exit(1); | ||
20827 | } else if (pid > 0) { /* parent */ | ||
20828 | waitpid(pid, &status, 0); | ||
20829 | if (WIFEXITED(status)) | ||
20830 | exit(WEXITSTATUS(status)); | ||
20831 | else | ||
20832 | exit(2); | ||
20833 | } else { /* child */ | ||
20834 | close(0); close(1); close(2); | ||
20835 | setsid(); | ||
20836 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
20837 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
20838 | if (fd >= 0) | ||
20839 | exit(3); /* Acquired ctty: broken */ | ||
20840 | else | ||
20841 | exit(0); /* Did not acquire ctty: OK */ | ||
20842 | } | ||
20843 | |||
20844 | ; | ||
20845 | return 0; | ||
20846 | } | ||
20847 | _ACEOF | ||
20848 | rm -f conftest$ac_exeext | ||
20849 | if { (ac_try="$ac_link" | ||
20850 | case "(($ac_try" in | ||
20851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20852 | *) ac_try_echo=$ac_try;; | ||
20853 | esac | ||
20854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20855 | (eval "$ac_link") 2>&5 | ||
20856 | ac_status=$? | ||
20857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20858 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20859 | { (case "(($ac_try" in | ||
20860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20861 | *) ac_try_echo=$ac_try;; | ||
20862 | esac | ||
20863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20864 | (eval "$ac_try") 2>&5 | ||
20865 | ac_status=$? | ||
20866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20867 | (exit $ac_status); }; }; then | ||
20868 | |||
20869 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20870 | echo "${ECHO_T}yes" >&6; } | ||
20871 | |||
20872 | else | ||
20873 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20874 | echo "$as_me: failed program was:" >&5 | ||
20875 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20876 | |||
20877 | ( exit $ac_status ) | ||
20878 | |||
20879 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20880 | echo "${ECHO_T}no" >&6; } | ||
20881 | cat >>confdefs.h <<\_ACEOF | ||
20882 | #define SSHD_ACQUIRES_CTTY 1 | ||
20883 | _ACEOF | ||
20884 | |||
20885 | |||
20886 | fi | ||
20887 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20888 | fi | ||
20889 | |||
20890 | |||
20891 | fi | ||
20892 | |||
20893 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
20894 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
20895 | { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
20896 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } | ||
20897 | if test "$cross_compiling" = yes; then | ||
20898 | |||
20899 | { echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5 | ||
20900 | echo "${ECHO_T}cross-compiling, assuming yes" >&6; } | ||
20901 | |||
20902 | |||
20903 | else | ||
20904 | cat >conftest.$ac_ext <<_ACEOF | ||
20905 | /* confdefs.h. */ | ||
20906 | _ACEOF | ||
20907 | cat confdefs.h >>conftest.$ac_ext | ||
20908 | cat >>conftest.$ac_ext <<_ACEOF | ||
20909 | /* end confdefs.h. */ | ||
20910 | |||
20911 | #include <stdio.h> | ||
20912 | #include <sys/socket.h> | ||
20913 | #include <netdb.h> | ||
20914 | #include <errno.h> | ||
20915 | #include <netinet/in.h> | ||
20916 | |||
20917 | #define TEST_PORT "2222" | ||
20918 | |||
20919 | int | ||
20920 | main () | ||
20921 | { | ||
20922 | |||
20923 | int err, sock; | ||
20924 | struct addrinfo *gai_ai, *ai, hints; | ||
20925 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
20926 | |||
20927 | memset(&hints, 0, sizeof(hints)); | ||
20928 | hints.ai_family = PF_UNSPEC; | ||
20929 | hints.ai_socktype = SOCK_STREAM; | ||
20930 | hints.ai_flags = AI_PASSIVE; | ||
20931 | |||
20932 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
20933 | if (err != 0) { | ||
20934 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
20935 | exit(1); | ||
20936 | } | ||
20937 | |||
20938 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
20939 | if (ai->ai_family != AF_INET6) | ||
20940 | continue; | ||
20941 | |||
20942 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
20943 | sizeof(ntop), strport, sizeof(strport), | ||
20944 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
20945 | |||
20946 | if (err != 0) { | ||
20947 | if (err == EAI_SYSTEM) | ||
20948 | perror("getnameinfo EAI_SYSTEM"); | ||
20949 | else | ||
20950 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
20951 | gai_strerror(err)); | ||
20952 | exit(2); | ||
20953 | } | ||
20954 | |||
20955 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
20956 | if (sock < 0) | ||
20957 | perror("socket"); | ||
20958 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
20959 | if (errno == EBADF) | ||
20960 | exit(3); | ||
20961 | } | ||
20962 | } | ||
20963 | exit(0); | ||
20964 | |||
20965 | ; | ||
20966 | return 0; | ||
20967 | } | ||
20968 | _ACEOF | ||
20969 | rm -f conftest$ac_exeext | ||
20970 | if { (ac_try="$ac_link" | ||
20971 | case "(($ac_try" in | ||
20972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20973 | *) ac_try_echo=$ac_try;; | ||
20974 | esac | ||
20975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20976 | (eval "$ac_link") 2>&5 | ||
20977 | ac_status=$? | ||
20978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20979 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20980 | { (case "(($ac_try" in | ||
20981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20982 | *) ac_try_echo=$ac_try;; | ||
20983 | esac | ||
20984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20985 | (eval "$ac_try") 2>&5 | ||
20986 | ac_status=$? | ||
20987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20988 | (exit $ac_status); }; }; then | ||
20989 | |||
20990 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20991 | echo "${ECHO_T}yes" >&6; } | ||
20992 | |||
20993 | else | ||
20994 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20995 | echo "$as_me: failed program was:" >&5 | ||
20996 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20997 | |||
20998 | ( exit $ac_status ) | ||
20999 | |||
21000 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21001 | echo "${ECHO_T}no" >&6; } | ||
21002 | cat >>confdefs.h <<\_ACEOF | ||
21003 | #define BROKEN_GETADDRINFO 1 | ||
21004 | _ACEOF | ||
21005 | |||
21006 | |||
21007 | fi | ||
21008 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21009 | fi | ||
21010 | |||
21011 | |||
21012 | fi | ||
21013 | |||
21014 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
21015 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
21016 | { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
21017 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } | ||
21018 | if test "$cross_compiling" = yes; then | ||
21019 | |||
21020 | { echo "$as_me:$LINENO: result: cross-compiling, assuming no" >&5 | ||
21021 | echo "${ECHO_T}cross-compiling, assuming no" >&6; } | ||
21022 | |||
21023 | |||
21024 | else | ||
21025 | cat >conftest.$ac_ext <<_ACEOF | ||
21026 | /* confdefs.h. */ | ||
21027 | _ACEOF | ||
21028 | cat confdefs.h >>conftest.$ac_ext | ||
21029 | cat >>conftest.$ac_ext <<_ACEOF | ||
21030 | /* end confdefs.h. */ | ||
21031 | |||
21032 | #include <stdio.h> | ||
21033 | #include <sys/socket.h> | ||
21034 | #include <netdb.h> | ||
21035 | #include <errno.h> | ||
21036 | #include <netinet/in.h> | ||
21037 | |||
21038 | #define TEST_PORT "2222" | ||
21039 | |||
21040 | int | ||
21041 | main () | ||
21042 | { | ||
21043 | |||
21044 | int err, sock; | ||
21045 | struct addrinfo *gai_ai, *ai, hints; | ||
21046 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
21047 | |||
21048 | memset(&hints, 0, sizeof(hints)); | ||
21049 | hints.ai_family = PF_UNSPEC; | ||
21050 | hints.ai_socktype = SOCK_STREAM; | ||
21051 | hints.ai_flags = AI_PASSIVE; | ||
21052 | |||
21053 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
21054 | if (err != 0) { | ||
21055 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
21056 | exit(1); | ||
21057 | } | ||
21058 | |||
21059 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
21060 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
21061 | continue; | ||
21062 | |||
21063 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
21064 | sizeof(ntop), strport, sizeof(strport), | ||
21065 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
21066 | |||
21067 | if (ai->ai_family == AF_INET && err != 0) { | ||
21068 | perror("getnameinfo"); | ||
21069 | exit(2); | ||
21070 | } | ||
21071 | } | ||
21072 | exit(0); | ||
21073 | |||
21074 | ; | ||
21075 | return 0; | ||
21076 | } | ||
21077 | _ACEOF | ||
21078 | rm -f conftest$ac_exeext | ||
21079 | if { (ac_try="$ac_link" | ||
21080 | case "(($ac_try" in | ||
21081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21082 | *) ac_try_echo=$ac_try;; | ||
21083 | esac | ||
21084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21085 | (eval "$ac_link") 2>&5 | ||
21086 | ac_status=$? | ||
21087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21088 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21089 | { (case "(($ac_try" in | ||
21090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21091 | *) ac_try_echo=$ac_try;; | ||
21092 | esac | ||
21093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21094 | (eval "$ac_try") 2>&5 | ||
21095 | ac_status=$? | ||
21096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21097 | (exit $ac_status); }; }; then | ||
21098 | |||
21099 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21100 | echo "${ECHO_T}yes" >&6; } | ||
21101 | |||
21102 | cat >>confdefs.h <<\_ACEOF | ||
21103 | #define AIX_GETNAMEINFO_HACK 1 | ||
21104 | _ACEOF | ||
21105 | |||
21106 | |||
21107 | else | ||
21108 | echo "$as_me: program exited with status $ac_status" >&5 | ||
21109 | echo "$as_me: failed program was:" >&5 | ||
21110 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21111 | |||
21112 | ( exit $ac_status ) | ||
21113 | |||
21114 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21115 | echo "${ECHO_T}no" >&6; } | ||
21116 | cat >>confdefs.h <<\_ACEOF | ||
21117 | #define BROKEN_GETADDRINFO 1 | ||
21118 | _ACEOF | ||
21119 | |||
21120 | |||
21121 | fi | ||
21122 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21123 | fi | ||
21124 | |||
21125 | |||
21126 | fi | ||
21127 | |||
21128 | if test "x$ac_cv_func_getaddrinfo" = "xyes"; then | ||
21129 | { echo "$as_me:$LINENO: checking whether AI_NUMERICSERV is declared" >&5 | ||
21130 | echo $ECHO_N "checking whether AI_NUMERICSERV is declared... $ECHO_C" >&6; } | ||
21131 | if test "${ac_cv_have_decl_AI_NUMERICSERV+set}" = set; then | ||
21132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21133 | else | ||
21134 | cat >conftest.$ac_ext <<_ACEOF | ||
21135 | /* confdefs.h. */ | ||
21136 | _ACEOF | ||
21137 | cat confdefs.h >>conftest.$ac_ext | ||
21138 | cat >>conftest.$ac_ext <<_ACEOF | ||
21139 | /* end confdefs.h. */ | ||
21140 | #include <sys/types.h> | ||
21141 | #include <sys/socket.h> | ||
21142 | #include <netdb.h> | ||
21143 | |||
21144 | int | ||
21145 | main () | ||
21146 | { | ||
21147 | #ifndef AI_NUMERICSERV | ||
21148 | (void) AI_NUMERICSERV; | ||
21149 | #endif | ||
21150 | |||
21151 | ; | ||
21152 | return 0; | ||
21153 | } | ||
21154 | _ACEOF | ||
21155 | rm -f conftest.$ac_objext | ||
21156 | if { (ac_try="$ac_compile" | ||
21157 | case "(($ac_try" in | ||
21158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21159 | *) ac_try_echo=$ac_try;; | ||
21160 | esac | ||
21161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21162 | (eval "$ac_compile") 2>conftest.er1 | ||
21163 | ac_status=$? | ||
21164 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21165 | rm -f conftest.er1 | ||
21166 | cat conftest.err >&5 | ||
21167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21168 | (exit $ac_status); } && { | ||
21169 | test -z "$ac_c_werror_flag" || | ||
21170 | test ! -s conftest.err | ||
21171 | } && test -s conftest.$ac_objext; then | ||
21172 | ac_cv_have_decl_AI_NUMERICSERV=yes | ||
21173 | else | ||
21174 | echo "$as_me: failed program was:" >&5 | ||
21175 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21176 | |||
21177 | ac_cv_have_decl_AI_NUMERICSERV=no | ||
21178 | fi | ||
21179 | |||
21180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21181 | fi | ||
21182 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_NUMERICSERV" >&5 | ||
21183 | echo "${ECHO_T}$ac_cv_have_decl_AI_NUMERICSERV" >&6; } | ||
21184 | if test $ac_cv_have_decl_AI_NUMERICSERV = yes; then | ||
21185 | |||
21186 | cat >>confdefs.h <<_ACEOF | ||
21187 | #define HAVE_DECL_AI_NUMERICSERV 1 | ||
21188 | _ACEOF | ||
21189 | |||
21190 | |||
21191 | else | ||
21192 | cat >>confdefs.h <<_ACEOF | ||
21193 | #define HAVE_DECL_AI_NUMERICSERV 0 | ||
21194 | _ACEOF | ||
21195 | |||
21196 | |||
21197 | fi | ||
21198 | |||
21199 | |||
21200 | fi | ||
21201 | |||
21202 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
21203 | { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5 | ||
21204 | echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; } | ||
21205 | cat >conftest.$ac_ext <<_ACEOF | ||
21206 | /* confdefs.h. */ | ||
21207 | _ACEOF | ||
21208 | cat confdefs.h >>conftest.$ac_ext | ||
21209 | cat >>conftest.$ac_ext <<_ACEOF | ||
21210 | /* end confdefs.h. */ | ||
21211 | #include <shadow.h> | ||
21212 | int | ||
21213 | main () | ||
21214 | { | ||
21215 | exit(0); | ||
21216 | ; | ||
21217 | return 0; | ||
21218 | } | ||
21219 | _ACEOF | ||
21220 | rm -f conftest.$ac_objext | ||
21221 | if { (ac_try="$ac_compile" | ||
21222 | case "(($ac_try" in | ||
21223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21224 | *) ac_try_echo=$ac_try;; | ||
21225 | esac | ||
21226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21227 | (eval "$ac_compile") 2>conftest.er1 | ||
21228 | ac_status=$? | ||
21229 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21230 | rm -f conftest.er1 | ||
21231 | cat conftest.err >&5 | ||
21232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21233 | (exit $ac_status); } && { | ||
21234 | test -z "$ac_c_werror_flag" || | ||
21235 | test ! -s conftest.err | ||
21236 | } && test -s conftest.$ac_objext; then | ||
21237 | |||
21238 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21239 | echo "${ECHO_T}no" >&6; } | ||
21240 | |||
21241 | else | ||
21242 | echo "$as_me: failed program was:" >&5 | ||
21243 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21244 | |||
21245 | |||
21246 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21247 | echo "${ECHO_T}yes" >&6; } | ||
21248 | |||
21249 | cat >>confdefs.h <<\_ACEOF | ||
21250 | #define GETSPNAM_CONFLICTING_DEFS 1 | ||
21251 | _ACEOF | ||
21252 | |||
21253 | |||
21254 | |||
21255 | fi | ||
21256 | |||
21257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21258 | fi | ||
21259 | |||
21260 | { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | ||
21261 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; } | ||
21262 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
21263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21264 | else | ||
21265 | # Use it with a single arg. | ||
21266 | cat >conftest.$ac_ext <<_ACEOF | ||
21267 | /* confdefs.h. */ | ||
21268 | _ACEOF | ||
21269 | cat confdefs.h >>conftest.$ac_ext | ||
21270 | cat >>conftest.$ac_ext <<_ACEOF | ||
21271 | /* end confdefs.h. */ | ||
21272 | $ac_includes_default | ||
21273 | int | ||
21274 | main () | ||
21275 | { | ||
21276 | getpgrp (0); | ||
21277 | ; | ||
21278 | return 0; | ||
21279 | } | ||
21280 | _ACEOF | ||
21281 | rm -f conftest.$ac_objext | ||
21282 | if { (ac_try="$ac_compile" | ||
21283 | case "(($ac_try" in | ||
21284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21285 | *) ac_try_echo=$ac_try;; | ||
21286 | esac | ||
21287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21288 | (eval "$ac_compile") 2>conftest.er1 | ||
21289 | ac_status=$? | ||
21290 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21291 | rm -f conftest.er1 | ||
21292 | cat conftest.err >&5 | ||
21293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21294 | (exit $ac_status); } && { | ||
21295 | test -z "$ac_c_werror_flag" || | ||
21296 | test ! -s conftest.err | ||
21297 | } && test -s conftest.$ac_objext; then | ||
21298 | ac_cv_func_getpgrp_void=no | ||
21299 | else | ||
21300 | echo "$as_me: failed program was:" >&5 | ||
21301 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21302 | |||
21303 | ac_cv_func_getpgrp_void=yes | ||
21304 | fi | ||
21305 | |||
21306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21307 | |||
21308 | fi | ||
21309 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | ||
21310 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; } | ||
21311 | if test $ac_cv_func_getpgrp_void = yes; then | ||
21312 | |||
21313 | cat >>confdefs.h <<\_ACEOF | ||
21314 | #define GETPGRP_VOID 1 | ||
21315 | _ACEOF | ||
21316 | |||
21317 | fi | ||
21318 | |||
21319 | |||
21320 | # Search for OpenSSL | ||
21321 | saved_CPPFLAGS="$CPPFLAGS" | ||
21322 | saved_LDFLAGS="$LDFLAGS" | ||
21323 | |||
21324 | # Check whether --with-ssl-dir was given. | ||
21325 | if test "${with_ssl_dir+set}" = set; then | ||
21326 | withval=$with_ssl_dir; | ||
21327 | if test "x$openssl" = "xno" ; then | ||
21328 | { { echo "$as_me:$LINENO: error: cannot use --with-ssl-dir when OpenSSL disabled" >&5 | ||
21329 | echo "$as_me: error: cannot use --with-ssl-dir when OpenSSL disabled" >&2;} | ||
21330 | { (exit 1); exit 1; }; } | ||
21331 | fi | ||
21332 | if test "x$withval" != "xno" ; then | ||
21333 | case "$withval" in | ||
21334 | # Relative paths | ||
21335 | ./*|../*) withval="`pwd`/$withval" | ||
21336 | esac | ||
21337 | if test -d "$withval/lib"; then | ||
21338 | if test -n "${need_dash_r}"; then | ||
21339 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
21340 | else | ||
21341 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
21342 | fi | ||
21343 | elif test -d "$withval/lib64"; then | ||
21344 | if test -n "${need_dash_r}"; then | ||
21345 | LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}" | ||
21346 | else | ||
21347 | LDFLAGS="-L${withval}/lib64 ${LDFLAGS}" | ||
21348 | fi | ||
21349 | else | ||
21350 | if test -n "${need_dash_r}"; then | ||
21351 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
21352 | else | ||
21353 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
21354 | fi | ||
21355 | fi | ||
21356 | if test -d "$withval/include"; then | ||
21357 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
21358 | else | ||
21359 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
21360 | fi | ||
21361 | fi | ||
21362 | |||
21363 | |||
21364 | fi | ||
21365 | |||
21366 | |||
21367 | |||
21368 | # Check whether --with-openssl-header-check was given. | ||
21369 | if test "${with_openssl_header_check+set}" = set; then | ||
21370 | withval=$with_openssl_header_check; | ||
21371 | if test "x$withval" = "xno" ; then | ||
21372 | openssl_check_nonfatal=1 | ||
21373 | fi | ||
21374 | |||
21375 | |||
21376 | fi | ||
21377 | |||
21378 | |||
21379 | openssl_engine=no | ||
21380 | |||
21381 | # Check whether --with-ssl-engine was given. | ||
21382 | if test "${with_ssl_engine+set}" = set; then | ||
21383 | withval=$with_ssl_engine; | ||
21384 | if test "x$withval" != "xno" ; then | ||
21385 | if test "x$openssl" = "xno" ; then | ||
21386 | { { echo "$as_me:$LINENO: error: cannot use --with-ssl-engine when OpenSSL disabled" >&5 | ||
21387 | echo "$as_me: error: cannot use --with-ssl-engine when OpenSSL disabled" >&2;} | ||
21388 | { (exit 1); exit 1; }; } | ||
21389 | fi | ||
21390 | openssl_engine=yes | ||
21391 | fi | ||
21392 | |||
21393 | |||
21394 | fi | ||
21395 | |||
21396 | |||
21397 | if test "x$openssl" = "xyes" ; then | ||
21398 | LIBS="-lcrypto $LIBS" | ||
21399 | cat >conftest.$ac_ext <<_ACEOF | ||
21400 | /* confdefs.h. */ | ||
21401 | _ACEOF | ||
21402 | cat confdefs.h >>conftest.$ac_ext | ||
21403 | cat >>conftest.$ac_ext <<_ACEOF | ||
21404 | /* end confdefs.h. */ | ||
21405 | |||
21406 | /* Override any GCC internal prototype to avoid an error. | ||
21407 | Use char because int might match the return type of a GCC | ||
21408 | builtin and then its argument prototype would still apply. */ | ||
21409 | #ifdef __cplusplus | ||
21410 | extern "C" | ||
21411 | #endif | ||
21412 | char RAND_add (); | ||
21413 | int | ||
21414 | main () | ||
21415 | { | ||
21416 | return RAND_add (); | ||
21417 | ; | ||
21418 | return 0; | ||
21419 | } | ||
21420 | _ACEOF | ||
21421 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21422 | if { (ac_try="$ac_link" | ||
21423 | case "(($ac_try" in | ||
21424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21425 | *) ac_try_echo=$ac_try;; | ||
21426 | esac | ||
21427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21428 | (eval "$ac_link") 2>conftest.er1 | ||
21429 | ac_status=$? | ||
21430 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21431 | rm -f conftest.er1 | ||
21432 | cat conftest.err >&5 | ||
21433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21434 | (exit $ac_status); } && { | ||
21435 | test -z "$ac_c_werror_flag" || | ||
21436 | test ! -s conftest.err | ||
21437 | } && test -s conftest$ac_exeext && | ||
21438 | $as_test_x conftest$ac_exeext; then | ||
21439 | |||
21440 | cat >>confdefs.h <<\_ACEOF | ||
21441 | #define HAVE_OPENSSL 1 | ||
21442 | _ACEOF | ||
21443 | |||
21444 | else | ||
21445 | echo "$as_me: failed program was:" >&5 | ||
21446 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21447 | |||
21448 | |||
21449 | if test -n "${need_dash_r}"; then | ||
21450 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
21451 | else | ||
21452 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
21453 | fi | ||
21454 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
21455 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
21456 | { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5 | ||
21457 | echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; } | ||
21458 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
21459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21460 | fi | ||
21461 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5 | ||
21462 | echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; } | ||
21463 | else | ||
21464 | # Is the header compilable? | ||
21465 | { echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5 | ||
21466 | echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; } | ||
21467 | cat >conftest.$ac_ext <<_ACEOF | ||
21468 | /* confdefs.h. */ | ||
21469 | _ACEOF | ||
21470 | cat confdefs.h >>conftest.$ac_ext | ||
21471 | cat >>conftest.$ac_ext <<_ACEOF | ||
21472 | /* end confdefs.h. */ | ||
21473 | $ac_includes_default | ||
21474 | #include <openssl/opensslv.h> | ||
21475 | _ACEOF | ||
21476 | rm -f conftest.$ac_objext | ||
21477 | if { (ac_try="$ac_compile" | ||
21478 | case "(($ac_try" in | ||
21479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21480 | *) ac_try_echo=$ac_try;; | ||
21481 | esac | ||
21482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21483 | (eval "$ac_compile") 2>conftest.er1 | ||
21484 | ac_status=$? | ||
21485 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21486 | rm -f conftest.er1 | ||
21487 | cat conftest.err >&5 | ||
21488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21489 | (exit $ac_status); } && { | ||
21490 | test -z "$ac_c_werror_flag" || | ||
21491 | test ! -s conftest.err | ||
21492 | } && test -s conftest.$ac_objext; then | ||
21493 | ac_header_compiler=yes | ||
21494 | else | ||
21495 | echo "$as_me: failed program was:" >&5 | ||
21496 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21497 | |||
21498 | ac_header_compiler=no | ||
21499 | fi | ||
21500 | |||
21501 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21502 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
21503 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
21504 | |||
21505 | # Is the header present? | ||
21506 | { echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5 | ||
21507 | echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; } | ||
21508 | cat >conftest.$ac_ext <<_ACEOF | ||
21509 | /* confdefs.h. */ | ||
21510 | _ACEOF | ||
21511 | cat confdefs.h >>conftest.$ac_ext | ||
21512 | cat >>conftest.$ac_ext <<_ACEOF | ||
21513 | /* end confdefs.h. */ | ||
21514 | #include <openssl/opensslv.h> | ||
21515 | _ACEOF | ||
21516 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
21517 | case "(($ac_try" in | ||
21518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21519 | *) ac_try_echo=$ac_try;; | ||
21520 | esac | ||
21521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21522 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
21523 | ac_status=$? | ||
21524 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21525 | rm -f conftest.er1 | ||
21526 | cat conftest.err >&5 | ||
21527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21528 | (exit $ac_status); } >/dev/null && { | ||
21529 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
21530 | test ! -s conftest.err | ||
21531 | }; then | ||
21532 | ac_header_preproc=yes | ||
21533 | else | ||
21534 | echo "$as_me: failed program was:" >&5 | ||
21535 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21536 | |||
21537 | ac_header_preproc=no | ||
21538 | fi | ||
21539 | |||
21540 | rm -f conftest.err conftest.$ac_ext | ||
21541 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
21542 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
21543 | |||
21544 | # So? What about this header? | ||
21545 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
21546 | yes:no: ) | ||
21547 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
21548 | echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
21549 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5 | ||
21550 | echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;} | ||
21551 | ac_header_preproc=yes | ||
21552 | ;; | ||
21553 | no:yes:* ) | ||
21554 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5 | ||
21555 | echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;} | ||
21556 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5 | ||
21557 | echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;} | ||
21558 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5 | ||
21559 | echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;} | ||
21560 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
21561 | echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
21562 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5 | ||
21563 | echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;} | ||
21564 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5 | ||
21565 | echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;} | ||
21566 | ( cat <<\_ASBOX | ||
21567 | ## ------------------------------------------- ## | ||
21568 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
21569 | ## ------------------------------------------- ## | ||
21570 | _ASBOX | ||
21571 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
21572 | ;; | ||
21573 | esac | ||
21574 | { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5 | ||
21575 | echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; } | ||
21576 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
21577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21578 | else | ||
21579 | ac_cv_header_openssl_opensslv_h=$ac_header_preproc | ||
21580 | fi | ||
21581 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5 | ||
21582 | echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; } | ||
21583 | |||
21584 | fi | ||
21585 | if test $ac_cv_header_openssl_opensslv_h = yes; then | ||
21586 | : | ||
21587 | else | ||
21588 | { { echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5 | ||
21589 | echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;} | ||
21590 | { (exit 1); exit 1; }; } | ||
21591 | fi | ||
21592 | |||
21593 | |||
21594 | cat >conftest.$ac_ext <<_ACEOF | ||
21595 | /* confdefs.h. */ | ||
21596 | _ACEOF | ||
21597 | cat confdefs.h >>conftest.$ac_ext | ||
21598 | cat >>conftest.$ac_ext <<_ACEOF | ||
21599 | /* end confdefs.h. */ | ||
21600 | |||
21601 | /* Override any GCC internal prototype to avoid an error. | ||
21602 | Use char because int might match the return type of a GCC | ||
21603 | builtin and then its argument prototype would still apply. */ | ||
21604 | #ifdef __cplusplus | ||
21605 | extern "C" | ||
21606 | #endif | ||
21607 | char RAND_add (); | ||
21608 | int | ||
21609 | main () | ||
21610 | { | ||
21611 | return RAND_add (); | ||
21612 | ; | ||
21613 | return 0; | ||
21614 | } | ||
21615 | _ACEOF | ||
21616 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21617 | if { (ac_try="$ac_link" | ||
21618 | case "(($ac_try" in | ||
21619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21620 | *) ac_try_echo=$ac_try;; | ||
21621 | esac | ||
21622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21623 | (eval "$ac_link") 2>conftest.er1 | ||
21624 | ac_status=$? | ||
21625 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21626 | rm -f conftest.er1 | ||
21627 | cat conftest.err >&5 | ||
21628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21629 | (exit $ac_status); } && { | ||
21630 | test -z "$ac_c_werror_flag" || | ||
21631 | test ! -s conftest.err | ||
21632 | } && test -s conftest$ac_exeext && | ||
21633 | $as_test_x conftest$ac_exeext; then | ||
21634 | cat >>confdefs.h <<\_ACEOF | ||
21635 | #define HAVE_OPENSSL 1 | ||
21636 | _ACEOF | ||
21637 | |||
21638 | else | ||
21639 | echo "$as_me: failed program was:" >&5 | ||
21640 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21641 | |||
21642 | |||
21643 | { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
21644 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
21645 | { (exit 1); exit 1; }; } | ||
21646 | |||
21647 | |||
21648 | fi | ||
21649 | |||
21650 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21651 | conftest$ac_exeext conftest.$ac_ext | ||
21652 | |||
21653 | |||
21654 | fi | ||
21655 | |||
21656 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21657 | conftest$ac_exeext conftest.$ac_ext | ||
21658 | |||
21659 | # Determine OpenSSL header version | ||
21660 | { echo "$as_me:$LINENO: checking OpenSSL header version" >&5 | ||
21661 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; } | ||
21662 | if test "$cross_compiling" = yes; then | ||
21663 | |||
21664 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
21665 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
21666 | |||
21667 | |||
21668 | else | ||
21669 | cat >conftest.$ac_ext <<_ACEOF | ||
21670 | /* confdefs.h. */ | ||
21671 | _ACEOF | ||
21672 | cat confdefs.h >>conftest.$ac_ext | ||
21673 | cat >>conftest.$ac_ext <<_ACEOF | ||
21674 | /* end confdefs.h. */ | ||
21675 | |||
21676 | #include <stdlib.h> | ||
21677 | #include <stdio.h> | ||
21678 | #include <string.h> | ||
21679 | #include <openssl/opensslv.h> | ||
21680 | #define DATA "conftest.sslincver" | ||
21681 | |||
21682 | int | ||
21683 | main () | ||
21684 | { | ||
21685 | |||
21686 | FILE *fd; | ||
21687 | int rc; | ||
21688 | |||
21689 | fd = fopen(DATA,"w"); | ||
21690 | if(fd == NULL) | ||
21691 | exit(1); | ||
21692 | |||
21693 | if ((rc = fprintf(fd, "%08lx (%s)\n", | ||
21694 | (unsigned long)OPENSSL_VERSION_NUMBER, | ||
21695 | OPENSSL_VERSION_TEXT)) < 0) | ||
21696 | exit(1); | ||
21697 | |||
21698 | exit(0); | ||
21699 | |||
21700 | ; | ||
21701 | return 0; | ||
21702 | } | ||
21703 | _ACEOF | ||
21704 | rm -f conftest$ac_exeext | ||
21705 | if { (ac_try="$ac_link" | ||
21706 | case "(($ac_try" in | ||
21707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21708 | *) ac_try_echo=$ac_try;; | ||
21709 | esac | ||
21710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21711 | (eval "$ac_link") 2>&5 | ||
21712 | ac_status=$? | ||
21713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21714 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21715 | { (case "(($ac_try" in | ||
21716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21717 | *) ac_try_echo=$ac_try;; | ||
21718 | esac | ||
21719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21720 | (eval "$ac_try") 2>&5 | ||
21721 | ac_status=$? | ||
21722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21723 | (exit $ac_status); }; }; then | ||
21724 | |||
21725 | ssl_header_ver=`cat conftest.sslincver` | ||
21726 | { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5 | ||
21727 | echo "${ECHO_T}$ssl_header_ver" >&6; } | ||
21728 | |||
21729 | else | ||
21730 | echo "$as_me: program exited with status $ac_status" >&5 | ||
21731 | echo "$as_me: failed program was:" >&5 | ||
21732 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21733 | |||
21734 | ( exit $ac_status ) | ||
21735 | |||
21736 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
21737 | echo "${ECHO_T}not found" >&6; } | ||
21738 | { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5 | ||
21739 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
21740 | { (exit 1); exit 1; }; } | ||
21741 | |||
21742 | fi | ||
21743 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21744 | fi | ||
21745 | |||
21746 | |||
21747 | |||
21748 | # Determine OpenSSL library version | ||
21749 | { echo "$as_me:$LINENO: checking OpenSSL library version" >&5 | ||
21750 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; } | ||
21751 | if test "$cross_compiling" = yes; then | ||
21752 | |||
21753 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
21754 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
21755 | |||
21756 | |||
21757 | else | ||
21758 | cat >conftest.$ac_ext <<_ACEOF | ||
21759 | /* confdefs.h. */ | ||
21760 | _ACEOF | ||
21761 | cat confdefs.h >>conftest.$ac_ext | ||
21762 | cat >>conftest.$ac_ext <<_ACEOF | ||
21763 | /* end confdefs.h. */ | ||
21764 | |||
21765 | #include <stdio.h> | ||
21766 | #include <string.h> | ||
21767 | #include <openssl/opensslv.h> | ||
21768 | #include <openssl/crypto.h> | ||
21769 | #define DATA "conftest.ssllibver" | ||
21770 | |||
21771 | int | ||
21772 | main () | ||
21773 | { | ||
21774 | |||
21775 | FILE *fd; | ||
21776 | int rc; | ||
21777 | |||
21778 | fd = fopen(DATA,"w"); | ||
21779 | if(fd == NULL) | ||
21780 | exit(1); | ||
21781 | |||
21782 | if ((rc = fprintf(fd, "%08lx (%s)\n", (unsigned long)SSLeay(), | ||
21783 | SSLeay_version(SSLEAY_VERSION))) < 0) | ||
21784 | exit(1); | ||
21785 | |||
21786 | exit(0); | ||
21787 | |||
21788 | ; | ||
21789 | return 0; | ||
21790 | } | ||
21791 | _ACEOF | ||
21792 | rm -f conftest$ac_exeext | ||
21793 | if { (ac_try="$ac_link" | ||
21794 | case "(($ac_try" in | ||
21795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21796 | *) ac_try_echo=$ac_try;; | ||
21797 | esac | ||
21798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21799 | (eval "$ac_link") 2>&5 | ||
21800 | ac_status=$? | ||
21801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21802 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21803 | { (case "(($ac_try" in | ||
21804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21805 | *) ac_try_echo=$ac_try;; | ||
21806 | esac | ||
21807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21808 | (eval "$ac_try") 2>&5 | ||
21809 | ac_status=$? | ||
21810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21811 | (exit $ac_status); }; }; then | ||
21812 | |||
21813 | ssl_library_ver=`cat conftest.ssllibver` | ||
21814 | # Check version is supported. | ||
21815 | case "$ssl_library_ver" in | ||
21816 | 0090[0-7]*|009080[0-5]*) | ||
21817 | { { echo "$as_me:$LINENO: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&5 | ||
21818 | echo "$as_me: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&2;} | ||
21819 | { (exit 1); exit 1; }; } | ||
21820 | ;; | ||
21821 | *) ;; | ||
21822 | esac | ||
21823 | { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5 | ||
21824 | echo "${ECHO_T}$ssl_library_ver" >&6; } | ||
21825 | |||
21826 | else | ||
21827 | echo "$as_me: program exited with status $ac_status" >&5 | ||
21828 | echo "$as_me: failed program was:" >&5 | ||
21829 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21830 | |||
21831 | ( exit $ac_status ) | ||
21832 | |||
21833 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
21834 | echo "${ECHO_T}not found" >&6; } | ||
21835 | { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5 | ||
21836 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
21837 | { (exit 1); exit 1; }; } | ||
21838 | |||
21839 | fi | ||
21840 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21841 | fi | ||
21842 | |||
21843 | |||
21844 | |||
21845 | # Sanity check OpenSSL headers | ||
21846 | { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | ||
21847 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; } | ||
21848 | if test "$cross_compiling" = yes; then | ||
21849 | |||
21850 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
21851 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
21852 | |||
21853 | |||
21854 | else | ||
21855 | cat >conftest.$ac_ext <<_ACEOF | ||
21856 | /* confdefs.h. */ | ||
21857 | _ACEOF | ||
21858 | cat confdefs.h >>conftest.$ac_ext | ||
21859 | cat >>conftest.$ac_ext <<_ACEOF | ||
21860 | /* end confdefs.h. */ | ||
21861 | |||
21862 | #include <string.h> | ||
21863 | #include <openssl/opensslv.h> | ||
21864 | #include <openssl/crypto.h> | ||
21865 | |||
21866 | int | ||
21867 | main () | ||
21868 | { | ||
21869 | |||
21870 | exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); | ||
21871 | |||
21872 | ; | ||
21873 | return 0; | ||
21874 | } | ||
21875 | _ACEOF | ||
21876 | rm -f conftest$ac_exeext | ||
21877 | if { (ac_try="$ac_link" | ||
21878 | case "(($ac_try" in | ||
21879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21880 | *) ac_try_echo=$ac_try;; | ||
21881 | esac | ||
21882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21883 | (eval "$ac_link") 2>&5 | ||
21884 | ac_status=$? | ||
21885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21886 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21887 | { (case "(($ac_try" in | ||
21888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21889 | *) ac_try_echo=$ac_try;; | ||
21890 | esac | ||
21891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21892 | (eval "$ac_try") 2>&5 | ||
21893 | ac_status=$? | ||
21894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21895 | (exit $ac_status); }; }; then | ||
21896 | |||
21897 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21898 | echo "${ECHO_T}yes" >&6; } | ||
21899 | |||
21900 | else | ||
21901 | echo "$as_me: program exited with status $ac_status" >&5 | ||
21902 | echo "$as_me: failed program was:" >&5 | ||
21903 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21904 | |||
21905 | ( exit $ac_status ) | ||
21906 | |||
21907 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21908 | echo "${ECHO_T}no" >&6; } | ||
21909 | if test "x$openssl_check_nonfatal" = "x"; then | ||
21910 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your | ||
21911 | library. Check config.log for details. | ||
21912 | If you are sure your installation is consistent, you can disable the check | ||
21913 | by running \"./configure --without-openssl-header-check\". | ||
21914 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
21915 | " >&5 | ||
21916 | echo "$as_me: error: Your OpenSSL headers do not match your | ||
21917 | library. Check config.log for details. | ||
21918 | If you are sure your installation is consistent, you can disable the check | ||
21919 | by running \"./configure --without-openssl-header-check\". | ||
21920 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
21921 | " >&2;} | ||
21922 | { (exit 1); exit 1; }; } | ||
21923 | else | ||
21924 | { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your | ||
21925 | library. Check config.log for details. | ||
21926 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
21927 | echo "$as_me: WARNING: Your OpenSSL headers do not match your | ||
21928 | library. Check config.log for details. | ||
21929 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
21930 | fi | ||
21931 | |||
21932 | fi | ||
21933 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21934 | fi | ||
21935 | |||
21936 | |||
21937 | |||
21938 | { echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5 | ||
21939 | echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; } | ||
21940 | cat >conftest.$ac_ext <<_ACEOF | ||
21941 | /* confdefs.h. */ | ||
21942 | _ACEOF | ||
21943 | cat confdefs.h >>conftest.$ac_ext | ||
21944 | cat >>conftest.$ac_ext <<_ACEOF | ||
21945 | /* end confdefs.h. */ | ||
21946 | #include <openssl/evp.h> | ||
21947 | int | ||
21948 | main () | ||
21949 | { | ||
21950 | SSLeay_add_all_algorithms(); | ||
21951 | ; | ||
21952 | return 0; | ||
21953 | } | ||
21954 | _ACEOF | ||
21955 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21956 | if { (ac_try="$ac_link" | ||
21957 | case "(($ac_try" in | ||
21958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21959 | *) ac_try_echo=$ac_try;; | ||
21960 | esac | ||
21961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21962 | (eval "$ac_link") 2>conftest.er1 | ||
21963 | ac_status=$? | ||
21964 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21965 | rm -f conftest.er1 | ||
21966 | cat conftest.err >&5 | ||
21967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21968 | (exit $ac_status); } && { | ||
21969 | test -z "$ac_c_werror_flag" || | ||
21970 | test ! -s conftest.err | ||
21971 | } && test -s conftest$ac_exeext && | ||
21972 | $as_test_x conftest$ac_exeext; then | ||
21973 | |||
21974 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21975 | echo "${ECHO_T}yes" >&6; } | ||
21976 | |||
21977 | else | ||
21978 | echo "$as_me: failed program was:" >&5 | ||
21979 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21980 | |||
21981 | |||
21982 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21983 | echo "${ECHO_T}no" >&6; } | ||
21984 | saved_LIBS="$LIBS" | ||
21985 | LIBS="$LIBS -ldl" | ||
21986 | { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5 | ||
21987 | echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; } | ||
21988 | cat >conftest.$ac_ext <<_ACEOF | ||
21989 | /* confdefs.h. */ | ||
21990 | _ACEOF | ||
21991 | cat confdefs.h >>conftest.$ac_ext | ||
21992 | cat >>conftest.$ac_ext <<_ACEOF | ||
21993 | /* end confdefs.h. */ | ||
21994 | #include <openssl/evp.h> | ||
21995 | int | ||
21996 | main () | ||
21997 | { | ||
21998 | SSLeay_add_all_algorithms(); | ||
21999 | ; | ||
22000 | return 0; | ||
22001 | } | ||
22002 | _ACEOF | ||
22003 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22004 | if { (ac_try="$ac_link" | ||
22005 | case "(($ac_try" in | ||
22006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22007 | *) ac_try_echo=$ac_try;; | ||
22008 | esac | ||
22009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22010 | (eval "$ac_link") 2>conftest.er1 | ||
22011 | ac_status=$? | ||
22012 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22013 | rm -f conftest.er1 | ||
22014 | cat conftest.err >&5 | ||
22015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22016 | (exit $ac_status); } && { | ||
22017 | test -z "$ac_c_werror_flag" || | ||
22018 | test ! -s conftest.err | ||
22019 | } && test -s conftest$ac_exeext && | ||
22020 | $as_test_x conftest$ac_exeext; then | ||
22021 | |||
22022 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22023 | echo "${ECHO_T}yes" >&6; } | ||
22024 | |||
22025 | else | ||
22026 | echo "$as_me: failed program was:" >&5 | ||
22027 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22028 | |||
22029 | |||
22030 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22031 | echo "${ECHO_T}no" >&6; } | ||
22032 | LIBS="$saved_LIBS" | ||
22033 | |||
22034 | |||
22035 | fi | ||
22036 | |||
22037 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22038 | conftest$ac_exeext conftest.$ac_ext | ||
22039 | |||
22040 | |||
22041 | fi | ||
22042 | |||
22043 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22044 | conftest$ac_exeext conftest.$ac_ext | ||
22045 | |||
22046 | |||
22047 | |||
22048 | |||
22049 | |||
22050 | |||
22051 | |||
22052 | |||
22053 | |||
22054 | |||
22055 | |||
22056 | for ac_func in \ | ||
22057 | BN_is_prime_ex \ | ||
22058 | DSA_generate_parameters_ex \ | ||
22059 | EVP_DigestInit_ex \ | ||
22060 | EVP_DigestFinal_ex \ | ||
22061 | EVP_MD_CTX_init \ | ||
22062 | EVP_MD_CTX_cleanup \ | ||
22063 | EVP_MD_CTX_copy_ex \ | ||
22064 | HMAC_CTX_init \ | ||
22065 | RSA_generate_key_ex \ | ||
22066 | RSA_get_default_method \ | ||
22067 | |||
22068 | do | ||
22069 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22070 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22071 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
22072 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22074 | else | ||
22075 | cat >conftest.$ac_ext <<_ACEOF | ||
22076 | /* confdefs.h. */ | ||
22077 | _ACEOF | ||
22078 | cat confdefs.h >>conftest.$ac_ext | ||
22079 | cat >>conftest.$ac_ext <<_ACEOF | ||
22080 | /* end confdefs.h. */ | ||
22081 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22082 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22083 | #define $ac_func innocuous_$ac_func | ||
22084 | |||
22085 | /* System header to define __stub macros and hopefully few prototypes, | ||
22086 | which can conflict with char $ac_func (); below. | ||
22087 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22088 | <limits.h> exists even on freestanding compilers. */ | ||
22089 | |||
22090 | #ifdef __STDC__ | ||
22091 | # include <limits.h> | ||
22092 | #else | ||
22093 | # include <assert.h> | ||
22094 | #endif | ||
22095 | |||
22096 | #undef $ac_func | ||
22097 | |||
22098 | /* Override any GCC internal prototype to avoid an error. | ||
22099 | Use char because int might match the return type of a GCC | ||
22100 | builtin and then its argument prototype would still apply. */ | ||
22101 | #ifdef __cplusplus | ||
22102 | extern "C" | ||
22103 | #endif | ||
22104 | char $ac_func (); | ||
22105 | /* The GNU C library defines this for functions which it implements | ||
22106 | to always fail with ENOSYS. Some functions are actually named | ||
22107 | something starting with __ and the normal name is an alias. */ | ||
22108 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
22109 | choke me | ||
22110 | #endif | ||
22111 | |||
22112 | int | ||
22113 | main () | ||
22114 | { | ||
22115 | return $ac_func (); | ||
22116 | ; | ||
22117 | return 0; | ||
22118 | } | ||
22119 | _ACEOF | ||
22120 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22121 | if { (ac_try="$ac_link" | ||
22122 | case "(($ac_try" in | ||
22123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22124 | *) ac_try_echo=$ac_try;; | ||
22125 | esac | ||
22126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22127 | (eval "$ac_link") 2>conftest.er1 | ||
22128 | ac_status=$? | ||
22129 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22130 | rm -f conftest.er1 | ||
22131 | cat conftest.err >&5 | ||
22132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22133 | (exit $ac_status); } && { | ||
22134 | test -z "$ac_c_werror_flag" || | ||
22135 | test ! -s conftest.err | ||
22136 | } && test -s conftest$ac_exeext && | ||
22137 | $as_test_x conftest$ac_exeext; then | ||
22138 | eval "$as_ac_var=yes" | ||
22139 | else | ||
22140 | echo "$as_me: failed program was:" >&5 | ||
22141 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22142 | |||
22143 | eval "$as_ac_var=no" | ||
22144 | fi | ||
22145 | |||
22146 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22147 | conftest$ac_exeext conftest.$ac_ext | ||
22148 | fi | ||
22149 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
22150 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22151 | echo "${ECHO_T}$ac_res" >&6; } | ||
22152 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22153 | cat >>confdefs.h <<_ACEOF | ||
22154 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22155 | _ACEOF | ||
22156 | |||
22157 | fi | ||
22158 | done | ||
22159 | |||
22160 | |||
22161 | if test "x$openssl_engine" = "xyes" ; then | ||
22162 | { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5 | ||
22163 | echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; } | ||
22164 | cat >conftest.$ac_ext <<_ACEOF | ||
22165 | /* confdefs.h. */ | ||
22166 | _ACEOF | ||
22167 | cat confdefs.h >>conftest.$ac_ext | ||
22168 | cat >>conftest.$ac_ext <<_ACEOF | ||
22169 | /* end confdefs.h. */ | ||
22170 | |||
22171 | #include <openssl/engine.h> | ||
22172 | |||
22173 | int | ||
22174 | main () | ||
22175 | { | ||
22176 | |||
22177 | ENGINE_load_builtin_engines(); | ||
22178 | ENGINE_register_all_complete(); | ||
22179 | |||
22180 | ; | ||
22181 | return 0; | ||
22182 | } | ||
22183 | _ACEOF | ||
22184 | rm -f conftest.$ac_objext | ||
22185 | if { (ac_try="$ac_compile" | ||
22186 | case "(($ac_try" in | ||
22187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22188 | *) ac_try_echo=$ac_try;; | ||
22189 | esac | ||
22190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22191 | (eval "$ac_compile") 2>conftest.er1 | ||
22192 | ac_status=$? | ||
22193 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22194 | rm -f conftest.er1 | ||
22195 | cat conftest.err >&5 | ||
22196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22197 | (exit $ac_status); } && { | ||
22198 | test -z "$ac_c_werror_flag" || | ||
22199 | test ! -s conftest.err | ||
22200 | } && test -s conftest.$ac_objext; then | ||
22201 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22202 | echo "${ECHO_T}yes" >&6; } | ||
22203 | |||
22204 | cat >>confdefs.h <<\_ACEOF | ||
22205 | #define USE_OPENSSL_ENGINE 1 | ||
22206 | _ACEOF | ||
22207 | |||
22208 | |||
22209 | else | ||
22210 | echo "$as_me: failed program was:" >&5 | ||
22211 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22212 | |||
22213 | { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5 | ||
22214 | echo "$as_me: error: OpenSSL ENGINE support not found" >&2;} | ||
22215 | { (exit 1); exit 1; }; } | ||
22216 | |||
22217 | fi | ||
22218 | |||
22219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22220 | fi | ||
22221 | |||
22222 | # Check for OpenSSL without EVP_aes_{192,256}_cbc | ||
22223 | { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5 | ||
22224 | echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; } | ||
22225 | cat >conftest.$ac_ext <<_ACEOF | ||
22226 | /* confdefs.h. */ | ||
22227 | _ACEOF | ||
22228 | cat confdefs.h >>conftest.$ac_ext | ||
22229 | cat >>conftest.$ac_ext <<_ACEOF | ||
22230 | /* end confdefs.h. */ | ||
22231 | |||
22232 | #include <string.h> | ||
22233 | #include <openssl/evp.h> | ||
22234 | |||
22235 | int | ||
22236 | main () | ||
22237 | { | ||
22238 | |||
22239 | exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL); | ||
22240 | |||
22241 | ; | ||
22242 | return 0; | ||
22243 | } | ||
22244 | _ACEOF | ||
22245 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22246 | if { (ac_try="$ac_link" | ||
22247 | case "(($ac_try" in | ||
22248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22249 | *) ac_try_echo=$ac_try;; | ||
22250 | esac | ||
22251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22252 | (eval "$ac_link") 2>conftest.er1 | ||
22253 | ac_status=$? | ||
22254 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22255 | rm -f conftest.er1 | ||
22256 | cat conftest.err >&5 | ||
22257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22258 | (exit $ac_status); } && { | ||
22259 | test -z "$ac_c_werror_flag" || | ||
22260 | test ! -s conftest.err | ||
22261 | } && test -s conftest$ac_exeext && | ||
22262 | $as_test_x conftest$ac_exeext; then | ||
22263 | |||
22264 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22265 | echo "${ECHO_T}no" >&6; } | ||
22266 | |||
22267 | else | ||
22268 | echo "$as_me: failed program was:" >&5 | ||
22269 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22270 | |||
22271 | |||
22272 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22273 | echo "${ECHO_T}yes" >&6; } | ||
22274 | |||
22275 | cat >>confdefs.h <<\_ACEOF | ||
22276 | #define OPENSSL_LOBOTOMISED_AES 1 | ||
22277 | _ACEOF | ||
22278 | |||
22279 | |||
22280 | |||
22281 | fi | ||
22282 | |||
22283 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22284 | conftest$ac_exeext conftest.$ac_ext | ||
22285 | |||
22286 | # Check for OpenSSL with EVP_aes_*ctr | ||
22287 | { echo "$as_me:$LINENO: checking whether OpenSSL has AES CTR via EVP" >&5 | ||
22288 | echo $ECHO_N "checking whether OpenSSL has AES CTR via EVP... $ECHO_C" >&6; } | ||
22289 | cat >conftest.$ac_ext <<_ACEOF | ||
22290 | /* confdefs.h. */ | ||
22291 | _ACEOF | ||
22292 | cat confdefs.h >>conftest.$ac_ext | ||
22293 | cat >>conftest.$ac_ext <<_ACEOF | ||
22294 | /* end confdefs.h. */ | ||
22295 | |||
22296 | #include <string.h> | ||
22297 | #include <openssl/evp.h> | ||
22298 | |||
22299 | int | ||
22300 | main () | ||
22301 | { | ||
22302 | |||
22303 | exit(EVP_aes_128_ctr() == NULL || | ||
22304 | EVP_aes_192_cbc() == NULL || | ||
22305 | EVP_aes_256_cbc() == NULL); | ||
22306 | |||
22307 | ; | ||
22308 | return 0; | ||
22309 | } | ||
22310 | _ACEOF | ||
22311 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22312 | if { (ac_try="$ac_link" | ||
22313 | case "(($ac_try" in | ||
22314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22315 | *) ac_try_echo=$ac_try;; | ||
22316 | esac | ||
22317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22318 | (eval "$ac_link") 2>conftest.er1 | ||
22319 | ac_status=$? | ||
22320 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22321 | rm -f conftest.er1 | ||
22322 | cat conftest.err >&5 | ||
22323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22324 | (exit $ac_status); } && { | ||
22325 | test -z "$ac_c_werror_flag" || | ||
22326 | test ! -s conftest.err | ||
22327 | } && test -s conftest$ac_exeext && | ||
22328 | $as_test_x conftest$ac_exeext; then | ||
22329 | |||
22330 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22331 | echo "${ECHO_T}yes" >&6; } | ||
22332 | |||
22333 | cat >>confdefs.h <<\_ACEOF | ||
22334 | #define OPENSSL_HAVE_EVPCTR 1 | ||
22335 | _ACEOF | ||
22336 | |||
22337 | |||
22338 | else | ||
22339 | echo "$as_me: failed program was:" >&5 | ||
22340 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22341 | |||
22342 | |||
22343 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22344 | echo "${ECHO_T}no" >&6; } | ||
22345 | |||
22346 | |||
22347 | fi | ||
22348 | |||
22349 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22350 | conftest$ac_exeext conftest.$ac_ext | ||
22351 | |||
22352 | # Check for OpenSSL with EVP_aes_*gcm | ||
22353 | { echo "$as_me:$LINENO: checking whether OpenSSL has AES GCM via EVP" >&5 | ||
22354 | echo $ECHO_N "checking whether OpenSSL has AES GCM via EVP... $ECHO_C" >&6; } | ||
22355 | cat >conftest.$ac_ext <<_ACEOF | ||
22356 | /* confdefs.h. */ | ||
22357 | _ACEOF | ||
22358 | cat confdefs.h >>conftest.$ac_ext | ||
22359 | cat >>conftest.$ac_ext <<_ACEOF | ||
22360 | /* end confdefs.h. */ | ||
22361 | |||
22362 | #include <string.h> | ||
22363 | #include <openssl/evp.h> | ||
22364 | |||
22365 | int | ||
22366 | main () | ||
22367 | { | ||
22368 | |||
22369 | exit(EVP_aes_128_gcm() == NULL || | ||
22370 | EVP_aes_256_gcm() == NULL || | ||
22371 | EVP_CTRL_GCM_SET_IV_FIXED == 0 || | ||
22372 | EVP_CTRL_GCM_IV_GEN == 0 || | ||
22373 | EVP_CTRL_GCM_SET_TAG == 0 || | ||
22374 | EVP_CTRL_GCM_GET_TAG == 0 || | ||
22375 | EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0); | ||
22376 | |||
22377 | ; | ||
22378 | return 0; | ||
22379 | } | ||
22380 | _ACEOF | ||
22381 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22382 | if { (ac_try="$ac_link" | ||
22383 | case "(($ac_try" in | ||
22384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22385 | *) ac_try_echo=$ac_try;; | ||
22386 | esac | ||
22387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22388 | (eval "$ac_link") 2>conftest.er1 | ||
22389 | ac_status=$? | ||
22390 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22391 | rm -f conftest.er1 | ||
22392 | cat conftest.err >&5 | ||
22393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22394 | (exit $ac_status); } && { | ||
22395 | test -z "$ac_c_werror_flag" || | ||
22396 | test ! -s conftest.err | ||
22397 | } && test -s conftest$ac_exeext && | ||
22398 | $as_test_x conftest$ac_exeext; then | ||
22399 | |||
22400 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22401 | echo "${ECHO_T}yes" >&6; } | ||
22402 | |||
22403 | cat >>confdefs.h <<\_ACEOF | ||
22404 | #define OPENSSL_HAVE_EVPGCM 1 | ||
22405 | _ACEOF | ||
22406 | |||
22407 | |||
22408 | else | ||
22409 | echo "$as_me: failed program was:" >&5 | ||
22410 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22411 | |||
22412 | |||
22413 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22414 | echo "${ECHO_T}no" >&6; } | ||
22415 | unsupported_algorithms="$unsupported_cipers \ | ||
22416 | aes128-gcm@openssh.com \ | ||
22417 | aes256-gcm@openssh.com" | ||
22418 | |||
22419 | |||
22420 | fi | ||
22421 | |||
22422 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22423 | conftest$ac_exeext conftest.$ac_ext | ||
22424 | |||
22425 | { echo "$as_me:$LINENO: checking for library containing EVP_CIPHER_CTX_ctrl" >&5 | ||
22426 | echo $ECHO_N "checking for library containing EVP_CIPHER_CTX_ctrl... $ECHO_C" >&6; } | ||
22427 | if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then | ||
22428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22429 | else | ||
22430 | ac_func_search_save_LIBS=$LIBS | ||
22431 | cat >conftest.$ac_ext <<_ACEOF | ||
22432 | /* confdefs.h. */ | ||
22433 | _ACEOF | ||
22434 | cat confdefs.h >>conftest.$ac_ext | ||
22435 | cat >>conftest.$ac_ext <<_ACEOF | ||
22436 | /* end confdefs.h. */ | ||
22437 | |||
22438 | /* Override any GCC internal prototype to avoid an error. | ||
22439 | Use char because int might match the return type of a GCC | ||
22440 | builtin and then its argument prototype would still apply. */ | ||
22441 | #ifdef __cplusplus | ||
22442 | extern "C" | ||
22443 | #endif | ||
22444 | char EVP_CIPHER_CTX_ctrl (); | ||
22445 | int | ||
22446 | main () | ||
22447 | { | ||
22448 | return EVP_CIPHER_CTX_ctrl (); | ||
22449 | ; | ||
22450 | return 0; | ||
22451 | } | ||
22452 | _ACEOF | ||
22453 | for ac_lib in '' crypto; do | ||
22454 | if test -z "$ac_lib"; then | ||
22455 | ac_res="none required" | ||
22456 | else | ||
22457 | ac_res=-l$ac_lib | ||
22458 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
22459 | fi | ||
22460 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22461 | if { (ac_try="$ac_link" | ||
22462 | case "(($ac_try" in | ||
22463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22464 | *) ac_try_echo=$ac_try;; | ||
22465 | esac | ||
22466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22467 | (eval "$ac_link") 2>conftest.er1 | ||
22468 | ac_status=$? | ||
22469 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22470 | rm -f conftest.er1 | ||
22471 | cat conftest.err >&5 | ||
22472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22473 | (exit $ac_status); } && { | ||
22474 | test -z "$ac_c_werror_flag" || | ||
22475 | test ! -s conftest.err | ||
22476 | } && test -s conftest$ac_exeext && | ||
22477 | $as_test_x conftest$ac_exeext; then | ||
22478 | ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res | ||
22479 | else | ||
22480 | echo "$as_me: failed program was:" >&5 | ||
22481 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22482 | |||
22483 | |||
22484 | fi | ||
22485 | |||
22486 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22487 | conftest$ac_exeext | ||
22488 | if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then | ||
22489 | break | ||
22490 | fi | ||
22491 | done | ||
22492 | if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then | ||
22493 | : | ||
22494 | else | ||
22495 | ac_cv_search_EVP_CIPHER_CTX_ctrl=no | ||
22496 | fi | ||
22497 | rm conftest.$ac_ext | ||
22498 | LIBS=$ac_func_search_save_LIBS | ||
22499 | fi | ||
22500 | { echo "$as_me:$LINENO: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5 | ||
22501 | echo "${ECHO_T}$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; } | ||
22502 | ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl | ||
22503 | if test "$ac_res" != no; then | ||
22504 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
22505 | |||
22506 | cat >>confdefs.h <<\_ACEOF | ||
22507 | #define HAVE_EVP_CIPHER_CTX_CTRL 1 | ||
22508 | _ACEOF | ||
22509 | |||
22510 | fi | ||
22511 | |||
22512 | |||
22513 | { echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5 | ||
22514 | echo $ECHO_N "checking if EVP_DigestUpdate returns an int... $ECHO_C" >&6; } | ||
22515 | cat >conftest.$ac_ext <<_ACEOF | ||
22516 | /* confdefs.h. */ | ||
22517 | _ACEOF | ||
22518 | cat confdefs.h >>conftest.$ac_ext | ||
22519 | cat >>conftest.$ac_ext <<_ACEOF | ||
22520 | /* end confdefs.h. */ | ||
22521 | |||
22522 | #include <string.h> | ||
22523 | #include <openssl/evp.h> | ||
22524 | |||
22525 | int | ||
22526 | main () | ||
22527 | { | ||
22528 | |||
22529 | if(EVP_DigestUpdate(NULL, NULL,0)) | ||
22530 | exit(0); | ||
22531 | |||
22532 | ; | ||
22533 | return 0; | ||
22534 | } | ||
22535 | _ACEOF | ||
22536 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22537 | if { (ac_try="$ac_link" | ||
22538 | case "(($ac_try" in | ||
22539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22540 | *) ac_try_echo=$ac_try;; | ||
22541 | esac | ||
22542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22543 | (eval "$ac_link") 2>conftest.er1 | ||
22544 | ac_status=$? | ||
22545 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22546 | rm -f conftest.er1 | ||
22547 | cat conftest.err >&5 | ||
22548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22549 | (exit $ac_status); } && { | ||
22550 | test -z "$ac_c_werror_flag" || | ||
22551 | test ! -s conftest.err | ||
22552 | } && test -s conftest$ac_exeext && | ||
22553 | $as_test_x conftest$ac_exeext; then | ||
22554 | |||
22555 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22556 | echo "${ECHO_T}yes" >&6; } | ||
22557 | |||
22558 | else | ||
22559 | echo "$as_me: failed program was:" >&5 | ||
22560 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22561 | |||
22562 | |||
22563 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22564 | echo "${ECHO_T}no" >&6; } | ||
22565 | |||
22566 | cat >>confdefs.h <<\_ACEOF | ||
22567 | #define OPENSSL_EVP_DIGESTUPDATE_VOID 1 | ||
22568 | _ACEOF | ||
22569 | |||
22570 | |||
22571 | |||
22572 | fi | ||
22573 | |||
22574 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22575 | conftest$ac_exeext conftest.$ac_ext | ||
22576 | |||
22577 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
22578 | # because the system crypt() is more featureful. | ||
22579 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
22580 | |||
22581 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
22582 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
22583 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
22584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22585 | else | ||
22586 | ac_check_lib_save_LIBS=$LIBS | ||
22587 | LIBS="-lcrypt $LIBS" | ||
22588 | cat >conftest.$ac_ext <<_ACEOF | ||
22589 | /* confdefs.h. */ | ||
22590 | _ACEOF | ||
22591 | cat confdefs.h >>conftest.$ac_ext | ||
22592 | cat >>conftest.$ac_ext <<_ACEOF | ||
22593 | /* end confdefs.h. */ | ||
22594 | |||
22595 | /* Override any GCC internal prototype to avoid an error. | ||
22596 | Use char because int might match the return type of a GCC | ||
22597 | builtin and then its argument prototype would still apply. */ | ||
22598 | #ifdef __cplusplus | ||
22599 | extern "C" | ||
22600 | #endif | ||
22601 | char crypt (); | ||
22602 | int | ||
22603 | main () | ||
22604 | { | ||
22605 | return crypt (); | ||
22606 | ; | ||
22607 | return 0; | ||
22608 | } | ||
22609 | _ACEOF | ||
22610 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22611 | if { (ac_try="$ac_link" | ||
22612 | case "(($ac_try" in | ||
22613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22614 | *) ac_try_echo=$ac_try;; | ||
22615 | esac | ||
22616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22617 | (eval "$ac_link") 2>conftest.er1 | ||
22618 | ac_status=$? | ||
22619 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22620 | rm -f conftest.er1 | ||
22621 | cat conftest.err >&5 | ||
22622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22623 | (exit $ac_status); } && { | ||
22624 | test -z "$ac_c_werror_flag" || | ||
22625 | test ! -s conftest.err | ||
22626 | } && test -s conftest$ac_exeext && | ||
22627 | $as_test_x conftest$ac_exeext; then | ||
22628 | ac_cv_lib_crypt_crypt=yes | ||
22629 | else | ||
22630 | echo "$as_me: failed program was:" >&5 | ||
22631 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22632 | |||
22633 | ac_cv_lib_crypt_crypt=no | ||
22634 | fi | ||
22635 | |||
22636 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22637 | conftest$ac_exeext conftest.$ac_ext | ||
22638 | LIBS=$ac_check_lib_save_LIBS | ||
22639 | fi | ||
22640 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
22641 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
22642 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
22643 | cat >>confdefs.h <<_ACEOF | ||
22644 | #define HAVE_LIBCRYPT 1 | ||
22645 | _ACEOF | ||
22646 | |||
22647 | LIBS="-lcrypt $LIBS" | ||
22648 | |||
22649 | fi | ||
22650 | |||
22651 | fi | ||
22652 | |||
22653 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
22654 | # version in OpenSSL. | ||
22655 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
22656 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
22657 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
22658 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
22659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22660 | else | ||
22661 | ac_check_lib_save_LIBS=$LIBS | ||
22662 | LIBS="-lcrypt $LIBS" | ||
22663 | cat >conftest.$ac_ext <<_ACEOF | ||
22664 | /* confdefs.h. */ | ||
22665 | _ACEOF | ||
22666 | cat confdefs.h >>conftest.$ac_ext | ||
22667 | cat >>conftest.$ac_ext <<_ACEOF | ||
22668 | /* end confdefs.h. */ | ||
22669 | |||
22670 | /* Override any GCC internal prototype to avoid an error. | ||
22671 | Use char because int might match the return type of a GCC | ||
22672 | builtin and then its argument prototype would still apply. */ | ||
22673 | #ifdef __cplusplus | ||
22674 | extern "C" | ||
22675 | #endif | ||
22676 | char crypt (); | ||
22677 | int | ||
22678 | main () | ||
22679 | { | ||
22680 | return crypt (); | ||
22681 | ; | ||
22682 | return 0; | ||
22683 | } | ||
22684 | _ACEOF | ||
22685 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22686 | if { (ac_try="$ac_link" | ||
22687 | case "(($ac_try" in | ||
22688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22689 | *) ac_try_echo=$ac_try;; | ||
22690 | esac | ||
22691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22692 | (eval "$ac_link") 2>conftest.er1 | ||
22693 | ac_status=$? | ||
22694 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22695 | rm -f conftest.er1 | ||
22696 | cat conftest.err >&5 | ||
22697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22698 | (exit $ac_status); } && { | ||
22699 | test -z "$ac_c_werror_flag" || | ||
22700 | test ! -s conftest.err | ||
22701 | } && test -s conftest$ac_exeext && | ||
22702 | $as_test_x conftest$ac_exeext; then | ||
22703 | ac_cv_lib_crypt_crypt=yes | ||
22704 | else | ||
22705 | echo "$as_me: failed program was:" >&5 | ||
22706 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22707 | |||
22708 | ac_cv_lib_crypt_crypt=no | ||
22709 | fi | ||
22710 | |||
22711 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22712 | conftest$ac_exeext conftest.$ac_ext | ||
22713 | LIBS=$ac_check_lib_save_LIBS | ||
22714 | fi | ||
22715 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
22716 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
22717 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
22718 | LIBS="$LIBS -lcrypt" | ||
22719 | fi | ||
22720 | |||
22721 | fi | ||
22722 | |||
22723 | |||
22724 | for ac_func in crypt DES_crypt | ||
22725 | do | ||
22726 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22727 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22728 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
22729 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22731 | else | ||
22732 | cat >conftest.$ac_ext <<_ACEOF | ||
22733 | /* confdefs.h. */ | ||
22734 | _ACEOF | ||
22735 | cat confdefs.h >>conftest.$ac_ext | ||
22736 | cat >>conftest.$ac_ext <<_ACEOF | ||
22737 | /* end confdefs.h. */ | ||
22738 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22739 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22740 | #define $ac_func innocuous_$ac_func | ||
22741 | |||
22742 | /* System header to define __stub macros and hopefully few prototypes, | ||
22743 | which can conflict with char $ac_func (); below. | ||
22744 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22745 | <limits.h> exists even on freestanding compilers. */ | ||
22746 | |||
22747 | #ifdef __STDC__ | ||
22748 | # include <limits.h> | ||
22749 | #else | ||
22750 | # include <assert.h> | ||
22751 | #endif | ||
22752 | |||
22753 | #undef $ac_func | ||
22754 | |||
22755 | /* Override any GCC internal prototype to avoid an error. | ||
22756 | Use char because int might match the return type of a GCC | ||
22757 | builtin and then its argument prototype would still apply. */ | ||
22758 | #ifdef __cplusplus | ||
22759 | extern "C" | ||
22760 | #endif | ||
22761 | char $ac_func (); | ||
22762 | /* The GNU C library defines this for functions which it implements | ||
22763 | to always fail with ENOSYS. Some functions are actually named | ||
22764 | something starting with __ and the normal name is an alias. */ | ||
22765 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
22766 | choke me | ||
22767 | #endif | ||
22768 | |||
22769 | int | ||
22770 | main () | ||
22771 | { | ||
22772 | return $ac_func (); | ||
22773 | ; | ||
22774 | return 0; | ||
22775 | } | ||
22776 | _ACEOF | ||
22777 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22778 | if { (ac_try="$ac_link" | ||
22779 | case "(($ac_try" in | ||
22780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22781 | *) ac_try_echo=$ac_try;; | ||
22782 | esac | ||
22783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22784 | (eval "$ac_link") 2>conftest.er1 | ||
22785 | ac_status=$? | ||
22786 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22787 | rm -f conftest.er1 | ||
22788 | cat conftest.err >&5 | ||
22789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22790 | (exit $ac_status); } && { | ||
22791 | test -z "$ac_c_werror_flag" || | ||
22792 | test ! -s conftest.err | ||
22793 | } && test -s conftest$ac_exeext && | ||
22794 | $as_test_x conftest$ac_exeext; then | ||
22795 | eval "$as_ac_var=yes" | ||
22796 | else | ||
22797 | echo "$as_me: failed program was:" >&5 | ||
22798 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22799 | |||
22800 | eval "$as_ac_var=no" | ||
22801 | fi | ||
22802 | |||
22803 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22804 | conftest$ac_exeext conftest.$ac_ext | ||
22805 | fi | ||
22806 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
22807 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22808 | echo "${ECHO_T}$ac_res" >&6; } | ||
22809 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22810 | cat >>confdefs.h <<_ACEOF | ||
22811 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22812 | _ACEOF | ||
22813 | |||
22814 | fi | ||
22815 | done | ||
22816 | |||
22817 | |||
22818 | # Search for SHA256 support in libc and/or OpenSSL | ||
22819 | |||
22820 | |||
22821 | for ac_func in SHA256_Update EVP_sha256 | ||
22822 | do | ||
22823 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22824 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22825 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
22826 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22828 | else | ||
22829 | cat >conftest.$ac_ext <<_ACEOF | ||
22830 | /* confdefs.h. */ | ||
22831 | _ACEOF | ||
22832 | cat confdefs.h >>conftest.$ac_ext | ||
22833 | cat >>conftest.$ac_ext <<_ACEOF | ||
22834 | /* end confdefs.h. */ | ||
22835 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22836 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22837 | #define $ac_func innocuous_$ac_func | ||
22838 | |||
22839 | /* System header to define __stub macros and hopefully few prototypes, | ||
22840 | which can conflict with char $ac_func (); below. | ||
22841 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22842 | <limits.h> exists even on freestanding compilers. */ | ||
22843 | |||
22844 | #ifdef __STDC__ | ||
22845 | # include <limits.h> | ||
22846 | #else | ||
22847 | # include <assert.h> | ||
22848 | #endif | ||
22849 | |||
22850 | #undef $ac_func | ||
22851 | |||
22852 | /* Override any GCC internal prototype to avoid an error. | ||
22853 | Use char because int might match the return type of a GCC | ||
22854 | builtin and then its argument prototype would still apply. */ | ||
22855 | #ifdef __cplusplus | ||
22856 | extern "C" | ||
22857 | #endif | ||
22858 | char $ac_func (); | ||
22859 | /* The GNU C library defines this for functions which it implements | ||
22860 | to always fail with ENOSYS. Some functions are actually named | ||
22861 | something starting with __ and the normal name is an alias. */ | ||
22862 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
22863 | choke me | ||
22864 | #endif | ||
22865 | |||
22866 | int | ||
22867 | main () | ||
22868 | { | ||
22869 | return $ac_func (); | ||
22870 | ; | ||
22871 | return 0; | ||
22872 | } | ||
22873 | _ACEOF | ||
22874 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22875 | if { (ac_try="$ac_link" | ||
22876 | case "(($ac_try" in | ||
22877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22878 | *) ac_try_echo=$ac_try;; | ||
22879 | esac | ||
22880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22881 | (eval "$ac_link") 2>conftest.er1 | ||
22882 | ac_status=$? | ||
22883 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22884 | rm -f conftest.er1 | ||
22885 | cat conftest.err >&5 | ||
22886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22887 | (exit $ac_status); } && { | ||
22888 | test -z "$ac_c_werror_flag" || | ||
22889 | test ! -s conftest.err | ||
22890 | } && test -s conftest$ac_exeext && | ||
22891 | $as_test_x conftest$ac_exeext; then | ||
22892 | eval "$as_ac_var=yes" | ||
22893 | else | ||
22894 | echo "$as_me: failed program was:" >&5 | ||
22895 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22896 | |||
22897 | eval "$as_ac_var=no" | ||
22898 | fi | ||
22899 | |||
22900 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22901 | conftest$ac_exeext conftest.$ac_ext | ||
22902 | fi | ||
22903 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
22904 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22905 | echo "${ECHO_T}$ac_res" >&6; } | ||
22906 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22907 | cat >>confdefs.h <<_ACEOF | ||
22908 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22909 | _ACEOF | ||
22910 | |||
22911 | else | ||
22912 | unsupported_algorithms="$unsupported_algorithms \ | ||
22913 | hmac-sha2-256 \ | ||
22914 | hmac-sha2-512 \ | ||
22915 | diffie-hellman-group-exchange-sha256 \ | ||
22916 | hmac-sha2-256-etm@openssh.com \ | ||
22917 | hmac-sha2-512-etm@openssh.com" | ||
22918 | |||
22919 | |||
22920 | fi | ||
22921 | done | ||
22922 | |||
22923 | # Search for RIPE-MD support in OpenSSL | ||
22924 | |||
22925 | for ac_func in EVP_ripemd160 | ||
22926 | do | ||
22927 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22928 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22929 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
22930 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22932 | else | ||
22933 | cat >conftest.$ac_ext <<_ACEOF | ||
22934 | /* confdefs.h. */ | ||
22935 | _ACEOF | ||
22936 | cat confdefs.h >>conftest.$ac_ext | ||
22937 | cat >>conftest.$ac_ext <<_ACEOF | ||
22938 | /* end confdefs.h. */ | ||
22939 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22940 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22941 | #define $ac_func innocuous_$ac_func | ||
22942 | |||
22943 | /* System header to define __stub macros and hopefully few prototypes, | ||
22944 | which can conflict with char $ac_func (); below. | ||
22945 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22946 | <limits.h> exists even on freestanding compilers. */ | ||
22947 | |||
22948 | #ifdef __STDC__ | ||
22949 | # include <limits.h> | ||
22950 | #else | ||
22951 | # include <assert.h> | ||
22952 | #endif | ||
22953 | |||
22954 | #undef $ac_func | ||
22955 | |||
22956 | /* Override any GCC internal prototype to avoid an error. | ||
22957 | Use char because int might match the return type of a GCC | ||
22958 | builtin and then its argument prototype would still apply. */ | ||
22959 | #ifdef __cplusplus | ||
22960 | extern "C" | ||
22961 | #endif | ||
22962 | char $ac_func (); | ||
22963 | /* The GNU C library defines this for functions which it implements | ||
22964 | to always fail with ENOSYS. Some functions are actually named | ||
22965 | something starting with __ and the normal name is an alias. */ | ||
22966 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
22967 | choke me | ||
22968 | #endif | ||
22969 | |||
22970 | int | ||
22971 | main () | ||
22972 | { | ||
22973 | return $ac_func (); | ||
22974 | ; | ||
22975 | return 0; | ||
22976 | } | ||
22977 | _ACEOF | ||
22978 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22979 | if { (ac_try="$ac_link" | ||
22980 | case "(($ac_try" in | ||
22981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22982 | *) ac_try_echo=$ac_try;; | ||
22983 | esac | ||
22984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22985 | (eval "$ac_link") 2>conftest.er1 | ||
22986 | ac_status=$? | ||
22987 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22988 | rm -f conftest.er1 | ||
22989 | cat conftest.err >&5 | ||
22990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22991 | (exit $ac_status); } && { | ||
22992 | test -z "$ac_c_werror_flag" || | ||
22993 | test ! -s conftest.err | ||
22994 | } && test -s conftest$ac_exeext && | ||
22995 | $as_test_x conftest$ac_exeext; then | ||
22996 | eval "$as_ac_var=yes" | ||
22997 | else | ||
22998 | echo "$as_me: failed program was:" >&5 | ||
22999 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23000 | |||
23001 | eval "$as_ac_var=no" | ||
23002 | fi | ||
23003 | |||
23004 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23005 | conftest$ac_exeext conftest.$ac_ext | ||
23006 | fi | ||
23007 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
23008 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
23009 | echo "${ECHO_T}$ac_res" >&6; } | ||
23010 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
23011 | cat >>confdefs.h <<_ACEOF | ||
23012 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
23013 | _ACEOF | ||
23014 | |||
23015 | else | ||
23016 | unsupported_algorithms="$unsupported_algorithms \ | ||
23017 | hmac-ripemd160 \ | ||
23018 | hmac-ripemd160@openssh.com \ | ||
23019 | hmac-ripemd160-etm@openssh.com" | ||
23020 | |||
23021 | |||
23022 | fi | ||
23023 | done | ||
23024 | |||
23025 | |||
23026 | # Check complete ECC support in OpenSSL | ||
23027 | { echo "$as_me:$LINENO: checking whether OpenSSL has NID_X9_62_prime256v1" >&5 | ||
23028 | echo $ECHO_N "checking whether OpenSSL has NID_X9_62_prime256v1... $ECHO_C" >&6; } | ||
23029 | cat >conftest.$ac_ext <<_ACEOF | ||
23030 | /* confdefs.h. */ | ||
23031 | _ACEOF | ||
23032 | cat confdefs.h >>conftest.$ac_ext | ||
23033 | cat >>conftest.$ac_ext <<_ACEOF | ||
23034 | /* end confdefs.h. */ | ||
23035 | |||
23036 | #include <openssl/ec.h> | ||
23037 | #include <openssl/ecdh.h> | ||
23038 | #include <openssl/ecdsa.h> | ||
23039 | #include <openssl/evp.h> | ||
23040 | #include <openssl/objects.h> | ||
23041 | #include <openssl/opensslv.h> | ||
23042 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ | ||
23043 | # error "OpenSSL < 0.9.8g has unreliable ECC code" | ||
23044 | #endif | ||
23045 | |||
23046 | int | ||
23047 | main () | ||
23048 | { | ||
23049 | |||
23050 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); | ||
23051 | const EVP_MD *m = EVP_sha256(); /* We need this too */ | ||
23052 | |||
23053 | ; | ||
23054 | return 0; | ||
23055 | } | ||
23056 | _ACEOF | ||
23057 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23058 | if { (ac_try="$ac_link" | ||
23059 | case "(($ac_try" in | ||
23060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23061 | *) ac_try_echo=$ac_try;; | ||
23062 | esac | ||
23063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23064 | (eval "$ac_link") 2>conftest.er1 | ||
23065 | ac_status=$? | ||
23066 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23067 | rm -f conftest.er1 | ||
23068 | cat conftest.err >&5 | ||
23069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23070 | (exit $ac_status); } && { | ||
23071 | test -z "$ac_c_werror_flag" || | ||
23072 | test ! -s conftest.err | ||
23073 | } && test -s conftest$ac_exeext && | ||
23074 | $as_test_x conftest$ac_exeext; then | ||
23075 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
23076 | echo "${ECHO_T}yes" >&6; } | ||
23077 | enable_nistp256=1 | ||
23078 | else | ||
23079 | echo "$as_me: failed program was:" >&5 | ||
23080 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23081 | |||
23082 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23083 | echo "${ECHO_T}no" >&6; } | ||
23084 | |||
23085 | fi | ||
23086 | |||
23087 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23088 | conftest$ac_exeext conftest.$ac_ext | ||
23089 | |||
23090 | { echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp384r1" >&5 | ||
23091 | echo $ECHO_N "checking whether OpenSSL has NID_secp384r1... $ECHO_C" >&6; } | ||
23092 | cat >conftest.$ac_ext <<_ACEOF | ||
23093 | /* confdefs.h. */ | ||
23094 | _ACEOF | ||
23095 | cat confdefs.h >>conftest.$ac_ext | ||
23096 | cat >>conftest.$ac_ext <<_ACEOF | ||
23097 | /* end confdefs.h. */ | ||
23098 | |||
23099 | #include <openssl/ec.h> | ||
23100 | #include <openssl/ecdh.h> | ||
23101 | #include <openssl/ecdsa.h> | ||
23102 | #include <openssl/evp.h> | ||
23103 | #include <openssl/objects.h> | ||
23104 | #include <openssl/opensslv.h> | ||
23105 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ | ||
23106 | # error "OpenSSL < 0.9.8g has unreliable ECC code" | ||
23107 | #endif | ||
23108 | |||
23109 | int | ||
23110 | main () | ||
23111 | { | ||
23112 | |||
23113 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1); | ||
23114 | const EVP_MD *m = EVP_sha384(); /* We need this too */ | ||
23115 | |||
23116 | ; | ||
23117 | return 0; | ||
23118 | } | ||
23119 | _ACEOF | ||
23120 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23121 | if { (ac_try="$ac_link" | ||
23122 | case "(($ac_try" in | ||
23123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23124 | *) ac_try_echo=$ac_try;; | ||
23125 | esac | ||
23126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23127 | (eval "$ac_link") 2>conftest.er1 | ||
23128 | ac_status=$? | ||
23129 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23130 | rm -f conftest.er1 | ||
23131 | cat conftest.err >&5 | ||
23132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23133 | (exit $ac_status); } && { | ||
23134 | test -z "$ac_c_werror_flag" || | ||
23135 | test ! -s conftest.err | ||
23136 | } && test -s conftest$ac_exeext && | ||
23137 | $as_test_x conftest$ac_exeext; then | ||
23138 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
23139 | echo "${ECHO_T}yes" >&6; } | ||
23140 | enable_nistp384=1 | ||
23141 | else | ||
23142 | echo "$as_me: failed program was:" >&5 | ||
23143 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23144 | |||
23145 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23146 | echo "${ECHO_T}no" >&6; } | ||
23147 | |||
23148 | fi | ||
23149 | |||
23150 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23151 | conftest$ac_exeext conftest.$ac_ext | ||
23152 | |||
23153 | { echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp521r1" >&5 | ||
23154 | echo $ECHO_N "checking whether OpenSSL has NID_secp521r1... $ECHO_C" >&6; } | ||
23155 | cat >conftest.$ac_ext <<_ACEOF | ||
23156 | /* confdefs.h. */ | ||
23157 | _ACEOF | ||
23158 | cat confdefs.h >>conftest.$ac_ext | ||
23159 | cat >>conftest.$ac_ext <<_ACEOF | ||
23160 | /* end confdefs.h. */ | ||
23161 | |||
23162 | #include <openssl/ec.h> | ||
23163 | #include <openssl/ecdh.h> | ||
23164 | #include <openssl/ecdsa.h> | ||
23165 | #include <openssl/evp.h> | ||
23166 | #include <openssl/objects.h> | ||
23167 | #include <openssl/opensslv.h> | ||
23168 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ | ||
23169 | # error "OpenSSL < 0.9.8g has unreliable ECC code" | ||
23170 | #endif | ||
23171 | |||
23172 | int | ||
23173 | main () | ||
23174 | { | ||
23175 | |||
23176 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); | ||
23177 | const EVP_MD *m = EVP_sha512(); /* We need this too */ | ||
23178 | |||
23179 | ; | ||
23180 | return 0; | ||
23181 | } | ||
23182 | _ACEOF | ||
23183 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23184 | if { (ac_try="$ac_link" | ||
23185 | case "(($ac_try" in | ||
23186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23187 | *) ac_try_echo=$ac_try;; | ||
23188 | esac | ||
23189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23190 | (eval "$ac_link") 2>conftest.er1 | ||
23191 | ac_status=$? | ||
23192 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23193 | rm -f conftest.er1 | ||
23194 | cat conftest.err >&5 | ||
23195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23196 | (exit $ac_status); } && { | ||
23197 | test -z "$ac_c_werror_flag" || | ||
23198 | test ! -s conftest.err | ||
23199 | } && test -s conftest$ac_exeext && | ||
23200 | $as_test_x conftest$ac_exeext; then | ||
23201 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
23202 | echo "${ECHO_T}yes" >&6; } | ||
23203 | { echo "$as_me:$LINENO: checking if OpenSSL's NID_secp521r1 is functional" >&5 | ||
23204 | echo $ECHO_N "checking if OpenSSL's NID_secp521r1 is functional... $ECHO_C" >&6; } | ||
23205 | if test "$cross_compiling" = yes; then | ||
23206 | { echo "$as_me:$LINENO: WARNING: cross-compiling: assuming yes" >&5 | ||
23207 | echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;} | ||
23208 | enable_nistp521=1 | ||
23209 | |||
23210 | else | ||
23211 | cat >conftest.$ac_ext <<_ACEOF | ||
23212 | /* confdefs.h. */ | ||
23213 | _ACEOF | ||
23214 | cat confdefs.h >>conftest.$ac_ext | ||
23215 | cat >>conftest.$ac_ext <<_ACEOF | ||
23216 | /* end confdefs.h. */ | ||
23217 | |||
23218 | #include <openssl/ec.h> | ||
23219 | #include <openssl/ecdh.h> | ||
23220 | #include <openssl/ecdsa.h> | ||
23221 | #include <openssl/evp.h> | ||
23222 | #include <openssl/objects.h> | ||
23223 | #include <openssl/opensslv.h> | ||
23224 | |||
23225 | int | ||
23226 | main () | ||
23227 | { | ||
23228 | |||
23229 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); | ||
23230 | const EVP_MD *m = EVP_sha512(); /* We need this too */ | ||
23231 | exit(e == NULL || m == NULL); | ||
23232 | |||
23233 | ; | ||
23234 | return 0; | ||
23235 | } | ||
23236 | _ACEOF | ||
23237 | rm -f conftest$ac_exeext | ||
23238 | if { (ac_try="$ac_link" | ||
23239 | case "(($ac_try" in | ||
23240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23241 | *) ac_try_echo=$ac_try;; | ||
23242 | esac | ||
23243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23244 | (eval "$ac_link") 2>&5 | ||
23245 | ac_status=$? | ||
23246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23247 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
23248 | { (case "(($ac_try" in | ||
23249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23250 | *) ac_try_echo=$ac_try;; | ||
23251 | esac | ||
23252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23253 | (eval "$ac_try") 2>&5 | ||
23254 | ac_status=$? | ||
23255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23256 | (exit $ac_status); }; }; then | ||
23257 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
23258 | echo "${ECHO_T}yes" >&6; } | ||
23259 | enable_nistp521=1 | ||
23260 | else | ||
23261 | echo "$as_me: program exited with status $ac_status" >&5 | ||
23262 | echo "$as_me: failed program was:" >&5 | ||
23263 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23264 | |||
23265 | ( exit $ac_status ) | ||
23266 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23267 | echo "${ECHO_T}no" >&6; } | ||
23268 | fi | ||
23269 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
23270 | fi | ||
23271 | |||
23272 | |||
23273 | else | ||
23274 | echo "$as_me: failed program was:" >&5 | ||
23275 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23276 | |||
23277 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23278 | echo "${ECHO_T}no" >&6; } | ||
23279 | |||
23280 | fi | ||
23281 | |||
23282 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23283 | conftest$ac_exeext conftest.$ac_ext | ||
23284 | |||
23285 | COMMENT_OUT_ECC="#no ecc#" | ||
23286 | TEST_SSH_ECC=no | ||
23287 | |||
23288 | if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \ | ||
23289 | test x$enable_nistp521 = x1; then | ||
23290 | |||
23291 | cat >>confdefs.h <<\_ACEOF | ||
23292 | #define OPENSSL_HAS_ECC 1 | ||
23293 | _ACEOF | ||
23294 | |||
23295 | fi | ||
23296 | if test x$enable_nistp256 = x1; then | ||
23297 | |||
23298 | cat >>confdefs.h <<\_ACEOF | ||
23299 | #define OPENSSL_HAS_NISTP256 1 | ||
23300 | _ACEOF | ||
23301 | |||
23302 | TEST_SSH_ECC=yes | ||
23303 | COMMENT_OUT_ECC="" | ||
23304 | else | ||
23305 | unsupported_algorithms="$unsupported_algorithms \ | ||
23306 | ecdsa-sha2-nistp256 \ | ||
23307 | ecdh-sha2-nistp256 \ | ||
23308 | ecdsa-sha2-nistp256-cert-v01@openssh.com" | ||
23309 | fi | ||
23310 | if test x$enable_nistp384 = x1; then | ||
23311 | |||
23312 | cat >>confdefs.h <<\_ACEOF | ||
23313 | #define OPENSSL_HAS_NISTP384 1 | ||
23314 | _ACEOF | ||
23315 | |||
23316 | TEST_SSH_ECC=yes | ||
23317 | COMMENT_OUT_ECC="" | ||
23318 | else | ||
23319 | unsupported_algorithms="$unsupported_algorithms \ | ||
23320 | ecdsa-sha2-nistp384 \ | ||
23321 | ecdh-sha2-nistp384 \ | ||
23322 | ecdsa-sha2-nistp384-cert-v01@openssh.com" | ||
23323 | fi | ||
23324 | if test x$enable_nistp521 = x1; then | ||
23325 | |||
23326 | cat >>confdefs.h <<\_ACEOF | ||
23327 | #define OPENSSL_HAS_NISTP521 1 | ||
23328 | _ACEOF | ||
23329 | |||
23330 | TEST_SSH_ECC=yes | ||
23331 | COMMENT_OUT_ECC="" | ||
23332 | else | ||
23333 | unsupported_algorithms="$unsupported_algorithms \ | ||
23334 | ecdh-sha2-nistp521 \ | ||
23335 | ecdsa-sha2-nistp521 \ | ||
23336 | ecdsa-sha2-nistp521-cert-v01@openssh.com" | ||
23337 | fi | ||
23338 | |||
23339 | |||
23340 | |||
23341 | else | ||
23342 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
23343 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
23344 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
23345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23346 | else | ||
23347 | ac_check_lib_save_LIBS=$LIBS | ||
23348 | LIBS="-lcrypt $LIBS" | ||
23349 | cat >conftest.$ac_ext <<_ACEOF | ||
23350 | /* confdefs.h. */ | ||
23351 | _ACEOF | ||
23352 | cat confdefs.h >>conftest.$ac_ext | ||
23353 | cat >>conftest.$ac_ext <<_ACEOF | ||
23354 | /* end confdefs.h. */ | ||
23355 | |||
23356 | /* Override any GCC internal prototype to avoid an error. | ||
23357 | Use char because int might match the return type of a GCC | ||
23358 | builtin and then its argument prototype would still apply. */ | ||
23359 | #ifdef __cplusplus | ||
23360 | extern "C" | ||
23361 | #endif | ||
23362 | char crypt (); | ||
23363 | int | ||
23364 | main () | ||
23365 | { | ||
23366 | return crypt (); | ||
23367 | ; | ||
23368 | return 0; | ||
23369 | } | ||
23370 | _ACEOF | ||
23371 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23372 | if { (ac_try="$ac_link" | ||
23373 | case "(($ac_try" in | ||
23374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23375 | *) ac_try_echo=$ac_try;; | ||
23376 | esac | ||
23377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23378 | (eval "$ac_link") 2>conftest.er1 | ||
23379 | ac_status=$? | ||
23380 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23381 | rm -f conftest.er1 | ||
23382 | cat conftest.err >&5 | ||
23383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23384 | (exit $ac_status); } && { | ||
23385 | test -z "$ac_c_werror_flag" || | ||
23386 | test ! -s conftest.err | ||
23387 | } && test -s conftest$ac_exeext && | ||
23388 | $as_test_x conftest$ac_exeext; then | ||
23389 | ac_cv_lib_crypt_crypt=yes | ||
23390 | else | ||
23391 | echo "$as_me: failed program was:" >&5 | ||
23392 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23393 | |||
23394 | ac_cv_lib_crypt_crypt=no | ||
23395 | fi | ||
23396 | |||
23397 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23398 | conftest$ac_exeext conftest.$ac_ext | ||
23399 | LIBS=$ac_check_lib_save_LIBS | ||
23400 | fi | ||
23401 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
23402 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
23403 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
23404 | LIBS="$LIBS -lcrypt" | ||
23405 | fi | ||
23406 | |||
23407 | |||
23408 | for ac_func in crypt | ||
23409 | do | ||
23410 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
23411 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
23412 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
23413 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23415 | else | ||
23416 | cat >conftest.$ac_ext <<_ACEOF | ||
23417 | /* confdefs.h. */ | ||
23418 | _ACEOF | ||
23419 | cat confdefs.h >>conftest.$ac_ext | ||
23420 | cat >>conftest.$ac_ext <<_ACEOF | ||
23421 | /* end confdefs.h. */ | ||
23422 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
23423 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
23424 | #define $ac_func innocuous_$ac_func | ||
23425 | |||
23426 | /* System header to define __stub macros and hopefully few prototypes, | ||
23427 | which can conflict with char $ac_func (); below. | ||
23428 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
23429 | <limits.h> exists even on freestanding compilers. */ | ||
23430 | |||
23431 | #ifdef __STDC__ | ||
23432 | # include <limits.h> | ||
23433 | #else | ||
23434 | # include <assert.h> | ||
23435 | #endif | ||
23436 | |||
23437 | #undef $ac_func | ||
23438 | |||
23439 | /* Override any GCC internal prototype to avoid an error. | ||
23440 | Use char because int might match the return type of a GCC | ||
23441 | builtin and then its argument prototype would still apply. */ | ||
23442 | #ifdef __cplusplus | ||
23443 | extern "C" | ||
23444 | #endif | ||
23445 | char $ac_func (); | ||
23446 | /* The GNU C library defines this for functions which it implements | ||
23447 | to always fail with ENOSYS. Some functions are actually named | ||
23448 | something starting with __ and the normal name is an alias. */ | ||
23449 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
23450 | choke me | ||
23451 | #endif | ||
23452 | |||
23453 | int | ||
23454 | main () | ||
23455 | { | ||
23456 | return $ac_func (); | ||
23457 | ; | ||
23458 | return 0; | ||
23459 | } | ||
23460 | _ACEOF | ||
23461 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23462 | if { (ac_try="$ac_link" | ||
23463 | case "(($ac_try" in | ||
23464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23465 | *) ac_try_echo=$ac_try;; | ||
23466 | esac | ||
23467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23468 | (eval "$ac_link") 2>conftest.er1 | ||
23469 | ac_status=$? | ||
23470 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23471 | rm -f conftest.er1 | ||
23472 | cat conftest.err >&5 | ||
23473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23474 | (exit $ac_status); } && { | ||
23475 | test -z "$ac_c_werror_flag" || | ||
23476 | test ! -s conftest.err | ||
23477 | } && test -s conftest$ac_exeext && | ||
23478 | $as_test_x conftest$ac_exeext; then | ||
23479 | eval "$as_ac_var=yes" | ||
23480 | else | ||
23481 | echo "$as_me: failed program was:" >&5 | ||
23482 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23483 | |||
23484 | eval "$as_ac_var=no" | ||
23485 | fi | ||
23486 | |||
23487 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23488 | conftest$ac_exeext conftest.$ac_ext | ||
23489 | fi | ||
23490 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
23491 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
23492 | echo "${ECHO_T}$ac_res" >&6; } | ||
23493 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
23494 | cat >>confdefs.h <<_ACEOF | ||
23495 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
23496 | _ACEOF | ||
23497 | |||
23498 | fi | ||
23499 | done | ||
23500 | |||
23501 | fi | ||
23502 | |||
23503 | |||
23504 | |||
23505 | |||
23506 | |||
23507 | for ac_func in \ | ||
23508 | arc4random \ | ||
23509 | arc4random_buf \ | ||
23510 | arc4random_stir \ | ||
23511 | arc4random_uniform \ | ||
23512 | |||
23513 | do | ||
23514 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
23515 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
23516 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
23517 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23519 | else | ||
23520 | cat >conftest.$ac_ext <<_ACEOF | ||
23521 | /* confdefs.h. */ | ||
23522 | _ACEOF | ||
23523 | cat confdefs.h >>conftest.$ac_ext | ||
23524 | cat >>conftest.$ac_ext <<_ACEOF | ||
23525 | /* end confdefs.h. */ | ||
23526 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
23527 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
23528 | #define $ac_func innocuous_$ac_func | ||
23529 | |||
23530 | /* System header to define __stub macros and hopefully few prototypes, | ||
23531 | which can conflict with char $ac_func (); below. | ||
23532 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
23533 | <limits.h> exists even on freestanding compilers. */ | ||
23534 | |||
23535 | #ifdef __STDC__ | ||
23536 | # include <limits.h> | ||
23537 | #else | ||
23538 | # include <assert.h> | ||
23539 | #endif | ||
23540 | |||
23541 | #undef $ac_func | ||
23542 | |||
23543 | /* Override any GCC internal prototype to avoid an error. | ||
23544 | Use char because int might match the return type of a GCC | ||
23545 | builtin and then its argument prototype would still apply. */ | ||
23546 | #ifdef __cplusplus | ||
23547 | extern "C" | ||
23548 | #endif | ||
23549 | char $ac_func (); | ||
23550 | /* The GNU C library defines this for functions which it implements | ||
23551 | to always fail with ENOSYS. Some functions are actually named | ||
23552 | something starting with __ and the normal name is an alias. */ | ||
23553 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
23554 | choke me | ||
23555 | #endif | ||
23556 | |||
23557 | int | ||
23558 | main () | ||
23559 | { | ||
23560 | return $ac_func (); | ||
23561 | ; | ||
23562 | return 0; | ||
23563 | } | ||
23564 | _ACEOF | ||
23565 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23566 | if { (ac_try="$ac_link" | ||
23567 | case "(($ac_try" in | ||
23568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23569 | *) ac_try_echo=$ac_try;; | ||
23570 | esac | ||
23571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23572 | (eval "$ac_link") 2>conftest.er1 | ||
23573 | ac_status=$? | ||
23574 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23575 | rm -f conftest.er1 | ||
23576 | cat conftest.err >&5 | ||
23577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23578 | (exit $ac_status); } && { | ||
23579 | test -z "$ac_c_werror_flag" || | ||
23580 | test ! -s conftest.err | ||
23581 | } && test -s conftest$ac_exeext && | ||
23582 | $as_test_x conftest$ac_exeext; then | ||
23583 | eval "$as_ac_var=yes" | ||
23584 | else | ||
23585 | echo "$as_me: failed program was:" >&5 | ||
23586 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23587 | |||
23588 | eval "$as_ac_var=no" | ||
23589 | fi | ||
23590 | |||
23591 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23592 | conftest$ac_exeext conftest.$ac_ext | ||
23593 | fi | ||
23594 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
23595 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
23596 | echo "${ECHO_T}$ac_res" >&6; } | ||
23597 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
23598 | cat >>confdefs.h <<_ACEOF | ||
23599 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
23600 | _ACEOF | ||
23601 | |||
23602 | fi | ||
23603 | done | ||
23604 | |||
23605 | |||
23606 | saved_LIBS="$LIBS" | ||
23607 | { echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5 | ||
23608 | echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; } | ||
23609 | if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then | ||
23610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23611 | else | ||
23612 | ac_check_lib_save_LIBS=$LIBS | ||
23613 | LIBS="-liaf $LIBS" | ||
23614 | cat >conftest.$ac_ext <<_ACEOF | ||
23615 | /* confdefs.h. */ | ||
23616 | _ACEOF | ||
23617 | cat confdefs.h >>conftest.$ac_ext | ||
23618 | cat >>conftest.$ac_ext <<_ACEOF | ||
23619 | /* end confdefs.h. */ | ||
23620 | |||
23621 | /* Override any GCC internal prototype to avoid an error. | ||
23622 | Use char because int might match the return type of a GCC | ||
23623 | builtin and then its argument prototype would still apply. */ | ||
23624 | #ifdef __cplusplus | ||
23625 | extern "C" | ||
23626 | #endif | ||
23627 | char ia_openinfo (); | ||
23628 | int | ||
23629 | main () | ||
23630 | { | ||
23631 | return ia_openinfo (); | ||
23632 | ; | ||
23633 | return 0; | ||
23634 | } | ||
23635 | _ACEOF | ||
23636 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23637 | if { (ac_try="$ac_link" | ||
23638 | case "(($ac_try" in | ||
23639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23640 | *) ac_try_echo=$ac_try;; | ||
23641 | esac | ||
23642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23643 | (eval "$ac_link") 2>conftest.er1 | ||
23644 | ac_status=$? | ||
23645 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23646 | rm -f conftest.er1 | ||
23647 | cat conftest.err >&5 | ||
23648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23649 | (exit $ac_status); } && { | ||
23650 | test -z "$ac_c_werror_flag" || | ||
23651 | test ! -s conftest.err | ||
23652 | } && test -s conftest$ac_exeext && | ||
23653 | $as_test_x conftest$ac_exeext; then | ||
23654 | ac_cv_lib_iaf_ia_openinfo=yes | ||
23655 | else | ||
23656 | echo "$as_me: failed program was:" >&5 | ||
23657 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23658 | |||
23659 | ac_cv_lib_iaf_ia_openinfo=no | ||
23660 | fi | ||
23661 | |||
23662 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23663 | conftest$ac_exeext conftest.$ac_ext | ||
23664 | LIBS=$ac_check_lib_save_LIBS | ||
23665 | fi | ||
23666 | { echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5 | ||
23667 | echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; } | ||
23668 | if test $ac_cv_lib_iaf_ia_openinfo = yes; then | ||
23669 | |||
23670 | LIBS="$LIBS -liaf" | ||
23671 | |||
23672 | for ac_func in set_id | ||
23673 | do | ||
23674 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
23675 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
23676 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
23677 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23679 | else | ||
23680 | cat >conftest.$ac_ext <<_ACEOF | ||
23681 | /* confdefs.h. */ | ||
23682 | _ACEOF | ||
23683 | cat confdefs.h >>conftest.$ac_ext | ||
23684 | cat >>conftest.$ac_ext <<_ACEOF | ||
23685 | /* end confdefs.h. */ | ||
23686 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
23687 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
23688 | #define $ac_func innocuous_$ac_func | ||
23689 | |||
23690 | /* System header to define __stub macros and hopefully few prototypes, | ||
23691 | which can conflict with char $ac_func (); below. | ||
23692 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
23693 | <limits.h> exists even on freestanding compilers. */ | ||
23694 | |||
23695 | #ifdef __STDC__ | ||
23696 | # include <limits.h> | ||
23697 | #else | ||
23698 | # include <assert.h> | ||
23699 | #endif | ||
23700 | |||
23701 | #undef $ac_func | ||
23702 | |||
23703 | /* Override any GCC internal prototype to avoid an error. | ||
23704 | Use char because int might match the return type of a GCC | ||
23705 | builtin and then its argument prototype would still apply. */ | ||
23706 | #ifdef __cplusplus | ||
23707 | extern "C" | ||
23708 | #endif | ||
23709 | char $ac_func (); | ||
23710 | /* The GNU C library defines this for functions which it implements | ||
23711 | to always fail with ENOSYS. Some functions are actually named | ||
23712 | something starting with __ and the normal name is an alias. */ | ||
23713 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
23714 | choke me | ||
23715 | #endif | ||
23716 | |||
23717 | int | ||
23718 | main () | ||
23719 | { | ||
23720 | return $ac_func (); | ||
23721 | ; | ||
23722 | return 0; | ||
23723 | } | ||
23724 | _ACEOF | ||
23725 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23726 | if { (ac_try="$ac_link" | ||
23727 | case "(($ac_try" in | ||
23728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23729 | *) ac_try_echo=$ac_try;; | ||
23730 | esac | ||
23731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23732 | (eval "$ac_link") 2>conftest.er1 | ||
23733 | ac_status=$? | ||
23734 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23735 | rm -f conftest.er1 | ||
23736 | cat conftest.err >&5 | ||
23737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23738 | (exit $ac_status); } && { | ||
23739 | test -z "$ac_c_werror_flag" || | ||
23740 | test ! -s conftest.err | ||
23741 | } && test -s conftest$ac_exeext && | ||
23742 | $as_test_x conftest$ac_exeext; then | ||
23743 | eval "$as_ac_var=yes" | ||
23744 | else | ||
23745 | echo "$as_me: failed program was:" >&5 | ||
23746 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23747 | |||
23748 | eval "$as_ac_var=no" | ||
23749 | fi | ||
23750 | |||
23751 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23752 | conftest$ac_exeext conftest.$ac_ext | ||
23753 | fi | ||
23754 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
23755 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
23756 | echo "${ECHO_T}$ac_res" >&6; } | ||
23757 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
23758 | cat >>confdefs.h <<_ACEOF | ||
23759 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
23760 | _ACEOF | ||
23761 | SSHDLIBS="$SSHDLIBS -liaf" | ||
23762 | |||
23763 | cat >>confdefs.h <<\_ACEOF | ||
23764 | #define HAVE_LIBIAF 1 | ||
23765 | _ACEOF | ||
23766 | |||
23767 | |||
23768 | fi | ||
23769 | done | ||
23770 | |||
23771 | |||
23772 | fi | ||
23773 | |||
23774 | LIBS="$saved_LIBS" | ||
23775 | |||
23776 | ### Configure cryptographic random number support | ||
23777 | |||
23778 | # Check wheter OpenSSL seeds itself | ||
23779 | if test "x$openssl" = "xyes" ; then | ||
23780 | { echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
23781 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; } | ||
23782 | if test "$cross_compiling" = yes; then | ||
23783 | |||
23784 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
23785 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
23786 | # This is safe, since we will fatal() at runtime if | ||
23787 | # OpenSSL is not seeded correctly. | ||
23788 | OPENSSL_SEEDS_ITSELF=yes | ||
23789 | |||
23790 | |||
23791 | else | ||
23792 | cat >conftest.$ac_ext <<_ACEOF | ||
23793 | /* confdefs.h. */ | ||
23794 | _ACEOF | ||
23795 | cat confdefs.h >>conftest.$ac_ext | ||
23796 | cat >>conftest.$ac_ext <<_ACEOF | ||
23797 | /* end confdefs.h. */ | ||
23798 | |||
23799 | #include <string.h> | ||
23800 | #include <openssl/rand.h> | ||
23801 | |||
23802 | int | ||
23803 | main () | ||
23804 | { | ||
23805 | |||
23806 | exit(RAND_status() == 1 ? 0 : 1); | ||
23807 | |||
23808 | ; | ||
23809 | return 0; | ||
23810 | } | ||
23811 | _ACEOF | ||
23812 | rm -f conftest$ac_exeext | ||
23813 | if { (ac_try="$ac_link" | ||
23814 | case "(($ac_try" in | ||
23815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23816 | *) ac_try_echo=$ac_try;; | ||
23817 | esac | ||
23818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23819 | (eval "$ac_link") 2>&5 | ||
23820 | ac_status=$? | ||
23821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23822 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
23823 | { (case "(($ac_try" in | ||
23824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23825 | *) ac_try_echo=$ac_try;; | ||
23826 | esac | ||
23827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23828 | (eval "$ac_try") 2>&5 | ||
23829 | ac_status=$? | ||
23830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23831 | (exit $ac_status); }; }; then | ||
23832 | |||
23833 | OPENSSL_SEEDS_ITSELF=yes | ||
23834 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
23835 | echo "${ECHO_T}yes" >&6; } | ||
23836 | |||
23837 | else | ||
23838 | echo "$as_me: program exited with status $ac_status" >&5 | ||
23839 | echo "$as_me: failed program was:" >&5 | ||
23840 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23841 | |||
23842 | ( exit $ac_status ) | ||
23843 | |||
23844 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23845 | echo "${ECHO_T}no" >&6; } | ||
23846 | |||
23847 | fi | ||
23848 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
23849 | fi | ||
23850 | |||
23851 | |||
23852 | fi | ||
23853 | |||
23854 | # PRNGD TCP socket | ||
23855 | |||
23856 | # Check whether --with-prngd-port was given. | ||
23857 | if test "${with_prngd_port+set}" = set; then | ||
23858 | withval=$with_prngd_port; | ||
23859 | case "$withval" in | ||
23860 | no) | ||
23861 | withval="" | ||
23862 | ;; | ||
23863 | [0-9]*) | ||
23864 | ;; | ||
23865 | *) | ||
23866 | { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
23867 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
23868 | { (exit 1); exit 1; }; } | ||
23869 | ;; | ||
23870 | esac | ||
23871 | if test ! -z "$withval" ; then | ||
23872 | PRNGD_PORT="$withval" | ||
23873 | |||
23874 | cat >>confdefs.h <<_ACEOF | ||
23875 | #define PRNGD_PORT $PRNGD_PORT | ||
23876 | _ACEOF | ||
23877 | |||
23878 | fi | ||
23879 | |||
23880 | |||
23881 | fi | ||
23882 | |||
23883 | |||
23884 | # PRNGD Unix domain socket | ||
23885 | |||
23886 | # Check whether --with-prngd-socket was given. | ||
23887 | if test "${with_prngd_socket+set}" = set; then | ||
23888 | withval=$with_prngd_socket; | ||
23889 | case "$withval" in | ||
23890 | yes) | ||
23891 | withval="/var/run/egd-pool" | ||
23892 | ;; | ||
23893 | no) | ||
23894 | withval="" | ||
23895 | ;; | ||
23896 | /*) | ||
23897 | ;; | ||
23898 | *) | ||
23899 | { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | ||
23900 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
23901 | { (exit 1); exit 1; }; } | ||
23902 | ;; | ||
23903 | esac | ||
23904 | |||
23905 | if test ! -z "$withval" ; then | ||
23906 | if test ! -z "$PRNGD_PORT" ; then | ||
23907 | { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
23908 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
23909 | { (exit 1); exit 1; }; } | ||
23910 | fi | ||
23911 | if test ! -r "$withval" ; then | ||
23912 | { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | ||
23913 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
23914 | fi | ||
23915 | PRNGD_SOCKET="$withval" | ||
23916 | |||
23917 | cat >>confdefs.h <<_ACEOF | ||
23918 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
23919 | _ACEOF | ||
23920 | |||
23921 | fi | ||
23922 | |||
23923 | else | ||
23924 | |||
23925 | # Check for existing socket only if we don't have a random device already | ||
23926 | if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then | ||
23927 | { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | ||
23928 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; } | ||
23929 | # Insert other locations here | ||
23930 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
23931 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
23932 | PRNGD_SOCKET="$sock" | ||
23933 | cat >>confdefs.h <<_ACEOF | ||
23934 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
23935 | _ACEOF | ||
23936 | |||
23937 | break; | ||
23938 | fi | ||
23939 | done | ||
23940 | if test ! -z "$PRNGD_SOCKET" ; then | ||
23941 | { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | ||
23942 | echo "${ECHO_T}$PRNGD_SOCKET" >&6; } | ||
23943 | else | ||
23944 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
23945 | echo "${ECHO_T}not found" >&6; } | ||
23946 | fi | ||
23947 | fi | ||
23948 | |||
23949 | |||
23950 | fi | ||
23951 | |||
23952 | |||
23953 | # Which randomness source do we use? | ||
23954 | if test ! -z "$PRNGD_PORT" ; then | ||
23955 | RAND_MSG="PRNGd port $PRNGD_PORT" | ||
23956 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
23957 | RAND_MSG="PRNGd socket $PRNGD_SOCKET" | ||
23958 | elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
23959 | |||
23960 | cat >>confdefs.h <<\_ACEOF | ||
23961 | #define OPENSSL_PRNG_ONLY 1 | ||
23962 | _ACEOF | ||
23963 | |||
23964 | RAND_MSG="OpenSSL internal ONLY" | ||
23965 | elif test "x$openssl" = "xno" ; then | ||
23966 | { echo "$as_me:$LINENO: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&5 | ||
23967 | echo "$as_me: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&2;} | ||
23968 | else | ||
23969 | { { echo "$as_me:$LINENO: error: OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" >&5 | ||
23970 | echo "$as_me: error: OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" >&2;} | ||
23971 | { (exit 1); exit 1; }; } | ||
23972 | fi | ||
23973 | |||
23974 | # Check for PAM libs | ||
23975 | PAM_MSG="no" | ||
23976 | |||
23977 | # Check whether --with-pam was given. | ||
23978 | if test "${with_pam+set}" = set; then | ||
23979 | withval=$with_pam; | ||
23980 | if test "x$withval" != "xno" ; then | ||
23981 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
23982 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
23983 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
23984 | echo "$as_me: error: PAM headers not found" >&2;} | ||
23985 | { (exit 1); exit 1; }; } | ||
23986 | fi | ||
23987 | |||
23988 | saved_LIBS="$LIBS" | ||
23989 | |||
23990 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
23991 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
23992 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
23993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23994 | else | ||
23995 | ac_check_lib_save_LIBS=$LIBS | ||
23996 | LIBS="-ldl $LIBS" | ||
23997 | cat >conftest.$ac_ext <<_ACEOF | ||
23998 | /* confdefs.h. */ | ||
23999 | _ACEOF | ||
24000 | cat confdefs.h >>conftest.$ac_ext | ||
24001 | cat >>conftest.$ac_ext <<_ACEOF | ||
24002 | /* end confdefs.h. */ | ||
24003 | |||
24004 | /* Override any GCC internal prototype to avoid an error. | ||
24005 | Use char because int might match the return type of a GCC | ||
24006 | builtin and then its argument prototype would still apply. */ | ||
24007 | #ifdef __cplusplus | ||
24008 | extern "C" | ||
24009 | #endif | ||
24010 | char dlopen (); | ||
24011 | int | ||
24012 | main () | ||
24013 | { | ||
24014 | return dlopen (); | ||
24015 | ; | ||
24016 | return 0; | ||
24017 | } | ||
24018 | _ACEOF | ||
24019 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24020 | if { (ac_try="$ac_link" | ||
24021 | case "(($ac_try" in | ||
24022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24023 | *) ac_try_echo=$ac_try;; | ||
24024 | esac | ||
24025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24026 | (eval "$ac_link") 2>conftest.er1 | ||
24027 | ac_status=$? | ||
24028 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24029 | rm -f conftest.er1 | ||
24030 | cat conftest.err >&5 | ||
24031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24032 | (exit $ac_status); } && { | ||
24033 | test -z "$ac_c_werror_flag" || | ||
24034 | test ! -s conftest.err | ||
24035 | } && test -s conftest$ac_exeext && | ||
24036 | $as_test_x conftest$ac_exeext; then | ||
24037 | ac_cv_lib_dl_dlopen=yes | ||
24038 | else | ||
24039 | echo "$as_me: failed program was:" >&5 | ||
24040 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24041 | |||
24042 | ac_cv_lib_dl_dlopen=no | ||
24043 | fi | ||
24044 | |||
24045 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24046 | conftest$ac_exeext conftest.$ac_ext | ||
24047 | LIBS=$ac_check_lib_save_LIBS | ||
24048 | fi | ||
24049 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
24050 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
24051 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
24052 | cat >>confdefs.h <<_ACEOF | ||
24053 | #define HAVE_LIBDL 1 | ||
24054 | _ACEOF | ||
24055 | |||
24056 | LIBS="-ldl $LIBS" | ||
24057 | |||
24058 | fi | ||
24059 | |||
24060 | |||
24061 | { echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
24062 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; } | ||
24063 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
24064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24065 | else | ||
24066 | ac_check_lib_save_LIBS=$LIBS | ||
24067 | LIBS="-lpam $LIBS" | ||
24068 | cat >conftest.$ac_ext <<_ACEOF | ||
24069 | /* confdefs.h. */ | ||
24070 | _ACEOF | ||
24071 | cat confdefs.h >>conftest.$ac_ext | ||
24072 | cat >>conftest.$ac_ext <<_ACEOF | ||
24073 | /* end confdefs.h. */ | ||
24074 | |||
24075 | /* Override any GCC internal prototype to avoid an error. | ||
24076 | Use char because int might match the return type of a GCC | ||
24077 | builtin and then its argument prototype would still apply. */ | ||
24078 | #ifdef __cplusplus | ||
24079 | extern "C" | ||
24080 | #endif | ||
24081 | char pam_set_item (); | ||
24082 | int | ||
24083 | main () | ||
24084 | { | ||
24085 | return pam_set_item (); | ||
24086 | ; | ||
24087 | return 0; | ||
24088 | } | ||
24089 | _ACEOF | ||
24090 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24091 | if { (ac_try="$ac_link" | ||
24092 | case "(($ac_try" in | ||
24093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24094 | *) ac_try_echo=$ac_try;; | ||
24095 | esac | ||
24096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24097 | (eval "$ac_link") 2>conftest.er1 | ||
24098 | ac_status=$? | ||
24099 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24100 | rm -f conftest.er1 | ||
24101 | cat conftest.err >&5 | ||
24102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24103 | (exit $ac_status); } && { | ||
24104 | test -z "$ac_c_werror_flag" || | ||
24105 | test ! -s conftest.err | ||
24106 | } && test -s conftest$ac_exeext && | ||
24107 | $as_test_x conftest$ac_exeext; then | ||
24108 | ac_cv_lib_pam_pam_set_item=yes | ||
24109 | else | ||
24110 | echo "$as_me: failed program was:" >&5 | ||
24111 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24112 | |||
24113 | ac_cv_lib_pam_pam_set_item=no | ||
24114 | fi | ||
24115 | |||
24116 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24117 | conftest$ac_exeext conftest.$ac_ext | ||
24118 | LIBS=$ac_check_lib_save_LIBS | ||
24119 | fi | ||
24120 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
24121 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; } | ||
24122 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
24123 | cat >>confdefs.h <<_ACEOF | ||
24124 | #define HAVE_LIBPAM 1 | ||
24125 | _ACEOF | ||
24126 | |||
24127 | LIBS="-lpam $LIBS" | ||
24128 | |||
24129 | else | ||
24130 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
24131 | echo "$as_me: error: *** libpam missing" >&2;} | ||
24132 | { (exit 1); exit 1; }; } | ||
24133 | fi | ||
24134 | |||
24135 | |||
24136 | for ac_func in pam_getenvlist | ||
24137 | do | ||
24138 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
24139 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
24140 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
24141 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24143 | else | ||
24144 | cat >conftest.$ac_ext <<_ACEOF | ||
24145 | /* confdefs.h. */ | ||
24146 | _ACEOF | ||
24147 | cat confdefs.h >>conftest.$ac_ext | ||
24148 | cat >>conftest.$ac_ext <<_ACEOF | ||
24149 | /* end confdefs.h. */ | ||
24150 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
24151 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
24152 | #define $ac_func innocuous_$ac_func | ||
24153 | |||
24154 | /* System header to define __stub macros and hopefully few prototypes, | ||
24155 | which can conflict with char $ac_func (); below. | ||
24156 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
24157 | <limits.h> exists even on freestanding compilers. */ | ||
24158 | |||
24159 | #ifdef __STDC__ | ||
24160 | # include <limits.h> | ||
24161 | #else | ||
24162 | # include <assert.h> | ||
24163 | #endif | ||
24164 | |||
24165 | #undef $ac_func | ||
24166 | |||
24167 | /* Override any GCC internal prototype to avoid an error. | ||
24168 | Use char because int might match the return type of a GCC | ||
24169 | builtin and then its argument prototype would still apply. */ | ||
24170 | #ifdef __cplusplus | ||
24171 | extern "C" | ||
24172 | #endif | ||
24173 | char $ac_func (); | ||
24174 | /* The GNU C library defines this for functions which it implements | ||
24175 | to always fail with ENOSYS. Some functions are actually named | ||
24176 | something starting with __ and the normal name is an alias. */ | ||
24177 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
24178 | choke me | ||
24179 | #endif | ||
24180 | |||
24181 | int | ||
24182 | main () | ||
24183 | { | ||
24184 | return $ac_func (); | ||
24185 | ; | ||
24186 | return 0; | ||
24187 | } | ||
24188 | _ACEOF | ||
24189 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24190 | if { (ac_try="$ac_link" | ||
24191 | case "(($ac_try" in | ||
24192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24193 | *) ac_try_echo=$ac_try;; | ||
24194 | esac | ||
24195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24196 | (eval "$ac_link") 2>conftest.er1 | ||
24197 | ac_status=$? | ||
24198 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24199 | rm -f conftest.er1 | ||
24200 | cat conftest.err >&5 | ||
24201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24202 | (exit $ac_status); } && { | ||
24203 | test -z "$ac_c_werror_flag" || | ||
24204 | test ! -s conftest.err | ||
24205 | } && test -s conftest$ac_exeext && | ||
24206 | $as_test_x conftest$ac_exeext; then | ||
24207 | eval "$as_ac_var=yes" | ||
24208 | else | ||
24209 | echo "$as_me: failed program was:" >&5 | ||
24210 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24211 | |||
24212 | eval "$as_ac_var=no" | ||
24213 | fi | ||
24214 | |||
24215 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24216 | conftest$ac_exeext conftest.$ac_ext | ||
24217 | fi | ||
24218 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
24219 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
24220 | echo "${ECHO_T}$ac_res" >&6; } | ||
24221 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
24222 | cat >>confdefs.h <<_ACEOF | ||
24223 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
24224 | _ACEOF | ||
24225 | |||
24226 | fi | ||
24227 | done | ||
24228 | |||
24229 | |||
24230 | for ac_func in pam_putenv | ||
24231 | do | ||
24232 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
24233 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
24234 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
24235 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24237 | else | ||
24238 | cat >conftest.$ac_ext <<_ACEOF | ||
24239 | /* confdefs.h. */ | ||
24240 | _ACEOF | ||
24241 | cat confdefs.h >>conftest.$ac_ext | ||
24242 | cat >>conftest.$ac_ext <<_ACEOF | ||
24243 | /* end confdefs.h. */ | ||
24244 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
24245 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
24246 | #define $ac_func innocuous_$ac_func | ||
24247 | |||
24248 | /* System header to define __stub macros and hopefully few prototypes, | ||
24249 | which can conflict with char $ac_func (); below. | ||
24250 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
24251 | <limits.h> exists even on freestanding compilers. */ | ||
24252 | |||
24253 | #ifdef __STDC__ | ||
24254 | # include <limits.h> | ||
24255 | #else | ||
24256 | # include <assert.h> | ||
24257 | #endif | ||
24258 | |||
24259 | #undef $ac_func | ||
24260 | |||
24261 | /* Override any GCC internal prototype to avoid an error. | ||
24262 | Use char because int might match the return type of a GCC | ||
24263 | builtin and then its argument prototype would still apply. */ | ||
24264 | #ifdef __cplusplus | ||
24265 | extern "C" | ||
24266 | #endif | ||
24267 | char $ac_func (); | ||
24268 | /* The GNU C library defines this for functions which it implements | ||
24269 | to always fail with ENOSYS. Some functions are actually named | ||
24270 | something starting with __ and the normal name is an alias. */ | ||
24271 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
24272 | choke me | ||
24273 | #endif | ||
24274 | |||
24275 | int | ||
24276 | main () | ||
24277 | { | ||
24278 | return $ac_func (); | ||
24279 | ; | ||
24280 | return 0; | ||
24281 | } | ||
24282 | _ACEOF | ||
24283 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24284 | if { (ac_try="$ac_link" | ||
24285 | case "(($ac_try" in | ||
24286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24287 | *) ac_try_echo=$ac_try;; | ||
24288 | esac | ||
24289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24290 | (eval "$ac_link") 2>conftest.er1 | ||
24291 | ac_status=$? | ||
24292 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24293 | rm -f conftest.er1 | ||
24294 | cat conftest.err >&5 | ||
24295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24296 | (exit $ac_status); } && { | ||
24297 | test -z "$ac_c_werror_flag" || | ||
24298 | test ! -s conftest.err | ||
24299 | } && test -s conftest$ac_exeext && | ||
24300 | $as_test_x conftest$ac_exeext; then | ||
24301 | eval "$as_ac_var=yes" | ||
24302 | else | ||
24303 | echo "$as_me: failed program was:" >&5 | ||
24304 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24305 | |||
24306 | eval "$as_ac_var=no" | ||
24307 | fi | ||
24308 | |||
24309 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24310 | conftest$ac_exeext conftest.$ac_ext | ||
24311 | fi | ||
24312 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
24313 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
24314 | echo "${ECHO_T}$ac_res" >&6; } | ||
24315 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
24316 | cat >>confdefs.h <<_ACEOF | ||
24317 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
24318 | _ACEOF | ||
24319 | |||
24320 | fi | ||
24321 | done | ||
24322 | |||
24323 | LIBS="$saved_LIBS" | ||
24324 | |||
24325 | PAM_MSG="yes" | ||
24326 | |||
24327 | SSHDLIBS="$SSHDLIBS -lpam" | ||
24328 | |||
24329 | cat >>confdefs.h <<\_ACEOF | ||
24330 | #define USE_PAM 1 | ||
24331 | _ACEOF | ||
24332 | |||
24333 | |||
24334 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
24335 | case "$LIBS" in | ||
24336 | *-ldl*) | ||
24337 | # libdl already in LIBS | ||
24338 | ;; | ||
24339 | *) | ||
24340 | SSHDLIBS="$SSHDLIBS -ldl" | ||
24341 | ;; | ||
24342 | esac | ||
24343 | fi | ||
24344 | fi | ||
24345 | |||
24346 | |||
24347 | fi | ||
24348 | |||
24349 | |||
24350 | # Check for older PAM | ||
24351 | if test "x$PAM_MSG" = "xyes" ; then | ||
24352 | # Check PAM strerror arguments (old PAM) | ||
24353 | { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
24354 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; } | ||
24355 | cat >conftest.$ac_ext <<_ACEOF | ||
24356 | /* confdefs.h. */ | ||
24357 | _ACEOF | ||
24358 | cat confdefs.h >>conftest.$ac_ext | ||
24359 | cat >>conftest.$ac_ext <<_ACEOF | ||
24360 | /* end confdefs.h. */ | ||
24361 | |||
24362 | #include <stdlib.h> | ||
24363 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
24364 | #include <security/pam_appl.h> | ||
24365 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
24366 | #include <pam/pam_appl.h> | ||
24367 | #endif | ||
24368 | |||
24369 | int | ||
24370 | main () | ||
24371 | { | ||
24372 | |||
24373 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
24374 | |||
24375 | ; | ||
24376 | return 0; | ||
24377 | } | ||
24378 | _ACEOF | ||
24379 | rm -f conftest.$ac_objext | ||
24380 | if { (ac_try="$ac_compile" | ||
24381 | case "(($ac_try" in | ||
24382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24383 | *) ac_try_echo=$ac_try;; | ||
24384 | esac | ||
24385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24386 | (eval "$ac_compile") 2>conftest.er1 | ||
24387 | ac_status=$? | ||
24388 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24389 | rm -f conftest.er1 | ||
24390 | cat conftest.err >&5 | ||
24391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24392 | (exit $ac_status); } && { | ||
24393 | test -z "$ac_c_werror_flag" || | ||
24394 | test ! -s conftest.err | ||
24395 | } && test -s conftest.$ac_objext; then | ||
24396 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24397 | echo "${ECHO_T}no" >&6; } | ||
24398 | else | ||
24399 | echo "$as_me: failed program was:" >&5 | ||
24400 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24401 | |||
24402 | |||
24403 | |||
24404 | cat >>confdefs.h <<\_ACEOF | ||
24405 | #define HAVE_OLD_PAM 1 | ||
24406 | _ACEOF | ||
24407 | |||
24408 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
24409 | echo "${ECHO_T}yes" >&6; } | ||
24410 | PAM_MSG="yes (old library)" | ||
24411 | |||
24412 | |||
24413 | fi | ||
24414 | |||
24415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24416 | fi | ||
24417 | |||
24418 | case "$host" in | ||
24419 | *-*-cygwin*) | ||
24420 | SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER | ||
24421 | ;; | ||
24422 | *) | ||
24423 | SSH_PRIVSEP_USER=sshd | ||
24424 | ;; | ||
24425 | esac | ||
24426 | |||
24427 | # Check whether --with-privsep-user was given. | ||
24428 | if test "${with_privsep_user+set}" = set; then | ||
24429 | withval=$with_privsep_user; | ||
24430 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
24431 | test "x${withval}" != "xyes"; then | ||
24432 | SSH_PRIVSEP_USER=$withval | ||
24433 | fi | ||
24434 | |||
24435 | |||
24436 | fi | ||
24437 | |||
24438 | if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then | ||
24439 | |||
24440 | cat >>confdefs.h <<_ACEOF | ||
24441 | #define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER | ||
24442 | _ACEOF | ||
24443 | |||
24444 | else | ||
24445 | |||
24446 | cat >>confdefs.h <<_ACEOF | ||
24447 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
24448 | _ACEOF | ||
24449 | |||
24450 | fi | ||
24451 | |||
24452 | |||
24453 | if test "x$have_linux_no_new_privs" = "x1" ; then | ||
24454 | { echo "$as_me:$LINENO: checking whether SECCOMP_MODE_FILTER is declared" >&5 | ||
24455 | echo $ECHO_N "checking whether SECCOMP_MODE_FILTER is declared... $ECHO_C" >&6; } | ||
24456 | if test "${ac_cv_have_decl_SECCOMP_MODE_FILTER+set}" = set; then | ||
24457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24458 | else | ||
24459 | cat >conftest.$ac_ext <<_ACEOF | ||
24460 | /* confdefs.h. */ | ||
24461 | _ACEOF | ||
24462 | cat confdefs.h >>conftest.$ac_ext | ||
24463 | cat >>conftest.$ac_ext <<_ACEOF | ||
24464 | /* end confdefs.h. */ | ||
24465 | |||
24466 | #include <sys/types.h> | ||
24467 | #include <linux/seccomp.h> | ||
24468 | |||
24469 | |||
24470 | int | ||
24471 | main () | ||
24472 | { | ||
24473 | #ifndef SECCOMP_MODE_FILTER | ||
24474 | (void) SECCOMP_MODE_FILTER; | ||
24475 | #endif | ||
24476 | |||
24477 | ; | ||
24478 | return 0; | ||
24479 | } | ||
24480 | _ACEOF | ||
24481 | rm -f conftest.$ac_objext | ||
24482 | if { (ac_try="$ac_compile" | ||
24483 | case "(($ac_try" in | ||
24484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24485 | *) ac_try_echo=$ac_try;; | ||
24486 | esac | ||
24487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24488 | (eval "$ac_compile") 2>conftest.er1 | ||
24489 | ac_status=$? | ||
24490 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24491 | rm -f conftest.er1 | ||
24492 | cat conftest.err >&5 | ||
24493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24494 | (exit $ac_status); } && { | ||
24495 | test -z "$ac_c_werror_flag" || | ||
24496 | test ! -s conftest.err | ||
24497 | } && test -s conftest.$ac_objext; then | ||
24498 | ac_cv_have_decl_SECCOMP_MODE_FILTER=yes | ||
24499 | else | ||
24500 | echo "$as_me: failed program was:" >&5 | ||
24501 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24502 | |||
24503 | ac_cv_have_decl_SECCOMP_MODE_FILTER=no | ||
24504 | fi | ||
24505 | |||
24506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24507 | fi | ||
24508 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SECCOMP_MODE_FILTER" >&5 | ||
24509 | echo "${ECHO_T}$ac_cv_have_decl_SECCOMP_MODE_FILTER" >&6; } | ||
24510 | if test $ac_cv_have_decl_SECCOMP_MODE_FILTER = yes; then | ||
24511 | have_seccomp_filter=1 | ||
24512 | fi | ||
24513 | |||
24514 | fi | ||
24515 | if test "x$have_seccomp_filter" = "x1" ; then | ||
24516 | { echo "$as_me:$LINENO: checking kernel for seccomp_filter support" >&5 | ||
24517 | echo $ECHO_N "checking kernel for seccomp_filter support... $ECHO_C" >&6; } | ||
24518 | cat >conftest.$ac_ext <<_ACEOF | ||
24519 | /* confdefs.h. */ | ||
24520 | _ACEOF | ||
24521 | cat confdefs.h >>conftest.$ac_ext | ||
24522 | cat >>conftest.$ac_ext <<_ACEOF | ||
24523 | /* end confdefs.h. */ | ||
24524 | |||
24525 | #include <errno.h> | ||
24526 | #include <elf.h> | ||
24527 | #include <linux/audit.h> | ||
24528 | #include <linux/seccomp.h> | ||
24529 | #include <stdlib.h> | ||
24530 | #include <sys/prctl.h> | ||
24531 | |||
24532 | int | ||
24533 | main () | ||
24534 | { | ||
24535 | int i = $seccomp_audit_arch; | ||
24536 | errno = 0; | ||
24537 | prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); | ||
24538 | exit(errno == EFAULT ? 0 : 1); | ||
24539 | ; | ||
24540 | return 0; | ||
24541 | } | ||
24542 | _ACEOF | ||
24543 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24544 | if { (ac_try="$ac_link" | ||
24545 | case "(($ac_try" in | ||
24546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24547 | *) ac_try_echo=$ac_try;; | ||
24548 | esac | ||
24549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24550 | (eval "$ac_link") 2>conftest.er1 | ||
24551 | ac_status=$? | ||
24552 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24553 | rm -f conftest.er1 | ||
24554 | cat conftest.err >&5 | ||
24555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24556 | (exit $ac_status); } && { | ||
24557 | test -z "$ac_c_werror_flag" || | ||
24558 | test ! -s conftest.err | ||
24559 | } && test -s conftest$ac_exeext && | ||
24560 | $as_test_x conftest$ac_exeext; then | ||
24561 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
24562 | echo "${ECHO_T}yes" >&6; } | ||
24563 | else | ||
24564 | echo "$as_me: failed program was:" >&5 | ||
24565 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24566 | |||
24567 | |||
24568 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24569 | echo "${ECHO_T}no" >&6; } | ||
24570 | # Disable seccomp filter as a target | ||
24571 | have_seccomp_filter=0 | ||
24572 | |||
24573 | |||
24574 | fi | ||
24575 | |||
24576 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24577 | conftest$ac_exeext conftest.$ac_ext | ||
24578 | fi | ||
24579 | |||
24580 | # Decide which sandbox style to use | ||
24581 | sandbox_arg="" | ||
24582 | |||
24583 | # Check whether --with-sandbox was given. | ||
24584 | if test "${with_sandbox+set}" = set; then | ||
24585 | withval=$with_sandbox; | ||
24586 | if test "x$withval" = "xyes" ; then | ||
24587 | sandbox_arg="" | ||
24588 | else | ||
24589 | sandbox_arg="$withval" | ||
24590 | fi | ||
24591 | |||
24592 | |||
24593 | fi | ||
24594 | |||
24595 | |||
24596 | # Some platforms (seems to be the ones that have a kernel poll(2)-type | ||
24597 | # function with which they implement select(2)) use an extra file descriptor | ||
24598 | # when calling select(2), which means we can't use the rlimit sandbox. | ||
24599 | { echo "$as_me:$LINENO: checking if select works with descriptor rlimit" >&5 | ||
24600 | echo $ECHO_N "checking if select works with descriptor rlimit... $ECHO_C" >&6; } | ||
24601 | if test "$cross_compiling" = yes; then | ||
24602 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
24603 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
24604 | |||
24605 | else | ||
24606 | cat >conftest.$ac_ext <<_ACEOF | ||
24607 | /* confdefs.h. */ | ||
24608 | _ACEOF | ||
24609 | cat confdefs.h >>conftest.$ac_ext | ||
24610 | cat >>conftest.$ac_ext <<_ACEOF | ||
24611 | /* end confdefs.h. */ | ||
24612 | |||
24613 | #include <sys/types.h> | ||
24614 | #ifdef HAVE_SYS_TIME_H | ||
24615 | # include <sys/time.h> | ||
24616 | #endif | ||
24617 | #include <sys/resource.h> | ||
24618 | #ifdef HAVE_SYS_SELECT_H | ||
24619 | # include <sys/select.h> | ||
24620 | #endif | ||
24621 | #include <errno.h> | ||
24622 | #include <fcntl.h> | ||
24623 | #include <stdlib.h> | ||
24624 | |||
24625 | int | ||
24626 | main () | ||
24627 | { | ||
24628 | |||
24629 | struct rlimit rl_zero; | ||
24630 | int fd, r; | ||
24631 | fd_set fds; | ||
24632 | struct timeval tv; | ||
24633 | |||
24634 | fd = open("/dev/null", O_RDONLY); | ||
24635 | FD_ZERO(&fds); | ||
24636 | FD_SET(fd, &fds); | ||
24637 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
24638 | setrlimit(RLIMIT_FSIZE, &rl_zero); | ||
24639 | setrlimit(RLIMIT_NOFILE, &rl_zero); | ||
24640 | tv.tv_sec = 1; | ||
24641 | tv.tv_usec = 0; | ||
24642 | r = select(fd+1, &fds, NULL, NULL, &tv); | ||
24643 | exit (r == -1 ? 1 : 0); | ||
24644 | |||
24645 | ; | ||
24646 | return 0; | ||
24647 | } | ||
24648 | _ACEOF | ||
24649 | rm -f conftest$ac_exeext | ||
24650 | if { (ac_try="$ac_link" | ||
24651 | case "(($ac_try" in | ||
24652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24653 | *) ac_try_echo=$ac_try;; | ||
24654 | esac | ||
24655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24656 | (eval "$ac_link") 2>&5 | ||
24657 | ac_status=$? | ||
24658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24659 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
24660 | { (case "(($ac_try" in | ||
24661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24662 | *) ac_try_echo=$ac_try;; | ||
24663 | esac | ||
24664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24665 | (eval "$ac_try") 2>&5 | ||
24666 | ac_status=$? | ||
24667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24668 | (exit $ac_status); }; }; then | ||
24669 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
24670 | echo "${ECHO_T}yes" >&6; } | ||
24671 | select_works_with_rlimit=yes | ||
24672 | else | ||
24673 | echo "$as_me: program exited with status $ac_status" >&5 | ||
24674 | echo "$as_me: failed program was:" >&5 | ||
24675 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24676 | |||
24677 | ( exit $ac_status ) | ||
24678 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24679 | echo "${ECHO_T}no" >&6; } | ||
24680 | select_works_with_rlimit=no | ||
24681 | fi | ||
24682 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
24683 | fi | ||
24684 | |||
24685 | |||
24686 | |||
24687 | { echo "$as_me:$LINENO: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5 | ||
24688 | echo $ECHO_N "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... $ECHO_C" >&6; } | ||
24689 | if test "$cross_compiling" = yes; then | ||
24690 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
24691 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
24692 | |||
24693 | else | ||
24694 | cat >conftest.$ac_ext <<_ACEOF | ||
24695 | /* confdefs.h. */ | ||
24696 | _ACEOF | ||
24697 | cat confdefs.h >>conftest.$ac_ext | ||
24698 | cat >>conftest.$ac_ext <<_ACEOF | ||
24699 | /* end confdefs.h. */ | ||
24700 | |||
24701 | #include <sys/types.h> | ||
24702 | #ifdef HAVE_SYS_TIME_H | ||
24703 | # include <sys/time.h> | ||
24704 | #endif | ||
24705 | #include <sys/resource.h> | ||
24706 | #include <errno.h> | ||
24707 | #include <stdlib.h> | ||
24708 | |||
24709 | int | ||
24710 | main () | ||
24711 | { | ||
24712 | |||
24713 | struct rlimit rl_zero; | ||
24714 | int fd, r; | ||
24715 | fd_set fds; | ||
24716 | |||
24717 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
24718 | r = setrlimit(RLIMIT_NOFILE, &rl_zero); | ||
24719 | exit (r == -1 ? 1 : 0); | ||
24720 | |||
24721 | ; | ||
24722 | return 0; | ||
24723 | } | ||
24724 | _ACEOF | ||
24725 | rm -f conftest$ac_exeext | ||
24726 | if { (ac_try="$ac_link" | ||
24727 | case "(($ac_try" in | ||
24728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24729 | *) ac_try_echo=$ac_try;; | ||
24730 | esac | ||
24731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24732 | (eval "$ac_link") 2>&5 | ||
24733 | ac_status=$? | ||
24734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24735 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
24736 | { (case "(($ac_try" in | ||
24737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24738 | *) ac_try_echo=$ac_try;; | ||
24739 | esac | ||
24740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24741 | (eval "$ac_try") 2>&5 | ||
24742 | ac_status=$? | ||
24743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24744 | (exit $ac_status); }; }; then | ||
24745 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
24746 | echo "${ECHO_T}yes" >&6; } | ||
24747 | rlimit_nofile_zero_works=yes | ||
24748 | else | ||
24749 | echo "$as_me: program exited with status $ac_status" >&5 | ||
24750 | echo "$as_me: failed program was:" >&5 | ||
24751 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24752 | |||
24753 | ( exit $ac_status ) | ||
24754 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24755 | echo "${ECHO_T}no" >&6; } | ||
24756 | rlimit_nofile_zero_works=no | ||
24757 | fi | ||
24758 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
24759 | fi | ||
24760 | |||
24761 | |||
24762 | |||
24763 | { echo "$as_me:$LINENO: checking if setrlimit RLIMIT_FSIZE works" >&5 | ||
24764 | echo $ECHO_N "checking if setrlimit RLIMIT_FSIZE works... $ECHO_C" >&6; } | ||
24765 | if test "$cross_compiling" = yes; then | ||
24766 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
24767 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
24768 | |||
24769 | else | ||
24770 | cat >conftest.$ac_ext <<_ACEOF | ||
24771 | /* confdefs.h. */ | ||
24772 | _ACEOF | ||
24773 | cat confdefs.h >>conftest.$ac_ext | ||
24774 | cat >>conftest.$ac_ext <<_ACEOF | ||
24775 | /* end confdefs.h. */ | ||
24776 | |||
24777 | #include <sys/types.h> | ||
24778 | #include <sys/resource.h> | ||
24779 | #include <stdlib.h> | ||
24780 | |||
24781 | int | ||
24782 | main () | ||
24783 | { | ||
24784 | |||
24785 | struct rlimit rl_zero; | ||
24786 | |||
24787 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
24788 | exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0); | ||
24789 | |||
24790 | ; | ||
24791 | return 0; | ||
24792 | } | ||
24793 | _ACEOF | ||
24794 | rm -f conftest$ac_exeext | ||
24795 | if { (ac_try="$ac_link" | ||
24796 | case "(($ac_try" in | ||
24797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24798 | *) ac_try_echo=$ac_try;; | ||
24799 | esac | ||
24800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24801 | (eval "$ac_link") 2>&5 | ||
24802 | ac_status=$? | ||
24803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24804 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
24805 | { (case "(($ac_try" in | ||
24806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24807 | *) ac_try_echo=$ac_try;; | ||
24808 | esac | ||
24809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24810 | (eval "$ac_try") 2>&5 | ||
24811 | ac_status=$? | ||
24812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24813 | (exit $ac_status); }; }; then | ||
24814 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
24815 | echo "${ECHO_T}yes" >&6; } | ||
24816 | else | ||
24817 | echo "$as_me: program exited with status $ac_status" >&5 | ||
24818 | echo "$as_me: failed program was:" >&5 | ||
24819 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24820 | |||
24821 | ( exit $ac_status ) | ||
24822 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24823 | echo "${ECHO_T}no" >&6; } | ||
24824 | |||
24825 | cat >>confdefs.h <<\_ACEOF | ||
24826 | #define SANDBOX_SKIP_RLIMIT_FSIZE 1 | ||
24827 | _ACEOF | ||
24828 | |||
24829 | fi | ||
24830 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
24831 | fi | ||
24832 | |||
24833 | |||
24834 | |||
24835 | if test "x$sandbox_arg" = "xpledge" || \ | ||
24836 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_pledge" = "xyes" ) ; then | ||
24837 | test "x$ac_cv_func_pledge" != "xyes" && \ | ||
24838 | { { echo "$as_me:$LINENO: error: pledge sandbox requires pledge(2) support" >&5 | ||
24839 | echo "$as_me: error: pledge sandbox requires pledge(2) support" >&2;} | ||
24840 | { (exit 1); exit 1; }; } | ||
24841 | SANDBOX_STYLE="pledge" | ||
24842 | |||
24843 | cat >>confdefs.h <<\_ACEOF | ||
24844 | #define SANDBOX_PLEDGE 1 | ||
24845 | _ACEOF | ||
24846 | |||
24847 | elif test "x$sandbox_arg" = "xsystrace" || \ | ||
24848 | ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then | ||
24849 | test "x$have_systr_policy_kill" != "x1" && \ | ||
24850 | { { echo "$as_me:$LINENO: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&5 | ||
24851 | echo "$as_me: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&2;} | ||
24852 | { (exit 1); exit 1; }; } | ||
24853 | SANDBOX_STYLE="systrace" | ||
24854 | |||
24855 | cat >>confdefs.h <<\_ACEOF | ||
24856 | #define SANDBOX_SYSTRACE 1 | ||
24857 | _ACEOF | ||
24858 | |||
24859 | elif test "x$sandbox_arg" = "xdarwin" || \ | ||
24860 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \ | ||
24861 | test "x$ac_cv_header_sandbox_h" = "xyes") ; then | ||
24862 | test "x$ac_cv_func_sandbox_init" != "xyes" -o \ | ||
24863 | "x$ac_cv_header_sandbox_h" != "xyes" && \ | ||
24864 | { { echo "$as_me:$LINENO: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&5 | ||
24865 | echo "$as_me: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&2;} | ||
24866 | { (exit 1); exit 1; }; } | ||
24867 | SANDBOX_STYLE="darwin" | ||
24868 | |||
24869 | cat >>confdefs.h <<\_ACEOF | ||
24870 | #define SANDBOX_DARWIN 1 | ||
24871 | _ACEOF | ||
24872 | |||
24873 | elif test "x$sandbox_arg" = "xseccomp_filter" || \ | ||
24874 | ( test -z "$sandbox_arg" && \ | ||
24875 | test "x$have_seccomp_filter" = "x1" && \ | ||
24876 | test "x$ac_cv_header_elf_h" = "xyes" && \ | ||
24877 | test "x$ac_cv_header_linux_audit_h" = "xyes" && \ | ||
24878 | test "x$ac_cv_header_linux_filter_h" = "xyes" && \ | ||
24879 | test "x$seccomp_audit_arch" != "x" && \ | ||
24880 | test "x$have_linux_no_new_privs" = "x1" && \ | ||
24881 | test "x$ac_cv_func_prctl" = "xyes" ) ; then | ||
24882 | test "x$seccomp_audit_arch" = "x" && \ | ||
24883 | { { echo "$as_me:$LINENO: error: seccomp_filter sandbox not supported on $host" >&5 | ||
24884 | echo "$as_me: error: seccomp_filter sandbox not supported on $host" >&2;} | ||
24885 | { (exit 1); exit 1; }; } | ||
24886 | test "x$have_linux_no_new_privs" != "x1" && \ | ||
24887 | { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&5 | ||
24888 | echo "$as_me: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&2;} | ||
24889 | { (exit 1); exit 1; }; } | ||
24890 | test "x$have_seccomp_filter" != "x1" && \ | ||
24891 | { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires seccomp headers" >&5 | ||
24892 | echo "$as_me: error: seccomp_filter sandbox requires seccomp headers" >&2;} | ||
24893 | { (exit 1); exit 1; }; } | ||
24894 | test "x$ac_cv_func_prctl" != "xyes" && \ | ||
24895 | { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires prctl function" >&5 | ||
24896 | echo "$as_me: error: seccomp_filter sandbox requires prctl function" >&2;} | ||
24897 | { (exit 1); exit 1; }; } | ||
24898 | SANDBOX_STYLE="seccomp_filter" | ||
24899 | |||
24900 | cat >>confdefs.h <<\_ACEOF | ||
24901 | #define SANDBOX_SECCOMP_FILTER 1 | ||
24902 | _ACEOF | ||
24903 | |||
24904 | elif test "x$sandbox_arg" = "xcapsicum" || \ | ||
24905 | ( test -z "$sandbox_arg" && \ | ||
24906 | test "x$ac_cv_header_sys_capability_h" = "xyes" && \ | ||
24907 | test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then | ||
24908 | test "x$ac_cv_header_sys_capability_h" != "xyes" && \ | ||
24909 | { { echo "$as_me:$LINENO: error: capsicum sandbox requires sys/capability.h header" >&5 | ||
24910 | echo "$as_me: error: capsicum sandbox requires sys/capability.h header" >&2;} | ||
24911 | { (exit 1); exit 1; }; } | ||
24912 | test "x$ac_cv_func_cap_rights_limit" != "xyes" && \ | ||
24913 | { { echo "$as_me:$LINENO: error: capsicum sandbox requires cap_rights_limit function" >&5 | ||
24914 | echo "$as_me: error: capsicum sandbox requires cap_rights_limit function" >&2;} | ||
24915 | { (exit 1); exit 1; }; } | ||
24916 | SANDBOX_STYLE="capsicum" | ||
24917 | |||
24918 | cat >>confdefs.h <<\_ACEOF | ||
24919 | #define SANDBOX_CAPSICUM 1 | ||
24920 | _ACEOF | ||
24921 | |||
24922 | elif test "x$sandbox_arg" = "xrlimit" || \ | ||
24923 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ | ||
24924 | test "x$select_works_with_rlimit" = "xyes" && \ | ||
24925 | test "x$rlimit_nofile_zero_works" = "xyes" ) ; then | ||
24926 | test "x$ac_cv_func_setrlimit" != "xyes" && \ | ||
24927 | { { echo "$as_me:$LINENO: error: rlimit sandbox requires setrlimit function" >&5 | ||
24928 | echo "$as_me: error: rlimit sandbox requires setrlimit function" >&2;} | ||
24929 | { (exit 1); exit 1; }; } | ||
24930 | test "x$select_works_with_rlimit" != "xyes" && \ | ||
24931 | { { echo "$as_me:$LINENO: error: rlimit sandbox requires select to work with rlimit" >&5 | ||
24932 | echo "$as_me: error: rlimit sandbox requires select to work with rlimit" >&2;} | ||
24933 | { (exit 1); exit 1; }; } | ||
24934 | SANDBOX_STYLE="rlimit" | ||
24935 | |||
24936 | cat >>confdefs.h <<\_ACEOF | ||
24937 | #define SANDBOX_RLIMIT 1 | ||
24938 | _ACEOF | ||
24939 | |||
24940 | elif test "x$sandbox_arg" = "xsolaris" || \ | ||
24941 | ( test -z "$sandbox_arg" && test "x$SOLARIS_PRIVS" = "xyes" ) ; then | ||
24942 | SANDBOX_STYLE="solaris" | ||
24943 | |||
24944 | cat >>confdefs.h <<\_ACEOF | ||
24945 | #define SANDBOX_SOLARIS 1 | ||
24946 | _ACEOF | ||
24947 | |||
24948 | elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \ | ||
24949 | test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then | ||
24950 | SANDBOX_STYLE="none" | ||
24951 | |||
24952 | cat >>confdefs.h <<\_ACEOF | ||
24953 | #define SANDBOX_NULL 1 | ||
24954 | _ACEOF | ||
24955 | |||
24956 | else | ||
24957 | { { echo "$as_me:$LINENO: error: unsupported --with-sandbox" >&5 | ||
24958 | echo "$as_me: error: unsupported --with-sandbox" >&2;} | ||
24959 | { (exit 1); exit 1; }; } | ||
24960 | fi | ||
24961 | |||
24962 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
24963 | if test ! -z "$SONY" ; then | ||
24964 | LIBS="$LIBS -liberty"; | ||
24965 | fi | ||
24966 | |||
24967 | # Check for long long datatypes | ||
24968 | { echo "$as_me:$LINENO: checking for long long" >&5 | ||
24969 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | ||
24970 | if test "${ac_cv_type_long_long+set}" = set; then | ||
24971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24972 | else | ||
24973 | cat >conftest.$ac_ext <<_ACEOF | ||
24974 | /* confdefs.h. */ | ||
24975 | _ACEOF | ||
24976 | cat confdefs.h >>conftest.$ac_ext | ||
24977 | cat >>conftest.$ac_ext <<_ACEOF | ||
24978 | /* end confdefs.h. */ | ||
24979 | $ac_includes_default | ||
24980 | typedef long long ac__type_new_; | ||
24981 | int | ||
24982 | main () | ||
24983 | { | ||
24984 | if ((ac__type_new_ *) 0) | ||
24985 | return 0; | ||
24986 | if (sizeof (ac__type_new_)) | ||
24987 | return 0; | ||
24988 | ; | ||
24989 | return 0; | ||
24990 | } | ||
24991 | _ACEOF | ||
24992 | rm -f conftest.$ac_objext | ||
24993 | if { (ac_try="$ac_compile" | ||
24994 | case "(($ac_try" in | ||
24995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24996 | *) ac_try_echo=$ac_try;; | ||
24997 | esac | ||
24998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24999 | (eval "$ac_compile") 2>conftest.er1 | ||
25000 | ac_status=$? | ||
25001 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25002 | rm -f conftest.er1 | ||
25003 | cat conftest.err >&5 | ||
25004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25005 | (exit $ac_status); } && { | ||
25006 | test -z "$ac_c_werror_flag" || | ||
25007 | test ! -s conftest.err | ||
25008 | } && test -s conftest.$ac_objext; then | ||
25009 | ac_cv_type_long_long=yes | ||
25010 | else | ||
25011 | echo "$as_me: failed program was:" >&5 | ||
25012 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25013 | |||
25014 | ac_cv_type_long_long=no | ||
25015 | fi | ||
25016 | |||
25017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25018 | fi | ||
25019 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | ||
25020 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | ||
25021 | if test $ac_cv_type_long_long = yes; then | ||
25022 | |||
25023 | cat >>confdefs.h <<_ACEOF | ||
25024 | #define HAVE_LONG_LONG 1 | ||
25025 | _ACEOF | ||
25026 | |||
25027 | |||
25028 | fi | ||
25029 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 | ||
25030 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } | ||
25031 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then | ||
25032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25033 | else | ||
25034 | cat >conftest.$ac_ext <<_ACEOF | ||
25035 | /* confdefs.h. */ | ||
25036 | _ACEOF | ||
25037 | cat confdefs.h >>conftest.$ac_ext | ||
25038 | cat >>conftest.$ac_ext <<_ACEOF | ||
25039 | /* end confdefs.h. */ | ||
25040 | $ac_includes_default | ||
25041 | typedef unsigned long long ac__type_new_; | ||
25042 | int | ||
25043 | main () | ||
25044 | { | ||
25045 | if ((ac__type_new_ *) 0) | ||
25046 | return 0; | ||
25047 | if (sizeof (ac__type_new_)) | ||
25048 | return 0; | ||
25049 | ; | ||
25050 | return 0; | ||
25051 | } | ||
25052 | _ACEOF | ||
25053 | rm -f conftest.$ac_objext | ||
25054 | if { (ac_try="$ac_compile" | ||
25055 | case "(($ac_try" in | ||
25056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25057 | *) ac_try_echo=$ac_try;; | ||
25058 | esac | ||
25059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25060 | (eval "$ac_compile") 2>conftest.er1 | ||
25061 | ac_status=$? | ||
25062 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25063 | rm -f conftest.er1 | ||
25064 | cat conftest.err >&5 | ||
25065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25066 | (exit $ac_status); } && { | ||
25067 | test -z "$ac_c_werror_flag" || | ||
25068 | test ! -s conftest.err | ||
25069 | } && test -s conftest.$ac_objext; then | ||
25070 | ac_cv_type_unsigned_long_long=yes | ||
25071 | else | ||
25072 | echo "$as_me: failed program was:" >&5 | ||
25073 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25074 | |||
25075 | ac_cv_type_unsigned_long_long=no | ||
25076 | fi | ||
25077 | |||
25078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25079 | fi | ||
25080 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 | ||
25081 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } | ||
25082 | if test $ac_cv_type_unsigned_long_long = yes; then | ||
25083 | |||
25084 | cat >>confdefs.h <<_ACEOF | ||
25085 | #define HAVE_UNSIGNED_LONG_LONG 1 | ||
25086 | _ACEOF | ||
25087 | |||
25088 | |||
25089 | fi | ||
25090 | { echo "$as_me:$LINENO: checking for long double" >&5 | ||
25091 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } | ||
25092 | if test "${ac_cv_type_long_double+set}" = set; then | ||
25093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25094 | else | ||
25095 | cat >conftest.$ac_ext <<_ACEOF | ||
25096 | /* confdefs.h. */ | ||
25097 | _ACEOF | ||
25098 | cat confdefs.h >>conftest.$ac_ext | ||
25099 | cat >>conftest.$ac_ext <<_ACEOF | ||
25100 | /* end confdefs.h. */ | ||
25101 | $ac_includes_default | ||
25102 | typedef long double ac__type_new_; | ||
25103 | int | ||
25104 | main () | ||
25105 | { | ||
25106 | if ((ac__type_new_ *) 0) | ||
25107 | return 0; | ||
25108 | if (sizeof (ac__type_new_)) | ||
25109 | return 0; | ||
25110 | ; | ||
25111 | return 0; | ||
25112 | } | ||
25113 | _ACEOF | ||
25114 | rm -f conftest.$ac_objext | ||
25115 | if { (ac_try="$ac_compile" | ||
25116 | case "(($ac_try" in | ||
25117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25118 | *) ac_try_echo=$ac_try;; | ||
25119 | esac | ||
25120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25121 | (eval "$ac_compile") 2>conftest.er1 | ||
25122 | ac_status=$? | ||
25123 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25124 | rm -f conftest.er1 | ||
25125 | cat conftest.err >&5 | ||
25126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25127 | (exit $ac_status); } && { | ||
25128 | test -z "$ac_c_werror_flag" || | ||
25129 | test ! -s conftest.err | ||
25130 | } && test -s conftest.$ac_objext; then | ||
25131 | ac_cv_type_long_double=yes | ||
25132 | else | ||
25133 | echo "$as_me: failed program was:" >&5 | ||
25134 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25135 | |||
25136 | ac_cv_type_long_double=no | ||
25137 | fi | ||
25138 | |||
25139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25140 | fi | ||
25141 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 | ||
25142 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } | ||
25143 | if test $ac_cv_type_long_double = yes; then | ||
25144 | |||
25145 | cat >>confdefs.h <<_ACEOF | ||
25146 | #define HAVE_LONG_DOUBLE 1 | ||
25147 | _ACEOF | ||
25148 | |||
25149 | |||
25150 | fi | ||
25151 | |||
25152 | |||
25153 | # Check datatype sizes | ||
25154 | { echo "$as_me:$LINENO: checking for short int" >&5 | ||
25155 | echo $ECHO_N "checking for short int... $ECHO_C" >&6; } | ||
25156 | if test "${ac_cv_type_short_int+set}" = set; then | ||
25157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25158 | else | ||
25159 | cat >conftest.$ac_ext <<_ACEOF | ||
25160 | /* confdefs.h. */ | ||
25161 | _ACEOF | ||
25162 | cat confdefs.h >>conftest.$ac_ext | ||
25163 | cat >>conftest.$ac_ext <<_ACEOF | ||
25164 | /* end confdefs.h. */ | ||
25165 | $ac_includes_default | ||
25166 | typedef short int ac__type_new_; | ||
25167 | int | ||
25168 | main () | ||
25169 | { | ||
25170 | if ((ac__type_new_ *) 0) | ||
25171 | return 0; | ||
25172 | if (sizeof (ac__type_new_)) | ||
25173 | return 0; | ||
25174 | ; | ||
25175 | return 0; | ||
25176 | } | ||
25177 | _ACEOF | ||
25178 | rm -f conftest.$ac_objext | ||
25179 | if { (ac_try="$ac_compile" | ||
25180 | case "(($ac_try" in | ||
25181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25182 | *) ac_try_echo=$ac_try;; | ||
25183 | esac | ||
25184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25185 | (eval "$ac_compile") 2>conftest.er1 | ||
25186 | ac_status=$? | ||
25187 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25188 | rm -f conftest.er1 | ||
25189 | cat conftest.err >&5 | ||
25190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25191 | (exit $ac_status); } && { | ||
25192 | test -z "$ac_c_werror_flag" || | ||
25193 | test ! -s conftest.err | ||
25194 | } && test -s conftest.$ac_objext; then | ||
25195 | ac_cv_type_short_int=yes | ||
25196 | else | ||
25197 | echo "$as_me: failed program was:" >&5 | ||
25198 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25199 | |||
25200 | ac_cv_type_short_int=no | ||
25201 | fi | ||
25202 | |||
25203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25204 | fi | ||
25205 | { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 | ||
25206 | echo "${ECHO_T}$ac_cv_type_short_int" >&6; } | ||
25207 | |||
25208 | # The cast to long int works around a bug in the HP C Compiler | ||
25209 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
25210 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
25211 | # This bug is HP SR number 8606223364. | ||
25212 | { echo "$as_me:$LINENO: checking size of short int" >&5 | ||
25213 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6; } | ||
25214 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
25215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25216 | else | ||
25217 | if test "$cross_compiling" = yes; then | ||
25218 | # Depending upon the size, compute the lo and hi bounds. | ||
25219 | cat >conftest.$ac_ext <<_ACEOF | ||
25220 | /* confdefs.h. */ | ||
25221 | _ACEOF | ||
25222 | cat confdefs.h >>conftest.$ac_ext | ||
25223 | cat >>conftest.$ac_ext <<_ACEOF | ||
25224 | /* end confdefs.h. */ | ||
25225 | $ac_includes_default | ||
25226 | typedef short int ac__type_sizeof_; | ||
25227 | int | ||
25228 | main () | ||
25229 | { | ||
25230 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
25231 | test_array [0] = 0 | ||
25232 | |||
25233 | ; | ||
25234 | return 0; | ||
25235 | } | ||
25236 | _ACEOF | ||
25237 | rm -f conftest.$ac_objext | ||
25238 | if { (ac_try="$ac_compile" | ||
25239 | case "(($ac_try" in | ||
25240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25241 | *) ac_try_echo=$ac_try;; | ||
25242 | esac | ||
25243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25244 | (eval "$ac_compile") 2>conftest.er1 | ||
25245 | ac_status=$? | ||
25246 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25247 | rm -f conftest.er1 | ||
25248 | cat conftest.err >&5 | ||
25249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25250 | (exit $ac_status); } && { | ||
25251 | test -z "$ac_c_werror_flag" || | ||
25252 | test ! -s conftest.err | ||
25253 | } && test -s conftest.$ac_objext; then | ||
25254 | ac_lo=0 ac_mid=0 | ||
25255 | while :; do | ||
25256 | cat >conftest.$ac_ext <<_ACEOF | ||
25257 | /* confdefs.h. */ | ||
25258 | _ACEOF | ||
25259 | cat confdefs.h >>conftest.$ac_ext | ||
25260 | cat >>conftest.$ac_ext <<_ACEOF | ||
25261 | /* end confdefs.h. */ | ||
25262 | $ac_includes_default | ||
25263 | typedef short int ac__type_sizeof_; | ||
25264 | int | ||
25265 | main () | ||
25266 | { | ||
25267 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
25268 | test_array [0] = 0 | ||
25269 | |||
25270 | ; | ||
25271 | return 0; | ||
25272 | } | ||
25273 | _ACEOF | ||
25274 | rm -f conftest.$ac_objext | ||
25275 | if { (ac_try="$ac_compile" | ||
25276 | case "(($ac_try" in | ||
25277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25278 | *) ac_try_echo=$ac_try;; | ||
25279 | esac | ||
25280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25281 | (eval "$ac_compile") 2>conftest.er1 | ||
25282 | ac_status=$? | ||
25283 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25284 | rm -f conftest.er1 | ||
25285 | cat conftest.err >&5 | ||
25286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25287 | (exit $ac_status); } && { | ||
25288 | test -z "$ac_c_werror_flag" || | ||
25289 | test ! -s conftest.err | ||
25290 | } && test -s conftest.$ac_objext; then | ||
25291 | ac_hi=$ac_mid; break | ||
25292 | else | ||
25293 | echo "$as_me: failed program was:" >&5 | ||
25294 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25295 | |||
25296 | ac_lo=`expr $ac_mid + 1` | ||
25297 | if test $ac_lo -le $ac_mid; then | ||
25298 | ac_lo= ac_hi= | ||
25299 | break | ||
25300 | fi | ||
25301 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
25302 | fi | ||
25303 | |||
25304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25305 | done | ||
25306 | else | ||
25307 | echo "$as_me: failed program was:" >&5 | ||
25308 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25309 | |||
25310 | cat >conftest.$ac_ext <<_ACEOF | ||
25311 | /* confdefs.h. */ | ||
25312 | _ACEOF | ||
25313 | cat confdefs.h >>conftest.$ac_ext | ||
25314 | cat >>conftest.$ac_ext <<_ACEOF | ||
25315 | /* end confdefs.h. */ | ||
25316 | $ac_includes_default | ||
25317 | typedef short int ac__type_sizeof_; | ||
25318 | int | ||
25319 | main () | ||
25320 | { | ||
25321 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
25322 | test_array [0] = 0 | ||
25323 | |||
25324 | ; | ||
25325 | return 0; | ||
25326 | } | ||
25327 | _ACEOF | ||
25328 | rm -f conftest.$ac_objext | ||
25329 | if { (ac_try="$ac_compile" | ||
25330 | case "(($ac_try" in | ||
25331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25332 | *) ac_try_echo=$ac_try;; | ||
25333 | esac | ||
25334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25335 | (eval "$ac_compile") 2>conftest.er1 | ||
25336 | ac_status=$? | ||
25337 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25338 | rm -f conftest.er1 | ||
25339 | cat conftest.err >&5 | ||
25340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25341 | (exit $ac_status); } && { | ||
25342 | test -z "$ac_c_werror_flag" || | ||
25343 | test ! -s conftest.err | ||
25344 | } && test -s conftest.$ac_objext; then | ||
25345 | ac_hi=-1 ac_mid=-1 | ||
25346 | while :; do | ||
25347 | cat >conftest.$ac_ext <<_ACEOF | ||
25348 | /* confdefs.h. */ | ||
25349 | _ACEOF | ||
25350 | cat confdefs.h >>conftest.$ac_ext | ||
25351 | cat >>conftest.$ac_ext <<_ACEOF | ||
25352 | /* end confdefs.h. */ | ||
25353 | $ac_includes_default | ||
25354 | typedef short int ac__type_sizeof_; | ||
25355 | int | ||
25356 | main () | ||
25357 | { | ||
25358 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
25359 | test_array [0] = 0 | ||
25360 | |||
25361 | ; | ||
25362 | return 0; | ||
25363 | } | ||
25364 | _ACEOF | ||
25365 | rm -f conftest.$ac_objext | ||
25366 | if { (ac_try="$ac_compile" | ||
25367 | case "(($ac_try" in | ||
25368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25369 | *) ac_try_echo=$ac_try;; | ||
25370 | esac | ||
25371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25372 | (eval "$ac_compile") 2>conftest.er1 | ||
25373 | ac_status=$? | ||
25374 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25375 | rm -f conftest.er1 | ||
25376 | cat conftest.err >&5 | ||
25377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25378 | (exit $ac_status); } && { | ||
25379 | test -z "$ac_c_werror_flag" || | ||
25380 | test ! -s conftest.err | ||
25381 | } && test -s conftest.$ac_objext; then | ||
25382 | ac_lo=$ac_mid; break | ||
25383 | else | ||
25384 | echo "$as_me: failed program was:" >&5 | ||
25385 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25386 | |||
25387 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
25388 | if test $ac_mid -le $ac_hi; then | ||
25389 | ac_lo= ac_hi= | ||
25390 | break | ||
25391 | fi | ||
25392 | ac_mid=`expr 2 '*' $ac_mid` | ||
25393 | fi | ||
25394 | |||
25395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25396 | done | ||
25397 | else | ||
25398 | echo "$as_me: failed program was:" >&5 | ||
25399 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25400 | |||
25401 | ac_lo= ac_hi= | ||
25402 | fi | ||
25403 | |||
25404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25405 | fi | ||
25406 | |||
25407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25408 | # Binary search between lo and hi bounds. | ||
25409 | while test "x$ac_lo" != "x$ac_hi"; do | ||
25410 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
25411 | cat >conftest.$ac_ext <<_ACEOF | ||
25412 | /* confdefs.h. */ | ||
25413 | _ACEOF | ||
25414 | cat confdefs.h >>conftest.$ac_ext | ||
25415 | cat >>conftest.$ac_ext <<_ACEOF | ||
25416 | /* end confdefs.h. */ | ||
25417 | $ac_includes_default | ||
25418 | typedef short int ac__type_sizeof_; | ||
25419 | int | ||
25420 | main () | ||
25421 | { | ||
25422 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
25423 | test_array [0] = 0 | ||
25424 | |||
25425 | ; | ||
25426 | return 0; | ||
25427 | } | ||
25428 | _ACEOF | ||
25429 | rm -f conftest.$ac_objext | ||
25430 | if { (ac_try="$ac_compile" | ||
25431 | case "(($ac_try" in | ||
25432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25433 | *) ac_try_echo=$ac_try;; | ||
25434 | esac | ||
25435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25436 | (eval "$ac_compile") 2>conftest.er1 | ||
25437 | ac_status=$? | ||
25438 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25439 | rm -f conftest.er1 | ||
25440 | cat conftest.err >&5 | ||
25441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25442 | (exit $ac_status); } && { | ||
25443 | test -z "$ac_c_werror_flag" || | ||
25444 | test ! -s conftest.err | ||
25445 | } && test -s conftest.$ac_objext; then | ||
25446 | ac_hi=$ac_mid | ||
25447 | else | ||
25448 | echo "$as_me: failed program was:" >&5 | ||
25449 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25450 | |||
25451 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
25452 | fi | ||
25453 | |||
25454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25455 | done | ||
25456 | case $ac_lo in | ||
25457 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | ||
25458 | '') if test "$ac_cv_type_short_int" = yes; then | ||
25459 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
25460 | See \`config.log' for more details." >&5 | ||
25461 | echo "$as_me: error: cannot compute sizeof (short int) | ||
25462 | See \`config.log' for more details." >&2;} | ||
25463 | { (exit 77); exit 77; }; } | ||
25464 | else | ||
25465 | ac_cv_sizeof_short_int=0 | ||
25466 | fi ;; | ||
25467 | esac | ||
25468 | else | ||
25469 | cat >conftest.$ac_ext <<_ACEOF | ||
25470 | /* confdefs.h. */ | ||
25471 | _ACEOF | ||
25472 | cat confdefs.h >>conftest.$ac_ext | ||
25473 | cat >>conftest.$ac_ext <<_ACEOF | ||
25474 | /* end confdefs.h. */ | ||
25475 | $ac_includes_default | ||
25476 | typedef short int ac__type_sizeof_; | ||
25477 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
25478 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
25479 | #include <stdio.h> | ||
25480 | #include <stdlib.h> | ||
25481 | int | ||
25482 | main () | ||
25483 | { | ||
25484 | |||
25485 | FILE *f = fopen ("conftest.val", "w"); | ||
25486 | if (! f) | ||
25487 | return 1; | ||
25488 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
25489 | { | ||
25490 | long int i = longval (); | ||
25491 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
25492 | return 1; | ||
25493 | fprintf (f, "%ld\n", i); | ||
25494 | } | ||
25495 | else | ||
25496 | { | ||
25497 | unsigned long int i = ulongval (); | ||
25498 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
25499 | return 1; | ||
25500 | fprintf (f, "%lu\n", i); | ||
25501 | } | ||
25502 | return ferror (f) || fclose (f) != 0; | ||
25503 | |||
25504 | ; | ||
25505 | return 0; | ||
25506 | } | ||
25507 | _ACEOF | ||
25508 | rm -f conftest$ac_exeext | ||
25509 | if { (ac_try="$ac_link" | ||
25510 | case "(($ac_try" in | ||
25511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25512 | *) ac_try_echo=$ac_try;; | ||
25513 | esac | ||
25514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25515 | (eval "$ac_link") 2>&5 | ||
25516 | ac_status=$? | ||
25517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25518 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
25519 | { (case "(($ac_try" in | ||
25520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25521 | *) ac_try_echo=$ac_try;; | ||
25522 | esac | ||
25523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25524 | (eval "$ac_try") 2>&5 | ||
25525 | ac_status=$? | ||
25526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25527 | (exit $ac_status); }; }; then | ||
25528 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
25529 | else | ||
25530 | echo "$as_me: program exited with status $ac_status" >&5 | ||
25531 | echo "$as_me: failed program was:" >&5 | ||
25532 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25533 | |||
25534 | ( exit $ac_status ) | ||
25535 | if test "$ac_cv_type_short_int" = yes; then | ||
25536 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
25537 | See \`config.log' for more details." >&5 | ||
25538 | echo "$as_me: error: cannot compute sizeof (short int) | ||
25539 | See \`config.log' for more details." >&2;} | ||
25540 | { (exit 77); exit 77; }; } | ||
25541 | else | ||
25542 | ac_cv_sizeof_short_int=0 | ||
25543 | fi | ||
25544 | fi | ||
25545 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
25546 | fi | ||
25547 | rm -f conftest.val | ||
25548 | fi | ||
25549 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | ||
25550 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; } | ||
25551 | |||
25552 | |||
25553 | |||
25554 | cat >>confdefs.h <<_ACEOF | ||
25555 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
25556 | _ACEOF | ||
25557 | |||
25558 | |||
25559 | { echo "$as_me:$LINENO: checking for int" >&5 | ||
25560 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | ||
25561 | if test "${ac_cv_type_int+set}" = set; then | ||
25562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25563 | else | ||
25564 | cat >conftest.$ac_ext <<_ACEOF | ||
25565 | /* confdefs.h. */ | ||
25566 | _ACEOF | ||
25567 | cat confdefs.h >>conftest.$ac_ext | ||
25568 | cat >>conftest.$ac_ext <<_ACEOF | ||
25569 | /* end confdefs.h. */ | ||
25570 | $ac_includes_default | ||
25571 | typedef int ac__type_new_; | ||
25572 | int | ||
25573 | main () | ||
25574 | { | ||
25575 | if ((ac__type_new_ *) 0) | ||
25576 | return 0; | ||
25577 | if (sizeof (ac__type_new_)) | ||
25578 | return 0; | ||
25579 | ; | ||
25580 | return 0; | ||
25581 | } | ||
25582 | _ACEOF | ||
25583 | rm -f conftest.$ac_objext | ||
25584 | if { (ac_try="$ac_compile" | ||
25585 | case "(($ac_try" in | ||
25586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25587 | *) ac_try_echo=$ac_try;; | ||
25588 | esac | ||
25589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25590 | (eval "$ac_compile") 2>conftest.er1 | ||
25591 | ac_status=$? | ||
25592 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25593 | rm -f conftest.er1 | ||
25594 | cat conftest.err >&5 | ||
25595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25596 | (exit $ac_status); } && { | ||
25597 | test -z "$ac_c_werror_flag" || | ||
25598 | test ! -s conftest.err | ||
25599 | } && test -s conftest.$ac_objext; then | ||
25600 | ac_cv_type_int=yes | ||
25601 | else | ||
25602 | echo "$as_me: failed program was:" >&5 | ||
25603 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25604 | |||
25605 | ac_cv_type_int=no | ||
25606 | fi | ||
25607 | |||
25608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25609 | fi | ||
25610 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | ||
25611 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | ||
25612 | |||
25613 | # The cast to long int works around a bug in the HP C Compiler | ||
25614 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
25615 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
25616 | # This bug is HP SR number 8606223364. | ||
25617 | { echo "$as_me:$LINENO: checking size of int" >&5 | ||
25618 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | ||
25619 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
25620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25621 | else | ||
25622 | if test "$cross_compiling" = yes; then | ||
25623 | # Depending upon the size, compute the lo and hi bounds. | ||
25624 | cat >conftest.$ac_ext <<_ACEOF | ||
25625 | /* confdefs.h. */ | ||
25626 | _ACEOF | ||
25627 | cat confdefs.h >>conftest.$ac_ext | ||
25628 | cat >>conftest.$ac_ext <<_ACEOF | ||
25629 | /* end confdefs.h. */ | ||
25630 | $ac_includes_default | ||
25631 | typedef int ac__type_sizeof_; | ||
25632 | int | ||
25633 | main () | ||
25634 | { | ||
25635 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
25636 | test_array [0] = 0 | ||
25637 | |||
25638 | ; | ||
25639 | return 0; | ||
25640 | } | ||
25641 | _ACEOF | ||
25642 | rm -f conftest.$ac_objext | ||
25643 | if { (ac_try="$ac_compile" | ||
25644 | case "(($ac_try" in | ||
25645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25646 | *) ac_try_echo=$ac_try;; | ||
25647 | esac | ||
25648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25649 | (eval "$ac_compile") 2>conftest.er1 | ||
25650 | ac_status=$? | ||
25651 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25652 | rm -f conftest.er1 | ||
25653 | cat conftest.err >&5 | ||
25654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25655 | (exit $ac_status); } && { | ||
25656 | test -z "$ac_c_werror_flag" || | ||
25657 | test ! -s conftest.err | ||
25658 | } && test -s conftest.$ac_objext; then | ||
25659 | ac_lo=0 ac_mid=0 | ||
25660 | while :; do | ||
25661 | cat >conftest.$ac_ext <<_ACEOF | ||
25662 | /* confdefs.h. */ | ||
25663 | _ACEOF | ||
25664 | cat confdefs.h >>conftest.$ac_ext | ||
25665 | cat >>conftest.$ac_ext <<_ACEOF | ||
25666 | /* end confdefs.h. */ | ||
25667 | $ac_includes_default | ||
25668 | typedef int ac__type_sizeof_; | ||
25669 | int | ||
25670 | main () | ||
25671 | { | ||
25672 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
25673 | test_array [0] = 0 | ||
25674 | |||
25675 | ; | ||
25676 | return 0; | ||
25677 | } | ||
25678 | _ACEOF | ||
25679 | rm -f conftest.$ac_objext | ||
25680 | if { (ac_try="$ac_compile" | ||
25681 | case "(($ac_try" in | ||
25682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25683 | *) ac_try_echo=$ac_try;; | ||
25684 | esac | ||
25685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25686 | (eval "$ac_compile") 2>conftest.er1 | ||
25687 | ac_status=$? | ||
25688 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25689 | rm -f conftest.er1 | ||
25690 | cat conftest.err >&5 | ||
25691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25692 | (exit $ac_status); } && { | ||
25693 | test -z "$ac_c_werror_flag" || | ||
25694 | test ! -s conftest.err | ||
25695 | } && test -s conftest.$ac_objext; then | ||
25696 | ac_hi=$ac_mid; break | ||
25697 | else | ||
25698 | echo "$as_me: failed program was:" >&5 | ||
25699 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25700 | |||
25701 | ac_lo=`expr $ac_mid + 1` | ||
25702 | if test $ac_lo -le $ac_mid; then | ||
25703 | ac_lo= ac_hi= | ||
25704 | break | ||
25705 | fi | ||
25706 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
25707 | fi | ||
25708 | |||
25709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25710 | done | ||
25711 | else | ||
25712 | echo "$as_me: failed program was:" >&5 | ||
25713 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25714 | |||
25715 | cat >conftest.$ac_ext <<_ACEOF | ||
25716 | /* confdefs.h. */ | ||
25717 | _ACEOF | ||
25718 | cat confdefs.h >>conftest.$ac_ext | ||
25719 | cat >>conftest.$ac_ext <<_ACEOF | ||
25720 | /* end confdefs.h. */ | ||
25721 | $ac_includes_default | ||
25722 | typedef int ac__type_sizeof_; | ||
25723 | int | ||
25724 | main () | ||
25725 | { | ||
25726 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
25727 | test_array [0] = 0 | ||
25728 | |||
25729 | ; | ||
25730 | return 0; | ||
25731 | } | ||
25732 | _ACEOF | ||
25733 | rm -f conftest.$ac_objext | ||
25734 | if { (ac_try="$ac_compile" | ||
25735 | case "(($ac_try" in | ||
25736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25737 | *) ac_try_echo=$ac_try;; | ||
25738 | esac | ||
25739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25740 | (eval "$ac_compile") 2>conftest.er1 | ||
25741 | ac_status=$? | ||
25742 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25743 | rm -f conftest.er1 | ||
25744 | cat conftest.err >&5 | ||
25745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25746 | (exit $ac_status); } && { | ||
25747 | test -z "$ac_c_werror_flag" || | ||
25748 | test ! -s conftest.err | ||
25749 | } && test -s conftest.$ac_objext; then | ||
25750 | ac_hi=-1 ac_mid=-1 | ||
25751 | while :; do | ||
25752 | cat >conftest.$ac_ext <<_ACEOF | ||
25753 | /* confdefs.h. */ | ||
25754 | _ACEOF | ||
25755 | cat confdefs.h >>conftest.$ac_ext | ||
25756 | cat >>conftest.$ac_ext <<_ACEOF | ||
25757 | /* end confdefs.h. */ | ||
25758 | $ac_includes_default | ||
25759 | typedef int ac__type_sizeof_; | ||
25760 | int | ||
25761 | main () | ||
25762 | { | ||
25763 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
25764 | test_array [0] = 0 | ||
25765 | |||
25766 | ; | ||
25767 | return 0; | ||
25768 | } | ||
25769 | _ACEOF | ||
25770 | rm -f conftest.$ac_objext | ||
25771 | if { (ac_try="$ac_compile" | ||
25772 | case "(($ac_try" in | ||
25773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25774 | *) ac_try_echo=$ac_try;; | ||
25775 | esac | ||
25776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25777 | (eval "$ac_compile") 2>conftest.er1 | ||
25778 | ac_status=$? | ||
25779 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25780 | rm -f conftest.er1 | ||
25781 | cat conftest.err >&5 | ||
25782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25783 | (exit $ac_status); } && { | ||
25784 | test -z "$ac_c_werror_flag" || | ||
25785 | test ! -s conftest.err | ||
25786 | } && test -s conftest.$ac_objext; then | ||
25787 | ac_lo=$ac_mid; break | ||
25788 | else | ||
25789 | echo "$as_me: failed program was:" >&5 | ||
25790 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25791 | |||
25792 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
25793 | if test $ac_mid -le $ac_hi; then | ||
25794 | ac_lo= ac_hi= | ||
25795 | break | ||
25796 | fi | ||
25797 | ac_mid=`expr 2 '*' $ac_mid` | ||
25798 | fi | ||
25799 | |||
25800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25801 | done | ||
25802 | else | ||
25803 | echo "$as_me: failed program was:" >&5 | ||
25804 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25805 | |||
25806 | ac_lo= ac_hi= | ||
25807 | fi | ||
25808 | |||
25809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25810 | fi | ||
25811 | |||
25812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25813 | # Binary search between lo and hi bounds. | ||
25814 | while test "x$ac_lo" != "x$ac_hi"; do | ||
25815 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
25816 | cat >conftest.$ac_ext <<_ACEOF | ||
25817 | /* confdefs.h. */ | ||
25818 | _ACEOF | ||
25819 | cat confdefs.h >>conftest.$ac_ext | ||
25820 | cat >>conftest.$ac_ext <<_ACEOF | ||
25821 | /* end confdefs.h. */ | ||
25822 | $ac_includes_default | ||
25823 | typedef int ac__type_sizeof_; | ||
25824 | int | ||
25825 | main () | ||
25826 | { | ||
25827 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
25828 | test_array [0] = 0 | ||
25829 | |||
25830 | ; | ||
25831 | return 0; | ||
25832 | } | ||
25833 | _ACEOF | ||
25834 | rm -f conftest.$ac_objext | ||
25835 | if { (ac_try="$ac_compile" | ||
25836 | case "(($ac_try" in | ||
25837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25838 | *) ac_try_echo=$ac_try;; | ||
25839 | esac | ||
25840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25841 | (eval "$ac_compile") 2>conftest.er1 | ||
25842 | ac_status=$? | ||
25843 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25844 | rm -f conftest.er1 | ||
25845 | cat conftest.err >&5 | ||
25846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25847 | (exit $ac_status); } && { | ||
25848 | test -z "$ac_c_werror_flag" || | ||
25849 | test ! -s conftest.err | ||
25850 | } && test -s conftest.$ac_objext; then | ||
25851 | ac_hi=$ac_mid | ||
25852 | else | ||
25853 | echo "$as_me: failed program was:" >&5 | ||
25854 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25855 | |||
25856 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
25857 | fi | ||
25858 | |||
25859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25860 | done | ||
25861 | case $ac_lo in | ||
25862 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
25863 | '') if test "$ac_cv_type_int" = yes; then | ||
25864 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
25865 | See \`config.log' for more details." >&5 | ||
25866 | echo "$as_me: error: cannot compute sizeof (int) | ||
25867 | See \`config.log' for more details." >&2;} | ||
25868 | { (exit 77); exit 77; }; } | ||
25869 | else | ||
25870 | ac_cv_sizeof_int=0 | ||
25871 | fi ;; | ||
25872 | esac | ||
25873 | else | ||
25874 | cat >conftest.$ac_ext <<_ACEOF | ||
25875 | /* confdefs.h. */ | ||
25876 | _ACEOF | ||
25877 | cat confdefs.h >>conftest.$ac_ext | ||
25878 | cat >>conftest.$ac_ext <<_ACEOF | ||
25879 | /* end confdefs.h. */ | ||
25880 | $ac_includes_default | ||
25881 | typedef int ac__type_sizeof_; | ||
25882 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
25883 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
25884 | #include <stdio.h> | ||
25885 | #include <stdlib.h> | ||
25886 | int | ||
25887 | main () | ||
25888 | { | ||
25889 | |||
25890 | FILE *f = fopen ("conftest.val", "w"); | ||
25891 | if (! f) | ||
25892 | return 1; | ||
25893 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
25894 | { | ||
25895 | long int i = longval (); | ||
25896 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
25897 | return 1; | ||
25898 | fprintf (f, "%ld\n", i); | ||
25899 | } | ||
25900 | else | ||
25901 | { | ||
25902 | unsigned long int i = ulongval (); | ||
25903 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
25904 | return 1; | ||
25905 | fprintf (f, "%lu\n", i); | ||
25906 | } | ||
25907 | return ferror (f) || fclose (f) != 0; | ||
25908 | |||
25909 | ; | ||
25910 | return 0; | ||
25911 | } | ||
25912 | _ACEOF | ||
25913 | rm -f conftest$ac_exeext | ||
25914 | if { (ac_try="$ac_link" | ||
25915 | case "(($ac_try" in | ||
25916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25917 | *) ac_try_echo=$ac_try;; | ||
25918 | esac | ||
25919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25920 | (eval "$ac_link") 2>&5 | ||
25921 | ac_status=$? | ||
25922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25923 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
25924 | { (case "(($ac_try" in | ||
25925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25926 | *) ac_try_echo=$ac_try;; | ||
25927 | esac | ||
25928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25929 | (eval "$ac_try") 2>&5 | ||
25930 | ac_status=$? | ||
25931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25932 | (exit $ac_status); }; }; then | ||
25933 | ac_cv_sizeof_int=`cat conftest.val` | ||
25934 | else | ||
25935 | echo "$as_me: program exited with status $ac_status" >&5 | ||
25936 | echo "$as_me: failed program was:" >&5 | ||
25937 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25938 | |||
25939 | ( exit $ac_status ) | ||
25940 | if test "$ac_cv_type_int" = yes; then | ||
25941 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
25942 | See \`config.log' for more details." >&5 | ||
25943 | echo "$as_me: error: cannot compute sizeof (int) | ||
25944 | See \`config.log' for more details." >&2;} | ||
25945 | { (exit 77); exit 77; }; } | ||
25946 | else | ||
25947 | ac_cv_sizeof_int=0 | ||
25948 | fi | ||
25949 | fi | ||
25950 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
25951 | fi | ||
25952 | rm -f conftest.val | ||
25953 | fi | ||
25954 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
25955 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | ||
25956 | |||
25957 | |||
25958 | |||
25959 | cat >>confdefs.h <<_ACEOF | ||
25960 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
25961 | _ACEOF | ||
25962 | |||
25963 | |||
25964 | { echo "$as_me:$LINENO: checking for long int" >&5 | ||
25965 | echo $ECHO_N "checking for long int... $ECHO_C" >&6; } | ||
25966 | if test "${ac_cv_type_long_int+set}" = set; then | ||
25967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25968 | else | ||
25969 | cat >conftest.$ac_ext <<_ACEOF | ||
25970 | /* confdefs.h. */ | ||
25971 | _ACEOF | ||
25972 | cat confdefs.h >>conftest.$ac_ext | ||
25973 | cat >>conftest.$ac_ext <<_ACEOF | ||
25974 | /* end confdefs.h. */ | ||
25975 | $ac_includes_default | ||
25976 | typedef long int ac__type_new_; | ||
25977 | int | ||
25978 | main () | ||
25979 | { | ||
25980 | if ((ac__type_new_ *) 0) | ||
25981 | return 0; | ||
25982 | if (sizeof (ac__type_new_)) | ||
25983 | return 0; | ||
25984 | ; | ||
25985 | return 0; | ||
25986 | } | ||
25987 | _ACEOF | ||
25988 | rm -f conftest.$ac_objext | ||
25989 | if { (ac_try="$ac_compile" | ||
25990 | case "(($ac_try" in | ||
25991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25992 | *) ac_try_echo=$ac_try;; | ||
25993 | esac | ||
25994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25995 | (eval "$ac_compile") 2>conftest.er1 | ||
25996 | ac_status=$? | ||
25997 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25998 | rm -f conftest.er1 | ||
25999 | cat conftest.err >&5 | ||
26000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26001 | (exit $ac_status); } && { | ||
26002 | test -z "$ac_c_werror_flag" || | ||
26003 | test ! -s conftest.err | ||
26004 | } && test -s conftest.$ac_objext; then | ||
26005 | ac_cv_type_long_int=yes | ||
26006 | else | ||
26007 | echo "$as_me: failed program was:" >&5 | ||
26008 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26009 | |||
26010 | ac_cv_type_long_int=no | ||
26011 | fi | ||
26012 | |||
26013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26014 | fi | ||
26015 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | ||
26016 | echo "${ECHO_T}$ac_cv_type_long_int" >&6; } | ||
26017 | |||
26018 | # The cast to long int works around a bug in the HP C Compiler | ||
26019 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
26020 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
26021 | # This bug is HP SR number 8606223364. | ||
26022 | { echo "$as_me:$LINENO: checking size of long int" >&5 | ||
26023 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6; } | ||
26024 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
26025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26026 | else | ||
26027 | if test "$cross_compiling" = yes; then | ||
26028 | # Depending upon the size, compute the lo and hi bounds. | ||
26029 | cat >conftest.$ac_ext <<_ACEOF | ||
26030 | /* confdefs.h. */ | ||
26031 | _ACEOF | ||
26032 | cat confdefs.h >>conftest.$ac_ext | ||
26033 | cat >>conftest.$ac_ext <<_ACEOF | ||
26034 | /* end confdefs.h. */ | ||
26035 | $ac_includes_default | ||
26036 | typedef long int ac__type_sizeof_; | ||
26037 | int | ||
26038 | main () | ||
26039 | { | ||
26040 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
26041 | test_array [0] = 0 | ||
26042 | |||
26043 | ; | ||
26044 | return 0; | ||
26045 | } | ||
26046 | _ACEOF | ||
26047 | rm -f conftest.$ac_objext | ||
26048 | if { (ac_try="$ac_compile" | ||
26049 | case "(($ac_try" in | ||
26050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26051 | *) ac_try_echo=$ac_try;; | ||
26052 | esac | ||
26053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26054 | (eval "$ac_compile") 2>conftest.er1 | ||
26055 | ac_status=$? | ||
26056 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26057 | rm -f conftest.er1 | ||
26058 | cat conftest.err >&5 | ||
26059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26060 | (exit $ac_status); } && { | ||
26061 | test -z "$ac_c_werror_flag" || | ||
26062 | test ! -s conftest.err | ||
26063 | } && test -s conftest.$ac_objext; then | ||
26064 | ac_lo=0 ac_mid=0 | ||
26065 | while :; do | ||
26066 | cat >conftest.$ac_ext <<_ACEOF | ||
26067 | /* confdefs.h. */ | ||
26068 | _ACEOF | ||
26069 | cat confdefs.h >>conftest.$ac_ext | ||
26070 | cat >>conftest.$ac_ext <<_ACEOF | ||
26071 | /* end confdefs.h. */ | ||
26072 | $ac_includes_default | ||
26073 | typedef long int ac__type_sizeof_; | ||
26074 | int | ||
26075 | main () | ||
26076 | { | ||
26077 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
26078 | test_array [0] = 0 | ||
26079 | |||
26080 | ; | ||
26081 | return 0; | ||
26082 | } | ||
26083 | _ACEOF | ||
26084 | rm -f conftest.$ac_objext | ||
26085 | if { (ac_try="$ac_compile" | ||
26086 | case "(($ac_try" in | ||
26087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26088 | *) ac_try_echo=$ac_try;; | ||
26089 | esac | ||
26090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26091 | (eval "$ac_compile") 2>conftest.er1 | ||
26092 | ac_status=$? | ||
26093 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26094 | rm -f conftest.er1 | ||
26095 | cat conftest.err >&5 | ||
26096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26097 | (exit $ac_status); } && { | ||
26098 | test -z "$ac_c_werror_flag" || | ||
26099 | test ! -s conftest.err | ||
26100 | } && test -s conftest.$ac_objext; then | ||
26101 | ac_hi=$ac_mid; break | ||
26102 | else | ||
26103 | echo "$as_me: failed program was:" >&5 | ||
26104 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26105 | |||
26106 | ac_lo=`expr $ac_mid + 1` | ||
26107 | if test $ac_lo -le $ac_mid; then | ||
26108 | ac_lo= ac_hi= | ||
26109 | break | ||
26110 | fi | ||
26111 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
26112 | fi | ||
26113 | |||
26114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26115 | done | ||
26116 | else | ||
26117 | echo "$as_me: failed program was:" >&5 | ||
26118 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26119 | |||
26120 | cat >conftest.$ac_ext <<_ACEOF | ||
26121 | /* confdefs.h. */ | ||
26122 | _ACEOF | ||
26123 | cat confdefs.h >>conftest.$ac_ext | ||
26124 | cat >>conftest.$ac_ext <<_ACEOF | ||
26125 | /* end confdefs.h. */ | ||
26126 | $ac_includes_default | ||
26127 | typedef long int ac__type_sizeof_; | ||
26128 | int | ||
26129 | main () | ||
26130 | { | ||
26131 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
26132 | test_array [0] = 0 | ||
26133 | |||
26134 | ; | ||
26135 | return 0; | ||
26136 | } | ||
26137 | _ACEOF | ||
26138 | rm -f conftest.$ac_objext | ||
26139 | if { (ac_try="$ac_compile" | ||
26140 | case "(($ac_try" in | ||
26141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26142 | *) ac_try_echo=$ac_try;; | ||
26143 | esac | ||
26144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26145 | (eval "$ac_compile") 2>conftest.er1 | ||
26146 | ac_status=$? | ||
26147 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26148 | rm -f conftest.er1 | ||
26149 | cat conftest.err >&5 | ||
26150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26151 | (exit $ac_status); } && { | ||
26152 | test -z "$ac_c_werror_flag" || | ||
26153 | test ! -s conftest.err | ||
26154 | } && test -s conftest.$ac_objext; then | ||
26155 | ac_hi=-1 ac_mid=-1 | ||
26156 | while :; do | ||
26157 | cat >conftest.$ac_ext <<_ACEOF | ||
26158 | /* confdefs.h. */ | ||
26159 | _ACEOF | ||
26160 | cat confdefs.h >>conftest.$ac_ext | ||
26161 | cat >>conftest.$ac_ext <<_ACEOF | ||
26162 | /* end confdefs.h. */ | ||
26163 | $ac_includes_default | ||
26164 | typedef long int ac__type_sizeof_; | ||
26165 | int | ||
26166 | main () | ||
26167 | { | ||
26168 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
26169 | test_array [0] = 0 | ||
26170 | |||
26171 | ; | ||
26172 | return 0; | ||
26173 | } | ||
26174 | _ACEOF | ||
26175 | rm -f conftest.$ac_objext | ||
26176 | if { (ac_try="$ac_compile" | ||
26177 | case "(($ac_try" in | ||
26178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26179 | *) ac_try_echo=$ac_try;; | ||
26180 | esac | ||
26181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26182 | (eval "$ac_compile") 2>conftest.er1 | ||
26183 | ac_status=$? | ||
26184 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26185 | rm -f conftest.er1 | ||
26186 | cat conftest.err >&5 | ||
26187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26188 | (exit $ac_status); } && { | ||
26189 | test -z "$ac_c_werror_flag" || | ||
26190 | test ! -s conftest.err | ||
26191 | } && test -s conftest.$ac_objext; then | ||
26192 | ac_lo=$ac_mid; break | ||
26193 | else | ||
26194 | echo "$as_me: failed program was:" >&5 | ||
26195 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26196 | |||
26197 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
26198 | if test $ac_mid -le $ac_hi; then | ||
26199 | ac_lo= ac_hi= | ||
26200 | break | ||
26201 | fi | ||
26202 | ac_mid=`expr 2 '*' $ac_mid` | ||
26203 | fi | ||
26204 | |||
26205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26206 | done | ||
26207 | else | ||
26208 | echo "$as_me: failed program was:" >&5 | ||
26209 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26210 | |||
26211 | ac_lo= ac_hi= | ||
26212 | fi | ||
26213 | |||
26214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26215 | fi | ||
26216 | |||
26217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26218 | # Binary search between lo and hi bounds. | ||
26219 | while test "x$ac_lo" != "x$ac_hi"; do | ||
26220 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
26221 | cat >conftest.$ac_ext <<_ACEOF | ||
26222 | /* confdefs.h. */ | ||
26223 | _ACEOF | ||
26224 | cat confdefs.h >>conftest.$ac_ext | ||
26225 | cat >>conftest.$ac_ext <<_ACEOF | ||
26226 | /* end confdefs.h. */ | ||
26227 | $ac_includes_default | ||
26228 | typedef long int ac__type_sizeof_; | ||
26229 | int | ||
26230 | main () | ||
26231 | { | ||
26232 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
26233 | test_array [0] = 0 | ||
26234 | |||
26235 | ; | ||
26236 | return 0; | ||
26237 | } | ||
26238 | _ACEOF | ||
26239 | rm -f conftest.$ac_objext | ||
26240 | if { (ac_try="$ac_compile" | ||
26241 | case "(($ac_try" in | ||
26242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26243 | *) ac_try_echo=$ac_try;; | ||
26244 | esac | ||
26245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26246 | (eval "$ac_compile") 2>conftest.er1 | ||
26247 | ac_status=$? | ||
26248 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26249 | rm -f conftest.er1 | ||
26250 | cat conftest.err >&5 | ||
26251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26252 | (exit $ac_status); } && { | ||
26253 | test -z "$ac_c_werror_flag" || | ||
26254 | test ! -s conftest.err | ||
26255 | } && test -s conftest.$ac_objext; then | ||
26256 | ac_hi=$ac_mid | ||
26257 | else | ||
26258 | echo "$as_me: failed program was:" >&5 | ||
26259 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26260 | |||
26261 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
26262 | fi | ||
26263 | |||
26264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26265 | done | ||
26266 | case $ac_lo in | ||
26267 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
26268 | '') if test "$ac_cv_type_long_int" = yes; then | ||
26269 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
26270 | See \`config.log' for more details." >&5 | ||
26271 | echo "$as_me: error: cannot compute sizeof (long int) | ||
26272 | See \`config.log' for more details." >&2;} | ||
26273 | { (exit 77); exit 77; }; } | ||
26274 | else | ||
26275 | ac_cv_sizeof_long_int=0 | ||
26276 | fi ;; | ||
26277 | esac | ||
26278 | else | ||
26279 | cat >conftest.$ac_ext <<_ACEOF | ||
26280 | /* confdefs.h. */ | ||
26281 | _ACEOF | ||
26282 | cat confdefs.h >>conftest.$ac_ext | ||
26283 | cat >>conftest.$ac_ext <<_ACEOF | ||
26284 | /* end confdefs.h. */ | ||
26285 | $ac_includes_default | ||
26286 | typedef long int ac__type_sizeof_; | ||
26287 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
26288 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
26289 | #include <stdio.h> | ||
26290 | #include <stdlib.h> | ||
26291 | int | ||
26292 | main () | ||
26293 | { | ||
26294 | |||
26295 | FILE *f = fopen ("conftest.val", "w"); | ||
26296 | if (! f) | ||
26297 | return 1; | ||
26298 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
26299 | { | ||
26300 | long int i = longval (); | ||
26301 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
26302 | return 1; | ||
26303 | fprintf (f, "%ld\n", i); | ||
26304 | } | ||
26305 | else | ||
26306 | { | ||
26307 | unsigned long int i = ulongval (); | ||
26308 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
26309 | return 1; | ||
26310 | fprintf (f, "%lu\n", i); | ||
26311 | } | ||
26312 | return ferror (f) || fclose (f) != 0; | ||
26313 | |||
26314 | ; | ||
26315 | return 0; | ||
26316 | } | ||
26317 | _ACEOF | ||
26318 | rm -f conftest$ac_exeext | ||
26319 | if { (ac_try="$ac_link" | ||
26320 | case "(($ac_try" in | ||
26321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26322 | *) ac_try_echo=$ac_try;; | ||
26323 | esac | ||
26324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26325 | (eval "$ac_link") 2>&5 | ||
26326 | ac_status=$? | ||
26327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26328 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
26329 | { (case "(($ac_try" in | ||
26330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26331 | *) ac_try_echo=$ac_try;; | ||
26332 | esac | ||
26333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26334 | (eval "$ac_try") 2>&5 | ||
26335 | ac_status=$? | ||
26336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26337 | (exit $ac_status); }; }; then | ||
26338 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
26339 | else | ||
26340 | echo "$as_me: program exited with status $ac_status" >&5 | ||
26341 | echo "$as_me: failed program was:" >&5 | ||
26342 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26343 | |||
26344 | ( exit $ac_status ) | ||
26345 | if test "$ac_cv_type_long_int" = yes; then | ||
26346 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
26347 | See \`config.log' for more details." >&5 | ||
26348 | echo "$as_me: error: cannot compute sizeof (long int) | ||
26349 | See \`config.log' for more details." >&2;} | ||
26350 | { (exit 77); exit 77; }; } | ||
26351 | else | ||
26352 | ac_cv_sizeof_long_int=0 | ||
26353 | fi | ||
26354 | fi | ||
26355 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
26356 | fi | ||
26357 | rm -f conftest.val | ||
26358 | fi | ||
26359 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
26360 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; } | ||
26361 | |||
26362 | |||
26363 | |||
26364 | cat >>confdefs.h <<_ACEOF | ||
26365 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
26366 | _ACEOF | ||
26367 | |||
26368 | |||
26369 | { echo "$as_me:$LINENO: checking for long long int" >&5 | ||
26370 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6; } | ||
26371 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
26372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26373 | else | ||
26374 | cat >conftest.$ac_ext <<_ACEOF | ||
26375 | /* confdefs.h. */ | ||
26376 | _ACEOF | ||
26377 | cat confdefs.h >>conftest.$ac_ext | ||
26378 | cat >>conftest.$ac_ext <<_ACEOF | ||
26379 | /* end confdefs.h. */ | ||
26380 | $ac_includes_default | ||
26381 | typedef long long int ac__type_new_; | ||
26382 | int | ||
26383 | main () | ||
26384 | { | ||
26385 | if ((ac__type_new_ *) 0) | ||
26386 | return 0; | ||
26387 | if (sizeof (ac__type_new_)) | ||
26388 | return 0; | ||
26389 | ; | ||
26390 | return 0; | ||
26391 | } | ||
26392 | _ACEOF | ||
26393 | rm -f conftest.$ac_objext | ||
26394 | if { (ac_try="$ac_compile" | ||
26395 | case "(($ac_try" in | ||
26396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26397 | *) ac_try_echo=$ac_try;; | ||
26398 | esac | ||
26399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26400 | (eval "$ac_compile") 2>conftest.er1 | ||
26401 | ac_status=$? | ||
26402 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26403 | rm -f conftest.er1 | ||
26404 | cat conftest.err >&5 | ||
26405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26406 | (exit $ac_status); } && { | ||
26407 | test -z "$ac_c_werror_flag" || | ||
26408 | test ! -s conftest.err | ||
26409 | } && test -s conftest.$ac_objext; then | ||
26410 | ac_cv_type_long_long_int=yes | ||
26411 | else | ||
26412 | echo "$as_me: failed program was:" >&5 | ||
26413 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26414 | |||
26415 | ac_cv_type_long_long_int=no | ||
26416 | fi | ||
26417 | |||
26418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26419 | fi | ||
26420 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | ||
26421 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; } | ||
26422 | |||
26423 | # The cast to long int works around a bug in the HP C Compiler | ||
26424 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
26425 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
26426 | # This bug is HP SR number 8606223364. | ||
26427 | { echo "$as_me:$LINENO: checking size of long long int" >&5 | ||
26428 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; } | ||
26429 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
26430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26431 | else | ||
26432 | if test "$cross_compiling" = yes; then | ||
26433 | # Depending upon the size, compute the lo and hi bounds. | ||
26434 | cat >conftest.$ac_ext <<_ACEOF | ||
26435 | /* confdefs.h. */ | ||
26436 | _ACEOF | ||
26437 | cat confdefs.h >>conftest.$ac_ext | ||
26438 | cat >>conftest.$ac_ext <<_ACEOF | ||
26439 | /* end confdefs.h. */ | ||
26440 | $ac_includes_default | ||
26441 | typedef long long int ac__type_sizeof_; | ||
26442 | int | ||
26443 | main () | ||
26444 | { | ||
26445 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
26446 | test_array [0] = 0 | ||
26447 | |||
26448 | ; | ||
26449 | return 0; | ||
26450 | } | ||
26451 | _ACEOF | ||
26452 | rm -f conftest.$ac_objext | ||
26453 | if { (ac_try="$ac_compile" | ||
26454 | case "(($ac_try" in | ||
26455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26456 | *) ac_try_echo=$ac_try;; | ||
26457 | esac | ||
26458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26459 | (eval "$ac_compile") 2>conftest.er1 | ||
26460 | ac_status=$? | ||
26461 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26462 | rm -f conftest.er1 | ||
26463 | cat conftest.err >&5 | ||
26464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26465 | (exit $ac_status); } && { | ||
26466 | test -z "$ac_c_werror_flag" || | ||
26467 | test ! -s conftest.err | ||
26468 | } && test -s conftest.$ac_objext; then | ||
26469 | ac_lo=0 ac_mid=0 | ||
26470 | while :; do | ||
26471 | cat >conftest.$ac_ext <<_ACEOF | ||
26472 | /* confdefs.h. */ | ||
26473 | _ACEOF | ||
26474 | cat confdefs.h >>conftest.$ac_ext | ||
26475 | cat >>conftest.$ac_ext <<_ACEOF | ||
26476 | /* end confdefs.h. */ | ||
26477 | $ac_includes_default | ||
26478 | typedef long long int ac__type_sizeof_; | ||
26479 | int | ||
26480 | main () | ||
26481 | { | ||
26482 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
26483 | test_array [0] = 0 | ||
26484 | |||
26485 | ; | ||
26486 | return 0; | ||
26487 | } | ||
26488 | _ACEOF | ||
26489 | rm -f conftest.$ac_objext | ||
26490 | if { (ac_try="$ac_compile" | ||
26491 | case "(($ac_try" in | ||
26492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26493 | *) ac_try_echo=$ac_try;; | ||
26494 | esac | ||
26495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26496 | (eval "$ac_compile") 2>conftest.er1 | ||
26497 | ac_status=$? | ||
26498 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26499 | rm -f conftest.er1 | ||
26500 | cat conftest.err >&5 | ||
26501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26502 | (exit $ac_status); } && { | ||
26503 | test -z "$ac_c_werror_flag" || | ||
26504 | test ! -s conftest.err | ||
26505 | } && test -s conftest.$ac_objext; then | ||
26506 | ac_hi=$ac_mid; break | ||
26507 | else | ||
26508 | echo "$as_me: failed program was:" >&5 | ||
26509 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26510 | |||
26511 | ac_lo=`expr $ac_mid + 1` | ||
26512 | if test $ac_lo -le $ac_mid; then | ||
26513 | ac_lo= ac_hi= | ||
26514 | break | ||
26515 | fi | ||
26516 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
26517 | fi | ||
26518 | |||
26519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26520 | done | ||
26521 | else | ||
26522 | echo "$as_me: failed program was:" >&5 | ||
26523 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26524 | |||
26525 | cat >conftest.$ac_ext <<_ACEOF | ||
26526 | /* confdefs.h. */ | ||
26527 | _ACEOF | ||
26528 | cat confdefs.h >>conftest.$ac_ext | ||
26529 | cat >>conftest.$ac_ext <<_ACEOF | ||
26530 | /* end confdefs.h. */ | ||
26531 | $ac_includes_default | ||
26532 | typedef long long int ac__type_sizeof_; | ||
26533 | int | ||
26534 | main () | ||
26535 | { | ||
26536 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
26537 | test_array [0] = 0 | ||
26538 | |||
26539 | ; | ||
26540 | return 0; | ||
26541 | } | ||
26542 | _ACEOF | ||
26543 | rm -f conftest.$ac_objext | ||
26544 | if { (ac_try="$ac_compile" | ||
26545 | case "(($ac_try" in | ||
26546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26547 | *) ac_try_echo=$ac_try;; | ||
26548 | esac | ||
26549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26550 | (eval "$ac_compile") 2>conftest.er1 | ||
26551 | ac_status=$? | ||
26552 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26553 | rm -f conftest.er1 | ||
26554 | cat conftest.err >&5 | ||
26555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26556 | (exit $ac_status); } && { | ||
26557 | test -z "$ac_c_werror_flag" || | ||
26558 | test ! -s conftest.err | ||
26559 | } && test -s conftest.$ac_objext; then | ||
26560 | ac_hi=-1 ac_mid=-1 | ||
26561 | while :; do | ||
26562 | cat >conftest.$ac_ext <<_ACEOF | ||
26563 | /* confdefs.h. */ | ||
26564 | _ACEOF | ||
26565 | cat confdefs.h >>conftest.$ac_ext | ||
26566 | cat >>conftest.$ac_ext <<_ACEOF | ||
26567 | /* end confdefs.h. */ | ||
26568 | $ac_includes_default | ||
26569 | typedef long long int ac__type_sizeof_; | ||
26570 | int | ||
26571 | main () | ||
26572 | { | ||
26573 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
26574 | test_array [0] = 0 | ||
26575 | |||
26576 | ; | ||
26577 | return 0; | ||
26578 | } | ||
26579 | _ACEOF | ||
26580 | rm -f conftest.$ac_objext | ||
26581 | if { (ac_try="$ac_compile" | ||
26582 | case "(($ac_try" in | ||
26583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26584 | *) ac_try_echo=$ac_try;; | ||
26585 | esac | ||
26586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26587 | (eval "$ac_compile") 2>conftest.er1 | ||
26588 | ac_status=$? | ||
26589 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26590 | rm -f conftest.er1 | ||
26591 | cat conftest.err >&5 | ||
26592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26593 | (exit $ac_status); } && { | ||
26594 | test -z "$ac_c_werror_flag" || | ||
26595 | test ! -s conftest.err | ||
26596 | } && test -s conftest.$ac_objext; then | ||
26597 | ac_lo=$ac_mid; break | ||
26598 | else | ||
26599 | echo "$as_me: failed program was:" >&5 | ||
26600 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26601 | |||
26602 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
26603 | if test $ac_mid -le $ac_hi; then | ||
26604 | ac_lo= ac_hi= | ||
26605 | break | ||
26606 | fi | ||
26607 | ac_mid=`expr 2 '*' $ac_mid` | ||
26608 | fi | ||
26609 | |||
26610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26611 | done | ||
26612 | else | ||
26613 | echo "$as_me: failed program was:" >&5 | ||
26614 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26615 | |||
26616 | ac_lo= ac_hi= | ||
26617 | fi | ||
26618 | |||
26619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26620 | fi | ||
26621 | |||
26622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26623 | # Binary search between lo and hi bounds. | ||
26624 | while test "x$ac_lo" != "x$ac_hi"; do | ||
26625 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
26626 | cat >conftest.$ac_ext <<_ACEOF | ||
26627 | /* confdefs.h. */ | ||
26628 | _ACEOF | ||
26629 | cat confdefs.h >>conftest.$ac_ext | ||
26630 | cat >>conftest.$ac_ext <<_ACEOF | ||
26631 | /* end confdefs.h. */ | ||
26632 | $ac_includes_default | ||
26633 | typedef long long int ac__type_sizeof_; | ||
26634 | int | ||
26635 | main () | ||
26636 | { | ||
26637 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
26638 | test_array [0] = 0 | ||
26639 | |||
26640 | ; | ||
26641 | return 0; | ||
26642 | } | ||
26643 | _ACEOF | ||
26644 | rm -f conftest.$ac_objext | ||
26645 | if { (ac_try="$ac_compile" | ||
26646 | case "(($ac_try" in | ||
26647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26648 | *) ac_try_echo=$ac_try;; | ||
26649 | esac | ||
26650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26651 | (eval "$ac_compile") 2>conftest.er1 | ||
26652 | ac_status=$? | ||
26653 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26654 | rm -f conftest.er1 | ||
26655 | cat conftest.err >&5 | ||
26656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26657 | (exit $ac_status); } && { | ||
26658 | test -z "$ac_c_werror_flag" || | ||
26659 | test ! -s conftest.err | ||
26660 | } && test -s conftest.$ac_objext; then | ||
26661 | ac_hi=$ac_mid | ||
26662 | else | ||
26663 | echo "$as_me: failed program was:" >&5 | ||
26664 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26665 | |||
26666 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
26667 | fi | ||
26668 | |||
26669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26670 | done | ||
26671 | case $ac_lo in | ||
26672 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | ||
26673 | '') if test "$ac_cv_type_long_long_int" = yes; then | ||
26674 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
26675 | See \`config.log' for more details." >&5 | ||
26676 | echo "$as_me: error: cannot compute sizeof (long long int) | ||
26677 | See \`config.log' for more details." >&2;} | ||
26678 | { (exit 77); exit 77; }; } | ||
26679 | else | ||
26680 | ac_cv_sizeof_long_long_int=0 | ||
26681 | fi ;; | ||
26682 | esac | ||
26683 | else | ||
26684 | cat >conftest.$ac_ext <<_ACEOF | ||
26685 | /* confdefs.h. */ | ||
26686 | _ACEOF | ||
26687 | cat confdefs.h >>conftest.$ac_ext | ||
26688 | cat >>conftest.$ac_ext <<_ACEOF | ||
26689 | /* end confdefs.h. */ | ||
26690 | $ac_includes_default | ||
26691 | typedef long long int ac__type_sizeof_; | ||
26692 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
26693 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
26694 | #include <stdio.h> | ||
26695 | #include <stdlib.h> | ||
26696 | int | ||
26697 | main () | ||
26698 | { | ||
26699 | |||
26700 | FILE *f = fopen ("conftest.val", "w"); | ||
26701 | if (! f) | ||
26702 | return 1; | ||
26703 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
26704 | { | ||
26705 | long int i = longval (); | ||
26706 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
26707 | return 1; | ||
26708 | fprintf (f, "%ld\n", i); | ||
26709 | } | ||
26710 | else | ||
26711 | { | ||
26712 | unsigned long int i = ulongval (); | ||
26713 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
26714 | return 1; | ||
26715 | fprintf (f, "%lu\n", i); | ||
26716 | } | ||
26717 | return ferror (f) || fclose (f) != 0; | ||
26718 | |||
26719 | ; | ||
26720 | return 0; | ||
26721 | } | ||
26722 | _ACEOF | ||
26723 | rm -f conftest$ac_exeext | ||
26724 | if { (ac_try="$ac_link" | ||
26725 | case "(($ac_try" in | ||
26726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26727 | *) ac_try_echo=$ac_try;; | ||
26728 | esac | ||
26729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26730 | (eval "$ac_link") 2>&5 | ||
26731 | ac_status=$? | ||
26732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26733 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
26734 | { (case "(($ac_try" in | ||
26735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26736 | *) ac_try_echo=$ac_try;; | ||
26737 | esac | ||
26738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26739 | (eval "$ac_try") 2>&5 | ||
26740 | ac_status=$? | ||
26741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26742 | (exit $ac_status); }; }; then | ||
26743 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
26744 | else | ||
26745 | echo "$as_me: program exited with status $ac_status" >&5 | ||
26746 | echo "$as_me: failed program was:" >&5 | ||
26747 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26748 | |||
26749 | ( exit $ac_status ) | ||
26750 | if test "$ac_cv_type_long_long_int" = yes; then | ||
26751 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
26752 | See \`config.log' for more details." >&5 | ||
26753 | echo "$as_me: error: cannot compute sizeof (long long int) | ||
26754 | See \`config.log' for more details." >&2;} | ||
26755 | { (exit 77); exit 77; }; } | ||
26756 | else | ||
26757 | ac_cv_sizeof_long_long_int=0 | ||
26758 | fi | ||
26759 | fi | ||
26760 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
26761 | fi | ||
26762 | rm -f conftest.val | ||
26763 | fi | ||
26764 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | ||
26765 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; } | ||
26766 | |||
26767 | |||
26768 | |||
26769 | cat >>confdefs.h <<_ACEOF | ||
26770 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
26771 | _ACEOF | ||
26772 | |||
26773 | |||
26774 | |||
26775 | # Sanity check long long for some platforms (AIX) | ||
26776 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
26777 | ac_cv_sizeof_long_long_int=0 | ||
26778 | fi | ||
26779 | |||
26780 | # compute LLONG_MIN and LLONG_MAX if we don't know them. | ||
26781 | if test -z "$have_llong_max"; then | ||
26782 | { echo "$as_me:$LINENO: checking for max value of long long" >&5 | ||
26783 | echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; } | ||
26784 | if test "$cross_compiling" = yes; then | ||
26785 | |||
26786 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
26787 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
26788 | |||
26789 | |||
26790 | else | ||
26791 | cat >conftest.$ac_ext <<_ACEOF | ||
26792 | /* confdefs.h. */ | ||
26793 | _ACEOF | ||
26794 | cat confdefs.h >>conftest.$ac_ext | ||
26795 | cat >>conftest.$ac_ext <<_ACEOF | ||
26796 | /* end confdefs.h. */ | ||
26797 | |||
26798 | #include <stdio.h> | ||
26799 | /* Why is this so damn hard? */ | ||
26800 | #ifdef __GNUC__ | ||
26801 | # undef __GNUC__ | ||
26802 | #endif | ||
26803 | #define __USE_ISOC99 | ||
26804 | #include <limits.h> | ||
26805 | #define DATA "conftest.llminmax" | ||
26806 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) | ||
26807 | |||
26808 | /* | ||
26809 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so | ||
26810 | * we do this the hard way. | ||
26811 | */ | ||
26812 | static int | ||
26813 | fprint_ll(FILE *f, long long n) | ||
26814 | { | ||
26815 | unsigned int i; | ||
26816 | int l[sizeof(long long) * 8]; | ||
26817 | |||
26818 | if (n < 0) | ||
26819 | if (fprintf(f, "-") < 0) | ||
26820 | return -1; | ||
26821 | for (i = 0; n != 0; i++) { | ||
26822 | l[i] = my_abs(n % 10); | ||
26823 | n /= 10; | ||
26824 | } | ||
26825 | do { | ||
26826 | if (fprintf(f, "%d", l[--i]) < 0) | ||
26827 | return -1; | ||
26828 | } while (i != 0); | ||
26829 | if (fprintf(f, " ") < 0) | ||
26830 | return -1; | ||
26831 | return 0; | ||
26832 | } | ||
26833 | |||
26834 | int | ||
26835 | main () | ||
26836 | { | ||
26837 | |||
26838 | FILE *f; | ||
26839 | long long i, llmin, llmax = 0; | ||
26840 | |||
26841 | if((f = fopen(DATA,"w")) == NULL) | ||
26842 | exit(1); | ||
26843 | |||
26844 | #if defined(LLONG_MIN) && defined(LLONG_MAX) | ||
26845 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); | ||
26846 | llmin = LLONG_MIN; | ||
26847 | llmax = LLONG_MAX; | ||
26848 | #else | ||
26849 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); | ||
26850 | /* This will work on one's complement and two's complement */ | ||
26851 | for (i = 1; i > llmax; i <<= 1, i++) | ||
26852 | llmax = i; | ||
26853 | llmin = llmax + 1LL; /* wrap */ | ||
26854 | #endif | ||
26855 | |||
26856 | /* Sanity check */ | ||
26857 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | ||
26858 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 | ||
26859 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { | ||
26860 | fprintf(f, "unknown unknown\n"); | ||
26861 | exit(2); | ||
26862 | } | ||
26863 | |||
26864 | if (fprint_ll(f, llmin) < 0) | ||
26865 | exit(3); | ||
26866 | if (fprint_ll(f, llmax) < 0) | ||
26867 | exit(4); | ||
26868 | if (fclose(f) < 0) | ||
26869 | exit(5); | ||
26870 | exit(0); | ||
26871 | |||
26872 | ; | ||
26873 | return 0; | ||
26874 | } | ||
26875 | _ACEOF | ||
26876 | rm -f conftest$ac_exeext | ||
26877 | if { (ac_try="$ac_link" | ||
26878 | case "(($ac_try" in | ||
26879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26880 | *) ac_try_echo=$ac_try;; | ||
26881 | esac | ||
26882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26883 | (eval "$ac_link") 2>&5 | ||
26884 | ac_status=$? | ||
26885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26886 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
26887 | { (case "(($ac_try" in | ||
26888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26889 | *) ac_try_echo=$ac_try;; | ||
26890 | esac | ||
26891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26892 | (eval "$ac_try") 2>&5 | ||
26893 | ac_status=$? | ||
26894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26895 | (exit $ac_status); }; }; then | ||
26896 | |||
26897 | llong_min=`$AWK '{print $1}' conftest.llminmax` | ||
26898 | llong_max=`$AWK '{print $2}' conftest.llminmax` | ||
26899 | |||
26900 | { echo "$as_me:$LINENO: result: $llong_max" >&5 | ||
26901 | echo "${ECHO_T}$llong_max" >&6; } | ||
26902 | |||
26903 | cat >>confdefs.h <<_ACEOF | ||
26904 | #define LLONG_MAX ${llong_max}LL | ||
26905 | _ACEOF | ||
26906 | |||
26907 | { echo "$as_me:$LINENO: checking for min value of long long" >&5 | ||
26908 | echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; } | ||
26909 | { echo "$as_me:$LINENO: result: $llong_min" >&5 | ||
26910 | echo "${ECHO_T}$llong_min" >&6; } | ||
26911 | |||
26912 | cat >>confdefs.h <<_ACEOF | ||
26913 | #define LLONG_MIN ${llong_min}LL | ||
26914 | _ACEOF | ||
26915 | |||
26916 | |||
26917 | else | ||
26918 | echo "$as_me: program exited with status $ac_status" >&5 | ||
26919 | echo "$as_me: failed program was:" >&5 | ||
26920 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26921 | |||
26922 | ( exit $ac_status ) | ||
26923 | |||
26924 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
26925 | echo "${ECHO_T}not found" >&6; } | ||
26926 | |||
26927 | fi | ||
26928 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
26929 | fi | ||
26930 | |||
26931 | |||
26932 | fi | ||
26933 | |||
26934 | |||
26935 | # More checks for data types | ||
26936 | { echo "$as_me:$LINENO: checking for u_int type" >&5 | ||
26937 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; } | ||
26938 | if test "${ac_cv_have_u_int+set}" = set; then | ||
26939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26940 | else | ||
26941 | |||
26942 | cat >conftest.$ac_ext <<_ACEOF | ||
26943 | /* confdefs.h. */ | ||
26944 | _ACEOF | ||
26945 | cat confdefs.h >>conftest.$ac_ext | ||
26946 | cat >>conftest.$ac_ext <<_ACEOF | ||
26947 | /* end confdefs.h. */ | ||
26948 | #include <sys/types.h> | ||
26949 | int | ||
26950 | main () | ||
26951 | { | ||
26952 | u_int a; a = 1; | ||
26953 | ; | ||
26954 | return 0; | ||
26955 | } | ||
26956 | _ACEOF | ||
26957 | rm -f conftest.$ac_objext | ||
26958 | if { (ac_try="$ac_compile" | ||
26959 | case "(($ac_try" in | ||
26960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26961 | *) ac_try_echo=$ac_try;; | ||
26962 | esac | ||
26963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26964 | (eval "$ac_compile") 2>conftest.er1 | ||
26965 | ac_status=$? | ||
26966 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26967 | rm -f conftest.er1 | ||
26968 | cat conftest.err >&5 | ||
26969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26970 | (exit $ac_status); } && { | ||
26971 | test -z "$ac_c_werror_flag" || | ||
26972 | test ! -s conftest.err | ||
26973 | } && test -s conftest.$ac_objext; then | ||
26974 | ac_cv_have_u_int="yes" | ||
26975 | else | ||
26976 | echo "$as_me: failed program was:" >&5 | ||
26977 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26978 | |||
26979 | ac_cv_have_u_int="no" | ||
26980 | |||
26981 | fi | ||
26982 | |||
26983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26984 | |||
26985 | fi | ||
26986 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | ||
26987 | echo "${ECHO_T}$ac_cv_have_u_int" >&6; } | ||
26988 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
26989 | |||
26990 | cat >>confdefs.h <<\_ACEOF | ||
26991 | #define HAVE_U_INT 1 | ||
26992 | _ACEOF | ||
26993 | |||
26994 | have_u_int=1 | ||
26995 | fi | ||
26996 | |||
26997 | { echo "$as_me:$LINENO: checking for intXX_t types" >&5 | ||
26998 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; } | ||
26999 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
27000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27001 | else | ||
27002 | |||
27003 | cat >conftest.$ac_ext <<_ACEOF | ||
27004 | /* confdefs.h. */ | ||
27005 | _ACEOF | ||
27006 | cat confdefs.h >>conftest.$ac_ext | ||
27007 | cat >>conftest.$ac_ext <<_ACEOF | ||
27008 | /* end confdefs.h. */ | ||
27009 | #include <sys/types.h> | ||
27010 | int | ||
27011 | main () | ||
27012 | { | ||
27013 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
27014 | ; | ||
27015 | return 0; | ||
27016 | } | ||
27017 | _ACEOF | ||
27018 | rm -f conftest.$ac_objext | ||
27019 | if { (ac_try="$ac_compile" | ||
27020 | case "(($ac_try" in | ||
27021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27022 | *) ac_try_echo=$ac_try;; | ||
27023 | esac | ||
27024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27025 | (eval "$ac_compile") 2>conftest.er1 | ||
27026 | ac_status=$? | ||
27027 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27028 | rm -f conftest.er1 | ||
27029 | cat conftest.err >&5 | ||
27030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27031 | (exit $ac_status); } && { | ||
27032 | test -z "$ac_c_werror_flag" || | ||
27033 | test ! -s conftest.err | ||
27034 | } && test -s conftest.$ac_objext; then | ||
27035 | ac_cv_have_intxx_t="yes" | ||
27036 | else | ||
27037 | echo "$as_me: failed program was:" >&5 | ||
27038 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27039 | |||
27040 | ac_cv_have_intxx_t="no" | ||
27041 | |||
27042 | fi | ||
27043 | |||
27044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27045 | |||
27046 | fi | ||
27047 | { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | ||
27048 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; } | ||
27049 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
27050 | |||
27051 | cat >>confdefs.h <<\_ACEOF | ||
27052 | #define HAVE_INTXX_T 1 | ||
27053 | _ACEOF | ||
27054 | |||
27055 | have_intxx_t=1 | ||
27056 | fi | ||
27057 | |||
27058 | if (test -z "$have_intxx_t" && \ | ||
27059 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
27060 | then | ||
27061 | { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | ||
27062 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; } | ||
27063 | cat >conftest.$ac_ext <<_ACEOF | ||
27064 | /* confdefs.h. */ | ||
27065 | _ACEOF | ||
27066 | cat confdefs.h >>conftest.$ac_ext | ||
27067 | cat >>conftest.$ac_ext <<_ACEOF | ||
27068 | /* end confdefs.h. */ | ||
27069 | #include <stdint.h> | ||
27070 | int | ||
27071 | main () | ||
27072 | { | ||
27073 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
27074 | ; | ||
27075 | return 0; | ||
27076 | } | ||
27077 | _ACEOF | ||
27078 | rm -f conftest.$ac_objext | ||
27079 | if { (ac_try="$ac_compile" | ||
27080 | case "(($ac_try" in | ||
27081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27082 | *) ac_try_echo=$ac_try;; | ||
27083 | esac | ||
27084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27085 | (eval "$ac_compile") 2>conftest.er1 | ||
27086 | ac_status=$? | ||
27087 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27088 | rm -f conftest.er1 | ||
27089 | cat conftest.err >&5 | ||
27090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27091 | (exit $ac_status); } && { | ||
27092 | test -z "$ac_c_werror_flag" || | ||
27093 | test ! -s conftest.err | ||
27094 | } && test -s conftest.$ac_objext; then | ||
27095 | |||
27096 | cat >>confdefs.h <<\_ACEOF | ||
27097 | #define HAVE_INTXX_T 1 | ||
27098 | _ACEOF | ||
27099 | |||
27100 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27101 | echo "${ECHO_T}yes" >&6; } | ||
27102 | |||
27103 | else | ||
27104 | echo "$as_me: failed program was:" >&5 | ||
27105 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27106 | |||
27107 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27108 | echo "${ECHO_T}no" >&6; } | ||
27109 | |||
27110 | fi | ||
27111 | |||
27112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27113 | fi | ||
27114 | |||
27115 | { echo "$as_me:$LINENO: checking for int64_t type" >&5 | ||
27116 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; } | ||
27117 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
27118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27119 | else | ||
27120 | |||
27121 | cat >conftest.$ac_ext <<_ACEOF | ||
27122 | /* confdefs.h. */ | ||
27123 | _ACEOF | ||
27124 | cat confdefs.h >>conftest.$ac_ext | ||
27125 | cat >>conftest.$ac_ext <<_ACEOF | ||
27126 | /* end confdefs.h. */ | ||
27127 | |||
27128 | #include <sys/types.h> | ||
27129 | #ifdef HAVE_STDINT_H | ||
27130 | # include <stdint.h> | ||
27131 | #endif | ||
27132 | #include <sys/socket.h> | ||
27133 | #ifdef HAVE_SYS_BITYPES_H | ||
27134 | # include <sys/bitypes.h> | ||
27135 | #endif | ||
27136 | |||
27137 | int | ||
27138 | main () | ||
27139 | { | ||
27140 | |||
27141 | int64_t a; a = 1; | ||
27142 | |||
27143 | ; | ||
27144 | return 0; | ||
27145 | } | ||
27146 | _ACEOF | ||
27147 | rm -f conftest.$ac_objext | ||
27148 | if { (ac_try="$ac_compile" | ||
27149 | case "(($ac_try" in | ||
27150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27151 | *) ac_try_echo=$ac_try;; | ||
27152 | esac | ||
27153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27154 | (eval "$ac_compile") 2>conftest.er1 | ||
27155 | ac_status=$? | ||
27156 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27157 | rm -f conftest.er1 | ||
27158 | cat conftest.err >&5 | ||
27159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27160 | (exit $ac_status); } && { | ||
27161 | test -z "$ac_c_werror_flag" || | ||
27162 | test ! -s conftest.err | ||
27163 | } && test -s conftest.$ac_objext; then | ||
27164 | ac_cv_have_int64_t="yes" | ||
27165 | else | ||
27166 | echo "$as_me: failed program was:" >&5 | ||
27167 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27168 | |||
27169 | ac_cv_have_int64_t="no" | ||
27170 | |||
27171 | fi | ||
27172 | |||
27173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27174 | |||
27175 | fi | ||
27176 | { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | ||
27177 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6; } | ||
27178 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
27179 | |||
27180 | cat >>confdefs.h <<\_ACEOF | ||
27181 | #define HAVE_INT64_T 1 | ||
27182 | _ACEOF | ||
27183 | |||
27184 | fi | ||
27185 | |||
27186 | { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | ||
27187 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; } | ||
27188 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
27189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27190 | else | ||
27191 | |||
27192 | cat >conftest.$ac_ext <<_ACEOF | ||
27193 | /* confdefs.h. */ | ||
27194 | _ACEOF | ||
27195 | cat confdefs.h >>conftest.$ac_ext | ||
27196 | cat >>conftest.$ac_ext <<_ACEOF | ||
27197 | /* end confdefs.h. */ | ||
27198 | #include <sys/types.h> | ||
27199 | int | ||
27200 | main () | ||
27201 | { | ||
27202 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
27203 | ; | ||
27204 | return 0; | ||
27205 | } | ||
27206 | _ACEOF | ||
27207 | rm -f conftest.$ac_objext | ||
27208 | if { (ac_try="$ac_compile" | ||
27209 | case "(($ac_try" in | ||
27210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27211 | *) ac_try_echo=$ac_try;; | ||
27212 | esac | ||
27213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27214 | (eval "$ac_compile") 2>conftest.er1 | ||
27215 | ac_status=$? | ||
27216 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27217 | rm -f conftest.er1 | ||
27218 | cat conftest.err >&5 | ||
27219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27220 | (exit $ac_status); } && { | ||
27221 | test -z "$ac_c_werror_flag" || | ||
27222 | test ! -s conftest.err | ||
27223 | } && test -s conftest.$ac_objext; then | ||
27224 | ac_cv_have_u_intxx_t="yes" | ||
27225 | else | ||
27226 | echo "$as_me: failed program was:" >&5 | ||
27227 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27228 | |||
27229 | ac_cv_have_u_intxx_t="no" | ||
27230 | |||
27231 | fi | ||
27232 | |||
27233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27234 | |||
27235 | fi | ||
27236 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | ||
27237 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; } | ||
27238 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
27239 | |||
27240 | cat >>confdefs.h <<\_ACEOF | ||
27241 | #define HAVE_U_INTXX_T 1 | ||
27242 | _ACEOF | ||
27243 | |||
27244 | have_u_intxx_t=1 | ||
27245 | fi | ||
27246 | |||
27247 | if test -z "$have_u_intxx_t" ; then | ||
27248 | { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | ||
27249 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; } | ||
27250 | cat >conftest.$ac_ext <<_ACEOF | ||
27251 | /* confdefs.h. */ | ||
27252 | _ACEOF | ||
27253 | cat confdefs.h >>conftest.$ac_ext | ||
27254 | cat >>conftest.$ac_ext <<_ACEOF | ||
27255 | /* end confdefs.h. */ | ||
27256 | #include <sys/socket.h> | ||
27257 | int | ||
27258 | main () | ||
27259 | { | ||
27260 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
27261 | ; | ||
27262 | return 0; | ||
27263 | } | ||
27264 | _ACEOF | ||
27265 | rm -f conftest.$ac_objext | ||
27266 | if { (ac_try="$ac_compile" | ||
27267 | case "(($ac_try" in | ||
27268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27269 | *) ac_try_echo=$ac_try;; | ||
27270 | esac | ||
27271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27272 | (eval "$ac_compile") 2>conftest.er1 | ||
27273 | ac_status=$? | ||
27274 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27275 | rm -f conftest.er1 | ||
27276 | cat conftest.err >&5 | ||
27277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27278 | (exit $ac_status); } && { | ||
27279 | test -z "$ac_c_werror_flag" || | ||
27280 | test ! -s conftest.err | ||
27281 | } && test -s conftest.$ac_objext; then | ||
27282 | |||
27283 | cat >>confdefs.h <<\_ACEOF | ||
27284 | #define HAVE_U_INTXX_T 1 | ||
27285 | _ACEOF | ||
27286 | |||
27287 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27288 | echo "${ECHO_T}yes" >&6; } | ||
27289 | |||
27290 | else | ||
27291 | echo "$as_me: failed program was:" >&5 | ||
27292 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27293 | |||
27294 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27295 | echo "${ECHO_T}no" >&6; } | ||
27296 | |||
27297 | fi | ||
27298 | |||
27299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27300 | fi | ||
27301 | |||
27302 | { echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | ||
27303 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; } | ||
27304 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
27305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27306 | else | ||
27307 | |||
27308 | cat >conftest.$ac_ext <<_ACEOF | ||
27309 | /* confdefs.h. */ | ||
27310 | _ACEOF | ||
27311 | cat confdefs.h >>conftest.$ac_ext | ||
27312 | cat >>conftest.$ac_ext <<_ACEOF | ||
27313 | /* end confdefs.h. */ | ||
27314 | #include <sys/types.h> | ||
27315 | int | ||
27316 | main () | ||
27317 | { | ||
27318 | u_int64_t a; a = 1; | ||
27319 | ; | ||
27320 | return 0; | ||
27321 | } | ||
27322 | _ACEOF | ||
27323 | rm -f conftest.$ac_objext | ||
27324 | if { (ac_try="$ac_compile" | ||
27325 | case "(($ac_try" in | ||
27326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27327 | *) ac_try_echo=$ac_try;; | ||
27328 | esac | ||
27329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27330 | (eval "$ac_compile") 2>conftest.er1 | ||
27331 | ac_status=$? | ||
27332 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27333 | rm -f conftest.er1 | ||
27334 | cat conftest.err >&5 | ||
27335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27336 | (exit $ac_status); } && { | ||
27337 | test -z "$ac_c_werror_flag" || | ||
27338 | test ! -s conftest.err | ||
27339 | } && test -s conftest.$ac_objext; then | ||
27340 | ac_cv_have_u_int64_t="yes" | ||
27341 | else | ||
27342 | echo "$as_me: failed program was:" >&5 | ||
27343 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27344 | |||
27345 | ac_cv_have_u_int64_t="no" | ||
27346 | |||
27347 | fi | ||
27348 | |||
27349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27350 | |||
27351 | fi | ||
27352 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | ||
27353 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; } | ||
27354 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
27355 | |||
27356 | cat >>confdefs.h <<\_ACEOF | ||
27357 | #define HAVE_U_INT64_T 1 | ||
27358 | _ACEOF | ||
27359 | |||
27360 | have_u_int64_t=1 | ||
27361 | fi | ||
27362 | |||
27363 | if (test -z "$have_u_int64_t" && \ | ||
27364 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
27365 | then | ||
27366 | { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
27367 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; } | ||
27368 | cat >conftest.$ac_ext <<_ACEOF | ||
27369 | /* confdefs.h. */ | ||
27370 | _ACEOF | ||
27371 | cat confdefs.h >>conftest.$ac_ext | ||
27372 | cat >>conftest.$ac_ext <<_ACEOF | ||
27373 | /* end confdefs.h. */ | ||
27374 | #include <sys/bitypes.h> | ||
27375 | int | ||
27376 | main () | ||
27377 | { | ||
27378 | u_int64_t a; a = 1 | ||
27379 | ; | ||
27380 | return 0; | ||
27381 | } | ||
27382 | _ACEOF | ||
27383 | rm -f conftest.$ac_objext | ||
27384 | if { (ac_try="$ac_compile" | ||
27385 | case "(($ac_try" in | ||
27386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27387 | *) ac_try_echo=$ac_try;; | ||
27388 | esac | ||
27389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27390 | (eval "$ac_compile") 2>conftest.er1 | ||
27391 | ac_status=$? | ||
27392 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27393 | rm -f conftest.er1 | ||
27394 | cat conftest.err >&5 | ||
27395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27396 | (exit $ac_status); } && { | ||
27397 | test -z "$ac_c_werror_flag" || | ||
27398 | test ! -s conftest.err | ||
27399 | } && test -s conftest.$ac_objext; then | ||
27400 | |||
27401 | cat >>confdefs.h <<\_ACEOF | ||
27402 | #define HAVE_U_INT64_T 1 | ||
27403 | _ACEOF | ||
27404 | |||
27405 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27406 | echo "${ECHO_T}yes" >&6; } | ||
27407 | |||
27408 | else | ||
27409 | echo "$as_me: failed program was:" >&5 | ||
27410 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27411 | |||
27412 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27413 | echo "${ECHO_T}no" >&6; } | ||
27414 | |||
27415 | fi | ||
27416 | |||
27417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27418 | fi | ||
27419 | |||
27420 | if test -z "$have_u_intxx_t" ; then | ||
27421 | { echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | ||
27422 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; } | ||
27423 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
27424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27425 | else | ||
27426 | |||
27427 | cat >conftest.$ac_ext <<_ACEOF | ||
27428 | /* confdefs.h. */ | ||
27429 | _ACEOF | ||
27430 | cat confdefs.h >>conftest.$ac_ext | ||
27431 | cat >>conftest.$ac_ext <<_ACEOF | ||
27432 | /* end confdefs.h. */ | ||
27433 | |||
27434 | #include <sys/types.h> | ||
27435 | |||
27436 | int | ||
27437 | main () | ||
27438 | { | ||
27439 | |||
27440 | uint8_t a; | ||
27441 | uint16_t b; | ||
27442 | uint32_t c; | ||
27443 | a = b = c = 1; | ||
27444 | |||
27445 | ; | ||
27446 | return 0; | ||
27447 | } | ||
27448 | _ACEOF | ||
27449 | rm -f conftest.$ac_objext | ||
27450 | if { (ac_try="$ac_compile" | ||
27451 | case "(($ac_try" in | ||
27452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27453 | *) ac_try_echo=$ac_try;; | ||
27454 | esac | ||
27455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27456 | (eval "$ac_compile") 2>conftest.er1 | ||
27457 | ac_status=$? | ||
27458 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27459 | rm -f conftest.er1 | ||
27460 | cat conftest.err >&5 | ||
27461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27462 | (exit $ac_status); } && { | ||
27463 | test -z "$ac_c_werror_flag" || | ||
27464 | test ! -s conftest.err | ||
27465 | } && test -s conftest.$ac_objext; then | ||
27466 | ac_cv_have_uintxx_t="yes" | ||
27467 | else | ||
27468 | echo "$as_me: failed program was:" >&5 | ||
27469 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27470 | |||
27471 | ac_cv_have_uintxx_t="no" | ||
27472 | |||
27473 | fi | ||
27474 | |||
27475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27476 | |||
27477 | fi | ||
27478 | { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | ||
27479 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; } | ||
27480 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
27481 | |||
27482 | cat >>confdefs.h <<\_ACEOF | ||
27483 | #define HAVE_UINTXX_T 1 | ||
27484 | _ACEOF | ||
27485 | |||
27486 | fi | ||
27487 | fi | ||
27488 | |||
27489 | if (test -z "$have_uintxx_t" && \ | ||
27490 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
27491 | then | ||
27492 | { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | ||
27493 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; } | ||
27494 | cat >conftest.$ac_ext <<_ACEOF | ||
27495 | /* confdefs.h. */ | ||
27496 | _ACEOF | ||
27497 | cat confdefs.h >>conftest.$ac_ext | ||
27498 | cat >>conftest.$ac_ext <<_ACEOF | ||
27499 | /* end confdefs.h. */ | ||
27500 | #include <stdint.h> | ||
27501 | int | ||
27502 | main () | ||
27503 | { | ||
27504 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
27505 | ; | ||
27506 | return 0; | ||
27507 | } | ||
27508 | _ACEOF | ||
27509 | rm -f conftest.$ac_objext | ||
27510 | if { (ac_try="$ac_compile" | ||
27511 | case "(($ac_try" in | ||
27512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27513 | *) ac_try_echo=$ac_try;; | ||
27514 | esac | ||
27515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27516 | (eval "$ac_compile") 2>conftest.er1 | ||
27517 | ac_status=$? | ||
27518 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27519 | rm -f conftest.er1 | ||
27520 | cat conftest.err >&5 | ||
27521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27522 | (exit $ac_status); } && { | ||
27523 | test -z "$ac_c_werror_flag" || | ||
27524 | test ! -s conftest.err | ||
27525 | } && test -s conftest.$ac_objext; then | ||
27526 | |||
27527 | cat >>confdefs.h <<\_ACEOF | ||
27528 | #define HAVE_UINTXX_T 1 | ||
27529 | _ACEOF | ||
27530 | |||
27531 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27532 | echo "${ECHO_T}yes" >&6; } | ||
27533 | |||
27534 | else | ||
27535 | echo "$as_me: failed program was:" >&5 | ||
27536 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27537 | |||
27538 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27539 | echo "${ECHO_T}no" >&6; } | ||
27540 | |||
27541 | fi | ||
27542 | |||
27543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27544 | fi | ||
27545 | |||
27546 | if (test -z "$have_uintxx_t" && \ | ||
27547 | test "x$ac_cv_header_inttypes_h" = "xyes") | ||
27548 | then | ||
27549 | { echo "$as_me:$LINENO: checking for uintXX_t types in inttypes.h" >&5 | ||
27550 | echo $ECHO_N "checking for uintXX_t types in inttypes.h... $ECHO_C" >&6; } | ||
27551 | cat >conftest.$ac_ext <<_ACEOF | ||
27552 | /* confdefs.h. */ | ||
27553 | _ACEOF | ||
27554 | cat confdefs.h >>conftest.$ac_ext | ||
27555 | cat >>conftest.$ac_ext <<_ACEOF | ||
27556 | /* end confdefs.h. */ | ||
27557 | #include <inttypes.h> | ||
27558 | int | ||
27559 | main () | ||
27560 | { | ||
27561 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
27562 | ; | ||
27563 | return 0; | ||
27564 | } | ||
27565 | _ACEOF | ||
27566 | rm -f conftest.$ac_objext | ||
27567 | if { (ac_try="$ac_compile" | ||
27568 | case "(($ac_try" in | ||
27569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27570 | *) ac_try_echo=$ac_try;; | ||
27571 | esac | ||
27572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27573 | (eval "$ac_compile") 2>conftest.er1 | ||
27574 | ac_status=$? | ||
27575 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27576 | rm -f conftest.er1 | ||
27577 | cat conftest.err >&5 | ||
27578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27579 | (exit $ac_status); } && { | ||
27580 | test -z "$ac_c_werror_flag" || | ||
27581 | test ! -s conftest.err | ||
27582 | } && test -s conftest.$ac_objext; then | ||
27583 | |||
27584 | cat >>confdefs.h <<\_ACEOF | ||
27585 | #define HAVE_UINTXX_T 1 | ||
27586 | _ACEOF | ||
27587 | |||
27588 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27589 | echo "${ECHO_T}yes" >&6; } | ||
27590 | |||
27591 | else | ||
27592 | echo "$as_me: failed program was:" >&5 | ||
27593 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27594 | |||
27595 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27596 | echo "${ECHO_T}no" >&6; } | ||
27597 | |||
27598 | fi | ||
27599 | |||
27600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27601 | fi | ||
27602 | |||
27603 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
27604 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
27605 | then | ||
27606 | { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
27607 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; } | ||
27608 | cat >conftest.$ac_ext <<_ACEOF | ||
27609 | /* confdefs.h. */ | ||
27610 | _ACEOF | ||
27611 | cat confdefs.h >>conftest.$ac_ext | ||
27612 | cat >>conftest.$ac_ext <<_ACEOF | ||
27613 | /* end confdefs.h. */ | ||
27614 | |||
27615 | #include <sys/bitypes.h> | ||
27616 | |||
27617 | int | ||
27618 | main () | ||
27619 | { | ||
27620 | |||
27621 | int8_t a; int16_t b; int32_t c; | ||
27622 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
27623 | a = b = c = e = f = g = 1; | ||
27624 | |||
27625 | ; | ||
27626 | return 0; | ||
27627 | } | ||
27628 | _ACEOF | ||
27629 | rm -f conftest.$ac_objext | ||
27630 | if { (ac_try="$ac_compile" | ||
27631 | case "(($ac_try" in | ||
27632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27633 | *) ac_try_echo=$ac_try;; | ||
27634 | esac | ||
27635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27636 | (eval "$ac_compile") 2>conftest.er1 | ||
27637 | ac_status=$? | ||
27638 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27639 | rm -f conftest.er1 | ||
27640 | cat conftest.err >&5 | ||
27641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27642 | (exit $ac_status); } && { | ||
27643 | test -z "$ac_c_werror_flag" || | ||
27644 | test ! -s conftest.err | ||
27645 | } && test -s conftest.$ac_objext; then | ||
27646 | |||
27647 | cat >>confdefs.h <<\_ACEOF | ||
27648 | #define HAVE_U_INTXX_T 1 | ||
27649 | _ACEOF | ||
27650 | |||
27651 | cat >>confdefs.h <<\_ACEOF | ||
27652 | #define HAVE_INTXX_T 1 | ||
27653 | _ACEOF | ||
27654 | |||
27655 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27656 | echo "${ECHO_T}yes" >&6; } | ||
27657 | |||
27658 | else | ||
27659 | echo "$as_me: failed program was:" >&5 | ||
27660 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27661 | |||
27662 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27663 | echo "${ECHO_T}no" >&6; } | ||
27664 | |||
27665 | fi | ||
27666 | |||
27667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27668 | fi | ||
27669 | |||
27670 | |||
27671 | { echo "$as_me:$LINENO: checking for u_char" >&5 | ||
27672 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6; } | ||
27673 | if test "${ac_cv_have_u_char+set}" = set; then | ||
27674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27675 | else | ||
27676 | |||
27677 | cat >conftest.$ac_ext <<_ACEOF | ||
27678 | /* confdefs.h. */ | ||
27679 | _ACEOF | ||
27680 | cat confdefs.h >>conftest.$ac_ext | ||
27681 | cat >>conftest.$ac_ext <<_ACEOF | ||
27682 | /* end confdefs.h. */ | ||
27683 | #include <sys/types.h> | ||
27684 | int | ||
27685 | main () | ||
27686 | { | ||
27687 | u_char foo; foo = 125; | ||
27688 | ; | ||
27689 | return 0; | ||
27690 | } | ||
27691 | _ACEOF | ||
27692 | rm -f conftest.$ac_objext | ||
27693 | if { (ac_try="$ac_compile" | ||
27694 | case "(($ac_try" in | ||
27695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27696 | *) ac_try_echo=$ac_try;; | ||
27697 | esac | ||
27698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27699 | (eval "$ac_compile") 2>conftest.er1 | ||
27700 | ac_status=$? | ||
27701 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27702 | rm -f conftest.er1 | ||
27703 | cat conftest.err >&5 | ||
27704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27705 | (exit $ac_status); } && { | ||
27706 | test -z "$ac_c_werror_flag" || | ||
27707 | test ! -s conftest.err | ||
27708 | } && test -s conftest.$ac_objext; then | ||
27709 | ac_cv_have_u_char="yes" | ||
27710 | else | ||
27711 | echo "$as_me: failed program was:" >&5 | ||
27712 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27713 | |||
27714 | ac_cv_have_u_char="no" | ||
27715 | |||
27716 | fi | ||
27717 | |||
27718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27719 | |||
27720 | fi | ||
27721 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | ||
27722 | echo "${ECHO_T}$ac_cv_have_u_char" >&6; } | ||
27723 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
27724 | |||
27725 | cat >>confdefs.h <<\_ACEOF | ||
27726 | #define HAVE_U_CHAR 1 | ||
27727 | _ACEOF | ||
27728 | |||
27729 | fi | ||
27730 | |||
27731 | { echo "$as_me:$LINENO: checking for intmax_t" >&5 | ||
27732 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } | ||
27733 | if test "${ac_cv_type_intmax_t+set}" = set; then | ||
27734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27735 | else | ||
27736 | cat >conftest.$ac_ext <<_ACEOF | ||
27737 | /* confdefs.h. */ | ||
27738 | _ACEOF | ||
27739 | cat confdefs.h >>conftest.$ac_ext | ||
27740 | cat >>conftest.$ac_ext <<_ACEOF | ||
27741 | /* end confdefs.h. */ | ||
27742 | |||
27743 | #include <sys/types.h> | ||
27744 | #include <stdint.h> | ||
27745 | |||
27746 | |||
27747 | typedef intmax_t ac__type_new_; | ||
27748 | int | ||
27749 | main () | ||
27750 | { | ||
27751 | if ((ac__type_new_ *) 0) | ||
27752 | return 0; | ||
27753 | if (sizeof (ac__type_new_)) | ||
27754 | return 0; | ||
27755 | ; | ||
27756 | return 0; | ||
27757 | } | ||
27758 | _ACEOF | ||
27759 | rm -f conftest.$ac_objext | ||
27760 | if { (ac_try="$ac_compile" | ||
27761 | case "(($ac_try" in | ||
27762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27763 | *) ac_try_echo=$ac_try;; | ||
27764 | esac | ||
27765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27766 | (eval "$ac_compile") 2>conftest.er1 | ||
27767 | ac_status=$? | ||
27768 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27769 | rm -f conftest.er1 | ||
27770 | cat conftest.err >&5 | ||
27771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27772 | (exit $ac_status); } && { | ||
27773 | test -z "$ac_c_werror_flag" || | ||
27774 | test ! -s conftest.err | ||
27775 | } && test -s conftest.$ac_objext; then | ||
27776 | ac_cv_type_intmax_t=yes | ||
27777 | else | ||
27778 | echo "$as_me: failed program was:" >&5 | ||
27779 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27780 | |||
27781 | ac_cv_type_intmax_t=no | ||
27782 | fi | ||
27783 | |||
27784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27785 | fi | ||
27786 | { echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5 | ||
27787 | echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; } | ||
27788 | if test $ac_cv_type_intmax_t = yes; then | ||
27789 | |||
27790 | cat >>confdefs.h <<_ACEOF | ||
27791 | #define HAVE_INTMAX_T 1 | ||
27792 | _ACEOF | ||
27793 | |||
27794 | |||
27795 | fi | ||
27796 | { echo "$as_me:$LINENO: checking for uintmax_t" >&5 | ||
27797 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; } | ||
27798 | if test "${ac_cv_type_uintmax_t+set}" = set; then | ||
27799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27800 | else | ||
27801 | cat >conftest.$ac_ext <<_ACEOF | ||
27802 | /* confdefs.h. */ | ||
27803 | _ACEOF | ||
27804 | cat confdefs.h >>conftest.$ac_ext | ||
27805 | cat >>conftest.$ac_ext <<_ACEOF | ||
27806 | /* end confdefs.h. */ | ||
27807 | |||
27808 | #include <sys/types.h> | ||
27809 | #include <stdint.h> | ||
27810 | |||
27811 | |||
27812 | typedef uintmax_t ac__type_new_; | ||
27813 | int | ||
27814 | main () | ||
27815 | { | ||
27816 | if ((ac__type_new_ *) 0) | ||
27817 | return 0; | ||
27818 | if (sizeof (ac__type_new_)) | ||
27819 | return 0; | ||
27820 | ; | ||
27821 | return 0; | ||
27822 | } | ||
27823 | _ACEOF | ||
27824 | rm -f conftest.$ac_objext | ||
27825 | if { (ac_try="$ac_compile" | ||
27826 | case "(($ac_try" in | ||
27827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27828 | *) ac_try_echo=$ac_try;; | ||
27829 | esac | ||
27830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27831 | (eval "$ac_compile") 2>conftest.er1 | ||
27832 | ac_status=$? | ||
27833 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27834 | rm -f conftest.er1 | ||
27835 | cat conftest.err >&5 | ||
27836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27837 | (exit $ac_status); } && { | ||
27838 | test -z "$ac_c_werror_flag" || | ||
27839 | test ! -s conftest.err | ||
27840 | } && test -s conftest.$ac_objext; then | ||
27841 | ac_cv_type_uintmax_t=yes | ||
27842 | else | ||
27843 | echo "$as_me: failed program was:" >&5 | ||
27844 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27845 | |||
27846 | ac_cv_type_uintmax_t=no | ||
27847 | fi | ||
27848 | |||
27849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27850 | fi | ||
27851 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 | ||
27852 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; } | ||
27853 | if test $ac_cv_type_uintmax_t = yes; then | ||
27854 | |||
27855 | cat >>confdefs.h <<_ACEOF | ||
27856 | #define HAVE_UINTMAX_T 1 | ||
27857 | _ACEOF | ||
27858 | |||
27859 | |||
27860 | fi | ||
27861 | |||
27862 | |||
27863 | |||
27864 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 | ||
27865 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | ||
27866 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
27867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27868 | else | ||
27869 | cat >conftest.$ac_ext <<_ACEOF | ||
27870 | /* confdefs.h. */ | ||
27871 | _ACEOF | ||
27872 | cat confdefs.h >>conftest.$ac_ext | ||
27873 | cat >>conftest.$ac_ext <<_ACEOF | ||
27874 | /* end confdefs.h. */ | ||
27875 | #include <sys/types.h> | ||
27876 | #include <sys/socket.h> | ||
27877 | |||
27878 | typedef socklen_t ac__type_new_; | ||
27879 | int | ||
27880 | main () | ||
27881 | { | ||
27882 | if ((ac__type_new_ *) 0) | ||
27883 | return 0; | ||
27884 | if (sizeof (ac__type_new_)) | ||
27885 | return 0; | ||
27886 | ; | ||
27887 | return 0; | ||
27888 | } | ||
27889 | _ACEOF | ||
27890 | rm -f conftest.$ac_objext | ||
27891 | if { (ac_try="$ac_compile" | ||
27892 | case "(($ac_try" in | ||
27893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27894 | *) ac_try_echo=$ac_try;; | ||
27895 | esac | ||
27896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27897 | (eval "$ac_compile") 2>conftest.er1 | ||
27898 | ac_status=$? | ||
27899 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27900 | rm -f conftest.er1 | ||
27901 | cat conftest.err >&5 | ||
27902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27903 | (exit $ac_status); } && { | ||
27904 | test -z "$ac_c_werror_flag" || | ||
27905 | test ! -s conftest.err | ||
27906 | } && test -s conftest.$ac_objext; then | ||
27907 | ac_cv_type_socklen_t=yes | ||
27908 | else | ||
27909 | echo "$as_me: failed program was:" >&5 | ||
27910 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27911 | |||
27912 | ac_cv_type_socklen_t=no | ||
27913 | fi | ||
27914 | |||
27915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27916 | fi | ||
27917 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | ||
27918 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | ||
27919 | if test $ac_cv_type_socklen_t = yes; then | ||
27920 | : | ||
27921 | else | ||
27922 | |||
27923 | { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | ||
27924 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; } | ||
27925 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
27926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27927 | else | ||
27928 | |||
27929 | # Systems have either "struct sockaddr *" or | ||
27930 | # "void *" as the second argument to getpeername | ||
27931 | curl_cv_socklen_t_equiv= | ||
27932 | for arg2 in "struct sockaddr" void; do | ||
27933 | for t in int size_t unsigned long "unsigned long"; do | ||
27934 | cat >conftest.$ac_ext <<_ACEOF | ||
27935 | /* confdefs.h. */ | ||
27936 | _ACEOF | ||
27937 | cat confdefs.h >>conftest.$ac_ext | ||
27938 | cat >>conftest.$ac_ext <<_ACEOF | ||
27939 | /* end confdefs.h. */ | ||
27940 | |||
27941 | #include <sys/types.h> | ||
27942 | #include <sys/socket.h> | ||
27943 | |||
27944 | int getpeername (int, $arg2 *, $t *); | ||
27945 | |||
27946 | int | ||
27947 | main () | ||
27948 | { | ||
27949 | |||
27950 | $t len; | ||
27951 | getpeername(0,0,&len); | ||
27952 | |||
27953 | ; | ||
27954 | return 0; | ||
27955 | } | ||
27956 | _ACEOF | ||
27957 | rm -f conftest.$ac_objext | ||
27958 | if { (ac_try="$ac_compile" | ||
27959 | case "(($ac_try" in | ||
27960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27961 | *) ac_try_echo=$ac_try;; | ||
27962 | esac | ||
27963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27964 | (eval "$ac_compile") 2>conftest.er1 | ||
27965 | ac_status=$? | ||
27966 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27967 | rm -f conftest.er1 | ||
27968 | cat conftest.err >&5 | ||
27969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27970 | (exit $ac_status); } && { | ||
27971 | test -z "$ac_c_werror_flag" || | ||
27972 | test ! -s conftest.err | ||
27973 | } && test -s conftest.$ac_objext; then | ||
27974 | |||
27975 | curl_cv_socklen_t_equiv="$t" | ||
27976 | break | ||
27977 | |||
27978 | else | ||
27979 | echo "$as_me: failed program was:" >&5 | ||
27980 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27981 | |||
27982 | |||
27983 | fi | ||
27984 | |||
27985 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27986 | done | ||
27987 | done | ||
27988 | |||
27989 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
27990 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | ||
27991 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
27992 | { (exit 1); exit 1; }; } | ||
27993 | fi | ||
27994 | |||
27995 | fi | ||
27996 | |||
27997 | { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | ||
27998 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; } | ||
27999 | |||
28000 | cat >>confdefs.h <<_ACEOF | ||
28001 | #define socklen_t $curl_cv_socklen_t_equiv | ||
28002 | _ACEOF | ||
28003 | |||
28004 | fi | ||
28005 | |||
28006 | |||
28007 | |||
28008 | { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | ||
28009 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; } | ||
28010 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
28011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28012 | else | ||
28013 | cat >conftest.$ac_ext <<_ACEOF | ||
28014 | /* confdefs.h. */ | ||
28015 | _ACEOF | ||
28016 | cat confdefs.h >>conftest.$ac_ext | ||
28017 | cat >>conftest.$ac_ext <<_ACEOF | ||
28018 | /* end confdefs.h. */ | ||
28019 | #include <signal.h> | ||
28020 | |||
28021 | typedef sig_atomic_t ac__type_new_; | ||
28022 | int | ||
28023 | main () | ||
28024 | { | ||
28025 | if ((ac__type_new_ *) 0) | ||
28026 | return 0; | ||
28027 | if (sizeof (ac__type_new_)) | ||
28028 | return 0; | ||
28029 | ; | ||
28030 | return 0; | ||
28031 | } | ||
28032 | _ACEOF | ||
28033 | rm -f conftest.$ac_objext | ||
28034 | if { (ac_try="$ac_compile" | ||
28035 | case "(($ac_try" in | ||
28036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28037 | *) ac_try_echo=$ac_try;; | ||
28038 | esac | ||
28039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28040 | (eval "$ac_compile") 2>conftest.er1 | ||
28041 | ac_status=$? | ||
28042 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28043 | rm -f conftest.er1 | ||
28044 | cat conftest.err >&5 | ||
28045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28046 | (exit $ac_status); } && { | ||
28047 | test -z "$ac_c_werror_flag" || | ||
28048 | test ! -s conftest.err | ||
28049 | } && test -s conftest.$ac_objext; then | ||
28050 | ac_cv_type_sig_atomic_t=yes | ||
28051 | else | ||
28052 | echo "$as_me: failed program was:" >&5 | ||
28053 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28054 | |||
28055 | ac_cv_type_sig_atomic_t=no | ||
28056 | fi | ||
28057 | |||
28058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28059 | fi | ||
28060 | { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | ||
28061 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; } | ||
28062 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
28063 | |||
28064 | cat >>confdefs.h <<_ACEOF | ||
28065 | #define HAVE_SIG_ATOMIC_T 1 | ||
28066 | _ACEOF | ||
28067 | |||
28068 | |||
28069 | fi | ||
28070 | |||
28071 | { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5 | ||
28072 | echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; } | ||
28073 | if test "${ac_cv_type_fsblkcnt_t+set}" = set; then | ||
28074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28075 | else | ||
28076 | cat >conftest.$ac_ext <<_ACEOF | ||
28077 | /* confdefs.h. */ | ||
28078 | _ACEOF | ||
28079 | cat confdefs.h >>conftest.$ac_ext | ||
28080 | cat >>conftest.$ac_ext <<_ACEOF | ||
28081 | /* end confdefs.h. */ | ||
28082 | |||
28083 | #include <sys/types.h> | ||
28084 | #ifdef HAVE_SYS_BITYPES_H | ||
28085 | #include <sys/bitypes.h> | ||
28086 | #endif | ||
28087 | #ifdef HAVE_SYS_STATFS_H | ||
28088 | #include <sys/statfs.h> | ||
28089 | #endif | ||
28090 | #ifdef HAVE_SYS_STATVFS_H | ||
28091 | #include <sys/statvfs.h> | ||
28092 | #endif | ||
28093 | |||
28094 | |||
28095 | typedef fsblkcnt_t ac__type_new_; | ||
28096 | int | ||
28097 | main () | ||
28098 | { | ||
28099 | if ((ac__type_new_ *) 0) | ||
28100 | return 0; | ||
28101 | if (sizeof (ac__type_new_)) | ||
28102 | return 0; | ||
28103 | ; | ||
28104 | return 0; | ||
28105 | } | ||
28106 | _ACEOF | ||
28107 | rm -f conftest.$ac_objext | ||
28108 | if { (ac_try="$ac_compile" | ||
28109 | case "(($ac_try" in | ||
28110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28111 | *) ac_try_echo=$ac_try;; | ||
28112 | esac | ||
28113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28114 | (eval "$ac_compile") 2>conftest.er1 | ||
28115 | ac_status=$? | ||
28116 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28117 | rm -f conftest.er1 | ||
28118 | cat conftest.err >&5 | ||
28119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28120 | (exit $ac_status); } && { | ||
28121 | test -z "$ac_c_werror_flag" || | ||
28122 | test ! -s conftest.err | ||
28123 | } && test -s conftest.$ac_objext; then | ||
28124 | ac_cv_type_fsblkcnt_t=yes | ||
28125 | else | ||
28126 | echo "$as_me: failed program was:" >&5 | ||
28127 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28128 | |||
28129 | ac_cv_type_fsblkcnt_t=no | ||
28130 | fi | ||
28131 | |||
28132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28133 | fi | ||
28134 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5 | ||
28135 | echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; } | ||
28136 | if test $ac_cv_type_fsblkcnt_t = yes; then | ||
28137 | |||
28138 | cat >>confdefs.h <<_ACEOF | ||
28139 | #define HAVE_FSBLKCNT_T 1 | ||
28140 | _ACEOF | ||
28141 | |||
28142 | |||
28143 | fi | ||
28144 | { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5 | ||
28145 | echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; } | ||
28146 | if test "${ac_cv_type_fsfilcnt_t+set}" = set; then | ||
28147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28148 | else | ||
28149 | cat >conftest.$ac_ext <<_ACEOF | ||
28150 | /* confdefs.h. */ | ||
28151 | _ACEOF | ||
28152 | cat confdefs.h >>conftest.$ac_ext | ||
28153 | cat >>conftest.$ac_ext <<_ACEOF | ||
28154 | /* end confdefs.h. */ | ||
28155 | |||
28156 | #include <sys/types.h> | ||
28157 | #ifdef HAVE_SYS_BITYPES_H | ||
28158 | #include <sys/bitypes.h> | ||
28159 | #endif | ||
28160 | #ifdef HAVE_SYS_STATFS_H | ||
28161 | #include <sys/statfs.h> | ||
28162 | #endif | ||
28163 | #ifdef HAVE_SYS_STATVFS_H | ||
28164 | #include <sys/statvfs.h> | ||
28165 | #endif | ||
28166 | |||
28167 | |||
28168 | typedef fsfilcnt_t ac__type_new_; | ||
28169 | int | ||
28170 | main () | ||
28171 | { | ||
28172 | if ((ac__type_new_ *) 0) | ||
28173 | return 0; | ||
28174 | if (sizeof (ac__type_new_)) | ||
28175 | return 0; | ||
28176 | ; | ||
28177 | return 0; | ||
28178 | } | ||
28179 | _ACEOF | ||
28180 | rm -f conftest.$ac_objext | ||
28181 | if { (ac_try="$ac_compile" | ||
28182 | case "(($ac_try" in | ||
28183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28184 | *) ac_try_echo=$ac_try;; | ||
28185 | esac | ||
28186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28187 | (eval "$ac_compile") 2>conftest.er1 | ||
28188 | ac_status=$? | ||
28189 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28190 | rm -f conftest.er1 | ||
28191 | cat conftest.err >&5 | ||
28192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28193 | (exit $ac_status); } && { | ||
28194 | test -z "$ac_c_werror_flag" || | ||
28195 | test ! -s conftest.err | ||
28196 | } && test -s conftest.$ac_objext; then | ||
28197 | ac_cv_type_fsfilcnt_t=yes | ||
28198 | else | ||
28199 | echo "$as_me: failed program was:" >&5 | ||
28200 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28201 | |||
28202 | ac_cv_type_fsfilcnt_t=no | ||
28203 | fi | ||
28204 | |||
28205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28206 | fi | ||
28207 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5 | ||
28208 | echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; } | ||
28209 | if test $ac_cv_type_fsfilcnt_t = yes; then | ||
28210 | |||
28211 | cat >>confdefs.h <<_ACEOF | ||
28212 | #define HAVE_FSFILCNT_T 1 | ||
28213 | _ACEOF | ||
28214 | |||
28215 | |||
28216 | fi | ||
28217 | |||
28218 | |||
28219 | { echo "$as_me:$LINENO: checking for in_addr_t" >&5 | ||
28220 | echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; } | ||
28221 | if test "${ac_cv_type_in_addr_t+set}" = set; then | ||
28222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28223 | else | ||
28224 | cat >conftest.$ac_ext <<_ACEOF | ||
28225 | /* confdefs.h. */ | ||
28226 | _ACEOF | ||
28227 | cat confdefs.h >>conftest.$ac_ext | ||
28228 | cat >>conftest.$ac_ext <<_ACEOF | ||
28229 | /* end confdefs.h. */ | ||
28230 | #include <sys/types.h> | ||
28231 | #include <netinet/in.h> | ||
28232 | |||
28233 | typedef in_addr_t ac__type_new_; | ||
28234 | int | ||
28235 | main () | ||
28236 | { | ||
28237 | if ((ac__type_new_ *) 0) | ||
28238 | return 0; | ||
28239 | if (sizeof (ac__type_new_)) | ||
28240 | return 0; | ||
28241 | ; | ||
28242 | return 0; | ||
28243 | } | ||
28244 | _ACEOF | ||
28245 | rm -f conftest.$ac_objext | ||
28246 | if { (ac_try="$ac_compile" | ||
28247 | case "(($ac_try" in | ||
28248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28249 | *) ac_try_echo=$ac_try;; | ||
28250 | esac | ||
28251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28252 | (eval "$ac_compile") 2>conftest.er1 | ||
28253 | ac_status=$? | ||
28254 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28255 | rm -f conftest.er1 | ||
28256 | cat conftest.err >&5 | ||
28257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28258 | (exit $ac_status); } && { | ||
28259 | test -z "$ac_c_werror_flag" || | ||
28260 | test ! -s conftest.err | ||
28261 | } && test -s conftest.$ac_objext; then | ||
28262 | ac_cv_type_in_addr_t=yes | ||
28263 | else | ||
28264 | echo "$as_me: failed program was:" >&5 | ||
28265 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28266 | |||
28267 | ac_cv_type_in_addr_t=no | ||
28268 | fi | ||
28269 | |||
28270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28271 | fi | ||
28272 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5 | ||
28273 | echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; } | ||
28274 | if test $ac_cv_type_in_addr_t = yes; then | ||
28275 | |||
28276 | cat >>confdefs.h <<_ACEOF | ||
28277 | #define HAVE_IN_ADDR_T 1 | ||
28278 | _ACEOF | ||
28279 | |||
28280 | |||
28281 | fi | ||
28282 | { echo "$as_me:$LINENO: checking for in_port_t" >&5 | ||
28283 | echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; } | ||
28284 | if test "${ac_cv_type_in_port_t+set}" = set; then | ||
28285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28286 | else | ||
28287 | cat >conftest.$ac_ext <<_ACEOF | ||
28288 | /* confdefs.h. */ | ||
28289 | _ACEOF | ||
28290 | cat confdefs.h >>conftest.$ac_ext | ||
28291 | cat >>conftest.$ac_ext <<_ACEOF | ||
28292 | /* end confdefs.h. */ | ||
28293 | #include <sys/types.h> | ||
28294 | #include <netinet/in.h> | ||
28295 | |||
28296 | typedef in_port_t ac__type_new_; | ||
28297 | int | ||
28298 | main () | ||
28299 | { | ||
28300 | if ((ac__type_new_ *) 0) | ||
28301 | return 0; | ||
28302 | if (sizeof (ac__type_new_)) | ||
28303 | return 0; | ||
28304 | ; | ||
28305 | return 0; | ||
28306 | } | ||
28307 | _ACEOF | ||
28308 | rm -f conftest.$ac_objext | ||
28309 | if { (ac_try="$ac_compile" | ||
28310 | case "(($ac_try" in | ||
28311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28312 | *) ac_try_echo=$ac_try;; | ||
28313 | esac | ||
28314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28315 | (eval "$ac_compile") 2>conftest.er1 | ||
28316 | ac_status=$? | ||
28317 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28318 | rm -f conftest.er1 | ||
28319 | cat conftest.err >&5 | ||
28320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28321 | (exit $ac_status); } && { | ||
28322 | test -z "$ac_c_werror_flag" || | ||
28323 | test ! -s conftest.err | ||
28324 | } && test -s conftest.$ac_objext; then | ||
28325 | ac_cv_type_in_port_t=yes | ||
28326 | else | ||
28327 | echo "$as_me: failed program was:" >&5 | ||
28328 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28329 | |||
28330 | ac_cv_type_in_port_t=no | ||
28331 | fi | ||
28332 | |||
28333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28334 | fi | ||
28335 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5 | ||
28336 | echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; } | ||
28337 | if test $ac_cv_type_in_port_t = yes; then | ||
28338 | |||
28339 | cat >>confdefs.h <<_ACEOF | ||
28340 | #define HAVE_IN_PORT_T 1 | ||
28341 | _ACEOF | ||
28342 | |||
28343 | |||
28344 | fi | ||
28345 | |||
28346 | |||
28347 | { echo "$as_me:$LINENO: checking for size_t" >&5 | ||
28348 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | ||
28349 | if test "${ac_cv_have_size_t+set}" = set; then | ||
28350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28351 | else | ||
28352 | |||
28353 | cat >conftest.$ac_ext <<_ACEOF | ||
28354 | /* confdefs.h. */ | ||
28355 | _ACEOF | ||
28356 | cat confdefs.h >>conftest.$ac_ext | ||
28357 | cat >>conftest.$ac_ext <<_ACEOF | ||
28358 | /* end confdefs.h. */ | ||
28359 | #include <sys/types.h> | ||
28360 | int | ||
28361 | main () | ||
28362 | { | ||
28363 | size_t foo; foo = 1235; | ||
28364 | ; | ||
28365 | return 0; | ||
28366 | } | ||
28367 | _ACEOF | ||
28368 | rm -f conftest.$ac_objext | ||
28369 | if { (ac_try="$ac_compile" | ||
28370 | case "(($ac_try" in | ||
28371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28372 | *) ac_try_echo=$ac_try;; | ||
28373 | esac | ||
28374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28375 | (eval "$ac_compile") 2>conftest.er1 | ||
28376 | ac_status=$? | ||
28377 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28378 | rm -f conftest.er1 | ||
28379 | cat conftest.err >&5 | ||
28380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28381 | (exit $ac_status); } && { | ||
28382 | test -z "$ac_c_werror_flag" || | ||
28383 | test ! -s conftest.err | ||
28384 | } && test -s conftest.$ac_objext; then | ||
28385 | ac_cv_have_size_t="yes" | ||
28386 | else | ||
28387 | echo "$as_me: failed program was:" >&5 | ||
28388 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28389 | |||
28390 | ac_cv_have_size_t="no" | ||
28391 | |||
28392 | fi | ||
28393 | |||
28394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28395 | |||
28396 | fi | ||
28397 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | ||
28398 | echo "${ECHO_T}$ac_cv_have_size_t" >&6; } | ||
28399 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
28400 | |||
28401 | cat >>confdefs.h <<\_ACEOF | ||
28402 | #define HAVE_SIZE_T 1 | ||
28403 | _ACEOF | ||
28404 | |||
28405 | fi | ||
28406 | |||
28407 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 | ||
28408 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } | ||
28409 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
28410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28411 | else | ||
28412 | |||
28413 | cat >conftest.$ac_ext <<_ACEOF | ||
28414 | /* confdefs.h. */ | ||
28415 | _ACEOF | ||
28416 | cat confdefs.h >>conftest.$ac_ext | ||
28417 | cat >>conftest.$ac_ext <<_ACEOF | ||
28418 | /* end confdefs.h. */ | ||
28419 | #include <sys/types.h> | ||
28420 | int | ||
28421 | main () | ||
28422 | { | ||
28423 | ssize_t foo; foo = 1235; | ||
28424 | ; | ||
28425 | return 0; | ||
28426 | } | ||
28427 | _ACEOF | ||
28428 | rm -f conftest.$ac_objext | ||
28429 | if { (ac_try="$ac_compile" | ||
28430 | case "(($ac_try" in | ||
28431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28432 | *) ac_try_echo=$ac_try;; | ||
28433 | esac | ||
28434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28435 | (eval "$ac_compile") 2>conftest.er1 | ||
28436 | ac_status=$? | ||
28437 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28438 | rm -f conftest.er1 | ||
28439 | cat conftest.err >&5 | ||
28440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28441 | (exit $ac_status); } && { | ||
28442 | test -z "$ac_c_werror_flag" || | ||
28443 | test ! -s conftest.err | ||
28444 | } && test -s conftest.$ac_objext; then | ||
28445 | ac_cv_have_ssize_t="yes" | ||
28446 | else | ||
28447 | echo "$as_me: failed program was:" >&5 | ||
28448 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28449 | |||
28450 | ac_cv_have_ssize_t="no" | ||
28451 | |||
28452 | fi | ||
28453 | |||
28454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28455 | |||
28456 | fi | ||
28457 | { echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | ||
28458 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; } | ||
28459 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
28460 | |||
28461 | cat >>confdefs.h <<\_ACEOF | ||
28462 | #define HAVE_SSIZE_T 1 | ||
28463 | _ACEOF | ||
28464 | |||
28465 | fi | ||
28466 | |||
28467 | { echo "$as_me:$LINENO: checking for clock_t" >&5 | ||
28468 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; } | ||
28469 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
28470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28471 | else | ||
28472 | |||
28473 | cat >conftest.$ac_ext <<_ACEOF | ||
28474 | /* confdefs.h. */ | ||
28475 | _ACEOF | ||
28476 | cat confdefs.h >>conftest.$ac_ext | ||
28477 | cat >>conftest.$ac_ext <<_ACEOF | ||
28478 | /* end confdefs.h. */ | ||
28479 | #include <time.h> | ||
28480 | int | ||
28481 | main () | ||
28482 | { | ||
28483 | clock_t foo; foo = 1235; | ||
28484 | ; | ||
28485 | return 0; | ||
28486 | } | ||
28487 | _ACEOF | ||
28488 | rm -f conftest.$ac_objext | ||
28489 | if { (ac_try="$ac_compile" | ||
28490 | case "(($ac_try" in | ||
28491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28492 | *) ac_try_echo=$ac_try;; | ||
28493 | esac | ||
28494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28495 | (eval "$ac_compile") 2>conftest.er1 | ||
28496 | ac_status=$? | ||
28497 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28498 | rm -f conftest.er1 | ||
28499 | cat conftest.err >&5 | ||
28500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28501 | (exit $ac_status); } && { | ||
28502 | test -z "$ac_c_werror_flag" || | ||
28503 | test ! -s conftest.err | ||
28504 | } && test -s conftest.$ac_objext; then | ||
28505 | ac_cv_have_clock_t="yes" | ||
28506 | else | ||
28507 | echo "$as_me: failed program was:" >&5 | ||
28508 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28509 | |||
28510 | ac_cv_have_clock_t="no" | ||
28511 | |||
28512 | fi | ||
28513 | |||
28514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28515 | |||
28516 | fi | ||
28517 | { echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | ||
28518 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6; } | ||
28519 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
28520 | |||
28521 | cat >>confdefs.h <<\_ACEOF | ||
28522 | #define HAVE_CLOCK_T 1 | ||
28523 | _ACEOF | ||
28524 | |||
28525 | fi | ||
28526 | |||
28527 | { echo "$as_me:$LINENO: checking for sa_family_t" >&5 | ||
28528 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } | ||
28529 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
28530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28531 | else | ||
28532 | |||
28533 | cat >conftest.$ac_ext <<_ACEOF | ||
28534 | /* confdefs.h. */ | ||
28535 | _ACEOF | ||
28536 | cat confdefs.h >>conftest.$ac_ext | ||
28537 | cat >>conftest.$ac_ext <<_ACEOF | ||
28538 | /* end confdefs.h. */ | ||
28539 | |||
28540 | #include <sys/types.h> | ||
28541 | #include <sys/socket.h> | ||
28542 | |||
28543 | int | ||
28544 | main () | ||
28545 | { | ||
28546 | sa_family_t foo; foo = 1235; | ||
28547 | ; | ||
28548 | return 0; | ||
28549 | } | ||
28550 | _ACEOF | ||
28551 | rm -f conftest.$ac_objext | ||
28552 | if { (ac_try="$ac_compile" | ||
28553 | case "(($ac_try" in | ||
28554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28555 | *) ac_try_echo=$ac_try;; | ||
28556 | esac | ||
28557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28558 | (eval "$ac_compile") 2>conftest.er1 | ||
28559 | ac_status=$? | ||
28560 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28561 | rm -f conftest.er1 | ||
28562 | cat conftest.err >&5 | ||
28563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28564 | (exit $ac_status); } && { | ||
28565 | test -z "$ac_c_werror_flag" || | ||
28566 | test ! -s conftest.err | ||
28567 | } && test -s conftest.$ac_objext; then | ||
28568 | ac_cv_have_sa_family_t="yes" | ||
28569 | else | ||
28570 | echo "$as_me: failed program was:" >&5 | ||
28571 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28572 | |||
28573 | cat >conftest.$ac_ext <<_ACEOF | ||
28574 | /* confdefs.h. */ | ||
28575 | _ACEOF | ||
28576 | cat confdefs.h >>conftest.$ac_ext | ||
28577 | cat >>conftest.$ac_ext <<_ACEOF | ||
28578 | /* end confdefs.h. */ | ||
28579 | |||
28580 | #include <sys/types.h> | ||
28581 | #include <sys/socket.h> | ||
28582 | #include <netinet/in.h> | ||
28583 | |||
28584 | int | ||
28585 | main () | ||
28586 | { | ||
28587 | sa_family_t foo; foo = 1235; | ||
28588 | ; | ||
28589 | return 0; | ||
28590 | } | ||
28591 | _ACEOF | ||
28592 | rm -f conftest.$ac_objext | ||
28593 | if { (ac_try="$ac_compile" | ||
28594 | case "(($ac_try" in | ||
28595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28596 | *) ac_try_echo=$ac_try;; | ||
28597 | esac | ||
28598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28599 | (eval "$ac_compile") 2>conftest.er1 | ||
28600 | ac_status=$? | ||
28601 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28602 | rm -f conftest.er1 | ||
28603 | cat conftest.err >&5 | ||
28604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28605 | (exit $ac_status); } && { | ||
28606 | test -z "$ac_c_werror_flag" || | ||
28607 | test ! -s conftest.err | ||
28608 | } && test -s conftest.$ac_objext; then | ||
28609 | ac_cv_have_sa_family_t="yes" | ||
28610 | else | ||
28611 | echo "$as_me: failed program was:" >&5 | ||
28612 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28613 | |||
28614 | ac_cv_have_sa_family_t="no" | ||
28615 | |||
28616 | fi | ||
28617 | |||
28618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28619 | |||
28620 | fi | ||
28621 | |||
28622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28623 | |||
28624 | fi | ||
28625 | { echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | ||
28626 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; } | ||
28627 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
28628 | |||
28629 | cat >>confdefs.h <<\_ACEOF | ||
28630 | #define HAVE_SA_FAMILY_T 1 | ||
28631 | _ACEOF | ||
28632 | |||
28633 | fi | ||
28634 | |||
28635 | { echo "$as_me:$LINENO: checking for pid_t" >&5 | ||
28636 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | ||
28637 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
28638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28639 | else | ||
28640 | |||
28641 | cat >conftest.$ac_ext <<_ACEOF | ||
28642 | /* confdefs.h. */ | ||
28643 | _ACEOF | ||
28644 | cat confdefs.h >>conftest.$ac_ext | ||
28645 | cat >>conftest.$ac_ext <<_ACEOF | ||
28646 | /* end confdefs.h. */ | ||
28647 | #include <sys/types.h> | ||
28648 | int | ||
28649 | main () | ||
28650 | { | ||
28651 | pid_t foo; foo = 1235; | ||
28652 | ; | ||
28653 | return 0; | ||
28654 | } | ||
28655 | _ACEOF | ||
28656 | rm -f conftest.$ac_objext | ||
28657 | if { (ac_try="$ac_compile" | ||
28658 | case "(($ac_try" in | ||
28659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28660 | *) ac_try_echo=$ac_try;; | ||
28661 | esac | ||
28662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28663 | (eval "$ac_compile") 2>conftest.er1 | ||
28664 | ac_status=$? | ||
28665 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28666 | rm -f conftest.er1 | ||
28667 | cat conftest.err >&5 | ||
28668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28669 | (exit $ac_status); } && { | ||
28670 | test -z "$ac_c_werror_flag" || | ||
28671 | test ! -s conftest.err | ||
28672 | } && test -s conftest.$ac_objext; then | ||
28673 | ac_cv_have_pid_t="yes" | ||
28674 | else | ||
28675 | echo "$as_me: failed program was:" >&5 | ||
28676 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28677 | |||
28678 | ac_cv_have_pid_t="no" | ||
28679 | |||
28680 | fi | ||
28681 | |||
28682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28683 | |||
28684 | fi | ||
28685 | { echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | ||
28686 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6; } | ||
28687 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
28688 | |||
28689 | cat >>confdefs.h <<\_ACEOF | ||
28690 | #define HAVE_PID_T 1 | ||
28691 | _ACEOF | ||
28692 | |||
28693 | fi | ||
28694 | |||
28695 | { echo "$as_me:$LINENO: checking for mode_t" >&5 | ||
28696 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | ||
28697 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
28698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28699 | else | ||
28700 | |||
28701 | cat >conftest.$ac_ext <<_ACEOF | ||
28702 | /* confdefs.h. */ | ||
28703 | _ACEOF | ||
28704 | cat confdefs.h >>conftest.$ac_ext | ||
28705 | cat >>conftest.$ac_ext <<_ACEOF | ||
28706 | /* end confdefs.h. */ | ||
28707 | #include <sys/types.h> | ||
28708 | int | ||
28709 | main () | ||
28710 | { | ||
28711 | mode_t foo; foo = 1235; | ||
28712 | ; | ||
28713 | return 0; | ||
28714 | } | ||
28715 | _ACEOF | ||
28716 | rm -f conftest.$ac_objext | ||
28717 | if { (ac_try="$ac_compile" | ||
28718 | case "(($ac_try" in | ||
28719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28720 | *) ac_try_echo=$ac_try;; | ||
28721 | esac | ||
28722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28723 | (eval "$ac_compile") 2>conftest.er1 | ||
28724 | ac_status=$? | ||
28725 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28726 | rm -f conftest.er1 | ||
28727 | cat conftest.err >&5 | ||
28728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28729 | (exit $ac_status); } && { | ||
28730 | test -z "$ac_c_werror_flag" || | ||
28731 | test ! -s conftest.err | ||
28732 | } && test -s conftest.$ac_objext; then | ||
28733 | ac_cv_have_mode_t="yes" | ||
28734 | else | ||
28735 | echo "$as_me: failed program was:" >&5 | ||
28736 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28737 | |||
28738 | ac_cv_have_mode_t="no" | ||
28739 | |||
28740 | fi | ||
28741 | |||
28742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28743 | |||
28744 | fi | ||
28745 | { echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | ||
28746 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6; } | ||
28747 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
28748 | |||
28749 | cat >>confdefs.h <<\_ACEOF | ||
28750 | #define HAVE_MODE_T 1 | ||
28751 | _ACEOF | ||
28752 | |||
28753 | fi | ||
28754 | |||
28755 | |||
28756 | { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | ||
28757 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; } | ||
28758 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
28759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28760 | else | ||
28761 | |||
28762 | cat >conftest.$ac_ext <<_ACEOF | ||
28763 | /* confdefs.h. */ | ||
28764 | _ACEOF | ||
28765 | cat confdefs.h >>conftest.$ac_ext | ||
28766 | cat >>conftest.$ac_ext <<_ACEOF | ||
28767 | /* end confdefs.h. */ | ||
28768 | |||
28769 | #include <sys/types.h> | ||
28770 | #include <sys/socket.h> | ||
28771 | |||
28772 | int | ||
28773 | main () | ||
28774 | { | ||
28775 | struct sockaddr_storage s; | ||
28776 | ; | ||
28777 | return 0; | ||
28778 | } | ||
28779 | _ACEOF | ||
28780 | rm -f conftest.$ac_objext | ||
28781 | if { (ac_try="$ac_compile" | ||
28782 | case "(($ac_try" in | ||
28783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28784 | *) ac_try_echo=$ac_try;; | ||
28785 | esac | ||
28786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28787 | (eval "$ac_compile") 2>conftest.er1 | ||
28788 | ac_status=$? | ||
28789 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28790 | rm -f conftest.er1 | ||
28791 | cat conftest.err >&5 | ||
28792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28793 | (exit $ac_status); } && { | ||
28794 | test -z "$ac_c_werror_flag" || | ||
28795 | test ! -s conftest.err | ||
28796 | } && test -s conftest.$ac_objext; then | ||
28797 | ac_cv_have_struct_sockaddr_storage="yes" | ||
28798 | else | ||
28799 | echo "$as_me: failed program was:" >&5 | ||
28800 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28801 | |||
28802 | ac_cv_have_struct_sockaddr_storage="no" | ||
28803 | |||
28804 | fi | ||
28805 | |||
28806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28807 | |||
28808 | fi | ||
28809 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
28810 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; } | ||
28811 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
28812 | |||
28813 | cat >>confdefs.h <<\_ACEOF | ||
28814 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
28815 | _ACEOF | ||
28816 | |||
28817 | fi | ||
28818 | |||
28819 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | ||
28820 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; } | ||
28821 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
28822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28823 | else | ||
28824 | |||
28825 | cat >conftest.$ac_ext <<_ACEOF | ||
28826 | /* confdefs.h. */ | ||
28827 | _ACEOF | ||
28828 | cat confdefs.h >>conftest.$ac_ext | ||
28829 | cat >>conftest.$ac_ext <<_ACEOF | ||
28830 | /* end confdefs.h. */ | ||
28831 | |||
28832 | #include <sys/types.h> | ||
28833 | #include <netinet/in.h> | ||
28834 | |||
28835 | int | ||
28836 | main () | ||
28837 | { | ||
28838 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
28839 | ; | ||
28840 | return 0; | ||
28841 | } | ||
28842 | _ACEOF | ||
28843 | rm -f conftest.$ac_objext | ||
28844 | if { (ac_try="$ac_compile" | ||
28845 | case "(($ac_try" in | ||
28846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28847 | *) ac_try_echo=$ac_try;; | ||
28848 | esac | ||
28849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28850 | (eval "$ac_compile") 2>conftest.er1 | ||
28851 | ac_status=$? | ||
28852 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28853 | rm -f conftest.er1 | ||
28854 | cat conftest.err >&5 | ||
28855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28856 | (exit $ac_status); } && { | ||
28857 | test -z "$ac_c_werror_flag" || | ||
28858 | test ! -s conftest.err | ||
28859 | } && test -s conftest.$ac_objext; then | ||
28860 | ac_cv_have_struct_sockaddr_in6="yes" | ||
28861 | else | ||
28862 | echo "$as_me: failed program was:" >&5 | ||
28863 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28864 | |||
28865 | ac_cv_have_struct_sockaddr_in6="no" | ||
28866 | |||
28867 | fi | ||
28868 | |||
28869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28870 | |||
28871 | fi | ||
28872 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
28873 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; } | ||
28874 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
28875 | |||
28876 | cat >>confdefs.h <<\_ACEOF | ||
28877 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
28878 | _ACEOF | ||
28879 | |||
28880 | fi | ||
28881 | |||
28882 | { echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | ||
28883 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; } | ||
28884 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
28885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28886 | else | ||
28887 | |||
28888 | cat >conftest.$ac_ext <<_ACEOF | ||
28889 | /* confdefs.h. */ | ||
28890 | _ACEOF | ||
28891 | cat confdefs.h >>conftest.$ac_ext | ||
28892 | cat >>conftest.$ac_ext <<_ACEOF | ||
28893 | /* end confdefs.h. */ | ||
28894 | |||
28895 | #include <sys/types.h> | ||
28896 | #include <netinet/in.h> | ||
28897 | |||
28898 | int | ||
28899 | main () | ||
28900 | { | ||
28901 | struct in6_addr s; s.s6_addr[0] = 0; | ||
28902 | ; | ||
28903 | return 0; | ||
28904 | } | ||
28905 | _ACEOF | ||
28906 | rm -f conftest.$ac_objext | ||
28907 | if { (ac_try="$ac_compile" | ||
28908 | case "(($ac_try" in | ||
28909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28910 | *) ac_try_echo=$ac_try;; | ||
28911 | esac | ||
28912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28913 | (eval "$ac_compile") 2>conftest.er1 | ||
28914 | ac_status=$? | ||
28915 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28916 | rm -f conftest.er1 | ||
28917 | cat conftest.err >&5 | ||
28918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28919 | (exit $ac_status); } && { | ||
28920 | test -z "$ac_c_werror_flag" || | ||
28921 | test ! -s conftest.err | ||
28922 | } && test -s conftest.$ac_objext; then | ||
28923 | ac_cv_have_struct_in6_addr="yes" | ||
28924 | else | ||
28925 | echo "$as_me: failed program was:" >&5 | ||
28926 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28927 | |||
28928 | ac_cv_have_struct_in6_addr="no" | ||
28929 | |||
28930 | fi | ||
28931 | |||
28932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28933 | |||
28934 | fi | ||
28935 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | ||
28936 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; } | ||
28937 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
28938 | |||
28939 | cat >>confdefs.h <<\_ACEOF | ||
28940 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
28941 | _ACEOF | ||
28942 | |||
28943 | |||
28944 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5 | ||
28945 | echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; } | ||
28946 | if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then | ||
28947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28948 | else | ||
28949 | cat >conftest.$ac_ext <<_ACEOF | ||
28950 | /* confdefs.h. */ | ||
28951 | _ACEOF | ||
28952 | cat confdefs.h >>conftest.$ac_ext | ||
28953 | cat >>conftest.$ac_ext <<_ACEOF | ||
28954 | /* end confdefs.h. */ | ||
28955 | |||
28956 | #ifdef HAVE_SYS_TYPES_H | ||
28957 | #include <sys/types.h> | ||
28958 | #endif | ||
28959 | #include <netinet/in.h> | ||
28960 | |||
28961 | |||
28962 | int | ||
28963 | main () | ||
28964 | { | ||
28965 | static struct sockaddr_in6 ac_aggr; | ||
28966 | if (ac_aggr.sin6_scope_id) | ||
28967 | return 0; | ||
28968 | ; | ||
28969 | return 0; | ||
28970 | } | ||
28971 | _ACEOF | ||
28972 | rm -f conftest.$ac_objext | ||
28973 | if { (ac_try="$ac_compile" | ||
28974 | case "(($ac_try" in | ||
28975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28976 | *) ac_try_echo=$ac_try;; | ||
28977 | esac | ||
28978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28979 | (eval "$ac_compile") 2>conftest.er1 | ||
28980 | ac_status=$? | ||
28981 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28982 | rm -f conftest.er1 | ||
28983 | cat conftest.err >&5 | ||
28984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28985 | (exit $ac_status); } && { | ||
28986 | test -z "$ac_c_werror_flag" || | ||
28987 | test ! -s conftest.err | ||
28988 | } && test -s conftest.$ac_objext; then | ||
28989 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes | ||
28990 | else | ||
28991 | echo "$as_me: failed program was:" >&5 | ||
28992 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28993 | |||
28994 | cat >conftest.$ac_ext <<_ACEOF | ||
28995 | /* confdefs.h. */ | ||
28996 | _ACEOF | ||
28997 | cat confdefs.h >>conftest.$ac_ext | ||
28998 | cat >>conftest.$ac_ext <<_ACEOF | ||
28999 | /* end confdefs.h. */ | ||
29000 | |||
29001 | #ifdef HAVE_SYS_TYPES_H | ||
29002 | #include <sys/types.h> | ||
29003 | #endif | ||
29004 | #include <netinet/in.h> | ||
29005 | |||
29006 | |||
29007 | int | ||
29008 | main () | ||
29009 | { | ||
29010 | static struct sockaddr_in6 ac_aggr; | ||
29011 | if (sizeof ac_aggr.sin6_scope_id) | ||
29012 | return 0; | ||
29013 | ; | ||
29014 | return 0; | ||
29015 | } | ||
29016 | _ACEOF | ||
29017 | rm -f conftest.$ac_objext | ||
29018 | if { (ac_try="$ac_compile" | ||
29019 | case "(($ac_try" in | ||
29020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29021 | *) ac_try_echo=$ac_try;; | ||
29022 | esac | ||
29023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29024 | (eval "$ac_compile") 2>conftest.er1 | ||
29025 | ac_status=$? | ||
29026 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29027 | rm -f conftest.er1 | ||
29028 | cat conftest.err >&5 | ||
29029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29030 | (exit $ac_status); } && { | ||
29031 | test -z "$ac_c_werror_flag" || | ||
29032 | test ! -s conftest.err | ||
29033 | } && test -s conftest.$ac_objext; then | ||
29034 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes | ||
29035 | else | ||
29036 | echo "$as_me: failed program was:" >&5 | ||
29037 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29038 | |||
29039 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no | ||
29040 | fi | ||
29041 | |||
29042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29043 | fi | ||
29044 | |||
29045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29046 | fi | ||
29047 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5 | ||
29048 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; } | ||
29049 | if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then | ||
29050 | |||
29051 | cat >>confdefs.h <<_ACEOF | ||
29052 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 | ||
29053 | _ACEOF | ||
29054 | |||
29055 | |||
29056 | fi | ||
29057 | |||
29058 | fi | ||
29059 | |||
29060 | { echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | ||
29061 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; } | ||
29062 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
29063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29064 | else | ||
29065 | |||
29066 | cat >conftest.$ac_ext <<_ACEOF | ||
29067 | /* confdefs.h. */ | ||
29068 | _ACEOF | ||
29069 | cat confdefs.h >>conftest.$ac_ext | ||
29070 | cat >>conftest.$ac_ext <<_ACEOF | ||
29071 | /* end confdefs.h. */ | ||
29072 | |||
29073 | #include <sys/types.h> | ||
29074 | #include <sys/socket.h> | ||
29075 | #include <netdb.h> | ||
29076 | |||
29077 | int | ||
29078 | main () | ||
29079 | { | ||
29080 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
29081 | ; | ||
29082 | return 0; | ||
29083 | } | ||
29084 | _ACEOF | ||
29085 | rm -f conftest.$ac_objext | ||
29086 | if { (ac_try="$ac_compile" | ||
29087 | case "(($ac_try" in | ||
29088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29089 | *) ac_try_echo=$ac_try;; | ||
29090 | esac | ||
29091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29092 | (eval "$ac_compile") 2>conftest.er1 | ||
29093 | ac_status=$? | ||
29094 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29095 | rm -f conftest.er1 | ||
29096 | cat conftest.err >&5 | ||
29097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29098 | (exit $ac_status); } && { | ||
29099 | test -z "$ac_c_werror_flag" || | ||
29100 | test ! -s conftest.err | ||
29101 | } && test -s conftest.$ac_objext; then | ||
29102 | ac_cv_have_struct_addrinfo="yes" | ||
29103 | else | ||
29104 | echo "$as_me: failed program was:" >&5 | ||
29105 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29106 | |||
29107 | ac_cv_have_struct_addrinfo="no" | ||
29108 | |||
29109 | fi | ||
29110 | |||
29111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29112 | |||
29113 | fi | ||
29114 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | ||
29115 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; } | ||
29116 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
29117 | |||
29118 | cat >>confdefs.h <<\_ACEOF | ||
29119 | #define HAVE_STRUCT_ADDRINFO 1 | ||
29120 | _ACEOF | ||
29121 | |||
29122 | fi | ||
29123 | |||
29124 | { echo "$as_me:$LINENO: checking for struct timeval" >&5 | ||
29125 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; } | ||
29126 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
29127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29128 | else | ||
29129 | |||
29130 | cat >conftest.$ac_ext <<_ACEOF | ||
29131 | /* confdefs.h. */ | ||
29132 | _ACEOF | ||
29133 | cat confdefs.h >>conftest.$ac_ext | ||
29134 | cat >>conftest.$ac_ext <<_ACEOF | ||
29135 | /* end confdefs.h. */ | ||
29136 | #include <sys/time.h> | ||
29137 | int | ||
29138 | main () | ||
29139 | { | ||
29140 | struct timeval tv; tv.tv_sec = 1; | ||
29141 | ; | ||
29142 | return 0; | ||
29143 | } | ||
29144 | _ACEOF | ||
29145 | rm -f conftest.$ac_objext | ||
29146 | if { (ac_try="$ac_compile" | ||
29147 | case "(($ac_try" in | ||
29148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29149 | *) ac_try_echo=$ac_try;; | ||
29150 | esac | ||
29151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29152 | (eval "$ac_compile") 2>conftest.er1 | ||
29153 | ac_status=$? | ||
29154 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29155 | rm -f conftest.er1 | ||
29156 | cat conftest.err >&5 | ||
29157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29158 | (exit $ac_status); } && { | ||
29159 | test -z "$ac_c_werror_flag" || | ||
29160 | test ! -s conftest.err | ||
29161 | } && test -s conftest.$ac_objext; then | ||
29162 | ac_cv_have_struct_timeval="yes" | ||
29163 | else | ||
29164 | echo "$as_me: failed program was:" >&5 | ||
29165 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29166 | |||
29167 | ac_cv_have_struct_timeval="no" | ||
29168 | |||
29169 | fi | ||
29170 | |||
29171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29172 | |||
29173 | fi | ||
29174 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | ||
29175 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; } | ||
29176 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
29177 | |||
29178 | cat >>confdefs.h <<\_ACEOF | ||
29179 | #define HAVE_STRUCT_TIMEVAL 1 | ||
29180 | _ACEOF | ||
29181 | |||
29182 | have_struct_timeval=1 | ||
29183 | fi | ||
29184 | |||
29185 | { echo "$as_me:$LINENO: checking for struct timespec" >&5 | ||
29186 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; } | ||
29187 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
29188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29189 | else | ||
29190 | cat >conftest.$ac_ext <<_ACEOF | ||
29191 | /* confdefs.h. */ | ||
29192 | _ACEOF | ||
29193 | cat confdefs.h >>conftest.$ac_ext | ||
29194 | cat >>conftest.$ac_ext <<_ACEOF | ||
29195 | /* end confdefs.h. */ | ||
29196 | $ac_includes_default | ||
29197 | typedef struct timespec ac__type_new_; | ||
29198 | int | ||
29199 | main () | ||
29200 | { | ||
29201 | if ((ac__type_new_ *) 0) | ||
29202 | return 0; | ||
29203 | if (sizeof (ac__type_new_)) | ||
29204 | return 0; | ||
29205 | ; | ||
29206 | return 0; | ||
29207 | } | ||
29208 | _ACEOF | ||
29209 | rm -f conftest.$ac_objext | ||
29210 | if { (ac_try="$ac_compile" | ||
29211 | case "(($ac_try" in | ||
29212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29213 | *) ac_try_echo=$ac_try;; | ||
29214 | esac | ||
29215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29216 | (eval "$ac_compile") 2>conftest.er1 | ||
29217 | ac_status=$? | ||
29218 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29219 | rm -f conftest.er1 | ||
29220 | cat conftest.err >&5 | ||
29221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29222 | (exit $ac_status); } && { | ||
29223 | test -z "$ac_c_werror_flag" || | ||
29224 | test ! -s conftest.err | ||
29225 | } && test -s conftest.$ac_objext; then | ||
29226 | ac_cv_type_struct_timespec=yes | ||
29227 | else | ||
29228 | echo "$as_me: failed program was:" >&5 | ||
29229 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29230 | |||
29231 | ac_cv_type_struct_timespec=no | ||
29232 | fi | ||
29233 | |||
29234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29235 | fi | ||
29236 | { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 | ||
29237 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; } | ||
29238 | if test $ac_cv_type_struct_timespec = yes; then | ||
29239 | |||
29240 | cat >>confdefs.h <<_ACEOF | ||
29241 | #define HAVE_STRUCT_TIMESPEC 1 | ||
29242 | _ACEOF | ||
29243 | |||
29244 | |||
29245 | fi | ||
29246 | |||
29247 | |||
29248 | # We need int64_t or else certian parts of the compile will fail. | ||
29249 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
29250 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
29251 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
29252 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
29253 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
29254 | echo "" | ||
29255 | exit 1; | ||
29256 | else | ||
29257 | if test "$cross_compiling" = yes; then | ||
29258 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
29259 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
29260 | |||
29261 | else | ||
29262 | cat >conftest.$ac_ext <<_ACEOF | ||
29263 | /* confdefs.h. */ | ||
29264 | _ACEOF | ||
29265 | cat confdefs.h >>conftest.$ac_ext | ||
29266 | cat >>conftest.$ac_ext <<_ACEOF | ||
29267 | /* end confdefs.h. */ | ||
29268 | |||
29269 | #include <stdio.h> | ||
29270 | #include <string.h> | ||
29271 | #ifdef HAVE_SNPRINTF | ||
29272 | main() | ||
29273 | { | ||
29274 | char buf[50]; | ||
29275 | char expected_out[50]; | ||
29276 | int mazsize = 50 ; | ||
29277 | #if (SIZEOF_LONG_INT == 8) | ||
29278 | long int num = 0x7fffffffffffffff; | ||
29279 | #else | ||
29280 | long long num = 0x7fffffffffffffffll; | ||
29281 | #endif | ||
29282 | strcpy(expected_out, "9223372036854775807"); | ||
29283 | snprintf(buf, mazsize, "%lld", num); | ||
29284 | if(strcmp(buf, expected_out) != 0) | ||
29285 | exit(1); | ||
29286 | exit(0); | ||
29287 | } | ||
29288 | #else | ||
29289 | main() { exit(0); } | ||
29290 | #endif | ||
29291 | |||
29292 | _ACEOF | ||
29293 | rm -f conftest$ac_exeext | ||
29294 | if { (ac_try="$ac_link" | ||
29295 | case "(($ac_try" in | ||
29296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29297 | *) ac_try_echo=$ac_try;; | ||
29298 | esac | ||
29299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29300 | (eval "$ac_link") 2>&5 | ||
29301 | ac_status=$? | ||
29302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29303 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
29304 | { (case "(($ac_try" in | ||
29305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29306 | *) ac_try_echo=$ac_try;; | ||
29307 | esac | ||
29308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29309 | (eval "$ac_try") 2>&5 | ||
29310 | ac_status=$? | ||
29311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29312 | (exit $ac_status); }; }; then | ||
29313 | true | ||
29314 | else | ||
29315 | echo "$as_me: program exited with status $ac_status" >&5 | ||
29316 | echo "$as_me: failed program was:" >&5 | ||
29317 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29318 | |||
29319 | ( exit $ac_status ) | ||
29320 | cat >>confdefs.h <<\_ACEOF | ||
29321 | #define BROKEN_SNPRINTF 1 | ||
29322 | _ACEOF | ||
29323 | |||
29324 | fi | ||
29325 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
29326 | fi | ||
29327 | |||
29328 | |||
29329 | fi | ||
29330 | |||
29331 | |||
29332 | # look for field 'ut_host' in header 'utmp.h' | ||
29333 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
29334 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
29335 | { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | ||
29336 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; } | ||
29337 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29339 | else | ||
29340 | |||
29341 | cat >conftest.$ac_ext <<_ACEOF | ||
29342 | /* confdefs.h. */ | ||
29343 | _ACEOF | ||
29344 | cat confdefs.h >>conftest.$ac_ext | ||
29345 | cat >>conftest.$ac_ext <<_ACEOF | ||
29346 | /* end confdefs.h. */ | ||
29347 | #include <utmp.h> | ||
29348 | |||
29349 | _ACEOF | ||
29350 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29351 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
29352 | eval "$ossh_varname=yes" | ||
29353 | else | ||
29354 | eval "$ossh_varname=no" | ||
29355 | fi | ||
29356 | rm -f conftest* | ||
29357 | |||
29358 | fi | ||
29359 | |||
29360 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29361 | if test -n "`echo $ossh_varname`"; then | ||
29362 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29363 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29364 | if test "x$ossh_result" = "xyes"; then | ||
29365 | |||
29366 | cat >>confdefs.h <<\_ACEOF | ||
29367 | #define HAVE_HOST_IN_UTMP 1 | ||
29368 | _ACEOF | ||
29369 | |||
29370 | fi | ||
29371 | else | ||
29372 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29373 | echo "${ECHO_T}no" >&6; } | ||
29374 | fi | ||
29375 | |||
29376 | |||
29377 | # look for field 'ut_host' in header 'utmpx.h' | ||
29378 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
29379 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
29380 | { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | ||
29381 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; } | ||
29382 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29384 | else | ||
29385 | |||
29386 | cat >conftest.$ac_ext <<_ACEOF | ||
29387 | /* confdefs.h. */ | ||
29388 | _ACEOF | ||
29389 | cat confdefs.h >>conftest.$ac_ext | ||
29390 | cat >>conftest.$ac_ext <<_ACEOF | ||
29391 | /* end confdefs.h. */ | ||
29392 | #include <utmpx.h> | ||
29393 | |||
29394 | _ACEOF | ||
29395 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29396 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
29397 | eval "$ossh_varname=yes" | ||
29398 | else | ||
29399 | eval "$ossh_varname=no" | ||
29400 | fi | ||
29401 | rm -f conftest* | ||
29402 | |||
29403 | fi | ||
29404 | |||
29405 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29406 | if test -n "`echo $ossh_varname`"; then | ||
29407 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29408 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29409 | if test "x$ossh_result" = "xyes"; then | ||
29410 | |||
29411 | cat >>confdefs.h <<\_ACEOF | ||
29412 | #define HAVE_HOST_IN_UTMPX 1 | ||
29413 | _ACEOF | ||
29414 | |||
29415 | fi | ||
29416 | else | ||
29417 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29418 | echo "${ECHO_T}no" >&6; } | ||
29419 | fi | ||
29420 | |||
29421 | |||
29422 | # look for field 'syslen' in header 'utmpx.h' | ||
29423 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
29424 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
29425 | { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | ||
29426 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; } | ||
29427 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29429 | else | ||
29430 | |||
29431 | cat >conftest.$ac_ext <<_ACEOF | ||
29432 | /* confdefs.h. */ | ||
29433 | _ACEOF | ||
29434 | cat confdefs.h >>conftest.$ac_ext | ||
29435 | cat >>conftest.$ac_ext <<_ACEOF | ||
29436 | /* end confdefs.h. */ | ||
29437 | #include <utmpx.h> | ||
29438 | |||
29439 | _ACEOF | ||
29440 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29441 | $EGREP "syslen" >/dev/null 2>&1; then | ||
29442 | eval "$ossh_varname=yes" | ||
29443 | else | ||
29444 | eval "$ossh_varname=no" | ||
29445 | fi | ||
29446 | rm -f conftest* | ||
29447 | |||
29448 | fi | ||
29449 | |||
29450 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29451 | if test -n "`echo $ossh_varname`"; then | ||
29452 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29453 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29454 | if test "x$ossh_result" = "xyes"; then | ||
29455 | |||
29456 | cat >>confdefs.h <<\_ACEOF | ||
29457 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
29458 | _ACEOF | ||
29459 | |||
29460 | fi | ||
29461 | else | ||
29462 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29463 | echo "${ECHO_T}no" >&6; } | ||
29464 | fi | ||
29465 | |||
29466 | |||
29467 | # look for field 'ut_pid' in header 'utmp.h' | ||
29468 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
29469 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
29470 | { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | ||
29471 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; } | ||
29472 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29474 | else | ||
29475 | |||
29476 | cat >conftest.$ac_ext <<_ACEOF | ||
29477 | /* confdefs.h. */ | ||
29478 | _ACEOF | ||
29479 | cat confdefs.h >>conftest.$ac_ext | ||
29480 | cat >>conftest.$ac_ext <<_ACEOF | ||
29481 | /* end confdefs.h. */ | ||
29482 | #include <utmp.h> | ||
29483 | |||
29484 | _ACEOF | ||
29485 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29486 | $EGREP "ut_pid" >/dev/null 2>&1; then | ||
29487 | eval "$ossh_varname=yes" | ||
29488 | else | ||
29489 | eval "$ossh_varname=no" | ||
29490 | fi | ||
29491 | rm -f conftest* | ||
29492 | |||
29493 | fi | ||
29494 | |||
29495 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29496 | if test -n "`echo $ossh_varname`"; then | ||
29497 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29498 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29499 | if test "x$ossh_result" = "xyes"; then | ||
29500 | |||
29501 | cat >>confdefs.h <<\_ACEOF | ||
29502 | #define HAVE_PID_IN_UTMP 1 | ||
29503 | _ACEOF | ||
29504 | |||
29505 | fi | ||
29506 | else | ||
29507 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29508 | echo "${ECHO_T}no" >&6; } | ||
29509 | fi | ||
29510 | |||
29511 | |||
29512 | # look for field 'ut_type' in header 'utmp.h' | ||
29513 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
29514 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
29515 | { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | ||
29516 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; } | ||
29517 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29519 | else | ||
29520 | |||
29521 | cat >conftest.$ac_ext <<_ACEOF | ||
29522 | /* confdefs.h. */ | ||
29523 | _ACEOF | ||
29524 | cat confdefs.h >>conftest.$ac_ext | ||
29525 | cat >>conftest.$ac_ext <<_ACEOF | ||
29526 | /* end confdefs.h. */ | ||
29527 | #include <utmp.h> | ||
29528 | |||
29529 | _ACEOF | ||
29530 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29531 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
29532 | eval "$ossh_varname=yes" | ||
29533 | else | ||
29534 | eval "$ossh_varname=no" | ||
29535 | fi | ||
29536 | rm -f conftest* | ||
29537 | |||
29538 | fi | ||
29539 | |||
29540 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29541 | if test -n "`echo $ossh_varname`"; then | ||
29542 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29543 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29544 | if test "x$ossh_result" = "xyes"; then | ||
29545 | |||
29546 | cat >>confdefs.h <<\_ACEOF | ||
29547 | #define HAVE_TYPE_IN_UTMP 1 | ||
29548 | _ACEOF | ||
29549 | |||
29550 | fi | ||
29551 | else | ||
29552 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29553 | echo "${ECHO_T}no" >&6; } | ||
29554 | fi | ||
29555 | |||
29556 | |||
29557 | # look for field 'ut_type' in header 'utmpx.h' | ||
29558 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
29559 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
29560 | { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | ||
29561 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; } | ||
29562 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29564 | else | ||
29565 | |||
29566 | cat >conftest.$ac_ext <<_ACEOF | ||
29567 | /* confdefs.h. */ | ||
29568 | _ACEOF | ||
29569 | cat confdefs.h >>conftest.$ac_ext | ||
29570 | cat >>conftest.$ac_ext <<_ACEOF | ||
29571 | /* end confdefs.h. */ | ||
29572 | #include <utmpx.h> | ||
29573 | |||
29574 | _ACEOF | ||
29575 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29576 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
29577 | eval "$ossh_varname=yes" | ||
29578 | else | ||
29579 | eval "$ossh_varname=no" | ||
29580 | fi | ||
29581 | rm -f conftest* | ||
29582 | |||
29583 | fi | ||
29584 | |||
29585 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29586 | if test -n "`echo $ossh_varname`"; then | ||
29587 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29588 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29589 | if test "x$ossh_result" = "xyes"; then | ||
29590 | |||
29591 | cat >>confdefs.h <<\_ACEOF | ||
29592 | #define HAVE_TYPE_IN_UTMPX 1 | ||
29593 | _ACEOF | ||
29594 | |||
29595 | fi | ||
29596 | else | ||
29597 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29598 | echo "${ECHO_T}no" >&6; } | ||
29599 | fi | ||
29600 | |||
29601 | |||
29602 | # look for field 'ut_tv' in header 'utmp.h' | ||
29603 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
29604 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
29605 | { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | ||
29606 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; } | ||
29607 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29609 | else | ||
29610 | |||
29611 | cat >conftest.$ac_ext <<_ACEOF | ||
29612 | /* confdefs.h. */ | ||
29613 | _ACEOF | ||
29614 | cat confdefs.h >>conftest.$ac_ext | ||
29615 | cat >>conftest.$ac_ext <<_ACEOF | ||
29616 | /* end confdefs.h. */ | ||
29617 | #include <utmp.h> | ||
29618 | |||
29619 | _ACEOF | ||
29620 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29621 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
29622 | eval "$ossh_varname=yes" | ||
29623 | else | ||
29624 | eval "$ossh_varname=no" | ||
29625 | fi | ||
29626 | rm -f conftest* | ||
29627 | |||
29628 | fi | ||
29629 | |||
29630 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29631 | if test -n "`echo $ossh_varname`"; then | ||
29632 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29633 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29634 | if test "x$ossh_result" = "xyes"; then | ||
29635 | |||
29636 | cat >>confdefs.h <<\_ACEOF | ||
29637 | #define HAVE_TV_IN_UTMP 1 | ||
29638 | _ACEOF | ||
29639 | |||
29640 | fi | ||
29641 | else | ||
29642 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29643 | echo "${ECHO_T}no" >&6; } | ||
29644 | fi | ||
29645 | |||
29646 | |||
29647 | # look for field 'ut_id' in header 'utmp.h' | ||
29648 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
29649 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
29650 | { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | ||
29651 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; } | ||
29652 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29654 | else | ||
29655 | |||
29656 | cat >conftest.$ac_ext <<_ACEOF | ||
29657 | /* confdefs.h. */ | ||
29658 | _ACEOF | ||
29659 | cat confdefs.h >>conftest.$ac_ext | ||
29660 | cat >>conftest.$ac_ext <<_ACEOF | ||
29661 | /* end confdefs.h. */ | ||
29662 | #include <utmp.h> | ||
29663 | |||
29664 | _ACEOF | ||
29665 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29666 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
29667 | eval "$ossh_varname=yes" | ||
29668 | else | ||
29669 | eval "$ossh_varname=no" | ||
29670 | fi | ||
29671 | rm -f conftest* | ||
29672 | |||
29673 | fi | ||
29674 | |||
29675 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29676 | if test -n "`echo $ossh_varname`"; then | ||
29677 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29678 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29679 | if test "x$ossh_result" = "xyes"; then | ||
29680 | |||
29681 | cat >>confdefs.h <<\_ACEOF | ||
29682 | #define HAVE_ID_IN_UTMP 1 | ||
29683 | _ACEOF | ||
29684 | |||
29685 | fi | ||
29686 | else | ||
29687 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29688 | echo "${ECHO_T}no" >&6; } | ||
29689 | fi | ||
29690 | |||
29691 | |||
29692 | # look for field 'ut_id' in header 'utmpx.h' | ||
29693 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
29694 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
29695 | { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | ||
29696 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; } | ||
29697 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29699 | else | ||
29700 | |||
29701 | cat >conftest.$ac_ext <<_ACEOF | ||
29702 | /* confdefs.h. */ | ||
29703 | _ACEOF | ||
29704 | cat confdefs.h >>conftest.$ac_ext | ||
29705 | cat >>conftest.$ac_ext <<_ACEOF | ||
29706 | /* end confdefs.h. */ | ||
29707 | #include <utmpx.h> | ||
29708 | |||
29709 | _ACEOF | ||
29710 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29711 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
29712 | eval "$ossh_varname=yes" | ||
29713 | else | ||
29714 | eval "$ossh_varname=no" | ||
29715 | fi | ||
29716 | rm -f conftest* | ||
29717 | |||
29718 | fi | ||
29719 | |||
29720 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29721 | if test -n "`echo $ossh_varname`"; then | ||
29722 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29723 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29724 | if test "x$ossh_result" = "xyes"; then | ||
29725 | |||
29726 | cat >>confdefs.h <<\_ACEOF | ||
29727 | #define HAVE_ID_IN_UTMPX 1 | ||
29728 | _ACEOF | ||
29729 | |||
29730 | fi | ||
29731 | else | ||
29732 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29733 | echo "${ECHO_T}no" >&6; } | ||
29734 | fi | ||
29735 | |||
29736 | |||
29737 | # look for field 'ut_addr' in header 'utmp.h' | ||
29738 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
29739 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
29740 | { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | ||
29741 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; } | ||
29742 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29744 | else | ||
29745 | |||
29746 | cat >conftest.$ac_ext <<_ACEOF | ||
29747 | /* confdefs.h. */ | ||
29748 | _ACEOF | ||
29749 | cat confdefs.h >>conftest.$ac_ext | ||
29750 | cat >>conftest.$ac_ext <<_ACEOF | ||
29751 | /* end confdefs.h. */ | ||
29752 | #include <utmp.h> | ||
29753 | |||
29754 | _ACEOF | ||
29755 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29756 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
29757 | eval "$ossh_varname=yes" | ||
29758 | else | ||
29759 | eval "$ossh_varname=no" | ||
29760 | fi | ||
29761 | rm -f conftest* | ||
29762 | |||
29763 | fi | ||
29764 | |||
29765 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29766 | if test -n "`echo $ossh_varname`"; then | ||
29767 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29768 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29769 | if test "x$ossh_result" = "xyes"; then | ||
29770 | |||
29771 | cat >>confdefs.h <<\_ACEOF | ||
29772 | #define HAVE_ADDR_IN_UTMP 1 | ||
29773 | _ACEOF | ||
29774 | |||
29775 | fi | ||
29776 | else | ||
29777 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29778 | echo "${ECHO_T}no" >&6; } | ||
29779 | fi | ||
29780 | |||
29781 | |||
29782 | # look for field 'ut_addr' in header 'utmpx.h' | ||
29783 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
29784 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
29785 | { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | ||
29786 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; } | ||
29787 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29789 | else | ||
29790 | |||
29791 | cat >conftest.$ac_ext <<_ACEOF | ||
29792 | /* confdefs.h. */ | ||
29793 | _ACEOF | ||
29794 | cat confdefs.h >>conftest.$ac_ext | ||
29795 | cat >>conftest.$ac_ext <<_ACEOF | ||
29796 | /* end confdefs.h. */ | ||
29797 | #include <utmpx.h> | ||
29798 | |||
29799 | _ACEOF | ||
29800 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29801 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
29802 | eval "$ossh_varname=yes" | ||
29803 | else | ||
29804 | eval "$ossh_varname=no" | ||
29805 | fi | ||
29806 | rm -f conftest* | ||
29807 | |||
29808 | fi | ||
29809 | |||
29810 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29811 | if test -n "`echo $ossh_varname`"; then | ||
29812 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29813 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29814 | if test "x$ossh_result" = "xyes"; then | ||
29815 | |||
29816 | cat >>confdefs.h <<\_ACEOF | ||
29817 | #define HAVE_ADDR_IN_UTMPX 1 | ||
29818 | _ACEOF | ||
29819 | |||
29820 | fi | ||
29821 | else | ||
29822 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29823 | echo "${ECHO_T}no" >&6; } | ||
29824 | fi | ||
29825 | |||
29826 | |||
29827 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
29828 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
29829 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
29830 | { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | ||
29831 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; } | ||
29832 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29834 | else | ||
29835 | |||
29836 | cat >conftest.$ac_ext <<_ACEOF | ||
29837 | /* confdefs.h. */ | ||
29838 | _ACEOF | ||
29839 | cat confdefs.h >>conftest.$ac_ext | ||
29840 | cat >>conftest.$ac_ext <<_ACEOF | ||
29841 | /* end confdefs.h. */ | ||
29842 | #include <utmp.h> | ||
29843 | |||
29844 | _ACEOF | ||
29845 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29846 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
29847 | eval "$ossh_varname=yes" | ||
29848 | else | ||
29849 | eval "$ossh_varname=no" | ||
29850 | fi | ||
29851 | rm -f conftest* | ||
29852 | |||
29853 | fi | ||
29854 | |||
29855 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29856 | if test -n "`echo $ossh_varname`"; then | ||
29857 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29858 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29859 | if test "x$ossh_result" = "xyes"; then | ||
29860 | |||
29861 | cat >>confdefs.h <<\_ACEOF | ||
29862 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
29863 | _ACEOF | ||
29864 | |||
29865 | fi | ||
29866 | else | ||
29867 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29868 | echo "${ECHO_T}no" >&6; } | ||
29869 | fi | ||
29870 | |||
29871 | |||
29872 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
29873 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
29874 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
29875 | { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
29876 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; } | ||
29877 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29879 | else | ||
29880 | |||
29881 | cat >conftest.$ac_ext <<_ACEOF | ||
29882 | /* confdefs.h. */ | ||
29883 | _ACEOF | ||
29884 | cat confdefs.h >>conftest.$ac_ext | ||
29885 | cat >>conftest.$ac_ext <<_ACEOF | ||
29886 | /* end confdefs.h. */ | ||
29887 | #include <utmpx.h> | ||
29888 | |||
29889 | _ACEOF | ||
29890 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29891 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
29892 | eval "$ossh_varname=yes" | ||
29893 | else | ||
29894 | eval "$ossh_varname=no" | ||
29895 | fi | ||
29896 | rm -f conftest* | ||
29897 | |||
29898 | fi | ||
29899 | |||
29900 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29901 | if test -n "`echo $ossh_varname`"; then | ||
29902 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29903 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29904 | if test "x$ossh_result" = "xyes"; then | ||
29905 | |||
29906 | cat >>confdefs.h <<\_ACEOF | ||
29907 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
29908 | _ACEOF | ||
29909 | |||
29910 | fi | ||
29911 | else | ||
29912 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29913 | echo "${ECHO_T}no" >&6; } | ||
29914 | fi | ||
29915 | |||
29916 | |||
29917 | # look for field 'ut_exit' in header 'utmp.h' | ||
29918 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
29919 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
29920 | { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | ||
29921 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; } | ||
29922 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29924 | else | ||
29925 | |||
29926 | cat >conftest.$ac_ext <<_ACEOF | ||
29927 | /* confdefs.h. */ | ||
29928 | _ACEOF | ||
29929 | cat confdefs.h >>conftest.$ac_ext | ||
29930 | cat >>conftest.$ac_ext <<_ACEOF | ||
29931 | /* end confdefs.h. */ | ||
29932 | #include <utmp.h> | ||
29933 | |||
29934 | _ACEOF | ||
29935 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29936 | $EGREP "ut_exit" >/dev/null 2>&1; then | ||
29937 | eval "$ossh_varname=yes" | ||
29938 | else | ||
29939 | eval "$ossh_varname=no" | ||
29940 | fi | ||
29941 | rm -f conftest* | ||
29942 | |||
29943 | fi | ||
29944 | |||
29945 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29946 | if test -n "`echo $ossh_varname`"; then | ||
29947 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29948 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29949 | if test "x$ossh_result" = "xyes"; then | ||
29950 | |||
29951 | cat >>confdefs.h <<\_ACEOF | ||
29952 | #define HAVE_EXIT_IN_UTMP 1 | ||
29953 | _ACEOF | ||
29954 | |||
29955 | fi | ||
29956 | else | ||
29957 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29958 | echo "${ECHO_T}no" >&6; } | ||
29959 | fi | ||
29960 | |||
29961 | |||
29962 | # look for field 'ut_time' in header 'utmp.h' | ||
29963 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
29964 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
29965 | { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | ||
29966 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; } | ||
29967 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29969 | else | ||
29970 | |||
29971 | cat >conftest.$ac_ext <<_ACEOF | ||
29972 | /* confdefs.h. */ | ||
29973 | _ACEOF | ||
29974 | cat confdefs.h >>conftest.$ac_ext | ||
29975 | cat >>conftest.$ac_ext <<_ACEOF | ||
29976 | /* end confdefs.h. */ | ||
29977 | #include <utmp.h> | ||
29978 | |||
29979 | _ACEOF | ||
29980 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29981 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
29982 | eval "$ossh_varname=yes" | ||
29983 | else | ||
29984 | eval "$ossh_varname=no" | ||
29985 | fi | ||
29986 | rm -f conftest* | ||
29987 | |||
29988 | fi | ||
29989 | |||
29990 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29991 | if test -n "`echo $ossh_varname`"; then | ||
29992 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29993 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29994 | if test "x$ossh_result" = "xyes"; then | ||
29995 | |||
29996 | cat >>confdefs.h <<\_ACEOF | ||
29997 | #define HAVE_TIME_IN_UTMP 1 | ||
29998 | _ACEOF | ||
29999 | |||
30000 | fi | ||
30001 | else | ||
30002 | { echo "$as_me:$LINENO: result: no" >&5 | ||
30003 | echo "${ECHO_T}no" >&6; } | ||
30004 | fi | ||
30005 | |||
30006 | |||
30007 | # look for field 'ut_time' in header 'utmpx.h' | ||
30008 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
30009 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
30010 | { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | ||
30011 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; } | ||
30012 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
30013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30014 | else | ||
30015 | |||
30016 | cat >conftest.$ac_ext <<_ACEOF | ||
30017 | /* confdefs.h. */ | ||
30018 | _ACEOF | ||
30019 | cat confdefs.h >>conftest.$ac_ext | ||
30020 | cat >>conftest.$ac_ext <<_ACEOF | ||
30021 | /* end confdefs.h. */ | ||
30022 | #include <utmpx.h> | ||
30023 | |||
30024 | _ACEOF | ||
30025 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
30026 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
30027 | eval "$ossh_varname=yes" | ||
30028 | else | ||
30029 | eval "$ossh_varname=no" | ||
30030 | fi | ||
30031 | rm -f conftest* | ||
30032 | |||
30033 | fi | ||
30034 | |||
30035 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
30036 | if test -n "`echo $ossh_varname`"; then | ||
30037 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
30038 | echo "${ECHO_T}$ossh_result" >&6; } | ||
30039 | if test "x$ossh_result" = "xyes"; then | ||
30040 | |||
30041 | cat >>confdefs.h <<\_ACEOF | ||
30042 | #define HAVE_TIME_IN_UTMPX 1 | ||
30043 | _ACEOF | ||
30044 | |||
30045 | fi | ||
30046 | else | ||
30047 | { echo "$as_me:$LINENO: result: no" >&5 | ||
30048 | echo "${ECHO_T}no" >&6; } | ||
30049 | fi | ||
30050 | |||
30051 | |||
30052 | # look for field 'ut_tv' in header 'utmpx.h' | ||
30053 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
30054 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
30055 | { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | ||
30056 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; } | ||
30057 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
30058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30059 | else | ||
30060 | |||
30061 | cat >conftest.$ac_ext <<_ACEOF | ||
30062 | /* confdefs.h. */ | ||
30063 | _ACEOF | ||
30064 | cat confdefs.h >>conftest.$ac_ext | ||
30065 | cat >>conftest.$ac_ext <<_ACEOF | ||
30066 | /* end confdefs.h. */ | ||
30067 | #include <utmpx.h> | ||
30068 | |||
30069 | _ACEOF | ||
30070 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
30071 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
30072 | eval "$ossh_varname=yes" | ||
30073 | else | ||
30074 | eval "$ossh_varname=no" | ||
30075 | fi | ||
30076 | rm -f conftest* | ||
30077 | |||
30078 | fi | ||
30079 | |||
30080 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
30081 | if test -n "`echo $ossh_varname`"; then | ||
30082 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
30083 | echo "${ECHO_T}$ossh_result" >&6; } | ||
30084 | if test "x$ossh_result" = "xyes"; then | ||
30085 | |||
30086 | cat >>confdefs.h <<\_ACEOF | ||
30087 | #define HAVE_TV_IN_UTMPX 1 | ||
30088 | _ACEOF | ||
30089 | |||
30090 | fi | ||
30091 | else | ||
30092 | { echo "$as_me:$LINENO: result: no" >&5 | ||
30093 | echo "${ECHO_T}no" >&6; } | ||
30094 | fi | ||
30095 | |||
30096 | |||
30097 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | ||
30098 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; } | ||
30099 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
30100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30101 | else | ||
30102 | cat >conftest.$ac_ext <<_ACEOF | ||
30103 | /* confdefs.h. */ | ||
30104 | _ACEOF | ||
30105 | cat confdefs.h >>conftest.$ac_ext | ||
30106 | cat >>conftest.$ac_ext <<_ACEOF | ||
30107 | /* end confdefs.h. */ | ||
30108 | $ac_includes_default | ||
30109 | int | ||
30110 | main () | ||
30111 | { | ||
30112 | static struct stat ac_aggr; | ||
30113 | if (ac_aggr.st_blksize) | ||
30114 | return 0; | ||
30115 | ; | ||
30116 | return 0; | ||
30117 | } | ||
30118 | _ACEOF | ||
30119 | rm -f conftest.$ac_objext | ||
30120 | if { (ac_try="$ac_compile" | ||
30121 | case "(($ac_try" in | ||
30122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30123 | *) ac_try_echo=$ac_try;; | ||
30124 | esac | ||
30125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30126 | (eval "$ac_compile") 2>conftest.er1 | ||
30127 | ac_status=$? | ||
30128 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30129 | rm -f conftest.er1 | ||
30130 | cat conftest.err >&5 | ||
30131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30132 | (exit $ac_status); } && { | ||
30133 | test -z "$ac_c_werror_flag" || | ||
30134 | test ! -s conftest.err | ||
30135 | } && test -s conftest.$ac_objext; then | ||
30136 | ac_cv_member_struct_stat_st_blksize=yes | ||
30137 | else | ||
30138 | echo "$as_me: failed program was:" >&5 | ||
30139 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30140 | |||
30141 | cat >conftest.$ac_ext <<_ACEOF | ||
30142 | /* confdefs.h. */ | ||
30143 | _ACEOF | ||
30144 | cat confdefs.h >>conftest.$ac_ext | ||
30145 | cat >>conftest.$ac_ext <<_ACEOF | ||
30146 | /* end confdefs.h. */ | ||
30147 | $ac_includes_default | ||
30148 | int | ||
30149 | main () | ||
30150 | { | ||
30151 | static struct stat ac_aggr; | ||
30152 | if (sizeof ac_aggr.st_blksize) | ||
30153 | return 0; | ||
30154 | ; | ||
30155 | return 0; | ||
30156 | } | ||
30157 | _ACEOF | ||
30158 | rm -f conftest.$ac_objext | ||
30159 | if { (ac_try="$ac_compile" | ||
30160 | case "(($ac_try" in | ||
30161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30162 | *) ac_try_echo=$ac_try;; | ||
30163 | esac | ||
30164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30165 | (eval "$ac_compile") 2>conftest.er1 | ||
30166 | ac_status=$? | ||
30167 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30168 | rm -f conftest.er1 | ||
30169 | cat conftest.err >&5 | ||
30170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30171 | (exit $ac_status); } && { | ||
30172 | test -z "$ac_c_werror_flag" || | ||
30173 | test ! -s conftest.err | ||
30174 | } && test -s conftest.$ac_objext; then | ||
30175 | ac_cv_member_struct_stat_st_blksize=yes | ||
30176 | else | ||
30177 | echo "$as_me: failed program was:" >&5 | ||
30178 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30179 | |||
30180 | ac_cv_member_struct_stat_st_blksize=no | ||
30181 | fi | ||
30182 | |||
30183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30184 | fi | ||
30185 | |||
30186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30187 | fi | ||
30188 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
30189 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } | ||
30190 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
30191 | |||
30192 | cat >>confdefs.h <<_ACEOF | ||
30193 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
30194 | _ACEOF | ||
30195 | |||
30196 | |||
30197 | fi | ||
30198 | |||
30199 | { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5 | ||
30200 | echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; } | ||
30201 | if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then | ||
30202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30203 | else | ||
30204 | cat >conftest.$ac_ext <<_ACEOF | ||
30205 | /* confdefs.h. */ | ||
30206 | _ACEOF | ||
30207 | cat confdefs.h >>conftest.$ac_ext | ||
30208 | cat >>conftest.$ac_ext <<_ACEOF | ||
30209 | /* end confdefs.h. */ | ||
30210 | |||
30211 | #include <sys/types.h> | ||
30212 | #include <pwd.h> | ||
30213 | |||
30214 | |||
30215 | int | ||
30216 | main () | ||
30217 | { | ||
30218 | static struct passwd ac_aggr; | ||
30219 | if (ac_aggr.pw_gecos) | ||
30220 | return 0; | ||
30221 | ; | ||
30222 | return 0; | ||
30223 | } | ||
30224 | _ACEOF | ||
30225 | rm -f conftest.$ac_objext | ||
30226 | if { (ac_try="$ac_compile" | ||
30227 | case "(($ac_try" in | ||
30228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30229 | *) ac_try_echo=$ac_try;; | ||
30230 | esac | ||
30231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30232 | (eval "$ac_compile") 2>conftest.er1 | ||
30233 | ac_status=$? | ||
30234 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30235 | rm -f conftest.er1 | ||
30236 | cat conftest.err >&5 | ||
30237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30238 | (exit $ac_status); } && { | ||
30239 | test -z "$ac_c_werror_flag" || | ||
30240 | test ! -s conftest.err | ||
30241 | } && test -s conftest.$ac_objext; then | ||
30242 | ac_cv_member_struct_passwd_pw_gecos=yes | ||
30243 | else | ||
30244 | echo "$as_me: failed program was:" >&5 | ||
30245 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30246 | |||
30247 | cat >conftest.$ac_ext <<_ACEOF | ||
30248 | /* confdefs.h. */ | ||
30249 | _ACEOF | ||
30250 | cat confdefs.h >>conftest.$ac_ext | ||
30251 | cat >>conftest.$ac_ext <<_ACEOF | ||
30252 | /* end confdefs.h. */ | ||
30253 | |||
30254 | #include <sys/types.h> | ||
30255 | #include <pwd.h> | ||
30256 | |||
30257 | |||
30258 | int | ||
30259 | main () | ||
30260 | { | ||
30261 | static struct passwd ac_aggr; | ||
30262 | if (sizeof ac_aggr.pw_gecos) | ||
30263 | return 0; | ||
30264 | ; | ||
30265 | return 0; | ||
30266 | } | ||
30267 | _ACEOF | ||
30268 | rm -f conftest.$ac_objext | ||
30269 | if { (ac_try="$ac_compile" | ||
30270 | case "(($ac_try" in | ||
30271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30272 | *) ac_try_echo=$ac_try;; | ||
30273 | esac | ||
30274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30275 | (eval "$ac_compile") 2>conftest.er1 | ||
30276 | ac_status=$? | ||
30277 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30278 | rm -f conftest.er1 | ||
30279 | cat conftest.err >&5 | ||
30280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30281 | (exit $ac_status); } && { | ||
30282 | test -z "$ac_c_werror_flag" || | ||
30283 | test ! -s conftest.err | ||
30284 | } && test -s conftest.$ac_objext; then | ||
30285 | ac_cv_member_struct_passwd_pw_gecos=yes | ||
30286 | else | ||
30287 | echo "$as_me: failed program was:" >&5 | ||
30288 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30289 | |||
30290 | ac_cv_member_struct_passwd_pw_gecos=no | ||
30291 | fi | ||
30292 | |||
30293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30294 | fi | ||
30295 | |||
30296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30297 | fi | ||
30298 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5 | ||
30299 | echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; } | ||
30300 | if test $ac_cv_member_struct_passwd_pw_gecos = yes; then | ||
30301 | |||
30302 | cat >>confdefs.h <<_ACEOF | ||
30303 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | ||
30304 | _ACEOF | ||
30305 | |||
30306 | |||
30307 | fi | ||
30308 | { echo "$as_me:$LINENO: checking for struct passwd.pw_class" >&5 | ||
30309 | echo $ECHO_N "checking for struct passwd.pw_class... $ECHO_C" >&6; } | ||
30310 | if test "${ac_cv_member_struct_passwd_pw_class+set}" = set; then | ||
30311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30312 | else | ||
30313 | cat >conftest.$ac_ext <<_ACEOF | ||
30314 | /* confdefs.h. */ | ||
30315 | _ACEOF | ||
30316 | cat confdefs.h >>conftest.$ac_ext | ||
30317 | cat >>conftest.$ac_ext <<_ACEOF | ||
30318 | /* end confdefs.h. */ | ||
30319 | |||
30320 | #include <sys/types.h> | ||
30321 | #include <pwd.h> | ||
30322 | |||
30323 | |||
30324 | int | ||
30325 | main () | ||
30326 | { | ||
30327 | static struct passwd ac_aggr; | ||
30328 | if (ac_aggr.pw_class) | ||
30329 | return 0; | ||
30330 | ; | ||
30331 | return 0; | ||
30332 | } | ||
30333 | _ACEOF | ||
30334 | rm -f conftest.$ac_objext | ||
30335 | if { (ac_try="$ac_compile" | ||
30336 | case "(($ac_try" in | ||
30337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30338 | *) ac_try_echo=$ac_try;; | ||
30339 | esac | ||
30340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30341 | (eval "$ac_compile") 2>conftest.er1 | ||
30342 | ac_status=$? | ||
30343 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30344 | rm -f conftest.er1 | ||
30345 | cat conftest.err >&5 | ||
30346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30347 | (exit $ac_status); } && { | ||
30348 | test -z "$ac_c_werror_flag" || | ||
30349 | test ! -s conftest.err | ||
30350 | } && test -s conftest.$ac_objext; then | ||
30351 | ac_cv_member_struct_passwd_pw_class=yes | ||
30352 | else | ||
30353 | echo "$as_me: failed program was:" >&5 | ||
30354 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30355 | |||
30356 | cat >conftest.$ac_ext <<_ACEOF | ||
30357 | /* confdefs.h. */ | ||
30358 | _ACEOF | ||
30359 | cat confdefs.h >>conftest.$ac_ext | ||
30360 | cat >>conftest.$ac_ext <<_ACEOF | ||
30361 | /* end confdefs.h. */ | ||
30362 | |||
30363 | #include <sys/types.h> | ||
30364 | #include <pwd.h> | ||
30365 | |||
30366 | |||
30367 | int | ||
30368 | main () | ||
30369 | { | ||
30370 | static struct passwd ac_aggr; | ||
30371 | if (sizeof ac_aggr.pw_class) | ||
30372 | return 0; | ||
30373 | ; | ||
30374 | return 0; | ||
30375 | } | ||
30376 | _ACEOF | ||
30377 | rm -f conftest.$ac_objext | ||
30378 | if { (ac_try="$ac_compile" | ||
30379 | case "(($ac_try" in | ||
30380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30381 | *) ac_try_echo=$ac_try;; | ||
30382 | esac | ||
30383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30384 | (eval "$ac_compile") 2>conftest.er1 | ||
30385 | ac_status=$? | ||
30386 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30387 | rm -f conftest.er1 | ||
30388 | cat conftest.err >&5 | ||
30389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30390 | (exit $ac_status); } && { | ||
30391 | test -z "$ac_c_werror_flag" || | ||
30392 | test ! -s conftest.err | ||
30393 | } && test -s conftest.$ac_objext; then | ||
30394 | ac_cv_member_struct_passwd_pw_class=yes | ||
30395 | else | ||
30396 | echo "$as_me: failed program was:" >&5 | ||
30397 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30398 | |||
30399 | ac_cv_member_struct_passwd_pw_class=no | ||
30400 | fi | ||
30401 | |||
30402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30403 | fi | ||
30404 | |||
30405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30406 | fi | ||
30407 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_class" >&5 | ||
30408 | echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_class" >&6; } | ||
30409 | if test $ac_cv_member_struct_passwd_pw_class = yes; then | ||
30410 | |||
30411 | cat >>confdefs.h <<_ACEOF | ||
30412 | #define HAVE_STRUCT_PASSWD_PW_CLASS 1 | ||
30413 | _ACEOF | ||
30414 | |||
30415 | |||
30416 | fi | ||
30417 | { echo "$as_me:$LINENO: checking for struct passwd.pw_change" >&5 | ||
30418 | echo $ECHO_N "checking for struct passwd.pw_change... $ECHO_C" >&6; } | ||
30419 | if test "${ac_cv_member_struct_passwd_pw_change+set}" = set; then | ||
30420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30421 | else | ||
30422 | cat >conftest.$ac_ext <<_ACEOF | ||
30423 | /* confdefs.h. */ | ||
30424 | _ACEOF | ||
30425 | cat confdefs.h >>conftest.$ac_ext | ||
30426 | cat >>conftest.$ac_ext <<_ACEOF | ||
30427 | /* end confdefs.h. */ | ||
30428 | |||
30429 | #include <sys/types.h> | ||
30430 | #include <pwd.h> | ||
30431 | |||
30432 | |||
30433 | int | ||
30434 | main () | ||
30435 | { | ||
30436 | static struct passwd ac_aggr; | ||
30437 | if (ac_aggr.pw_change) | ||
30438 | return 0; | ||
30439 | ; | ||
30440 | return 0; | ||
30441 | } | ||
30442 | _ACEOF | ||
30443 | rm -f conftest.$ac_objext | ||
30444 | if { (ac_try="$ac_compile" | ||
30445 | case "(($ac_try" in | ||
30446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30447 | *) ac_try_echo=$ac_try;; | ||
30448 | esac | ||
30449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30450 | (eval "$ac_compile") 2>conftest.er1 | ||
30451 | ac_status=$? | ||
30452 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30453 | rm -f conftest.er1 | ||
30454 | cat conftest.err >&5 | ||
30455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30456 | (exit $ac_status); } && { | ||
30457 | test -z "$ac_c_werror_flag" || | ||
30458 | test ! -s conftest.err | ||
30459 | } && test -s conftest.$ac_objext; then | ||
30460 | ac_cv_member_struct_passwd_pw_change=yes | ||
30461 | else | ||
30462 | echo "$as_me: failed program was:" >&5 | ||
30463 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30464 | |||
30465 | cat >conftest.$ac_ext <<_ACEOF | ||
30466 | /* confdefs.h. */ | ||
30467 | _ACEOF | ||
30468 | cat confdefs.h >>conftest.$ac_ext | ||
30469 | cat >>conftest.$ac_ext <<_ACEOF | ||
30470 | /* end confdefs.h. */ | ||
30471 | |||
30472 | #include <sys/types.h> | ||
30473 | #include <pwd.h> | ||
30474 | |||
30475 | |||
30476 | int | ||
30477 | main () | ||
30478 | { | ||
30479 | static struct passwd ac_aggr; | ||
30480 | if (sizeof ac_aggr.pw_change) | ||
30481 | return 0; | ||
30482 | ; | ||
30483 | return 0; | ||
30484 | } | ||
30485 | _ACEOF | ||
30486 | rm -f conftest.$ac_objext | ||
30487 | if { (ac_try="$ac_compile" | ||
30488 | case "(($ac_try" in | ||
30489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30490 | *) ac_try_echo=$ac_try;; | ||
30491 | esac | ||
30492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30493 | (eval "$ac_compile") 2>conftest.er1 | ||
30494 | ac_status=$? | ||
30495 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30496 | rm -f conftest.er1 | ||
30497 | cat conftest.err >&5 | ||
30498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30499 | (exit $ac_status); } && { | ||
30500 | test -z "$ac_c_werror_flag" || | ||
30501 | test ! -s conftest.err | ||
30502 | } && test -s conftest.$ac_objext; then | ||
30503 | ac_cv_member_struct_passwd_pw_change=yes | ||
30504 | else | ||
30505 | echo "$as_me: failed program was:" >&5 | ||
30506 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30507 | |||
30508 | ac_cv_member_struct_passwd_pw_change=no | ||
30509 | fi | ||
30510 | |||
30511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30512 | fi | ||
30513 | |||
30514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30515 | fi | ||
30516 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_change" >&5 | ||
30517 | echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_change" >&6; } | ||
30518 | if test $ac_cv_member_struct_passwd_pw_change = yes; then | ||
30519 | |||
30520 | cat >>confdefs.h <<_ACEOF | ||
30521 | #define HAVE_STRUCT_PASSWD_PW_CHANGE 1 | ||
30522 | _ACEOF | ||
30523 | |||
30524 | |||
30525 | fi | ||
30526 | { echo "$as_me:$LINENO: checking for struct passwd.pw_expire" >&5 | ||
30527 | echo $ECHO_N "checking for struct passwd.pw_expire... $ECHO_C" >&6; } | ||
30528 | if test "${ac_cv_member_struct_passwd_pw_expire+set}" = set; then | ||
30529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30530 | else | ||
30531 | cat >conftest.$ac_ext <<_ACEOF | ||
30532 | /* confdefs.h. */ | ||
30533 | _ACEOF | ||
30534 | cat confdefs.h >>conftest.$ac_ext | ||
30535 | cat >>conftest.$ac_ext <<_ACEOF | ||
30536 | /* end confdefs.h. */ | ||
30537 | |||
30538 | #include <sys/types.h> | ||
30539 | #include <pwd.h> | ||
30540 | |||
30541 | |||
30542 | int | ||
30543 | main () | ||
30544 | { | ||
30545 | static struct passwd ac_aggr; | ||
30546 | if (ac_aggr.pw_expire) | ||
30547 | return 0; | ||
30548 | ; | ||
30549 | return 0; | ||
30550 | } | ||
30551 | _ACEOF | ||
30552 | rm -f conftest.$ac_objext | ||
30553 | if { (ac_try="$ac_compile" | ||
30554 | case "(($ac_try" in | ||
30555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30556 | *) ac_try_echo=$ac_try;; | ||
30557 | esac | ||
30558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30559 | (eval "$ac_compile") 2>conftest.er1 | ||
30560 | ac_status=$? | ||
30561 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30562 | rm -f conftest.er1 | ||
30563 | cat conftest.err >&5 | ||
30564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30565 | (exit $ac_status); } && { | ||
30566 | test -z "$ac_c_werror_flag" || | ||
30567 | test ! -s conftest.err | ||
30568 | } && test -s conftest.$ac_objext; then | ||
30569 | ac_cv_member_struct_passwd_pw_expire=yes | ||
30570 | else | ||
30571 | echo "$as_me: failed program was:" >&5 | ||
30572 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30573 | |||
30574 | cat >conftest.$ac_ext <<_ACEOF | ||
30575 | /* confdefs.h. */ | ||
30576 | _ACEOF | ||
30577 | cat confdefs.h >>conftest.$ac_ext | ||
30578 | cat >>conftest.$ac_ext <<_ACEOF | ||
30579 | /* end confdefs.h. */ | ||
30580 | |||
30581 | #include <sys/types.h> | ||
30582 | #include <pwd.h> | ||
30583 | |||
30584 | |||
30585 | int | ||
30586 | main () | ||
30587 | { | ||
30588 | static struct passwd ac_aggr; | ||
30589 | if (sizeof ac_aggr.pw_expire) | ||
30590 | return 0; | ||
30591 | ; | ||
30592 | return 0; | ||
30593 | } | ||
30594 | _ACEOF | ||
30595 | rm -f conftest.$ac_objext | ||
30596 | if { (ac_try="$ac_compile" | ||
30597 | case "(($ac_try" in | ||
30598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30599 | *) ac_try_echo=$ac_try;; | ||
30600 | esac | ||
30601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30602 | (eval "$ac_compile") 2>conftest.er1 | ||
30603 | ac_status=$? | ||
30604 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30605 | rm -f conftest.er1 | ||
30606 | cat conftest.err >&5 | ||
30607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30608 | (exit $ac_status); } && { | ||
30609 | test -z "$ac_c_werror_flag" || | ||
30610 | test ! -s conftest.err | ||
30611 | } && test -s conftest.$ac_objext; then | ||
30612 | ac_cv_member_struct_passwd_pw_expire=yes | ||
30613 | else | ||
30614 | echo "$as_me: failed program was:" >&5 | ||
30615 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30616 | |||
30617 | ac_cv_member_struct_passwd_pw_expire=no | ||
30618 | fi | ||
30619 | |||
30620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30621 | fi | ||
30622 | |||
30623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30624 | fi | ||
30625 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_expire" >&5 | ||
30626 | echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_expire" >&6; } | ||
30627 | if test $ac_cv_member_struct_passwd_pw_expire = yes; then | ||
30628 | |||
30629 | cat >>confdefs.h <<_ACEOF | ||
30630 | #define HAVE_STRUCT_PASSWD_PW_EXPIRE 1 | ||
30631 | _ACEOF | ||
30632 | |||
30633 | |||
30634 | fi | ||
30635 | |||
30636 | |||
30637 | { echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5 | ||
30638 | echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; } | ||
30639 | if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then | ||
30640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30641 | else | ||
30642 | cat >conftest.$ac_ext <<_ACEOF | ||
30643 | /* confdefs.h. */ | ||
30644 | _ACEOF | ||
30645 | cat confdefs.h >>conftest.$ac_ext | ||
30646 | cat >>conftest.$ac_ext <<_ACEOF | ||
30647 | /* end confdefs.h. */ | ||
30648 | |||
30649 | #include <stdio.h> | ||
30650 | #if HAVE_SYS_TYPES_H | ||
30651 | # include <sys/types.h> | ||
30652 | #endif | ||
30653 | #include <netinet/in.h> | ||
30654 | #include <arpa/nameser.h> | ||
30655 | #include <resolv.h> | ||
30656 | |||
30657 | |||
30658 | int | ||
30659 | main () | ||
30660 | { | ||
30661 | static struct __res_state ac_aggr; | ||
30662 | if (ac_aggr.retrans) | ||
30663 | return 0; | ||
30664 | ; | ||
30665 | return 0; | ||
30666 | } | ||
30667 | _ACEOF | ||
30668 | rm -f conftest.$ac_objext | ||
30669 | if { (ac_try="$ac_compile" | ||
30670 | case "(($ac_try" in | ||
30671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30672 | *) ac_try_echo=$ac_try;; | ||
30673 | esac | ||
30674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30675 | (eval "$ac_compile") 2>conftest.er1 | ||
30676 | ac_status=$? | ||
30677 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30678 | rm -f conftest.er1 | ||
30679 | cat conftest.err >&5 | ||
30680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30681 | (exit $ac_status); } && { | ||
30682 | test -z "$ac_c_werror_flag" || | ||
30683 | test ! -s conftest.err | ||
30684 | } && test -s conftest.$ac_objext; then | ||
30685 | ac_cv_member_struct___res_state_retrans=yes | ||
30686 | else | ||
30687 | echo "$as_me: failed program was:" >&5 | ||
30688 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30689 | |||
30690 | cat >conftest.$ac_ext <<_ACEOF | ||
30691 | /* confdefs.h. */ | ||
30692 | _ACEOF | ||
30693 | cat confdefs.h >>conftest.$ac_ext | ||
30694 | cat >>conftest.$ac_ext <<_ACEOF | ||
30695 | /* end confdefs.h. */ | ||
30696 | |||
30697 | #include <stdio.h> | ||
30698 | #if HAVE_SYS_TYPES_H | ||
30699 | # include <sys/types.h> | ||
30700 | #endif | ||
30701 | #include <netinet/in.h> | ||
30702 | #include <arpa/nameser.h> | ||
30703 | #include <resolv.h> | ||
30704 | |||
30705 | |||
30706 | int | ||
30707 | main () | ||
30708 | { | ||
30709 | static struct __res_state ac_aggr; | ||
30710 | if (sizeof ac_aggr.retrans) | ||
30711 | return 0; | ||
30712 | ; | ||
30713 | return 0; | ||
30714 | } | ||
30715 | _ACEOF | ||
30716 | rm -f conftest.$ac_objext | ||
30717 | if { (ac_try="$ac_compile" | ||
30718 | case "(($ac_try" in | ||
30719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30720 | *) ac_try_echo=$ac_try;; | ||
30721 | esac | ||
30722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30723 | (eval "$ac_compile") 2>conftest.er1 | ||
30724 | ac_status=$? | ||
30725 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30726 | rm -f conftest.er1 | ||
30727 | cat conftest.err >&5 | ||
30728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30729 | (exit $ac_status); } && { | ||
30730 | test -z "$ac_c_werror_flag" || | ||
30731 | test ! -s conftest.err | ||
30732 | } && test -s conftest.$ac_objext; then | ||
30733 | ac_cv_member_struct___res_state_retrans=yes | ||
30734 | else | ||
30735 | echo "$as_me: failed program was:" >&5 | ||
30736 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30737 | |||
30738 | ac_cv_member_struct___res_state_retrans=no | ||
30739 | fi | ||
30740 | |||
30741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30742 | fi | ||
30743 | |||
30744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30745 | fi | ||
30746 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5 | ||
30747 | echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; } | ||
30748 | if test $ac_cv_member_struct___res_state_retrans = yes; then | ||
30749 | : | ||
30750 | else | ||
30751 | |||
30752 | cat >>confdefs.h <<\_ACEOF | ||
30753 | #define __res_state state | ||
30754 | _ACEOF | ||
30755 | |||
30756 | fi | ||
30757 | |||
30758 | |||
30759 | { echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | ||
30760 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } | ||
30761 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
30762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30763 | else | ||
30764 | |||
30765 | cat >conftest.$ac_ext <<_ACEOF | ||
30766 | /* confdefs.h. */ | ||
30767 | _ACEOF | ||
30768 | cat confdefs.h >>conftest.$ac_ext | ||
30769 | cat >>conftest.$ac_ext <<_ACEOF | ||
30770 | /* end confdefs.h. */ | ||
30771 | |||
30772 | #include <sys/types.h> | ||
30773 | #include <sys/socket.h> | ||
30774 | |||
30775 | int | ||
30776 | main () | ||
30777 | { | ||
30778 | struct sockaddr_storage s; s.ss_family = 1; | ||
30779 | ; | ||
30780 | return 0; | ||
30781 | } | ||
30782 | _ACEOF | ||
30783 | rm -f conftest.$ac_objext | ||
30784 | if { (ac_try="$ac_compile" | ||
30785 | case "(($ac_try" in | ||
30786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30787 | *) ac_try_echo=$ac_try;; | ||
30788 | esac | ||
30789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30790 | (eval "$ac_compile") 2>conftest.er1 | ||
30791 | ac_status=$? | ||
30792 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30793 | rm -f conftest.er1 | ||
30794 | cat conftest.err >&5 | ||
30795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30796 | (exit $ac_status); } && { | ||
30797 | test -z "$ac_c_werror_flag" || | ||
30798 | test ! -s conftest.err | ||
30799 | } && test -s conftest.$ac_objext; then | ||
30800 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
30801 | else | ||
30802 | echo "$as_me: failed program was:" >&5 | ||
30803 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30804 | |||
30805 | ac_cv_have_ss_family_in_struct_ss="no" | ||
30806 | fi | ||
30807 | |||
30808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30809 | |||
30810 | fi | ||
30811 | { echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
30812 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; } | ||
30813 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
30814 | |||
30815 | cat >>confdefs.h <<\_ACEOF | ||
30816 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
30817 | _ACEOF | ||
30818 | |||
30819 | fi | ||
30820 | |||
30821 | { echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
30822 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } | ||
30823 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
30824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30825 | else | ||
30826 | |||
30827 | cat >conftest.$ac_ext <<_ACEOF | ||
30828 | /* confdefs.h. */ | ||
30829 | _ACEOF | ||
30830 | cat confdefs.h >>conftest.$ac_ext | ||
30831 | cat >>conftest.$ac_ext <<_ACEOF | ||
30832 | /* end confdefs.h. */ | ||
30833 | |||
30834 | #include <sys/types.h> | ||
30835 | #include <sys/socket.h> | ||
30836 | |||
30837 | int | ||
30838 | main () | ||
30839 | { | ||
30840 | struct sockaddr_storage s; s.__ss_family = 1; | ||
30841 | ; | ||
30842 | return 0; | ||
30843 | } | ||
30844 | _ACEOF | ||
30845 | rm -f conftest.$ac_objext | ||
30846 | if { (ac_try="$ac_compile" | ||
30847 | case "(($ac_try" in | ||
30848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30849 | *) ac_try_echo=$ac_try;; | ||
30850 | esac | ||
30851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30852 | (eval "$ac_compile") 2>conftest.er1 | ||
30853 | ac_status=$? | ||
30854 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30855 | rm -f conftest.er1 | ||
30856 | cat conftest.err >&5 | ||
30857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30858 | (exit $ac_status); } && { | ||
30859 | test -z "$ac_c_werror_flag" || | ||
30860 | test ! -s conftest.err | ||
30861 | } && test -s conftest.$ac_objext; then | ||
30862 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
30863 | else | ||
30864 | echo "$as_me: failed program was:" >&5 | ||
30865 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30866 | |||
30867 | ac_cv_have___ss_family_in_struct_ss="no" | ||
30868 | |||
30869 | fi | ||
30870 | |||
30871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30872 | |||
30873 | fi | ||
30874 | { echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
30875 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; } | ||
30876 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
30877 | |||
30878 | cat >>confdefs.h <<\_ACEOF | ||
30879 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
30880 | _ACEOF | ||
30881 | |||
30882 | fi | ||
30883 | |||
30884 | { echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | ||
30885 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; } | ||
30886 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
30887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30888 | else | ||
30889 | |||
30890 | cat >conftest.$ac_ext <<_ACEOF | ||
30891 | /* confdefs.h. */ | ||
30892 | _ACEOF | ||
30893 | cat confdefs.h >>conftest.$ac_ext | ||
30894 | cat >>conftest.$ac_ext <<_ACEOF | ||
30895 | /* end confdefs.h. */ | ||
30896 | |||
30897 | #include <sys/types.h> | ||
30898 | #include <sys/socket.h> | ||
30899 | #include <sys/uio.h> | ||
30900 | |||
30901 | int | ||
30902 | main () | ||
30903 | { | ||
30904 | |||
30905 | #ifdef msg_accrights | ||
30906 | #error "msg_accrights is a macro" | ||
30907 | exit(1); | ||
30908 | #endif | ||
30909 | struct msghdr m; | ||
30910 | m.msg_accrights = 0; | ||
30911 | exit(0); | ||
30912 | |||
30913 | ; | ||
30914 | return 0; | ||
30915 | } | ||
30916 | _ACEOF | ||
30917 | rm -f conftest.$ac_objext | ||
30918 | if { (ac_try="$ac_compile" | ||
30919 | case "(($ac_try" in | ||
30920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30921 | *) ac_try_echo=$ac_try;; | ||
30922 | esac | ||
30923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30924 | (eval "$ac_compile") 2>conftest.er1 | ||
30925 | ac_status=$? | ||
30926 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30927 | rm -f conftest.er1 | ||
30928 | cat conftest.err >&5 | ||
30929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30930 | (exit $ac_status); } && { | ||
30931 | test -z "$ac_c_werror_flag" || | ||
30932 | test ! -s conftest.err | ||
30933 | } && test -s conftest.$ac_objext; then | ||
30934 | ac_cv_have_accrights_in_msghdr="yes" | ||
30935 | else | ||
30936 | echo "$as_me: failed program was:" >&5 | ||
30937 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30938 | |||
30939 | ac_cv_have_accrights_in_msghdr="no" | ||
30940 | |||
30941 | fi | ||
30942 | |||
30943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30944 | |||
30945 | fi | ||
30946 | { echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
30947 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; } | ||
30948 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
30949 | |||
30950 | cat >>confdefs.h <<\_ACEOF | ||
30951 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
30952 | _ACEOF | ||
30953 | |||
30954 | fi | ||
30955 | |||
30956 | { echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5 | ||
30957 | echo $ECHO_N "checking if struct statvfs.f_fsid is integral type... $ECHO_C" >&6; } | ||
30958 | cat >conftest.$ac_ext <<_ACEOF | ||
30959 | /* confdefs.h. */ | ||
30960 | _ACEOF | ||
30961 | cat confdefs.h >>conftest.$ac_ext | ||
30962 | cat >>conftest.$ac_ext <<_ACEOF | ||
30963 | /* end confdefs.h. */ | ||
30964 | |||
30965 | #include <sys/param.h> | ||
30966 | #include <sys/stat.h> | ||
30967 | #ifdef HAVE_SYS_TIME_H | ||
30968 | # include <sys/time.h> | ||
30969 | #endif | ||
30970 | #ifdef HAVE_SYS_MOUNT_H | ||
30971 | #include <sys/mount.h> | ||
30972 | #endif | ||
30973 | #ifdef HAVE_SYS_STATVFS_H | ||
30974 | #include <sys/statvfs.h> | ||
30975 | #endif | ||
30976 | |||
30977 | int | ||
30978 | main () | ||
30979 | { | ||
30980 | struct statvfs s; s.f_fsid = 0; | ||
30981 | ; | ||
30982 | return 0; | ||
30983 | } | ||
30984 | _ACEOF | ||
30985 | rm -f conftest.$ac_objext | ||
30986 | if { (ac_try="$ac_compile" | ||
30987 | case "(($ac_try" in | ||
30988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30989 | *) ac_try_echo=$ac_try;; | ||
30990 | esac | ||
30991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30992 | (eval "$ac_compile") 2>conftest.er1 | ||
30993 | ac_status=$? | ||
30994 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30995 | rm -f conftest.er1 | ||
30996 | cat conftest.err >&5 | ||
30997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30998 | (exit $ac_status); } && { | ||
30999 | test -z "$ac_c_werror_flag" || | ||
31000 | test ! -s conftest.err | ||
31001 | } && test -s conftest.$ac_objext; then | ||
31002 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
31003 | echo "${ECHO_T}yes" >&6; } | ||
31004 | else | ||
31005 | echo "$as_me: failed program was:" >&5 | ||
31006 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31007 | |||
31008 | { echo "$as_me:$LINENO: result: no" >&5 | ||
31009 | echo "${ECHO_T}no" >&6; } | ||
31010 | |||
31011 | { echo "$as_me:$LINENO: checking if fsid_t has member val" >&5 | ||
31012 | echo $ECHO_N "checking if fsid_t has member val... $ECHO_C" >&6; } | ||
31013 | cat >conftest.$ac_ext <<_ACEOF | ||
31014 | /* confdefs.h. */ | ||
31015 | _ACEOF | ||
31016 | cat confdefs.h >>conftest.$ac_ext | ||
31017 | cat >>conftest.$ac_ext <<_ACEOF | ||
31018 | /* end confdefs.h. */ | ||
31019 | |||
31020 | #include <sys/types.h> | ||
31021 | #include <sys/statvfs.h> | ||
31022 | |||
31023 | int | ||
31024 | main () | ||
31025 | { | ||
31026 | fsid_t t; t.val[0] = 0; | ||
31027 | ; | ||
31028 | return 0; | ||
31029 | } | ||
31030 | _ACEOF | ||
31031 | rm -f conftest.$ac_objext | ||
31032 | if { (ac_try="$ac_compile" | ||
31033 | case "(($ac_try" in | ||
31034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31035 | *) ac_try_echo=$ac_try;; | ||
31036 | esac | ||
31037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31038 | (eval "$ac_compile") 2>conftest.er1 | ||
31039 | ac_status=$? | ||
31040 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31041 | rm -f conftest.er1 | ||
31042 | cat conftest.err >&5 | ||
31043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31044 | (exit $ac_status); } && { | ||
31045 | test -z "$ac_c_werror_flag" || | ||
31046 | test ! -s conftest.err | ||
31047 | } && test -s conftest.$ac_objext; then | ||
31048 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
31049 | echo "${ECHO_T}yes" >&6; } | ||
31050 | |||
31051 | cat >>confdefs.h <<\_ACEOF | ||
31052 | #define FSID_HAS_VAL 1 | ||
31053 | _ACEOF | ||
31054 | |||
31055 | else | ||
31056 | echo "$as_me: failed program was:" >&5 | ||
31057 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31058 | |||
31059 | { echo "$as_me:$LINENO: result: no" >&5 | ||
31060 | echo "${ECHO_T}no" >&6; } | ||
31061 | fi | ||
31062 | |||
31063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
31064 | |||
31065 | { echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5 | ||
31066 | echo $ECHO_N "checking if f_fsid has member __val... $ECHO_C" >&6; } | ||
31067 | cat >conftest.$ac_ext <<_ACEOF | ||
31068 | /* confdefs.h. */ | ||
31069 | _ACEOF | ||
31070 | cat confdefs.h >>conftest.$ac_ext | ||
31071 | cat >>conftest.$ac_ext <<_ACEOF | ||
31072 | /* end confdefs.h. */ | ||
31073 | |||
31074 | #include <sys/types.h> | ||
31075 | #include <sys/statvfs.h> | ||
31076 | |||
31077 | int | ||
31078 | main () | ||
31079 | { | ||
31080 | fsid_t t; t.__val[0] = 0; | ||
31081 | ; | ||
31082 | return 0; | ||
31083 | } | ||
31084 | _ACEOF | ||
31085 | rm -f conftest.$ac_objext | ||
31086 | if { (ac_try="$ac_compile" | ||
31087 | case "(($ac_try" in | ||
31088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31089 | *) ac_try_echo=$ac_try;; | ||
31090 | esac | ||
31091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31092 | (eval "$ac_compile") 2>conftest.er1 | ||
31093 | ac_status=$? | ||
31094 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31095 | rm -f conftest.er1 | ||
31096 | cat conftest.err >&5 | ||
31097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31098 | (exit $ac_status); } && { | ||
31099 | test -z "$ac_c_werror_flag" || | ||
31100 | test ! -s conftest.err | ||
31101 | } && test -s conftest.$ac_objext; then | ||
31102 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
31103 | echo "${ECHO_T}yes" >&6; } | ||
31104 | |||
31105 | cat >>confdefs.h <<\_ACEOF | ||
31106 | #define FSID_HAS___VAL 1 | ||
31107 | _ACEOF | ||
31108 | |||
31109 | else | ||
31110 | echo "$as_me: failed program was:" >&5 | ||
31111 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31112 | |||
31113 | { echo "$as_me:$LINENO: result: no" >&5 | ||
31114 | echo "${ECHO_T}no" >&6; } | ||
31115 | fi | ||
31116 | |||
31117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
31118 | |||
31119 | fi | ||
31120 | |||
31121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
31122 | |||
31123 | { echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | ||
31124 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; } | ||
31125 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
31126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31127 | else | ||
31128 | |||
31129 | cat >conftest.$ac_ext <<_ACEOF | ||
31130 | /* confdefs.h. */ | ||
31131 | _ACEOF | ||
31132 | cat confdefs.h >>conftest.$ac_ext | ||
31133 | cat >>conftest.$ac_ext <<_ACEOF | ||
31134 | /* end confdefs.h. */ | ||
31135 | |||
31136 | #include <sys/types.h> | ||
31137 | #include <sys/socket.h> | ||
31138 | #include <sys/uio.h> | ||
31139 | |||
31140 | int | ||
31141 | main () | ||
31142 | { | ||
31143 | |||
31144 | #ifdef msg_control | ||
31145 | #error "msg_control is a macro" | ||
31146 | exit(1); | ||
31147 | #endif | ||
31148 | struct msghdr m; | ||
31149 | m.msg_control = 0; | ||
31150 | exit(0); | ||
31151 | |||
31152 | ; | ||
31153 | return 0; | ||
31154 | } | ||
31155 | _ACEOF | ||
31156 | rm -f conftest.$ac_objext | ||
31157 | if { (ac_try="$ac_compile" | ||
31158 | case "(($ac_try" in | ||
31159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31160 | *) ac_try_echo=$ac_try;; | ||
31161 | esac | ||
31162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31163 | (eval "$ac_compile") 2>conftest.er1 | ||
31164 | ac_status=$? | ||
31165 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31166 | rm -f conftest.er1 | ||
31167 | cat conftest.err >&5 | ||
31168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31169 | (exit $ac_status); } && { | ||
31170 | test -z "$ac_c_werror_flag" || | ||
31171 | test ! -s conftest.err | ||
31172 | } && test -s conftest.$ac_objext; then | ||
31173 | ac_cv_have_control_in_msghdr="yes" | ||
31174 | else | ||
31175 | echo "$as_me: failed program was:" >&5 | ||
31176 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31177 | |||
31178 | ac_cv_have_control_in_msghdr="no" | ||
31179 | |||
31180 | fi | ||
31181 | |||
31182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
31183 | |||
31184 | fi | ||
31185 | { echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | ||
31186 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; } | ||
31187 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
31188 | |||
31189 | cat >>confdefs.h <<\_ACEOF | ||
31190 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
31191 | _ACEOF | ||
31192 | |||
31193 | fi | ||
31194 | |||
31195 | { echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | ||
31196 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; } | ||
31197 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
31198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31199 | else | ||
31200 | |||
31201 | cat >conftest.$ac_ext <<_ACEOF | ||
31202 | /* confdefs.h. */ | ||
31203 | _ACEOF | ||
31204 | cat confdefs.h >>conftest.$ac_ext | ||
31205 | cat >>conftest.$ac_ext <<_ACEOF | ||
31206 | /* end confdefs.h. */ | ||
31207 | |||
31208 | int | ||
31209 | main () | ||
31210 | { | ||
31211 | extern char *__progname; printf("%s", __progname); | ||
31212 | ; | ||
31213 | return 0; | ||
31214 | } | ||
31215 | _ACEOF | ||
31216 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31217 | if { (ac_try="$ac_link" | ||
31218 | case "(($ac_try" in | ||
31219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31220 | *) ac_try_echo=$ac_try;; | ||
31221 | esac | ||
31222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31223 | (eval "$ac_link") 2>conftest.er1 | ||
31224 | ac_status=$? | ||
31225 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31226 | rm -f conftest.er1 | ||
31227 | cat conftest.err >&5 | ||
31228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31229 | (exit $ac_status); } && { | ||
31230 | test -z "$ac_c_werror_flag" || | ||
31231 | test ! -s conftest.err | ||
31232 | } && test -s conftest$ac_exeext && | ||
31233 | $as_test_x conftest$ac_exeext; then | ||
31234 | ac_cv_libc_defines___progname="yes" | ||
31235 | else | ||
31236 | echo "$as_me: failed program was:" >&5 | ||
31237 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31238 | |||
31239 | ac_cv_libc_defines___progname="no" | ||
31240 | |||
31241 | fi | ||
31242 | |||
31243 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31244 | conftest$ac_exeext conftest.$ac_ext | ||
31245 | |||
31246 | fi | ||
31247 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | ||
31248 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; } | ||
31249 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
31250 | |||
31251 | cat >>confdefs.h <<\_ACEOF | ||
31252 | #define HAVE___PROGNAME 1 | ||
31253 | _ACEOF | ||
31254 | |||
31255 | fi | ||
31256 | |||
31257 | { echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | ||
31258 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; } | ||
31259 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
31260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31261 | else | ||
31262 | |||
31263 | cat >conftest.$ac_ext <<_ACEOF | ||
31264 | /* confdefs.h. */ | ||
31265 | _ACEOF | ||
31266 | cat confdefs.h >>conftest.$ac_ext | ||
31267 | cat >>conftest.$ac_ext <<_ACEOF | ||
31268 | /* end confdefs.h. */ | ||
31269 | #include <stdio.h> | ||
31270 | int | ||
31271 | main () | ||
31272 | { | ||
31273 | printf("%s", __FUNCTION__); | ||
31274 | ; | ||
31275 | return 0; | ||
31276 | } | ||
31277 | _ACEOF | ||
31278 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31279 | if { (ac_try="$ac_link" | ||
31280 | case "(($ac_try" in | ||
31281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31282 | *) ac_try_echo=$ac_try;; | ||
31283 | esac | ||
31284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31285 | (eval "$ac_link") 2>conftest.er1 | ||
31286 | ac_status=$? | ||
31287 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31288 | rm -f conftest.er1 | ||
31289 | cat conftest.err >&5 | ||
31290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31291 | (exit $ac_status); } && { | ||
31292 | test -z "$ac_c_werror_flag" || | ||
31293 | test ! -s conftest.err | ||
31294 | } && test -s conftest$ac_exeext && | ||
31295 | $as_test_x conftest$ac_exeext; then | ||
31296 | ac_cv_cc_implements___FUNCTION__="yes" | ||
31297 | else | ||
31298 | echo "$as_me: failed program was:" >&5 | ||
31299 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31300 | |||
31301 | ac_cv_cc_implements___FUNCTION__="no" | ||
31302 | |||
31303 | fi | ||
31304 | |||
31305 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31306 | conftest$ac_exeext conftest.$ac_ext | ||
31307 | |||
31308 | fi | ||
31309 | { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
31310 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; } | ||
31311 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
31312 | |||
31313 | cat >>confdefs.h <<\_ACEOF | ||
31314 | #define HAVE___FUNCTION__ 1 | ||
31315 | _ACEOF | ||
31316 | |||
31317 | fi | ||
31318 | |||
31319 | { echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | ||
31320 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; } | ||
31321 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
31322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31323 | else | ||
31324 | |||
31325 | cat >conftest.$ac_ext <<_ACEOF | ||
31326 | /* confdefs.h. */ | ||
31327 | _ACEOF | ||
31328 | cat confdefs.h >>conftest.$ac_ext | ||
31329 | cat >>conftest.$ac_ext <<_ACEOF | ||
31330 | /* end confdefs.h. */ | ||
31331 | #include <stdio.h> | ||
31332 | int | ||
31333 | main () | ||
31334 | { | ||
31335 | printf("%s", __func__); | ||
31336 | ; | ||
31337 | return 0; | ||
31338 | } | ||
31339 | _ACEOF | ||
31340 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31341 | if { (ac_try="$ac_link" | ||
31342 | case "(($ac_try" in | ||
31343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31344 | *) ac_try_echo=$ac_try;; | ||
31345 | esac | ||
31346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31347 | (eval "$ac_link") 2>conftest.er1 | ||
31348 | ac_status=$? | ||
31349 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31350 | rm -f conftest.er1 | ||
31351 | cat conftest.err >&5 | ||
31352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31353 | (exit $ac_status); } && { | ||
31354 | test -z "$ac_c_werror_flag" || | ||
31355 | test ! -s conftest.err | ||
31356 | } && test -s conftest$ac_exeext && | ||
31357 | $as_test_x conftest$ac_exeext; then | ||
31358 | ac_cv_cc_implements___func__="yes" | ||
31359 | else | ||
31360 | echo "$as_me: failed program was:" >&5 | ||
31361 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31362 | |||
31363 | ac_cv_cc_implements___func__="no" | ||
31364 | |||
31365 | fi | ||
31366 | |||
31367 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31368 | conftest$ac_exeext conftest.$ac_ext | ||
31369 | |||
31370 | fi | ||
31371 | { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | ||
31372 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; } | ||
31373 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
31374 | |||
31375 | cat >>confdefs.h <<\_ACEOF | ||
31376 | #define HAVE___func__ 1 | ||
31377 | _ACEOF | ||
31378 | |||
31379 | fi | ||
31380 | |||
31381 | { echo "$as_me:$LINENO: checking whether va_copy exists" >&5 | ||
31382 | echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; } | ||
31383 | if test "${ac_cv_have_va_copy+set}" = set; then | ||
31384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31385 | else | ||
31386 | |||
31387 | cat >conftest.$ac_ext <<_ACEOF | ||
31388 | /* confdefs.h. */ | ||
31389 | _ACEOF | ||
31390 | cat confdefs.h >>conftest.$ac_ext | ||
31391 | cat >>conftest.$ac_ext <<_ACEOF | ||
31392 | /* end confdefs.h. */ | ||
31393 | |||
31394 | #include <stdarg.h> | ||
31395 | va_list x,y; | ||
31396 | |||
31397 | int | ||
31398 | main () | ||
31399 | { | ||
31400 | va_copy(x,y); | ||
31401 | ; | ||
31402 | return 0; | ||
31403 | } | ||
31404 | _ACEOF | ||
31405 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31406 | if { (ac_try="$ac_link" | ||
31407 | case "(($ac_try" in | ||
31408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31409 | *) ac_try_echo=$ac_try;; | ||
31410 | esac | ||
31411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31412 | (eval "$ac_link") 2>conftest.er1 | ||
31413 | ac_status=$? | ||
31414 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31415 | rm -f conftest.er1 | ||
31416 | cat conftest.err >&5 | ||
31417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31418 | (exit $ac_status); } && { | ||
31419 | test -z "$ac_c_werror_flag" || | ||
31420 | test ! -s conftest.err | ||
31421 | } && test -s conftest$ac_exeext && | ||
31422 | $as_test_x conftest$ac_exeext; then | ||
31423 | ac_cv_have_va_copy="yes" | ||
31424 | else | ||
31425 | echo "$as_me: failed program was:" >&5 | ||
31426 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31427 | |||
31428 | ac_cv_have_va_copy="no" | ||
31429 | |||
31430 | fi | ||
31431 | |||
31432 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31433 | conftest$ac_exeext conftest.$ac_ext | ||
31434 | |||
31435 | fi | ||
31436 | { echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5 | ||
31437 | echo "${ECHO_T}$ac_cv_have_va_copy" >&6; } | ||
31438 | if test "x$ac_cv_have_va_copy" = "xyes" ; then | ||
31439 | |||
31440 | cat >>confdefs.h <<\_ACEOF | ||
31441 | #define HAVE_VA_COPY 1 | ||
31442 | _ACEOF | ||
31443 | |||
31444 | fi | ||
31445 | |||
31446 | { echo "$as_me:$LINENO: checking whether __va_copy exists" >&5 | ||
31447 | echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; } | ||
31448 | if test "${ac_cv_have___va_copy+set}" = set; then | ||
31449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31450 | else | ||
31451 | |||
31452 | cat >conftest.$ac_ext <<_ACEOF | ||
31453 | /* confdefs.h. */ | ||
31454 | _ACEOF | ||
31455 | cat confdefs.h >>conftest.$ac_ext | ||
31456 | cat >>conftest.$ac_ext <<_ACEOF | ||
31457 | /* end confdefs.h. */ | ||
31458 | |||
31459 | #include <stdarg.h> | ||
31460 | va_list x,y; | ||
31461 | |||
31462 | int | ||
31463 | main () | ||
31464 | { | ||
31465 | __va_copy(x,y); | ||
31466 | ; | ||
31467 | return 0; | ||
31468 | } | ||
31469 | _ACEOF | ||
31470 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31471 | if { (ac_try="$ac_link" | ||
31472 | case "(($ac_try" in | ||
31473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31474 | *) ac_try_echo=$ac_try;; | ||
31475 | esac | ||
31476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31477 | (eval "$ac_link") 2>conftest.er1 | ||
31478 | ac_status=$? | ||
31479 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31480 | rm -f conftest.er1 | ||
31481 | cat conftest.err >&5 | ||
31482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31483 | (exit $ac_status); } && { | ||
31484 | test -z "$ac_c_werror_flag" || | ||
31485 | test ! -s conftest.err | ||
31486 | } && test -s conftest$ac_exeext && | ||
31487 | $as_test_x conftest$ac_exeext; then | ||
31488 | ac_cv_have___va_copy="yes" | ||
31489 | else | ||
31490 | echo "$as_me: failed program was:" >&5 | ||
31491 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31492 | |||
31493 | ac_cv_have___va_copy="no" | ||
31494 | |||
31495 | fi | ||
31496 | |||
31497 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31498 | conftest$ac_exeext conftest.$ac_ext | ||
31499 | |||
31500 | fi | ||
31501 | { echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5 | ||
31502 | echo "${ECHO_T}$ac_cv_have___va_copy" >&6; } | ||
31503 | if test "x$ac_cv_have___va_copy" = "xyes" ; then | ||
31504 | |||
31505 | cat >>confdefs.h <<\_ACEOF | ||
31506 | #define HAVE___VA_COPY 1 | ||
31507 | _ACEOF | ||
31508 | |||
31509 | fi | ||
31510 | |||
31511 | { echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | ||
31512 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; } | ||
31513 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
31514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31515 | else | ||
31516 | |||
31517 | cat >conftest.$ac_ext <<_ACEOF | ||
31518 | /* confdefs.h. */ | ||
31519 | _ACEOF | ||
31520 | cat confdefs.h >>conftest.$ac_ext | ||
31521 | cat >>conftest.$ac_ext <<_ACEOF | ||
31522 | /* end confdefs.h. */ | ||
31523 | #include <getopt.h> | ||
31524 | int | ||
31525 | main () | ||
31526 | { | ||
31527 | extern int optreset; optreset = 0; | ||
31528 | ; | ||
31529 | return 0; | ||
31530 | } | ||
31531 | _ACEOF | ||
31532 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31533 | if { (ac_try="$ac_link" | ||
31534 | case "(($ac_try" in | ||
31535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31536 | *) ac_try_echo=$ac_try;; | ||
31537 | esac | ||
31538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31539 | (eval "$ac_link") 2>conftest.er1 | ||
31540 | ac_status=$? | ||
31541 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31542 | rm -f conftest.er1 | ||
31543 | cat conftest.err >&5 | ||
31544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31545 | (exit $ac_status); } && { | ||
31546 | test -z "$ac_c_werror_flag" || | ||
31547 | test ! -s conftest.err | ||
31548 | } && test -s conftest$ac_exeext && | ||
31549 | $as_test_x conftest$ac_exeext; then | ||
31550 | ac_cv_have_getopt_optreset="yes" | ||
31551 | else | ||
31552 | echo "$as_me: failed program was:" >&5 | ||
31553 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31554 | |||
31555 | ac_cv_have_getopt_optreset="no" | ||
31556 | |||
31557 | fi | ||
31558 | |||
31559 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31560 | conftest$ac_exeext conftest.$ac_ext | ||
31561 | |||
31562 | fi | ||
31563 | { echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | ||
31564 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; } | ||
31565 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
31566 | |||
31567 | cat >>confdefs.h <<\_ACEOF | ||
31568 | #define HAVE_GETOPT_OPTRESET 1 | ||
31569 | _ACEOF | ||
31570 | |||
31571 | fi | ||
31572 | |||
31573 | { echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | ||
31574 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; } | ||
31575 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
31576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31577 | else | ||
31578 | |||
31579 | cat >conftest.$ac_ext <<_ACEOF | ||
31580 | /* confdefs.h. */ | ||
31581 | _ACEOF | ||
31582 | cat confdefs.h >>conftest.$ac_ext | ||
31583 | cat >>conftest.$ac_ext <<_ACEOF | ||
31584 | /* end confdefs.h. */ | ||
31585 | |||
31586 | int | ||
31587 | main () | ||
31588 | { | ||
31589 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
31590 | ; | ||
31591 | return 0; | ||
31592 | } | ||
31593 | _ACEOF | ||
31594 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31595 | if { (ac_try="$ac_link" | ||
31596 | case "(($ac_try" in | ||
31597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31598 | *) ac_try_echo=$ac_try;; | ||
31599 | esac | ||
31600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31601 | (eval "$ac_link") 2>conftest.er1 | ||
31602 | ac_status=$? | ||
31603 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31604 | rm -f conftest.er1 | ||
31605 | cat conftest.err >&5 | ||
31606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31607 | (exit $ac_status); } && { | ||
31608 | test -z "$ac_c_werror_flag" || | ||
31609 | test ! -s conftest.err | ||
31610 | } && test -s conftest$ac_exeext && | ||
31611 | $as_test_x conftest$ac_exeext; then | ||
31612 | ac_cv_libc_defines_sys_errlist="yes" | ||
31613 | else | ||
31614 | echo "$as_me: failed program was:" >&5 | ||
31615 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31616 | |||
31617 | ac_cv_libc_defines_sys_errlist="no" | ||
31618 | |||
31619 | fi | ||
31620 | |||
31621 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31622 | conftest$ac_exeext conftest.$ac_ext | ||
31623 | |||
31624 | fi | ||
31625 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
31626 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; } | ||
31627 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
31628 | |||
31629 | cat >>confdefs.h <<\_ACEOF | ||
31630 | #define HAVE_SYS_ERRLIST 1 | ||
31631 | _ACEOF | ||
31632 | |||
31633 | fi | ||
31634 | |||
31635 | |||
31636 | { echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | ||
31637 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; } | ||
31638 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
31639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31640 | else | ||
31641 | |||
31642 | cat >conftest.$ac_ext <<_ACEOF | ||
31643 | /* confdefs.h. */ | ||
31644 | _ACEOF | ||
31645 | cat confdefs.h >>conftest.$ac_ext | ||
31646 | cat >>conftest.$ac_ext <<_ACEOF | ||
31647 | /* end confdefs.h. */ | ||
31648 | |||
31649 | int | ||
31650 | main () | ||
31651 | { | ||
31652 | extern int sys_nerr; printf("%i", sys_nerr); | ||
31653 | ; | ||
31654 | return 0; | ||
31655 | } | ||
31656 | _ACEOF | ||
31657 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31658 | if { (ac_try="$ac_link" | ||
31659 | case "(($ac_try" in | ||
31660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31661 | *) ac_try_echo=$ac_try;; | ||
31662 | esac | ||
31663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31664 | (eval "$ac_link") 2>conftest.er1 | ||
31665 | ac_status=$? | ||
31666 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31667 | rm -f conftest.er1 | ||
31668 | cat conftest.err >&5 | ||
31669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31670 | (exit $ac_status); } && { | ||
31671 | test -z "$ac_c_werror_flag" || | ||
31672 | test ! -s conftest.err | ||
31673 | } && test -s conftest$ac_exeext && | ||
31674 | $as_test_x conftest$ac_exeext; then | ||
31675 | ac_cv_libc_defines_sys_nerr="yes" | ||
31676 | else | ||
31677 | echo "$as_me: failed program was:" >&5 | ||
31678 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31679 | |||
31680 | ac_cv_libc_defines_sys_nerr="no" | ||
31681 | |||
31682 | fi | ||
31683 | |||
31684 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31685 | conftest$ac_exeext conftest.$ac_ext | ||
31686 | |||
31687 | fi | ||
31688 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
31689 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; } | ||
31690 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
31691 | |||
31692 | cat >>confdefs.h <<\_ACEOF | ||
31693 | #define HAVE_SYS_NERR 1 | ||
31694 | _ACEOF | ||
31695 | |||
31696 | fi | ||
31697 | |||
31698 | # Check libraries needed by DNS fingerprint support | ||
31699 | { echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5 | ||
31700 | echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; } | ||
31701 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
31702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31703 | else | ||
31704 | ac_func_search_save_LIBS=$LIBS | ||
31705 | cat >conftest.$ac_ext <<_ACEOF | ||
31706 | /* confdefs.h. */ | ||
31707 | _ACEOF | ||
31708 | cat confdefs.h >>conftest.$ac_ext | ||
31709 | cat >>conftest.$ac_ext <<_ACEOF | ||
31710 | /* end confdefs.h. */ | ||
31711 | |||
31712 | /* Override any GCC internal prototype to avoid an error. | ||
31713 | Use char because int might match the return type of a GCC | ||
31714 | builtin and then its argument prototype would still apply. */ | ||
31715 | #ifdef __cplusplus | ||
31716 | extern "C" | ||
31717 | #endif | ||
31718 | char getrrsetbyname (); | ||
31719 | int | ||
31720 | main () | ||
31721 | { | ||
31722 | return getrrsetbyname (); | ||
31723 | ; | ||
31724 | return 0; | ||
31725 | } | ||
31726 | _ACEOF | ||
31727 | for ac_lib in '' resolv; do | ||
31728 | if test -z "$ac_lib"; then | ||
31729 | ac_res="none required" | ||
31730 | else | ||
31731 | ac_res=-l$ac_lib | ||
31732 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
31733 | fi | ||
31734 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31735 | if { (ac_try="$ac_link" | ||
31736 | case "(($ac_try" in | ||
31737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31738 | *) ac_try_echo=$ac_try;; | ||
31739 | esac | ||
31740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31741 | (eval "$ac_link") 2>conftest.er1 | ||
31742 | ac_status=$? | ||
31743 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31744 | rm -f conftest.er1 | ||
31745 | cat conftest.err >&5 | ||
31746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31747 | (exit $ac_status); } && { | ||
31748 | test -z "$ac_c_werror_flag" || | ||
31749 | test ! -s conftest.err | ||
31750 | } && test -s conftest$ac_exeext && | ||
31751 | $as_test_x conftest$ac_exeext; then | ||
31752 | ac_cv_search_getrrsetbyname=$ac_res | ||
31753 | else | ||
31754 | echo "$as_me: failed program was:" >&5 | ||
31755 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31756 | |||
31757 | |||
31758 | fi | ||
31759 | |||
31760 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31761 | conftest$ac_exeext | ||
31762 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
31763 | break | ||
31764 | fi | ||
31765 | done | ||
31766 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
31767 | : | ||
31768 | else | ||
31769 | ac_cv_search_getrrsetbyname=no | ||
31770 | fi | ||
31771 | rm conftest.$ac_ext | ||
31772 | LIBS=$ac_func_search_save_LIBS | ||
31773 | fi | ||
31774 | { echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5 | ||
31775 | echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; } | ||
31776 | ac_res=$ac_cv_search_getrrsetbyname | ||
31777 | if test "$ac_res" != no; then | ||
31778 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
31779 | |||
31780 | cat >>confdefs.h <<\_ACEOF | ||
31781 | #define HAVE_GETRRSETBYNAME 1 | ||
31782 | _ACEOF | ||
31783 | |||
31784 | else | ||
31785 | |||
31786 | # Needed by our getrrsetbyname() | ||
31787 | { echo "$as_me:$LINENO: checking for library containing res_query" >&5 | ||
31788 | echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; } | ||
31789 | if test "${ac_cv_search_res_query+set}" = set; then | ||
31790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31791 | else | ||
31792 | ac_func_search_save_LIBS=$LIBS | ||
31793 | cat >conftest.$ac_ext <<_ACEOF | ||
31794 | /* confdefs.h. */ | ||
31795 | _ACEOF | ||
31796 | cat confdefs.h >>conftest.$ac_ext | ||
31797 | cat >>conftest.$ac_ext <<_ACEOF | ||
31798 | /* end confdefs.h. */ | ||
31799 | |||
31800 | /* Override any GCC internal prototype to avoid an error. | ||
31801 | Use char because int might match the return type of a GCC | ||
31802 | builtin and then its argument prototype would still apply. */ | ||
31803 | #ifdef __cplusplus | ||
31804 | extern "C" | ||
31805 | #endif | ||
31806 | char res_query (); | ||
31807 | int | ||
31808 | main () | ||
31809 | { | ||
31810 | return res_query (); | ||
31811 | ; | ||
31812 | return 0; | ||
31813 | } | ||
31814 | _ACEOF | ||
31815 | for ac_lib in '' resolv; do | ||
31816 | if test -z "$ac_lib"; then | ||
31817 | ac_res="none required" | ||
31818 | else | ||
31819 | ac_res=-l$ac_lib | ||
31820 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
31821 | fi | ||
31822 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31823 | if { (ac_try="$ac_link" | ||
31824 | case "(($ac_try" in | ||
31825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31826 | *) ac_try_echo=$ac_try;; | ||
31827 | esac | ||
31828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31829 | (eval "$ac_link") 2>conftest.er1 | ||
31830 | ac_status=$? | ||
31831 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31832 | rm -f conftest.er1 | ||
31833 | cat conftest.err >&5 | ||
31834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31835 | (exit $ac_status); } && { | ||
31836 | test -z "$ac_c_werror_flag" || | ||
31837 | test ! -s conftest.err | ||
31838 | } && test -s conftest$ac_exeext && | ||
31839 | $as_test_x conftest$ac_exeext; then | ||
31840 | ac_cv_search_res_query=$ac_res | ||
31841 | else | ||
31842 | echo "$as_me: failed program was:" >&5 | ||
31843 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31844 | |||
31845 | |||
31846 | fi | ||
31847 | |||
31848 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31849 | conftest$ac_exeext | ||
31850 | if test "${ac_cv_search_res_query+set}" = set; then | ||
31851 | break | ||
31852 | fi | ||
31853 | done | ||
31854 | if test "${ac_cv_search_res_query+set}" = set; then | ||
31855 | : | ||
31856 | else | ||
31857 | ac_cv_search_res_query=no | ||
31858 | fi | ||
31859 | rm conftest.$ac_ext | ||
31860 | LIBS=$ac_func_search_save_LIBS | ||
31861 | fi | ||
31862 | { echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5 | ||
31863 | echo "${ECHO_T}$ac_cv_search_res_query" >&6; } | ||
31864 | ac_res=$ac_cv_search_res_query | ||
31865 | if test "$ac_res" != no; then | ||
31866 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
31867 | |||
31868 | fi | ||
31869 | |||
31870 | { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
31871 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } | ||
31872 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
31873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31874 | else | ||
31875 | ac_func_search_save_LIBS=$LIBS | ||
31876 | cat >conftest.$ac_ext <<_ACEOF | ||
31877 | /* confdefs.h. */ | ||
31878 | _ACEOF | ||
31879 | cat confdefs.h >>conftest.$ac_ext | ||
31880 | cat >>conftest.$ac_ext <<_ACEOF | ||
31881 | /* end confdefs.h. */ | ||
31882 | |||
31883 | /* Override any GCC internal prototype to avoid an error. | ||
31884 | Use char because int might match the return type of a GCC | ||
31885 | builtin and then its argument prototype would still apply. */ | ||
31886 | #ifdef __cplusplus | ||
31887 | extern "C" | ||
31888 | #endif | ||
31889 | char dn_expand (); | ||
31890 | int | ||
31891 | main () | ||
31892 | { | ||
31893 | return dn_expand (); | ||
31894 | ; | ||
31895 | return 0; | ||
31896 | } | ||
31897 | _ACEOF | ||
31898 | for ac_lib in '' resolv; do | ||
31899 | if test -z "$ac_lib"; then | ||
31900 | ac_res="none required" | ||
31901 | else | ||
31902 | ac_res=-l$ac_lib | ||
31903 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
31904 | fi | ||
31905 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31906 | if { (ac_try="$ac_link" | ||
31907 | case "(($ac_try" in | ||
31908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31909 | *) ac_try_echo=$ac_try;; | ||
31910 | esac | ||
31911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31912 | (eval "$ac_link") 2>conftest.er1 | ||
31913 | ac_status=$? | ||
31914 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31915 | rm -f conftest.er1 | ||
31916 | cat conftest.err >&5 | ||
31917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31918 | (exit $ac_status); } && { | ||
31919 | test -z "$ac_c_werror_flag" || | ||
31920 | test ! -s conftest.err | ||
31921 | } && test -s conftest$ac_exeext && | ||
31922 | $as_test_x conftest$ac_exeext; then | ||
31923 | ac_cv_search_dn_expand=$ac_res | ||
31924 | else | ||
31925 | echo "$as_me: failed program was:" >&5 | ||
31926 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31927 | |||
31928 | |||
31929 | fi | ||
31930 | |||
31931 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31932 | conftest$ac_exeext | ||
31933 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
31934 | break | ||
31935 | fi | ||
31936 | done | ||
31937 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
31938 | : | ||
31939 | else | ||
31940 | ac_cv_search_dn_expand=no | ||
31941 | fi | ||
31942 | rm conftest.$ac_ext | ||
31943 | LIBS=$ac_func_search_save_LIBS | ||
31944 | fi | ||
31945 | { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
31946 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } | ||
31947 | ac_res=$ac_cv_search_dn_expand | ||
31948 | if test "$ac_res" != no; then | ||
31949 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
31950 | |||
31951 | fi | ||
31952 | |||
31953 | { echo "$as_me:$LINENO: checking if res_query will link" >&5 | ||
31954 | echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; } | ||
31955 | cat >conftest.$ac_ext <<_ACEOF | ||
31956 | /* confdefs.h. */ | ||
31957 | _ACEOF | ||
31958 | cat confdefs.h >>conftest.$ac_ext | ||
31959 | cat >>conftest.$ac_ext <<_ACEOF | ||
31960 | /* end confdefs.h. */ | ||
31961 | |||
31962 | #include <sys/types.h> | ||
31963 | #include <netinet/in.h> | ||
31964 | #include <arpa/nameser.h> | ||
31965 | #include <netdb.h> | ||
31966 | #include <resolv.h> | ||
31967 | |||
31968 | int | ||
31969 | main () | ||
31970 | { | ||
31971 | |||
31972 | res_query (0, 0, 0, 0, 0); | ||
31973 | |||
31974 | ; | ||
31975 | return 0; | ||
31976 | } | ||
31977 | _ACEOF | ||
31978 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31979 | if { (ac_try="$ac_link" | ||
31980 | case "(($ac_try" in | ||
31981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31982 | *) ac_try_echo=$ac_try;; | ||
31983 | esac | ||
31984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31985 | (eval "$ac_link") 2>conftest.er1 | ||
31986 | ac_status=$? | ||
31987 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31988 | rm -f conftest.er1 | ||
31989 | cat conftest.err >&5 | ||
31990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31991 | (exit $ac_status); } && { | ||
31992 | test -z "$ac_c_werror_flag" || | ||
31993 | test ! -s conftest.err | ||
31994 | } && test -s conftest$ac_exeext && | ||
31995 | $as_test_x conftest$ac_exeext; then | ||
31996 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
31997 | echo "${ECHO_T}yes" >&6; } | ||
31998 | else | ||
31999 | echo "$as_me: failed program was:" >&5 | ||
32000 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32001 | |||
32002 | { echo "$as_me:$LINENO: result: no" >&5 | ||
32003 | echo "${ECHO_T}no" >&6; } | ||
32004 | saved_LIBS="$LIBS" | ||
32005 | LIBS="$LIBS -lresolv" | ||
32006 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
32007 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } | ||
32008 | cat >conftest.$ac_ext <<_ACEOF | ||
32009 | /* confdefs.h. */ | ||
32010 | _ACEOF | ||
32011 | cat confdefs.h >>conftest.$ac_ext | ||
32012 | cat >>conftest.$ac_ext <<_ACEOF | ||
32013 | /* end confdefs.h. */ | ||
32014 | |||
32015 | #include <sys/types.h> | ||
32016 | #include <netinet/in.h> | ||
32017 | #include <arpa/nameser.h> | ||
32018 | #include <netdb.h> | ||
32019 | #include <resolv.h> | ||
32020 | |||
32021 | int | ||
32022 | main () | ||
32023 | { | ||
32024 | |||
32025 | res_query (0, 0, 0, 0, 0); | ||
32026 | |||
32027 | ; | ||
32028 | return 0; | ||
32029 | } | ||
32030 | _ACEOF | ||
32031 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
32032 | if { (ac_try="$ac_link" | ||
32033 | case "(($ac_try" in | ||
32034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32035 | *) ac_try_echo=$ac_try;; | ||
32036 | esac | ||
32037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32038 | (eval "$ac_link") 2>conftest.er1 | ||
32039 | ac_status=$? | ||
32040 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32041 | rm -f conftest.er1 | ||
32042 | cat conftest.err >&5 | ||
32043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32044 | (exit $ac_status); } && { | ||
32045 | test -z "$ac_c_werror_flag" || | ||
32046 | test ! -s conftest.err | ||
32047 | } && test -s conftest$ac_exeext && | ||
32048 | $as_test_x conftest$ac_exeext; then | ||
32049 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
32050 | echo "${ECHO_T}yes" >&6; } | ||
32051 | else | ||
32052 | echo "$as_me: failed program was:" >&5 | ||
32053 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32054 | |||
32055 | LIBS="$saved_LIBS" | ||
32056 | { echo "$as_me:$LINENO: result: no" >&5 | ||
32057 | echo "${ECHO_T}no" >&6; } | ||
32058 | fi | ||
32059 | |||
32060 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
32061 | conftest$ac_exeext conftest.$ac_ext | ||
32062 | |||
32063 | fi | ||
32064 | |||
32065 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
32066 | conftest$ac_exeext conftest.$ac_ext | ||
32067 | |||
32068 | |||
32069 | for ac_func in _getshort _getlong | ||
32070 | do | ||
32071 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
32072 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
32073 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
32074 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
32075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32076 | else | ||
32077 | cat >conftest.$ac_ext <<_ACEOF | ||
32078 | /* confdefs.h. */ | ||
32079 | _ACEOF | ||
32080 | cat confdefs.h >>conftest.$ac_ext | ||
32081 | cat >>conftest.$ac_ext <<_ACEOF | ||
32082 | /* end confdefs.h. */ | ||
32083 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
32084 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
32085 | #define $ac_func innocuous_$ac_func | ||
32086 | |||
32087 | /* System header to define __stub macros and hopefully few prototypes, | ||
32088 | which can conflict with char $ac_func (); below. | ||
32089 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
32090 | <limits.h> exists even on freestanding compilers. */ | ||
32091 | |||
32092 | #ifdef __STDC__ | ||
32093 | # include <limits.h> | ||
32094 | #else | ||
32095 | # include <assert.h> | ||
32096 | #endif | ||
32097 | |||
32098 | #undef $ac_func | ||
32099 | |||
32100 | /* Override any GCC internal prototype to avoid an error. | ||
32101 | Use char because int might match the return type of a GCC | ||
32102 | builtin and then its argument prototype would still apply. */ | ||
32103 | #ifdef __cplusplus | ||
32104 | extern "C" | ||
32105 | #endif | ||
32106 | char $ac_func (); | ||
32107 | /* The GNU C library defines this for functions which it implements | ||
32108 | to always fail with ENOSYS. Some functions are actually named | ||
32109 | something starting with __ and the normal name is an alias. */ | ||
32110 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
32111 | choke me | ||
32112 | #endif | ||
32113 | |||
32114 | int | ||
32115 | main () | ||
32116 | { | ||
32117 | return $ac_func (); | ||
32118 | ; | ||
32119 | return 0; | ||
32120 | } | ||
32121 | _ACEOF | ||
32122 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
32123 | if { (ac_try="$ac_link" | ||
32124 | case "(($ac_try" in | ||
32125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32126 | *) ac_try_echo=$ac_try;; | ||
32127 | esac | ||
32128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32129 | (eval "$ac_link") 2>conftest.er1 | ||
32130 | ac_status=$? | ||
32131 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32132 | rm -f conftest.er1 | ||
32133 | cat conftest.err >&5 | ||
32134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32135 | (exit $ac_status); } && { | ||
32136 | test -z "$ac_c_werror_flag" || | ||
32137 | test ! -s conftest.err | ||
32138 | } && test -s conftest$ac_exeext && | ||
32139 | $as_test_x conftest$ac_exeext; then | ||
32140 | eval "$as_ac_var=yes" | ||
32141 | else | ||
32142 | echo "$as_me: failed program was:" >&5 | ||
32143 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32144 | |||
32145 | eval "$as_ac_var=no" | ||
32146 | fi | ||
32147 | |||
32148 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
32149 | conftest$ac_exeext conftest.$ac_ext | ||
32150 | fi | ||
32151 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
32152 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
32153 | echo "${ECHO_T}$ac_res" >&6; } | ||
32154 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
32155 | cat >>confdefs.h <<_ACEOF | ||
32156 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
32157 | _ACEOF | ||
32158 | |||
32159 | fi | ||
32160 | done | ||
32161 | |||
32162 | { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5 | ||
32163 | echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; } | ||
32164 | if test "${ac_cv_have_decl__getshort+set}" = set; then | ||
32165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32166 | else | ||
32167 | cat >conftest.$ac_ext <<_ACEOF | ||
32168 | /* confdefs.h. */ | ||
32169 | _ACEOF | ||
32170 | cat confdefs.h >>conftest.$ac_ext | ||
32171 | cat >>conftest.$ac_ext <<_ACEOF | ||
32172 | /* end confdefs.h. */ | ||
32173 | #include <sys/types.h> | ||
32174 | #include <arpa/nameser.h> | ||
32175 | |||
32176 | int | ||
32177 | main () | ||
32178 | { | ||
32179 | #ifndef _getshort | ||
32180 | (void) _getshort; | ||
32181 | #endif | ||
32182 | |||
32183 | ; | ||
32184 | return 0; | ||
32185 | } | ||
32186 | _ACEOF | ||
32187 | rm -f conftest.$ac_objext | ||
32188 | if { (ac_try="$ac_compile" | ||
32189 | case "(($ac_try" in | ||
32190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32191 | *) ac_try_echo=$ac_try;; | ||
32192 | esac | ||
32193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32194 | (eval "$ac_compile") 2>conftest.er1 | ||
32195 | ac_status=$? | ||
32196 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32197 | rm -f conftest.er1 | ||
32198 | cat conftest.err >&5 | ||
32199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32200 | (exit $ac_status); } && { | ||
32201 | test -z "$ac_c_werror_flag" || | ||
32202 | test ! -s conftest.err | ||
32203 | } && test -s conftest.$ac_objext; then | ||
32204 | ac_cv_have_decl__getshort=yes | ||
32205 | else | ||
32206 | echo "$as_me: failed program was:" >&5 | ||
32207 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32208 | |||
32209 | ac_cv_have_decl__getshort=no | ||
32210 | fi | ||
32211 | |||
32212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
32213 | fi | ||
32214 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5 | ||
32215 | echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; } | ||
32216 | if test $ac_cv_have_decl__getshort = yes; then | ||
32217 | |||
32218 | cat >>confdefs.h <<_ACEOF | ||
32219 | #define HAVE_DECL__GETSHORT 1 | ||
32220 | _ACEOF | ||
32221 | |||
32222 | |||
32223 | else | ||
32224 | cat >>confdefs.h <<_ACEOF | ||
32225 | #define HAVE_DECL__GETSHORT 0 | ||
32226 | _ACEOF | ||
32227 | |||
32228 | |||
32229 | fi | ||
32230 | { echo "$as_me:$LINENO: checking whether _getlong is declared" >&5 | ||
32231 | echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; } | ||
32232 | if test "${ac_cv_have_decl__getlong+set}" = set; then | ||
32233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32234 | else | ||
32235 | cat >conftest.$ac_ext <<_ACEOF | ||
32236 | /* confdefs.h. */ | ||
32237 | _ACEOF | ||
32238 | cat confdefs.h >>conftest.$ac_ext | ||
32239 | cat >>conftest.$ac_ext <<_ACEOF | ||
32240 | /* end confdefs.h. */ | ||
32241 | #include <sys/types.h> | ||
32242 | #include <arpa/nameser.h> | ||
32243 | |||
32244 | int | ||
32245 | main () | ||
32246 | { | ||
32247 | #ifndef _getlong | ||
32248 | (void) _getlong; | ||
32249 | #endif | ||
32250 | |||
32251 | ; | ||
32252 | return 0; | ||
32253 | } | ||
32254 | _ACEOF | ||
32255 | rm -f conftest.$ac_objext | ||
32256 | if { (ac_try="$ac_compile" | ||
32257 | case "(($ac_try" in | ||
32258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32259 | *) ac_try_echo=$ac_try;; | ||
32260 | esac | ||
32261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32262 | (eval "$ac_compile") 2>conftest.er1 | ||
32263 | ac_status=$? | ||
32264 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32265 | rm -f conftest.er1 | ||
32266 | cat conftest.err >&5 | ||
32267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32268 | (exit $ac_status); } && { | ||
32269 | test -z "$ac_c_werror_flag" || | ||
32270 | test ! -s conftest.err | ||
32271 | } && test -s conftest.$ac_objext; then | ||
32272 | ac_cv_have_decl__getlong=yes | ||
32273 | else | ||
32274 | echo "$as_me: failed program was:" >&5 | ||
32275 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32276 | |||
32277 | ac_cv_have_decl__getlong=no | ||
32278 | fi | ||
32279 | |||
32280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
32281 | fi | ||
32282 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5 | ||
32283 | echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; } | ||
32284 | if test $ac_cv_have_decl__getlong = yes; then | ||
32285 | |||
32286 | cat >>confdefs.h <<_ACEOF | ||
32287 | #define HAVE_DECL__GETLONG 1 | ||
32288 | _ACEOF | ||
32289 | |||
32290 | |||
32291 | else | ||
32292 | cat >>confdefs.h <<_ACEOF | ||
32293 | #define HAVE_DECL__GETLONG 0 | ||
32294 | _ACEOF | ||
32295 | |||
32296 | |||
32297 | fi | ||
32298 | |||
32299 | |||
32300 | { echo "$as_me:$LINENO: checking for HEADER.ad" >&5 | ||
32301 | echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; } | ||
32302 | if test "${ac_cv_member_HEADER_ad+set}" = set; then | ||
32303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32304 | else | ||
32305 | cat >conftest.$ac_ext <<_ACEOF | ||
32306 | /* confdefs.h. */ | ||
32307 | _ACEOF | ||
32308 | cat confdefs.h >>conftest.$ac_ext | ||
32309 | cat >>conftest.$ac_ext <<_ACEOF | ||
32310 | /* end confdefs.h. */ | ||
32311 | #include <arpa/nameser.h> | ||
32312 | |||
32313 | int | ||
32314 | main () | ||
32315 | { | ||
32316 | static HEADER ac_aggr; | ||
32317 | if (ac_aggr.ad) | ||
32318 | return 0; | ||
32319 | ; | ||
32320 | return 0; | ||
32321 | } | ||
32322 | _ACEOF | ||
32323 | rm -f conftest.$ac_objext | ||
32324 | if { (ac_try="$ac_compile" | ||
32325 | case "(($ac_try" in | ||
32326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32327 | *) ac_try_echo=$ac_try;; | ||
32328 | esac | ||
32329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32330 | (eval "$ac_compile") 2>conftest.er1 | ||
32331 | ac_status=$? | ||
32332 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32333 | rm -f conftest.er1 | ||
32334 | cat conftest.err >&5 | ||
32335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32336 | (exit $ac_status); } && { | ||
32337 | test -z "$ac_c_werror_flag" || | ||
32338 | test ! -s conftest.err | ||
32339 | } && test -s conftest.$ac_objext; then | ||
32340 | ac_cv_member_HEADER_ad=yes | ||
32341 | else | ||
32342 | echo "$as_me: failed program was:" >&5 | ||
32343 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32344 | |||
32345 | cat >conftest.$ac_ext <<_ACEOF | ||
32346 | /* confdefs.h. */ | ||
32347 | _ACEOF | ||
32348 | cat confdefs.h >>conftest.$ac_ext | ||
32349 | cat >>conftest.$ac_ext <<_ACEOF | ||
32350 | /* end confdefs.h. */ | ||
32351 | #include <arpa/nameser.h> | ||
32352 | |||
32353 | int | ||
32354 | main () | ||
32355 | { | ||
32356 | static HEADER ac_aggr; | ||
32357 | if (sizeof ac_aggr.ad) | ||
32358 | return 0; | ||
32359 | ; | ||
32360 | return 0; | ||
32361 | } | ||
32362 | _ACEOF | ||
32363 | rm -f conftest.$ac_objext | ||
32364 | if { (ac_try="$ac_compile" | ||
32365 | case "(($ac_try" in | ||
32366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32367 | *) ac_try_echo=$ac_try;; | ||
32368 | esac | ||
32369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32370 | (eval "$ac_compile") 2>conftest.er1 | ||
32371 | ac_status=$? | ||
32372 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32373 | rm -f conftest.er1 | ||
32374 | cat conftest.err >&5 | ||
32375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32376 | (exit $ac_status); } && { | ||
32377 | test -z "$ac_c_werror_flag" || | ||
32378 | test ! -s conftest.err | ||
32379 | } && test -s conftest.$ac_objext; then | ||
32380 | ac_cv_member_HEADER_ad=yes | ||
32381 | else | ||
32382 | echo "$as_me: failed program was:" >&5 | ||
32383 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32384 | |||
32385 | ac_cv_member_HEADER_ad=no | ||
32386 | fi | ||
32387 | |||
32388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
32389 | fi | ||
32390 | |||
32391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
32392 | fi | ||
32393 | { echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5 | ||
32394 | echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; } | ||
32395 | if test $ac_cv_member_HEADER_ad = yes; then | ||
32396 | |||
32397 | cat >>confdefs.h <<\_ACEOF | ||
32398 | #define HAVE_HEADER_AD 1 | ||
32399 | _ACEOF | ||
32400 | |||
32401 | fi | ||
32402 | |||
32403 | |||
32404 | fi | ||
32405 | |||
32406 | |||
32407 | { echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5 | ||
32408 | echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; } | ||
32409 | cat >conftest.$ac_ext <<_ACEOF | ||
32410 | /* confdefs.h. */ | ||
32411 | _ACEOF | ||
32412 | cat confdefs.h >>conftest.$ac_ext | ||
32413 | cat >>conftest.$ac_ext <<_ACEOF | ||
32414 | /* end confdefs.h. */ | ||
32415 | |||
32416 | #include <stdio.h> | ||
32417 | #if HAVE_SYS_TYPES_H | ||
32418 | # include <sys/types.h> | ||
32419 | #endif | ||
32420 | #include <netinet/in.h> | ||
32421 | #include <arpa/nameser.h> | ||
32422 | #include <resolv.h> | ||
32423 | extern struct __res_state _res; | ||
32424 | |||
32425 | int | ||
32426 | main () | ||
32427 | { | ||
32428 | |||
32429 | struct __res_state *volatile p = &_res; /* force resolution of _res */ | ||
32430 | return 0; | ||
32431 | |||
32432 | ; | ||
32433 | return 0; | ||
32434 | } | ||
32435 | _ACEOF | ||
32436 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
32437 | if { (ac_try="$ac_link" | ||
32438 | case "(($ac_try" in | ||
32439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32440 | *) ac_try_echo=$ac_try;; | ||
32441 | esac | ||
32442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32443 | (eval "$ac_link") 2>conftest.er1 | ||
32444 | ac_status=$? | ||
32445 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32446 | rm -f conftest.er1 | ||
32447 | cat conftest.err >&5 | ||
32448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32449 | (exit $ac_status); } && { | ||
32450 | test -z "$ac_c_werror_flag" || | ||
32451 | test ! -s conftest.err | ||
32452 | } && test -s conftest$ac_exeext && | ||
32453 | $as_test_x conftest$ac_exeext; then | ||
32454 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
32455 | echo "${ECHO_T}yes" >&6; } | ||
32456 | |||
32457 | cat >>confdefs.h <<\_ACEOF | ||
32458 | #define HAVE__RES_EXTERN 1 | ||
32459 | _ACEOF | ||
32460 | |||
32461 | |||
32462 | else | ||
32463 | echo "$as_me: failed program was:" >&5 | ||
32464 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32465 | |||
32466 | { echo "$as_me:$LINENO: result: no" >&5 | ||
32467 | echo "${ECHO_T}no" >&6; } | ||
32468 | |||
32469 | fi | ||
32470 | |||
32471 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
32472 | conftest$ac_exeext conftest.$ac_ext | ||
32473 | |||
32474 | # Check whether user wants SELinux support | ||
32475 | SELINUX_MSG="no" | ||
32476 | LIBSELINUX="" | ||
32477 | |||
32478 | # Check whether --with-selinux was given. | ||
32479 | if test "${with_selinux+set}" = set; then | ||
32480 | withval=$with_selinux; if test "x$withval" != "xno" ; then | ||
32481 | save_LIBS="$LIBS" | ||
32482 | |||
32483 | cat >>confdefs.h <<\_ACEOF | ||
32484 | #define WITH_SELINUX 1 | ||
32485 | _ACEOF | ||
32486 | |||
32487 | SELINUX_MSG="yes" | ||
32488 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
32489 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
32490 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } | ||
32491 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
32492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32493 | fi | ||
32494 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
32495 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } | ||
32496 | else | ||
32497 | # Is the header compilable? | ||
32498 | { echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5 | ||
32499 | echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; } | ||
32500 | cat >conftest.$ac_ext <<_ACEOF | ||
32501 | /* confdefs.h. */ | ||
32502 | _ACEOF | ||
32503 | cat confdefs.h >>conftest.$ac_ext | ||
32504 | cat >>conftest.$ac_ext <<_ACEOF | ||
32505 | /* end confdefs.h. */ | ||
32506 | $ac_includes_default | ||
32507 | #include <selinux/selinux.h> | ||
32508 | _ACEOF | ||
32509 | rm -f conftest.$ac_objext | ||
32510 | if { (ac_try="$ac_compile" | ||
32511 | case "(($ac_try" in | ||
32512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32513 | *) ac_try_echo=$ac_try;; | ||
32514 | esac | ||
32515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32516 | (eval "$ac_compile") 2>conftest.er1 | ||
32517 | ac_status=$? | ||
32518 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32519 | rm -f conftest.er1 | ||
32520 | cat conftest.err >&5 | ||
32521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32522 | (exit $ac_status); } && { | ||
32523 | test -z "$ac_c_werror_flag" || | ||
32524 | test ! -s conftest.err | ||
32525 | } && test -s conftest.$ac_objext; then | ||
32526 | ac_header_compiler=yes | ||
32527 | else | ||
32528 | echo "$as_me: failed program was:" >&5 | ||
32529 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32530 | |||
32531 | ac_header_compiler=no | ||
32532 | fi | ||
32533 | |||
32534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
32535 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
32536 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
32537 | |||
32538 | # Is the header present? | ||
32539 | { echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5 | ||
32540 | echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; } | ||
32541 | cat >conftest.$ac_ext <<_ACEOF | ||
32542 | /* confdefs.h. */ | ||
32543 | _ACEOF | ||
32544 | cat confdefs.h >>conftest.$ac_ext | ||
32545 | cat >>conftest.$ac_ext <<_ACEOF | ||
32546 | /* end confdefs.h. */ | ||
32547 | #include <selinux/selinux.h> | ||
32548 | _ACEOF | ||
32549 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
32550 | case "(($ac_try" in | ||
32551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32552 | *) ac_try_echo=$ac_try;; | ||
32553 | esac | ||
32554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32555 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
32556 | ac_status=$? | ||
32557 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32558 | rm -f conftest.er1 | ||
32559 | cat conftest.err >&5 | ||
32560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32561 | (exit $ac_status); } >/dev/null && { | ||
32562 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
32563 | test ! -s conftest.err | ||
32564 | }; then | ||
32565 | ac_header_preproc=yes | ||
32566 | else | ||
32567 | echo "$as_me: failed program was:" >&5 | ||
32568 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32569 | |||
32570 | ac_header_preproc=no | ||
32571 | fi | ||
32572 | |||
32573 | rm -f conftest.err conftest.$ac_ext | ||
32574 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
32575 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
32576 | |||
32577 | # So? What about this header? | ||
32578 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
32579 | yes:no: ) | ||
32580 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
32581 | echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
32582 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5 | ||
32583 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;} | ||
32584 | ac_header_preproc=yes | ||
32585 | ;; | ||
32586 | no:yes:* ) | ||
32587 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5 | ||
32588 | echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;} | ||
32589 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5 | ||
32590 | echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;} | ||
32591 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5 | ||
32592 | echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;} | ||
32593 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
32594 | echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
32595 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5 | ||
32596 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;} | ||
32597 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5 | ||
32598 | echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;} | ||
32599 | ( cat <<\_ASBOX | ||
32600 | ## ------------------------------------------- ## | ||
32601 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
32602 | ## ------------------------------------------- ## | ||
32603 | _ASBOX | ||
32604 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
32605 | ;; | ||
32606 | esac | ||
32607 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
32608 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } | ||
32609 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
32610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32611 | else | ||
32612 | ac_cv_header_selinux_selinux_h=$ac_header_preproc | ||
32613 | fi | ||
32614 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
32615 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } | ||
32616 | |||
32617 | fi | ||
32618 | if test $ac_cv_header_selinux_selinux_h = yes; then | ||
32619 | : | ||
32620 | else | ||
32621 | { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5 | ||
32622 | echo "$as_me: error: SELinux support requires selinux.h header" >&2;} | ||
32623 | { (exit 1); exit 1; }; } | ||
32624 | fi | ||
32625 | |||
32626 | |||
32627 | { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5 | ||
32628 | echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; } | ||
32629 | if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then | ||
32630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32631 | else | ||
32632 | ac_check_lib_save_LIBS=$LIBS | ||
32633 | LIBS="-lselinux $LIBS" | ||
32634 | cat >conftest.$ac_ext <<_ACEOF | ||
32635 | /* confdefs.h. */ | ||
32636 | _ACEOF | ||
32637 | cat confdefs.h >>conftest.$ac_ext | ||
32638 | cat >>conftest.$ac_ext <<_ACEOF | ||
32639 | /* end confdefs.h. */ | ||
32640 | |||
32641 | /* Override any GCC internal prototype to avoid an error. | ||
32642 | Use char because int might match the return type of a GCC | ||
32643 | builtin and then its argument prototype would still apply. */ | ||
32644 | #ifdef __cplusplus | ||
32645 | extern "C" | ||
32646 | #endif | ||
32647 | char setexeccon (); | ||
32648 | int | ||
32649 | main () | ||
32650 | { | ||
32651 | return setexeccon (); | ||
32652 | ; | ||
32653 | return 0; | ||
32654 | } | ||
32655 | _ACEOF | ||
32656 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
32657 | if { (ac_try="$ac_link" | ||
32658 | case "(($ac_try" in | ||
32659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32660 | *) ac_try_echo=$ac_try;; | ||
32661 | esac | ||
32662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32663 | (eval "$ac_link") 2>conftest.er1 | ||
32664 | ac_status=$? | ||
32665 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32666 | rm -f conftest.er1 | ||
32667 | cat conftest.err >&5 | ||
32668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32669 | (exit $ac_status); } && { | ||
32670 | test -z "$ac_c_werror_flag" || | ||
32671 | test ! -s conftest.err | ||
32672 | } && test -s conftest$ac_exeext && | ||
32673 | $as_test_x conftest$ac_exeext; then | ||
32674 | ac_cv_lib_selinux_setexeccon=yes | ||
32675 | else | ||
32676 | echo "$as_me: failed program was:" >&5 | ||
32677 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32678 | |||
32679 | ac_cv_lib_selinux_setexeccon=no | ||
32680 | fi | ||
32681 | |||
32682 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
32683 | conftest$ac_exeext conftest.$ac_ext | ||
32684 | LIBS=$ac_check_lib_save_LIBS | ||
32685 | fi | ||
32686 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5 | ||
32687 | echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; } | ||
32688 | if test $ac_cv_lib_selinux_setexeccon = yes; then | ||
32689 | LIBSELINUX="-lselinux" | ||
32690 | LIBS="$LIBS -lselinux" | ||
32691 | |||
32692 | else | ||
32693 | { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5 | ||
32694 | echo "$as_me: error: SELinux support requires libselinux library" >&2;} | ||
32695 | { (exit 1); exit 1; }; } | ||
32696 | fi | ||
32697 | |||
32698 | SSHLIBS="$SSHLIBS $LIBSELINUX" | ||
32699 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" | ||
32700 | |||
32701 | |||
32702 | for ac_func in getseuserbyname get_default_context_with_level | ||
32703 | do | ||
32704 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
32705 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
32706 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
32707 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
32708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32709 | else | ||
32710 | cat >conftest.$ac_ext <<_ACEOF | ||
32711 | /* confdefs.h. */ | ||
32712 | _ACEOF | ||
32713 | cat confdefs.h >>conftest.$ac_ext | ||
32714 | cat >>conftest.$ac_ext <<_ACEOF | ||
32715 | /* end confdefs.h. */ | ||
32716 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
32717 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
32718 | #define $ac_func innocuous_$ac_func | ||
32719 | |||
32720 | /* System header to define __stub macros and hopefully few prototypes, | ||
32721 | which can conflict with char $ac_func (); below. | ||
32722 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
32723 | <limits.h> exists even on freestanding compilers. */ | ||
32724 | |||
32725 | #ifdef __STDC__ | ||
32726 | # include <limits.h> | ||
32727 | #else | ||
32728 | # include <assert.h> | ||
32729 | #endif | ||
32730 | |||
32731 | #undef $ac_func | ||
32732 | |||
32733 | /* Override any GCC internal prototype to avoid an error. | ||
32734 | Use char because int might match the return type of a GCC | ||
32735 | builtin and then its argument prototype would still apply. */ | ||
32736 | #ifdef __cplusplus | ||
32737 | extern "C" | ||
32738 | #endif | ||
32739 | char $ac_func (); | ||
32740 | /* The GNU C library defines this for functions which it implements | ||
32741 | to always fail with ENOSYS. Some functions are actually named | ||
32742 | something starting with __ and the normal name is an alias. */ | ||
32743 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
32744 | choke me | ||
32745 | #endif | ||
32746 | |||
32747 | int | ||
32748 | main () | ||
32749 | { | ||
32750 | return $ac_func (); | ||
32751 | ; | ||
32752 | return 0; | ||
32753 | } | ||
32754 | _ACEOF | ||
32755 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
32756 | if { (ac_try="$ac_link" | ||
32757 | case "(($ac_try" in | ||
32758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32759 | *) ac_try_echo=$ac_try;; | ||
32760 | esac | ||
32761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32762 | (eval "$ac_link") 2>conftest.er1 | ||
32763 | ac_status=$? | ||
32764 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32765 | rm -f conftest.er1 | ||
32766 | cat conftest.err >&5 | ||
32767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32768 | (exit $ac_status); } && { | ||
32769 | test -z "$ac_c_werror_flag" || | ||
32770 | test ! -s conftest.err | ||
32771 | } && test -s conftest$ac_exeext && | ||
32772 | $as_test_x conftest$ac_exeext; then | ||
32773 | eval "$as_ac_var=yes" | ||
32774 | else | ||
32775 | echo "$as_me: failed program was:" >&5 | ||
32776 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32777 | |||
32778 | eval "$as_ac_var=no" | ||
32779 | fi | ||
32780 | |||
32781 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
32782 | conftest$ac_exeext conftest.$ac_ext | ||
32783 | fi | ||
32784 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
32785 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
32786 | echo "${ECHO_T}$ac_res" >&6; } | ||
32787 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
32788 | cat >>confdefs.h <<_ACEOF | ||
32789 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
32790 | _ACEOF | ||
32791 | |||
32792 | fi | ||
32793 | done | ||
32794 | |||
32795 | LIBS="$save_LIBS" | ||
32796 | fi | ||
32797 | |||
32798 | fi | ||
32799 | |||
32800 | |||
32801 | |||
32802 | |||
32803 | # Check whether user wants Kerberos 5 support | ||
32804 | KRB5_MSG="no" | ||
32805 | |||
32806 | # Check whether --with-kerberos5 was given. | ||
32807 | if test "${with_kerberos5+set}" = set; then | ||
32808 | withval=$with_kerberos5; if test "x$withval" != "xno" ; then | ||
32809 | if test "x$withval" = "xyes" ; then | ||
32810 | KRB5ROOT="/usr/local" | ||
32811 | else | ||
32812 | KRB5ROOT=${withval} | ||
32813 | fi | ||
32814 | |||
32815 | |||
32816 | cat >>confdefs.h <<\_ACEOF | ||
32817 | #define KRB5 1 | ||
32818 | _ACEOF | ||
32819 | |||
32820 | KRB5_MSG="yes" | ||
32821 | |||
32822 | # Extract the first word of "krb5-config", so it can be a program name with args. | ||
32823 | set dummy krb5-config; ac_word=$2 | ||
32824 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
32825 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
32826 | if test "${ac_cv_path_KRB5CONF+set}" = set; then | ||
32827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32828 | else | ||
32829 | case $KRB5CONF in | ||
32830 | [\\/]* | ?:[\\/]*) | ||
32831 | ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path. | ||
32832 | ;; | ||
32833 | *) | ||
32834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
32835 | as_dummy="$KRB5ROOT/bin:$PATH" | ||
32836 | for as_dir in $as_dummy | ||
32837 | do | ||
32838 | IFS=$as_save_IFS | ||
32839 | test -z "$as_dir" && as_dir=. | ||
32840 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
32841 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
32842 | ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" | ||
32843 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
32844 | break 2 | ||
32845 | fi | ||
32846 | done | ||
32847 | done | ||
32848 | IFS=$as_save_IFS | ||
32849 | |||
32850 | test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config" | ||
32851 | ;; | ||
32852 | esac | ||
32853 | fi | ||
32854 | KRB5CONF=$ac_cv_path_KRB5CONF | ||
32855 | if test -n "$KRB5CONF"; then | ||
32856 | { echo "$as_me:$LINENO: result: $KRB5CONF" >&5 | ||
32857 | echo "${ECHO_T}$KRB5CONF" >&6; } | ||
32858 | else | ||
32859 | { echo "$as_me:$LINENO: result: no" >&5 | ||
32860 | echo "${ECHO_T}no" >&6; } | ||
32861 | fi | ||
32862 | |||
32863 | |||
32864 | if test -x $KRB5CONF ; then | ||
32865 | K5CFLAGS="`$KRB5CONF --cflags`" | ||
32866 | K5LIBS="`$KRB5CONF --libs`" | ||
32867 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
32868 | |||
32869 | { echo "$as_me:$LINENO: checking for gssapi support" >&5 | ||
32870 | echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; } | ||
32871 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
32872 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
32873 | echo "${ECHO_T}yes" >&6; } | ||
32874 | |||
32875 | cat >>confdefs.h <<\_ACEOF | ||
32876 | #define GSSAPI 1 | ||
32877 | _ACEOF | ||
32878 | |||
32879 | GSSCFLAGS="`$KRB5CONF --cflags gssapi`" | ||
32880 | GSSLIBS="`$KRB5CONF --libs gssapi`" | ||
32881 | CPPFLAGS="$CPPFLAGS $GSSCFLAGS" | ||
32882 | else | ||
32883 | { echo "$as_me:$LINENO: result: no" >&5 | ||
32884 | echo "${ECHO_T}no" >&6; } | ||
32885 | fi | ||
32886 | { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
32887 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } | ||
32888 | cat >conftest.$ac_ext <<_ACEOF | ||
32889 | /* confdefs.h. */ | ||
32890 | _ACEOF | ||
32891 | cat confdefs.h >>conftest.$ac_ext | ||
32892 | cat >>conftest.$ac_ext <<_ACEOF | ||
32893 | /* end confdefs.h. */ | ||
32894 | #include <krb5.h> | ||
32895 | |||
32896 | int | ||
32897 | main () | ||
32898 | { | ||
32899 | char *tmp = heimdal_version; | ||
32900 | ; | ||
32901 | return 0; | ||
32902 | } | ||
32903 | _ACEOF | ||
32904 | rm -f conftest.$ac_objext | ||
32905 | if { (ac_try="$ac_compile" | ||
32906 | case "(($ac_try" in | ||
32907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32908 | *) ac_try_echo=$ac_try;; | ||
32909 | esac | ||
32910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32911 | (eval "$ac_compile") 2>conftest.er1 | ||
32912 | ac_status=$? | ||
32913 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32914 | rm -f conftest.er1 | ||
32915 | cat conftest.err >&5 | ||
32916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32917 | (exit $ac_status); } && { | ||
32918 | test -z "$ac_c_werror_flag" || | ||
32919 | test ! -s conftest.err | ||
32920 | } && test -s conftest.$ac_objext; then | ||
32921 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
32922 | echo "${ECHO_T}yes" >&6; } | ||
32923 | |||
32924 | cat >>confdefs.h <<\_ACEOF | ||
32925 | #define HEIMDAL 1 | ||
32926 | _ACEOF | ||
32927 | |||
32928 | else | ||
32929 | echo "$as_me: failed program was:" >&5 | ||
32930 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32931 | |||
32932 | { echo "$as_me:$LINENO: result: no" >&5 | ||
32933 | echo "${ECHO_T}no" >&6; } | ||
32934 | |||
32935 | fi | ||
32936 | |||
32937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
32938 | else | ||
32939 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
32940 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
32941 | { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
32942 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } | ||
32943 | cat >conftest.$ac_ext <<_ACEOF | ||
32944 | /* confdefs.h. */ | ||
32945 | _ACEOF | ||
32946 | cat confdefs.h >>conftest.$ac_ext | ||
32947 | cat >>conftest.$ac_ext <<_ACEOF | ||
32948 | /* end confdefs.h. */ | ||
32949 | #include <krb5.h> | ||
32950 | |||
32951 | int | ||
32952 | main () | ||
32953 | { | ||
32954 | char *tmp = heimdal_version; | ||
32955 | ; | ||
32956 | return 0; | ||
32957 | } | ||
32958 | _ACEOF | ||
32959 | rm -f conftest.$ac_objext | ||
32960 | if { (ac_try="$ac_compile" | ||
32961 | case "(($ac_try" in | ||
32962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32963 | *) ac_try_echo=$ac_try;; | ||
32964 | esac | ||
32965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32966 | (eval "$ac_compile") 2>conftest.er1 | ||
32967 | ac_status=$? | ||
32968 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32969 | rm -f conftest.er1 | ||
32970 | cat conftest.err >&5 | ||
32971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32972 | (exit $ac_status); } && { | ||
32973 | test -z "$ac_c_werror_flag" || | ||
32974 | test ! -s conftest.err | ||
32975 | } && test -s conftest.$ac_objext; then | ||
32976 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
32977 | echo "${ECHO_T}yes" >&6; } | ||
32978 | cat >>confdefs.h <<\_ACEOF | ||
32979 | #define HEIMDAL 1 | ||
32980 | _ACEOF | ||
32981 | |||
32982 | K5LIBS="-lkrb5" | ||
32983 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
32984 | { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5 | ||
32985 | echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; } | ||
32986 | if test "${ac_cv_lib_roken_net_write+set}" = set; then | ||
32987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32988 | else | ||
32989 | ac_check_lib_save_LIBS=$LIBS | ||
32990 | LIBS="-lroken $LIBS" | ||
32991 | cat >conftest.$ac_ext <<_ACEOF | ||
32992 | /* confdefs.h. */ | ||
32993 | _ACEOF | ||
32994 | cat confdefs.h >>conftest.$ac_ext | ||
32995 | cat >>conftest.$ac_ext <<_ACEOF | ||
32996 | /* end confdefs.h. */ | ||
32997 | |||
32998 | /* Override any GCC internal prototype to avoid an error. | ||
32999 | Use char because int might match the return type of a GCC | ||
33000 | builtin and then its argument prototype would still apply. */ | ||
33001 | #ifdef __cplusplus | ||
33002 | extern "C" | ||
33003 | #endif | ||
33004 | char net_write (); | ||
33005 | int | ||
33006 | main () | ||
33007 | { | ||
33008 | return net_write (); | ||
33009 | ; | ||
33010 | return 0; | ||
33011 | } | ||
33012 | _ACEOF | ||
33013 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
33014 | if { (ac_try="$ac_link" | ||
33015 | case "(($ac_try" in | ||
33016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33017 | *) ac_try_echo=$ac_try;; | ||
33018 | esac | ||
33019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33020 | (eval "$ac_link") 2>conftest.er1 | ||
33021 | ac_status=$? | ||
33022 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33023 | rm -f conftest.er1 | ||
33024 | cat conftest.err >&5 | ||
33025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33026 | (exit $ac_status); } && { | ||
33027 | test -z "$ac_c_werror_flag" || | ||
33028 | test ! -s conftest.err | ||
33029 | } && test -s conftest$ac_exeext && | ||
33030 | $as_test_x conftest$ac_exeext; then | ||
33031 | ac_cv_lib_roken_net_write=yes | ||
33032 | else | ||
33033 | echo "$as_me: failed program was:" >&5 | ||
33034 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33035 | |||
33036 | ac_cv_lib_roken_net_write=no | ||
33037 | fi | ||
33038 | |||
33039 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
33040 | conftest$ac_exeext conftest.$ac_ext | ||
33041 | LIBS=$ac_check_lib_save_LIBS | ||
33042 | fi | ||
33043 | { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5 | ||
33044 | echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; } | ||
33045 | if test $ac_cv_lib_roken_net_write = yes; then | ||
33046 | K5LIBS="$K5LIBS -lroken" | ||
33047 | fi | ||
33048 | |||
33049 | { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 | ||
33050 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; } | ||
33051 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | ||
33052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33053 | else | ||
33054 | ac_check_lib_save_LIBS=$LIBS | ||
33055 | LIBS="-ldes $LIBS" | ||
33056 | cat >conftest.$ac_ext <<_ACEOF | ||
33057 | /* confdefs.h. */ | ||
33058 | _ACEOF | ||
33059 | cat confdefs.h >>conftest.$ac_ext | ||
33060 | cat >>conftest.$ac_ext <<_ACEOF | ||
33061 | /* end confdefs.h. */ | ||
33062 | |||
33063 | /* Override any GCC internal prototype to avoid an error. | ||
33064 | Use char because int might match the return type of a GCC | ||
33065 | builtin and then its argument prototype would still apply. */ | ||
33066 | #ifdef __cplusplus | ||
33067 | extern "C" | ||
33068 | #endif | ||
33069 | char des_cbc_encrypt (); | ||
33070 | int | ||
33071 | main () | ||
33072 | { | ||
33073 | return des_cbc_encrypt (); | ||
33074 | ; | ||
33075 | return 0; | ||
33076 | } | ||
33077 | _ACEOF | ||
33078 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
33079 | if { (ac_try="$ac_link" | ||
33080 | case "(($ac_try" in | ||
33081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33082 | *) ac_try_echo=$ac_try;; | ||
33083 | esac | ||
33084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33085 | (eval "$ac_link") 2>conftest.er1 | ||
33086 | ac_status=$? | ||
33087 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33088 | rm -f conftest.er1 | ||
33089 | cat conftest.err >&5 | ||
33090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33091 | (exit $ac_status); } && { | ||
33092 | test -z "$ac_c_werror_flag" || | ||
33093 | test ! -s conftest.err | ||
33094 | } && test -s conftest$ac_exeext && | ||
33095 | $as_test_x conftest$ac_exeext; then | ||
33096 | ac_cv_lib_des_des_cbc_encrypt=yes | ||
33097 | else | ||
33098 | echo "$as_me: failed program was:" >&5 | ||
33099 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33100 | |||
33101 | ac_cv_lib_des_des_cbc_encrypt=no | ||
33102 | fi | ||
33103 | |||
33104 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
33105 | conftest$ac_exeext conftest.$ac_ext | ||
33106 | LIBS=$ac_check_lib_save_LIBS | ||
33107 | fi | ||
33108 | { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | ||
33109 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; } | ||
33110 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | ||
33111 | K5LIBS="$K5LIBS -ldes" | ||
33112 | fi | ||
33113 | |||
33114 | |||
33115 | else | ||
33116 | echo "$as_me: failed program was:" >&5 | ||
33117 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33118 | |||
33119 | { echo "$as_me:$LINENO: result: no" >&5 | ||
33120 | echo "${ECHO_T}no" >&6; } | ||
33121 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
33122 | |||
33123 | fi | ||
33124 | |||
33125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
33126 | { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
33127 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } | ||
33128 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
33129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33130 | else | ||
33131 | ac_func_search_save_LIBS=$LIBS | ||
33132 | cat >conftest.$ac_ext <<_ACEOF | ||
33133 | /* confdefs.h. */ | ||
33134 | _ACEOF | ||
33135 | cat confdefs.h >>conftest.$ac_ext | ||
33136 | cat >>conftest.$ac_ext <<_ACEOF | ||
33137 | /* end confdefs.h. */ | ||
33138 | |||
33139 | /* Override any GCC internal prototype to avoid an error. | ||
33140 | Use char because int might match the return type of a GCC | ||
33141 | builtin and then its argument prototype would still apply. */ | ||
33142 | #ifdef __cplusplus | ||
33143 | extern "C" | ||
33144 | #endif | ||
33145 | char dn_expand (); | ||
33146 | int | ||
33147 | main () | ||
33148 | { | ||
33149 | return dn_expand (); | ||
33150 | ; | ||
33151 | return 0; | ||
33152 | } | ||
33153 | _ACEOF | ||
33154 | for ac_lib in '' resolv; do | ||
33155 | if test -z "$ac_lib"; then | ||
33156 | ac_res="none required" | ||
33157 | else | ||
33158 | ac_res=-l$ac_lib | ||
33159 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
33160 | fi | ||
33161 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
33162 | if { (ac_try="$ac_link" | ||
33163 | case "(($ac_try" in | ||
33164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33165 | *) ac_try_echo=$ac_try;; | ||
33166 | esac | ||
33167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33168 | (eval "$ac_link") 2>conftest.er1 | ||
33169 | ac_status=$? | ||
33170 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33171 | rm -f conftest.er1 | ||
33172 | cat conftest.err >&5 | ||
33173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33174 | (exit $ac_status); } && { | ||
33175 | test -z "$ac_c_werror_flag" || | ||
33176 | test ! -s conftest.err | ||
33177 | } && test -s conftest$ac_exeext && | ||
33178 | $as_test_x conftest$ac_exeext; then | ||
33179 | ac_cv_search_dn_expand=$ac_res | ||
33180 | else | ||
33181 | echo "$as_me: failed program was:" >&5 | ||
33182 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33183 | |||
33184 | |||
33185 | fi | ||
33186 | |||
33187 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
33188 | conftest$ac_exeext | ||
33189 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
33190 | break | ||
33191 | fi | ||
33192 | done | ||
33193 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
33194 | : | ||
33195 | else | ||
33196 | ac_cv_search_dn_expand=no | ||
33197 | fi | ||
33198 | rm conftest.$ac_ext | ||
33199 | LIBS=$ac_func_search_save_LIBS | ||
33200 | fi | ||
33201 | { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
33202 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } | ||
33203 | ac_res=$ac_cv_search_dn_expand | ||
33204 | if test "$ac_res" != no; then | ||
33205 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
33206 | |||
33207 | fi | ||
33208 | |||
33209 | |||
33210 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
33211 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; } | ||
33212 | if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then | ||
33213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33214 | else | ||
33215 | ac_check_lib_save_LIBS=$LIBS | ||
33216 | LIBS="-lgssapi_krb5 $LIBS" | ||
33217 | cat >conftest.$ac_ext <<_ACEOF | ||
33218 | /* confdefs.h. */ | ||
33219 | _ACEOF | ||
33220 | cat confdefs.h >>conftest.$ac_ext | ||
33221 | cat >>conftest.$ac_ext <<_ACEOF | ||
33222 | /* end confdefs.h. */ | ||
33223 | |||
33224 | /* Override any GCC internal prototype to avoid an error. | ||
33225 | Use char because int might match the return type of a GCC | ||
33226 | builtin and then its argument prototype would still apply. */ | ||
33227 | #ifdef __cplusplus | ||
33228 | extern "C" | ||
33229 | #endif | ||
33230 | char gss_init_sec_context (); | ||
33231 | int | ||
33232 | main () | ||
33233 | { | ||
33234 | return gss_init_sec_context (); | ||
33235 | ; | ||
33236 | return 0; | ||
33237 | } | ||
33238 | _ACEOF | ||
33239 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
33240 | if { (ac_try="$ac_link" | ||
33241 | case "(($ac_try" in | ||
33242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33243 | *) ac_try_echo=$ac_try;; | ||
33244 | esac | ||
33245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33246 | (eval "$ac_link") 2>conftest.er1 | ||
33247 | ac_status=$? | ||
33248 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33249 | rm -f conftest.er1 | ||
33250 | cat conftest.err >&5 | ||
33251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33252 | (exit $ac_status); } && { | ||
33253 | test -z "$ac_c_werror_flag" || | ||
33254 | test ! -s conftest.err | ||
33255 | } && test -s conftest$ac_exeext && | ||
33256 | $as_test_x conftest$ac_exeext; then | ||
33257 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
33258 | else | ||
33259 | echo "$as_me: failed program was:" >&5 | ||
33260 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33261 | |||
33262 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
33263 | fi | ||
33264 | |||
33265 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
33266 | conftest$ac_exeext conftest.$ac_ext | ||
33267 | LIBS=$ac_check_lib_save_LIBS | ||
33268 | fi | ||
33269 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
33270 | echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } | ||
33271 | if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then | ||
33272 | cat >>confdefs.h <<\_ACEOF | ||
33273 | #define GSSAPI 1 | ||
33274 | _ACEOF | ||
33275 | |||
33276 | GSSLIBS="-lgssapi_krb5" | ||
33277 | else | ||
33278 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5 | ||
33279 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; } | ||
33280 | if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then | ||
33281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33282 | else | ||
33283 | ac_check_lib_save_LIBS=$LIBS | ||
33284 | LIBS="-lgssapi $LIBS" | ||
33285 | cat >conftest.$ac_ext <<_ACEOF | ||
33286 | /* confdefs.h. */ | ||
33287 | _ACEOF | ||
33288 | cat confdefs.h >>conftest.$ac_ext | ||
33289 | cat >>conftest.$ac_ext <<_ACEOF | ||
33290 | /* end confdefs.h. */ | ||
33291 | |||
33292 | /* Override any GCC internal prototype to avoid an error. | ||
33293 | Use char because int might match the return type of a GCC | ||
33294 | builtin and then its argument prototype would still apply. */ | ||
33295 | #ifdef __cplusplus | ||
33296 | extern "C" | ||
33297 | #endif | ||
33298 | char gss_init_sec_context (); | ||
33299 | int | ||
33300 | main () | ||
33301 | { | ||
33302 | return gss_init_sec_context (); | ||
33303 | ; | ||
33304 | return 0; | ||
33305 | } | ||
33306 | _ACEOF | ||
33307 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
33308 | if { (ac_try="$ac_link" | ||
33309 | case "(($ac_try" in | ||
33310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33311 | *) ac_try_echo=$ac_try;; | ||
33312 | esac | ||
33313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33314 | (eval "$ac_link") 2>conftest.er1 | ||
33315 | ac_status=$? | ||
33316 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33317 | rm -f conftest.er1 | ||
33318 | cat conftest.err >&5 | ||
33319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33320 | (exit $ac_status); } && { | ||
33321 | test -z "$ac_c_werror_flag" || | ||
33322 | test ! -s conftest.err | ||
33323 | } && test -s conftest$ac_exeext && | ||
33324 | $as_test_x conftest$ac_exeext; then | ||
33325 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
33326 | else | ||
33327 | echo "$as_me: failed program was:" >&5 | ||
33328 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33329 | |||
33330 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
33331 | fi | ||
33332 | |||
33333 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
33334 | conftest$ac_exeext conftest.$ac_ext | ||
33335 | LIBS=$ac_check_lib_save_LIBS | ||
33336 | fi | ||
33337 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
33338 | echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } | ||
33339 | if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then | ||
33340 | cat >>confdefs.h <<\_ACEOF | ||
33341 | #define GSSAPI 1 | ||
33342 | _ACEOF | ||
33343 | |||
33344 | GSSLIBS="-lgssapi" | ||
33345 | else | ||
33346 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgss" >&5 | ||
33347 | echo $ECHO_N "checking for gss_init_sec_context in -lgss... $ECHO_C" >&6; } | ||
33348 | if test "${ac_cv_lib_gss_gss_init_sec_context+set}" = set; then | ||
33349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33350 | else | ||
33351 | ac_check_lib_save_LIBS=$LIBS | ||
33352 | LIBS="-lgss $LIBS" | ||
33353 | cat >conftest.$ac_ext <<_ACEOF | ||
33354 | /* confdefs.h. */ | ||
33355 | _ACEOF | ||
33356 | cat confdefs.h >>conftest.$ac_ext | ||
33357 | cat >>conftest.$ac_ext <<_ACEOF | ||
33358 | /* end confdefs.h. */ | ||
33359 | |||
33360 | /* Override any GCC internal prototype to avoid an error. | ||
33361 | Use char because int might match the return type of a GCC | ||
33362 | builtin and then its argument prototype would still apply. */ | ||
33363 | #ifdef __cplusplus | ||
33364 | extern "C" | ||
33365 | #endif | ||
33366 | char gss_init_sec_context (); | ||
33367 | int | ||
33368 | main () | ||
33369 | { | ||
33370 | return gss_init_sec_context (); | ||
33371 | ; | ||
33372 | return 0; | ||
33373 | } | ||
33374 | _ACEOF | ||
33375 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
33376 | if { (ac_try="$ac_link" | ||
33377 | case "(($ac_try" in | ||
33378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33379 | *) ac_try_echo=$ac_try;; | ||
33380 | esac | ||
33381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33382 | (eval "$ac_link") 2>conftest.er1 | ||
33383 | ac_status=$? | ||
33384 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33385 | rm -f conftest.er1 | ||
33386 | cat conftest.err >&5 | ||
33387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33388 | (exit $ac_status); } && { | ||
33389 | test -z "$ac_c_werror_flag" || | ||
33390 | test ! -s conftest.err | ||
33391 | } && test -s conftest$ac_exeext && | ||
33392 | $as_test_x conftest$ac_exeext; then | ||
33393 | ac_cv_lib_gss_gss_init_sec_context=yes | ||
33394 | else | ||
33395 | echo "$as_me: failed program was:" >&5 | ||
33396 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33397 | |||
33398 | ac_cv_lib_gss_gss_init_sec_context=no | ||
33399 | fi | ||
33400 | |||
33401 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
33402 | conftest$ac_exeext conftest.$ac_ext | ||
33403 | LIBS=$ac_check_lib_save_LIBS | ||
33404 | fi | ||
33405 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_init_sec_context" >&5 | ||
33406 | echo "${ECHO_T}$ac_cv_lib_gss_gss_init_sec_context" >&6; } | ||
33407 | if test $ac_cv_lib_gss_gss_init_sec_context = yes; then | ||
33408 | cat >>confdefs.h <<\_ACEOF | ||
33409 | #define GSSAPI 1 | ||
33410 | _ACEOF | ||
33411 | |||
33412 | GSSLIBS="-lgss" | ||
33413 | else | ||
33414 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
33415 | echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
33416 | fi | ||
33417 | |||
33418 | |||
33419 | fi | ||
33420 | |||
33421 | |||
33422 | fi | ||
33423 | |||
33424 | |||
33425 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
33426 | { echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
33427 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } | ||
33428 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
33429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33430 | fi | ||
33431 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
33432 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } | ||
33433 | else | ||
33434 | # Is the header compilable? | ||
33435 | { echo "$as_me:$LINENO: checking gssapi.h usability" >&5 | ||
33436 | echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; } | ||
33437 | cat >conftest.$ac_ext <<_ACEOF | ||
33438 | /* confdefs.h. */ | ||
33439 | _ACEOF | ||
33440 | cat confdefs.h >>conftest.$ac_ext | ||
33441 | cat >>conftest.$ac_ext <<_ACEOF | ||
33442 | /* end confdefs.h. */ | ||
33443 | $ac_includes_default | ||
33444 | #include <gssapi.h> | ||
33445 | _ACEOF | ||
33446 | rm -f conftest.$ac_objext | ||
33447 | if { (ac_try="$ac_compile" | ||
33448 | case "(($ac_try" in | ||
33449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33450 | *) ac_try_echo=$ac_try;; | ||
33451 | esac | ||
33452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33453 | (eval "$ac_compile") 2>conftest.er1 | ||
33454 | ac_status=$? | ||
33455 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33456 | rm -f conftest.er1 | ||
33457 | cat conftest.err >&5 | ||
33458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33459 | (exit $ac_status); } && { | ||
33460 | test -z "$ac_c_werror_flag" || | ||
33461 | test ! -s conftest.err | ||
33462 | } && test -s conftest.$ac_objext; then | ||
33463 | ac_header_compiler=yes | ||
33464 | else | ||
33465 | echo "$as_me: failed program was:" >&5 | ||
33466 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33467 | |||
33468 | ac_header_compiler=no | ||
33469 | fi | ||
33470 | |||
33471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
33472 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
33473 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
33474 | |||
33475 | # Is the header present? | ||
33476 | { echo "$as_me:$LINENO: checking gssapi.h presence" >&5 | ||
33477 | echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; } | ||
33478 | cat >conftest.$ac_ext <<_ACEOF | ||
33479 | /* confdefs.h. */ | ||
33480 | _ACEOF | ||
33481 | cat confdefs.h >>conftest.$ac_ext | ||
33482 | cat >>conftest.$ac_ext <<_ACEOF | ||
33483 | /* end confdefs.h. */ | ||
33484 | #include <gssapi.h> | ||
33485 | _ACEOF | ||
33486 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
33487 | case "(($ac_try" in | ||
33488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33489 | *) ac_try_echo=$ac_try;; | ||
33490 | esac | ||
33491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33492 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
33493 | ac_status=$? | ||
33494 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33495 | rm -f conftest.er1 | ||
33496 | cat conftest.err >&5 | ||
33497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33498 | (exit $ac_status); } >/dev/null && { | ||
33499 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
33500 | test ! -s conftest.err | ||
33501 | }; then | ||
33502 | ac_header_preproc=yes | ||
33503 | else | ||
33504 | echo "$as_me: failed program was:" >&5 | ||
33505 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33506 | |||
33507 | ac_header_preproc=no | ||
33508 | fi | ||
33509 | |||
33510 | rm -f conftest.err conftest.$ac_ext | ||
33511 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
33512 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
33513 | |||
33514 | # So? What about this header? | ||
33515 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
33516 | yes:no: ) | ||
33517 | { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
33518 | echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
33519 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5 | ||
33520 | echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;} | ||
33521 | ac_header_preproc=yes | ||
33522 | ;; | ||
33523 | no:yes:* ) | ||
33524 | { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5 | ||
33525 | echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;} | ||
33526 | { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5 | ||
33527 | echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;} | ||
33528 | { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5 | ||
33529 | echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;} | ||
33530 | { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
33531 | echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
33532 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5 | ||
33533 | echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;} | ||
33534 | { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5 | ||
33535 | echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;} | ||
33536 | ( cat <<\_ASBOX | ||
33537 | ## ------------------------------------------- ## | ||
33538 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
33539 | ## ------------------------------------------- ## | ||
33540 | _ASBOX | ||
33541 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
33542 | ;; | ||
33543 | esac | ||
33544 | { echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
33545 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } | ||
33546 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
33547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33548 | else | ||
33549 | ac_cv_header_gssapi_h=$ac_header_preproc | ||
33550 | fi | ||
33551 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
33552 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } | ||
33553 | |||
33554 | fi | ||
33555 | if test $ac_cv_header_gssapi_h = yes; then | ||
33556 | : | ||
33557 | else | ||
33558 | unset ac_cv_header_gssapi_h | ||
33559 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
33560 | |||
33561 | for ac_header in gssapi.h | ||
33562 | do | ||
33563 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
33564 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33565 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
33566 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
33567 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33569 | fi | ||
33570 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
33571 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
33572 | echo "${ECHO_T}$ac_res" >&6; } | ||
33573 | else | ||
33574 | # Is the header compilable? | ||
33575 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
33576 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
33577 | cat >conftest.$ac_ext <<_ACEOF | ||
33578 | /* confdefs.h. */ | ||
33579 | _ACEOF | ||
33580 | cat confdefs.h >>conftest.$ac_ext | ||
33581 | cat >>conftest.$ac_ext <<_ACEOF | ||
33582 | /* end confdefs.h. */ | ||
33583 | $ac_includes_default | ||
33584 | #include <$ac_header> | ||
33585 | _ACEOF | ||
33586 | rm -f conftest.$ac_objext | ||
33587 | if { (ac_try="$ac_compile" | ||
33588 | case "(($ac_try" in | ||
33589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33590 | *) ac_try_echo=$ac_try;; | ||
33591 | esac | ||
33592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33593 | (eval "$ac_compile") 2>conftest.er1 | ||
33594 | ac_status=$? | ||
33595 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33596 | rm -f conftest.er1 | ||
33597 | cat conftest.err >&5 | ||
33598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33599 | (exit $ac_status); } && { | ||
33600 | test -z "$ac_c_werror_flag" || | ||
33601 | test ! -s conftest.err | ||
33602 | } && test -s conftest.$ac_objext; then | ||
33603 | ac_header_compiler=yes | ||
33604 | else | ||
33605 | echo "$as_me: failed program was:" >&5 | ||
33606 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33607 | |||
33608 | ac_header_compiler=no | ||
33609 | fi | ||
33610 | |||
33611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
33612 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
33613 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
33614 | |||
33615 | # Is the header present? | ||
33616 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
33617 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
33618 | cat >conftest.$ac_ext <<_ACEOF | ||
33619 | /* confdefs.h. */ | ||
33620 | _ACEOF | ||
33621 | cat confdefs.h >>conftest.$ac_ext | ||
33622 | cat >>conftest.$ac_ext <<_ACEOF | ||
33623 | /* end confdefs.h. */ | ||
33624 | #include <$ac_header> | ||
33625 | _ACEOF | ||
33626 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
33627 | case "(($ac_try" in | ||
33628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33629 | *) ac_try_echo=$ac_try;; | ||
33630 | esac | ||
33631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33632 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
33633 | ac_status=$? | ||
33634 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33635 | rm -f conftest.er1 | ||
33636 | cat conftest.err >&5 | ||
33637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33638 | (exit $ac_status); } >/dev/null && { | ||
33639 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
33640 | test ! -s conftest.err | ||
33641 | }; then | ||
33642 | ac_header_preproc=yes | ||
33643 | else | ||
33644 | echo "$as_me: failed program was:" >&5 | ||
33645 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33646 | |||
33647 | ac_header_preproc=no | ||
33648 | fi | ||
33649 | |||
33650 | rm -f conftest.err conftest.$ac_ext | ||
33651 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
33652 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
33653 | |||
33654 | # So? What about this header? | ||
33655 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
33656 | yes:no: ) | ||
33657 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
33658 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
33659 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
33660 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
33661 | ac_header_preproc=yes | ||
33662 | ;; | ||
33663 | no:yes:* ) | ||
33664 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
33665 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
33666 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
33667 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
33668 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
33669 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
33670 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
33671 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
33672 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
33673 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
33674 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
33675 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
33676 | ( cat <<\_ASBOX | ||
33677 | ## ------------------------------------------- ## | ||
33678 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
33679 | ## ------------------------------------------- ## | ||
33680 | _ASBOX | ||
33681 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
33682 | ;; | ||
33683 | esac | ||
33684 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
33685 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
33686 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33688 | else | ||
33689 | eval "$as_ac_Header=\$ac_header_preproc" | ||
33690 | fi | ||
33691 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
33692 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
33693 | echo "${ECHO_T}$ac_res" >&6; } | ||
33694 | |||
33695 | fi | ||
33696 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
33697 | cat >>confdefs.h <<_ACEOF | ||
33698 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
33699 | _ACEOF | ||
33700 | |||
33701 | else | ||
33702 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
33703 | echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
33704 | |||
33705 | fi | ||
33706 | |||
33707 | done | ||
33708 | |||
33709 | |||
33710 | |||
33711 | fi | ||
33712 | |||
33713 | |||
33714 | |||
33715 | oldCPP="$CPPFLAGS" | ||
33716 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
33717 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
33718 | { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
33719 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } | ||
33720 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
33721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33722 | fi | ||
33723 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
33724 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } | ||
33725 | else | ||
33726 | # Is the header compilable? | ||
33727 | { echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5 | ||
33728 | echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; } | ||
33729 | cat >conftest.$ac_ext <<_ACEOF | ||
33730 | /* confdefs.h. */ | ||
33731 | _ACEOF | ||
33732 | cat confdefs.h >>conftest.$ac_ext | ||
33733 | cat >>conftest.$ac_ext <<_ACEOF | ||
33734 | /* end confdefs.h. */ | ||
33735 | $ac_includes_default | ||
33736 | #include <gssapi_krb5.h> | ||
33737 | _ACEOF | ||
33738 | rm -f conftest.$ac_objext | ||
33739 | if { (ac_try="$ac_compile" | ||
33740 | case "(($ac_try" in | ||
33741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33742 | *) ac_try_echo=$ac_try;; | ||
33743 | esac | ||
33744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33745 | (eval "$ac_compile") 2>conftest.er1 | ||
33746 | ac_status=$? | ||
33747 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33748 | rm -f conftest.er1 | ||
33749 | cat conftest.err >&5 | ||
33750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33751 | (exit $ac_status); } && { | ||
33752 | test -z "$ac_c_werror_flag" || | ||
33753 | test ! -s conftest.err | ||
33754 | } && test -s conftest.$ac_objext; then | ||
33755 | ac_header_compiler=yes | ||
33756 | else | ||
33757 | echo "$as_me: failed program was:" >&5 | ||
33758 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33759 | |||
33760 | ac_header_compiler=no | ||
33761 | fi | ||
33762 | |||
33763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
33764 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
33765 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
33766 | |||
33767 | # Is the header present? | ||
33768 | { echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5 | ||
33769 | echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; } | ||
33770 | cat >conftest.$ac_ext <<_ACEOF | ||
33771 | /* confdefs.h. */ | ||
33772 | _ACEOF | ||
33773 | cat confdefs.h >>conftest.$ac_ext | ||
33774 | cat >>conftest.$ac_ext <<_ACEOF | ||
33775 | /* end confdefs.h. */ | ||
33776 | #include <gssapi_krb5.h> | ||
33777 | _ACEOF | ||
33778 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
33779 | case "(($ac_try" in | ||
33780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33781 | *) ac_try_echo=$ac_try;; | ||
33782 | esac | ||
33783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33784 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
33785 | ac_status=$? | ||
33786 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33787 | rm -f conftest.er1 | ||
33788 | cat conftest.err >&5 | ||
33789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33790 | (exit $ac_status); } >/dev/null && { | ||
33791 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
33792 | test ! -s conftest.err | ||
33793 | }; then | ||
33794 | ac_header_preproc=yes | ||
33795 | else | ||
33796 | echo "$as_me: failed program was:" >&5 | ||
33797 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33798 | |||
33799 | ac_header_preproc=no | ||
33800 | fi | ||
33801 | |||
33802 | rm -f conftest.err conftest.$ac_ext | ||
33803 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
33804 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
33805 | |||
33806 | # So? What about this header? | ||
33807 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
33808 | yes:no: ) | ||
33809 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
33810 | echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
33811 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5 | ||
33812 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;} | ||
33813 | ac_header_preproc=yes | ||
33814 | ;; | ||
33815 | no:yes:* ) | ||
33816 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5 | ||
33817 | echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;} | ||
33818 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5 | ||
33819 | echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;} | ||
33820 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5 | ||
33821 | echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;} | ||
33822 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
33823 | echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
33824 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5 | ||
33825 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;} | ||
33826 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5 | ||
33827 | echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;} | ||
33828 | ( cat <<\_ASBOX | ||
33829 | ## ------------------------------------------- ## | ||
33830 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
33831 | ## ------------------------------------------- ## | ||
33832 | _ASBOX | ||
33833 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
33834 | ;; | ||
33835 | esac | ||
33836 | { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
33837 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } | ||
33838 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
33839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33840 | else | ||
33841 | ac_cv_header_gssapi_krb5_h=$ac_header_preproc | ||
33842 | fi | ||
33843 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
33844 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } | ||
33845 | |||
33846 | fi | ||
33847 | if test $ac_cv_header_gssapi_krb5_h = yes; then | ||
33848 | : | ||
33849 | else | ||
33850 | CPPFLAGS="$oldCPP" | ||
33851 | fi | ||
33852 | |||
33853 | |||
33854 | |||
33855 | fi | ||
33856 | if test ! -z "$need_dash_r" ; then | ||
33857 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
33858 | fi | ||
33859 | if test ! -z "$blibpath" ; then | ||
33860 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
33861 | fi | ||
33862 | |||
33863 | |||
33864 | |||
33865 | for ac_header in gssapi.h gssapi/gssapi.h | ||
33866 | do | ||
33867 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
33868 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33869 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
33870 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
33871 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33873 | fi | ||
33874 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
33875 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
33876 | echo "${ECHO_T}$ac_res" >&6; } | ||
33877 | else | ||
33878 | # Is the header compilable? | ||
33879 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
33880 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
33881 | cat >conftest.$ac_ext <<_ACEOF | ||
33882 | /* confdefs.h. */ | ||
33883 | _ACEOF | ||
33884 | cat confdefs.h >>conftest.$ac_ext | ||
33885 | cat >>conftest.$ac_ext <<_ACEOF | ||
33886 | /* end confdefs.h. */ | ||
33887 | $ac_includes_default | ||
33888 | #include <$ac_header> | ||
33889 | _ACEOF | ||
33890 | rm -f conftest.$ac_objext | ||
33891 | if { (ac_try="$ac_compile" | ||
33892 | case "(($ac_try" in | ||
33893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33894 | *) ac_try_echo=$ac_try;; | ||
33895 | esac | ||
33896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33897 | (eval "$ac_compile") 2>conftest.er1 | ||
33898 | ac_status=$? | ||
33899 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33900 | rm -f conftest.er1 | ||
33901 | cat conftest.err >&5 | ||
33902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33903 | (exit $ac_status); } && { | ||
33904 | test -z "$ac_c_werror_flag" || | ||
33905 | test ! -s conftest.err | ||
33906 | } && test -s conftest.$ac_objext; then | ||
33907 | ac_header_compiler=yes | ||
33908 | else | ||
33909 | echo "$as_me: failed program was:" >&5 | ||
33910 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33911 | |||
33912 | ac_header_compiler=no | ||
33913 | fi | ||
33914 | |||
33915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
33916 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
33917 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
33918 | |||
33919 | # Is the header present? | ||
33920 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
33921 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
33922 | cat >conftest.$ac_ext <<_ACEOF | ||
33923 | /* confdefs.h. */ | ||
33924 | _ACEOF | ||
33925 | cat confdefs.h >>conftest.$ac_ext | ||
33926 | cat >>conftest.$ac_ext <<_ACEOF | ||
33927 | /* end confdefs.h. */ | ||
33928 | #include <$ac_header> | ||
33929 | _ACEOF | ||
33930 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
33931 | case "(($ac_try" in | ||
33932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33933 | *) ac_try_echo=$ac_try;; | ||
33934 | esac | ||
33935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33936 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
33937 | ac_status=$? | ||
33938 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33939 | rm -f conftest.er1 | ||
33940 | cat conftest.err >&5 | ||
33941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33942 | (exit $ac_status); } >/dev/null && { | ||
33943 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
33944 | test ! -s conftest.err | ||
33945 | }; then | ||
33946 | ac_header_preproc=yes | ||
33947 | else | ||
33948 | echo "$as_me: failed program was:" >&5 | ||
33949 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33950 | |||
33951 | ac_header_preproc=no | ||
33952 | fi | ||
33953 | |||
33954 | rm -f conftest.err conftest.$ac_ext | ||
33955 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
33956 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
33957 | |||
33958 | # So? What about this header? | ||
33959 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
33960 | yes:no: ) | ||
33961 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
33962 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
33963 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
33964 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
33965 | ac_header_preproc=yes | ||
33966 | ;; | ||
33967 | no:yes:* ) | ||
33968 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
33969 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
33970 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
33971 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
33972 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
33973 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
33974 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
33975 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
33976 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
33977 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
33978 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
33979 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
33980 | ( cat <<\_ASBOX | ||
33981 | ## ------------------------------------------- ## | ||
33982 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
33983 | ## ------------------------------------------- ## | ||
33984 | _ASBOX | ||
33985 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
33986 | ;; | ||
33987 | esac | ||
33988 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
33989 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
33990 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33992 | else | ||
33993 | eval "$as_ac_Header=\$ac_header_preproc" | ||
33994 | fi | ||
33995 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
33996 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
33997 | echo "${ECHO_T}$ac_res" >&6; } | ||
33998 | |||
33999 | fi | ||
34000 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
34001 | cat >>confdefs.h <<_ACEOF | ||
34002 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
34003 | _ACEOF | ||
34004 | |||
34005 | fi | ||
34006 | |||
34007 | done | ||
34008 | |||
34009 | |||
34010 | |||
34011 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
34012 | do | ||
34013 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
34014 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
34015 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
34016 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
34017 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
34018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
34019 | fi | ||
34020 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
34021 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
34022 | echo "${ECHO_T}$ac_res" >&6; } | ||
34023 | else | ||
34024 | # Is the header compilable? | ||
34025 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
34026 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
34027 | cat >conftest.$ac_ext <<_ACEOF | ||
34028 | /* confdefs.h. */ | ||
34029 | _ACEOF | ||
34030 | cat confdefs.h >>conftest.$ac_ext | ||
34031 | cat >>conftest.$ac_ext <<_ACEOF | ||
34032 | /* end confdefs.h. */ | ||
34033 | $ac_includes_default | ||
34034 | #include <$ac_header> | ||
34035 | _ACEOF | ||
34036 | rm -f conftest.$ac_objext | ||
34037 | if { (ac_try="$ac_compile" | ||
34038 | case "(($ac_try" in | ||
34039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34040 | *) ac_try_echo=$ac_try;; | ||
34041 | esac | ||
34042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34043 | (eval "$ac_compile") 2>conftest.er1 | ||
34044 | ac_status=$? | ||
34045 | grep -v '^ *+' conftest.er1 >conftest.err | ||
34046 | rm -f conftest.er1 | ||
34047 | cat conftest.err >&5 | ||
34048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34049 | (exit $ac_status); } && { | ||
34050 | test -z "$ac_c_werror_flag" || | ||
34051 | test ! -s conftest.err | ||
34052 | } && test -s conftest.$ac_objext; then | ||
34053 | ac_header_compiler=yes | ||
34054 | else | ||
34055 | echo "$as_me: failed program was:" >&5 | ||
34056 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
34057 | |||
34058 | ac_header_compiler=no | ||
34059 | fi | ||
34060 | |||
34061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
34062 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
34063 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
34064 | |||
34065 | # Is the header present? | ||
34066 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
34067 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
34068 | cat >conftest.$ac_ext <<_ACEOF | ||
34069 | /* confdefs.h. */ | ||
34070 | _ACEOF | ||
34071 | cat confdefs.h >>conftest.$ac_ext | ||
34072 | cat >>conftest.$ac_ext <<_ACEOF | ||
34073 | /* end confdefs.h. */ | ||
34074 | #include <$ac_header> | ||
34075 | _ACEOF | ||
34076 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
34077 | case "(($ac_try" in | ||
34078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34079 | *) ac_try_echo=$ac_try;; | ||
34080 | esac | ||
34081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34082 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
34083 | ac_status=$? | ||
34084 | grep -v '^ *+' conftest.er1 >conftest.err | ||
34085 | rm -f conftest.er1 | ||
34086 | cat conftest.err >&5 | ||
34087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34088 | (exit $ac_status); } >/dev/null && { | ||
34089 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
34090 | test ! -s conftest.err | ||
34091 | }; then | ||
34092 | ac_header_preproc=yes | ||
34093 | else | ||
34094 | echo "$as_me: failed program was:" >&5 | ||
34095 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
34096 | |||
34097 | ac_header_preproc=no | ||
34098 | fi | ||
34099 | |||
34100 | rm -f conftest.err conftest.$ac_ext | ||
34101 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
34102 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
34103 | |||
34104 | # So? What about this header? | ||
34105 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
34106 | yes:no: ) | ||
34107 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
34108 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
34109 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
34110 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
34111 | ac_header_preproc=yes | ||
34112 | ;; | ||
34113 | no:yes:* ) | ||
34114 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
34115 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
34116 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
34117 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
34118 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
34119 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
34120 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
34121 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
34122 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
34123 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
34124 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
34125 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
34126 | ( cat <<\_ASBOX | ||
34127 | ## ------------------------------------------- ## | ||
34128 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
34129 | ## ------------------------------------------- ## | ||
34130 | _ASBOX | ||
34131 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
34132 | ;; | ||
34133 | esac | ||
34134 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
34135 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
34136 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
34137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
34138 | else | ||
34139 | eval "$as_ac_Header=\$ac_header_preproc" | ||
34140 | fi | ||
34141 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
34142 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
34143 | echo "${ECHO_T}$ac_res" >&6; } | ||
34144 | |||
34145 | fi | ||
34146 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
34147 | cat >>confdefs.h <<_ACEOF | ||
34148 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
34149 | _ACEOF | ||
34150 | |||
34151 | fi | ||
34152 | |||
34153 | done | ||
34154 | |||
34155 | |||
34156 | |||
34157 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
34158 | do | ||
34159 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
34160 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
34161 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
34162 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
34163 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
34164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
34165 | fi | ||
34166 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
34167 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
34168 | echo "${ECHO_T}$ac_res" >&6; } | ||
34169 | else | ||
34170 | # Is the header compilable? | ||
34171 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
34172 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
34173 | cat >conftest.$ac_ext <<_ACEOF | ||
34174 | /* confdefs.h. */ | ||
34175 | _ACEOF | ||
34176 | cat confdefs.h >>conftest.$ac_ext | ||
34177 | cat >>conftest.$ac_ext <<_ACEOF | ||
34178 | /* end confdefs.h. */ | ||
34179 | $ac_includes_default | ||
34180 | #include <$ac_header> | ||
34181 | _ACEOF | ||
34182 | rm -f conftest.$ac_objext | ||
34183 | if { (ac_try="$ac_compile" | ||
34184 | case "(($ac_try" in | ||
34185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34186 | *) ac_try_echo=$ac_try;; | ||
34187 | esac | ||
34188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34189 | (eval "$ac_compile") 2>conftest.er1 | ||
34190 | ac_status=$? | ||
34191 | grep -v '^ *+' conftest.er1 >conftest.err | ||
34192 | rm -f conftest.er1 | ||
34193 | cat conftest.err >&5 | ||
34194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34195 | (exit $ac_status); } && { | ||
34196 | test -z "$ac_c_werror_flag" || | ||
34197 | test ! -s conftest.err | ||
34198 | } && test -s conftest.$ac_objext; then | ||
34199 | ac_header_compiler=yes | ||
34200 | else | ||
34201 | echo "$as_me: failed program was:" >&5 | ||
34202 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
34203 | |||
34204 | ac_header_compiler=no | ||
34205 | fi | ||
34206 | |||
34207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
34208 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
34209 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
34210 | |||
34211 | # Is the header present? | ||
34212 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
34213 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
34214 | cat >conftest.$ac_ext <<_ACEOF | ||
34215 | /* confdefs.h. */ | ||
34216 | _ACEOF | ||
34217 | cat confdefs.h >>conftest.$ac_ext | ||
34218 | cat >>conftest.$ac_ext <<_ACEOF | ||
34219 | /* end confdefs.h. */ | ||
34220 | #include <$ac_header> | ||
34221 | _ACEOF | ||
34222 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
34223 | case "(($ac_try" in | ||
34224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34225 | *) ac_try_echo=$ac_try;; | ||
34226 | esac | ||
34227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34228 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
34229 | ac_status=$? | ||
34230 | grep -v '^ *+' conftest.er1 >conftest.err | ||
34231 | rm -f conftest.er1 | ||
34232 | cat conftest.err >&5 | ||
34233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34234 | (exit $ac_status); } >/dev/null && { | ||
34235 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
34236 | test ! -s conftest.err | ||
34237 | }; then | ||
34238 | ac_header_preproc=yes | ||
34239 | else | ||
34240 | echo "$as_me: failed program was:" >&5 | ||
34241 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
34242 | |||
34243 | ac_header_preproc=no | ||
34244 | fi | ||
34245 | |||
34246 | rm -f conftest.err conftest.$ac_ext | ||
34247 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
34248 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
34249 | |||
34250 | # So? What about this header? | ||
34251 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
34252 | yes:no: ) | ||
34253 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
34254 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
34255 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
34256 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
34257 | ac_header_preproc=yes | ||
34258 | ;; | ||
34259 | no:yes:* ) | ||
34260 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
34261 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
34262 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
34263 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
34264 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
34265 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
34266 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
34267 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
34268 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
34269 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
34270 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
34271 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
34272 | ( cat <<\_ASBOX | ||
34273 | ## ------------------------------------------- ## | ||
34274 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
34275 | ## ------------------------------------------- ## | ||
34276 | _ASBOX | ||
34277 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
34278 | ;; | ||
34279 | esac | ||
34280 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
34281 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
34282 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
34283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
34284 | else | ||
34285 | eval "$as_ac_Header=\$ac_header_preproc" | ||
34286 | fi | ||
34287 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
34288 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
34289 | echo "${ECHO_T}$ac_res" >&6; } | ||
34290 | |||
34291 | fi | ||
34292 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
34293 | cat >>confdefs.h <<_ACEOF | ||
34294 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
34295 | _ACEOF | ||
34296 | |||
34297 | fi | ||
34298 | |||
34299 | done | ||
34300 | |||
34301 | |||
34302 | { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5 | ||
34303 | echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; } | ||
34304 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
34305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
34306 | else | ||
34307 | ac_func_search_save_LIBS=$LIBS | ||
34308 | cat >conftest.$ac_ext <<_ACEOF | ||
34309 | /* confdefs.h. */ | ||
34310 | _ACEOF | ||
34311 | cat confdefs.h >>conftest.$ac_ext | ||
34312 | cat >>conftest.$ac_ext <<_ACEOF | ||
34313 | /* end confdefs.h. */ | ||
34314 | |||
34315 | /* Override any GCC internal prototype to avoid an error. | ||
34316 | Use char because int might match the return type of a GCC | ||
34317 | builtin and then its argument prototype would still apply. */ | ||
34318 | #ifdef __cplusplus | ||
34319 | extern "C" | ||
34320 | #endif | ||
34321 | char k_hasafs (); | ||
34322 | int | ||
34323 | main () | ||
34324 | { | ||
34325 | return k_hasafs (); | ||
34326 | ; | ||
34327 | return 0; | ||
34328 | } | ||
34329 | _ACEOF | ||
34330 | for ac_lib in '' kafs; do | ||
34331 | if test -z "$ac_lib"; then | ||
34332 | ac_res="none required" | ||
34333 | else | ||
34334 | ac_res=-l$ac_lib | ||
34335 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
34336 | fi | ||
34337 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
34338 | if { (ac_try="$ac_link" | ||
34339 | case "(($ac_try" in | ||
34340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34341 | *) ac_try_echo=$ac_try;; | ||
34342 | esac | ||
34343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34344 | (eval "$ac_link") 2>conftest.er1 | ||
34345 | ac_status=$? | ||
34346 | grep -v '^ *+' conftest.er1 >conftest.err | ||
34347 | rm -f conftest.er1 | ||
34348 | cat conftest.err >&5 | ||
34349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34350 | (exit $ac_status); } && { | ||
34351 | test -z "$ac_c_werror_flag" || | ||
34352 | test ! -s conftest.err | ||
34353 | } && test -s conftest$ac_exeext && | ||
34354 | $as_test_x conftest$ac_exeext; then | ||
34355 | ac_cv_search_k_hasafs=$ac_res | ||
34356 | else | ||
34357 | echo "$as_me: failed program was:" >&5 | ||
34358 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
34359 | |||
34360 | |||
34361 | fi | ||
34362 | |||
34363 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
34364 | conftest$ac_exeext | ||
34365 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
34366 | break | ||
34367 | fi | ||
34368 | done | ||
34369 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
34370 | : | ||
34371 | else | ||
34372 | ac_cv_search_k_hasafs=no | ||
34373 | fi | ||
34374 | rm conftest.$ac_ext | ||
34375 | LIBS=$ac_func_search_save_LIBS | ||
34376 | fi | ||
34377 | { echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5 | ||
34378 | echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; } | ||
34379 | ac_res=$ac_cv_search_k_hasafs | ||
34380 | if test "$ac_res" != no; then | ||
34381 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
34382 | |||
34383 | cat >>confdefs.h <<\_ACEOF | ||
34384 | #define USE_AFS 1 | ||
34385 | _ACEOF | ||
34386 | |||
34387 | fi | ||
34388 | |||
34389 | |||
34390 | { echo "$as_me:$LINENO: checking whether GSS_C_NT_HOSTBASED_SERVICE is declared" >&5 | ||
34391 | echo $ECHO_N "checking whether GSS_C_NT_HOSTBASED_SERVICE is declared... $ECHO_C" >&6; } | ||
34392 | if test "${ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE+set}" = set; then | ||
34393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
34394 | else | ||
34395 | cat >conftest.$ac_ext <<_ACEOF | ||
34396 | /* confdefs.h. */ | ||
34397 | _ACEOF | ||
34398 | cat confdefs.h >>conftest.$ac_ext | ||
34399 | cat >>conftest.$ac_ext <<_ACEOF | ||
34400 | /* end confdefs.h. */ | ||
34401 | |||
34402 | #ifdef HAVE_GSSAPI_H | ||
34403 | # include <gssapi.h> | ||
34404 | #elif defined(HAVE_GSSAPI_GSSAPI_H) | ||
34405 | # include <gssapi/gssapi.h> | ||
34406 | #endif | ||
34407 | |||
34408 | #ifdef HAVE_GSSAPI_GENERIC_H | ||
34409 | # include <gssapi_generic.h> | ||
34410 | #elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H) | ||
34411 | # include <gssapi/gssapi_generic.h> | ||
34412 | #endif | ||
34413 | |||
34414 | |||
34415 | int | ||
34416 | main () | ||
34417 | { | ||
34418 | #ifndef GSS_C_NT_HOSTBASED_SERVICE | ||
34419 | (void) GSS_C_NT_HOSTBASED_SERVICE; | ||
34420 | #endif | ||
34421 | |||
34422 | ; | ||
34423 | return 0; | ||
34424 | } | ||
34425 | _ACEOF | ||
34426 | rm -f conftest.$ac_objext | ||
34427 | if { (ac_try="$ac_compile" | ||
34428 | case "(($ac_try" in | ||
34429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34430 | *) ac_try_echo=$ac_try;; | ||
34431 | esac | ||
34432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34433 | (eval "$ac_compile") 2>conftest.er1 | ||
34434 | ac_status=$? | ||
34435 | grep -v '^ *+' conftest.er1 >conftest.err | ||
34436 | rm -f conftest.er1 | ||
34437 | cat conftest.err >&5 | ||
34438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34439 | (exit $ac_status); } && { | ||
34440 | test -z "$ac_c_werror_flag" || | ||
34441 | test ! -s conftest.err | ||
34442 | } && test -s conftest.$ac_objext; then | ||
34443 | ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=yes | ||
34444 | else | ||
34445 | echo "$as_me: failed program was:" >&5 | ||
34446 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
34447 | |||
34448 | ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=no | ||
34449 | fi | ||
34450 | |||
34451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
34452 | fi | ||
34453 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&5 | ||
34454 | echo "${ECHO_T}$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&6; } | ||
34455 | if test $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE = yes; then | ||
34456 | |||
34457 | cat >>confdefs.h <<_ACEOF | ||
34458 | #define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 1 | ||
34459 | _ACEOF | ||
34460 | |||
34461 | |||
34462 | else | ||
34463 | cat >>confdefs.h <<_ACEOF | ||
34464 | #define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 0 | ||
34465 | _ACEOF | ||
34466 | |||
34467 | |||
34468 | fi | ||
34469 | |||
34470 | |||
34471 | saved_LIBS="$LIBS" | ||
34472 | LIBS="$LIBS $K5LIBS" | ||
34473 | |||
34474 | |||
34475 | |||
34476 | for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message | ||
34477 | do | ||
34478 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
34479 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
34480 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
34481 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
34482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
34483 | else | ||
34484 | cat >conftest.$ac_ext <<_ACEOF | ||
34485 | /* confdefs.h. */ | ||
34486 | _ACEOF | ||
34487 | cat confdefs.h >>conftest.$ac_ext | ||
34488 | cat >>conftest.$ac_ext <<_ACEOF | ||
34489 | /* end confdefs.h. */ | ||
34490 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
34491 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
34492 | #define $ac_func innocuous_$ac_func | ||
34493 | |||
34494 | /* System header to define __stub macros and hopefully few prototypes, | ||
34495 | which can conflict with char $ac_func (); below. | ||
34496 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
34497 | <limits.h> exists even on freestanding compilers. */ | ||
34498 | |||
34499 | #ifdef __STDC__ | ||
34500 | # include <limits.h> | ||
34501 | #else | ||
34502 | # include <assert.h> | ||
34503 | #endif | ||
34504 | |||
34505 | #undef $ac_func | ||
34506 | |||
34507 | /* Override any GCC internal prototype to avoid an error. | ||
34508 | Use char because int might match the return type of a GCC | ||
34509 | builtin and then its argument prototype would still apply. */ | ||
34510 | #ifdef __cplusplus | ||
34511 | extern "C" | ||
34512 | #endif | ||
34513 | char $ac_func (); | ||
34514 | /* The GNU C library defines this for functions which it implements | ||
34515 | to always fail with ENOSYS. Some functions are actually named | ||
34516 | something starting with __ and the normal name is an alias. */ | ||
34517 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
34518 | choke me | ||
34519 | #endif | ||
34520 | |||
34521 | int | ||
34522 | main () | ||
34523 | { | ||
34524 | return $ac_func (); | ||
34525 | ; | ||
34526 | return 0; | ||
34527 | } | ||
34528 | _ACEOF | ||
34529 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
34530 | if { (ac_try="$ac_link" | ||
34531 | case "(($ac_try" in | ||
34532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34533 | *) ac_try_echo=$ac_try;; | ||
34534 | esac | ||
34535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34536 | (eval "$ac_link") 2>conftest.er1 | ||
34537 | ac_status=$? | ||
34538 | grep -v '^ *+' conftest.er1 >conftest.err | ||
34539 | rm -f conftest.er1 | ||
34540 | cat conftest.err >&5 | ||
34541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34542 | (exit $ac_status); } && { | ||
34543 | test -z "$ac_c_werror_flag" || | ||
34544 | test ! -s conftest.err | ||
34545 | } && test -s conftest$ac_exeext && | ||
34546 | $as_test_x conftest$ac_exeext; then | ||
34547 | eval "$as_ac_var=yes" | ||
34548 | else | ||
34549 | echo "$as_me: failed program was:" >&5 | ||
34550 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
34551 | |||
34552 | eval "$as_ac_var=no" | ||
34553 | fi | ||
34554 | |||
34555 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
34556 | conftest$ac_exeext conftest.$ac_ext | ||
34557 | fi | ||
34558 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
34559 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
34560 | echo "${ECHO_T}$ac_res" >&6; } | ||
34561 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
34562 | cat >>confdefs.h <<_ACEOF | ||
34563 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
34564 | _ACEOF | ||
34565 | |||
34566 | fi | ||
34567 | done | ||
34568 | |||
34569 | LIBS="$saved_LIBS" | ||
34570 | |||
34571 | fi | ||
34572 | |||
34573 | |||
34574 | fi | ||
34575 | |||
34576 | |||
34577 | |||
34578 | |||
34579 | # Looking for programs, paths and files | ||
34580 | |||
34581 | PRIVSEP_PATH=/var/empty | ||
34582 | |||
34583 | # Check whether --with-privsep-path was given. | ||
34584 | if test "${with_privsep_path+set}" = set; then | ||
34585 | withval=$with_privsep_path; | ||
34586 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
34587 | test "x${withval}" != "xyes"; then | ||
34588 | PRIVSEP_PATH=$withval | ||
34589 | fi | ||
34590 | |||
34591 | |||
34592 | fi | ||
34593 | |||
34594 | |||
34595 | |||
34596 | |||
34597 | # Check whether --with-xauth was given. | ||
34598 | if test "${with_xauth+set}" = set; then | ||
34599 | withval=$with_xauth; | ||
34600 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
34601 | test "x${withval}" != "xyes"; then | ||
34602 | xauth_path=$withval | ||
34603 | fi | ||
34604 | |||
34605 | else | ||
34606 | |||
34607 | TestPath="$PATH" | ||
34608 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
34609 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
34610 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
34611 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
34612 | # Extract the first word of "xauth", so it can be a program name with args. | ||
34613 | set dummy xauth; ac_word=$2 | ||
34614 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
34615 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
34616 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
34617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
34618 | else | ||
34619 | case $xauth_path in | ||
34620 | [\\/]* | ?:[\\/]*) | ||
34621 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
34622 | ;; | ||
34623 | *) | ||
34624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
34625 | for as_dir in $TestPath | ||
34626 | do | ||
34627 | IFS=$as_save_IFS | ||
34628 | test -z "$as_dir" && as_dir=. | ||
34629 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
34630 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
34631 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
34632 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
34633 | break 2 | ||
34634 | fi | ||
34635 | done | ||
34636 | done | ||
34637 | IFS=$as_save_IFS | ||
34638 | |||
34639 | ;; | ||
34640 | esac | ||
34641 | fi | ||
34642 | xauth_path=$ac_cv_path_xauth_path | ||
34643 | if test -n "$xauth_path"; then | ||
34644 | { echo "$as_me:$LINENO: result: $xauth_path" >&5 | ||
34645 | echo "${ECHO_T}$xauth_path" >&6; } | ||
34646 | else | ||
34647 | { echo "$as_me:$LINENO: result: no" >&5 | ||
34648 | echo "${ECHO_T}no" >&6; } | ||
34649 | fi | ||
34650 | |||
34651 | |||
34652 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
34653 | xauth_path="/usr/openwin/bin/xauth" | ||
34654 | fi | ||
34655 | |||
34656 | |||
34657 | fi | ||
34658 | |||
34659 | |||
34660 | STRIP_OPT=-s | ||
34661 | # Check whether --enable-strip was given. | ||
34662 | if test "${enable_strip+set}" = set; then | ||
34663 | enableval=$enable_strip; | ||
34664 | if test "x$enableval" = "xno" ; then | ||
34665 | STRIP_OPT= | ||
34666 | fi | ||
34667 | |||
34668 | |||
34669 | fi | ||
34670 | |||
34671 | |||
34672 | |||
34673 | if test -z "$xauth_path" ; then | ||
34674 | XAUTH_PATH="undefined" | ||
34675 | |||
34676 | else | ||
34677 | |||
34678 | cat >>confdefs.h <<_ACEOF | ||
34679 | #define XAUTH_PATH "$xauth_path" | ||
34680 | _ACEOF | ||
34681 | |||
34682 | XAUTH_PATH=$xauth_path | ||
34683 | |||
34684 | fi | ||
34685 | |||
34686 | # Check for mail directory | ||
34687 | |||
34688 | # Check whether --with-maildir was given. | ||
34689 | if test "${with_maildir+set}" = set; then | ||
34690 | withval=$with_maildir; | ||
34691 | if test "X$withval" != X && test "x$withval" != xno && \ | ||
34692 | test "x${withval}" != xyes; then | ||
34693 | |||
34694 | cat >>confdefs.h <<_ACEOF | ||
34695 | #define MAIL_DIRECTORY "$withval" | ||
34696 | _ACEOF | ||
34697 | |||
34698 | fi | ||
34699 | |||
34700 | else | ||
34701 | |||
34702 | if test "X$maildir" != "X"; then | ||
34703 | cat >>confdefs.h <<_ACEOF | ||
34704 | #define MAIL_DIRECTORY "$maildir" | ||
34705 | _ACEOF | ||
34706 | |||
34707 | else | ||
34708 | { echo "$as_me:$LINENO: checking Discovering system mail directory" >&5 | ||
34709 | echo $ECHO_N "checking Discovering system mail directory... $ECHO_C" >&6; } | ||
34710 | if test "$cross_compiling" = yes; then | ||
34711 | |||
34712 | { echo "$as_me:$LINENO: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5 | ||
34713 | echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;} | ||
34714 | |||
34715 | |||
34716 | else | ||
34717 | cat >conftest.$ac_ext <<_ACEOF | ||
34718 | /* confdefs.h. */ | ||
34719 | _ACEOF | ||
34720 | cat confdefs.h >>conftest.$ac_ext | ||
34721 | cat >>conftest.$ac_ext <<_ACEOF | ||
34722 | /* end confdefs.h. */ | ||
34723 | |||
34724 | #include <stdio.h> | ||
34725 | #include <string.h> | ||
34726 | #ifdef HAVE_PATHS_H | ||
34727 | #include <paths.h> | ||
34728 | #endif | ||
34729 | #ifdef HAVE_MAILLOCK_H | ||
34730 | #include <maillock.h> | ||
34731 | #endif | ||
34732 | #define DATA "conftest.maildir" | ||
34733 | |||
34734 | int | ||
34735 | main () | ||
34736 | { | ||
34737 | |||
34738 | FILE *fd; | ||
34739 | int rc; | ||
34740 | |||
34741 | fd = fopen(DATA,"w"); | ||
34742 | if(fd == NULL) | ||
34743 | exit(1); | ||
34744 | |||
34745 | #if defined (_PATH_MAILDIR) | ||
34746 | if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0) | ||
34747 | exit(1); | ||
34748 | #elif defined (MAILDIR) | ||
34749 | if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0) | ||
34750 | exit(1); | ||
34751 | #elif defined (_PATH_MAIL) | ||
34752 | if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0) | ||
34753 | exit(1); | ||
34754 | #else | ||
34755 | exit (2); | ||
34756 | #endif | ||
34757 | |||
34758 | exit(0); | ||
34759 | |||
34760 | ; | ||
34761 | return 0; | ||
34762 | } | ||
34763 | _ACEOF | ||
34764 | rm -f conftest$ac_exeext | ||
34765 | if { (ac_try="$ac_link" | ||
34766 | case "(($ac_try" in | ||
34767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34768 | *) ac_try_echo=$ac_try;; | ||
34769 | esac | ||
34770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34771 | (eval "$ac_link") 2>&5 | ||
34772 | ac_status=$? | ||
34773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34774 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
34775 | { (case "(($ac_try" in | ||
34776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34777 | *) ac_try_echo=$ac_try;; | ||
34778 | esac | ||
34779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34780 | (eval "$ac_try") 2>&5 | ||
34781 | ac_status=$? | ||
34782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34783 | (exit $ac_status); }; }; then | ||
34784 | |||
34785 | maildir_what=`awk -F: '{print $1}' conftest.maildir` | ||
34786 | maildir=`awk -F: '{print $2}' conftest.maildir \ | ||
34787 | | sed 's|/$||'` | ||
34788 | { echo "$as_me:$LINENO: result: Using: $maildir from $maildir_what" >&5 | ||
34789 | echo "${ECHO_T}Using: $maildir from $maildir_what" >&6; } | ||
34790 | if test "x$maildir_what" != "x_PATH_MAILDIR"; then | ||
34791 | cat >>confdefs.h <<_ACEOF | ||
34792 | #define MAIL_DIRECTORY "$maildir" | ||
34793 | _ACEOF | ||
34794 | |||
34795 | fi | ||
34796 | |||
34797 | else | ||
34798 | echo "$as_me: program exited with status $ac_status" >&5 | ||
34799 | echo "$as_me: failed program was:" >&5 | ||
34800 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
34801 | |||
34802 | ( exit $ac_status ) | ||
34803 | |||
34804 | if test "X$ac_status" = "X2";then | ||
34805 | # our test program didn't find it. Default to /var/spool/mail | ||
34806 | { echo "$as_me:$LINENO: result: Using: default value of /var/spool/mail" >&5 | ||
34807 | echo "${ECHO_T}Using: default value of /var/spool/mail" >&6; } | ||
34808 | cat >>confdefs.h <<_ACEOF | ||
34809 | #define MAIL_DIRECTORY "/var/spool/mail" | ||
34810 | _ACEOF | ||
34811 | |||
34812 | else | ||
34813 | { echo "$as_me:$LINENO: result: *** not found ***" >&5 | ||
34814 | echo "${ECHO_T}*** not found ***" >&6; } | ||
34815 | fi | ||
34816 | |||
34817 | fi | ||
34818 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
34819 | fi | ||
34820 | |||
34821 | |||
34822 | fi | ||
34823 | |||
34824 | |||
34825 | fi | ||
34826 | # maildir | ||
34827 | |||
34828 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
34829 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
34830 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
34831 | disable_ptmx_check=yes | ||
34832 | fi | ||
34833 | if test -z "$no_dev_ptmx" ; then | ||
34834 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
34835 | { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | ||
34836 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; } | ||
34837 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
34838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
34839 | else | ||
34840 | test "$cross_compiling" = yes && | ||
34841 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
34842 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
34843 | { (exit 1); exit 1; }; } | ||
34844 | if test -r ""/dev/ptmx""; then | ||
34845 | ac_cv_file___dev_ptmx_=yes | ||
34846 | else | ||
34847 | ac_cv_file___dev_ptmx_=no | ||
34848 | fi | ||
34849 | fi | ||
34850 | { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | ||
34851 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; } | ||
34852 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
34853 | |||
34854 | |||
34855 | cat >>confdefs.h <<_ACEOF | ||
34856 | #define HAVE_DEV_PTMX 1 | ||
34857 | _ACEOF | ||
34858 | |||
34859 | have_dev_ptmx=1 | ||
34860 | |||
34861 | |||
34862 | fi | ||
34863 | |||
34864 | fi | ||
34865 | fi | ||
34866 | |||
34867 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
34868 | { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | ||
34869 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; } | ||
34870 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
34871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
34872 | else | ||
34873 | test "$cross_compiling" = yes && | ||
34874 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
34875 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
34876 | { (exit 1); exit 1; }; } | ||
34877 | if test -r ""/dev/ptc""; then | ||
34878 | ac_cv_file___dev_ptc_=yes | ||
34879 | else | ||
34880 | ac_cv_file___dev_ptc_=no | ||
34881 | fi | ||
34882 | fi | ||
34883 | { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | ||
34884 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; } | ||
34885 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
34886 | |||
34887 | |||
34888 | cat >>confdefs.h <<_ACEOF | ||
34889 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
34890 | _ACEOF | ||
34891 | |||
34892 | have_dev_ptc=1 | ||
34893 | |||
34894 | |||
34895 | fi | ||
34896 | |||
34897 | else | ||
34898 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
34899 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
34900 | fi | ||
34901 | |||
34902 | # Options from here on. Some of these are preset by platform above | ||
34903 | |||
34904 | # Check whether --with-mantype was given. | ||
34905 | if test "${with_mantype+set}" = set; then | ||
34906 | withval=$with_mantype; | ||
34907 | case "$withval" in | ||
34908 | man|cat|doc) | ||
34909 | MANTYPE=$withval | ||
34910 | ;; | ||
34911 | *) | ||
34912 | { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | ||
34913 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
34914 | { (exit 1); exit 1; }; } | ||
34915 | ;; | ||
34916 | esac | ||
34917 | |||
34918 | |||
34919 | fi | ||
34920 | |||
34921 | if test -z "$MANTYPE"; then | ||
34922 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
34923 | for ac_prog in nroff awf | ||
34924 | do | ||
34925 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
34926 | set dummy $ac_prog; ac_word=$2 | ||
34927 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
34928 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
34929 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
34930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
34931 | else | ||
34932 | case $NROFF in | ||
34933 | [\\/]* | ?:[\\/]*) | ||
34934 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
34935 | ;; | ||
34936 | *) | ||
34937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
34938 | for as_dir in $TestPath | ||
34939 | do | ||
34940 | IFS=$as_save_IFS | ||
34941 | test -z "$as_dir" && as_dir=. | ||
34942 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
34943 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
34944 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
34945 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
34946 | break 2 | ||
34947 | fi | ||
34948 | done | ||
34949 | done | ||
34950 | IFS=$as_save_IFS | ||
34951 | |||
34952 | ;; | ||
34953 | esac | ||
34954 | fi | ||
34955 | NROFF=$ac_cv_path_NROFF | ||
34956 | if test -n "$NROFF"; then | ||
34957 | { echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
34958 | echo "${ECHO_T}$NROFF" >&6; } | ||
34959 | else | ||
34960 | { echo "$as_me:$LINENO: result: no" >&5 | ||
34961 | echo "${ECHO_T}no" >&6; } | ||
34962 | fi | ||
34963 | |||
34964 | |||
34965 | test -n "$NROFF" && break | ||
34966 | done | ||
34967 | test -n "$NROFF" || NROFF="/bin/false" | ||
34968 | |||
34969 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
34970 | MANTYPE=doc | ||
34971 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
34972 | MANTYPE=man | ||
34973 | else | ||
34974 | MANTYPE=cat | ||
34975 | fi | ||
34976 | fi | ||
34977 | |||
34978 | if test "$MANTYPE" = "doc"; then | ||
34979 | mansubdir=man; | ||
34980 | else | ||
34981 | mansubdir=$MANTYPE; | ||
34982 | fi | ||
34983 | |||
34984 | |||
34985 | # Check whether to enable MD5 passwords | ||
34986 | MD5_MSG="no" | ||
34987 | |||
34988 | # Check whether --with-md5-passwords was given. | ||
34989 | if test "${with_md5_passwords+set}" = set; then | ||
34990 | withval=$with_md5_passwords; | ||
34991 | if test "x$withval" != "xno" ; then | ||
34992 | |||
34993 | cat >>confdefs.h <<\_ACEOF | ||
34994 | #define HAVE_MD5_PASSWORDS 1 | ||
34995 | _ACEOF | ||
34996 | |||
34997 | MD5_MSG="yes" | ||
34998 | fi | ||
34999 | |||
35000 | |||
35001 | fi | ||
35002 | |||
35003 | |||
35004 | # Whether to disable shadow password support | ||
35005 | |||
35006 | # Check whether --with-shadow was given. | ||
35007 | if test "${with_shadow+set}" = set; then | ||
35008 | withval=$with_shadow; | ||
35009 | if test "x$withval" = "xno" ; then | ||
35010 | cat >>confdefs.h <<\_ACEOF | ||
35011 | #define DISABLE_SHADOW 1 | ||
35012 | _ACEOF | ||
35013 | |||
35014 | disable_shadow=yes | ||
35015 | fi | ||
35016 | |||
35017 | |||
35018 | fi | ||
35019 | |||
35020 | |||
35021 | if test -z "$disable_shadow" ; then | ||
35022 | { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | ||
35023 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; } | ||
35024 | cat >conftest.$ac_ext <<_ACEOF | ||
35025 | /* confdefs.h. */ | ||
35026 | _ACEOF | ||
35027 | cat confdefs.h >>conftest.$ac_ext | ||
35028 | cat >>conftest.$ac_ext <<_ACEOF | ||
35029 | /* end confdefs.h. */ | ||
35030 | |||
35031 | #include <sys/types.h> | ||
35032 | #include <shadow.h> | ||
35033 | struct spwd sp; | ||
35034 | |||
35035 | int | ||
35036 | main () | ||
35037 | { | ||
35038 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
35039 | ; | ||
35040 | return 0; | ||
35041 | } | ||
35042 | _ACEOF | ||
35043 | rm -f conftest.$ac_objext | ||
35044 | if { (ac_try="$ac_compile" | ||
35045 | case "(($ac_try" in | ||
35046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35047 | *) ac_try_echo=$ac_try;; | ||
35048 | esac | ||
35049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35050 | (eval "$ac_compile") 2>conftest.er1 | ||
35051 | ac_status=$? | ||
35052 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35053 | rm -f conftest.er1 | ||
35054 | cat conftest.err >&5 | ||
35055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35056 | (exit $ac_status); } && { | ||
35057 | test -z "$ac_c_werror_flag" || | ||
35058 | test ! -s conftest.err | ||
35059 | } && test -s conftest.$ac_objext; then | ||
35060 | sp_expire_available=yes | ||
35061 | else | ||
35062 | echo "$as_me: failed program was:" >&5 | ||
35063 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35064 | |||
35065 | |||
35066 | |||
35067 | fi | ||
35068 | |||
35069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35070 | |||
35071 | if test "x$sp_expire_available" = "xyes" ; then | ||
35072 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
35073 | echo "${ECHO_T}yes" >&6; } | ||
35074 | |||
35075 | cat >>confdefs.h <<\_ACEOF | ||
35076 | #define HAS_SHADOW_EXPIRE 1 | ||
35077 | _ACEOF | ||
35078 | |||
35079 | else | ||
35080 | { echo "$as_me:$LINENO: result: no" >&5 | ||
35081 | echo "${ECHO_T}no" >&6; } | ||
35082 | fi | ||
35083 | fi | ||
35084 | |||
35085 | # Use ip address instead of hostname in $DISPLAY | ||
35086 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
35087 | DISPLAY_HACK_MSG="yes" | ||
35088 | |||
35089 | cat >>confdefs.h <<\_ACEOF | ||
35090 | #define IPADDR_IN_DISPLAY 1 | ||
35091 | _ACEOF | ||
35092 | |||
35093 | else | ||
35094 | DISPLAY_HACK_MSG="no" | ||
35095 | |||
35096 | # Check whether --with-ipaddr-display was given. | ||
35097 | if test "${with_ipaddr_display+set}" = set; then | ||
35098 | withval=$with_ipaddr_display; | ||
35099 | if test "x$withval" != "xno" ; then | ||
35100 | cat >>confdefs.h <<\_ACEOF | ||
35101 | #define IPADDR_IN_DISPLAY 1 | ||
35102 | _ACEOF | ||
35103 | |||
35104 | DISPLAY_HACK_MSG="yes" | ||
35105 | fi | ||
35106 | |||
35107 | |||
35108 | fi | ||
35109 | |||
35110 | fi | ||
35111 | |||
35112 | # check for /etc/default/login and use it if present. | ||
35113 | # Check whether --enable-etc-default-login was given. | ||
35114 | if test "${enable_etc_default_login+set}" = set; then | ||
35115 | enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then | ||
35116 | { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5 | ||
35117 | echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
35118 | etc_default_login=no | ||
35119 | else | ||
35120 | etc_default_login=yes | ||
35121 | fi | ||
35122 | else | ||
35123 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
35124 | then | ||
35125 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5 | ||
35126 | echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} | ||
35127 | etc_default_login=no | ||
35128 | else | ||
35129 | etc_default_login=yes | ||
35130 | fi | ||
35131 | |||
35132 | fi | ||
35133 | |||
35134 | |||
35135 | if test "x$etc_default_login" != "xno"; then | ||
35136 | { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5 | ||
35137 | echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; } | ||
35138 | if test "${ac_cv_file___etc_default_login_+set}" = set; then | ||
35139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
35140 | else | ||
35141 | test "$cross_compiling" = yes && | ||
35142 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
35143 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
35144 | { (exit 1); exit 1; }; } | ||
35145 | if test -r ""/etc/default/login""; then | ||
35146 | ac_cv_file___etc_default_login_=yes | ||
35147 | else | ||
35148 | ac_cv_file___etc_default_login_=no | ||
35149 | fi | ||
35150 | fi | ||
35151 | { echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5 | ||
35152 | echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; } | ||
35153 | if test $ac_cv_file___etc_default_login_ = yes; then | ||
35154 | external_path_file=/etc/default/login | ||
35155 | fi | ||
35156 | |||
35157 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
35158 | |||
35159 | cat >>confdefs.h <<\_ACEOF | ||
35160 | #define HAVE_ETC_DEFAULT_LOGIN 1 | ||
35161 | _ACEOF | ||
35162 | |||
35163 | fi | ||
35164 | fi | ||
35165 | |||
35166 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
35167 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
35168 | external_path_file=/etc/login.conf | ||
35169 | fi | ||
35170 | |||
35171 | # Whether to mess with the default path | ||
35172 | SERVER_PATH_MSG="(default)" | ||
35173 | |||
35174 | # Check whether --with-default-path was given. | ||
35175 | if test "${with_default_path+set}" = set; then | ||
35176 | withval=$with_default_path; | ||
35177 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
35178 | { echo "$as_me:$LINENO: WARNING: | ||
35179 | --with-default-path=PATH has no effect on this system. | ||
35180 | Edit /etc/login.conf instead." >&5 | ||
35181 | echo "$as_me: WARNING: | ||
35182 | --with-default-path=PATH has no effect on this system. | ||
35183 | Edit /etc/login.conf instead." >&2;} | ||
35184 | elif test "x$withval" != "xno" ; then | ||
35185 | if test ! -z "$external_path_file" ; then | ||
35186 | { echo "$as_me:$LINENO: WARNING: | ||
35187 | --with-default-path=PATH will only be used if PATH is not defined in | ||
35188 | $external_path_file ." >&5 | ||
35189 | echo "$as_me: WARNING: | ||
35190 | --with-default-path=PATH will only be used if PATH is not defined in | ||
35191 | $external_path_file ." >&2;} | ||
35192 | fi | ||
35193 | user_path="$withval" | ||
35194 | SERVER_PATH_MSG="$withval" | ||
35195 | fi | ||
35196 | |||
35197 | else | ||
35198 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
35199 | { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
35200 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
35201 | else | ||
35202 | if test ! -z "$external_path_file" ; then | ||
35203 | { echo "$as_me:$LINENO: WARNING: | ||
35204 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
35205 | otherwise scp will not work." >&5 | ||
35206 | echo "$as_me: WARNING: | ||
35207 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
35208 | otherwise scp will not work." >&2;} | ||
35209 | fi | ||
35210 | if test "$cross_compiling" = yes; then | ||
35211 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
35212 | |||
35213 | else | ||
35214 | cat >conftest.$ac_ext <<_ACEOF | ||
35215 | /* confdefs.h. */ | ||
35216 | _ACEOF | ||
35217 | cat confdefs.h >>conftest.$ac_ext | ||
35218 | cat >>conftest.$ac_ext <<_ACEOF | ||
35219 | /* end confdefs.h. */ | ||
35220 | |||
35221 | /* find out what STDPATH is */ | ||
35222 | #include <stdio.h> | ||
35223 | #ifdef HAVE_PATHS_H | ||
35224 | # include <paths.h> | ||
35225 | #endif | ||
35226 | #ifndef _PATH_STDPATH | ||
35227 | # ifdef _PATH_USERPATH /* Irix */ | ||
35228 | # define _PATH_STDPATH _PATH_USERPATH | ||
35229 | # else | ||
35230 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
35231 | # endif | ||
35232 | #endif | ||
35233 | #include <sys/types.h> | ||
35234 | #include <sys/stat.h> | ||
35235 | #include <fcntl.h> | ||
35236 | #define DATA "conftest.stdpath" | ||
35237 | |||
35238 | int | ||
35239 | main () | ||
35240 | { | ||
35241 | |||
35242 | FILE *fd; | ||
35243 | int rc; | ||
35244 | |||
35245 | fd = fopen(DATA,"w"); | ||
35246 | if(fd == NULL) | ||
35247 | exit(1); | ||
35248 | |||
35249 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
35250 | exit(1); | ||
35251 | |||
35252 | exit(0); | ||
35253 | |||
35254 | ; | ||
35255 | return 0; | ||
35256 | } | ||
35257 | _ACEOF | ||
35258 | rm -f conftest$ac_exeext | ||
35259 | if { (ac_try="$ac_link" | ||
35260 | case "(($ac_try" in | ||
35261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35262 | *) ac_try_echo=$ac_try;; | ||
35263 | esac | ||
35264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35265 | (eval "$ac_link") 2>&5 | ||
35266 | ac_status=$? | ||
35267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35268 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
35269 | { (case "(($ac_try" in | ||
35270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35271 | *) ac_try_echo=$ac_try;; | ||
35272 | esac | ||
35273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35274 | (eval "$ac_try") 2>&5 | ||
35275 | ac_status=$? | ||
35276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35277 | (exit $ac_status); }; }; then | ||
35278 | user_path=`cat conftest.stdpath` | ||
35279 | else | ||
35280 | echo "$as_me: program exited with status $ac_status" >&5 | ||
35281 | echo "$as_me: failed program was:" >&5 | ||
35282 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35283 | |||
35284 | ( exit $ac_status ) | ||
35285 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
35286 | fi | ||
35287 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
35288 | fi | ||
35289 | |||
35290 | |||
35291 | # make sure $bindir is in USER_PATH so scp will work | ||
35292 | t_bindir="${bindir}" | ||
35293 | while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do | ||
35294 | t_bindir=`eval echo ${t_bindir}` | ||
35295 | case $t_bindir in | ||
35296 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
35297 | esac | ||
35298 | case $t_bindir in | ||
35299 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
35300 | esac | ||
35301 | done | ||
35302 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
35303 | if test $? -ne 0 ; then | ||
35304 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
35305 | if test $? -ne 0 ; then | ||
35306 | user_path=$user_path:$t_bindir | ||
35307 | { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
35308 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; } | ||
35309 | fi | ||
35310 | fi | ||
35311 | fi | ||
35312 | |||
35313 | fi | ||
35314 | |||
35315 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
35316 | |||
35317 | cat >>confdefs.h <<_ACEOF | ||
35318 | #define USER_PATH "$user_path" | ||
35319 | _ACEOF | ||
35320 | |||
35321 | |||
35322 | fi | ||
35323 | |||
35324 | # Set superuser path separately to user path | ||
35325 | |||
35326 | # Check whether --with-superuser-path was given. | ||
35327 | if test "${with_superuser_path+set}" = set; then | ||
35328 | withval=$with_superuser_path; | ||
35329 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
35330 | test "x${withval}" != "xyes"; then | ||
35331 | |||
35332 | cat >>confdefs.h <<_ACEOF | ||
35333 | #define SUPERUSER_PATH "$withval" | ||
35334 | _ACEOF | ||
35335 | |||
35336 | superuser_path=$withval | ||
35337 | fi | ||
35338 | |||
35339 | |||
35340 | fi | ||
35341 | |||
35342 | |||
35343 | |||
35344 | { echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
35345 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; } | ||
35346 | IPV4_IN6_HACK_MSG="no" | ||
35347 | |||
35348 | # Check whether --with-4in6 was given. | ||
35349 | if test "${with_4in6+set}" = set; then | ||
35350 | withval=$with_4in6; | ||
35351 | if test "x$withval" != "xno" ; then | ||
35352 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
35353 | echo "${ECHO_T}yes" >&6; } | ||
35354 | |||
35355 | cat >>confdefs.h <<\_ACEOF | ||
35356 | #define IPV4_IN_IPV6 1 | ||
35357 | _ACEOF | ||
35358 | |||
35359 | IPV4_IN6_HACK_MSG="yes" | ||
35360 | else | ||
35361 | { echo "$as_me:$LINENO: result: no" >&5 | ||
35362 | echo "${ECHO_T}no" >&6; } | ||
35363 | fi | ||
35364 | |||
35365 | else | ||
35366 | |||
35367 | if test "x$inet6_default_4in6" = "xyes"; then | ||
35368 | { echo "$as_me:$LINENO: result: yes (default)" >&5 | ||
35369 | echo "${ECHO_T}yes (default)" >&6; } | ||
35370 | cat >>confdefs.h <<\_ACEOF | ||
35371 | #define IPV4_IN_IPV6 1 | ||
35372 | _ACEOF | ||
35373 | |||
35374 | IPV4_IN6_HACK_MSG="yes" | ||
35375 | else | ||
35376 | { echo "$as_me:$LINENO: result: no (default)" >&5 | ||
35377 | echo "${ECHO_T}no (default)" >&6; } | ||
35378 | fi | ||
35379 | |||
35380 | |||
35381 | fi | ||
35382 | |||
35383 | |||
35384 | # Whether to enable BSD auth support | ||
35385 | BSD_AUTH_MSG=no | ||
35386 | |||
35387 | # Check whether --with-bsd-auth was given. | ||
35388 | if test "${with_bsd_auth+set}" = set; then | ||
35389 | withval=$with_bsd_auth; | ||
35390 | if test "x$withval" != "xno" ; then | ||
35391 | |||
35392 | cat >>confdefs.h <<\_ACEOF | ||
35393 | #define BSD_AUTH 1 | ||
35394 | _ACEOF | ||
35395 | |||
35396 | BSD_AUTH_MSG=yes | ||
35397 | fi | ||
35398 | |||
35399 | |||
35400 | fi | ||
35401 | |||
35402 | |||
35403 | # Where to place sshd.pid | ||
35404 | piddir=/var/run | ||
35405 | # make sure the directory exists | ||
35406 | if test ! -d $piddir ; then | ||
35407 | piddir=`eval echo ${sysconfdir}` | ||
35408 | case $piddir in | ||
35409 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
35410 | esac | ||
35411 | fi | ||
35412 | |||
35413 | |||
35414 | # Check whether --with-pid-dir was given. | ||
35415 | if test "${with_pid_dir+set}" = set; then | ||
35416 | withval=$with_pid_dir; | ||
35417 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
35418 | test "x${withval}" != "xyes"; then | ||
35419 | piddir=$withval | ||
35420 | if test ! -d $piddir ; then | ||
35421 | { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | ||
35422 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
35423 | fi | ||
35424 | fi | ||
35425 | |||
35426 | |||
35427 | fi | ||
35428 | |||
35429 | |||
35430 | |||
35431 | cat >>confdefs.h <<_ACEOF | ||
35432 | #define _PATH_SSH_PIDDIR "$piddir" | ||
35433 | _ACEOF | ||
35434 | |||
35435 | |||
35436 | |||
35437 | # Check whether --enable-lastlog was given. | ||
35438 | if test "${enable_lastlog+set}" = set; then | ||
35439 | enableval=$enable_lastlog; | ||
35440 | if test "x$enableval" = "xno" ; then | ||
35441 | cat >>confdefs.h <<\_ACEOF | ||
35442 | #define DISABLE_LASTLOG 1 | ||
35443 | _ACEOF | ||
35444 | |||
35445 | fi | ||
35446 | |||
35447 | |||
35448 | fi | ||
35449 | |||
35450 | # Check whether --enable-utmp was given. | ||
35451 | if test "${enable_utmp+set}" = set; then | ||
35452 | enableval=$enable_utmp; | ||
35453 | if test "x$enableval" = "xno" ; then | ||
35454 | cat >>confdefs.h <<\_ACEOF | ||
35455 | #define DISABLE_UTMP 1 | ||
35456 | _ACEOF | ||
35457 | |||
35458 | fi | ||
35459 | |||
35460 | |||
35461 | fi | ||
35462 | |||
35463 | # Check whether --enable-utmpx was given. | ||
35464 | if test "${enable_utmpx+set}" = set; then | ||
35465 | enableval=$enable_utmpx; | ||
35466 | if test "x$enableval" = "xno" ; then | ||
35467 | |||
35468 | cat >>confdefs.h <<\_ACEOF | ||
35469 | #define DISABLE_UTMPX 1 | ||
35470 | _ACEOF | ||
35471 | |||
35472 | fi | ||
35473 | |||
35474 | |||
35475 | fi | ||
35476 | |||
35477 | # Check whether --enable-wtmp was given. | ||
35478 | if test "${enable_wtmp+set}" = set; then | ||
35479 | enableval=$enable_wtmp; | ||
35480 | if test "x$enableval" = "xno" ; then | ||
35481 | cat >>confdefs.h <<\_ACEOF | ||
35482 | #define DISABLE_WTMP 1 | ||
35483 | _ACEOF | ||
35484 | |||
35485 | fi | ||
35486 | |||
35487 | |||
35488 | fi | ||
35489 | |||
35490 | # Check whether --enable-wtmpx was given. | ||
35491 | if test "${enable_wtmpx+set}" = set; then | ||
35492 | enableval=$enable_wtmpx; | ||
35493 | if test "x$enableval" = "xno" ; then | ||
35494 | |||
35495 | cat >>confdefs.h <<\_ACEOF | ||
35496 | #define DISABLE_WTMPX 1 | ||
35497 | _ACEOF | ||
35498 | |||
35499 | fi | ||
35500 | |||
35501 | |||
35502 | fi | ||
35503 | |||
35504 | # Check whether --enable-libutil was given. | ||
35505 | if test "${enable_libutil+set}" = set; then | ||
35506 | enableval=$enable_libutil; | ||
35507 | if test "x$enableval" = "xno" ; then | ||
35508 | cat >>confdefs.h <<\_ACEOF | ||
35509 | #define DISABLE_LOGIN 1 | ||
35510 | _ACEOF | ||
35511 | |||
35512 | fi | ||
35513 | |||
35514 | |||
35515 | fi | ||
35516 | |||
35517 | # Check whether --enable-pututline was given. | ||
35518 | if test "${enable_pututline+set}" = set; then | ||
35519 | enableval=$enable_pututline; | ||
35520 | if test "x$enableval" = "xno" ; then | ||
35521 | |||
35522 | cat >>confdefs.h <<\_ACEOF | ||
35523 | #define DISABLE_PUTUTLINE 1 | ||
35524 | _ACEOF | ||
35525 | |||
35526 | fi | ||
35527 | |||
35528 | |||
35529 | fi | ||
35530 | |||
35531 | # Check whether --enable-pututxline was given. | ||
35532 | if test "${enable_pututxline+set}" = set; then | ||
35533 | enableval=$enable_pututxline; | ||
35534 | if test "x$enableval" = "xno" ; then | ||
35535 | |||
35536 | cat >>confdefs.h <<\_ACEOF | ||
35537 | #define DISABLE_PUTUTXLINE 1 | ||
35538 | _ACEOF | ||
35539 | |||
35540 | fi | ||
35541 | |||
35542 | |||
35543 | fi | ||
35544 | |||
35545 | |||
35546 | # Check whether --with-lastlog was given. | ||
35547 | if test "${with_lastlog+set}" = set; then | ||
35548 | withval=$with_lastlog; | ||
35549 | if test "x$withval" = "xno" ; then | ||
35550 | cat >>confdefs.h <<\_ACEOF | ||
35551 | #define DISABLE_LASTLOG 1 | ||
35552 | _ACEOF | ||
35553 | |||
35554 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
35555 | conf_lastlog_location=$withval | ||
35556 | fi | ||
35557 | |||
35558 | |||
35559 | fi | ||
35560 | |||
35561 | |||
35562 | |||
35563 | { echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | ||
35564 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; } | ||
35565 | cat >conftest.$ac_ext <<_ACEOF | ||
35566 | /* confdefs.h. */ | ||
35567 | _ACEOF | ||
35568 | cat confdefs.h >>conftest.$ac_ext | ||
35569 | cat >>conftest.$ac_ext <<_ACEOF | ||
35570 | /* end confdefs.h. */ | ||
35571 | |||
35572 | #include <sys/types.h> | ||
35573 | #include <utmp.h> | ||
35574 | #ifdef HAVE_LASTLOG_H | ||
35575 | # include <lastlog.h> | ||
35576 | #endif | ||
35577 | #ifdef HAVE_PATHS_H | ||
35578 | # include <paths.h> | ||
35579 | #endif | ||
35580 | #ifdef HAVE_LOGIN_H | ||
35581 | # include <login.h> | ||
35582 | #endif | ||
35583 | |||
35584 | int | ||
35585 | main () | ||
35586 | { | ||
35587 | char *lastlog = LASTLOG_FILE; | ||
35588 | ; | ||
35589 | return 0; | ||
35590 | } | ||
35591 | _ACEOF | ||
35592 | rm -f conftest.$ac_objext | ||
35593 | if { (ac_try="$ac_compile" | ||
35594 | case "(($ac_try" in | ||
35595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35596 | *) ac_try_echo=$ac_try;; | ||
35597 | esac | ||
35598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35599 | (eval "$ac_compile") 2>conftest.er1 | ||
35600 | ac_status=$? | ||
35601 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35602 | rm -f conftest.er1 | ||
35603 | cat conftest.err >&5 | ||
35604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35605 | (exit $ac_status); } && { | ||
35606 | test -z "$ac_c_werror_flag" || | ||
35607 | test ! -s conftest.err | ||
35608 | } && test -s conftest.$ac_objext; then | ||
35609 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
35610 | echo "${ECHO_T}yes" >&6; } | ||
35611 | else | ||
35612 | echo "$as_me: failed program was:" >&5 | ||
35613 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35614 | |||
35615 | |||
35616 | { echo "$as_me:$LINENO: result: no" >&5 | ||
35617 | echo "${ECHO_T}no" >&6; } | ||
35618 | { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | ||
35619 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; } | ||
35620 | cat >conftest.$ac_ext <<_ACEOF | ||
35621 | /* confdefs.h. */ | ||
35622 | _ACEOF | ||
35623 | cat confdefs.h >>conftest.$ac_ext | ||
35624 | cat >>conftest.$ac_ext <<_ACEOF | ||
35625 | /* end confdefs.h. */ | ||
35626 | |||
35627 | #include <sys/types.h> | ||
35628 | #include <utmp.h> | ||
35629 | #ifdef HAVE_LASTLOG_H | ||
35630 | # include <lastlog.h> | ||
35631 | #endif | ||
35632 | #ifdef HAVE_PATHS_H | ||
35633 | # include <paths.h> | ||
35634 | #endif | ||
35635 | |||
35636 | int | ||
35637 | main () | ||
35638 | { | ||
35639 | char *lastlog = _PATH_LASTLOG; | ||
35640 | ; | ||
35641 | return 0; | ||
35642 | } | ||
35643 | _ACEOF | ||
35644 | rm -f conftest.$ac_objext | ||
35645 | if { (ac_try="$ac_compile" | ||
35646 | case "(($ac_try" in | ||
35647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35648 | *) ac_try_echo=$ac_try;; | ||
35649 | esac | ||
35650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35651 | (eval "$ac_compile") 2>conftest.er1 | ||
35652 | ac_status=$? | ||
35653 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35654 | rm -f conftest.er1 | ||
35655 | cat conftest.err >&5 | ||
35656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35657 | (exit $ac_status); } && { | ||
35658 | test -z "$ac_c_werror_flag" || | ||
35659 | test ! -s conftest.err | ||
35660 | } && test -s conftest.$ac_objext; then | ||
35661 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
35662 | echo "${ECHO_T}yes" >&6; } | ||
35663 | else | ||
35664 | echo "$as_me: failed program was:" >&5 | ||
35665 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35666 | |||
35667 | |||
35668 | { echo "$as_me:$LINENO: result: no" >&5 | ||
35669 | echo "${ECHO_T}no" >&6; } | ||
35670 | system_lastlog_path=no | ||
35671 | |||
35672 | fi | ||
35673 | |||
35674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35675 | |||
35676 | fi | ||
35677 | |||
35678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35679 | |||
35680 | if test -z "$conf_lastlog_location"; then | ||
35681 | if test x"$system_lastlog_path" = x"no" ; then | ||
35682 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
35683 | if (test -d "$f" || test -f "$f") ; then | ||
35684 | conf_lastlog_location=$f | ||
35685 | fi | ||
35686 | done | ||
35687 | if test -z "$conf_lastlog_location"; then | ||
35688 | { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | ||
35689 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
35690 | fi | ||
35691 | fi | ||
35692 | fi | ||
35693 | |||
35694 | if test -n "$conf_lastlog_location"; then | ||
35695 | |||
35696 | cat >>confdefs.h <<_ACEOF | ||
35697 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
35698 | _ACEOF | ||
35699 | |||
35700 | fi | ||
35701 | |||
35702 | { echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | ||
35703 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; } | ||
35704 | cat >conftest.$ac_ext <<_ACEOF | ||
35705 | /* confdefs.h. */ | ||
35706 | _ACEOF | ||
35707 | cat confdefs.h >>conftest.$ac_ext | ||
35708 | cat >>conftest.$ac_ext <<_ACEOF | ||
35709 | /* end confdefs.h. */ | ||
35710 | |||
35711 | #include <sys/types.h> | ||
35712 | #include <utmp.h> | ||
35713 | #ifdef HAVE_PATHS_H | ||
35714 | # include <paths.h> | ||
35715 | #endif | ||
35716 | |||
35717 | int | ||
35718 | main () | ||
35719 | { | ||
35720 | char *utmp = UTMP_FILE; | ||
35721 | ; | ||
35722 | return 0; | ||
35723 | } | ||
35724 | _ACEOF | ||
35725 | rm -f conftest.$ac_objext | ||
35726 | if { (ac_try="$ac_compile" | ||
35727 | case "(($ac_try" in | ||
35728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35729 | *) ac_try_echo=$ac_try;; | ||
35730 | esac | ||
35731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35732 | (eval "$ac_compile") 2>conftest.er1 | ||
35733 | ac_status=$? | ||
35734 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35735 | rm -f conftest.er1 | ||
35736 | cat conftest.err >&5 | ||
35737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35738 | (exit $ac_status); } && { | ||
35739 | test -z "$ac_c_werror_flag" || | ||
35740 | test ! -s conftest.err | ||
35741 | } && test -s conftest.$ac_objext; then | ||
35742 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
35743 | echo "${ECHO_T}yes" >&6; } | ||
35744 | else | ||
35745 | echo "$as_me: failed program was:" >&5 | ||
35746 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35747 | |||
35748 | { echo "$as_me:$LINENO: result: no" >&5 | ||
35749 | echo "${ECHO_T}no" >&6; } | ||
35750 | system_utmp_path=no | ||
35751 | |||
35752 | fi | ||
35753 | |||
35754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35755 | if test -z "$conf_utmp_location"; then | ||
35756 | if test x"$system_utmp_path" = x"no" ; then | ||
35757 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
35758 | if test -f $f ; then | ||
35759 | conf_utmp_location=$f | ||
35760 | fi | ||
35761 | done | ||
35762 | if test -z "$conf_utmp_location"; then | ||
35763 | cat >>confdefs.h <<\_ACEOF | ||
35764 | #define DISABLE_UTMP 1 | ||
35765 | _ACEOF | ||
35766 | |||
35767 | fi | ||
35768 | fi | ||
35769 | fi | ||
35770 | if test -n "$conf_utmp_location"; then | ||
35771 | |||
35772 | cat >>confdefs.h <<_ACEOF | ||
35773 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
35774 | _ACEOF | ||
35775 | |||
35776 | fi | ||
35777 | |||
35778 | { echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | ||
35779 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; } | ||
35780 | cat >conftest.$ac_ext <<_ACEOF | ||
35781 | /* confdefs.h. */ | ||
35782 | _ACEOF | ||
35783 | cat confdefs.h >>conftest.$ac_ext | ||
35784 | cat >>conftest.$ac_ext <<_ACEOF | ||
35785 | /* end confdefs.h. */ | ||
35786 | |||
35787 | #include <sys/types.h> | ||
35788 | #include <utmp.h> | ||
35789 | #ifdef HAVE_PATHS_H | ||
35790 | # include <paths.h> | ||
35791 | #endif | ||
35792 | |||
35793 | int | ||
35794 | main () | ||
35795 | { | ||
35796 | char *wtmp = WTMP_FILE; | ||
35797 | ; | ||
35798 | return 0; | ||
35799 | } | ||
35800 | _ACEOF | ||
35801 | rm -f conftest.$ac_objext | ||
35802 | if { (ac_try="$ac_compile" | ||
35803 | case "(($ac_try" in | ||
35804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35805 | *) ac_try_echo=$ac_try;; | ||
35806 | esac | ||
35807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35808 | (eval "$ac_compile") 2>conftest.er1 | ||
35809 | ac_status=$? | ||
35810 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35811 | rm -f conftest.er1 | ||
35812 | cat conftest.err >&5 | ||
35813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35814 | (exit $ac_status); } && { | ||
35815 | test -z "$ac_c_werror_flag" || | ||
35816 | test ! -s conftest.err | ||
35817 | } && test -s conftest.$ac_objext; then | ||
35818 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
35819 | echo "${ECHO_T}yes" >&6; } | ||
35820 | else | ||
35821 | echo "$as_me: failed program was:" >&5 | ||
35822 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35823 | |||
35824 | { echo "$as_me:$LINENO: result: no" >&5 | ||
35825 | echo "${ECHO_T}no" >&6; } | ||
35826 | system_wtmp_path=no | ||
35827 | |||
35828 | fi | ||
35829 | |||
35830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35831 | if test -z "$conf_wtmp_location"; then | ||
35832 | if test x"$system_wtmp_path" = x"no" ; then | ||
35833 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
35834 | if test -f $f ; then | ||
35835 | conf_wtmp_location=$f | ||
35836 | fi | ||
35837 | done | ||
35838 | if test -z "$conf_wtmp_location"; then | ||
35839 | cat >>confdefs.h <<\_ACEOF | ||
35840 | #define DISABLE_WTMP 1 | ||
35841 | _ACEOF | ||
35842 | |||
35843 | fi | ||
35844 | fi | ||
35845 | fi | ||
35846 | if test -n "$conf_wtmp_location"; then | ||
35847 | |||
35848 | cat >>confdefs.h <<_ACEOF | ||
35849 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
35850 | _ACEOF | ||
35851 | |||
35852 | fi | ||
35853 | |||
35854 | { echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | ||
35855 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; } | ||
35856 | cat >conftest.$ac_ext <<_ACEOF | ||
35857 | /* confdefs.h. */ | ||
35858 | _ACEOF | ||
35859 | cat confdefs.h >>conftest.$ac_ext | ||
35860 | cat >>conftest.$ac_ext <<_ACEOF | ||
35861 | /* end confdefs.h. */ | ||
35862 | |||
35863 | #include <sys/types.h> | ||
35864 | #include <utmp.h> | ||
35865 | #ifdef HAVE_UTMPX_H | ||
35866 | #include <utmpx.h> | ||
35867 | #endif | ||
35868 | #ifdef HAVE_PATHS_H | ||
35869 | # include <paths.h> | ||
35870 | #endif | ||
35871 | |||
35872 | int | ||
35873 | main () | ||
35874 | { | ||
35875 | char *wtmpx = WTMPX_FILE; | ||
35876 | ; | ||
35877 | return 0; | ||
35878 | } | ||
35879 | _ACEOF | ||
35880 | rm -f conftest.$ac_objext | ||
35881 | if { (ac_try="$ac_compile" | ||
35882 | case "(($ac_try" in | ||
35883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35884 | *) ac_try_echo=$ac_try;; | ||
35885 | esac | ||
35886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35887 | (eval "$ac_compile") 2>conftest.er1 | ||
35888 | ac_status=$? | ||
35889 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35890 | rm -f conftest.er1 | ||
35891 | cat conftest.err >&5 | ||
35892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35893 | (exit $ac_status); } && { | ||
35894 | test -z "$ac_c_werror_flag" || | ||
35895 | test ! -s conftest.err | ||
35896 | } && test -s conftest.$ac_objext; then | ||
35897 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
35898 | echo "${ECHO_T}yes" >&6; } | ||
35899 | else | ||
35900 | echo "$as_me: failed program was:" >&5 | ||
35901 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35902 | |||
35903 | { echo "$as_me:$LINENO: result: no" >&5 | ||
35904 | echo "${ECHO_T}no" >&6; } | ||
35905 | system_wtmpx_path=no | ||
35906 | |||
35907 | fi | ||
35908 | |||
35909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35910 | if test -z "$conf_wtmpx_location"; then | ||
35911 | if test x"$system_wtmpx_path" = x"no" ; then | ||
35912 | cat >>confdefs.h <<\_ACEOF | ||
35913 | #define DISABLE_WTMPX 1 | ||
35914 | _ACEOF | ||
35915 | |||
35916 | fi | ||
35917 | else | ||
35918 | |||
35919 | cat >>confdefs.h <<_ACEOF | ||
35920 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
35921 | _ACEOF | ||
35922 | |||
35923 | fi | ||
35924 | |||
35925 | |||
35926 | if test ! -z "$blibpath" ; then | ||
35927 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
35928 | { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
35929 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
35930 | fi | ||
35931 | |||
35932 | { echo "$as_me:$LINENO: checking for struct lastlog.ll_line" >&5 | ||
35933 | echo $ECHO_N "checking for struct lastlog.ll_line... $ECHO_C" >&6; } | ||
35934 | if test "${ac_cv_member_struct_lastlog_ll_line+set}" = set; then | ||
35935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
35936 | else | ||
35937 | cat >conftest.$ac_ext <<_ACEOF | ||
35938 | /* confdefs.h. */ | ||
35939 | _ACEOF | ||
35940 | cat confdefs.h >>conftest.$ac_ext | ||
35941 | cat >>conftest.$ac_ext <<_ACEOF | ||
35942 | /* end confdefs.h. */ | ||
35943 | |||
35944 | #ifdef HAVE_SYS_TYPES_H | ||
35945 | #include <sys/types.h> | ||
35946 | #endif | ||
35947 | #ifdef HAVE_UTMP_H | ||
35948 | #include <utmp.h> | ||
35949 | #endif | ||
35950 | #ifdef HAVE_UTMPX_H | ||
35951 | #include <utmpx.h> | ||
35952 | #endif | ||
35953 | #ifdef HAVE_LASTLOG_H | ||
35954 | #include <lastlog.h> | ||
35955 | #endif | ||
35956 | |||
35957 | |||
35958 | int | ||
35959 | main () | ||
35960 | { | ||
35961 | static struct lastlog ac_aggr; | ||
35962 | if (ac_aggr.ll_line) | ||
35963 | return 0; | ||
35964 | ; | ||
35965 | return 0; | ||
35966 | } | ||
35967 | _ACEOF | ||
35968 | rm -f conftest.$ac_objext | ||
35969 | if { (ac_try="$ac_compile" | ||
35970 | case "(($ac_try" in | ||
35971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35972 | *) ac_try_echo=$ac_try;; | ||
35973 | esac | ||
35974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35975 | (eval "$ac_compile") 2>conftest.er1 | ||
35976 | ac_status=$? | ||
35977 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35978 | rm -f conftest.er1 | ||
35979 | cat conftest.err >&5 | ||
35980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35981 | (exit $ac_status); } && { | ||
35982 | test -z "$ac_c_werror_flag" || | ||
35983 | test ! -s conftest.err | ||
35984 | } && test -s conftest.$ac_objext; then | ||
35985 | ac_cv_member_struct_lastlog_ll_line=yes | ||
35986 | else | ||
35987 | echo "$as_me: failed program was:" >&5 | ||
35988 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35989 | |||
35990 | cat >conftest.$ac_ext <<_ACEOF | ||
35991 | /* confdefs.h. */ | ||
35992 | _ACEOF | ||
35993 | cat confdefs.h >>conftest.$ac_ext | ||
35994 | cat >>conftest.$ac_ext <<_ACEOF | ||
35995 | /* end confdefs.h. */ | ||
35996 | |||
35997 | #ifdef HAVE_SYS_TYPES_H | ||
35998 | #include <sys/types.h> | ||
35999 | #endif | ||
36000 | #ifdef HAVE_UTMP_H | ||
36001 | #include <utmp.h> | ||
36002 | #endif | ||
36003 | #ifdef HAVE_UTMPX_H | ||
36004 | #include <utmpx.h> | ||
36005 | #endif | ||
36006 | #ifdef HAVE_LASTLOG_H | ||
36007 | #include <lastlog.h> | ||
36008 | #endif | ||
36009 | |||
36010 | |||
36011 | int | ||
36012 | main () | ||
36013 | { | ||
36014 | static struct lastlog ac_aggr; | ||
36015 | if (sizeof ac_aggr.ll_line) | ||
36016 | return 0; | ||
36017 | ; | ||
36018 | return 0; | ||
36019 | } | ||
36020 | _ACEOF | ||
36021 | rm -f conftest.$ac_objext | ||
36022 | if { (ac_try="$ac_compile" | ||
36023 | case "(($ac_try" in | ||
36024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
36025 | *) ac_try_echo=$ac_try;; | ||
36026 | esac | ||
36027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
36028 | (eval "$ac_compile") 2>conftest.er1 | ||
36029 | ac_status=$? | ||
36030 | grep -v '^ *+' conftest.er1 >conftest.err | ||
36031 | rm -f conftest.er1 | ||
36032 | cat conftest.err >&5 | ||
36033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
36034 | (exit $ac_status); } && { | ||
36035 | test -z "$ac_c_werror_flag" || | ||
36036 | test ! -s conftest.err | ||
36037 | } && test -s conftest.$ac_objext; then | ||
36038 | ac_cv_member_struct_lastlog_ll_line=yes | ||
36039 | else | ||
36040 | echo "$as_me: failed program was:" >&5 | ||
36041 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
36042 | |||
36043 | ac_cv_member_struct_lastlog_ll_line=no | ||
36044 | fi | ||
36045 | |||
36046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
36047 | fi | ||
36048 | |||
36049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
36050 | fi | ||
36051 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_lastlog_ll_line" >&5 | ||
36052 | echo "${ECHO_T}$ac_cv_member_struct_lastlog_ll_line" >&6; } | ||
36053 | if test $ac_cv_member_struct_lastlog_ll_line = yes; then | ||
36054 | : | ||
36055 | else | ||
36056 | |||
36057 | if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then | ||
36058 | cat >>confdefs.h <<\_ACEOF | ||
36059 | #define DISABLE_LASTLOG 1 | ||
36060 | _ACEOF | ||
36061 | |||
36062 | fi | ||
36063 | |||
36064 | fi | ||
36065 | |||
36066 | |||
36067 | { echo "$as_me:$LINENO: checking for struct utmp.ut_line" >&5 | ||
36068 | echo $ECHO_N "checking for struct utmp.ut_line... $ECHO_C" >&6; } | ||
36069 | if test "${ac_cv_member_struct_utmp_ut_line+set}" = set; then | ||
36070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
36071 | else | ||
36072 | cat >conftest.$ac_ext <<_ACEOF | ||
36073 | /* confdefs.h. */ | ||
36074 | _ACEOF | ||
36075 | cat confdefs.h >>conftest.$ac_ext | ||
36076 | cat >>conftest.$ac_ext <<_ACEOF | ||
36077 | /* end confdefs.h. */ | ||
36078 | |||
36079 | #ifdef HAVE_SYS_TYPES_H | ||
36080 | #include <sys/types.h> | ||
36081 | #endif | ||
36082 | #ifdef HAVE_UTMP_H | ||
36083 | #include <utmp.h> | ||
36084 | #endif | ||
36085 | #ifdef HAVE_UTMPX_H | ||
36086 | #include <utmpx.h> | ||
36087 | #endif | ||
36088 | #ifdef HAVE_LASTLOG_H | ||
36089 | #include <lastlog.h> | ||
36090 | #endif | ||
36091 | |||
36092 | |||
36093 | int | ||
36094 | main () | ||
36095 | { | ||
36096 | static struct utmp ac_aggr; | ||
36097 | if (ac_aggr.ut_line) | ||
36098 | return 0; | ||
36099 | ; | ||
36100 | return 0; | ||
36101 | } | ||
36102 | _ACEOF | ||
36103 | rm -f conftest.$ac_objext | ||
36104 | if { (ac_try="$ac_compile" | ||
36105 | case "(($ac_try" in | ||
36106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
36107 | *) ac_try_echo=$ac_try;; | ||
36108 | esac | ||
36109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
36110 | (eval "$ac_compile") 2>conftest.er1 | ||
36111 | ac_status=$? | ||
36112 | grep -v '^ *+' conftest.er1 >conftest.err | ||
36113 | rm -f conftest.er1 | ||
36114 | cat conftest.err >&5 | ||
36115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
36116 | (exit $ac_status); } && { | ||
36117 | test -z "$ac_c_werror_flag" || | ||
36118 | test ! -s conftest.err | ||
36119 | } && test -s conftest.$ac_objext; then | ||
36120 | ac_cv_member_struct_utmp_ut_line=yes | ||
36121 | else | ||
36122 | echo "$as_me: failed program was:" >&5 | ||
36123 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
36124 | |||
36125 | cat >conftest.$ac_ext <<_ACEOF | ||
36126 | /* confdefs.h. */ | ||
36127 | _ACEOF | ||
36128 | cat confdefs.h >>conftest.$ac_ext | ||
36129 | cat >>conftest.$ac_ext <<_ACEOF | ||
36130 | /* end confdefs.h. */ | ||
36131 | |||
36132 | #ifdef HAVE_SYS_TYPES_H | ||
36133 | #include <sys/types.h> | ||
36134 | #endif | ||
36135 | #ifdef HAVE_UTMP_H | ||
36136 | #include <utmp.h> | ||
36137 | #endif | ||
36138 | #ifdef HAVE_UTMPX_H | ||
36139 | #include <utmpx.h> | ||
36140 | #endif | ||
36141 | #ifdef HAVE_LASTLOG_H | ||
36142 | #include <lastlog.h> | ||
36143 | #endif | ||
36144 | |||
36145 | |||
36146 | int | ||
36147 | main () | ||
36148 | { | ||
36149 | static struct utmp ac_aggr; | ||
36150 | if (sizeof ac_aggr.ut_line) | ||
36151 | return 0; | ||
36152 | ; | ||
36153 | return 0; | ||
36154 | } | ||
36155 | _ACEOF | ||
36156 | rm -f conftest.$ac_objext | ||
36157 | if { (ac_try="$ac_compile" | ||
36158 | case "(($ac_try" in | ||
36159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
36160 | *) ac_try_echo=$ac_try;; | ||
36161 | esac | ||
36162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
36163 | (eval "$ac_compile") 2>conftest.er1 | ||
36164 | ac_status=$? | ||
36165 | grep -v '^ *+' conftest.er1 >conftest.err | ||
36166 | rm -f conftest.er1 | ||
36167 | cat conftest.err >&5 | ||
36168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
36169 | (exit $ac_status); } && { | ||
36170 | test -z "$ac_c_werror_flag" || | ||
36171 | test ! -s conftest.err | ||
36172 | } && test -s conftest.$ac_objext; then | ||
36173 | ac_cv_member_struct_utmp_ut_line=yes | ||
36174 | else | ||
36175 | echo "$as_me: failed program was:" >&5 | ||
36176 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
36177 | |||
36178 | ac_cv_member_struct_utmp_ut_line=no | ||
36179 | fi | ||
36180 | |||
36181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
36182 | fi | ||
36183 | |||
36184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
36185 | fi | ||
36186 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_line" >&5 | ||
36187 | echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_line" >&6; } | ||
36188 | if test $ac_cv_member_struct_utmp_ut_line = yes; then | ||
36189 | : | ||
36190 | else | ||
36191 | |||
36192 | cat >>confdefs.h <<\_ACEOF | ||
36193 | #define DISABLE_UTMP 1 | ||
36194 | _ACEOF | ||
36195 | |||
36196 | cat >>confdefs.h <<\_ACEOF | ||
36197 | #define DISABLE_WTMP 1 | ||
36198 | _ACEOF | ||
36199 | |||
36200 | |||
36201 | fi | ||
36202 | |||
36203 | |||
36204 | CFLAGS="$CFLAGS $werror_flags" | ||
36205 | |||
36206 | if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then | ||
36207 | TEST_SSH_IPV6=no | ||
36208 | else | ||
36209 | TEST_SSH_IPV6=yes | ||
36210 | fi | ||
36211 | { echo "$as_me:$LINENO: checking whether BROKEN_GETADDRINFO is declared" >&5 | ||
36212 | echo $ECHO_N "checking whether BROKEN_GETADDRINFO is declared... $ECHO_C" >&6; } | ||
36213 | if test "${ac_cv_have_decl_BROKEN_GETADDRINFO+set}" = set; then | ||
36214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
36215 | else | ||
36216 | cat >conftest.$ac_ext <<_ACEOF | ||
36217 | /* confdefs.h. */ | ||
36218 | _ACEOF | ||
36219 | cat confdefs.h >>conftest.$ac_ext | ||
36220 | cat >>conftest.$ac_ext <<_ACEOF | ||
36221 | /* end confdefs.h. */ | ||
36222 | $ac_includes_default | ||
36223 | int | ||
36224 | main () | ||
36225 | { | ||
36226 | #ifndef BROKEN_GETADDRINFO | ||
36227 | (void) BROKEN_GETADDRINFO; | ||
36228 | #endif | ||
36229 | |||
36230 | ; | ||
36231 | return 0; | ||
36232 | } | ||
36233 | _ACEOF | ||
36234 | rm -f conftest.$ac_objext | ||
36235 | if { (ac_try="$ac_compile" | ||
36236 | case "(($ac_try" in | ||
36237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
36238 | *) ac_try_echo=$ac_try;; | ||
36239 | esac | ||
36240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
36241 | (eval "$ac_compile") 2>conftest.er1 | ||
36242 | ac_status=$? | ||
36243 | grep -v '^ *+' conftest.er1 >conftest.err | ||
36244 | rm -f conftest.er1 | ||
36245 | cat conftest.err >&5 | ||
36246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
36247 | (exit $ac_status); } && { | ||
36248 | test -z "$ac_c_werror_flag" || | ||
36249 | test ! -s conftest.err | ||
36250 | } && test -s conftest.$ac_objext; then | ||
36251 | ac_cv_have_decl_BROKEN_GETADDRINFO=yes | ||
36252 | else | ||
36253 | echo "$as_me: failed program was:" >&5 | ||
36254 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
36255 | |||
36256 | ac_cv_have_decl_BROKEN_GETADDRINFO=no | ||
36257 | fi | ||
36258 | |||
36259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
36260 | fi | ||
36261 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_BROKEN_GETADDRINFO" >&5 | ||
36262 | echo "${ECHO_T}$ac_cv_have_decl_BROKEN_GETADDRINFO" >&6; } | ||
36263 | if test $ac_cv_have_decl_BROKEN_GETADDRINFO = yes; then | ||
36264 | TEST_SSH_IPV6=no | ||
36265 | fi | ||
36266 | |||
36267 | TEST_SSH_IPV6=$TEST_SSH_IPV6 | ||
36268 | |||
36269 | TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS | ||
36270 | |||
36271 | UNSUPPORTED_ALGORITHMS=$unsupported_algorithms | ||
36272 | |||
36273 | |||
36274 | |||
36275 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh" | ||
36276 | |||
36277 | cat >confcache <<\_ACEOF | ||
36278 | # This file is a shell script that caches the results of configure | ||
36279 | # tests run on this system so they can be shared between configure | ||
36280 | # scripts and configure runs, see configure's option --config-cache. | ||
36281 | # It is not useful on other systems. If it contains results you don't | ||
36282 | # want to keep, you may remove or edit it. | ||
36283 | # | ||
36284 | # config.status only pays attention to the cache file if you give it | ||
36285 | # the --recheck option to rerun configure. | ||
36286 | # | ||
36287 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
36288 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
36289 | # following values. | ||
36290 | |||
36291 | _ACEOF | ||
36292 | |||
36293 | # The following way of writing the cache mishandles newlines in values, | ||
36294 | # but we know of no workaround that is simple, portable, and efficient. | ||
36295 | # So, we kill variables containing newlines. | ||
36296 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
36297 | # and sets the high bit in the cache file unless we assign to the vars. | ||
36298 | ( | ||
36299 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
36300 | eval ac_val=\$$ac_var | ||
36301 | case $ac_val in #( | ||
36302 | *${as_nl}*) | ||
36303 | case $ac_var in #( | ||
36304 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
36305 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
36306 | esac | ||
36307 | case $ac_var in #( | ||
36308 | _ | IFS | as_nl) ;; #( | ||
36309 | *) $as_unset $ac_var ;; | ||
36310 | esac ;; | ||
36311 | esac | ||
36312 | done | ||
36313 | |||
36314 | (set) 2>&1 | | ||
36315 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
36316 | *${as_nl}ac_space=\ *) | ||
36317 | # `set' does not quote correctly, so add quotes (double-quote | ||
36318 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
36319 | sed -n \ | ||
36320 | "s/'/'\\\\''/g; | ||
36321 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
36322 | ;; #( | ||
36323 | *) | ||
36324 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
36325 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
36326 | ;; | ||
36327 | esac | | ||
36328 | sort | ||
36329 | ) | | ||
36330 | sed ' | ||
36331 | /^ac_cv_env_/b end | ||
36332 | t clear | ||
36333 | :clear | ||
36334 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
36335 | t end | ||
36336 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
36337 | :end' >>confcache | ||
36338 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
36339 | if test -w "$cache_file"; then | ||
36340 | test "x$cache_file" != "x/dev/null" && | ||
36341 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | ||
36342 | echo "$as_me: updating cache $cache_file" >&6;} | ||
36343 | cat confcache >$cache_file | ||
36344 | else | ||
36345 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | ||
36346 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
36347 | fi | ||
36348 | fi | ||
36349 | rm -f confcache | ||
36350 | |||
36351 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
36352 | # Let make expand exec_prefix. | ||
36353 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
36354 | |||
36355 | DEFS=-DHAVE_CONFIG_H | ||
36356 | |||
36357 | ac_libobjs= | ||
36358 | ac_ltlibobjs= | ||
36359 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
36360 | # 1. Remove the extension, and $U if already installed. | ||
36361 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
36362 | ac_i=`echo "$ac_i" | sed "$ac_script"` | ||
36363 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
36364 | # will be set to the directory where LIBOBJS objects are built. | ||
36365 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
36366 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | ||
36367 | done | ||
36368 | LIBOBJS=$ac_libobjs | ||
36369 | |||
36370 | LTLIBOBJS=$ac_ltlibobjs | ||
36371 | |||
36372 | |||
36373 | |||
36374 | : ${CONFIG_STATUS=./config.status} | ||
36375 | ac_clean_files_save=$ac_clean_files | ||
36376 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
36377 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
36378 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
36379 | cat >$CONFIG_STATUS <<_ACEOF | ||
36380 | #! $SHELL | ||
36381 | # Generated by $as_me. | ||
36382 | # Run this file to recreate the current configuration. | ||
36383 | # Compiler output produced by configure, useful for debugging | ||
36384 | # configure, is in config.log if it exists. | ||
36385 | |||
36386 | debug=false | ||
36387 | ac_cs_recheck=false | ||
36388 | ac_cs_silent=false | ||
36389 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
36390 | _ACEOF | ||
36391 | |||
36392 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
36393 | ## --------------------- ## | ||
36394 | ## M4sh Initialization. ## | ||
36395 | ## --------------------- ## | ||
36396 | |||
36397 | # Be more Bourne compatible | ||
36398 | DUALCASE=1; export DUALCASE # for MKS sh | ||
36399 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
36400 | emulate sh | ||
36401 | NULLCMD=: | ||
36402 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
36403 | # is contrary to our usage. Disable this feature. | ||
36404 | alias -g '${1+"$@"}'='"$@"' | ||
36405 | setopt NO_GLOB_SUBST | ||
36406 | else | ||
36407 | case `(set -o) 2>/dev/null` in | ||
36408 | *posix*) set -o posix ;; | ||
36409 | esac | ||
36410 | |||
36411 | fi | ||
36412 | |||
36413 | |||
36414 | |||
36415 | |||
36416 | # PATH needs CR | ||
36417 | # Avoid depending upon Character Ranges. | ||
36418 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
36419 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
36420 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
36421 | as_cr_digits='0123456789' | ||
36422 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
36423 | |||
36424 | # The user is always right. | ||
36425 | if test "${PATH_SEPARATOR+set}" != set; then | ||
36426 | echo "#! /bin/sh" >conf$$.sh | ||
36427 | echo "exit 0" >>conf$$.sh | ||
36428 | chmod +x conf$$.sh | ||
36429 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
36430 | PATH_SEPARATOR=';' | ||
36431 | else | ||
36432 | PATH_SEPARATOR=: | ||
36433 | fi | ||
36434 | rm -f conf$$.sh | ||
36435 | fi | ||
36436 | |||
36437 | # Support unset when possible. | ||
36438 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
36439 | as_unset=unset | ||
36440 | else | ||
36441 | as_unset=false | ||
36442 | fi | ||
36443 | |||
36444 | |||
36445 | # IFS | ||
36446 | # We need space, tab and new line, in precisely that order. Quoting is | ||
36447 | # there to prevent editors from complaining about space-tab. | ||
36448 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
36449 | # splitting by setting IFS to empty value.) | ||
36450 | as_nl=' | ||
36451 | ' | ||
36452 | IFS=" "" $as_nl" | ||
36453 | |||
36454 | # Find who we are. Look in the path if we contain no directory separator. | ||
36455 | case $0 in | ||
36456 | *[\\/]* ) as_myself=$0 ;; | ||
36457 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
36458 | for as_dir in $PATH | ||
36459 | do | ||
36460 | IFS=$as_save_IFS | ||
36461 | test -z "$as_dir" && as_dir=. | ||
36462 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
36463 | done | ||
36464 | IFS=$as_save_IFS | ||
36465 | |||
36466 | ;; | ||
36467 | esac | ||
36468 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
36469 | # in which case we are not to be found in the path. | ||
36470 | if test "x$as_myself" = x; then | ||
36471 | as_myself=$0 | ||
36472 | fi | ||
36473 | if test ! -f "$as_myself"; then | ||
36474 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
36475 | { (exit 1); exit 1; } | ||
36476 | fi | ||
36477 | |||
36478 | # Work around bugs in pre-3.0 UWIN ksh. | ||
36479 | for as_var in ENV MAIL MAILPATH | ||
36480 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
36481 | done | ||
36482 | PS1='$ ' | ||
36483 | PS2='> ' | ||
36484 | PS4='+ ' | ||
36485 | |||
36486 | # NLS nuisances. | ||
36487 | for as_var in \ | ||
36488 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
36489 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
36490 | LC_TELEPHONE LC_TIME | ||
36491 | do | ||
36492 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
36493 | eval $as_var=C; export $as_var | ||
36494 | else | ||
36495 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
36496 | fi | ||
36497 | done | ||
36498 | |||
36499 | # Required to use basename. | ||
36500 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
36501 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
36502 | as_expr=expr | ||
36503 | else | ||
36504 | as_expr=false | ||
36505 | fi | ||
36506 | |||
36507 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
36508 | as_basename=basename | ||
36509 | else | ||
36510 | as_basename=false | ||
36511 | fi | ||
36512 | |||
36513 | |||
36514 | # Name of the executable. | ||
36515 | as_me=`$as_basename -- "$0" || | ||
36516 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
36517 | X"$0" : 'X\(//\)$' \| \ | ||
36518 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
36519 | echo X/"$0" | | ||
36520 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
36521 | s//\1/ | ||
36522 | q | ||
36523 | } | ||
36524 | /^X\/\(\/\/\)$/{ | ||
36525 | s//\1/ | ||
36526 | q | ||
36527 | } | ||
36528 | /^X\/\(\/\).*/{ | ||
36529 | s//\1/ | ||
36530 | q | ||
36531 | } | ||
36532 | s/.*/./; q'` | ||
36533 | |||
36534 | # CDPATH. | ||
36535 | $as_unset CDPATH | ||
36536 | |||
36537 | |||
36538 | |||
36539 | as_lineno_1=$LINENO | ||
36540 | as_lineno_2=$LINENO | ||
36541 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
36542 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
36543 | |||
36544 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
36545 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
36546 | # line-number line after each line using $LINENO; the second 'sed' | ||
36547 | # does the real work. The second script uses 'N' to pair each | ||
36548 | # line-number line with the line containing $LINENO, and appends | ||
36549 | # trailing '-' during substitution so that $LINENO is not a special | ||
36550 | # case at line end. | ||
36551 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
36552 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
36553 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
36554 | sed -n ' | ||
36555 | p | ||
36556 | /[$]LINENO/= | ||
36557 | ' <$as_myself | | ||
36558 | sed ' | ||
36559 | s/[$]LINENO.*/&-/ | ||
36560 | t lineno | ||
36561 | b | ||
36562 | :lineno | ||
36563 | N | ||
36564 | :loop | ||
36565 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
36566 | t loop | ||
36567 | s/-\n.*// | ||
36568 | ' >$as_me.lineno && | ||
36569 | chmod +x "$as_me.lineno" || | ||
36570 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
36571 | { (exit 1); exit 1; }; } | ||
36572 | |||
36573 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
36574 | # (the dirname of $[0] is not the place where we might find the | ||
36575 | # original and so on. Autoconf is especially sensitive to this). | ||
36576 | . "./$as_me.lineno" | ||
36577 | # Exit status is that of the last command. | ||
36578 | exit | ||
36579 | } | ||
36580 | |||
36581 | |||
36582 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
36583 | as_dirname=dirname | ||
36584 | else | ||
36585 | as_dirname=false | ||
36586 | fi | ||
36587 | |||
36588 | ECHO_C= ECHO_N= ECHO_T= | ||
36589 | case `echo -n x` in | ||
36590 | -n*) | ||
36591 | case `echo 'x\c'` in | ||
36592 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
36593 | *) ECHO_C='\c';; | ||
36594 | esac;; | ||
36595 | *) | ||
36596 | ECHO_N='-n';; | ||
36597 | esac | ||
36598 | |||
36599 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
36600 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
36601 | as_expr=expr | ||
36602 | else | ||
36603 | as_expr=false | ||
36604 | fi | ||
36605 | |||
36606 | rm -f conf$$ conf$$.exe conf$$.file | ||
36607 | if test -d conf$$.dir; then | ||
36608 | rm -f conf$$.dir/conf$$.file | ||
36609 | else | ||
36610 | rm -f conf$$.dir | ||
36611 | mkdir conf$$.dir | ||
36612 | fi | ||
36613 | echo >conf$$.file | ||
36614 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
36615 | as_ln_s='ln -s' | ||
36616 | # ... but there are two gotchas: | ||
36617 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
36618 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
36619 | # In both cases, we have to default to `cp -p'. | ||
36620 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
36621 | as_ln_s='cp -p' | ||
36622 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
36623 | as_ln_s=ln | ||
36624 | else | ||
36625 | as_ln_s='cp -p' | ||
36626 | fi | ||
36627 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
36628 | rmdir conf$$.dir 2>/dev/null | ||
36629 | |||
36630 | if mkdir -p . 2>/dev/null; then | ||
36631 | as_mkdir_p=: | ||
36632 | else | ||
36633 | test -d ./-p && rmdir ./-p | ||
36634 | as_mkdir_p=false | ||
36635 | fi | ||
36636 | |||
36637 | if test -x / >/dev/null 2>&1; then | ||
36638 | as_test_x='test -x' | ||
36639 | else | ||
36640 | if ls -dL / >/dev/null 2>&1; then | ||
36641 | as_ls_L_option=L | ||
36642 | else | ||
36643 | as_ls_L_option= | ||
36644 | fi | ||
36645 | as_test_x=' | ||
36646 | eval sh -c '\'' | ||
36647 | if test -d "$1"; then | ||
36648 | test -d "$1/."; | ||
36649 | else | ||
36650 | case $1 in | ||
36651 | -*)set "./$1";; | ||
36652 | esac; | ||
36653 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | ||
36654 | ???[sx]*):;;*)false;;esac;fi | ||
36655 | '\'' sh | ||
36656 | ' | ||
36657 | fi | ||
36658 | as_executable_p=$as_test_x | ||
36659 | |||
36660 | # Sed expression to map a string onto a valid CPP name. | ||
36661 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
36662 | |||
36663 | # Sed expression to map a string onto a valid variable name. | ||
36664 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
36665 | |||
36666 | |||
36667 | exec 6>&1 | ||
36668 | |||
36669 | # Save the log message, to keep $[0] and so on meaningful, and to | ||
36670 | # report actual input values of CONFIG_FILES etc. instead of their | ||
36671 | # values after options handling. | ||
36672 | ac_log=" | ||
36673 | This file was extended by OpenSSH $as_me Portable, which was | ||
36674 | generated by GNU Autoconf 2.61. Invocation command line was | ||
36675 | |||
36676 | CONFIG_FILES = $CONFIG_FILES | ||
36677 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
36678 | CONFIG_LINKS = $CONFIG_LINKS | ||
36679 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
36680 | $ $0 $@ | ||
36681 | |||
36682 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
36683 | " | ||
36684 | |||
36685 | _ACEOF | ||
36686 | |||
36687 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36688 | # Files that config.status was made for. | ||
36689 | config_files="$ac_config_files" | ||
36690 | config_headers="$ac_config_headers" | ||
36691 | |||
36692 | _ACEOF | ||
36693 | |||
36694 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
36695 | ac_cs_usage="\ | ||
36696 | \`$as_me' instantiates files from templates according to the | ||
36697 | current configuration. | ||
36698 | |||
36699 | Usage: $0 [OPTIONS] [FILE]... | ||
36700 | |||
36701 | -h, --help print this help, then exit | ||
36702 | -V, --version print version number and configuration settings, then exit | ||
36703 | -q, --quiet do not print progress messages | ||
36704 | -d, --debug don't remove temporary files | ||
36705 | --recheck update $as_me by reconfiguring in the same conditions | ||
36706 | --file=FILE[:TEMPLATE] | ||
36707 | instantiate the configuration file FILE | ||
36708 | --header=FILE[:TEMPLATE] | ||
36709 | instantiate the configuration header FILE | ||
36710 | |||
36711 | Configuration files: | ||
36712 | $config_files | ||
36713 | |||
36714 | Configuration headers: | ||
36715 | $config_headers | ||
36716 | |||
36717 | Report bugs to <bug-autoconf@gnu.org>." | ||
36718 | |||
36719 | _ACEOF | ||
36720 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36721 | ac_cs_version="\\ | ||
36722 | OpenSSH config.status Portable | ||
36723 | configured by $0, generated by GNU Autoconf 2.61, | ||
36724 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | ||
36725 | |||
36726 | Copyright (C) 2006 Free Software Foundation, Inc. | ||
36727 | This config.status script is free software; the Free Software Foundation | ||
36728 | gives unlimited permission to copy, distribute and modify it." | ||
36729 | |||
36730 | ac_pwd='$ac_pwd' | ||
36731 | srcdir='$srcdir' | ||
36732 | INSTALL='$INSTALL' | ||
36733 | _ACEOF | ||
36734 | |||
36735 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
36736 | # If no file are specified by the user, then we need to provide default | ||
36737 | # value. By we need to know if files were specified by the user. | ||
36738 | ac_need_defaults=: | ||
36739 | while test $# != 0 | ||
36740 | do | ||
36741 | case $1 in | ||
36742 | --*=*) | ||
36743 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
36744 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
36745 | ac_shift=: | ||
36746 | ;; | ||
36747 | *) | ||
36748 | ac_option=$1 | ||
36749 | ac_optarg=$2 | ||
36750 | ac_shift=shift | ||
36751 | ;; | ||
36752 | esac | ||
36753 | |||
36754 | case $ac_option in | ||
36755 | # Handling of the options. | ||
36756 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
36757 | ac_cs_recheck=: ;; | ||
36758 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
36759 | echo "$ac_cs_version"; exit ;; | ||
36760 | --debug | --debu | --deb | --de | --d | -d ) | ||
36761 | debug=: ;; | ||
36762 | --file | --fil | --fi | --f ) | ||
36763 | $ac_shift | ||
36764 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
36765 | ac_need_defaults=false;; | ||
36766 | --header | --heade | --head | --hea ) | ||
36767 | $ac_shift | ||
36768 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
36769 | ac_need_defaults=false;; | ||
36770 | --he | --h) | ||
36771 | # Conflict between --help and --header | ||
36772 | { echo "$as_me: error: ambiguous option: $1 | ||
36773 | Try \`$0 --help' for more information." >&2 | ||
36774 | { (exit 1); exit 1; }; };; | ||
36775 | --help | --hel | -h ) | ||
36776 | echo "$ac_cs_usage"; exit ;; | ||
36777 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
36778 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
36779 | ac_cs_silent=: ;; | ||
36780 | |||
36781 | # This is an error. | ||
36782 | -*) { echo "$as_me: error: unrecognized option: $1 | ||
36783 | Try \`$0 --help' for more information." >&2 | ||
36784 | { (exit 1); exit 1; }; } ;; | ||
36785 | |||
36786 | *) ac_config_targets="$ac_config_targets $1" | ||
36787 | ac_need_defaults=false ;; | ||
36788 | |||
36789 | esac | ||
36790 | shift | ||
36791 | done | ||
36792 | |||
36793 | ac_configure_extra_args= | ||
36794 | |||
36795 | if $ac_cs_silent; then | ||
36796 | exec 6>/dev/null | ||
36797 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
36798 | fi | ||
36799 | |||
36800 | _ACEOF | ||
36801 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36802 | if \$ac_cs_recheck; then | ||
36803 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
36804 | CONFIG_SHELL=$SHELL | ||
36805 | export CONFIG_SHELL | ||
36806 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
36807 | fi | ||
36808 | |||
36809 | _ACEOF | ||
36810 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
36811 | exec 5>>config.log | ||
36812 | { | ||
36813 | echo | ||
36814 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
36815 | ## Running $as_me. ## | ||
36816 | _ASBOX | ||
36817 | echo "$ac_log" | ||
36818 | } >&5 | ||
36819 | |||
36820 | _ACEOF | ||
36821 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36822 | _ACEOF | ||
36823 | |||
36824 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
36825 | |||
36826 | # Handling of arguments. | ||
36827 | for ac_config_target in $ac_config_targets | ||
36828 | do | ||
36829 | case $ac_config_target in | ||
36830 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
36831 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
36832 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
36833 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
36834 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; | ||
36835 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
36836 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; | ||
36837 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
36838 | |||
36839 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
36840 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
36841 | { (exit 1); exit 1; }; };; | ||
36842 | esac | ||
36843 | done | ||
36844 | |||
36845 | |||
36846 | # If the user did not use the arguments to specify the items to instantiate, | ||
36847 | # then the envvar interface is used. Set only those that are not. | ||
36848 | # We use the long form for the default assignment because of an extremely | ||
36849 | # bizarre bug on SunOS 4.1.3. | ||
36850 | if $ac_need_defaults; then | ||
36851 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
36852 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
36853 | fi | ||
36854 | |||
36855 | # Have a temporary directory for convenience. Make it in the build tree | ||
36856 | # simply because there is no reason against having it here, and in addition, | ||
36857 | # creating and moving files from /tmp can sometimes cause problems. | ||
36858 | # Hook for its removal unless debugging. | ||
36859 | # Note that there is a small window in which the directory will not be cleaned: | ||
36860 | # after its creation but before its name has been assigned to `$tmp'. | ||
36861 | $debug || | ||
36862 | { | ||
36863 | tmp= | ||
36864 | trap 'exit_status=$? | ||
36865 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
36866 | ' 0 | ||
36867 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
36868 | } | ||
36869 | # Create a (secure) tmp directory for tmp files. | ||
36870 | |||
36871 | { | ||
36872 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
36873 | test -n "$tmp" && test -d "$tmp" | ||
36874 | } || | ||
36875 | { | ||
36876 | tmp=./conf$$-$RANDOM | ||
36877 | (umask 077 && mkdir "$tmp") | ||
36878 | } || | ||
36879 | { | ||
36880 | echo "$me: cannot create a temporary directory in ." >&2 | ||
36881 | { (exit 1); exit 1; } | ||
36882 | } | ||
36883 | |||
36884 | # | ||
36885 | # Set up the sed scripts for CONFIG_FILES section. | ||
36886 | # | ||
36887 | |||
36888 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
36889 | # This happens for instance when ./config.status config.h | ||
36890 | if test -n "$CONFIG_FILES"; then | ||
36891 | |||
36892 | _ACEOF | ||
36893 | |||
36894 | |||
36895 | |||
36896 | ac_delim='%!_!# ' | ||
36897 | for ac_last_try in false false false false false :; do | ||
36898 | cat >conf$$subs.sed <<_ACEOF | ||
36899 | SHELL!$SHELL$ac_delim | ||
36900 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | ||
36901 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | ||
36902 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | ||
36903 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | ||
36904 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | ||
36905 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | ||
36906 | exec_prefix!$exec_prefix$ac_delim | ||
36907 | prefix!$prefix$ac_delim | ||
36908 | program_transform_name!$program_transform_name$ac_delim | ||
36909 | bindir!$bindir$ac_delim | ||
36910 | sbindir!$sbindir$ac_delim | ||
36911 | libexecdir!$libexecdir$ac_delim | ||
36912 | datarootdir!$datarootdir$ac_delim | ||
36913 | datadir!$datadir$ac_delim | ||
36914 | sysconfdir!$sysconfdir$ac_delim | ||
36915 | sharedstatedir!$sharedstatedir$ac_delim | ||
36916 | localstatedir!$localstatedir$ac_delim | ||
36917 | includedir!$includedir$ac_delim | ||
36918 | oldincludedir!$oldincludedir$ac_delim | ||
36919 | docdir!$docdir$ac_delim | ||
36920 | infodir!$infodir$ac_delim | ||
36921 | htmldir!$htmldir$ac_delim | ||
36922 | dvidir!$dvidir$ac_delim | ||
36923 | pdfdir!$pdfdir$ac_delim | ||
36924 | psdir!$psdir$ac_delim | ||
36925 | libdir!$libdir$ac_delim | ||
36926 | localedir!$localedir$ac_delim | ||
36927 | mandir!$mandir$ac_delim | ||
36928 | DEFS!$DEFS$ac_delim | ||
36929 | ECHO_C!$ECHO_C$ac_delim | ||
36930 | ECHO_N!$ECHO_N$ac_delim | ||
36931 | ECHO_T!$ECHO_T$ac_delim | ||
36932 | LIBS!$LIBS$ac_delim | ||
36933 | build_alias!$build_alias$ac_delim | ||
36934 | host_alias!$host_alias$ac_delim | ||
36935 | target_alias!$target_alias$ac_delim | ||
36936 | CC!$CC$ac_delim | ||
36937 | CFLAGS!$CFLAGS$ac_delim | ||
36938 | LDFLAGS!$LDFLAGS$ac_delim | ||
36939 | CPPFLAGS!$CPPFLAGS$ac_delim | ||
36940 | ac_ct_CC!$ac_ct_CC$ac_delim | ||
36941 | EXEEXT!$EXEEXT$ac_delim | ||
36942 | OBJEXT!$OBJEXT$ac_delim | ||
36943 | build!$build$ac_delim | ||
36944 | build_cpu!$build_cpu$ac_delim | ||
36945 | build_vendor!$build_vendor$ac_delim | ||
36946 | build_os!$build_os$ac_delim | ||
36947 | host!$host$ac_delim | ||
36948 | host_cpu!$host_cpu$ac_delim | ||
36949 | host_vendor!$host_vendor$ac_delim | ||
36950 | host_os!$host_os$ac_delim | ||
36951 | CPP!$CPP$ac_delim | ||
36952 | GREP!$GREP$ac_delim | ||
36953 | EGREP!$EGREP$ac_delim | ||
36954 | AWK!$AWK$ac_delim | ||
36955 | RANLIB!$RANLIB$ac_delim | ||
36956 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | ||
36957 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | ||
36958 | INSTALL_DATA!$INSTALL_DATA$ac_delim | ||
36959 | AR!$AR$ac_delim | ||
36960 | ac_ct_AR!$ac_ct_AR$ac_delim | ||
36961 | CAT!$CAT$ac_delim | ||
36962 | KILL!$KILL$ac_delim | ||
36963 | PERL!$PERL$ac_delim | ||
36964 | SED!$SED$ac_delim | ||
36965 | ENT!$ENT$ac_delim | ||
36966 | TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim | ||
36967 | SH!$SH$ac_delim | ||
36968 | GROFF!$GROFF$ac_delim | ||
36969 | NROFF!$NROFF$ac_delim | ||
36970 | MANDOC!$MANDOC$ac_delim | ||
36971 | TEST_SHELL!$TEST_SHELL$ac_delim | ||
36972 | MANFMT!$MANFMT$ac_delim | ||
36973 | PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim | ||
36974 | PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim | ||
36975 | MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim | ||
36976 | STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim | ||
36977 | LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim | ||
36978 | PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim | ||
36979 | LD!$LD$ac_delim | ||
36980 | PKGCONFIG!$PKGCONFIG$ac_delim | ||
36981 | LIBEDIT!$LIBEDIT$ac_delim | ||
36982 | TEST_SSH_ECC!$TEST_SSH_ECC$ac_delim | ||
36983 | COMMENT_OUT_ECC!$COMMENT_OUT_ECC$ac_delim | ||
36984 | SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim | ||
36985 | SSHLIBS!$SSHLIBS$ac_delim | ||
36986 | SSHDLIBS!$SSHDLIBS$ac_delim | ||
36987 | KRB5CONF!$KRB5CONF$ac_delim | ||
36988 | GSSLIBS!$GSSLIBS$ac_delim | ||
36989 | K5LIBS!$K5LIBS$ac_delim | ||
36990 | PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim | ||
36991 | xauth_path!$xauth_path$ac_delim | ||
36992 | STRIP_OPT!$STRIP_OPT$ac_delim | ||
36993 | XAUTH_PATH!$XAUTH_PATH$ac_delim | ||
36994 | MANTYPE!$MANTYPE$ac_delim | ||
36995 | mansubdir!$mansubdir$ac_delim | ||
36996 | _ACEOF | ||
36997 | |||
36998 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | ||
36999 | break | ||
37000 | elif $ac_last_try; then | ||
37001 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
37002 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
37003 | { (exit 1); exit 1; }; } | ||
37004 | else | ||
37005 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
37006 | fi | ||
37007 | done | ||
37008 | |||
37009 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
37010 | if test -n "$ac_eof"; then | ||
37011 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
37012 | ac_eof=`expr $ac_eof + 1` | ||
37013 | fi | ||
37014 | |||
37015 | cat >>$CONFIG_STATUS <<_ACEOF | ||
37016 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | ||
37017 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
37018 | _ACEOF | ||
37019 | sed ' | ||
37020 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
37021 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
37022 | :n | ||
37023 | t n | ||
37024 | s/'"$ac_delim"'$/,g/; t | ||
37025 | s/$/\\/; p | ||
37026 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
37027 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
37028 | rm -f conf$$subs.sed | ||
37029 | cat >>$CONFIG_STATUS <<_ACEOF | ||
37030 | CEOF$ac_eof | ||
37031 | _ACEOF | ||
37032 | |||
37033 | |||
37034 | ac_delim='%!_!# ' | ||
37035 | for ac_last_try in false false false false false :; do | ||
37036 | cat >conf$$subs.sed <<_ACEOF | ||
37037 | user_path!$user_path$ac_delim | ||
37038 | piddir!$piddir$ac_delim | ||
37039 | TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim | ||
37040 | TEST_MALLOC_OPTIONS!$TEST_MALLOC_OPTIONS$ac_delim | ||
37041 | UNSUPPORTED_ALGORITHMS!$UNSUPPORTED_ALGORITHMS$ac_delim | ||
37042 | LIBOBJS!$LIBOBJS$ac_delim | ||
37043 | LTLIBOBJS!$LTLIBOBJS$ac_delim | ||
37044 | _ACEOF | ||
37045 | |||
37046 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then | ||
37047 | break | ||
37048 | elif $ac_last_try; then | ||
37049 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
37050 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
37051 | { (exit 1); exit 1; }; } | ||
37052 | else | ||
37053 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
37054 | fi | ||
37055 | done | ||
37056 | |||
37057 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
37058 | if test -n "$ac_eof"; then | ||
37059 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
37060 | ac_eof=`expr $ac_eof + 1` | ||
37061 | fi | ||
37062 | |||
37063 | cat >>$CONFIG_STATUS <<_ACEOF | ||
37064 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | ||
37065 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | ||
37066 | _ACEOF | ||
37067 | sed ' | ||
37068 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
37069 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
37070 | :n | ||
37071 | t n | ||
37072 | s/'"$ac_delim"'$/,g/; t | ||
37073 | s/$/\\/; p | ||
37074 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
37075 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
37076 | rm -f conf$$subs.sed | ||
37077 | cat >>$CONFIG_STATUS <<_ACEOF | ||
37078 | :end | ||
37079 | s/|#_!!_#|//g | ||
37080 | CEOF$ac_eof | ||
37081 | _ACEOF | ||
37082 | |||
37083 | |||
37084 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
37085 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
37086 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
37087 | # (actually we leave an empty line to preserve line numbers). | ||
37088 | if test "x$srcdir" = x.; then | ||
37089 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
37090 | s/:*\$(srcdir):*/:/ | ||
37091 | s/:*\${srcdir}:*/:/ | ||
37092 | s/:*@srcdir@:*/:/ | ||
37093 | s/^\([^=]*=[ ]*\):*/\1/ | ||
37094 | s/:*$// | ||
37095 | s/^[^=]*=[ ]*$// | ||
37096 | }' | ||
37097 | fi | ||
37098 | |||
37099 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
37100 | fi # test -n "$CONFIG_FILES" | ||
37101 | |||
37102 | |||
37103 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | ||
37104 | do | ||
37105 | case $ac_tag in | ||
37106 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
37107 | esac | ||
37108 | case $ac_mode$ac_tag in | ||
37109 | :[FHL]*:*);; | ||
37110 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | ||
37111 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | ||
37112 | { (exit 1); exit 1; }; };; | ||
37113 | :[FH]-) ac_tag=-:-;; | ||
37114 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
37115 | esac | ||
37116 | ac_save_IFS=$IFS | ||
37117 | IFS=: | ||
37118 | set x $ac_tag | ||
37119 | IFS=$ac_save_IFS | ||
37120 | shift | ||
37121 | ac_file=$1 | ||
37122 | shift | ||
37123 | |||
37124 | case $ac_mode in | ||
37125 | :L) ac_source=$1;; | ||
37126 | :[FH]) | ||
37127 | ac_file_inputs= | ||
37128 | for ac_f | ||
37129 | do | ||
37130 | case $ac_f in | ||
37131 | -) ac_f="$tmp/stdin";; | ||
37132 | *) # Look for the file first in the build tree, then in the source tree | ||
37133 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
37134 | # because $ac_f cannot contain `:'. | ||
37135 | test -f "$ac_f" || | ||
37136 | case $ac_f in | ||
37137 | [\\/$]*) false;; | ||
37138 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
37139 | esac || | ||
37140 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | ||
37141 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | ||
37142 | { (exit 1); exit 1; }; };; | ||
37143 | esac | ||
37144 | ac_file_inputs="$ac_file_inputs $ac_f" | ||
37145 | done | ||
37146 | |||
37147 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
37148 | # use $as_me), people would be surprised to read: | ||
37149 | # /* config.h. Generated by config.status. */ | ||
37150 | configure_input="Generated from "`IFS=: | ||
37151 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | ||
37152 | if test x"$ac_file" != x-; then | ||
37153 | configure_input="$ac_file. $configure_input" | ||
37154 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
37155 | echo "$as_me: creating $ac_file" >&6;} | ||
37156 | fi | ||
37157 | |||
37158 | case $ac_tag in | ||
37159 | *:-:* | *:-) cat >"$tmp/stdin";; | ||
37160 | esac | ||
37161 | ;; | ||
37162 | esac | ||
37163 | |||
37164 | ac_dir=`$as_dirname -- "$ac_file" || | ||
37165 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
37166 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
37167 | X"$ac_file" : 'X\(//\)$' \| \ | ||
37168 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
37169 | echo X"$ac_file" | | ||
37170 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
37171 | s//\1/ | ||
37172 | q | ||
37173 | } | ||
37174 | /^X\(\/\/\)[^/].*/{ | ||
37175 | s//\1/ | ||
37176 | q | ||
37177 | } | ||
37178 | /^X\(\/\/\)$/{ | ||
37179 | s//\1/ | ||
37180 | q | ||
37181 | } | ||
37182 | /^X\(\/\).*/{ | ||
37183 | s//\1/ | ||
37184 | q | ||
37185 | } | ||
37186 | s/.*/./; q'` | ||
37187 | { as_dir="$ac_dir" | ||
37188 | case $as_dir in #( | ||
37189 | -*) as_dir=./$as_dir;; | ||
37190 | esac | ||
37191 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
37192 | as_dirs= | ||
37193 | while :; do | ||
37194 | case $as_dir in #( | ||
37195 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | ||
37196 | *) as_qdir=$as_dir;; | ||
37197 | esac | ||
37198 | as_dirs="'$as_qdir' $as_dirs" | ||
37199 | as_dir=`$as_dirname -- "$as_dir" || | ||
37200 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
37201 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
37202 | X"$as_dir" : 'X\(//\)$' \| \ | ||
37203 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
37204 | echo X"$as_dir" | | ||
37205 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
37206 | s//\1/ | ||
37207 | q | ||
37208 | } | ||
37209 | /^X\(\/\/\)[^/].*/{ | ||
37210 | s//\1/ | ||
37211 | q | ||
37212 | } | ||
37213 | /^X\(\/\/\)$/{ | ||
37214 | s//\1/ | ||
37215 | q | ||
37216 | } | ||
37217 | /^X\(\/\).*/{ | ||
37218 | s//\1/ | ||
37219 | q | ||
37220 | } | ||
37221 | s/.*/./; q'` | ||
37222 | test -d "$as_dir" && break | ||
37223 | done | ||
37224 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
37225 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
37226 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
37227 | { (exit 1); exit 1; }; }; } | ||
37228 | ac_builddir=. | ||
37229 | |||
37230 | case "$ac_dir" in | ||
37231 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
37232 | *) | ||
37233 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
37234 | # A ".." for each directory in $ac_dir_suffix. | ||
37235 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
37236 | case $ac_top_builddir_sub in | ||
37237 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
37238 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
37239 | esac ;; | ||
37240 | esac | ||
37241 | ac_abs_top_builddir=$ac_pwd | ||
37242 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
37243 | # for backward compatibility: | ||
37244 | ac_top_builddir=$ac_top_build_prefix | ||
37245 | |||
37246 | case $srcdir in | ||
37247 | .) # We are building in place. | ||
37248 | ac_srcdir=. | ||
37249 | ac_top_srcdir=$ac_top_builddir_sub | ||
37250 | ac_abs_top_srcdir=$ac_pwd ;; | ||
37251 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
37252 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
37253 | ac_top_srcdir=$srcdir | ||
37254 | ac_abs_top_srcdir=$srcdir ;; | ||
37255 | *) # Relative name. | ||
37256 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
37257 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
37258 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
37259 | esac | ||
37260 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
37261 | |||
37262 | |||
37263 | case $ac_mode in | ||
37264 | :F) | ||
37265 | # | ||
37266 | # CONFIG_FILE | ||
37267 | # | ||
37268 | |||
37269 | case $INSTALL in | ||
37270 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
37271 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
37272 | esac | ||
37273 | _ACEOF | ||
37274 | |||
37275 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
37276 | # If the template does not know about datarootdir, expand it. | ||
37277 | # FIXME: This hack should be removed a few years after 2.60. | ||
37278 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
37279 | |||
37280 | case `sed -n '/datarootdir/ { | ||
37281 | p | ||
37282 | q | ||
37283 | } | ||
37284 | /@datadir@/p | ||
37285 | /@docdir@/p | ||
37286 | /@infodir@/p | ||
37287 | /@localedir@/p | ||
37288 | /@mandir@/p | ||
37289 | ' $ac_file_inputs` in | ||
37290 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
37291 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
37292 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
37293 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
37294 | _ACEOF | ||
37295 | cat >>$CONFIG_STATUS <<_ACEOF | ||
37296 | ac_datarootdir_hack=' | ||
37297 | s&@datadir@&$datadir&g | ||
37298 | s&@docdir@&$docdir&g | ||
37299 | s&@infodir@&$infodir&g | ||
37300 | s&@localedir@&$localedir&g | ||
37301 | s&@mandir@&$mandir&g | ||
37302 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
37303 | esac | ||
37304 | _ACEOF | ||
37305 | |||
37306 | # Neutralize VPATH when `$srcdir' = `.'. | ||
37307 | # Shell code in configure.ac might set extrasub. | ||
37308 | # FIXME: do we really want to maintain this feature? | ||
37309 | cat >>$CONFIG_STATUS <<_ACEOF | ||
37310 | sed "$ac_vpsub | ||
37311 | $extrasub | ||
37312 | _ACEOF | ||
37313 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
37314 | :t | ||
37315 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
37316 | s&@configure_input@&$configure_input&;t t | ||
37317 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
37318 | s&@srcdir@&$ac_srcdir&;t t | ||
37319 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
37320 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
37321 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
37322 | s&@builddir@&$ac_builddir&;t t | ||
37323 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
37324 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
37325 | s&@INSTALL@&$ac_INSTALL&;t t | ||
37326 | $ac_datarootdir_hack | ||
37327 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | ||
37328 | |||
37329 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
37330 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
37331 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
37332 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
37333 | which seems to be undefined. Please make sure it is defined." >&5 | ||
37334 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
37335 | which seems to be undefined. Please make sure it is defined." >&2;} | ||
37336 | |||
37337 | rm -f "$tmp/stdin" | ||
37338 | case $ac_file in | ||
37339 | -) cat "$tmp/out"; rm -f "$tmp/out";; | ||
37340 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | ||
37341 | esac | ||
37342 | ;; | ||
37343 | :H) | ||
37344 | # | ||
37345 | # CONFIG_HEADER | ||
37346 | # | ||
37347 | _ACEOF | ||
37348 | |||
37349 | # Transform confdefs.h into a sed script `conftest.defines', that | ||
37350 | # substitutes the proper values into config.h.in to produce config.h. | ||
37351 | rm -f conftest.defines conftest.tail | ||
37352 | # First, append a space to every undef/define line, to ease matching. | ||
37353 | echo 's/$/ /' >conftest.defines | ||
37354 | # Then, protect against being on the right side of a sed subst, or in | ||
37355 | # an unquoted here document, in config.status. If some macros were | ||
37356 | # called several times there might be several #defines for the same | ||
37357 | # symbol, which is useless. But do not sort them, since the last | ||
37358 | # AC_DEFINE must be honored. | ||
37359 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
37360 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | ||
37361 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | ||
37362 | # PARAMS is the parameter list in the macro definition--in most cases, it's | ||
37363 | # just an empty string. | ||
37364 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | ||
37365 | ac_dB='\\)[ (].*,\\1define\\2' | ||
37366 | ac_dC=' ' | ||
37367 | ac_dD=' ,' | ||
37368 | |||
37369 | uniq confdefs.h | | ||
37370 | sed -n ' | ||
37371 | t rset | ||
37372 | :rset | ||
37373 | s/^[ ]*#[ ]*define[ ][ ]*// | ||
37374 | t ok | ||
37375 | d | ||
37376 | :ok | ||
37377 | s/[\\&,]/\\&/g | ||
37378 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | ||
37379 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | ||
37380 | ' >>conftest.defines | ||
37381 | |||
37382 | # Remove the space that was appended to ease matching. | ||
37383 | # Then replace #undef with comments. This is necessary, for | ||
37384 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
37385 | # on some systems where configure will not decide to define it. | ||
37386 | # (The regexp can be short, since the line contains either #define or #undef.) | ||
37387 | echo 's/ $// | ||
37388 | s,^[ #]*u.*,/* & */,' >>conftest.defines | ||
37389 | |||
37390 | # Break up conftest.defines: | ||
37391 | ac_max_sed_lines=50 | ||
37392 | |||
37393 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | ||
37394 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | ||
37395 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | ||
37396 | # et cetera. | ||
37397 | ac_in='$ac_file_inputs' | ||
37398 | ac_out='"$tmp/out1"' | ||
37399 | ac_nxt='"$tmp/out2"' | ||
37400 | |||
37401 | while : | ||
37402 | do | ||
37403 | # Write a here document: | ||
37404 | cat >>$CONFIG_STATUS <<_ACEOF | ||
37405 | # First, check the format of the line: | ||
37406 | cat >"\$tmp/defines.sed" <<\\CEOF | ||
37407 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | ||
37408 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | ||
37409 | b | ||
37410 | :def | ||
37411 | _ACEOF | ||
37412 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | ||
37413 | echo 'CEOF | ||
37414 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | ||
37415 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | ||
37416 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | ||
37417 | grep . conftest.tail >/dev/null || break | ||
37418 | rm -f conftest.defines | ||
37419 | mv conftest.tail conftest.defines | ||
37420 | done | ||
37421 | rm -f conftest.defines conftest.tail | ||
37422 | |||
37423 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | ||
37424 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
37425 | if test x"$ac_file" != x-; then | ||
37426 | echo "/* $configure_input */" >"$tmp/config.h" | ||
37427 | cat "$ac_result" >>"$tmp/config.h" | ||
37428 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | ||
37429 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
37430 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
37431 | else | ||
37432 | rm -f $ac_file | ||
37433 | mv "$tmp/config.h" $ac_file | ||
37434 | fi | ||
37435 | else | ||
37436 | echo "/* $configure_input */" | ||
37437 | cat "$ac_result" | ||
37438 | fi | ||
37439 | rm -f "$tmp/out12" | ||
37440 | ;; | ||
37441 | |||
37442 | |||
37443 | esac | ||
37444 | |||
37445 | done # for ac_tag | ||
37446 | |||
37447 | |||
37448 | { (exit 0); exit 0; } | ||
37449 | _ACEOF | ||
37450 | chmod +x $CONFIG_STATUS | ||
37451 | ac_clean_files=$ac_clean_files_save | ||
37452 | |||
37453 | |||
37454 | # configure is writing to config.log, and then calls config.status. | ||
37455 | # config.status does its own redirection, appending to config.log. | ||
37456 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
37457 | # by configure, so config.status won't be able to write to it; its | ||
37458 | # output is simply discarded. So we exec the FD to /dev/null, | ||
37459 | # effectively closing config.log, so it can be properly (re)opened and | ||
37460 | # appended to by config.status. When coming back to configure, we | ||
37461 | # need to make the FD available again. | ||
37462 | if test "$no_create" != yes; then | ||
37463 | ac_cs_success=: | ||
37464 | ac_config_status_args= | ||
37465 | test "$silent" = yes && | ||
37466 | ac_config_status_args="$ac_config_status_args --quiet" | ||
37467 | exec 5>/dev/null | ||
37468 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
37469 | exec 5>>config.log | ||
37470 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
37471 | # would make configure fail if this is the last instruction. | ||
37472 | $ac_cs_success || { (exit 1); exit 1; } | ||
37473 | fi | ||
37474 | |||
37475 | |||
37476 | # Print summary of options | ||
37477 | |||
37478 | # Someone please show me a better way :) | ||
37479 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
37480 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
37481 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
37482 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
37483 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
37484 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
37485 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
37486 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
37487 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
37488 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
37489 | |||
37490 | echo "" | ||
37491 | echo "OpenSSH has been configured with the following options:" | ||
37492 | echo " User binaries: $B" | ||
37493 | echo " System binaries: $C" | ||
37494 | echo " Configuration files: $D" | ||
37495 | echo " Askpass program: $E" | ||
37496 | echo " Manual pages: $F" | ||
37497 | echo " PID file: $G" | ||
37498 | echo " Privilege separation chroot path: $H" | ||
37499 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
37500 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
37501 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
37502 | else | ||
37503 | echo " sshd default user PATH: $I" | ||
37504 | if test ! -z "$external_path_file"; then | ||
37505 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
37506 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
37507 | fi | ||
37508 | fi | ||
37509 | if test ! -z "$superuser_path" ; then | ||
37510 | echo " sshd superuser user PATH: $J" | ||
37511 | fi | ||
37512 | echo " Manpage format: $MANTYPE" | ||
37513 | echo " PAM support: $PAM_MSG" | ||
37514 | echo " OSF SIA support: $SIA_MSG" | ||
37515 | echo " KerberosV support: $KRB5_MSG" | ||
37516 | echo " SELinux support: $SELINUX_MSG" | ||
37517 | echo " Smartcard support: $SCARD_MSG" | ||
37518 | echo " S/KEY support: $SKEY_MSG" | ||
37519 | echo " MD5 password support: $MD5_MSG" | ||
37520 | echo " libedit support: $LIBEDIT_MSG" | ||
37521 | echo " Solaris process contract support: $SPC_MSG" | ||
37522 | echo " Solaris project support: $SP_MSG" | ||
37523 | echo " Solaris privilege support: $SPP_MSG" | ||
37524 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
37525 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
37526 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
37527 | echo " Random number source: $RAND_MSG" | ||
37528 | echo " Privsep sandbox style: $SANDBOX_STYLE" | ||
37529 | |||
37530 | echo "" | ||
37531 | |||
37532 | echo " Host: ${host}" | ||
37533 | echo " Compiler: ${CC}" | ||
37534 | echo " Compiler flags: ${CFLAGS}" | ||
37535 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
37536 | echo " Linker flags: ${LDFLAGS}" | ||
37537 | echo " Libraries: ${LIBS}" | ||
37538 | if test ! -z "${SSHDLIBS}"; then | ||
37539 | echo " +for sshd: ${SSHDLIBS}" | ||
37540 | fi | ||
37541 | if test ! -z "${SSHLIBS}"; then | ||
37542 | echo " +for ssh: ${SSHLIBS}" | ||
37543 | fi | ||
37544 | |||
37545 | echo "" | ||
37546 | |||
37547 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
37548 | echo "SVR4 style packages are supported with \"make package\"" | ||
37549 | echo "" | ||
37550 | fi | ||
37551 | |||
37552 | if test "x$PAM_MSG" = "xyes" ; then | ||
37553 | echo "PAM is enabled. You may need to install a PAM control file " | ||
37554 | echo "for sshd, otherwise password authentication may fail. " | ||
37555 | echo "Example PAM control files can be found in the contrib/ " | ||
37556 | echo "subdirectory" | ||
37557 | echo "" | ||
37558 | fi | ||
37559 | |||
37560 | if test ! -z "$NO_PEERCHECK" ; then | ||
37561 | echo "WARNING: the operating system that you are using does not" | ||
37562 | echo "appear to support getpeereid(), getpeerucred() or the" | ||
37563 | echo "SO_PEERCRED getsockopt() option. These facilities are used to" | ||
37564 | echo "enforce security checks to prevent unauthorised connections to" | ||
37565 | echo "ssh-agent. Their absence increases the risk that a malicious" | ||
37566 | echo "user can connect to your agent." | ||
37567 | echo "" | ||
37568 | fi | ||
37569 | |||
37570 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
37571 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
37572 | echo "See the Solaris section in README.platform for details." | ||
37573 | fi | ||
diff --git a/moduli.0 b/moduli.0 new file mode 100644 index 000000000..dd762af85 --- /dev/null +++ b/moduli.0 | |||
@@ -0,0 +1,74 @@ | |||
1 | MODULI(5) File Formats Manual MODULI(5) | ||
2 | |||
3 | NAME | ||
4 | moduli M-bM-^@M-^S Diffie-Hellman moduli | ||
5 | |||
6 | DESCRIPTION | ||
7 | The /etc/moduli file contains prime numbers and generators for use by | ||
8 | sshd(8) in the Diffie-Hellman Group Exchange key exchange method. | ||
9 | |||
10 | New moduli may be generated with ssh-keygen(1) using a two-step process. | ||
11 | An initial candidate generation pass, using ssh-keygen -G, calculates | ||
12 | numbers that are likely to be useful. A second primality testing pass, | ||
13 | using ssh-keygen -T, provides a high degree of assurance that the numbers | ||
14 | are prime and are safe for use in Diffie-Hellman operations by sshd(8). | ||
15 | This moduli format is used as the output from each pass. | ||
16 | |||
17 | The file consists of newline-separated records, one per modulus, | ||
18 | containing seven space-separated fields. These fields are as follows: | ||
19 | |||
20 | timestamp The time that the modulus was last processed as | ||
21 | YYYYMMDDHHMMSS. | ||
22 | |||
23 | type Decimal number specifying the internal structure of | ||
24 | the prime modulus. Supported types are: | ||
25 | |||
26 | 0 Unknown, not tested. | ||
27 | 2 "Safe" prime; (p-1)/2 is also prime. | ||
28 | 4 Sophie Germain; 2p+1 is also prime. | ||
29 | |||
30 | Moduli candidates initially produced by ssh-keygen(1) | ||
31 | are Sophie Germain primes (type 4). Further primality | ||
32 | testing with ssh-keygen(1) produces safe prime moduli | ||
33 | (type 2) that are ready for use in sshd(8). Other | ||
34 | types are not used by OpenSSH. | ||
35 | |||
36 | tests Decimal number indicating the type of primality tests | ||
37 | that the number has been subjected to represented as a | ||
38 | bitmask of the following values: | ||
39 | |||
40 | 0x00 Not tested. | ||
41 | 0x01 Composite number M-bM-^@M-^S not prime. | ||
42 | 0x02 Sieve of Eratosthenes. | ||
43 | 0x04 Probabilistic Miller-Rabin primality tests. | ||
44 | |||
45 | The ssh-keygen(1) moduli candidate generation uses the | ||
46 | Sieve of Eratosthenes (flag 0x02). Subsequent | ||
47 | ssh-keygen(1) primality tests are Miller-Rabin tests | ||
48 | (flag 0x04). | ||
49 | |||
50 | trials Decimal number indicating the number of primality | ||
51 | trials that have been performed on the modulus. | ||
52 | |||
53 | size Decimal number indicating the size of the prime in | ||
54 | bits. | ||
55 | |||
56 | generator The recommended generator for use with this modulus | ||
57 | (hexadecimal). | ||
58 | |||
59 | modulus The modulus itself in hexadecimal. | ||
60 | |||
61 | When performing Diffie-Hellman Group Exchange, sshd(8) first estimates | ||
62 | the size of the modulus required to produce enough Diffie-Hellman output | ||
63 | to sufficiently key the selected symmetric cipher. sshd(8) then randomly | ||
64 | selects a modulus from /etc/moduli that best meets the size requirement. | ||
65 | |||
66 | SEE ALSO | ||
67 | ssh-keygen(1), sshd(8) | ||
68 | |||
69 | STANDARDS | ||
70 | M. Friedl, N. Provos, and W. Simpson, Diffie-Hellman Group Exchange for | ||
71 | the Secure Shell (SSH) Transport Layer Protocol, RFC 4419, March 2006, | ||
72 | 2006. | ||
73 | |||
74 | OpenBSD 6.0 September 26, 2012 OpenBSD 6.0 | ||
@@ -0,0 +1,168 @@ | |||
1 | SCP(1) General Commands Manual SCP(1) | ||
2 | |||
3 | NAME | ||
4 | scp M-bM-^@M-^S secure copy (remote file copy program) | ||
5 | |||
6 | SYNOPSIS | ||
7 | scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] | ||
8 | [-l limit] [-o ssh_option] [-P port] [-S program] | ||
9 | [[user@]host1:]file1 ... [[user@]host2:]file2 | ||
10 | |||
11 | DESCRIPTION | ||
12 | scp copies files between hosts on a network. It uses ssh(1) for data | ||
13 | transfer, and uses the same authentication and provides the same security | ||
14 | as ssh(1). scp will ask for passwords or passphrases if they are needed | ||
15 | for authentication. | ||
16 | |||
17 | File names may contain a user and host specification to indicate that the | ||
18 | file is to be copied to/from that host. Local file names can be made | ||
19 | explicit using absolute or relative pathnames to avoid scp treating file | ||
20 | names containing M-bM-^@M-^X:M-bM-^@M-^Y as host specifiers. Copies between two remote hosts | ||
21 | are also permitted. | ||
22 | |||
23 | The options are as follows: | ||
24 | |||
25 | -1 Forces scp to use protocol 1. | ||
26 | |||
27 | -2 Forces scp to use protocol 2. | ||
28 | |||
29 | -3 Copies between two remote hosts are transferred through the local | ||
30 | host. Without this option the data is copied directly between | ||
31 | the two remote hosts. Note that this option disables the | ||
32 | progress meter. | ||
33 | |||
34 | -4 Forces scp to use IPv4 addresses only. | ||
35 | |||
36 | -6 Forces scp to use IPv6 addresses only. | ||
37 | |||
38 | -B Selects batch mode (prevents asking for passwords or | ||
39 | passphrases). | ||
40 | |||
41 | -C Compression enable. Passes the -C flag to ssh(1) to enable | ||
42 | compression. | ||
43 | |||
44 | -c cipher | ||
45 | Selects the cipher to use for encrypting the data transfer. This | ||
46 | option is directly passed to ssh(1). | ||
47 | |||
48 | -F ssh_config | ||
49 | Specifies an alternative per-user configuration file for ssh. | ||
50 | This option is directly passed to ssh(1). | ||
51 | |||
52 | -i identity_file | ||
53 | Selects the file from which the identity (private key) for public | ||
54 | key authentication is read. This option is directly passed to | ||
55 | ssh(1). | ||
56 | |||
57 | -l limit | ||
58 | Limits the used bandwidth, specified in Kbit/s. | ||
59 | |||
60 | -o ssh_option | ||
61 | Can be used to pass options to ssh in the format used in | ||
62 | ssh_config(5). This is useful for specifying options for which | ||
63 | there is no separate scp command-line flag. For full details of | ||
64 | the options listed below, and their possible values, see | ||
65 | ssh_config(5). | ||
66 | |||
67 | AddressFamily | ||
68 | BatchMode | ||
69 | BindAddress | ||
70 | CanonicalDomains | ||
71 | CanonicalizeFallbackLocal | ||
72 | CanonicalizeHostname | ||
73 | CanonicalizeMaxDots | ||
74 | CanonicalizePermittedCNAMEs | ||
75 | CertificateFile | ||
76 | ChallengeResponseAuthentication | ||
77 | CheckHostIP | ||
78 | Cipher | ||
79 | Ciphers | ||
80 | Compression | ||
81 | CompressionLevel | ||
82 | ConnectionAttempts | ||
83 | ConnectTimeout | ||
84 | ControlMaster | ||
85 | ControlPath | ||
86 | ControlPersist | ||
87 | GlobalKnownHostsFile | ||
88 | GSSAPIAuthentication | ||
89 | GSSAPIDelegateCredentials | ||
90 | HashKnownHosts | ||
91 | Host | ||
92 | HostbasedAuthentication | ||
93 | HostbasedKeyTypes | ||
94 | HostKeyAlgorithms | ||
95 | HostKeyAlias | ||
96 | HostName | ||
97 | IdentitiesOnly | ||
98 | IdentityAgent | ||
99 | IdentityFile | ||
100 | IPQoS | ||
101 | KbdInteractiveAuthentication | ||
102 | KbdInteractiveDevices | ||
103 | KexAlgorithms | ||
104 | LogLevel | ||
105 | MACs | ||
106 | NoHostAuthenticationForLocalhost | ||
107 | NumberOfPasswordPrompts | ||
108 | PasswordAuthentication | ||
109 | PKCS11Provider | ||
110 | Port | ||
111 | PreferredAuthentications | ||
112 | Protocol | ||
113 | ProxyCommand | ||
114 | ProxyJump | ||
115 | PubkeyAcceptedKeyTypes | ||
116 | PubkeyAuthentication | ||
117 | RekeyLimit | ||
118 | RhostsRSAAuthentication | ||
119 | RSAAuthentication | ||
120 | SendEnv | ||
121 | ServerAliveInterval | ||
122 | ServerAliveCountMax | ||
123 | StrictHostKeyChecking | ||
124 | TCPKeepAlive | ||
125 | UpdateHostKeys | ||
126 | UsePrivilegedPort | ||
127 | User | ||
128 | UserKnownHostsFile | ||
129 | VerifyHostKeyDNS | ||
130 | |||
131 | -P port | ||
132 | Specifies the port to connect to on the remote host. Note that | ||
133 | this option is written with a capital M-bM-^@M-^XPM-bM-^@M-^Y, because -p is already | ||
134 | reserved for preserving the times and modes of the file. | ||
135 | |||
136 | -p Preserves modification times, access times, and modes from the | ||
137 | original file. | ||
138 | |||
139 | -q Quiet mode: disables the progress meter as well as warning and | ||
140 | diagnostic messages from ssh(1). | ||
141 | |||
142 | -r Recursively copy entire directories. Note that scp follows | ||
143 | symbolic links encountered in the tree traversal. | ||
144 | |||
145 | -S program | ||
146 | Name of program to use for the encrypted connection. The program | ||
147 | must understand ssh(1) options. | ||
148 | |||
149 | -v Verbose mode. Causes scp and ssh(1) to print debugging messages | ||
150 | about their progress. This is helpful in debugging connection, | ||
151 | authentication, and configuration problems. | ||
152 | |||
153 | EXIT STATUS | ||
154 | The scp utility exitsM-BM- 0 on success, andM-BM- >0 if an error occurs. | ||
155 | |||
156 | SEE ALSO | ||
157 | sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh_config(5), | ||
158 | sshd(8) | ||
159 | |||
160 | HISTORY | ||
161 | scp is based on the rcp program in BSD source code from the Regents of | ||
162 | the University of California. | ||
163 | |||
164 | AUTHORS | ||
165 | Timo Rinne <tri@iki.fi> | ||
166 | Tatu Ylonen <ylo@cs.hut.fi> | ||
167 | |||
168 | OpenBSD 6.0 July 16, 2016 OpenBSD 6.0 | ||
diff --git a/sftp-server.0 b/sftp-server.0 new file mode 100644 index 000000000..20d477d49 --- /dev/null +++ b/sftp-server.0 | |||
@@ -0,0 +1,96 @@ | |||
1 | SFTP-SERVER(8) System Manager's Manual SFTP-SERVER(8) | ||
2 | |||
3 | NAME | ||
4 | sftp-server M-bM-^@M-^S SFTP server subsystem | ||
5 | |||
6 | SYNOPSIS | ||
7 | sftp-server [-ehR] [-d start_directory] [-f log_facility] [-l log_level] | ||
8 | [-P blacklisted_requests] [-p whitelisted_requests] | ||
9 | [-u umask] | ||
10 | sftp-server -Q protocol_feature | ||
11 | |||
12 | DESCRIPTION | ||
13 | sftp-server is a program that speaks the server side of SFTP protocol to | ||
14 | stdout and expects client requests from stdin. sftp-server is not | ||
15 | intended to be called directly, but from sshd(8) using the Subsystem | ||
16 | option. | ||
17 | |||
18 | Command-line flags to sftp-server should be specified in the Subsystem | ||
19 | declaration. See sshd_config(5) for more information. | ||
20 | |||
21 | Valid options are: | ||
22 | |||
23 | -d start_directory | ||
24 | specifies an alternate starting directory for users. The | ||
25 | pathname may contain the following tokens that are expanded at | ||
26 | runtime: %% is replaced by a literal '%', %d is replaced by the | ||
27 | home directory of the user being authenticated, and %u is | ||
28 | replaced by the username of that user. The default is to use the | ||
29 | user's home directory. This option is useful in conjunction with | ||
30 | the sshd_config(5) ChrootDirectory option. | ||
31 | |||
32 | -e Causes sftp-server to print logging information to stderr instead | ||
33 | of syslog for debugging. | ||
34 | |||
35 | -f log_facility | ||
36 | Specifies the facility code that is used when logging messages | ||
37 | from sftp-server. The possible values are: DAEMON, USER, AUTH, | ||
38 | LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. | ||
39 | The default is AUTH. | ||
40 | |||
41 | -h Displays sftp-server usage information. | ||
42 | |||
43 | -l log_level | ||
44 | Specifies which messages will be logged by sftp-server. The | ||
45 | possible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, | ||
46 | DEBUG1, DEBUG2, and DEBUG3. INFO and VERBOSE log transactions | ||
47 | that sftp-server performs on behalf of the client. DEBUG and | ||
48 | DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify higher | ||
49 | levels of debugging output. The default is ERROR. | ||
50 | |||
51 | -P blacklisted_requests | ||
52 | Specify a comma-separated list of SFTP protocol requests that are | ||
53 | banned by the server. sftp-server will reply to any blacklisted | ||
54 | request with a failure. The -Q flag can be used to determine the | ||
55 | supported request types. If both a blacklist and a whitelist are | ||
56 | specified, then the blacklist is applied before the whitelist. | ||
57 | |||
58 | -p whitelisted_requests | ||
59 | Specify a comma-separated list of SFTP protocol requests that are | ||
60 | permitted by the server. All request types that are not on the | ||
61 | whitelist will be logged and replied to with a failure message. | ||
62 | |||
63 | Care must be taken when using this feature to ensure that | ||
64 | requests made implicitly by SFTP clients are permitted. | ||
65 | |||
66 | -Q protocol_feature | ||
67 | Query protocol features supported by sftp-server. At present the | ||
68 | only feature that may be queried is M-bM-^@M-^\requestsM-bM-^@M-^], which may be used | ||
69 | for black or whitelisting (flags -P and -p respectively). | ||
70 | |||
71 | -R Places this instance of sftp-server into a read-only mode. | ||
72 | Attempts to open files for writing, as well as other operations | ||
73 | that change the state of the filesystem, will be denied. | ||
74 | |||
75 | -u umask | ||
76 | Sets an explicit umask(2) to be applied to newly-created files | ||
77 | and directories, instead of the user's default mask. | ||
78 | |||
79 | On some systems, sftp-server must be able to access /dev/log for logging | ||
80 | to work, and use of sftp-server in a chroot configuration therefore | ||
81 | requires that syslogd(8) establish a logging socket inside the chroot | ||
82 | directory. | ||
83 | |||
84 | SEE ALSO | ||
85 | sftp(1), ssh(1), sshd_config(5), sshd(8) | ||
86 | |||
87 | T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh- | ||
88 | filexfer-02.txt, October 2001, work in progress material. | ||
89 | |||
90 | HISTORY | ||
91 | sftp-server first appeared in OpenBSD 2.8. | ||
92 | |||
93 | AUTHORS | ||
94 | Markus Friedl <markus@openbsd.org> | ||
95 | |||
96 | OpenBSD 6.0 December 11, 2014 OpenBSD 6.0 | ||
@@ -0,0 +1,386 @@ | |||
1 | SFTP(1) General Commands Manual SFTP(1) | ||
2 | |||
3 | NAME | ||
4 | sftp M-bM-^@M-^S secure file transfer program | ||
5 | |||
6 | SYNOPSIS | ||
7 | sftp [-1246aCfpqrv] [-B buffer_size] [-b batchfile] [-c cipher] | ||
8 | [-D sftp_server_path] [-F ssh_config] [-i identity_file] [-l limit] | ||
9 | [-o ssh_option] [-P port] [-R num_requests] [-S program] | ||
10 | [-s subsystem | sftp_server] host | ||
11 | sftp [user@]host[:file ...] | ||
12 | sftp [user@]host[:dir[/]] | ||
13 | sftp -b batchfile [user@]host | ||
14 | |||
15 | DESCRIPTION | ||
16 | sftp is an interactive file transfer program, similar to ftp(1), which | ||
17 | performs all operations over an encrypted ssh(1) transport. It may also | ||
18 | use many features of ssh, such as public key authentication and | ||
19 | compression. sftp connects and logs into the specified host, then enters | ||
20 | an interactive command mode. | ||
21 | |||
22 | The second usage format will retrieve files automatically if a non- | ||
23 | interactive authentication method is used; otherwise it will do so after | ||
24 | successful interactive authentication. | ||
25 | |||
26 | The third usage format allows sftp to start in a remote directory. | ||
27 | |||
28 | The final usage format allows for automated sessions using the -b option. | ||
29 | In such cases, it is necessary to configure non-interactive | ||
30 | authentication to obviate the need to enter a password at connection time | ||
31 | (see sshd(8) and ssh-keygen(1) for details). | ||
32 | |||
33 | Since some usage formats use colon characters to delimit host names from | ||
34 | path names, IPv6 addresses must be enclosed in square brackets to avoid | ||
35 | ambiguity. | ||
36 | |||
37 | The options are as follows: | ||
38 | |||
39 | -1 Specify the use of protocol version 1. | ||
40 | |||
41 | -2 Specify the use of protocol version 2. | ||
42 | |||
43 | -4 Forces sftp to use IPv4 addresses only. | ||
44 | |||
45 | -6 Forces sftp to use IPv6 addresses only. | ||
46 | |||
47 | -a Attempt to continue interrupted transfers rather than overwriting | ||
48 | existing partial or complete copies of files. If the partial | ||
49 | contents differ from those being transferred, then the resultant | ||
50 | file is likely to be corrupt. | ||
51 | |||
52 | -B buffer_size | ||
53 | Specify the size of the buffer that sftp uses when transferring | ||
54 | files. Larger buffers require fewer round trips at the cost of | ||
55 | higher memory consumption. The default is 32768 bytes. | ||
56 | |||
57 | -b batchfile | ||
58 | Batch mode reads a series of commands from an input batchfile | ||
59 | instead of stdin. Since it lacks user interaction it should be | ||
60 | used in conjunction with non-interactive authentication. A | ||
61 | batchfile of M-bM-^@M-^X-M-bM-^@M-^Y may be used to indicate standard input. sftp | ||
62 | will abort if any of the following commands fail: get, put, | ||
63 | reget, reput, rename, ln, rm, mkdir, chdir, ls, lchdir, chmod, | ||
64 | chown, chgrp, lpwd, df, symlink, and lmkdir. Termination on | ||
65 | error can be suppressed on a command by command basis by | ||
66 | prefixing the command with a M-bM-^@M-^X-M-bM-^@M-^Y character (for example, -rm | ||
67 | /tmp/blah*). | ||
68 | |||
69 | -C Enables compression (via ssh's -C flag). | ||
70 | |||
71 | -c cipher | ||
72 | Selects the cipher to use for encrypting the data transfers. | ||
73 | This option is directly passed to ssh(1). | ||
74 | |||
75 | -D sftp_server_path | ||
76 | Connect directly to a local sftp server (rather than via ssh(1)). | ||
77 | This option may be useful in debugging the client and server. | ||
78 | |||
79 | -F ssh_config | ||
80 | Specifies an alternative per-user configuration file for ssh(1). | ||
81 | This option is directly passed to ssh(1). | ||
82 | |||
83 | -f Requests that files be flushed to disk immediately after | ||
84 | transfer. When uploading files, this feature is only enabled if | ||
85 | the server implements the "fsync@openssh.com" extension. | ||
86 | |||
87 | -i identity_file | ||
88 | Selects the file from which the identity (private key) for public | ||
89 | key authentication is read. This option is directly passed to | ||
90 | ssh(1). | ||
91 | |||
92 | -l limit | ||
93 | Limits the used bandwidth, specified in Kbit/s. | ||
94 | |||
95 | -o ssh_option | ||
96 | Can be used to pass options to ssh in the format used in | ||
97 | ssh_config(5). This is useful for specifying options for which | ||
98 | there is no separate sftp command-line flag. For example, to | ||
99 | specify an alternate port use: sftp -oPort=24. For full details | ||
100 | of the options listed below, and their possible values, see | ||
101 | ssh_config(5). | ||
102 | |||
103 | AddressFamily | ||
104 | BatchMode | ||
105 | BindAddress | ||
106 | CanonicalDomains | ||
107 | CanonicalizeFallbackLocal | ||
108 | CanonicalizeHostname | ||
109 | CanonicalizeMaxDots | ||
110 | CanonicalizePermittedCNAMEs | ||
111 | CertificateFile | ||
112 | ChallengeResponseAuthentication | ||
113 | CheckHostIP | ||
114 | Cipher | ||
115 | Ciphers | ||
116 | Compression | ||
117 | CompressionLevel | ||
118 | ConnectionAttempts | ||
119 | ConnectTimeout | ||
120 | ControlMaster | ||
121 | ControlPath | ||
122 | ControlPersist | ||
123 | GlobalKnownHostsFile | ||
124 | GSSAPIAuthentication | ||
125 | GSSAPIDelegateCredentials | ||
126 | HashKnownHosts | ||
127 | Host | ||
128 | HostbasedAuthentication | ||
129 | HostbasedKeyTypes | ||
130 | HostKeyAlgorithms | ||
131 | HostKeyAlias | ||
132 | HostName | ||
133 | IdentitiesOnly | ||
134 | IdentityAgent | ||
135 | IdentityFile | ||
136 | IPQoS | ||
137 | KbdInteractiveAuthentication | ||
138 | KbdInteractiveDevices | ||
139 | KexAlgorithms | ||
140 | LogLevel | ||
141 | MACs | ||
142 | NoHostAuthenticationForLocalhost | ||
143 | NumberOfPasswordPrompts | ||
144 | PasswordAuthentication | ||
145 | PKCS11Provider | ||
146 | Port | ||
147 | PreferredAuthentications | ||
148 | Protocol | ||
149 | ProxyCommand | ||
150 | ProxyJump | ||
151 | PubkeyAuthentication | ||
152 | RekeyLimit | ||
153 | RhostsRSAAuthentication | ||
154 | RSAAuthentication | ||
155 | SendEnv | ||
156 | ServerAliveInterval | ||
157 | ServerAliveCountMax | ||
158 | StrictHostKeyChecking | ||
159 | TCPKeepAlive | ||
160 | UpdateHostKeys | ||
161 | UsePrivilegedPort | ||
162 | User | ||
163 | UserKnownHostsFile | ||
164 | VerifyHostKeyDNS | ||
165 | |||
166 | -P port | ||
167 | Specifies the port to connect to on the remote host. | ||
168 | |||
169 | -p Preserves modification times, access times, and modes from the | ||
170 | original files transferred. | ||
171 | |||
172 | -q Quiet mode: disables the progress meter as well as warning and | ||
173 | diagnostic messages from ssh(1). | ||
174 | |||
175 | -R num_requests | ||
176 | Specify how many requests may be outstanding at any one time. | ||
177 | Increasing this may slightly improve file transfer speed but will | ||
178 | increase memory usage. The default is 64 outstanding requests. | ||
179 | |||
180 | -r Recursively copy entire directories when uploading and | ||
181 | downloading. Note that sftp does not follow symbolic links | ||
182 | encountered in the tree traversal. | ||
183 | |||
184 | -S program | ||
185 | Name of the program to use for the encrypted connection. The | ||
186 | program must understand ssh(1) options. | ||
187 | |||
188 | -s subsystem | sftp_server | ||
189 | Specifies the SSH2 subsystem or the path for an sftp server on | ||
190 | the remote host. A path is useful for using sftp over protocol | ||
191 | version 1, or when the remote sshd(8) does not have an sftp | ||
192 | subsystem configured. | ||
193 | |||
194 | -v Raise logging level. This option is also passed to ssh. | ||
195 | |||
196 | INTERACTIVE COMMANDS | ||
197 | Once in interactive mode, sftp understands a set of commands similar to | ||
198 | those of ftp(1). Commands are case insensitive. Pathnames that contain | ||
199 | spaces must be enclosed in quotes. Any special characters contained | ||
200 | within pathnames that are recognized by glob(3) must be escaped with | ||
201 | backslashes (M-bM-^@M-^X\M-bM-^@M-^Y). | ||
202 | |||
203 | bye Quit sftp. | ||
204 | |||
205 | cd path | ||
206 | Change remote directory to path. | ||
207 | |||
208 | chgrp grp path | ||
209 | Change group of file path to grp. path may contain glob(3) | ||
210 | characters and may match multiple files. grp must be a numeric | ||
211 | GID. | ||
212 | |||
213 | chmod mode path | ||
214 | Change permissions of file path to mode. path may contain | ||
215 | glob(3) characters and may match multiple files. | ||
216 | |||
217 | chown own path | ||
218 | Change owner of file path to own. path may contain glob(3) | ||
219 | characters and may match multiple files. own must be a numeric | ||
220 | UID. | ||
221 | |||
222 | df [-hi] [path] | ||
223 | Display usage information for the filesystem holding the current | ||
224 | directory (or path if specified). If the -h flag is specified, | ||
225 | the capacity information will be displayed using "human-readable" | ||
226 | suffixes. The -i flag requests display of inode information in | ||
227 | addition to capacity information. This command is only supported | ||
228 | on servers that implement the M-bM-^@M-^\statvfs@openssh.comM-bM-^@M-^] extension. | ||
229 | |||
230 | exit Quit sftp. | ||
231 | |||
232 | get [-afPpr] remote-path [local-path] | ||
233 | Retrieve the remote-path and store it on the local machine. If | ||
234 | the local path name is not specified, it is given the same name | ||
235 | it has on the remote machine. remote-path may contain glob(3) | ||
236 | characters and may match multiple files. If it does and | ||
237 | local-path is specified, then local-path must specify a | ||
238 | directory. | ||
239 | |||
240 | If the -a flag is specified, then attempt to resume partial | ||
241 | transfers of existing files. Note that resumption assumes that | ||
242 | any partial copy of the local file matches the remote copy. If | ||
243 | the remote file contents differ from the partial local copy then | ||
244 | the resultant file is likely to be corrupt. | ||
245 | |||
246 | If the -f flag is specified, then fsync(2) will be called after | ||
247 | the file transfer has completed to flush the file to disk. | ||
248 | |||
249 | If either the -P or -p flag is specified, then full file | ||
250 | permissions and access times are copied too. | ||
251 | |||
252 | If the -r flag is specified then directories will be copied | ||
253 | recursively. Note that sftp does not follow symbolic links when | ||
254 | performing recursive transfers. | ||
255 | |||
256 | help Display help text. | ||
257 | |||
258 | lcd path | ||
259 | Change local directory to path. | ||
260 | |||
261 | lls [ls-options [path]] | ||
262 | Display local directory listing of either path or current | ||
263 | directory if path is not specified. ls-options may contain any | ||
264 | flags supported by the local system's ls(1) command. path may | ||
265 | contain glob(3) characters and may match multiple files. | ||
266 | |||
267 | lmkdir path | ||
268 | Create local directory specified by path. | ||
269 | |||
270 | ln [-s] oldpath newpath | ||
271 | Create a link from oldpath to newpath. If the -s flag is | ||
272 | specified the created link is a symbolic link, otherwise it is a | ||
273 | hard link. | ||
274 | |||
275 | lpwd Print local working directory. | ||
276 | |||
277 | ls [-1afhlnrSt] [path] | ||
278 | Display a remote directory listing of either path or the current | ||
279 | directory if path is not specified. path may contain glob(3) | ||
280 | characters and may match multiple files. | ||
281 | |||
282 | The following flags are recognized and alter the behaviour of ls | ||
283 | accordingly: | ||
284 | |||
285 | -1 Produce single columnar output. | ||
286 | |||
287 | -a List files beginning with a dot (M-bM-^@M-^X.M-bM-^@M-^Y). | ||
288 | |||
289 | -f Do not sort the listing. The default sort order is | ||
290 | lexicographical. | ||
291 | |||
292 | -h When used with a long format option, use unit suffixes: | ||
293 | Byte, Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte, | ||
294 | and Exabyte in order to reduce the number of digits to | ||
295 | four or fewer using powers of 2 for sizes (K=1024, | ||
296 | M=1048576, etc.). | ||
297 | |||
298 | -l Display additional details including permissions and | ||
299 | ownership information. | ||
300 | |||
301 | -n Produce a long listing with user and group information | ||
302 | presented numerically. | ||
303 | |||
304 | -r Reverse the sort order of the listing. | ||
305 | |||
306 | -S Sort the listing by file size. | ||
307 | |||
308 | -t Sort the listing by last modification time. | ||
309 | |||
310 | lumask umask | ||
311 | Set local umask to umask. | ||
312 | |||
313 | mkdir path | ||
314 | Create remote directory specified by path. | ||
315 | |||
316 | progress | ||
317 | Toggle display of progress meter. | ||
318 | |||
319 | put [-afPpr] local-path [remote-path] | ||
320 | Upload local-path and store it on the remote machine. If the | ||
321 | remote path name is not specified, it is given the same name it | ||
322 | has on the local machine. local-path may contain glob(3) | ||
323 | characters and may match multiple files. If it does and | ||
324 | remote-path is specified, then remote-path must specify a | ||
325 | directory. | ||
326 | |||
327 | If the -a flag is specified, then attempt to resume partial | ||
328 | transfers of existing files. Note that resumption assumes that | ||
329 | any partial copy of the remote file matches the local copy. If | ||
330 | the local file contents differ from the remote local copy then | ||
331 | the resultant file is likely to be corrupt. | ||
332 | |||
333 | If the -f flag is specified, then a request will be sent to the | ||
334 | server to call fsync(2) after the file has been transferred. | ||
335 | Note that this is only supported by servers that implement the | ||
336 | "fsync@openssh.com" extension. | ||
337 | |||
338 | If either the -P or -p flag is specified, then full file | ||
339 | permissions and access times are copied too. | ||
340 | |||
341 | If the -r flag is specified then directories will be copied | ||
342 | recursively. Note that sftp does not follow symbolic links when | ||
343 | performing recursive transfers. | ||
344 | |||
345 | pwd Display remote working directory. | ||
346 | |||
347 | quit Quit sftp. | ||
348 | |||
349 | reget [-Ppr] remote-path [local-path] | ||
350 | Resume download of remote-path. Equivalent to get with the -a | ||
351 | flag set. | ||
352 | |||
353 | reput [-Ppr] [local-path] remote-path | ||
354 | Resume upload of [local-path]. Equivalent to put with the -a | ||
355 | flag set. | ||
356 | |||
357 | rename oldpath newpath | ||
358 | Rename remote file from oldpath to newpath. | ||
359 | |||
360 | rm path | ||
361 | Delete remote file specified by path. | ||
362 | |||
363 | rmdir path | ||
364 | Remove remote directory specified by path. | ||
365 | |||
366 | symlink oldpath newpath | ||
367 | Create a symbolic link from oldpath to newpath. | ||
368 | |||
369 | version | ||
370 | Display the sftp protocol version. | ||
371 | |||
372 | !command | ||
373 | Execute command in local shell. | ||
374 | |||
375 | ! Escape to local shell. | ||
376 | |||
377 | ? Synonym for help. | ||
378 | |||
379 | SEE ALSO | ||
380 | ftp(1), ls(1), scp(1), ssh(1), ssh-add(1), ssh-keygen(1), glob(3), | ||
381 | ssh_config(5), sftp-server(8), sshd(8) | ||
382 | |||
383 | T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh- | ||
384 | filexfer-00.txt, January 2001, work in progress material. | ||
385 | |||
386 | OpenBSD 6.0 July 16, 2016 OpenBSD 6.0 | ||
diff --git a/ssh-add.0 b/ssh-add.0 new file mode 100644 index 000000000..706bfe661 --- /dev/null +++ b/ssh-add.0 | |||
@@ -0,0 +1,129 @@ | |||
1 | SSH-ADD(1) General Commands Manual SSH-ADD(1) | ||
2 | |||
3 | NAME | ||
4 | ssh-add M-bM-^@M-^S adds private key identities to the authentication agent | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh-add [-cDdkLlXx] [-E fingerprint_hash] [-t life] [file ...] | ||
8 | ssh-add -s pkcs11 | ||
9 | ssh-add -e pkcs11 | ||
10 | |||
11 | DESCRIPTION | ||
12 | ssh-add adds private key identities to the authentication agent, | ||
13 | ssh-agent(1). When run without arguments, it adds the files | ||
14 | ~/.ssh/id_rsa, ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, ~/.ssh/id_ed25519 and | ||
15 | ~/.ssh/identity. After loading a private key, ssh-add will try to load | ||
16 | corresponding certificate information from the filename obtained by | ||
17 | appending -cert.pub to the name of the private key file. Alternative | ||
18 | file names can be given on the command line. | ||
19 | |||
20 | If any file requires a passphrase, ssh-add asks for the passphrase from | ||
21 | the user. The passphrase is read from the user's tty. ssh-add retries | ||
22 | the last passphrase if multiple identity files are given. | ||
23 | |||
24 | The authentication agent must be running and the SSH_AUTH_SOCK | ||
25 | environment variable must contain the name of its socket for ssh-add to | ||
26 | work. | ||
27 | |||
28 | The options are as follows: | ||
29 | |||
30 | -c Indicates that added identities should be subject to confirmation | ||
31 | before being used for authentication. Confirmation is performed | ||
32 | by ssh-askpass(1). Successful confirmation is signaled by a zero | ||
33 | exit status from ssh-askpass(1), rather than text entered into | ||
34 | the requester. | ||
35 | |||
36 | -D Deletes all identities from the agent. | ||
37 | |||
38 | -d Instead of adding identities, removes identities from the agent. | ||
39 | If ssh-add has been run without arguments, the keys for the | ||
40 | default identities and their corresponding certificates will be | ||
41 | removed. Otherwise, the argument list will be interpreted as a | ||
42 | list of paths to public key files to specify keys and | ||
43 | certificates to be removed from the agent. If no public key is | ||
44 | found at a given path, ssh-add will append .pub and retry. | ||
45 | |||
46 | -E fingerprint_hash | ||
47 | Specifies the hash algorithm used when displaying key | ||
48 | fingerprints. Valid options are: M-bM-^@M-^\md5M-bM-^@M-^] and M-bM-^@M-^\sha256M-bM-^@M-^]. The | ||
49 | default is M-bM-^@M-^\sha256M-bM-^@M-^]. | ||
50 | |||
51 | -e pkcs11 | ||
52 | Remove keys provided by the PKCS#11 shared library pkcs11. | ||
53 | |||
54 | -k When loading keys into or deleting keys from the agent, process | ||
55 | plain private keys only and skip certificates. | ||
56 | |||
57 | -L Lists public key parameters of all identities currently | ||
58 | represented by the agent. | ||
59 | |||
60 | -l Lists fingerprints of all identities currently represented by the | ||
61 | agent. | ||
62 | |||
63 | -s pkcs11 | ||
64 | Add keys provided by the PKCS#11 shared library pkcs11. | ||
65 | |||
66 | -t life | ||
67 | Set a maximum lifetime when adding identities to an agent. The | ||
68 | lifetime may be specified in seconds or in a time format | ||
69 | specified in sshd_config(5). | ||
70 | |||
71 | -X Unlock the agent. | ||
72 | |||
73 | -x Lock the agent with a password. | ||
74 | |||
75 | ENVIRONMENT | ||
76 | DISPLAY and SSH_ASKPASS | ||
77 | If ssh-add needs a passphrase, it will read the passphrase from | ||
78 | the current terminal if it was run from a terminal. If ssh-add | ||
79 | does not have a terminal associated with it but DISPLAY and | ||
80 | SSH_ASKPASS are set, it will execute the program specified by | ||
81 | SSH_ASKPASS (by default M-bM-^@M-^\ssh-askpassM-bM-^@M-^]) and open an X11 window to | ||
82 | read the passphrase. This is particularly useful when calling | ||
83 | ssh-add from a .xsession or related script. (Note that on some | ||
84 | machines it may be necessary to redirect the input from /dev/null | ||
85 | to make this work.) | ||
86 | |||
87 | SSH_AUTH_SOCK | ||
88 | Identifies the path of a UNIX-domain socket used to communicate | ||
89 | with the agent. | ||
90 | |||
91 | FILES | ||
92 | ~/.ssh/identity | ||
93 | Contains the protocol version 1 RSA authentication identity of | ||
94 | the user. | ||
95 | |||
96 | ~/.ssh/id_dsa | ||
97 | Contains the protocol version 2 DSA authentication identity of | ||
98 | the user. | ||
99 | |||
100 | ~/.ssh/id_ecdsa | ||
101 | Contains the protocol version 2 ECDSA authentication identity of | ||
102 | the user. | ||
103 | |||
104 | ~/.ssh/id_ed25519 | ||
105 | Contains the protocol version 2 Ed25519 authentication identity | ||
106 | of the user. | ||
107 | |||
108 | ~/.ssh/id_rsa | ||
109 | Contains the protocol version 2 RSA authentication identity of | ||
110 | the user. | ||
111 | |||
112 | Identity files should not be readable by anyone but the user. Note that | ||
113 | ssh-add ignores identity files if they are accessible by others. | ||
114 | |||
115 | EXIT STATUS | ||
116 | Exit status is 0 on success, 1 if the specified command fails, and 2 if | ||
117 | ssh-add is unable to contact the authentication agent. | ||
118 | |||
119 | SEE ALSO | ||
120 | ssh(1), ssh-agent(1), ssh-askpass(1), ssh-keygen(1), sshd(8) | ||
121 | |||
122 | AUTHORS | ||
123 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
124 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
125 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
126 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
127 | versions 1.5 and 2.0. | ||
128 | |||
129 | OpenBSD 6.0 March 30, 2015 OpenBSD 6.0 | ||
diff --git a/ssh-agent.0 b/ssh-agent.0 new file mode 100644 index 000000000..b6abf9b4e --- /dev/null +++ b/ssh-agent.0 | |||
@@ -0,0 +1,112 @@ | |||
1 | SSH-AGENT(1) General Commands Manual SSH-AGENT(1) | ||
2 | |||
3 | NAME | ||
4 | ssh-agent M-bM-^@M-^S authentication agent | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh-agent [-c | -s] [-Dd] [-a bind_address] [-E fingerprint_hash] | ||
8 | [-t life] [command [arg ...]] | ||
9 | ssh-agent [-c | -s] -k | ||
10 | |||
11 | DESCRIPTION | ||
12 | ssh-agent is a program to hold private keys used for public key | ||
13 | authentication (RSA, DSA, ECDSA, Ed25519). ssh-agent is usually started | ||
14 | in the beginning of an X-session or a login session, and all other | ||
15 | windows or programs are started as clients to the ssh-agent program. | ||
16 | Through use of environment variables the agent can be located and | ||
17 | automatically used for authentication when logging in to other machines | ||
18 | using ssh(1). | ||
19 | |||
20 | The agent initially does not have any private keys. Keys are added using | ||
21 | ssh(1) (see AddKeysToAgent in ssh_config(5) for details) or ssh-add(1). | ||
22 | Multiple identities may be stored in ssh-agent concurrently and ssh(1) | ||
23 | will automatically use them if present. ssh-add(1) is also used to | ||
24 | remove keys from ssh-agent and to query the keys that are held in one. | ||
25 | |||
26 | The options are as follows: | ||
27 | |||
28 | -a bind_address | ||
29 | Bind the agent to the UNIX-domain socket bind_address. The | ||
30 | default is $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid>. | ||
31 | |||
32 | -c Generate C-shell commands on stdout. This is the default if | ||
33 | SHELL looks like it's a csh style of shell. | ||
34 | |||
35 | -D Foreground mode. When this option is specified ssh-agent will | ||
36 | not fork. | ||
37 | |||
38 | -d Debug mode. When this option is specified ssh-agent will not | ||
39 | fork and will write debug information to standard error. | ||
40 | |||
41 | -E fingerprint_hash | ||
42 | Specifies the hash algorithm used when displaying key | ||
43 | fingerprints. Valid options are: M-bM-^@M-^\md5M-bM-^@M-^] and M-bM-^@M-^\sha256M-bM-^@M-^]. The | ||
44 | default is M-bM-^@M-^\sha256M-bM-^@M-^]. | ||
45 | |||
46 | -k Kill the current agent (given by the SSH_AGENT_PID environment | ||
47 | variable). | ||
48 | |||
49 | -s Generate Bourne shell commands on stdout. This is the default if | ||
50 | SHELL does not look like it's a csh style of shell. | ||
51 | |||
52 | -t life | ||
53 | Set a default value for the maximum lifetime of identities added | ||
54 | to the agent. The lifetime may be specified in seconds or in a | ||
55 | time format specified in sshd_config(5). A lifetime specified | ||
56 | for an identity with ssh-add(1) overrides this value. Without | ||
57 | this option the default maximum lifetime is forever. | ||
58 | |||
59 | If a command line is given, this is executed as a subprocess of the | ||
60 | agent. When the command dies, so does the agent. | ||
61 | |||
62 | The idea is that the agent is run in the user's local PC, laptop, or | ||
63 | terminal. Authentication data need not be stored on any other machine, | ||
64 | and authentication passphrases never go over the network. However, the | ||
65 | connection to the agent is forwarded over SSH remote logins, and the user | ||
66 | can thus use the privileges given by the identities anywhere in the | ||
67 | network in a secure way. | ||
68 | |||
69 | There are two main ways to get an agent set up: The first is that the | ||
70 | agent starts a new subcommand into which some environment variables are | ||
71 | exported, eg ssh-agent xterm &. The second is that the agent prints the | ||
72 | needed shell commands (either sh(1) or csh(1) syntax can be generated) | ||
73 | which can be evaluated in the calling shell, eg eval `ssh-agent -s` for | ||
74 | Bourne-type shells such as sh(1) or ksh(1) and eval `ssh-agent -c` for | ||
75 | csh(1) and derivatives. | ||
76 | |||
77 | Later ssh(1) looks at these variables and uses them to establish a | ||
78 | connection to the agent. | ||
79 | |||
80 | The agent will never send a private key over its request channel. | ||
81 | Instead, operations that require a private key will be performed by the | ||
82 | agent, and the result will be returned to the requester. This way, | ||
83 | private keys are not exposed to clients using the agent. | ||
84 | |||
85 | A UNIX-domain socket is created and the name of this socket is stored in | ||
86 | the SSH_AUTH_SOCK environment variable. The socket is made accessible | ||
87 | only to the current user. This method is easily abused by root or | ||
88 | another instance of the same user. | ||
89 | |||
90 | The SSH_AGENT_PID environment variable holds the agent's process ID. | ||
91 | |||
92 | The agent exits automatically when the command given on the command line | ||
93 | terminates. | ||
94 | |||
95 | FILES | ||
96 | $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid> | ||
97 | UNIX-domain sockets used to contain the connection to the | ||
98 | authentication agent. These sockets should only be readable by | ||
99 | the owner. The sockets should get automatically removed when the | ||
100 | agent exits. | ||
101 | |||
102 | SEE ALSO | ||
103 | ssh(1), ssh-add(1), ssh-keygen(1), sshd(8) | ||
104 | |||
105 | AUTHORS | ||
106 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
107 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
108 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
109 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
110 | versions 1.5 and 2.0. | ||
111 | |||
112 | OpenBSD 6.0 November 15, 2015 OpenBSD 6.0 | ||
diff --git a/ssh-keygen.0 b/ssh-keygen.0 new file mode 100644 index 000000000..569297da4 --- /dev/null +++ b/ssh-keygen.0 | |||
@@ -0,0 +1,570 @@ | |||
1 | SSH-KEYGEN(1) General Commands Manual SSH-KEYGEN(1) | ||
2 | |||
3 | NAME | ||
4 | ssh-keygen M-bM-^@M-^S authentication key generation, management and conversion | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh-keygen [-q] [-b bits] [-t dsa | ecdsa | ed25519 | rsa | rsa1] | ||
8 | [-N new_passphrase] [-C comment] [-f output_keyfile] | ||
9 | ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile] | ||
10 | ssh-keygen -i [-m key_format] [-f input_keyfile] | ||
11 | ssh-keygen -e [-m key_format] [-f input_keyfile] | ||
12 | ssh-keygen -y [-f input_keyfile] | ||
13 | ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile] | ||
14 | ssh-keygen -l [-v] [-E fingerprint_hash] [-f input_keyfile] | ||
15 | ssh-keygen -B [-f input_keyfile] | ||
16 | ssh-keygen -D pkcs11 | ||
17 | ssh-keygen -F hostname [-f known_hosts_file] [-l] | ||
18 | ssh-keygen -H [-f known_hosts_file] | ||
19 | ssh-keygen -R hostname [-f known_hosts_file] | ||
20 | ssh-keygen -r hostname [-f input_keyfile] [-g] | ||
21 | ssh-keygen -G output_file [-v] [-b bits] [-M memory] [-S start_point] | ||
22 | ssh-keygen -T output_file -f input_file [-v] [-a rounds] [-J num_lines] | ||
23 | [-j start_line] [-K checkpt] [-W generator] | ||
24 | ssh-keygen -s ca_key -I certificate_identity [-h] [-n principals] | ||
25 | [-O option] [-V validity_interval] [-z serial_number] file ... | ||
26 | ssh-keygen -L [-f input_keyfile] | ||
27 | ssh-keygen -A | ||
28 | ssh-keygen -k -f krl_file [-u] [-s ca_public] [-z version_number] | ||
29 | file ... | ||
30 | ssh-keygen -Q -f krl_file file ... | ||
31 | |||
32 | DESCRIPTION | ||
33 | ssh-keygen generates, manages and converts authentication keys for | ||
34 | ssh(1). ssh-keygen can create keys for use by SSH protocol versions 1 | ||
35 | and 2. Protocol 1 should not be used and is only offered to support | ||
36 | legacy devices. It suffers from a number of cryptographic weaknesses and | ||
37 | doesn't support many of the advanced features available for protocol 2. | ||
38 | |||
39 | The type of key to be generated is specified with the -t option. If | ||
40 | invoked without any arguments, ssh-keygen will generate an RSA key for | ||
41 | use in SSH protocol 2 connections. | ||
42 | |||
43 | ssh-keygen is also used to generate groups for use in Diffie-Hellman | ||
44 | group exchange (DH-GEX). See the MODULI GENERATION section for details. | ||
45 | |||
46 | Finally, ssh-keygen can be used to generate and update Key Revocation | ||
47 | Lists, and to test whether given keys have been revoked by one. See the | ||
48 | KEY REVOCATION LISTS section for details. | ||
49 | |||
50 | Normally each user wishing to use SSH with public key authentication runs | ||
51 | this once to create the authentication key in ~/.ssh/identity, | ||
52 | ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, ~/.ssh/id_ed25519 or ~/.ssh/id_rsa. | ||
53 | Additionally, the system administrator may use this to generate host | ||
54 | keys, as seen in /etc/rc. | ||
55 | |||
56 | Normally this program generates the key and asks for a file in which to | ||
57 | store the private key. The public key is stored in a file with the same | ||
58 | name but M-bM-^@M-^\.pubM-bM-^@M-^] appended. The program also asks for a passphrase. The | ||
59 | passphrase may be empty to indicate no passphrase (host keys must have an | ||
60 | empty passphrase), or it may be a string of arbitrary length. A | ||
61 | passphrase is similar to a password, except it can be a phrase with a | ||
62 | series of words, punctuation, numbers, whitespace, or any string of | ||
63 | characters you want. Good passphrases are 10-30 characters long, are not | ||
64 | simple sentences or otherwise easily guessable (English prose has only | ||
65 | 1-2 bits of entropy per character, and provides very bad passphrases), | ||
66 | and contain a mix of upper and lowercase letters, numbers, and non- | ||
67 | alphanumeric characters. The passphrase can be changed later by using | ||
68 | the -p option. | ||
69 | |||
70 | There is no way to recover a lost passphrase. If the passphrase is lost | ||
71 | or forgotten, a new key must be generated and the corresponding public | ||
72 | key copied to other machines. | ||
73 | |||
74 | For RSA1 keys and keys stored in the newer OpenSSH format, there is also | ||
75 | a comment field in the key file that is only for convenience to the user | ||
76 | to help identify the key. The comment can tell what the key is for, or | ||
77 | whatever is useful. The comment is initialized to M-bM-^@M-^\user@hostM-bM-^@M-^] when the | ||
78 | key is created, but can be changed using the -c option. | ||
79 | |||
80 | After a key is generated, instructions below detail where the keys should | ||
81 | be placed to be activated. | ||
82 | |||
83 | The options are as follows: | ||
84 | |||
85 | -A For each of the key types (rsa1, rsa, dsa, ecdsa and ed25519) for | ||
86 | which host keys do not exist, generate the host keys with the | ||
87 | default key file path, an empty passphrase, default bits for the | ||
88 | key type, and default comment. This is used by /etc/rc to | ||
89 | generate new host keys. | ||
90 | |||
91 | -a rounds | ||
92 | When saving a new-format private key (i.e. an ed25519 key or any | ||
93 | SSH protocol 2 key when the -o flag is set), this option | ||
94 | specifies the number of KDF (key derivation function) rounds | ||
95 | used. Higher numbers result in slower passphrase verification | ||
96 | and increased resistance to brute-force password cracking (should | ||
97 | the keys be stolen). | ||
98 | |||
99 | When screening DH-GEX candidates ( using the -T command). This | ||
100 | option specifies the number of primality tests to perform. | ||
101 | |||
102 | -B Show the bubblebabble digest of specified private or public key | ||
103 | file. | ||
104 | |||
105 | -b bits | ||
106 | Specifies the number of bits in the key to create. For RSA keys, | ||
107 | the minimum size is 1024 bits and the default is 2048 bits. | ||
108 | Generally, 2048 bits is considered sufficient. DSA keys must be | ||
109 | exactly 1024 bits as specified by FIPS 186-2. For ECDSA keys, | ||
110 | the -b flag determines the key length by selecting from one of | ||
111 | three elliptic curve sizes: 256, 384 or 521 bits. Attempting to | ||
112 | use bit lengths other than these three values for ECDSA keys will | ||
113 | fail. Ed25519 keys have a fixed length and the -b flag will be | ||
114 | ignored. | ||
115 | |||
116 | -C comment | ||
117 | Provides a new comment. | ||
118 | |||
119 | -c Requests changing the comment in the private and public key | ||
120 | files. This operation is only supported for RSA1 keys and keys | ||
121 | stored in the newer OpenSSH format. The program will prompt for | ||
122 | the file containing the private keys, for the passphrase if the | ||
123 | key has one, and for the new comment. | ||
124 | |||
125 | -D pkcs11 | ||
126 | Download the RSA public keys provided by the PKCS#11 shared | ||
127 | library pkcs11. When used in combination with -s, this option | ||
128 | indicates that a CA key resides in a PKCS#11 token (see the | ||
129 | CERTIFICATES section for details). | ||
130 | |||
131 | -E fingerprint_hash | ||
132 | Specifies the hash algorithm used when displaying key | ||
133 | fingerprints. Valid options are: M-bM-^@M-^\md5M-bM-^@M-^] and M-bM-^@M-^\sha256M-bM-^@M-^]. The | ||
134 | default is M-bM-^@M-^\sha256M-bM-^@M-^]. | ||
135 | |||
136 | -e This option will read a private or public OpenSSH key file and | ||
137 | print to stdout the key in one of the formats specified by the -m | ||
138 | option. The default export format is M-bM-^@M-^\RFC4716M-bM-^@M-^]. This option | ||
139 | allows exporting OpenSSH keys for use by other programs, | ||
140 | including several commercial SSH implementations. | ||
141 | |||
142 | -F hostname | ||
143 | Search for the specified hostname in a known_hosts file, listing | ||
144 | any occurrences found. This option is useful to find hashed host | ||
145 | names or addresses and may also be used in conjunction with the | ||
146 | -H option to print found keys in a hashed format. | ||
147 | |||
148 | -f filename | ||
149 | Specifies the filename of the key file. | ||
150 | |||
151 | -G output_file | ||
152 | Generate candidate primes for DH-GEX. These primes must be | ||
153 | screened for safety (using the -T option) before use. | ||
154 | |||
155 | -g Use generic DNS format when printing fingerprint resource records | ||
156 | using the -r command. | ||
157 | |||
158 | -H Hash a known_hosts file. This replaces all hostnames and | ||
159 | addresses with hashed representations within the specified file; | ||
160 | the original content is moved to a file with a .old suffix. | ||
161 | These hashes may be used normally by ssh and sshd, but they do | ||
162 | not reveal identifying information should the file's contents be | ||
163 | disclosed. This option will not modify existing hashed hostnames | ||
164 | and is therefore safe to use on files that mix hashed and non- | ||
165 | hashed names. | ||
166 | |||
167 | -h When signing a key, create a host certificate instead of a user | ||
168 | certificate. Please see the CERTIFICATES section for details. | ||
169 | |||
170 | -I certificate_identity | ||
171 | Specify the key identity when signing a public key. Please see | ||
172 | the CERTIFICATES section for details. | ||
173 | |||
174 | -i This option will read an unencrypted private (or public) key file | ||
175 | in the format specified by the -m option and print an OpenSSH | ||
176 | compatible private (or public) key to stdout. This option allows | ||
177 | importing keys from other software, including several commercial | ||
178 | SSH implementations. The default import format is M-bM-^@M-^\RFC4716M-bM-^@M-^]. | ||
179 | |||
180 | -J num_lines | ||
181 | Exit after screening the specified number of lines while | ||
182 | performing DH candidate screening using the -T option. | ||
183 | |||
184 | -j start_line | ||
185 | Start screening at the specified line number while performing DH | ||
186 | candidate screening using the -T option. | ||
187 | |||
188 | -K checkpt | ||
189 | Write the last line processed to the file checkpt while | ||
190 | performing DH candidate screening using the -T option. This will | ||
191 | be used to skip lines in the input file that have already been | ||
192 | processed if the job is restarted. | ||
193 | |||
194 | -k Generate a KRL file. In this mode, ssh-keygen will generate a | ||
195 | KRL file at the location specified via the -f flag that revokes | ||
196 | every key or certificate presented on the command line. | ||
197 | Keys/certificates to be revoked may be specified by public key | ||
198 | file or using the format described in the KEY REVOCATION LISTS | ||
199 | section. | ||
200 | |||
201 | -L Prints the contents of one or more certificates. | ||
202 | |||
203 | -l Show fingerprint of specified public key file. Private RSA1 keys | ||
204 | are also supported. For RSA and DSA keys ssh-keygen tries to | ||
205 | find the matching public key file and prints its fingerprint. If | ||
206 | combined with -v, a visual ASCII art representation of the key is | ||
207 | supplied with the fingerprint. | ||
208 | |||
209 | -M memory | ||
210 | Specify the amount of memory to use (in megabytes) when | ||
211 | generating candidate moduli for DH-GEX. | ||
212 | |||
213 | -m key_format | ||
214 | Specify a key format for the -i (import) or -e (export) | ||
215 | conversion options. The supported key formats are: M-bM-^@M-^\RFC4716M-bM-^@M-^] | ||
216 | (RFC 4716/SSH2 public or private key), M-bM-^@M-^\PKCS8M-bM-^@M-^] (PEM PKCS8 public | ||
217 | key) or M-bM-^@M-^\PEMM-bM-^@M-^] (PEM public key). The default conversion format is | ||
218 | M-bM-^@M-^\RFC4716M-bM-^@M-^]. | ||
219 | |||
220 | -N new_passphrase | ||
221 | Provides the new passphrase. | ||
222 | |||
223 | -n principals | ||
224 | Specify one or more principals (user or host names) to be | ||
225 | included in a certificate when signing a key. Multiple | ||
226 | principals may be specified, separated by commas. Please see the | ||
227 | CERTIFICATES section for details. | ||
228 | |||
229 | -O option | ||
230 | Specify a certificate option when signing a key. This option may | ||
231 | be specified multiple times. Please see the CERTIFICATES section | ||
232 | for details. The options that are valid for user certificates | ||
233 | are: | ||
234 | |||
235 | clear Clear all enabled permissions. This is useful for | ||
236 | clearing the default set of permissions so permissions | ||
237 | may be added individually. | ||
238 | |||
239 | force-command=command | ||
240 | Forces the execution of command instead of any shell or | ||
241 | command specified by the user when the certificate is | ||
242 | used for authentication. | ||
243 | |||
244 | no-agent-forwarding | ||
245 | Disable ssh-agent(1) forwarding (permitted by default). | ||
246 | |||
247 | no-port-forwarding | ||
248 | Disable port forwarding (permitted by default). | ||
249 | |||
250 | no-pty Disable PTY allocation (permitted by default). | ||
251 | |||
252 | no-user-rc | ||
253 | Disable execution of ~/.ssh/rc by sshd(8) (permitted by | ||
254 | default). | ||
255 | |||
256 | no-x11-forwarding | ||
257 | Disable X11 forwarding (permitted by default). | ||
258 | |||
259 | permit-agent-forwarding | ||
260 | Allows ssh-agent(1) forwarding. | ||
261 | |||
262 | permit-port-forwarding | ||
263 | Allows port forwarding. | ||
264 | |||
265 | permit-pty | ||
266 | Allows PTY allocation. | ||
267 | |||
268 | permit-user-rc | ||
269 | Allows execution of ~/.ssh/rc by sshd(8). | ||
270 | |||
271 | permit-x11-forwarding | ||
272 | Allows X11 forwarding. | ||
273 | |||
274 | source-address=address_list | ||
275 | Restrict the source addresses from which the certificate | ||
276 | is considered valid. The address_list is a comma- | ||
277 | separated list of one or more address/netmask pairs in | ||
278 | CIDR format. | ||
279 | |||
280 | At present, no options are valid for host keys. | ||
281 | |||
282 | -o Causes ssh-keygen to save private keys using the new OpenSSH | ||
283 | format rather than the more compatible PEM format. The new | ||
284 | format has increased resistance to brute-force password cracking | ||
285 | but is not supported by versions of OpenSSH prior to 6.5. | ||
286 | Ed25519 keys always use the new private key format. | ||
287 | |||
288 | -P passphrase | ||
289 | Provides the (old) passphrase. | ||
290 | |||
291 | -p Requests changing the passphrase of a private key file instead of | ||
292 | creating a new private key. The program will prompt for the file | ||
293 | containing the private key, for the old passphrase, and twice for | ||
294 | the new passphrase. | ||
295 | |||
296 | -Q Test whether keys have been revoked in a KRL. | ||
297 | |||
298 | -q Silence ssh-keygen. | ||
299 | |||
300 | -R hostname | ||
301 | Removes all keys belonging to hostname from a known_hosts file. | ||
302 | This option is useful to delete hashed hosts (see the -H option | ||
303 | above). | ||
304 | |||
305 | -r hostname | ||
306 | Print the SSHFP fingerprint resource record named hostname for | ||
307 | the specified public key file. | ||
308 | |||
309 | -S start | ||
310 | Specify start point (in hex) when generating candidate moduli for | ||
311 | DH-GEX. | ||
312 | |||
313 | -s ca_key | ||
314 | Certify (sign) a public key using the specified CA key. Please | ||
315 | see the CERTIFICATES section for details. | ||
316 | |||
317 | When generating a KRL, -s specifies a path to a CA public key | ||
318 | file used to revoke certificates directly by key ID or serial | ||
319 | number. See the KEY REVOCATION LISTS section for details. | ||
320 | |||
321 | -T output_file | ||
322 | Test DH group exchange candidate primes (generated using the -G | ||
323 | option) for safety. | ||
324 | |||
325 | -t dsa | ecdsa | ed25519 | rsa | rsa1 | ||
326 | Specifies the type of key to create. The possible values are | ||
327 | M-bM-^@M-^\rsa1M-bM-^@M-^] for protocol version 1 and M-bM-^@M-^\dsaM-bM-^@M-^], M-bM-^@M-^\ecdsaM-bM-^@M-^], M-bM-^@M-^\ed25519M-bM-^@M-^], or | ||
328 | M-bM-^@M-^\rsaM-bM-^@M-^] for protocol version 2. | ||
329 | |||
330 | -u Update a KRL. When specified with -k, keys listed via the | ||
331 | command line are added to the existing KRL rather than a new KRL | ||
332 | being created. | ||
333 | |||
334 | -V validity_interval | ||
335 | Specify a validity interval when signing a certificate. A | ||
336 | validity interval may consist of a single time, indicating that | ||
337 | the certificate is valid beginning now and expiring at that time, | ||
338 | or may consist of two times separated by a colon to indicate an | ||
339 | explicit time interval. The start time may be specified as a | ||
340 | date in YYYYMMDD format, a time in YYYYMMDDHHMMSS format or a | ||
341 | relative time (to the current time) consisting of a minus sign | ||
342 | followed by a relative time in the format described in the TIME | ||
343 | FORMATS section of sshd_config(5). The end time may be specified | ||
344 | as a YYYYMMDD date, a YYYYMMDDHHMMSS time or a relative time | ||
345 | starting with a plus character. | ||
346 | |||
347 | For example: M-bM-^@M-^\+52w1dM-bM-^@M-^] (valid from now to 52 weeks and one day | ||
348 | from now), M-bM-^@M-^\-4w:+4wM-bM-^@M-^] (valid from four weeks ago to four weeks | ||
349 | from now), M-bM-^@M-^\20100101123000:20110101123000M-bM-^@M-^] (valid from 12:30 PM, | ||
350 | January 1st, 2010 to 12:30 PM, January 1st, 2011), M-bM-^@M-^\-1d:20110101M-bM-^@M-^] | ||
351 | (valid from yesterday to midnight, January 1st, 2011). | ||
352 | |||
353 | -v Verbose mode. Causes ssh-keygen to print debugging messages | ||
354 | about its progress. This is helpful for debugging moduli | ||
355 | generation. Multiple -v options increase the verbosity. The | ||
356 | maximum is 3. | ||
357 | |||
358 | -W generator | ||
359 | Specify desired generator when testing candidate moduli for DH- | ||
360 | GEX. | ||
361 | |||
362 | -y This option will read a private OpenSSH format file and print an | ||
363 | OpenSSH public key to stdout. | ||
364 | |||
365 | -z serial_number | ||
366 | Specifies a serial number to be embedded in the certificate to | ||
367 | distinguish this certificate from others from the same CA. The | ||
368 | default serial number is zero. | ||
369 | |||
370 | When generating a KRL, the -z flag is used to specify a KRL | ||
371 | version number. | ||
372 | |||
373 | MODULI GENERATION | ||
374 | ssh-keygen may be used to generate groups for the Diffie-Hellman Group | ||
375 | Exchange (DH-GEX) protocol. Generating these groups is a two-step | ||
376 | process: first, candidate primes are generated using a fast, but memory | ||
377 | intensive process. These candidate primes are then tested for | ||
378 | suitability (a CPU-intensive process). | ||
379 | |||
380 | Generation of primes is performed using the -G option. The desired | ||
381 | length of the primes may be specified by the -b option. For example: | ||
382 | |||
383 | # ssh-keygen -G moduli-2048.candidates -b 2048 | ||
384 | |||
385 | By default, the search for primes begins at a random point in the desired | ||
386 | length range. This may be overridden using the -S option, which | ||
387 | specifies a different start point (in hex). | ||
388 | |||
389 | Once a set of candidates have been generated, they must be screened for | ||
390 | suitability. This may be performed using the -T option. In this mode | ||
391 | ssh-keygen will read candidates from standard input (or a file specified | ||
392 | using the -f option). For example: | ||
393 | |||
394 | # ssh-keygen -T moduli-2048 -f moduli-2048.candidates | ||
395 | |||
396 | By default, each candidate will be subjected to 100 primality tests. | ||
397 | This may be overridden using the -a option. The DH generator value will | ||
398 | be chosen automatically for the prime under consideration. If a specific | ||
399 | generator is desired, it may be requested using the -W option. Valid | ||
400 | generator values are 2, 3, and 5. | ||
401 | |||
402 | Screened DH groups may be installed in /etc/moduli. It is important that | ||
403 | this file contains moduli of a range of bit lengths and that both ends of | ||
404 | a connection share common moduli. | ||
405 | |||
406 | CERTIFICATES | ||
407 | ssh-keygen supports signing of keys to produce certificates that may be | ||
408 | used for user or host authentication. Certificates consist of a public | ||
409 | key, some identity information, zero or more principal (user or host) | ||
410 | names and a set of options that are signed by a Certification Authority | ||
411 | (CA) key. Clients or servers may then trust only the CA key and verify | ||
412 | its signature on a certificate rather than trusting many user/host keys. | ||
413 | Note that OpenSSH certificates are a different, and much simpler, format | ||
414 | to the X.509 certificates used in ssl(8). | ||
415 | |||
416 | ssh-keygen supports two types of certificates: user and host. User | ||
417 | certificates authenticate users to servers, whereas host certificates | ||
418 | authenticate server hosts to users. To generate a user certificate: | ||
419 | |||
420 | $ ssh-keygen -s /path/to/ca_key -I key_id /path/to/user_key.pub | ||
421 | |||
422 | The resultant certificate will be placed in /path/to/user_key-cert.pub. | ||
423 | A host certificate requires the -h option: | ||
424 | |||
425 | $ ssh-keygen -s /path/to/ca_key -I key_id -h /path/to/host_key.pub | ||
426 | |||
427 | The host certificate will be output to /path/to/host_key-cert.pub. | ||
428 | |||
429 | It is possible to sign using a CA key stored in a PKCS#11 token by | ||
430 | providing the token library using -D and identifying the CA key by | ||
431 | providing its public half as an argument to -s: | ||
432 | |||
433 | $ ssh-keygen -s ca_key.pub -D libpkcs11.so -I key_id user_key.pub | ||
434 | |||
435 | In all cases, key_id is a "key identifier" that is logged by the server | ||
436 | when the certificate is used for authentication. | ||
437 | |||
438 | Certificates may be limited to be valid for a set of principal | ||
439 | (user/host) names. By default, generated certificates are valid for all | ||
440 | users or hosts. To generate a certificate for a specified set of | ||
441 | principals: | ||
442 | |||
443 | $ ssh-keygen -s ca_key -I key_id -n user1,user2 user_key.pub | ||
444 | $ ssh-keygen -s ca_key -I key_id -h -n host.domain host_key.pub | ||
445 | |||
446 | Additional limitations on the validity and use of user certificates may | ||
447 | be specified through certificate options. A certificate option may | ||
448 | disable features of the SSH session, may be valid only when presented | ||
449 | from particular source addresses or may force the use of a specific | ||
450 | command. For a list of valid certificate options, see the documentation | ||
451 | for the -O option above. | ||
452 | |||
453 | Finally, certificates may be defined with a validity lifetime. The -V | ||
454 | option allows specification of certificate start and end times. A | ||
455 | certificate that is presented at a time outside this range will not be | ||
456 | considered valid. By default, certificates are valid from UNIX Epoch to | ||
457 | the distant future. | ||
458 | |||
459 | For certificates to be used for user or host authentication, the CA | ||
460 | public key must be trusted by sshd(8) or ssh(1). Please refer to those | ||
461 | manual pages for details. | ||
462 | |||
463 | KEY REVOCATION LISTS | ||
464 | ssh-keygen is able to manage OpenSSH format Key Revocation Lists (KRLs). | ||
465 | These binary files specify keys or certificates to be revoked using a | ||
466 | compact format, taking as little as one bit per certificate if they are | ||
467 | being revoked by serial number. | ||
468 | |||
469 | KRLs may be generated using the -k flag. This option reads one or more | ||
470 | files from the command line and generates a new KRL. The files may | ||
471 | either contain a KRL specification (see below) or public keys, listed one | ||
472 | per line. Plain public keys are revoked by listing their hash or | ||
473 | contents in the KRL and certificates revoked by serial number or key ID | ||
474 | (if the serial is zero or not available). | ||
475 | |||
476 | Revoking keys using a KRL specification offers explicit control over the | ||
477 | types of record used to revoke keys and may be used to directly revoke | ||
478 | certificates by serial number or key ID without having the complete | ||
479 | original certificate on hand. A KRL specification consists of lines | ||
480 | containing one of the following directives followed by a colon and some | ||
481 | directive-specific information. | ||
482 | |||
483 | serial: serial_number[-serial_number] | ||
484 | Revokes a certificate with the specified serial number. Serial | ||
485 | numbers are 64-bit values, not including zero and may be | ||
486 | expressed in decimal, hex or octal. If two serial numbers are | ||
487 | specified separated by a hyphen, then the range of serial numbers | ||
488 | including and between each is revoked. The CA key must have been | ||
489 | specified on the ssh-keygen command line using the -s option. | ||
490 | |||
491 | id: key_id | ||
492 | Revokes a certificate with the specified key ID string. The CA | ||
493 | key must have been specified on the ssh-keygen command line using | ||
494 | the -s option. | ||
495 | |||
496 | key: public_key | ||
497 | Revokes the specified key. If a certificate is listed, then it | ||
498 | is revoked as a plain public key. | ||
499 | |||
500 | sha1: public_key | ||
501 | Revokes the specified key by its SHA1 hash. | ||
502 | |||
503 | KRLs may be updated using the -u flag in addition to -k. When this | ||
504 | option is specified, keys listed via the command line are merged into the | ||
505 | KRL, adding to those already there. | ||
506 | |||
507 | It is also possible, given a KRL, to test whether it revokes a particular | ||
508 | key (or keys). The -Q flag will query an existing KRL, testing each key | ||
509 | specified on the command line. If any key listed on the command line has | ||
510 | been revoked (or an error encountered) then ssh-keygen will exit with a | ||
511 | non-zero exit status. A zero exit status will only be returned if no key | ||
512 | was revoked. | ||
513 | |||
514 | FILES | ||
515 | ~/.ssh/identity | ||
516 | Contains the protocol version 1 RSA authentication identity of | ||
517 | the user. This file should not be readable by anyone but the | ||
518 | user. It is possible to specify a passphrase when generating the | ||
519 | key; that passphrase will be used to encrypt the private part of | ||
520 | this file using 3DES. This file is not automatically accessed by | ||
521 | ssh-keygen but it is offered as the default file for the private | ||
522 | key. ssh(1) will read this file when a login attempt is made. | ||
523 | |||
524 | ~/.ssh/identity.pub | ||
525 | Contains the protocol version 1 RSA public key for | ||
526 | authentication. The contents of this file should be added to | ||
527 | ~/.ssh/authorized_keys on all machines where the user wishes to | ||
528 | log in using RSA authentication. There is no need to keep the | ||
529 | contents of this file secret. | ||
530 | |||
531 | ~/.ssh/id_dsa | ||
532 | ~/.ssh/id_ecdsa | ||
533 | ~/.ssh/id_ed25519 | ||
534 | ~/.ssh/id_rsa | ||
535 | Contains the protocol version 2 DSA, ECDSA, Ed25519 or RSA | ||
536 | authentication identity of the user. This file should not be | ||
537 | readable by anyone but the user. It is possible to specify a | ||
538 | passphrase when generating the key; that passphrase will be used | ||
539 | to encrypt the private part of this file using 128-bit AES. This | ||
540 | file is not automatically accessed by ssh-keygen but it is | ||
541 | offered as the default file for the private key. ssh(1) will | ||
542 | read this file when a login attempt is made. | ||
543 | |||
544 | ~/.ssh/id_dsa.pub | ||
545 | ~/.ssh/id_ecdsa.pub | ||
546 | ~/.ssh/id_ed25519.pub | ||
547 | ~/.ssh/id_rsa.pub | ||
548 | Contains the protocol version 2 DSA, ECDSA, Ed25519 or RSA public | ||
549 | key for authentication. The contents of this file should be | ||
550 | added to ~/.ssh/authorized_keys on all machines where the user | ||
551 | wishes to log in using public key authentication. There is no | ||
552 | need to keep the contents of this file secret. | ||
553 | |||
554 | /etc/moduli | ||
555 | Contains Diffie-Hellman groups used for DH-GEX. The file format | ||
556 | is described in moduli(5). | ||
557 | |||
558 | SEE ALSO | ||
559 | ssh(1), ssh-add(1), ssh-agent(1), moduli(5), sshd(8) | ||
560 | |||
561 | The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006. | ||
562 | |||
563 | AUTHORS | ||
564 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
565 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
566 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
567 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
568 | versions 1.5 and 2.0. | ||
569 | |||
570 | OpenBSD 6.0 June 16, 2016 OpenBSD 6.0 | ||
diff --git a/ssh-keyscan.0 b/ssh-keyscan.0 new file mode 100644 index 000000000..e9d9f0d8b --- /dev/null +++ b/ssh-keyscan.0 | |||
@@ -0,0 +1,111 @@ | |||
1 | SSH-KEYSCAN(1) General Commands Manual SSH-KEYSCAN(1) | ||
2 | |||
3 | NAME | ||
4 | ssh-keyscan M-bM-^@M-^S gather ssh public keys | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh-keyscan [-46cHv] [-f file] [-p port] [-T timeout] [-t type] | ||
8 | [host | addrlist namelist] ... | ||
9 | |||
10 | DESCRIPTION | ||
11 | ssh-keyscan is a utility for gathering the public ssh host keys of a | ||
12 | number of hosts. It was designed to aid in building and verifying | ||
13 | ssh_known_hosts files. ssh-keyscan provides a minimal interface suitable | ||
14 | for use by shell and perl scripts. | ||
15 | |||
16 | ssh-keyscan uses non-blocking socket I/O to contact as many hosts as | ||
17 | possible in parallel, so it is very efficient. The keys from a domain of | ||
18 | 1,000 hosts can be collected in tens of seconds, even when some of those | ||
19 | hosts are down or do not run ssh. For scanning, one does not need login | ||
20 | access to the machines that are being scanned, nor does the scanning | ||
21 | process involve any encryption. | ||
22 | |||
23 | The options are as follows: | ||
24 | |||
25 | -4 Forces ssh-keyscan to use IPv4 addresses only. | ||
26 | |||
27 | -6 Forces ssh-keyscan to use IPv6 addresses only. | ||
28 | |||
29 | -c Request certificates from target hosts instead of plain keys. | ||
30 | |||
31 | -f file | ||
32 | Read hosts or M-bM-^@M-^\addrlist namelistM-bM-^@M-^] pairs from file, one per line. | ||
33 | If - is supplied instead of a filename, ssh-keyscan will read | ||
34 | hosts or M-bM-^@M-^\addrlist namelistM-bM-^@M-^] pairs from the standard input. | ||
35 | |||
36 | -H Hash all hostnames and addresses in the output. Hashed names may | ||
37 | be used normally by ssh and sshd, but they do not reveal | ||
38 | identifying information should the file's contents be disclosed. | ||
39 | |||
40 | -p port | ||
41 | Port to connect to on the remote host. | ||
42 | |||
43 | -T timeout | ||
44 | Set the timeout for connection attempts. If timeout seconds have | ||
45 | elapsed since a connection was initiated to a host or since the | ||
46 | last time anything was read from that host, then the connection | ||
47 | is closed and the host in question considered unavailable. | ||
48 | Default is 5 seconds. | ||
49 | |||
50 | -t type | ||
51 | Specifies the type of the key to fetch from the scanned hosts. | ||
52 | The possible values are M-bM-^@M-^\rsa1M-bM-^@M-^] for protocol version 1 and M-bM-^@M-^\dsaM-bM-^@M-^], | ||
53 | M-bM-^@M-^\ecdsaM-bM-^@M-^], M-bM-^@M-^\ed25519M-bM-^@M-^], or M-bM-^@M-^\rsaM-bM-^@M-^] for protocol version 2. Multiple | ||
54 | values may be specified by separating them with commas. The | ||
55 | default is to fetch M-bM-^@M-^\rsaM-bM-^@M-^], M-bM-^@M-^\ecdsaM-bM-^@M-^], and M-bM-^@M-^\ed25519M-bM-^@M-^] keys. | ||
56 | |||
57 | -v Verbose mode. Causes ssh-keyscan to print debugging messages | ||
58 | about its progress. | ||
59 | |||
60 | SECURITY | ||
61 | If an ssh_known_hosts file is constructed using ssh-keyscan without | ||
62 | verifying the keys, users will be vulnerable to man in the middle | ||
63 | attacks. On the other hand, if the security model allows such a risk, | ||
64 | ssh-keyscan can help in the detection of tampered keyfiles or man in the | ||
65 | middle attacks which have begun after the ssh_known_hosts file was | ||
66 | created. | ||
67 | |||
68 | FILES | ||
69 | Input format: | ||
70 | |||
71 | 1.2.3.4,1.2.4.4 name.my.domain,name,n.my.domain,n,1.2.3.4,1.2.4.4 | ||
72 | |||
73 | Output format for RSA1 keys: | ||
74 | |||
75 | host-or-namelist bits exponent modulus | ||
76 | |||
77 | Output format for RSA, DSA, ECDSA, and Ed25519 keys: | ||
78 | |||
79 | host-or-namelist keytype base64-encoded-key | ||
80 | |||
81 | Where keytype is either M-bM-^@M-^\ecdsa-sha2-nistp256M-bM-^@M-^], M-bM-^@M-^\ecdsa-sha2-nistp384M-bM-^@M-^], | ||
82 | M-bM-^@M-^\ecdsa-sha2-nistp521M-bM-^@M-^], M-bM-^@M-^\ssh-ed25519M-bM-^@M-^], M-bM-^@M-^\ssh-dssM-bM-^@M-^] or M-bM-^@M-^\ssh-rsaM-bM-^@M-^]. | ||
83 | |||
84 | /etc/ssh/ssh_known_hosts | ||
85 | |||
86 | EXAMPLES | ||
87 | Print the rsa host key for machine hostname: | ||
88 | |||
89 | $ ssh-keyscan hostname | ||
90 | |||
91 | Find all hosts from the file ssh_hosts which have new or different keys | ||
92 | from those in the sorted file ssh_known_hosts: | ||
93 | |||
94 | $ ssh-keyscan -t rsa,dsa,ecdsa,ed25519 -f ssh_hosts | \ | ||
95 | sort -u - ssh_known_hosts | diff ssh_known_hosts - | ||
96 | |||
97 | SEE ALSO | ||
98 | ssh(1), sshd(8) | ||
99 | |||
100 | AUTHORS | ||
101 | David Mazieres <dm@lcs.mit.edu> wrote the initial version, and Wayne | ||
102 | Davison <wayned@users.sourceforge.net> added support for protocol version | ||
103 | 2. | ||
104 | |||
105 | BUGS | ||
106 | It generates "Connection closed by remote host" messages on the consoles | ||
107 | of all the machines it scans if the server is older than version 2.9. | ||
108 | This is because it opens a connection to the ssh port, reads the public | ||
109 | key, and drops the connection as soon as it gets the key. | ||
110 | |||
111 | OpenBSD 6.0 November 8, 2015 OpenBSD 6.0 | ||
diff --git a/ssh-keysign.0 b/ssh-keysign.0 new file mode 100644 index 000000000..34a451d62 --- /dev/null +++ b/ssh-keysign.0 | |||
@@ -0,0 +1,52 @@ | |||
1 | SSH-KEYSIGN(8) System Manager's Manual SSH-KEYSIGN(8) | ||
2 | |||
3 | NAME | ||
4 | ssh-keysign M-bM-^@M-^S ssh helper program for host-based authentication | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh-keysign | ||
8 | |||
9 | DESCRIPTION | ||
10 | ssh-keysign is used by ssh(1) to access the local host keys and generate | ||
11 | the digital signature required during host-based authentication. | ||
12 | |||
13 | ssh-keysign is disabled by default and can only be enabled in the global | ||
14 | client configuration file /etc/ssh/ssh_config by setting EnableSSHKeysign | ||
15 | to M-bM-^@M-^\yesM-bM-^@M-^]. | ||
16 | |||
17 | ssh-keysign is not intended to be invoked by the user, but from ssh(1). | ||
18 | See ssh(1) and sshd(8) for more information about host-based | ||
19 | authentication. | ||
20 | |||
21 | FILES | ||
22 | /etc/ssh/ssh_config | ||
23 | Controls whether ssh-keysign is enabled. | ||
24 | |||
25 | /etc/ssh/ssh_host_dsa_key | ||
26 | /etc/ssh/ssh_host_ecdsa_key | ||
27 | /etc/ssh/ssh_host_ed25519_key | ||
28 | /etc/ssh/ssh_host_rsa_key | ||
29 | These files contain the private parts of the host keys used to | ||
30 | generate the digital signature. They should be owned by root, | ||
31 | readable only by root, and not accessible to others. Since they | ||
32 | are readable only by root, ssh-keysign must be set-uid root if | ||
33 | host-based authentication is used. | ||
34 | |||
35 | /etc/ssh/ssh_host_dsa_key-cert.pub | ||
36 | /etc/ssh/ssh_host_ecdsa_key-cert.pub | ||
37 | /etc/ssh/ssh_host_ed25519_key-cert.pub | ||
38 | /etc/ssh/ssh_host_rsa_key-cert.pub | ||
39 | If these files exist they are assumed to contain public | ||
40 | certificate information corresponding with the private keys | ||
41 | above. | ||
42 | |||
43 | SEE ALSO | ||
44 | ssh(1), ssh-keygen(1), ssh_config(5), sshd(8) | ||
45 | |||
46 | HISTORY | ||
47 | ssh-keysign first appeared in OpenBSD 3.2. | ||
48 | |||
49 | AUTHORS | ||
50 | Markus Friedl <markus@openbsd.org> | ||
51 | |||
52 | OpenBSD 6.0 February 17, 2016 OpenBSD 6.0 | ||
diff --git a/ssh-pkcs11-helper.0 b/ssh-pkcs11-helper.0 new file mode 100644 index 000000000..1b58361a6 --- /dev/null +++ b/ssh-pkcs11-helper.0 | |||
@@ -0,0 +1,25 @@ | |||
1 | SSH-PKCS11-HELPER(8) System Manager's Manual SSH-PKCS11-HELPER(8) | ||
2 | |||
3 | NAME | ||
4 | ssh-pkcs11-helper M-bM-^@M-^S ssh-agent helper program for PKCS#11 support | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh-pkcs11-helper | ||
8 | |||
9 | DESCRIPTION | ||
10 | ssh-pkcs11-helper is used by ssh-agent(1) to access keys provided by a | ||
11 | PKCS#11 token. | ||
12 | |||
13 | ssh-pkcs11-helper is not intended to be invoked by the user, but from | ||
14 | ssh-agent(1). | ||
15 | |||
16 | SEE ALSO | ||
17 | ssh(1), ssh-add(1), ssh-agent(1) | ||
18 | |||
19 | HISTORY | ||
20 | ssh-pkcs11-helper first appeared in OpenBSD 4.7. | ||
21 | |||
22 | AUTHORS | ||
23 | Markus Friedl <markus@openbsd.org> | ||
24 | |||
25 | OpenBSD 6.0 July 16, 2013 OpenBSD 6.0 | ||
@@ -0,0 +1,971 @@ | |||
1 | SSH(1) General Commands Manual SSH(1) | ||
2 | |||
3 | NAME | ||
4 | ssh M-bM-^@M-^S OpenSSH SSH client (remote login program) | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec] | ||
8 | [-D [bind_address:]port] [-E log_file] [-e escape_char] | ||
9 | [-F configfile] [-I pkcs11] [-i identity_file] | ||
10 | [-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec] | ||
11 | [-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address] | ||
12 | [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]] | ||
13 | [user@]hostname [command] | ||
14 | |||
15 | DESCRIPTION | ||
16 | ssh (SSH client) is a program for logging into a remote machine and for | ||
17 | executing commands on a remote machine. It is intended to provide secure | ||
18 | encrypted communications between two untrusted hosts over an insecure | ||
19 | network. X11 connections, arbitrary TCP ports and UNIX-domain sockets | ||
20 | can also be forwarded over the secure channel. | ||
21 | |||
22 | ssh connects and logs into the specified hostname (with optional user | ||
23 | name). The user must prove his/her identity to the remote machine using | ||
24 | one of several methods (see below). | ||
25 | |||
26 | If command is specified, it is executed on the remote host instead of a | ||
27 | login shell. | ||
28 | |||
29 | The options are as follows: | ||
30 | |||
31 | -1 Forces ssh to try protocol version 1 only. | ||
32 | |||
33 | -2 Forces ssh to try protocol version 2 only. | ||
34 | |||
35 | -4 Forces ssh to use IPv4 addresses only. | ||
36 | |||
37 | -6 Forces ssh to use IPv6 addresses only. | ||
38 | |||
39 | -A Enables forwarding of the authentication agent connection. This | ||
40 | can also be specified on a per-host basis in a configuration | ||
41 | file. | ||
42 | |||
43 | Agent forwarding should be enabled with caution. Users with the | ||
44 | ability to bypass file permissions on the remote host (for the | ||
45 | agent's UNIX-domain socket) can access the local agent through | ||
46 | the forwarded connection. An attacker cannot obtain key material | ||
47 | from the agent, however they can perform operations on the keys | ||
48 | that enable them to authenticate using the identities loaded into | ||
49 | the agent. | ||
50 | |||
51 | -a Disables forwarding of the authentication agent connection. | ||
52 | |||
53 | -b bind_address | ||
54 | Use bind_address on the local machine as the source address of | ||
55 | the connection. Only useful on systems with more than one | ||
56 | address. | ||
57 | |||
58 | -C Requests compression of all data (including stdin, stdout, | ||
59 | stderr, and data for forwarded X11, TCP and UNIX-domain | ||
60 | connections). The compression algorithm is the same used by | ||
61 | gzip(1), and the M-bM-^@M-^\levelM-bM-^@M-^] can be controlled by the | ||
62 | CompressionLevel option for protocol version 1. Compression is | ||
63 | desirable on modem lines and other slow connections, but will | ||
64 | only slow down things on fast networks. The default value can be | ||
65 | set on a host-by-host basis in the configuration files; see the | ||
66 | Compression option. | ||
67 | |||
68 | -c cipher_spec | ||
69 | Selects the cipher specification for encrypting the session. | ||
70 | |||
71 | Protocol version 1 allows specification of a single cipher. The | ||
72 | supported values are M-bM-^@M-^\3desM-bM-^@M-^], M-bM-^@M-^\blowfishM-bM-^@M-^], and M-bM-^@M-^\desM-bM-^@M-^]. For protocol | ||
73 | version 2, cipher_spec is a comma-separated list of ciphers | ||
74 | listed in order of preference. See the Ciphers keyword in | ||
75 | ssh_config(5) for more information. | ||
76 | |||
77 | -D [bind_address:]port | ||
78 | Specifies a local M-bM-^@M-^\dynamicM-bM-^@M-^] application-level port forwarding. | ||
79 | This works by allocating a socket to listen to port on the local | ||
80 | side, optionally bound to the specified bind_address. Whenever a | ||
81 | connection is made to this port, the connection is forwarded over | ||
82 | the secure channel, and the application protocol is then used to | ||
83 | determine where to connect to from the remote machine. Currently | ||
84 | the SOCKS4 and SOCKS5 protocols are supported, and ssh will act | ||
85 | as a SOCKS server. Only root can forward privileged ports. | ||
86 | Dynamic port forwardings can also be specified in the | ||
87 | configuration file. | ||
88 | |||
89 | IPv6 addresses can be specified by enclosing the address in | ||
90 | square brackets. Only the superuser can forward privileged | ||
91 | ports. By default, the local port is bound in accordance with | ||
92 | the GatewayPorts setting. However, an explicit bind_address may | ||
93 | be used to bind the connection to a specific address. The | ||
94 | bind_address of M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the listening port be | ||
95 | bound for local use only, while an empty address or M-bM-^@M-^X*M-bM-^@M-^Y indicates | ||
96 | that the port should be available from all interfaces. | ||
97 | |||
98 | -E log_file | ||
99 | Append debug logs to log_file instead of standard error. | ||
100 | |||
101 | -e escape_char | ||
102 | Sets the escape character for sessions with a pty (default: M-bM-^@M-^X~M-bM-^@M-^Y). | ||
103 | The escape character is only recognized at the beginning of a | ||
104 | line. The escape character followed by a dot (M-bM-^@M-^X.M-bM-^@M-^Y) closes the | ||
105 | connection; followed by control-Z suspends the connection; and | ||
106 | followed by itself sends the escape character once. Setting the | ||
107 | character to M-bM-^@M-^\noneM-bM-^@M-^] disables any escapes and makes the session | ||
108 | fully transparent. | ||
109 | |||
110 | -F configfile | ||
111 | Specifies an alternative per-user configuration file. If a | ||
112 | configuration file is given on the command line, the system-wide | ||
113 | configuration file (/etc/ssh/ssh_config) will be ignored. The | ||
114 | default for the per-user configuration file is ~/.ssh/config. | ||
115 | |||
116 | -f Requests ssh to go to background just before command execution. | ||
117 | This is useful if ssh is going to ask for passwords or | ||
118 | passphrases, but the user wants it in the background. This | ||
119 | implies -n. The recommended way to start X11 programs at a | ||
120 | remote site is with something like ssh -f host xterm. | ||
121 | |||
122 | If the ExitOnForwardFailure configuration option is set to M-bM-^@M-^\yesM-bM-^@M-^], | ||
123 | then a client started with -f will wait for all remote port | ||
124 | forwards to be successfully established before placing itself in | ||
125 | the background. | ||
126 | |||
127 | -G Causes ssh to print its configuration after evaluating Host and | ||
128 | Match blocks and exit. | ||
129 | |||
130 | -g Allows remote hosts to connect to local forwarded ports. If used | ||
131 | on a multiplexed connection, then this option must be specified | ||
132 | on the master process. | ||
133 | |||
134 | -I pkcs11 | ||
135 | Specify the PKCS#11 shared library ssh should use to communicate | ||
136 | with a PKCS#11 token providing the user's private RSA key. | ||
137 | |||
138 | -i identity_file | ||
139 | Selects a file from which the identity (private key) for public | ||
140 | key authentication is read. The default is ~/.ssh/identity for | ||
141 | protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, | ||
142 | ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2. | ||
143 | Identity files may also be specified on a per-host basis in the | ||
144 | configuration file. It is possible to have multiple -i options | ||
145 | (and multiple identities specified in configuration files). If | ||
146 | no certificates have been explicitly specified by the | ||
147 | CertificateFile directive, ssh will also try to load certificate | ||
148 | information from the filename obtained by appending -cert.pub to | ||
149 | identity filenames. | ||
150 | |||
151 | -J [user@]host[:port] | ||
152 | Connect to the target host by first making a ssh connection to | ||
153 | the jump host and then establishing a TCP forwarding to the | ||
154 | ultimate destination from there. Multiple jump hops may be | ||
155 | specified separated by comma characters. This is a shortcut to | ||
156 | specify a ProxyJump configuration directive. | ||
157 | |||
158 | -K Enables GSSAPI-based authentication and forwarding (delegation) | ||
159 | of GSSAPI credentials to the server. | ||
160 | |||
161 | -k Disables forwarding (delegation) of GSSAPI credentials to the | ||
162 | server. | ||
163 | |||
164 | -L [bind_address:]port:host:hostport | ||
165 | -L [bind_address:]port:remote_socket | ||
166 | -L local_socket:host:hostport | ||
167 | -L local_socket:remote_socket | ||
168 | Specifies that connections to the given TCP port or Unix socket | ||
169 | on the local (client) host are to be forwarded to the given host | ||
170 | and port, or Unix socket, on the remote side. This works by | ||
171 | allocating a socket to listen to either a TCP port on the local | ||
172 | side, optionally bound to the specified bind_address, or to a | ||
173 | Unix socket. Whenever a connection is made to the local port or | ||
174 | socket, the connection is forwarded over the secure channel, and | ||
175 | a connection is made to either host port hostport, or the Unix | ||
176 | socket remote_socket, from the remote machine. | ||
177 | |||
178 | Port forwardings can also be specified in the configuration file. | ||
179 | Only the superuser can forward privileged ports. IPv6 addresses | ||
180 | can be specified by enclosing the address in square brackets. | ||
181 | |||
182 | By default, the local port is bound in accordance with the | ||
183 | GatewayPorts setting. However, an explicit bind_address may be | ||
184 | used to bind the connection to a specific address. The | ||
185 | bind_address of M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the listening port be | ||
186 | bound for local use only, while an empty address or M-bM-^@M-^X*M-bM-^@M-^Y indicates | ||
187 | that the port should be available from all interfaces. | ||
188 | |||
189 | -l login_name | ||
190 | Specifies the user to log in as on the remote machine. This also | ||
191 | may be specified on a per-host basis in the configuration file. | ||
192 | |||
193 | -M Places the ssh client into M-bM-^@M-^\masterM-bM-^@M-^] mode for connection sharing. | ||
194 | Multiple -M options places ssh into M-bM-^@M-^\masterM-bM-^@M-^] mode with | ||
195 | confirmation required before slave connections are accepted. | ||
196 | Refer to the description of ControlMaster in ssh_config(5) for | ||
197 | details. | ||
198 | |||
199 | -m mac_spec | ||
200 | A comma-separated list of MAC (message authentication code) | ||
201 | algorithms, specified in order of preference. See the MACs | ||
202 | keyword for more information. | ||
203 | |||
204 | -N Do not execute a remote command. This is useful for just | ||
205 | forwarding ports. | ||
206 | |||
207 | -n Redirects stdin from /dev/null (actually, prevents reading from | ||
208 | stdin). This must be used when ssh is run in the background. A | ||
209 | common trick is to use this to run X11 programs on a remote | ||
210 | machine. For example, ssh -n shadows.cs.hut.fi emacs & will | ||
211 | start an emacs on shadows.cs.hut.fi, and the X11 connection will | ||
212 | be automatically forwarded over an encrypted channel. The ssh | ||
213 | program will be put in the background. (This does not work if | ||
214 | ssh needs to ask for a password or passphrase; see also the -f | ||
215 | option.) | ||
216 | |||
217 | -O ctl_cmd | ||
218 | Control an active connection multiplexing master process. When | ||
219 | the -O option is specified, the ctl_cmd argument is interpreted | ||
220 | and passed to the master process. Valid commands are: M-bM-^@M-^\checkM-bM-^@M-^] | ||
221 | (check that the master process is running), M-bM-^@M-^\forwardM-bM-^@M-^] (request | ||
222 | forwardings without command execution), M-bM-^@M-^\cancelM-bM-^@M-^] (cancel | ||
223 | forwardings), M-bM-^@M-^\exitM-bM-^@M-^] (request the master to exit), and M-bM-^@M-^\stopM-bM-^@M-^] | ||
224 | (request the master to stop accepting further multiplexing | ||
225 | requests). | ||
226 | |||
227 | -o option | ||
228 | Can be used to give options in the format used in the | ||
229 | configuration file. This is useful for specifying options for | ||
230 | which there is no separate command-line flag. For full details | ||
231 | of the options listed below, and their possible values, see | ||
232 | ssh_config(5). | ||
233 | |||
234 | AddKeysToAgent | ||
235 | AddressFamily | ||
236 | BatchMode | ||
237 | BindAddress | ||
238 | CanonicalDomains | ||
239 | CanonicalizeFallbackLocal | ||
240 | CanonicalizeHostname | ||
241 | CanonicalizeMaxDots | ||
242 | CanonicalizePermittedCNAMEs | ||
243 | CertificateFile | ||
244 | ChallengeResponseAuthentication | ||
245 | CheckHostIP | ||
246 | Cipher | ||
247 | Ciphers | ||
248 | ClearAllForwardings | ||
249 | Compression | ||
250 | CompressionLevel | ||
251 | ConnectionAttempts | ||
252 | ConnectTimeout | ||
253 | ControlMaster | ||
254 | ControlPath | ||
255 | ControlPersist | ||
256 | DynamicForward | ||
257 | EscapeChar | ||
258 | ExitOnForwardFailure | ||
259 | FingerprintHash | ||
260 | ForwardAgent | ||
261 | ForwardX11 | ||
262 | ForwardX11Timeout | ||
263 | ForwardX11Trusted | ||
264 | GatewayPorts | ||
265 | GlobalKnownHostsFile | ||
266 | GSSAPIAuthentication | ||
267 | GSSAPIDelegateCredentials | ||
268 | HashKnownHosts | ||
269 | Host | ||
270 | HostbasedAuthentication | ||
271 | HostbasedKeyTypes | ||
272 | HostKeyAlgorithms | ||
273 | HostKeyAlias | ||
274 | HostName | ||
275 | IdentitiesOnly | ||
276 | IdentityAgent | ||
277 | IdentityFile | ||
278 | Include | ||
279 | IPQoS | ||
280 | KbdInteractiveAuthentication | ||
281 | KbdInteractiveDevices | ||
282 | KexAlgorithms | ||
283 | LocalCommand | ||
284 | LocalForward | ||
285 | LogLevel | ||
286 | MACs | ||
287 | Match | ||
288 | NoHostAuthenticationForLocalhost | ||
289 | NumberOfPasswordPrompts | ||
290 | PasswordAuthentication | ||
291 | PermitLocalCommand | ||
292 | PKCS11Provider | ||
293 | Port | ||
294 | PreferredAuthentications | ||
295 | Protocol | ||
296 | ProxyCommand | ||
297 | ProxyJump | ||
298 | ProxyUseFdpass | ||
299 | PubkeyAcceptedKeyTypes | ||
300 | PubkeyAuthentication | ||
301 | RekeyLimit | ||
302 | RemoteForward | ||
303 | RequestTTY | ||
304 | RhostsRSAAuthentication | ||
305 | RSAAuthentication | ||
306 | SendEnv | ||
307 | ServerAliveInterval | ||
308 | ServerAliveCountMax | ||
309 | StreamLocalBindMask | ||
310 | StreamLocalBindUnlink | ||
311 | StrictHostKeyChecking | ||
312 | TCPKeepAlive | ||
313 | Tunnel | ||
314 | TunnelDevice | ||
315 | UpdateHostKeys | ||
316 | UsePrivilegedPort | ||
317 | User | ||
318 | UserKnownHostsFile | ||
319 | VerifyHostKeyDNS | ||
320 | VisualHostKey | ||
321 | XAuthLocation | ||
322 | |||
323 | -p port | ||
324 | Port to connect to on the remote host. This can be specified on | ||
325 | a per-host basis in the configuration file. | ||
326 | |||
327 | -Q query_option | ||
328 | Queries ssh for the algorithms supported for the specified | ||
329 | version 2. The available features are: cipher (supported | ||
330 | symmetric ciphers), cipher-auth (supported symmetric ciphers that | ||
331 | support authenticated encryption), mac (supported message | ||
332 | integrity codes), kex (key exchange algorithms), key (key types), | ||
333 | key-cert (certificate key types), key-plain (non-certificate key | ||
334 | types), and protocol-version (supported SSH protocol versions). | ||
335 | |||
336 | -q Quiet mode. Causes most warning and diagnostic messages to be | ||
337 | suppressed. | ||
338 | |||
339 | -R [bind_address:]port:host:hostport | ||
340 | -R [bind_address:]port:local_socket | ||
341 | -R remote_socket:host:hostport | ||
342 | -R remote_socket:local_socket | ||
343 | Specifies that connections to the given TCP port or Unix socket | ||
344 | on the remote (server) host are to be forwarded to the given host | ||
345 | and port, or Unix socket, on the local side. This works by | ||
346 | allocating a socket to listen to either a TCP port or to a Unix | ||
347 | socket on the remote side. Whenever a connection is made to this | ||
348 | port or Unix socket, the connection is forwarded over the secure | ||
349 | channel, and a connection is made to either host port hostport, | ||
350 | or local_socket, from the local machine. | ||
351 | |||
352 | Port forwardings can also be specified in the configuration file. | ||
353 | Privileged ports can be forwarded only when logging in as root on | ||
354 | the remote machine. IPv6 addresses can be specified by enclosing | ||
355 | the address in square brackets. | ||
356 | |||
357 | By default, TCP listening sockets on the server will be bound to | ||
358 | the loopback interface only. This may be overridden by | ||
359 | specifying a bind_address. An empty bind_address, or the address | ||
360 | M-bM-^@M-^X*M-bM-^@M-^Y, indicates that the remote socket should listen on all | ||
361 | interfaces. Specifying a remote bind_address will only succeed | ||
362 | if the server's GatewayPorts option is enabled (see | ||
363 | sshd_config(5)). | ||
364 | |||
365 | If the port argument is M-bM-^@M-^X0M-bM-^@M-^Y, the listen port will be dynamically | ||
366 | allocated on the server and reported to the client at run time. | ||
367 | When used together with -O forward the allocated port will be | ||
368 | printed to the standard output. | ||
369 | |||
370 | -S ctl_path | ||
371 | Specifies the location of a control socket for connection | ||
372 | sharing, or the string M-bM-^@M-^\noneM-bM-^@M-^] to disable connection sharing. | ||
373 | Refer to the description of ControlPath and ControlMaster in | ||
374 | ssh_config(5) for details. | ||
375 | |||
376 | -s May be used to request invocation of a subsystem on the remote | ||
377 | system. Subsystems facilitate the use of SSH as a secure | ||
378 | transport for other applications (e.g. sftp(1)). The subsystem | ||
379 | is specified as the remote command. | ||
380 | |||
381 | -T Disable pseudo-terminal allocation. | ||
382 | |||
383 | -t Force pseudo-terminal allocation. This can be used to execute | ||
384 | arbitrary screen-based programs on a remote machine, which can be | ||
385 | very useful, e.g. when implementing menu services. Multiple -t | ||
386 | options force tty allocation, even if ssh has no local tty. | ||
387 | |||
388 | -V Display the version number and exit. | ||
389 | |||
390 | -v Verbose mode. Causes ssh to print debugging messages about its | ||
391 | progress. This is helpful in debugging connection, | ||
392 | authentication, and configuration problems. Multiple -v options | ||
393 | increase the verbosity. The maximum is 3. | ||
394 | |||
395 | -W host:port | ||
396 | Requests that standard input and output on the client be | ||
397 | forwarded to host on port over the secure channel. Implies -N, | ||
398 | -T, ExitOnForwardFailure and ClearAllForwardings, though these | ||
399 | can be overridden in the configuration file or using -o command | ||
400 | line options. | ||
401 | |||
402 | -w local_tun[:remote_tun] | ||
403 | Requests tunnel device forwarding with the specified tun(4) | ||
404 | devices between the client (local_tun) and the server | ||
405 | (remote_tun). | ||
406 | |||
407 | The devices may be specified by numerical ID or the keyword | ||
408 | M-bM-^@M-^\anyM-bM-^@M-^], which uses the next available tunnel device. If | ||
409 | remote_tun is not specified, it defaults to M-bM-^@M-^\anyM-bM-^@M-^]. See also the | ||
410 | Tunnel and TunnelDevice directives in ssh_config(5). If the | ||
411 | Tunnel directive is unset, it is set to the default tunnel mode, | ||
412 | which is M-bM-^@M-^\point-to-pointM-bM-^@M-^]. | ||
413 | |||
414 | -X Enables X11 forwarding. This can also be specified on a per-host | ||
415 | basis in a configuration file. | ||
416 | |||
417 | X11 forwarding should be enabled with caution. Users with the | ||
418 | ability to bypass file permissions on the remote host (for the | ||
419 | user's X authorization database) can access the local X11 display | ||
420 | through the forwarded connection. An attacker may then be able | ||
421 | to perform activities such as keystroke monitoring. | ||
422 | |||
423 | For this reason, X11 forwarding is subjected to X11 SECURITY | ||
424 | extension restrictions by default. Please refer to the ssh -Y | ||
425 | option and the ForwardX11Trusted directive in ssh_config(5) for | ||
426 | more information. | ||
427 | |||
428 | -x Disables X11 forwarding. | ||
429 | |||
430 | -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not | ||
431 | subjected to the X11 SECURITY extension controls. | ||
432 | |||
433 | -y Send log information using the syslog(3) system module. By | ||
434 | default this information is sent to stderr. | ||
435 | |||
436 | ssh may additionally obtain configuration data from a per-user | ||
437 | configuration file and a system-wide configuration file. The file format | ||
438 | and configuration options are described in ssh_config(5). | ||
439 | |||
440 | AUTHENTICATION | ||
441 | The OpenSSH SSH client supports SSH protocols 1 and 2. The default is to | ||
442 | use protocol 2 only, though this can be changed via the Protocol option | ||
443 | in ssh_config(5) or the -1 and -2 options (see above). Protocol 1 should | ||
444 | not be used and is only offered to support legacy devices. It suffers | ||
445 | from a number of cryptographic weaknesses and doesn't support many of the | ||
446 | advanced features available for protocol 2. | ||
447 | |||
448 | The methods available for authentication are: GSSAPI-based | ||
449 | authentication, host-based authentication, public key authentication, | ||
450 | challenge-response authentication, and password authentication. | ||
451 | Authentication methods are tried in the order specified above, though | ||
452 | PreferredAuthentications can be used to change the default order. | ||
453 | |||
454 | Host-based authentication works as follows: If the machine the user logs | ||
455 | in from is listed in /etc/hosts.equiv or /etc/shosts.equiv on the remote | ||
456 | machine, and the user names are the same on both sides, or if the files | ||
457 | ~/.rhosts or ~/.shosts exist in the user's home directory on the remote | ||
458 | machine and contain a line containing the name of the client machine and | ||
459 | the name of the user on that machine, the user is considered for login. | ||
460 | Additionally, the server must be able to verify the client's host key | ||
461 | (see the description of /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts, | ||
462 | below) for login to be permitted. This authentication method closes | ||
463 | security holes due to IP spoofing, DNS spoofing, and routing spoofing. | ||
464 | [Note to the administrator: /etc/hosts.equiv, ~/.rhosts, and the | ||
465 | rlogin/rsh protocol in general, are inherently insecure and should be | ||
466 | disabled if security is desired.] | ||
467 | |||
468 | Public key authentication works as follows: The scheme is based on | ||
469 | public-key cryptography, using cryptosystems where encryption and | ||
470 | decryption are done using separate keys, and it is unfeasible to derive | ||
471 | the decryption key from the encryption key. The idea is that each user | ||
472 | creates a public/private key pair for authentication purposes. The | ||
473 | server knows the public key, and only the user knows the private key. | ||
474 | ssh implements public key authentication protocol automatically, using | ||
475 | one of the DSA, ECDSA, Ed25519 or RSA algorithms. The HISTORY section of | ||
476 | ssl(8) contains a brief discussion of the DSA and RSA algorithms. | ||
477 | |||
478 | The file ~/.ssh/authorized_keys lists the public keys that are permitted | ||
479 | for logging in. When the user logs in, the ssh program tells the server | ||
480 | which key pair it would like to use for authentication. The client | ||
481 | proves that it has access to the private key and the server checks that | ||
482 | the corresponding public key is authorized to accept the account. | ||
483 | |||
484 | The user creates his/her key pair by running ssh-keygen(1). This stores | ||
485 | the private key in ~/.ssh/identity (protocol 1), ~/.ssh/id_dsa (DSA), | ||
486 | ~/.ssh/id_ecdsa (ECDSA), ~/.ssh/id_ed25519 (Ed25519), or ~/.ssh/id_rsa | ||
487 | (RSA) and stores the public key in ~/.ssh/identity.pub (protocol 1), | ||
488 | ~/.ssh/id_dsa.pub (DSA), ~/.ssh/id_ecdsa.pub (ECDSA), | ||
489 | ~/.ssh/id_ed25519.pub (Ed25519), or ~/.ssh/id_rsa.pub (RSA) in the user's | ||
490 | home directory. The user should then copy the public key to | ||
491 | ~/.ssh/authorized_keys in his/her home directory on the remote machine. | ||
492 | The authorized_keys file corresponds to the conventional ~/.rhosts file, | ||
493 | and has one key per line, though the lines can be very long. After this, | ||
494 | the user can log in without giving the password. | ||
495 | |||
496 | A variation on public key authentication is available in the form of | ||
497 | certificate authentication: instead of a set of public/private keys, | ||
498 | signed certificates are used. This has the advantage that a single | ||
499 | trusted certification authority can be used in place of many | ||
500 | public/private keys. See the CERTIFICATES section of ssh-keygen(1) for | ||
501 | more information. | ||
502 | |||
503 | The most convenient way to use public key or certificate authentication | ||
504 | may be with an authentication agent. See ssh-agent(1) and (optionally) | ||
505 | the AddKeysToAgent directive in ssh_config(5) for more information. | ||
506 | |||
507 | Challenge-response authentication works as follows: The server sends an | ||
508 | arbitrary "challenge" text, and prompts for a response. Examples of | ||
509 | challenge-response authentication include BSD Authentication (see | ||
510 | login.conf(5)) and PAM (some non-OpenBSD systems). | ||
511 | |||
512 | Finally, if other authentication methods fail, ssh prompts the user for a | ||
513 | password. The password is sent to the remote host for checking; however, | ||
514 | since all communications are encrypted, the password cannot be seen by | ||
515 | someone listening on the network. | ||
516 | |||
517 | ssh automatically maintains and checks a database containing | ||
518 | identification for all hosts it has ever been used with. Host keys are | ||
519 | stored in ~/.ssh/known_hosts in the user's home directory. Additionally, | ||
520 | the file /etc/ssh/ssh_known_hosts is automatically checked for known | ||
521 | hosts. Any new hosts are automatically added to the user's file. If a | ||
522 | host's identification ever changes, ssh warns about this and disables | ||
523 | password authentication to prevent server spoofing or man-in-the-middle | ||
524 | attacks, which could otherwise be used to circumvent the encryption. The | ||
525 | StrictHostKeyChecking option can be used to control logins to machines | ||
526 | whose host key is not known or has changed. | ||
527 | |||
528 | When the user's identity has been accepted by the server, the server | ||
529 | either executes the given command in a non-interactive session or, if no | ||
530 | command has been specified, logs into the machine and gives the user a | ||
531 | normal shell as an interactive session. All communication with the | ||
532 | remote command or shell will be automatically encrypted. | ||
533 | |||
534 | If an interactive session is requested ssh by default will only request a | ||
535 | pseudo-terminal (pty) for interactive sessions when the client has one. | ||
536 | The flags -T and -t can be used to override this behaviour. | ||
537 | |||
538 | If a pseudo-terminal has been allocated the user may use the escape | ||
539 | characters noted below. | ||
540 | |||
541 | If no pseudo-terminal has been allocated, the session is transparent and | ||
542 | can be used to reliably transfer binary data. On most systems, setting | ||
543 | the escape character to M-bM-^@M-^\noneM-bM-^@M-^] will also make the session transparent | ||
544 | even if a tty is used. | ||
545 | |||
546 | The session terminates when the command or shell on the remote machine | ||
547 | exits and all X11 and TCP connections have been closed. | ||
548 | |||
549 | ESCAPE CHARACTERS | ||
550 | When a pseudo-terminal has been requested, ssh supports a number of | ||
551 | functions through the use of an escape character. | ||
552 | |||
553 | A single tilde character can be sent as ~~ or by following the tilde by a | ||
554 | character other than those described below. The escape character must | ||
555 | always follow a newline to be interpreted as special. The escape | ||
556 | character can be changed in configuration files using the EscapeChar | ||
557 | configuration directive or on the command line by the -e option. | ||
558 | |||
559 | The supported escapes (assuming the default M-bM-^@M-^X~M-bM-^@M-^Y) are: | ||
560 | |||
561 | ~. Disconnect. | ||
562 | |||
563 | ~^Z Background ssh. | ||
564 | |||
565 | ~# List forwarded connections. | ||
566 | |||
567 | ~& Background ssh at logout when waiting for forwarded connection / | ||
568 | X11 sessions to terminate. | ||
569 | |||
570 | ~? Display a list of escape characters. | ||
571 | |||
572 | ~B Send a BREAK to the remote system (only useful if the peer | ||
573 | supports it). | ||
574 | |||
575 | ~C Open command line. Currently this allows the addition of port | ||
576 | forwardings using the -L, -R and -D options (see above). It also | ||
577 | allows the cancellation of existing port-forwardings with | ||
578 | -KL[bind_address:]port for local, -KR[bind_address:]port for | ||
579 | remote and -KD[bind_address:]port for dynamic port-forwardings. | ||
580 | !command allows the user to execute a local command if the | ||
581 | PermitLocalCommand option is enabled in ssh_config(5). Basic | ||
582 | help is available, using the -h option. | ||
583 | |||
584 | ~R Request rekeying of the connection (only useful if the peer | ||
585 | supports it). | ||
586 | |||
587 | ~V Decrease the verbosity (LogLevel) when errors are being written | ||
588 | to stderr. | ||
589 | |||
590 | ~v Increase the verbosity (LogLevel) when errors are being written | ||
591 | to stderr. | ||
592 | |||
593 | TCP FORWARDING | ||
594 | Forwarding of arbitrary TCP connections over the secure channel can be | ||
595 | specified either on the command line or in a configuration file. One | ||
596 | possible application of TCP forwarding is a secure connection to a mail | ||
597 | server; another is going through firewalls. | ||
598 | |||
599 | In the example below, we look at encrypting communication between an IRC | ||
600 | client and server, even though the IRC server does not directly support | ||
601 | encrypted communications. This works as follows: the user connects to | ||
602 | the remote host using ssh, specifying a port to be used to forward | ||
603 | connections to the remote server. After that it is possible to start the | ||
604 | service which is to be encrypted on the client machine, connecting to the | ||
605 | same local port, and ssh will encrypt and forward the connection. | ||
606 | |||
607 | The following example tunnels an IRC session from client machine | ||
608 | M-bM-^@M-^\127.0.0.1M-bM-^@M-^] (localhost) to remote server M-bM-^@M-^\server.example.comM-bM-^@M-^]: | ||
609 | |||
610 | $ ssh -f -L 1234:localhost:6667 server.example.com sleep 10 | ||
611 | $ irc -c '#users' -p 1234 pinky 127.0.0.1 | ||
612 | |||
613 | This tunnels a connection to IRC server M-bM-^@M-^\server.example.comM-bM-^@M-^], joining | ||
614 | channel M-bM-^@M-^\#usersM-bM-^@M-^], nickname M-bM-^@M-^\pinkyM-bM-^@M-^], using port 1234. It doesn't matter | ||
615 | which port is used, as long as it's greater than 1023 (remember, only | ||
616 | root can open sockets on privileged ports) and doesn't conflict with any | ||
617 | ports already in use. The connection is forwarded to port 6667 on the | ||
618 | remote server, since that's the standard port for IRC services. | ||
619 | |||
620 | The -f option backgrounds ssh and the remote command M-bM-^@M-^\sleep 10M-bM-^@M-^] is | ||
621 | specified to allow an amount of time (10 seconds, in the example) to | ||
622 | start the service which is to be tunnelled. If no connections are made | ||
623 | within the time specified, ssh will exit. | ||
624 | |||
625 | X11 FORWARDING | ||
626 | If the ForwardX11 variable is set to M-bM-^@M-^\yesM-bM-^@M-^] (or see the description of the | ||
627 | -X, -x, and -Y options above) and the user is using X11 (the DISPLAY | ||
628 | environment variable is set), the connection to the X11 display is | ||
629 | automatically forwarded to the remote side in such a way that any X11 | ||
630 | programs started from the shell (or command) will go through the | ||
631 | encrypted channel, and the connection to the real X server will be made | ||
632 | from the local machine. The user should not manually set DISPLAY. | ||
633 | Forwarding of X11 connections can be configured on the command line or in | ||
634 | configuration files. | ||
635 | |||
636 | The DISPLAY value set by ssh will point to the server machine, but with a | ||
637 | display number greater than zero. This is normal, and happens because | ||
638 | ssh creates a M-bM-^@M-^\proxyM-bM-^@M-^] X server on the server machine for forwarding the | ||
639 | connections over the encrypted channel. | ||
640 | |||
641 | ssh will also automatically set up Xauthority data on the server machine. | ||
642 | For this purpose, it will generate a random authorization cookie, store | ||
643 | it in Xauthority on the server, and verify that any forwarded connections | ||
644 | carry this cookie and replace it by the real cookie when the connection | ||
645 | is opened. The real authentication cookie is never sent to the server | ||
646 | machine (and no cookies are sent in the plain). | ||
647 | |||
648 | If the ForwardAgent variable is set to M-bM-^@M-^\yesM-bM-^@M-^] (or see the description of | ||
649 | the -A and -a options above) and the user is using an authentication | ||
650 | agent, the connection to the agent is automatically forwarded to the | ||
651 | remote side. | ||
652 | |||
653 | VERIFYING HOST KEYS | ||
654 | When connecting to a server for the first time, a fingerprint of the | ||
655 | server's public key is presented to the user (unless the option | ||
656 | StrictHostKeyChecking has been disabled). Fingerprints can be determined | ||
657 | using ssh-keygen(1): | ||
658 | |||
659 | $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key | ||
660 | |||
661 | If the fingerprint is already known, it can be matched and the key can be | ||
662 | accepted or rejected. If only legacy (MD5) fingerprints for the server | ||
663 | are available, the ssh-keygen(1) -E option may be used to downgrade the | ||
664 | fingerprint algorithm to match. | ||
665 | |||
666 | Because of the difficulty of comparing host keys just by looking at | ||
667 | fingerprint strings, there is also support to compare host keys visually, | ||
668 | using random art. By setting the VisualHostKey option to M-bM-^@M-^\yesM-bM-^@M-^], a small | ||
669 | ASCII graphic gets displayed on every login to a server, no matter if the | ||
670 | session itself is interactive or not. By learning the pattern a known | ||
671 | server produces, a user can easily find out that the host key has changed | ||
672 | when a completely different pattern is displayed. Because these patterns | ||
673 | are not unambiguous however, a pattern that looks similar to the pattern | ||
674 | remembered only gives a good probability that the host key is the same, | ||
675 | not guaranteed proof. | ||
676 | |||
677 | To get a listing of the fingerprints along with their random art for all | ||
678 | known hosts, the following command line can be used: | ||
679 | |||
680 | $ ssh-keygen -lv -f ~/.ssh/known_hosts | ||
681 | |||
682 | If the fingerprint is unknown, an alternative method of verification is | ||
683 | available: SSH fingerprints verified by DNS. An additional resource | ||
684 | record (RR), SSHFP, is added to a zonefile and the connecting client is | ||
685 | able to match the fingerprint with that of the key presented. | ||
686 | |||
687 | In this example, we are connecting a client to a server, | ||
688 | M-bM-^@M-^\host.example.comM-bM-^@M-^]. The SSHFP resource records should first be added to | ||
689 | the zonefile for host.example.com: | ||
690 | |||
691 | $ ssh-keygen -r host.example.com. | ||
692 | |||
693 | The output lines will have to be added to the zonefile. To check that | ||
694 | the zone is answering fingerprint queries: | ||
695 | |||
696 | $ dig -t SSHFP host.example.com | ||
697 | |||
698 | Finally the client connects: | ||
699 | |||
700 | $ ssh -o "VerifyHostKeyDNS ask" host.example.com | ||
701 | [...] | ||
702 | Matching host key fingerprint found in DNS. | ||
703 | Are you sure you want to continue connecting (yes/no)? | ||
704 | |||
705 | See the VerifyHostKeyDNS option in ssh_config(5) for more information. | ||
706 | |||
707 | SSH-BASED VIRTUAL PRIVATE NETWORKS | ||
708 | ssh contains support for Virtual Private Network (VPN) tunnelling using | ||
709 | the tun(4) network pseudo-device, allowing two networks to be joined | ||
710 | securely. The sshd_config(5) configuration option PermitTunnel controls | ||
711 | whether the server supports this, and at what level (layer 2 or 3 | ||
712 | traffic). | ||
713 | |||
714 | The following example would connect client network 10.0.50.0/24 with | ||
715 | remote network 10.0.99.0/24 using a point-to-point connection from | ||
716 | 10.1.1.1 to 10.1.1.2, provided that the SSH server running on the gateway | ||
717 | to the remote network, at 192.168.1.15, allows it. | ||
718 | |||
719 | On the client: | ||
720 | |||
721 | # ssh -f -w 0:1 192.168.1.15 true | ||
722 | # ifconfig tun0 10.1.1.1 10.1.1.2 netmask 255.255.255.252 | ||
723 | # route add 10.0.99.0/24 10.1.1.2 | ||
724 | |||
725 | On the server: | ||
726 | |||
727 | # ifconfig tun1 10.1.1.2 10.1.1.1 netmask 255.255.255.252 | ||
728 | # route add 10.0.50.0/24 10.1.1.1 | ||
729 | |||
730 | Client access may be more finely tuned via the /root/.ssh/authorized_keys | ||
731 | file (see below) and the PermitRootLogin server option. The following | ||
732 | entry would permit connections on tun(4) device 1 from user M-bM-^@M-^\janeM-bM-^@M-^] and on | ||
733 | tun device 2 from user M-bM-^@M-^\johnM-bM-^@M-^], if PermitRootLogin is set to | ||
734 | M-bM-^@M-^\forced-commands-onlyM-bM-^@M-^]: | ||
735 | |||
736 | tunnel="1",command="sh /etc/netstart tun1" ssh-rsa ... jane | ||
737 | tunnel="2",command="sh /etc/netstart tun2" ssh-rsa ... john | ||
738 | |||
739 | Since an SSH-based setup entails a fair amount of overhead, it may be | ||
740 | more suited to temporary setups, such as for wireless VPNs. More | ||
741 | permanent VPNs are better provided by tools such as ipsecctl(8) and | ||
742 | isakmpd(8). | ||
743 | |||
744 | ENVIRONMENT | ||
745 | ssh will normally set the following environment variables: | ||
746 | |||
747 | DISPLAY The DISPLAY variable indicates the location of the | ||
748 | X11 server. It is automatically set by ssh to | ||
749 | point to a value of the form M-bM-^@M-^\hostname:nM-bM-^@M-^], where | ||
750 | M-bM-^@M-^\hostnameM-bM-^@M-^] indicates the host where the shell runs, | ||
751 | and M-bM-^@M-^XnM-bM-^@M-^Y is an integer M-bM-^IM-% 1. ssh uses this special | ||
752 | value to forward X11 connections over the secure | ||
753 | channel. The user should normally not set DISPLAY | ||
754 | explicitly, as that will render the X11 connection | ||
755 | insecure (and will require the user to manually | ||
756 | copy any required authorization cookies). | ||
757 | |||
758 | HOME Set to the path of the user's home directory. | ||
759 | |||
760 | LOGNAME Synonym for USER; set for compatibility with | ||
761 | systems that use this variable. | ||
762 | |||
763 | MAIL Set to the path of the user's mailbox. | ||
764 | |||
765 | PATH Set to the default PATH, as specified when | ||
766 | compiling ssh. | ||
767 | |||
768 | SSH_ASKPASS If ssh needs a passphrase, it will read the | ||
769 | passphrase from the current terminal if it was run | ||
770 | from a terminal. If ssh does not have a terminal | ||
771 | associated with it but DISPLAY and SSH_ASKPASS are | ||
772 | set, it will execute the program specified by | ||
773 | SSH_ASKPASS and open an X11 window to read the | ||
774 | passphrase. This is particularly useful when | ||
775 | calling ssh from a .xsession or related script. | ||
776 | (Note that on some machines it may be necessary to | ||
777 | redirect the input from /dev/null to make this | ||
778 | work.) | ||
779 | |||
780 | SSH_AUTH_SOCK Identifies the path of a UNIX-domain socket used to | ||
781 | communicate with the agent. | ||
782 | |||
783 | SSH_CONNECTION Identifies the client and server ends of the | ||
784 | connection. The variable contains four space- | ||
785 | separated values: client IP address, client port | ||
786 | number, server IP address, and server port number. | ||
787 | |||
788 | SSH_ORIGINAL_COMMAND This variable contains the original command line if | ||
789 | a forced command is executed. It can be used to | ||
790 | extract the original arguments. | ||
791 | |||
792 | SSH_TTY This is set to the name of the tty (path to the | ||
793 | device) associated with the current shell or | ||
794 | command. If the current session has no tty, this | ||
795 | variable is not set. | ||
796 | |||
797 | TZ This variable is set to indicate the present time | ||
798 | zone if it was set when the daemon was started | ||
799 | (i.e. the daemon passes the value on to new | ||
800 | connections). | ||
801 | |||
802 | USER Set to the name of the user logging in. | ||
803 | |||
804 | Additionally, ssh reads ~/.ssh/environment, and adds lines of the format | ||
805 | M-bM-^@M-^\VARNAME=valueM-bM-^@M-^] to the environment if the file exists and users are | ||
806 | allowed to change their environment. For more information, see the | ||
807 | PermitUserEnvironment option in sshd_config(5). | ||
808 | |||
809 | FILES | ||
810 | ~/.rhosts | ||
811 | This file is used for host-based authentication (see above). On | ||
812 | some machines this file may need to be world-readable if the | ||
813 | user's home directory is on an NFS partition, because sshd(8) | ||
814 | reads it as root. Additionally, this file must be owned by the | ||
815 | user, and must not have write permissions for anyone else. The | ||
816 | recommended permission for most machines is read/write for the | ||
817 | user, and not accessible by others. | ||
818 | |||
819 | ~/.shosts | ||
820 | This file is used in exactly the same way as .rhosts, but allows | ||
821 | host-based authentication without permitting login with | ||
822 | rlogin/rsh. | ||
823 | |||
824 | ~/.ssh/ | ||
825 | This directory is the default location for all user-specific | ||
826 | configuration and authentication information. There is no | ||
827 | general requirement to keep the entire contents of this directory | ||
828 | secret, but the recommended permissions are read/write/execute | ||
829 | for the user, and not accessible by others. | ||
830 | |||
831 | ~/.ssh/authorized_keys | ||
832 | Lists the public keys (DSA, ECDSA, Ed25519, RSA) that can be used | ||
833 | for logging in as this user. The format of this file is | ||
834 | described in the sshd(8) manual page. This file is not highly | ||
835 | sensitive, but the recommended permissions are read/write for the | ||
836 | user, and not accessible by others. | ||
837 | |||
838 | ~/.ssh/config | ||
839 | This is the per-user configuration file. The file format and | ||
840 | configuration options are described in ssh_config(5). Because of | ||
841 | the potential for abuse, this file must have strict permissions: | ||
842 | read/write for the user, and not writable by others. | ||
843 | |||
844 | ~/.ssh/environment | ||
845 | Contains additional definitions for environment variables; see | ||
846 | ENVIRONMENT, above. | ||
847 | |||
848 | ~/.ssh/identity | ||
849 | ~/.ssh/id_dsa | ||
850 | ~/.ssh/id_ecdsa | ||
851 | ~/.ssh/id_ed25519 | ||
852 | ~/.ssh/id_rsa | ||
853 | Contains the private key for authentication. These files contain | ||
854 | sensitive data and should be readable by the user but not | ||
855 | accessible by others (read/write/execute). ssh will simply | ||
856 | ignore a private key file if it is accessible by others. It is | ||
857 | possible to specify a passphrase when generating the key which | ||
858 | will be used to encrypt the sensitive part of this file using | ||
859 | 3DES. | ||
860 | |||
861 | ~/.ssh/identity.pub | ||
862 | ~/.ssh/id_dsa.pub | ||
863 | ~/.ssh/id_ecdsa.pub | ||
864 | ~/.ssh/id_ed25519.pub | ||
865 | ~/.ssh/id_rsa.pub | ||
866 | Contains the public key for authentication. These files are not | ||
867 | sensitive and can (but need not) be readable by anyone. | ||
868 | |||
869 | ~/.ssh/known_hosts | ||
870 | Contains a list of host keys for all hosts the user has logged | ||
871 | into that are not already in the systemwide list of known host | ||
872 | keys. See sshd(8) for further details of the format of this | ||
873 | file. | ||
874 | |||
875 | ~/.ssh/rc | ||
876 | Commands in this file are executed by ssh when the user logs in, | ||
877 | just before the user's shell (or command) is started. See the | ||
878 | sshd(8) manual page for more information. | ||
879 | |||
880 | /etc/hosts.equiv | ||
881 | This file is for host-based authentication (see above). It | ||
882 | should only be writable by root. | ||
883 | |||
884 | /etc/shosts.equiv | ||
885 | This file is used in exactly the same way as hosts.equiv, but | ||
886 | allows host-based authentication without permitting login with | ||
887 | rlogin/rsh. | ||
888 | |||
889 | /etc/ssh/ssh_config | ||
890 | Systemwide configuration file. The file format and configuration | ||
891 | options are described in ssh_config(5). | ||
892 | |||
893 | /etc/ssh/ssh_host_key | ||
894 | /etc/ssh/ssh_host_dsa_key | ||
895 | /etc/ssh/ssh_host_ecdsa_key | ||
896 | /etc/ssh/ssh_host_ed25519_key | ||
897 | /etc/ssh/ssh_host_rsa_key | ||
898 | These files contain the private parts of the host keys and are | ||
899 | used for host-based authentication. | ||
900 | |||
901 | /etc/ssh/ssh_known_hosts | ||
902 | Systemwide list of known host keys. This file should be prepared | ||
903 | by the system administrator to contain the public host keys of | ||
904 | all machines in the organization. It should be world-readable. | ||
905 | See sshd(8) for further details of the format of this file. | ||
906 | |||
907 | /etc/ssh/sshrc | ||
908 | Commands in this file are executed by ssh when the user logs in, | ||
909 | just before the user's shell (or command) is started. See the | ||
910 | sshd(8) manual page for more information. | ||
911 | |||
912 | EXIT STATUS | ||
913 | ssh exits with the exit status of the remote command or with 255 if an | ||
914 | error occurred. | ||
915 | |||
916 | SEE ALSO | ||
917 | scp(1), sftp(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh-keyscan(1), | ||
918 | tun(4), ssh_config(5), ssh-keysign(8), sshd(8) | ||
919 | |||
920 | STANDARDS | ||
921 | S. Lehtinen and C. Lonvick, The Secure Shell (SSH) Protocol Assigned | ||
922 | Numbers, RFC 4250, January 2006. | ||
923 | |||
924 | T. Ylonen and C. Lonvick, The Secure Shell (SSH) Protocol Architecture, | ||
925 | RFC 4251, January 2006. | ||
926 | |||
927 | T. Ylonen and C. Lonvick, The Secure Shell (SSH) Authentication Protocol, | ||
928 | RFC 4252, January 2006. | ||
929 | |||
930 | T. Ylonen and C. Lonvick, The Secure Shell (SSH) Transport Layer | ||
931 | Protocol, RFC 4253, January 2006. | ||
932 | |||
933 | T. Ylonen and C. Lonvick, The Secure Shell (SSH) Connection Protocol, RFC | ||
934 | 4254, January 2006. | ||
935 | |||
936 | J. Schlyter and W. Griffin, Using DNS to Securely Publish Secure Shell | ||
937 | (SSH) Key Fingerprints, RFC 4255, January 2006. | ||
938 | |||
939 | F. Cusack and M. Forssen, Generic Message Exchange Authentication for the | ||
940 | Secure Shell Protocol (SSH), RFC 4256, January 2006. | ||
941 | |||
942 | J. Galbraith and P. Remaker, The Secure Shell (SSH) Session Channel Break | ||
943 | Extension, RFC 4335, January 2006. | ||
944 | |||
945 | M. Bellare, T. Kohno, and C. Namprempre, The Secure Shell (SSH) Transport | ||
946 | Layer Encryption Modes, RFC 4344, January 2006. | ||
947 | |||
948 | B. Harris, Improved Arcfour Modes for the Secure Shell (SSH) Transport | ||
949 | Layer Protocol, RFC 4345, January 2006. | ||
950 | |||
951 | M. Friedl, N. Provos, and W. Simpson, Diffie-Hellman Group Exchange for | ||
952 | the Secure Shell (SSH) Transport Layer Protocol, RFC 4419, March 2006. | ||
953 | |||
954 | J. Galbraith and R. Thayer, The Secure Shell (SSH) Public Key File | ||
955 | Format, RFC 4716, November 2006. | ||
956 | |||
957 | D. Stebila and J. Green, Elliptic Curve Algorithm Integration in the | ||
958 | Secure Shell Transport Layer, RFC 5656, December 2009. | ||
959 | |||
960 | A. Perrig and D. Song, Hash Visualization: a New Technique to improve | ||
961 | Real-World Security, 1999, International Workshop on Cryptographic | ||
962 | Techniques and E-Commerce (CrypTEC '99). | ||
963 | |||
964 | AUTHORS | ||
965 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
966 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
967 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
968 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
969 | versions 1.5 and 2.0. | ||
970 | |||
971 | OpenBSD 6.0 July 16, 2016 OpenBSD 6.0 | ||
diff --git a/ssh_config.0 b/ssh_config.0 new file mode 100644 index 000000000..8733281f5 --- /dev/null +++ b/ssh_config.0 | |||
@@ -0,0 +1,1090 @@ | |||
1 | SSH_CONFIG(5) File Formats Manual SSH_CONFIG(5) | ||
2 | |||
3 | NAME | ||
4 | ssh_config M-bM-^@M-^S OpenSSH SSH client configuration files | ||
5 | |||
6 | SYNOPSIS | ||
7 | ~/.ssh/config | ||
8 | /etc/ssh/ssh_config | ||
9 | |||
10 | DESCRIPTION | ||
11 | ssh(1) obtains configuration data from the following sources in the | ||
12 | following order: | ||
13 | |||
14 | 1. command-line options | ||
15 | 2. user's configuration file (~/.ssh/config) | ||
16 | 3. system-wide configuration file (/etc/ssh/ssh_config) | ||
17 | |||
18 | For each parameter, the first obtained value will be used. The | ||
19 | configuration files contain sections separated by M-bM-^@M-^\HostM-bM-^@M-^] specifications, | ||
20 | and that section is only applied for hosts that match one of the patterns | ||
21 | given in the specification. The matched host name is usually the one | ||
22 | given on the command line (see the CanonicalizeHostname option for | ||
23 | exceptions.) | ||
24 | |||
25 | Since the first obtained value for each parameter is used, more host- | ||
26 | specific declarations should be given near the beginning of the file, and | ||
27 | general defaults at the end. | ||
28 | |||
29 | The configuration file has the following format: | ||
30 | |||
31 | Empty lines and lines starting with M-bM-^@M-^X#M-bM-^@M-^Y are comments. Otherwise a line | ||
32 | is of the format M-bM-^@M-^\keyword argumentsM-bM-^@M-^]. Configuration options may be | ||
33 | separated by whitespace or optional whitespace and exactly one M-bM-^@M-^X=M-bM-^@M-^Y; the | ||
34 | latter format is useful to avoid the need to quote whitespace when | ||
35 | specifying configuration options using the ssh, scp, and sftp -o option. | ||
36 | Arguments may optionally be enclosed in double quotes (") in order to | ||
37 | represent arguments containing spaces. | ||
38 | |||
39 | The possible keywords and their meanings are as follows (note that | ||
40 | keywords are case-insensitive and arguments are case-sensitive): | ||
41 | |||
42 | Host Restricts the following declarations (up to the next Host or | ||
43 | Match keyword) to be only for those hosts that match one of the | ||
44 | patterns given after the keyword. If more than one pattern is | ||
45 | provided, they should be separated by whitespace. A single M-bM-^@M-^X*M-bM-^@M-^Y | ||
46 | as a pattern can be used to provide global defaults for all | ||
47 | hosts. The host is usually the hostname argument given on the | ||
48 | command line (see the CanonicalizeHostname option for | ||
49 | exceptions.) | ||
50 | |||
51 | A pattern entry may be negated by prefixing it with an | ||
52 | exclamation mark (M-bM-^@M-^X!M-bM-^@M-^Y). If a negated entry is matched, then the | ||
53 | Host entry is ignored, regardless of whether any other patterns | ||
54 | on the line match. Negated matches are therefore useful to | ||
55 | provide exceptions for wildcard matches. | ||
56 | |||
57 | See PATTERNS for more information on patterns. | ||
58 | |||
59 | Match Restricts the following declarations (up to the next Host or | ||
60 | Match keyword) to be used only when the conditions following the | ||
61 | Match keyword are satisfied. Match conditions are specified | ||
62 | using one or more criteria or the single token all which always | ||
63 | matches. The available criteria keywords are: canonical, exec, | ||
64 | host, originalhost, user, and localuser. The all criteria must | ||
65 | appear alone or immediately after canonical. Other criteria may | ||
66 | be combined arbitrarily. All criteria but all and canonical | ||
67 | require an argument. Criteria may be negated by prepending an | ||
68 | exclamation mark (M-bM-^@M-^X!M-bM-^@M-^Y). | ||
69 | |||
70 | The canonical keyword matches only when the configuration file is | ||
71 | being re-parsed after hostname canonicalization (see the | ||
72 | CanonicalizeHostname option.) This may be useful to specify | ||
73 | conditions that work with canonical host names only. The exec | ||
74 | keyword executes the specified command under the user's shell. | ||
75 | If the command returns a zero exit status then the condition is | ||
76 | considered true. Commands containing whitespace characters must | ||
77 | be quoted. The following character sequences in the command will | ||
78 | be expanded prior to execution: M-bM-^@M-^X%LM-bM-^@M-^Y will be substituted by the | ||
79 | first component of the local host name, M-bM-^@M-^X%lM-bM-^@M-^Y will be substituted | ||
80 | by the local host name (including any domain name), M-bM-^@M-^X%hM-bM-^@M-^Y will be | ||
81 | substituted by the target host name, M-bM-^@M-^X%nM-bM-^@M-^Y will be substituted by | ||
82 | the original target host name specified on the command-line, M-bM-^@M-^X%pM-bM-^@M-^Y | ||
83 | the destination port, M-bM-^@M-^X%rM-bM-^@M-^Y by the remote login username, and M-bM-^@M-^X%uM-bM-^@M-^Y | ||
84 | by the username of the user running ssh(1). | ||
85 | |||
86 | The other keywords' criteria must be single entries or comma- | ||
87 | separated lists and may use the wildcard and negation operators | ||
88 | described in the PATTERNS section. The criteria for the host | ||
89 | keyword are matched against the target hostname, after any | ||
90 | substitution by the Hostname or CanonicalizeHostname options. | ||
91 | The originalhost keyword matches against the hostname as it was | ||
92 | specified on the command-line. The user keyword matches against | ||
93 | the target username on the remote host. The localuser keyword | ||
94 | matches against the name of the local user running ssh(1) (this | ||
95 | keyword may be useful in system-wide ssh_config files). | ||
96 | |||
97 | AddKeysToAgent | ||
98 | Specifies whether keys should be automatically added to a running | ||
99 | ssh-agent(1). If this option is set to M-bM-^@M-^\yesM-bM-^@M-^] and a key is loaded | ||
100 | from a file, the key and its passphrase are added to the agent | ||
101 | with the default lifetime, as if by ssh-add(1). If this option | ||
102 | is set to M-bM-^@M-^\askM-bM-^@M-^], ssh will require confirmation using the | ||
103 | SSH_ASKPASS program before adding a key (see ssh-add(1) for | ||
104 | details). If this option is set to M-bM-^@M-^\confirmM-bM-^@M-^], each use of the | ||
105 | key must be confirmed, as if the -c option was specified to | ||
106 | ssh-add(1). If this option is set to M-bM-^@M-^\noM-bM-^@M-^], no keys are added to | ||
107 | the agent. The argument must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\confirmM-bM-^@M-^], M-bM-^@M-^\askM-bM-^@M-^], or | ||
108 | M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
109 | |||
110 | AddressFamily | ||
111 | Specifies which address family to use when connecting. Valid | ||
112 | arguments are M-bM-^@M-^\anyM-bM-^@M-^], M-bM-^@M-^\inetM-bM-^@M-^] (use IPv4 only), or M-bM-^@M-^\inet6M-bM-^@M-^] (use IPv6 | ||
113 | only). The default is M-bM-^@M-^\anyM-bM-^@M-^]. | ||
114 | |||
115 | BatchMode | ||
116 | If set to M-bM-^@M-^\yesM-bM-^@M-^], passphrase/password querying will be disabled. | ||
117 | This option is useful in scripts and other batch jobs where no | ||
118 | user is present to supply the password. The argument must be | ||
119 | M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
120 | |||
121 | BindAddress | ||
122 | Use the specified address on the local machine as the source | ||
123 | address of the connection. Only useful on systems with more than | ||
124 | one address. Note that this option does not work if | ||
125 | UsePrivilegedPort is set to M-bM-^@M-^\yesM-bM-^@M-^]. | ||
126 | |||
127 | CanonicalDomains | ||
128 | When CanonicalizeHostname is enabled, this option specifies the | ||
129 | list of domain suffixes in which to search for the specified | ||
130 | destination host. | ||
131 | |||
132 | CanonicalizeFallbackLocal | ||
133 | Specifies whether to fail with an error when hostname | ||
134 | canonicalization fails. The default, M-bM-^@M-^\yesM-bM-^@M-^], will attempt to look | ||
135 | up the unqualified hostname using the system resolver's search | ||
136 | rules. A value of M-bM-^@M-^\noM-bM-^@M-^] will cause ssh(1) to fail instantly if | ||
137 | CanonicalizeHostname is enabled and the target hostname cannot be | ||
138 | found in any of the domains specified by CanonicalDomains. | ||
139 | |||
140 | CanonicalizeHostname | ||
141 | Controls whether explicit hostname canonicalization is performed. | ||
142 | The default, M-bM-^@M-^\noM-bM-^@M-^], is not to perform any name rewriting and let | ||
143 | the system resolver handle all hostname lookups. If set to M-bM-^@M-^\yesM-bM-^@M-^] | ||
144 | then, for connections that do not use a ProxyCommand, ssh(1) will | ||
145 | attempt to canonicalize the hostname specified on the command | ||
146 | line using the CanonicalDomains suffixes and | ||
147 | CanonicalizePermittedCNAMEs rules. If CanonicalizeHostname is | ||
148 | set to M-bM-^@M-^\alwaysM-bM-^@M-^], then canonicalization is applied to proxied | ||
149 | connections too. | ||
150 | |||
151 | If this option is enabled, then the configuration files are | ||
152 | processed again using the new target name to pick up any new | ||
153 | configuration in matching Host and Match stanzas. | ||
154 | |||
155 | CanonicalizeMaxDots | ||
156 | Specifies the maximum number of dot characters in a hostname | ||
157 | before canonicalization is disabled. The default, M-bM-^@M-^\1M-bM-^@M-^], allows a | ||
158 | single dot (i.e. hostname.subdomain). | ||
159 | |||
160 | CanonicalizePermittedCNAMEs | ||
161 | Specifies rules to determine whether CNAMEs should be followed | ||
162 | when canonicalizing hostnames. The rules consist of one or more | ||
163 | arguments of source_domain_list:target_domain_list, where | ||
164 | source_domain_list is a pattern-list of domains that may follow | ||
165 | CNAMEs in canonicalization, and target_domain_list is a pattern- | ||
166 | list of domains that they may resolve to. | ||
167 | |||
168 | For example, M-bM-^@M-^\*.a.example.com:*.b.example.com,*.c.example.comM-bM-^@M-^] | ||
169 | will allow hostnames matching M-bM-^@M-^\*.a.example.comM-bM-^@M-^] to be | ||
170 | canonicalized to names in the M-bM-^@M-^\*.b.example.comM-bM-^@M-^] or | ||
171 | M-bM-^@M-^\*.c.example.comM-bM-^@M-^] domains. | ||
172 | |||
173 | CertificateFile | ||
174 | Specifies a file from which the user's certificate is read. A | ||
175 | corresponding private key must be provided separately in order to | ||
176 | use this certificate either from an IdentityFile directive or -i | ||
177 | flag to ssh(1), via ssh-agent(1), or via a PKCS11Provider. | ||
178 | |||
179 | The file name may use the tilde syntax to refer to a user's home | ||
180 | directory or one of the following escape characters: M-bM-^@M-^X%dM-bM-^@M-^Y (local | ||
181 | user's home directory), M-bM-^@M-^X%uM-bM-^@M-^Y (local user name), M-bM-^@M-^X%lM-bM-^@M-^Y (local host | ||
182 | name), M-bM-^@M-^X%hM-bM-^@M-^Y (remote host name) or M-bM-^@M-^X%rM-bM-^@M-^Y (remote user name). | ||
183 | |||
184 | It is possible to have multiple certificate files specified in | ||
185 | configuration files; these certificates will be tried in | ||
186 | sequence. Multiple CertificateFile directives will add to the | ||
187 | list of certificates used for authentication. | ||
188 | |||
189 | ChallengeResponseAuthentication | ||
190 | Specifies whether to use challenge-response authentication. The | ||
191 | argument to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is | ||
192 | M-bM-^@M-^\yesM-bM-^@M-^]. | ||
193 | |||
194 | CheckHostIP | ||
195 | If this flag is set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) will additionally check the | ||
196 | host IP address in the known_hosts file. This allows ssh to | ||
197 | detect if a host key changed due to DNS spoofing and will add | ||
198 | addresses of destination hosts to ~/.ssh/known_hosts in the | ||
199 | process, regardless of the setting of StrictHostKeyChecking. If | ||
200 | the option is set to M-bM-^@M-^\noM-bM-^@M-^], the check will not be executed. The | ||
201 | default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
202 | |||
203 | Cipher Specifies the cipher to use for encrypting the session in | ||
204 | protocol version 1. Currently, M-bM-^@M-^\blowfishM-bM-^@M-^], M-bM-^@M-^\3desM-bM-^@M-^], and M-bM-^@M-^\desM-bM-^@M-^] are | ||
205 | supported. des is only supported in the ssh(1) client for | ||
206 | interoperability with legacy protocol 1 implementations that do | ||
207 | not support the 3des cipher. Its use is strongly discouraged due | ||
208 | to cryptographic weaknesses. The default is M-bM-^@M-^\3desM-bM-^@M-^]. | ||
209 | |||
210 | Ciphers | ||
211 | Specifies the ciphers allowed for protocol version 2 in order of | ||
212 | preference. Multiple ciphers must be comma-separated. If the | ||
213 | specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the specified | ||
214 | ciphers will be appended to the default set instead of replacing | ||
215 | them. | ||
216 | |||
217 | The supported ciphers are: | ||
218 | |||
219 | 3des-cbc | ||
220 | aes128-cbc | ||
221 | aes192-cbc | ||
222 | aes256-cbc | ||
223 | aes128-ctr | ||
224 | aes192-ctr | ||
225 | aes256-ctr | ||
226 | aes128-gcm@openssh.com | ||
227 | aes256-gcm@openssh.com | ||
228 | arcfour | ||
229 | arcfour128 | ||
230 | arcfour256 | ||
231 | blowfish-cbc | ||
232 | cast128-cbc | ||
233 | chacha20-poly1305@openssh.com | ||
234 | |||
235 | The default is: | ||
236 | |||
237 | chacha20-poly1305@openssh.com, | ||
238 | aes128-ctr,aes192-ctr,aes256-ctr, | ||
239 | aes128-gcm@openssh.com,aes256-gcm@openssh.com, | ||
240 | aes128-cbc,aes192-cbc,aes256-cbc,3des-cbc | ||
241 | |||
242 | The list of available ciphers may also be obtained using the -Q | ||
243 | option of ssh(1) with an argument of M-bM-^@M-^\cipherM-bM-^@M-^]. | ||
244 | |||
245 | ClearAllForwardings | ||
246 | Specifies that all local, remote, and dynamic port forwardings | ||
247 | specified in the configuration files or on the command line be | ||
248 | cleared. This option is primarily useful when used from the | ||
249 | ssh(1) command line to clear port forwardings set in | ||
250 | configuration files, and is automatically set by scp(1) and | ||
251 | sftp(1). The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is | ||
252 | M-bM-^@M-^\noM-bM-^@M-^]. | ||
253 | |||
254 | Compression | ||
255 | Specifies whether to use compression. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] | ||
256 | or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
257 | |||
258 | CompressionLevel | ||
259 | Specifies the compression level to use if compression is enabled. | ||
260 | The argument must be an integer from 1 (fast) to 9 (slow, best). | ||
261 | The default level is 6, which is good for most applications. The | ||
262 | meaning of the values is the same as in gzip(1). Note that this | ||
263 | option applies to protocol version 1 only. | ||
264 | |||
265 | ConnectionAttempts | ||
266 | Specifies the number of tries (one per second) to make before | ||
267 | exiting. The argument must be an integer. This may be useful in | ||
268 | scripts if the connection sometimes fails. The default is 1. | ||
269 | |||
270 | ConnectTimeout | ||
271 | Specifies the timeout (in seconds) used when connecting to the | ||
272 | SSH server, instead of using the default system TCP timeout. | ||
273 | This value is used only when the target is down or really | ||
274 | unreachable, not when it refuses the connection. | ||
275 | |||
276 | ControlMaster | ||
277 | Enables the sharing of multiple sessions over a single network | ||
278 | connection. When set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) will listen for | ||
279 | connections on a control socket specified using the ControlPath | ||
280 | argument. Additional sessions can connect to this socket using | ||
281 | the same ControlPath with ControlMaster set to M-bM-^@M-^\noM-bM-^@M-^] (the | ||
282 | default). These sessions will try to reuse the master instance's | ||
283 | network connection rather than initiating new ones, but will fall | ||
284 | back to connecting normally if the control socket does not exist, | ||
285 | or is not listening. | ||
286 | |||
287 | Setting this to M-bM-^@M-^\askM-bM-^@M-^] will cause ssh to listen for control | ||
288 | connections, but require confirmation using ssh-askpass(1). If | ||
289 | the ControlPath cannot be opened, ssh will continue without | ||
290 | connecting to a master instance. | ||
291 | |||
292 | X11 and ssh-agent(1) forwarding is supported over these | ||
293 | multiplexed connections, however the display and agent forwarded | ||
294 | will be the one belonging to the master connection i.e. it is not | ||
295 | possible to forward multiple displays or agents. | ||
296 | |||
297 | Two additional options allow for opportunistic multiplexing: try | ||
298 | to use a master connection but fall back to creating a new one if | ||
299 | one does not already exist. These options are: M-bM-^@M-^\autoM-bM-^@M-^] and | ||
300 | M-bM-^@M-^\autoaskM-bM-^@M-^]. The latter requires confirmation like the M-bM-^@M-^\askM-bM-^@M-^] | ||
301 | option. | ||
302 | |||
303 | ControlPath | ||
304 | Specify the path to the control socket used for connection | ||
305 | sharing as described in the ControlMaster section above or the | ||
306 | string M-bM-^@M-^\noneM-bM-^@M-^] to disable connection sharing. In the path, M-bM-^@M-^X%LM-bM-^@M-^Y | ||
307 | will be substituted by the first component of the local host | ||
308 | name, M-bM-^@M-^X%lM-bM-^@M-^Y will be substituted by the local host name (including | ||
309 | any domain name), M-bM-^@M-^X%hM-bM-^@M-^Y will be substituted by the target host | ||
310 | name, M-bM-^@M-^X%nM-bM-^@M-^Y will be substituted by the original target host name | ||
311 | specified on the command line, M-bM-^@M-^X%pM-bM-^@M-^Y the destination port, M-bM-^@M-^X%rM-bM-^@M-^Y by | ||
312 | the remote login username, M-bM-^@M-^X%uM-bM-^@M-^Y by the username and M-bM-^@M-^X%iM-bM-^@M-^Y by the | ||
313 | numeric user ID (uid) of the user running ssh(1), and M-bM-^@M-^X%CM-bM-^@M-^Y by a | ||
314 | hash of the concatenation: %l%h%p%r. It is recommended that any | ||
315 | ControlPath used for opportunistic connection sharing include at | ||
316 | least %h, %p, and %r (or alternatively %C) and be placed in a | ||
317 | directory that is not writable by other users. This ensures that | ||
318 | shared connections are uniquely identified. | ||
319 | |||
320 | ControlPersist | ||
321 | When used in conjunction with ControlMaster, specifies that the | ||
322 | master connection should remain open in the background (waiting | ||
323 | for future client connections) after the initial client | ||
324 | connection has been closed. If set to M-bM-^@M-^\noM-bM-^@M-^], then the master | ||
325 | connection will not be placed into the background, and will close | ||
326 | as soon as the initial client connection is closed. If set to | ||
327 | M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\0M-bM-^@M-^], then the master connection will remain in the | ||
328 | background indefinitely (until killed or closed via a mechanism | ||
329 | such as the ssh(1) M-bM-^@M-^\-O exitM-bM-^@M-^] option). If set to a time in | ||
330 | seconds, or a time in any of the formats documented in | ||
331 | sshd_config(5), then the backgrounded master connection will | ||
332 | automatically terminate after it has remained idle (with no | ||
333 | client connections) for the specified time. | ||
334 | |||
335 | DynamicForward | ||
336 | Specifies that a TCP port on the local machine be forwarded over | ||
337 | the secure channel, and the application protocol is then used to | ||
338 | determine where to connect to from the remote machine. | ||
339 | |||
340 | The argument must be [bind_address:]port. IPv6 addresses can be | ||
341 | specified by enclosing addresses in square brackets. By default, | ||
342 | the local port is bound in accordance with the GatewayPorts | ||
343 | setting. However, an explicit bind_address may be used to bind | ||
344 | the connection to a specific address. The bind_address of | ||
345 | M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the listening port be bound for local | ||
346 | use only, while an empty address or M-bM-^@M-^X*M-bM-^@M-^Y indicates that the port | ||
347 | should be available from all interfaces. | ||
348 | |||
349 | Currently the SOCKS4 and SOCKS5 protocols are supported, and | ||
350 | ssh(1) will act as a SOCKS server. Multiple forwardings may be | ||
351 | specified, and additional forwardings can be given on the command | ||
352 | line. Only the superuser can forward privileged ports. | ||
353 | |||
354 | EnableSSHKeysign | ||
355 | Setting this option to M-bM-^@M-^\yesM-bM-^@M-^] in the global client configuration | ||
356 | file /etc/ssh/ssh_config enables the use of the helper program | ||
357 | ssh-keysign(8) during HostbasedAuthentication. The argument must | ||
358 | be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. This option should be | ||
359 | placed in the non-hostspecific section. See ssh-keysign(8) for | ||
360 | more information. | ||
361 | |||
362 | EscapeChar | ||
363 | Sets the escape character (default: M-bM-^@M-^X~M-bM-^@M-^Y). The escape character | ||
364 | can also be set on the command line. The argument should be a | ||
365 | single character, M-bM-^@M-^X^M-bM-^@M-^Y followed by a letter, or M-bM-^@M-^\noneM-bM-^@M-^] to disable | ||
366 | the escape character entirely (making the connection transparent | ||
367 | for binary data). | ||
368 | |||
369 | ExitOnForwardFailure | ||
370 | Specifies whether ssh(1) should terminate the connection if it | ||
371 | cannot set up all requested dynamic, tunnel, local, and remote | ||
372 | port forwardings, (e.g. if either end is unable to bind and | ||
373 | listen on a specified port). Note that ExitOnForwardFailure does | ||
374 | not apply to connections made over port forwardings and will not, | ||
375 | for example, cause ssh(1) to exit if TCP connections to the | ||
376 | ultimate forwarding destination fail. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] | ||
377 | or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
378 | |||
379 | FingerprintHash | ||
380 | Specifies the hash algorithm used when displaying key | ||
381 | fingerprints. Valid options are: M-bM-^@M-^\md5M-bM-^@M-^] and M-bM-^@M-^\sha256M-bM-^@M-^]. The | ||
382 | default is M-bM-^@M-^\sha256M-bM-^@M-^]. | ||
383 | |||
384 | ForwardAgent | ||
385 | Specifies whether the connection to the authentication agent (if | ||
386 | any) will be forwarded to the remote machine. The argument must | ||
387 | be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
388 | |||
389 | Agent forwarding should be enabled with caution. Users with the | ||
390 | ability to bypass file permissions on the remote host (for the | ||
391 | agent's Unix-domain socket) can access the local agent through | ||
392 | the forwarded connection. An attacker cannot obtain key material | ||
393 | from the agent, however they can perform operations on the keys | ||
394 | that enable them to authenticate using the identities loaded into | ||
395 | the agent. | ||
396 | |||
397 | ForwardX11 | ||
398 | Specifies whether X11 connections will be automatically | ||
399 | redirected over the secure channel and DISPLAY set. The argument | ||
400 | must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
401 | |||
402 | X11 forwarding should be enabled with caution. Users with the | ||
403 | ability to bypass file permissions on the remote host (for the | ||
404 | user's X11 authorization database) can access the local X11 | ||
405 | display through the forwarded connection. An attacker may then | ||
406 | be able to perform activities such as keystroke monitoring if the | ||
407 | ForwardX11Trusted option is also enabled. | ||
408 | |||
409 | ForwardX11Timeout | ||
410 | Specify a timeout for untrusted X11 forwarding using the format | ||
411 | described in the TIME FORMATS section of sshd_config(5). X11 | ||
412 | connections received by ssh(1) after this time will be refused. | ||
413 | The default is to disable untrusted X11 forwarding after twenty | ||
414 | minutes has elapsed. | ||
415 | |||
416 | ForwardX11Trusted | ||
417 | If this option is set to M-bM-^@M-^\yesM-bM-^@M-^], remote X11 clients will have full | ||
418 | access to the original X11 display. | ||
419 | |||
420 | If this option is set to M-bM-^@M-^\noM-bM-^@M-^], remote X11 clients will be | ||
421 | considered untrusted and prevented from stealing or tampering | ||
422 | with data belonging to trusted X11 clients. Furthermore, the | ||
423 | xauth(1) token used for the session will be set to expire after | ||
424 | 20 minutes. Remote clients will be refused access after this | ||
425 | time. | ||
426 | |||
427 | The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
428 | |||
429 | See the X11 SECURITY extension specification for full details on | ||
430 | the restrictions imposed on untrusted clients. | ||
431 | |||
432 | GatewayPorts | ||
433 | Specifies whether remote hosts are allowed to connect to local | ||
434 | forwarded ports. By default, ssh(1) binds local port forwardings | ||
435 | to the loopback address. This prevents other remote hosts from | ||
436 | connecting to forwarded ports. GatewayPorts can be used to | ||
437 | specify that ssh should bind local port forwardings to the | ||
438 | wildcard address, thus allowing remote hosts to connect to | ||
439 | forwarded ports. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The | ||
440 | default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
441 | |||
442 | GlobalKnownHostsFile | ||
443 | Specifies one or more files to use for the global host key | ||
444 | database, separated by whitespace. The default is | ||
445 | /etc/ssh/ssh_known_hosts, /etc/ssh/ssh_known_hosts2. | ||
446 | |||
447 | GSSAPIAuthentication | ||
448 | Specifies whether user authentication based on GSSAPI is allowed. | ||
449 | The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
450 | |||
451 | GSSAPIDelegateCredentials | ||
452 | Forward (delegate) credentials to the server. The default is | ||
453 | M-bM-^@M-^\noM-bM-^@M-^]. | ||
454 | |||
455 | HashKnownHosts | ||
456 | Indicates that ssh(1) should hash host names and addresses when | ||
457 | they are added to ~/.ssh/known_hosts. These hashed names may be | ||
458 | used normally by ssh(1) and sshd(8), but they do not reveal | ||
459 | identifying information should the file's contents be disclosed. | ||
460 | The default is M-bM-^@M-^\noM-bM-^@M-^]. Note that existing names and addresses in | ||
461 | known hosts files will not be converted automatically, but may be | ||
462 | manually hashed using ssh-keygen(1). | ||
463 | |||
464 | HostbasedAuthentication | ||
465 | Specifies whether to try rhosts based authentication with public | ||
466 | key authentication. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The | ||
467 | default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
468 | |||
469 | HostbasedKeyTypes | ||
470 | Specifies the key types that will be used for hostbased | ||
471 | authentication as a comma-separated pattern list. Alternately if | ||
472 | the specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the | ||
473 | specified key types will be appended to the default set instead | ||
474 | of replacing them. The default for this option is: | ||
475 | |||
476 | ecdsa-sha2-nistp256-cert-v01@openssh.com, | ||
477 | ecdsa-sha2-nistp384-cert-v01@openssh.com, | ||
478 | ecdsa-sha2-nistp521-cert-v01@openssh.com, | ||
479 | ssh-ed25519-cert-v01@openssh.com, | ||
480 | ssh-rsa-cert-v01@openssh.com, | ||
481 | ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521, | ||
482 | ssh-ed25519,ssh-rsa | ||
483 | |||
484 | The -Q option of ssh(1) may be used to list supported key types. | ||
485 | |||
486 | HostKeyAlgorithms | ||
487 | Specifies the host key algorithms that the client wants to use in | ||
488 | order of preference. Alternately if the specified value begins | ||
489 | with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the specified key types will be | ||
490 | appended to the default set instead of replacing them. The | ||
491 | default for this option is: | ||
492 | |||
493 | ecdsa-sha2-nistp256-cert-v01@openssh.com, | ||
494 | ecdsa-sha2-nistp384-cert-v01@openssh.com, | ||
495 | ecdsa-sha2-nistp521-cert-v01@openssh.com, | ||
496 | ssh-ed25519-cert-v01@openssh.com, | ||
497 | ssh-rsa-cert-v01@openssh.com, | ||
498 | ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521, | ||
499 | ssh-ed25519,ssh-rsa | ||
500 | |||
501 | If hostkeys are known for the destination host then this default | ||
502 | is modified to prefer their algorithms. | ||
503 | |||
504 | The list of available key types may also be obtained using the -Q | ||
505 | option of ssh(1) with an argument of M-bM-^@M-^\keyM-bM-^@M-^]. | ||
506 | |||
507 | HostKeyAlias | ||
508 | Specifies an alias that should be used instead of the real host | ||
509 | name when looking up or saving the host key in the host key | ||
510 | database files. This option is useful for tunneling SSH | ||
511 | connections or for multiple servers running on a single host. | ||
512 | |||
513 | HostName | ||
514 | Specifies the real host name to log into. This can be used to | ||
515 | specify nicknames or abbreviations for hosts. If the hostname | ||
516 | contains the character sequence M-bM-^@M-^X%hM-bM-^@M-^Y, then this will be replaced | ||
517 | with the host name specified on the command line (this is useful | ||
518 | for manipulating unqualified names). The character sequence M-bM-^@M-^X%%M-bM-^@M-^Y | ||
519 | will be replaced by a single M-bM-^@M-^X%M-bM-^@M-^Y character, which may be used | ||
520 | when specifying IPv6 link-local addresses. | ||
521 | |||
522 | The default is the name given on the command line. Numeric IP | ||
523 | addresses are also permitted (both on the command line and in | ||
524 | HostName specifications). | ||
525 | |||
526 | IdentitiesOnly | ||
527 | Specifies that ssh(1) should only use the authentication identity | ||
528 | and certificate files explicitly configured in the ssh_config | ||
529 | files or passed on the ssh(1) command-line, even if ssh-agent(1) | ||
530 | or a PKCS11Provider offers more identities. The argument to this | ||
531 | keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. This option is intended for | ||
532 | situations where ssh-agent offers many different identities. The | ||
533 | default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
534 | |||
535 | IdentityAgent | ||
536 | Specifies the UNIX-domain socket used to communicate with the | ||
537 | authentication agent. | ||
538 | |||
539 | This option overrides the M-bM-^@M-^\SSH_AUTH_SOCKM-bM-^@M-^] environment variable | ||
540 | and can be used to select a specific agent. Setting the socket | ||
541 | name to M-bM-^@M-^\noneM-bM-^@M-^] disables the use of an authentication agent. If | ||
542 | the string M-bM-^@M-^\SSH_AUTH_SOCKM-bM-^@M-^] is specified, the location of the | ||
543 | socket will be read from the SSH_AUTH_SOCK environment variable. | ||
544 | |||
545 | The socket name may use the tilde syntax to refer to a user's | ||
546 | home directory or one of the following escape characters: M-bM-^@M-^X%dM-bM-^@M-^Y | ||
547 | (local user's home directory), M-bM-^@M-^X%uM-bM-^@M-^Y (local user name), M-bM-^@M-^X%lM-bM-^@M-^Y | ||
548 | (local host name), M-bM-^@M-^X%hM-bM-^@M-^Y (remote host name) or M-bM-^@M-^X%rM-bM-^@M-^Y (remote user | ||
549 | name). | ||
550 | |||
551 | IdentityFile | ||
552 | Specifies a file from which the user's DSA, ECDSA, Ed25519 or RSA | ||
553 | authentication identity is read. The default is ~/.ssh/identity | ||
554 | for protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, | ||
555 | ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2. | ||
556 | Additionally, any identities represented by the authentication | ||
557 | agent will be used for authentication unless IdentitiesOnly is | ||
558 | set. If no certificates have been explicitly specified by | ||
559 | CertificateFile, ssh(1) will try to load certificate information | ||
560 | from the filename obtained by appending -cert.pub to the path of | ||
561 | a specified IdentityFile. | ||
562 | |||
563 | The file name may use the tilde syntax to refer to a user's home | ||
564 | directory or one of the following escape characters: M-bM-^@M-^X%dM-bM-^@M-^Y (local | ||
565 | user's home directory), M-bM-^@M-^X%uM-bM-^@M-^Y (local user name), M-bM-^@M-^X%lM-bM-^@M-^Y (local host | ||
566 | name), M-bM-^@M-^X%hM-bM-^@M-^Y (remote host name) or M-bM-^@M-^X%rM-bM-^@M-^Y (remote user name). | ||
567 | |||
568 | It is possible to have multiple identity files specified in | ||
569 | configuration files; all these identities will be tried in | ||
570 | sequence. Multiple IdentityFile directives will add to the list | ||
571 | of identities tried (this behaviour differs from that of other | ||
572 | configuration directives). | ||
573 | |||
574 | IdentityFile may be used in conjunction with IdentitiesOnly to | ||
575 | select which identities in an agent are offered during | ||
576 | authentication. IdentityFile may also be used in conjunction | ||
577 | with CertificateFile in order to provide any certificate also | ||
578 | needed for authentication with the identity. | ||
579 | |||
580 | IgnoreUnknown | ||
581 | Specifies a pattern-list of unknown options to be ignored if they | ||
582 | are encountered in configuration parsing. This may be used to | ||
583 | suppress errors if ssh_config contains options that are | ||
584 | unrecognised by ssh(1). It is recommended that IgnoreUnknown be | ||
585 | listed early in the configuration file as it will not be applied | ||
586 | to unknown options that appear before it. | ||
587 | |||
588 | Include | ||
589 | Include the specified configuration file(s). Multiple pathnames | ||
590 | may be specified and each pathname may contain glob(3) wildcards | ||
591 | and, for user configurations, shell-like M-bM-^@M-^\~M-bM-^@M-^] references to user | ||
592 | home directories. Files without absolute paths are assumed to be | ||
593 | in ~/.ssh if included in a user configuration file or /etc/ssh if | ||
594 | included from the system configuration file. Include directive | ||
595 | may appear inside a Match or Host block to perform conditional | ||
596 | inclusion. | ||
597 | |||
598 | IPQoS Specifies the IPv4 type-of-service or DSCP class for connections. | ||
599 | Accepted values are M-bM-^@M-^\af11M-bM-^@M-^], M-bM-^@M-^\af12M-bM-^@M-^], M-bM-^@M-^\af13M-bM-^@M-^], M-bM-^@M-^\af21M-bM-^@M-^], M-bM-^@M-^\af22M-bM-^@M-^], | ||
600 | M-bM-^@M-^\af23M-bM-^@M-^], M-bM-^@M-^\af31M-bM-^@M-^], M-bM-^@M-^\af32M-bM-^@M-^], M-bM-^@M-^\af33M-bM-^@M-^], M-bM-^@M-^\af41M-bM-^@M-^], M-bM-^@M-^\af42M-bM-^@M-^], M-bM-^@M-^\af43M-bM-^@M-^], M-bM-^@M-^\cs0M-bM-^@M-^], | ||
601 | M-bM-^@M-^\cs1M-bM-^@M-^], M-bM-^@M-^\cs2M-bM-^@M-^], M-bM-^@M-^\cs3M-bM-^@M-^], M-bM-^@M-^\cs4M-bM-^@M-^], M-bM-^@M-^\cs5M-bM-^@M-^], M-bM-^@M-^\cs6M-bM-^@M-^], M-bM-^@M-^\cs7M-bM-^@M-^], M-bM-^@M-^\efM-bM-^@M-^], | ||
602 | M-bM-^@M-^\lowdelayM-bM-^@M-^], M-bM-^@M-^\throughputM-bM-^@M-^], M-bM-^@M-^\reliabilityM-bM-^@M-^], or a numeric value. | ||
603 | This option may take one or two arguments, separated by | ||
604 | whitespace. If one argument is specified, it is used as the | ||
605 | packet class unconditionally. If two values are specified, the | ||
606 | first is automatically selected for interactive sessions and the | ||
607 | second for non-interactive sessions. The default is M-bM-^@M-^\lowdelayM-bM-^@M-^] | ||
608 | for interactive sessions and M-bM-^@M-^\throughputM-bM-^@M-^] for non-interactive | ||
609 | sessions. | ||
610 | |||
611 | KbdInteractiveAuthentication | ||
612 | Specifies whether to use keyboard-interactive authentication. | ||
613 | The argument to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default | ||
614 | is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
615 | |||
616 | KbdInteractiveDevices | ||
617 | Specifies the list of methods to use in keyboard-interactive | ||
618 | authentication. Multiple method names must be comma-separated. | ||
619 | The default is to use the server specified list. The methods | ||
620 | available vary depending on what the server supports. For an | ||
621 | OpenSSH server, it may be zero or more of: M-bM-^@M-^\bsdauthM-bM-^@M-^], M-bM-^@M-^\pamM-bM-^@M-^], and | ||
622 | M-bM-^@M-^\skeyM-bM-^@M-^]. | ||
623 | |||
624 | KexAlgorithms | ||
625 | Specifies the available KEX (Key Exchange) algorithms. Multiple | ||
626 | algorithms must be comma-separated. Alternately if the specified | ||
627 | value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the specified methods | ||
628 | will be appended to the default set instead of replacing them. | ||
629 | The default is: | ||
630 | |||
631 | curve25519-sha256@libssh.org, | ||
632 | ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521, | ||
633 | diffie-hellman-group-exchange-sha256, | ||
634 | diffie-hellman-group-exchange-sha1, | ||
635 | diffie-hellman-group14-sha1 | ||
636 | |||
637 | The list of available key exchange algorithms may also be | ||
638 | obtained using the -Q option of ssh(1) with an argument of M-bM-^@M-^\kexM-bM-^@M-^]. | ||
639 | |||
640 | LocalCommand | ||
641 | Specifies a command to execute on the local machine after | ||
642 | successfully connecting to the server. The command string | ||
643 | extends to the end of the line, and is executed with the user's | ||
644 | shell. The following escape character substitutions will be | ||
645 | performed: M-bM-^@M-^X%dM-bM-^@M-^Y (local user's home directory), M-bM-^@M-^X%hM-bM-^@M-^Y (remote host | ||
646 | name), M-bM-^@M-^X%lM-bM-^@M-^Y (local host name), M-bM-^@M-^X%nM-bM-^@M-^Y (host name as provided on the | ||
647 | command line), M-bM-^@M-^X%pM-bM-^@M-^Y (remote port), M-bM-^@M-^X%rM-bM-^@M-^Y (remote user name) or | ||
648 | M-bM-^@M-^X%uM-bM-^@M-^Y (local user name) or M-bM-^@M-^X%CM-bM-^@M-^Y by a hash of the concatenation: | ||
649 | %l%h%p%r. | ||
650 | |||
651 | The command is run synchronously and does not have access to the | ||
652 | session of the ssh(1) that spawned it. It should not be used for | ||
653 | interactive commands. | ||
654 | |||
655 | This directive is ignored unless PermitLocalCommand has been | ||
656 | enabled. | ||
657 | |||
658 | LocalForward | ||
659 | Specifies that a TCP port on the local machine be forwarded over | ||
660 | the secure channel to the specified host and port from the remote | ||
661 | machine. The first argument must be [bind_address:]port and the | ||
662 | second argument must be host:hostport. IPv6 addresses can be | ||
663 | specified by enclosing addresses in square brackets. Multiple | ||
664 | forwardings may be specified, and additional forwardings can be | ||
665 | given on the command line. Only the superuser can forward | ||
666 | privileged ports. By default, the local port is bound in | ||
667 | accordance with the GatewayPorts setting. However, an explicit | ||
668 | bind_address may be used to bind the connection to a specific | ||
669 | address. The bind_address of M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the | ||
670 | listening port be bound for local use only, while an empty | ||
671 | address or M-bM-^@M-^X*M-bM-^@M-^Y indicates that the port should be available from | ||
672 | all interfaces. | ||
673 | |||
674 | LogLevel | ||
675 | Gives the verbosity level that is used when logging messages from | ||
676 | ssh(1). The possible values are: QUIET, FATAL, ERROR, INFO, | ||
677 | VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO. | ||
678 | DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify | ||
679 | higher levels of verbose output. | ||
680 | |||
681 | MACs Specifies the MAC (message authentication code) algorithms in | ||
682 | order of preference. The MAC algorithm is used for data | ||
683 | integrity protection. Multiple algorithms must be comma- | ||
684 | separated. If the specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, | ||
685 | then the specified algorithms will be appended to the default set | ||
686 | instead of replacing them. | ||
687 | |||
688 | The algorithms that contain M-bM-^@M-^\-etmM-bM-^@M-^] calculate the MAC after | ||
689 | encryption (encrypt-then-mac). These are considered safer and | ||
690 | their use recommended. | ||
691 | |||
692 | The default is: | ||
693 | |||
694 | umac-64-etm@openssh.com,umac-128-etm@openssh.com, | ||
695 | hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com, | ||
696 | hmac-sha1-etm@openssh.com, | ||
697 | umac-64@openssh.com,umac-128@openssh.com, | ||
698 | hmac-sha2-256,hmac-sha2-512,hmac-sha1 | ||
699 | |||
700 | The list of available MAC algorithms may also be obtained using | ||
701 | the -Q option of ssh(1) with an argument of M-bM-^@M-^\macM-bM-^@M-^]. | ||
702 | |||
703 | NoHostAuthenticationForLocalhost | ||
704 | This option can be used if the home directory is shared across | ||
705 | machines. In this case localhost will refer to a different | ||
706 | machine on each of the machines and the user will get many | ||
707 | warnings about changed host keys. However, this option disables | ||
708 | host authentication for localhost. The argument to this keyword | ||
709 | must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is to check the host key for | ||
710 | localhost. | ||
711 | |||
712 | NumberOfPasswordPrompts | ||
713 | Specifies the number of password prompts before giving up. The | ||
714 | argument to this keyword must be an integer. The default is 3. | ||
715 | |||
716 | PasswordAuthentication | ||
717 | Specifies whether to use password authentication. The argument | ||
718 | to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
719 | |||
720 | PermitLocalCommand | ||
721 | Allow local command execution via the LocalCommand option or | ||
722 | using the !command escape sequence in ssh(1). The argument must | ||
723 | be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
724 | |||
725 | PKCS11Provider | ||
726 | Specifies which PKCS#11 provider to use. The argument to this | ||
727 | keyword is the PKCS#11 shared library ssh(1) should use to | ||
728 | communicate with a PKCS#11 token providing the user's private RSA | ||
729 | key. | ||
730 | |||
731 | Port Specifies the port number to connect on the remote host. The | ||
732 | default is 22. | ||
733 | |||
734 | PreferredAuthentications | ||
735 | Specifies the order in which the client should try authentication | ||
736 | methods. This allows a client to prefer one method (e.g. | ||
737 | keyboard-interactive) over another method (e.g. password). The | ||
738 | default is: | ||
739 | |||
740 | gssapi-with-mic,hostbased,publickey, | ||
741 | keyboard-interactive,password | ||
742 | |||
743 | Protocol | ||
744 | Specifies the protocol versions ssh(1) should support in order of | ||
745 | preference. The possible values are M-bM-^@M-^X1M-bM-^@M-^Y and M-bM-^@M-^X2M-bM-^@M-^Y. Multiple | ||
746 | versions must be comma-separated. When this option is set to | ||
747 | M-bM-^@M-^\2,1M-bM-^@M-^] ssh will try version 2 and fall back to version 1 if | ||
748 | version 2 is not available. The default is M-bM-^@M-^X2M-bM-^@M-^Y. Protocol 1 | ||
749 | suffers from a number of cryptographic weaknesses and should not | ||
750 | be used. It is only offered to support legacy devices. | ||
751 | |||
752 | ProxyCommand | ||
753 | Specifies the command to use to connect to the server. The | ||
754 | command string extends to the end of the line, and is executed | ||
755 | using the user's shell M-bM-^@M-^XexecM-bM-^@M-^Y directive to avoid a lingering | ||
756 | shell process. | ||
757 | |||
758 | In the command string, any occurrence of M-bM-^@M-^X%hM-bM-^@M-^Y will be substituted | ||
759 | by the host name to connect, M-bM-^@M-^X%pM-bM-^@M-^Y by the port, and M-bM-^@M-^X%rM-bM-^@M-^Y by the | ||
760 | remote user name. The command can be basically anything, and | ||
761 | should read from its standard input and write to its standard | ||
762 | output. It should eventually connect an sshd(8) server running | ||
763 | on some machine, or execute sshd -i somewhere. Host key | ||
764 | management will be done using the HostName of the host being | ||
765 | connected (defaulting to the name typed by the user). Setting | ||
766 | the command to M-bM-^@M-^\noneM-bM-^@M-^] disables this option entirely. Note that | ||
767 | CheckHostIP is not available for connects with a proxy command. | ||
768 | |||
769 | This directive is useful in conjunction with nc(1) and its proxy | ||
770 | support. For example, the following directive would connect via | ||
771 | an HTTP proxy at 192.0.2.0: | ||
772 | |||
773 | ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p | ||
774 | |||
775 | ProxyJump | ||
776 | Specifies one or more jump proxies as [user@]host[:port]. | ||
777 | Multiple proxies may be separated by comma characters and will be | ||
778 | visited sequentially. Setting this option will cause ssh(1) to | ||
779 | connect to the target host by first making a ssh(1) connection to | ||
780 | the specified ProxyJump host and then establishing a TCP | ||
781 | forwarding to the ultimate target from there. | ||
782 | |||
783 | Note that this option will compete with the ProxyCommand option - | ||
784 | whichever is specified first will prevent later instances of the | ||
785 | other from taking effect. | ||
786 | |||
787 | ProxyUseFdpass | ||
788 | Specifies that ProxyCommand will pass a connected file descriptor | ||
789 | back to ssh(1) instead of continuing to execute and pass data. | ||
790 | The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
791 | |||
792 | PubkeyAcceptedKeyTypes | ||
793 | Specifies the key types that will be used for public key | ||
794 | authentication as a comma-separated pattern list. Alternately if | ||
795 | the specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the key | ||
796 | types after it will be appended to the default instead of | ||
797 | replacing it. The default for this option is: | ||
798 | |||
799 | ecdsa-sha2-nistp256-cert-v01@openssh.com, | ||
800 | ecdsa-sha2-nistp384-cert-v01@openssh.com, | ||
801 | ecdsa-sha2-nistp521-cert-v01@openssh.com, | ||
802 | ssh-ed25519-cert-v01@openssh.com, | ||
803 | ssh-rsa-cert-v01@openssh.com, | ||
804 | ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521, | ||
805 | ssh-ed25519,ssh-rsa | ||
806 | |||
807 | The -Q option of ssh(1) may be used to list supported key types. | ||
808 | |||
809 | PubkeyAuthentication | ||
810 | Specifies whether to try public key authentication. The argument | ||
811 | to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
812 | |||
813 | RekeyLimit | ||
814 | Specifies the maximum amount of data that may be transmitted | ||
815 | before the session key is renegotiated, optionally followed a | ||
816 | maximum amount of time that may pass before the session key is | ||
817 | renegotiated. The first argument is specified in bytes and may | ||
818 | have a suffix of M-bM-^@M-^XKM-bM-^@M-^Y, M-bM-^@M-^XMM-bM-^@M-^Y, or M-bM-^@M-^XGM-bM-^@M-^Y to indicate Kilobytes, | ||
819 | Megabytes, or Gigabytes, respectively. The default is between | ||
820 | M-bM-^@M-^X1GM-bM-^@M-^Y and M-bM-^@M-^X4GM-bM-^@M-^Y, depending on the cipher. The optional second | ||
821 | value is specified in seconds and may use any of the units | ||
822 | documented in the TIME FORMATS section of sshd_config(5). The | ||
823 | default value for RekeyLimit is M-bM-^@M-^\default noneM-bM-^@M-^], which means that | ||
824 | rekeying is performed after the cipher's default amount of data | ||
825 | has been sent or received and no time based rekeying is done. | ||
826 | |||
827 | RemoteForward | ||
828 | Specifies that a TCP port on the remote machine be forwarded over | ||
829 | the secure channel to the specified host and port from the local | ||
830 | machine. The first argument must be [bind_address:]port and the | ||
831 | second argument must be host:hostport. IPv6 addresses can be | ||
832 | specified by enclosing addresses in square brackets. Multiple | ||
833 | forwardings may be specified, and additional forwardings can be | ||
834 | given on the command line. Privileged ports can be forwarded | ||
835 | only when logging in as root on the remote machine. | ||
836 | |||
837 | If the port argument is M-bM-^@M-^X0M-bM-^@M-^Y, the listen port will be dynamically | ||
838 | allocated on the server and reported to the client at run time. | ||
839 | |||
840 | If the bind_address is not specified, the default is to only bind | ||
841 | to loopback addresses. If the bind_address is M-bM-^@M-^X*M-bM-^@M-^Y or an empty | ||
842 | string, then the forwarding is requested to listen on all | ||
843 | interfaces. Specifying a remote bind_address will only succeed | ||
844 | if the server's GatewayPorts option is enabled (see | ||
845 | sshd_config(5)). | ||
846 | |||
847 | RequestTTY | ||
848 | Specifies whether to request a pseudo-tty for the session. The | ||
849 | argument may be one of: M-bM-^@M-^\noM-bM-^@M-^] (never request a TTY), M-bM-^@M-^\yesM-bM-^@M-^] (always | ||
850 | request a TTY when standard input is a TTY), M-bM-^@M-^\forceM-bM-^@M-^] (always | ||
851 | request a TTY) or M-bM-^@M-^\autoM-bM-^@M-^] (request a TTY when opening a login | ||
852 | session). This option mirrors the -t and -T flags for ssh(1). | ||
853 | |||
854 | RevokedHostKeys | ||
855 | Specifies revoked host public keys. Keys listed in this file | ||
856 | will be refused for host authentication. Note that if this file | ||
857 | does not exist or is not readable, then host authentication will | ||
858 | be refused for all hosts. Keys may be specified as a text file, | ||
859 | listing one public key per line, or as an OpenSSH Key Revocation | ||
860 | List (KRL) as generated by ssh-keygen(1). For more information | ||
861 | on KRLs, see the KEY REVOCATION LISTS section in ssh-keygen(1). | ||
862 | |||
863 | RhostsRSAAuthentication | ||
864 | Specifies whether to try rhosts based authentication with RSA | ||
865 | host authentication. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The | ||
866 | default is M-bM-^@M-^\noM-bM-^@M-^]. This option applies to protocol version 1 only | ||
867 | and requires ssh(1) to be setuid root. | ||
868 | |||
869 | RSAAuthentication | ||
870 | Specifies whether to try RSA authentication. The argument to | ||
871 | this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. RSA authentication will only | ||
872 | be attempted if the identity file exists, or an authentication | ||
873 | agent is running. The default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that this option | ||
874 | applies to protocol version 1 only. | ||
875 | |||
876 | SendEnv | ||
877 | Specifies what variables from the local environ(7) should be sent | ||
878 | to the server. The server must also support it, and the server | ||
879 | must be configured to accept these environment variables. Note | ||
880 | that the TERM environment variable is always sent whenever a | ||
881 | pseudo-terminal is requested as it is required by the protocol. | ||
882 | Refer to AcceptEnv in sshd_config(5) for how to configure the | ||
883 | server. Variables are specified by name, which may contain | ||
884 | wildcard characters. Multiple environment variables may be | ||
885 | separated by whitespace or spread across multiple SendEnv | ||
886 | directives. The default is not to send any environment | ||
887 | variables. | ||
888 | |||
889 | See PATTERNS for more information on patterns. | ||
890 | |||
891 | ServerAliveCountMax | ||
892 | Sets the number of server alive messages (see below) which may be | ||
893 | sent without ssh(1) receiving any messages back from the server. | ||
894 | If this threshold is reached while server alive messages are | ||
895 | being sent, ssh will disconnect from the server, terminating the | ||
896 | session. It is important to note that the use of server alive | ||
897 | messages is very different from TCPKeepAlive (below). The server | ||
898 | alive messages are sent through the encrypted channel and | ||
899 | therefore will not be spoofable. The TCP keepalive option | ||
900 | enabled by TCPKeepAlive is spoofable. The server alive mechanism | ||
901 | is valuable when the client or server depend on knowing when a | ||
902 | connection has become inactive. | ||
903 | |||
904 | The default value is 3. If, for example, ServerAliveInterval | ||
905 | (see below) is set to 15 and ServerAliveCountMax is left at the | ||
906 | default, if the server becomes unresponsive, ssh will disconnect | ||
907 | after approximately 45 seconds. | ||
908 | |||
909 | ServerAliveInterval | ||
910 | Sets a timeout interval in seconds after which if no data has | ||
911 | been received from the server, ssh(1) will send a message through | ||
912 | the encrypted channel to request a response from the server. The | ||
913 | default is 0, indicating that these messages will not be sent to | ||
914 | the server. | ||
915 | |||
916 | StreamLocalBindMask | ||
917 | Sets the octal file creation mode mask (umask) used when creating | ||
918 | a Unix-domain socket file for local or remote port forwarding. | ||
919 | This option is only used for port forwarding to a Unix-domain | ||
920 | socket file. | ||
921 | |||
922 | The default value is 0177, which creates a Unix-domain socket | ||
923 | file that is readable and writable only by the owner. Note that | ||
924 | not all operating systems honor the file mode on Unix-domain | ||
925 | socket files. | ||
926 | |||
927 | StreamLocalBindUnlink | ||
928 | Specifies whether to remove an existing Unix-domain socket file | ||
929 | for local or remote port forwarding before creating a new one. | ||
930 | If the socket file already exists and StreamLocalBindUnlink is | ||
931 | not enabled, ssh will be unable to forward the port to the Unix- | ||
932 | domain socket file. This option is only used for port forwarding | ||
933 | to a Unix-domain socket file. | ||
934 | |||
935 | The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
936 | |||
937 | StrictHostKeyChecking | ||
938 | If this flag is set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) will never automatically add | ||
939 | host keys to the ~/.ssh/known_hosts file, and refuses to connect | ||
940 | to hosts whose host key has changed. This provides maximum | ||
941 | protection against trojan horse attacks, though it can be | ||
942 | annoying when the /etc/ssh/ssh_known_hosts file is poorly | ||
943 | maintained or when connections to new hosts are frequently made. | ||
944 | This option forces the user to manually add all new hosts. If | ||
945 | this flag is set to M-bM-^@M-^\noM-bM-^@M-^], ssh will automatically add new host | ||
946 | keys to the user known hosts files. If this flag is set to | ||
947 | M-bM-^@M-^\askM-bM-^@M-^], new host keys will be added to the user known host files | ||
948 | only after the user has confirmed that is what they really want | ||
949 | to do, and ssh will refuse to connect to hosts whose host key has | ||
950 | changed. The host keys of known hosts will be verified | ||
951 | automatically in all cases. The argument must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\noM-bM-^@M-^], or | ||
952 | M-bM-^@M-^\askM-bM-^@M-^]. The default is M-bM-^@M-^\askM-bM-^@M-^]. | ||
953 | |||
954 | TCPKeepAlive | ||
955 | Specifies whether the system should send TCP keepalive messages | ||
956 | to the other side. If they are sent, death of the connection or | ||
957 | crash of one of the machines will be properly noticed. However, | ||
958 | this means that connections will die if the route is down | ||
959 | temporarily, and some people find it annoying. | ||
960 | |||
961 | The default is M-bM-^@M-^\yesM-bM-^@M-^] (to send TCP keepalive messages), and the | ||
962 | client will notice if the network goes down or the remote host | ||
963 | dies. This is important in scripts, and many users want it too. | ||
964 | |||
965 | To disable TCP keepalive messages, the value should be set to | ||
966 | M-bM-^@M-^\noM-bM-^@M-^]. | ||
967 | |||
968 | Tunnel Request tun(4) device forwarding between the client and the | ||
969 | server. The argument must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\point-to-pointM-bM-^@M-^] (layer 3), | ||
970 | M-bM-^@M-^\ethernetM-bM-^@M-^] (layer 2), or M-bM-^@M-^\noM-bM-^@M-^]. Specifying M-bM-^@M-^\yesM-bM-^@M-^] requests the | ||
971 | default tunnel mode, which is M-bM-^@M-^\point-to-pointM-bM-^@M-^]. The default is | ||
972 | M-bM-^@M-^\noM-bM-^@M-^]. | ||
973 | |||
974 | TunnelDevice | ||
975 | Specifies the tun(4) devices to open on the client (local_tun) | ||
976 | and the server (remote_tun). | ||
977 | |||
978 | The argument must be local_tun[:remote_tun]. The devices may be | ||
979 | specified by numerical ID or the keyword M-bM-^@M-^\anyM-bM-^@M-^], which uses the | ||
980 | next available tunnel device. If remote_tun is not specified, it | ||
981 | defaults to M-bM-^@M-^\anyM-bM-^@M-^]. The default is M-bM-^@M-^\any:anyM-bM-^@M-^]. | ||
982 | |||
983 | UpdateHostKeys | ||
984 | Specifies whether ssh(1) should accept notifications of | ||
985 | additional hostkeys from the server sent after authentication has | ||
986 | completed and add them to UserKnownHostsFile. The argument must | ||
987 | be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\noM-bM-^@M-^] (the default) or M-bM-^@M-^\askM-bM-^@M-^]. Enabling this option | ||
988 | allows learning alternate hostkeys for a server and supports | ||
989 | graceful key rotation by allowing a server to send replacement | ||
990 | public keys before old ones are removed. Additional hostkeys are | ||
991 | only accepted if the key used to authenticate the host was | ||
992 | already trusted or explicitly accepted by the user. If | ||
993 | UpdateHostKeys is set to M-bM-^@M-^\askM-bM-^@M-^], then the user is asked to confirm | ||
994 | the modifications to the known_hosts file. Confirmation is | ||
995 | currently incompatible with ControlPersist, and will be disabled | ||
996 | if it is enabled. | ||
997 | |||
998 | Presently, only sshd(8) from OpenSSH 6.8 and greater support the | ||
999 | M-bM-^@M-^\hostkeys@openssh.comM-bM-^@M-^] protocol extension used to inform the | ||
1000 | client of all the server's hostkeys. | ||
1001 | |||
1002 | UsePrivilegedPort | ||
1003 | Specifies whether to use a privileged port for outgoing | ||
1004 | connections. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is | ||
1005 | M-bM-^@M-^\noM-bM-^@M-^]. If set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) must be setuid root. Note that | ||
1006 | this option must be set to M-bM-^@M-^\yesM-bM-^@M-^] for RhostsRSAAuthentication with | ||
1007 | older servers. | ||
1008 | |||
1009 | User Specifies the user to log in as. This can be useful when a | ||
1010 | different user name is used on different machines. This saves | ||
1011 | the trouble of having to remember to give the user name on the | ||
1012 | command line. | ||
1013 | |||
1014 | UserKnownHostsFile | ||
1015 | Specifies one or more files to use for the user host key | ||
1016 | database, separated by whitespace. The default is | ||
1017 | ~/.ssh/known_hosts, ~/.ssh/known_hosts2. | ||
1018 | |||
1019 | VerifyHostKeyDNS | ||
1020 | Specifies whether to verify the remote key using DNS and SSHFP | ||
1021 | resource records. If this option is set to M-bM-^@M-^\yesM-bM-^@M-^], the client | ||
1022 | will implicitly trust keys that match a secure fingerprint from | ||
1023 | DNS. Insecure fingerprints will be handled as if this option was | ||
1024 | set to M-bM-^@M-^\askM-bM-^@M-^]. If this option is set to M-bM-^@M-^\askM-bM-^@M-^], information on | ||
1025 | fingerprint match will be displayed, but the user will still need | ||
1026 | to confirm new host keys according to the StrictHostKeyChecking | ||
1027 | option. The argument must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\noM-bM-^@M-^], or M-bM-^@M-^\askM-bM-^@M-^]. The default | ||
1028 | is M-bM-^@M-^\noM-bM-^@M-^]. | ||
1029 | |||
1030 | See also VERIFYING HOST KEYS in ssh(1). | ||
1031 | |||
1032 | VisualHostKey | ||
1033 | If this flag is set to M-bM-^@M-^\yesM-bM-^@M-^], an ASCII art representation of the | ||
1034 | remote host key fingerprint is printed in addition to the | ||
1035 | fingerprint string at login and for unknown host keys. If this | ||
1036 | flag is set to M-bM-^@M-^\noM-bM-^@M-^], no fingerprint strings are printed at login | ||
1037 | and only the fingerprint string will be printed for unknown host | ||
1038 | keys. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
1039 | |||
1040 | XAuthLocation | ||
1041 | Specifies the full pathname of the xauth(1) program. The default | ||
1042 | is /usr/X11R6/bin/xauth. | ||
1043 | |||
1044 | PATTERNS | ||
1045 | A pattern consists of zero or more non-whitespace characters, M-bM-^@M-^X*M-bM-^@M-^Y (a | ||
1046 | wildcard that matches zero or more characters), or M-bM-^@M-^X?M-bM-^@M-^Y (a wildcard that | ||
1047 | matches exactly one character). For example, to specify a set of | ||
1048 | declarations for any host in the M-bM-^@M-^\.co.ukM-bM-^@M-^] set of domains, the following | ||
1049 | pattern could be used: | ||
1050 | |||
1051 | Host *.co.uk | ||
1052 | |||
1053 | The following pattern would match any host in the 192.168.0.[0-9] network | ||
1054 | range: | ||
1055 | |||
1056 | Host 192.168.0.? | ||
1057 | |||
1058 | A pattern-list is a comma-separated list of patterns. Patterns within | ||
1059 | pattern-lists may be negated by preceding them with an exclamation mark | ||
1060 | (M-bM-^@M-^X!M-bM-^@M-^Y). For example, to allow a key to be used from anywhere within an | ||
1061 | organization except from the M-bM-^@M-^\dialupM-bM-^@M-^] pool, the following entry (in | ||
1062 | authorized_keys) could be used: | ||
1063 | |||
1064 | from="!*.dialup.example.com,*.example.com" | ||
1065 | |||
1066 | FILES | ||
1067 | ~/.ssh/config | ||
1068 | This is the per-user configuration file. The format of this file | ||
1069 | is described above. This file is used by the SSH client. | ||
1070 | Because of the potential for abuse, this file must have strict | ||
1071 | permissions: read/write for the user, and not accessible by | ||
1072 | others. | ||
1073 | |||
1074 | /etc/ssh/ssh_config | ||
1075 | Systemwide configuration file. This file provides defaults for | ||
1076 | those values that are not specified in the user's configuration | ||
1077 | file, and for those users who do not have a configuration file. | ||
1078 | This file must be world-readable. | ||
1079 | |||
1080 | SEE ALSO | ||
1081 | ssh(1) | ||
1082 | |||
1083 | AUTHORS | ||
1084 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
1085 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
1086 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
1087 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
1088 | versions 1.5 and 2.0. | ||
1089 | |||
1090 | OpenBSD 6.0 July 22, 2016 OpenBSD 6.0 | ||
@@ -0,0 +1,665 @@ | |||
1 | SSHD(8) System Manager's Manual SSHD(8) | ||
2 | |||
3 | NAME | ||
4 | sshd M-bM-^@M-^S OpenSSH SSH daemon | ||
5 | |||
6 | SYNOPSIS | ||
7 | sshd [-46DdeiqTt] [-b bits] [-C connection_spec] | ||
8 | [-c host_certificate_file] [-E log_file] [-f config_file] | ||
9 | [-g login_grace_time] [-h host_key_file] [-k key_gen_time] | ||
10 | [-o option] [-p port] [-u len] | ||
11 | |||
12 | DESCRIPTION | ||
13 | sshd (OpenSSH Daemon) is the daemon program for ssh(1). Together these | ||
14 | programs replace rlogin and rsh, and provide secure encrypted | ||
15 | communications between two untrusted hosts over an insecure network. | ||
16 | |||
17 | sshd listens for connections from clients. It is normally started at | ||
18 | boot from /etc/rc. It forks a new daemon for each incoming connection. | ||
19 | The forked daemons handle key exchange, encryption, authentication, | ||
20 | command execution, and data exchange. | ||
21 | |||
22 | sshd can be configured using command-line options or a configuration file | ||
23 | (by default sshd_config(5)); command-line options override values | ||
24 | specified in the configuration file. sshd rereads its configuration file | ||
25 | when it receives a hangup signal, SIGHUP, by executing itself with the | ||
26 | name and options it was started with, e.g. /usr/sbin/sshd. | ||
27 | |||
28 | The options are as follows: | ||
29 | |||
30 | -4 Forces sshd to use IPv4 addresses only. | ||
31 | |||
32 | -6 Forces sshd to use IPv6 addresses only. | ||
33 | |||
34 | -b bits | ||
35 | Specifies the number of bits in the ephemeral protocol version 1 | ||
36 | server key (default 1024). | ||
37 | |||
38 | -C connection_spec | ||
39 | Specify the connection parameters to use for the -T extended test | ||
40 | mode. If provided, any Match directives in the configuration | ||
41 | file that would apply to the specified user, host, and address | ||
42 | will be set before the configuration is written to standard | ||
43 | output. The connection parameters are supplied as keyword=value | ||
44 | pairs. The keywords are M-bM-^@M-^\userM-bM-^@M-^], M-bM-^@M-^\hostM-bM-^@M-^], M-bM-^@M-^\laddrM-bM-^@M-^], M-bM-^@M-^\lportM-bM-^@M-^], and | ||
45 | M-bM-^@M-^\addrM-bM-^@M-^]. All are required and may be supplied in any order, | ||
46 | either with multiple -C options or as a comma-separated list. | ||
47 | |||
48 | -c host_certificate_file | ||
49 | Specifies a path to a certificate file to identify sshd during | ||
50 | key exchange. The certificate file must match a host key file | ||
51 | specified using the -h option or the HostKey configuration | ||
52 | directive. | ||
53 | |||
54 | -D When this option is specified, sshd will not detach and does not | ||
55 | become a daemon. This allows easy monitoring of sshd. | ||
56 | |||
57 | -d Debug mode. The server sends verbose debug output to standard | ||
58 | error, and does not put itself in the background. The server | ||
59 | also will not fork and will only process one connection. This | ||
60 | option is only intended for debugging for the server. Multiple | ||
61 | -d options increase the debugging level. Maximum is 3. | ||
62 | |||
63 | -E log_file | ||
64 | Append debug logs to log_file instead of the system log. | ||
65 | |||
66 | -e Write debug logs to standard error instead of the system log. | ||
67 | |||
68 | -f config_file | ||
69 | Specifies the name of the configuration file. The default is | ||
70 | /etc/ssh/sshd_config. sshd refuses to start if there is no | ||
71 | configuration file. | ||
72 | |||
73 | -g login_grace_time | ||
74 | Gives the grace time for clients to authenticate themselves | ||
75 | (default 120 seconds). If the client fails to authenticate the | ||
76 | user within this many seconds, the server disconnects and exits. | ||
77 | A value of zero indicates no limit. | ||
78 | |||
79 | -h host_key_file | ||
80 | Specifies a file from which a host key is read. This option must | ||
81 | be given if sshd is not run as root (as the normal host key files | ||
82 | are normally not readable by anyone but root). The default is | ||
83 | /etc/ssh/ssh_host_key for protocol version 1, and | ||
84 | /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_ecdsa_key. | ||
85 | /etc/ssh/ssh_host_ed25519_key and /etc/ssh/ssh_host_rsa_key for | ||
86 | protocol version 2. It is possible to have multiple host key | ||
87 | files for the different protocol versions and host key | ||
88 | algorithms. | ||
89 | |||
90 | -i Specifies that sshd is being run from inetd(8). If SSH protocol | ||
91 | 1 is enabled, sshd should not normally be run from inetd because | ||
92 | it needs to generate the server key before it can respond to the | ||
93 | client, and this may take some time. Clients may have to wait | ||
94 | too long if the key was regenerated every time. | ||
95 | |||
96 | -k key_gen_time | ||
97 | Specifies how often the ephemeral protocol version 1 server key | ||
98 | is regenerated (default 3600 seconds, or one hour). The | ||
99 | motivation for regenerating the key fairly often is that the key | ||
100 | is not stored anywhere, and after about an hour it becomes | ||
101 | impossible to recover the key for decrypting intercepted | ||
102 | communications even if the machine is cracked into or physically | ||
103 | seized. A value of zero indicates that the key will never be | ||
104 | regenerated. | ||
105 | |||
106 | -o option | ||
107 | Can be used to give options in the format used in the | ||
108 | configuration file. This is useful for specifying options for | ||
109 | which there is no separate command-line flag. For full details | ||
110 | of the options, and their values, see sshd_config(5). | ||
111 | |||
112 | -p port | ||
113 | Specifies the port on which the server listens for connections | ||
114 | (default 22). Multiple port options are permitted. Ports | ||
115 | specified in the configuration file with the Port option are | ||
116 | ignored when a command-line port is specified. Ports specified | ||
117 | using the ListenAddress option override command-line ports. | ||
118 | |||
119 | -q Quiet mode. Nothing is sent to the system log. Normally the | ||
120 | beginning, authentication, and termination of each connection is | ||
121 | logged. | ||
122 | |||
123 | -T Extended test mode. Check the validity of the configuration | ||
124 | file, output the effective configuration to stdout and then exit. | ||
125 | Optionally, Match rules may be applied by specifying the | ||
126 | connection parameters using one or more -C options. | ||
127 | |||
128 | -t Test mode. Only check the validity of the configuration file and | ||
129 | sanity of the keys. This is useful for updating sshd reliably as | ||
130 | configuration options may change. | ||
131 | |||
132 | -u len This option is used to specify the size of the field in the utmp | ||
133 | structure that holds the remote host name. If the resolved host | ||
134 | name is longer than len, the dotted decimal value will be used | ||
135 | instead. This allows hosts with very long host names that | ||
136 | overflow this field to still be uniquely identified. Specifying | ||
137 | -u0 indicates that only dotted decimal addresses should be put | ||
138 | into the utmp file. -u0 may also be used to prevent sshd from | ||
139 | making DNS requests unless the authentication mechanism or | ||
140 | configuration requires it. Authentication mechanisms that may | ||
141 | require DNS include RhostsRSAAuthentication, | ||
142 | HostbasedAuthentication, and using a from="pattern-list" option | ||
143 | in a key file. Configuration options that require DNS include | ||
144 | using a USER@HOST pattern in AllowUsers or DenyUsers. | ||
145 | |||
146 | AUTHENTICATION | ||
147 | The OpenSSH SSH daemon supports SSH protocols 1 and 2. The default is to | ||
148 | use protocol 2 only, though this can be changed via the Protocol option | ||
149 | in sshd_config(5). Protocol 1 should not be used and is only offered to | ||
150 | support legacy devices. | ||
151 | |||
152 | Each host has a host-specific key, used to identify the host. Partial | ||
153 | forward security for protocol 1 is provided through an additional server | ||
154 | key, normally 1024 bits, generated when the server starts. This key is | ||
155 | normally regenerated every hour if it has been used, and is never stored | ||
156 | on disk. Whenever a client connects, the daemon responds with its public | ||
157 | host and server keys. The client compares the RSA host key against its | ||
158 | own database to verify that it has not changed. The client then | ||
159 | generates a 256-bit random number. It encrypts this random number using | ||
160 | both the host key and the server key, and sends the encrypted number to | ||
161 | the server. Both sides then use this random number as a session key | ||
162 | which is used to encrypt all further communications in the session. The | ||
163 | rest of the session is encrypted using a conventional cipher, currently | ||
164 | Blowfish or 3DES, with 3DES being used by default. The client selects | ||
165 | the encryption algorithm to use from those offered by the server. | ||
166 | |||
167 | For protocol 2, forward security is provided through a Diffie-Hellman key | ||
168 | agreement. This key agreement results in a shared session key. The rest | ||
169 | of the session is encrypted using a symmetric cipher, currently 128-bit | ||
170 | AES, Blowfish, 3DES, CAST128, Arcfour, 192-bit AES, or 256-bit AES. The | ||
171 | client selects the encryption algorithm to use from those offered by the | ||
172 | server. Additionally, session integrity is provided through a | ||
173 | cryptographic message authentication code (hmac-md5, hmac-sha1, umac-64, | ||
174 | umac-128, hmac-ripemd160, hmac-sha2-256 or hmac-sha2-512). | ||
175 | |||
176 | Finally, the server and the client enter an authentication dialog. The | ||
177 | client tries to authenticate itself using host-based authentication, | ||
178 | public key authentication, challenge-response authentication, or password | ||
179 | authentication. | ||
180 | |||
181 | Regardless of the authentication type, the account is checked to ensure | ||
182 | that it is accessible. An account is not accessible if it is locked, | ||
183 | listed in DenyUsers or its group is listed in DenyGroups . The | ||
184 | definition of a locked account is system dependant. Some platforms have | ||
185 | their own account database (eg AIX) and some modify the passwd field ( | ||
186 | M-bM-^@M-^X*LK*M-bM-^@M-^Y on Solaris and UnixWare, M-bM-^@M-^X*M-bM-^@M-^Y on HP-UX, containing M-bM-^@M-^XNologinM-bM-^@M-^Y on | ||
187 | Tru64, a leading M-bM-^@M-^X*LOCKED*M-bM-^@M-^Y on FreeBSD and a leading M-bM-^@M-^X!M-bM-^@M-^Y on most | ||
188 | Linuxes). If there is a requirement to disable password authentication | ||
189 | for the account while allowing still public-key, then the passwd field | ||
190 | should be set to something other than these values (eg M-bM-^@M-^XNPM-bM-^@M-^Y or M-bM-^@M-^X*NP*M-bM-^@M-^Y ). | ||
191 | |||
192 | If the client successfully authenticates itself, a dialog for preparing | ||
193 | the session is entered. At this time the client may request things like | ||
194 | allocating a pseudo-tty, forwarding X11 connections, forwarding TCP | ||
195 | connections, or forwarding the authentication agent connection over the | ||
196 | secure channel. | ||
197 | |||
198 | After this, the client either requests a shell or execution of a command. | ||
199 | The sides then enter session mode. In this mode, either side may send | ||
200 | data at any time, and such data is forwarded to/from the shell or command | ||
201 | on the server side, and the user terminal in the client side. | ||
202 | |||
203 | When the user program terminates and all forwarded X11 and other | ||
204 | connections have been closed, the server sends command exit status to the | ||
205 | client, and both sides exit. | ||
206 | |||
207 | LOGIN PROCESS | ||
208 | When a user successfully logs in, sshd does the following: | ||
209 | |||
210 | 1. If the login is on a tty, and no command has been specified, | ||
211 | prints last login time and /etc/motd (unless prevented in the | ||
212 | configuration file or by ~/.hushlogin; see the FILES section). | ||
213 | |||
214 | 2. If the login is on a tty, records login time. | ||
215 | |||
216 | 3. Checks /etc/nologin; if it exists, prints contents and quits | ||
217 | (unless root). | ||
218 | |||
219 | 4. Changes to run with normal user privileges. | ||
220 | |||
221 | 5. Sets up basic environment. | ||
222 | |||
223 | 6. Reads the file ~/.ssh/environment, if it exists, and users are | ||
224 | allowed to change their environment. See the | ||
225 | PermitUserEnvironment option in sshd_config(5). | ||
226 | |||
227 | 7. Changes to user's home directory. | ||
228 | |||
229 | 8. If ~/.ssh/rc exists and the sshd_config(5) PermitUserRC option | ||
230 | is set, runs it; else if /etc/ssh/sshrc exists, runs it; | ||
231 | otherwise runs xauth. The M-bM-^@M-^\rcM-bM-^@M-^] files are given the X11 | ||
232 | authentication protocol and cookie in standard input. See | ||
233 | SSHRC, below. | ||
234 | |||
235 | 9. Runs user's shell or command. All commands are run under the | ||
236 | user's login shell as specified in the system password | ||
237 | database. | ||
238 | |||
239 | SSHRC | ||
240 | If the file ~/.ssh/rc exists, sh(1) runs it after reading the environment | ||
241 | files but before starting the user's shell or command. It must not | ||
242 | produce any output on stdout; stderr must be used instead. If X11 | ||
243 | forwarding is in use, it will receive the "proto cookie" pair in its | ||
244 | standard input (and DISPLAY in its environment). The script must call | ||
245 | xauth(1) because sshd will not run xauth automatically to add X11 | ||
246 | cookies. | ||
247 | |||
248 | The primary purpose of this file is to run any initialization routines | ||
249 | which may be needed before the user's home directory becomes accessible; | ||
250 | AFS is a particular example of such an environment. | ||
251 | |||
252 | This file will probably contain some initialization code followed by | ||
253 | something similar to: | ||
254 | |||
255 | if read proto cookie && [ -n "$DISPLAY" ]; then | ||
256 | if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then | ||
257 | # X11UseLocalhost=yes | ||
258 | echo add unix:`echo $DISPLAY | | ||
259 | cut -c11-` $proto $cookie | ||
260 | else | ||
261 | # X11UseLocalhost=no | ||
262 | echo add $DISPLAY $proto $cookie | ||
263 | fi | xauth -q - | ||
264 | fi | ||
265 | |||
266 | If this file does not exist, /etc/ssh/sshrc is run, and if that does not | ||
267 | exist either, xauth is used to add the cookie. | ||
268 | |||
269 | AUTHORIZED_KEYS FILE FORMAT | ||
270 | AuthorizedKeysFile specifies the files containing public keys for public | ||
271 | key authentication; if this option is not specified, the default is | ||
272 | ~/.ssh/authorized_keys and ~/.ssh/authorized_keys2. Each line of the | ||
273 | file contains one key (empty lines and lines starting with a M-bM-^@M-^X#M-bM-^@M-^Y are | ||
274 | ignored as comments). Protocol 1 public keys consist of the following | ||
275 | space-separated fields: options, bits, exponent, modulus, comment. | ||
276 | Protocol 2 public key consist of: options, keytype, base64-encoded key, | ||
277 | comment. The options field is optional; its presence is determined by | ||
278 | whether the line starts with a number or not (the options field never | ||
279 | starts with a number). The bits, exponent, modulus, and comment fields | ||
280 | give the RSA key for protocol version 1; the comment field is not used | ||
281 | for anything (but may be convenient for the user to identify the key). | ||
282 | For protocol version 2 the keytype is M-bM-^@M-^\ecdsa-sha2-nistp256M-bM-^@M-^], | ||
283 | M-bM-^@M-^\ecdsa-sha2-nistp384M-bM-^@M-^], M-bM-^@M-^\ecdsa-sha2-nistp521M-bM-^@M-^], M-bM-^@M-^\ssh-ed25519M-bM-^@M-^], M-bM-^@M-^\ssh-dssM-bM-^@M-^] or | ||
284 | M-bM-^@M-^\ssh-rsaM-bM-^@M-^]. | ||
285 | |||
286 | Note that lines in this file are usually several hundred bytes long | ||
287 | (because of the size of the public key encoding) up to a limit of 8 | ||
288 | kilobytes, which permits DSA keys up to 8 kilobits and RSA keys up to 16 | ||
289 | kilobits. You don't want to type them in; instead, copy the | ||
290 | identity.pub, id_dsa.pub, id_ecdsa.pub, id_ed25519.pub, or the id_rsa.pub | ||
291 | file and edit it. | ||
292 | |||
293 | sshd enforces a minimum RSA key modulus size for protocol 1 and protocol | ||
294 | 2 keys of 768 bits. | ||
295 | |||
296 | The options (if present) consist of comma-separated option | ||
297 | specifications. No spaces are permitted, except within double quotes. | ||
298 | The following option specifications are supported (note that option | ||
299 | keywords are case-insensitive): | ||
300 | |||
301 | agent-forwarding | ||
302 | Enable authentication agent forwarding previously disabled by the | ||
303 | restrict option. | ||
304 | |||
305 | cert-authority | ||
306 | Specifies that the listed key is a certification authority (CA) | ||
307 | that is trusted to validate signed certificates for user | ||
308 | authentication. | ||
309 | |||
310 | Certificates may encode access restrictions similar to these key | ||
311 | options. If both certificate restrictions and key options are | ||
312 | present, the most restrictive union of the two is applied. | ||
313 | |||
314 | command="command" | ||
315 | Specifies that the command is executed whenever this key is used | ||
316 | for authentication. The command supplied by the user (if any) is | ||
317 | ignored. The command is run on a pty if the client requests a | ||
318 | pty; otherwise it is run without a tty. If an 8-bit clean | ||
319 | channel is required, one must not request a pty or should specify | ||
320 | no-pty. A quote may be included in the command by quoting it | ||
321 | with a backslash. This option might be useful to restrict | ||
322 | certain public keys to perform just a specific operation. An | ||
323 | example might be a key that permits remote backups but nothing | ||
324 | else. Note that the client may specify TCP and/or X11 forwarding | ||
325 | unless they are explicitly prohibited. The command originally | ||
326 | supplied by the client is available in the SSH_ORIGINAL_COMMAND | ||
327 | environment variable. Note that this option applies to shell, | ||
328 | command or subsystem execution. Also note that this command may | ||
329 | be superseded by either a sshd_config(5) ForceCommand directive | ||
330 | or a command embedded in a certificate. | ||
331 | |||
332 | environment="NAME=value" | ||
333 | Specifies that the string is to be added to the environment when | ||
334 | logging in using this key. Environment variables set this way | ||
335 | override other default environment values. Multiple options of | ||
336 | this type are permitted. Environment processing is disabled by | ||
337 | default and is controlled via the PermitUserEnvironment option. | ||
338 | This option is automatically disabled if UseLogin is enabled. | ||
339 | |||
340 | from="pattern-list" | ||
341 | Specifies that in addition to public key authentication, either | ||
342 | the canonical name of the remote host or its IP address must be | ||
343 | present in the comma-separated list of patterns. See PATTERNS in | ||
344 | ssh_config(5) for more information on patterns. | ||
345 | |||
346 | In addition to the wildcard matching that may be applied to | ||
347 | hostnames or addresses, a from stanza may match IP addresses | ||
348 | using CIDR address/masklen notation. | ||
349 | |||
350 | The purpose of this option is to optionally increase security: | ||
351 | public key authentication by itself does not trust the network or | ||
352 | name servers or anything (but the key); however, if somebody | ||
353 | somehow steals the key, the key permits an intruder to log in | ||
354 | from anywhere in the world. This additional option makes using a | ||
355 | stolen key more difficult (name servers and/or routers would have | ||
356 | to be compromised in addition to just the key). | ||
357 | |||
358 | no-agent-forwarding | ||
359 | Forbids authentication agent forwarding when this key is used for | ||
360 | authentication. | ||
361 | |||
362 | no-port-forwarding | ||
363 | Forbids TCP forwarding when this key is used for authentication. | ||
364 | Any port forward requests by the client will return an error. | ||
365 | This might be used, e.g. in connection with the command option. | ||
366 | |||
367 | no-pty Prevents tty allocation (a request to allocate a pty will fail). | ||
368 | |||
369 | no-user-rc | ||
370 | Disables execution of ~/.ssh/rc. | ||
371 | |||
372 | no-X11-forwarding | ||
373 | Forbids X11 forwarding when this key is used for authentication. | ||
374 | Any X11 forward requests by the client will return an error. | ||
375 | |||
376 | permitopen="host:port" | ||
377 | Limit local port forwarding with ssh(1) -L such that it may only | ||
378 | connect to the specified host and port. IPv6 addresses can be | ||
379 | specified by enclosing the address in square brackets. Multiple | ||
380 | permitopen options may be applied separated by commas. No | ||
381 | pattern matching is performed on the specified hostnames, they | ||
382 | must be literal domains or addresses. A port specification of * | ||
383 | matches any port. | ||
384 | |||
385 | port-forwarding | ||
386 | Enable port forwarding previously disabled by the restrict | ||
387 | |||
388 | principals="principals" | ||
389 | On a cert-authority line, specifies allowed principals for | ||
390 | certificate authentication as a comma-separated list. At least | ||
391 | one name from the list must appear in the certificate's list of | ||
392 | principals for the certificate to be accepted. This option is | ||
393 | ignored for keys that are not marked as trusted certificate | ||
394 | signers using the cert-authority option. | ||
395 | |||
396 | pty Permits tty allocation previously disabled by the restrict | ||
397 | option. | ||
398 | |||
399 | restrict | ||
400 | Enable all restrictions, i.e. disable port, agent and X11 | ||
401 | forwarding, as well as disabling PTY allocation and execution of | ||
402 | ~/.ssh/rc. If any future restriction capabilities are added to | ||
403 | authorized_keys files they will be included in this set. | ||
404 | |||
405 | tunnel="n" | ||
406 | Force a tun(4) device on the server. Without this option, the | ||
407 | next available device will be used if the client requests a | ||
408 | tunnel. | ||
409 | |||
410 | user-rc | ||
411 | Enables execution of ~/.ssh/rc previously disabled by the | ||
412 | restrict option. | ||
413 | |||
414 | X11-forwarding | ||
415 | Permits X11 forwarding previously disabled by the restrict | ||
416 | option. | ||
417 | |||
418 | An example authorized_keys file: | ||
419 | |||
420 | # Comments allowed at start of line | ||
421 | ssh-rsa AAAAB3Nza...LiPk== user@example.net | ||
422 | from="*.sales.example.net,!pc.sales.example.net" ssh-rsa | ||
423 | AAAAB2...19Q== john@example.net | ||
424 | command="dump /home",no-pty,no-port-forwarding ssh-dss | ||
425 | AAAAC3...51R== example.net | ||
426 | permitopen="192.0.2.1:80",permitopen="192.0.2.2:25" ssh-dss | ||
427 | AAAAB5...21S== | ||
428 | tunnel="0",command="sh /etc/netstart tun0" ssh-rsa AAAA...== | ||
429 | jane@example.net | ||
430 | restrict,command="uptime" ssh-rsa AAAA1C8...32Tv== | ||
431 | user@example.net | ||
432 | restrict,pty,command="nethack" ssh-rsa AAAA1f8...IrrC5== | ||
433 | user@example.net | ||
434 | |||
435 | SSH_KNOWN_HOSTS FILE FORMAT | ||
436 | The /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts files contain host | ||
437 | public keys for all known hosts. The global file should be prepared by | ||
438 | the administrator (optional), and the per-user file is maintained | ||
439 | automatically: whenever the user connects from an unknown host, its key | ||
440 | is added to the per-user file. | ||
441 | |||
442 | Each line in these files contains the following fields: markers | ||
443 | (optional), hostnames, bits, exponent, modulus, comment. The fields are | ||
444 | separated by spaces. | ||
445 | |||
446 | The marker is optional, but if it is present then it must be one of | ||
447 | M-bM-^@M-^\@cert-authorityM-bM-^@M-^], to indicate that the line contains a certification | ||
448 | authority (CA) key, or M-bM-^@M-^\@revokedM-bM-^@M-^], to indicate that the key contained on | ||
449 | the line is revoked and must not ever be accepted. Only one marker | ||
450 | should be used on a key line. | ||
451 | |||
452 | Hostnames is a comma-separated list of patterns (M-bM-^@M-^X*M-bM-^@M-^Y and M-bM-^@M-^X?M-bM-^@M-^Y act as | ||
453 | wildcards); each pattern in turn is matched against the canonical host | ||
454 | name (when authenticating a client) or against the user-supplied name | ||
455 | (when authenticating a server). A pattern may also be preceded by M-bM-^@M-^X!M-bM-^@M-^Y to | ||
456 | indicate negation: if the host name matches a negated pattern, it is not | ||
457 | accepted (by that line) even if it matched another pattern on the line. | ||
458 | A hostname or address may optionally be enclosed within M-bM-^@M-^X[M-bM-^@M-^Y and M-bM-^@M-^X]M-bM-^@M-^Y | ||
459 | brackets then followed by M-bM-^@M-^X:M-bM-^@M-^Y and a non-standard port number. | ||
460 | |||
461 | Alternately, hostnames may be stored in a hashed form which hides host | ||
462 | names and addresses should the file's contents be disclosed. Hashed | ||
463 | hostnames start with a M-bM-^@M-^X|M-bM-^@M-^Y character. Only one hashed hostname may | ||
464 | appear on a single line and none of the above negation or wildcard | ||
465 | operators may be applied. | ||
466 | |||
467 | Bits, exponent, and modulus are taken directly from the RSA host key; | ||
468 | they can be obtained, for example, from /etc/ssh/ssh_host_key.pub. The | ||
469 | optional comment field continues to the end of the line, and is not used. | ||
470 | |||
471 | Lines starting with M-bM-^@M-^X#M-bM-^@M-^Y and empty lines are ignored as comments. | ||
472 | |||
473 | When performing host authentication, authentication is accepted if any | ||
474 | matching line has the proper key; either one that matches exactly or, if | ||
475 | the server has presented a certificate for authentication, the key of the | ||
476 | certification authority that signed the certificate. For a key to be | ||
477 | trusted as a certification authority, it must use the M-bM-^@M-^\@cert-authorityM-bM-^@M-^] | ||
478 | marker described above. | ||
479 | |||
480 | The known hosts file also provides a facility to mark keys as revoked, | ||
481 | for example when it is known that the associated private key has been | ||
482 | stolen. Revoked keys are specified by including the M-bM-^@M-^\@revokedM-bM-^@M-^] marker at | ||
483 | the beginning of the key line, and are never accepted for authentication | ||
484 | or as certification authorities, but instead will produce a warning from | ||
485 | ssh(1) when they are encountered. | ||
486 | |||
487 | It is permissible (but not recommended) to have several lines or | ||
488 | different host keys for the same names. This will inevitably happen when | ||
489 | short forms of host names from different domains are put in the file. It | ||
490 | is possible that the files contain conflicting information; | ||
491 | authentication is accepted if valid information can be found from either | ||
492 | file. | ||
493 | |||
494 | Note that the lines in these files are typically hundreds of characters | ||
495 | long, and you definitely don't want to type in the host keys by hand. | ||
496 | Rather, generate them by a script, ssh-keyscan(1) or by taking | ||
497 | /etc/ssh/ssh_host_key.pub and adding the host names at the front. | ||
498 | ssh-keygen(1) also offers some basic automated editing for | ||
499 | ~/.ssh/known_hosts including removing hosts matching a host name and | ||
500 | converting all host names to their hashed representations. | ||
501 | |||
502 | An example ssh_known_hosts file: | ||
503 | |||
504 | # Comments allowed at start of line | ||
505 | closenet,...,192.0.2.53 1024 37 159...93 closenet.example.net | ||
506 | cvs.example.net,192.0.2.10 ssh-rsa AAAA1234.....= | ||
507 | # A hashed hostname | ||
508 | |1|JfKTdBh7rNbXkVAQCRp4OQoPfmI=|USECr3SWf1JUPsms5AqfD5QfxkM= ssh-rsa | ||
509 | AAAA1234.....= | ||
510 | # A revoked key | ||
511 | @revoked * ssh-rsa AAAAB5W... | ||
512 | # A CA key, accepted for any host in *.mydomain.com or *.mydomain.org | ||
513 | @cert-authority *.mydomain.org,*.mydomain.com ssh-rsa AAAAB5W... | ||
514 | |||
515 | FILES | ||
516 | ~/.hushlogin | ||
517 | This file is used to suppress printing the last login time and | ||
518 | /etc/motd, if PrintLastLog and PrintMotd, respectively, are | ||
519 | enabled. It does not suppress printing of the banner specified | ||
520 | by Banner. | ||
521 | |||
522 | ~/.rhosts | ||
523 | This file is used for host-based authentication (see ssh(1) for | ||
524 | more information). On some machines this file may need to be | ||
525 | world-readable if the user's home directory is on an NFS | ||
526 | partition, because sshd reads it as root. Additionally, this | ||
527 | file must be owned by the user, and must not have write | ||
528 | permissions for anyone else. The recommended permission for most | ||
529 | machines is read/write for the user, and not accessible by | ||
530 | others. | ||
531 | |||
532 | ~/.shosts | ||
533 | This file is used in exactly the same way as .rhosts, but allows | ||
534 | host-based authentication without permitting login with | ||
535 | rlogin/rsh. | ||
536 | |||
537 | ~/.ssh/ | ||
538 | This directory is the default location for all user-specific | ||
539 | configuration and authentication information. There is no | ||
540 | general requirement to keep the entire contents of this directory | ||
541 | secret, but the recommended permissions are read/write/execute | ||
542 | for the user, and not accessible by others. | ||
543 | |||
544 | ~/.ssh/authorized_keys | ||
545 | Lists the public keys (DSA, ECDSA, Ed25519, RSA) that can be used | ||
546 | for logging in as this user. The format of this file is | ||
547 | described above. The content of the file is not highly | ||
548 | sensitive, but the recommended permissions are read/write for the | ||
549 | user, and not accessible by others. | ||
550 | |||
551 | If this file, the ~/.ssh directory, or the user's home directory | ||
552 | are writable by other users, then the file could be modified or | ||
553 | replaced by unauthorized users. In this case, sshd will not | ||
554 | allow it to be used unless the StrictModes option has been set to | ||
555 | M-bM-^@M-^\noM-bM-^@M-^]. | ||
556 | |||
557 | ~/.ssh/environment | ||
558 | This file is read into the environment at login (if it exists). | ||
559 | It can only contain empty lines, comment lines (that start with | ||
560 | M-bM-^@M-^X#M-bM-^@M-^Y), and assignment lines of the form name=value. The file | ||
561 | should be writable only by the user; it need not be readable by | ||
562 | anyone else. Environment processing is disabled by default and | ||
563 | is controlled via the PermitUserEnvironment option. | ||
564 | |||
565 | ~/.ssh/known_hosts | ||
566 | Contains a list of host keys for all hosts the user has logged | ||
567 | into that are not already in the systemwide list of known host | ||
568 | keys. The format of this file is described above. This file | ||
569 | should be writable only by root/the owner and can, but need not | ||
570 | be, world-readable. | ||
571 | |||
572 | ~/.ssh/rc | ||
573 | Contains initialization routines to be run before the user's home | ||
574 | directory becomes accessible. This file should be writable only | ||
575 | by the user, and need not be readable by anyone else. | ||
576 | |||
577 | /etc/hosts.equiv | ||
578 | This file is for host-based authentication (see ssh(1)). It | ||
579 | should only be writable by root. | ||
580 | |||
581 | /etc/moduli | ||
582 | Contains Diffie-Hellman groups used for the "Diffie-Hellman Group | ||
583 | Exchange" key exchange method. The file format is described in | ||
584 | moduli(5). If no usable groups are found in this file then fixed | ||
585 | internal groups will be used. | ||
586 | |||
587 | /etc/motd | ||
588 | See motd(5). | ||
589 | |||
590 | /etc/nologin | ||
591 | If this file exists, sshd refuses to let anyone except root log | ||
592 | in. The contents of the file are displayed to anyone trying to | ||
593 | log in, and non-root connections are refused. The file should be | ||
594 | world-readable. | ||
595 | |||
596 | /etc/shosts.equiv | ||
597 | This file is used in exactly the same way as hosts.equiv, but | ||
598 | allows host-based authentication without permitting login with | ||
599 | rlogin/rsh. | ||
600 | |||
601 | /etc/ssh/ssh_host_key | ||
602 | /etc/ssh/ssh_host_dsa_key | ||
603 | /etc/ssh/ssh_host_ecdsa_key | ||
604 | /etc/ssh/ssh_host_ed25519_key | ||
605 | /etc/ssh/ssh_host_rsa_key | ||
606 | These files contain the private parts of the host keys. These | ||
607 | files should only be owned by root, readable only by root, and | ||
608 | not accessible to others. Note that sshd does not start if these | ||
609 | files are group/world-accessible. | ||
610 | |||
611 | /etc/ssh/ssh_host_key.pub | ||
612 | /etc/ssh/ssh_host_dsa_key.pub | ||
613 | /etc/ssh/ssh_host_ecdsa_key.pub | ||
614 | /etc/ssh/ssh_host_ed25519_key.pub | ||
615 | /etc/ssh/ssh_host_rsa_key.pub | ||
616 | These files contain the public parts of the host keys. These | ||
617 | files should be world-readable but writable only by root. Their | ||
618 | contents should match the respective private parts. These files | ||
619 | are not really used for anything; they are provided for the | ||
620 | convenience of the user so their contents can be copied to known | ||
621 | hosts files. These files are created using ssh-keygen(1). | ||
622 | |||
623 | /etc/ssh/ssh_known_hosts | ||
624 | Systemwide list of known host keys. This file should be prepared | ||
625 | by the system administrator to contain the public host keys of | ||
626 | all machines in the organization. The format of this file is | ||
627 | described above. This file should be writable only by root/the | ||
628 | owner and should be world-readable. | ||
629 | |||
630 | /etc/ssh/sshd_config | ||
631 | Contains configuration data for sshd. The file format and | ||
632 | configuration options are described in sshd_config(5). | ||
633 | |||
634 | /etc/ssh/sshrc | ||
635 | Similar to ~/.ssh/rc, it can be used to specify machine-specific | ||
636 | login-time initializations globally. This file should be | ||
637 | writable only by root, and should be world-readable. | ||
638 | |||
639 | /var/empty | ||
640 | chroot(2) directory used by sshd during privilege separation in | ||
641 | the pre-authentication phase. The directory should not contain | ||
642 | any files and must be owned by root and not group or world- | ||
643 | writable. | ||
644 | |||
645 | /var/run/sshd.pid | ||
646 | Contains the process ID of the sshd listening for connections (if | ||
647 | there are several daemons running concurrently for different | ||
648 | ports, this contains the process ID of the one started last). | ||
649 | The content of this file is not sensitive; it can be world- | ||
650 | readable. | ||
651 | |||
652 | SEE ALSO | ||
653 | scp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), | ||
654 | ssh-keyscan(1), chroot(2), login.conf(5), moduli(5), sshd_config(5), | ||
655 | inetd(8), sftp-server(8) | ||
656 | |||
657 | AUTHORS | ||
658 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
659 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
660 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
661 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
662 | versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support | ||
663 | for privilege separation. | ||
664 | |||
665 | OpenBSD 6.0 February 17, 2016 OpenBSD 6.0 | ||
diff --git a/sshd_config.0 b/sshd_config.0 new file mode 100644 index 000000000..85379dca5 --- /dev/null +++ b/sshd_config.0 | |||
@@ -0,0 +1,1063 @@ | |||
1 | SSHD_CONFIG(5) File Formats Manual SSHD_CONFIG(5) | ||
2 | |||
3 | NAME | ||
4 | sshd_config M-bM-^@M-^S OpenSSH SSH daemon configuration file | ||
5 | |||
6 | SYNOPSIS | ||
7 | /etc/ssh/sshd_config | ||
8 | |||
9 | DESCRIPTION | ||
10 | sshd(8) reads configuration data from /etc/ssh/sshd_config (or the file | ||
11 | specified with -f on the command line). The file contains keyword- | ||
12 | argument pairs, one per line. Lines starting with M-bM-^@M-^X#M-bM-^@M-^Y and empty lines | ||
13 | are interpreted as comments. Arguments may optionally be enclosed in | ||
14 | double quotes (") in order to represent arguments containing spaces. | ||
15 | |||
16 | The possible keywords and their meanings are as follows (note that | ||
17 | keywords are case-insensitive and arguments are case-sensitive): | ||
18 | |||
19 | AcceptEnv | ||
20 | Specifies what environment variables sent by the client will be | ||
21 | copied into the session's environ(7). See SendEnv in | ||
22 | ssh_config(5) for how to configure the client. The TERM | ||
23 | environment variable is always sent whenever the client requests | ||
24 | a pseudo-terminal as it is required by the protocol. Variables | ||
25 | are specified by name, which may contain the wildcard characters | ||
26 | M-bM-^@M-^X*M-bM-^@M-^Y and M-bM-^@M-^X?M-bM-^@M-^Y. Multiple environment variables may be separated by | ||
27 | whitespace or spread across multiple AcceptEnv directives. Be | ||
28 | warned that some environment variables could be used to bypass | ||
29 | restricted user environments. For this reason, care should be | ||
30 | taken in the use of this directive. The default is not to accept | ||
31 | any environment variables. | ||
32 | |||
33 | AddressFamily | ||
34 | Specifies which address family should be used by sshd(8). Valid | ||
35 | arguments are M-bM-^@M-^\anyM-bM-^@M-^], M-bM-^@M-^\inetM-bM-^@M-^] (use IPv4 only), or M-bM-^@M-^\inet6M-bM-^@M-^] (use IPv6 | ||
36 | only). The default is M-bM-^@M-^\anyM-bM-^@M-^]. | ||
37 | |||
38 | AllowAgentForwarding | ||
39 | Specifies whether ssh-agent(1) forwarding is permitted. The | ||
40 | default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that disabling agent forwarding does not | ||
41 | improve security unless users are also denied shell access, as | ||
42 | they can always install their own forwarders. | ||
43 | |||
44 | AllowGroups | ||
45 | This keyword can be followed by a list of group name patterns, | ||
46 | separated by spaces. If specified, login is allowed only for | ||
47 | users whose primary group or supplementary group list matches one | ||
48 | of the patterns. Only group names are valid; a numerical group | ||
49 | ID is not recognized. By default, login is allowed for all | ||
50 | groups. The allow/deny directives are processed in the following | ||
51 | order: DenyUsers, AllowUsers, DenyGroups, and finally | ||
52 | AllowGroups. | ||
53 | |||
54 | See PATTERNS in ssh_config(5) for more information on patterns. | ||
55 | |||
56 | AllowTcpForwarding | ||
57 | Specifies whether TCP forwarding is permitted. The available | ||
58 | options are M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\allM-bM-^@M-^] to allow TCP forwarding, M-bM-^@M-^\noM-bM-^@M-^] to | ||
59 | prevent all TCP forwarding, M-bM-^@M-^\localM-bM-^@M-^] to allow local (from the | ||
60 | perspective of ssh(1)) forwarding only or M-bM-^@M-^\remoteM-bM-^@M-^] to allow | ||
61 | remote forwarding only. The default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that | ||
62 | disabling TCP forwarding does not improve security unless users | ||
63 | are also denied shell access, as they can always install their | ||
64 | own forwarders. | ||
65 | |||
66 | AllowStreamLocalForwarding | ||
67 | Specifies whether StreamLocal (Unix-domain socket) forwarding is | ||
68 | permitted. The available options are M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\allM-bM-^@M-^] to allow | ||
69 | StreamLocal forwarding, M-bM-^@M-^\noM-bM-^@M-^] to prevent all StreamLocal | ||
70 | forwarding, M-bM-^@M-^\localM-bM-^@M-^] to allow local (from the perspective of | ||
71 | ssh(1)) forwarding only or M-bM-^@M-^\remoteM-bM-^@M-^] to allow remote forwarding | ||
72 | only. The default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that disabling StreamLocal | ||
73 | forwarding does not improve security unless users are also denied | ||
74 | shell access, as they can always install their own forwarders. | ||
75 | |||
76 | AllowUsers | ||
77 | This keyword can be followed by a list of user name patterns, | ||
78 | separated by spaces. If specified, login is allowed only for | ||
79 | user names that match one of the patterns. Only user names are | ||
80 | valid; a numerical user ID is not recognized. By default, login | ||
81 | is allowed for all users. If the pattern takes the form | ||
82 | USER@HOST then USER and HOST are separately checked, restricting | ||
83 | logins to particular users from particular hosts. HOST criteria | ||
84 | may additionally contain addresses to match in CIDR | ||
85 | address/masklen format. The allow/deny directives are processed | ||
86 | in the following order: DenyUsers, AllowUsers, DenyGroups, and | ||
87 | finally AllowGroups. | ||
88 | |||
89 | See PATTERNS in ssh_config(5) for more information on patterns. | ||
90 | |||
91 | AuthenticationMethods | ||
92 | Specifies the authentication methods that must be successfully | ||
93 | completed for a user to be granted access. This option must be | ||
94 | followed by one or more comma-separated lists of authentication | ||
95 | method names, or by the single string M-bM-^@M-^\anyM-bM-^@M-^] to indicate the | ||
96 | default behaviour of accepting any single authentication method. | ||
97 | if the default is overridden, then successful authentication | ||
98 | requires completion of every method in at least one of these | ||
99 | lists. | ||
100 | |||
101 | For example, an argument of M-bM-^@M-^\publickey,password | ||
102 | publickey,keyboard-interactiveM-bM-^@M-^] would require the user to | ||
103 | complete public key authentication, followed by either password | ||
104 | or keyboard interactive authentication. Only methods that are | ||
105 | next in one or more lists are offered at each stage, so for this | ||
106 | example, it would not be possible to attempt password or | ||
107 | keyboard-interactive authentication before public key. | ||
108 | |||
109 | For keyboard interactive authentication it is also possible to | ||
110 | restrict authentication to a specific device by appending a colon | ||
111 | followed by the device identifier M-bM-^@M-^\bsdauthM-bM-^@M-^], M-bM-^@M-^\pamM-bM-^@M-^], or M-bM-^@M-^\skeyM-bM-^@M-^], | ||
112 | depending on the server configuration. For example, | ||
113 | M-bM-^@M-^\keyboard-interactive:bsdauthM-bM-^@M-^] would restrict keyboard | ||
114 | interactive authentication to the M-bM-^@M-^\bsdauthM-bM-^@M-^] device. | ||
115 | |||
116 | If the M-bM-^@M-^\publickeyM-bM-^@M-^] method is listed more than once, sshd(8) | ||
117 | verifies that keys that have been used successfully are not | ||
118 | reused for subsequent authentications. For example, an | ||
119 | AuthenticationMethods of M-bM-^@M-^\publickey,publickeyM-bM-^@M-^] will require | ||
120 | successful authentication using two different public keys. | ||
121 | |||
122 | This option will yield a fatal error if enabled if protocol 1 is | ||
123 | also enabled. Note that each authentication method listed should | ||
124 | also be explicitly enabled in the configuration. The default | ||
125 | M-bM-^@M-^\anyM-bM-^@M-^] is not to require multiple authentication; successful | ||
126 | completion of a single authentication method is sufficient. | ||
127 | |||
128 | AuthorizedKeysCommand | ||
129 | Specifies a program to be used to look up the user's public keys. | ||
130 | The program must be owned by root, not writable by group or | ||
131 | others and specified by an absolute path. | ||
132 | |||
133 | Arguments to AuthorizedKeysCommand may be provided using the | ||
134 | following tokens, which will be expanded at runtime: %% is | ||
135 | replaced by a literal '%', %u is replaced by the username being | ||
136 | authenticated, %h is replaced by the home directory of the user | ||
137 | being authenticated, %t is replaced with the key type offered for | ||
138 | authentication, %f is replaced with the fingerprint of the key, | ||
139 | and %k is replaced with the key being offered for authentication. | ||
140 | If no arguments are specified then the username of the target | ||
141 | user will be supplied. | ||
142 | |||
143 | The program should produce on standard output zero or more lines | ||
144 | of authorized_keys output (see AUTHORIZED_KEYS in sshd(8)). If a | ||
145 | key supplied by AuthorizedKeysCommand does not successfully | ||
146 | authenticate and authorize the user then public key | ||
147 | authentication continues using the usual AuthorizedKeysFile | ||
148 | files. By default, no AuthorizedKeysCommand is run. | ||
149 | |||
150 | AuthorizedKeysCommandUser | ||
151 | Specifies the user under whose account the AuthorizedKeysCommand | ||
152 | is run. It is recommended to use a dedicated user that has no | ||
153 | other role on the host than running authorized keys commands. If | ||
154 | AuthorizedKeysCommand is specified but AuthorizedKeysCommandUser | ||
155 | is not, then sshd(8) will refuse to start. | ||
156 | |||
157 | AuthorizedKeysFile | ||
158 | Specifies the file that contains the public keys that can be used | ||
159 | for user authentication. The format is described in the | ||
160 | AUTHORIZED_KEYS FILE FORMAT section of sshd(8). | ||
161 | AuthorizedKeysFile may contain tokens of the form %T which are | ||
162 | substituted during connection setup. The following tokens are | ||
163 | defined: %% is replaced by a literal '%', %h is replaced by the | ||
164 | home directory of the user being authenticated, and %u is | ||
165 | replaced by the username of that user. After expansion, | ||
166 | AuthorizedKeysFile is taken to be an absolute path or one | ||
167 | relative to the user's home directory. Multiple files may be | ||
168 | listed, separated by whitespace. Alternately this option may be | ||
169 | set to M-bM-^@M-^\noneM-bM-^@M-^] to skip checking for user keys in files. The | ||
170 | default is M-bM-^@M-^\.ssh/authorized_keys .ssh/authorized_keys2M-bM-^@M-^]. | ||
171 | |||
172 | AuthorizedPrincipalsCommand | ||
173 | Specifies a program to be used to generate the list of allowed | ||
174 | certificate principals as per AuthorizedPrincipalsFile. The | ||
175 | program must be owned by root, not writable by group or others | ||
176 | and specified by an absolute path. | ||
177 | |||
178 | Arguments to AuthorizedPrincipalsCommand may be provided using | ||
179 | the following tokens, which will be expanded at runtime: %% is | ||
180 | replaced by a literal '%', %u is replaced by the username being | ||
181 | authenticated and %h is replaced by the home directory of the | ||
182 | user being authenticated. | ||
183 | |||
184 | The program should produce on standard output zero or more lines | ||
185 | of AuthorizedPrincipalsFile output. If either | ||
186 | AuthorizedPrincipalsCommand or AuthorizedPrincipalsFile is | ||
187 | specified, then certificates offered by the client for | ||
188 | authentication must contain a principal that is listed. By | ||
189 | default, no AuthorizedPrincipalsCommand is run. | ||
190 | |||
191 | AuthorizedPrincipalsCommandUser | ||
192 | Specifies the user under whose account the | ||
193 | AuthorizedPrincipalsCommand is run. It is recommended to use a | ||
194 | dedicated user that has no other role on the host than running | ||
195 | authorized principals commands. If AuthorizedPrincipalsCommand | ||
196 | is specified but AuthorizedPrincipalsCommandUser is not, then | ||
197 | sshd(8) will refuse to start. | ||
198 | |||
199 | AuthorizedPrincipalsFile | ||
200 | Specifies a file that lists principal names that are accepted for | ||
201 | certificate authentication. When using certificates signed by a | ||
202 | key listed in TrustedUserCAKeys, this file lists names, one of | ||
203 | which must appear in the certificate for it to be accepted for | ||
204 | authentication. Names are listed one per line preceded by key | ||
205 | options (as described in AUTHORIZED_KEYS FILE FORMAT in sshd(8)). | ||
206 | Empty lines and comments starting with M-bM-^@M-^X#M-bM-^@M-^Y are ignored. | ||
207 | |||
208 | AuthorizedPrincipalsFile may contain tokens of the form %T which | ||
209 | are substituted during connection setup. The following tokens | ||
210 | are defined: %% is replaced by a literal '%', %h is replaced by | ||
211 | the home directory of the user being authenticated, and %u is | ||
212 | replaced by the username of that user. After expansion, | ||
213 | AuthorizedPrincipalsFile is taken to be an absolute path or one | ||
214 | relative to the user's home directory. | ||
215 | |||
216 | The default is M-bM-^@M-^\noneM-bM-^@M-^], i.e. not to use a principals file M-bM-^@M-^S in | ||
217 | this case, the username of the user must appear in a | ||
218 | certificate's principals list for it to be accepted. Note that | ||
219 | AuthorizedPrincipalsFile is only used when authentication | ||
220 | proceeds using a CA listed in TrustedUserCAKeys and is not | ||
221 | consulted for certification authorities trusted via | ||
222 | ~/.ssh/authorized_keys, though the principals= key option offers | ||
223 | a similar facility (see sshd(8) for details). | ||
224 | |||
225 | Banner The contents of the specified file are sent to the remote user | ||
226 | before authentication is allowed. If the argument is M-bM-^@M-^\noneM-bM-^@M-^] then | ||
227 | no banner is displayed. By default, no banner is displayed. | ||
228 | |||
229 | ChallengeResponseAuthentication | ||
230 | Specifies whether challenge-response authentication is allowed | ||
231 | (e.g. via PAM or through authentication styles supported in | ||
232 | login.conf(5)) The default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
233 | |||
234 | ChrootDirectory | ||
235 | Specifies the pathname of a directory to chroot(2) to after | ||
236 | authentication. At session startup sshd(8) checks that all | ||
237 | components of the pathname are root-owned directories which are | ||
238 | not writable by any other user or group. After the chroot, | ||
239 | sshd(8) changes the working directory to the user's home | ||
240 | directory. | ||
241 | |||
242 | The pathname may contain the following tokens that are expanded | ||
243 | at runtime once the connecting user has been authenticated: %% is | ||
244 | replaced by a literal '%', %h is replaced by the home directory | ||
245 | of the user being authenticated, and %u is replaced by the | ||
246 | username of that user. | ||
247 | |||
248 | The ChrootDirectory must contain the necessary files and | ||
249 | directories to support the user's session. For an interactive | ||
250 | session this requires at least a shell, typically sh(1), and | ||
251 | basic /dev nodes such as null(4), zero(4), stdin(4), stdout(4), | ||
252 | stderr(4), and tty(4) devices. For file transfer sessions using | ||
253 | M-bM-^@M-^\sftpM-bM-^@M-^], no additional configuration of the environment is | ||
254 | necessary if the in-process sftp server is used, though sessions | ||
255 | which use logging may require /dev/log inside the chroot | ||
256 | directory on some operating systems (see sftp-server(8) for | ||
257 | details). | ||
258 | |||
259 | For safety, it is very important that the directory hierarchy be | ||
260 | prevented from modification by other processes on the system | ||
261 | (especially those outside the jail). Misconfiguration can lead | ||
262 | to unsafe environments which sshd(8) cannot detect. | ||
263 | |||
264 | The default is M-bM-^@M-^\noneM-bM-^@M-^], indicating not to chroot(2). | ||
265 | |||
266 | Ciphers | ||
267 | Specifies the ciphers allowed. Multiple ciphers must be comma- | ||
268 | separated. If the specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, | ||
269 | then the specified ciphers will be appended to the default set | ||
270 | instead of replacing them. | ||
271 | |||
272 | The supported ciphers are: | ||
273 | |||
274 | 3des-cbc | ||
275 | aes128-cbc | ||
276 | aes192-cbc | ||
277 | aes256-cbc | ||
278 | aes128-ctr | ||
279 | aes192-ctr | ||
280 | aes256-ctr | ||
281 | aes128-gcm@openssh.com | ||
282 | aes256-gcm@openssh.com | ||
283 | arcfour | ||
284 | arcfour128 | ||
285 | arcfour256 | ||
286 | blowfish-cbc | ||
287 | cast128-cbc | ||
288 | chacha20-poly1305@openssh.com | ||
289 | |||
290 | The default is: | ||
291 | |||
292 | chacha20-poly1305@openssh.com, | ||
293 | aes128-ctr,aes192-ctr,aes256-ctr, | ||
294 | aes128-gcm@openssh.com,aes256-gcm@openssh.com | ||
295 | |||
296 | The list of available ciphers may also be obtained using the -Q | ||
297 | option of ssh(1) with an argument of M-bM-^@M-^\cipherM-bM-^@M-^]. | ||
298 | |||
299 | ClientAliveCountMax | ||
300 | Sets the number of client alive messages (see below) which may be | ||
301 | sent without sshd(8) receiving any messages back from the client. | ||
302 | If this threshold is reached while client alive messages are | ||
303 | being sent, sshd will disconnect the client, terminating the | ||
304 | session. It is important to note that the use of client alive | ||
305 | messages is very different from TCPKeepAlive (below). The client | ||
306 | alive messages are sent through the encrypted channel and | ||
307 | therefore will not be spoofable. The TCP keepalive option | ||
308 | enabled by TCPKeepAlive is spoofable. The client alive mechanism | ||
309 | is valuable when the client or server depend on knowing when a | ||
310 | connection has become inactive. | ||
311 | |||
312 | The default value is 3. If ClientAliveInterval (see below) is | ||
313 | set to 15, and ClientAliveCountMax is left at the default, | ||
314 | unresponsive SSH clients will be disconnected after approximately | ||
315 | 45 seconds. | ||
316 | |||
317 | ClientAliveInterval | ||
318 | Sets a timeout interval in seconds after which if no data has | ||
319 | been received from the client, sshd(8) will send a message | ||
320 | through the encrypted channel to request a response from the | ||
321 | client. The default is 0, indicating that these messages will | ||
322 | not be sent to the client. | ||
323 | |||
324 | Compression | ||
325 | Specifies whether compression is allowed, or delayed until the | ||
326 | user has authenticated successfully. The argument must be M-bM-^@M-^\yesM-bM-^@M-^], | ||
327 | M-bM-^@M-^\delayedM-bM-^@M-^], or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\delayedM-bM-^@M-^]. | ||
328 | |||
329 | DenyGroups | ||
330 | This keyword can be followed by a list of group name patterns, | ||
331 | separated by spaces. Login is disallowed for users whose primary | ||
332 | group or supplementary group list matches one of the patterns. | ||
333 | Only group names are valid; a numerical group ID is not | ||
334 | recognized. By default, login is allowed for all groups. The | ||
335 | allow/deny directives are processed in the following order: | ||
336 | DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups. | ||
337 | |||
338 | See PATTERNS in ssh_config(5) for more information on patterns. | ||
339 | |||
340 | DenyUsers | ||
341 | This keyword can be followed by a list of user name patterns, | ||
342 | separated by spaces. Login is disallowed for user names that | ||
343 | match one of the patterns. Only user names are valid; a | ||
344 | numerical user ID is not recognized. By default, login is | ||
345 | allowed for all users. If the pattern takes the form USER@HOST | ||
346 | then USER and HOST are separately checked, restricting logins to | ||
347 | particular users from particular hosts. HOST criteria may | ||
348 | additionally contain addresses to match in CIDR address/masklen | ||
349 | format. The allow/deny directives are processed in the following | ||
350 | order: DenyUsers, AllowUsers, DenyGroups, and finally | ||
351 | AllowGroups. | ||
352 | |||
353 | See PATTERNS in ssh_config(5) for more information on patterns. | ||
354 | |||
355 | FingerprintHash | ||
356 | Specifies the hash algorithm used when logging key fingerprints. | ||
357 | Valid options are: M-bM-^@M-^\md5M-bM-^@M-^] and M-bM-^@M-^\sha256M-bM-^@M-^]. The default is M-bM-^@M-^\sha256M-bM-^@M-^]. | ||
358 | |||
359 | ForceCommand | ||
360 | Forces the execution of the command specified by ForceCommand, | ||
361 | ignoring any command supplied by the client and ~/.ssh/rc if | ||
362 | present. The command is invoked by using the user's login shell | ||
363 | with the -c option. This applies to shell, command, or subsystem | ||
364 | execution. It is most useful inside a Match block. The command | ||
365 | originally supplied by the client is available in the | ||
366 | SSH_ORIGINAL_COMMAND environment variable. Specifying a command | ||
367 | of M-bM-^@M-^\internal-sftpM-bM-^@M-^] will force the use of an in-process sftp | ||
368 | server that requires no support files when used with | ||
369 | ChrootDirectory. The default is M-bM-^@M-^\noneM-bM-^@M-^]. | ||
370 | |||
371 | GatewayPorts | ||
372 | Specifies whether remote hosts are allowed to connect to ports | ||
373 | forwarded for the client. By default, sshd(8) binds remote port | ||
374 | forwardings to the loopback address. This prevents other remote | ||
375 | hosts from connecting to forwarded ports. GatewayPorts can be | ||
376 | used to specify that sshd should allow remote port forwardings to | ||
377 | bind to non-loopback addresses, thus allowing other hosts to | ||
378 | connect. The argument may be M-bM-^@M-^\noM-bM-^@M-^] to force remote port | ||
379 | forwardings to be available to the local host only, M-bM-^@M-^\yesM-bM-^@M-^] to | ||
380 | force remote port forwardings to bind to the wildcard address, or | ||
381 | M-bM-^@M-^\clientspecifiedM-bM-^@M-^] to allow the client to select the address to | ||
382 | which the forwarding is bound. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
383 | |||
384 | GSSAPIAuthentication | ||
385 | Specifies whether user authentication based on GSSAPI is allowed. | ||
386 | The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
387 | |||
388 | GSSAPICleanupCredentials | ||
389 | Specifies whether to automatically destroy the user's credentials | ||
390 | cache on logout. The default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
391 | |||
392 | GSSAPIStrictAcceptorCheck | ||
393 | Determines whether to be strict about the identity of the GSSAPI | ||
394 | acceptor a client authenticates against. If set to M-bM-^@M-^\yesM-bM-^@M-^] then | ||
395 | the client must authenticate against the host service on the | ||
396 | current hostname. If set to M-bM-^@M-^\noM-bM-^@M-^] then the client may | ||
397 | authenticate against any service key stored in the machine's | ||
398 | default store. This facility is provided to assist with | ||
399 | operation on multi homed machines. The default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
400 | |||
401 | HostbasedAcceptedKeyTypes | ||
402 | Specifies the key types that will be accepted for hostbased | ||
403 | authentication as a comma-separated pattern list. Alternately if | ||
404 | the specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the | ||
405 | specified key types will be appended to the default set instead | ||
406 | of replacing them. The default for this option is: | ||
407 | |||
408 | ecdsa-sha2-nistp256-cert-v01@openssh.com, | ||
409 | ecdsa-sha2-nistp384-cert-v01@openssh.com, | ||
410 | ecdsa-sha2-nistp521-cert-v01@openssh.com, | ||
411 | ssh-ed25519-cert-v01@openssh.com, | ||
412 | ssh-rsa-cert-v01@openssh.com, | ||
413 | ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521, | ||
414 | ssh-ed25519,ssh-rsa | ||
415 | |||
416 | The -Q option of ssh(1) may be used to list supported key types. | ||
417 | |||
418 | HostbasedAuthentication | ||
419 | Specifies whether rhosts or /etc/hosts.equiv authentication | ||
420 | together with successful public key client host authentication is | ||
421 | allowed (host-based authentication). The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
422 | |||
423 | HostbasedUsesNameFromPacketOnly | ||
424 | Specifies whether or not the server will attempt to perform a | ||
425 | reverse name lookup when matching the name in the ~/.shosts, | ||
426 | ~/.rhosts, and /etc/hosts.equiv files during | ||
427 | HostbasedAuthentication. A setting of M-bM-^@M-^\yesM-bM-^@M-^] means that sshd(8) | ||
428 | uses the name supplied by the client rather than attempting to | ||
429 | resolve the name from the TCP connection itself. The default is | ||
430 | M-bM-^@M-^\noM-bM-^@M-^]. | ||
431 | |||
432 | HostCertificate | ||
433 | Specifies a file containing a public host certificate. The | ||
434 | certificate's public key must match a private host key already | ||
435 | specified by HostKey. The default behaviour of sshd(8) is not to | ||
436 | load any certificates. | ||
437 | |||
438 | HostKey | ||
439 | Specifies a file containing a private host key used by SSH. The | ||
440 | default is /etc/ssh/ssh_host_key for protocol version 1, and | ||
441 | /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_ecdsa_key, | ||
442 | /etc/ssh/ssh_host_ed25519_key and /etc/ssh/ssh_host_rsa_key for | ||
443 | protocol version 2. | ||
444 | |||
445 | Note that sshd(8) will refuse to use a file if it is group/world- | ||
446 | accessible and that the HostKeyAlgorithms option restricts which | ||
447 | of the keys are actually used by sshd(8). | ||
448 | |||
449 | It is possible to have multiple host key files. M-bM-^@M-^\rsa1M-bM-^@M-^] keys are | ||
450 | used for version 1 and M-bM-^@M-^\dsaM-bM-^@M-^], M-bM-^@M-^\ecdsaM-bM-^@M-^], M-bM-^@M-^\ed25519M-bM-^@M-^] or M-bM-^@M-^\rsaM-bM-^@M-^] are | ||
451 | used for version 2 of the SSH protocol. It is also possible to | ||
452 | specify public host key files instead. In this case operations | ||
453 | on the private key will be delegated to an ssh-agent(1). | ||
454 | |||
455 | HostKeyAgent | ||
456 | Identifies the UNIX-domain socket used to communicate with an | ||
457 | agent that has access to the private host keys. If the string | ||
458 | M-bM-^@M-^\SSH_AUTH_SOCKM-bM-^@M-^] is specified, the location of the socket will be | ||
459 | read from the SSH_AUTH_SOCK environment variable. | ||
460 | |||
461 | HostKeyAlgorithms | ||
462 | Specifies the host key algorithms that the server offers. The | ||
463 | default for this option is: | ||
464 | |||
465 | ecdsa-sha2-nistp256-cert-v01@openssh.com, | ||
466 | ecdsa-sha2-nistp384-cert-v01@openssh.com, | ||
467 | ecdsa-sha2-nistp521-cert-v01@openssh.com, | ||
468 | ssh-ed25519-cert-v01@openssh.com, | ||
469 | ssh-rsa-cert-v01@openssh.com, | ||
470 | ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521, | ||
471 | ssh-ed25519,ssh-rsa | ||
472 | |||
473 | The list of available key types may also be obtained using the -Q | ||
474 | option of ssh(1) with an argument of M-bM-^@M-^\keyM-bM-^@M-^]. | ||
475 | |||
476 | IgnoreRhosts | ||
477 | Specifies that .rhosts and .shosts files will not be used in | ||
478 | RhostsRSAAuthentication or HostbasedAuthentication. | ||
479 | |||
480 | /etc/hosts.equiv and /etc/shosts.equiv are still used. The | ||
481 | default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
482 | |||
483 | IgnoreUserKnownHosts | ||
484 | Specifies whether sshd(8) should ignore the user's | ||
485 | ~/.ssh/known_hosts during RhostsRSAAuthentication or | ||
486 | HostbasedAuthentication. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
487 | |||
488 | IPQoS Specifies the IPv4 type-of-service or DSCP class for the | ||
489 | connection. Accepted values are M-bM-^@M-^\af11M-bM-^@M-^], M-bM-^@M-^\af12M-bM-^@M-^], M-bM-^@M-^\af13M-bM-^@M-^], M-bM-^@M-^\af21M-bM-^@M-^], | ||
490 | M-bM-^@M-^\af22M-bM-^@M-^], M-bM-^@M-^\af23M-bM-^@M-^], M-bM-^@M-^\af31M-bM-^@M-^], M-bM-^@M-^\af32M-bM-^@M-^], M-bM-^@M-^\af33M-bM-^@M-^], M-bM-^@M-^\af41M-bM-^@M-^], M-bM-^@M-^\af42M-bM-^@M-^], M-bM-^@M-^\af43M-bM-^@M-^], | ||
491 | M-bM-^@M-^\cs0M-bM-^@M-^], M-bM-^@M-^\cs1M-bM-^@M-^], M-bM-^@M-^\cs2M-bM-^@M-^], M-bM-^@M-^\cs3M-bM-^@M-^], M-bM-^@M-^\cs4M-bM-^@M-^], M-bM-^@M-^\cs5M-bM-^@M-^], M-bM-^@M-^\cs6M-bM-^@M-^], M-bM-^@M-^\cs7M-bM-^@M-^], M-bM-^@M-^\efM-bM-^@M-^], | ||
492 | M-bM-^@M-^\lowdelayM-bM-^@M-^], M-bM-^@M-^\throughputM-bM-^@M-^], M-bM-^@M-^\reliabilityM-bM-^@M-^], or a numeric value. | ||
493 | This option may take one or two arguments, separated by | ||
494 | whitespace. If one argument is specified, it is used as the | ||
495 | packet class unconditionally. If two values are specified, the | ||
496 | first is automatically selected for interactive sessions and the | ||
497 | second for non-interactive sessions. The default is M-bM-^@M-^\lowdelayM-bM-^@M-^] | ||
498 | for interactive sessions and M-bM-^@M-^\throughputM-bM-^@M-^] for non-interactive | ||
499 | sessions. | ||
500 | |||
501 | KbdInteractiveAuthentication | ||
502 | Specifies whether to allow keyboard-interactive authentication. | ||
503 | The argument to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default | ||
504 | is to use whatever value ChallengeResponseAuthentication is set | ||
505 | to (by default M-bM-^@M-^\yesM-bM-^@M-^]). | ||
506 | |||
507 | KerberosAuthentication | ||
508 | Specifies whether the password provided by the user for | ||
509 | PasswordAuthentication will be validated through the Kerberos | ||
510 | KDC. To use this option, the server needs a Kerberos servtab | ||
511 | which allows the verification of the KDC's identity. The default | ||
512 | is M-bM-^@M-^\noM-bM-^@M-^]. | ||
513 | |||
514 | KerberosGetAFSToken | ||
515 | If AFS is active and the user has a Kerberos 5 TGT, attempt to | ||
516 | acquire an AFS token before accessing the user's home directory. | ||
517 | The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
518 | |||
519 | KerberosOrLocalPasswd | ||
520 | If password authentication through Kerberos fails then the | ||
521 | password will be validated via any additional local mechanism | ||
522 | such as /etc/passwd. The default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
523 | |||
524 | KerberosTicketCleanup | ||
525 | Specifies whether to automatically destroy the user's ticket | ||
526 | cache file on logout. The default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
527 | |||
528 | KexAlgorithms | ||
529 | Specifies the available KEX (Key Exchange) algorithms. Multiple | ||
530 | algorithms must be comma-separated. Alternately if the specified | ||
531 | value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the specified methods | ||
532 | will be appended to the default set instead of replacing them. | ||
533 | The supported algorithms are: | ||
534 | |||
535 | curve25519-sha256@libssh.org | ||
536 | diffie-hellman-group1-sha1 | ||
537 | diffie-hellman-group14-sha1 | ||
538 | diffie-hellman-group-exchange-sha1 | ||
539 | diffie-hellman-group-exchange-sha256 | ||
540 | ecdh-sha2-nistp256 | ||
541 | ecdh-sha2-nistp384 | ||
542 | ecdh-sha2-nistp521 | ||
543 | |||
544 | The default is: | ||
545 | |||
546 | curve25519-sha256@libssh.org, | ||
547 | ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521, | ||
548 | diffie-hellman-group-exchange-sha256, | ||
549 | diffie-hellman-group14-sha1 | ||
550 | |||
551 | The list of available key exchange algorithms may also be | ||
552 | obtained using the -Q option of ssh(1) with an argument of M-bM-^@M-^\kexM-bM-^@M-^]. | ||
553 | |||
554 | KeyRegenerationInterval | ||
555 | In protocol version 1, the ephemeral server key is automatically | ||
556 | regenerated after this many seconds (if it has been used). The | ||
557 | purpose of regeneration is to prevent decrypting captured | ||
558 | sessions by later breaking into the machine and stealing the | ||
559 | keys. The key is never stored anywhere. If the value is 0, the | ||
560 | key is never regenerated. The default is 3600 (seconds). | ||
561 | |||
562 | ListenAddress | ||
563 | Specifies the local addresses sshd(8) should listen on. The | ||
564 | following forms may be used: | ||
565 | |||
566 | ListenAddress host|IPv4_addr|IPv6_addr | ||
567 | ListenAddress host|IPv4_addr:port | ||
568 | ListenAddress [host|IPv6_addr]:port | ||
569 | |||
570 | If port is not specified, sshd will listen on the address and all | ||
571 | Port options specified. The default is to listen on all local | ||
572 | addresses. Multiple ListenAddress options are permitted. | ||
573 | |||
574 | LoginGraceTime | ||
575 | The server disconnects after this time if the user has not | ||
576 | successfully logged in. If the value is 0, there is no time | ||
577 | limit. The default is 120 seconds. | ||
578 | |||
579 | LogLevel | ||
580 | Gives the verbosity level that is used when logging messages from | ||
581 | sshd(8). The possible values are: QUIET, FATAL, ERROR, INFO, | ||
582 | VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO. | ||
583 | DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify | ||
584 | higher levels of debugging output. Logging with a DEBUG level | ||
585 | violates the privacy of users and is not recommended. | ||
586 | |||
587 | MACs Specifies the available MAC (message authentication code) | ||
588 | algorithms. The MAC algorithm is used for data integrity | ||
589 | protection. Multiple algorithms must be comma-separated. If the | ||
590 | specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the specified | ||
591 | algorithms will be appended to the default set instead of | ||
592 | replacing them. | ||
593 | |||
594 | The algorithms that contain M-bM-^@M-^\-etmM-bM-^@M-^] calculate the MAC after | ||
595 | encryption (encrypt-then-mac). These are considered safer and | ||
596 | their use recommended. The supported MACs are: | ||
597 | |||
598 | hmac-md5 | ||
599 | hmac-md5-96 | ||
600 | hmac-ripemd160 | ||
601 | hmac-sha1 | ||
602 | hmac-sha1-96 | ||
603 | hmac-sha2-256 | ||
604 | hmac-sha2-512 | ||
605 | umac-64@openssh.com | ||
606 | umac-128@openssh.com | ||
607 | hmac-md5-etm@openssh.com | ||
608 | hmac-md5-96-etm@openssh.com | ||
609 | hmac-ripemd160-etm@openssh.com | ||
610 | hmac-sha1-etm@openssh.com | ||
611 | hmac-sha1-96-etm@openssh.com | ||
612 | hmac-sha2-256-etm@openssh.com | ||
613 | hmac-sha2-512-etm@openssh.com | ||
614 | umac-64-etm@openssh.com | ||
615 | umac-128-etm@openssh.com | ||
616 | |||
617 | The default is: | ||
618 | |||
619 | umac-64-etm@openssh.com,umac-128-etm@openssh.com, | ||
620 | hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com, | ||
621 | hmac-sha1-etm@openssh.com, | ||
622 | umac-64@openssh.com,umac-128@openssh.com, | ||
623 | hmac-sha2-256,hmac-sha2-512,hmac-sha1 | ||
624 | |||
625 | The list of available MAC algorithms may also be obtained using | ||
626 | the -Q option of ssh(1) with an argument of M-bM-^@M-^\macM-bM-^@M-^]. | ||
627 | |||
628 | Match Introduces a conditional block. If all of the criteria on the | ||
629 | Match line are satisfied, the keywords on the following lines | ||
630 | override those set in the global section of the config file, | ||
631 | until either another Match line or the end of the file. If a | ||
632 | keyword appears in multiple Match blocks that are satisfied, only | ||
633 | the first instance of the keyword is applied. | ||
634 | |||
635 | The arguments to Match are one or more criteria-pattern pairs or | ||
636 | the single token All which matches all criteria. The available | ||
637 | criteria are User, Group, Host, LocalAddress, LocalPort, and | ||
638 | Address. The match patterns may consist of single entries or | ||
639 | comma-separated lists and may use the wildcard and negation | ||
640 | operators described in the PATTERNS section of ssh_config(5). | ||
641 | |||
642 | The patterns in an Address criteria may additionally contain | ||
643 | addresses to match in CIDR address/masklen format, e.g. | ||
644 | M-bM-^@M-^\192.0.2.0/24M-bM-^@M-^] or M-bM-^@M-^\3ffe:ffff::/32M-bM-^@M-^]. Note that the mask length | ||
645 | provided must be consistent with the address - it is an error to | ||
646 | specify a mask length that is too long for the address or one | ||
647 | with bits set in this host portion of the address. For example, | ||
648 | M-bM-^@M-^\192.0.2.0/33M-bM-^@M-^] and M-bM-^@M-^\192.0.2.0/8M-bM-^@M-^] respectively. | ||
649 | |||
650 | Only a subset of keywords may be used on the lines following a | ||
651 | Match keyword. Available keywords are AcceptEnv, | ||
652 | AllowAgentForwarding, AllowGroups, AllowStreamLocalForwarding, | ||
653 | AllowTcpForwarding, AllowUsers, AuthenticationMethods, | ||
654 | AuthorizedKeysCommand, AuthorizedKeysCommandUser, | ||
655 | AuthorizedKeysFile, AuthorizedPrincipalsCommand, | ||
656 | AuthorizedPrincipalsCommandUser, AuthorizedPrincipalsFile, | ||
657 | Banner, ChrootDirectory, DenyGroups, DenyUsers, ForceCommand, | ||
658 | GatewayPorts, GSSAPIAuthentication, HostbasedAcceptedKeyTypes, | ||
659 | HostbasedAuthentication, HostbasedUsesNameFromPacketOnly, IPQoS, | ||
660 | KbdInteractiveAuthentication, KerberosAuthentication, | ||
661 | MaxAuthTries, MaxSessions, PasswordAuthentication, | ||
662 | PermitEmptyPasswords, PermitOpen, PermitRootLogin, PermitTTY, | ||
663 | PermitTunnel, PermitUserRC, PubkeyAcceptedKeyTypes, | ||
664 | PubkeyAuthentication, RekeyLimit, RevokedKeys, | ||
665 | RhostsRSAAuthentication, RSAAuthentication, StreamLocalBindMask, | ||
666 | StreamLocalBindUnlink, TrustedUserCAKeys, X11DisplayOffset, | ||
667 | X11Forwarding and X11UseLocalHost. | ||
668 | |||
669 | MaxAuthTries | ||
670 | Specifies the maximum number of authentication attempts permitted | ||
671 | per connection. Once the number of failures reaches half this | ||
672 | value, additional failures are logged. The default is 6. | ||
673 | |||
674 | MaxSessions | ||
675 | Specifies the maximum number of open shell, login or subsystem | ||
676 | (e.g. sftp) sessions permitted per network connection. Multiple | ||
677 | sessions may be established by clients that support connection | ||
678 | multiplexing. Setting MaxSessions to 1 will effectively disable | ||
679 | session multiplexing, whereas setting it to 0 will prevent all | ||
680 | shell, login and subsystem sessions while still permitting | ||
681 | forwarding. The default is 10. | ||
682 | |||
683 | MaxStartups | ||
684 | Specifies the maximum number of concurrent unauthenticated | ||
685 | connections to the SSH daemon. Additional connections will be | ||
686 | dropped until authentication succeeds or the LoginGraceTime | ||
687 | expires for a connection. The default is 10:30:100. | ||
688 | |||
689 | Alternatively, random early drop can be enabled by specifying the | ||
690 | three colon separated values M-bM-^@M-^\start:rate:fullM-bM-^@M-^] (e.g. "10:30:60"). | ||
691 | sshd(8) will refuse connection attempts with a probability of | ||
692 | M-bM-^@M-^\rate/100M-bM-^@M-^] (30%) if there are currently M-bM-^@M-^\startM-bM-^@M-^] (10) | ||
693 | unauthenticated connections. The probability increases linearly | ||
694 | and all connection attempts are refused if the number of | ||
695 | unauthenticated connections reaches M-bM-^@M-^\fullM-bM-^@M-^] (60). | ||
696 | |||
697 | PasswordAuthentication | ||
698 | Specifies whether password authentication is allowed. The | ||
699 | default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
700 | |||
701 | PermitEmptyPasswords | ||
702 | When password authentication is allowed, it specifies whether the | ||
703 | server allows login to accounts with empty password strings. The | ||
704 | default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
705 | |||
706 | PermitOpen | ||
707 | Specifies the destinations to which TCP port forwarding is | ||
708 | permitted. The forwarding specification must be one of the | ||
709 | following forms: | ||
710 | |||
711 | PermitOpen host:port | ||
712 | PermitOpen IPv4_addr:port | ||
713 | PermitOpen [IPv6_addr]:port | ||
714 | |||
715 | Multiple forwards may be specified by separating them with | ||
716 | whitespace. An argument of M-bM-^@M-^\anyM-bM-^@M-^] can be used to remove all | ||
717 | restrictions and permit any forwarding requests. An argument of | ||
718 | M-bM-^@M-^\noneM-bM-^@M-^] can be used to prohibit all forwarding requests. The | ||
719 | wildcard M-bM-^@M-^\*M-bM-^@M-^] can be used for host or port to allow all hosts or | ||
720 | ports, respectively. By default all port forwarding requests are | ||
721 | permitted. | ||
722 | |||
723 | PermitRootLogin | ||
724 | Specifies whether root can log in using ssh(1). The argument | ||
725 | must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\prohibit-passwordM-bM-^@M-^], M-bM-^@M-^\without-passwordM-bM-^@M-^], | ||
726 | M-bM-^@M-^\forced-commands-onlyM-bM-^@M-^], or M-bM-^@M-^\noM-bM-^@M-^]. The default is | ||
727 | M-bM-^@M-^\prohibit-passwordM-bM-^@M-^]. | ||
728 | |||
729 | If this option is set to M-bM-^@M-^\prohibit-passwordM-bM-^@M-^] or | ||
730 | M-bM-^@M-^\without-passwordM-bM-^@M-^], password and keyboard-interactive | ||
731 | authentication are disabled for root. | ||
732 | |||
733 | If this option is set to M-bM-^@M-^\forced-commands-onlyM-bM-^@M-^], root login with | ||
734 | public key authentication will be allowed, but only if the | ||
735 | command option has been specified (which may be useful for taking | ||
736 | remote backups even if root login is normally not allowed). All | ||
737 | other authentication methods are disabled for root. | ||
738 | |||
739 | If this option is set to M-bM-^@M-^\noM-bM-^@M-^], root is not allowed to log in. | ||
740 | |||
741 | PermitTunnel | ||
742 | Specifies whether tun(4) device forwarding is allowed. The | ||
743 | argument must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\point-to-pointM-bM-^@M-^] (layer 3), M-bM-^@M-^\ethernetM-bM-^@M-^] | ||
744 | (layer 2), or M-bM-^@M-^\noM-bM-^@M-^]. Specifying M-bM-^@M-^\yesM-bM-^@M-^] permits both | ||
745 | M-bM-^@M-^\point-to-pointM-bM-^@M-^] and M-bM-^@M-^\ethernetM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
746 | |||
747 | Independent of this setting, the permissions of the selected | ||
748 | tun(4) device must allow access to the user. | ||
749 | |||
750 | PermitTTY | ||
751 | Specifies whether pty(4) allocation is permitted. The default is | ||
752 | M-bM-^@M-^\yesM-bM-^@M-^]. | ||
753 | |||
754 | PermitUserEnvironment | ||
755 | Specifies whether ~/.ssh/environment and environment= options in | ||
756 | ~/.ssh/authorized_keys are processed by sshd(8). The default is | ||
757 | M-bM-^@M-^\noM-bM-^@M-^]. Enabling environment processing may enable users to bypass | ||
758 | access restrictions in some configurations using mechanisms such | ||
759 | as LD_PRELOAD. | ||
760 | |||
761 | PermitUserRC | ||
762 | Specifies whether any ~/.ssh/rc file is executed. The default is | ||
763 | M-bM-^@M-^\yesM-bM-^@M-^]. | ||
764 | |||
765 | PidFile | ||
766 | Specifies the file that contains the process ID of the SSH | ||
767 | daemon, or M-bM-^@M-^\noneM-bM-^@M-^] to not write one. The default is | ||
768 | /var/run/sshd.pid. | ||
769 | |||
770 | Port Specifies the port number that sshd(8) listens on. The default | ||
771 | is 22. Multiple options of this type are permitted. See also | ||
772 | ListenAddress. | ||
773 | |||
774 | PrintLastLog | ||
775 | Specifies whether sshd(8) should print the date and time of the | ||
776 | last user login when a user logs in interactively. The default | ||
777 | is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
778 | |||
779 | PrintMotd | ||
780 | Specifies whether sshd(8) should print /etc/motd when a user logs | ||
781 | in interactively. (On some systems it is also printed by the | ||
782 | shell, /etc/profile, or equivalent.) The default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
783 | |||
784 | Protocol | ||
785 | Specifies the protocol versions sshd(8) supports. The possible | ||
786 | values are M-bM-^@M-^X1M-bM-^@M-^Y and M-bM-^@M-^X2M-bM-^@M-^Y. Multiple versions must be comma- | ||
787 | separated. The default is M-bM-^@M-^X2M-bM-^@M-^Y. Protocol 1 suffers from a number | ||
788 | of cryptographic weaknesses and should not be used. It is only | ||
789 | offered to support legacy devices. | ||
790 | |||
791 | Note that the order of the protocol list does not indicate | ||
792 | preference, because the client selects among multiple protocol | ||
793 | versions offered by the server. Specifying M-bM-^@M-^\2,1M-bM-^@M-^] is identical to | ||
794 | M-bM-^@M-^\1,2M-bM-^@M-^]. | ||
795 | |||
796 | PubkeyAcceptedKeyTypes | ||
797 | Specifies the key types that will be accepted for public key | ||
798 | authentication as a comma-separated pattern list. Alternately if | ||
799 | the specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the | ||
800 | specified key types will be appended to the default set instead | ||
801 | of replacing them. The default for this option is: | ||
802 | |||
803 | ecdsa-sha2-nistp256-cert-v01@openssh.com, | ||
804 | ecdsa-sha2-nistp384-cert-v01@openssh.com, | ||
805 | ecdsa-sha2-nistp521-cert-v01@openssh.com, | ||
806 | ssh-ed25519-cert-v01@openssh.com, | ||
807 | ssh-rsa-cert-v01@openssh.com, | ||
808 | ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521, | ||
809 | ssh-ed25519,ssh-rsa | ||
810 | |||
811 | The -Q option of ssh(1) may be used to list supported key types. | ||
812 | |||
813 | PubkeyAuthentication | ||
814 | Specifies whether public key authentication is allowed. The | ||
815 | default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
816 | |||
817 | RekeyLimit | ||
818 | Specifies the maximum amount of data that may be transmitted | ||
819 | before the session key is renegotiated, optionally followed a | ||
820 | maximum amount of time that may pass before the session key is | ||
821 | renegotiated. The first argument is specified in bytes and may | ||
822 | have a suffix of M-bM-^@M-^XKM-bM-^@M-^Y, M-bM-^@M-^XMM-bM-^@M-^Y, or M-bM-^@M-^XGM-bM-^@M-^Y to indicate Kilobytes, | ||
823 | Megabytes, or Gigabytes, respectively. The default is between | ||
824 | M-bM-^@M-^X1GM-bM-^@M-^Y and M-bM-^@M-^X4GM-bM-^@M-^Y, depending on the cipher. The optional second | ||
825 | value is specified in seconds and may use any of the units | ||
826 | documented in the TIME FORMATS section. The default value for | ||
827 | RekeyLimit is M-bM-^@M-^\default noneM-bM-^@M-^], which means that rekeying is | ||
828 | performed after the cipher's default amount of data has been sent | ||
829 | or received and no time based rekeying is done. | ||
830 | |||
831 | RevokedKeys | ||
832 | Specifies revoked public keys file, or M-bM-^@M-^\noneM-bM-^@M-^] to not use one. | ||
833 | Keys listed in this file will be refused for public key | ||
834 | authentication. Note that if this file is not readable, then | ||
835 | public key authentication will be refused for all users. Keys | ||
836 | may be specified as a text file, listing one public key per line, | ||
837 | or as an OpenSSH Key Revocation List (KRL) as generated by | ||
838 | ssh-keygen(1). For more information on KRLs, see the KEY | ||
839 | REVOCATION LISTS section in ssh-keygen(1). | ||
840 | |||
841 | RhostsRSAAuthentication | ||
842 | Specifies whether rhosts or /etc/hosts.equiv authentication | ||
843 | together with successful RSA host authentication is allowed. The | ||
844 | default is M-bM-^@M-^\noM-bM-^@M-^]. This option applies to protocol version 1 only. | ||
845 | |||
846 | RSAAuthentication | ||
847 | Specifies whether pure RSA authentication is allowed. The | ||
848 | default is M-bM-^@M-^\yesM-bM-^@M-^]. This option applies to protocol version 1 | ||
849 | only. | ||
850 | |||
851 | ServerKeyBits | ||
852 | Defines the number of bits in the ephemeral protocol version 1 | ||
853 | server key. The default and minimum value is 1024. | ||
854 | |||
855 | StreamLocalBindMask | ||
856 | Sets the octal file creation mode mask (umask) used when creating | ||
857 | a Unix-domain socket file for local or remote port forwarding. | ||
858 | This option is only used for port forwarding to a Unix-domain | ||
859 | socket file. | ||
860 | |||
861 | The default value is 0177, which creates a Unix-domain socket | ||
862 | file that is readable and writable only by the owner. Note that | ||
863 | not all operating systems honor the file mode on Unix-domain | ||
864 | socket files. | ||
865 | |||
866 | StreamLocalBindUnlink | ||
867 | Specifies whether to remove an existing Unix-domain socket file | ||
868 | for local or remote port forwarding before creating a new one. | ||
869 | If the socket file already exists and StreamLocalBindUnlink is | ||
870 | not enabled, sshd will be unable to forward the port to the Unix- | ||
871 | domain socket file. This option is only used for port forwarding | ||
872 | to a Unix-domain socket file. | ||
873 | |||
874 | The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
875 | |||
876 | StrictModes | ||
877 | Specifies whether sshd(8) should check file modes and ownership | ||
878 | of the user's files and home directory before accepting login. | ||
879 | This is normally desirable because novices sometimes accidentally | ||
880 | leave their directory or files world-writable. The default is | ||
881 | M-bM-^@M-^\yesM-bM-^@M-^]. Note that this does not apply to ChrootDirectory, whose | ||
882 | permissions and ownership are checked unconditionally. | ||
883 | |||
884 | Subsystem | ||
885 | Configures an external subsystem (e.g. file transfer daemon). | ||
886 | Arguments should be a subsystem name and a command (with optional | ||
887 | arguments) to execute upon subsystem request. | ||
888 | |||
889 | The command sftp-server(8) implements the M-bM-^@M-^\sftpM-bM-^@M-^] file transfer | ||
890 | subsystem. | ||
891 | |||
892 | Alternately the name M-bM-^@M-^\internal-sftpM-bM-^@M-^] implements an in-process | ||
893 | M-bM-^@M-^\sftpM-bM-^@M-^] server. This may simplify configurations using | ||
894 | ChrootDirectory to force a different filesystem root on clients. | ||
895 | |||
896 | By default no subsystems are defined. | ||
897 | |||
898 | SyslogFacility | ||
899 | Gives the facility code that is used when logging messages from | ||
900 | sshd(8). The possible values are: DAEMON, USER, AUTH, LOCAL0, | ||
901 | LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The | ||
902 | default is AUTH. | ||
903 | |||
904 | TCPKeepAlive | ||
905 | Specifies whether the system should send TCP keepalive messages | ||
906 | to the other side. If they are sent, death of the connection or | ||
907 | crash of one of the machines will be properly noticed. However, | ||
908 | this means that connections will die if the route is down | ||
909 | temporarily, and some people find it annoying. On the other | ||
910 | hand, if TCP keepalives are not sent, sessions may hang | ||
911 | indefinitely on the server, leaving M-bM-^@M-^\ghostM-bM-^@M-^] users and consuming | ||
912 | server resources. | ||
913 | |||
914 | The default is M-bM-^@M-^\yesM-bM-^@M-^] (to send TCP keepalive messages), and the | ||
915 | server will notice if the network goes down or the client host | ||
916 | crashes. This avoids infinitely hanging sessions. | ||
917 | |||
918 | To disable TCP keepalive messages, the value should be set to | ||
919 | M-bM-^@M-^\noM-bM-^@M-^]. | ||
920 | |||
921 | TrustedUserCAKeys | ||
922 | Specifies a file containing public keys of certificate | ||
923 | authorities that are trusted to sign user certificates for | ||
924 | authentication, or M-bM-^@M-^\noneM-bM-^@M-^] to not use one. Keys are listed one | ||
925 | per line; empty lines and comments starting with M-bM-^@M-^X#M-bM-^@M-^Y are allowed. | ||
926 | If a certificate is presented for authentication and has its | ||
927 | signing CA key listed in this file, then it may be used for | ||
928 | authentication for any user listed in the certificate's | ||
929 | principals list. Note that certificates that lack a list of | ||
930 | principals will not be permitted for authentication using | ||
931 | TrustedUserCAKeys. For more details on certificates, see the | ||
932 | CERTIFICATES section in ssh-keygen(1). | ||
933 | |||
934 | UseDNS Specifies whether sshd(8) should look up the remote host name, | ||
935 | and to check that the resolved host name for the remote IP | ||
936 | address maps back to the very same IP address. | ||
937 | |||
938 | If this option is set to M-bM-^@M-^\noM-bM-^@M-^] (the default) then only addresses | ||
939 | and not host names may be used in ~/.ssh/authorized_keys from and | ||
940 | sshd_config Match Host directives. | ||
941 | |||
942 | UseLogin | ||
943 | Specifies whether login(1) is used for interactive login | ||
944 | sessions. The default is M-bM-^@M-^\noM-bM-^@M-^]. Note that login(1) is never used | ||
945 | for remote command execution. Note also, that if this is | ||
946 | enabled, X11Forwarding will be disabled because login(1) does not | ||
947 | know how to handle xauth(1) cookies. If UsePrivilegeSeparation | ||
948 | is specified, it will be disabled after authentication. | ||
949 | |||
950 | UsePAM Enables the Pluggable Authentication Module interface. If set to | ||
951 | M-bM-^@M-^\yesM-bM-^@M-^] this will enable PAM authentication using | ||
952 | ChallengeResponseAuthentication and PasswordAuthentication in | ||
953 | addition to PAM account and session module processing for all | ||
954 | authentication types. | ||
955 | |||
956 | Because PAM challenge-response authentication usually serves an | ||
957 | equivalent role to password authentication, you should disable | ||
958 | either PasswordAuthentication or ChallengeResponseAuthentication. | ||
959 | |||
960 | If UsePAM is enabled, you will not be able to run sshd(8) as a | ||
961 | non-root user. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
962 | |||
963 | UsePrivilegeSeparation | ||
964 | Specifies whether sshd(8) separates privileges by creating an | ||
965 | unprivileged child process to deal with incoming network traffic. | ||
966 | After successful authentication, another process will be created | ||
967 | that has the privilege of the authenticated user. The goal of | ||
968 | privilege separation is to prevent privilege escalation by | ||
969 | containing any corruption within the unprivileged processes. The | ||
970 | argument must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\noM-bM-^@M-^], or M-bM-^@M-^\sandboxM-bM-^@M-^]. If | ||
971 | UsePrivilegeSeparation is set to M-bM-^@M-^\sandboxM-bM-^@M-^] then the pre- | ||
972 | authentication unprivileged process is subject to additional | ||
973 | restrictions. The default is M-bM-^@M-^\sandboxM-bM-^@M-^]. | ||
974 | |||
975 | VersionAddendum | ||
976 | Optionally specifies additional text to append to the SSH | ||
977 | protocol banner sent by the server upon connection. The default | ||
978 | is M-bM-^@M-^\noneM-bM-^@M-^]. | ||
979 | |||
980 | X11DisplayOffset | ||
981 | Specifies the first display number available for sshd(8)'s X11 | ||
982 | forwarding. This prevents sshd from interfering with real X11 | ||
983 | servers. The default is 10. | ||
984 | |||
985 | X11Forwarding | ||
986 | Specifies whether X11 forwarding is permitted. The argument must | ||
987 | be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
988 | |||
989 | When X11 forwarding is enabled, there may be additional exposure | ||
990 | to the server and to client displays if the sshd(8) proxy display | ||
991 | is configured to listen on the wildcard address (see | ||
992 | X11UseLocalhost below), though this is not the default. | ||
993 | Additionally, the authentication spoofing and authentication data | ||
994 | verification and substitution occur on the client side. The | ||
995 | security risk of using X11 forwarding is that the client's X11 | ||
996 | display server may be exposed to attack when the SSH client | ||
997 | requests forwarding (see the warnings for ForwardX11 in | ||
998 | ssh_config(5)). A system administrator may have a stance in | ||
999 | which they want to protect clients that may expose themselves to | ||
1000 | attack by unwittingly requesting X11 forwarding, which can | ||
1001 | warrant a M-bM-^@M-^\noM-bM-^@M-^] setting. | ||
1002 | |||
1003 | Note that disabling X11 forwarding does not prevent users from | ||
1004 | forwarding X11 traffic, as users can always install their own | ||
1005 | forwarders. X11 forwarding is automatically disabled if UseLogin | ||
1006 | is enabled. | ||
1007 | |||
1008 | X11UseLocalhost | ||
1009 | Specifies whether sshd(8) should bind the X11 forwarding server | ||
1010 | to the loopback address or to the wildcard address. By default, | ||
1011 | sshd binds the forwarding server to the loopback address and sets | ||
1012 | the hostname part of the DISPLAY environment variable to | ||
1013 | M-bM-^@M-^\localhostM-bM-^@M-^]. This prevents remote hosts from connecting to the | ||
1014 | proxy display. However, some older X11 clients may not function | ||
1015 | with this configuration. X11UseLocalhost may be set to M-bM-^@M-^\noM-bM-^@M-^] to | ||
1016 | specify that the forwarding server should be bound to the | ||
1017 | wildcard address. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The | ||
1018 | default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
1019 | |||
1020 | XAuthLocation | ||
1021 | Specifies the full pathname of the xauth(1) program, or M-bM-^@M-^\noneM-bM-^@M-^] to | ||
1022 | not use one. The default is /usr/X11R6/bin/xauth. | ||
1023 | |||
1024 | TIME FORMATS | ||
1025 | sshd(8) command-line arguments and configuration file options that | ||
1026 | specify time may be expressed using a sequence of the form: | ||
1027 | time[qualifier], where time is a positive integer value and qualifier is | ||
1028 | one of the following: | ||
1029 | |||
1030 | M-bM-^_M-(noneM-bM-^_M-) seconds | ||
1031 | s | S seconds | ||
1032 | m | M minutes | ||
1033 | h | H hours | ||
1034 | d | D days | ||
1035 | w | W weeks | ||
1036 | |||
1037 | Each member of the sequence is added together to calculate the total time | ||
1038 | value. | ||
1039 | |||
1040 | Time format examples: | ||
1041 | |||
1042 | 600 600 seconds (10 minutes) | ||
1043 | 10m 10 minutes | ||
1044 | 1h30m 1 hour 30 minutes (90 minutes) | ||
1045 | |||
1046 | FILES | ||
1047 | /etc/ssh/sshd_config | ||
1048 | Contains configuration data for sshd(8). This file should be | ||
1049 | writable by root only, but it is recommended (though not | ||
1050 | necessary) that it be world-readable. | ||
1051 | |||
1052 | SEE ALSO | ||
1053 | sshd(8) | ||
1054 | |||
1055 | AUTHORS | ||
1056 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
1057 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
1058 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
1059 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
1060 | versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support | ||
1061 | for privilege separation. | ||
1062 | |||
1063 | OpenBSD 6.0 July 19, 2016 OpenBSD 6.0 | ||