diff options
-rw-r--r-- | ChangeLog | 8935 | ||||
-rw-r--r-- | config.h.in | 1707 | ||||
-rwxr-xr-x | configure | 36697 | ||||
-rw-r--r-- | moduli.0 | 74 | ||||
-rw-r--r-- | scp.0 | 164 | ||||
-rw-r--r-- | sftp-server.0 | 96 | ||||
-rw-r--r-- | sftp.0 | 383 | ||||
-rw-r--r-- | ssh-add.0 | 129 | ||||
-rw-r--r-- | ssh-agent.0 | 112 | ||||
-rw-r--r-- | ssh-keygen.0 | 566 | ||||
-rw-r--r-- | ssh-keyscan.0 | 109 | ||||
-rw-r--r-- | ssh-keysign.0 | 53 | ||||
-rw-r--r-- | ssh-pkcs11-helper.0 | 25 | ||||
-rw-r--r-- | ssh.0 | 960 | ||||
-rw-r--r-- | ssh_config.0 | 985 | ||||
-rw-r--r-- | sshd.0 | 636 | ||||
-rw-r--r-- | sshd_config.0 | 995 |
17 files changed, 52626 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 000000000..c63681f16 --- /dev/null +++ b/ChangeLog | |||
@@ -0,0 +1,8935 @@ | |||
1 | commit 7de4b03a6e4071d454b72927ffaf52949fa34545 | ||
2 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3 | Date: Wed Jul 1 02:32:17 2015 +0000 | ||
4 | |||
5 | upstream commit | ||
6 | |||
7 | twiddle; (this commit marks the openssh-6.9 release) | ||
8 | |||
9 | Upstream-ID: 78500582819f61dd8adee36ec5cc9b9ac9351234 | ||
10 | |||
11 | commit 1bf477d3cdf1a864646d59820878783d42357a1d | ||
12 | Author: djm@openbsd.org <djm@openbsd.org> | ||
13 | Date: Wed Jul 1 02:26:31 2015 +0000 | ||
14 | |||
15 | upstream commit | ||
16 | |||
17 | better refuse ForwardX11Trusted=no connections attempted | ||
18 | after ForwardX11Timeout expires; reported by Jann Horn | ||
19 | |||
20 | Upstream-ID: bf0fddadc1b46a0334e26c080038313b4b6dea21 | ||
21 | |||
22 | commit 47aa7a0f8551b471fcae0447c1d78464f6dba869 | ||
23 | Author: djm@openbsd.org <djm@openbsd.org> | ||
24 | Date: Wed Jul 1 01:56:13 2015 +0000 | ||
25 | |||
26 | upstream commit | ||
27 | |||
28 | put back default PermitRootLogin=no | ||
29 | |||
30 | Upstream-ID: 7bdedd5cead99c57ed5571f3b6b7840922d5f728 | ||
31 | |||
32 | commit 984b064fe2a23733733262f88d2e1b2a1a501662 | ||
33 | Author: djm@openbsd.org <djm@openbsd.org> | ||
34 | Date: Wed Jul 1 01:55:13 2015 +0000 | ||
35 | |||
36 | upstream commit | ||
37 | |||
38 | openssh-6.9 | ||
39 | |||
40 | Upstream-ID: 6cfe8e1904812531080e6ab6e752d7001b5b2d45 | ||
41 | |||
42 | commit d921082ed670f516652eeba50705e1e9f6325346 | ||
43 | Author: djm@openbsd.org <djm@openbsd.org> | ||
44 | Date: Wed Jul 1 01:55:00 2015 +0000 | ||
45 | |||
46 | upstream commit | ||
47 | |||
48 | reset default PermitRootLogin to 'yes' (momentarily, for | ||
49 | release) | ||
50 | |||
51 | Upstream-ID: cad8513527066e65dd7a1c16363d6903e8cefa24 | ||
52 | |||
53 | commit 66295e0e1ba860e527f191b6325d2d77dec4dbce | ||
54 | Author: Damien Miller <djm@mindrot.org> | ||
55 | Date: Wed Jul 1 11:49:12 2015 +1000 | ||
56 | |||
57 | crank version numbers for release | ||
58 | |||
59 | commit 37035c07d4f26bb1fbe000d2acf78efdb008681d | ||
60 | Author: Damien Miller <djm@mindrot.org> | ||
61 | Date: Wed Jul 1 10:49:37 2015 +1000 | ||
62 | |||
63 | s/--with-ssh1/--without-ssh1/ | ||
64 | |||
65 | commit 629df770dbadc2accfbe1c81b3f31f876d0acd84 | ||
66 | Author: djm@openbsd.org <djm@openbsd.org> | ||
67 | Date: Tue Jun 30 05:25:07 2015 +0000 | ||
68 | |||
69 | upstream commit | ||
70 | |||
71 | fatal() when a remote window update causes the window | ||
72 | value to overflow. Reported by Georg Wicherski, ok markus@ | ||
73 | |||
74 | Upstream-ID: ead397a9aceb3bf74ebfa5fcaf259d72e569f351 | ||
75 | |||
76 | commit f715afebe735d61df3fd30ad72d9ac1c8bd3b5f2 | ||
77 | Author: djm@openbsd.org <djm@openbsd.org> | ||
78 | Date: Tue Jun 30 05:23:25 2015 +0000 | ||
79 | |||
80 | upstream commit | ||
81 | |||
82 | Fix math error in remote window calculations that causes | ||
83 | eventual stalls for datagram channels. Reported by Georg Wicherski, ok | ||
84 | markus@ | ||
85 | |||
86 | Upstream-ID: be54059d11bf64e0d85061f7257f53067842e2ab | ||
87 | |||
88 | commit 52fb6b9b034fcfd24bf88cc7be313e9c31de9889 | ||
89 | Author: Damien Miller <djm@mindrot.org> | ||
90 | Date: Tue Jun 30 16:05:40 2015 +1000 | ||
91 | |||
92 | skip IPv6-related portions on hosts without IPv6 | ||
93 | |||
94 | with Tim Rice | ||
95 | |||
96 | commit 512caddf590857af6aa12218461b5c0441028cf5 | ||
97 | Author: djm@openbsd.org <djm@openbsd.org> | ||
98 | Date: Mon Jun 29 22:35:12 2015 +0000 | ||
99 | |||
100 | upstream commit | ||
101 | |||
102 | add getpid to sandbox, reachable by grace_alarm_handler | ||
103 | |||
104 | reported by Jakub Jelen; bz#2419 | ||
105 | |||
106 | Upstream-ID: d0da1117c16d4c223954995d35b0f47c8f684cd8 | ||
107 | |||
108 | commit 78c2a4f883ea9aba866358e2acd9793a7f42ca93 | ||
109 | Author: djm@openbsd.org <djm@openbsd.org> | ||
110 | Date: Fri Jun 26 05:13:20 2015 +0000 | ||
111 | |||
112 | upstream commit | ||
113 | |||
114 | Fix \-escaping bug that caused forward path parsing to skip | ||
115 | two characters and skip past the end of the string. | ||
116 | |||
117 | Based on patch by Salvador Fandino; ok dtucker@ | ||
118 | |||
119 | Upstream-ID: 7b879dc446335677cbe4cb549495636a0535f3bd | ||
120 | |||
121 | commit bc20205c91c9920361d12b15d253d4997dba494a | ||
122 | Author: Damien Miller <djm@mindrot.org> | ||
123 | Date: Thu Jun 25 09:51:39 2015 +1000 | ||
124 | |||
125 | add missing pselect6 | ||
126 | |||
127 | patch from Jakub Jelen | ||
128 | |||
129 | commit 9d27fb73b4a4e5e99cb880af790d5b1ce44f720a | ||
130 | Author: djm@openbsd.org <djm@openbsd.org> | ||
131 | Date: Wed Jun 24 23:47:23 2015 +0000 | ||
132 | |||
133 | upstream commit | ||
134 | |||
135 | correct test to sshkey_sign(); spotted by Albert S. | ||
136 | |||
137 | Upstream-ID: 5f7347f40f0ca6abdaca2edb3bd62f4776518933 | ||
138 | |||
139 | commit 7ed01a96a1911d8b4a9ef4f3d064e1923bfad7e3 | ||
140 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
141 | Date: Wed Jun 24 01:49:19 2015 +0000 | ||
142 | |||
143 | upstream commit | ||
144 | |||
145 | Revert previous commit. We still want to call setgroups | ||
146 | in the case where there are zero groups to remove any that we might otherwise | ||
147 | inherit (as pointed out by grawity at gmail.com) and since the 2nd argument | ||
148 | to setgroups is always a static global it's always valid to dereference in | ||
149 | this case. ok deraadt@ djm@ | ||
150 | |||
151 | Upstream-ID: 895b5ac560a10befc6b82afa778641315725fd01 | ||
152 | |||
153 | commit 882f8bf94f79528caa65b0ba71c185d705bb7195 | ||
154 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
155 | Date: Wed Jun 24 01:49:19 2015 +0000 | ||
156 | |||
157 | upstream commit | ||
158 | |||
159 | Revert previous commit. We still want to call setgroups in | ||
160 | the case where there are zero groups to remove any that we might otherwise | ||
161 | inherit (as pointed out by grawity at gmail.com) and since the 2nd argument | ||
162 | to setgroups is always a static global it's always valid to dereference in | ||
163 | this case. ok deraadt@ djm@ | ||
164 | |||
165 | Upstream-ID: 895b5ac560a10befc6b82afa778641315725fd01 | ||
166 | |||
167 | commit 9488538a726951e82b3a4374f3c558d72c80a89b | ||
168 | Author: djm@openbsd.org <djm@openbsd.org> | ||
169 | Date: Mon Jun 22 23:42:16 2015 +0000 | ||
170 | |||
171 | upstream commit | ||
172 | |||
173 | Don't count successful partial authentication as failures | ||
174 | in monitor; this may have caused the monitor to refuse multiple | ||
175 | authentications that would otherwise have successfully completed; ok markus@ | ||
176 | |||
177 | Upstream-ID: eb74b8e506714d0f649bd5c300f762a527af04a3 | ||
178 | |||
179 | commit 63b78d003bd8ca111a736e6cea6333da50f5f09b | ||
180 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
181 | Date: Mon Jun 22 12:29:57 2015 +0000 | ||
182 | |||
183 | upstream commit | ||
184 | |||
185 | Don't call setgroups if we have zero groups; there's no | ||
186 | guarantee that it won't try to deref the pointer. Based on a patch from mail | ||
187 | at quitesimple.org, ok djm deraadt | ||
188 | |||
189 | Upstream-ID: 2fff85e11d7a9a387ef7fddf41fbfaf566708ab1 | ||
190 | |||
191 | commit 5c15e22c691c79a47747bcf5490126656f97cecd | ||
192 | Author: Damien Miller <djm@mindrot.org> | ||
193 | Date: Thu Jun 18 15:07:56 2015 +1000 | ||
194 | |||
195 | fix syntax error | ||
196 | |||
197 | commit 596dbca82f3f567fb3d2d69af4b4e1d3ba1e6403 | ||
198 | Author: jsing@openbsd.org <jsing@openbsd.org> | ||
199 | Date: Mon Jun 15 18:44:22 2015 +0000 | ||
200 | |||
201 | upstream commit | ||
202 | |||
203 | If AuthorizedPrincipalsCommand is specified, however | ||
204 | AuthorizedPrincipalsFile is not (or is set to "none"), authentication will | ||
205 | potentially fail due to key_cert_check_authority() failing to locate a | ||
206 | principal that matches the username, even though an authorized principal has | ||
207 | already been matched in the output of the subprocess. Fix this by using the | ||
208 | same logic to determine if pw->pw_name should be passed, as is used to | ||
209 | determine if a authorized principal must be matched earlier on. | ||
210 | |||
211 | ok djm@ | ||
212 | |||
213 | Upstream-ID: 43b42302ec846b0ea68aceb40677245391b9409d | ||
214 | |||
215 | commit aff3e94c0d75d0d0fa84ea392b50ab04f8c57905 | ||
216 | Author: jsing@openbsd.org <jsing@openbsd.org> | ||
217 | Date: Mon Jun 15 18:42:19 2015 +0000 | ||
218 | |||
219 | upstream commit | ||
220 | |||
221 | Make the arguments to match_principals_command() similar | ||
222 | to match_principals_file(), by changing the last argument a struct | ||
223 | sshkey_cert * and dereferencing key->cert in the caller. | ||
224 | |||
225 | No functional change. | ||
226 | |||
227 | ok djm@ | ||
228 | |||
229 | Upstream-ID: 533f99b844b21b47342b32b62e198dfffcf8651c | ||
230 | |||
231 | commit 97e2e1596c202a4693468378b16b2353fd2d6c5e | ||
232 | Author: Damien Miller <djm@mindrot.org> | ||
233 | Date: Wed Jun 17 14:36:54 2015 +1000 | ||
234 | |||
235 | trivial optimisation for seccomp-bpf | ||
236 | |||
237 | When doing arg inspection and the syscall doesn't match, skip | ||
238 | past the instruction that reloads the syscall into the accumulator, | ||
239 | since the accumulator hasn't been modified at this point. | ||
240 | |||
241 | commit 99f33d7304893bd9fa04d227cb6e870171cded19 | ||
242 | Author: Damien Miller <djm@mindrot.org> | ||
243 | Date: Wed Jun 17 10:50:51 2015 +1000 | ||
244 | |||
245 | aarch64 support for seccomp-bpf sandbox | ||
246 | |||
247 | Also resort and tidy syscall list. Based on patches by Jakub Jelen | ||
248 | bz#2361; ok dtucker@ | ||
249 | |||
250 | commit 4ef702e1244633c1025ec7cfe044b9ab267097bf | ||
251 | Author: djm@openbsd.org <djm@openbsd.org> | ||
252 | Date: Mon Jun 15 01:32:50 2015 +0000 | ||
253 | |||
254 | upstream commit | ||
255 | |||
256 | return failure on RSA signature error; reported by Albert S | ||
257 | |||
258 | Upstream-ID: e61bb93dbe0349625807b0810bc213a6822121fa | ||
259 | |||
260 | commit a170f22baf18af0b1acf2788b8b715605f41a1f9 | ||
261 | Author: Tim Rice <tim@multitalents.net> | ||
262 | Date: Tue Jun 9 22:41:13 2015 -0700 | ||
263 | |||
264 | Fix t12 rules for out of tree builds. | ||
265 | |||
266 | commit ec04dc4a5515c913121bc04ed261857e68fa5c18 | ||
267 | Author: millert@openbsd.org <millert@openbsd.org> | ||
268 | Date: Fri Jun 5 15:13:13 2015 +0000 | ||
269 | |||
270 | upstream commit | ||
271 | |||
272 | For "ssh -L 12345:/tmp/sock" don't fail with "No forward host | ||
273 | name." (we have a path, not a host name). Based on a diff from Jared | ||
274 | Yanovich. OK djm@ | ||
275 | |||
276 | Upstream-ID: 2846b0a8c7de037e33657f95afbd282837fc213f | ||
277 | |||
278 | commit 732d61f417a6aea0aa5308b59cb0f563bcd6edd6 | ||
279 | Author: djm@openbsd.org <djm@openbsd.org> | ||
280 | Date: Fri Jun 5 03:44:14 2015 +0000 | ||
281 | |||
282 | upstream commit | ||
283 | |||
284 | typo: accidental repetition; bz#2386 | ||
285 | |||
286 | Upstream-ID: 45e620d99f6bc301e5949d34a54027374991c88b | ||
287 | |||
288 | commit adfb24c69d1b6f5e758db200866c711e25a2ba73 | ||
289 | Author: Darren Tucker <dtucker@zip.com.au> | ||
290 | Date: Fri Jun 5 14:51:40 2015 +1000 | ||
291 | |||
292 | Add Linux powerpc64le and powerpcle entries. | ||
293 | |||
294 | Stopgap to resolve bz#2409 because we are so close to release and will | ||
295 | update config.guess and friends shortly after the release. ok djm@ | ||
296 | |||
297 | commit a1195a0fdc9eddddb04d3e9e44c4775431cb77da | ||
298 | Merge: 6397eed d2480bc | ||
299 | Author: Tim Rice <tim@multitalents.net> | ||
300 | Date: Wed Jun 3 21:43:13 2015 -0700 | ||
301 | |||
302 | Merge branch 'master' of git.mindrot.org:/var/git/openssh | ||
303 | |||
304 | commit 6397eedf953b2b973d2d7cbb504ab501a07f8ddc | ||
305 | Author: Tim Rice <tim@multitalents.net> | ||
306 | Date: Wed Jun 3 21:41:11 2015 -0700 | ||
307 | |||
308 | Remove unneeded backslashes. Patch from Ángel González | ||
309 | |||
310 | commit d2480bcac1caf31b03068de877a47d6e1027bf6d | ||
311 | Author: Darren Tucker <dtucker@zip.com.au> | ||
312 | Date: Thu Jun 4 14:10:55 2015 +1000 | ||
313 | |||
314 | Remove redundant include of stdarg.h. bz#2410 | ||
315 | |||
316 | commit 5e67859a623826ccdf2df284cbb37e2d8e2787eb | ||
317 | Author: djm@openbsd.org <djm@openbsd.org> | ||
318 | Date: Tue Jun 2 09:10:40 2015 +0000 | ||
319 | |||
320 | upstream commit | ||
321 | |||
322 | mention CheckHostIP adding addresses to known_hosts; | ||
323 | bz#1993; ok dtucker@ | ||
324 | |||
325 | Upstream-ID: fd44b68440fd0dc29abf9f2d3f703d74a2396cb7 | ||
326 | |||
327 | commit d7a58bbac6583e33fd5eca8e2c2cc70c57617818 | ||
328 | Author: Darren Tucker <dtucker@zip.com.au> | ||
329 | Date: Tue Jun 2 20:15:26 2015 +1000 | ||
330 | |||
331 | Replace strcpy with strlcpy. | ||
332 | |||
333 | ok djm, sanity check by Corinna Vinschen. | ||
334 | |||
335 | commit 51a1c2115265c6e80ede8a5c9dccada9aeed7143 | ||
336 | Author: Damien Miller <djm@mindrot.org> | ||
337 | Date: Fri May 29 18:27:21 2015 +1000 | ||
338 | |||
339 | skip, rather than fatal when run without SUDO set | ||
340 | |||
341 | commit 599f01142a376645b15cbc9349d7e8975e1cf245 | ||
342 | Author: Damien Miller <djm@mindrot.org> | ||
343 | Date: Fri May 29 18:03:15 2015 +1000 | ||
344 | |||
345 | fix merge botch that left ",," in KEX algs | ||
346 | |||
347 | commit 0c2a81dfc21822f2423edd30751e5ec53467b347 | ||
348 | Author: Damien Miller <djm@mindrot.org> | ||
349 | Date: Fri May 29 17:08:28 2015 +1000 | ||
350 | |||
351 | re-enable SSH protocol 1 at compile time | ||
352 | |||
353 | commit db438f9285d64282d3ac9e8c0944f59f037c0151 | ||
354 | Author: djm@openbsd.org <djm@openbsd.org> | ||
355 | Date: Fri May 29 03:05:13 2015 +0000 | ||
356 | |||
357 | upstream commit | ||
358 | |||
359 | make this work without SUDO set; ok dtucker@ | ||
360 | |||
361 | Upstream-Regress-ID: bca88217b70bce2fe52b23b8e06bdeb82d98c715 | ||
362 | |||
363 | commit 1d9a2e2849c9864fe75daabf433436341c968e14 | ||
364 | Author: djm@openbsd.org <djm@openbsd.org> | ||
365 | Date: Thu May 28 07:37:31 2015 +0000 | ||
366 | |||
367 | upstream commit | ||
368 | |||
369 | wrap all moduli-related code in #ifdef WITH_OPENSSL. | ||
370 | based on patch from Reuben Hawkins; bz#2388 feedback and ok dtucker@ | ||
371 | |||
372 | Upstream-ID: d80cfc8be3e6ec65b3fac9e87c4466533b31b7cf | ||
373 | |||
374 | commit 496aeb25bc2d6c434171292e4714771b594bd00e | ||
375 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
376 | Date: Thu May 28 05:41:29 2015 +0000 | ||
377 | |||
378 | upstream commit | ||
379 | |||
380 | Increase the allowed length of the known host file name | ||
381 | in the log message to be consistent with other cases. Part of bz#1993, ok | ||
382 | deraadt. | ||
383 | |||
384 | Upstream-ID: a9e97567be49f25daf286721450968251ff78397 | ||
385 | |||
386 | commit dd2cfeb586c646ff8d70eb93567b2e559ace5b14 | ||
387 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
388 | Date: Thu May 28 05:09:45 2015 +0000 | ||
389 | |||
390 | upstream commit | ||
391 | |||
392 | Fix typo (keywork->keyword) | ||
393 | |||
394 | Upstream-ID: 8aacd0f4089c0a244cf43417f4f9045dfaeab534 | ||
395 | |||
396 | commit 9cc6842493fbf23025ccc1edab064869640d3bec | ||
397 | Author: djm@openbsd.org <djm@openbsd.org> | ||
398 | Date: Thu May 28 04:50:53 2015 +0000 | ||
399 | |||
400 | upstream commit | ||
401 | |||
402 | add error message on ftruncate failure; bz#2176 | ||
403 | |||
404 | Upstream-ID: cbcc606e0b748520c74a210d8f3cc9718d3148cf | ||
405 | |||
406 | commit d1958793a0072c22be26d136dbda5ae263e717a0 | ||
407 | Author: djm@openbsd.org <djm@openbsd.org> | ||
408 | Date: Thu May 28 04:40:13 2015 +0000 | ||
409 | |||
410 | upstream commit | ||
411 | |||
412 | make ssh-keygen default to ed25519 keys when compiled | ||
413 | without OpenSSL; bz#2388, ok dtucker@ | ||
414 | |||
415 | Upstream-ID: 85a471fa6d3fa57a7b8e882d22cfbfc1d84cdc71 | ||
416 | |||
417 | commit 3ecde664c9fc5fb3667aedf9e6671462600f6496 | ||
418 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
419 | Date: Wed May 27 23:51:10 2015 +0000 | ||
420 | |||
421 | upstream commit | ||
422 | |||
423 | Reorder client proposal to prefer | ||
424 | diffie-hellman-group-exchange-sha1 over diffie-hellman-group14-sha1. ok djm@ | ||
425 | |||
426 | Upstream-ID: 552c08d47347c3ee1a9a57d88441ab50abe17058 | ||
427 | |||
428 | commit 40f64292b907afd0a674fdbf3e4c2356d17a7d68 | ||
429 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
430 | Date: Wed May 27 23:39:18 2015 +0000 | ||
431 | |||
432 | upstream commit | ||
433 | |||
434 | Add a stronger (4k bit) fallback group that sshd can use | ||
435 | when the moduli file is missing or broken, sourced from RFC3526. bz#2302, ok | ||
436 | markus@ (earlier version), djm@ | ||
437 | |||
438 | Upstream-ID: b635215746a25a829d117673d5e5a76d4baee7f4 | ||
439 | |||
440 | commit 5ab7d5fa03ad55bc438fab45dfb3aeb30a3c237a | ||
441 | Author: Darren Tucker <dtucker@zip.com.au> | ||
442 | Date: Thu May 28 10:03:40 2015 +1000 | ||
443 | |||
444 | New moduli file from OpenBSD, removing 1k groups. | ||
445 | |||
446 | Remove 1k bit groups. ok deraadt@, markus@ | ||
447 | |||
448 | commit a71ba58adf34e599f30cdda6e9b93ae6e3937eea | ||
449 | Author: djm@openbsd.org <djm@openbsd.org> | ||
450 | Date: Wed May 27 05:15:02 2015 +0000 | ||
451 | |||
452 | upstream commit | ||
453 | |||
454 | support PKCS#11 devices with external PIN entry devices | ||
455 | bz#2240, based on patch from Dirk-Willem van Gulik; feedback and ok dtucker@ | ||
456 | |||
457 | Upstream-ID: 504568992b55a8fc984375242b1bd505ced61b0d | ||
458 | |||
459 | commit b282fec1aa05246ed3482270eb70fc3ec5f39a00 | ||
460 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
461 | Date: Tue May 26 23:23:40 2015 +0000 | ||
462 | |||
463 | upstream commit | ||
464 | |||
465 | Cap DH-GEX group size at 4kbits for Cisco implementations. | ||
466 | Some of them will choke when asked for preferred sizes >4k instead of | ||
467 | returning the 4k group that they do have. bz#2209, ok djm@ | ||
468 | |||
469 | Upstream-ID: 54b863a19713446b7431f9d06ad0532b4fcfef8d | ||
470 | |||
471 | commit 3e91b4e8b0dc2b4b7e7d42cf6e8994a32e4cb55e | ||
472 | Author: djm@openbsd.org <djm@openbsd.org> | ||
473 | Date: Sun May 24 23:39:16 2015 +0000 | ||
474 | |||
475 | upstream commit | ||
476 | |||
477 | add missing 'c' option to getopt(), case statement was | ||
478 | already there; from Felix Bolte | ||
479 | |||
480 | Upstream-ID: 9b19b4e2e0b54d6fefa0dfac707c51cf4bae3081 | ||
481 | |||
482 | commit 64a89ec07660abba4d0da7c0095b7371c98bab62 | ||
483 | Author: jsg@openbsd.org <jsg@openbsd.org> | ||
484 | Date: Sat May 23 14:28:37 2015 +0000 | ||
485 | |||
486 | upstream commit | ||
487 | |||
488 | fix a memory leak in an error path ok markus@ dtucker@ | ||
489 | |||
490 | Upstream-ID: bc1da0f205494944918533d8780fde65dff6c598 | ||
491 | |||
492 | commit f948737449257d2cb83ffcfe7275eb79b677fd4a | ||
493 | Author: djm@openbsd.org <djm@openbsd.org> | ||
494 | Date: Fri May 22 05:28:45 2015 +0000 | ||
495 | |||
496 | upstream commit | ||
497 | |||
498 | mention ssh-keygen -E for comparing legacy MD5 | ||
499 | fingerprints; bz#2332 | ||
500 | |||
501 | Upstream-ID: 079a3669549041dbf10dbc072d9563f0dc3b2859 | ||
502 | |||
503 | commit 0882332616e4f0272c31cc47bf2018f9cb258a4e | ||
504 | Author: djm@openbsd.org <djm@openbsd.org> | ||
505 | Date: Fri May 22 04:45:52 2015 +0000 | ||
506 | |||
507 | upstream commit | ||
508 | |||
509 | Reorder EscapeChar option parsing to avoid a single-byte | ||
510 | out- of-bounds read. bz#2396 from Jaak Ristioja; ok dtucker@ | ||
511 | |||
512 | Upstream-ID: 1dc6b5b63d1c8d9a88619da0b27ade461d79b060 | ||
513 | |||
514 | commit d7c31da4d42c115843edee2074d7d501f8804420 | ||
515 | Author: djm@openbsd.org <djm@openbsd.org> | ||
516 | Date: Fri May 22 03:50:02 2015 +0000 | ||
517 | |||
518 | upstream commit | ||
519 | |||
520 | add knob to relax GSSAPI host credential check for | ||
521 | multihomed hosts bz#928, patch by Simon Wilkinson; ok dtucker | ||
522 | (kerberos/GSSAPI is not compiled by default on OpenBSD) | ||
523 | |||
524 | Upstream-ID: 15ddf1c6f7fd9d98eea9962f480079ae3637285d | ||
525 | |||
526 | commit aa72196a00be6e0b666215edcffbc10af234cb0e | ||
527 | Author: Darren Tucker <dtucker@zip.com.au> | ||
528 | Date: Fri May 22 17:49:46 2015 +1000 | ||
529 | |||
530 | Include signal.h for sig_atomic_t, used by kex.h. | ||
531 | |||
532 | bz#2402, from tomas.kuthan at oracle com. | ||
533 | |||
534 | commit 8b02481143d75e91c49d1bfae0876ac1fbf9511a | ||
535 | Author: Darren Tucker <dtucker@zip.com.au> | ||
536 | Date: Fri May 22 12:47:24 2015 +1000 | ||
537 | |||
538 | Import updated moduli file from OpenBSD. | ||
539 | |||
540 | commit 4739e8d5e1c0be49624082bd9f6b077e9e758db9 | ||
541 | Author: djm@openbsd.org <djm@openbsd.org> | ||
542 | Date: Thu May 21 12:01:19 2015 +0000 | ||
543 | |||
544 | upstream commit | ||
545 | |||
546 | Support "ssh-keygen -lF hostname" to find search known_hosts | ||
547 | and print key hashes. Already advertised by ssh-keygen(1), but not delivered | ||
548 | by code; ok dtucker@ | ||
549 | |||
550 | Upstream-ID: 459e0e2bf39825e41b0811c336db2d56a1c23387 | ||
551 | |||
552 | commit e97201feca10b5196da35819ae516d0b87cf3a50 | ||
553 | Author: Damien Miller <djm@mindrot.org> | ||
554 | Date: Thu May 21 17:55:15 2015 +1000 | ||
555 | |||
556 | conditionalise util.h inclusion | ||
557 | |||
558 | commit 13640798c7dd011ece0a7d02841fe48e94cfa0e0 | ||
559 | Author: djm@openbsd.org <djm@openbsd.org> | ||
560 | Date: Thu May 21 06:44:25 2015 +0000 | ||
561 | |||
562 | upstream commit | ||
563 | |||
564 | regress test for AuthorizedPrincipalsCommand | ||
565 | |||
566 | Upstream-Regress-ID: c658fbf1ab6b6011dc83b73402322e396f1e1219 | ||
567 | |||
568 | commit 84452c5d03c21f9bfb28c234e0dc1dc67dd817b1 | ||
569 | Author: djm@openbsd.org <djm@openbsd.org> | ||
570 | Date: Thu May 21 06:40:02 2015 +0000 | ||
571 | |||
572 | upstream commit | ||
573 | |||
574 | regress test for AuthorizedKeysCommand arguments | ||
575 | |||
576 | Upstream-Regress-ID: bbd65c13c6b3be9a442ec115800bff9625898f12 | ||
577 | |||
578 | commit bcc50d816187fa9a03907ac1f3a52f04a52e10d1 | ||
579 | Author: djm@openbsd.org <djm@openbsd.org> | ||
580 | Date: Thu May 21 06:43:30 2015 +0000 | ||
581 | |||
582 | upstream commit | ||
583 | |||
584 | add AuthorizedPrincipalsCommand that allows getting | ||
585 | authorized_principals from a subprocess rather than a file, which is quite | ||
586 | useful in deployments with large userbases | ||
587 | |||
588 | feedback and ok markus@ | ||
589 | |||
590 | Upstream-ID: aa1bdac7b16fc6d2fa3524ef08f04c7258d247f6 | ||
591 | |||
592 | commit 24232a3e5ab467678a86aa67968bbb915caffed4 | ||
593 | Author: djm@openbsd.org <djm@openbsd.org> | ||
594 | Date: Thu May 21 06:38:35 2015 +0000 | ||
595 | |||
596 | upstream commit | ||
597 | |||
598 | support arguments to AuthorizedKeysCommand | ||
599 | |||
600 | bz#2081 loosely based on patch by Sami Hartikainen | ||
601 | feedback and ok markus@ | ||
602 | |||
603 | Upstream-ID: b080387a14aa67dddd8ece67c00f268d626541f7 | ||
604 | |||
605 | commit d80fbe41a57c72420c87a628444da16d09d66ca7 | ||
606 | Author: djm@openbsd.org <djm@openbsd.org> | ||
607 | Date: Thu May 21 04:55:51 2015 +0000 | ||
608 | |||
609 | upstream commit | ||
610 | |||
611 | refactor: split base64 encoding of pubkey into its own | ||
612 | sshkey_to_base64() function and out of sshkey_write(); ok markus@ | ||
613 | |||
614 | Upstream-ID: 54fc38f5832e9b91028900819bda46c3959a0c1a | ||
615 | |||
616 | commit 7cc44ef74133a473734bbcbd3484f24d6a7328c5 | ||
617 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
618 | Date: Mon May 18 15:06:05 2015 +0000 | ||
619 | |||
620 | upstream commit | ||
621 | |||
622 | getentropy() and sendsyslog() have been around long | ||
623 | enough. openssh-portable may want the #ifdef's but not base. discussed with | ||
624 | djm few weeks back | ||
625 | |||
626 | Upstream-ID: 0506a4334de108e3fb6c66f8d6e0f9c112866926 | ||
627 | |||
628 | commit 9173d0fbe44de7ebcad8a15618e13a8b8d78902e | ||
629 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
630 | Date: Fri May 15 05:44:21 2015 +0000 | ||
631 | |||
632 | upstream commit | ||
633 | |||
634 | Use a salted hash of the lock passphrase instead of plain | ||
635 | text and do constant-time comparisons of it. Should prevent leaking any | ||
636 | information about it via timing, pointed out by Ryan Castellucci. Add a 0.1s | ||
637 | incrementing delay for each failed unlock attempt up to 10s. ok markus@ | ||
638 | (earlier version), djm@ | ||
639 | |||
640 | Upstream-ID: c599fcc325aa1cc65496b25220b622d22208c85f | ||
641 | |||
642 | commit d028d5d3a697c71b21e4066d8672cacab3caa0a8 | ||
643 | Author: Damien Miller <djm@mindrot.org> | ||
644 | Date: Tue May 5 19:10:58 2015 +1000 | ||
645 | |||
646 | upstream commit | ||
647 | |||
648 | - tedu@cvs.openbsd.org 2015/01/12 03:20:04 | ||
649 | [bcrypt_pbkdf.c] | ||
650 | rename blocks to words. bcrypt "blocks" are unrelated to blowfish blocks, | ||
651 | nor are they the same size. | ||
652 | |||
653 | commit f6391d4e59b058984163ab28f4e317e7a72478f1 | ||
654 | Author: Damien Miller <djm@mindrot.org> | ||
655 | Date: Tue May 5 19:10:23 2015 +1000 | ||
656 | |||
657 | upstream commit | ||
658 | |||
659 | - deraadt@cvs.openbsd.org 2015/01/08 00:30:07 | ||
660 | [bcrypt_pbkdf.c] | ||
661 | declare a local version of MIN(), call it MINIMUM() | ||
662 | |||
663 | commit 8ac6b13cc9113eb47cd9e86c97d7b26b4b71b77f | ||
664 | Author: Damien Miller <djm@mindrot.org> | ||
665 | Date: Tue May 5 19:09:46 2015 +1000 | ||
666 | |||
667 | upstream commit | ||
668 | |||
669 | - djm@cvs.openbsd.org 2014/12/30 01:41:43 | ||
670 | [bcrypt_pbkdf.c] | ||
671 | typo in comment: ouput => output | ||
672 | |||
673 | commit 1f792489d5cf86a4f4e3003e6e9177654033f0f2 | ||
674 | Author: djm@openbsd.org <djm@openbsd.org> | ||
675 | Date: Mon May 4 06:10:48 2015 +0000 | ||
676 | |||
677 | upstream commit | ||
678 | |||
679 | Remove pattern length argument from match_pattern_list(), we | ||
680 | only ever use it for strlen(pattern). | ||
681 | |||
682 | Prompted by hanno AT hboeck.de pointing an out-of-bound read | ||
683 | error caused by an incorrect pattern length found using AFL | ||
684 | and his own tools. | ||
685 | |||
686 | ok markus@ | ||
687 | |||
688 | commit 639d6bc57b1942393ed12fb48f00bc05d4e093e4 | ||
689 | Author: djm@openbsd.org <djm@openbsd.org> | ||
690 | Date: Fri May 1 07:10:01 2015 +0000 | ||
691 | |||
692 | upstream commit | ||
693 | |||
694 | refactor ssh_dispatch_run_fatal() to use sshpkt_fatal() | ||
695 | to better report error conditions. Teach sshpkt_fatal() about ECONNRESET. | ||
696 | |||
697 | Improves error messages on TCP connection resets. bz#2257 | ||
698 | |||
699 | ok dtucker@ | ||
700 | |||
701 | commit 9559d7de34c572d4d3fd990ca211f8ec99f62c4d | ||
702 | Author: djm@openbsd.org <djm@openbsd.org> | ||
703 | Date: Fri May 1 07:08:08 2015 +0000 | ||
704 | |||
705 | upstream commit | ||
706 | |||
707 | a couple of parse targets were missing activep checks, | ||
708 | causing them to be misapplied in match context; bz#2272 diagnosis and | ||
709 | original patch from Sami Hartikainen ok dtucker@ | ||
710 | |||
711 | commit 7e8528cad04b2775c3b7db08abf8fb42e47e6b2a | ||
712 | Author: djm@openbsd.org <djm@openbsd.org> | ||
713 | Date: Fri May 1 04:17:51 2015 +0000 | ||
714 | |||
715 | upstream commit | ||
716 | |||
717 | make handling of AuthorizedPrincipalsFile=none more | ||
718 | consistent with other =none options; bz#2288 from Jakub Jelen; ok dtucker@ | ||
719 | |||
720 | commit ca430d4d9cc0f62eca3b1fb1e2928395b7ce80f7 | ||
721 | Author: djm@openbsd.org <djm@openbsd.org> | ||
722 | Date: Fri May 1 04:03:20 2015 +0000 | ||
723 | |||
724 | upstream commit | ||
725 | |||
726 | remove failed remote forwards established by muliplexing | ||
727 | from the list of active forwards; bz#2363, patch mostly by Yoann Ricordel; ok | ||
728 | dtucker@ | ||
729 | |||
730 | commit 8312cfb8ad88657517b3e23ac8c56c8e38eb9792 | ||
731 | Author: djm@openbsd.org <djm@openbsd.org> | ||
732 | Date: Fri May 1 04:01:58 2015 +0000 | ||
733 | |||
734 | upstream commit | ||
735 | |||
736 | reduce stderr spam when using ssh -S /path/mux -O forward | ||
737 | -R 0:... ok dtucker@ | ||
738 | |||
739 | commit 179be0f5e62f1f492462571944e45a3da660d82b | ||
740 | Author: djm@openbsd.org <djm@openbsd.org> | ||
741 | Date: Fri May 1 03:23:51 2015 +0000 | ||
742 | |||
743 | upstream commit | ||
744 | |||
745 | prevent authorized_keys options picked up on public key | ||
746 | tests without a corresponding private key authentication being applied to | ||
747 | other authentication methods. Reported by halex@, ok markus@ | ||
748 | |||
749 | commit a42d67be65b719a430b7fcaba2a4e4118382723a | ||
750 | Author: djm@openbsd.org <djm@openbsd.org> | ||
751 | Date: Fri May 1 03:20:54 2015 +0000 | ||
752 | |||
753 | upstream commit | ||
754 | |||
755 | Don't make parsing of authorized_keys' environment= | ||
756 | option conditional on PermitUserEnv - always parse it, but only use the | ||
757 | result if the option is enabled. This prevents the syntax of authorized_keys | ||
758 | changing depending on which sshd_config options were enabled. | ||
759 | |||
760 | bz#2329; based on patch from coladict AT gmail.com, ok dtucker@ | ||
761 | |||
762 | commit e661a86353e11592c7ed6a847e19a83609f49e77 | ||
763 | Author: djm@openbsd.org <djm@openbsd.org> | ||
764 | Date: Mon May 4 06:10:48 2015 +0000 | ||
765 | |||
766 | upstream commit | ||
767 | |||
768 | Remove pattern length argument from match_pattern_list(), we | ||
769 | only ever use it for strlen(pattern). | ||
770 | |||
771 | Prompted by hanno AT hboeck.de pointing an out-of-bound read | ||
772 | error caused by an incorrect pattern length found using AFL | ||
773 | and his own tools. | ||
774 | |||
775 | ok markus@ | ||
776 | |||
777 | commit 0ef1de742be2ee4b10381193fe90730925b7f027 | ||
778 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
779 | Date: Thu Apr 23 05:01:19 2015 +0000 | ||
780 | |||
781 | upstream commit | ||
782 | |||
783 | Add a simple regression test for sshd's configuration | ||
784 | parser. Right now, all it does is run the output of sshd -T back through | ||
785 | itself and ensure the output is valid and invariant. | ||
786 | |||
787 | commit 368f83c793275faa2c52f60eaa9bdac155c4254b | ||
788 | Author: djm@openbsd.org <djm@openbsd.org> | ||
789 | Date: Wed Apr 22 01:38:36 2015 +0000 | ||
790 | |||
791 | upstream commit | ||
792 | |||
793 | use correct key for nested certificate test | ||
794 | |||
795 | commit 8d4d1bfddbbd7d21f545dc6997081d1ea1fbc99a | ||
796 | Author: djm@openbsd.org <djm@openbsd.org> | ||
797 | Date: Fri May 1 07:11:47 2015 +0000 | ||
798 | |||
799 | upstream commit | ||
800 | |||
801 | mention that the user's shell from /etc/passwd is used | ||
802 | for commands too; bz#1459 ok dtucker@ | ||
803 | |||
804 | commit 5ab283d0016bbc9d4d71e8e5284d011bc5a930cf | ||
805 | Author: djm@openbsd.org <djm@openbsd.org> | ||
806 | Date: Fri May 8 07:29:00 2015 +0000 | ||
807 | |||
808 | upstream commit | ||
809 | |||
810 | whitespace | ||
811 | |||
812 | Upstream-Regress-ID: 6b708a3e709d5b7fd37890f874bafdff1f597519 | ||
813 | |||
814 | commit 8377d5008ad260048192e1e56ad7d15a56d103dd | ||
815 | Author: djm@openbsd.org <djm@openbsd.org> | ||
816 | Date: Fri May 8 07:26:13 2015 +0000 | ||
817 | |||
818 | upstream commit | ||
819 | |||
820 | whitespace at EOL | ||
821 | |||
822 | Upstream-Regress-ID: 9c48911643d5b05173b36a012041bed4080b8554 | ||
823 | |||
824 | commit c28a3436fa8737709ea88e4437f8f23a6ab50359 | ||
825 | Author: djm@openbsd.org <djm@openbsd.org> | ||
826 | Date: Fri May 8 06:45:13 2015 +0000 | ||
827 | |||
828 | upstream commit | ||
829 | |||
830 | moar whitespace at eol | ||
831 | |||
832 | Upstream-ID: 64eaf872a3ba52ed41e494287e80d40aaba4b515 | ||
833 | |||
834 | commit 2b64c490468fd4ca35ac8d5cc31c0520dc1508bb | ||
835 | Author: djm@openbsd.org <djm@openbsd.org> | ||
836 | Date: Fri May 8 06:41:56 2015 +0000 | ||
837 | |||
838 | upstream commit | ||
839 | |||
840 | whitespace at EOL | ||
841 | |||
842 | Upstream-ID: 57bcf67d666c6fc1ad798aee448fdc3f70f7ec2c | ||
843 | |||
844 | commit 4e636cf201ce6e7e3b9088568218f9d4e2c51712 | ||
845 | Author: djm@openbsd.org <djm@openbsd.org> | ||
846 | Date: Fri May 8 03:56:51 2015 +0000 | ||
847 | |||
848 | upstream commit | ||
849 | |||
850 | whitespace at EOL | ||
851 | |||
852 | commit 38b8272f823dc1dd4e29dbcee83943ed48bb12fa | ||
853 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
854 | Date: Mon May 4 01:47:53 2015 +0000 | ||
855 | |||
856 | upstream commit | ||
857 | |||
858 | Use diff w/out -u for better portability | ||
859 | |||
860 | commit 297060f42d5189a4065ea1b6f0afdf6371fb0507 | ||
861 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
862 | Date: Fri May 8 03:25:07 2015 +0000 | ||
863 | |||
864 | upstream commit | ||
865 | |||
866 | Use xcalloc for permitted_adm_opens instead of xmalloc to | ||
867 | ensure it's zeroed. Fixes post-auth crash with permitopen=none. bz#2355, ok | ||
868 | djm@ | ||
869 | |||
870 | commit 63ebf019be863b2d90492a85e248cf55a6e87403 | ||
871 | Author: djm@openbsd.org <djm@openbsd.org> | ||
872 | Date: Fri May 8 03:17:49 2015 +0000 | ||
873 | |||
874 | upstream commit | ||
875 | |||
876 | don't choke on new-format private keys encrypted with an | ||
877 | AEAD cipher; bz#2366, patch from Ron Frederick; ok markus@ | ||
878 | |||
879 | commit f8484dac678ab3098ae522a5f03bb2530f822987 | ||
880 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
881 | Date: Wed May 6 05:45:17 2015 +0000 | ||
882 | |||
883 | upstream commit | ||
884 | |||
885 | Clarify pseudo-terminal request behaviour and use | ||
886 | "pseudo-terminal" consistently. bz#1716, ok jmc@ "I like it" deraadt@. | ||
887 | |||
888 | commit ea139507bef8bad26e86ed99a42c7233ad115c38 | ||
889 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
890 | Date: Wed May 6 04:07:18 2015 +0000 | ||
891 | |||
892 | upstream commit | ||
893 | |||
894 | Blacklist DH-GEX for specific PuTTY versions known to | ||
895 | send non-RFC4419 DH-GEX messages rather than all versions of PuTTY. | ||
896 | According to Simon Tatham, 0.65 and newer versions will send RFC4419 DH-GEX | ||
897 | messages. ok djm@ | ||
898 | |||
899 | commit b58234f00ee3872eb84f6e9e572a9a34e902e36e | ||
900 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
901 | Date: Tue May 5 10:17:49 2015 +0000 | ||
902 | |||
903 | upstream commit | ||
904 | |||
905 | WinSCP doesn't implement RFC4419 DH-GEX so flag it so we | ||
906 | don't offer that KEX method. ok markus@ | ||
907 | |||
908 | commit d5b1507a207253b39e810e91e68f9598691b7a29 | ||
909 | Author: jsg@openbsd.org <jsg@openbsd.org> | ||
910 | Date: Tue May 5 02:48:17 2015 +0000 | ||
911 | |||
912 | upstream commit | ||
913 | |||
914 | use the sizeof the struct not the sizeof a pointer to the | ||
915 | struct in ssh_digest_start() | ||
916 | |||
917 | This file is only used if ssh is built with OPENSSL=no | ||
918 | |||
919 | ok markus@ | ||
920 | |||
921 | commit a647b9b8e616c231594b2710c925d31b1b8afea3 | ||
922 | Author: Darren Tucker <dtucker@zip.com.au> | ||
923 | Date: Fri May 8 11:07:27 2015 +1000 | ||
924 | |||
925 | Put brackets around mblen() compat constant. | ||
926 | |||
927 | This might help with the reported problem cross compiling for Android | ||
928 | ("error: expected identifier or '(' before numeric constant") but | ||
929 | shouldn't hurt in any case. | ||
930 | |||
931 | commit d1680d36e17244d9af3843aeb5025cb8e40d6c07 | ||
932 | Author: Darren Tucker <dtucker@zip.com.au> | ||
933 | Date: Thu Apr 30 09:18:11 2015 +1000 | ||
934 | |||
935 | xrealloc -> xreallocarray in portable code too. | ||
936 | |||
937 | commit 531a57a3893f9fcd4aaaba8c312b612bbbcc021e | ||
938 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
939 | Date: Wed Apr 29 03:48:56 2015 +0000 | ||
940 | |||
941 | upstream commit | ||
942 | |||
943 | Allow ListenAddress, Port and AddressFamily in any | ||
944 | order. bz#68, ok djm@, jmc@ (for the man page bit). | ||
945 | |||
946 | commit c1d5bcf1aaf1209af02f79e48ba1cbc76a87b56f | ||
947 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
948 | Date: Tue Apr 28 13:47:38 2015 +0000 | ||
949 | |||
950 | upstream commit | ||
951 | |||
952 | enviroment -> environment: apologies to darren for not | ||
953 | spotting that first time round... | ||
954 | |||
955 | commit 43beea053db191cac47c2cd8d3dc1930158aff1a | ||
956 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
957 | Date: Tue Apr 28 10:25:15 2015 +0000 | ||
958 | |||
959 | upstream commit | ||
960 | |||
961 | Fix typo in previous | ||
962 | |||
963 | commit 85b96ef41374f3ddc9139581f87da09b2cd9199e | ||
964 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
965 | Date: Tue Apr 28 10:17:58 2015 +0000 | ||
966 | |||
967 | upstream commit | ||
968 | |||
969 | Document that the TERM environment variable is not | ||
970 | subject to SendEnv and AcceptEnv. bz#2386, based loosely on a patch from | ||
971 | jjelen at redhat, help and ok jmc@ | ||
972 | |||
973 | commit 88a7c598a94ff53f76df228eeaae238d2d467565 | ||
974 | Author: djm@openbsd.org <djm@openbsd.org> | ||
975 | Date: Mon Apr 27 21:42:48 2015 +0000 | ||
976 | |||
977 | upstream commit | ||
978 | |||
979 | Make sshd default to PermitRootLogin=no; ok deraadt@ | ||
980 | rpe@ | ||
981 | |||
982 | commit 734226b4480a6c736096c729fcf6f391400599c7 | ||
983 | Author: djm@openbsd.org <djm@openbsd.org> | ||
984 | Date: Mon Apr 27 01:52:30 2015 +0000 | ||
985 | |||
986 | upstream commit | ||
987 | |||
988 | fix compilation with OPENSSL=no; ok dtucker@ | ||
989 | |||
990 | commit a4b9d2ce1eb7703eaf0809b0c8a82ded8aa4f1c6 | ||
991 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
992 | Date: Mon Apr 27 00:37:53 2015 +0000 | ||
993 | |||
994 | upstream commit | ||
995 | |||
996 | Include stdio.h for FILE (used in sshkey.h) so it | ||
997 | compiles with OPENSSL=no. | ||
998 | |||
999 | commit dbcc652f4ca11fe04e5930c7ef18a219318c6cda | ||
1000 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1001 | Date: Mon Apr 27 00:21:21 2015 +0000 | ||
1002 | |||
1003 | upstream commit | ||
1004 | |||
1005 | allow "sshd -f none" to skip reading the config file, | ||
1006 | much like "ssh -F none" does. ok dtucker | ||
1007 | |||
1008 | commit b7ca276fca316c952f0b90f5adb1448c8481eedc | ||
1009 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
1010 | Date: Fri Apr 24 06:26:49 2015 +0000 | ||
1011 | |||
1012 | upstream commit | ||
1013 | |||
1014 | combine -Dd onto one line and update usage(); | ||
1015 | |||
1016 | commit 2ea974630d7017e4c7666d14d9dc939707613e96 | ||
1017 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1018 | Date: Fri Apr 24 05:26:44 2015 +0000 | ||
1019 | |||
1020 | upstream commit | ||
1021 | |||
1022 | add ssh-agent -D to leave ssh-agent in foreground | ||
1023 | without enabling debug mode; bz#2381 ok dtucker@ | ||
1024 | |||
1025 | commit 8ac2ffd7aa06042f6b924c87139f2fea5c5682f7 | ||
1026 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
1027 | Date: Fri Apr 24 01:36:24 2015 +0000 | ||
1028 | |||
1029 | upstream commit | ||
1030 | |||
1031 | 2*len -> use xreallocarray() ok djm | ||
1032 | |||
1033 | commit 657a5fbc0d0aff309079ff8fb386f17e964963c2 | ||
1034 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
1035 | Date: Fri Apr 24 01:36:00 2015 +0000 | ||
1036 | |||
1037 | upstream commit | ||
1038 | |||
1039 | rename xrealloc() to xreallocarray() since it follows | ||
1040 | that form. ok djm | ||
1041 | |||
1042 | commit 1108ae242fdd2c304307b68ddf46aebe43ebffaa | ||
1043 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
1044 | Date: Thu Apr 23 04:59:10 2015 +0000 | ||
1045 | |||
1046 | upstream commit | ||
1047 | |||
1048 | Two small fixes for sshd -T: ListenAddress'es are added | ||
1049 | to a list head so reverse the order when printing them to ensure the | ||
1050 | behaviour remains the same, and print StreamLocalBindMask as octal with | ||
1051 | leading zero. ok deraadt@ | ||
1052 | |||
1053 | commit bd902b8473e1168f19378d5d0ae68d0c203525df | ||
1054 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
1055 | Date: Thu Apr 23 04:53:53 2015 +0000 | ||
1056 | |||
1057 | upstream commit | ||
1058 | |||
1059 | Check for and reject missing arguments for | ||
1060 | VersionAddendum and ForceCommand. bz#2281, patch from plautrba at redhat com, | ||
1061 | ok djm@ | ||
1062 | |||
1063 | commit ca42c1758575e592239de1d5755140e054b91a0d | ||
1064 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1065 | Date: Wed Apr 22 01:24:01 2015 +0000 | ||
1066 | |||
1067 | upstream commit | ||
1068 | |||
1069 | unknown certificate extensions are non-fatal, so don't | ||
1070 | fatal when they are encountered; bz#2387 reported by Bob Van Zant; ok | ||
1071 | dtucker@ | ||
1072 | |||
1073 | commit 39bfbf7caad231cc4bda6909fb1af0705bca04d8 | ||
1074 | Author: jsg@openbsd.org <jsg@openbsd.org> | ||
1075 | Date: Tue Apr 21 07:01:00 2015 +0000 | ||
1076 | |||
1077 | upstream commit | ||
1078 | |||
1079 | Add back a backslash removed in rev 1.42 so | ||
1080 | KEX_SERVER_ENCRYPT will include aes again. | ||
1081 | |||
1082 | ok deraadt@ | ||
1083 | |||
1084 | commit 6b0d576bb87eca3efd2b309fcfe4edfefc289f9c | ||
1085 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1086 | Date: Fri Apr 17 13:32:09 2015 +0000 | ||
1087 | |||
1088 | upstream commit | ||
1089 | |||
1090 | s/recommended/required/ that private keys be og-r this | ||
1091 | wording change was made a while ago but got accidentally reverted | ||
1092 | |||
1093 | commit 44a8e7ce6f3ab4c2eb1ae49115c210b98e53c4df | ||
1094 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1095 | Date: Fri Apr 17 13:25:52 2015 +0000 | ||
1096 | |||
1097 | upstream commit | ||
1098 | |||
1099 | don't try to cleanup NULL KEX proposals in | ||
1100 | kex_prop_free(); found by Jukka Taimisto and Markus Hietava | ||
1101 | |||
1102 | commit 3038a191872d2882052306098c1810d14835e704 | ||
1103 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1104 | Date: Fri Apr 17 13:19:22 2015 +0000 | ||
1105 | |||
1106 | upstream commit | ||
1107 | |||
1108 | use error/logit/fatal instead of fprintf(stderr, ...) | ||
1109 | and exit(0), fix a few errors that were being printed to stdout instead of | ||
1110 | stderr and a few non-errors that were going to stderr instead of stdout | ||
1111 | bz#2325; ok dtucker | ||
1112 | |||
1113 | commit a58be33cb6cd24441fa7e634db0e5babdd56f07f | ||
1114 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1115 | Date: Fri Apr 17 13:16:48 2015 +0000 | ||
1116 | |||
1117 | upstream commit | ||
1118 | |||
1119 | debug log missing DISPLAY environment when X11 | ||
1120 | forwarding requested; bz#1682 ok dtucker@ | ||
1121 | |||
1122 | commit 17d4d9d9fbc8fb80e322f94d95eecc604588a474 | ||
1123 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1124 | Date: Fri Apr 17 04:32:31 2015 +0000 | ||
1125 | |||
1126 | upstream commit | ||
1127 | |||
1128 | don't call record_login() in monitor when UseLogin is | ||
1129 | enabled; bz#278 reported by drk AT sgi.com; ok dtucker | ||
1130 | |||
1131 | commit 40132ff87b6cbc3dc05fb5df2e9d8e3afa06aafd | ||
1132 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
1133 | Date: Fri Apr 17 04:12:35 2015 +0000 | ||
1134 | |||
1135 | upstream commit | ||
1136 | |||
1137 | Add some missing options to sshd -T and fix the output | ||
1138 | of VersionAddendum HostCertificate. bz#2346, patch from jjelen at redhat | ||
1139 | com, ok djm. | ||
1140 | |||
1141 | commit 6cc7cfa936afde2d829e56ee6528c7ea47a42441 | ||
1142 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
1143 | Date: Thu Apr 16 23:25:50 2015 +0000 | ||
1144 | |||
1145 | upstream commit | ||
1146 | |||
1147 | Document "none" for PidFile XAuthLocation | ||
1148 | TrustedUserCAKeys and RevokedKeys. bz#2382, feedback from jmc@, ok djm@ | ||
1149 | |||
1150 | commit 15fdfc9b1c6808b26bc54d4d61a38b54541763ed | ||
1151 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
1152 | Date: Wed Apr 15 23:23:25 2015 +0000 | ||
1153 | |||
1154 | upstream commit | ||
1155 | |||
1156 | Plug leak of address passed to logging. bz#2373, patch | ||
1157 | from jjelen at redhat, ok markus@ | ||
1158 | |||
1159 | commit bb2289e2a47d465eaaaeff3dee2a6b7777b4c291 | ||
1160 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
1161 | Date: Tue Apr 14 04:17:03 2015 +0000 | ||
1162 | |||
1163 | upstream commit | ||
1164 | |||
1165 | Output remote username in debug output since with Host | ||
1166 | and Match it's not always obvious what it will be. bz#2368, ok djm@ | ||
1167 | |||
1168 | commit 70860b6d07461906730632f9758ff1b7c98c695a | ||
1169 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1170 | Date: Fri Apr 17 10:56:13 2015 +1000 | ||
1171 | |||
1172 | Format UsePAM setting when using sshd -T. | ||
1173 | |||
1174 | Part of bz#2346, patch from jjelen at redhat com. | ||
1175 | |||
1176 | commit ee15d9c9f0720f5a8b0b34e4b10ecf21f9824814 | ||
1177 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1178 | Date: Fri Apr 17 10:40:23 2015 +1000 | ||
1179 | |||
1180 | Wrap endian.h include inside ifdef (bz#2370). | ||
1181 | |||
1182 | commit 408f4c2ad4a4c41baa7b9b2b7423d875abbfa70b | ||
1183 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1184 | Date: Fri Apr 17 09:39:58 2015 +1000 | ||
1185 | |||
1186 | Look for '${host}-ar' before 'ar'. | ||
1187 | |||
1188 | This changes configure.ac to look for '${host}-ar' as set by | ||
1189 | AC_CANONICAL_HOST before looking for the unprefixed 'ar'. | ||
1190 | Useful when cross-compiling when all your binutils are prefixed. | ||
1191 | |||
1192 | Patch from moben at exherbo org via astrand at lysator liu se and | ||
1193 | bz#2352. | ||
1194 | |||
1195 | commit 673a1c16ad078d41558247ce739fe812c960acc8 | ||
1196 | Author: Damien Miller <djm@google.com> | ||
1197 | Date: Thu Apr 16 11:40:20 2015 +1000 | ||
1198 | |||
1199 | remove dependency on arpa/telnet.h | ||
1200 | |||
1201 | commit 202d443eeda1829d336595a3cfc07827e49f45ed | ||
1202 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1203 | Date: Wed Apr 15 15:59:49 2015 +1000 | ||
1204 | |||
1205 | Remove duplicate include of pwd.h. bz#2337, patch from Mordy Ovits. | ||
1206 | |||
1207 | commit 597986493412c499f2bc2209420cb195f97b3668 | ||
1208 | Author: Damien Miller <djm@google.com> | ||
1209 | Date: Thu Apr 9 10:14:48 2015 +1000 | ||
1210 | |||
1211 | platform's with openpty don't need pty_release | ||
1212 | |||
1213 | commit 318be28cda1fd9108f2e6f2f86b0b7589ba2aed0 | ||
1214 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1215 | Date: Mon Apr 13 02:04:08 2015 +0000 | ||
1216 | |||
1217 | upstream commit | ||
1218 | |||
1219 | deprecate ancient, pre-RFC4419 and undocumented | ||
1220 | SSH2_MSG_KEX_DH_GEX_REQUEST_OLD message; ok markus@ deraadt@ "seems | ||
1221 | reasonable" dtucker@ | ||
1222 | |||
1223 | commit d8f391caef62378463a0e6b36f940170dadfe605 | ||
1224 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
1225 | Date: Fri Apr 10 05:16:50 2015 +0000 | ||
1226 | |||
1227 | upstream commit | ||
1228 | |||
1229 | Don't send hostkey advertisments | ||
1230 | (hostkeys-00@openssh.com) to current versions of Tera Term as they can't | ||
1231 | handle them. Newer versions should be OK. Patch from Bryan Drewery and | ||
1232 | IWAMOTO Kouichi, ok djm@ | ||
1233 | |||
1234 | commit 2c2cfe1a1c97eb9a08cc9817fd0678209680c636 | ||
1235 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1236 | Date: Fri Apr 10 00:08:55 2015 +0000 | ||
1237 | |||
1238 | upstream commit | ||
1239 | |||
1240 | include port number if a non-default one has been | ||
1241 | specified; based on patch from Michael Handler | ||
1242 | |||
1243 | commit 4492a4f222da4cf1e8eab12689196322e27b08c4 | ||
1244 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1245 | Date: Tue Apr 7 23:00:42 2015 +0000 | ||
1246 | |||
1247 | upstream commit | ||
1248 | |||
1249 | treat Protocol=1,2|2,1 as Protocol=2 when compiled | ||
1250 | without SSH1 support; ok dtucker@ millert@ | ||
1251 | |||
1252 | commit c265e2e6e932efc6d86f6cc885dea33637a67564 | ||
1253 | Author: miod@openbsd.org <miod@openbsd.org> | ||
1254 | Date: Sun Apr 5 15:43:43 2015 +0000 | ||
1255 | |||
1256 | upstream commit | ||
1257 | |||
1258 | Do not use int for sig_atomic_t; spotted by | ||
1259 | christos@netbsd; ok markus@ | ||
1260 | |||
1261 | commit e7bf3a5eda6a1b02bef6096fed78527ee11e54cc | ||
1262 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1263 | Date: Tue Apr 7 10:48:04 2015 +1000 | ||
1264 | |||
1265 | Use do{}while(0) for no-op functions. | ||
1266 | |||
1267 | From FreeBSD. | ||
1268 | |||
1269 | commit bb99844abae2b6447272f79e7fa84134802eb4df | ||
1270 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1271 | Date: Tue Apr 7 10:47:15 2015 +1000 | ||
1272 | |||
1273 | Wrap blf.h include in ifdef. From FreeBSD. | ||
1274 | |||
1275 | commit d9b9b43656091cf0ad55c122f08fadb07dad0abd | ||
1276 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1277 | Date: Tue Apr 7 09:10:00 2015 +1000 | ||
1278 | |||
1279 | Fix misspellings of regress CONFOPTS env variables. | ||
1280 | |||
1281 | Patch from Bryan Drewery. | ||
1282 | |||
1283 | commit 3f4ea3c9ab1d32d43c9222c4351f58ca11144156 | ||
1284 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1285 | Date: Fri Apr 3 22:17:27 2015 +0000 | ||
1286 | |||
1287 | upstream commit | ||
1288 | |||
1289 | correct return value in pubkey parsing, spotted by Ben Hawkes | ||
1290 | ok markus@ | ||
1291 | |||
1292 | commit 7da2be0cb9601ed25460c83aa4d44052b967ba0f | ||
1293 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1294 | Date: Tue Mar 31 22:59:01 2015 +0000 | ||
1295 | |||
1296 | upstream commit | ||
1297 | |||
1298 | adapt to recent hostfile.c change: when parsing | ||
1299 | known_hosts without fully parsing the keys therein, hostkeys_foreach() will | ||
1300 | now correctly identify KEY_RSA1 keys; ok markus@ miod@ | ||
1301 | |||
1302 | commit 9e1777a0d1c706714b055811c12ab8cc21033e4a | ||
1303 | Author: markus@openbsd.org <markus@openbsd.org> | ||
1304 | Date: Tue Mar 24 20:19:15 2015 +0000 | ||
1305 | |||
1306 | upstream commit | ||
1307 | |||
1308 | use ${SSH} for -Q instead of installed ssh | ||
1309 | |||
1310 | commit ce1b358ea414a2cc88e4430cd5a2ea7fecd9de57 | ||
1311 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1312 | Date: Mon Mar 16 22:46:14 2015 +0000 | ||
1313 | |||
1314 | upstream commit | ||
1315 | |||
1316 | make CLEANFILES clean up more of the tests' droppings | ||
1317 | |||
1318 | commit 398f9ef192d820b67beba01ec234d66faca65775 | ||
1319 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1320 | Date: Tue Mar 31 22:57:06 2015 +0000 | ||
1321 | |||
1322 | upstream commit | ||
1323 | |||
1324 | downgrade error() for known_hosts parse errors to debug() | ||
1325 | to quiet warnings from ssh1 keys present when compiled !ssh1. | ||
1326 | |||
1327 | also identify ssh1 keys when scanning, even when compiled !ssh1 | ||
1328 | |||
1329 | ok markus@ miod@ | ||
1330 | |||
1331 | commit 9a47ab80030a31f2d122b8fd95bd48c408b9fcd9 | ||
1332 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1333 | Date: Tue Mar 31 22:55:50 2015 +0000 | ||
1334 | |||
1335 | upstream commit | ||
1336 | |||
1337 | fd leak for !ssh1 case; found by unittests; ok markus@ | ||
1338 | |||
1339 | commit c9a0805a6280681901c270755a7cd630d7c5280e | ||
1340 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1341 | Date: Tue Mar 31 22:55:24 2015 +0000 | ||
1342 | |||
1343 | upstream commit | ||
1344 | |||
1345 | don't fatal when a !ssh1 sshd is reexeced from a w/ssh1 | ||
1346 | listener; reported by miod@; ok miod@ markus@ | ||
1347 | |||
1348 | commit 704d8c88988cae38fb755a6243b119731d223222 | ||
1349 | Author: tobias@openbsd.org <tobias@openbsd.org> | ||
1350 | Date: Tue Mar 31 11:06:49 2015 +0000 | ||
1351 | |||
1352 | upstream commit | ||
1353 | |||
1354 | Comments are only supported for RSA1 keys. If a user | ||
1355 | tried to add one and entered his passphrase, explicitly clear it before exit. | ||
1356 | This is done in all other error paths, too. | ||
1357 | |||
1358 | ok djm | ||
1359 | |||
1360 | commit 78de1673c05ea2c33e0d4a4b64ecb5186b6ea2e9 | ||
1361 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
1362 | Date: Mon Mar 30 18:28:37 2015 +0000 | ||
1363 | |||
1364 | upstream commit | ||
1365 | |||
1366 | ssh-askpass(1) is the default, overridden by SSH_ASKPASS; | ||
1367 | diff originally from jiri b; | ||
1368 | |||
1369 | commit 26e0bcf766fadb4a44fb6199386fb1dcab65ad00 | ||
1370 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1371 | Date: Mon Mar 30 00:00:29 2015 +0000 | ||
1372 | |||
1373 | upstream commit | ||
1374 | |||
1375 | fix uninitialised memory read when parsing a config file | ||
1376 | consisting of a single nul byte. Found by hanno AT hboeck.de using AFL; ok | ||
1377 | dtucker | ||
1378 | |||
1379 | commit fecede00a76fbb33a349f5121c0b2f9fbc04a777 | ||
1380 | Author: markus@openbsd.org <markus@openbsd.org> | ||
1381 | Date: Thu Mar 26 19:32:19 2015 +0000 | ||
1382 | |||
1383 | upstream commit | ||
1384 | |||
1385 | sigp and lenp are not optional in ssh_agent_sign(); ok | ||
1386 | djm@ | ||
1387 | |||
1388 | commit 1b0ef3813244c78669e6d4d54c624f600945327d | ||
1389 | Author: naddy@openbsd.org <naddy@openbsd.org> | ||
1390 | Date: Thu Mar 26 12:32:38 2015 +0000 | ||
1391 | |||
1392 | upstream commit | ||
1393 | |||
1394 | don't try to load .ssh/identity by default if SSH1 is | ||
1395 | disabled; ok markus@ | ||
1396 | |||
1397 | commit f9b78852379b74a2d14e6fc94fe52af30b7e9c31 | ||
1398 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1399 | Date: Thu Mar 26 07:00:04 2015 +0000 | ||
1400 | |||
1401 | upstream commit | ||
1402 | |||
1403 | ban all-zero curve25519 keys as recommended by latest | ||
1404 | CFRG curves draft; ok markus | ||
1405 | |||
1406 | commit b8afbe2c1aaf573565e4da775261dfafc8b1ba9c | ||
1407 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1408 | Date: Thu Mar 26 06:59:28 2015 +0000 | ||
1409 | |||
1410 | upstream commit | ||
1411 | |||
1412 | relax bits needed check to allow | ||
1413 | diffie-hellman-group1-sha1 key exchange to complete for chacha20-poly1305 was | ||
1414 | selected as symmetric cipher; ok markus | ||
1415 | |||
1416 | commit 47842f71e31da130555353c1d57a1e5a8937f1c0 | ||
1417 | Author: markus@openbsd.org <markus@openbsd.org> | ||
1418 | Date: Wed Mar 25 19:29:58 2015 +0000 | ||
1419 | |||
1420 | upstream commit | ||
1421 | |||
1422 | ignore v1 errors on ssh-add -D; only try v2 keys on | ||
1423 | -l/-L (unless WITH_SSH1) ok djm@ | ||
1424 | |||
1425 | commit 5f57e77f91bf2230c09eca96eb5ecec39e5f2da6 | ||
1426 | Author: markus@openbsd.org <markus@openbsd.org> | ||
1427 | Date: Wed Mar 25 19:21:48 2015 +0000 | ||
1428 | |||
1429 | upstream commit | ||
1430 | |||
1431 | unbreak ssh_agent_sign (lenp vs *lenp) | ||
1432 | |||
1433 | commit 4daeb67181054f2a377677fac919ee8f9ed3490e | ||
1434 | Author: markus@openbsd.org <markus@openbsd.org> | ||
1435 | Date: Tue Mar 24 20:10:08 2015 +0000 | ||
1436 | |||
1437 | upstream commit | ||
1438 | |||
1439 | don't leak 'setp' on error; noted by Nicholas Lemonias; | ||
1440 | ok djm@ | ||
1441 | |||
1442 | commit 7d4f96f9de2a18af0d9fa75ea89a4990de0344f5 | ||
1443 | Author: markus@openbsd.org <markus@openbsd.org> | ||
1444 | Date: Tue Mar 24 20:09:11 2015 +0000 | ||
1445 | |||
1446 | upstream commit | ||
1447 | |||
1448 | consistent check for NULL as noted by Nicholas | ||
1449 | Lemonias; ok djm@ | ||
1450 | |||
1451 | commit df100be51354e447d9345cf1ec22e6013c0eed50 | ||
1452 | Author: markus@openbsd.org <markus@openbsd.org> | ||
1453 | Date: Tue Mar 24 20:03:44 2015 +0000 | ||
1454 | |||
1455 | upstream commit | ||
1456 | |||
1457 | correct fmt-string for size_t as noted by Nicholas | ||
1458 | Lemonias; ok djm@ | ||
1459 | |||
1460 | commit a22b9ef21285e81775732436f7c84a27bd3f71e0 | ||
1461 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1462 | Date: Tue Mar 24 09:17:21 2015 +0000 | ||
1463 | |||
1464 | upstream commit | ||
1465 | |||
1466 | promote chacha20-poly1305@openssh.com to be the default | ||
1467 | cipher; ok markus | ||
1468 | |||
1469 | commit 2aa9da1a3b360cf7b13e96fe1521534b91501fb5 | ||
1470 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1471 | Date: Tue Mar 24 01:29:19 2015 +0000 | ||
1472 | |||
1473 | upstream commit | ||
1474 | |||
1475 | Compile-time disable SSH protocol 1. You can turn it | ||
1476 | back on using the Makefile.inc knob if you need it to talk to ancient | ||
1477 | devices. | ||
1478 | |||
1479 | commit 53097b2022154edf96b4e8526af5666f979503f7 | ||
1480 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1481 | Date: Tue Mar 24 01:11:12 2015 +0000 | ||
1482 | |||
1483 | upstream commit | ||
1484 | |||
1485 | fix double-negative error message "ssh1 is not | ||
1486 | unsupported" | ||
1487 | |||
1488 | commit 5c27e3b6ec2db711dfcd40e6359c0bcdd0b62ea9 | ||
1489 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1490 | Date: Mon Mar 23 06:06:38 2015 +0000 | ||
1491 | |||
1492 | upstream commit | ||
1493 | |||
1494 | for ssh-keygen -A, don't try (and fail) to generate ssh | ||
1495 | v.1 keys when compiled without SSH1 support RSA/DSA/ECDSA keys when compiled | ||
1496 | without OpenSSL based on patch by Mike Frysinger; bz#2369 | ||
1497 | |||
1498 | commit 725fd22a8c41db7de73a638539a5157b7e4424ae | ||
1499 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1500 | Date: Wed Mar 18 01:44:21 2015 +0000 | ||
1501 | |||
1502 | upstream commit | ||
1503 | |||
1504 | KRL support doesn't need OpenSSL anymore, remove #ifdefs | ||
1505 | from around call | ||
1506 | |||
1507 | commit b07011c18e0b2e172c5fd09d21fb159a0bf5fcc7 | ||
1508 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1509 | Date: Mon Mar 16 11:09:52 2015 +0000 | ||
1510 | |||
1511 | upstream commit | ||
1512 | |||
1513 | #if 0 some more arrays used only for decrypting (we don't | ||
1514 | use since we only need encrypt for AES-CTR) | ||
1515 | |||
1516 | commit 1cb3016635898d287e9d58b50c430995652d5358 | ||
1517 | Author: jsg@openbsd.org <jsg@openbsd.org> | ||
1518 | Date: Wed Mar 11 00:48:39 2015 +0000 | ||
1519 | |||
1520 | upstream commit | ||
1521 | |||
1522 | add back the changes from rev 1.206, djm reverted this by | ||
1523 | mistake in rev 1.207 | ||
1524 | |||
1525 | commit 4d24b3b6a4a6383e05e7da26d183b79fa8663697 | ||
1526 | Author: Damien Miller <djm@mindrot.org> | ||
1527 | Date: Fri Mar 20 09:11:59 2015 +1100 | ||
1528 | |||
1529 | remove error() accidentally inserted for debugging | ||
1530 | |||
1531 | pointed out by Christian Hesse | ||
1532 | |||
1533 | commit 9f82e5a9042f2d872e98f48a876fcab3e25dd9bb | ||
1534 | Author: Tim Rice <tim@multitalents.net> | ||
1535 | Date: Mon Mar 16 22:49:20 2015 -0700 | ||
1536 | |||
1537 | portability fix: Solaris systems may not have a grep that understands -q | ||
1538 | |||
1539 | commit 8ef691f7d9ef500257a549d0906d78187490668f | ||
1540 | Author: Damien Miller <djm@google.com> | ||
1541 | Date: Wed Mar 11 10:35:26 2015 +1100 | ||
1542 | |||
1543 | fix compile with clang | ||
1544 | |||
1545 | commit 4df590cf8dc799e8986268d62019b487a8ed63ad | ||
1546 | Author: Damien Miller <djm@google.com> | ||
1547 | Date: Wed Mar 11 10:02:39 2015 +1100 | ||
1548 | |||
1549 | make unit tests work for !OPENSSH_HAS_ECC | ||
1550 | |||
1551 | commit 307bb40277ca2c32e97e61d70d1ed74b571fd6ba | ||
1552 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1553 | Date: Sat Mar 7 04:41:48 2015 +0000 | ||
1554 | |||
1555 | upstream commit | ||
1556 | |||
1557 | unbreak for w/SSH1 (default) case; ok markus@ deraadt@ | ||
1558 | |||
1559 | commit b44ee0c998fb4c5f3c3281f2398af5ce42840b6f | ||
1560 | Author: Damien Miller <djm@mindrot.org> | ||
1561 | Date: Thu Mar 5 18:39:20 2015 -0800 | ||
1562 | |||
1563 | unbreak hostkeys test for w/ SSH1 case | ||
1564 | |||
1565 | commit 55e5bdeb519cb60cc18b7ba0545be581fb8598b4 | ||
1566 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1567 | Date: Fri Mar 6 01:40:56 2015 +0000 | ||
1568 | |||
1569 | upstream commit | ||
1570 | |||
1571 | fix sshkey_certify() return value for unsupported key types; | ||
1572 | ok markus@ deraadt@ | ||
1573 | |||
1574 | commit be8f658e550a434eac04256bfbc4289457a24e99 | ||
1575 | Author: Damien Miller <djm@mindrot.org> | ||
1576 | Date: Wed Mar 4 15:38:03 2015 -0800 | ||
1577 | |||
1578 | update version numbers to match version.h | ||
1579 | |||
1580 | commit ac5e8acefa253eb5e5ba186e34236c0e8007afdc | ||
1581 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1582 | Date: Wed Mar 4 23:22:35 2015 +0000 | ||
1583 | |||
1584 | upstream commit | ||
1585 | |||
1586 | make these work with !SSH1; ok markus@ deraadt@ | ||
1587 | |||
1588 | commit 2f04af92f036b0c87a23efb259c37da98cd81fe6 | ||
1589 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1590 | Date: Wed Mar 4 21:12:59 2015 +0000 | ||
1591 | |||
1592 | upstream commit | ||
1593 | |||
1594 | make ssh-add -D work with !SSH1 agent | ||
1595 | |||
1596 | commit a05adf95d2af6abb2b7826ddaa7a0ec0cdc1726b | ||
1597 | Author: Damien Miller <djm@mindrot.org> | ||
1598 | Date: Wed Mar 4 00:55:48 2015 -0800 | ||
1599 | |||
1600 | netcat needs poll.h portability goop | ||
1601 | |||
1602 | commit dad2b1892b4c1b7e58df483a8c5b983c4454e099 | ||
1603 | Author: markus@openbsd.org <markus@openbsd.org> | ||
1604 | Date: Tue Mar 3 22:35:19 2015 +0000 | ||
1605 | |||
1606 | upstream commit | ||
1607 | |||
1608 | make it possible to run tests w/o ssh1 support; ok djm@ | ||
1609 | |||
1610 | commit d48a22601bdd3eec054794c535f4ae8d8ae4c6e2 | ||
1611 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1612 | Date: Wed Mar 4 18:53:53 2015 +0000 | ||
1613 | |||
1614 | upstream commit | ||
1615 | |||
1616 | crank; ok markus, deraadt | ||
1617 | |||
1618 | commit bbffb23daa0b002dd9f296e396a9ab8a5866b339 | ||
1619 | Author: Damien Miller <djm@mindrot.org> | ||
1620 | Date: Tue Mar 3 13:50:27 2015 -0800 | ||
1621 | |||
1622 | more --without-ssh1 fixes | ||
1623 | |||
1624 | commit 6c2039286f503e2012a58a1d109e389016e7a99b | ||
1625 | Author: Damien Miller <djm@mindrot.org> | ||
1626 | Date: Tue Mar 3 13:48:48 2015 -0800 | ||
1627 | |||
1628 | fix merge both that broke --without-ssh1 compile | ||
1629 | |||
1630 | commit 111dfb225478a76f89ecbcd31e96eaf1311b59d3 | ||
1631 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1632 | Date: Tue Mar 3 21:21:13 2015 +0000 | ||
1633 | |||
1634 | upstream commit | ||
1635 | |||
1636 | add SSH1 Makefile knob to make it easier to build without | ||
1637 | SSH1 support; ok markus@ | ||
1638 | |||
1639 | commit 3f7f5e6c5d2aa3f6710289c1a30119e534e56c5c | ||
1640 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1641 | Date: Tue Mar 3 20:42:49 2015 +0000 | ||
1642 | |||
1643 | upstream commit | ||
1644 | |||
1645 | expand __unused to full __attribute__ for better portability | ||
1646 | |||
1647 | commit 2fab9b0f8720baf990c931e3f68babb0bf9949c6 | ||
1648 | Author: Damien Miller <djm@mindrot.org> | ||
1649 | Date: Wed Mar 4 07:41:27 2015 +1100 | ||
1650 | |||
1651 | avoid warning | ||
1652 | |||
1653 | commit d1bc844322461f882b4fd2277ba9a8d4966573d2 | ||
1654 | Author: Damien Miller <djm@mindrot.org> | ||
1655 | Date: Wed Mar 4 06:31:45 2015 +1100 | ||
1656 | |||
1657 | Revert "define __unused to nothing if not already defined" | ||
1658 | |||
1659 | This reverts commit 1598419e38afbaa8aa5df8dd6b0af98301e2c908. | ||
1660 | |||
1661 | Some system headers have objects named __unused | ||
1662 | |||
1663 | commit 00797e86b2d98334d1bb808f65fa1fd47f328ff1 | ||
1664 | Author: Damien Miller <djm@mindrot.org> | ||
1665 | Date: Wed Mar 4 05:02:45 2015 +1100 | ||
1666 | |||
1667 | check for crypt and DES_crypt in openssl block | ||
1668 | |||
1669 | fixes builds on systems that use DES_crypt; based on patch | ||
1670 | from Roumen Petrov | ||
1671 | |||
1672 | commit 1598419e38afbaa8aa5df8dd6b0af98301e2c908 | ||
1673 | Author: Damien Miller <djm@mindrot.org> | ||
1674 | Date: Wed Mar 4 04:59:13 2015 +1100 | ||
1675 | |||
1676 | define __unused to nothing if not already defined | ||
1677 | |||
1678 | fixes builds on BSD/OS | ||
1679 | |||
1680 | commit d608a51daad4f14ad6ab43d7cf74ef4801cc3fe9 | ||
1681 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1682 | Date: Tue Mar 3 17:53:40 2015 +0000 | ||
1683 | |||
1684 | upstream commit | ||
1685 | |||
1686 | reorder logic for better portability; patch from Roumen | ||
1687 | Petrov | ||
1688 | |||
1689 | commit 68d2dfc464fbcdf8d6387884260f9801f4352393 | ||
1690 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1691 | Date: Tue Mar 3 06:48:58 2015 +0000 | ||
1692 | |||
1693 | upstream commit | ||
1694 | |||
1695 | Allow "ssh -Q protocol-version" to list supported SSH | ||
1696 | protocol versions. Useful for detecting builds without SSH v.1 support; idea | ||
1697 | and ok markus@ | ||
1698 | |||
1699 | commit 39e2f1229562e1195169905607bc12290d21f021 | ||
1700 | Author: millert@openbsd.org <millert@openbsd.org> | ||
1701 | Date: Sun Mar 1 15:44:40 2015 +0000 | ||
1702 | |||
1703 | upstream commit | ||
1704 | |||
1705 | Make sure we only call getnameinfo() for AF_INET or AF_INET6 | ||
1706 | sockets. getpeername() of a Unix domain socket may return without error on | ||
1707 | some systems without actually setting ss_family so getnameinfo() was getting | ||
1708 | called with ss_family set to AF_UNSPEC. OK djm@ | ||
1709 | |||
1710 | commit e47536ba9692d271b8ad89078abdecf0a1c11707 | ||
1711 | Author: Damien Miller <djm@mindrot.org> | ||
1712 | Date: Sat Feb 28 08:20:11 2015 -0800 | ||
1713 | |||
1714 | portability fixes for regress/netcat.c | ||
1715 | |||
1716 | Mostly avoiding "err(1, NULL)" | ||
1717 | |||
1718 | commit 02973ad5f6f49d8420e50a392331432b0396c100 | ||
1719 | Author: Damien Miller <djm@mindrot.org> | ||
1720 | Date: Sat Feb 28 08:05:27 2015 -0800 | ||
1721 | |||
1722 | twiddle another test for portability | ||
1723 | |||
1724 | from Tom G. Christensen | ||
1725 | |||
1726 | commit f7f3116abf2a6e2f309ab096b08c58d19613e5d0 | ||
1727 | Author: Damien Miller <djm@mindrot.org> | ||
1728 | Date: Fri Feb 27 15:52:49 2015 -0800 | ||
1729 | |||
1730 | twiddle test for portability | ||
1731 | |||
1732 | commit 1ad3a77cc9d5568f5437ff99d377aa7a41859b83 | ||
1733 | Author: Damien Miller <djm@mindrot.org> | ||
1734 | Date: Thu Feb 26 20:33:22 2015 -0800 | ||
1735 | |||
1736 | make regress/netcat.c fd passing (more) portable | ||
1737 | |||
1738 | commit 9e1cfca7e1fe9cf8edb634fc894e43993e4da1ea | ||
1739 | Author: Damien Miller <djm@mindrot.org> | ||
1740 | Date: Thu Feb 26 20:32:58 2015 -0800 | ||
1741 | |||
1742 | create OBJ/valgrind-out before running unittests | ||
1743 | |||
1744 | commit bd58853102cee739f0e115e6d4b5334332ab1442 | ||
1745 | Author: Damien Miller <djm@mindrot.org> | ||
1746 | Date: Wed Feb 25 16:58:22 2015 -0800 | ||
1747 | |||
1748 | valgrind support | ||
1749 | |||
1750 | commit f43d17269194761eded9e89f17456332f4c83824 | ||
1751 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1752 | Date: Thu Feb 26 20:45:47 2015 +0000 | ||
1753 | |||
1754 | upstream commit | ||
1755 | |||
1756 | don't printf NULL key comments; reported by Tom Christensen | ||
1757 | |||
1758 | commit 6e6458b476ec854db33e3e68ebf4f489d0ab3df8 | ||
1759 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1760 | Date: Wed Feb 25 23:05:47 2015 +0000 | ||
1761 | |||
1762 | upstream commit | ||
1763 | |||
1764 | zero cmsgbuf before use; we initialise the bits we use | ||
1765 | but valgrind still spams warning on it | ||
1766 | |||
1767 | commit a63cfa26864b93ab6afefad0b630e5358ed8edfa | ||
1768 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1769 | Date: Wed Feb 25 19:54:02 2015 +0000 | ||
1770 | |||
1771 | upstream commit | ||
1772 | |||
1773 | fix small memory leak when UpdateHostkeys=no | ||
1774 | |||
1775 | commit e6b950341dd75baa8526f1862bca39e52f5b879b | ||
1776 | Author: Tim Rice <tim@multitalents.net> | ||
1777 | Date: Wed Feb 25 09:56:48 2015 -0800 | ||
1778 | |||
1779 | Revert "Work around finicky USL linker so netcat will build." | ||
1780 | |||
1781 | This reverts commit d1db656021d0cd8c001a6692f772f1de29b67c8b. | ||
1782 | |||
1783 | No longer needed with commit 678e473e2af2e4802f24dd913985864d9ead7fb3 | ||
1784 | |||
1785 | commit 6f621603f9cff2a5d6016a404c96cb2f8ac2dec0 | ||
1786 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1787 | Date: Wed Feb 25 17:29:38 2015 +0000 | ||
1788 | |||
1789 | upstream commit | ||
1790 | |||
1791 | don't leak validity of user in "too many authentication | ||
1792 | failures" disconnect message; reported by Sebastian Reitenbach | ||
1793 | |||
1794 | commit 6288e3a935494df12519164f52ca5c8c65fc3ca5 | ||
1795 | Author: naddy@openbsd.org <naddy@openbsd.org> | ||
1796 | Date: Tue Feb 24 15:24:05 2015 +0000 | ||
1797 | |||
1798 | upstream commit | ||
1799 | |||
1800 | add -v (show ASCII art) to -l's synopsis; ok djm@ | ||
1801 | |||
1802 | commit 678e473e2af2e4802f24dd913985864d9ead7fb3 | ||
1803 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1804 | Date: Thu Feb 26 04:12:58 2015 +1100 | ||
1805 | |||
1806 | Remove dependency on xmalloc. | ||
1807 | |||
1808 | Remove ssh_get_progname's dependency on xmalloc, which should reduce | ||
1809 | link order problems. ok djm@ | ||
1810 | |||
1811 | commit 5d5ec165c5b614b03678afdad881f10e25832e46 | ||
1812 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1813 | Date: Wed Feb 25 15:32:49 2015 +1100 | ||
1814 | |||
1815 | Restrict ECDSA and ECDH tests. | ||
1816 | |||
1817 | ifdef out some more ECDSA and ECDH tests when built against an OpenSSL | ||
1818 | that does not have eliptic curve functionality. | ||
1819 | |||
1820 | commit 1734e276d99b17e92d4233fac7aef3a3180aaca7 | ||
1821 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1822 | Date: Wed Feb 25 13:40:45 2015 +1100 | ||
1823 | |||
1824 | Move definition of _NSIG. | ||
1825 | |||
1826 | _NSIG is only unsed in one file, so move it there prevent redefinition | ||
1827 | warnings reported by Kevin Brott. | ||
1828 | |||
1829 | commit a47ead7c95cfbeb72721066c4da2312e5b1b9f3d | ||
1830 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1831 | Date: Wed Feb 25 13:17:40 2015 +1100 | ||
1832 | |||
1833 | Add includes.h for compatibility stuff. | ||
1834 | |||
1835 | commit 38806bda6d2e48ad32812b461eebe17672ada771 | ||
1836 | Author: Damien Miller <djm@mindrot.org> | ||
1837 | Date: Tue Feb 24 16:50:06 2015 -0800 | ||
1838 | |||
1839 | include netdb.h to look for MAXHOSTNAMELEN; ok tim | ||
1840 | |||
1841 | commit d1db656021d0cd8c001a6692f772f1de29b67c8b | ||
1842 | Author: Tim Rice <tim@multitalents.net> | ||
1843 | Date: Tue Feb 24 10:42:08 2015 -0800 | ||
1844 | |||
1845 | Work around finicky USL linker so netcat will build. | ||
1846 | |||
1847 | commit cb030ce25f555737e8ba97bdd7883ac43f3ff2a3 | ||
1848 | Author: Damien Miller <djm@mindrot.org> | ||
1849 | Date: Tue Feb 24 09:23:04 2015 -0800 | ||
1850 | |||
1851 | include includes.h to avoid build failure on AIX | ||
1852 | |||
1853 | commit 13af342458f5064144abbb07e5ac9bbd4eb42567 | ||
1854 | Author: Tim Rice <tim@multitalents.net> | ||
1855 | Date: Tue Feb 24 07:56:47 2015 -0800 | ||
1856 | |||
1857 | Original portability patch from djm@ for platforms missing err.h. | ||
1858 | Fix name space clash on Solaris 10. Still more to do for Solaris 10 | ||
1859 | to deal with msghdr structure differences. ok djm@ | ||
1860 | |||
1861 | commit 910209203d0cd60c5083901cbcc0b7b44d9f48d2 | ||
1862 | Author: Tim Rice <tim@multitalents.net> | ||
1863 | Date: Mon Feb 23 22:06:56 2015 -0800 | ||
1864 | |||
1865 | cleaner way fix dispatch.h portion of commit | ||
1866 | a88dd1da119052870bb2654c1a32c51971eade16 | ||
1867 | (some systems have sig_atomic_t in signal.h, some in sys/signal.h) | ||
1868 | Sounds good to me djm@ | ||
1869 | |||
1870 | commit 676c38d7cbe65b76bbfff796861bb6615cc6a596 | ||
1871 | Author: Tim Rice <tim@multitalents.net> | ||
1872 | Date: Mon Feb 23 21:51:33 2015 -0800 | ||
1873 | |||
1874 | portability fix: if we can't dind a better define for HOST_NAME_MAX, use 255 | ||
1875 | |||
1876 | commit 1221b22023dce38cbc90ba77eae4c5d78c77a5e6 | ||
1877 | Author: Tim Rice <tim@multitalents.net> | ||
1878 | Date: Mon Feb 23 21:50:34 2015 -0800 | ||
1879 | |||
1880 | portablity fix: s/__inline__/inline/ | ||
1881 | |||
1882 | commit 4c356308a88d309c796325bb75dce90ca16591d5 | ||
1883 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1884 | Date: Tue Feb 24 13:49:31 2015 +1100 | ||
1885 | |||
1886 | Wrap stdint.h includes in HAVE_STDINT_H. | ||
1887 | |||
1888 | commit c9c88355c6a27a908e7d1e5003a2b35ea99c1614 | ||
1889 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1890 | Date: Tue Feb 24 13:43:57 2015 +1100 | ||
1891 | |||
1892 | Add AI_NUMERICSERV to fake-rfc2553. | ||
1893 | |||
1894 | Our getaddrinfo implementation always returns numeric values already. | ||
1895 | |||
1896 | commit ef342ab1ce6fb9a4b30186c89c309d0ae9d0eeb4 | ||
1897 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1898 | Date: Tue Feb 24 13:39:57 2015 +1100 | ||
1899 | |||
1900 | Include OpenSSL's objects.h before bn.h. | ||
1901 | |||
1902 | Prevents compile errors on some platforms (at least old GCCs and AIX's | ||
1903 | XLC compilers). | ||
1904 | |||
1905 | commit dcc8997d116f615195aa7c9ec019fb36c28c6228 | ||
1906 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1907 | Date: Tue Feb 24 12:30:59 2015 +1100 | ||
1908 | |||
1909 | Convert two macros into functions. | ||
1910 | |||
1911 | Convert packet_send_debug and packet_disconnect from macros to | ||
1912 | functions. Some older GCCs (2.7.x, 2.95.x) see to have problems with | ||
1913 | variadic macros with only one argument so we convert these two into | ||
1914 | functions. ok djm@ | ||
1915 | |||
1916 | commit 2285c30d51b7e2052c6526445abe7e7cc7e170a1 | ||
1917 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1918 | Date: Mon Feb 23 22:21:21 2015 +0000 | ||
1919 | |||
1920 | upstream commit | ||
1921 | |||
1922 | further silence spurious error message even when -v is | ||
1923 | specified (e.g. to get visual host keys); reported by naddy@ | ||
1924 | |||
1925 | commit 9af21979c00652029e160295e988dea40758ece2 | ||
1926 | Author: Damien Miller <djm@mindrot.org> | ||
1927 | Date: Tue Feb 24 09:04:32 2015 +1100 | ||
1928 | |||
1929 | don't include stdint.h unless HAVE_STDINT_H set | ||
1930 | |||
1931 | commit 62f678dd51660d6f8aee1da33d3222c5de10a89e | ||
1932 | Author: Damien Miller <djm@mindrot.org> | ||
1933 | Date: Tue Feb 24 09:02:54 2015 +1100 | ||
1934 | |||
1935 | nother sys/queue.h -> sys-queue.h fix | ||
1936 | |||
1937 | spotted by Tom Christensen | ||
1938 | |||
1939 | commit b3c19151cba2c0ed01b27f55de0d723ad07ca98f | ||
1940 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1941 | Date: Mon Feb 23 20:32:15 2015 +0000 | ||
1942 | |||
1943 | upstream commit | ||
1944 | |||
1945 | fix a race condition by using a mux socket rather than an | ||
1946 | ineffectual wait statement | ||
1947 | |||
1948 | commit a88dd1da119052870bb2654c1a32c51971eade16 | ||
1949 | Author: Damien Miller <djm@mindrot.org> | ||
1950 | Date: Tue Feb 24 06:30:29 2015 +1100 | ||
1951 | |||
1952 | various include fixes for portable | ||
1953 | |||
1954 | commit 5248429b5ec524d0a65507cff0cdd6e0cb99effd | ||
1955 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1956 | Date: Mon Feb 23 16:55:51 2015 +0000 | ||
1957 | |||
1958 | upstream commit | ||
1959 | |||
1960 | add an XXX to remind me to improve sshkey_load_public | ||
1961 | |||
1962 | commit e94e4b07ef2eaead38b085a60535df9981cdbcdb | ||
1963 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1964 | Date: Mon Feb 23 16:55:31 2015 +0000 | ||
1965 | |||
1966 | upstream commit | ||
1967 | |||
1968 | silence a spurious error message when listing | ||
1969 | fingerprints for known_hosts; bz#2342 | ||
1970 | |||
1971 | commit f2293a65392b54ac721f66bc0b44462e8d1d81f8 | ||
1972 | Author: djm@openbsd.org <djm@openbsd.org> | ||
1973 | Date: Mon Feb 23 16:33:25 2015 +0000 | ||
1974 | |||
1975 | upstream commit | ||
1976 | |||
1977 | fix setting/clearing of TTY raw mode around | ||
1978 | UpdateHostKeys=ask confirmation question; reported by Herb Goldman | ||
1979 | |||
1980 | commit f2004cd1adf34492eae0a44b1ef84e0e31b06088 | ||
1981 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1982 | Date: Mon Feb 23 05:04:21 2015 +1100 | ||
1983 | |||
1984 | Repair for non-ECC OpenSSL. | ||
1985 | |||
1986 | Ifdef out the ECC parts when building with an OpenSSL that doesn't have | ||
1987 | it. | ||
1988 | |||
1989 | commit 37f9220db8d1a52c75894c3de1e5f2ae5bd71b6f | ||
1990 | Author: Darren Tucker <dtucker@zip.com.au> | ||
1991 | Date: Mon Feb 23 03:07:24 2015 +1100 | ||
1992 | |||
1993 | Wrap stdint.h includes in ifdefs. | ||
1994 | |||
1995 | commit f81f1bbc5b892c8614ea740b1f92735652eb43f0 | ||
1996 | Author: Tim Rice <tim@multitalents.net> | ||
1997 | Date: Sat Feb 21 18:12:10 2015 -0800 | ||
1998 | |||
1999 | out of tree build fix | ||
2000 | |||
2001 | commit 2e13a1e4d22f3b503c3bfc878562cc7386a1d1ae | ||
2002 | Author: Tim Rice <tim@multitalents.net> | ||
2003 | Date: Sat Feb 21 18:08:51 2015 -0800 | ||
2004 | |||
2005 | mkdir kex unit test directory so testing out of tree builds works | ||
2006 | |||
2007 | commit 1797f49b1ba31e8700231cd6b1d512d80bb50d2c | ||
2008 | Author: halex@openbsd.org <halex@openbsd.org> | ||
2009 | Date: Sat Feb 21 21:46:57 2015 +0000 | ||
2010 | |||
2011 | upstream commit | ||
2012 | |||
2013 | make "ssh-add -d" properly remove a corresponding | ||
2014 | certificate, and also not whine and fail if there is none | ||
2015 | |||
2016 | ok djm@ | ||
2017 | |||
2018 | commit 7faaa32da83a609059d95dbfcb0649fdb04caaf6 | ||
2019 | Author: Damien Miller <djm@mindrot.org> | ||
2020 | Date: Sun Feb 22 07:57:27 2015 +1100 | ||
2021 | |||
2022 | mkdir hostkey and bitmap unit test directories | ||
2023 | |||
2024 | commit bd49da2ef197efac5e38f5399263a8b47990c538 | ||
2025 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2026 | Date: Fri Feb 20 23:46:01 2015 +0000 | ||
2027 | |||
2028 | upstream commit | ||
2029 | |||
2030 | sort options useable under Match case-insensitively; prodded | ||
2031 | jmc@ | ||
2032 | |||
2033 | commit 1a779a0dd6cd8b4a1a40ea33b5415ab8408128ac | ||
2034 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2035 | Date: Sat Feb 21 20:51:02 2015 +0000 | ||
2036 | |||
2037 | upstream commit | ||
2038 | |||
2039 | correct paths to configuration files being written/updated; | ||
2040 | they live in $OBJ not cwd; some by Roumen Petrov | ||
2041 | |||
2042 | commit 28ba006c1acddff992ae946d0bc0b500b531ba6b | ||
2043 | Author: Darren Tucker <dtucker@zip.com.au> | ||
2044 | Date: Sat Feb 21 15:41:07 2015 +1100 | ||
2045 | |||
2046 | More correct checking of HAVE_DECL_AI_NUMERICSERV. | ||
2047 | |||
2048 | commit e50e8c97a9cecae1f28febccaa6ca5ab3bc10f54 | ||
2049 | Author: Darren Tucker <dtucker@zip.com.au> | ||
2050 | Date: Sat Feb 21 15:10:33 2015 +1100 | ||
2051 | |||
2052 | Add null declaration of AI_NUMERICINFO. | ||
2053 | |||
2054 | Some platforms (older FreeBSD and DragonFly versions) do have | ||
2055 | getaddrinfo() but do not have AI_NUMERICINFO. so define it to zero | ||
2056 | in those cases. | ||
2057 | |||
2058 | commit 18a208d6a460d707a45916db63a571e805f5db46 | ||
2059 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2060 | Date: Fri Feb 20 22:40:32 2015 +0000 | ||
2061 | |||
2062 | upstream commit | ||
2063 | |||
2064 | more options that are available under Match; bz#2353 reported | ||
2065 | by calestyo AT scientia.net | ||
2066 | |||
2067 | commit 44732de06884238049f285f1455b2181baa7dc82 | ||
2068 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2069 | Date: Fri Feb 20 22:17:21 2015 +0000 | ||
2070 | |||
2071 | upstream commit | ||
2072 | |||
2073 | UpdateHostKeys fixes: | ||
2074 | |||
2075 | I accidentally changed the format of the hostkeys@openssh.com messages | ||
2076 | last week without changing the extension name, and this has been causing | ||
2077 | connection failures for people who are running -current. First reported | ||
2078 | by sthen@ | ||
2079 | |||
2080 | s/hostkeys@openssh.com/hostkeys-00@openssh.com/ | ||
2081 | Change the name of the proof message too, and reorder it a little. | ||
2082 | |||
2083 | Also, UpdateHostKeys=ask is incompatible with ControlPersist (no TTY | ||
2084 | available to read the response) so disable UpdateHostKeys if it is in | ||
2085 | ask mode and ControlPersist is active (and document this) | ||
2086 | |||
2087 | commit 13a39414d25646f93e6d355521d832a03aaaffe2 | ||
2088 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2089 | Date: Tue Feb 17 00:14:05 2015 +0000 | ||
2090 | |||
2091 | upstream commit | ||
2092 | |||
2093 | Regression: I broke logging of public key fingerprints in | ||
2094 | 1.46. Pointed out by Pontus Lundkvist | ||
2095 | |||
2096 | commit 773dda25e828c4c9a52f7bdce6e1e5924157beab | ||
2097 | Author: Damien Miller <djm@mindrot.org> | ||
2098 | Date: Fri Jan 30 23:10:17 2015 +1100 | ||
2099 | |||
2100 | repair --without-openssl; broken in refactor | ||
2101 | |||
2102 | commit e89c780886b23600de1e1c8d74aabd1ff61f43f0 | ||
2103 | Author: Damien Miller <djm@google.com> | ||
2104 | Date: Tue Feb 17 10:04:55 2015 +1100 | ||
2105 | |||
2106 | hook up hostkeys unittest to portable Makefiles | ||
2107 | |||
2108 | commit 0abf41f99aa16ff09b263bead242d6cb2dbbcf99 | ||
2109 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2110 | Date: Mon Feb 16 22:21:03 2015 +0000 | ||
2111 | |||
2112 | upstream commit | ||
2113 | |||
2114 | enable hostkeys unit tests | ||
2115 | |||
2116 | commit 68a5d647ccf0fb6782b2f749433a1eee5bc9044b | ||
2117 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2118 | Date: Mon Feb 16 22:20:50 2015 +0000 | ||
2119 | |||
2120 | upstream commit | ||
2121 | |||
2122 | check string/memory compare arguments aren't NULL | ||
2123 | |||
2124 | commit ef575ef20d09f20722e26b45dab80b3620469687 | ||
2125 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2126 | Date: Mon Feb 16 22:18:34 2015 +0000 | ||
2127 | |||
2128 | upstream commit | ||
2129 | |||
2130 | unit tests for hostfile.c code, just hostkeys_foreach so | ||
2131 | far | ||
2132 | |||
2133 | commit 8ea3365e6aa2759ccf5c76eaea62cbc8a280b0e7 | ||
2134 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2135 | Date: Sat Feb 14 12:43:16 2015 +0000 | ||
2136 | |||
2137 | upstream commit | ||
2138 | |||
2139 | test server rekey limit | ||
2140 | |||
2141 | commit ce63c4b063c39b2b22d4ada449c9e3fbde788cb3 | ||
2142 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2143 | Date: Mon Feb 16 22:30:03 2015 +0000 | ||
2144 | |||
2145 | upstream commit | ||
2146 | |||
2147 | partial backout of: | ||
2148 | |||
2149 | revision 1.441 | ||
2150 | date: 2015/01/31 20:30:05; author: djm; state: Exp; lines: +17 -10; commitid | ||
2151 | : x8klYPZMJSrVlt3O; | ||
2152 | Let sshd load public host keys even when private keys are missing. | ||
2153 | Allows sshd to advertise additional keys for future key rotation. | ||
2154 | Also log fingerprint of hostkeys loaded; ok markus@ | ||
2155 | |||
2156 | hostkey updates now require access to the private key, so we can't | ||
2157 | load public keys only. The improved log messages (fingerprints of keys | ||
2158 | loaded) are kept. | ||
2159 | |||
2160 | commit 523463a3a2a9bfc6cfc5afa01bae9147f76a37cc | ||
2161 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2162 | Date: Mon Feb 16 22:13:32 2015 +0000 | ||
2163 | |||
2164 | upstream commit | ||
2165 | |||
2166 | Revise hostkeys@openssh.com hostkey learning extension. | ||
2167 | |||
2168 | The client will not ask the server to prove ownership of the private | ||
2169 | halves of any hitherto-unseen hostkeys it offers to the client. | ||
2170 | |||
2171 | Allow UpdateHostKeys option to take an 'ask' argument to let the | ||
2172 | user manually review keys offered. | ||
2173 | |||
2174 | ok markus@ | ||
2175 | |||
2176 | commit 6c5c949782d86a6e7d58006599c7685bfcd01685 | ||
2177 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2178 | Date: Mon Feb 16 22:08:57 2015 +0000 | ||
2179 | |||
2180 | upstream commit | ||
2181 | |||
2182 | Refactor hostkeys_foreach() and dependent code Deal with | ||
2183 | IP addresses (i.e. CheckHostIP) Don't clobber known_hosts when nothing | ||
2184 | changed ok markus@ as part of larger commit | ||
2185 | |||
2186 | commit 51b082ccbe633dc970df1d1f4c9c0497115fe721 | ||
2187 | Author: miod@openbsd.org <miod@openbsd.org> | ||
2188 | Date: Mon Feb 16 18:26:26 2015 +0000 | ||
2189 | |||
2190 | upstream commit | ||
2191 | |||
2192 | Declare ge25519_base as extern, to prevent it from | ||
2193 | becoming a common. Gets us rid of ``lignment 4 of symbol | ||
2194 | `crypto_sign_ed25519_ref_ge25519_base' in mod_ge25519.o is smaller than 16 in | ||
2195 | mod_ed25519.o'' warnings at link time. | ||
2196 | |||
2197 | commit 02db468bf7e3281a8e3c058ced571b38b6407c34 | ||
2198 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2199 | Date: Fri Feb 13 18:57:00 2015 +0000 | ||
2200 | |||
2201 | upstream commit | ||
2202 | |||
2203 | make rekey_limit for sshd w/privsep work; ok djm@ | ||
2204 | dtucker@ | ||
2205 | |||
2206 | commit 8ec67d505bd23c8bf9e17b7a364b563a07a58ec8 | ||
2207 | Author: dtucker@openbsd.org <dtucker@openbsd.org> | ||
2208 | Date: Thu Feb 12 20:34:19 2015 +0000 | ||
2209 | |||
2210 | upstream commit | ||
2211 | |||
2212 | Prevent sshd spamming syslog with | ||
2213 | "ssh_dispatch_run_fatal: disconnected". ok markus@ | ||
2214 | |||
2215 | commit d4c0295d1afc342057ba358237acad6be8af480b | ||
2216 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2217 | Date: Wed Feb 11 01:20:38 2015 +0000 | ||
2218 | |||
2219 | upstream commit | ||
2220 | |||
2221 | Some packet error messages show the address of the peer, | ||
2222 | but might be generated after the socket to the peer has suffered a TCP reset. | ||
2223 | In these cases, getpeername() won't work so cache the address earlier. | ||
2224 | |||
2225 | spotted in the wild via deraadt@ and tedu@ | ||
2226 | |||
2227 | commit 4af1709cf774475ce5d1bc3ddcc165f6c222897d | ||
2228 | Author: jsg@openbsd.org <jsg@openbsd.org> | ||
2229 | Date: Mon Feb 9 23:22:37 2015 +0000 | ||
2230 | |||
2231 | upstream commit | ||
2232 | |||
2233 | fix some leaks in error paths ok markus@ | ||
2234 | |||
2235 | commit fd36834871d06a03e1ff8d69e41992efa1bbf85f | ||
2236 | Author: millert@openbsd.org <millert@openbsd.org> | ||
2237 | Date: Fri Feb 6 23:21:59 2015 +0000 | ||
2238 | |||
2239 | upstream commit | ||
2240 | |||
2241 | SIZE_MAX is standard, we should be using it in preference to | ||
2242 | the obsolete SIZE_T_MAX. OK miod@ beck@ | ||
2243 | |||
2244 | commit 1910a286d7771eab84c0b047f31c0a17505236fa | ||
2245 | Author: millert@openbsd.org <millert@openbsd.org> | ||
2246 | Date: Thu Feb 5 12:59:57 2015 +0000 | ||
2247 | |||
2248 | upstream commit | ||
2249 | |||
2250 | Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@ | ||
2251 | |||
2252 | commit ce4f59b2405845584f45e0b3214760eb0008c06c | ||
2253 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
2254 | Date: Tue Feb 3 08:07:20 2015 +0000 | ||
2255 | |||
2256 | upstream commit | ||
2257 | |||
2258 | missing ; djm and mlarkin really having great | ||
2259 | interactions recently | ||
2260 | |||
2261 | commit 5d34aa94938abb12b877a25be51862757f25d54b | ||
2262 | Author: halex@openbsd.org <halex@openbsd.org> | ||
2263 | Date: Tue Feb 3 00:34:14 2015 +0000 | ||
2264 | |||
2265 | upstream commit | ||
2266 | |||
2267 | slightly extend the passphrase prompt if running with -c | ||
2268 | in order to give the user a chance to notice if unintentionally running | ||
2269 | without it | ||
2270 | |||
2271 | wording tweak and ok djm@ | ||
2272 | |||
2273 | commit cb3bde373e80902c7d5d0db429f85068d19b2918 | ||
2274 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2275 | Date: Mon Feb 2 22:48:53 2015 +0000 | ||
2276 | |||
2277 | upstream commit | ||
2278 | |||
2279 | handle PKCS#11 C_Login returning | ||
2280 | CKR_USER_ALREADY_LOGGED_IN; based on patch from Yuri Samoilenko; ok markus@ | ||
2281 | |||
2282 | commit 15ad750e5ec3cc69765b7eba1ce90060e7083399 | ||
2283 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2284 | Date: Mon Feb 2 07:41:40 2015 +0000 | ||
2285 | |||
2286 | upstream commit | ||
2287 | |||
2288 | turn UpdateHostkeys off by default until I figure out | ||
2289 | mlarkin@'s warning message; requested by deraadt@ | ||
2290 | |||
2291 | commit 3cd5103c1e1aaa59bd66f7f52f6ebbcd5deb12f9 | ||
2292 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
2293 | Date: Mon Feb 2 01:57:44 2015 +0000 | ||
2294 | |||
2295 | upstream commit | ||
2296 | |||
2297 | increasing encounters with difficult DNS setups in | ||
2298 | darknets has convinced me UseDNS off by default is better ok djm | ||
2299 | |||
2300 | commit 6049a548a8a68ff0bbe581ab1748ea6a59ecdc38 | ||
2301 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2302 | Date: Sat Jan 31 20:30:05 2015 +0000 | ||
2303 | |||
2304 | upstream commit | ||
2305 | |||
2306 | Let sshd load public host keys even when private keys are | ||
2307 | missing. Allows sshd to advertise additional keys for future key rotation. | ||
2308 | Also log fingerprint of hostkeys loaded; ok markus@ | ||
2309 | |||
2310 | commit 46347ed5968f582661e8a70a45f448e0179ca0ab | ||
2311 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2312 | Date: Fri Jan 30 11:43:14 2015 +0000 | ||
2313 | |||
2314 | upstream commit | ||
2315 | |||
2316 | Add a ssh_config HostbasedKeyType option to control which | ||
2317 | host public key types are tried during hostbased authentication. | ||
2318 | |||
2319 | This may be used to prevent too many keys being sent to the server, | ||
2320 | and blowing past its MaxAuthTries limit. | ||
2321 | |||
2322 | bz#2211 based on patch by Iain Morgan; ok markus@ | ||
2323 | |||
2324 | commit 802660cb70453fa4d230cb0233bc1bbdf8328de1 | ||
2325 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2326 | Date: Fri Jan 30 10:44:49 2015 +0000 | ||
2327 | |||
2328 | upstream commit | ||
2329 | |||
2330 | set a timeout to prevent hangs when talking to busted | ||
2331 | servers; ok markus@ | ||
2332 | |||
2333 | commit 86936ec245a15c7abe71a0722610998b0a28b194 | ||
2334 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2335 | Date: Fri Jan 30 01:11:39 2015 +0000 | ||
2336 | |||
2337 | upstream commit | ||
2338 | |||
2339 | regression test for 'wildcard CA' serial/key ID revocations | ||
2340 | |||
2341 | commit 4509b5d4a4fa645a022635bfa7e86d09b285001f | ||
2342 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2343 | Date: Fri Jan 30 01:13:33 2015 +0000 | ||
2344 | |||
2345 | upstream commit | ||
2346 | |||
2347 | avoid more fatal/exit in the packet.c paths that | ||
2348 | ssh-keyscan uses; feedback and "looks good" markus@ | ||
2349 | |||
2350 | commit 669aee994348468af8b4b2ebd29b602cf2860b22 | ||
2351 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2352 | Date: Fri Jan 30 01:10:33 2015 +0000 | ||
2353 | |||
2354 | upstream commit | ||
2355 | |||
2356 | permit KRLs that revoke certificates by serial number or | ||
2357 | key ID without scoping to a particular CA; ok markus@ | ||
2358 | |||
2359 | commit 7a2c368477e26575d0866247d3313da4256cb2b5 | ||
2360 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2361 | Date: Fri Jan 30 00:59:19 2015 +0000 | ||
2362 | |||
2363 | upstream commit | ||
2364 | |||
2365 | missing parentheses after if in do_convert_from() broke | ||
2366 | private key conversion from other formats some time in 2010; bz#2345 reported | ||
2367 | by jjelen AT redhat.com | ||
2368 | |||
2369 | commit 25f5f78d8bf5c22d9cea8b49de24ebeee648a355 | ||
2370 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2371 | Date: Fri Jan 30 00:22:25 2015 +0000 | ||
2372 | |||
2373 | upstream commit | ||
2374 | |||
2375 | fix ssh protocol 1, spotted by miod@ | ||
2376 | |||
2377 | commit 9ce86c926dfa6e0635161b035e3944e611cbccf0 | ||
2378 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2379 | Date: Wed Jan 28 22:36:00 2015 +0000 | ||
2380 | |||
2381 | upstream commit | ||
2382 | |||
2383 | update to new API (key_fingerprint => sshkey_fingerprint) | ||
2384 | check sshkey_fingerprint return values; ok markus | ||
2385 | |||
2386 | commit 9125525c37bf73ad3ee4025520889d2ce9d10f29 | ||
2387 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2388 | Date: Wed Jan 28 22:05:31 2015 +0000 | ||
2389 | |||
2390 | upstream commit | ||
2391 | |||
2392 | avoid fatal() calls in packet code makes ssh-keyscan more | ||
2393 | reliable against server failures ok dtucker@ markus@ | ||
2394 | |||
2395 | commit fae7bbe544cba7a9e5e4ab47ff6faa3d978646eb | ||
2396 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2397 | Date: Wed Jan 28 21:15:47 2015 +0000 | ||
2398 | |||
2399 | upstream commit | ||
2400 | |||
2401 | avoid fatal() calls in packet code makes ssh-keyscan more | ||
2402 | reliable against server failures ok dtucker@ markus@ | ||
2403 | |||
2404 | commit 1a3d14f6b44a494037c7deab485abe6496bf2c60 | ||
2405 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2406 | Date: Wed Jan 28 11:07:25 2015 +0000 | ||
2407 | |||
2408 | upstream commit | ||
2409 | |||
2410 | remove obsolete comment | ||
2411 | |||
2412 | commit 80c25b7bc0a71d75c43a4575d9a1336f589eb639 | ||
2413 | Author: okan@openbsd.org <okan@openbsd.org> | ||
2414 | Date: Tue Jan 27 12:54:06 2015 +0000 | ||
2415 | |||
2416 | upstream commit | ||
2417 | |||
2418 | Since r1.2 removed the use of PRI* macros, inttypes.h is | ||
2419 | no longer required. | ||
2420 | |||
2421 | ok djm@ | ||
2422 | |||
2423 | commit 69ff64f69615c2a21c97cb5878a0996c21423257 | ||
2424 | Author: Damien Miller <djm@mindrot.org> | ||
2425 | Date: Tue Jan 27 23:07:43 2015 +1100 | ||
2426 | |||
2427 | compile on systems without TCP_MD5SIG (e.g. OSX) | ||
2428 | |||
2429 | commit 358964f3082fb90b2ae15bcab07b6105cfad5a43 | ||
2430 | Author: Damien Miller <djm@mindrot.org> | ||
2431 | Date: Tue Jan 27 23:07:25 2015 +1100 | ||
2432 | |||
2433 | use ssh-keygen under test rather than system's | ||
2434 | |||
2435 | commit a2c95c1bf33ea53038324d1fdd774bc953f98236 | ||
2436 | Author: Damien Miller <djm@mindrot.org> | ||
2437 | Date: Tue Jan 27 23:06:59 2015 +1100 | ||
2438 | |||
2439 | OSX lacks HOST_NAME_MAX, has _POSIX_HOST_NAME_MAX | ||
2440 | |||
2441 | commit ade31d7b6f608a19b85bee29a7a00b1e636a2919 | ||
2442 | Author: Damien Miller <djm@mindrot.org> | ||
2443 | Date: Tue Jan 27 23:06:23 2015 +1100 | ||
2444 | |||
2445 | these need active_state defined to link on OSX | ||
2446 | |||
2447 | temporary measure until active_state goes away entirely | ||
2448 | |||
2449 | commit e56aa87502f22c5844918c10190e8b4f785f067b | ||
2450 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2451 | Date: Tue Jan 27 12:01:36 2015 +0000 | ||
2452 | |||
2453 | upstream commit | ||
2454 | |||
2455 | use printf instead of echo -n to reduce diff against | ||
2456 | -portable | ||
2457 | |||
2458 | commit 9f7637f56eddfaf62ce3c0af89c25480f2cf1068 | ||
2459 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
2460 | Date: Mon Jan 26 13:55:29 2015 +0000 | ||
2461 | |||
2462 | upstream commit | ||
2463 | |||
2464 | sort previous; | ||
2465 | |||
2466 | commit 3076ee7d530d5b16842fac7a6229706c7e5acd26 | ||
2467 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2468 | Date: Mon Jan 26 13:36:53 2015 +0000 | ||
2469 | |||
2470 | upstream commit | ||
2471 | |||
2472 | properly restore umask | ||
2473 | |||
2474 | commit d411d395556b73ba1b9e451516a0bd6697c4b03d | ||
2475 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2476 | Date: Mon Jan 26 06:12:18 2015 +0000 | ||
2477 | |||
2478 | upstream commit | ||
2479 | |||
2480 | regression test for host key rotation | ||
2481 | |||
2482 | commit fe8a3a51699afbc6407a8fae59b73349d01e49f8 | ||
2483 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2484 | Date: Mon Jan 26 06:11:28 2015 +0000 | ||
2485 | |||
2486 | upstream commit | ||
2487 | |||
2488 | adapt to sshkey API tweaks | ||
2489 | |||
2490 | commit 7dd355fb1f0038a3d5cdca57ebab4356c7a5b434 | ||
2491 | Author: miod@openbsd.org <miod@openbsd.org> | ||
2492 | Date: Sat Jan 24 10:39:21 2015 +0000 | ||
2493 | |||
2494 | upstream commit | ||
2495 | |||
2496 | Move -lz late in the linker commandline for things to | ||
2497 | build on static arches. | ||
2498 | |||
2499 | commit 0dad3b806fddb93c475b30853b9be1a25d673a33 | ||
2500 | Author: miod@openbsd.org <miod@openbsd.org> | ||
2501 | Date: Fri Jan 23 21:21:23 2015 +0000 | ||
2502 | |||
2503 | upstream commit | ||
2504 | |||
2505 | -Wpointer-sign is supported by gcc 4 only. | ||
2506 | |||
2507 | commit 2b3b1c1e4bd9577b6e780c255c278542ea66c098 | ||
2508 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2509 | Date: Tue Jan 20 22:58:57 2015 +0000 | ||
2510 | |||
2511 | upstream commit | ||
2512 | |||
2513 | use SUBDIR to recuse into unit tests; makes "make obj" | ||
2514 | actually work | ||
2515 | |||
2516 | commit 1d1092bff8db27080155541212b420703f8b9c92 | ||
2517 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2518 | Date: Mon Jan 26 12:16:36 2015 +0000 | ||
2519 | |||
2520 | upstream commit | ||
2521 | |||
2522 | correct description of UpdateHostKeys in ssh_config.5 and | ||
2523 | add it to -o lists for ssh, scp and sftp; pointed out by jmc@ | ||
2524 | |||
2525 | commit 5104db7cbd6cdd9c5971f4358e74414862fc1022 | ||
2526 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2527 | Date: Mon Jan 26 06:10:03 2015 +0000 | ||
2528 | |||
2529 | upstream commit | ||
2530 | |||
2531 | correctly match ECDSA subtype (== curve) for | ||
2532 | offered/recevied host keys. Fixes connection-killing host key mismatches when | ||
2533 | a server offers multiple ECDSA keys with different curve type (an extremely | ||
2534 | unlikely configuration). | ||
2535 | |||
2536 | ok markus, "looks mechanical" deraadt@ | ||
2537 | |||
2538 | commit 8d4f87258f31cb6def9b3b55b6a7321d84728ff2 | ||
2539 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2540 | Date: Mon Jan 26 03:04:45 2015 +0000 | ||
2541 | |||
2542 | upstream commit | ||
2543 | |||
2544 | Host key rotation support. | ||
2545 | |||
2546 | Add a hostkeys@openssh.com protocol extension (global request) for | ||
2547 | a server to inform a client of all its available host key after | ||
2548 | authentication has completed. The client may record the keys in | ||
2549 | known_hosts, allowing it to upgrade to better host key algorithms | ||
2550 | and a server to gracefully rotate its keys. | ||
2551 | |||
2552 | The client side of this is controlled by a UpdateHostkeys config | ||
2553 | option (default on). | ||
2554 | |||
2555 | ok markus@ | ||
2556 | |||
2557 | commit 60b1825262b1f1e24fc72050b907189c92daf18e | ||
2558 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2559 | Date: Mon Jan 26 02:59:11 2015 +0000 | ||
2560 | |||
2561 | upstream commit | ||
2562 | |||
2563 | small refactor and add some convenience functions; ok | ||
2564 | markus | ||
2565 | |||
2566 | commit a5a3e3328ddce91e76f71ff479022d53e35c60c9 | ||
2567 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
2568 | Date: Thu Jan 22 21:00:42 2015 +0000 | ||
2569 | |||
2570 | upstream commit | ||
2571 | |||
2572 | heirarchy -> hierarchy; | ||
2573 | |||
2574 | commit dcff5810a11195c57e1b3343c0d6b6f2b9974c11 | ||
2575 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
2576 | Date: Thu Jan 22 20:24:41 2015 +0000 | ||
2577 | |||
2578 | upstream commit | ||
2579 | |||
2580 | Provide a warning about chroot misuses (which sadly, seem | ||
2581 | to have become quite popular because shiny). sshd cannot detect/manage/do | ||
2582 | anything about these cases, best we can do is warn in the right spot in the | ||
2583 | man page. ok markus | ||
2584 | |||
2585 | commit 087266ec33c76fc8d54ac5a19efacf2f4a4ca076 | ||
2586 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
2587 | Date: Tue Jan 20 23:14:00 2015 +0000 | ||
2588 | |||
2589 | upstream commit | ||
2590 | |||
2591 | Reduce use of <sys/param.h> and transition to <limits.h> | ||
2592 | throughout. ok djm markus | ||
2593 | |||
2594 | commit 57e783c8ba2c0797f93977e83b2a8644a03065d8 | ||
2595 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2596 | Date: Tue Jan 20 20:16:21 2015 +0000 | ||
2597 | |||
2598 | upstream commit | ||
2599 | |||
2600 | kex_setup errors are fatal() | ||
2601 | |||
2602 | commit 1d6424a6ff94633c221297ae8f42d54e12a20912 | ||
2603 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2604 | Date: Tue Jan 20 08:02:33 2015 +0000 | ||
2605 | |||
2606 | upstream commit | ||
2607 | |||
2608 | this test would accidentally delete agent.sh if run without | ||
2609 | obj/ | ||
2610 | |||
2611 | commit 12b5f50777203e12575f1b08568281e447249ed3 | ||
2612 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2613 | Date: Tue Jan 20 07:56:44 2015 +0000 | ||
2614 | |||
2615 | upstream commit | ||
2616 | |||
2617 | make this compile with KERBEROS5 enabled | ||
2618 | |||
2619 | commit e2cc6bef08941256817d44d146115b3478586ad4 | ||
2620 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2621 | Date: Tue Jan 20 07:55:33 2015 +0000 | ||
2622 | |||
2623 | upstream commit | ||
2624 | |||
2625 | fix hostkeys in agent; ok markus@ | ||
2626 | |||
2627 | commit 1ca3e2155aa5d3801a7ae050f85c71f41fcb95b1 | ||
2628 | Author: Damien Miller <djm@mindrot.org> | ||
2629 | Date: Tue Jan 20 10:11:31 2015 +1100 | ||
2630 | |||
2631 | fix kex test | ||
2632 | |||
2633 | commit c78a578107c7e6dcf5d30a2f34cb6581bef14029 | ||
2634 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2635 | Date: Mon Jan 19 20:45:25 2015 +0000 | ||
2636 | |||
2637 | upstream commit | ||
2638 | |||
2639 | finally enable the KEX tests I wrote some years ago... | ||
2640 | |||
2641 | commit 31821d7217e686667d04935aeec99e1fc4a46e7e | ||
2642 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2643 | Date: Mon Jan 19 20:42:31 2015 +0000 | ||
2644 | |||
2645 | upstream commit | ||
2646 | |||
2647 | adapt to new error message (SSH_ERR_MAC_INVALID) | ||
2648 | |||
2649 | commit d3716ca19e510e95d956ae14d5b367e364bff7f1 | ||
2650 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2651 | Date: Mon Jan 19 17:31:13 2015 +0000 | ||
2652 | |||
2653 | upstream commit | ||
2654 | |||
2655 | this test was broken in at least two ways, such that it | ||
2656 | wasn't checking that a KRL was not excluding valid keys | ||
2657 | |||
2658 | commit 3f797653748e7c2b037dacb57574c01d9ef3b4d3 | ||
2659 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2660 | Date: Mon Jan 19 20:32:39 2015 +0000 | ||
2661 | |||
2662 | upstream commit | ||
2663 | |||
2664 | switch ssh-keyscan from setjmp to multiple ssh transport | ||
2665 | layer instances ok djm@ | ||
2666 | |||
2667 | commit f582f0e917bb0017b00944783cd5f408bf4b0b5e | ||
2668 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2669 | Date: Mon Jan 19 20:30:23 2015 +0000 | ||
2670 | |||
2671 | upstream commit | ||
2672 | |||
2673 | add experimental api for packet layer; ok djm@ | ||
2674 | |||
2675 | commit 48b3b2ba75181f11fca7f327058a591f4426cade | ||
2676 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2677 | Date: Mon Jan 19 20:20:20 2015 +0000 | ||
2678 | |||
2679 | upstream commit | ||
2680 | |||
2681 | store compat flags in struct ssh; ok djm@ | ||
2682 | |||
2683 | commit 57d10cbe861a235dd269c74fb2fe248469ecee9d | ||
2684 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2685 | Date: Mon Jan 19 20:16:15 2015 +0000 | ||
2686 | |||
2687 | upstream commit | ||
2688 | |||
2689 | adapt kex to sshbuf and struct ssh; ok djm@ | ||
2690 | |||
2691 | commit 3fdc88a0def4f86aa88a5846ac079dc964c0546a | ||
2692 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2693 | Date: Mon Jan 19 20:07:45 2015 +0000 | ||
2694 | |||
2695 | upstream commit | ||
2696 | |||
2697 | move dispatch to struct ssh; ok djm@ | ||
2698 | |||
2699 | commit 091c302829210c41e7f57c3f094c7b9c054306f0 | ||
2700 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2701 | Date: Mon Jan 19 19:52:16 2015 +0000 | ||
2702 | |||
2703 | upstream commit | ||
2704 | |||
2705 | update packet.c & isolate, introduce struct ssh a) switch | ||
2706 | packet.c to buffer api and isolate per-connection info into struct ssh b) | ||
2707 | (de)serialization of the state is moved from monitor to packet.c c) the old | ||
2708 | packet.c API is implemented in opacket.[ch] d) compress.c/h is removed and | ||
2709 | integrated into packet.c with and ok djm@ | ||
2710 | |||
2711 | commit 4e62cc68ce4ba20245d208b252e74e91d3785b74 | ||
2712 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2713 | Date: Mon Jan 19 17:35:48 2015 +0000 | ||
2714 | |||
2715 | upstream commit | ||
2716 | |||
2717 | fix format strings in (disabled) debugging | ||
2718 | |||
2719 | commit d85e06245907d49a2cd0cfa0abf59150ad616f42 | ||
2720 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2721 | Date: Mon Jan 19 06:01:32 2015 +0000 | ||
2722 | |||
2723 | upstream commit | ||
2724 | |||
2725 | be a bit more careful in these tests to ensure that | ||
2726 | known_hosts is clean | ||
2727 | |||
2728 | commit 7947810eab5fe0ad311f32a48f4d4eb1f71be6cf | ||
2729 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2730 | Date: Sun Jan 18 22:00:18 2015 +0000 | ||
2731 | |||
2732 | upstream commit | ||
2733 | |||
2734 | regression test for known_host file editing using | ||
2735 | ssh-keygen (-H / -R / -F) after hostkeys_foreach() change; feedback and ok | ||
2736 | markus@ | ||
2737 | |||
2738 | commit 3a2b09d147a565d8a47edf37491e149a02c0d3a3 | ||
2739 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2740 | Date: Sun Jan 18 19:54:46 2015 +0000 | ||
2741 | |||
2742 | upstream commit | ||
2743 | |||
2744 | more and better key tests | ||
2745 | |||
2746 | test signatures and verification | ||
2747 | test certificate generation | ||
2748 | flesh out nested cert test | ||
2749 | |||
2750 | removes most of the XXX todo markers | ||
2751 | |||
2752 | commit 589e69fd82724cfc9738f128e4771da2e6405d0d | ||
2753 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2754 | Date: Sun Jan 18 19:53:58 2015 +0000 | ||
2755 | |||
2756 | upstream commit | ||
2757 | |||
2758 | make the signature fuzzing test much more rigorous: | ||
2759 | ensure that the fuzzed input cases do not match the original (using new | ||
2760 | fuzz_matches_original() function) and check that the verification fails in | ||
2761 | each case | ||
2762 | |||
2763 | commit 80603c0daa2538c349c1c152405580b164d5475f | ||
2764 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2765 | Date: Sun Jan 18 19:52:44 2015 +0000 | ||
2766 | |||
2767 | upstream commit | ||
2768 | |||
2769 | add a fuzz_matches_original() function to the fuzzer to | ||
2770 | detect fuzz cases that are identical to the original data. Hacky | ||
2771 | implementation, but very useful when you need the fuzz to be different, e.g. | ||
2772 | when verifying signature | ||
2773 | |||
2774 | commit 87d5495bd337e358ad69c524fcb9495208c0750b | ||
2775 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2776 | Date: Sun Jan 18 19:50:55 2015 +0000 | ||
2777 | |||
2778 | upstream commit | ||
2779 | |||
2780 | better dumps from the fuzzer (shown on errors) - | ||
2781 | include the original data as well as the fuzzed copy. | ||
2782 | |||
2783 | commit d59ec478c453a3fff05badbbfd96aa856364f2c2 | ||
2784 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2785 | Date: Sun Jan 18 19:47:55 2015 +0000 | ||
2786 | |||
2787 | upstream commit | ||
2788 | |||
2789 | enable hostkey-agent.sh test | ||
2790 | |||
2791 | commit 26b3425170bf840e4b095e1c10bf25a0a3e3a105 | ||
2792 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2793 | Date: Sat Jan 17 18:54:30 2015 +0000 | ||
2794 | |||
2795 | upstream commit | ||
2796 | |||
2797 | unit test for hostkeys in ssh-agent | ||
2798 | |||
2799 | commit 9e06a0fb23ec55d9223b26a45bb63c7649e2f2f2 | ||
2800 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2801 | Date: Thu Jan 15 23:41:29 2015 +0000 | ||
2802 | |||
2803 | upstream commit | ||
2804 | |||
2805 | add kex unit tests | ||
2806 | |||
2807 | commit d2099dec6da21ae627f6289aedae6bc1d41a22ce | ||
2808 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
2809 | Date: Mon Jan 19 00:32:54 2015 +0000 | ||
2810 | |||
2811 | upstream commit | ||
2812 | |||
2813 | djm, your /usr/include tree is old | ||
2814 | |||
2815 | commit 2b3c3c76c30dc5076fe09d590f5b26880f148a54 | ||
2816 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2817 | Date: Sun Jan 18 21:51:19 2015 +0000 | ||
2818 | |||
2819 | upstream commit | ||
2820 | |||
2821 | some feedback from markus@: comment hostkeys_foreach() | ||
2822 | context and avoid a member in it. | ||
2823 | |||
2824 | commit cecb30bc2ba6d594366e657d664d5c494b6c8a7f | ||
2825 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2826 | Date: Sun Jan 18 21:49:42 2015 +0000 | ||
2827 | |||
2828 | upstream commit | ||
2829 | |||
2830 | make ssh-keygen use hostkeys_foreach(). Removes some | ||
2831 | horrendous code; ok markus@ | ||
2832 | |||
2833 | commit ec3d065df3a9557ea96b02d061fd821a18c1a0b9 | ||
2834 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2835 | Date: Sun Jan 18 21:48:09 2015 +0000 | ||
2836 | |||
2837 | upstream commit | ||
2838 | |||
2839 | convert load_hostkeys() (hostkey ordering and | ||
2840 | known_host matching) to use the new hostkey_foreach() iterator; ok markus | ||
2841 | |||
2842 | commit c29811cc480a260e42fd88849fc86a80c1e91038 | ||
2843 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2844 | Date: Sun Jan 18 21:40:23 2015 +0000 | ||
2845 | |||
2846 | upstream commit | ||
2847 | |||
2848 | introduce hostkeys_foreach() to allow iteration over a | ||
2849 | known_hosts file or controlled subset thereof. This will allow us to pull out | ||
2850 | some ugly and duplicated code, and will be used to implement hostkey rotation | ||
2851 | later. | ||
2852 | |||
2853 | feedback and ok markus | ||
2854 | |||
2855 | commit f101d8291da01bbbfd6fb8c569cfd0cc61c0d346 | ||
2856 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
2857 | Date: Sun Jan 18 14:01:00 2015 +0000 | ||
2858 | |||
2859 | upstream commit | ||
2860 | |||
2861 | string truncation due to sizeof(size) ok djm markus | ||
2862 | |||
2863 | commit 35d6022b55b7969fc10c261cb6aa78cc4a5fcc41 | ||
2864 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2865 | Date: Sun Jan 18 13:33:34 2015 +0000 | ||
2866 | |||
2867 | upstream commit | ||
2868 | |||
2869 | avoid trailing ',' in host key algorithms | ||
2870 | |||
2871 | commit 7efb455789a0cb76bdcdee91c6060a3dc8f5c007 | ||
2872 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2873 | Date: Sun Jan 18 13:22:28 2015 +0000 | ||
2874 | |||
2875 | upstream commit | ||
2876 | |||
2877 | infer key length correctly when user specified a fully- | ||
2878 | qualified key name instead of using the -b bits option; ok markus@ | ||
2879 | |||
2880 | commit 83f8ffa6a55ccd0ce9d8a205e3e7439ec18fedf5 | ||
2881 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2882 | Date: Sat Jan 17 18:53:34 2015 +0000 | ||
2883 | |||
2884 | upstream commit | ||
2885 | |||
2886 | fix hostkeys on ssh agent; found by unit test I'm about | ||
2887 | to commit | ||
2888 | |||
2889 | commit 369d61f17657b814124268f99c033e4dc6e436c1 | ||
2890 | Author: schwarze@openbsd.org <schwarze@openbsd.org> | ||
2891 | Date: Fri Jan 16 16:20:23 2015 +0000 | ||
2892 | |||
2893 | upstream commit | ||
2894 | |||
2895 | garbage collect empty .No macros mandoc warns about | ||
2896 | |||
2897 | commit bb8b442d32dbdb8521d610e10d8b248d938bd747 | ||
2898 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2899 | Date: Fri Jan 16 15:55:07 2015 +0000 | ||
2900 | |||
2901 | upstream commit | ||
2902 | |||
2903 | regression: incorrect error message on | ||
2904 | otherwise-successful ssh-keygen -A. Reported by Dmitry Orlov, via deraadt@ | ||
2905 | |||
2906 | commit 9010902954a40b59d0bf3df3ccbc3140a653e2bc | ||
2907 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2908 | Date: Fri Jan 16 07:19:48 2015 +0000 | ||
2909 | |||
2910 | upstream commit | ||
2911 | |||
2912 | when hostname canonicalisation is enabled, try to parse | ||
2913 | hostnames as addresses before looking them up for canonicalisation. fixes | ||
2914 | bz#2074 and avoids needless DNS lookups in some cases; ok markus | ||
2915 | |||
2916 | commit 2ae4f337b2a5fb2841b6b0053b49496fef844d1c | ||
2917 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
2918 | Date: Fri Jan 16 06:40:12 2015 +0000 | ||
2919 | |||
2920 | upstream commit | ||
2921 | |||
2922 | Replace <sys/param.h> with <limits.h> and other less | ||
2923 | dirty headers where possible. Annotate <sys/param.h> lines with their | ||
2924 | current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, | ||
2925 | LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of | ||
2926 | MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. | ||
2927 | These are the files confirmed through binary verification. ok guenther, | ||
2928 | millert, doug (helped with the verification protocol) | ||
2929 | |||
2930 | commit 3c4726f4c24118e8f1bb80bf75f1456c76df072c | ||
2931 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2932 | Date: Thu Jan 15 21:38:50 2015 +0000 | ||
2933 | |||
2934 | upstream commit | ||
2935 | |||
2936 | remove xmalloc, switch to sshbuf | ||
2937 | |||
2938 | commit e17ac01f8b763e4b83976b9e521e90a280acc097 | ||
2939 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2940 | Date: Thu Jan 15 21:37:14 2015 +0000 | ||
2941 | |||
2942 | upstream commit | ||
2943 | |||
2944 | switch to sshbuf | ||
2945 | |||
2946 | commit ddef9995a1fa6c7a8ff3b38bfe6cf724bebf13d0 | ||
2947 | Author: naddy@openbsd.org <naddy@openbsd.org> | ||
2948 | Date: Thu Jan 15 18:32:54 2015 +0000 | ||
2949 | |||
2950 | upstream commit | ||
2951 | |||
2952 | handle UMAC128 initialization like UMAC; ok djm@ markus@ | ||
2953 | |||
2954 | commit f14564c1f7792446bca143580aef0e7ac25dcdae | ||
2955 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2956 | Date: Thu Jan 15 11:04:36 2015 +0000 | ||
2957 | |||
2958 | upstream commit | ||
2959 | |||
2960 | fix regression reported by brad@ for passworded keys without | ||
2961 | agent present | ||
2962 | |||
2963 | commit 45c0fd70bb2a88061319dfff20cb12ef7b1bc47e | ||
2964 | Author: Damien Miller <djm@mindrot.org> | ||
2965 | Date: Thu Jan 15 22:08:23 2015 +1100 | ||
2966 | |||
2967 | make bitmap test compile | ||
2968 | |||
2969 | commit d333f89abf7179021e5c3f28673f469abe032062 | ||
2970 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2971 | Date: Thu Jan 15 07:36:28 2015 +0000 | ||
2972 | |||
2973 | upstream commit | ||
2974 | |||
2975 | unit tests for KRL bitmap | ||
2976 | |||
2977 | commit 7613f828f49c55ff356007ae9645038ab6682556 | ||
2978 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2979 | Date: Wed Jan 14 09:58:21 2015 +0000 | ||
2980 | |||
2981 | upstream commit | ||
2982 | |||
2983 | re-add comment about full path | ||
2984 | |||
2985 | commit 6c43b48b307c41cd656b415621a644074579a578 | ||
2986 | Author: markus@openbsd.org <markus@openbsd.org> | ||
2987 | Date: Wed Jan 14 09:54:38 2015 +0000 | ||
2988 | |||
2989 | upstream commit | ||
2990 | |||
2991 | don't reset to the installed sshd; connect before | ||
2992 | reconfigure, too | ||
2993 | |||
2994 | commit 771bb47a1df8b69061f09462e78aa0b66cd594bf | ||
2995 | Author: djm@openbsd.org <djm@openbsd.org> | ||
2996 | Date: Tue Jan 13 14:51:51 2015 +0000 | ||
2997 | |||
2998 | upstream commit | ||
2999 | |||
3000 | implement a SIGINFO handler so we can discern a stuck | ||
3001 | fuzz test from a merely glacial one; prompted by and ok markus | ||
3002 | |||
3003 | commit cfaa57962f8536f3cf0fd7daf4d6a55d6f6de45f | ||
3004 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3005 | Date: Tue Jan 13 08:23:26 2015 +0000 | ||
3006 | |||
3007 | upstream commit | ||
3008 | |||
3009 | use $SSH instead of installed ssh to allow override; | ||
3010 | spotted by markus@ | ||
3011 | |||
3012 | commit 0920553d0aee117a596b03ed5b49b280d34a32c5 | ||
3013 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3014 | Date: Tue Jan 13 07:49:49 2015 +0000 | ||
3015 | |||
3016 | upstream commit | ||
3017 | |||
3018 | regress test for PubkeyAcceptedKeyTypes; ok markus@ | ||
3019 | |||
3020 | commit 27ca1a5c0095eda151934bca39a77e391f875d17 | ||
3021 | Author: markus@openbsd.org <markus@openbsd.org> | ||
3022 | Date: Mon Jan 12 20:13:27 2015 +0000 | ||
3023 | |||
3024 | upstream commit | ||
3025 | |||
3026 | unbreak parsing of pubkey comments; with gerhard; ok | ||
3027 | djm/deraadt | ||
3028 | |||
3029 | commit 55358f0b4e0b83bc0df81c5f854c91b11e0bb4dc | ||
3030 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3031 | Date: Mon Jan 12 11:46:32 2015 +0000 | ||
3032 | |||
3033 | upstream commit | ||
3034 | |||
3035 | fatal if soft-PKCS11 library is missing rather (rather | ||
3036 | than continue and fail with a more cryptic error) | ||
3037 | |||
3038 | commit c3554cdd2a1a62434b8161017aa76fa09718a003 | ||
3039 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3040 | Date: Mon Jan 12 11:12:38 2015 +0000 | ||
3041 | |||
3042 | upstream commit | ||
3043 | |||
3044 | let this test all supporte key types; pointed out/ok | ||
3045 | markus@ | ||
3046 | |||
3047 | commit 1129dcfc5a3e508635004bcc05a3574cb7687167 | ||
3048 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3049 | Date: Thu Jan 15 09:40:00 2015 +0000 | ||
3050 | |||
3051 | upstream commit | ||
3052 | |||
3053 | sync ssh-keysign, ssh-keygen and some dependencies to the | ||
3054 | new buffer/key API; mostly mechanical, ok markus@ | ||
3055 | |||
3056 | commit e4ebf5586452bf512da662ac277aaf6ecf0efe7c | ||
3057 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3058 | Date: Thu Jan 15 07:57:08 2015 +0000 | ||
3059 | |||
3060 | upstream commit | ||
3061 | |||
3062 | remove commented-out test code now that it has moved to a | ||
3063 | proper unit test | ||
3064 | |||
3065 | commit e81cba066c1e9eb70aba0f6e7c0ff220611b370f | ||
3066 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3067 | Date: Wed Jan 14 20:54:29 2015 +0000 | ||
3068 | |||
3069 | upstream commit | ||
3070 | |||
3071 | whitespace | ||
3072 | |||
3073 | commit 141efe49542f7156cdbc2e4cd0a041d8b1aab622 | ||
3074 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3075 | Date: Wed Jan 14 20:05:27 2015 +0000 | ||
3076 | |||
3077 | upstream commit | ||
3078 | |||
3079 | move authfd.c and its tentacles to the new buffer/key | ||
3080 | API; ok markus@ | ||
3081 | |||
3082 | commit 0088c57af302cda278bd26d8c3ae81d5b6f7c289 | ||
3083 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3084 | Date: Wed Jan 14 19:33:41 2015 +0000 | ||
3085 | |||
3086 | upstream commit | ||
3087 | |||
3088 | fix small regression: ssh-agent would return a success | ||
3089 | message but an empty signature if asked to sign using an unknown key; ok | ||
3090 | markus@ | ||
3091 | |||
3092 | commit b03ebe2c22b8166e4f64c37737f4278676e3488d | ||
3093 | Author: Damien Miller <djm@mindrot.org> | ||
3094 | Date: Thu Jan 15 03:08:58 2015 +1100 | ||
3095 | |||
3096 | more --without-openssl | ||
3097 | |||
3098 | fix some regressions caused by upstream merges | ||
3099 | |||
3100 | enable KRLs now that they no longer require BIGNUMs | ||
3101 | |||
3102 | commit bc42cc6fe784f36df225c44c93b74830027cb5a2 | ||
3103 | Author: Damien Miller <djm@mindrot.org> | ||
3104 | Date: Thu Jan 15 03:08:29 2015 +1100 | ||
3105 | |||
3106 | kludge around tun API mismatch betterer | ||
3107 | |||
3108 | commit c332110291089b624fa0951fbf2d1ee6de525b9f | ||
3109 | Author: Damien Miller <djm@mindrot.org> | ||
3110 | Date: Thu Jan 15 02:59:51 2015 +1100 | ||
3111 | |||
3112 | some systems lack SO_REUSEPORT | ||
3113 | |||
3114 | commit 83b9678a62cbdc74eb2031cf1e1e4ffd58e233ae | ||
3115 | Author: Damien Miller <djm@mindrot.org> | ||
3116 | Date: Thu Jan 15 02:35:50 2015 +1100 | ||
3117 | |||
3118 | fix merge botch | ||
3119 | |||
3120 | commit 0cdc5a3eb6fb383569a4da2a30705d9b90428d6b | ||
3121 | Author: Damien Miller <djm@mindrot.org> | ||
3122 | Date: Thu Jan 15 02:35:33 2015 +1100 | ||
3123 | |||
3124 | unbreak across API change | ||
3125 | |||
3126 | commit 6e2549ac2b5e7f96cbc2d83a6e0784b120444b47 | ||
3127 | Author: Damien Miller <djm@mindrot.org> | ||
3128 | Date: Thu Jan 15 02:30:18 2015 +1100 | ||
3129 | |||
3130 | need includes.h for portable OpenSSH | ||
3131 | |||
3132 | commit 72ef7c148c42db7d5632a29f137f8b87b579f2d9 | ||
3133 | Author: Damien Miller <djm@mindrot.org> | ||
3134 | Date: Thu Jan 15 02:21:31 2015 +1100 | ||
3135 | |||
3136 | support --without-openssl at configure time | ||
3137 | |||
3138 | Disables and removes dependency on OpenSSL. Many features don't | ||
3139 | work and the set of crypto options is greatly restricted. This | ||
3140 | will only work on system with native arc4random or /dev/urandom. | ||
3141 | |||
3142 | Considered highly experimental for now. | ||
3143 | |||
3144 | commit 4f38c61c68ae7e3f9ee4b3c38bc86cd39f65ece9 | ||
3145 | Author: Damien Miller <djm@mindrot.org> | ||
3146 | Date: Thu Jan 15 02:28:00 2015 +1100 | ||
3147 | |||
3148 | add files missed in last commit | ||
3149 | |||
3150 | commit a165bab605f7be55940bb8fae977398e8c96a46d | ||
3151 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3152 | Date: Wed Jan 14 15:02:39 2015 +0000 | ||
3153 | |||
3154 | upstream commit | ||
3155 | |||
3156 | avoid BIGNUM in KRL code by using a simple bitmap; | ||
3157 | feedback and ok markus | ||
3158 | |||
3159 | commit 7d845f4a0b7ec97887be204c3760e44de8bf1f32 | ||
3160 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3161 | Date: Wed Jan 14 13:54:13 2015 +0000 | ||
3162 | |||
3163 | upstream commit | ||
3164 | |||
3165 | update sftp client and server to new buffer API. pretty | ||
3166 | much just mechanical changes; with & ok markus | ||
3167 | |||
3168 | commit 139ca81866ec1b219c717d17061e5e7ad1059e2a | ||
3169 | Author: markus@openbsd.org <markus@openbsd.org> | ||
3170 | Date: Wed Jan 14 13:09:09 2015 +0000 | ||
3171 | |||
3172 | upstream commit | ||
3173 | |||
3174 | switch to sshbuf/sshkey; with & ok djm@ | ||
3175 | |||
3176 | commit 81bfbd0bd35683de5d7f2238b985e5f8150a9180 | ||
3177 | Author: Damien Miller <djm@mindrot.org> | ||
3178 | Date: Wed Jan 14 21:48:18 2015 +1100 | ||
3179 | |||
3180 | support --without-openssl at configure time | ||
3181 | |||
3182 | Disables and removes dependency on OpenSSL. Many features don't | ||
3183 | work and the set of crypto options is greatly restricted. This | ||
3184 | will only work on system with native arc4random or /dev/urandom. | ||
3185 | |||
3186 | Considered highly experimental for now. | ||
3187 | |||
3188 | commit 54924b53af15ccdcbb9f89984512b5efef641a31 | ||
3189 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3190 | Date: Wed Jan 14 10:46:28 2015 +0000 | ||
3191 | |||
3192 | upstream commit | ||
3193 | |||
3194 | avoid an warning for the !OPENSSL case | ||
3195 | |||
3196 | commit ae8b463217f7c9b66655bfc3945c050ffdaeb861 | ||
3197 | Author: markus@openbsd.org <markus@openbsd.org> | ||
3198 | Date: Wed Jan 14 10:30:34 2015 +0000 | ||
3199 | |||
3200 | upstream commit | ||
3201 | |||
3202 | swith auth-options to new sshbuf/sshkey; ok djm@ | ||
3203 | |||
3204 | commit 540e891191b98b89ee90aacf5b14a4a68635e763 | ||
3205 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3206 | Date: Wed Jan 14 10:29:45 2015 +0000 | ||
3207 | |||
3208 | upstream commit | ||
3209 | |||
3210 | make non-OpenSSL aes-ctr work on sshd w/ privsep; ok | ||
3211 | markus@ | ||
3212 | |||
3213 | commit 60c2c4ea5e1ad0ddfe8b2877b78ed5143be79c53 | ||
3214 | Author: markus@openbsd.org <markus@openbsd.org> | ||
3215 | Date: Wed Jan 14 10:24:42 2015 +0000 | ||
3216 | |||
3217 | upstream commit | ||
3218 | |||
3219 | remove unneeded includes, sync my copyright across files | ||
3220 | & whitespace; ok djm@ | ||
3221 | |||
3222 | commit 128343bcdb0b60fc826f2733df8cf979ec1627b4 | ||
3223 | Author: markus@openbsd.org <markus@openbsd.org> | ||
3224 | Date: Tue Jan 13 19:31:40 2015 +0000 | ||
3225 | |||
3226 | upstream commit | ||
3227 | |||
3228 | adapt mac.c to ssherr.h return codes (de-fatal) and | ||
3229 | simplify dependencies ok djm@ | ||
3230 | |||
3231 | commit e7fd952f4ea01f09ceb068721a5431ac2fd416ed | ||
3232 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3233 | Date: Tue Jan 13 19:04:35 2015 +0000 | ||
3234 | |||
3235 | upstream commit | ||
3236 | |||
3237 | sync changes from libopenssh; prepared by markus@ mostly | ||
3238 | debug output tweaks, a couple of error return value changes and some other | ||
3239 | minor stuff | ||
3240 | |||
3241 | commit 76c0480a85675f03a1376167cb686abed01a3583 | ||
3242 | Author: Damien Miller <djm@mindrot.org> | ||
3243 | Date: Tue Jan 13 19:38:18 2015 +1100 | ||
3244 | |||
3245 | add --without-ssh1 option to configure | ||
3246 | |||
3247 | Allows disabling support for SSH protocol 1. | ||
3248 | |||
3249 | commit 1f729f0614d1376c3332fa1edb6a5e5cec7e9e03 | ||
3250 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3251 | Date: Tue Jan 13 07:39:19 2015 +0000 | ||
3252 | |||
3253 | upstream commit | ||
3254 | |||
3255 | add sshd_config HostbasedAcceptedKeyTypes and | ||
3256 | PubkeyAcceptedKeyTypes options to allow sshd to control what public key types | ||
3257 | will be accepted. Currently defaults to all. Feedback & ok markus@ | ||
3258 | |||
3259 | commit 816d1538c24209a93ba0560b27c4fda57c3fff65 | ||
3260 | Author: markus@openbsd.org <markus@openbsd.org> | ||
3261 | Date: Mon Jan 12 20:13:27 2015 +0000 | ||
3262 | |||
3263 | upstream commit | ||
3264 | |||
3265 | unbreak parsing of pubkey comments; with gerhard; ok | ||
3266 | djm/deraadt | ||
3267 | |||
3268 | commit 0097565f849851812df610b7b6b3c4bd414f6c62 | ||
3269 | Author: markus@openbsd.org <markus@openbsd.org> | ||
3270 | Date: Mon Jan 12 19:22:46 2015 +0000 | ||
3271 | |||
3272 | upstream commit | ||
3273 | |||
3274 | missing error assigment on sshbuf_put_string() | ||
3275 | |||
3276 | commit a7f49dcb527dd17877fcb8d5c3a9a6f550e0bba5 | ||
3277 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3278 | Date: Mon Jan 12 15:18:07 2015 +0000 | ||
3279 | |||
3280 | upstream commit | ||
3281 | |||
3282 | apparently memcpy(x, NULL, 0) is undefined behaviour | ||
3283 | according to C99 (cf. sections 7.21.1 and 7.1.4), so check skip memcpy calls | ||
3284 | when length==0; ok markus@ | ||
3285 | |||
3286 | commit 905fe30fca82f38213763616d0d26eb6790bde33 | ||
3287 | Author: markus@openbsd.org <markus@openbsd.org> | ||
3288 | Date: Mon Jan 12 14:05:19 2015 +0000 | ||
3289 | |||
3290 | upstream commit | ||
3291 | |||
3292 | free->sshkey_free; ok djm@ | ||
3293 | |||
3294 | commit f067cca2bc20c86b110174c3fef04086a7f57b13 | ||
3295 | Author: markus@openbsd.org <markus@openbsd.org> | ||
3296 | Date: Mon Jan 12 13:29:27 2015 +0000 | ||
3297 | |||
3298 | upstream commit | ||
3299 | |||
3300 | allow WITH_OPENSSL w/o WITH_SSH1; ok djm@ | ||
3301 | |||
3302 | commit c4bfafcc2a9300d9cfb3c15e75572d3a7d74670d | ||
3303 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3304 | Date: Thu Jan 8 13:10:58 2015 +0000 | ||
3305 | |||
3306 | upstream commit | ||
3307 | |||
3308 | adjust for sshkey_load_file() API change | ||
3309 | |||
3310 | commit e752c6d547036c602b89e9e704851463bd160e32 | ||
3311 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3312 | Date: Thu Jan 8 13:44:36 2015 +0000 | ||
3313 | |||
3314 | upstream commit | ||
3315 | |||
3316 | fix ssh_config FingerprintHash evaluation order; from Petr | ||
3317 | Lautrbach | ||
3318 | |||
3319 | commit ab24ab847b0fc94c8d5e419feecff0bcb6d6d1bf | ||
3320 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3321 | Date: Thu Jan 8 10:15:45 2015 +0000 | ||
3322 | |||
3323 | upstream commit | ||
3324 | |||
3325 | reorder hostbased key attempts to better match the | ||
3326 | default hostkey algorithms order in myproposal.h; ok markus@ | ||
3327 | |||
3328 | commit 1195f4cb07ef4b0405c839293c38600b3e9bdb46 | ||
3329 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3330 | Date: Thu Jan 8 10:14:08 2015 +0000 | ||
3331 | |||
3332 | upstream commit | ||
3333 | |||
3334 | deprecate key_load_private_pem() and | ||
3335 | sshkey_load_private_pem() interfaces. Refactor the generic key loading API to | ||
3336 | not require pathnames to be specified (they weren't really used). | ||
3337 | |||
3338 | Fixes a few other things en passant: | ||
3339 | |||
3340 | Makes ed25519 keys work for hostbased authentication (ssh-keysign | ||
3341 | previously used the PEM-only routines). | ||
3342 | |||
3343 | Fixes key comment regression bz#2306: key pathnames were being lost as | ||
3344 | comment fields. | ||
3345 | |||
3346 | ok markus@ | ||
3347 | |||
3348 | commit febbe09e4e9aff579b0c5cc1623f756862e4757d | ||
3349 | Author: tedu@openbsd.org <tedu@openbsd.org> | ||
3350 | Date: Wed Jan 7 18:15:07 2015 +0000 | ||
3351 | |||
3352 | upstream commit | ||
3353 | |||
3354 | workaround for the Meyer, et al, Bleichenbacher Side | ||
3355 | Channel Attack. fake up a bignum key before RSA decryption. discussed/ok djm | ||
3356 | markus | ||
3357 | |||
3358 | commit 5191df927db282d3123ca2f34a04d8d96153911a | ||
3359 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3360 | Date: Tue Dec 23 22:42:48 2014 +0000 | ||
3361 | |||
3362 | upstream commit | ||
3363 | |||
3364 | KNF and add a little more debug() | ||
3365 | |||
3366 | commit 8abd80315d3419b20e6938f74d37e2e2b547f0b7 | ||
3367 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
3368 | Date: Mon Dec 22 09:26:31 2014 +0000 | ||
3369 | |||
3370 | upstream commit | ||
3371 | |||
3372 | add fingerprinthash to the options list; | ||
3373 | |||
3374 | commit 296ef0560f60980da01d83b9f0e1a5257826536f | ||
3375 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
3376 | Date: Mon Dec 22 09:24:59 2014 +0000 | ||
3377 | |||
3378 | upstream commit | ||
3379 | |||
3380 | tweak previous; | ||
3381 | |||
3382 | commit 462082eacbd37778a173afb6b84c6f4d898a18b5 | ||
3383 | Author: Damien Miller <djm@google.com> | ||
3384 | Date: Tue Dec 30 08:16:11 2014 +1100 | ||
3385 | |||
3386 | avoid uninitialised free of ldns_res | ||
3387 | |||
3388 | If an invalid rdclass was passed to getrrsetbyname() then | ||
3389 | this would execute a free on an uninitialised pointer. | ||
3390 | OpenSSH only ever calls this with a fixed and valid rdclass. | ||
3391 | |||
3392 | Reported by Joshua Rogers | ||
3393 | |||
3394 | commit 01b63498801053f131a0740eb9d13faf35d636c8 | ||
3395 | Author: Damien Miller <djm@google.com> | ||
3396 | Date: Mon Dec 29 18:10:18 2014 +1100 | ||
3397 | |||
3398 | pull updated OpenBSD BCrypt PBKDF implementation | ||
3399 | |||
3400 | Includes fix for 1 byte output overflow for large key length | ||
3401 | requests (not reachable in OpenSSH). | ||
3402 | |||
3403 | Pointed out by Joshua Rogers | ||
3404 | |||
3405 | commit c528c1b4af2f06712177b3de9b30705752f7cbcb | ||
3406 | Author: Damien Miller <djm@google.com> | ||
3407 | Date: Tue Dec 23 15:26:13 2014 +1100 | ||
3408 | |||
3409 | fix variable name for IPv6 case in construct_utmpx | ||
3410 | |||
3411 | patch from writeonce AT midipix.org via bz#2296 | ||
3412 | |||
3413 | commit 293cac52dcda123244b2e594d15592e5e481c55e | ||
3414 | Author: Damien Miller <djm@google.com> | ||
3415 | Date: Mon Dec 22 16:30:42 2014 +1100 | ||
3416 | |||
3417 | include and use OpenBSD netcat in regress/ | ||
3418 | |||
3419 | commit 8f6784f0cb56dc4fd00af3e81a10050a5785228d | ||
3420 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3421 | Date: Mon Dec 22 09:05:17 2014 +0000 | ||
3422 | |||
3423 | upstream commit | ||
3424 | |||
3425 | mention ssh -Q feature to list supported { MAC, cipher, | ||
3426 | KEX, key } algorithms in more places and include the query string used to | ||
3427 | list the relevant information; bz#2288 | ||
3428 | |||
3429 | commit 449e11b4d7847079bd0a2daa6e3e7ea03d8ef700 | ||
3430 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
3431 | Date: Mon Dec 22 08:24:17 2014 +0000 | ||
3432 | |||
3433 | upstream commit | ||
3434 | |||
3435 | tweak previous; | ||
3436 | |||
3437 | commit 4bea0ab3290c0b9dd2aa199e932de8e7e18062d6 | ||
3438 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3439 | Date: Mon Dec 22 08:06:03 2014 +0000 | ||
3440 | |||
3441 | upstream commit | ||
3442 | |||
3443 | regression test for multiple required pubkey authentication; | ||
3444 | ok markus@ | ||
3445 | |||
3446 | commit f1c4d8ec52158b6f57834b8cd839605b0a33e7f2 | ||
3447 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3448 | Date: Mon Dec 22 08:04:23 2014 +0000 | ||
3449 | |||
3450 | upstream commit | ||
3451 | |||
3452 | correct description of what will happen when a | ||
3453 | AuthorizedKeysCommand is specified but AuthorizedKeysCommandUser is not (sshd | ||
3454 | will refuse to start) | ||
3455 | |||
3456 | commit 161cf419f412446635013ac49e8c660cadc36080 | ||
3457 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3458 | Date: Mon Dec 22 07:55:51 2014 +0000 | ||
3459 | |||
3460 | upstream commit | ||
3461 | |||
3462 | make internal handling of filename arguments of "none" | ||
3463 | more consistent with ssh. "none" arguments are now replaced with NULL when | ||
3464 | the configuration is finalised. | ||
3465 | |||
3466 | Simplifies checking later on (just need to test not-NULL rather than | ||
3467 | that + strcmp) and cleans up some inconsistencies. ok markus@ | ||
3468 | |||
3469 | commit f69b69b8625be447b8826b21d87713874dac25a6 | ||
3470 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3471 | Date: Mon Dec 22 07:51:30 2014 +0000 | ||
3472 | |||
3473 | upstream commit | ||
3474 | |||
3475 | remember which public keys have been used for | ||
3476 | authentication and refuse to accept previously-used keys. | ||
3477 | |||
3478 | This allows AuthenticationMethods=publickey,publickey to require | ||
3479 | that users authenticate using two _different_ pubkeys. | ||
3480 | |||
3481 | ok markus@ | ||
3482 | |||
3483 | commit 46ac2ed4677968224c4ca825bc98fc68dae183f0 | ||
3484 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3485 | Date: Mon Dec 22 07:24:11 2014 +0000 | ||
3486 | |||
3487 | upstream commit | ||
3488 | |||
3489 | fix passing of wildcard forward bind addresses when | ||
3490 | connection multiplexing is in use; patch from Sami Hartikainen via bz#2324; | ||
3491 | ok dtucker@ | ||
3492 | |||
3493 | commit 0d1b241a262e4d0a6bbfdd595489ab1b853c43a1 | ||
3494 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3495 | Date: Mon Dec 22 06:14:29 2014 +0000 | ||
3496 | |||
3497 | upstream commit | ||
3498 | |||
3499 | make this slightly easier to diff against portable | ||
3500 | |||
3501 | commit 0715bcdddbf68953964058f17255bf54734b8737 | ||
3502 | Author: Damien Miller <djm@mindrot.org> | ||
3503 | Date: Mon Dec 22 13:47:07 2014 +1100 | ||
3504 | |||
3505 | add missing regress output file | ||
3506 | |||
3507 | commit 1e30483c8ad2c2f39445d4a4b6ab20c241e40593 | ||
3508 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3509 | Date: Mon Dec 22 02:15:52 2014 +0000 | ||
3510 | |||
3511 | upstream commit | ||
3512 | |||
3513 | adjust for new SHA256 key fingerprints and | ||
3514 | slightly-different MD5 hex fingerprint format | ||
3515 | |||
3516 | commit 6b40567ed722df98593ad8e6a2d2448fc2b4b151 | ||
3517 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3518 | Date: Mon Dec 22 01:14:49 2014 +0000 | ||
3519 | |||
3520 | upstream commit | ||
3521 | |||
3522 | poll changes to netcat (usr.bin/netcat.c r1.125) broke | ||
3523 | this test; fix it by ensuring more stdio fds are sent to devnull | ||
3524 | |||
3525 | commit a5375ccb970f49dddf7d0ef63c9b713ede9e7260 | ||
3526 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
3527 | Date: Sun Dec 21 23:35:14 2014 +0000 | ||
3528 | |||
3529 | upstream commit | ||
3530 | |||
3531 | tweak previous; | ||
3532 | |||
3533 | commit b79efde5c3badf5ce4312fe608d8307eade533c5 | ||
3534 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3535 | Date: Sun Dec 21 23:12:42 2014 +0000 | ||
3536 | |||
3537 | upstream commit | ||
3538 | |||
3539 | document FingerprintHash here too | ||
3540 | |||
3541 | commit d16bdd8027dd116afa01324bb071a4016cdc1a75 | ||
3542 | Author: Damien Miller <djm@mindrot.org> | ||
3543 | Date: Mon Dec 22 10:18:09 2014 +1100 | ||
3544 | |||
3545 | missing include for base64 encoding | ||
3546 | |||
3547 | commit 56d1c83cdd1ac76f1c6bd41e01e80dad834f3994 | ||
3548 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3549 | Date: Sun Dec 21 22:27:55 2014 +0000 | ||
3550 | |||
3551 | upstream commit | ||
3552 | |||
3553 | Add FingerprintHash option to control algorithm used for | ||
3554 | key fingerprints. Default changes from MD5 to SHA256 and format from hex to | ||
3555 | base64. | ||
3556 | |||
3557 | Feedback and ok naddy@ markus@ | ||
3558 | |||
3559 | commit 058f839fe15c51be8b3a844a76ab9a8db550be4f | ||
3560 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3561 | Date: Thu Dec 18 23:58:04 2014 +0000 | ||
3562 | |||
3563 | upstream commit | ||
3564 | |||
3565 | don't count partial authentication success as a failure | ||
3566 | against MaxAuthTries; ok deraadt@ | ||
3567 | |||
3568 | commit c7219f4f54d64d6dde66dbcf7a2699daa782d2a1 | ||
3569 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3570 | Date: Fri Dec 12 00:02:17 2014 +0000 | ||
3571 | |||
3572 | upstream commit | ||
3573 | |||
3574 | revert chunk I didn't mean to commit yet; via jmc@ | ||
3575 | |||
3576 | commit 7de5991aa3997e2981440f39c1ea01273a0a2c7b | ||
3577 | Author: Damien Miller <djm@mindrot.org> | ||
3578 | Date: Thu Dec 18 11:44:06 2014 +1100 | ||
3579 | |||
3580 | upstream libc change | ||
3581 | |||
3582 | revision 1.2 | ||
3583 | date: 2014/12/08 03:45:00; author: bcook; state: Exp; lines: +2 -2; commitid: 7zWEBgJJOCZ2hvTV; | ||
3584 | avoid left shift overflow in reallocarray. | ||
3585 | |||
3586 | Some 64-bit platforms (e.g. Windows 64) have a 32-bit long. So, shifting | ||
3587 | 1UL 32-bits to the left causes an overflow. This replaces the constant 1UL with | ||
3588 | (size_t)1 so that we get the correct constant size for the platform. | ||
3589 | |||
3590 | discussed with tedu@ & deraadt@ | ||
3591 | |||
3592 | commit 2048f85a5e6da8bc6e0532efe02ecfd4e63c978c | ||
3593 | Author: Damien Miller <djm@mindrot.org> | ||
3594 | Date: Thu Dec 18 10:15:49 2014 +1100 | ||
3595 | |||
3596 | include CFLAGS in gnome askpass targets | ||
3597 | |||
3598 | from Fedora | ||
3599 | |||
3600 | commit 48b68ce19ca42fa488960028048dec023f7899bb | ||
3601 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3602 | Date: Thu Dec 11 08:20:09 2014 +0000 | ||
3603 | |||
3604 | upstream commit | ||
3605 | |||
3606 | explicitly include sys/param.h in files that use the | ||
3607 | howmany() macro; from portable | ||
3608 | |||
3609 | commit d663bea30a294d440fef4398e5cd816317bd4518 | ||
3610 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3611 | Date: Thu Dec 11 05:25:06 2014 +0000 | ||
3612 | |||
3613 | upstream commit | ||
3614 | |||
3615 | mention AuthorizedKeysCommandUser must be set for | ||
3616 | AuthorizedKeysCommand to be run; bz#2287 | ||
3617 | |||
3618 | commit 17bf3d81e00f2abb414a4fd271118cf4913f049f | ||
3619 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3620 | Date: Thu Dec 11 05:13:28 2014 +0000 | ||
3621 | |||
3622 | upstream commit | ||
3623 | |||
3624 | show in debug output which hostkeys are being tried when | ||
3625 | attempting hostbased auth; patch from Iain Morgan | ||
3626 | |||
3627 | commit da0277e3717eadf5b15e03379fc29db133487e94 | ||
3628 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3629 | Date: Thu Dec 11 04:16:14 2014 +0000 | ||
3630 | |||
3631 | upstream commit | ||
3632 | |||
3633 | Make manual reflect reality: sftp-server's -d option | ||
3634 | accepts a "%d" option, not a "%h" one. | ||
3635 | |||
3636 | bz#2316; reported by Kirk Wolf | ||
3637 | |||
3638 | commit 4cf87f4b81fa9380bce5fcff7b0f8382ae3ad996 | ||
3639 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3640 | Date: Wed Dec 10 01:24:09 2014 +0000 | ||
3641 | |||
3642 | upstream commit | ||
3643 | |||
3644 | better error value for invalid signature length | ||
3645 | |||
3646 | commit 4bfad14ca56f8ae04f418997816b4ba84e2cfc3c | ||
3647 | Author: Darren Tucker <dtucker@zip.com.au> | ||
3648 | Date: Wed Dec 10 02:12:51 2014 +1100 | ||
3649 | |||
3650 | Resync more with OpenBSD's rijndael.c, in particular "#if 0"-ing out some | ||
3651 | unused code. Should fix compile error reported by plautrba at redhat. | ||
3652 | |||
3653 | commit 642652d280499691c8212ec6b79724b50008ce09 | ||
3654 | Author: Darren Tucker <dtucker@zip.com.au> | ||
3655 | Date: Wed Dec 10 01:32:23 2014 +1100 | ||
3656 | |||
3657 | Add reallocarray to compat library | ||
3658 | |||
3659 | commit 3dfd8d93dfcc69261f5af99df56f3ff598581979 | ||
3660 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3661 | Date: Thu Dec 4 22:31:50 2014 +0000 | ||
3662 | |||
3663 | upstream commit | ||
3664 | |||
3665 | add tests for new client RevokedHostKeys option; refactor | ||
3666 | to make it a bit more readable | ||
3667 | |||
3668 | commit a31046cad1aed16a0b55171192faa6d02665ccec | ||
3669 | Author: krw@openbsd.org <krw@openbsd.org> | ||
3670 | Date: Wed Nov 19 13:35:37 2014 +0000 | ||
3671 | |||
3672 | upstream commit | ||
3673 | |||
3674 | Nuke yet more obvious #include duplications. | ||
3675 | |||
3676 | ok deraadt@ | ||
3677 | |||
3678 | commit a7c762e5b2c1093542c0bc1df25ccec0b4cf479f | ||
3679 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3680 | Date: Thu Dec 4 20:47:36 2014 +0000 | ||
3681 | |||
3682 | upstream commit | ||
3683 | |||
3684 | key_in_file() wrapper is no longer used | ||
3685 | |||
3686 | commit 5e39a49930d885aac9c76af3129332b6e772cd75 | ||
3687 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3688 | Date: Thu Dec 4 02:24:32 2014 +0000 | ||
3689 | |||
3690 | upstream commit | ||
3691 | |||
3692 | add RevokedHostKeys option for the client | ||
3693 | |||
3694 | Allow textfile or KRL-based revocation of hostkeys. | ||
3695 | |||
3696 | commit 74de254bb92c684cf53461da97f52d5ba34ded80 | ||
3697 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3698 | Date: Thu Dec 4 01:49:59 2014 +0000 | ||
3699 | |||
3700 | upstream commit | ||
3701 | |||
3702 | convert KRL code to new buffer API | ||
3703 | |||
3704 | ok markus@ | ||
3705 | |||
3706 | commit db995f2eed5fc432598626fa3e30654503bf7151 | ||
3707 | Author: millert@openbsd.org <millert@openbsd.org> | ||
3708 | Date: Wed Nov 26 18:34:51 2014 +0000 | ||
3709 | |||
3710 | upstream commit | ||
3711 | |||
3712 | Prefer setvbuf() to setlinebuf() for portability; ok | ||
3713 | deraadt@ | ||
3714 | |||
3715 | commit 72bba3d179ced8b425272efe6956a309202a91f3 | ||
3716 | Author: jsg@openbsd.org <jsg@openbsd.org> | ||
3717 | Date: Mon Nov 24 03:39:22 2014 +0000 | ||
3718 | |||
3719 | upstream commit | ||
3720 | |||
3721 | Fix crashes in the handling of the sshd config file found | ||
3722 | with the afl fuzzer. | ||
3723 | |||
3724 | ok deraadt@ djm@ | ||
3725 | |||
3726 | commit 867f49c666adcfe92bf539d9c37c1accdea08bf6 | ||
3727 | Author: Damien Miller <djm@mindrot.org> | ||
3728 | Date: Wed Nov 26 13:22:41 2014 +1100 | ||
3729 | |||
3730 | Avoid Cygwin ssh-host-config reading /etc/group | ||
3731 | |||
3732 | Patch from Corinna Vinschen | ||
3733 | |||
3734 | commit 8b66f36291a721b1ba7c44f24a07fdf39235593e | ||
3735 | Author: Damien Miller <djm@mindrot.org> | ||
3736 | Date: Wed Nov 26 13:20:35 2014 +1100 | ||
3737 | |||
3738 | allow custom service name for sshd on Cygwin | ||
3739 | |||
3740 | Permits the use of multiple sshd running with different service names. | ||
3741 | |||
3742 | Patch by Florian Friesdorf via Corinna Vinschen | ||
3743 | |||
3744 | commit 08c0eebf55d70a9ae1964399e609288ae3186a0c | ||
3745 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
3746 | Date: Sat Nov 22 19:21:03 2014 +0000 | ||
3747 | |||
3748 | upstream commit | ||
3749 | |||
3750 | restore word zapped in previous, and remove some useless | ||
3751 | "No" macros; | ||
3752 | |||
3753 | commit a1418a0033fba43f061513e992e1cbcc3343e563 | ||
3754 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
3755 | Date: Sat Nov 22 18:15:41 2014 +0000 | ||
3756 | |||
3757 | upstream commit | ||
3758 | |||
3759 | /dev/random has created the same effect as /dev/arandom | ||
3760 | (and /dev/urandom) for quite some time. Mop up the last few, by using | ||
3761 | /dev/random where we actually want it, or not even mentioning arandom where | ||
3762 | it is irrelevant. | ||
3763 | |||
3764 | commit b6de5ac9ed421362f479d1ad4fa433d2e25dad5b | ||
3765 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3766 | Date: Fri Nov 21 01:00:38 2014 +0000 | ||
3767 | |||
3768 | upstream commit | ||
3769 | |||
3770 | fix NULL pointer dereference crash on invalid timestamp | ||
3771 | |||
3772 | found using Michal Zalewski's afl fuzzer | ||
3773 | |||
3774 | commit a1f8110cd5ed818d59b3a2964fab7de76e92c18e | ||
3775 | Author: mikeb@openbsd.org <mikeb@openbsd.org> | ||
3776 | Date: Tue Nov 18 22:38:48 2014 +0000 | ||
3777 | |||
3778 | upstream commit | ||
3779 | |||
3780 | Sync AES code to the one shipped in OpenSSL/LibreSSL. | ||
3781 | |||
3782 | This includes a commit made by Andy Polyakov <appro at openssl ! org> | ||
3783 | to the OpenSSL source tree on Wed, 28 Jun 2006 with the following | ||
3784 | message: "Mitigate cache-collision timing attack on last round." | ||
3785 | |||
3786 | OK naddy, miod, djm | ||
3787 | |||
3788 | commit 335c83d5f35d8620e16b8aa26592d4f836e09ad2 | ||
3789 | Author: krw@openbsd.org <krw@openbsd.org> | ||
3790 | Date: Tue Nov 18 20:54:28 2014 +0000 | ||
3791 | |||
3792 | upstream commit | ||
3793 | |||
3794 | Nuke more obvious #include duplications. | ||
3795 | |||
3796 | ok deraadt@ millert@ tedu@ | ||
3797 | |||
3798 | commit 51b64e44121194ae4bf153dee391228dada2abcb | ||
3799 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3800 | Date: Mon Nov 17 00:21:40 2014 +0000 | ||
3801 | |||
3802 | upstream commit | ||
3803 | |||
3804 | fix KRL generation when multiple CAs are in use | ||
3805 | |||
3806 | We would generate an invalid KRL when revoking certs by serial | ||
3807 | number for multiple CA keys due to a section being written out | ||
3808 | twice. | ||
3809 | |||
3810 | Also extend the regress test to catch this case by having it | ||
3811 | produce a multi-CA KRL. | ||
3812 | |||
3813 | Reported by peter AT pean.org | ||
3814 | |||
3815 | commit d2d51003a623e21fb2b25567c4878d915e90aa2a | ||
3816 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3817 | Date: Tue Nov 18 01:02:25 2014 +0000 | ||
3818 | |||
3819 | upstream commit | ||
3820 | |||
3821 | fix NULL pointer dereference crash in key loading | ||
3822 | |||
3823 | found by Michal Zalewski's AFL fuzzer | ||
3824 | |||
3825 | commit 9f9fad0191028edc43d100d0ded39419b6895fdf | ||
3826 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3827 | Date: Mon Nov 17 00:21:40 2014 +0000 | ||
3828 | |||
3829 | upstream commit | ||
3830 | |||
3831 | fix KRL generation when multiple CAs are in use | ||
3832 | |||
3833 | We would generate an invalid KRL when revoking certs by serial | ||
3834 | number for multiple CA keys due to a section being written out | ||
3835 | twice. | ||
3836 | |||
3837 | Also extend the regress test to catch this case by having it | ||
3838 | produce a multi-CA KRL. | ||
3839 | |||
3840 | Reported by peter AT pean.org | ||
3841 | |||
3842 | commit da8af83d3f7ec00099963e455010e0ed1d7d0140 | ||
3843 | Author: bentley@openbsd.org <bentley@openbsd.org> | ||
3844 | Date: Sat Nov 15 14:41:03 2014 +0000 | ||
3845 | |||
3846 | upstream commit | ||
3847 | |||
3848 | Reduce instances of `` '' in manuals. | ||
3849 | |||
3850 | troff displays these as typographic quotes, but nroff implementations | ||
3851 | almost always print them literally, which rarely has the intended effect | ||
3852 | with modern fonts, even in stock xterm. | ||
3853 | |||
3854 | These uses of `` '' can be replaced either with more semantic alternatives | ||
3855 | or with Dq, which prints typographic quotes in a UTF-8 locale (but will | ||
3856 | automatically fall back to `` '' in an ASCII locale). | ||
3857 | |||
3858 | improvements and ok schwarze@ | ||
3859 | |||
3860 | commit fc302561369483bb755b17f671f70fb894aec01d | ||
3861 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3862 | Date: Mon Nov 10 22:25:49 2014 +0000 | ||
3863 | |||
3864 | upstream commit | ||
3865 | |||
3866 | mux-related manual tweaks | ||
3867 | |||
3868 | mention ControlPersist=0 is the same as ControlPersist=yes | ||
3869 | |||
3870 | recommend that ControlPath sockets be placed in a og-w directory | ||
3871 | |||
3872 | commit 0e4cff5f35ed11102fe3783779960ef07e0cd381 | ||
3873 | Author: Damien Miller <djm@google.com> | ||
3874 | Date: Wed Nov 5 11:01:31 2014 +1100 | ||
3875 | |||
3876 | Prepare scripts for next Cygwin release | ||
3877 | |||
3878 | Makes the Cygwin-specific ssh-user-config script independent of the | ||
3879 | existence of /etc/passwd. The next Cygwin release will allow to | ||
3880 | generate passwd and group entries from the Windows account DBs, so the | ||
3881 | scripts have to adapt. | ||
3882 | |||
3883 | from Corinna Vinschen | ||
3884 | |||
3885 | commit 7d0ba5336651731949762eb8877ce9e3b52df436 | ||
3886 | Author: Damien Miller <djm@mindrot.org> | ||
3887 | Date: Thu Oct 30 10:45:41 2014 +1100 | ||
3888 | |||
3889 | include version number in OpenSSL-too-old error | ||
3890 | |||
3891 | commit 3bcb92e04d9207e9f78d82f7918c6d3422054ce9 | ||
3892 | Author: lteo@openbsd.org <lteo@openbsd.org> | ||
3893 | Date: Fri Oct 24 02:01:20 2014 +0000 | ||
3894 | |||
3895 | upstream commit | ||
3896 | |||
3897 | Remove unnecessary include: netinet/in_systm.h is not needed | ||
3898 | by these programs. | ||
3899 | |||
3900 | NB. skipped for portable | ||
3901 | |||
3902 | ok deraadt@ millert@ | ||
3903 | |||
3904 | commit 6fdcaeb99532e28a69f1a1599fbd540bb15b70a0 | ||
3905 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3906 | Date: Mon Oct 20 03:43:01 2014 +0000 | ||
3907 | |||
3908 | upstream commit | ||
3909 | |||
3910 | whitespace | ||
3911 | |||
3912 | commit 165bc8786299e261706ed60342985f9de93a7461 | ||
3913 | Author: daniel@openbsd.org <daniel@openbsd.org> | ||
3914 | Date: Tue Oct 14 03:09:59 2014 +0000 | ||
3915 | |||
3916 | upstream commit | ||
3917 | |||
3918 | plug a memory leak; from Maxime Villard. | ||
3919 | |||
3920 | ok djm@ | ||
3921 | |||
3922 | commit b1ba15f3885947c245c2dbfaad0a04ba050abea0 | ||
3923 | Author: jmc@openbsd.org <jmc@openbsd.org> | ||
3924 | Date: Thu Oct 9 06:21:31 2014 +0000 | ||
3925 | |||
3926 | upstream commit | ||
3927 | |||
3928 | tweak previous; | ||
3929 | |||
3930 | commit 259a02ebdf74ad90b41d116ecf70aa823fa4c6e7 | ||
3931 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3932 | Date: Mon Oct 13 00:38:35 2014 +0000 | ||
3933 | |||
3934 | upstream commit | ||
3935 | |||
3936 | whitespace | ||
3937 | |||
3938 | commit 957fbceb0f3166e41b76fdb54075ab3b9cc84cba | ||
3939 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3940 | Date: Wed Oct 8 22:20:25 2014 +0000 | ||
3941 | |||
3942 | upstream commit | ||
3943 | |||
3944 | Tweak config reparsing with host canonicalisation | ||
3945 | |||
3946 | Make the second pass through the config files always run when | ||
3947 | hostname canonicalisation is enabled. | ||
3948 | |||
3949 | Add a "Match canonical" criteria that allows ssh_config Match | ||
3950 | blocks to trigger only in the second config pass. | ||
3951 | |||
3952 | Add a -G option to ssh that causes it to parse its configuration | ||
3953 | and dump the result to stdout, similar to "sshd -T" | ||
3954 | |||
3955 | Allow ssh_config Port options set in the second config parse | ||
3956 | phase to be applied (they were being ignored). | ||
3957 | |||
3958 | bz#2267 bz#2286; ok markus | ||
3959 | |||
3960 | commit 5c0dafd38bf66feeeb45fa0741a5baf5ad8039ba | ||
3961 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3962 | Date: Wed Oct 8 22:15:27 2014 +0000 | ||
3963 | |||
3964 | upstream commit | ||
3965 | |||
3966 | another -Wpointer-sign from clang | ||
3967 | |||
3968 | commit bb005dc815ebda9af3ae4b39ca101c4da918f835 | ||
3969 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3970 | Date: Wed Oct 8 22:15:06 2014 +0000 | ||
3971 | |||
3972 | upstream commit | ||
3973 | |||
3974 | fix a few -Wpointer-sign warnings from clang | ||
3975 | |||
3976 | commit 3cc1fbb4fb0e804bfb873fd363cea91b27fc8188 | ||
3977 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3978 | Date: Wed Oct 8 21:45:48 2014 +0000 | ||
3979 | |||
3980 | upstream commit | ||
3981 | |||
3982 | parse cert sections using nested buffers to reduce | ||
3983 | copies; ok markus | ||
3984 | |||
3985 | commit 4a45922aebf99164e2fc83d34fe55b11ae1866ef | ||
3986 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3987 | Date: Mon Oct 6 00:47:15 2014 +0000 | ||
3988 | |||
3989 | upstream commit | ||
3990 | |||
3991 | correct options in usage(); from mancha1 AT zoho.com | ||
3992 | |||
3993 | commit 48dffd5bebae6fed0556dc5c36cece0370690618 | ||
3994 | Author: djm@openbsd.org <djm@openbsd.org> | ||
3995 | Date: Tue Sep 9 09:45:36 2014 +0000 | ||
3996 | |||
3997 | upstream commit | ||
3998 | |||
3999 | mention permissions on tun(4) devices in PermitTunnel | ||
4000 | documentation; bz#2273 | ||
4001 | |||
4002 | commit a5883d4eccb94b16c355987f58f86a7dee17a0c2 | ||
4003 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4004 | Date: Wed Sep 3 18:55:07 2014 +0000 | ||
4005 | |||
4006 | upstream commit | ||
4007 | |||
4008 | tighten permissions on pty when the "tty" group does | ||
4009 | not exist; pointed out by Corinna Vinschen; ok markus | ||
4010 | |||
4011 | commit 180bcb406b58bf30723c01a6b010e48ee626dda8 | ||
4012 | Author: sobrado@openbsd.org <sobrado@openbsd.org> | ||
4013 | Date: Sat Aug 30 16:32:25 2014 +0000 | ||
4014 | |||
4015 | upstream commit | ||
4016 | |||
4017 | typo. | ||
4018 | |||
4019 | commit f70b22bcdd52f6bf127047b3584371e6e5d45627 | ||
4020 | Author: sobrado@openbsd.org <sobrado@openbsd.org> | ||
4021 | Date: Sat Aug 30 15:33:50 2014 +0000 | ||
4022 | |||
4023 | upstream commit | ||
4024 | |||
4025 | improve capitalization for the Ed25519 public-key | ||
4026 | signature system. | ||
4027 | |||
4028 | ok djm@ | ||
4029 | |||
4030 | commit 7df8818409c752cf3f0c3f8044fe9aebed8647bd | ||
4031 | Author: doug@openbsd.org <doug@openbsd.org> | ||
4032 | Date: Thu Aug 21 01:08:52 2014 +0000 | ||
4033 | |||
4034 | upstream commit | ||
4035 | |||
4036 | Free resources on error in mkstemp and fdopen | ||
4037 | |||
4038 | ok djm@ | ||
4039 | |||
4040 | commit 40ba4c9733aaed08304714faeb61529f18da144b | ||
4041 | Author: deraadt@openbsd.org <deraadt@openbsd.org> | ||
4042 | Date: Wed Aug 20 01:28:55 2014 +0000 | ||
4043 | |||
4044 | upstream commit | ||
4045 | |||
4046 | djm how did you make a typo like that... | ||
4047 | |||
4048 | commit 57d378ec9278ba417a726f615daad67d157de666 | ||
4049 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4050 | Date: Tue Aug 19 23:58:28 2014 +0000 | ||
4051 | |||
4052 | upstream commit | ||
4053 | |||
4054 | When dumping the server configuration (sshd -T), print | ||
4055 | correct KEX, MAC and cipher defaults. Spotted by Iain Morgan | ||
4056 | |||
4057 | commit 7ff880ede5195d0b17e7f1e3b6cfbc4cb6f85240 | ||
4058 | Author: djm@openbsd.org <djm@openbsd.org> | ||
4059 | Date: Tue Aug 19 23:57:18 2014 +0000 | ||
4060 | |||
4061 | upstream commit | ||
4062 | |||
4063 | ~-expand lcd paths | ||
4064 | |||
4065 | commit 4460a7ad0c78d4cd67c467f6e9f4254d0404ed59 | ||
4066 | Author: Damien Miller <djm@mindrot.org> | ||
4067 | Date: Sun Oct 12 12:35:48 2014 +1100 | ||
4068 | |||
4069 | remove duplicated KEX_DH1 entry | ||
4070 | |||
4071 | commit c9b8426a616138d0d762176c94f51aff3faad5ff | ||
4072 | Author: Damien Miller <djm@mindrot.org> | ||
4073 | Date: Thu Oct 9 10:34:06 2014 +1100 | ||
4074 | |||
4075 | remove ChangeLog file | ||
4076 | |||
4077 | Commit logs will be generated from git at release time. | ||
4078 | |||
4079 | commit 81d18ff7c93a04affbf3903e0963859763219aed | ||
4080 | Author: Damien Miller <djm@google.com> | ||
4081 | Date: Tue Oct 7 21:24:25 2014 +1100 | ||
4082 | |||
4083 | delete contrib/caldera directory | ||
4084 | |||
4085 | commit 0ec9e87d3638206456968202f05bb5123670607a | ||
4086 | Author: Damien Miller <djm@google.com> | ||
4087 | Date: Tue Oct 7 19:57:27 2014 +1100 | ||
4088 | |||
4089 | test commit | ||
4090 | |||
4091 | commit 8fb65a44568701b779f3d77326bceae63412d28d | ||
4092 | Author: Damien Miller <djm@mindrot.org> | ||
4093 | Date: Tue Oct 7 09:21:49 2014 +1100 | ||
4094 | |||
4095 | - (djm) Release OpenSSH-6.7 | ||
4096 | |||
4097 | commit e8c9f2602c46f6781df5e52e6cd8413dab4602a3 | ||
4098 | Author: Damien Miller <djm@mindrot.org> | ||
4099 | Date: Fri Oct 3 09:24:56 2014 +1000 | ||
4100 | |||
4101 | - (djm) [sshd_config.5] typo; from Iain Morgan | ||
4102 | |||
4103 | commit 703b98a26706f5083801d11059486d77491342ae | ||
4104 | Author: Damien Miller <djm@mindrot.org> | ||
4105 | Date: Wed Oct 1 09:43:07 2014 +1000 | ||
4106 | |||
4107 | - (djm) [openbsd-compat/Makefile.in openbsd-compat/kludge-fd_set.c] | ||
4108 | [openbsd-compat/openbsd-compat.h] Kludge around bad glibc | ||
4109 | _FORTIFY_SOURCE check that doesn't grok heap-allocated fd_sets; | ||
4110 | ok dtucker@ | ||
4111 | |||
4112 | commit 0fa0ed061bbfedb0daa705e220748154a84c3413 | ||
4113 | Author: Damien Miller <djm@mindrot.org> | ||
4114 | Date: Wed Sep 10 08:15:34 2014 +1000 | ||
4115 | |||
4116 | - (djm) [sandbox-seccomp-filter.c] Allow mremap and exit for DietLibc; | ||
4117 | patch from Felix von Leitner; ok dtucker | ||
4118 | |||
4119 | commit ad7d23d461c3b7e1dcb15db13aee5f4b94dc1a95 | ||
4120 | Author: Darren Tucker <dtucker@zip.com.au> | ||
4121 | Date: Tue Sep 9 12:23:10 2014 +1000 | ||
4122 | |||
4123 | 20140908 | ||
4124 | - (dtucker) [INSTALL] Update info about egd. ok djm@ | ||
4125 | |||
4126 | commit 2a8699f37cc2515e3bc60e0c677ba060f4d48191 | ||
4127 | Author: Damien Miller <djm@mindrot.org> | ||
4128 | Date: Thu Sep 4 03:46:05 2014 +1000 | ||
4129 | |||
4130 | - (djm) [openbsd-compat/arc4random.c] Zero seed after keying PRNG | ||
4131 | |||
4132 | commit 44988defb1f5e3afe576d86000365e1f07a1b494 | ||
4133 | Author: Damien Miller <djm@mindrot.org> | ||
4134 | Date: Wed Sep 3 05:35:32 2014 +1000 | ||
4135 | |||
4136 | - (djm) [contrib/cygwin/ssh-host-config] Fix old code leading to | ||
4137 | permissions/ACLs; from Corinna Vinschen | ||
4138 | |||
4139 | commit 23f269562b7537b2f6f5014e50a25e5dcc55a837 | ||
4140 | Author: Damien Miller <djm@mindrot.org> | ||
4141 | Date: Wed Sep 3 05:33:25 2014 +1000 | ||
4142 | |||
4143 | - (djm) [defines.h sshbuf.c] Move __predict_true|false to defines.h and | ||
4144 | conditionalise to avoid duplicate definition. | ||
4145 | |||
4146 | commit 41c8de2c0031cf59e7cf0c06b5bcfbf4852c1fda | ||
4147 | Author: Damien Miller <djm@mindrot.org> | ||
4148 | Date: Sat Aug 30 16:23:06 2014 +1000 | ||
4149 | |||
4150 | - (djm) [Makefile.in] Make TEST_SHELL a variable; "good idea" tim@ | ||
4151 | |||
4152 | commit d7c81e216a7bd9eed6e239c970d9261bb1651947 | ||
4153 | Author: Damien Miller <djm@mindrot.org> | ||
4154 | Date: Sat Aug 30 04:18:28 2014 +1000 | ||
4155 | |||
4156 | - (djm) [openbsd-compat/openssl-compat.h] add include guard | ||
4157 | |||
4158 | commit 4687802dda57365b984b897fc3c8e2867ea09b22 | ||
4159 | Author: Damien Miller <djm@mindrot.org> | ||
4160 | Date: Sat Aug 30 03:29:19 2014 +1000 | ||
4161 | |||
4162 | - (djm) [misc.c] Missing newline between functions | ||
4163 | |||
4164 | commit 51c77e29220dee87c53be2dc47092934acab26fe | ||
4165 | Author: Damien Miller <djm@mindrot.org> | ||
4166 | Date: Sat Aug 30 02:30:30 2014 +1000 | ||
4167 | |||
4168 | - (djm) [openbsd-compat/openssl-compat.h] add | ||
4169 | OPENSSL_[RD]SA_MAX_MODULUS_BITS defines for OpenSSL that lacks them | ||
4170 | |||
4171 | commit 3d673d103bad35afaec6e7ef73e5277216ce33a3 | ||
4172 | Author: Damien Miller <djm@mindrot.org> | ||
4173 | Date: Wed Aug 27 06:32:01 2014 +1000 | ||
4174 | |||
4175 | - (djm) [openbsd-compat/explicit_bzero.c] implement explicit_bzero() | ||
4176 | using memset_s() where possible; improve fallback to indirect bzero | ||
4177 | via a volatile pointer to give it more of a chance to avoid being | ||
4178 | optimised away. | ||
4179 | |||
4180 | commit 146218ac11a1eb0dcade6f793d7acdef163b5ddc | ||
4181 | Author: Damien Miller <djm@mindrot.org> | ||
4182 | Date: Wed Aug 27 04:11:55 2014 +1000 | ||
4183 | |||
4184 | - (djm) [monitor.c sshd.c] SIGXFSZ needs to be ignored in postauth | ||
4185 | monitor, not preauth; bz#2263 | ||
4186 | |||
4187 | commit 1b215c098b3b37e38aa4e4c91bb908eee41183b1 | ||
4188 | Author: Damien Miller <djm@mindrot.org> | ||
4189 | Date: Wed Aug 27 04:04:40 2014 +1000 | ||
4190 | |||
4191 | - (djm) [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c] | ||
4192 | [regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c] | ||
4193 | [regress/unittests/sshkey/common.c] | ||
4194 | [regress/unittests/sshkey/test_file.c] | ||
4195 | [regress/unittests/sshkey/test_fuzz.c] | ||
4196 | [regress/unittests/sshkey/test_sshkey.c] Don't include openssl/ec.h | ||
4197 | on !ECC OpenSSL systems | ||
4198 | |||
4199 | commit ad013944af0a19e3f612089d0099bb397cf6502d | ||
4200 | Author: Damien Miller <djm@mindrot.org> | ||
4201 | Date: Tue Aug 26 09:27:28 2014 +1000 | ||
4202 | |||
4203 | - (djm) [INSTALL] Recommend libcrypto be built -fPIC, mention LibreSSL, | ||
4204 | update OpenSSL version requirement. | ||
4205 | |||
4206 | commit ed126de8ee04c66640a0ea2697c4aaf36801f100 | ||
4207 | Author: Damien Miller <djm@mindrot.org> | ||
4208 | Date: Tue Aug 26 08:37:47 2014 +1000 | ||
4209 | |||
4210 | - (djm) [bufec.c] Skip this file on !ECC OpenSSL | ||
4211 | |||
4212 | commit 9c1dede005746864a4fdb36a7cdf6c51296ca909 | ||
4213 | Author: Damien Miller <djm@mindrot.org> | ||
4214 | Date: Sun Aug 24 03:01:06 2014 +1000 | ||
4215 | |||
4216 | - (djm) [sftp-server.c] Some systems (e.g. Irix) have prctl() but not | ||
4217 | PR_SET_DUMPABLE, so adjust ifdef; reported by Tom Christensen | ||
4218 | |||
4219 | commit d244a5816fd1312a33404b436e4dd83594f1119e | ||
4220 | Author: Damien Miller <djm@mindrot.org> | ||
4221 | Date: Sat Aug 23 17:06:49 2014 +1000 | ||
4222 | |||
4223 | - (djm) [configure.ac] We now require a working vsnprintf everywhere (not | ||
4224 | just for systems that lack asprintf); check for it always and extend | ||
4225 | test to catch more brokenness. Fixes builds on Solaris <= 9 | ||
4226 | |||
4227 | commit 4cec036362a358e398e6a2e6d19d8e5780558634 | ||
4228 | Author: Damien Miller <djm@mindrot.org> | ||
4229 | Date: Sat Aug 23 03:11:09 2014 +1000 | ||
4230 | |||
4231 | - (djm) [sshd.c] Ignore SIGXFSZ in preauth monitor child; can explode on | ||
4232 | lastlog writing on platforms with high UIDs; bz#2263 | ||
4233 | |||
4234 | commit 394a60f2598d28b670d934b93942a3370b779b39 | ||
4235 | Author: Damien Miller <djm@mindrot.org> | ||
4236 | Date: Fri Aug 22 18:06:20 2014 +1000 | ||
4237 | |||
4238 | - (djm) [configure.ac] double braces to appease autoconf | ||
4239 | |||
4240 | commit 4d69aeabd6e60afcdc7cca177ca751708ab79a9d | ||
4241 | Author: Damien Miller <djm@mindrot.org> | ||
4242 | Date: Fri Aug 22 17:48:27 2014 +1000 | ||
4243 | |||
4244 | - (djm) [openbsd-compat/bsd-snprintf.c] Fix compilation failure (prototype/ | ||
4245 | definition mismatch) and warning for broken/missing snprintf case. | ||
4246 | |||
4247 | commit 0c11f1ac369d2c0aeb0ab0458a7cd04c72fe5e9e | ||
4248 | Author: Damien Miller <djm@mindrot.org> | ||
4249 | Date: Fri Aug 22 17:36:56 2014 +1000 | ||
4250 | |||
4251 | - (djm) [sshbuf-getput-crypto.c] Fix compilation when OpenSSL lacks ECC | ||
4252 | |||
4253 | commit 6d62784b8973340b251fea6b04890f471adf28db | ||
4254 | Author: Damien Miller <djm@mindrot.org> | ||
4255 | Date: Fri Aug 22 17:36:19 2014 +1000 | ||
4256 | |||
4257 | - (djm) [configure.ac] include leading zero characters in OpenSSL version | ||
4258 | number; fixes test for unsupported versions | ||
4259 | |||
4260 | commit 4f1ff1ed782117f5d5204d4e91156ed5da07cbb7 | ||
4261 | Author: Damien Miller <djm@mindrot.org> | ||
4262 | Date: Thu Aug 21 15:54:50 2014 +1000 | ||
4263 | |||
4264 | - (djm) [regress/unittests/test_helper/test_helper.c] Fix for systems that | ||
4265 | don't set __progname. Diagnosed by Tom Christensen. | ||
4266 | |||
4267 | commit 005a64da0f457410045ef0bfa93c863c2450447d | ||
4268 | Author: Damien Miller <djm@mindrot.org> | ||
4269 | Date: Thu Aug 21 10:48:41 2014 +1000 | ||
4270 | |||
4271 | - (djm) [key.h] Fix ifdefs for no-ECC OpenSSL | ||
4272 | |||
4273 | commit aa6598ebb3343c7380e918388e10e8ca5852b613 | ||
4274 | Author: Damien Miller <djm@mindrot.org> | ||
4275 | Date: Thu Aug 21 10:47:54 2014 +1000 | ||
4276 | |||
4277 | - (djm) [Makefile.in] fix reference to libtest_helper.a in sshkey test too. | ||
4278 | |||
4279 | commit 54703e3cf63f0c80d4157e5ad7dbc2b363ee2c56 | ||
4280 | Author: Damien Miller <djm@mindrot.org> | ||
4281 | Date: Wed Aug 20 11:10:51 2014 +1000 | ||
4282 | |||
4283 | - (djm) [contrib/cygwin/README] Correct build instructions; from Corinna | ||
4284 | |||
4285 | commit f0935698f0461f24d8d1f1107b476ee5fd4db1cb | ||
4286 | Author: Damien Miller <djm@mindrot.org> | ||
4287 | Date: Wed Aug 20 11:06:50 2014 +1000 | ||
4288 | |||
4289 | - (djm) [sshkey.h] Fix compilation when OpenSSL lacks ECC | ||
4290 | |||
4291 | commit c5089ecaec3b2c02f014f4e67518390702a4ba14 | ||
4292 | Author: Damien Miller <djm@mindrot.org> | ||
4293 | Date: Wed Aug 20 11:06:20 2014 +1000 | ||
4294 | |||
4295 | - (djm) [Makefile.in] refer to libtest_helper.a by explicit path rather than | ||
4296 | -L/-l; fixes linking problems on some platforms | ||
4297 | |||
4298 | commit 2195847e503a382f83ee969b0a8bd3dfe0e55c18 | ||
4299 | Author: Damien Miller <djm@mindrot.org> | ||
4300 | Date: Wed Aug 20 11:05:03 2014 +1000 | ||
4301 | |||
4302 | - (djm) [configure.ac] Check OpenSSL version is supported at configure time; | ||
4303 | suggested by Kevin Brott | ||
4304 | |||
4305 | commit a75aca1bbc989aa9f8b1b08489d37855f3d24d1a | ||
4306 | Author: Damien Miller <djm@mindrot.org> | ||
4307 | Date: Tue Aug 19 11:36:07 2014 +1000 | ||
4308 | |||
4309 | - (djm) [INSTALL contrib/caldera/openssh.spec contrib/cygwin/README] | ||
4310 | [contrib/redhat/openssh.spec contrib/suse/openssh.spec] Remove mentions | ||
4311 | of TCP wrappers. | ||
4312 | |||
4313 | commit 3f022b5a9477abceeb1bbeab04b055f3cc7ca8f6 | ||
4314 | Author: Damien Miller <djm@mindrot.org> | ||
4315 | Date: Tue Aug 19 11:32:34 2014 +1000 | ||
4316 | |||
4317 | - (djm) [ssh-dss.c] Include openssl/dsa.h for DSA_SIG | ||
4318 | |||
4319 | commit 88137902632aceb923990e98cf5dc923bb3ef2f5 | ||
4320 | Author: Damien Miller <djm@mindrot.org> | ||
4321 | Date: Tue Aug 19 11:28:11 2014 +1000 | ||
4322 | |||
4323 | - (djm) [sshbuf.h] Fix compilation on systems without OPENSSL_HAS_ECC. | ||
4324 | |||
4325 | commit 2f3d1e7fb2eabd3cfbfd8d0f7bdd2f9a1888690b | ||
4326 | Author: Damien Miller <djm@mindrot.org> | ||
4327 | Date: Tue Aug 19 11:14:36 2014 +1000 | ||
4328 | |||
4329 | - (djm) [myproposal.h] Make curve25519 KEX dependent on | ||
4330 | HAVE_EVP_SHA256 instead of OPENSSL_HAS_ECC. | ||
4331 | |||
4332 | commit d4e7d59d01a6c7f59e8c1f94a83c086e9a33d8aa | ||
4333 | Author: Damien Miller <djm@mindrot.org> | ||
4334 | Date: Tue Aug 19 11:14:17 2014 +1000 | ||
4335 | |||
4336 | - (djm) [serverloop.c] Fix syntax error on Cygwin; from Corinna Vinschen | ||
4337 | |||
4338 | commit 9eaeea2cf2b6af5f166cfa9ad3c7a90711a147a9 | ||
4339 | Author: Damien Miller <djm@mindrot.org> | ||
4340 | Date: Sun Aug 10 11:35:05 2014 +1000 | ||
4341 | |||
4342 | - (djm) [README contrib/caldera/openssh.spec] | ||
4343 | [contrib/redhat/openssh.spec contrib/suse/openssh.spec] Update versions | ||
4344 | |||
4345 | commit f8988fbef0c9801d19fa2f8f4f041690412bec37 | ||
4346 | Author: Damien Miller <djm@mindrot.org> | ||
4347 | Date: Fri Aug 1 13:31:52 2014 +1000 | ||
4348 | |||
4349 | - (djm) [regress/multiplex.sh] Use -d (detach stdin) flag to disassociate | ||
4350 | nc from stdin, it's more portable | ||
4351 | |||
4352 | commit 5b3879fd4b7a4e3d43bab8f40addda39bc1169d0 | ||
4353 | Author: Damien Miller <djm@mindrot.org> | ||
4354 | Date: Fri Aug 1 12:28:31 2014 +1000 | ||
4355 | |||
4356 | - (djm) [regress/multiplex.sh] Instruct nc not to quit as soon as stdin | ||
4357 | is closed; avoid regress failures when stdin is /dev/null | ||
4358 | |||
4359 | commit a9c46746d266f8a1b092a72b2150682d1af8ebfc | ||
4360 | Author: Damien Miller <djm@mindrot.org> | ||
4361 | Date: Fri Aug 1 12:26:49 2014 +1000 | ||
4362 | |||
4363 | - (djm) [regress/multiplex.sh] Skip test for non-OpenBSD netcat. We need | ||
4364 | a better solution, but this will have to do for now. | ||
4365 | |||
4366 | commit 426117b2e965e43f47015942b5be8dd88fe74b88 | ||
4367 | Author: Damien Miller <djm@mindrot.org> | ||
4368 | Date: Wed Jul 30 12:33:20 2014 +1000 | ||
4369 | |||
4370 | - schwarze@cvs.openbsd.org 2014/07/28 15:40:08 | ||
4371 | [sftp-server.8 sshd_config.5] | ||
4372 | some systems no longer need /dev/log; | ||
4373 | issue noticed by jirib; | ||
4374 | ok deraadt | ||
4375 | |||
4376 | commit f497794b6962eaf802ab4ac2a7b22ae591cca1d5 | ||
4377 | Author: Damien Miller <djm@mindrot.org> | ||
4378 | Date: Wed Jul 30 12:32:46 2014 +1000 | ||
4379 | |||
4380 | - dtucker@cvs.openbsd.org 2014/07/25 21:22:03 | ||
4381 | [ssh-agent.c] | ||
4382 | Clear buffer used for handling messages. This prevents keys being | ||
4383 | left in memory after they have been expired or deleted in some cases | ||
4384 | (but note that ssh-agent is setgid so you would still need root to | ||
4385 | access them). Pointed out by Kevin Burns, ok deraadt | ||
4386 | |||
4387 | commit a8a0f65c57c8ecba94d65948e9090da54014dfef | ||
4388 | Author: Damien Miller <djm@mindrot.org> | ||
4389 | Date: Wed Jul 30 12:32:28 2014 +1000 | ||
4390 | |||
4391 | - OpenBSD CVS Sync | ||
4392 | - millert@cvs.openbsd.org 2014/07/24 22:57:10 | ||
4393 | [ssh.1] | ||
4394 | Mention UNIX-domain socket forwarding too. OK jmc@ deraadt@ | ||
4395 | |||
4396 | commit 56b840f2b81e14a2f95c203403633a72566736f8 | ||
4397 | Author: Damien Miller <djm@mindrot.org> | ||
4398 | Date: Fri Jul 25 08:11:30 2014 +1000 | ||
4399 | |||
4400 | - (djm) [regress/multiplex.sh] restore incorrectly deleted line; | ||
4401 | pointed out by Christian Hesse | ||
4402 | |||
4403 | commit dd417b60d5ca220565d1014e92b7f8f43dc081eb | ||
4404 | Author: Darren Tucker <dtucker@zip.com.au> | ||
4405 | Date: Wed Jul 23 10:41:21 2014 +1000 | ||
4406 | |||
4407 | - dtucker@cvs.openbsd.org 2014/07/22 23:35:38 | ||
4408 | [regress/unittests/sshkey/testdata/*] | ||
4409 | Regenerate test keys with certs signed with ed25519 instead of ecdsa. | ||
4410 | These can be used in -portable on platforms that don't support ECDSA. | ||
4411 | |||
4412 | commit 40e50211896369dba8f64f3b5e5fd58b76f5ac3f | ||
4413 | Author: Darren Tucker <dtucker@zip.com.au> | ||
4414 | Date: Wed Jul 23 10:35:45 2014 +1000 | ||
4415 | |||
4416 | - dtucker@cvs.openbsd.org 2014/07/22 23:57:40 | ||
4417 | [regress/unittests/sshkey/mktestdata.sh] | ||
4418 | Add $OpenBSD tag to make syncs easier | ||
4419 | |||
4420 | commit 07e644251e809b1d4c062cf85bd1146a7e3f5a8a | ||
4421 | Author: Darren Tucker <dtucker@zip.com.au> | ||
4422 | Date: Wed Jul 23 10:34:26 2014 +1000 | ||
4423 | |||
4424 | - dtucker@cvs.openbsd.org 2014/07/22 23:23:22 | ||
4425 | [regress/unittests/sshkey/mktestdata.sh] | ||
4426 | Sign test certs with ed25519 instead of ecdsa so that they'll work in | ||
4427 | -portable on platforms that don't have ECDSA in their OpenSSL. ok djm | ||
4428 | |||
4429 | commit cea099a7c4eaecb01b001e5453bb4e5c25006c22 | ||
4430 | Author: Darren Tucker <dtucker@zip.com.au> | ||
4431 | Date: Wed Jul 23 10:04:02 2014 +1000 | ||
4432 | |||
4433 | - djm@cvs.openbsd.org 2014/07/22 01:32:12 | ||
4434 | [regress/multiplex.sh] | ||
4435 | change the test for still-open Unix domain sockets to be robust against | ||
4436 | nc implementations that produce error messages. from -portable | ||
4437 | (Id sync only) | ||
4438 | |||
4439 | commit 31eb78078d349b32ea41952ecc944b3ad6cb0d45 | ||
4440 | Author: Darren Tucker <dtucker@zip.com.au> | ||
4441 | Date: Wed Jul 23 09:43:42 2014 +1000 | ||
4442 | |||
4443 | - guenther@cvs.openbsd.org 2014/07/22 07:13:42 | ||
4444 | [umac.c] | ||
4445 | Convert from <sys/endian.h> to the shiney new <endian.h> | ||
4446 | ok dtucker@, who also confirmed that -portable handles this already | ||
4447 | (ID sync only, includes.h pulls in endian.h if available.) | ||
4448 | |||
4449 | commit 820763efef2d19d965602533036c2b4badc9d465 | ||
4450 | Author: Darren Tucker <dtucker@zip.com.au> | ||
4451 | Date: Wed Jul 23 09:40:46 2014 +1000 | ||
4452 | |||
4453 | - dtucker@cvs.openbsd.org 2014/07/22 01:18:50 | ||
4454 | [key.c] | ||
4455 | Prevent spam from key_load_private_pem during hostbased auth. ok djm@ | ||
4456 | |||
4457 | commit c4ee219a66f3190fa96cbd45b4d11015685c6306 | ||
4458 | Author: Darren Tucker <dtucker@zip.com.au> | ||
4459 | Date: Wed Jul 23 04:27:50 2014 +1000 | ||
4460 | |||
4461 | - (dtucker) [regress/unittests/sshkey/test_{file,fuzz,sshkey}.c] Wrap ecdsa- | ||
4462 | specific tests inside OPENSSL_HAS_ECC. | ||
4463 | |||
4464 | commit 04f4824940ea3edd60835416ececbae16438968a | ||
4465 | Author: Damien Miller <djm@mindrot.org> | ||
4466 | Date: Tue Jul 22 11:31:47 2014 +1000 | ||
4467 | |||
4468 | - (djm) [regress/multiplex.sh] change the test for still-open Unix | ||
4469 | domain sockets to be robust against nc implementations that produce | ||
4470 | error messages. | ||
4471 | |||
4472 | commit 5ea4fe00d55453aaa44007330bb4c3181bd9b796 | ||
4473 | Author: Damien Miller <djm@mindrot.org> | ||
4474 | Date: Tue Jul 22 09:39:19 2014 +1000 | ||
4475 | |||
4476 | - (djm) [regress/multiplex.sh] ssh mux master lost -N somehow; | ||
4477 | put it back | ||
4478 | |||
4479 | commit 948a1774a79a85f9deba6d74db95f402dee32c69 | ||
4480 | Author: Darren Tucker <dtucker@zip.com.au> | ||
4481 | Date: Tue Jul 22 01:07:11 2014 +1000 | ||
4482 | |||
4483 | - (dtucker) [sshkey.c] ifdef out unused variable when compiling without | ||
4484 | OPENSSL_HAS_ECC. | ||
4485 | |||
4486 | commit c8f610f6cc57ae129758052439d9baf13699097b | ||
4487 | Author: Damien Miller <djm@mindrot.org> | ||
4488 | Date: Mon Jul 21 10:23:27 2014 +1000 | ||
4489 | |||
4490 | - (djm) [regress/multiplex.sh] Not all netcat accept the -N option. | ||
4491 | |||
4492 | commit 0e4e95566cd95c887f69272499b8f3880b3ec0f5 | ||
4493 | Author: Damien Miller <djm@mindrot.org> | ||
4494 | Date: Mon Jul 21 09:52:54 2014 +1000 | ||
4495 | |||
4496 | - millert@cvs.openbsd.org 2014/07/15 15:54:15 | ||
4497 | [forwarding.sh multiplex.sh] | ||
4498 | Add support for Unix domain socket forwarding. A remote TCP port | ||
4499 | may be forwarded to a local Unix domain socket and vice versa or | ||
4500 | both ends may be a Unix domain socket. This is a reimplementation | ||
4501 | of the streamlocal patches by William Ahern from: | ||
4502 | http://www.25thandclement.com/~william/projects/streamlocal.html | ||
4503 | OK djm@ markus@ | ||
4504 | |||
4505 | commit 93a87ab27ecdc709169fb24411133998f81e2761 | ||
4506 | Author: Darren Tucker <dtucker@zip.com.au> | ||
4507 | Date: Mon Jul 21 06:30:25 2014 +1000 | ||
4508 | |||
4509 | - (dtucker) [regress/unittests/sshkey/ | ||
4510 | {common,test_file,test_fuzz,test_sshkey}.c] Wrap stdint.h includes in | ||
4511 | ifdefs. | ||
4512 | |||
4513 | commit 5573171352ea23df2dc6d2fe0324d023b7ba697c | ||
4514 | Author: Darren Tucker <dtucker@zip.com.au> | ||
4515 | Date: Mon Jul 21 02:24:59 2014 +1000 | ||
4516 | |||
4517 | - (dtucker) [cipher.c openbsd-compat/openssl-compat.h] Restore the bits | ||
4518 | needed to build AES CTR mode against OpenSSL 0.9.8f and above. ok djm | ||
4519 | |||
4520 | commit 74e28682711d005026c7c8f15f96aea9d3c8b5a3 | ||
4521 | Author: Tim Rice <tim@multitalents.net> | ||
4522 | Date: Fri Jul 18 20:00:11 2014 -0700 | ||
4523 | |||
4524 | - (tim) [openbsd-compat/port-uw.c] Include misc.h for fwd_opts, used | ||
4525 | in servconf.h. | ||
4526 | |||
4527 | commit d1a0421f8e5e933fee6fb58ee6b9a22c63c8a613 | ||
4528 | Author: Darren Tucker <dtucker@zip.com.au> | ||
4529 | Date: Sat Jul 19 07:23:55 2014 +1000 | ||
4530 | |||
4531 | - (dtucker) [key.c sshkey.c] Put new ecdsa bits inside ifdef OPENSSL_HAS_ECC. | ||
4532 | |||
4533 | commit f0fe9ea1be62227c130b317769de3d1e736b6dc1 | ||
4534 | Author: Darren Tucker <dtucker@zip.com.au> | ||
4535 | Date: Sat Jul 19 06:33:12 2014 +1000 | ||
4536 | |||
4537 | - (dtucker) [Makefile.in] Add a t-exec target to run just the executable | ||
4538 | tests. | ||
4539 | |||
4540 | commit 450bc1180d4b061434a4b733c5c8814fa30b022b | ||
4541 | Author: Darren Tucker <dtucker@zip.com.au> | ||
4542 | Date: Sat Jul 19 06:23:18 2014 +1000 | ||
4543 | |||
4544 | - (dtucker) [auth2-gss.c gss-serv-krb5.c] Include misc.h for fwd_opts, used | ||
4545 | in servconf.h. | ||
4546 | |||
4547 | commit ab2ec586baad122ed169285c31927ccf58bc7b28 | ||
4548 | Author: Damien Miller <djm@mindrot.org> | ||
4549 | Date: Fri Jul 18 15:04:47 2014 +1000 | ||
4550 | |||
4551 | - djm@cvs.openbsd.org 2014/07/18 02:46:01 | ||
4552 | [ssh-agent.c] | ||
4553 | restore umask around listener socket creation (dropped in streamlocal patch | ||
4554 | merge) | ||
4555 | |||
4556 | commit 357610d15946381ae90c271837dcdd0cdce7145f | ||
4557 | Author: Damien Miller <djm@mindrot.org> | ||
4558 | Date: Fri Jul 18 15:04:10 2014 +1000 | ||
4559 | |||
4560 | - djm@cvs.openbsd.org 2014/07/17 07:22:19 | ||
4561 | [mux.c ssh.c] | ||
4562 | reflect stdio-forward ("ssh -W host:port ...") failures in exit status. | ||
4563 | previously we were always returning 0. bz#2255 reported by Brendan | ||
4564 | Germain; ok dtucker | ||
4565 | |||
4566 | commit dad9a4a0b7c2b5d78605f8df28718f116524134e | ||
4567 | Author: Damien Miller <djm@mindrot.org> | ||
4568 | Date: Fri Jul 18 15:03:49 2014 +1000 | ||
4569 | |||
4570 | - djm@cvs.openbsd.org 2014/07/17 00:12:03 | ||
4571 | [key.c] | ||
4572 | silence "incorrect passphrase" error spam; reported and ok dtucker@ | ||
4573 | |||
4574 | commit f42f7684ecbeec6ce50e0310f80b3d6da2aaf533 | ||
4575 | Author: Damien Miller <djm@mindrot.org> | ||
4576 | Date: Fri Jul 18 15:03:27 2014 +1000 | ||
4577 | |||
4578 | - djm@cvs.openbsd.org 2014/07/17 00:10:18 | ||
4579 | [mux.c] | ||
4580 | preserve errno across syscall | ||
4581 | |||
4582 | commit 1b83320628cb0733e3688b85bfe4d388a7c51909 | ||
4583 | Author: Damien Miller <djm@mindrot.org> | ||
4584 | Date: Fri Jul 18 15:03:02 2014 +1000 | ||
4585 | |||
4586 | - djm@cvs.openbsd.org 2014/07/17 00:10:56 | ||
4587 | [sandbox-systrace.c] | ||
4588 | ifdef SYS_sendsyslog so this will compile without patching on -stable | ||
4589 | |||
4590 | commit 6d57656331bcd754d912950e4a18ad259d596e61 | ||
4591 | Author: Damien Miller <djm@mindrot.org> | ||
4592 | Date: Fri Jul 18 15:02:06 2014 +1000 | ||
4593 | |||
4594 | - jmc@cvs.openbsd.org 2014/07/16 14:48:57 | ||
4595 | [ssh.1] | ||
4596 | add the streamlocal* options to ssh's -o list; millert says they're | ||
4597 | irrelevant for scp/sftp; | ||
4598 | |||
4599 | ok markus millert | ||
4600 | |||
4601 | commit 7acefbbcbeab725420ea07397ae35992f505f702 | ||
4602 | Author: Damien Miller <djm@mindrot.org> | ||
4603 | Date: Fri Jul 18 14:11:24 2014 +1000 | ||
4604 | |||
4605 | - millert@cvs.openbsd.org 2014/07/15 15:54:14 | ||
4606 | [PROTOCOL auth-options.c auth-passwd.c auth-rh-rsa.c auth-rhosts.c] | ||
4607 | [auth-rsa.c auth.c auth1.c auth2-hostbased.c auth2-kbdint.c auth2-none.c] | ||
4608 | [auth2-passwd.c auth2-pubkey.c auth2.c canohost.c channels.c channels.h] | ||
4609 | [clientloop.c misc.c misc.h monitor.c mux.c packet.c readconf.c] | ||
4610 | [readconf.h servconf.c servconf.h serverloop.c session.c ssh-agent.c] | ||
4611 | [ssh.c ssh_config.5 sshconnect.c sshconnect1.c sshconnect2.c sshd.c] | ||
4612 | [sshd_config.5 sshlogin.c] | ||
4613 | Add support for Unix domain socket forwarding. A remote TCP port | ||
4614 | may be forwarded to a local Unix domain socket and vice versa or | ||
4615 | both ends may be a Unix domain socket. This is a reimplementation | ||
4616 | of the streamlocal patches by William Ahern from: | ||
4617 | http://www.25thandclement.com/~william/projects/streamlocal.html | ||
4618 | OK djm@ markus@ | ||
4619 | |||
4620 | commit 6262d760e00714523633bd989d62e273a3dca99a | ||
4621 | Author: Damien Miller <djm@mindrot.org> | ||
4622 | Date: Thu Jul 17 09:52:07 2014 +1000 | ||
4623 | |||
4624 | - tedu@cvs.openbsd.org 2014/07/11 13:54:34 | ||
4625 | [myproposal.h] | ||
4626 | by popular demand, add back hamc-sha1 to server proposal for better compat | ||
4627 | with many clients still in use. ok deraadt | ||
4628 | |||
4629 | commit 9d69d937b46ecba17f16d923e538ceda7b705c7a | ||
4630 | Author: Damien Miller <djm@mindrot.org> | ||
4631 | Date: Thu Jul 17 09:49:37 2014 +1000 | ||
4632 | |||
4633 | - deraadt@cvs.openbsd.org 2014/07/11 08:09:54 | ||
4634 | [sandbox-systrace.c] | ||
4635 | Permit use of SYS_sendsyslog from inside the sandbox. Clock is ticking, | ||
4636 | update your kernels and sshd soon.. libc will start using sendsyslog() | ||
4637 | in about 4 days. | ||
4638 | |||
4639 | commit f6293a0b4129826fc2e37e4062f96825df43c326 | ||
4640 | Author: Damien Miller <djm@mindrot.org> | ||
4641 | Date: Thu Jul 17 09:01:25 2014 +1000 | ||
4642 | |||
4643 | - (djm) [digest-openssl.c] Preserve array order when disabling digests. | ||
4644 | Reported by Petr Lautrbach. | ||
4645 | |||
4646 | commit 00f9cd230709c04399ef5ff80492d70a55230694 | ||
4647 | Author: Damien Miller <djm@mindrot.org> | ||
4648 | Date: Tue Jul 15 10:41:38 2014 +1000 | ||
4649 | |||
4650 | - (djm) [configure.ac] Delay checks for arc4random* until after libcrypto | ||
4651 | has been located; fixes builds agains libressl-portable | ||
4652 | |||
4653 | commit 1d0df3249c87019556b83306c28d4769375c2edc | ||
4654 | Author: Damien Miller <djm@mindrot.org> | ||
4655 | Date: Fri Jul 11 09:19:04 2014 +1000 | ||
4656 | |||
4657 | - OpenBSD CVS Sync | ||
4658 | - benno@cvs.openbsd.org 2014/07/09 14:15:56 | ||
4659 | [ssh-add.c] | ||
4660 | fix ssh-add crash while loading more than one key | ||
4661 | ok markus@ | ||
4662 | |||
4663 | commit 7a57eb3d105aa4ced15fb47001092c58811e6d9d | ||
4664 | Author: Damien Miller <djm@mindrot.org> | ||
4665 | Date: Wed Jul 9 13:22:31 2014 +1000 | ||
4666 | |||
4667 | - djm@cvs.openbsd.org 2014/07/07 08:15:26 | ||
4668 | [multiplex.sh] | ||
4669 | remove forced-fatal that I stuck in there to test the new cleanup | ||
4670 | logic and forgot to remove... | ||
4671 | |||
4672 | commit 612f965239a30fe536b11ece1834d9f470aeb029 | ||
4673 | Author: Damien Miller <djm@mindrot.org> | ||
4674 | Date: Wed Jul 9 13:22:03 2014 +1000 | ||
4675 | |||
4676 | - djm@cvs.openbsd.org 2014/07/06 07:42:03 | ||
4677 | [multiplex.sh test-exec.sh] | ||
4678 | add a hook to the cleanup() function to kill $SSH_PID if it is set | ||
4679 | |||
4680 | use it to kill the mux master started in multiplex.sh (it was being left | ||
4681 | around on fatal failures) | ||
4682 | |||
4683 | commit d0bb950485ba121e43a77caf434115ed6417b46f | ||
4684 | Author: Damien Miller <djm@mindrot.org> | ||
4685 | Date: Wed Jul 9 13:07:28 2014 +1000 | ||
4686 | |||
4687 | - djm@cvs.openbsd.org 2014/07/09 03:02:15 | ||
4688 | [key.c] | ||
4689 | downgrade more error() to debug() to better match what old authfile.c | ||
4690 | did; suppresses spurious errors with hostbased authentication enabled | ||
4691 | |||
4692 | commit 0070776a038655c57f57e70cd05e4c38a5de9d84 | ||
4693 | Author: Damien Miller <djm@mindrot.org> | ||
4694 | Date: Wed Jul 9 13:07:06 2014 +1000 | ||
4695 | |||
4696 | - djm@cvs.openbsd.org 2014/07/09 01:45:10 | ||
4697 | [sftp.c] | ||
4698 | more useful error message when GLOB_NOSPACE occurs; | ||
4699 | bz#2254, patch from Orion Poplawski | ||
4700 | |||
4701 | commit 079bac2a43c74ef7cf56850afbab3b1932534c50 | ||
4702 | Author: Damien Miller <djm@mindrot.org> | ||
4703 | Date: Wed Jul 9 13:06:25 2014 +1000 | ||
4704 | |||
4705 | - djm@cvs.openbsd.org 2014/07/07 08:19:12 | ||
4706 | [ssh_config.5] | ||
4707 | mention that ProxyCommand is executed using shell "exec" to avoid | ||
4708 | a lingering process; bz#1977 | ||
4709 | |||
4710 | commit 3a48cc090096cf99b9de592deb5f90e444edebfb | ||
4711 | Author: Damien Miller <djm@mindrot.org> | ||
4712 | Date: Sun Jul 6 09:32:49 2014 +1000 | ||
4713 | |||
4714 | - djm@cvs.openbsd.org 2014/07/05 23:11:48 | ||
4715 | [channels.c] | ||
4716 | fix remote-forward cancel regression; ok markus@ | ||
4717 | |||
4718 | commit 48bae3a38cb578713e676708164f6e7151cc64fa | ||
4719 | Author: Damien Miller <djm@mindrot.org> | ||
4720 | Date: Sun Jul 6 09:27:06 2014 +1000 | ||
4721 | |||
4722 | - djm@cvs.openbsd.org 2014/07/03 23:18:35 | ||
4723 | [authfile.h] | ||
4724 | remove leakmalloc droppings | ||
4725 | |||
4726 | commit 72e6b5c9ed5e72ca3a6ccc3177941b7c487a0826 | ||
4727 | Author: Damien Miller <djm@mindrot.org> | ||
4728 | Date: Fri Jul 4 09:00:04 2014 +1000 | ||
4729 | |||
4730 | - djm@cvs.openbsd.org 2014/07/03 22:40:43 | ||
4731 | [servconf.c servconf.h session.c sshd.8 sshd_config.5] | ||
4732 | Add a sshd_config PermitUserRC option to control whether ~/.ssh/rc is | ||
4733 | executed, mirroring the no-user-rc authorized_keys option; | ||
4734 | bz#2160; ok markus@ | ||
4735 | |||
4736 | commit 602943d1179a08dfa70af94f62296ea5e3d6ebb8 | ||
4737 | Author: Damien Miller <djm@mindrot.org> | ||
4738 | Date: Fri Jul 4 08:59:41 2014 +1000 | ||
4739 | |||
4740 | - djm@cvs.openbsd.org 2014/07/03 22:33:41 | ||
4741 | [channels.c] | ||
4742 | allow explicit ::1 and 127.0.0.1 forwarding bind addresses when | ||
4743 | GatewayPorts=no; allows client to choose address family; | ||
4744 | bz#2222 ok markus@ | ||
4745 | |||
4746 | commit 6b37fbb7921d156b31e2c8f39d9e1b6746c34983 | ||
4747 | Author: Damien Miller <djm@mindrot.org> | ||
4748 | Date: Fri Jul 4 08:59:24 2014 +1000 | ||
4749 | |||
4750 | - djm@cvs.openbsd.org 2014/07/03 22:23:46 | ||
4751 | [sshconnect.c] | ||
4752 | when rekeying, skip file/DNS lookup if it is the same as the key sent | ||
4753 | during initial key exchange. bz#2154 patch from Iain Morgan; ok markus@ | ||
4754 | |||
4755 | commit d2c3cd5f2e47ee24cf7093ce8e948c2e79dfc3fd | ||
4756 | Author: Damien Miller <djm@mindrot.org> | ||
4757 | Date: Fri Jul 4 08:59:01 2014 +1000 | ||
4758 | |||
4759 | - jsing@cvs.openbsd.org 2014/07/03 12:42:16 | ||
4760 | [cipher-chachapoly.c] | ||
4761 | Call chacha_ivsetup() immediately before chacha_encrypt_bytes() - this | ||
4762 | makes it easier to verify that chacha_encrypt_bytes() is only called once | ||
4763 | per chacha_ivsetup() call. | ||
4764 | ok djm@ | ||
4765 | |||
4766 | commit 686feb560ec43a06ba04da82b50f3c183c947309 | ||
4767 | Author: Damien Miller <djm@mindrot.org> | ||
4768 | Date: Thu Jul 3 21:29:38 2014 +1000 | ||
4769 | |||
4770 | - djm@cvs.openbsd.org 2014/07/03 11:16:55 | ||
4771 | [auth.c auth.h auth1.c auth2.c] | ||
4772 | make the "Too many authentication failures" message include the | ||
4773 | user, source address, port and protocol in a format similar to the | ||
4774 | authentication success / failure messages; bz#2199, ok dtucker | ||
4775 | |||
4776 | commit 0f12341402e18fd9996ec23189b9418d2722453f | ||
4777 | Author: Damien Miller <djm@mindrot.org> | ||
4778 | Date: Thu Jul 3 21:28:09 2014 +1000 | ||
4779 | |||
4780 | - jmc@cvs.openbsd.org 2014/07/03 07:45:27 | ||
4781 | [ssh_config.5] | ||
4782 | escape %C since groff thinks it part of an Rs/Re block; | ||
4783 | |||
4784 | commit 9c38643c5cd47a19db2cc28279dcc28abadc22b3 | ||
4785 | Author: Damien Miller <djm@mindrot.org> | ||
4786 | Date: Thu Jul 3 21:27:46 2014 +1000 | ||
4787 | |||
4788 | - djm@cvs.openbsd.org 2014/07/03 06:39:19 | ||
4789 | [ssh.c ssh_config.5] | ||
4790 | Add a %C escape sequence for LocalCommand and ControlPath that expands | ||
4791 | to a unique identifer based on a has of the tuple of (local host, | ||
4792 | remote user, hostname, port). | ||
4793 | |||
4794 | Helps avoid exceeding sockaddr_un's miserly pathname limits for mux | ||
4795 | control paths. | ||
4796 | |||
4797 | bz#2220, based on patch from mancha1 AT zoho.com; ok markus@ | ||
4798 | |||
4799 | commit 49d9bfe2b2f3e90cc158a215dffa7675e57e7830 | ||
4800 | Author: Damien Miller <djm@mindrot.org> | ||
4801 | Date: Thu Jul 3 21:26:42 2014 +1000 | ||
4802 | |||
4803 | - djm@cvs.openbsd.org 2014/07/03 05:38:17 | ||
4804 | [ssh.1] | ||
4805 | document that -g will only work in the multiplexed case if applied to | ||
4806 | the mux master | ||
4807 | |||
4808 | commit ef9f13ba4c58057b2166d1f2e790535da402fbe5 | ||
4809 | Author: Damien Miller <djm@mindrot.org> | ||
4810 | Date: Thu Jul 3 21:26:21 2014 +1000 | ||
4811 | |||
4812 | - djm@cvs.openbsd.org 2014/07/03 05:32:36 | ||
4813 | [ssh_config.5] | ||
4814 | mention '%%' escape sequence in HostName directives and how it may | ||
4815 | be used to specify IPv6 link-local addresses | ||
4816 | |||
4817 | commit e6a407789e5432dd2e53336fb73476cc69048c54 | ||
4818 | Author: Damien Miller <djm@mindrot.org> | ||
4819 | Date: Thu Jul 3 21:25:03 2014 +1000 | ||
4820 | |||
4821 | - djm@cvs.openbsd.org 2014/07/03 04:36:45 | ||
4822 | [digest.h] | ||
4823 | forward-declare struct sshbuf so consumers don't need to include sshbuf.h | ||
4824 | |||
4825 | commit 4a1d3d50f02d0a8a4ef95ea4749293cbfb89f919 | ||
4826 | Author: Damien Miller <djm@mindrot.org> | ||
4827 | Date: Thu Jul 3 21:24:40 2014 +1000 | ||
4828 | |||
4829 | - djm@cvs.openbsd.org 2014/07/03 03:47:27 | ||
4830 | [ssh-keygen.c] | ||
4831 | When hashing or removing hosts using ssh-keygen, don't choke on | ||
4832 | @revoked markers and don't remove @cert-authority markers; | ||
4833 | bz#2241, reported by mlindgren AT runelind.net | ||
4834 | |||
4835 | commit e5c0d52ceb575c3db8c313e0b1aa3845943d7ba8 | ||
4836 | Author: Damien Miller <djm@mindrot.org> | ||
4837 | Date: Thu Jul 3 21:24:19 2014 +1000 | ||
4838 | |||
4839 | - djm@cvs.openbsd.org 2014/07/03 03:34:09 | ||
4840 | [gss-serv.c session.c ssh-keygen.c] | ||
4841 | standardise on NI_MAXHOST for gethostname() string lengths; about | ||
4842 | 1/2 the cases were using it already. Fixes bz#2239 en passant | ||
4843 | |||
4844 | commit c174a3b7c14e0d178c61219de2aa1110e209950c | ||
4845 | Author: Damien Miller <djm@mindrot.org> | ||
4846 | Date: Thu Jul 3 21:23:24 2014 +1000 | ||
4847 | |||
4848 | - djm@cvs.openbsd.org 2014/07/03 03:26:43 | ||
4849 | [digest-openssl.c] | ||
4850 | use EVP_Digest() for one-shot hash instead of creating, updating, | ||
4851 | finalising and destroying a context. | ||
4852 | bz#2231, based on patch from Timo Teras | ||
4853 | |||
4854 | commit d7ca2cd31ecc4d63a055e2dcc4bf35c13f2db4c5 | ||
4855 | Author: Damien Miller <djm@mindrot.org> | ||
4856 | Date: Thu Jul 3 21:23:01 2014 +1000 | ||
4857 | |||
4858 | - djm@cvs.openbsd.org 2014/07/03 03:15:01 | ||
4859 | [ssh-add.c] | ||
4860 | make stdout line-buffered; saves partial output getting lost when | ||
4861 | ssh-add fatal()s part-way through (e.g. when listing keys from an | ||
4862 | agent that supports key types that ssh-add doesn't); | ||
4863 | bz#2234, reported by Phil Pennock | ||
4864 | |||
4865 | commit b1e967c8d7c7578dd0c172d85b3046cf54ea42ba | ||
4866 | Author: Damien Miller <djm@mindrot.org> | ||
4867 | Date: Thu Jul 3 21:22:40 2014 +1000 | ||
4868 | |||
4869 | - djm@cvs.openbsd.org 2014/07/03 03:11:03 | ||
4870 | [ssh-agent.c] | ||
4871 | Only cleanup agent socket in the main agent process and not in any | ||
4872 | subprocesses it may have started (e.g. forked askpass). Fixes | ||
4873 | agent sockets being zapped when askpass processes fatal(); | ||
4874 | bz#2236 patch from Dmitry V. Levin | ||
4875 | |||
4876 | commit 61e28e55c3438d796b02ef878bcd28620d452670 | ||
4877 | Author: Damien Miller <djm@mindrot.org> | ||
4878 | Date: Thu Jul 3 21:22:22 2014 +1000 | ||
4879 | |||
4880 | - djm@cvs.openbsd.org 2014/07/03 01:45:38 | ||
4881 | [sshkey.c] | ||
4882 | make Ed25519 keys' title fit properly in the randomart border; bz#2247 | ||
4883 | based on patch from Christian Hesse | ||
4884 | |||
4885 | commit 9eb4cd9a32c32d40d36450b68ed93badc6a94c68 | ||
4886 | Author: Damien Miller <djm@mindrot.org> | ||
4887 | Date: Thu Jul 3 13:29:50 2014 +1000 | ||
4888 | |||
4889 | - (djm) [monitor_fdpass.c] Use sys/poll.h if poll.h doesn't exist; | ||
4890 | bz#2237 | ||
4891 | |||
4892 | commit 8da0fa24934501909408327298097b1629b89eaa | ||
4893 | Author: Damien Miller <djm@mindrot.org> | ||
4894 | Date: Thu Jul 3 11:54:19 2014 +1000 | ||
4895 | |||
4896 | - (djm) [digest-openssl.c configure.ac] Disable RIPEMD160 if libcrypto | ||
4897 | doesn't support it. | ||
4898 | |||
4899 | commit 81309c857dd0dbc0a1245a16d621c490ad48cfbb | ||
4900 | Author: Damien Miller <djm@mindrot.org> | ||
4901 | Date: Wed Jul 2 17:45:55 2014 +1000 | ||
4902 | |||
4903 | - (djm) [regress/Makefile] fix execution of sshkey unit/fuzz test | ||
4904 | |||
4905 | commit 82b2482ce68654815ee049b9bf021bb362a35ff2 | ||
4906 | Author: Damien Miller <djm@mindrot.org> | ||
4907 | Date: Wed Jul 2 17:43:41 2014 +1000 | ||
4908 | |||
4909 | - (djm) [sshkey.c] Conditionalise inclusion of util.h | ||
4910 | |||
4911 | commit dd8b1dd7933eb6f5652641b0cdced34a387f2e80 | ||
4912 | Author: Damien Miller <djm@mindrot.org> | ||
4913 | Date: Wed Jul 2 17:38:31 2014 +1000 | ||
4914 | |||
4915 | - djm@cvs.openbsd.org 2014/06/24 01:14:17 | ||
4916 | [Makefile.in regress/Makefile regress/unittests/Makefile] | ||
4917 | [regress/unittests/sshkey/Makefile] | ||
4918 | [regress/unittests/sshkey/common.c] | ||
4919 | [regress/unittests/sshkey/common.h] | ||
4920 | [regress/unittests/sshkey/mktestdata.sh] | ||
4921 | [regress/unittests/sshkey/test_file.c] | ||
4922 | [regress/unittests/sshkey/test_fuzz.c] | ||
4923 | [regress/unittests/sshkey/test_sshkey.c] | ||
4924 | [regress/unittests/sshkey/tests.c] | ||
4925 | [regress/unittests/sshkey/testdata/dsa_1] | ||
4926 | [regress/unittests/sshkey/testdata/dsa_1-cert.fp] | ||
4927 | [regress/unittests/sshkey/testdata/dsa_1-cert.pub] | ||
4928 | [regress/unittests/sshkey/testdata/dsa_1.fp] | ||
4929 | [regress/unittests/sshkey/testdata/dsa_1.fp.bb] | ||
4930 | [regress/unittests/sshkey/testdata/dsa_1.param.g] | ||
4931 | [regress/unittests/sshkey/testdata/dsa_1.param.priv] | ||
4932 | [regress/unittests/sshkey/testdata/dsa_1.param.pub] | ||
4933 | [regress/unittests/sshkey/testdata/dsa_1.pub] | ||
4934 | [regress/unittests/sshkey/testdata/dsa_1_pw] | ||
4935 | [regress/unittests/sshkey/testdata/dsa_2] | ||
4936 | [regress/unittests/sshkey/testdata/dsa_2.fp] | ||
4937 | [regress/unittests/sshkey/testdata/dsa_2.fp.bb] | ||
4938 | [regress/unittests/sshkey/testdata/dsa_2.pub] | ||
4939 | [regress/unittests/sshkey/testdata/dsa_n] | ||
4940 | [regress/unittests/sshkey/testdata/dsa_n_pw] | ||
4941 | [regress/unittests/sshkey/testdata/ecdsa_1] | ||
4942 | [regress/unittests/sshkey/testdata/ecdsa_1-cert.fp] | ||
4943 | [regress/unittests/sshkey/testdata/ecdsa_1-cert.pub] | ||
4944 | [regress/unittests/sshkey/testdata/ecdsa_1.fp] | ||
4945 | [regress/unittests/sshkey/testdata/ecdsa_1.fp.bb] | ||
4946 | [regress/unittests/sshkey/testdata/ecdsa_1.param.curve] | ||
4947 | [regress/unittests/sshkey/testdata/ecdsa_1.param.priv] | ||
4948 | [regress/unittests/sshkey/testdata/ecdsa_1.param.pub] | ||
4949 | [regress/unittests/sshkey/testdata/ecdsa_1.pub] | ||
4950 | [regress/unittests/sshkey/testdata/ecdsa_1_pw] | ||
4951 | [regress/unittests/sshkey/testdata/ecdsa_2] | ||
4952 | [regress/unittests/sshkey/testdata/ecdsa_2.fp] | ||
4953 | [regress/unittests/sshkey/testdata/ecdsa_2.fp.bb] | ||
4954 | [regress/unittests/sshkey/testdata/ecdsa_2.param.curve] | ||
4955 | [regress/unittests/sshkey/testdata/ecdsa_2.param.priv] | ||
4956 | [regress/unittests/sshkey/testdata/ecdsa_2.param.pub] | ||
4957 | [regress/unittests/sshkey/testdata/ecdsa_2.pub] | ||
4958 | [regress/unittests/sshkey/testdata/ecdsa_n] | ||
4959 | [regress/unittests/sshkey/testdata/ecdsa_n_pw] | ||
4960 | [regress/unittests/sshkey/testdata/ed25519_1] | ||
4961 | [regress/unittests/sshkey/testdata/ed25519_1-cert.fp] | ||
4962 | [regress/unittests/sshkey/testdata/ed25519_1-cert.pub] | ||
4963 | [regress/unittests/sshkey/testdata/ed25519_1.fp] | ||
4964 | [regress/unittests/sshkey/testdata/ed25519_1.fp.bb] | ||
4965 | [regress/unittests/sshkey/testdata/ed25519_1.pub] | ||
4966 | [regress/unittests/sshkey/testdata/ed25519_1_pw] | ||
4967 | [regress/unittests/sshkey/testdata/ed25519_2] | ||
4968 | [regress/unittests/sshkey/testdata/ed25519_2.fp] | ||
4969 | [regress/unittests/sshkey/testdata/ed25519_2.fp.bb] | ||
4970 | [regress/unittests/sshkey/testdata/ed25519_2.pub] | ||
4971 | [regress/unittests/sshkey/testdata/pw] | ||
4972 | [regress/unittests/sshkey/testdata/rsa1_1] | ||
4973 | [regress/unittests/sshkey/testdata/rsa1_1.fp] | ||
4974 | [regress/unittests/sshkey/testdata/rsa1_1.fp.bb] | ||
4975 | [regress/unittests/sshkey/testdata/rsa1_1.param.n] | ||
4976 | [regress/unittests/sshkey/testdata/rsa1_1.pub] | ||
4977 | [regress/unittests/sshkey/testdata/rsa1_1_pw] | ||
4978 | [regress/unittests/sshkey/testdata/rsa1_2] | ||
4979 | [regress/unittests/sshkey/testdata/rsa1_2.fp] | ||
4980 | [regress/unittests/sshkey/testdata/rsa1_2.fp.bb] | ||
4981 | [regress/unittests/sshkey/testdata/rsa1_2.param.n] | ||
4982 | [regress/unittests/sshkey/testdata/rsa1_2.pub] | ||
4983 | [regress/unittests/sshkey/testdata/rsa_1] | ||
4984 | [regress/unittests/sshkey/testdata/rsa_1-cert.fp] | ||
4985 | [regress/unittests/sshkey/testdata/rsa_1-cert.pub] | ||
4986 | [regress/unittests/sshkey/testdata/rsa_1.fp] | ||
4987 | [regress/unittests/sshkey/testdata/rsa_1.fp.bb] | ||
4988 | [regress/unittests/sshkey/testdata/rsa_1.param.n] | ||
4989 | [regress/unittests/sshkey/testdata/rsa_1.param.p] | ||
4990 | [regress/unittests/sshkey/testdata/rsa_1.param.q] | ||
4991 | [regress/unittests/sshkey/testdata/rsa_1.pub] | ||
4992 | [regress/unittests/sshkey/testdata/rsa_1_pw] | ||
4993 | [regress/unittests/sshkey/testdata/rsa_2] | ||
4994 | [regress/unittests/sshkey/testdata/rsa_2.fp] | ||
4995 | [regress/unittests/sshkey/testdata/rsa_2.fp.bb] | ||
4996 | [regress/unittests/sshkey/testdata/rsa_2.param.n] | ||
4997 | [regress/unittests/sshkey/testdata/rsa_2.param.p] | ||
4998 | [regress/unittests/sshkey/testdata/rsa_2.param.q] | ||
4999 | [regress/unittests/sshkey/testdata/rsa_2.pub] | ||
5000 | [regress/unittests/sshkey/testdata/rsa_n] | ||
5001 | [regress/unittests/sshkey/testdata/rsa_n_pw] | ||
5002 | unit and fuzz tests for new key API | ||
5003 | |||
5004 | commit c1dc24b71f087f385b92652b9673f52af64e0428 | ||
5005 | Author: Damien Miller <djm@mindrot.org> | ||
5006 | Date: Wed Jul 2 17:02:03 2014 +1000 | ||
5007 | |||
5008 | - djm@cvs.openbsd.org 2014/06/24 01:04:43 | ||
5009 | [regress/krl.sh] | ||
5010 | regress test for broken consecutive revoked serial number ranges | ||
5011 | |||
5012 | commit 43d3ed2dd3feca6d0326c7dc82588d2faa115e92 | ||
5013 | Author: Damien Miller <djm@mindrot.org> | ||
5014 | Date: Wed Jul 2 17:01:08 2014 +1000 | ||
5015 | |||
5016 | - djm@cvs.openbsd.org 2014/05/21 07:04:21 | ||
5017 | [regress/integrity.sh] | ||
5018 | when failing because of unexpected output, show the offending output | ||
5019 | |||
5020 | commit 5a96707ffc8d227c2e7d94fa6b0317f8a152cf4e | ||
5021 | Author: Damien Miller <djm@mindrot.org> | ||
5022 | Date: Wed Jul 2 15:38:05 2014 +1000 | ||
5023 | |||
5024 | - djm@cvs.openbsd.org 2014/04/30 05:32:00 | ||
5025 | [regress/Makefile] | ||
5026 | unit tests for new buffer API; including basic fuzz testing | ||
5027 | NB. Id sync only. | ||
5028 | |||
5029 | commit 3ff92ba756aee48e4ae3e0aeff7293517b3dd185 | ||
5030 | Author: Damien Miller <djm@mindrot.org> | ||
5031 | Date: Wed Jul 2 15:33:09 2014 +1000 | ||
5032 | |||
5033 | - djm@cvs.openbsd.org 2014/06/30 12:54:39 | ||
5034 | [key.c] | ||
5035 | suppress spurious error message when loading key with a passphrase; | ||
5036 | reported by kettenis@ ok markus@ | ||
5037 | - djm@cvs.openbsd.org 2014/07/02 04:59:06 | ||
5038 | [cipher-3des1.c] | ||
5039 | fix ssh protocol 1 on the server that regressed with the sshkey change | ||
5040 | (sometimes fatal() after auth completed), make file return useful status | ||
5041 | codes. | ||
5042 | NB. Id sync only for these two. They were bundled into the sshkey merge | ||
5043 | above, since it was easier to sync the entire file and then apply | ||
5044 | portable-specific changed atop it. | ||
5045 | |||
5046 | commit ec3d0e24a1e46873d80507f5cd8ee6d0d03ac5dc | ||
5047 | Author: Damien Miller <djm@mindrot.org> | ||
5048 | Date: Wed Jul 2 15:30:00 2014 +1000 | ||
5049 | |||
5050 | - markus@cvs.openbsd.org 2014/06/27 18:50:39 | ||
5051 | [ssh-add.c] | ||
5052 | fix loading of private keys | ||
5053 | |||
5054 | commit 4b3ed647d5b328cf68e6a8ffbee490d8e0683e82 | ||
5055 | Author: Damien Miller <djm@mindrot.org> | ||
5056 | Date: Wed Jul 2 15:29:40 2014 +1000 | ||
5057 | |||
5058 | - markus@cvs.openbsd.org 2014/06/27 16:41:56 | ||
5059 | [channels.c channels.h clientloop.c ssh.c] | ||
5060 | fix remote fwding with same listen port but different listen address | ||
5061 | with gerhard@, ok djm@ | ||
5062 | |||
5063 | commit 9e01ff28664921ce9b6500681333e42fb133b4d0 | ||
5064 | Author: Damien Miller <djm@mindrot.org> | ||
5065 | Date: Wed Jul 2 15:29:21 2014 +1000 | ||
5066 | |||
5067 | - deraadt@cvs.openbsd.org 2014/06/25 14:16:09 | ||
5068 | [sshbuf.c] | ||
5069 | unblock SIGSEGV before raising it | ||
5070 | ok djm | ||
5071 | |||
5072 | commit 1845fe6bda0729e52f4c645137f4fc3070b5438a | ||
5073 | Author: Damien Miller <djm@mindrot.org> | ||
5074 | Date: Wed Jul 2 15:29:01 2014 +1000 | ||
5075 | |||
5076 | - djm@cvs.openbsd.org 2014/06/24 02:21:01 | ||
5077 | [scp.c] | ||
5078 | when copying local->remote fails during read, don't send uninitialised | ||
5079 | heap to the remote end. Reported by Jann Horn | ||
5080 | |||
5081 | commit 19439e9a2a0ac0b4b3b1210e89695418beb1c883 | ||
5082 | Author: Damien Miller <djm@mindrot.org> | ||
5083 | Date: Wed Jul 2 15:28:40 2014 +1000 | ||
5084 | |||
5085 | - djm@cvs.openbsd.org 2014/06/24 02:19:48 | ||
5086 | [ssh.c] | ||
5087 | don't fatal() when hostname canonicalisation fails with a | ||
5088 | ProxyCommand in use; continue and allow the ProxyCommand to | ||
5089 | connect anyway (e.g. to a host with a name outside the DNS | ||
5090 | behind a bastion) | ||
5091 | |||
5092 | commit 8668706d0f52654fe64c0ca41a96113aeab8d2b8 | ||
5093 | Author: Damien Miller <djm@mindrot.org> | ||
5094 | Date: Wed Jul 2 15:28:02 2014 +1000 | ||
5095 | |||
5096 | - djm@cvs.openbsd.org 2014/06/24 01:13:21 | ||
5097 | [Makefile.in auth-bsdauth.c auth-chall.c auth-options.c auth-rsa.c | ||
5098 | [auth2-none.c auth2-pubkey.c authfile.c authfile.h cipher-3des1.c | ||
5099 | [cipher-chachapoly.c cipher-chachapoly.h cipher.c cipher.h | ||
5100 | [digest-libc.c digest-openssl.c digest.h dns.c entropy.c hmac.h | ||
5101 | [hostfile.c key.c key.h krl.c monitor.c packet.c rsa.c rsa.h | ||
5102 | [ssh-add.c ssh-agent.c ssh-dss.c ssh-ecdsa.c ssh-ed25519.c | ||
5103 | [ssh-keygen.c ssh-pkcs11-client.c ssh-pkcs11-helper.c ssh-pkcs11.c | ||
5104 | [ssh-rsa.c sshbuf-misc.c sshbuf.h sshconnect.c sshconnect1.c | ||
5105 | [sshconnect2.c sshd.c sshkey.c sshkey.h | ||
5106 | [openbsd-compat/openssl-compat.c openbsd-compat/openssl-compat.h] | ||
5107 | New key API: refactor key-related functions to be more library-like, | ||
5108 | existing API is offered as a set of wrappers. | ||
5109 | |||
5110 | with and ok markus@ | ||
5111 | |||
5112 | Thanks also to Ben Hawkes, David Tomaschik, Ivan Fratric, Matthew | ||
5113 | Dempsky and Ron Bowes for a detailed review a few months ago. | ||
5114 | |||
5115 | NB. This commit also removes portable OpenSSH support for OpenSSL | ||
5116 | <0.9.8e. | ||
5117 | |||
5118 | commit 2cd7929250cf9e9f658d70dcd452f529ba08c942 | ||
5119 | Author: Damien Miller <djm@mindrot.org> | ||
5120 | Date: Wed Jul 2 12:48:30 2014 +1000 | ||
5121 | |||
5122 | - djm@cvs.openbsd.org 2014/06/24 00:52:02 | ||
5123 | [krl.c] | ||
5124 | fix bug in KRL generation: multiple consecutive revoked certificate | ||
5125 | serial number ranges could be serialised to an invalid format. | ||
5126 | |||
5127 | Readers of a broken KRL caused by this bug will fail closed, so no | ||
5128 | should-have-been-revoked key will be accepted. | ||
5129 | |||
5130 | commit 99db840ee8dbbd2b3fbc6c45d0ee2f6a65e96898 | ||
5131 | Author: Damien Miller <djm@mindrot.org> | ||
5132 | Date: Wed Jul 2 12:48:04 2014 +1000 | ||
5133 | |||
5134 | - naddy@cvs.openbsd.org 2014/06/18 15:42:09 | ||
5135 | [sshbuf-getput-crypto.c] | ||
5136 | The ssh_get_bignum functions must accept the same range of bignums | ||
5137 | the corresponding ssh_put_bignum functions create. This fixes the | ||
5138 | use of 16384-bit RSA keys (bug reported by Eivind Evensen). | ||
5139 | ok djm@ | ||
5140 | |||
5141 | commit 84a89161a9629239b64171ef3e22ef6a3e462d51 | ||
5142 | Author: Damien Miller <djm@mindrot.org> | ||
5143 | Date: Wed Jul 2 12:47:48 2014 +1000 | ||
5144 | |||
5145 | - matthew@cvs.openbsd.org 2014/06/18 02:59:13 | ||
5146 | [sandbox-systrace.c] | ||
5147 | Now that we have a dedicated getentropy(2) system call for | ||
5148 | arc4random(3), we can disallow __sysctl(2) in OpenSSH's systrace | ||
5149 | sandbox. | ||
5150 | |||
5151 | ok djm | ||
5152 | |||
5153 | commit 51504ceec627c0ad57b9f75585c7b3d277f326be | ||
5154 | Author: Damien Miller <djm@mindrot.org> | ||
5155 | Date: Wed Jul 2 12:47:25 2014 +1000 | ||
5156 | |||
5157 | - deraadt@cvs.openbsd.org 2014/06/13 08:26:29 | ||
5158 | [sandbox-systrace.c] | ||
5159 | permit SYS_getentropy | ||
5160 | from matthew | ||
5161 | |||
5162 | commit a261b8df59117f7dc52abb3a34b35a40c2c9fa88 | ||
5163 | Author: Tim Rice <tim@multitalents.net> | ||
5164 | Date: Wed Jun 18 16:17:28 2014 -0700 | ||
5165 | |||
5166 | - (tim) [openssh/session.c] Work around to get chroot sftp working on UnixWare | ||
5167 | |||
5168 | commit 316fac6f18f87262a315c79bcf68b9f92c9337e4 | ||
5169 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5170 | Date: Tue Jun 17 23:06:07 2014 +1000 | ||
5171 | |||
5172 | - (dtucker) [entropy.c openbsd-compat/openssl-compat.{c,h} | ||
5173 | openbsd-compat/regress/{.cvsignore,Makefile.in,opensslvertest.c}] | ||
5174 | Move the OpenSSL header/library version test into its own function and add | ||
5175 | tests for it. Fix it to allow fix version upgrades (but not downgrades). | ||
5176 | Prompted by chl@ via OpenSMTPD (issue #462) and Debian (bug #748150). | ||
5177 | ok djm@ chl@ | ||
5178 | |||
5179 | commit af665bb7b092a59104db1e65577851cf35b86e32 | ||
5180 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5181 | Date: Mon Jun 16 22:50:55 2014 +1000 | ||
5182 | |||
5183 | - (dtucker) [defines.h] Fix undef of _PATH_MAILDIR. From rak at debian via | ||
5184 | OpenSMTPD and chl@ | ||
5185 | |||
5186 | commit f9696566fb41320820f3b257ab564fa321bb3751 | ||
5187 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5188 | Date: Fri Jun 13 11:06:04 2014 +1000 | ||
5189 | |||
5190 | - (dtucker) [configure.ac] Remove tcpwrappers support, support has already | ||
5191 | been removed from sshd.c. | ||
5192 | |||
5193 | commit 5e2b8894b0b24af4ad0a2f7aa33ebf255df7a8bc | ||
5194 | Author: Tim Rice <tim@multitalents.net> | ||
5195 | Date: Wed Jun 11 18:31:10 2014 -0700 | ||
5196 | |||
5197 | - (tim) [regress/unittests/test_helper/test_helper.h] Add includes.h for | ||
5198 | u_intXX_t types. | ||
5199 | |||
5200 | commit 985ee2cbc3e43bc65827c3c0d4df3faa99160c37 | ||
5201 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5202 | Date: Thu Jun 12 05:32:29 2014 +1000 | ||
5203 | |||
5204 | - (dtucker) [regress/unittests/sshbuf/*.c regress/unittests/test_helper/*] | ||
5205 | Wrap stdlib.h include an ifdef for platforms that don't have it. | ||
5206 | |||
5207 | commit cf5392c2db2bb1dbef9818511d34056404436109 | ||
5208 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5209 | Date: Thu Jun 12 05:22:49 2014 +1000 | ||
5210 | |||
5211 | - (dtucker) [defines.h] Add va_copy if we don't already have it, taken from | ||
5212 | openbsd-compat/bsd-asprintf.c. | ||
5213 | |||
5214 | commit 58538d795e0b662f2f4e5a7193f1204bbe992ddd | ||
5215 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5216 | Date: Wed Jun 11 13:39:24 2014 +1000 | ||
5217 | |||
5218 | - (dtucker) [bufaux.c bufbn.c bufec.c buffer.c] Pull in includes.h for | ||
5219 | compat stuff, specifically whether or not OpenSSL has ECC. | ||
5220 | |||
5221 | commit eb012ac581fd0abc16ee86ee3a68cf07c8ce4d08 | ||
5222 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5223 | Date: Wed Jun 11 13:10:00 2014 +1000 | ||
5224 | |||
5225 | - (dtucker) [openbsd-compat/arc4random.c] Use explicit_bzero instead of an | ||
5226 | assigment that might get optimized out. ok djm@ | ||
5227 | |||
5228 | commit b9609fd86c623d6d440e630f5f9a63295f7aea20 | ||
5229 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5230 | Date: Wed Jun 11 08:04:02 2014 +1000 | ||
5231 | |||
5232 | - (dtucker) [sshbuf.h] Only declare ECC functions if building without | ||
5233 | OpenSSL or if OpenSSL has ECC. | ||
5234 | |||
5235 | commit a54a040f66944c6e8913df8635a01a2327219be9 | ||
5236 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5237 | Date: Wed Jun 11 07:58:35 2014 +1000 | ||
5238 | |||
5239 | - dtucker@cvs.openbsd.org 2014/06/10 21:46:11 | ||
5240 | [sshbuf.h] | ||
5241 | Group ECC functions together to make things a little easier in -portable. | ||
5242 | "doesn't bother me" deraadt@ | ||
5243 | |||
5244 | commit 9f92c53bad04a89067756be8198d4ec2d8a08875 | ||
5245 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5246 | Date: Wed Jun 11 07:57:58 2014 +1000 | ||
5247 | |||
5248 | - djm@cvs.openbsd.org 2014/06/05 22:17:50 | ||
5249 | [sshconnect2.c] | ||
5250 | fix inverted test that caused PKCS#11 keys that were explicitly listed | ||
5251 | not to be preferred. Reported by Dirk-Willem van Gulik | ||
5252 | |||
5253 | commit 15c254a25394f96643da2ad0f674acdc51e89856 | ||
5254 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5255 | Date: Wed Jun 11 07:38:49 2014 +1000 | ||
5256 | |||
5257 | - (dtucker) [regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c] ifdef | ||
5258 | ECC variable too. | ||
5259 | |||
5260 | commit d7af0cc5bf273eeed0897a99420bc26841d07d8f | ||
5261 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5262 | Date: Wed Jun 11 07:37:25 2014 +1000 | ||
5263 | |||
5264 | - (dtucker) [myprosal.h] Don't include curve25519-sha256@libssh.org in | ||
5265 | the proposal if the version of OpenSSL we're using doesn't support ECC. | ||
5266 | |||
5267 | commit 67508ac2563c33d582be181a3e777c65f549d22f | ||
5268 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5269 | Date: Wed Jun 11 06:27:16 2014 +1000 | ||
5270 | |||
5271 | - (dtucker) [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c | ||
5272 | regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c] Only do NISTP256 | ||
5273 | curve tests if OpenSSL has them. | ||
5274 | |||
5275 | commit 6482d90a65459a88c18c925368525855832272b3 | ||
5276 | Author: Damien Miller <djm@mindrot.org> | ||
5277 | Date: Tue May 27 14:34:42 2014 +1000 | ||
5278 | |||
5279 | - (djm) [configure.ac openbsd-compat/bsd-cygwin_util.c] | ||
5280 | [openbsd-compat/bsd-cygwin_util.h] On Cygwin, determine privilege | ||
5281 | separation user at runtime, since it may need to be a domain account. | ||
5282 | Patch from Corinna Vinschen. | ||
5283 | |||
5284 | commit f9eb5e0734f7a7f6e975809eb54684d2a06a7ffc | ||
5285 | Author: Damien Miller <djm@mindrot.org> | ||
5286 | Date: Tue May 27 14:31:58 2014 +1000 | ||
5287 | |||
5288 | - (djm) [contrib/cygwin/ssh-host-config] Updated Cygwin ssh-host-config | ||
5289 | from Corinna Vinschen, fixing a number of bugs and preparing for | ||
5290 | Cygwin 1.7.30. | ||
5291 | |||
5292 | commit eae88744662e6b149f43ef071657727f1a157d95 | ||
5293 | Author: Damien Miller <djm@mindrot.org> | ||
5294 | Date: Tue May 27 14:27:02 2014 +1000 | ||
5295 | |||
5296 | - (djm) [cipher.c] Fix merge botch. | ||
5297 | |||
5298 | commit 564b5e253c1d95c26a00e8288f0089a2571661c3 | ||
5299 | Author: Damien Miller <djm@mindrot.org> | ||
5300 | Date: Thu May 22 08:23:59 2014 +1000 | ||
5301 | |||
5302 | - (djm) [Makefile.in] typo in path | ||
5303 | |||
5304 | commit e84d10302aeaf7a1acb05c451f8718143656856a | ||
5305 | Author: Damien Miller <djm@mindrot.org> | ||
5306 | Date: Wed May 21 17:13:36 2014 +1000 | ||
5307 | |||
5308 | revert a diff I didn't mean to commit | ||
5309 | |||
5310 | commit 795b86313f1f1aab9691666c4f2d5dae6e4acd50 | ||
5311 | Author: Damien Miller <djm@mindrot.org> | ||
5312 | Date: Wed May 21 17:12:53 2014 +1000 | ||
5313 | |||
5314 | - (djm) [misc.c] Use CLOCK_BOOTTIME in preference to CLOCK_MONOTONIC | ||
5315 | when it is available. It takes into account time spent suspended, | ||
5316 | thereby ensuring timeouts (e.g. for expiring agent keys) fire | ||
5317 | correctly. bz#2228 reported by John Haxby | ||
5318 | |||
5319 | commit 18912775cb97c0b1e75e838d3c7d4b56648137b5 | ||
5320 | Author: Damien Miller <djm@mindrot.org> | ||
5321 | Date: Wed May 21 17:06:46 2014 +1000 | ||
5322 | |||
5323 | - (djm) [commit configure.ac defines.h sshpty.c] don't attempt to use | ||
5324 | vhangup on Linux. It doens't work for non-root users, and for them | ||
5325 | it just messes up the tty settings. | ||
5326 | |||
5327 | commit 7f1c264d3049cd95234e91970ccb5406e1d15b27 | ||
5328 | Author: Damien Miller <djm@mindrot.org> | ||
5329 | Date: Thu May 15 18:01:52 2014 +1000 | ||
5330 | |||
5331 | - (djm) [sshbuf.c] need __predict_false | ||
5332 | |||
5333 | commit e7429f2be8643e1100380a8a7389d85cc286c8fe | ||
5334 | Author: Damien Miller <djm@mindrot.org> | ||
5335 | Date: Thu May 15 18:01:01 2014 +1000 | ||
5336 | |||
5337 | - (djm) [regress/Makefile Makefile.in] | ||
5338 | [regress/unittests/sshbuf/test_sshbuf.c | ||
5339 | [regress/unittests/sshbuf/test_sshbuf_fixed.c] | ||
5340 | [regress/unittests/sshbuf/test_sshbuf_fuzz.c] | ||
5341 | [regress/unittests/sshbuf/test_sshbuf_getput_basic.c] | ||
5342 | [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c] | ||
5343 | [regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c] | ||
5344 | [regress/unittests/sshbuf/test_sshbuf_misc.c] | ||
5345 | [regress/unittests/sshbuf/tests.c] | ||
5346 | [regress/unittests/test_helper/fuzz.c] | ||
5347 | [regress/unittests/test_helper/test_helper.c] | ||
5348 | Hook new unit tests into the build and "make tests" | ||
5349 | |||
5350 | commit def1de086707b0e6b046fe7e115c60aca0227a99 | ||
5351 | Author: Damien Miller <djm@mindrot.org> | ||
5352 | Date: Thu May 15 15:17:15 2014 +1000 | ||
5353 | |||
5354 | - (djm) [regress/unittests/Makefile] | ||
5355 | [regress/unittests/Makefile.inc] | ||
5356 | [regress/unittests/sshbuf/Makefile] | ||
5357 | [regress/unittests/sshbuf/test_sshbuf.c] | ||
5358 | [regress/unittests/sshbuf/test_sshbuf_fixed.c] | ||
5359 | [regress/unittests/sshbuf/test_sshbuf_fuzz.c] | ||
5360 | [regress/unittests/sshbuf/test_sshbuf_getput_basic.c] | ||
5361 | [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c] | ||
5362 | [regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c] | ||
5363 | [regress/unittests/sshbuf/test_sshbuf_misc.c] | ||
5364 | [regress/unittests/sshbuf/tests.c] | ||
5365 | [regress/unittests/test_helper/Makefile] | ||
5366 | [regress/unittests/test_helper/fuzz.c] | ||
5367 | [regress/unittests/test_helper/test_helper.c] | ||
5368 | [regress/unittests/test_helper/test_helper.h] | ||
5369 | Import new unit tests from OpenBSD; not yet hooked up to build. | ||
5370 | |||
5371 | commit 167685756fde8bc213a8df2c8e1848e312db0f46 | ||
5372 | Author: Damien Miller <djm@mindrot.org> | ||
5373 | Date: Thu May 15 15:08:40 2014 +1000 | ||
5374 | |||
5375 | - logan@cvs.openbsd.org 2014/05/04 10:40:59 | ||
5376 | [connect-privsep.sh] | ||
5377 | Remove the Z flag from the list of malloc options as it | ||
5378 | was removed from malloc.c 10 days ago. | ||
5379 | |||
5380 | OK from miod@ | ||
5381 | |||
5382 | commit d0b69fe90466920d69c96069312e24b581771bd7 | ||
5383 | Author: Damien Miller <djm@mindrot.org> | ||
5384 | Date: Thu May 15 15:08:19 2014 +1000 | ||
5385 | |||
5386 | - dtucker@cvs.openbsd.org 2014/05/03 18:46:14 | ||
5387 | [proxy-connect.sh] | ||
5388 | Add tests for with and without compression, with and without privsep. | ||
5389 | |||
5390 | commit edb1af50441d19fb2dd9ccb4d75bf14473fca584 | ||
5391 | Author: Damien Miller <djm@mindrot.org> | ||
5392 | Date: Thu May 15 15:07:53 2014 +1000 | ||
5393 | |||
5394 | - djm@cvs.openbsd.org 2014/04/21 22:15:37 | ||
5395 | [dhgex.sh integrity.sh kextype.sh rekey.sh try-ciphers.sh] | ||
5396 | repair regress tests broken by server-side default cipher/kex/mac changes | ||
5397 | by ensuring that the option under test is included in the server's | ||
5398 | algorithm list | ||
5399 | |||
5400 | commit 54343e95c70994695f8842fb22836321350198d3 | ||
5401 | Author: Damien Miller <djm@mindrot.org> | ||
5402 | Date: Thu May 15 15:07:33 2014 +1000 | ||
5403 | |||
5404 | - djm@cvs.openbsd.org 2014/03/13 20:44:49 | ||
5405 | [login-timeout.sh] | ||
5406 | this test is a sorry mess of race conditions; add another sleep | ||
5407 | to avoid a failure on slow machines (at least until I find a | ||
5408 | better way) | ||
5409 | |||
5410 | commit e5b9f0f2ee6e133894307e44e862b66426990733 | ||
5411 | Author: Damien Miller <djm@mindrot.org> | ||
5412 | Date: Thu May 15 14:58:07 2014 +1000 | ||
5413 | |||
5414 | - (djm) [Makefile.in configure.ac sshbuf-getput-basic.c] | ||
5415 | [sshbuf-getput-crypto.c sshbuf.c] compilation and portability fixes | ||
5416 | |||
5417 | commit b9c566788a9ebd6a9d466f47a532124f111f0542 | ||
5418 | Author: Damien Miller <djm@mindrot.org> | ||
5419 | Date: Thu May 15 14:43:37 2014 +1000 | ||
5420 | |||
5421 | - (djm) [configure.ac] Unconditionally define WITH_OPENSSL until we write | ||
5422 | portability glue to support building without libcrypto | ||
5423 | |||
5424 | commit 3dc27178b42234b653a32f7a87292d7994045ee3 | ||
5425 | Author: Damien Miller <djm@mindrot.org> | ||
5426 | Date: Thu May 15 14:37:59 2014 +1000 | ||
5427 | |||
5428 | - logan@cvs.openbsd.org 2014/05/05 07:02:30 | ||
5429 | [sftp.c] | ||
5430 | Zap extra whitespace. | ||
5431 | |||
5432 | OK from djm@ and dtucker@ | ||
5433 | |||
5434 | commit c31a0cd5b31961f01c5b731f62a6cb9d4f767472 | ||
5435 | Author: Damien Miller <djm@mindrot.org> | ||
5436 | Date: Thu May 15 14:37:39 2014 +1000 | ||
5437 | |||
5438 | - markus@cvs.openbsd.org 2014/05/03 17:20:34 | ||
5439 | [monitor.c packet.c packet.h] | ||
5440 | unbreak compression, by re-init-ing the compression code in the | ||
5441 | post-auth child. the new buffer code is more strict, and requires | ||
5442 | buffer_init() while the old code was happy after a bzero(); | ||
5443 | originally from djm@ | ||
5444 | |||
5445 | commit 686c7d9ee6f44b2be4128d7860b6b37adaeba733 | ||
5446 | Author: Damien Miller <djm@mindrot.org> | ||
5447 | Date: Thu May 15 14:37:03 2014 +1000 | ||
5448 | |||
5449 | - djm@cvs.openbsd.org 2014/05/02 03:27:54 | ||
5450 | [chacha.h cipher-chachapoly.h digest.h hmac.h kex.h kexc25519.c] | ||
5451 | [misc.h poly1305.h ssh-pkcs11.c defines.h] | ||
5452 | revert __bounded change; it causes way more problems for portable than | ||
5453 | it solves; pointed out by dtucker@ | ||
5454 | |||
5455 | commit 294c58a007cfb2f3bddc4fc3217e255857ffb9bf | ||
5456 | Author: Damien Miller <djm@mindrot.org> | ||
5457 | Date: Thu May 15 14:35:03 2014 +1000 | ||
5458 | |||
5459 | - naddy@cvs.openbsd.org 2014/04/30 19:07:48 | ||
5460 | [mac.c myproposal.h umac.c] | ||
5461 | UMAC can use our local fallback implementation of AES when OpenSSL isn't | ||
5462 | available. Glue code straight from Ted Krovetz's original umac.c. | ||
5463 | ok markus@ | ||
5464 | |||
5465 | commit 05e82c3b963c33048128baf72a6f6b3a1c10b4c1 | ||
5466 | Author: Damien Miller <djm@mindrot.org> | ||
5467 | Date: Thu May 15 14:33:43 2014 +1000 | ||
5468 | |||
5469 | - djm@cvs.openbsd.org 2014/04/30 05:29:56 | ||
5470 | [bufaux.c bufbn.c bufec.c buffer.c buffer.h sshbuf-getput-basic.c] | ||
5471 | [sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c sshbuf.h ssherr.c] | ||
5472 | [ssherr.h] | ||
5473 | New buffer API; the first installment of the conversion/replacement | ||
5474 | of OpenSSH's internals to make them usable as a standalone library. | ||
5475 | |||
5476 | This includes a set of wrappers to make it compatible with the | ||
5477 | existing buffer API so replacement can occur incrementally. | ||
5478 | |||
5479 | With and ok markus@ | ||
5480 | |||
5481 | Thanks also to Ben Hawkes, David Tomaschik, Ivan Fratric, Matthew | ||
5482 | Dempsky and Ron Bowes for a detailed review. | ||
5483 | |||
5484 | commit 380948180f847a26f2d0c85b4dad3dca2ed2fd8b | ||
5485 | Author: Damien Miller <djm@mindrot.org> | ||
5486 | Date: Thu May 15 14:25:18 2014 +1000 | ||
5487 | |||
5488 | - dtucker@cvs.openbsd.org 2014/04/29 20:36:51 | ||
5489 | [sftp.c] | ||
5490 | Don't attempt to append a nul quote char to the filename. Should prevent | ||
5491 | fatal'ing with "el_insertstr failed" when there's a single quote char | ||
5492 | somewhere in the string. bz#2238, ok markus@ | ||
5493 | |||
5494 | commit d7fd8bedd4619a2ec7fd02aae4c4e1db4431ad9f | ||
5495 | Author: Damien Miller <djm@mindrot.org> | ||
5496 | Date: Thu May 15 14:24:59 2014 +1000 | ||
5497 | |||
5498 | - dtucker@cvs.openbsd.org 2014/04/29 19:58:50 | ||
5499 | [sftp.c] | ||
5500 | Move nulling of variable next to where it's freed. ok markus@ | ||
5501 | |||
5502 | commit 1f0311c7c7d10c94ff7f823de9c5b2ed79368b14 | ||
5503 | Author: Damien Miller <djm@mindrot.org> | ||
5504 | Date: Thu May 15 14:24:09 2014 +1000 | ||
5505 | |||
5506 | - markus@cvs.openbsd.org 2014/04/29 18:01:49 | ||
5507 | [auth.c authfd.c authfile.c bufaux.c cipher.c cipher.h hostfile.c] | ||
5508 | [kex.c key.c mac.c monitor.c monitor_wrap.c myproposal.h packet.c] | ||
5509 | [roaming_client.c ssh-agent.c ssh-keygen.c ssh-keyscan.c ssh-keysign.c] | ||
5510 | [ssh-pkcs11.h ssh.c sshconnect.c sshconnect2.c sshd.c] | ||
5511 | make compiling against OpenSSL optional (make OPENSSL=no); | ||
5512 | reduces algorithms to curve25519, aes-ctr, chacha, ed25519; | ||
5513 | allows us to explore further options; with and ok djm | ||
5514 | |||
5515 | commit c5893785564498cea73cb60d2cf199490483e080 | ||
5516 | Author: Damien Miller <djm@mindrot.org> | ||
5517 | Date: Thu May 15 13:48:49 2014 +1000 | ||
5518 | |||
5519 | - djm@cvs.openbsd.org 2014/04/29 13:10:30 | ||
5520 | [clientloop.c serverloop.c] | ||
5521 | bz#1818 - don't send channel success/failre replies on channels that | ||
5522 | have sent a close already; analysis and patch from Simon Tatham; | ||
5523 | ok markus@ | ||
5524 | |||
5525 | commit 633de33b192d808d87537834c316dc8b75fe1880 | ||
5526 | Author: Damien Miller <djm@mindrot.org> | ||
5527 | Date: Thu May 15 13:48:26 2014 +1000 | ||
5528 | |||
5529 | - djm@cvs.openbsd.org 2014/04/28 03:09:18 | ||
5530 | [authfile.c bufaux.c buffer.h channels.c krl.c mux.c packet.c packet.h] | ||
5531 | [ssh-keygen.c] | ||
5532 | buffer_get_string_ptr's return should be const to remind | ||
5533 | callers that futzing with it will futz with the actual buffer | ||
5534 | contents | ||
5535 | |||
5536 | commit 15271907843e4ae50dcfc83b3594014cf5e9607b | ||
5537 | Author: Damien Miller <djm@mindrot.org> | ||
5538 | Date: Thu May 15 13:47:56 2014 +1000 | ||
5539 | |||
5540 | - djm@cvs.openbsd.org 2014/04/23 12:42:34 | ||
5541 | [readconf.c] | ||
5542 | don't record duplicate IdentityFiles | ||
5543 | |||
5544 | commit 798a02568b13a2e46efebd81f08c8f4bb33a6dc7 | ||
5545 | Author: Damien Miller <djm@mindrot.org> | ||
5546 | Date: Thu May 15 13:47:37 2014 +1000 | ||
5547 | |||
5548 | - jmc@cvs.openbsd.org 2014/04/22 14:16:30 | ||
5549 | [sftp.1] | ||
5550 | zap eol whitespace; | ||
5551 | |||
5552 | commit d875ff78d2b8436807381051de112f0ebf9b9ae1 | ||
5553 | Author: Damien Miller <djm@mindrot.org> | ||
5554 | Date: Thu May 15 13:47:15 2014 +1000 | ||
5555 | |||
5556 | - logan@cvs.openbsd.org 2014/04/22 12:42:04 | ||
5557 | [sftp.1] | ||
5558 | Document sftp upload resume. | ||
5559 | OK from djm@, with feedback from okan@. | ||
5560 | |||
5561 | commit b15cd7bb097fd80dc99520f45290ef775da1ef19 | ||
5562 | Author: Damien Miller <djm@mindrot.org> | ||
5563 | Date: Thu May 15 13:46:52 2014 +1000 | ||
5564 | |||
5565 | - logan@cvs.openbsd.org 2014/04/22 10:07:12 | ||
5566 | [sftp.c] | ||
5567 | Sort the sftp command list. | ||
5568 | OK from djm@ | ||
5569 | |||
5570 | commit d8accc0aa72656ba63d50937165c5ae49db1dcd6 | ||
5571 | Author: Damien Miller <djm@mindrot.org> | ||
5572 | Date: Thu May 15 13:46:25 2014 +1000 | ||
5573 | |||
5574 | - logan@cvs.openbsd.org 2014/04/21 14:36:16 | ||
5575 | [sftp-client.c sftp-client.h sftp.c] | ||
5576 | Implement sftp upload resume support. | ||
5577 | OK from djm@, with input from guenther@, mlarkin@ and | ||
5578 | okan@ | ||
5579 | |||
5580 | commit 16cd3928a87d20c77b13592a74b60b08621d3ce6 | ||
5581 | Author: Damien Miller <djm@mindrot.org> | ||
5582 | Date: Thu May 15 13:45:58 2014 +1000 | ||
5583 | |||
5584 | - logan@cvs.openbsd.org 2014/04/20 09:24:26 | ||
5585 | [dns.c dns.h ssh-keygen.c] | ||
5586 | Add support for SSHFP DNS records for ED25519 key types. | ||
5587 | OK from djm@ | ||
5588 | |||
5589 | commit ec0b67eb3b4e12f296ced1fafa01860c374f7eea | ||
5590 | Author: Damien Miller <djm@mindrot.org> | ||
5591 | Date: Thu May 15 13:45:26 2014 +1000 | ||
5592 | |||
5593 | - (djm) [rijndael.c rijndael.h] Sync with newly-ressurected versions ine | ||
5594 | OpenBSD | ||
5595 | |||
5596 | commit f028460d0b2e5a584355321015cde69bf6fd933e | ||
5597 | Author: Darren Tucker <dtucker@zip.com.au> | ||
5598 | Date: Thu May 1 02:24:35 2014 +1000 | ||
5599 | |||
5600 | - (dtucker) [defines.h] Define __GNUC_PREREQ__ macro if we don't already | ||
5601 | have it. Only attempt to use __attribute__(__bounded__) for gcc. | ||
5602 | |||
5603 | commit b628cc4c3e4a842bab5e4584d18c2bc5fa4d0edf | ||
5604 | Author: Damien Miller <djm@mindrot.org> | ||
5605 | Date: Sun Apr 20 13:33:58 2014 +1000 | ||
5606 | |||
5607 | - djm@cvs.openbsd.org 2014/04/20 02:49:32 | ||
5608 | [compat.c] | ||
5609 | add a canonical 6.6 + curve25519 bignum fix fake version that I can | ||
5610 | recommend people use ahead of the openssh-6.7 release | ||
5611 | |||
5612 | commit 888566913933a802f3a329ace123ebcb7154cf78 | ||
5613 | Author: Damien Miller <djm@mindrot.org> | ||
5614 | Date: Sun Apr 20 13:33:19 2014 +1000 | ||
5615 | |||
5616 | - djm@cvs.openbsd.org 2014/04/20 02:30:25 | ||
5617 | [misc.c misc.h umac.c] | ||
5618 | use get/put_u32 to load values rather than *((UINT32 *)p) that breaks on | ||
5619 | strict-alignment architectures; reported by and ok stsp@ | ||
5620 | |||
5621 | commit 16f85cbc7e5139950e6a38317e7c8b368beafa5d | ||
5622 | Author: Damien Miller <djm@mindrot.org> | ||
5623 | Date: Sun Apr 20 13:29:28 2014 +1000 | ||
5624 | |||
5625 | - tedu@cvs.openbsd.org 2014/04/19 18:42:19 | ||
5626 | [ssh.1] | ||
5627 | delete .xr to hosts.equiv. there's still an unfortunate amount of | ||
5628 | documentation referring to rhosts equivalency in here. | ||
5629 | |||
5630 | commit 69cb24b7356ec3f0fc5ff04a68f98f2c55c766f4 | ||
5631 | Author: Damien Miller <djm@mindrot.org> | ||
5632 | Date: Sun Apr 20 13:29:06 2014 +1000 | ||
5633 | |||
5634 | - tedu@cvs.openbsd.org 2014/04/19 18:15:16 | ||
5635 | [sshd.8] | ||
5636 | remove some really old rsh references | ||
5637 | |||
5638 | commit 84c1e7bca8c4ceaccf4d5557e39a833585a3c77e | ||
5639 | Author: Damien Miller <djm@mindrot.org> | ||
5640 | Date: Sun Apr 20 13:27:53 2014 +1000 | ||
5641 | |||
5642 | - tedu@cvs.openbsd.org 2014/04/19 14:53:48 | ||
5643 | [ssh-keysign.c sshd.c] | ||
5644 | Delete futile calls to RAND_seed. ok djm | ||
5645 | NB. Id sync only. This only applies to OpenBSD's libcrypto slashathon | ||
5646 | |||
5647 | commit 0e6b67423b8662f9ca4c92750309e144fd637ef1 | ||
5648 | Author: Damien Miller <djm@mindrot.org> | ||
5649 | Date: Sun Apr 20 13:27:01 2014 +1000 | ||
5650 | |||
5651 | - djm@cvs.openbsd.org 2014/04/19 05:54:59 | ||
5652 | [compat.c] | ||
5653 | missing wildcard; pointed out by naddy@ | ||
5654 | |||
5655 | commit 9395b28223334826837c15e8c1bb4dfb3b0d2ca5 | ||
5656 | Author: Damien Miller <djm@mindrot.org> | ||
5657 | Date: Sun Apr 20 13:25:30 2014 +1000 | ||
5658 | |||
5659 | - djm@cvs.openbsd.org 2014/04/18 23:52:25 | ||
5660 | [compat.c compat.h sshconnect2.c sshd.c version.h] | ||
5661 | OpenSSH 6.5 and 6.6 have a bug that causes ~0.2% of connections | ||
5662 | using the curve25519-sha256@libssh.org KEX exchange method to fail | ||
5663 | when connecting with something that implements the spec properly. | ||
5664 | |||
5665 | Disable this KEX method when speaking to one of the affected | ||
5666 | versions. | ||
5667 | |||
5668 | reported by Aris Adamantiadis; ok markus@ | ||
5669 | |||
5670 | commit 8c492da58f8ceb85cf5f7066f23e26fb813a963d | ||
5671 | Author: Damien Miller <djm@mindrot.org> | ||
5672 | Date: Sun Apr 20 13:25:09 2014 +1000 | ||
5673 | |||
5674 | - djm@cvs.openbsd.org 2014/04/16 23:28:12 | ||
5675 | [ssh-agent.1] | ||
5676 | remove the identity files from this manpage - ssh-agent doesn't deal | ||
5677 | with them at all and the same information is duplicated in ssh-add.1 | ||
5678 | (which does deal with them); prodded by deraadt@ | ||
5679 | |||
5680 | commit adbfdbbdccc70c9bd70d81ae096db115445c6e26 | ||
5681 | Author: Damien Miller <djm@mindrot.org> | ||
5682 | Date: Sun Apr 20 13:24:49 2014 +1000 | ||
5683 | |||
5684 | - djm@cvs.openbsd.org 2014/04/16 23:22:45 | ||
5685 | [bufaux.c] | ||
5686 | skip leading zero bytes in buffer_put_bignum2_from_string(); | ||
5687 | reported by jan AT mojzis.com; ok markus@ | ||
5688 | |||
5689 | commit 75c62728dc87af6805696eeb520b9748faa136c8 | ||
5690 | Author: Damien Miller <djm@mindrot.org> | ||
5691 | Date: Sun Apr 20 13:24:31 2014 +1000 | ||
5692 | |||
5693 | - djm@cvs.openbsd.org 2014/04/12 04:55:53 | ||
5694 | [sshd.c] | ||
5695 | avoid crash at exit: check that pmonitor!=NULL before dereferencing; | ||
5696 | bz#2225, patch from kavi AT juniper.net | ||
5697 | |||
5698 | commit 2a328437fb1b0976f2f4522d8645803d5a5d0967 | ||
5699 | Author: Damien Miller <djm@mindrot.org> | ||
5700 | Date: Sun Apr 20 13:24:01 2014 +1000 | ||
5701 | |||
5702 | - djm@cvs.openbsd.org 2014/04/01 05:32:57 | ||
5703 | [packet.c] | ||
5704 | demote a debug3 to PACKET_DEBUG; ok markus@ | ||
5705 | |||
5706 | commit 7d6a9fb660c808882d064e152d6070ffc3844c3f | ||
5707 | Author: Damien Miller <djm@mindrot.org> | ||
5708 | Date: Sun Apr 20 13:23:43 2014 +1000 | ||
5709 | |||
5710 | - djm@cvs.openbsd.org 2014/04/01 03:34:10 | ||
5711 | [sshconnect.c] | ||
5712 | When using VerifyHostKeyDNS with a DNSSEC resolver, down-convert any | ||
5713 | certificate keys to plain keys and attempt SSHFP resolution. | ||
5714 | |||
5715 | Prevents a server from skipping SSHFP lookup and forcing a new-hostkey | ||
5716 | dialog by offering only certificate keys. | ||
5717 | |||
5718 | Reported by mcv21 AT cam.ac.uk | ||
5719 | |||
5720 | commit fcd62c0b66b8415405ed0af29c236329eb88cc0f | ||
5721 | Author: Damien Miller <djm@mindrot.org> | ||
5722 | Date: Sun Apr 20 13:23:21 2014 +1000 | ||
5723 | |||
5724 | - djm@cvs.openbsd.org 2014/04/01 02:05:27 | ||
5725 | [ssh-keysign.c] | ||
5726 | include fingerprint of key not found | ||
5727 | use arc4random_buf() instead of loop+arc4random() | ||
5728 | |||
5729 | commit 43b156cf72f900f88065b0a1c1ebd09ab733ca46 | ||
5730 | Author: Damien Miller <djm@mindrot.org> | ||
5731 | Date: Sun Apr 20 13:23:03 2014 +1000 | ||
5732 | |||
5733 | - jmc@cvs.openbsd.org 2014/03/31 13:39:34 | ||
5734 | [ssh-keygen.1] | ||
5735 | the text for the -K option was inserted in the wrong place in -r1.108; | ||
5736 | fix From: Matthew Clarke | ||
5737 | |||
5738 | commit c1621c84f2dc1279065ab9fde2aa9327af418900 | ||
5739 | Author: Damien Miller <djm@mindrot.org> | ||
5740 | Date: Sun Apr 20 13:22:46 2014 +1000 | ||
5741 | |||
5742 | - naddy@cvs.openbsd.org 2014/03/28 05:17:11 | ||
5743 | [ssh_config.5 sshd_config.5] | ||
5744 | sync available and default algorithms, improve algorithm list formatting | ||
5745 | help from jmc@ and schwarze@, ok deraadt@ | ||
5746 | |||
5747 | commit f2719b7c2b8a3b14d778d8a6d8dc729b5174b054 | ||
5748 | Author: Damien Miller <djm@mindrot.org> | ||
5749 | Date: Sun Apr 20 13:22:18 2014 +1000 | ||
5750 | |||
5751 | - tedu@cvs.openbsd.org 2014/03/26 19:58:37 | ||
5752 | [sshd.8 sshd.c] | ||
5753 | remove libwrap support. ok deraadt djm mfriedl | ||
5754 | |||
5755 | commit 4f40209aa4060b9c066a2f0d9332ace7b8dfb391 | ||
5756 | Author: Damien Miller <djm@mindrot.org> | ||
5757 | Date: Sun Apr 20 13:21:22 2014 +1000 | ||
5758 | |||
5759 | - djm@cvs.openbsd.org 2014/03/26 04:55:35 | ||
5760 | [chacha.h cipher-chachapoly.h digest.h hmac.h kex.h kexc25519.c | ||
5761 | [misc.h poly1305.h ssh-pkcs11.c] | ||
5762 | use __bounded(...) attribute recently added to sys/cdefs.h instead of | ||
5763 | longform __attribute__(__bounded(...)); | ||
5764 | |||
5765 | for brevity and a warning free compilation with llvm/clang | ||
5766 | |||
5767 | commit 9235a030ad1b16903fb495d81544e0f7c7449523 | ||
5768 | Author: Damien Miller <djm@mindrot.org> | ||
5769 | Date: Sun Apr 20 13:17:20 2014 +1000 | ||
5770 | |||
5771 | Three commits in one (since they touch the same heavily-diverged file | ||
5772 | repeatedly): | ||
5773 | |||
5774 | - markus@cvs.openbsd.org 2014/03/25 09:40:03 | ||
5775 | [myproposal.h] | ||
5776 | trimm default proposals. | ||
5777 | |||
5778 | This commit removes the weaker pre-SHA2 hashes, the broken ciphers | ||
5779 | (arcfour), and the broken modes (CBC) from the default configuration | ||
5780 | (the patch only changes the default, all the modes are still available | ||
5781 | for the config files). | ||
5782 | |||
5783 | ok djm@, reminded by tedu@ & naddy@ and discussed with many | ||
5784 | - deraadt@cvs.openbsd.org 2014/03/26 17:16:26 | ||
5785 | [myproposal.h] | ||
5786 | The current sharing of myproposal[] between both client and server code | ||
5787 | makes the previous diff highly unpallatable. We want to go in that | ||
5788 | direction for the server, but not for the client. Sigh. | ||
5789 | Brought up by naddy. | ||
5790 | - markus@cvs.openbsd.org 2014/03/27 23:01:27 | ||
5791 | [myproposal.h ssh-keyscan.c sshconnect2.c sshd.c] | ||
5792 | disable weak proposals in sshd, but keep them in ssh; ok djm@ | ||
5793 | |||
5794 | commit 6e1777f592f15f4559728c78204617537b1ac076 | ||
5795 | Author: Damien Miller <djm@mindrot.org> | ||
5796 | Date: Sun Apr 20 13:02:58 2014 +1000 | ||
5797 | |||
5798 | - tedu@cvs.openbsd.org 2014/03/19 14:42:44 | ||
5799 | [scp.1] | ||
5800 | there is no need for rcp anymore | ||
5801 | ok deraadt millert | ||
5802 | |||
5803 | commit eb1b7c514d2a7b1802ccee8cd50e565a4d419887 | ||
5804 | Author: Damien Miller <djm@mindrot.org> | ||
5805 | Date: Sun Apr 20 13:02:26 2014 +1000 | ||
5806 | |||
5807 | - tedu@cvs.openbsd.org 2014/03/17 19:44:10 | ||
5808 | [ssh.1] | ||
5809 | old descriptions of des and blowfish are old. maybe ok deraadt | ||
5810 | |||
5811 | commit f0858de6e1324ec730752387074b111b8551081e | ||
5812 | Author: Damien Miller <djm@mindrot.org> | ||
5813 | Date: Sun Apr 20 13:01:30 2014 +1000 | ||
5814 | |||
5815 | - deraadt@cvs.openbsd.org 2014/03/15 17:28:26 | ||
5816 | [ssh-agent.c ssh-keygen.1 ssh-keygen.c] | ||
5817 | Improve usage() and documentation towards the standard form. | ||
5818 | In particular, this line saves a lot of man page reading time. | ||
5819 | usage: ssh-keygen [-q] [-b bits] [-t dsa | ecdsa | ed25519 | rsa | rsa1] | ||
5820 | [-N new_passphrase] [-C comment] [-f output_keyfile] | ||
5821 | ok schwarze jmc | ||
5822 | |||
5823 | commit 94bfe0fbd6e91a56b5b0ab94ac955d2a67d101aa | ||
5824 | Author: Damien Miller <djm@mindrot.org> | ||
5825 | Date: Sun Apr 20 13:00:51 2014 +1000 | ||
5826 | |||
5827 | - naddy@cvs.openbsd.org 2014/03/12 13:06:59 | ||
5828 | [ssh-keyscan.1] | ||
5829 | scan for Ed25519 keys by default too | ||
5830 | |||
5831 | commit 3819519288b2b3928c6882f5883b0f55148f4fc0 | ||
5832 | Author: Damien Miller <djm@mindrot.org> | ||
5833 | Date: Sun Apr 20 13:00:28 2014 +1000 | ||
5834 | |||
5835 | - djm@cvs.openbsd.org 2014/03/12 04:51:12 | ||
5836 | [authfile.c] | ||
5837 | correct test that kdf name is not "none" or "bcrypt" | ||
5838 | |||
5839 | commit 8f9cd709c7cf0655d414306a0ed28306b33802be | ||
5840 | Author: Damien Miller <djm@mindrot.org> | ||
5841 | Date: Sun Apr 20 13:00:11 2014 +1000 | ||
5842 | |||
5843 | - djm@cvs.openbsd.org 2014/03/12 04:50:32 | ||
5844 | [auth-bsdauth.c ssh-keygen.c] | ||
5845 | don't count on things that accept arguments by reference to clear | ||
5846 | things for us on error; most things do, but it's unsafe form. | ||
5847 | |||
5848 | commit 1c7ef4be83f6dec84509a312518b9df00ab491d9 | ||
5849 | Author: Damien Miller <djm@mindrot.org> | ||
5850 | Date: Sun Apr 20 12:59:46 2014 +1000 | ||
5851 | |||
5852 | - djm@cvs.openbsd.org 2014/03/12 04:44:58 | ||
5853 | [ssh-keyscan.c] | ||
5854 | scan for Ed25519 keys by default too | ||
5855 | |||
5856 | commit c10bf4d051c97939b30a1616c0499310057d07da | ||
5857 | Author: Damien Miller <djm@mindrot.org> | ||
5858 | Date: Sun Apr 20 12:58:04 2014 +1000 | ||
5859 | |||
5860 | - djm@cvs.openbsd.org 2014/03/03 22:22:30 | ||
5861 | [session.c] | ||
5862 | ignore enviornment variables with embedded '=' or '\0' characters; | ||
5863 | spotted by Jann Horn; ok deraadt@ | ||
5864 | Id sync only - portable already has this. | ||
5865 | |||
5866 | commit c2e49062faccbcd7135c40d1c78c5c329c58fc2e | ||
5867 | Author: Damien Miller <djm@mindrot.org> | ||
5868 | Date: Tue Apr 1 14:42:46 2014 +1100 | ||
5869 | |||
5870 | - (djm) Use full release (e.g. 6.5p1) in debug output rather than just | ||
5871 | version. From des@des.no | ||
5872 | |||
5873 | commit 14928b7492abec82afa4c2b778fc03f78cd419b6 | ||
5874 | Author: Damien Miller <djm@mindrot.org> | ||
5875 | Date: Tue Apr 1 14:38:07 2014 +1100 | ||
5876 | |||
5877 | - (djm) On platforms that support it, use prctl() to prevent sftp-server | ||
5878 | from accessing /proc/self/{mem,maps}; patch from jann AT thejh.net | ||
5879 | |||
5880 | commit 48abc47e60048461fe9117e108a7e99ea1ac2bb8 | ||
5881 | Author: Damien Miller <djm@mindrot.org> | ||
5882 | Date: Mon Mar 17 14:45:56 2014 +1100 | ||
5883 | |||
5884 | - (djm) [sandbox-seccomp-filter.c] Soft-fail stat() syscalls. Add XXX to | ||
5885 | remind myself to add sandbox violation logging via the log socket. | ||
5886 | |||
5887 | commit 9c36698ca2f554ec221dc7ef29c7a89e97c88705 | ||
5888 | Author: Tim Rice <tim@multitalents.net> | ||
5889 | Date: Fri Mar 14 12:45:01 2014 -0700 | ||
5890 | |||
5891 | 20140314 | ||
5892 | - (tim) [opensshd.init.in] Add support for ed25519 | ||
5893 | |||
5894 | commit 19158b2447e35838d69b2b735fb640d1e86061ea | ||
5895 | Author: Damien Miller <djm@mindrot.org> | ||
5896 | Date: Thu Mar 13 13:14:21 2014 +1100 | ||
5897 | |||
5898 | - (djm) Release OpenSSH 6.6 | ||
5899 | |||
5900 | commit 8569eba5d7f7348ce3955eeeb399f66f25c52ece | ||
5901 | Author: Damien Miller <djm@mindrot.org> | ||
5902 | Date: Tue Mar 4 09:35:17 2014 +1100 | ||
5903 | |||
5904 | - djm@cvs.openbsd.org 2014/03/03 22:22:30 | ||
5905 | [session.c] | ||
5906 | ignore enviornment variables with embedded '=' or '\0' characters; | ||
5907 | spotted by Jann Horn; ok deraadt@ | ||
5908 | |||
5909 | commit 2476c31b96e89aec7d4e73cb6fbfb9a4290de3a7 | ||
5910 | Author: Damien Miller <djm@mindrot.org> | ||
5911 | Date: Sun Mar 2 04:01:00 2014 +1100 | ||
5912 | |||
5913 | - (djm) [regress/Makefile] Disable dhgex regress test; it breaks when | ||
5914 | no moduli file exists at the expected location. | ||
5915 | |||
5916 | commit c83fdf30e9db865575b2521b1fe46315cf4c70ae | ||
5917 | Author: Damien Miller <djm@mindrot.org> | ||
5918 | Date: Fri Feb 28 10:34:03 2014 +1100 | ||
5919 | |||
5920 | - (djm) [regress/host-expand.sh] Add RCS Id | ||
5921 | |||
5922 | commit 834aeac3555e53f7d29a6fcf3db010dfb99681c7 | ||
5923 | Author: Damien Miller <djm@mindrot.org> | ||
5924 | Date: Fri Feb 28 10:25:16 2014 +1100 | ||
5925 | |||
5926 | - djm@cvs.openbsd.org 2014/02/27 21:21:25 | ||
5927 | [agent-ptrace.sh agent.sh] | ||
5928 | keep return values that are printed in error messages; | ||
5929 | from portable | ||
5930 | (Id sync only) | ||
5931 | |||
5932 | commit 4f7f1a9a0de24410c30952c7e16d433240422182 | ||
5933 | Author: Damien Miller <djm@mindrot.org> | ||
5934 | Date: Fri Feb 28 10:24:11 2014 +1100 | ||
5935 | |||
5936 | - djm@cvs.openbsd.org 2014/02/27 20:04:16 | ||
5937 | [login-timeout.sh] | ||
5938 | remove any existing LoginGraceTime from sshd_config before adding | ||
5939 | a specific one for the test back in | ||
5940 | |||
5941 | commit d705d987c27f68080c8798eeb5262adbdd6b4ffd | ||
5942 | Author: Damien Miller <djm@mindrot.org> | ||
5943 | Date: Fri Feb 28 10:23:26 2014 +1100 | ||
5944 | |||
5945 | - djm@cvs.openbsd.org 2014/01/26 10:49:17 | ||
5946 | [scp-ssh-wrapper.sh scp.sh] | ||
5947 | make sure $SCP is tested on the remote end rather than whichever one | ||
5948 | happens to be in $PATH; from portable | ||
5949 | (Id sync only) | ||
5950 | |||
5951 | commit 624a3ca376e3955a4b9d936c9e899e241b65d357 | ||
5952 | Author: Damien Miller <djm@mindrot.org> | ||
5953 | Date: Fri Feb 28 10:22:37 2014 +1100 | ||
5954 | |||
5955 | - djm@cvs.openbsd.org 2014/01/26 10:22:10 | ||
5956 | [regress/cert-hostkey.sh] | ||
5957 | automatically generate revoked keys from listed keys rather than | ||
5958 | manually specifying each type; from portable | ||
5959 | (Id sync only) | ||
5960 | |||
5961 | commit b84392328425e4b9a71f8bde5fe6a4a4c48d3ec4 | ||
5962 | Author: Damien Miller <djm@mindrot.org> | ||
5963 | Date: Fri Feb 28 10:21:26 2014 +1100 | ||
5964 | |||
5965 | - dtucker@cvs.openbsd.org 2014/01/25 04:35:32 | ||
5966 | [regress/Makefile regress/dhgex.sh] | ||
5967 | Add a test for DH GEX sizes | ||
5968 | |||
5969 | commit 1e2aa3d90472293ea19008f02336d6d68aa05793 | ||
5970 | Author: Damien Miller <djm@mindrot.org> | ||
5971 | Date: Fri Feb 28 10:19:51 2014 +1100 | ||
5972 | |||
5973 | - dtucker@cvs.openbsd.org 2014/01/20 00:00:30 | ||
5974 | [sftp-chroot.sh] | ||
5975 | append to rather than truncating the log file | ||
5976 | |||
5977 | commit f483cc16fe7314e24a37aa3a4422b03c013c3213 | ||
5978 | Author: Damien Miller <djm@mindrot.org> | ||
5979 | Date: Fri Feb 28 10:19:11 2014 +1100 | ||
5980 | |||
5981 | - dtucker@cvs.openbsd.org 2014/01/19 23:43:02 | ||
5982 | [regress/sftp-chroot.sh] | ||
5983 | Don't use -q on sftp as it suppresses logging, instead redirect the | ||
5984 | output to the regress logfile. | ||
5985 | |||
5986 | commit 6486f16f1c0ebd6f39286f6ab5e08286d90a994a | ||
5987 | Author: Damien Miller <djm@mindrot.org> | ||
5988 | Date: Fri Feb 28 10:03:52 2014 +1100 | ||
5989 | |||
5990 | - (djm) [README contrib/caldera/openssh.spec contrib/redhat/openssh.spec] | ||
5991 | [contrib/suse/openssh.spec] Crank version numbers | ||
5992 | |||
5993 | commit 92cf5adea194140380e6af6ec32751f9ad540794 | ||
5994 | Author: Damien Miller <djm@mindrot.org> | ||
5995 | Date: Fri Feb 28 10:01:53 2014 +1100 | ||
5996 | |||
5997 | - djm@cvs.openbsd.org 2014/02/27 22:57:40 | ||
5998 | [version.h] | ||
5999 | openssh-6.6 | ||
6000 | |||
6001 | commit fc5d6759aba71eb205b296b5f148010ffc828583 | ||
6002 | Author: Damien Miller <djm@mindrot.org> | ||
6003 | Date: Fri Feb 28 10:01:28 2014 +1100 | ||
6004 | |||
6005 | - djm@cvs.openbsd.org 2014/02/27 22:47:07 | ||
6006 | [sshd_config.5] | ||
6007 | bz#2184 clarify behaviour of a keyword that appears in multiple | ||
6008 | matching Match blocks; ok dtucker@ | ||
6009 | |||
6010 | commit 172ec7e0af1a5f1d682f6a2dca335c6c186153d5 | ||
6011 | Author: Damien Miller <djm@mindrot.org> | ||
6012 | Date: Fri Feb 28 10:00:57 2014 +1100 | ||
6013 | |||
6014 | - djm@cvs.openbsd.org 2014/02/27 08:25:09 | ||
6015 | [bufbn.c] | ||
6016 | off by one in range check | ||
6017 | |||
6018 | commit f9a9aaba437c2787e40cf7cc928281950e161678 | ||
6019 | Author: Damien Miller <djm@mindrot.org> | ||
6020 | Date: Fri Feb 28 10:00:27 2014 +1100 | ||
6021 | |||
6022 | - djm@cvs.openbsd.org 2014/02/27 00:41:49 | ||
6023 | [bufbn.c] | ||
6024 | fix unsigned overflow that could lead to reading a short ssh protocol | ||
6025 | 1 bignum value; found by Ben Hawkes; ok deraadt@ | ||
6026 | |||
6027 | commit fb3423b612713d9cde67c8a75f6f51188d6a3de3 | ||
6028 | Author: Damien Miller <djm@mindrot.org> | ||
6029 | Date: Thu Feb 27 10:20:07 2014 +1100 | ||
6030 | |||
6031 | - markus@cvs.openbsd.org 2014/02/26 21:53:37 | ||
6032 | [sshd.c] | ||
6033 | ssh_gssapi_prepare_supported_oids needs GSSAPI | ||
6034 | |||
6035 | commit 1348129a34f0f7728c34d86c100a32dcc8d1f922 | ||
6036 | Author: Damien Miller <djm@mindrot.org> | ||
6037 | Date: Thu Feb 27 10:18:32 2014 +1100 | ||
6038 | |||
6039 | - djm@cvs.openbsd.org 2014/02/26 20:29:29 | ||
6040 | [channels.c] | ||
6041 | don't assume that the socks4 username is \0 terminated; | ||
6042 | spotted by Ben Hawkes; ok markus@ | ||
6043 | |||
6044 | commit e6a74aeeacd01d885262ff8e50eb28faee8c8039 | ||
6045 | Author: Damien Miller <djm@mindrot.org> | ||
6046 | Date: Thu Feb 27 10:17:49 2014 +1100 | ||
6047 | |||
6048 | - djm@cvs.openbsd.org 2014/02/26 20:28:44 | ||
6049 | [auth2-gss.c gss-serv.c ssh-gss.h sshd.c] | ||
6050 | bz#2107 - cache OIDs of supported GSSAPI mechanisms before privsep | ||
6051 | sandboxing, as running this code in the sandbox can cause violations; | ||
6052 | ok markus@ | ||
6053 | |||
6054 | commit 08b57c67f3609340ff703fe2782d7058acf2529e | ||
6055 | Author: Damien Miller <djm@mindrot.org> | ||
6056 | Date: Thu Feb 27 10:17:13 2014 +1100 | ||
6057 | |||
6058 | - djm@cvs.openbsd.org 2014/02/26 20:18:37 | ||
6059 | [ssh.c] | ||
6060 | bz#2205: avoid early hostname lookups unless canonicalisation is enabled; | ||
6061 | ok dtucker@ markus@ | ||
6062 | |||
6063 | commit 13f97b2286142fd0b8eab94e4ce84fe124eeb752 | ||
6064 | Author: Damien Miller <djm@mindrot.org> | ||
6065 | Date: Mon Feb 24 15:57:55 2014 +1100 | ||
6066 | |||
6067 | - djm@cvs.openbsd.org 2014/02/23 20:11:36 | ||
6068 | [readconf.c readconf.h ssh.c ssh_config.5] | ||
6069 | reparse ssh_config and ~/.ssh/config if hostname canonicalisation changes | ||
6070 | the hostname. This allows users to write configurations that always | ||
6071 | refer to canonical hostnames, e.g. | ||
6072 | |||
6073 | CanonicalizeHostname yes | ||
6074 | CanonicalDomains int.example.org example.org | ||
6075 | CanonicalizeFallbackLocal no | ||
6076 | |||
6077 | Host *.int.example.org | ||
6078 | Compression off | ||
6079 | Host *.example.org | ||
6080 | User djm | ||
6081 | |||
6082 | ok markus@ | ||
6083 | |||
6084 | commit bee3a234f3d1ad4244952bcff1b4b7c525330dc2 | ||
6085 | Author: Damien Miller <djm@mindrot.org> | ||
6086 | Date: Mon Feb 24 15:57:22 2014 +1100 | ||
6087 | |||
6088 | - djm@cvs.openbsd.org 2014/02/23 20:03:42 | ||
6089 | [ssh-ed25519.c] | ||
6090 | check for unsigned overflow; not reachable in OpenSSH but others might | ||
6091 | copy our code... | ||
6092 | |||
6093 | commit 0628780abe61e7e50cba48cdafb1837f49ff23b2 | ||
6094 | Author: Damien Miller <djm@mindrot.org> | ||
6095 | Date: Mon Feb 24 15:56:45 2014 +1100 | ||
6096 | |||
6097 | - djm@cvs.openbsd.org 2014/02/22 01:32:19 | ||
6098 | [readconf.c] | ||
6099 | when processing Match blocks, skip 'exec' clauses if previous predicates | ||
6100 | failed to match; ok markus@ | ||
6101 | |||
6102 | commit 0890dc8191bb201eb01c3429feec0300a9d3a930 | ||
6103 | Author: Damien Miller <djm@mindrot.org> | ||
6104 | Date: Mon Feb 24 15:56:07 2014 +1100 | ||
6105 | |||
6106 | - djm@cvs.openbsd.org 2014/02/15 23:05:36 | ||
6107 | [channels.c] | ||
6108 | avoid spurious "getsockname failed: Bad file descriptor" errors in ssh -W; | ||
6109 | bz#2200, debian#738692 via Colin Watson; ok dtucker@ | ||
6110 | |||
6111 | commit d3cf67e1117c25d151d0f86396e77ee3a827045a | ||
6112 | Author: Damien Miller <djm@mindrot.org> | ||
6113 | Date: Mon Feb 24 15:55:36 2014 +1100 | ||
6114 | |||
6115 | - djm@cvs.openbsd.org 2014/02/07 06:55:54 | ||
6116 | [cipher.c mac.c] | ||
6117 | remove some logging that makes ssh debugging output very verbose; | ||
6118 | ok markus | ||
6119 | |||
6120 | commit 03ae081aeaa118361c81ece76eb7cc1aaa2b40c5 | ||
6121 | Author: Tim Rice <tim@multitalents.net> | ||
6122 | Date: Fri Feb 21 09:09:34 2014 -0800 | ||
6123 | |||
6124 | 20140221 | ||
6125 | - (tim) [configure.ac] Fix cut-and-paste error. Patch from Bryan Drewery. | ||
6126 | |||
6127 | commit 4a20959d2e3c90e9d66897c0b4032c785672d815 | ||
6128 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6129 | Date: Thu Feb 13 16:38:32 2014 +1100 | ||
6130 | |||
6131 | - (dtucker) [configure.ac openbsd-compat/openssl-compat.{c,h}] Add compat | ||
6132 | code for older OpenSSL versions that don't have EVP_MD_CTX_copy_ex. | ||
6133 | |||
6134 | commit d1a7a9c0fd1ac2e3314cceb2891959fd2cd9eabb | ||
6135 | Author: Damien Miller <djm@mindrot.org> | ||
6136 | Date: Fri Feb 7 09:24:33 2014 +1100 | ||
6137 | |||
6138 | - djm@cvs.openbsd.org 2014/02/06 22:21:01 | ||
6139 | [sshconnect.c] | ||
6140 | in ssh_create_socket(), only do the getaddrinfo for BindAddress when | ||
6141 | BindAddress is actually specified. Fixes regression in 6.5 for | ||
6142 | UsePrivilegedPort=yes; patch from Corinna Vinschen | ||
6143 | |||
6144 | commit 6ce35b6cc4ead1bf98abec34cb2e2d6ca0abb15e | ||
6145 | Author: Damien Miller <djm@mindrot.org> | ||
6146 | Date: Fri Feb 7 09:24:14 2014 +1100 | ||
6147 | |||
6148 | - naddy@cvs.openbsd.org 2014/02/05 20:13:25 | ||
6149 | [ssh-keygen.1 ssh-keygen.c] | ||
6150 | tweak synopsis: calling ssh-keygen without any arguments is fine; ok jmc@ | ||
6151 | while here, fix ordering in usage(); requested by jmc@ | ||
6152 | |||
6153 | commit 6434cb2cfbbf0a46375d2d22f2ff9927feb5e478 | ||
6154 | Author: Damien Miller <djm@mindrot.org> | ||
6155 | Date: Thu Feb 6 11:17:50 2014 +1100 | ||
6156 | |||
6157 | - (djm) [sandbox-seccomp-filter.c] Not all Linux architectures define | ||
6158 | __NR_shutdown; some go via the socketcall(2) multiplexer. | ||
6159 | |||
6160 | commit 8d36f9ac71eff2e9f5770c0518b73d875f270647 | ||
6161 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6162 | Date: Thu Feb 6 10:44:13 2014 +1100 | ||
6163 | |||
6164 | - (dtucker) [openbsd-compat/bsd-poll.c] Don't bother checking for non-NULL | ||
6165 | before freeing since free(NULL) is a no-op. ok djm. | ||
6166 | |||
6167 | commit a0959da3680b4ce8cf911caf3293a6d90f88eeb7 | ||
6168 | Author: Damien Miller <djm@mindrot.org> | ||
6169 | Date: Wed Feb 5 10:33:45 2014 +1100 | ||
6170 | |||
6171 | - (djm) [sandbox-capsicum.c] Don't fatal if Capsicum is offered by | ||
6172 | headers/libc but not supported by the kernel. Patch from Loganaden | ||
6173 | Velvindron @ AfriNIC | ||
6174 | |||
6175 | commit 9c449bc183b256c84d8f740727b0bc54d247b15e | ||
6176 | Author: Damien Miller <djm@mindrot.org> | ||
6177 | Date: Tue Feb 4 11:38:28 2014 +1100 | ||
6178 | |||
6179 | - (djm) [regress/setuid-allowed.c] Missing string.h for strerror() | ||
6180 | |||
6181 | commit bf7e0f03be661b6f5b3bfe325135ce19391f9c4d | ||
6182 | Author: Damien Miller <djm@mindrot.org> | ||
6183 | Date: Tue Feb 4 11:37:50 2014 +1100 | ||
6184 | |||
6185 | - (djm) [openbsd-compat/Makefile.in] Add missing explicit_bzero.o | ||
6186 | |||
6187 | commit eb6d870a0ea8661299bb2ea8f013d3ace04e2024 | ||
6188 | Author: Damien Miller <djm@mindrot.org> | ||
6189 | Date: Tue Feb 4 11:26:34 2014 +1100 | ||
6190 | |||
6191 | - djm@cvs.openbsd.org 2014/02/04 00:24:29 | ||
6192 | [ssh.c] | ||
6193 | delay lowercasing of hostname until right before hostname | ||
6194 | canonicalisation to unbreak case-sensitive matching of ssh_config; | ||
6195 | reported by Ike Devolder; ok markus@ | ||
6196 | |||
6197 | commit d56b44d2dfa093883a5c4e91be3f72d99946b170 | ||
6198 | Author: Damien Miller <djm@mindrot.org> | ||
6199 | Date: Tue Feb 4 11:26:04 2014 +1100 | ||
6200 | |||
6201 | - djm@cvs.openbsd.org 2014/02/04 00:24:29 | ||
6202 | [ssh.c] | ||
6203 | delay lowercasing of hostname until right before hostname | ||
6204 | canonicalisation to unbreak case-sensitive matching of ssh_config; | ||
6205 | reported by Ike Devolder; ok markus@ | ||
6206 | |||
6207 | commit db3c595ea74ea9ccd5aa644d7e1f8dc675710731 | ||
6208 | Author: Damien Miller <djm@mindrot.org> | ||
6209 | Date: Tue Feb 4 11:25:45 2014 +1100 | ||
6210 | |||
6211 | - djm@cvs.openbsd.org 2014/02/02 03:44:31 | ||
6212 | [digest-libc.c digest-openssl.c] | ||
6213 | convert memset of potentially-private data to explicit_bzero() | ||
6214 | |||
6215 | commit aae07e2e2000dd318418fd7fd4597760904cae32 | ||
6216 | Author: Damien Miller <djm@mindrot.org> | ||
6217 | Date: Tue Feb 4 11:20:40 2014 +1100 | ||
6218 | |||
6219 | - djm@cvs.openbsd.org 2014/02/03 23:28:00 | ||
6220 | [ssh-ecdsa.c] | ||
6221 | fix memory leak; ECDSA_SIG_new() allocates 'r' and 's' for us, unlike | ||
6222 | DSA_SIG_new. Reported by Batz Spear; ok markus@ | ||
6223 | |||
6224 | commit a5103f413bde6f31bff85d6e1fd29799c647d765 | ||
6225 | Author: Damien Miller <djm@mindrot.org> | ||
6226 | Date: Tue Feb 4 11:20:14 2014 +1100 | ||
6227 | |||
6228 | - djm@cvs.openbsd.org 2014/02/02 03:44:32 | ||
6229 | [auth1.c auth2-chall.c auth2-passwd.c authfile.c bufaux.c bufbn.c] | ||
6230 | [buffer.c cipher-3des1.c cipher.c clientloop.c gss-serv.c kex.c] | ||
6231 | [kexdhc.c kexdhs.c kexecdhc.c kexgexc.c kexecdhs.c kexgexs.c key.c] | ||
6232 | [monitor.c monitor_wrap.c packet.c readpass.c rsa.c serverloop.c] | ||
6233 | [ssh-add.c ssh-agent.c ssh-dss.c ssh-ecdsa.c ssh-ed25519.c] | ||
6234 | [ssh-keygen.c ssh-rsa.c sshconnect.c sshconnect1.c sshconnect2.c] | ||
6235 | [sshd.c] | ||
6236 | convert memset of potentially-private data to explicit_bzero() | ||
6237 | |||
6238 | commit 1d2c4564265ee827147af246a16f3777741411ed | ||
6239 | Author: Damien Miller <djm@mindrot.org> | ||
6240 | Date: Tue Feb 4 11:18:20 2014 +1100 | ||
6241 | |||
6242 | - tedu@cvs.openbsd.org 2014/01/31 16:39:19 | ||
6243 | [auth2-chall.c authfd.c authfile.c bufaux.c bufec.c canohost.c] | ||
6244 | [channels.c cipher-chachapoly.c clientloop.c configure.ac hostfile.c] | ||
6245 | [kexc25519.c krl.c monitor.c sandbox-systrace.c session.c] | ||
6246 | [sftp-client.c ssh-keygen.c ssh.c sshconnect2.c sshd.c sshlogin.c] | ||
6247 | [openbsd-compat/explicit_bzero.c openbsd-compat/openbsd-compat.h] | ||
6248 | replace most bzero with explicit_bzero, except a few that cna be memset | ||
6249 | ok djm dtucker | ||
6250 | |||
6251 | commit 3928de067c286683a95fbdbdb5fdb3c78a0e5efd | ||
6252 | Author: Damien Miller <djm@mindrot.org> | ||
6253 | Date: Tue Feb 4 11:13:54 2014 +1100 | ||
6254 | |||
6255 | - djm@cvs.openbsd.org 2014/01/30 22:26:14 | ||
6256 | [sandbox-systrace.c] | ||
6257 | allow shutdown(2) syscall in sandbox - it may be called by packet_close() | ||
6258 | from portable | ||
6259 | (Id sync only; change is already in portable) | ||
6260 | |||
6261 | commit e1e480aee8a9af6cfbe7188667b7b940d6b57f9f | ||
6262 | Author: Damien Miller <djm@mindrot.org> | ||
6263 | Date: Tue Feb 4 11:13:17 2014 +1100 | ||
6264 | |||
6265 | - jmc@cvs.openbsd.org 2014/01/29 14:04:51 | ||
6266 | [sshd_config.5] | ||
6267 | document kbdinteractiveauthentication; | ||
6268 | requested From: Ross L Richardson | ||
6269 | |||
6270 | dtucker/markus helped explain its workings; | ||
6271 | |||
6272 | commit 7cc194f70d4a5ec9a82d19422eaf18db4a6624c6 | ||
6273 | Author: Damien Miller <djm@mindrot.org> | ||
6274 | Date: Tue Feb 4 11:12:56 2014 +1100 | ||
6275 | |||
6276 | - djm@cvs.openbsd.org 2014/01/29 06:18:35 | ||
6277 | [Makefile.in auth.h auth2-jpake.c auth2.c jpake.c jpake.h monitor.c] | ||
6278 | [monitor.h monitor_wrap.c monitor_wrap.h readconf.c readconf.h] | ||
6279 | [schnorr.c schnorr.h servconf.c servconf.h ssh2.h sshconnect2.c] | ||
6280 | remove experimental, never-enabled JPAKE code; ok markus@ | ||
6281 | |||
6282 | commit b0f26544cf6f4feeb1a4f6db09fca834f5c9867d | ||
6283 | Author: Damien Miller <djm@mindrot.org> | ||
6284 | Date: Tue Feb 4 11:10:01 2014 +1100 | ||
6285 | |||
6286 | - djm@cvs.openbsd.org 2014/01/29 00:19:26 | ||
6287 | [sshd.c] | ||
6288 | use kill(0, ...) instead of killpg(0, ...); on most operating systems | ||
6289 | they are equivalent, but SUSv2 describes the latter as having undefined | ||
6290 | behaviour; from portable; ok dtucker | ||
6291 | (Id sync only; change is already in portable) | ||
6292 | |||
6293 | commit f8f35bc471500348bb262039fb1fc43175d251b0 | ||
6294 | Author: Damien Miller <djm@mindrot.org> | ||
6295 | Date: Tue Feb 4 11:09:12 2014 +1100 | ||
6296 | |||
6297 | - jmc@cvs.openbsd.org 2014/01/28 14:13:39 | ||
6298 | [ssh-keyscan.1] | ||
6299 | kill some bad Pa; | ||
6300 | From: Jan Stary | ||
6301 | |||
6302 | commit 0ba85d696ae9daf66002c2e4ab0d6bb111e1a787 | ||
6303 | Author: Damien Miller <djm@mindrot.org> | ||
6304 | Date: Tue Feb 4 11:08:38 2014 +1100 | ||
6305 | |||
6306 | ignore a few more regress droppings | ||
6307 | |||
6308 | commit ec93d15170b7a6ddf63fd654bd0f6a752acc19dd | ||
6309 | Author: Damien Miller <djm@mindrot.org> | ||
6310 | Date: Tue Feb 4 11:07:13 2014 +1100 | ||
6311 | |||
6312 | - markus@cvs.openbsd.org 2014/01/27 20:13:46 | ||
6313 | [digest.c digest-openssl.c digest-libc.c Makefile.in] | ||
6314 | rename digest.c to digest-openssl.c and add libc variant; ok djm@ | ||
6315 | |||
6316 | commit 4a1c7aa640fb97d3472d51b215b6a0ec0fd025c7 | ||
6317 | Author: Damien Miller <djm@mindrot.org> | ||
6318 | Date: Tue Feb 4 11:03:36 2014 +1100 | ||
6319 | |||
6320 | - markus@cvs.openbsd.org 2014/01/27 19:18:54 | ||
6321 | [auth-rsa.c cipher.c ssh-agent.c sshconnect1.c sshd.c] | ||
6322 | replace openssl MD5 with our ssh_digest_*; ok djm@ | ||
6323 | |||
6324 | commit 4e8d937af79ce4e253f77ec93489d098b25becc3 | ||
6325 | Author: Damien Miller <djm@mindrot.org> | ||
6326 | Date: Tue Feb 4 11:02:42 2014 +1100 | ||
6327 | |||
6328 | - markus@cvs.openbsd.org 2014/01/27 18:58:14 | ||
6329 | [Makefile.in digest.c digest.h hostfile.c kex.h mac.c hmac.c hmac.h] | ||
6330 | replace openssl HMAC with an implementation based on our ssh_digest_* | ||
6331 | ok and feedback djm@ | ||
6332 | |||
6333 | commit 69d0d09f76bab5aec86fbf78489169f63bd16475 | ||
6334 | Author: Tim Rice <tim@multitalents.net> | ||
6335 | Date: Fri Jan 31 14:25:18 2014 -0800 | ||
6336 | |||
6337 | - (tim) [Makefile.in] build regress/setuid-allow. | ||
6338 | |||
6339 | commit 0eeafcd76b972a3d159f3118227c149a4d7817fe | ||
6340 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6341 | Date: Fri Jan 31 14:18:51 2014 +1100 | ||
6342 | |||
6343 | - (dtucker) [readconf.c] Include <arpa/inet.h> for the hton macros. Fixes | ||
6344 | build with HP-UX's compiler. Patch from Kevin Brott. | ||
6345 | |||
6346 | commit 7e5cec6070673e9f9785ffc749837ada22fbe99f | ||
6347 | Author: Damien Miller <djm@mindrot.org> | ||
6348 | Date: Fri Jan 31 09:25:34 2014 +1100 | ||
6349 | |||
6350 | - (djm) [sandbox-seccomp-filter.c sandbox-systrace.c] Allow shutdown(2) | ||
6351 | syscall from sandboxes; it may be called by packet_close. | ||
6352 | |||
6353 | commit cdb6c90811caa5df2df856be9b0b16db020fe31d | ||
6354 | Author: Damien Miller <djm@mindrot.org> | ||
6355 | Date: Thu Jan 30 12:50:17 2014 +1100 | ||
6356 | |||
6357 | - (djm) Release openssh-6.5p1 | ||
6358 | |||
6359 | commit 996ea80b1884b676a901439f1f2681eb6ff68501 | ||
6360 | Author: Damien Miller <djm@mindrot.org> | ||
6361 | Date: Thu Jan 30 12:49:55 2014 +1100 | ||
6362 | |||
6363 | trim entries prior to openssh-6.0p1 | ||
6364 | |||
6365 | commit f5bbd3b657b6340551c8a95f74a70857ff8fac79 | ||
6366 | Author: Damien Miller <djm@mindrot.org> | ||
6367 | Date: Thu Jan 30 11:26:46 2014 +1100 | ||
6368 | |||
6369 | - (djm) [configure.ac atomicio.c] Kludge around NetBSD offering | ||
6370 | different symbols for 'read' when various compiler flags are | ||
6371 | in use, causing atomicio.c comparisons against it to break and | ||
6372 | read/write operations to hang; ok dtucker | ||
6373 | |||
6374 | commit c2868192ddc4e1420a50389e18c05db20b0b1f32 | ||
6375 | Author: Damien Miller <djm@mindrot.org> | ||
6376 | Date: Thu Jan 30 10:21:19 2014 +1100 | ||
6377 | |||
6378 | - (djm) [configure.ac] Only check for width-specified integer types | ||
6379 | in headers that actually exist. patch from Tom G. Christensen; | ||
6380 | ok dtucker@ | ||
6381 | |||
6382 | commit c161fc90fc86e2035710570238a9e1ca7a68d2a5 | ||
6383 | Author: Damien Miller <djm@mindrot.org> | ||
6384 | Date: Wed Jan 29 21:01:33 2014 +1100 | ||
6385 | |||
6386 | - (djm) [configure.ac] Fix broken shell test '==' vs '='; patch from | ||
6387 | Tom G. Christensen | ||
6388 | |||
6389 | commit 6f917ad376481995ab7d29fb53b08ec8d507eb9e | ||
6390 | Author: Tim Rice <tim@multitalents.net> | ||
6391 | Date: Tue Jan 28 10:26:25 2014 -0800 | ||
6392 | |||
6393 | - (tim) [regress/agent.sh regress/agent-ptrace.sh] Assign $? to a variable | ||
6394 | when used as an error message inside an if statement so we display the | ||
6395 | correct into. agent.sh patch from Petr Lautrbach. | ||
6396 | |||
6397 | commit ab16ef4152914d44ce6f76e48167d26d22f66a06 | ||
6398 | Author: Damien Miller <djm@mindrot.org> | ||
6399 | Date: Tue Jan 28 15:08:12 2014 +1100 | ||
6400 | |||
6401 | - (djm) [sshd.c] Use kill(0, ...) instead of killpg(0, ...); the | ||
6402 | latter being specified to have undefined behaviour in SUSv3; | ||
6403 | ok dtucker | ||
6404 | |||
6405 | commit ab0394905884dc6e58c3721211c6b38fb8fc2ca8 | ||
6406 | Author: Damien Miller <djm@mindrot.org> | ||
6407 | Date: Tue Jan 28 15:07:10 2014 +1100 | ||
6408 | |||
6409 | - (djm) [configure.ac] Search for inet_ntop in libnsl and libresovl; | ||
6410 | ok dtucker | ||
6411 | |||
6412 | commit 4ab20a82d4d4168d62318923f62382f6ef242fcd | ||
6413 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6414 | Date: Mon Jan 27 17:35:04 2014 +1100 | ||
6415 | |||
6416 | - (dtucker) [Makefile.in] Remove trailing backslash which some make | ||
6417 | implementations (eg older Solaris) do not cope with. | ||
6418 | |||
6419 | commit e7e8b3cfe9f8665faaf0e68b33df5bbb431bd129 | ||
6420 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6421 | Date: Mon Jan 27 17:32:50 2014 +1100 | ||
6422 | |||
6423 | Welcome to 2014 | ||
6424 | |||
6425 | commit 5b447c0aac0dd444251e276f6bb3bbbe1c05331c | ||
6426 | Author: Damien Miller <djm@mindrot.org> | ||
6427 | Date: Sun Jan 26 09:46:53 2014 +1100 | ||
6428 | |||
6429 | - (djm) [configure.ac] correct AC_DEFINE for previous. | ||
6430 | |||
6431 | commit 2035b2236d3b1f76c749c642a43e03c85eae76e6 | ||
6432 | Author: Damien Miller <djm@mindrot.org> | ||
6433 | Date: Sun Jan 26 09:39:53 2014 +1100 | ||
6434 | |||
6435 | - (djm) [configure.ac sandbox-capsicum.c sandbox-rlimit.c] Disable | ||
6436 | RLIMIT_NOFILE pseudo-sandbox on FreeBSD. In some configurations, | ||
6437 | libc will attempt to open additional file descriptors for crypto | ||
6438 | offload and crash if they cannot be opened. | ||
6439 | |||
6440 | commit a92ac7410475fbb00383c7402aa954dc0a75ae19 | ||
6441 | Author: Damien Miller <djm@mindrot.org> | ||
6442 | Date: Sun Jan 26 09:38:03 2014 +1100 | ||
6443 | |||
6444 | - markus@cvs.openbsd.org 2014/01/25 20:35:37 | ||
6445 | [kex.c] | ||
6446 | dh_need needs to be set to max(seclen, blocksize, ivlen, mac_len) | ||
6447 | ok dtucker@, noted by mancha | ||
6448 | |||
6449 | commit 76eea4ab4e658670ca6e76dd1e6d17f262208b57 | ||
6450 | Author: Damien Miller <djm@mindrot.org> | ||
6451 | Date: Sun Jan 26 09:37:25 2014 +1100 | ||
6452 | |||
6453 | - dtucker@cvs.openbsd.org 2014/01/25 10:12:50 | ||
6454 | [cipher.c cipher.h kex.c kex.h kexgexc.c] | ||
6455 | Add a special case for the DH group size for 3des-cbc, which has an | ||
6456 | effective strength much lower than the key size. This causes problems | ||
6457 | with some cryptlib implementations, which don't support group sizes larger | ||
6458 | than 4k but also don't use the largest group size it does support as | ||
6459 | specified in the RFC. Based on a patch from Petr Lautrbach at Redhat, | ||
6460 | reduced by me with input from Markus. ok djm@ markus@ | ||
6461 | |||
6462 | commit 603b8f47f1cd9ed95a2017447db8e60ca6704594 | ||
6463 | Author: Damien Miller <djm@mindrot.org> | ||
6464 | Date: Sat Jan 25 13:16:59 2014 +1100 | ||
6465 | |||
6466 | - (djm) [configure.ac] autoconf sets finds to 'yes' not '1', so test | ||
6467 | against the correct thing. | ||
6468 | |||
6469 | commit c96d85376d779b6ac61525b5440010d344d2f23f | ||
6470 | Author: Damien Miller <djm@mindrot.org> | ||
6471 | Date: Sat Jan 25 13:12:28 2014 +1100 | ||
6472 | |||
6473 | - (djm) [configure.ac] Do not attempt to use capsicum sandbox unless | ||
6474 | sys/capability.h exists and cap_rights_limit is in libc. Fixes | ||
6475 | build on FreeBSD9x which provides the header but not the libc | ||
6476 | support. | ||
6477 | |||
6478 | commit f62ecef9939cb3dbeb10602fd705d4db3976d822 | ||
6479 | Author: Damien Miller <djm@mindrot.org> | ||
6480 | Date: Sat Jan 25 12:34:38 2014 +1100 | ||
6481 | |||
6482 | - (djm) [configure.ac] Fix detection of capsicum sandbox on FreeBSD | ||
6483 | |||
6484 | commit b0e0f760b861676a3fe5c40133b270713d5321a9 | ||
6485 | Author: Damien Miller <djm@mindrot.org> | ||
6486 | Date: Fri Jan 24 14:27:04 2014 +1100 | ||
6487 | |||
6488 | - (djm) [Makefile.in regress/scp-ssh-wrapper.sh regress/scp.sh] Make | ||
6489 | the scp regress test actually test the built scp rather than the one | ||
6490 | in $PATH. ok dtucker@ | ||
6491 | |||
6492 | commit 42a092530159637da9cb7f9e1b5f4679e34a85e6 | ||
6493 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6494 | Date: Thu Jan 23 23:14:39 2014 +1100 | ||
6495 | |||
6496 | - (dtucker) [configure.ac] NetBSD's (and FreeBSD's) strnvis is gratuitously | ||
6497 | incompatible with OpenBSD's despite post-dating it by more than a decade. | ||
6498 | Declare it as broken, and document FreeBSD's as the same. ok djm@ | ||
6499 | |||
6500 | commit 617da33c20cb59f9ea6c99c881d92493371ef7b8 | ||
6501 | Author: Tim Rice <tim@multitalents.net> | ||
6502 | Date: Wed Jan 22 19:16:10 2014 -0800 | ||
6503 | |||
6504 | - (tim) [session.c] Improve error reporting on set_id(). | ||
6505 | |||
6506 | commit 5c2ff5e31f57d303ebb414d84a934c02728fa568 | ||
6507 | Author: Damien Miller <djm@mindrot.org> | ||
6508 | Date: Wed Jan 22 21:30:12 2014 +1100 | ||
6509 | |||
6510 | - (djm) [configure.ac aclocal.m4] More tests to detect fallout from | ||
6511 | platform hardening options: include some long long int arithmatic | ||
6512 | to detect missing support functions for -ftrapv in libgcc and | ||
6513 | equivalents, actually test linking when -ftrapv is supplied and | ||
6514 | set either both -pie/-fPIE or neither. feedback and ok dtucker@ | ||
6515 | |||
6516 | commit 852472a54b8a0dc3e53786b313baaa86850a4273 | ||
6517 | Author: Damien Miller <djm@mindrot.org> | ||
6518 | Date: Wed Jan 22 16:31:18 2014 +1100 | ||
6519 | |||
6520 | - (djm) [configure.ac] Unless specifically requested, only attempt | ||
6521 | to build Position Independent Executables on gcc >= 4.x; ok dtucker | ||
6522 | |||
6523 | commit ee87838786cef0194db36ae0675b3e7c4e8ec661 | ||
6524 | Author: Damien Miller <djm@mindrot.org> | ||
6525 | Date: Wed Jan 22 16:30:15 2014 +1100 | ||
6526 | |||
6527 | - (djm) [openbsd-compat/setproctitle.c] Don't fail to compile if a | ||
6528 | platform that is expected to use the reuse-argv style setproctitle | ||
6529 | hack surprises us by providing a setproctitle in libc; ok dtucker | ||
6530 | |||
6531 | commit 5c96a154c7940fa67b1f11c421e390dbbc159f27 | ||
6532 | Author: Damien Miller <djm@mindrot.org> | ||
6533 | Date: Tue Jan 21 13:10:26 2014 +1100 | ||
6534 | |||
6535 | - (djm) [aclocal.m4] Flesh out the code run in the OSSH_CHECK_CFLAG_COMPILE | ||
6536 | and OSSH_CHECK_LDFLAG_LINK tests to give them a better chance of | ||
6537 | detecting toolchain-related problems; ok dtucker | ||
6538 | |||
6539 | commit 9464ba6fb34bb42eb3501ec3c5143662e75674bf | ||
6540 | Author: Tim Rice <tim@multitalents.net> | ||
6541 | Date: Mon Jan 20 17:59:28 2014 -0800 | ||
6542 | |||
6543 | - (tim) [platform.c session.c] Fix bug affecting SVR5 platforms introduced | ||
6544 | with sftp chroot support. Move set_id call after chroot. | ||
6545 | |||
6546 | commit a6d573caa14d490e6c42fb991bcb5c6860ec704b | ||
6547 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6548 | Date: Tue Jan 21 12:50:46 2014 +1100 | ||
6549 | |||
6550 | - (dtucker) [aclocal.m4] Differentiate between compile-time and link-time | ||
6551 | tests in the configure output. ok djm. | ||
6552 | |||
6553 | commit 096118dc73ab14810b3c12785c0b5acb01ad6123 | ||
6554 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6555 | Date: Tue Jan 21 12:48:51 2014 +1100 | ||
6556 | |||
6557 | - (dtucker) [configure.ac] Make PIE a configure-time option which defaults | ||
6558 | to on platforms where it's known to be reliably detected and off elsewhere. | ||
6559 | Works around platforms such as FreeBSD 9.1 where it does not interop with | ||
6560 | -ftrapv (it seems to work but fails when trying to link ssh). ok djm@ | ||
6561 | |||
6562 | commit f9df7f6f477792254eab33cdef71a6d66488cb88 | ||
6563 | Author: Damien Miller <djm@mindrot.org> | ||
6564 | Date: Mon Jan 20 20:07:15 2014 +1100 | ||
6565 | |||
6566 | - (djm) [regress/cert-hostkey.sh] Fix regress failure on platforms that | ||
6567 | skip one or more key types (e.g. RHEL/CentOS 6.5); ok dtucker@ | ||
6568 | |||
6569 | commit c74e70eb52ccc0082bd5a70b5798bb01c114d138 | ||
6570 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6571 | Date: Mon Jan 20 13:18:09 2014 +1100 | ||
6572 | |||
6573 | - (dtucker) [gss-serv-krb5.c] Fall back to krb5_cc_gen_new if the Kerberos | ||
6574 | implementation does not have krb5_cc_new_unique, similar to what we do | ||
6575 | in auth-krb5.c. | ||
6576 | |||
6577 | commit 3510979e83b6a18ec8773c64c3fa04aa08b2e783 | ||
6578 | Author: Damien Miller <djm@mindrot.org> | ||
6579 | Date: Mon Jan 20 12:41:53 2014 +1100 | ||
6580 | |||
6581 | - djm@cvs.openbsd.org 2014/01/20 00:08:48 | ||
6582 | [digest.c] | ||
6583 | memleak; found by Loganaden Velvindron @ AfriNIC; ok markus@ | ||
6584 | |||
6585 | commit 7eee358d7a6580479bee5cd7e52810ebfd03e5b2 | ||
6586 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6587 | Date: Sun Jan 19 22:37:02 2014 +1100 | ||
6588 | |||
6589 | - dtucker@cvs.openbsd.org 2014/01/19 11:21:51 | ||
6590 | [addrmatch.c] | ||
6591 | Cast the sizeof to socklen_t so it'll work even if the supplied len is | ||
6592 | negative. Suggested by and ok djm, ok deraadt. | ||
6593 | |||
6594 | commit b7e01c09b56ab26e8fac56bbce0fd25e36d12bb0 | ||
6595 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6596 | Date: Sun Jan 19 22:36:13 2014 +1100 | ||
6597 | |||
6598 | - djm@cvs.openbsd.org 2014/01/19 04:48:08 | ||
6599 | [ssh_config.5] | ||
6600 | fix inverted meaning of 'no' and 'yes' for CanonicalizeFallbackLocal | ||
6601 | |||
6602 | commit 7b1ded04adce42efa25ada7c3a39818d3109b724 | ||
6603 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6604 | Date: Sun Jan 19 15:30:02 2014 +1100 | ||
6605 | |||
6606 | - dtucker@cvs.openbsd.org 2014/01/19 04:17:29 | ||
6607 | [canohost.c addrmatch.c] | ||
6608 | Cast socklen_t when comparing to size_t and use socklen_t to iterate over | ||
6609 | the ip options, both to prevent signed/unsigned comparison warnings. | ||
6610 | Patch from vinschen at redhat via portable openssh, begrudging ok deraadt. | ||
6611 | |||
6612 | commit 293ee3c9f0796d99ebb033735f0e315f2e0180bf | ||
6613 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6614 | Date: Sun Jan 19 15:28:01 2014 +1100 | ||
6615 | |||
6616 | - dtucker@cvs.openbsd.org 2014/01/18 09:36:26 | ||
6617 | [session.c] | ||
6618 | explicitly define USE_PIPES to 1 to prevent redefinition warnings in | ||
6619 | portable on platforms that use pipes for everything. From redhat @ | ||
6620 | redhat. | ||
6621 | |||
6622 | commit 2aca159d05f9e7880d1d8f1ce49a218840057f53 | ||
6623 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6624 | Date: Sun Jan 19 15:25:34 2014 +1100 | ||
6625 | |||
6626 | - dtucker@cvs.openbsd.org 2014/01/17 06:23:24 | ||
6627 | [sftp-server.c] | ||
6628 | fix log message statvfs. ok djm | ||
6629 | |||
6630 | commit 841f7da89ae8b367bb502d61c5c41916c6e7ae4c | ||
6631 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6632 | Date: Sat Jan 18 22:12:15 2014 +1100 | ||
6633 | |||
6634 | - (dtucker) [sandbox-capsicum.c] Correct some error messages and make the | ||
6635 | return value check for cap_enter() consistent with the other uses in | ||
6636 | FreeBSD. From by Loganaden Velvindron @ AfriNIC via bz#2140. | ||
6637 | |||
6638 | commit fdce3731660699b2429e93e822f2ccbaccd163ae | ||
6639 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6640 | Date: Sat Jan 18 21:12:42 2014 +1100 | ||
6641 | |||
6642 | - (dtucker) [configure.ac] On Cygwin the getopt variables (like optargs, | ||
6643 | optind) are defined in getopt.h already. Unfortunately they are defined as | ||
6644 | "declspec(dllimport)" for historical reasons, because the GNU linker didn't | ||
6645 | allow auto-import on PE/COFF targets way back when. The problem is the | ||
6646 | dllexport attributes collide with the definitions in the various source | ||
6647 | files in OpenSSH, which obviousy define the variables without | ||
6648 | declspec(dllimport). The least intrusive way to get rid of these warnings | ||
6649 | is to disable warnings for GCC compiler attributes when building on Cygwin. | ||
6650 | Patch from vinschen at redhat.com. | ||
6651 | |||
6652 | commit 1411c9263f46e1ee49d0d302bf7258ebe69ce827 | ||
6653 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6654 | Date: Sat Jan 18 21:03:59 2014 +1100 | ||
6655 | |||
6656 | - (dtucker) [openbsd-compat/bsd-cygwin_util.h] Add missing function | ||
6657 | declarations that stopped being included when we stopped including | ||
6658 | <windows.h> from openbsd-compat/bsd-cygwin_util.h. Patch from vinschen at | ||
6659 | redhat.com. | ||
6660 | |||
6661 | commit 89c532d843c95a085777c66365067d64d1937eb9 | ||
6662 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6663 | Date: Sat Jan 18 20:43:49 2014 +1100 | ||
6664 | |||
6665 | - (dtucker) [uidswap.c] Prevent unused variable warnings on Cygwin. Patch | ||
6666 | from vinschen at redhat.com | ||
6667 | |||
6668 | commit 355f861022be7b23d3009fae8f3c9f6f7fc685f7 | ||
6669 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6670 | Date: Sat Jan 18 00:12:38 2014 +1100 | ||
6671 | |||
6672 | - (dtucker) [defines.h] Move our definitions of uintXX_t types down to after | ||
6673 | they're defined if we have to define them ourselves. Fixes builds on old | ||
6674 | AIX. | ||
6675 | |||
6676 | commit a3357661ee1d5d553294f36e4940e8285c7f1332 | ||
6677 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6678 | Date: Sat Jan 18 00:03:57 2014 +1100 | ||
6679 | |||
6680 | - (dtucker) [readconf.c] Wrap paths.h inside an ifdef. Allows building on | ||
6681 | Solaris. | ||
6682 | |||
6683 | commit 9edcbff46ff01c8d5dee9c1aa843f09e9ad8a80e | ||
6684 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6685 | Date: Fri Jan 17 21:54:32 2014 +1100 | ||
6686 | |||
6687 | - (dtucker) [configure.ac] Have --without-toolchain-hardening not turn off | ||
6688 | stack-protector since that has a separate flag that's been around a while. | ||
6689 | |||
6690 | commit 6d725687c490d4ba957a1bbc0ba0a2956c09fa69 | ||
6691 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6692 | Date: Fri Jan 17 19:17:34 2014 +1100 | ||
6693 | |||
6694 | - (dtucker) [configure.ac] Also look in inttypes.h for uintXX_t types. | ||
6695 | |||
6696 | commit 5055699c7f7c7ef21703a443ec73117da392f6ae | ||
6697 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6698 | Date: Fri Jan 17 18:48:22 2014 +1100 | ||
6699 | |||
6700 | - (dtucker) [openbsd-compat/bsd-statvfs.h] Only start including headers if we | ||
6701 | need them to cut down on the name collisions. | ||
6702 | |||
6703 | commit a5cf1e220def07290260e4125e74f41ac75cf88d | ||
6704 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6705 | Date: Fri Jan 17 18:10:58 2014 +1100 | ||
6706 | |||
6707 | - (dtucker) [configure.ac openbsd-compat/bsd-statvfs.c | ||
6708 | openbsd-compat/bsd-statvfs.h] Implement enough of statvfs on top of statfs | ||
6709 | to be useful (and for the regression tests to pass) on platforms that | ||
6710 | have statfs and fstatfs. ok djm@ | ||
6711 | |||
6712 | commit 1357d71d7b6d269969520aaa3e84d312ec971d5b | ||
6713 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6714 | Date: Fri Jan 17 18:00:40 2014 +1100 | ||
6715 | |||
6716 | - (dtucker) Fix typo in #ifndef. | ||
6717 | |||
6718 | commit d23a91ffb289d3553a58b7a60cec39fba9f0f506 | ||
6719 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6720 | Date: Fri Jan 17 17:32:30 2014 +1100 | ||
6721 | |||
6722 | - (dtucker) [configure.ac digest.c openbsd-compat/openssl-compat.c | ||
6723 | openbsd-compat/openssl-compat.h] Add compatibility layer for older | ||
6724 | openssl versions. ok djm@ | ||
6725 | |||
6726 | commit 868ea1ea1c1bfdbee5dbad78f81999c5983ecf31 | ||
6727 | Author: Damien Miller <djm@mindrot.org> | ||
6728 | Date: Fri Jan 17 16:47:04 2014 +1100 | ||
6729 | |||
6730 | - (djm) [Makefile.in configure.ac sandbox-capsicum.c sandbox-darwin.c] | ||
6731 | [sandbox-null.c sandbox-rlimit.c sandbox-seccomp-filter.c] | ||
6732 | [sandbox-systrace.c ssh-sandbox.h sshd.c] Support preauth sandboxing | ||
6733 | using the Capsicum API introduced in FreeBSD 10. Patch by Dag-Erling | ||
6734 | Smorgrav, updated by Loganaden Velvindron @ AfriNIC; ok dtucker@ | ||
6735 | |||
6736 | commit a9d186a8b50d18869a10e9203abf71c83ddb1f79 | ||
6737 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6738 | Date: Fri Jan 17 16:30:49 2014 +1100 | ||
6739 | |||
6740 | - dtucker@cvs.openbsd.org 2014/01/17 05:26:41 | ||
6741 | [digest.c] | ||
6742 | remove unused includes. ok djm@ | ||
6743 | |||
6744 | commit 5f1c57a7a7eb39c0e4fee3367712337dbcaef024 | ||
6745 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6746 | Date: Fri Jan 17 16:29:45 2014 +1100 | ||
6747 | |||
6748 | - djm@cvs.openbsd.org 2014/01/17 00:21:06 | ||
6749 | [sftp-client.c] | ||
6750 | signed/unsigned comparison warning fix; from portable (Id sync only) | ||
6751 | |||
6752 | commit c548722361d89fb12c108528f96b306a26477b18 | ||
6753 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6754 | Date: Fri Jan 17 15:12:16 2014 +1100 | ||
6755 | |||
6756 | - (dtucker) [configure.ac] Split AC_CHECK_FUNCS for OpenSSL functions into | ||
6757 | separate lines and alphabetize for easier diffing of changes. | ||
6758 | |||
6759 | commit acad351a5b1c37de9130c9c1710445cc45a7f6b9 | ||
6760 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6761 | Date: Fri Jan 17 14:20:05 2014 +1100 | ||
6762 | |||
6763 | - (dtucker) [defines.h] Add typedefs for uintXX_t types for platforms that | ||
6764 | don't have them. | ||
6765 | |||
6766 | commit c3ed065ce8417aaa46490836648c173a5010f226 | ||
6767 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6768 | Date: Fri Jan 17 14:18:45 2014 +1100 | ||
6769 | |||
6770 | - (dtucker) [openbsd-compat/bcrypt_pbkdf.c] Wrap stdlib.h include inside | ||
6771 | #ifdef HAVE_STDINT_H. | ||
6772 | |||
6773 | commit f45f78ae437062c7d9506c5f475b7215f486be44 | ||
6774 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6775 | Date: Fri Jan 17 12:43:43 2014 +1100 | ||
6776 | |||
6777 | - (dtucker) [blocks.c fe25519.c ge25519.c hash.c sc25519.c verify.c] Include | ||
6778 | includes.h to pull in all of the compatibility stuff. | ||
6779 | |||
6780 | commit 99df369d0340caac145d57f700d830147ff18b87 | ||
6781 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6782 | Date: Fri Jan 17 12:42:17 2014 +1100 | ||
6783 | |||
6784 | - (dtucker) [poly1305.c] Wrap stdlib.h include inside #ifdef HAVE_STDINT_H. | ||
6785 | |||
6786 | commit ac413b62ea1957e80c711acbe0c11b908273fc01 | ||
6787 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6788 | Date: Fri Jan 17 12:31:33 2014 +1100 | ||
6789 | |||
6790 | - (dtucker) [crypto_api.h] Wrap stdlib.h include inside #ifdef HAVE_STDINT_H. | ||
6791 | |||
6792 | commit 1c4a011e9c939e74815346a560843e1862c300b8 | ||
6793 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6794 | Date: Fri Jan 17 12:23:23 2014 +1100 | ||
6795 | |||
6796 | - (dtucker) [loginrec.c] Cast to the types specfied in the format | ||
6797 | specification to prevent warnings. | ||
6798 | |||
6799 | commit c3d483f9a8275be1113535a1e0d0e384f605f3c4 | ||
6800 | Author: Damien Miller <djm@mindrot.org> | ||
6801 | Date: Fri Jan 17 11:20:26 2014 +1100 | ||
6802 | |||
6803 | - (djm) [sftp-client.c] signed/unsigned comparison fix | ||
6804 | |||
6805 | commit fd994379dd972417d0491767f7cd9b5bf23f4975 | ||
6806 | Author: Darren Tucker <dtucker@zip.com.au> | ||
6807 | Date: Fri Jan 17 09:53:24 2014 +1100 | ||
6808 | |||
6809 | - (dtucker) [aclocal.m4 configure.ac] Add some additional compiler/toolchain | ||
6810 | hardening flags including -fstack-protector-strong. These default to on | ||
6811 | if the toolchain supports them, but there is a configure-time knob | ||
6812 | (--without-hardening) to disable them if necessary. ok djm@ | ||
6813 | |||
6814 | commit 366224d21768ee8ec28cfbcc5fbade1b32582d58 | ||
6815 | Author: Damien Miller <djm@mindrot.org> | ||
6816 | Date: Thu Jan 16 18:51:44 2014 +1100 | ||
6817 | |||
6818 | - (djm) [README] update release notes URL. | ||
6819 | |||
6820 | commit 2ae77e64f8fa82cbf25c9755e8e847709b978b40 | ||
6821 | Author: Damien Miller <djm@mindrot.org> | ||
6822 | Date: Thu Jan 16 18:51:07 2014 +1100 | ||
6823 | |||
6824 | - (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec] | ||
6825 | [contrib/suse/openssh.spec] Crank RPM spec version numbers. | ||
6826 | |||
6827 | commit 0fa29e6d777c73a1b4ddd3b996b06ee20022ae8a | ||
6828 | Author: Damien Miller <djm@mindrot.org> | ||
6829 | Date: Thu Jan 16 18:42:31 2014 +1100 | ||
6830 | |||
6831 | - djm@cvs.openbsd.org 2014/01/16 07:32:00 | ||
6832 | [version.h] | ||
6833 | openssh-6.5 | ||
6834 | |||
6835 | commit 52c371cd6d2598cc73d4e633811b3012119c47e2 | ||
6836 | Author: Damien Miller <djm@mindrot.org> | ||
6837 | Date: Thu Jan 16 18:42:10 2014 +1100 | ||
6838 | |||
6839 | - djm@cvs.openbsd.org 2014/01/16 07:31:09 | ||
6840 | [sftp-client.c] | ||
6841 | needless and incorrect cast to size_t can break resumption of | ||
6842 | large download; patch from tobias@ | ||
6843 | |||
6844 | commit 91b580e4bec55118bf96ab3cdbe5a50839e75d0a | ||
6845 | Author: Damien Miller <djm@mindrot.org> | ||
6846 | Date: Sun Jan 12 19:21:22 2014 +1100 | ||
6847 | |||
6848 | - djm@cvs.openbsd.org 2014/01/12 08:13:13 | ||
6849 | [bufaux.c buffer.h kex.c kex.h kexc25519.c kexc25519c.c kexc25519s.c] | ||
6850 | [kexdhc.c kexdhs.c kexecdhc.c kexecdhs.c kexgexc.c kexgexs.c] | ||
6851 | avoid use of OpenSSL BIGNUM type and functions for KEX with | ||
6852 | Curve25519 by adding a buffer_put_bignum2_from_string() that stores | ||
6853 | a string using the bignum encoding rules. Will make it easier to | ||
6854 | build a reduced-feature OpenSSH without OpenSSL in the future; | ||
6855 | ok markus@ | ||
6856 | |||
6857 | commit af5d4481f4c7c8c3c746e68b961bb85ef907800e | ||
6858 | Author: Damien Miller <djm@mindrot.org> | ||
6859 | Date: Sun Jan 12 19:20:47 2014 +1100 | ||
6860 | |||
6861 | - djm@cvs.openbsd.org 2014/01/10 05:59:19 | ||
6862 | [sshd_config] | ||
6863 | the /etc/ssh/ssh_host_ed25519_key is loaded by default too | ||
6864 | |||
6865 | commit 58cd63bc63038acddfb4051ed14e11179d8f4941 | ||
6866 | Author: Damien Miller <djm@mindrot.org> | ||
6867 | Date: Fri Jan 10 10:59:24 2014 +1100 | ||
6868 | |||
6869 | - djm@cvs.openbsd.org 2014/01/09 23:26:48 | ||
6870 | [sshconnect.c sshd.c] | ||
6871 | ban clients/servers that suffer from SSH_BUG_DERIVEKEY, they are ancient, | ||
6872 | deranged and might make some attacks on KEX easier; ok markus@ | ||
6873 | |||
6874 | commit b3051d01e505c9c2dc00faab472a0d06fa6b0e65 | ||
6875 | Author: Damien Miller <djm@mindrot.org> | ||
6876 | Date: Fri Jan 10 10:58:53 2014 +1100 | ||
6877 | |||
6878 | - djm@cvs.openbsd.org 2014/01/09 23:20:00 | ||
6879 | [digest.c digest.h hostfile.c kex.c kex.h kexc25519.c kexc25519c.c] | ||
6880 | [kexc25519s.c kexdh.c kexecdh.c kexecdhc.c kexecdhs.c kexgex.c kexgexc.c] | ||
6881 | [kexgexs.c key.c key.h roaming_client.c roaming_common.c schnorr.c] | ||
6882 | [schnorr.h ssh-dss.c ssh-ecdsa.c ssh-rsa.c sshconnect2.c] | ||
6883 | Introduce digest API and use it to perform all hashing operations | ||
6884 | rather than calling OpenSSL EVP_Digest* directly. Will make it easier | ||
6885 | to build a reduced-feature OpenSSH without OpenSSL in future; | ||
6886 | feedback, ok markus@ | ||
6887 | |||
6888 | commit e00e413dd16eb747fb2c15a099971d91c13cf70f | ||
6889 | Author: Damien Miller <djm@mindrot.org> | ||
6890 | Date: Fri Jan 10 10:40:45 2014 +1100 | ||
6891 | |||
6892 | - guenther@cvs.openbsd.org 2014/01/09 03:26:00 | ||
6893 | [sftp-common.c] | ||
6894 | When formating the time for "ls -l"-style output, show dates in the future | ||
6895 | with the year, and rearrange a comparison to avoid a potentional signed | ||
6896 | arithmetic overflow that would give the wrong result. | ||
6897 | |||
6898 | ok djm@ | ||
6899 | |||
6900 | commit 3e49853650448883685cfa32fa382d0ba6d51d48 | ||
6901 | Author: Damien Miller <djm@mindrot.org> | ||
6902 | Date: Fri Jan 10 10:37:05 2014 +1100 | ||
6903 | |||
6904 | - tedu@cvs.openbsd.org 2014/01/04 17:50:55 | ||
6905 | [mac.c monitor_mm.c monitor_mm.h xmalloc.c] | ||
6906 | use standard types and formats for size_t like variables. ok dtucker | ||
6907 | |||
6908 | commit a9c1e500ef609795cbc662848edb1a1dca279c81 | ||
6909 | Author: Damien Miller <djm@mindrot.org> | ||
6910 | Date: Wed Jan 8 16:13:12 2014 +1100 | ||
6911 | |||
6912 | - (djm) [regress/.cvsignore] Ignore regress test droppings; ok dtucker@ | ||
6913 | |||
6914 | commit 324541e5264e1489ca0babfaf2b39612eb80dfb3 | ||
6915 | Author: Damien Miller <djm@mindrot.org> | ||
6916 | Date: Tue Dec 31 12:25:40 2013 +1100 | ||
6917 | |||
6918 | - djm@cvs.openbsd.org 2013/12/30 23:52:28 | ||
6919 | [auth2-hostbased.c auth2-pubkey.c compat.c compat.h ssh-rsa.c] | ||
6920 | [sshconnect.c sshconnect2.c sshd.c] | ||
6921 | refuse RSA keys from old proprietary clients/servers that use the | ||
6922 | obsolete RSA+MD5 signature scheme. it will still be possible to connect | ||
6923 | with these clients/servers but only DSA keys will be accepted, and we'll | ||
6924 | deprecate them entirely in a future release. ok markus@ | ||
6925 | |||
6926 | commit 9f4c8e797ea002a883307ca906f1f1f815010e78 | ||
6927 | Author: Damien Miller <djm@mindrot.org> | ||
6928 | Date: Sun Dec 29 17:57:46 2013 +1100 | ||
6929 | |||
6930 | - (djm) [regress/Makefile] Add some generated files for cleaning | ||
6931 | |||
6932 | commit 106bf1ca3c7a5fdc34f9fd7a1fe651ca53085bc5 | ||
6933 | Author: Damien Miller <djm@mindrot.org> | ||
6934 | Date: Sun Dec 29 17:54:03 2013 +1100 | ||
6935 | |||
6936 | - djm@cvs.openbsd.org 2013/12/29 05:57:02 | ||
6937 | [sshconnect.c] | ||
6938 | when showing other hostkeys, don't forget Ed25519 keys | ||
6939 | |||
6940 | commit 0fa47cfb32c239117632cab41e4db7d3e6de5e91 | ||
6941 | Author: Damien Miller <djm@mindrot.org> | ||
6942 | Date: Sun Dec 29 17:53:39 2013 +1100 | ||
6943 | |||
6944 | - djm@cvs.openbsd.org 2013/12/29 05:42:16 | ||
6945 | [ssh.c] | ||
6946 | don't forget to load Ed25519 certs too | ||
6947 | |||
6948 | commit b9a95490daa04cc307589897f95bfaff324ad2c9 | ||
6949 | Author: Damien Miller <djm@mindrot.org> | ||
6950 | Date: Sun Dec 29 17:50:15 2013 +1100 | ||
6951 | |||
6952 | - djm@cvs.openbsd.org 2013/12/29 04:35:50 | ||
6953 | [authfile.c] | ||
6954 | don't refuse to load Ed25519 certificates | ||
6955 | |||
6956 | commit f72cdde6e6fabc51d2a62f4e75b8b926d9d7ee89 | ||
6957 | Author: Damien Miller <djm@mindrot.org> | ||
6958 | Date: Sun Dec 29 17:49:55 2013 +1100 | ||
6959 | |||
6960 | - djm@cvs.openbsd.org 2013/12/29 04:29:25 | ||
6961 | [authfd.c] | ||
6962 | allow deletion of ed25519 keys from the agent | ||
6963 | |||
6964 | commit 29ace1cb68cc378a464c72c0fd67aa5f9acd6b5b | ||
6965 | Author: Damien Miller <djm@mindrot.org> | ||
6966 | Date: Sun Dec 29 17:49:31 2013 +1100 | ||
6967 | |||
6968 | - djm@cvs.openbsd.org 2013/12/29 04:20:04 | ||
6969 | [key.c] | ||
6970 | to make sure we don't omit any key types as valid CA keys again, | ||
6971 | factor the valid key type check into a key_type_is_valid_ca() | ||
6972 | function | ||
6973 | |||
6974 | commit 9de4fcdc5a9cff48d49a3e2f6194d3fb2d7ae34d | ||
6975 | Author: Damien Miller <djm@mindrot.org> | ||
6976 | Date: Sun Dec 29 17:49:13 2013 +1100 | ||
6977 | |||
6978 | - djm@cvs.openbsd.org 2013/12/29 02:49:52 | ||
6979 | [key.c] | ||
6980 | correct comment for key_drop_cert() | ||
6981 | |||
6982 | commit 5baeacf8a80f054af40731c6f92435f9164b8e02 | ||
6983 | Author: Damien Miller <djm@mindrot.org> | ||
6984 | Date: Sun Dec 29 17:48:55 2013 +1100 | ||
6985 | |||
6986 | - djm@cvs.openbsd.org 2013/12/29 02:37:04 | ||
6987 | [key.c] | ||
6988 | correct comment for key_to_certified() | ||
6989 | |||
6990 | commit 83f2fe26cb19330712c952eddbd3c0b621674adc | ||
6991 | Author: Damien Miller <djm@mindrot.org> | ||
6992 | Date: Sun Dec 29 17:48:38 2013 +1100 | ||
6993 | |||
6994 | - djm@cvs.openbsd.org 2013/12/29 02:28:10 | ||
6995 | [key.c] | ||
6996 | allow ed25519 keys to appear as certificate authorities | ||
6997 | |||
6998 | commit 06122e9a74bb488b0fe0a8f64e1135de870f9cc0 | ||
6999 | Author: Damien Miller <djm@mindrot.org> | ||
7000 | Date: Sun Dec 29 17:48:15 2013 +1100 | ||
7001 | |||
7002 | - djm@cvs.openbsd.org 2013/12/27 22:37:18 | ||
7003 | [ssh-rsa.c] | ||
7004 | correct comment | ||
7005 | |||
7006 | commit 3e19295c3a253c8dc8660cf45baad7f45fccb969 | ||
7007 | Author: Damien Miller <djm@mindrot.org> | ||
7008 | Date: Sun Dec 29 17:47:50 2013 +1100 | ||
7009 | |||
7010 | - djm@cvs.openbsd.org 2013/12/27 22:30:17 | ||
7011 | [ssh-dss.c ssh-ecdsa.c ssh-rsa.c] | ||
7012 | make the original RSA and DSA signing/verification code look more like | ||
7013 | the ECDSA/Ed25519 ones: use key_type_plain() when checking the key type | ||
7014 | rather than tediously listing all variants, use __func__ for debug/ | ||
7015 | error messages | ||
7016 | |||
7017 | commit 137977180be6254639e2c90245763e6965f8d815 | ||
7018 | Author: Damien Miller <djm@mindrot.org> | ||
7019 | Date: Sun Dec 29 17:47:14 2013 +1100 | ||
7020 | |||
7021 | - tedu@cvs.openbsd.org 2013/12/21 07:10:47 | ||
7022 | [ssh-keygen.1] | ||
7023 | small typo | ||
7024 | |||
7025 | commit 339a48fe7ffb3186d22bbaa9efbbc3a053e602fd | ||
7026 | Author: Damien Miller <djm@mindrot.org> | ||
7027 | Date: Sun Dec 29 17:46:49 2013 +1100 | ||
7028 | |||
7029 | - djm@cvs.openbsd.org 2013/12/19 22:57:13 | ||
7030 | [poly1305.c poly1305.h] | ||
7031 | use full name for author, with his permission | ||
7032 | |||
7033 | commit 0b36c83148976c7c8268f4f41497359e2fb26251 | ||
7034 | Author: Damien Miller <djm@mindrot.org> | ||
7035 | Date: Sun Dec 29 17:45:51 2013 +1100 | ||
7036 | |||
7037 | - djm@cvs.openbsd.org 2013/12/19 01:19:41 | ||
7038 | [ssh-agent.c] | ||
7039 | bz#2186: don't crash (NULL deref) when deleting PKCS#11 keys from an agent | ||
7040 | that has a mix of normal and PKCS#11 keys; fix from jay AT slushpupie.com; | ||
7041 | ok dtucker | ||
7042 | |||
7043 | commit 4def184e9b6c36be6d965a9705632fc4c0c2a8af | ||
7044 | Author: Damien Miller <djm@mindrot.org> | ||
7045 | Date: Sun Dec 29 17:45:26 2013 +1100 | ||
7046 | |||
7047 | - djm@cvs.openbsd.org 2013/12/19 01:04:36 | ||
7048 | [channels.c] | ||
7049 | bz#2147: fix multiple remote forwardings with dynamically assigned | ||
7050 | listen ports. In the s->c message to open the channel we were sending | ||
7051 | zero (the magic number to request a dynamic port) instead of the actual | ||
7052 | listen port. The client therefore had no way of discriminating between | ||
7053 | them. | ||
7054 | |||
7055 | Diagnosis and fix by ronf AT timeheart.net | ||
7056 | |||
7057 | commit bf25d114e23a803f8feca8926281b1aaedb6191b | ||
7058 | Author: Damien Miller <djm@mindrot.org> | ||
7059 | Date: Sun Dec 29 17:44:56 2013 +1100 | ||
7060 | |||
7061 | - djm@cvs.openbsd.org 2013/12/19 00:27:57 | ||
7062 | [auth-options.c] | ||
7063 | simplify freeing of source-address certificate restriction | ||
7064 | |||
7065 | commit bb3dafe7024a5b4e851252e65ee35d45b965e4a8 | ||
7066 | Author: Damien Miller <djm@mindrot.org> | ||
7067 | Date: Sun Dec 29 17:44:29 2013 +1100 | ||
7068 | |||
7069 | - dtucker@cvs.openbsd.org 2013/12/19 00:19:12 | ||
7070 | [serverloop.c] | ||
7071 | Cast client_alive_interval to u_int64_t before assinging to | ||
7072 | max_time_milliseconds to avoid potential integer overflow in the timeout. | ||
7073 | bz#2170, patch from Loganaden Velvindron, ok djm@ | ||
7074 | |||
7075 | commit ef275ead3dcadde4db1efe7a0aa02b5e618ed40c | ||
7076 | Author: Damien Miller <djm@mindrot.org> | ||
7077 | Date: Sun Dec 29 17:44:07 2013 +1100 | ||
7078 | |||
7079 | - djm@cvs.openbsd.org 2013/12/19 00:10:30 | ||
7080 | [ssh-add.c] | ||
7081 | skip requesting smartcard PIN when removing keys from agent; bz#2187 | ||
7082 | patch from jay AT slushpupie.com; ok dtucker | ||
7083 | |||
7084 | commit 7d97fd9a1cae778c3eacf16e09f5da3689d616c6 | ||
7085 | Author: Damien Miller <djm@mindrot.org> | ||
7086 | Date: Sun Dec 29 17:40:18 2013 +1100 | ||
7087 | |||
7088 | - (djm) [loginrec.c] Check for username truncation when looking up lastlog | ||
7089 | entries | ||
7090 | |||
7091 | commit 77244afe3b6d013b485e0952eaab89b9db83380f | ||
7092 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7093 | Date: Sat Dec 21 17:02:39 2013 +1100 | ||
7094 | |||
7095 | 20131221 | ||
7096 | - (dtucker) [regress/keytype.sh] Actually test ecdsa key types. | ||
7097 | |||
7098 | commit 53f8e784dc431a82d31c9b0e95b144507f9330e9 | ||
7099 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7100 | Date: Thu Dec 19 11:31:44 2013 +1100 | ||
7101 | |||
7102 | - (dtucker) [auth-pam.c] bz#2163: check return value from pam_get_item(). | ||
7103 | Patch from Loganaden Velvindron. | ||
7104 | |||
7105 | commit 1fcec9d4f265e38af248c4c845986ca8c174bd68 | ||
7106 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7107 | Date: Thu Dec 19 11:00:12 2013 +1100 | ||
7108 | |||
7109 | - (dtucker) [configure.ac] bz#2178: Don't try to use BSM on Solaris versions | ||
7110 | greater than 11 either rather than just 11. Patch from Tomas Kuthan. | ||
7111 | |||
7112 | commit 6674eb9683afd1ea4eb35670b5e66815543a759e | ||
7113 | Author: Damien Miller <djm@mindrot.org> | ||
7114 | Date: Wed Dec 18 17:50:39 2013 +1100 | ||
7115 | |||
7116 | - markus@cvs.openbsd.org 2013/12/17 10:36:38 | ||
7117 | [crypto_api.h] | ||
7118 | I've assempled the header file by cut&pasting from generated headers | ||
7119 | and the source files. | ||
7120 | |||
7121 | commit d58a5964426ee014384d67d775d16712e93057f3 | ||
7122 | Author: Damien Miller <djm@mindrot.org> | ||
7123 | Date: Wed Dec 18 17:50:13 2013 +1100 | ||
7124 | |||
7125 | - djm@cvs.openbsd.org 2013/12/15 21:42:35 | ||
7126 | [cipher-chachapoly.c] | ||
7127 | add some comments and constify a constant | ||
7128 | |||
7129 | commit 059321d19af24d87420de3193f79dfab23556078 | ||
7130 | Author: Damien Miller <djm@mindrot.org> | ||
7131 | Date: Wed Dec 18 17:49:48 2013 +1100 | ||
7132 | |||
7133 | - pascal@cvs.openbsd.org 2013/12/15 18:17:26 | ||
7134 | [ssh-add.c] | ||
7135 | Make ssh-add also add .ssh/id_ed25519; fixes lie in manual page. | ||
7136 | ok markus@ | ||
7137 | |||
7138 | commit 155b5a5bf158767f989215479ded2a57f331e1c6 | ||
7139 | Author: Damien Miller <djm@mindrot.org> | ||
7140 | Date: Wed Dec 18 17:48:32 2013 +1100 | ||
7141 | |||
7142 | - markus@cvs.openbsd.org 2013/12/09 11:08:17 | ||
7143 | [crypto_api.h] | ||
7144 | remove unused defines | ||
7145 | |||
7146 | commit 8a56dc2b6b48b05590810e7f4c3567508410000c | ||
7147 | Author: Damien Miller <djm@mindrot.org> | ||
7148 | Date: Wed Dec 18 17:48:11 2013 +1100 | ||
7149 | |||
7150 | - markus@cvs.openbsd.org 2013/12/09 11:03:45 | ||
7151 | [blocks.c ed25519.c fe25519.c fe25519.h ge25519.c ge25519.h] | ||
7152 | [ge25519_base.data hash.c sc25519.c sc25519.h verify.c] | ||
7153 | Add Authors for the public domain ed25519/nacl code. | ||
7154 | see also http://nacl.cr.yp.to/features.html | ||
7155 | All of the NaCl software is in the public domain. | ||
7156 | and http://ed25519.cr.yp.to/software.html | ||
7157 | The Ed25519 software is in the public domain. | ||
7158 | |||
7159 | commit 6575c3acf31fca117352f31f37b16ae46e664837 | ||
7160 | Author: Damien Miller <djm@mindrot.org> | ||
7161 | Date: Wed Dec 18 17:47:02 2013 +1100 | ||
7162 | |||
7163 | - dtucker@cvs.openbsd.org 2013/12/08 09:53:27 | ||
7164 | [sshd_config.5] | ||
7165 | Use a literal for the default value of KEXAlgorithms. ok deraadt jmc | ||
7166 | |||
7167 | commit 8ba0ead6985ea14999265136b14ffd5aeec516f9 | ||
7168 | Author: Damien Miller <djm@mindrot.org> | ||
7169 | Date: Wed Dec 18 17:46:27 2013 +1100 | ||
7170 | |||
7171 | - naddy@cvs.openbsd.org 2013/12/07 11:58:46 | ||
7172 | [ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh-keyscan.1 ssh-keysign.8 ssh.1] | ||
7173 | [ssh_config.5 sshd.8 sshd_config.5] | ||
7174 | add missing mentions of ed25519; ok djm@ | ||
7175 | |||
7176 | commit 4f752cf71cf44bf4bc777541156c2bf56daf9ce9 | ||
7177 | Author: Damien Miller <djm@mindrot.org> | ||
7178 | Date: Wed Dec 18 17:45:35 2013 +1100 | ||
7179 | |||
7180 | - djm@cvs.openbsd.org 2013/12/07 08:08:26 | ||
7181 | [ssh-keygen.1] | ||
7182 | document -a and -o wrt new key format | ||
7183 | |||
7184 | commit 6d6fcd14e23a9053198342bb379815b15e504084 | ||
7185 | Author: Damien Miller <djm@mindrot.org> | ||
7186 | Date: Sun Dec 8 15:53:28 2013 +1100 | ||
7187 | |||
7188 | - (djm) [Makefile.in regress/Makefile regress/agent-ptrace.sh] | ||
7189 | [regress/setuid-allowed.c] Check that ssh-agent is not on a no-setuid | ||
7190 | filesystem before running agent-ptrace.sh; ok dtucker | ||
7191 | |||
7192 | commit 7e6e42fb532c7dafd7078ef5e9e2d3e47fcf6752 | ||
7193 | Author: Damien Miller <djm@mindrot.org> | ||
7194 | Date: Sun Dec 8 08:23:08 2013 +1100 | ||
7195 | |||
7196 | - (djm) [openbsd-compat/bsd-setres_id.c] Missing header; from Corinna | ||
7197 | Vinschen | ||
7198 | |||
7199 | commit da3ca351b49d52ae85db2e3998265dc3c6617068 | ||
7200 | Author: Damien Miller <djm@mindrot.org> | ||
7201 | Date: Sat Dec 7 21:43:46 2013 +1100 | ||
7202 | |||
7203 | - (djm) [Makefile.in] PATHSUBS and keygen bits for Ed25519; from | ||
7204 | Loganaden Velvindron @ AfriNIC in bz#2179 | ||
7205 | |||
7206 | commit eb401585bb8336cbf81fe4fc58eb9f7cac3ab874 | ||
7207 | Author: Damien Miller <djm@mindrot.org> | ||
7208 | Date: Sat Dec 7 17:07:15 2013 +1100 | ||
7209 | |||
7210 | - (djm) [regress/cert-hostkey.sh] Fix merge botch | ||
7211 | |||
7212 | commit f54542af3ad07532188b10136ae302314ec69ed6 | ||
7213 | Author: Damien Miller <djm@mindrot.org> | ||
7214 | Date: Sat Dec 7 16:32:44 2013 +1100 | ||
7215 | |||
7216 | - markus@cvs.openbsd.org 2013/12/06 13:52:46 | ||
7217 | [regress/Makefile regress/agent.sh regress/cert-hostkey.sh] | ||
7218 | [regress/cert-userkey.sh regress/keytype.sh] | ||
7219 | test ed25519 support; from djm@ | ||
7220 | |||
7221 | commit f104da263de995f66b6861b4f3368264ee483d7f | ||
7222 | Author: Damien Miller <djm@mindrot.org> | ||
7223 | Date: Sat Dec 7 12:37:53 2013 +1100 | ||
7224 | |||
7225 | - (djm) [ed25519.c ssh-ed25519.c openbsd-compat/Makefile.in] | ||
7226 | [openbsd-compat/bcrypt_pbkdf.c] Make ed25519/new key format compile on | ||
7227 | Linux | ||
7228 | |||
7229 | commit 1ff130dac9b7aea0628f4ad30683431fe35e0020 | ||
7230 | Author: Damien Miller <djm@mindrot.org> | ||
7231 | Date: Sat Dec 7 11:51:51 2013 +1100 | ||
7232 | |||
7233 | - [configure.ac openbsd-compat/Makefile.in openbsd-compat/bcrypt_pbkdf.c] | ||
7234 | [openbsd-compat/blf.h openbsd-compat/blowfish.c] | ||
7235 | [openbsd-compat/openbsd-compat.h] Start at supporting bcrypt_pbkdf in | ||
7236 | portable. | ||
7237 | |||
7238 | commit 4260828a2958ebe8c96f66d8301dac53f4cde556 | ||
7239 | Author: Damien Miller <djm@mindrot.org> | ||
7240 | Date: Sat Dec 7 11:38:03 2013 +1100 | ||
7241 | |||
7242 | - [authfile.c] Conditionalise inclusion of util.h | ||
7243 | |||
7244 | commit a913442bac8a26fd296a3add51293f8f6f9b3b4c | ||
7245 | Author: Damien Miller <djm@mindrot.org> | ||
7246 | Date: Sat Dec 7 11:35:36 2013 +1100 | ||
7247 | |||
7248 | - [Makefile.in] Add ed25519 sources | ||
7249 | |||
7250 | commit ca570a519cb846da61d002c7f46fa92e39c83e45 | ||
7251 | Author: Damien Miller <djm@mindrot.org> | ||
7252 | Date: Sat Dec 7 11:29:09 2013 +1100 | ||
7253 | |||
7254 | - djm@cvs.openbsd.org 2013/12/07 00:19:15 | ||
7255 | [key.c] | ||
7256 | set k->cert = NULL after freeing it | ||
7257 | |||
7258 | commit 3cccc0e155229a2f2d86b6df40bd4559b4f960ff | ||
7259 | Author: Damien Miller <djm@mindrot.org> | ||
7260 | Date: Sat Dec 7 11:27:47 2013 +1100 | ||
7261 | |||
7262 | - [blocks.c ed25519.c fe25519.c fe25519.h ge25519.c ge25519.h] | ||
7263 | [ge25519_base.data hash.c sc25519.c sc25519.h verify.c] Fix RCS idents | ||
7264 | |||
7265 | commit a7827c11b3f0380b7e593664bd62013ff9c131db | ||
7266 | Author: Damien Miller <djm@mindrot.org> | ||
7267 | Date: Sat Dec 7 11:24:30 2013 +1100 | ||
7268 | |||
7269 | - jmc@cvs.openbsd.org 2013/12/06 15:29:07 | ||
7270 | [sshd.8] | ||
7271 | missing comma; | ||
7272 | |||
7273 | commit 5be9d9e3cbd9c66f24745d25bf2e809c1d158ee0 | ||
7274 | Author: Damien Miller <djm@mindrot.org> | ||
7275 | Date: Sat Dec 7 11:24:01 2013 +1100 | ||
7276 | |||
7277 | - markus@cvs.openbsd.org 2013/12/06 13:39:49 | ||
7278 | [authfd.c authfile.c key.c key.h myproposal.h pathnames.h readconf.c] | ||
7279 | [servconf.c ssh-agent.c ssh-keygen.c ssh-keyscan.1 ssh-keyscan.c] | ||
7280 | [ssh-keysign.c ssh.c ssh_config.5 sshd.8 sshd.c verify.c ssh-ed25519.c] | ||
7281 | [sc25519.h sc25519.c hash.c ge25519_base.data ge25519.h ge25519.c] | ||
7282 | [fe25519.h fe25519.c ed25519.c crypto_api.h blocks.c] | ||
7283 | support ed25519 keys (hostkeys and user identities) using the public | ||
7284 | domain ed25519 reference code from SUPERCOP, see | ||
7285 | http://ed25519.cr.yp.to/software.html | ||
7286 | feedback, help & ok djm@ | ||
7287 | |||
7288 | commit bcd00abd8451f36142ae2ee10cc657202149201e | ||
7289 | Author: Damien Miller <djm@mindrot.org> | ||
7290 | Date: Sat Dec 7 10:41:55 2013 +1100 | ||
7291 | |||
7292 | - markus@cvs.openbsd.org 2013/12/06 13:34:54 | ||
7293 | [authfile.c authfile.h cipher.c cipher.h key.c packet.c ssh-agent.c] | ||
7294 | [ssh-keygen.c PROTOCOL.key] new private key format, bcrypt as KDF by | ||
7295 | default; details in PROTOCOL.key; feedback and lots help from djm; | ||
7296 | ok djm@ | ||
7297 | |||
7298 | commit f0e9060d236c0e38bec2fa1c6579fb0a2ea6458d | ||
7299 | Author: Damien Miller <djm@mindrot.org> | ||
7300 | Date: Sat Dec 7 10:40:26 2013 +1100 | ||
7301 | |||
7302 | - markus@cvs.openbsd.org 2013/12/06 13:30:08 | ||
7303 | [authfd.c key.c key.h ssh-agent.c] | ||
7304 | move private key (de)serialization to key.c; ok djm | ||
7305 | |||
7306 | commit 0f8536da23a6ef26e6495177c0d8a4242b710289 | ||
7307 | Author: Damien Miller <djm@mindrot.org> | ||
7308 | Date: Sat Dec 7 10:31:37 2013 +1100 | ||
7309 | |||
7310 | - djm@cvs.openbsd.org 2013/12/06 03:40:51 | ||
7311 | [ssh-keygen.c] | ||
7312 | remove duplicated character ('g') in getopt() string; | ||
7313 | document the (few) remaining option characters so we don't have to | ||
7314 | rummage next time. | ||
7315 | |||
7316 | commit 393920745fd328d3fe07f739a3cf7e1e6db45b60 | ||
7317 | Author: Damien Miller <djm@mindrot.org> | ||
7318 | Date: Sat Dec 7 10:31:08 2013 +1100 | ||
7319 | |||
7320 | - djm@cvs.openbsd.org 2013/12/05 22:59:45 | ||
7321 | [sftp-client.c] | ||
7322 | fix memory leak in error path in do_readdir(); pointed out by | ||
7323 | Loganaden Velvindron @ AfriNIC in bz#2163 | ||
7324 | |||
7325 | commit 534b2ccadea5e5e9a8b27226e6faac3ed5552e97 | ||
7326 | Author: Damien Miller <djm@mindrot.org> | ||
7327 | Date: Thu Dec 5 14:07:27 2013 +1100 | ||
7328 | |||
7329 | - djm@cvs.openbsd.org 2013/12/05 01:16:41 | ||
7330 | [servconf.c servconf.h] | ||
7331 | bz#2161 - fix AuthorizedKeysCommand inside a Match block and | ||
7332 | rearrange things so the same error is harder to make next time; | ||
7333 | with and ok dtucker@ | ||
7334 | |||
7335 | commit 8369c8e61a3408ec6bb75755fad4ffce29b5fdbe | ||
7336 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7337 | Date: Thu Dec 5 11:00:16 2013 +1100 | ||
7338 | |||
7339 | - (dtucker) [configure.ac] bz#2173: use pkg-config --libs to include correct | ||
7340 | -L location for libedit. Patch from Serge van den Boom. | ||
7341 | |||
7342 | commit 9275df3e0a2a3bc3897f7d664ea86a425c8a092d | ||
7343 | Author: Damien Miller <djm@mindrot.org> | ||
7344 | Date: Thu Dec 5 10:26:32 2013 +1100 | ||
7345 | |||
7346 | - djm@cvs.openbsd.org 2013/12/04 04:20:01 | ||
7347 | [sftp-client.c] | ||
7348 | bz#2171: don't leak local_fd on error; from Loganaden Velvindron @ | ||
7349 | AfriNIC | ||
7350 | |||
7351 | commit 960f6a2b5254e4da082d8aa3700302ed12dc769a | ||
7352 | Author: Damien Miller <djm@mindrot.org> | ||
7353 | Date: Thu Dec 5 10:26:14 2013 +1100 | ||
7354 | |||
7355 | - djm@cvs.openbsd.org 2013/12/02 03:13:14 | ||
7356 | [cipher.c] | ||
7357 | correct bzero of chacha20+poly1305 key context. bz#2177 from | ||
7358 | Loganaden Velvindron @ AfriNIC | ||
7359 | |||
7360 | Also make it a memset for consistency with the rest of cipher.c | ||
7361 | |||
7362 | commit f7e8a8796d661c9d6692ab837e1effd4f5ada1c2 | ||
7363 | Author: Damien Miller <djm@mindrot.org> | ||
7364 | Date: Thu Dec 5 10:25:51 2013 +1100 | ||
7365 | |||
7366 | - djm@cvs.openbsd.org 2013/12/02 03:09:22 | ||
7367 | [key.c] | ||
7368 | make key_to_blob() return a NULL blob on failure; part of | ||
7369 | bz#2175 from Loganaden Velvindron @ AfriNIC | ||
7370 | |||
7371 | commit f1e44ea9d9a6d4c1a95a0024132e603bd1778c9c | ||
7372 | Author: Damien Miller <djm@mindrot.org> | ||
7373 | Date: Thu Dec 5 10:23:21 2013 +1100 | ||
7374 | |||
7375 | - djm@cvs.openbsd.org 2013/12/02 02:56:17 | ||
7376 | [ssh-pkcs11-helper.c] | ||
7377 | use-after-free; bz#2175 patch from Loganaden Velvindron @ AfriNIC | ||
7378 | |||
7379 | commit 114e540b15d57618f9ebf624264298f80bbd8c77 | ||
7380 | Author: Damien Miller <djm@mindrot.org> | ||
7381 | Date: Thu Dec 5 10:22:57 2013 +1100 | ||
7382 | |||
7383 | - djm@cvs.openbsd.org 2013/12/02 02:50:27 | ||
7384 | [PROTOCOL.chacha20poly1305] | ||
7385 | typo; from Jon Cave | ||
7386 | |||
7387 | commit e4870c090629e32f2cb649dc16d575eeb693f4a8 | ||
7388 | Author: Damien Miller <djm@mindrot.org> | ||
7389 | Date: Thu Dec 5 10:22:39 2013 +1100 | ||
7390 | |||
7391 | - djm@cvs.openbsd.org 2013/12/01 23:19:05 | ||
7392 | [PROTOCOL] | ||
7393 | mention curve25519-sha256@libssh.org key exchange algorithm | ||
7394 | |||
7395 | commit 1d2f8804a6d33a4e908b876b2e1266b8260ec76b | ||
7396 | Author: Damien Miller <djm@mindrot.org> | ||
7397 | Date: Thu Dec 5 10:22:03 2013 +1100 | ||
7398 | |||
7399 | - deraadt@cvs.openbsd.org 2013/11/26 19:15:09 | ||
7400 | [pkcs11.h] | ||
7401 | cleanup 1 << 31 idioms. Resurrection of this issue pointed out by | ||
7402 | Eitan Adler ok markus for ssh, implies same change in kerberosV | ||
7403 | |||
7404 | commit bdb352a54f82df94a548e3874b22f2d6ae90328d | ||
7405 | Author: Damien Miller <djm@mindrot.org> | ||
7406 | Date: Thu Dec 5 10:20:52 2013 +1100 | ||
7407 | |||
7408 | - jmc@cvs.openbsd.org 2013/11/26 12:14:54 | ||
7409 | [ssh.1 ssh.c] | ||
7410 | - put -Q in the right place | ||
7411 | - Ar was a poor choice for the arguments to -Q. i've chosen an | ||
7412 | admittedly equally poor Cm, at least consistent with the rest | ||
7413 | of the docs. also no need for multiple instances | ||
7414 | - zap a now redundant Nm | ||
7415 | - usage() sync | ||
7416 | |||
7417 | commit d937dc084a087090f1cf5395822c3ac958d33759 | ||
7418 | Author: Damien Miller <djm@mindrot.org> | ||
7419 | Date: Thu Dec 5 10:19:54 2013 +1100 | ||
7420 | |||
7421 | - deraadt@cvs.openbsd.org 2013/11/25 18:04:21 | ||
7422 | [ssh.1 ssh.c] | ||
7423 | improve -Q usage and such. One usage change is that the option is now | ||
7424 | case-sensitive | ||
7425 | ok dtucker markus djm | ||
7426 | |||
7427 | commit dec0393f7ee8aabc7d9d0fc2c5fddb4bc649112e | ||
7428 | Author: Damien Miller <djm@mindrot.org> | ||
7429 | Date: Thu Dec 5 10:18:43 2013 +1100 | ||
7430 | |||
7431 | - jmc@cvs.openbsd.org 2013/11/21 08:05:09 | ||
7432 | [ssh_config.5 sshd_config.5] | ||
7433 | no need for .Pp before displays; | ||
7434 | |||
7435 | commit 8a073cf57940aabf85e49799f89f5d5e9b072c1b | ||
7436 | Author: Damien Miller <djm@mindrot.org> | ||
7437 | Date: Thu Nov 21 14:26:18 2013 +1100 | ||
7438 | |||
7439 | - djm@cvs.openbsd.org 2013/11/21 03:18:51 | ||
7440 | [regress/cipher-speed.sh regress/integrity.sh regress/rekey.sh] | ||
7441 | [regress/try-ciphers.sh] | ||
7442 | use new "ssh -Q cipher-auth" query to obtain lists of authenticated | ||
7443 | encryption ciphers instead of specifying them manually; ensures that | ||
7444 | the new chacha20poly1305@openssh.com mode is tested; | ||
7445 | |||
7446 | ok markus@ and naddy@ as part of the diff to add | ||
7447 | chacha20poly1305@openssh.com | ||
7448 | |||
7449 | commit ea61b2179f63d48968dd2c9617621002bb658bfe | ||
7450 | Author: Damien Miller <djm@mindrot.org> | ||
7451 | Date: Thu Nov 21 14:25:15 2013 +1100 | ||
7452 | |||
7453 | - djm@cvs.openbsd.org 2013/11/21 03:16:47 | ||
7454 | [regress/modpipe.c] | ||
7455 | use unsigned long long instead of u_int64_t here to avoid warnings | ||
7456 | on some systems portable OpenSSH is built on. | ||
7457 | |||
7458 | commit 36aba25b0409d2db6afc84d54bc47a2532d38424 | ||
7459 | Author: Damien Miller <djm@mindrot.org> | ||
7460 | Date: Thu Nov 21 14:24:42 2013 +1100 | ||
7461 | |||
7462 | - djm@cvs.openbsd.org 2013/11/21 03:15:46 | ||
7463 | [regress/krl.sh] | ||
7464 | add some reminders for additional tests that I'd like to implement | ||
7465 | |||
7466 | commit fa7a20bc289f09b334808d988746bc260a2f60c9 | ||
7467 | Author: Damien Miller <djm@mindrot.org> | ||
7468 | Date: Thu Nov 21 14:24:08 2013 +1100 | ||
7469 | |||
7470 | - naddy@cvs.openbsd.org 2013/11/18 05:09:32 | ||
7471 | [regress/forward-control.sh] | ||
7472 | bump timeout to 10 seconds to allow slow machines (e.g. Alpha PC164) | ||
7473 | to successfully run this; ok djm@ | ||
7474 | (ID sync only; our timeouts are already longer) | ||
7475 | |||
7476 | commit 0fde8acdad78a4d20cadae974376cc0165f645ee | ||
7477 | Author: Damien Miller <djm@mindrot.org> | ||
7478 | Date: Thu Nov 21 14:12:23 2013 +1100 | ||
7479 | |||
7480 | - djm@cvs.openbsd.org 2013/11/21 00:45:44 | ||
7481 | [Makefile.in PROTOCOL PROTOCOL.chacha20poly1305 authfile.c chacha.c] | ||
7482 | [chacha.h cipher-chachapoly.c cipher-chachapoly.h cipher.c cipher.h] | ||
7483 | [dh.c myproposal.h packet.c poly1305.c poly1305.h servconf.c ssh.1] | ||
7484 | [ssh.c ssh_config.5 sshd_config.5] Add a new protocol 2 transport | ||
7485 | cipher "chacha20-poly1305@openssh.com" that combines Daniel | ||
7486 | Bernstein's ChaCha20 stream cipher and Poly1305 MAC to build an | ||
7487 | authenticated encryption mode. | ||
7488 | |||
7489 | Inspired by and similar to Adam Langley's proposal for TLS: | ||
7490 | http://tools.ietf.org/html/draft-agl-tls-chacha20poly1305-03 | ||
7491 | but differs in layout used for the MAC calculation and the use of a | ||
7492 | second ChaCha20 instance to separately encrypt packet lengths. | ||
7493 | Details are in the PROTOCOL.chacha20poly1305 file. | ||
7494 | |||
7495 | Feedback markus@, naddy@; manpage bits Loganden Velvindron @ AfriNIC | ||
7496 | ok markus@ naddy@ | ||
7497 | |||
7498 | commit fdb2306acdc3eb2bc46b6dfdaaf6005c650af22a | ||
7499 | Author: Damien Miller <djm@mindrot.org> | ||
7500 | Date: Thu Nov 21 13:57:15 2013 +1100 | ||
7501 | |||
7502 | - deraadt@cvs.openbsd.org 2013/11/20 20:54:10 | ||
7503 | [canohost.c clientloop.c match.c readconf.c sftp.c] | ||
7504 | unsigned casts for ctype macros where neccessary | ||
7505 | ok guenther millert markus | ||
7506 | |||
7507 | commit e00167307e4d3692695441e9bd712f25950cb894 | ||
7508 | Author: Damien Miller <djm@mindrot.org> | ||
7509 | Date: Thu Nov 21 13:56:49 2013 +1100 | ||
7510 | |||
7511 | - deraadt@cvs.openbsd.org 2013/11/20 20:53:10 | ||
7512 | [scp.c] | ||
7513 | unsigned casts for ctype macros where neccessary | ||
7514 | ok guenther millert markus | ||
7515 | |||
7516 | commit 23e00aa6ba9eee0e0c218f2026bf405ad4625832 | ||
7517 | Author: Damien Miller <djm@mindrot.org> | ||
7518 | Date: Thu Nov 21 13:56:28 2013 +1100 | ||
7519 | |||
7520 | - djm@cvs.openbsd.org 2013/11/20 02:19:01 | ||
7521 | [sshd.c] | ||
7522 | delay closure of in/out fds until after "Bad protocol version | ||
7523 | identification..." message, as get_remote_ipaddr/get_remote_port | ||
7524 | require them open. | ||
7525 | |||
7526 | commit 867e6934be6521f87f04a5ab86702e2d1b314245 | ||
7527 | Author: Damien Miller <djm@mindrot.org> | ||
7528 | Date: Thu Nov 21 13:56:06 2013 +1100 | ||
7529 | |||
7530 | - markus@cvs.openbsd.org 2013/11/13 13:48:20 | ||
7531 | [ssh-pkcs11.c] | ||
7532 | add missing braces found by pedro | ||
7533 | |||
7534 | commit 0600c7020f4fe68a780bd7cf21ff541a8d4b568a | ||
7535 | Author: Damien Miller <djm@mindrot.org> | ||
7536 | Date: Thu Nov 21 13:55:43 2013 +1100 | ||
7537 | |||
7538 | - dtucker@cvs.openbsd.org 2013/11/08 11:15:19 | ||
7539 | [bufaux.c bufbn.c buffer.c sftp-client.c sftp-common.c sftp-glob.c] | ||
7540 | [uidswap.c] Include stdlib.h for free() as per the man page. | ||
7541 | |||
7542 | commit b6a75b0b93b8faa6f79c3a395ab6c71f3f880b80 | ||
7543 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7544 | Date: Sun Nov 10 20:25:22 2013 +1100 | ||
7545 | |||
7546 | - (dtucker) [regress/keytype.sh] Populate ECDSA key types to be tested by | ||
7547 | querying the ones that are compiled in. | ||
7548 | |||
7549 | commit 2c89430119367eb1bc96ea5ee55de83357e4c926 | ||
7550 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7551 | Date: Sun Nov 10 12:38:42 2013 +1100 | ||
7552 | |||
7553 | - (dtucker) [key.c] Check for the correct defines for NID_secp521r1. | ||
7554 | |||
7555 | commit dd5264db5f641dbd03186f9e5e83e4b14b3d0003 | ||
7556 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7557 | Date: Sat Nov 9 22:32:51 2013 +1100 | ||
7558 | |||
7559 | - (dtucker) [configure.ac] Add missing "test". | ||
7560 | |||
7561 | commit 95cb2d4eb08117be061f3ff076adef3e9a5372c3 | ||
7562 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7563 | Date: Sat Nov 9 22:02:31 2013 +1100 | ||
7564 | |||
7565 | - (dtucker) [configure.ac] Fix brackets in NID_secp521r1 test. | ||
7566 | |||
7567 | commit 37bcef51b3d9d496caecea6394814d2f49a1357f | ||
7568 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7569 | Date: Sat Nov 9 18:39:25 2013 +1100 | ||
7570 | |||
7571 | - (dtucker) [configure.ac kex.c key.c myproposal.h] Test for the presence of | ||
7572 | NID_X9_62_prime256v1, NID_secp384r1 and NID_secp521r1 and test that the | ||
7573 | latter actually works before using it. Fedora (at least) has NID_secp521r1 | ||
7574 | that doesn't work (see https://bugzilla.redhat.com/show_bug.cgi?id=1021897). | ||
7575 | |||
7576 | commit 6e2fe81f926d995bae4be4a6b5b3c88c1c525187 | ||
7577 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7578 | Date: Sat Nov 9 16:55:03 2013 +1100 | ||
7579 | |||
7580 | - dtucker@cvs.openbsd.org 2013/11/09 05:41:34 | ||
7581 | [regress/test-exec.sh regress/rekey.sh] | ||
7582 | Use smaller test data files to speed up tests. Grow test datafiles | ||
7583 | where necessary for a specific test. | ||
7584 | |||
7585 | commit aff7ef1bb8b7c1eeb1f4812129091c5adbf51848 | ||
7586 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7587 | Date: Sat Nov 9 00:19:22 2013 +1100 | ||
7588 | |||
7589 | - (dtucker) [contrib/cygwin/ssh-host-config] Simplify host key generation: | ||
7590 | rather than testing and generating each key, call ssh-keygen -A. | ||
7591 | Patch from vinschen at redhat.com. | ||
7592 | |||
7593 | commit 882abfd3fb3c98cfe70b4fc79224770468b570a5 | ||
7594 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7595 | Date: Sat Nov 9 00:17:41 2013 +1100 | ||
7596 | |||
7597 | - (dtucker) [Makefile.in configure.ac] Set MALLOC_OPTIONS per platform | ||
7598 | and pass in TEST_ENV. Unknown options cause stderr to get polluted | ||
7599 | and the stderr-data test to fail. | ||
7600 | |||
7601 | commit 8c333ec23bdf7da917aa20ac6803a2cdd79182c5 | ||
7602 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7603 | Date: Fri Nov 8 21:12:58 2013 +1100 | ||
7604 | |||
7605 | - (dtucker) [openbsd-compat/bsd-poll.c] Add headers to prevent compile | ||
7606 | warnings. | ||
7607 | |||
7608 | commit d94240b2f6b376b6e9de187e4a0cd4b89dfc48cb | ||
7609 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7610 | Date: Fri Nov 8 21:10:04 2013 +1100 | ||
7611 | |||
7612 | - (dtucker) [myproposal.h] Conditionally enable CURVE25519_SHA256. | ||
7613 | |||
7614 | commit 1c8ce34909886288a3932dce770deec5449f7bb5 | ||
7615 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7616 | Date: Fri Nov 8 19:50:32 2013 +1100 | ||
7617 | |||
7618 | - (dtucker) [kex.c] Only enable CURVE25519_SHA256 if we actually have | ||
7619 | EVP_sha256. | ||
7620 | |||
7621 | commit ccdb9bec46bcc88549b26a94aa0bae2b9f51031c | ||
7622 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7623 | Date: Fri Nov 8 18:54:38 2013 +1100 | ||
7624 | |||
7625 | - (dtucker) [openbsd-compat/openbsd-compat.h] Add null implementation of | ||
7626 | arc4random_stir for platforms that have arc4random but don't have | ||
7627 | arc4random_stir (right now this is only OpenBSD -current). | ||
7628 | |||
7629 | commit 3420a50169b52cc8d2775d51316f9f866c73398f | ||
7630 | Author: Damien Miller <djm@mindrot.org> | ||
7631 | Date: Fri Nov 8 16:48:13 2013 +1100 | ||
7632 | |||
7633 | - (djm) [README contrib/caldera/openssh.spec contrib/redhat/openssh.spec] | ||
7634 | [contrib/suse/openssh.spec] Update version numbers following release. | ||
7635 | |||
7636 | commit 3ac4a234df842fd8c94d9cb0ad198e1fe84b895b | ||
7637 | Author: Damien Miller <djm@mindrot.org> | ||
7638 | Date: Fri Nov 8 12:39:49 2013 +1100 | ||
7639 | |||
7640 | - djm@cvs.openbsd.org 2013/11/08 01:38:11 | ||
7641 | [version.h] | ||
7642 | openssh-6.4 | ||
7643 | |||
7644 | commit 6c81fee693038de7d4a5559043350391db2a2761 | ||
7645 | Author: Damien Miller <djm@mindrot.org> | ||
7646 | Date: Fri Nov 8 12:19:55 2013 +1100 | ||
7647 | |||
7648 | - djm@cvs.openbsd.org 2013/11/08 00:39:15 | ||
7649 | [auth-options.c auth2-chall.c authfd.c channels.c cipher-3des1.c] | ||
7650 | [clientloop.c gss-genr.c monitor_mm.c packet.c schnorr.c umac.c] | ||
7651 | [sftp-client.c sftp-glob.c] | ||
7652 | use calloc for all structure allocations; from markus@ | ||
7653 | |||
7654 | commit 690d989008e18af3603a5e03f1276c9bad090370 | ||
7655 | Author: Damien Miller <djm@mindrot.org> | ||
7656 | Date: Fri Nov 8 12:16:49 2013 +1100 | ||
7657 | |||
7658 | - dtucker@cvs.openbsd.org 2013/11/07 11:58:27 | ||
7659 | [cipher.c cipher.h kex.c kex.h mac.c mac.h servconf.c ssh.c] | ||
7660 | Output the effective values of Ciphers, MACs and KexAlgorithms when | ||
7661 | the default has not been overridden. ok markus@ | ||
7662 | |||
7663 | commit 08998c5fb9c7c1d248caa73b76e02ca0482e6d85 | ||
7664 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7665 | Date: Fri Nov 8 12:11:46 2013 +1100 | ||
7666 | |||
7667 | - dtucker@cvs.openbsd.org 2013/11/08 01:06:14 | ||
7668 | [regress/rekey.sh] | ||
7669 | Rekey less frequently during tests to speed them up | ||
7670 | |||
7671 | commit 4bf7e50e533aa956366df7402c132f202e841a48 | ||
7672 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7673 | Date: Thu Nov 7 22:33:48 2013 +1100 | ||
7674 | |||
7675 | - (dtucker) [Makefile.in configure.ac] Remove TEST_SSH_SHA256 environment | ||
7676 | variable. It's no longer used now that we get the supported MACs from | ||
7677 | ssh -Q. | ||
7678 | |||
7679 | commit 6e9d6f411288374d1dee4b7debbfa90bc7e73035 | ||
7680 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7681 | Date: Thu Nov 7 15:32:37 2013 +1100 | ||
7682 | |||
7683 | - dtucker@cvs.openbsd.org 2013/11/07 04:26:56 | ||
7684 | [regress/kextype.sh] | ||
7685 | trailing space | ||
7686 | |||
7687 | commit 74cbc22529f3e5de756e1b7677b7624efb28f62c | ||
7688 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7689 | Date: Thu Nov 7 15:26:12 2013 +1100 | ||
7690 | |||
7691 | - dtucker@cvs.openbsd.org 2013/11/07 03:55:41 | ||
7692 | [regress/kextype.sh] | ||
7693 | Use ssh -Q to get kex types instead of a static list. | ||
7694 | |||
7695 | commit a955041c930e63405159ff7d25ef14272f36eab3 | ||
7696 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7697 | Date: Thu Nov 7 15:21:19 2013 +1100 | ||
7698 | |||
7699 | - dtucker@cvs.openbsd.org 2013/11/07 02:48:38 | ||
7700 | [regress/integrity.sh regress/cipher-speed.sh regress/try-ciphers.sh] | ||
7701 | Use ssh -Q instead of hardcoding lists of ciphers or MACs. | ||
7702 | |||
7703 | commit 06595d639577577bc15d359e037a31eb83563269 | ||
7704 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7705 | Date: Thu Nov 7 15:08:02 2013 +1100 | ||
7706 | |||
7707 | - dtucker@cvs.openbsd.org 2013/11/07 01:12:51 | ||
7708 | [regress/rekey.sh] | ||
7709 | Factor out the data transfer rekey tests | ||
7710 | |||
7711 | commit 651dc8b2592202dac6b16ee3b82ce5b331be7da3 | ||
7712 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7713 | Date: Thu Nov 7 15:04:44 2013 +1100 | ||
7714 | |||
7715 | - dtucker@cvs.openbsd.org 2013/11/07 00:12:05 | ||
7716 | [regress/rekey.sh] | ||
7717 | Test rekeying for every Cipher, MAC and KEX, plus test every KEX with | ||
7718 | the GCM ciphers. | ||
7719 | |||
7720 | commit 234557762ba1096a867ca6ebdec07efebddb5153 | ||
7721 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7722 | Date: Thu Nov 7 15:00:51 2013 +1100 | ||
7723 | |||
7724 | - dtucker@cvs.openbsd.org 2013/11/04 12:27:42 | ||
7725 | [regress/rekey.sh] | ||
7726 | Test rekeying with all KexAlgorithms. | ||
7727 | |||
7728 | commit bbfb9b0f386aab0c3e19d11f136199ef1b9ad0ef | ||
7729 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7730 | Date: Thu Nov 7 14:56:43 2013 +1100 | ||
7731 | |||
7732 | - markus@cvs.openbsd.org 2013/11/02 22:39:53 | ||
7733 | [regress/kextype.sh] | ||
7734 | add curve25519-sha256@libssh.org | ||
7735 | |||
7736 | commit aa19548a98c0f89283ebd7354abd746ca6bc4fdf | ||
7737 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7738 | Date: Thu Nov 7 14:50:09 2013 +1100 | ||
7739 | |||
7740 | - djm@cvs.openbsd.org 2013/10/09 23:44:14 | ||
7741 | [regress/Makefile] (ID sync only) | ||
7742 | regression test for sftp request white/blacklisting and readonly mode. | ||
7743 | |||
7744 | commit c8908aabff252f5da772d4e679479c2b7d18cac1 | ||
7745 | Author: Damien Miller <djm@mindrot.org> | ||
7746 | Date: Thu Nov 7 13:38:35 2013 +1100 | ||
7747 | |||
7748 | - djm@cvs.openbsd.org 2013/11/06 23:05:59 | ||
7749 | [ssh-pkcs11.c] | ||
7750 | from portable: s/true/true_val/ to avoid name collisions on dump platforms | ||
7751 | RCSID sync only | ||
7752 | |||
7753 | commit 49c145c5e89b9d7d48e84328d6347d5ad640b567 | ||
7754 | Author: Damien Miller <djm@mindrot.org> | ||
7755 | Date: Thu Nov 7 13:35:39 2013 +1100 | ||
7756 | |||
7757 | - markus@cvs.openbsd.org 2013/11/06 16:52:11 | ||
7758 | [monitor_wrap.c] | ||
7759 | fix rekeying for AES-GCM modes; ok deraadt | ||
7760 | |||
7761 | commit 67a8800f290b39fd60e379988c700656ae3f2539 | ||
7762 | Author: Damien Miller <djm@mindrot.org> | ||
7763 | Date: Thu Nov 7 13:32:51 2013 +1100 | ||
7764 | |||
7765 | - markus@cvs.openbsd.org 2013/11/04 11:51:16 | ||
7766 | [monitor.c] | ||
7767 | fix rekeying for KEX_C25519_SHA256; noted by dtucker@ | ||
7768 | RCSID sync only; I thought this was a merge botch and fixed it already | ||
7769 | |||
7770 | commit df8b030b15fcec7baf38ec7944f309f9ca8cc9a7 | ||
7771 | Author: Damien Miller <djm@mindrot.org> | ||
7772 | Date: Thu Nov 7 13:28:16 2013 +1100 | ||
7773 | |||
7774 | - (djm) [configure.ac defines.h] Skip arc4random_stir() calls on platforms | ||
7775 | that lack it but have arc4random_uniform() | ||
7776 | |||
7777 | commit a6fd1d3c38a562709374a70fa76423859160aa90 | ||
7778 | Author: Damien Miller <djm@mindrot.org> | ||
7779 | Date: Thu Nov 7 12:03:26 2013 +1100 | ||
7780 | |||
7781 | - (djm) [regress/modpipe.c regress/rekey.sh] Never intended to commit these | ||
7782 | |||
7783 | commit c98319750b0bbdd0d1794420ec97d65dd9244613 | ||
7784 | Author: Damien Miller <djm@mindrot.org> | ||
7785 | Date: Thu Nov 7 12:00:23 2013 +1100 | ||
7786 | |||
7787 | - (djm) [Makefile.in monitor.c] Missed chunks of curve25519 KEX diff | ||
7788 | |||
7789 | commit 61c5c2319e84a58210810d39b062c8b8e3321160 | ||
7790 | Author: Damien Miller <djm@mindrot.org> | ||
7791 | Date: Thu Nov 7 11:34:14 2013 +1100 | ||
7792 | |||
7793 | - (djm) [ssh-pkcs11.c] Bring back "non-constant initialiser" fix (rev 1.5) | ||
7794 | that got lost in recent merge. | ||
7795 | |||
7796 | commit 094003f5454a9f5a607674b2739824a7e91835f4 | ||
7797 | Author: Damien Miller <djm@mindrot.org> | ||
7798 | Date: Mon Nov 4 22:59:27 2013 +1100 | ||
7799 | |||
7800 | - (djm) [kexc25519.c kexc25519c.c kexc25519s.c] Import missed files from | ||
7801 | KEX/curve25519 change | ||
7802 | |||
7803 | commit ca67a7eaf8766499ba67801d0be8cdaa550b9a50 | ||
7804 | Author: Damien Miller <djm@mindrot.org> | ||
7805 | Date: Mon Nov 4 09:05:17 2013 +1100 | ||
7806 | |||
7807 | - djm@cvs.openbsd.org 2013/11/03 10:37:19 | ||
7808 | [roaming_common.c] | ||
7809 | fix a couple of function definitions foo() -> foo(void) | ||
7810 | (-Wold-style-definition) | ||
7811 | |||
7812 | commit 0bd8f1519d51af8d4229be81e8f2f4903a1d440b | ||
7813 | Author: Damien Miller <djm@mindrot.org> | ||
7814 | Date: Mon Nov 4 08:55:43 2013 +1100 | ||
7815 | |||
7816 | - markus@cvs.openbsd.org 2013/11/02 22:39:19 | ||
7817 | [ssh_config.5 sshd_config.5] | ||
7818 | the default kex is now curve25519-sha256@libssh.org | ||
7819 | |||
7820 | commit 4c3ba0767fbe4a8a2a748df4035aaf86651f6b30 | ||
7821 | Author: Damien Miller <djm@mindrot.org> | ||
7822 | Date: Mon Nov 4 08:40:13 2013 +1100 | ||
7823 | |||
7824 | - markus@cvs.openbsd.org 2013/11/02 22:34:01 | ||
7825 | [auth-options.c] | ||
7826 | no need to include monitor_wrap.h and ssh-gss.h | ||
7827 | |||
7828 | commit 660621b2106b987b874c2f120218bec249d0f6ba | ||
7829 | Author: Damien Miller <djm@mindrot.org> | ||
7830 | Date: Mon Nov 4 08:37:51 2013 +1100 | ||
7831 | |||
7832 | - markus@cvs.openbsd.org 2013/11/02 22:24:24 | ||
7833 | [kexdhs.c kexecdhs.c] | ||
7834 | no need to include ssh-gss.h | ||
7835 | |||
7836 | commit abdca986decfbbc008c895195b85e879ed460ada | ||
7837 | Author: Damien Miller <djm@mindrot.org> | ||
7838 | Date: Mon Nov 4 08:30:05 2013 +1100 | ||
7839 | |||
7840 | - markus@cvs.openbsd.org 2013/11/02 22:10:15 | ||
7841 | [kexdhs.c kexecdhs.c] | ||
7842 | no need to include monitor_wrap.h | ||
7843 | |||
7844 | commit 1e1242604eb0fd510fe93f81245c529237ffc513 | ||
7845 | Author: Damien Miller <djm@mindrot.org> | ||
7846 | Date: Mon Nov 4 08:26:52 2013 +1100 | ||
7847 | |||
7848 | - markus@cvs.openbsd.org 2013/11/02 21:59:15 | ||
7849 | [kex.c kex.h myproposal.h ssh-keyscan.c sshconnect2.c sshd.c] | ||
7850 | use curve25519 for default key exchange (curve25519-sha256@libssh.org); | ||
7851 | initial patch from Aris Adamantiadis; ok djm@ | ||
7852 | |||
7853 | commit d2252c79191d069372ed6effce7c7a2de93448cd | ||
7854 | Author: Damien Miller <djm@mindrot.org> | ||
7855 | Date: Mon Nov 4 07:41:48 2013 +1100 | ||
7856 | |||
7857 | - markus@cvs.openbsd.org 2013/11/02 20:03:54 | ||
7858 | [ssh-pkcs11.c] | ||
7859 | support pkcs#11 tokes that only provide x509 zerts instead of raw pubkeys; | ||
7860 | fixes bz#1908; based on patch from Laurent Barbe; ok djm | ||
7861 | |||
7862 | commit 007e3b357e880caa974d5adf9669298ba0751c78 | ||
7863 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7864 | Date: Sun Nov 3 18:43:55 2013 +1100 | ||
7865 | |||
7866 | - (dtucker) [configure.ac defines.h] Add typedefs for intmax_t and uintmax_t | ||
7867 | for platforms that don't have them. | ||
7868 | |||
7869 | commit 710f3747352fb93a63e5b69b12379da37f5b3fa9 | ||
7870 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7871 | Date: Sun Nov 3 17:20:34 2013 +1100 | ||
7872 | |||
7873 | - (dtucker) [openbsd-compat/setproctitle.c] Handle error case form the 2nd | ||
7874 | vsnprintf. From eric at openbsd via chl@. | ||
7875 | |||
7876 | commit d52770452308e5c2e99f4da6edaaa77ef078b610 | ||
7877 | Author: Darren Tucker <dtucker@zip.com.au> | ||
7878 | Date: Sun Nov 3 16:30:46 2013 +1100 | ||
7879 | |||
7880 | - (dtucker) [openbsd-compat/bsd-misc.c] Include time.h for nanosleep. | ||
7881 | From OpenSMTPD where it prevents "implicit declaration" warnings (it's | ||
7882 | a no-op in OpenSSH). From chl at openbsd. | ||
7883 | |||
7884 | commit 63857c9340d3482746a5622ffdacc756751f6448 | ||
7885 | Author: Damien Miller <djm@mindrot.org> | ||
7886 | Date: Wed Oct 30 22:31:06 2013 +1100 | ||
7887 | |||
7888 | - jmc@cvs.openbsd.org 2013/10/29 18:49:32 | ||
7889 | [sshd_config.5] | ||
7890 | pty(4), not pty(7); | ||
7891 | |||
7892 | commit 5ff30c6b68adeee767dd29bf2369763c6a13c0b3 | ||
7893 | Author: Damien Miller <djm@mindrot.org> | ||
7894 | Date: Wed Oct 30 22:21:50 2013 +1100 | ||
7895 | |||
7896 | - djm@cvs.openbsd.org 2013/10/29 09:48:02 | ||
7897 | [servconf.c servconf.h session.c sshd_config sshd_config.5] | ||
7898 | shd_config PermitTTY to disallow TTY allocation, mirroring the | ||
7899 | longstanding no-pty authorized_keys option; | ||
7900 | bz#2070, patch from Teran McKinney; ok markus@ | ||
7901 | |||
7902 | commit 4a3a9d4bbf8048473f5cc202cd8db7164d5e6b8d | ||
7903 | Author: Damien Miller <djm@mindrot.org> | ||
7904 | Date: Wed Oct 30 22:19:47 2013 +1100 | ||
7905 | |||
7906 | - djm@cvs.openbsd.org 2013/10/29 09:42:11 | ||
7907 | [key.c key.h] | ||
7908 | fix potential stack exhaustion caused by nested certificates; | ||
7909 | report by Mateusz Kocielski; ok dtucker@ markus@ | ||
7910 | |||
7911 | commit 28631ceaa7acd9bc500f924614431542893c6a21 | ||
7912 | Author: Damien Miller <djm@mindrot.org> | ||
7913 | Date: Sat Oct 26 10:07:56 2013 +1100 | ||
7914 | |||
7915 | - djm@cvs.openbsd.org 2013/10/25 23:04:51 | ||
7916 | [ssh.c] | ||
7917 | fix crash when using ProxyCommand caused by previous commit - was calling | ||
7918 | freeaddrinfo(NULL); spotted by sthen@ and Tim Ruehsen, patch by sthen@ | ||
7919 | |||
7920 | commit 26506ad29350c5681815745cc90b3952a84cf118 | ||
7921 | Author: Damien Miller <djm@mindrot.org> | ||
7922 | Date: Sat Oct 26 10:05:46 2013 +1100 | ||
7923 | |||
7924 | - (djm) [ssh-keygen.c ssh-keysign.c sshconnect1.c sshd.c] Remove | ||
7925 | unnecessary arc4random_stir() calls. The only ones left are to ensure | ||
7926 | that the PRNG gets a different state after fork() for platforms that | ||
7927 | have broken the API. | ||
7928 | |||
7929 | commit bd43e8872325e9bbb3319c89da593614709f317c | ||
7930 | Author: Tim Rice <tim@multitalents.net> | ||
7931 | Date: Thu Oct 24 12:22:49 2013 -0700 | ||
7932 | |||
7933 | - (tim) [regress/sftp-perm.sh] We need a shell that understands "! somecmd" | ||
7934 | |||
7935 | commit a90c0338083ee0e4064c4bdf61f497293a699be0 | ||
7936 | Author: Damien Miller <djm@mindrot.org> | ||
7937 | Date: Thu Oct 24 21:03:17 2013 +1100 | ||
7938 | |||
7939 | - djm@cvs.openbsd.org 2013/10/24 08:19:36 | ||
7940 | [ssh.c] | ||
7941 | fix bug introduced in hostname canonicalisation commit: don't try to | ||
7942 | resolve hostnames when a ProxyCommand is set unless the user has forced | ||
7943 | canonicalisation; spotted by Iain Morgan | ||
7944 | |||
7945 | commit cf31f3863425453ffcda540fbefa9df80088c8d1 | ||
7946 | Author: Damien Miller <djm@mindrot.org> | ||
7947 | Date: Thu Oct 24 21:02:56 2013 +1100 | ||
7948 | |||
7949 | - dtucker@cvs.openbsd.org 2013/10/24 00:51:48 | ||
7950 | [readconf.c servconf.c ssh_config.5 sshd_config.5] | ||
7951 | Disallow empty Match statements and add "Match all" which matches | ||
7952 | everything. ok djm, man page help jmc@ | ||
7953 | |||
7954 | commit 4bedd4032a09ce87322ae5ea80f193f109e5c607 | ||
7955 | Author: Damien Miller <djm@mindrot.org> | ||
7956 | Date: Thu Oct 24 21:02:26 2013 +1100 | ||
7957 | |||
7958 | - dtucker@cvs.openbsd.org 2013/10/24 00:49:49 | ||
7959 | [moduli.c] | ||
7960 | Periodically print progress and, if possible, expected time to completion | ||
7961 | when screening moduli for DH groups. ok deraadt djm | ||
7962 | |||
7963 | commit 5ecb41629860687b145be63b8877fabb6bae5eda | ||
7964 | Author: Damien Miller <djm@mindrot.org> | ||
7965 | Date: Thu Oct 24 21:02:02 2013 +1100 | ||
7966 | |||
7967 | - djm@cvs.openbsd.org 2013/10/23 23:35:32 | ||
7968 | [sshd.c] | ||
7969 | include local address and port in "Connection from ..." message (only | ||
7970 | shown at loglevel>=verbose) | ||
7971 | |||
7972 | commit 03bf2e61ad6ac59a362a1f11b105586cb755c147 | ||
7973 | Author: Damien Miller <djm@mindrot.org> | ||
7974 | Date: Thu Oct 24 21:01:26 2013 +1100 | ||
7975 | |||
7976 | - dtucker@cvs.openbsd.org 2013/10/23 05:40:58 | ||
7977 | [servconf.c] | ||
7978 | fix comment | ||
7979 | |||
7980 | commit 8f1873191478847773906af961c8984d02a49dd6 | ||
7981 | Author: Damien Miller <djm@mindrot.org> | ||
7982 | Date: Thu Oct 24 10:53:02 2013 +1100 | ||
7983 | |||
7984 | - (djm) [auth-krb5.c] bz#2032 - use local username in krb5_kuserok check | ||
7985 | rather than full client name which may be of form user@REALM; | ||
7986 | patch from Miguel Sanders; ok dtucker@ | ||
7987 | |||
7988 | commit 5b01b0dcb417eb615df77e7ce1b59319bf04342c | ||
7989 | Author: Damien Miller <djm@mindrot.org> | ||
7990 | Date: Wed Oct 23 16:31:31 2013 +1100 | ||
7991 | |||
7992 | - djm@cvs.openbsd.org 2013/10/23 04:16:22 | ||
7993 | [ssh-keygen.c] | ||
7994 | Make code match documentation: relative-specified certificate expiry time | ||
7995 | should be relative to current time and not the validity start time. | ||
7996 | Reported by Petr Lautrbach; ok deraadt@ | ||
7997 | |||
7998 | commit eff5cada589f25793dbe63a76aba9da39837a148 | ||
7999 | Author: Damien Miller <djm@mindrot.org> | ||
8000 | Date: Wed Oct 23 16:31:10 2013 +1100 | ||
8001 | |||
8002 | - djm@cvs.openbsd.org 2013/10/23 03:05:19 | ||
8003 | [readconf.c ssh.c] | ||
8004 | comment | ||
8005 | |||
8006 | commit 084bcd24e9fe874020e4df4e073e7408e1b17fb7 | ||
8007 | Author: Damien Miller <djm@mindrot.org> | ||
8008 | Date: Wed Oct 23 16:30:51 2013 +1100 | ||
8009 | |||
8010 | - djm@cvs.openbsd.org 2013/10/23 03:03:07 | ||
8011 | [readconf.c] | ||
8012 | Hostname may have %h sequences that should be expanded prior to Match | ||
8013 | evaluation; spotted by Iain Morgan | ||
8014 | |||
8015 | commit 8e5a67f46916def40b2758bb7755350dd2eee843 | ||
8016 | Author: Damien Miller <djm@mindrot.org> | ||
8017 | Date: Wed Oct 23 16:30:25 2013 +1100 | ||
8018 | |||
8019 | - jmc@cvs.openbsd.org 2013/10/20 18:00:13 | ||
8020 | [ssh_config.5] | ||
8021 | tweak the "exec" description, as worded by djm; | ||
8022 | |||
8023 | commit c0049bd0bca02890cd792babc594771c563f91f2 | ||
8024 | Author: Damien Miller <djm@mindrot.org> | ||
8025 | Date: Wed Oct 23 16:29:59 2013 +1100 | ||
8026 | |||
8027 | - djm@cvs.openbsd.org 2013/10/20 09:51:26 | ||
8028 | [scp.1 sftp.1] | ||
8029 | add canonicalisation options to -o lists | ||
8030 | |||
8031 | commit 8a04be795fc28514a09e55a54b2e67968f2e1b3a | ||
8032 | Author: Damien Miller <djm@mindrot.org> | ||
8033 | Date: Wed Oct 23 16:29:40 2013 +1100 | ||
8034 | |||
8035 | - djm@cvs.openbsd.org 2013/10/20 06:19:28 | ||
8036 | [readconf.c ssh_config.5] | ||
8037 | rename "command" subclause of the recently-added "Match" keyword to | ||
8038 | "exec"; it's shorter, clearer in intent and we might want to add the | ||
8039 | ability to match against the command being executed at the remote end in | ||
8040 | the future. | ||
8041 | |||
8042 | commit 5c86ebdf83b636b6741db4b03569ef4a53b89a58 | ||
8043 | Author: Damien Miller <djm@mindrot.org> | ||
8044 | Date: Wed Oct 23 16:29:12 2013 +1100 | ||
8045 | |||
8046 | - djm@cvs.openbsd.org 2013/10/20 04:39:28 | ||
8047 | [ssh_config.5] | ||
8048 | document % expansions performed by "Match command ..." | ||
8049 | |||
8050 | commit 4502f88774edc56194707167443f94026d3c7cfa | ||
8051 | Author: Damien Miller <djm@mindrot.org> | ||
8052 | Date: Fri Oct 18 10:17:36 2013 +1100 | ||
8053 | |||
8054 | - djm@cvs.openbsd.org 2013/10/17 22:08:04 | ||
8055 | [sshd.c] | ||
8056 | include remote port in bad banner message; bz#2162 | ||
8057 | |||
8058 | commit 1edcbf65ebd2febeaf10a836468f35e519eed7ca | ||
8059 | Author: Damien Miller <djm@mindrot.org> | ||
8060 | Date: Fri Oct 18 10:17:17 2013 +1100 | ||
8061 | |||
8062 | - jmc@cvs.openbsd.org 2013/10/17 07:35:48 | ||
8063 | [sftp.1 sftp.c] | ||
8064 | tweak previous; | ||
8065 | |||
8066 | commit a176e1823013dd8533a20235b3a5131f0626f46b | ||
8067 | Author: Damien Miller <djm@mindrot.org> | ||
8068 | Date: Fri Oct 18 09:05:41 2013 +1100 | ||
8069 | |||
8070 | - djm@cvs.openbsd.org 2013/10/09 23:44:14 | ||
8071 | [regress/Makefile regress/sftp-perm.sh] | ||
8072 | regression test for sftp request white/blacklisting and readonly mode. | ||
8073 | |||
8074 | commit e3ea09494dcfe7ba76536e95765c8328ecfc18fb | ||
8075 | Author: Damien Miller <djm@mindrot.org> | ||
8076 | Date: Thu Oct 17 11:57:23 2013 +1100 | ||
8077 | |||
8078 | - djm@cvs.openbsd.org 2013/10/17 00:46:49 | ||
8079 | [ssh.c] | ||
8080 | rearrange check to reduce diff against -portable | ||
8081 | (Id sync only) | ||
8082 | |||
8083 | commit f29238e67471a7f1088a99c3c3dbafce76b790cf | ||
8084 | Author: Damien Miller <djm@mindrot.org> | ||
8085 | Date: Thu Oct 17 11:48:52 2013 +1100 | ||
8086 | |||
8087 | - djm@cvs.openbsd.org 2013/10/17 00:30:13 | ||
8088 | [PROTOCOL sftp-client.c sftp-client.h sftp-server.c sftp.1 sftp.c] | ||
8089 | fsync@openssh.com protocol extension for sftp-server | ||
8090 | client support to allow calling fsync() faster successful transfer | ||
8091 | patch mostly by imorgan AT nas.nasa.gov; bz#1798 | ||
8092 | "fine" markus@ "grumble OK" deraadt@ "doesn't sound bad to me" millert@ | ||
8093 | |||
8094 | commit 51682faa599550a69d8120e5e2bdbdc0625ef4be | ||
8095 | Author: Damien Miller <djm@mindrot.org> | ||
8096 | Date: Thu Oct 17 11:48:31 2013 +1100 | ||
8097 | |||
8098 | - djm@cvs.openbsd.org 2013/10/16 22:58:01 | ||
8099 | [ssh.c ssh_config.5] | ||
8100 | one I missed in previous: s/isation/ization/ | ||
8101 | |||
8102 | commit 3850559be93f1a442ae9ed370e8c389889dd5f72 | ||
8103 | Author: Damien Miller <djm@mindrot.org> | ||
8104 | Date: Thu Oct 17 11:48:13 2013 +1100 | ||
8105 | |||
8106 | - djm@cvs.openbsd.org 2013/10/16 22:49:39 | ||
8107 | [readconf.c readconf.h ssh.1 ssh.c ssh_config.5] | ||
8108 | s/canonicalise/canonicalize/ for consistency with existing spelling, | ||
8109 | e.g. authorized_keys; pointed out by naddy@ | ||
8110 | |||
8111 | commit 607af3434b75acc7199a5d99d5a9c11068c01f27 | ||
8112 | Author: Damien Miller <djm@mindrot.org> | ||
8113 | Date: Thu Oct 17 11:47:51 2013 +1100 | ||
8114 | |||
8115 | - jmc@cvs.openbsd.org 2013/10/16 06:42:25 | ||
8116 | [ssh_config.5] | ||
8117 | tweak previous; | ||
8118 | |||
8119 | commit 0faf747e2f77f0f7083bcd59cbed30c4b5448444 | ||
8120 | Author: Damien Miller <djm@mindrot.org> | ||
8121 | Date: Thu Oct 17 11:47:23 2013 +1100 | ||
8122 | |||
8123 | - djm@cvs.openbsd.org 2013/10/16 02:31:47 | ||
8124 | [readconf.c readconf.h roaming_client.c ssh.1 ssh.c ssh_config.5] | ||
8125 | [sshconnect.c sshconnect.h] | ||
8126 | Implement client-side hostname canonicalisation to allow an explicit | ||
8127 | search path of domain suffixes to use to convert unqualified host names | ||
8128 | to fully-qualified ones for host key matching. | ||
8129 | This is particularly useful for host certificates, which would otherwise | ||
8130 | need to list unqualified names alongside fully-qualified ones (and this | ||
8131 | causes a number of problems). | ||
8132 | "looks fine" markus@ | ||
8133 | |||
8134 | commit d77b81f856e078714ec6b0f86f61c20249b7ead4 | ||
8135 | Author: Damien Miller <djm@mindrot.org> | ||
8136 | Date: Thu Oct 17 11:39:00 2013 +1100 | ||
8137 | |||
8138 | - jmc@cvs.openbsd.org 2013/10/15 14:10:25 | ||
8139 | [ssh.1 ssh_config.5] | ||
8140 | tweak previous; | ||
8141 | |||
8142 | commit dcd39f29ce3308dc74a0ff27a9056205a932ce05 | ||
8143 | Author: Damien Miller <djm@mindrot.org> | ||
8144 | Date: Thu Oct 17 11:31:40 2013 +1100 | ||
8145 | |||
8146 | - [ssh.c] g/c unused variable. | ||
8147 | |||
8148 | commit 5359a628ce3763408da25d83271a8eddec597a0c | ||
8149 | Author: Damien Miller <djm@mindrot.org> | ||
8150 | Date: Tue Oct 15 12:20:37 2013 +1100 | ||
8151 | |||
8152 | - [ssh.c] g/c unused variable. | ||
8153 | |||
8154 | commit 386feab0c4736b054585ee8ee372865d5cde8d69 | ||
8155 | Author: Damien Miller <djm@mindrot.org> | ||
8156 | Date: Tue Oct 15 12:14:49 2013 +1100 | ||
8157 | |||
8158 | - djm@cvs.openbsd.org 2013/10/14 23:31:01 | ||
8159 | [ssh.c] | ||
8160 | whitespace at EOL; pointed out by markus@ | ||
8161 | |||
8162 | commit e9fc72edd6c313b670558cd5219601c38a949b67 | ||
8163 | Author: Damien Miller <djm@mindrot.org> | ||
8164 | Date: Tue Oct 15 12:14:12 2013 +1100 | ||
8165 | |||
8166 | - djm@cvs.openbsd.org 2013/10/14 23:28:23 | ||
8167 | [canohost.c misc.c misc.h readconf.c sftp-server.c ssh.c] | ||
8168 | refactor client config code a little: | ||
8169 | add multistate option partsing to readconf.c, similar to servconf.c's | ||
8170 | existing code. | ||
8171 | move checking of options that accept "none" as an argument to readconf.c | ||
8172 | add a lowercase() function and use it instead of explicit tolower() in | ||
8173 | loops | ||
8174 | part of a larger diff that was ok markus@ | ||
8175 | |||
8176 | commit 194fd904d8597a274b93e075b2047afdf5a175d4 | ||
8177 | Author: Damien Miller <djm@mindrot.org> | ||
8178 | Date: Tue Oct 15 12:13:05 2013 +1100 | ||
8179 | |||
8180 | - djm@cvs.openbsd.org 2013/10/14 22:22:05 | ||
8181 | [readconf.c readconf.h ssh-keysign.c ssh.c ssh_config.5] | ||
8182 | add a "Match" keyword to ssh_config that allows matching on hostname, | ||
8183 | user and result of arbitrary commands. "nice work" markus@ | ||
8184 | |||
8185 | commit 71df752de2a04f423b1cd18d961a79f4fbccbcee | ||
8186 | Author: Damien Miller <djm@mindrot.org> | ||
8187 | Date: Tue Oct 15 12:12:02 2013 +1100 | ||
8188 | |||
8189 | - djm@cvs.openbsd.org 2013/10/14 21:20:52 | ||
8190 | [session.c session.h] | ||
8191 | Add logging of session starts in a useful format; ok markus@ feedback and | ||
8192 | ok dtucker@ | ||
8193 | |||
8194 | commit 6efab27109b82820e8d32a5d811adb7bfc354f65 | ||
8195 | Author: Damien Miller <djm@mindrot.org> | ||
8196 | Date: Tue Oct 15 12:07:05 2013 +1100 | ||
8197 | |||
8198 | - jmc@cvs.openbsd.org 2013/10/14 14:18:56 | ||
8199 | [sftp-server.8 sftp-server.c] | ||
8200 | tweak previous; | ||
8201 | ok djm | ||
8202 | |||
8203 | commit 61c7de8a94156f6d7e9718ded9be8c65bb902b66 | ||
8204 | Author: Damien Miller <djm@mindrot.org> | ||
8205 | Date: Tue Oct 15 12:06:45 2013 +1100 | ||
8206 | |||
8207 | - djm@cvs.openbsd.org 2013/10/11 02:53:45 | ||
8208 | [sftp-client.h] | ||
8209 | obsolete comment | ||
8210 | |||
8211 | commit 2f93d0556e4892208c9b072624caa8cc5ddd839d | ||
8212 | Author: Damien Miller <djm@mindrot.org> | ||
8213 | Date: Tue Oct 15 12:06:27 2013 +1100 | ||
8214 | |||
8215 | - djm@cvs.openbsd.org 2013/10/11 02:52:23 | ||
8216 | [sftp-client.c] | ||
8217 | missed one arg reorder | ||
8218 | |||
8219 | commit bda5c8445713ae592d969a5105ed1a65da22bc96 | ||
8220 | Author: Damien Miller <djm@mindrot.org> | ||
8221 | Date: Tue Oct 15 12:05:58 2013 +1100 | ||
8222 | |||
8223 | - djm@cvs.openbsd.org 2013/10/11 02:45:36 | ||
8224 | [sftp-client.c] | ||
8225 | rename flag arguments to be more clear and consistent. | ||
8226 | reorder some internal function arguments to make adding additional flags | ||
8227 | easier. | ||
8228 | no functional change | ||
8229 | |||
8230 | commit 61ee4d68ca0fcc793a826fc7ec70f3b8ffd12ab6 | ||
8231 | Author: Damien Miller <djm@mindrot.org> | ||
8232 | Date: Tue Oct 15 11:56:47 2013 +1100 | ||
8233 | |||
8234 | - djm@cvs.openbsd.org 2013/10/10 01:43:03 | ||
8235 | [sshd.c] | ||
8236 | bz#2139: fix re-exec fallback by ensuring that startup_pipe is correctly | ||
8237 | updated; ok dtucker@ | ||
8238 | |||
8239 | commit 73600e51af9ee734a19767e0c084bbbc5eb5b8da | ||
8240 | Author: Damien Miller <djm@mindrot.org> | ||
8241 | Date: Tue Oct 15 11:56:25 2013 +1100 | ||
8242 | |||
8243 | - djm@cvs.openbsd.org 2013/10/10 00:53:25 | ||
8244 | [sftp-server.c] | ||
8245 | add -Q, -P and -p to usage() before jmc@ catches me | ||
8246 | |||
8247 | commit 6eaeebf27d92f39a38c772aa3f20c2250af2dd29 | ||
8248 | Author: Damien Miller <djm@mindrot.org> | ||
8249 | Date: Tue Oct 15 11:55:57 2013 +1100 | ||
8250 | |||
8251 | - djm@cvs.openbsd.org 2013/10/09 23:42:17 | ||
8252 | [sftp-server.8 sftp-server.c] | ||
8253 | Add ability to whitelist and/or blacklist sftp protocol requests by name. | ||
8254 | Refactor dispatch loop and consolidate read-only mode checks. | ||
8255 | Make global variables static, since sftp-server is linked into sshd(8). | ||
8256 | ok dtucker@ | ||
8257 | |||
8258 | commit df62d71e64d29d1054e7a53d1a801075ef70335f | ||
8259 | Author: Darren Tucker <dtucker@zip.com.au> | ||
8260 | Date: Thu Oct 10 10:32:39 2013 +1100 | ||
8261 | |||
8262 | - dtucker@cvs.openbsd.org 2013/10/08 11:42:13 | ||
8263 | [dh.c dh.h] | ||
8264 | Increase the size of the Diffie-Hellman groups requested for a each | ||
8265 | symmetric key size. New values from NIST Special Publication 800-57 with | ||
8266 | the upper limit specified by RFC4419. Pointed out by Peter Backes, ok | ||
8267 | djm@. | ||
8268 | |||
8269 | commit e6e52f8c5dc89a6767702e65bb595aaf7bc8991c | ||
8270 | Author: Darren Tucker <dtucker@zip.com.au> | ||
8271 | Date: Thu Oct 10 10:28:07 2013 +1100 | ||
8272 | |||
8273 | - djm@cvs.openbsd.org 2013/09/19 01:26:29 | ||
8274 | [sshconnect.c] | ||
8275 | bz#1211: make BindAddress work with UsePrivilegedPort=yes; patch from | ||
8276 | swp AT swp.pp.ru; ok dtucker@ | ||
8277 | |||
8278 | commit 71152bc9911bc34a98810b2398dac20df3fe8de3 | ||
8279 | Author: Darren Tucker <dtucker@zip.com.au> | ||
8280 | Date: Thu Oct 10 10:27:21 2013 +1100 | ||
8281 | |||
8282 | - djm@cvs.openbsd.org 2013/09/19 01:24:46 | ||
8283 | [channels.c] | ||
8284 | bz#1297 - tell the client (via packet_send_debug) when their preferred | ||
8285 | listen address has been overridden by the server's GatewayPorts; | ||
8286 | ok dtucker@ | ||
8287 | |||
8288 | commit b59aaf3c4f3f449a4b86d8528668bd979be9aa5f | ||
8289 | Author: Darren Tucker <dtucker@zip.com.au> | ||
8290 | Date: Thu Oct 10 10:26:21 2013 +1100 | ||
8291 | |||
8292 | - djm@cvs.openbsd.org 2013/09/19 00:49:12 | ||
8293 | [sftp-client.c] | ||
8294 | fix swapped pflag and printflag in sftp upload_dir; from Iain Morgan | ||
8295 | |||
8296 | commit 5d80e4522d6238bdefe9d0c634f0e6d35a241e41 | ||
8297 | Author: Darren Tucker <dtucker@zip.com.au> | ||
8298 | Date: Thu Oct 10 10:25:09 2013 +1100 | ||
8299 | |||
8300 | - djm@cvs.openbsd.org 2013/09/19 00:24:52 | ||
8301 | [progressmeter.c] | ||
8302 | store the initial file offset so the progress meter doesn't freak out | ||
8303 | when resuming sftp transfers. bz#2137; patch from Iain Morgan; ok dtucker@ | ||
8304 | |||
8305 | commit ad92df7e5ed26fea85adfb3f95352d6cd8e86344 | ||
8306 | Author: Darren Tucker <dtucker@zip.com.au> | ||
8307 | Date: Thu Oct 10 10:24:11 2013 +1100 | ||
8308 | |||
8309 | - sthen@cvs.openbsd.org 2013/09/16 11:35:43 | ||
8310 | [ssh_config] | ||
8311 | Remove gssapi config parts from ssh_config, as was already done for | ||
8312 | sshd_config. Req by/ok ajacoutot@ | ||
8313 | ID SYNC ONLY for portable; kerberos/gssapi is still pretty popular | ||
8314 | |||
8315 | commit 720711960b130d36dfdd3d50eb25ef482bdd000e | ||
8316 | Author: Damien Miller <djm@mindrot.org> | ||
8317 | Date: Wed Oct 9 10:44:47 2013 +1100 | ||
8318 | |||
8319 | - (djm) [openbsd-compat/Makefile.in openbsd-compat/arc4random.c] | ||
8320 | [openbsd-compat/bsd-arc4random.c] Replace old RC4-based arc4random | ||
8321 | implementation with recent OpenBSD's ChaCha-based PRNG. ok dtucker@, | ||
8322 | tested tim@ | ||
8323 | |||
8324 | commit 9159310087a218e28940a592896808b8eb76a039 | ||
8325 | Author: Damien Miller <djm@mindrot.org> | ||
8326 | Date: Wed Oct 9 10:42:32 2013 +1100 | ||
8327 | |||
8328 | - (djm) [openbsd-compat/arc4random.c openbsd-compat/chacha_private.h] Pull | ||
8329 | in OpenBSD implementation of arc4random, shortly to replace the existing | ||
8330 | bsd-arc4random.c | ||
8331 | |||
8332 | commit 67f1d557a68d6fa8966a327d7b6dee3408cf0e72 | ||
8333 | Author: Damien Miller <djm@mindrot.org> | ||
8334 | Date: Wed Oct 9 09:33:08 2013 +1100 | ||
8335 | |||
8336 | correct incorrect years in datestamps; from des | ||
8337 | |||
8338 | commit f2bf36c3eb4d969f85ec8aa342e9aecb61cc8bb1 | ||
8339 | Author: Darren Tucker <dtucker@zip.com.au> | ||
8340 | Date: Sun Sep 22 19:02:40 2013 +1000 | ||
8341 | |||
8342 | - (dtucker) [platform.c platform.h sshd.c] bz#2156: restore Linux oom_adj | ||
8343 | setting when handling SIGHUP to maintain behaviour over retart. Patch | ||
8344 | from Matthew Ife. | ||
8345 | |||
8346 | commit e90a06ae570fd259a2f5ced873c7f17390f535a5 | ||
8347 | Author: Darren Tucker <dtucker@zip.com.au> | ||
8348 | Date: Wed Sep 18 15:09:38 2013 +1000 | ||
8349 | |||
8350 | - (dtucker) [sshd_config] Trailing whitespace; from jstjohn at purdue edu. | ||
8351 | |||
8352 | commit 13840e0103946982cee2a05c40697be7e57dca41 | ||
8353 | Author: Damien Miller <djm@mindrot.org> | ||
8354 | Date: Sat Sep 14 09:49:43 2013 +1000 | ||
8355 | |||
8356 | - djm@cvs.openbsd.org 2013/09/13 06:54:34 | ||
8357 | [channels.c] | ||
8358 | avoid unaligned access in code that reused a buffer to send a | ||
8359 | struct in_addr in a reply; simpler just use use buffer_put_int(); | ||
8360 | from portable; spotted by and ok dtucker@ | ||
8361 | |||
8362 | commit 70182522a47d283513a010338cd028cb80dac2ab | ||
8363 | Author: Damien Miller <djm@mindrot.org> | ||
8364 | Date: Sat Sep 14 09:49:19 2013 +1000 | ||
8365 | |||
8366 | - djm@cvs.openbsd.org 2013/09/12 01:41:12 | ||
8367 | [clientloop.c] | ||
8368 | fix connection crash when sending break (~B) on ControlPersist'd session; | ||
8369 | ok dtucker@ | ||
8370 | |||
8371 | commit ff9d6c2a4171ee32e8fe28fc3b86eb33bd5c845b | ||
8372 | Author: Damien Miller <djm@mindrot.org> | ||
8373 | Date: Sat Sep 14 09:48:55 2013 +1000 | ||
8374 | |||
8375 | - sthen@cvs.openbsd.org 2013/09/07 13:53:11 | ||
8376 | [sshd_config] | ||
8377 | Remove commented-out kerberos/gssapi config options from sample config, | ||
8378 | kerberos support is currently not enabled in ssh in OpenBSD. Discussed with | ||
8379 | various people; ok deraadt@ | ||
8380 | ID SYNC ONLY for portable; kerberos/gssapi is still pretty popular | ||
8381 | |||
8382 | commit 8bab5e7b5ff6721d926b5ebf05a3a24489889c58 | ||
8383 | Author: Damien Miller <djm@mindrot.org> | ||
8384 | Date: Sat Sep 14 09:47:00 2013 +1000 | ||
8385 | |||
8386 | - deraadt@cvs.openbsd.org 2013/09/02 22:00:34 | ||
8387 | [ssh-keygen.c sshconnect1.c sshd.c] | ||
8388 | All the instances of arc4random_stir() are bogus, since arc4random() | ||
8389 | does this itself, inside itself, and has for a very long time.. Actually, | ||
8390 | this was probably reducing the entropy available. | ||
8391 | ok djm | ||
8392 | ID SYNC ONLY for portable; we don't trust other arc4random implementations | ||
8393 | to do this right. | ||
8394 | |||
8395 | commit 61353b3208d548fab863e0e0ac5d2400ee5bb340 | ||
8396 | Author: Damien Miller <djm@mindrot.org> | ||
8397 | Date: Sat Sep 14 09:45:32 2013 +1000 | ||
8398 | |||
8399 | - djm@cvs.openbsd.org 2013/08/31 00:13:54 | ||
8400 | [sftp.c] | ||
8401 | make ^w match ksh behaviour (delete previous word instead of entire line) | ||
8402 | |||
8403 | commit 660854859cad31d234edb9353fb7ca2780df8128 | ||
8404 | Author: Damien Miller <djm@mindrot.org> | ||
8405 | Date: Sat Sep 14 09:45:03 2013 +1000 | ||
8406 | |||
8407 | - mikeb@cvs.openbsd.org 2013/08/28 12:34:27 | ||
8408 | [ssh-keygen.c] | ||
8409 | improve batch processing a bit by making use of the quite flag a bit | ||
8410 | more often and exit with a non zero code if asked to find a hostname | ||
8411 | in a known_hosts file and it wasn't there; | ||
8412 | originally from reyk@, ok djm | ||
8413 | |||
8414 | commit 045bda5cb8acf0eb9d71c275ee1247e3154fc9e5 | ||
8415 | Author: Damien Miller <djm@mindrot.org> | ||
8416 | Date: Sat Sep 14 09:44:37 2013 +1000 | ||
8417 | |||
8418 | - djm@cvs.openbsd.org 2013/08/22 19:02:21 | ||
8419 | [sshd.c] | ||
8420 | Stir PRNG after post-accept fork. The child gets a different PRNG state | ||
8421 | anyway via rexec and explicit privsep reseeds, but it's good to be sure. | ||
8422 | ok markus@ | ||
8423 | |||
8424 | commit ed4af412da60a084891b20412433a27966613fb8 | ||
8425 | Author: Damien Miller <djm@mindrot.org> | ||
8426 | Date: Sat Sep 14 09:40:51 2013 +1000 | ||
8427 | |||
8428 | add marker for 6.3p1 release at the point of the last included change | ||
8429 | |||
8430 | commit 43968a8e66a0aa1afefb11665bf96f86b113f5d9 | ||
8431 | Author: Damien Miller <djm@mindrot.org> | ||
8432 | Date: Wed Aug 28 14:00:54 2013 +1000 | ||
8433 | |||
8434 | - (djm) [openbsd-compat/bsd-snprintf.c] #ifdef noytet for intmax_t bits | ||
8435 | until we have configure support. | ||
8436 | |||
8437 | commit 04be8b9e53f8388c94b531ebc5d1bd6e10e930d1 | ||
8438 | Author: Damien Miller <djm@mindrot.org> | ||
8439 | Date: Wed Aug 28 12:49:43 2013 +1000 | ||
8440 | |||
8441 | - (djm) [openbsd-compat/bsd-snprintf.c] teach our local snprintf code the | ||
8442 | 'j' (intmax_t/uintmax_t) and 'z' (size_t/ssize_t) conversions in case we | ||
8443 | start to use them in the future. | ||
8444 | |||
8445 | commit f2f6c315a920a256937e1b6a3702757f3195a592 | ||
8446 | Author: Damien Miller <djm@mindrot.org> | ||
8447 | Date: Wed Aug 21 02:44:58 2013 +1000 | ||
8448 | |||
8449 | - jmc@cvs.openbsd.org 2013/08/20 06:56:07 | ||
8450 | [ssh.1 ssh_config.5] | ||
8451 | some proxyusefdpass tweaks; | ||
8452 | |||
8453 | commit 1262b6638f7d01ab110fd373dd90d915c882fe1a | ||
8454 | Author: Damien Miller <djm@mindrot.org> | ||
8455 | Date: Wed Aug 21 02:44:24 2013 +1000 | ||
8456 | |||
8457 | - djm@cvs.openbsd.org 2013/08/20 00:11:38 | ||
8458 | [readconf.c readconf.h ssh_config.5 sshconnect.c] | ||
8459 | Add a ssh_config ProxyUseFDPass option that supports the use of | ||
8460 | ProxyCommands that establish a connection and then pass a connected | ||
8461 | file descriptor back to ssh(1). This allows the ProxyCommand to exit | ||
8462 | rather than have to shuffle data back and forth and enables ssh to use | ||
8463 | getpeername, etc. to obtain address information just like it does with | ||
8464 | regular directly-connected sockets. ok markus@ | ||
8465 | |||
8466 | commit b7727df37efde4dbe4f5a33b19cbf42022aabf66 | ||
8467 | Author: Damien Miller <djm@mindrot.org> | ||
8468 | Date: Wed Aug 21 02:43:49 2013 +1000 | ||
8469 | |||
8470 | - jmc@cvs.openbsd.org 2013/08/14 08:39:27 | ||
8471 | [scp.1 ssh.1] | ||
8472 | some Bx/Ox conversion; | ||
8473 | From: Jan Stary | ||
8474 | |||
8475 | commit d5d9d7b1fdacf0551de4c747728bd159be40590a | ||
8476 | Author: Damien Miller <djm@mindrot.org> | ||
8477 | Date: Wed Aug 21 02:43:27 2013 +1000 | ||
8478 | |||
8479 | - djm@cvs.openbsd.org 2013/08/13 18:33:08 | ||
8480 | [ssh-keygen.c] | ||
8481 | another of the same typo | ||
8482 | |||
8483 | commit d234afb0b3a8de1be78cbeafed5fc86912594c3c | ||
8484 | Author: Damien Miller <djm@mindrot.org> | ||
8485 | Date: Wed Aug 21 02:42:58 2013 +1000 | ||
8486 | |||
8487 | - djm@cvs.openbsd.org 2013/08/13 18:32:08 | ||
8488 | [ssh-keygen.c] | ||
8489 | typo in error message; from Stephan Rickauer | ||
8490 | |||
8491 | commit e0ee727b8281a7c2ae20630ce83f6b200b404059 | ||
8492 | Author: Damien Miller <djm@mindrot.org> | ||
8493 | Date: Wed Aug 21 02:42:35 2013 +1000 | ||
8494 | |||
8495 | - djm@cvs.openbsd.org 2013/08/09 03:56:42 | ||
8496 | [sftp.c] | ||
8497 | enable ctrl-left-arrow and ctrl-right-arrow to move forward/back a word; | ||
8498 | matching ksh's relatively recent change. | ||
8499 | |||
8500 | commit fec029f1dc2c338f3fae3fa82aabc988dc07868c | ||
8501 | Author: Damien Miller <djm@mindrot.org> | ||
8502 | Date: Wed Aug 21 02:42:12 2013 +1000 | ||
8503 | |||
8504 | - djm@cvs.openbsd.org 2013/08/09 03:39:13 | ||
8505 | [sftp-client.c] | ||
8506 | two problems found by a to-be-committed regress test: 1) msg_id was not | ||
8507 | being initialised so was starting at a random value from the heap | ||
8508 | (harmless, but confusing). 2) some error conditions were not being | ||
8509 | propagated back to the caller | ||
8510 | |||
8511 | commit 036d30743fc914089f9849ca52d615891d47e616 | ||
8512 | Author: Damien Miller <djm@mindrot.org> | ||
8513 | Date: Wed Aug 21 02:41:46 2013 +1000 | ||
8514 | |||
8515 | - djm@cvs.openbsd.org 2013/08/09 03:37:25 | ||
8516 | [sftp.c] | ||
8517 | do getopt parsing for all sftp commands (with an empty optstring for | ||
8518 | commands without arguments) to ensure consistent behaviour | ||
8519 | |||
8520 | commit c7dba12bf95eb1d69711881a153cc286c1987663 | ||
8521 | Author: Damien Miller <djm@mindrot.org> | ||
8522 | Date: Wed Aug 21 02:41:15 2013 +1000 | ||
8523 | |||
8524 | - djm@cvs.openbsd.org 2013/08/08 05:04:03 | ||
8525 | [sftp-client.c sftp-client.h sftp.c] | ||
8526 | add a "-l" flag for the rename command to force it to use the silly | ||
8527 | standard SSH_FXP_RENAME command instead of the POSIX-rename- like | ||
8528 | posix-rename@openssh.com extension. | ||
8529 | |||
8530 | intended for use in regress tests, so no documentation. | ||
8531 | |||
8532 | commit 034f27a0c09e69fe3589045b41f03f6e345b63f5 | ||
8533 | Author: Damien Miller <djm@mindrot.org> | ||
8534 | Date: Wed Aug 21 02:40:44 2013 +1000 | ||
8535 | |||
8536 | - djm@cvs.openbsd.org 2013/08/08 04:52:04 | ||
8537 | [sftp.c] | ||
8538 | fix two year old regression: symlinking a file would incorrectly | ||
8539 | canonicalise the target path. bz#2129 report from delphij AT freebsd.org | ||
8540 | |||
8541 | commit c6895c5c67492144dd28589e5788f783be9152ed | ||
8542 | Author: Damien Miller <djm@mindrot.org> | ||
8543 | Date: Wed Aug 21 02:40:21 2013 +1000 | ||
8544 | |||
8545 | - jmc@cvs.openbsd.org 2013/08/07 06:24:51 | ||
8546 | [sftp.1 sftp.c] | ||
8547 | sort -a; | ||
8548 | |||
8549 | commit a6d6c1f38ac9b4a5e1bd4df889e1020a8370ed55 | ||
8550 | Author: Damien Miller <djm@mindrot.org> | ||
8551 | Date: Wed Aug 21 02:40:01 2013 +1000 | ||
8552 | |||
8553 | - djm@cvs.openbsd.org 2013/08/06 23:06:01 | ||
8554 | [servconf.c] | ||
8555 | add cast to avoid format warning; from portable | ||
8556 | |||
8557 | commit eec840673bce3f69ad269672fba7ed8ff05f154f | ||
8558 | Author: Damien Miller <djm@mindrot.org> | ||
8559 | Date: Wed Aug 21 02:39:39 2013 +1000 | ||
8560 | |||
8561 | - djm@cvs.openbsd.org 2013/08/06 23:05:01 | ||
8562 | [sftp.1] | ||
8563 | document top-level -a option (the -a option to 'get' was already | ||
8564 | documented) | ||
8565 | |||
8566 | commit 02e878070d0eddad4e11f2c82644b275418eb112 | ||
8567 | Author: Damien Miller <djm@mindrot.org> | ||
8568 | Date: Wed Aug 21 02:38:51 2013 +1000 | ||
8569 | |||
8570 | - djm@cvs.openbsd.org 2013/08/06 23:03:49 | ||
8571 | [sftp.c] | ||
8572 | fix some whitespace at EOL | ||
8573 | make list of commands an enum rather than a long list of defines | ||
8574 | add -a to usage() | ||
8575 | |||
8576 | commit acd2060f750c16d48b87b92a10b5a833227baf9d | ||
8577 | Author: Darren Tucker <dtucker@zip.com.au> | ||
8578 | Date: Thu Aug 8 17:02:12 2013 +1000 | ||
8579 | |||
8580 | - (dtucker) [regress/Makefile regress/test-exec.sh] Roll back the -nt | ||
8581 | removal. The "make clean" removes modpipe which is built by the top-level | ||
8582 | directory before running the tests. Spotted by tim@ | ||
8583 | |||
8584 | commit 9542de4547beebf707f3640082d471f1a85534c9 | ||
8585 | Author: Darren Tucker <dtucker@zip.com.au> | ||
8586 | Date: Thu Aug 8 12:50:06 2013 +1000 | ||
8587 | |||
8588 | - (dtucker) [misc.c] Remove define added for fallback testing that was | ||
8589 | mistakenly included in the previous commit. | ||
8590 | |||
8591 | commit 94396b7f06f512a0acb230640d7f703fb802a9ee | ||
8592 | Author: Darren Tucker <dtucker@zip.com.au> | ||
8593 | Date: Thu Aug 8 11:52:37 2013 +1000 | ||
8594 | |||
8595 | - (dtucker) [misc.c] Fall back to time(2) at runtime if clock_gettime( | ||
8596 | CLOCK_MONOTONIC...) fails. Some older versions of RHEL have the | ||
8597 | CLOCK_MONOTONIC define but don't actually support it. Found and tested | ||
8598 | by Kevin Brott, ok djm. | ||
8599 | |||
8600 | commit a5a3cbfa0fb8ef011d3e7b38910a13f6ebbb8818 | ||
8601 | Author: Darren Tucker <dtucker@zip.com.au> | ||
8602 | Date: Thu Aug 8 10:58:49 2013 +1000 | ||
8603 | |||
8604 | - (dtucker) [regress/Makefile regress/test-exec.sh] Don't try to use test -nt | ||
8605 | since some platforms (eg really old FreeBSD) don't have it. Instead, | ||
8606 | run "make clean" before a complete regress run. ok djm. | ||
8607 | |||
8608 | commit f3ab2c5f9cf4aed44971eded3ac9eeb1344b2be5 | ||
8609 | Author: Darren Tucker <dtucker@zip.com.au> | ||
8610 | Date: Sun Aug 4 21:48:41 2013 +1000 | ||
8611 | |||
8612 | - (dtucker) [auth-krb5.c configure.ac openbsd-compat/bsd-misc.h] Add support | ||
8613 | for building with older Heimdal versions. ok djm. | ||
8614 | |||
8615 | commit ab3575c055adfbce70fa7405345cf0f80b07c827 | ||
8616 | Author: Damien Miller <djm@mindrot.org> | ||
8617 | Date: Thu Aug 1 14:34:16 2013 +1000 | ||
8618 | |||
8619 | - (djm) [sshlogin.h] Fix prototype merge botch from 2006; bz#2134 | ||
8620 | |||
8621 | commit c192a4c4f6da907dc0e67a3ca61d806f9a92c931 | ||
8622 | Author: Damien Miller <djm@mindrot.org> | ||
8623 | Date: Thu Aug 1 14:29:20 2013 +1000 | ||
8624 | |||
8625 | - (djm) [channels.c channels.h] bz#2135: On Solaris, isatty() on a non- | ||
8626 | blocking connecting socket will clear any stored errno that might | ||
8627 | otherwise have been retrievable via getsockopt(). A hack to limit writes | ||
8628 | to TTYs on AIX was triggering this. Since only AIX needs the hack, wrap | ||
8629 | it in an #ifdef. Diagnosis and patch from Ivo Raisr. | ||
8630 | |||
8631 | commit 81f7cf1ec5bc2fd202eda05abc2e5361c54633c5 | ||
8632 | Author: Tim Rice <tim@multitalents.net> | ||
8633 | Date: Thu Jul 25 18:41:40 2013 -0700 | ||
8634 | |||
8635 | more correct comment for last commit | ||
8636 | |||
8637 | commit 0553ad76ffdff35fb31b9e6df935a71a1cc6daa2 | ||
8638 | Author: Tim Rice <tim@multitalents.net> | ||
8639 | Date: Thu Jul 25 16:03:16 2013 -0700 | ||
8640 | |||
8641 | - (tim) [regress/forwarding.sh] Fix for building outside read only source tree. | ||
8642 | |||
8643 | commit ed899eb597a8901ff7322cba809660515ec0d601 | ||
8644 | Author: Tim Rice <tim@multitalents.net> | ||
8645 | Date: Thu Jul 25 15:40:00 2013 -0700 | ||
8646 | |||
8647 | - (tim) [sftp-client.c] Use of a gcc extension trips up native compilers on | ||
8648 | Solaris and UnixWare. Feedback and OK djm@ | ||
8649 | |||
8650 | commit e9e936d33b4b1d77ffbaace9438cb2f1469c1dc7 | ||
8651 | Author: Damien Miller <djm@mindrot.org> | ||
8652 | Date: Thu Jul 25 12:34:00 2013 +1000 | ||
8653 | |||
8654 | - (djm) [README contrib/caldera/openssh.spec contrib/redhat/openssh.spec] | ||
8655 | [contrib/suse/openssh.spec] Update version numbers | ||
8656 | |||
8657 | commit d1e26cf391de31128b4edde118bff5fed98a90ea | ||
8658 | Author: Damien Miller <djm@mindrot.org> | ||
8659 | Date: Thu Jul 25 12:11:18 2013 +1000 | ||
8660 | |||
8661 | - djm@cvs.openbsd.org 2013/06/21 02:26:26 | ||
8662 | [regress/sftp-cmds.sh regress/test-exec.sh] | ||
8663 | unbreak sftp-cmds for renamed test data (s/ls/data/) | ||
8664 | |||
8665 | commit 78d47b7c5b182e44552913de2b4b7e0363c8e3cc | ||
8666 | Author: Damien Miller <djm@mindrot.org> | ||
8667 | Date: Thu Jul 25 12:08:46 2013 +1000 | ||
8668 | |||
8669 | - dtucker@cvs.openbsd.org 2013/06/10 21:56:43 | ||
8670 | [regress/forwarding.sh] | ||
8671 | Add test for forward config parsing | ||
8672 | |||
8673 | commit fea440639e04cea9f2605375a41d654390369402 | ||
8674 | Author: Damien Miller <djm@mindrot.org> | ||
8675 | Date: Thu Jul 25 12:08:07 2013 +1000 | ||
8676 | |||
8677 | - dtucker@cvs.openbsd.org 2013/05/30 20:12:32 | ||
8678 | [regress/test-exec.sh] | ||
8679 | use ssh and sshd as testdata since it needs to be >256k for the rekey test | ||
8680 | |||
8681 | commit 53435b2d8773a5d7c78359e9f7bf9df2d93b9ef5 | ||
8682 | Author: Damien Miller <djm@mindrot.org> | ||
8683 | Date: Thu Jul 25 11:57:15 2013 +1000 | ||
8684 | |||
8685 | - djm@cvs.openbsd.org 2013/07/25 00:57:37 | ||
8686 | [version.h] | ||
8687 | openssh-6.3 for release | ||
8688 | |||
8689 | commit 0d032419ee6e1968fc1cb187af63bf3b77b506ea | ||
8690 | Author: Damien Miller <djm@mindrot.org> | ||
8691 | Date: Thu Jul 25 11:56:52 2013 +1000 | ||
8692 | |||
8693 | - djm@cvs.openbsd.org 2013/07/25 00:56:52 | ||
8694 | [sftp-client.c sftp-client.h sftp.1 sftp.c] | ||
8695 | sftp support for resuming partial downloads; patch mostly by Loganaden | ||
8696 | Velvindron/AfriNIC with some tweaks by me; feedback and ok dtucker@ | ||
8697 | |||
8698 | commit 98e27dcf581647b5bbe9780e8f59685d942d8ea3 | ||
8699 | Author: Damien Miller <djm@mindrot.org> | ||
8700 | Date: Thu Jul 25 11:55:52 2013 +1000 | ||
8701 | |||
8702 | - djm@cvs.openbsd.org 2013/07/25 00:29:10 | ||
8703 | [ssh.c] | ||
8704 | daemonise backgrounded (ControlPersist'ed) multiplexing master to ensure | ||
8705 | it is fully detached from its controlling terminal. based on debugging | ||
8706 | |||
8707 | commit 94c9cd34d1590ea1d4bf76919a15b5688fa90ed1 | ||
8708 | Author: Damien Miller <djm@mindrot.org> | ||
8709 | Date: Thu Jul 25 11:55:39 2013 +1000 | ||
8710 | |||
8711 | - djm@cvs.openbsd.org 2013/07/22 12:20:02 | ||
8712 | [umac.h] | ||
8713 | oops, forgot to commit corresponding header change; | ||
8714 | spotted by jsg and jasper | ||
8715 | |||
8716 | commit c331dbd22297ab9bf351abee659893d139c9f28a | ||
8717 | Author: Damien Miller <djm@mindrot.org> | ||
8718 | Date: Thu Jul 25 11:55:20 2013 +1000 | ||
8719 | |||
8720 | - djm@cvs.openbsd.org 2013/07/22 05:00:17 | ||
8721 | [umac.c] | ||
8722 | make MAC key, data to be hashed and nonce for final hash const; | ||
8723 | checked with -Wcast-qual | ||
8724 | |||
8725 | commit c8669a8cd24952b3f16a44eac63d2b6ce8a6343a | ||
8726 | Author: Damien Miller <djm@mindrot.org> | ||
8727 | Date: Thu Jul 25 11:52:48 2013 +1000 | ||
8728 | |||
8729 | - djm@cvs.openbsd.org 2013/07/20 22:20:42 | ||
8730 | [krl.c] | ||
8731 | fix verification error in (as-yet usused) KRL signature checking path | ||
8732 | |||
8733 | commit 63ddc899d28cf60045b560891894b9fbf6f822e9 | ||
8734 | Author: Damien Miller <djm@mindrot.org> | ||
8735 | Date: Sat Jul 20 13:35:45 2013 +1000 | ||
8736 | |||
8737 | - djm@cvs.openbsd.org 2013/07/20 01:55:13 | ||
8738 | [auth-krb5.c gss-serv-krb5.c gss-serv.c] | ||
8739 | fix kerberos/GSSAPI deprecation warnings and linking; "looks okay" millert@ | ||
8740 | |||
8741 | commit 1f0e86f23fcebb026371c0888402a981df2a61c4 | ||
8742 | Author: Damien Miller <djm@mindrot.org> | ||
8743 | Date: Sat Jul 20 13:22:49 2013 +1000 | ||
8744 | |||
8745 | - djm@cvs.openbsd.org 2013/07/20 01:50:20 | ||
8746 | [ssh-agent.c] | ||
8747 | call cleanup_handler on SIGINT when in debug mode to ensure sockets | ||
8748 | are cleaned up on manual exit; bz#2120 | ||
8749 | |||
8750 | commit 3009d3cbb89316b1294fb5cedb54770b5d114d04 | ||
8751 | Author: Damien Miller <djm@mindrot.org> | ||
8752 | Date: Sat Jul 20 13:22:31 2013 +1000 | ||
8753 | |||
8754 | - djm@cvs.openbsd.org 2013/07/20 01:44:37 | ||
8755 | [ssh-keygen.c ssh.c] | ||
8756 | More useful error message on missing current user in /etc/passwd | ||
8757 | |||
8758 | commit 32ecfa0f7920db31471ca8c1f4adc20ae38ed9d6 | ||
8759 | Author: Damien Miller <djm@mindrot.org> | ||
8760 | Date: Sat Jul 20 13:22:13 2013 +1000 | ||
8761 | |||
8762 | - djm@cvs.openbsd.org 2013/07/20 01:43:46 | ||
8763 | [umac.c] | ||
8764 | use a union to ensure correct alignment; ok deraadt | ||
8765 | |||
8766 | commit 85b45e09188e7a7fc8f0a900a4c6a0f04a5720a7 | ||
8767 | Author: Damien Miller <djm@mindrot.org> | ||
8768 | Date: Sat Jul 20 13:21:52 2013 +1000 | ||
8769 | |||
8770 | - markus@cvs.openbsd.org 2013/07/19 07:37:48 | ||
8771 | [auth.h kex.h kexdhs.c kexecdhs.c kexgexs.c monitor.c servconf.c] | ||
8772 | [servconf.h session.c sshd.c sshd_config.5] | ||
8773 | add ssh-agent(1) support to sshd(8); allows encrypted hostkeys, | ||
8774 | or hostkeys on smartcards; most of the work by Zev Weiss; bz #1974 | ||
8775 | ok djm@ | ||
8776 | |||
8777 | commit d93340cbb6bc0fc0dbd4427e0cec6d994a494dd9 | ||
8778 | Author: Damien Miller <djm@mindrot.org> | ||
8779 | Date: Thu Jul 18 16:14:34 2013 +1000 | ||
8780 | |||
8781 | - djm@cvs.openbsd.org 2013/07/18 01:12:26 | ||
8782 | [ssh.1] | ||
8783 | be more exact wrt perms for ~/.ssh/config; bz#2078 | ||
8784 | |||
8785 | commit bf836e535dc3a8050c1756423539bac127ee5098 | ||
8786 | Author: Damien Miller <djm@mindrot.org> | ||
8787 | Date: Thu Jul 18 16:14:13 2013 +1000 | ||
8788 | |||
8789 | - schwarze@cvs.openbsd.org 2013/07/16 00:07:52 | ||
8790 | [scp.1 sftp-server.8 ssh-keyscan.1 ssh-keysign.8 ssh-pkcs11-helper.8] | ||
8791 | use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@ | ||
8792 | |||
8793 | commit 649fe025a409d0ce88c60a068f3f211193c35873 | ||
8794 | Author: Damien Miller <djm@mindrot.org> | ||
8795 | Date: Thu Jul 18 16:13:55 2013 +1000 | ||
8796 | |||
8797 | - djm@cvs.openbsd.org 2013/07/12 05:48:55 | ||
8798 | [ssh.c] | ||
8799 | set TCP nodelay for connections started with -N; bz#2124 ok dtucker@ | ||
8800 | |||
8801 | commit 5bb8833e809d827496dffca0dc2c223052c93931 | ||
8802 | Author: Damien Miller <djm@mindrot.org> | ||
8803 | Date: Thu Jul 18 16:13:37 2013 +1000 | ||
8804 | |||
8805 | - djm@cvs.openbsd.org 2013/07/12 05:42:03 | ||
8806 | [ssh-keygen.c] | ||
8807 | do_print_resource_record() can never be called with a NULL filename, so | ||
8808 | don't attempt (and bungle) asking for one if it has not been specified | ||
8809 | bz#2127 ok dtucker@ | ||
8810 | |||
8811 | commit 7313fc9222785d0c54a7ffcaf2067f4db02c8d72 | ||
8812 | Author: Damien Miller <djm@mindrot.org> | ||
8813 | Date: Thu Jul 18 16:13:19 2013 +1000 | ||
8814 | |||
8815 | - djm@cvs.openbsd.org 2013/07/12 00:43:50 | ||
8816 | [misc.c] | ||
8817 | in ssh_gai_strerror() don't fallback to strerror for EAI_SYSTEM when | ||
8818 | errno == 0. Avoids confusing error message in some broken resolver | ||
8819 | cases. bz#2122 patch from plautrba AT redhat.com; ok dtucker | ||
8820 | |||
8821 | commit 746d1a6c524d2e90ebe98cc29e42573a3e1c3c1b | ||
8822 | Author: Damien Miller <djm@mindrot.org> | ||
8823 | Date: Thu Jul 18 16:13:02 2013 +1000 | ||
8824 | |||
8825 | - djm@cvs.openbsd.org 2013/07/12 00:20:00 | ||
8826 | [sftp.c ssh-keygen.c ssh-pkcs11.c] | ||
8827 | fix pointer-signedness warnings from clang/llvm-3.3; "seems nice" deraadt@ | ||
8828 | |||
8829 | commit ce98654674648fb7d58f73edf6aa398656a2dba4 | ||
8830 | Author: Damien Miller <djm@mindrot.org> | ||
8831 | Date: Thu Jul 18 16:12:44 2013 +1000 | ||
8832 | |||
8833 | - djm@cvs.openbsd.org 2013/07/12 00:19:59 | ||
8834 | [auth-options.c auth-rsa.c bufaux.c buffer.h channels.c hostfile.c] | ||
8835 | [hostfile.h mux.c packet.c packet.h roaming_common.c serverloop.c] | ||
8836 | fix pointer-signedness warnings from clang/llvm-3.3; "seems nice" deraadt@ | ||
8837 | |||
8838 | commit 0d02c3e10e1ed16d6396748375a133d348127a2a | ||
8839 | Author: Damien Miller <djm@mindrot.org> | ||
8840 | Date: Thu Jul 18 16:12:06 2013 +1000 | ||
8841 | |||
8842 | - markus@cvs.openbsd.org 2013/07/02 12:31:43 | ||
8843 | [dh.c] | ||
8844 | remove extra whitespace | ||
8845 | |||
8846 | commit fecfd118d6c90df4fcd3cec7b14e4d3ce69a41d5 | ||
8847 | Author: Damien Miller <djm@mindrot.org> | ||
8848 | Date: Thu Jul 18 16:11:50 2013 +1000 | ||
8849 | |||
8850 | - jmc@cvs.openbsd.org 2013/06/27 14:05:37 | ||
8851 | [ssh-keygen.1 ssh.1 ssh_config.5 sshd.8 sshd_config.5] | ||
8852 | do not use Sx for sections outwith the man page - ingo informs me that | ||
8853 | stuff like html will render with broken links; | ||
8854 | |||
8855 | issue reported by Eric S. Raymond, via djm | ||
8856 | |||
8857 | commit bc35d92e78fd53c3f32cbdbdf89d8b1919788c50 | ||
8858 | Author: Damien Miller <djm@mindrot.org> | ||
8859 | Date: Thu Jul 18 16:11:25 2013 +1000 | ||
8860 | |||
8861 | - djm@cvs.openbsd.org 2013/06/22 06:31:57 | ||
8862 | [scp.c] | ||
8863 | improved time_t overflow check suggested by guenther@ | ||
8864 | |||
8865 | commit 8158441d01ab84f33a7e70e27f87c02cbf67e709 | ||
8866 | Author: Damien Miller <djm@mindrot.org> | ||
8867 | Date: Thu Jul 18 16:11:07 2013 +1000 | ||
8868 | |||
8869 | - djm@cvs.openbsd.org 2013/06/21 05:43:10 | ||
8870 | [scp.c] | ||
8871 | make this -Wsign-compare clean after time_t conversion | ||
8872 | |||
8873 | commit bbeb1dac550bad8e6aff9bd27113c6bd5ebb7413 | ||
8874 | Author: Damien Miller <djm@mindrot.org> | ||
8875 | Date: Thu Jul 18 16:10:49 2013 +1000 | ||
8876 | |||
8877 | - djm@cvs.openbsd.org 2013/06/21 05:42:32 | ||
8878 | [dh.c] | ||
8879 | sprinkle in some error() to explain moduli(5) parse failures | ||
8880 | |||
8881 | commit 7f2b438ca0b7c3b9684a03d7bf3eaf379da16de9 | ||
8882 | Author: Damien Miller <djm@mindrot.org> | ||
8883 | Date: Thu Jul 18 16:10:29 2013 +1000 | ||
8884 | |||
8885 | - djm@cvs.openbsd.org 2013/06/21 00:37:49 | ||
8886 | [ssh_config.5] | ||
8887 | explicitly mention that IdentitiesOnly can be used with IdentityFile | ||
8888 | to control which keys are offered from an agent. | ||
8889 | |||
8890 | commit 20bdcd72365e8b3d51261993928cc47c5f0d7c8a | ||
8891 | Author: Damien Miller <djm@mindrot.org> | ||
8892 | Date: Thu Jul 18 16:10:09 2013 +1000 | ||
8893 | |||
8894 | - djm@cvs.openbsd.org 2013/06/21 00:34:49 | ||
8895 | [auth-rsa.c auth.h auth2-hostbased.c auth2-pubkey.c monitor.c] | ||
8896 | for hostbased authentication, print the client host and user on | ||
8897 | the auth success/failure line; bz#2064, ok dtucker@ | ||
8898 | |||
8899 | commit 3071070b39e6d1722151c754cdc2b26640eaf45e | ||
8900 | Author: Damien Miller <djm@mindrot.org> | ||
8901 | Date: Thu Jul 18 16:09:44 2013 +1000 | ||
8902 | |||
8903 | - markus@cvs.openbsd.org 2013/06/20 19:15:06 | ||
8904 | [krl.c] | ||
8905 | don't leak the rdata blob on errors; ok djm@ | ||
8906 | |||
8907 | commit 044bd2a7ddb0b6f6b716c87e57261572e2b89028 | ||
8908 | Author: Damien Miller <djm@mindrot.org> | ||
8909 | Date: Thu Jul 18 16:09:25 2013 +1000 | ||
8910 | |||
8911 | - guenther@cvs.openbsd.org 2013/06/17 04:48:42 | ||
8912 | [scp.c] | ||
8913 | Handle time_t values as long long's when formatting them and when | ||
8914 | parsing them from remote servers. | ||
8915 | Improve error checking in parsing of 'T' lines. | ||
8916 | |||
8917 | ok dtucker@ deraadt@ | ||
8918 | |||
8919 | commit 9a6615542108118582f64b7161ca0e12176e3712 | ||
8920 | Author: Damien Miller <djm@mindrot.org> | ||
8921 | Date: Thu Jul 18 16:09:04 2013 +1000 | ||
8922 | |||
8923 | - dtucker@cvs.openbsd.org 2013/06/10 19:19:44 | ||
8924 | [readconf.c] | ||
8925 | revert 1.203 while we investigate crashes reported by okan@ | ||
8926 | |||
8927 | commit b7482cff46e7e76bfb3cda86c365a08f58d4fca0 | ||
8928 | Author: Darren Tucker <dtucker@zip.com.au> | ||
8929 | Date: Tue Jul 2 20:06:46 2013 +1000 | ||
8930 | |||
8931 | - (dtucker) [contrib/cygwin/README contrib/cygwin/ssh-host-config | ||
8932 | contrib/cygwin/ssh-user-config] Modernizes and improve readability of | ||
8933 | the Cygwin README file (which hasn't been updated for ages), drop | ||
8934 | unsupported OSes from the ssh-host-config help text, and drop an | ||
8935 | unneeded option from ssh-user-config. Patch from vinschen at redhat com. | ||
diff --git a/config.h.in b/config.h.in new file mode 100644 index 000000000..7e7e38ec2 --- /dev/null +++ b/config.h.in | |||
@@ -0,0 +1,1707 @@ | |||
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 | /* Define if you have a broken realpath. */ | ||
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 | /* FreeBSD strnvis argument order is swapped compared to OpenBSD */ | ||
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 if your system has /etc/default/login */ | ||
404 | #undef HAVE_ETC_DEFAULT_LOGIN | ||
405 | |||
406 | /* Define if libcrypto has EVP_CIPHER_CTX_ctrl */ | ||
407 | #undef HAVE_EVP_CIPHER_CTX_CTRL | ||
408 | |||
409 | /* Define to 1 if you have the `EVP_DigestFinal_ex' function. */ | ||
410 | #undef HAVE_EVP_DIGESTFINAL_EX | ||
411 | |||
412 | /* Define to 1 if you have the `EVP_DigestInit_ex' function. */ | ||
413 | #undef HAVE_EVP_DIGESTINIT_EX | ||
414 | |||
415 | /* Define to 1 if you have the `EVP_MD_CTX_cleanup' function. */ | ||
416 | #undef HAVE_EVP_MD_CTX_CLEANUP | ||
417 | |||
418 | /* Define to 1 if you have the `EVP_MD_CTX_copy_ex' function. */ | ||
419 | #undef HAVE_EVP_MD_CTX_COPY_EX | ||
420 | |||
421 | /* Define to 1 if you have the `EVP_MD_CTX_init' function. */ | ||
422 | #undef HAVE_EVP_MD_CTX_INIT | ||
423 | |||
424 | /* Define to 1 if you have the `EVP_ripemd160' function. */ | ||
425 | #undef HAVE_EVP_RIPEMD160 | ||
426 | |||
427 | /* Define to 1 if you have the `EVP_sha256' function. */ | ||
428 | #undef HAVE_EVP_SHA256 | ||
429 | |||
430 | /* Define if you have ut_exit in utmp.h */ | ||
431 | #undef HAVE_EXIT_IN_UTMP | ||
432 | |||
433 | /* Define to 1 if you have the `explicit_bzero' function. */ | ||
434 | #undef HAVE_EXPLICIT_BZERO | ||
435 | |||
436 | /* Define to 1 if you have the `fchmod' function. */ | ||
437 | #undef HAVE_FCHMOD | ||
438 | |||
439 | /* Define to 1 if you have the `fchown' function. */ | ||
440 | #undef HAVE_FCHOWN | ||
441 | |||
442 | /* Use F_CLOSEM fcntl for closefrom */ | ||
443 | #undef HAVE_FCNTL_CLOSEM | ||
444 | |||
445 | /* Define to 1 if you have the <fcntl.h> header file. */ | ||
446 | #undef HAVE_FCNTL_H | ||
447 | |||
448 | /* Define to 1 if the system has the type `fd_mask'. */ | ||
449 | #undef HAVE_FD_MASK | ||
450 | |||
451 | /* Define to 1 if you have the <features.h> header file. */ | ||
452 | #undef HAVE_FEATURES_H | ||
453 | |||
454 | /* Define to 1 if you have the <floatingpoint.h> header file. */ | ||
455 | #undef HAVE_FLOATINGPOINT_H | ||
456 | |||
457 | /* Define to 1 if you have the `fmt_scaled' function. */ | ||
458 | #undef HAVE_FMT_SCALED | ||
459 | |||
460 | /* Define to 1 if you have the `freeaddrinfo' function. */ | ||
461 | #undef HAVE_FREEADDRINFO | ||
462 | |||
463 | /* Define to 1 if the system has the type `fsblkcnt_t'. */ | ||
464 | #undef HAVE_FSBLKCNT_T | ||
465 | |||
466 | /* Define to 1 if the system has the type `fsfilcnt_t'. */ | ||
467 | #undef HAVE_FSFILCNT_T | ||
468 | |||
469 | /* Define to 1 if you have the `fstatfs' function. */ | ||
470 | #undef HAVE_FSTATFS | ||
471 | |||
472 | /* Define to 1 if you have the `fstatvfs' function. */ | ||
473 | #undef HAVE_FSTATVFS | ||
474 | |||
475 | /* Define to 1 if you have the `futimes' function. */ | ||
476 | #undef HAVE_FUTIMES | ||
477 | |||
478 | /* Define to 1 if you have the `gai_strerror' function. */ | ||
479 | #undef HAVE_GAI_STRERROR | ||
480 | |||
481 | /* Define to 1 if you have the `getaddrinfo' function. */ | ||
482 | #undef HAVE_GETADDRINFO | ||
483 | |||
484 | /* Define to 1 if you have the `getaudit' function. */ | ||
485 | #undef HAVE_GETAUDIT | ||
486 | |||
487 | /* Define to 1 if you have the `getaudit_addr' function. */ | ||
488 | #undef HAVE_GETAUDIT_ADDR | ||
489 | |||
490 | /* Define to 1 if you have the `getcwd' function. */ | ||
491 | #undef HAVE_GETCWD | ||
492 | |||
493 | /* Define to 1 if you have the `getgrouplist' function. */ | ||
494 | #undef HAVE_GETGROUPLIST | ||
495 | |||
496 | /* Define to 1 if you have the `getgrset' function. */ | ||
497 | #undef HAVE_GETGRSET | ||
498 | |||
499 | /* Define to 1 if you have the `getlastlogxbyname' function. */ | ||
500 | #undef HAVE_GETLASTLOGXBYNAME | ||
501 | |||
502 | /* Define to 1 if you have the `getluid' function. */ | ||
503 | #undef HAVE_GETLUID | ||
504 | |||
505 | /* Define to 1 if you have the `getnameinfo' function. */ | ||
506 | #undef HAVE_GETNAMEINFO | ||
507 | |||
508 | /* Define to 1 if you have the `getopt' function. */ | ||
509 | #undef HAVE_GETOPT | ||
510 | |||
511 | /* Define to 1 if you have the <getopt.h> header file. */ | ||
512 | #undef HAVE_GETOPT_H | ||
513 | |||
514 | /* Define if your getopt(3) defines and uses optreset */ | ||
515 | #undef HAVE_GETOPT_OPTRESET | ||
516 | |||
517 | /* Define if your libraries define getpagesize() */ | ||
518 | #undef HAVE_GETPAGESIZE | ||
519 | |||
520 | /* Define to 1 if you have the `getpeereid' function. */ | ||
521 | #undef HAVE_GETPEEREID | ||
522 | |||
523 | /* Define to 1 if you have the `getpeerucred' function. */ | ||
524 | #undef HAVE_GETPEERUCRED | ||
525 | |||
526 | /* Define to 1 if you have the `getpgid' function. */ | ||
527 | #undef HAVE_GETPGID | ||
528 | |||
529 | /* Define to 1 if you have the `getpgrp' function. */ | ||
530 | #undef HAVE_GETPGRP | ||
531 | |||
532 | /* Define to 1 if you have the `getpwanam' function. */ | ||
533 | #undef HAVE_GETPWANAM | ||
534 | |||
535 | /* Define to 1 if you have the `getrlimit' function. */ | ||
536 | #undef HAVE_GETRLIMIT | ||
537 | |||
538 | /* Define if getrrsetbyname() exists */ | ||
539 | #undef HAVE_GETRRSETBYNAME | ||
540 | |||
541 | /* Define to 1 if you have the `getrusage' function. */ | ||
542 | #undef HAVE_GETRUSAGE | ||
543 | |||
544 | /* Define to 1 if you have the `getseuserbyname' function. */ | ||
545 | #undef HAVE_GETSEUSERBYNAME | ||
546 | |||
547 | /* Define to 1 if you have the `gettimeofday' function. */ | ||
548 | #undef HAVE_GETTIMEOFDAY | ||
549 | |||
550 | /* Define to 1 if you have the `getttyent' function. */ | ||
551 | #undef HAVE_GETTTYENT | ||
552 | |||
553 | /* Define to 1 if you have the `getutent' function. */ | ||
554 | #undef HAVE_GETUTENT | ||
555 | |||
556 | /* Define to 1 if you have the `getutid' function. */ | ||
557 | #undef HAVE_GETUTID | ||
558 | |||
559 | /* Define to 1 if you have the `getutline' function. */ | ||
560 | #undef HAVE_GETUTLINE | ||
561 | |||
562 | /* Define to 1 if you have the `getutxent' function. */ | ||
563 | #undef HAVE_GETUTXENT | ||
564 | |||
565 | /* Define to 1 if you have the `getutxid' function. */ | ||
566 | #undef HAVE_GETUTXID | ||
567 | |||
568 | /* Define to 1 if you have the `getutxline' function. */ | ||
569 | #undef HAVE_GETUTXLINE | ||
570 | |||
571 | /* Define to 1 if you have the `getutxuser' function. */ | ||
572 | #undef HAVE_GETUTXUSER | ||
573 | |||
574 | /* Define to 1 if you have the `get_default_context_with_level' function. */ | ||
575 | #undef HAVE_GET_DEFAULT_CONTEXT_WITH_LEVEL | ||
576 | |||
577 | /* Define to 1 if you have the `glob' function. */ | ||
578 | #undef HAVE_GLOB | ||
579 | |||
580 | /* Define to 1 if you have the <glob.h> header file. */ | ||
581 | #undef HAVE_GLOB_H | ||
582 | |||
583 | /* Define to 1 if you have the `group_from_gid' function. */ | ||
584 | #undef HAVE_GROUP_FROM_GID | ||
585 | |||
586 | /* Define to 1 if you have the <gssapi_generic.h> header file. */ | ||
587 | #undef HAVE_GSSAPI_GENERIC_H | ||
588 | |||
589 | /* Define to 1 if you have the <gssapi/gssapi_generic.h> header file. */ | ||
590 | #undef HAVE_GSSAPI_GSSAPI_GENERIC_H | ||
591 | |||
592 | /* Define to 1 if you have the <gssapi/gssapi.h> header file. */ | ||
593 | #undef HAVE_GSSAPI_GSSAPI_H | ||
594 | |||
595 | /* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */ | ||
596 | #undef HAVE_GSSAPI_GSSAPI_KRB5_H | ||
597 | |||
598 | /* Define to 1 if you have the <gssapi.h> header file. */ | ||
599 | #undef HAVE_GSSAPI_H | ||
600 | |||
601 | /* Define to 1 if you have the <gssapi_krb5.h> header file. */ | ||
602 | #undef HAVE_GSSAPI_KRB5_H | ||
603 | |||
604 | /* Define if HEADER.ad exists in arpa/nameser.h */ | ||
605 | #undef HAVE_HEADER_AD | ||
606 | |||
607 | /* Define to 1 if you have the `HMAC_CTX_init' function. */ | ||
608 | #undef HAVE_HMAC_CTX_INIT | ||
609 | |||
610 | /* Define if you have ut_host in utmp.h */ | ||
611 | #undef HAVE_HOST_IN_UTMP | ||
612 | |||
613 | /* Define if you have ut_host in utmpx.h */ | ||
614 | #undef HAVE_HOST_IN_UTMPX | ||
615 | |||
616 | /* Define to 1 if you have the <iaf.h> header file. */ | ||
617 | #undef HAVE_IAF_H | ||
618 | |||
619 | /* Define to 1 if you have the <ia.h> header file. */ | ||
620 | #undef HAVE_IA_H | ||
621 | |||
622 | /* Define if you have ut_id in utmp.h */ | ||
623 | #undef HAVE_ID_IN_UTMP | ||
624 | |||
625 | /* Define if you have ut_id in utmpx.h */ | ||
626 | #undef HAVE_ID_IN_UTMPX | ||
627 | |||
628 | /* Define to 1 if you have the `inet_aton' function. */ | ||
629 | #undef HAVE_INET_ATON | ||
630 | |||
631 | /* Define to 1 if you have the `inet_ntoa' function. */ | ||
632 | #undef HAVE_INET_NTOA | ||
633 | |||
634 | /* Define to 1 if you have the `inet_ntop' function. */ | ||
635 | #undef HAVE_INET_NTOP | ||
636 | |||
637 | /* Define to 1 if you have the `innetgr' function. */ | ||
638 | #undef HAVE_INNETGR | ||
639 | |||
640 | /* define if you have int64_t data type */ | ||
641 | #undef HAVE_INT64_T | ||
642 | |||
643 | /* Define to 1 if the system has the type `intmax_t'. */ | ||
644 | #undef HAVE_INTMAX_T | ||
645 | |||
646 | /* Define to 1 if you have the <inttypes.h> header file. */ | ||
647 | #undef HAVE_INTTYPES_H | ||
648 | |||
649 | /* define if you have intxx_t data type */ | ||
650 | #undef HAVE_INTXX_T | ||
651 | |||
652 | /* Define to 1 if the system has the type `in_addr_t'. */ | ||
653 | #undef HAVE_IN_ADDR_T | ||
654 | |||
655 | /* Define to 1 if the system has the type `in_port_t'. */ | ||
656 | #undef HAVE_IN_PORT_T | ||
657 | |||
658 | /* Define if you have isblank(3C). */ | ||
659 | #undef HAVE_ISBLANK | ||
660 | |||
661 | /* Define to 1 if you have the `krb5_cc_new_unique' function. */ | ||
662 | #undef HAVE_KRB5_CC_NEW_UNIQUE | ||
663 | |||
664 | /* Define to 1 if you have the `krb5_free_error_message' function. */ | ||
665 | #undef HAVE_KRB5_FREE_ERROR_MESSAGE | ||
666 | |||
667 | /* Define to 1 if you have the `krb5_get_error_message' function. */ | ||
668 | #undef HAVE_KRB5_GET_ERROR_MESSAGE | ||
669 | |||
670 | /* Define to 1 if you have the <lastlog.h> header file. */ | ||
671 | #undef HAVE_LASTLOG_H | ||
672 | |||
673 | /* Define if you want ldns support */ | ||
674 | #undef HAVE_LDNS | ||
675 | |||
676 | /* Define to 1 if you have the <libaudit.h> header file. */ | ||
677 | #undef HAVE_LIBAUDIT_H | ||
678 | |||
679 | /* Define to 1 if you have the `bsm' library (-lbsm). */ | ||
680 | #undef HAVE_LIBBSM | ||
681 | |||
682 | /* Define to 1 if you have the `crypt' library (-lcrypt). */ | ||
683 | #undef HAVE_LIBCRYPT | ||
684 | |||
685 | /* Define to 1 if you have the `dl' library (-ldl). */ | ||
686 | #undef HAVE_LIBDL | ||
687 | |||
688 | /* Define to 1 if you have the <libgen.h> header file. */ | ||
689 | #undef HAVE_LIBGEN_H | ||
690 | |||
691 | /* Define if system has libiaf that supports set_id */ | ||
692 | #undef HAVE_LIBIAF | ||
693 | |||
694 | /* Define to 1 if you have the `network' library (-lnetwork). */ | ||
695 | #undef HAVE_LIBNETWORK | ||
696 | |||
697 | /* Define to 1 if you have the `nsl' library (-lnsl). */ | ||
698 | #undef HAVE_LIBNSL | ||
699 | |||
700 | /* Define to 1 if you have the `pam' library (-lpam). */ | ||
701 | #undef HAVE_LIBPAM | ||
702 | |||
703 | /* Define to 1 if you have the `socket' library (-lsocket). */ | ||
704 | #undef HAVE_LIBSOCKET | ||
705 | |||
706 | /* Define to 1 if you have the <libutil.h> header file. */ | ||
707 | #undef HAVE_LIBUTIL_H | ||
708 | |||
709 | /* Define to 1 if you have the `xnet' library (-lxnet). */ | ||
710 | #undef HAVE_LIBXNET | ||
711 | |||
712 | /* Define to 1 if you have the `z' library (-lz). */ | ||
713 | #undef HAVE_LIBZ | ||
714 | |||
715 | /* Define to 1 if you have the <limits.h> header file. */ | ||
716 | #undef HAVE_LIMITS_H | ||
717 | |||
718 | /* Define to 1 if you have the <linux/audit.h> header file. */ | ||
719 | #undef HAVE_LINUX_AUDIT_H | ||
720 | |||
721 | /* Define to 1 if you have the <linux/filter.h> header file. */ | ||
722 | #undef HAVE_LINUX_FILTER_H | ||
723 | |||
724 | /* Define to 1 if you have the <linux/if_tun.h> header file. */ | ||
725 | #undef HAVE_LINUX_IF_TUN_H | ||
726 | |||
727 | /* Define to 1 if you have the <linux/seccomp.h> header file. */ | ||
728 | #undef HAVE_LINUX_SECCOMP_H | ||
729 | |||
730 | /* Define to 1 if you have the <locale.h> header file. */ | ||
731 | #undef HAVE_LOCALE_H | ||
732 | |||
733 | /* Define to 1 if you have the `login' function. */ | ||
734 | #undef HAVE_LOGIN | ||
735 | |||
736 | /* Define to 1 if you have the <login_cap.h> header file. */ | ||
737 | #undef HAVE_LOGIN_CAP_H | ||
738 | |||
739 | /* Define to 1 if you have the `login_getcapbool' function. */ | ||
740 | #undef HAVE_LOGIN_GETCAPBOOL | ||
741 | |||
742 | /* Define to 1 if you have the <login.h> header file. */ | ||
743 | #undef HAVE_LOGIN_H | ||
744 | |||
745 | /* Define to 1 if you have the `logout' function. */ | ||
746 | #undef HAVE_LOGOUT | ||
747 | |||
748 | /* Define to 1 if you have the `logwtmp' function. */ | ||
749 | #undef HAVE_LOGWTMP | ||
750 | |||
751 | /* Define to 1 if the system has the type `long double'. */ | ||
752 | #undef HAVE_LONG_DOUBLE | ||
753 | |||
754 | /* Define to 1 if the system has the type `long long'. */ | ||
755 | #undef HAVE_LONG_LONG | ||
756 | |||
757 | /* Define to 1 if you have the <maillock.h> header file. */ | ||
758 | #undef HAVE_MAILLOCK_H | ||
759 | |||
760 | /* Define to 1 if you have the `mblen' function. */ | ||
761 | #undef HAVE_MBLEN | ||
762 | |||
763 | /* Define to 1 if you have the `md5_crypt' function. */ | ||
764 | #undef HAVE_MD5_CRYPT | ||
765 | |||
766 | /* Define if you want to allow MD5 passwords */ | ||
767 | #undef HAVE_MD5_PASSWORDS | ||
768 | |||
769 | /* Define to 1 if you have the `memmove' function. */ | ||
770 | #undef HAVE_MEMMOVE | ||
771 | |||
772 | /* Define to 1 if you have the <memory.h> header file. */ | ||
773 | #undef HAVE_MEMORY_H | ||
774 | |||
775 | /* Define to 1 if you have the `memset_s' function. */ | ||
776 | #undef HAVE_MEMSET_S | ||
777 | |||
778 | /* Define to 1 if you have the `mkdtemp' function. */ | ||
779 | #undef HAVE_MKDTEMP | ||
780 | |||
781 | /* Define to 1 if you have the `mmap' function. */ | ||
782 | #undef HAVE_MMAP | ||
783 | |||
784 | /* define if you have mode_t data type */ | ||
785 | #undef HAVE_MODE_T | ||
786 | |||
787 | /* Some systems put nanosleep outside of libc */ | ||
788 | #undef HAVE_NANOSLEEP | ||
789 | |||
790 | /* Define to 1 if you have the <ndir.h> header file. */ | ||
791 | #undef HAVE_NDIR_H | ||
792 | |||
793 | /* Define to 1 if you have the <netdb.h> header file. */ | ||
794 | #undef HAVE_NETDB_H | ||
795 | |||
796 | /* Define to 1 if you have the <netgroup.h> header file. */ | ||
797 | #undef HAVE_NETGROUP_H | ||
798 | |||
799 | /* Define to 1 if you have the <net/if_tun.h> header file. */ | ||
800 | #undef HAVE_NET_IF_TUN_H | ||
801 | |||
802 | /* Define if you are on NeXT */ | ||
803 | #undef HAVE_NEXT | ||
804 | |||
805 | /* Define to 1 if you have the `ngetaddrinfo' function. */ | ||
806 | #undef HAVE_NGETADDRINFO | ||
807 | |||
808 | /* Define to 1 if you have the `nsleep' function. */ | ||
809 | #undef HAVE_NSLEEP | ||
810 | |||
811 | /* Define to 1 if you have the `ogetaddrinfo' function. */ | ||
812 | #undef HAVE_OGETADDRINFO | ||
813 | |||
814 | /* Define if you have an old version of PAM which takes only one argument to | ||
815 | pam_strerror */ | ||
816 | #undef HAVE_OLD_PAM | ||
817 | |||
818 | /* Define to 1 if you have the `openlog_r' function. */ | ||
819 | #undef HAVE_OPENLOG_R | ||
820 | |||
821 | /* Define to 1 if you have the `openpty' function. */ | ||
822 | #undef HAVE_OPENPTY | ||
823 | |||
824 | /* Define if your ssl headers are included with #include <openssl/header.h> */ | ||
825 | #undef HAVE_OPENSSL | ||
826 | |||
827 | /* Define if you have Digital Unix Security Integration Architecture */ | ||
828 | #undef HAVE_OSF_SIA | ||
829 | |||
830 | /* Define to 1 if you have the `pam_getenvlist' function. */ | ||
831 | #undef HAVE_PAM_GETENVLIST | ||
832 | |||
833 | /* Define to 1 if you have the <pam/pam_appl.h> header file. */ | ||
834 | #undef HAVE_PAM_PAM_APPL_H | ||
835 | |||
836 | /* Define to 1 if you have the `pam_putenv' function. */ | ||
837 | #undef HAVE_PAM_PUTENV | ||
838 | |||
839 | /* Define to 1 if you have the <paths.h> header file. */ | ||
840 | #undef HAVE_PATHS_H | ||
841 | |||
842 | /* Define if you have ut_pid in utmp.h */ | ||
843 | #undef HAVE_PID_IN_UTMP | ||
844 | |||
845 | /* define if you have pid_t data type */ | ||
846 | #undef HAVE_PID_T | ||
847 | |||
848 | /* Define to 1 if you have the `poll' function. */ | ||
849 | #undef HAVE_POLL | ||
850 | |||
851 | /* Define to 1 if you have the <poll.h> header file. */ | ||
852 | #undef HAVE_POLL_H | ||
853 | |||
854 | /* Define to 1 if you have the `prctl' function. */ | ||
855 | #undef HAVE_PRCTL | ||
856 | |||
857 | /* Define if you have /proc/$pid/fd */ | ||
858 | #undef HAVE_PROC_PID | ||
859 | |||
860 | /* Define to 1 if you have the `pstat' function. */ | ||
861 | #undef HAVE_PSTAT | ||
862 | |||
863 | /* Define to 1 if you have the <pty.h> header file. */ | ||
864 | #undef HAVE_PTY_H | ||
865 | |||
866 | /* Define to 1 if you have the `pututline' function. */ | ||
867 | #undef HAVE_PUTUTLINE | ||
868 | |||
869 | /* Define to 1 if you have the `pututxline' function. */ | ||
870 | #undef HAVE_PUTUTXLINE | ||
871 | |||
872 | /* Define to 1 if you have the `readpassphrase' function. */ | ||
873 | #undef HAVE_READPASSPHRASE | ||
874 | |||
875 | /* Define to 1 if you have the <readpassphrase.h> header file. */ | ||
876 | #undef HAVE_READPASSPHRASE_H | ||
877 | |||
878 | /* Define to 1 if you have the `reallocarray' function. */ | ||
879 | #undef HAVE_REALLOCARRAY | ||
880 | |||
881 | /* Define to 1 if you have the `realpath' function. */ | ||
882 | #undef HAVE_REALPATH | ||
883 | |||
884 | /* Define to 1 if you have the `recvmsg' function. */ | ||
885 | #undef HAVE_RECVMSG | ||
886 | |||
887 | /* sys/resource.h has RLIMIT_NPROC */ | ||
888 | #undef HAVE_RLIMIT_NPROC | ||
889 | |||
890 | /* Define to 1 if you have the <rpc/types.h> header file. */ | ||
891 | #undef HAVE_RPC_TYPES_H | ||
892 | |||
893 | /* Define to 1 if you have the `rresvport_af' function. */ | ||
894 | #undef HAVE_RRESVPORT_AF | ||
895 | |||
896 | /* Define to 1 if you have the `RSA_generate_key_ex' function. */ | ||
897 | #undef HAVE_RSA_GENERATE_KEY_EX | ||
898 | |||
899 | /* Define to 1 if you have the `RSA_get_default_method' function. */ | ||
900 | #undef HAVE_RSA_GET_DEFAULT_METHOD | ||
901 | |||
902 | /* Define to 1 if you have the <sandbox.h> header file. */ | ||
903 | #undef HAVE_SANDBOX_H | ||
904 | |||
905 | /* Define to 1 if you have the `sandbox_init' function. */ | ||
906 | #undef HAVE_SANDBOX_INIT | ||
907 | |||
908 | /* define if you have sa_family_t data type */ | ||
909 | #undef HAVE_SA_FAMILY_T | ||
910 | |||
911 | /* Define to 1 if you have the `scan_scaled' function. */ | ||
912 | #undef HAVE_SCAN_SCALED | ||
913 | |||
914 | /* Define if you have SecureWare-based protected password database */ | ||
915 | #undef HAVE_SECUREWARE | ||
916 | |||
917 | /* Define to 1 if you have the <security/pam_appl.h> header file. */ | ||
918 | #undef HAVE_SECURITY_PAM_APPL_H | ||
919 | |||
920 | /* Define to 1 if you have the `sendmsg' function. */ | ||
921 | #undef HAVE_SENDMSG | ||
922 | |||
923 | /* Define to 1 if you have the `setauthdb' function. */ | ||
924 | #undef HAVE_SETAUTHDB | ||
925 | |||
926 | /* Define to 1 if you have the `setdtablesize' function. */ | ||
927 | #undef HAVE_SETDTABLESIZE | ||
928 | |||
929 | /* Define to 1 if you have the `setegid' function. */ | ||
930 | #undef HAVE_SETEGID | ||
931 | |||
932 | /* Define to 1 if you have the `setenv' function. */ | ||
933 | #undef HAVE_SETENV | ||
934 | |||
935 | /* Define to 1 if you have the `seteuid' function. */ | ||
936 | #undef HAVE_SETEUID | ||
937 | |||
938 | /* Define to 1 if you have the `setgroupent' function. */ | ||
939 | #undef HAVE_SETGROUPENT | ||
940 | |||
941 | /* Define to 1 if you have the `setgroups' function. */ | ||
942 | #undef HAVE_SETGROUPS | ||
943 | |||
944 | /* Define to 1 if you have the `setlinebuf' function. */ | ||
945 | #undef HAVE_SETLINEBUF | ||
946 | |||
947 | /* Define to 1 if you have the `setlogin' function. */ | ||
948 | #undef HAVE_SETLOGIN | ||
949 | |||
950 | /* Define to 1 if you have the `setluid' function. */ | ||
951 | #undef HAVE_SETLUID | ||
952 | |||
953 | /* Define to 1 if you have the `setpassent' function. */ | ||
954 | #undef HAVE_SETPASSENT | ||
955 | |||
956 | /* Define to 1 if you have the `setpcred' function. */ | ||
957 | #undef HAVE_SETPCRED | ||
958 | |||
959 | /* Define to 1 if you have the `setproctitle' function. */ | ||
960 | #undef HAVE_SETPROCTITLE | ||
961 | |||
962 | /* Define to 1 if you have the `setregid' function. */ | ||
963 | #undef HAVE_SETREGID | ||
964 | |||
965 | /* Define to 1 if you have the `setresgid' function. */ | ||
966 | #undef HAVE_SETRESGID | ||
967 | |||
968 | /* Define to 1 if you have the `setresuid' function. */ | ||
969 | #undef HAVE_SETRESUID | ||
970 | |||
971 | /* Define to 1 if you have the `setreuid' function. */ | ||
972 | #undef HAVE_SETREUID | ||
973 | |||
974 | /* Define to 1 if you have the `setrlimit' function. */ | ||
975 | #undef HAVE_SETRLIMIT | ||
976 | |||
977 | /* Define to 1 if you have the `setsid' function. */ | ||
978 | #undef HAVE_SETSID | ||
979 | |||
980 | /* Define to 1 if you have the `setutent' function. */ | ||
981 | #undef HAVE_SETUTENT | ||
982 | |||
983 | /* Define to 1 if you have the `setutxdb' function. */ | ||
984 | #undef HAVE_SETUTXDB | ||
985 | |||
986 | /* Define to 1 if you have the `setutxent' function. */ | ||
987 | #undef HAVE_SETUTXENT | ||
988 | |||
989 | /* Define to 1 if you have the `setvbuf' function. */ | ||
990 | #undef HAVE_SETVBUF | ||
991 | |||
992 | /* Define to 1 if you have the `set_id' function. */ | ||
993 | #undef HAVE_SET_ID | ||
994 | |||
995 | /* Define to 1 if you have the `SHA256_Update' function. */ | ||
996 | #undef HAVE_SHA256_UPDATE | ||
997 | |||
998 | /* Define to 1 if you have the <sha2.h> header file. */ | ||
999 | #undef HAVE_SHA2_H | ||
1000 | |||
1001 | /* Define to 1 if you have the <shadow.h> header file. */ | ||
1002 | #undef HAVE_SHADOW_H | ||
1003 | |||
1004 | /* Define to 1 if you have the `sigaction' function. */ | ||
1005 | #undef HAVE_SIGACTION | ||
1006 | |||
1007 | /* Define to 1 if you have the `sigvec' function. */ | ||
1008 | #undef HAVE_SIGVEC | ||
1009 | |||
1010 | /* Define to 1 if the system has the type `sig_atomic_t'. */ | ||
1011 | #undef HAVE_SIG_ATOMIC_T | ||
1012 | |||
1013 | /* define if you have size_t data type */ | ||
1014 | #undef HAVE_SIZE_T | ||
1015 | |||
1016 | /* Define to 1 if you have the `snprintf' function. */ | ||
1017 | #undef HAVE_SNPRINTF | ||
1018 | |||
1019 | /* Define to 1 if you have the `socketpair' function. */ | ||
1020 | #undef HAVE_SOCKETPAIR | ||
1021 | |||
1022 | /* Have PEERCRED socket option */ | ||
1023 | #undef HAVE_SO_PEERCRED | ||
1024 | |||
1025 | /* define if you have ssize_t data type */ | ||
1026 | #undef HAVE_SSIZE_T | ||
1027 | |||
1028 | /* Fields in struct sockaddr_storage */ | ||
1029 | #undef HAVE_SS_FAMILY_IN_SS | ||
1030 | |||
1031 | /* Define to 1 if you have the `statfs' function. */ | ||
1032 | #undef HAVE_STATFS | ||
1033 | |||
1034 | /* Define to 1 if you have the `statvfs' function. */ | ||
1035 | #undef HAVE_STATVFS | ||
1036 | |||
1037 | /* Define to 1 if you have the <stddef.h> header file. */ | ||
1038 | #undef HAVE_STDDEF_H | ||
1039 | |||
1040 | /* Define to 1 if you have the <stdint.h> header file. */ | ||
1041 | #undef HAVE_STDINT_H | ||
1042 | |||
1043 | /* Define to 1 if you have the <stdlib.h> header file. */ | ||
1044 | #undef HAVE_STDLIB_H | ||
1045 | |||
1046 | /* Define to 1 if you have the `strdup' function. */ | ||
1047 | #undef HAVE_STRDUP | ||
1048 | |||
1049 | /* Define to 1 if you have the `strerror' function. */ | ||
1050 | #undef HAVE_STRERROR | ||
1051 | |||
1052 | /* Define to 1 if you have the `strftime' function. */ | ||
1053 | #undef HAVE_STRFTIME | ||
1054 | |||
1055 | /* Silly mkstemp() */ | ||
1056 | #undef HAVE_STRICT_MKSTEMP | ||
1057 | |||
1058 | /* Define to 1 if you have the <strings.h> header file. */ | ||
1059 | #undef HAVE_STRINGS_H | ||
1060 | |||
1061 | /* Define to 1 if you have the <string.h> header file. */ | ||
1062 | #undef HAVE_STRING_H | ||
1063 | |||
1064 | /* Define to 1 if you have the `strlcat' function. */ | ||
1065 | #undef HAVE_STRLCAT | ||
1066 | |||
1067 | /* Define to 1 if you have the `strlcpy' function. */ | ||
1068 | #undef HAVE_STRLCPY | ||
1069 | |||
1070 | /* Define to 1 if you have the `strmode' function. */ | ||
1071 | #undef HAVE_STRMODE | ||
1072 | |||
1073 | /* Define to 1 if you have the `strnlen' function. */ | ||
1074 | #undef HAVE_STRNLEN | ||
1075 | |||
1076 | /* Define to 1 if you have the `strnvis' function. */ | ||
1077 | #undef HAVE_STRNVIS | ||
1078 | |||
1079 | /* Define to 1 if you have the `strptime' function. */ | ||
1080 | #undef HAVE_STRPTIME | ||
1081 | |||
1082 | /* Define to 1 if you have the `strsep' function. */ | ||
1083 | #undef HAVE_STRSEP | ||
1084 | |||
1085 | /* Define to 1 if you have the `strtoll' function. */ | ||
1086 | #undef HAVE_STRTOLL | ||
1087 | |||
1088 | /* Define to 1 if you have the `strtonum' function. */ | ||
1089 | #undef HAVE_STRTONUM | ||
1090 | |||
1091 | /* Define to 1 if you have the `strtoul' function. */ | ||
1092 | #undef HAVE_STRTOUL | ||
1093 | |||
1094 | /* Define to 1 if you have the `strtoull' function. */ | ||
1095 | #undef HAVE_STRTOULL | ||
1096 | |||
1097 | /* define if you have struct addrinfo data type */ | ||
1098 | #undef HAVE_STRUCT_ADDRINFO | ||
1099 | |||
1100 | /* define if you have struct in6_addr data type */ | ||
1101 | #undef HAVE_STRUCT_IN6_ADDR | ||
1102 | |||
1103 | /* Define to 1 if `pw_change' is member of `struct passwd'. */ | ||
1104 | #undef HAVE_STRUCT_PASSWD_PW_CHANGE | ||
1105 | |||
1106 | /* Define to 1 if `pw_class' is member of `struct passwd'. */ | ||
1107 | #undef HAVE_STRUCT_PASSWD_PW_CLASS | ||
1108 | |||
1109 | /* Define to 1 if `pw_expire' is member of `struct passwd'. */ | ||
1110 | #undef HAVE_STRUCT_PASSWD_PW_EXPIRE | ||
1111 | |||
1112 | /* Define to 1 if `pw_gecos' is member of `struct passwd'. */ | ||
1113 | #undef HAVE_STRUCT_PASSWD_PW_GECOS | ||
1114 | |||
1115 | /* define if you have struct sockaddr_in6 data type */ | ||
1116 | #undef HAVE_STRUCT_SOCKADDR_IN6 | ||
1117 | |||
1118 | /* Define to 1 if `sin6_scope_id' is member of `struct sockaddr_in6'. */ | ||
1119 | #undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID | ||
1120 | |||
1121 | /* define if you have struct sockaddr_storage data type */ | ||
1122 | #undef HAVE_STRUCT_SOCKADDR_STORAGE | ||
1123 | |||
1124 | /* Define to 1 if `st_blksize' is member of `struct stat'. */ | ||
1125 | #undef HAVE_STRUCT_STAT_ST_BLKSIZE | ||
1126 | |||
1127 | /* Define to 1 if the system has the type `struct timespec'. */ | ||
1128 | #undef HAVE_STRUCT_TIMESPEC | ||
1129 | |||
1130 | /* define if you have struct timeval */ | ||
1131 | #undef HAVE_STRUCT_TIMEVAL | ||
1132 | |||
1133 | /* Define to 1 if you have the `swap32' function. */ | ||
1134 | #undef HAVE_SWAP32 | ||
1135 | |||
1136 | /* Define to 1 if you have the `sysconf' function. */ | ||
1137 | #undef HAVE_SYSCONF | ||
1138 | |||
1139 | /* Define if you have syslen in utmpx.h */ | ||
1140 | #undef HAVE_SYSLEN_IN_UTMPX | ||
1141 | |||
1142 | /* Define to 1 if you have the <sys/audit.h> header file. */ | ||
1143 | #undef HAVE_SYS_AUDIT_H | ||
1144 | |||
1145 | /* Define to 1 if you have the <sys/bitypes.h> header file. */ | ||
1146 | #undef HAVE_SYS_BITYPES_H | ||
1147 | |||
1148 | /* Define to 1 if you have the <sys/bsdtty.h> header file. */ | ||
1149 | #undef HAVE_SYS_BSDTTY_H | ||
1150 | |||
1151 | /* Define to 1 if you have the <sys/capability.h> header file. */ | ||
1152 | #undef HAVE_SYS_CAPABILITY_H | ||
1153 | |||
1154 | /* Define to 1 if you have the <sys/cdefs.h> header file. */ | ||
1155 | #undef HAVE_SYS_CDEFS_H | ||
1156 | |||
1157 | /* Define to 1 if you have the <sys/dir.h> header file. */ | ||
1158 | #undef HAVE_SYS_DIR_H | ||
1159 | |||
1160 | /* Define if your system defines sys_errlist[] */ | ||
1161 | #undef HAVE_SYS_ERRLIST | ||
1162 | |||
1163 | /* Define to 1 if you have the <sys/mman.h> header file. */ | ||
1164 | #undef HAVE_SYS_MMAN_H | ||
1165 | |||
1166 | /* Define to 1 if you have the <sys/mount.h> header file. */ | ||
1167 | #undef HAVE_SYS_MOUNT_H | ||
1168 | |||
1169 | /* Define to 1 if you have the <sys/ndir.h> header file. */ | ||
1170 | #undef HAVE_SYS_NDIR_H | ||
1171 | |||
1172 | /* Define if your system defines sys_nerr */ | ||
1173 | #undef HAVE_SYS_NERR | ||
1174 | |||
1175 | /* Define to 1 if you have the <sys/poll.h> header file. */ | ||
1176 | #undef HAVE_SYS_POLL_H | ||
1177 | |||
1178 | /* Define to 1 if you have the <sys/prctl.h> header file. */ | ||
1179 | #undef HAVE_SYS_PRCTL_H | ||
1180 | |||
1181 | /* Define to 1 if you have the <sys/pstat.h> header file. */ | ||
1182 | #undef HAVE_SYS_PSTAT_H | ||
1183 | |||
1184 | /* Define to 1 if you have the <sys/ptms.h> header file. */ | ||
1185 | #undef HAVE_SYS_PTMS_H | ||
1186 | |||
1187 | /* Define to 1 if you have the <sys/select.h> header file. */ | ||
1188 | #undef HAVE_SYS_SELECT_H | ||
1189 | |||
1190 | /* Define to 1 if you have the <sys/statvfs.h> header file. */ | ||
1191 | #undef HAVE_SYS_STATVFS_H | ||
1192 | |||
1193 | /* Define to 1 if you have the <sys/stat.h> header file. */ | ||
1194 | #undef HAVE_SYS_STAT_H | ||
1195 | |||
1196 | /* Define to 1 if you have the <sys/stream.h> header file. */ | ||
1197 | #undef HAVE_SYS_STREAM_H | ||
1198 | |||
1199 | /* Define to 1 if you have the <sys/stropts.h> header file. */ | ||
1200 | #undef HAVE_SYS_STROPTS_H | ||
1201 | |||
1202 | /* Define to 1 if you have the <sys/strtio.h> header file. */ | ||
1203 | #undef HAVE_SYS_STRTIO_H | ||
1204 | |||
1205 | /* Force use of sys/syslog.h on Ultrix */ | ||
1206 | #undef HAVE_SYS_SYSLOG_H | ||
1207 | |||
1208 | /* Define to 1 if you have the <sys/sysmacros.h> header file. */ | ||
1209 | #undef HAVE_SYS_SYSMACROS_H | ||
1210 | |||
1211 | /* Define to 1 if you have the <sys/timers.h> header file. */ | ||
1212 | #undef HAVE_SYS_TIMERS_H | ||
1213 | |||
1214 | /* Define to 1 if you have the <sys/time.h> header file. */ | ||
1215 | #undef HAVE_SYS_TIME_H | ||
1216 | |||
1217 | /* Define to 1 if you have the <sys/types.h> header file. */ | ||
1218 | #undef HAVE_SYS_TYPES_H | ||
1219 | |||
1220 | /* Define to 1 if you have the <sys/un.h> header file. */ | ||
1221 | #undef HAVE_SYS_UN_H | ||
1222 | |||
1223 | /* Define to 1 if you have the `tcgetpgrp' function. */ | ||
1224 | #undef HAVE_TCGETPGRP | ||
1225 | |||
1226 | /* Define to 1 if you have the `tcsendbreak' function. */ | ||
1227 | #undef HAVE_TCSENDBREAK | ||
1228 | |||
1229 | /* Define to 1 if you have the `time' function. */ | ||
1230 | #undef HAVE_TIME | ||
1231 | |||
1232 | /* Define to 1 if you have the <time.h> header file. */ | ||
1233 | #undef HAVE_TIME_H | ||
1234 | |||
1235 | /* Define if you have ut_time in utmp.h */ | ||
1236 | #undef HAVE_TIME_IN_UTMP | ||
1237 | |||
1238 | /* Define if you have ut_time in utmpx.h */ | ||
1239 | #undef HAVE_TIME_IN_UTMPX | ||
1240 | |||
1241 | /* Define to 1 if you have the `timingsafe_bcmp' function. */ | ||
1242 | #undef HAVE_TIMINGSAFE_BCMP | ||
1243 | |||
1244 | /* Define to 1 if you have the <tmpdir.h> header file. */ | ||
1245 | #undef HAVE_TMPDIR_H | ||
1246 | |||
1247 | /* Define to 1 if you have the `truncate' function. */ | ||
1248 | #undef HAVE_TRUNCATE | ||
1249 | |||
1250 | /* Define to 1 if you have the <ttyent.h> header file. */ | ||
1251 | #undef HAVE_TTYENT_H | ||
1252 | |||
1253 | /* Define if you have ut_tv in utmp.h */ | ||
1254 | #undef HAVE_TV_IN_UTMP | ||
1255 | |||
1256 | /* Define if you have ut_tv in utmpx.h */ | ||
1257 | #undef HAVE_TV_IN_UTMPX | ||
1258 | |||
1259 | /* Define if you have ut_type in utmp.h */ | ||
1260 | #undef HAVE_TYPE_IN_UTMP | ||
1261 | |||
1262 | /* Define if you have ut_type in utmpx.h */ | ||
1263 | #undef HAVE_TYPE_IN_UTMPX | ||
1264 | |||
1265 | /* Define to 1 if you have the <ucred.h> header file. */ | ||
1266 | #undef HAVE_UCRED_H | ||
1267 | |||
1268 | /* Define to 1 if the system has the type `uintmax_t'. */ | ||
1269 | #undef HAVE_UINTMAX_T | ||
1270 | |||
1271 | /* define if you have uintxx_t data type */ | ||
1272 | #undef HAVE_UINTXX_T | ||
1273 | |||
1274 | /* Define to 1 if you have the <unistd.h> header file. */ | ||
1275 | #undef HAVE_UNISTD_H | ||
1276 | |||
1277 | /* Define to 1 if you have the `unsetenv' function. */ | ||
1278 | #undef HAVE_UNSETENV | ||
1279 | |||
1280 | /* Define to 1 if the system has the type `unsigned long long'. */ | ||
1281 | #undef HAVE_UNSIGNED_LONG_LONG | ||
1282 | |||
1283 | /* Define to 1 if you have the `updwtmp' function. */ | ||
1284 | #undef HAVE_UPDWTMP | ||
1285 | |||
1286 | /* Define to 1 if you have the `updwtmpx' function. */ | ||
1287 | #undef HAVE_UPDWTMPX | ||
1288 | |||
1289 | /* Define to 1 if you have the <usersec.h> header file. */ | ||
1290 | #undef HAVE_USERSEC_H | ||
1291 | |||
1292 | /* Define to 1 if you have the `user_from_uid' function. */ | ||
1293 | #undef HAVE_USER_FROM_UID | ||
1294 | |||
1295 | /* Define to 1 if you have the `usleep' function. */ | ||
1296 | #undef HAVE_USLEEP | ||
1297 | |||
1298 | /* Define to 1 if you have the <util.h> header file. */ | ||
1299 | #undef HAVE_UTIL_H | ||
1300 | |||
1301 | /* Define to 1 if you have the `utimes' function. */ | ||
1302 | #undef HAVE_UTIMES | ||
1303 | |||
1304 | /* Define to 1 if you have the <utime.h> header file. */ | ||
1305 | #undef HAVE_UTIME_H | ||
1306 | |||
1307 | /* Define to 1 if you have the `utmpname' function. */ | ||
1308 | #undef HAVE_UTMPNAME | ||
1309 | |||
1310 | /* Define to 1 if you have the `utmpxname' function. */ | ||
1311 | #undef HAVE_UTMPXNAME | ||
1312 | |||
1313 | /* Define to 1 if you have the <utmpx.h> header file. */ | ||
1314 | #undef HAVE_UTMPX_H | ||
1315 | |||
1316 | /* Define to 1 if you have the <utmp.h> header file. */ | ||
1317 | #undef HAVE_UTMP_H | ||
1318 | |||
1319 | /* define if you have u_char data type */ | ||
1320 | #undef HAVE_U_CHAR | ||
1321 | |||
1322 | /* define if you have u_int data type */ | ||
1323 | #undef HAVE_U_INT | ||
1324 | |||
1325 | /* define if you have u_int64_t data type */ | ||
1326 | #undef HAVE_U_INT64_T | ||
1327 | |||
1328 | /* define if you have u_intxx_t data type */ | ||
1329 | #undef HAVE_U_INTXX_T | ||
1330 | |||
1331 | /* Define to 1 if you have the `vasprintf' function. */ | ||
1332 | #undef HAVE_VASPRINTF | ||
1333 | |||
1334 | /* Define if va_copy exists */ | ||
1335 | #undef HAVE_VA_COPY | ||
1336 | |||
1337 | /* Define to 1 if you have the <vis.h> header file. */ | ||
1338 | #undef HAVE_VIS_H | ||
1339 | |||
1340 | /* Define to 1 if you have the `vsnprintf' function. */ | ||
1341 | #undef HAVE_VSNPRINTF | ||
1342 | |||
1343 | /* Define to 1 if you have the `waitpid' function. */ | ||
1344 | #undef HAVE_WAITPID | ||
1345 | |||
1346 | /* Define to 1 if you have the `_getlong' function. */ | ||
1347 | #undef HAVE__GETLONG | ||
1348 | |||
1349 | /* Define to 1 if you have the `_getpty' function. */ | ||
1350 | #undef HAVE__GETPTY | ||
1351 | |||
1352 | /* Define to 1 if you have the `_getshort' function. */ | ||
1353 | #undef HAVE__GETSHORT | ||
1354 | |||
1355 | /* Define if you have struct __res_state _res as an extern */ | ||
1356 | #undef HAVE__RES_EXTERN | ||
1357 | |||
1358 | /* Define to 1 if you have the `__b64_ntop' function. */ | ||
1359 | #undef HAVE___B64_NTOP | ||
1360 | |||
1361 | /* Define to 1 if you have the `__b64_pton' function. */ | ||
1362 | #undef HAVE___B64_PTON | ||
1363 | |||
1364 | /* Define if compiler implements __FUNCTION__ */ | ||
1365 | #undef HAVE___FUNCTION__ | ||
1366 | |||
1367 | /* Define if libc defines __progname */ | ||
1368 | #undef HAVE___PROGNAME | ||
1369 | |||
1370 | /* Fields in struct sockaddr_storage */ | ||
1371 | #undef HAVE___SS_FAMILY_IN_SS | ||
1372 | |||
1373 | /* Define if __va_copy exists */ | ||
1374 | #undef HAVE___VA_COPY | ||
1375 | |||
1376 | /* Define if compiler implements __func__ */ | ||
1377 | #undef HAVE___func__ | ||
1378 | |||
1379 | /* Define this if you are using the Heimdal version of Kerberos V5 */ | ||
1380 | #undef HEIMDAL | ||
1381 | |||
1382 | /* Define if you need to use IP address instead of hostname in $DISPLAY */ | ||
1383 | #undef IPADDR_IN_DISPLAY | ||
1384 | |||
1385 | /* Detect IPv4 in IPv6 mapped addresses and treat as IPv4 */ | ||
1386 | #undef IPV4_IN_IPV6 | ||
1387 | |||
1388 | /* Define if your system choked on IP TOS setting */ | ||
1389 | #undef IP_TOS_IS_BROKEN | ||
1390 | |||
1391 | /* Define if you want Kerberos 5 support */ | ||
1392 | #undef KRB5 | ||
1393 | |||
1394 | /* Define if pututxline updates lastlog too */ | ||
1395 | #undef LASTLOG_WRITE_PUTUTXLINE | ||
1396 | |||
1397 | /* Define to whatever link() returns for "not supported" if it doesn't return | ||
1398 | EOPNOTSUPP. */ | ||
1399 | #undef LINK_OPNOTSUPP_ERRNO | ||
1400 | |||
1401 | /* Adjust Linux out-of-memory killer */ | ||
1402 | #undef LINUX_OOM_ADJUST | ||
1403 | |||
1404 | /* max value of long long calculated by configure */ | ||
1405 | #undef LLONG_MAX | ||
1406 | |||
1407 | /* min value of long long calculated by configure */ | ||
1408 | #undef LLONG_MIN | ||
1409 | |||
1410 | /* Account locked with pw(1) */ | ||
1411 | #undef LOCKED_PASSWD_PREFIX | ||
1412 | |||
1413 | /* String used in /etc/passwd to denote locked account */ | ||
1414 | #undef LOCKED_PASSWD_STRING | ||
1415 | |||
1416 | /* String used in /etc/passwd to denote locked account */ | ||
1417 | #undef LOCKED_PASSWD_SUBSTR | ||
1418 | |||
1419 | /* Some versions of /bin/login need the TERM supplied on the commandline */ | ||
1420 | #undef LOGIN_NEEDS_TERM | ||
1421 | |||
1422 | /* Some systems need a utmpx entry for /bin/login to work */ | ||
1423 | #undef LOGIN_NEEDS_UTMPX | ||
1424 | |||
1425 | /* Define if your login program cannot handle end of options ("--") */ | ||
1426 | #undef LOGIN_NO_ENDOPT | ||
1427 | |||
1428 | /* If your header files don't define LOGIN_PROGRAM, then use this (detected) | ||
1429 | from environment and PATH */ | ||
1430 | #undef LOGIN_PROGRAM_FALLBACK | ||
1431 | |||
1432 | /* Set this to your mail directory if you do not have _PATH_MAILDIR */ | ||
1433 | #undef MAIL_DIRECTORY | ||
1434 | |||
1435 | /* Need setpgrp to acquire controlling tty */ | ||
1436 | #undef NEED_SETPGRP | ||
1437 | |||
1438 | /* compiler does not accept __attribute__ on return types */ | ||
1439 | #undef NO_ATTRIBUTE_ON_RETURN_TYPE | ||
1440 | |||
1441 | /* Define if the concept of ports only accessible to superusers isn't known */ | ||
1442 | #undef NO_IPPORT_RESERVED_CONCEPT | ||
1443 | |||
1444 | /* Define if you don't want to use lastlog in session.c */ | ||
1445 | #undef NO_SSH_LASTLOG | ||
1446 | |||
1447 | /* Define if X11 doesn't support AF_UNIX sockets on that system */ | ||
1448 | #undef NO_X11_UNIX_SOCKETS | ||
1449 | |||
1450 | /* Define if EVP_DigestUpdate returns void */ | ||
1451 | #undef OPENSSL_EVP_DIGESTUPDATE_VOID | ||
1452 | |||
1453 | /* OpenSSL has ECC */ | ||
1454 | #undef OPENSSL_HAS_ECC | ||
1455 | |||
1456 | /* libcrypto has NID_X9_62_prime256v1 */ | ||
1457 | #undef OPENSSL_HAS_NISTP256 | ||
1458 | |||
1459 | /* libcrypto has NID_secp384r1 */ | ||
1460 | #undef OPENSSL_HAS_NISTP384 | ||
1461 | |||
1462 | /* libcrypto has NID_secp521r1 */ | ||
1463 | #undef OPENSSL_HAS_NISTP521 | ||
1464 | |||
1465 | /* libcrypto has EVP AES CTR */ | ||
1466 | #undef OPENSSL_HAVE_EVPCTR | ||
1467 | |||
1468 | /* libcrypto has EVP AES GCM */ | ||
1469 | #undef OPENSSL_HAVE_EVPGCM | ||
1470 | |||
1471 | /* libcrypto is missing AES 192 and 256 bit functions */ | ||
1472 | #undef OPENSSL_LOBOTOMISED_AES | ||
1473 | |||
1474 | /* Define if you want the OpenSSL internally seeded PRNG only */ | ||
1475 | #undef OPENSSL_PRNG_ONLY | ||
1476 | |||
1477 | /* Define to the address where bug reports for this package should be sent. */ | ||
1478 | #undef PACKAGE_BUGREPORT | ||
1479 | |||
1480 | /* Define to the full name of this package. */ | ||
1481 | #undef PACKAGE_NAME | ||
1482 | |||
1483 | /* Define to the full name and version of this package. */ | ||
1484 | #undef PACKAGE_STRING | ||
1485 | |||
1486 | /* Define to the one symbol short name of this package. */ | ||
1487 | #undef PACKAGE_TARNAME | ||
1488 | |||
1489 | /* Define to the version of this package. */ | ||
1490 | #undef PACKAGE_VERSION | ||
1491 | |||
1492 | /* Define if you are using Solaris-derived PAM which passes pam_messages to | ||
1493 | the conversation function with an extra level of indirection */ | ||
1494 | #undef PAM_SUN_CODEBASE | ||
1495 | |||
1496 | /* Work around problematic Linux PAM modules handling of PAM_TTY */ | ||
1497 | #undef PAM_TTY_KLUDGE | ||
1498 | |||
1499 | /* must supply username to passwd */ | ||
1500 | #undef PASSWD_NEEDS_USERNAME | ||
1501 | |||
1502 | /* System dirs owned by bin (uid 2) */ | ||
1503 | #undef PLATFORM_SYS_DIR_UID | ||
1504 | |||
1505 | /* Port number of PRNGD/EGD random number socket */ | ||
1506 | #undef PRNGD_PORT | ||
1507 | |||
1508 | /* Location of PRNGD/EGD random number socket */ | ||
1509 | #undef PRNGD_SOCKET | ||
1510 | |||
1511 | /* read(1) can return 0 for a non-closed fd */ | ||
1512 | #undef PTY_ZEROREAD | ||
1513 | |||
1514 | /* Sandbox using capsicum */ | ||
1515 | #undef SANDBOX_CAPSICUM | ||
1516 | |||
1517 | /* Sandbox using Darwin sandbox_init(3) */ | ||
1518 | #undef SANDBOX_DARWIN | ||
1519 | |||
1520 | /* no privsep sandboxing */ | ||
1521 | #undef SANDBOX_NULL | ||
1522 | |||
1523 | /* Sandbox using setrlimit(2) */ | ||
1524 | #undef SANDBOX_RLIMIT | ||
1525 | |||
1526 | /* Sandbox using seccomp filter */ | ||
1527 | #undef SANDBOX_SECCOMP_FILTER | ||
1528 | |||
1529 | /* setrlimit RLIMIT_FSIZE works */ | ||
1530 | #undef SANDBOX_SKIP_RLIMIT_FSIZE | ||
1531 | |||
1532 | /* define if setrlimit RLIMIT_NOFILE breaks things */ | ||
1533 | #undef SANDBOX_SKIP_RLIMIT_NOFILE | ||
1534 | |||
1535 | /* Sandbox using systrace(4) */ | ||
1536 | #undef SANDBOX_SYSTRACE | ||
1537 | |||
1538 | /* Specify the system call convention in use */ | ||
1539 | #undef SECCOMP_AUDIT_ARCH | ||
1540 | |||
1541 | /* Define if your platform breaks doing a seteuid before a setuid */ | ||
1542 | #undef SETEUID_BREAKS_SETUID | ||
1543 | |||
1544 | /* The size of `int', as computed by sizeof. */ | ||
1545 | #undef SIZEOF_INT | ||
1546 | |||
1547 | /* The size of `long int', as computed by sizeof. */ | ||
1548 | #undef SIZEOF_LONG_INT | ||
1549 | |||
1550 | /* The size of `long long int', as computed by sizeof. */ | ||
1551 | #undef SIZEOF_LONG_LONG_INT | ||
1552 | |||
1553 | /* The size of `short int', as computed by sizeof. */ | ||
1554 | #undef SIZEOF_SHORT_INT | ||
1555 | |||
1556 | /* Define if you want S/Key support */ | ||
1557 | #undef SKEY | ||
1558 | |||
1559 | /* Define if your skeychallenge() function takes 4 arguments (NetBSD) */ | ||
1560 | #undef SKEYCHALLENGE_4ARG | ||
1561 | |||
1562 | /* Define as const if snprintf() can declare const char *fmt */ | ||
1563 | #undef SNPRINTF_CONST | ||
1564 | |||
1565 | /* Define to a Set Process Title type if your system is supported by | ||
1566 | bsd-setproctitle.c */ | ||
1567 | #undef SPT_TYPE | ||
1568 | |||
1569 | /* Define if sshd somehow reacquires a controlling TTY after setsid() */ | ||
1570 | #undef SSHD_ACQUIRES_CTTY | ||
1571 | |||
1572 | /* Define if pam_chauthtok wants real uid set to the unpriv'ed user */ | ||
1573 | #undef SSHPAM_CHAUTHTOK_NEEDS_RUID | ||
1574 | |||
1575 | /* Use audit debugging module */ | ||
1576 | #undef SSH_AUDIT_EVENTS | ||
1577 | |||
1578 | /* Windows is sensitive to read buffer size */ | ||
1579 | #undef SSH_IOBUFSZ | ||
1580 | |||
1581 | /* non-privileged user for privilege separation */ | ||
1582 | #undef SSH_PRIVSEP_USER | ||
1583 | |||
1584 | /* Use tunnel device compatibility to OpenBSD */ | ||
1585 | #undef SSH_TUN_COMPAT_AF | ||
1586 | |||
1587 | /* Open tunnel devices the FreeBSD way */ | ||
1588 | #undef SSH_TUN_FREEBSD | ||
1589 | |||
1590 | /* Open tunnel devices the Linux tun/tap way */ | ||
1591 | #undef SSH_TUN_LINUX | ||
1592 | |||
1593 | /* No layer 2 tunnel support */ | ||
1594 | #undef SSH_TUN_NO_L2 | ||
1595 | |||
1596 | /* Open tunnel devices the OpenBSD way */ | ||
1597 | #undef SSH_TUN_OPENBSD | ||
1598 | |||
1599 | /* Prepend the address family to IP tunnel traffic */ | ||
1600 | #undef SSH_TUN_PREPEND_AF | ||
1601 | |||
1602 | /* Define to 1 if you have the ANSI C header files. */ | ||
1603 | #undef STDC_HEADERS | ||
1604 | |||
1605 | /* Define if you want a different $PATH for the superuser */ | ||
1606 | #undef SUPERUSER_PATH | ||
1607 | |||
1608 | /* syslog_r function is safe to use in in a signal handler */ | ||
1609 | #undef SYSLOG_R_SAFE_IN_SIGHAND | ||
1610 | |||
1611 | /* Support passwords > 8 chars */ | ||
1612 | #undef UNIXWARE_LONG_PASSWORDS | ||
1613 | |||
1614 | /* Specify default $PATH */ | ||
1615 | #undef USER_PATH | ||
1616 | |||
1617 | /* Define this if you want to use libkafs' AFS support */ | ||
1618 | #undef USE_AFS | ||
1619 | |||
1620 | /* Use BSM audit module */ | ||
1621 | #undef USE_BSM_AUDIT | ||
1622 | |||
1623 | /* Use btmp to log bad logins */ | ||
1624 | #undef USE_BTMP | ||
1625 | |||
1626 | /* Use libedit for sftp */ | ||
1627 | #undef USE_LIBEDIT | ||
1628 | |||
1629 | /* Use Linux audit module */ | ||
1630 | #undef USE_LINUX_AUDIT | ||
1631 | |||
1632 | /* Enable OpenSSL engine support */ | ||
1633 | #undef USE_OPENSSL_ENGINE | ||
1634 | |||
1635 | /* Define if you want to enable PAM support */ | ||
1636 | #undef USE_PAM | ||
1637 | |||
1638 | /* Use PIPES instead of a socketpair() */ | ||
1639 | #undef USE_PIPES | ||
1640 | |||
1641 | /* Define if you have Solaris process contracts */ | ||
1642 | #undef USE_SOLARIS_PROCESS_CONTRACTS | ||
1643 | |||
1644 | /* Define if you have Solaris projects */ | ||
1645 | #undef USE_SOLARIS_PROJECTS | ||
1646 | |||
1647 | /* Define if you shouldn't strip 'tty' from your ttyname in [uw]tmp */ | ||
1648 | #undef WITH_ABBREV_NO_TTY | ||
1649 | |||
1650 | /* Define if you want to enable AIX4's authenticate function */ | ||
1651 | #undef WITH_AIXAUTHENTICATE | ||
1652 | |||
1653 | /* Define if you have/want arrays (cluster-wide session managment, not C | ||
1654 | arrays) */ | ||
1655 | #undef WITH_IRIX_ARRAY | ||
1656 | |||
1657 | /* Define if you want IRIX audit trails */ | ||
1658 | #undef WITH_IRIX_AUDIT | ||
1659 | |||
1660 | /* Define if you want IRIX kernel jobs */ | ||
1661 | #undef WITH_IRIX_JOBS | ||
1662 | |||
1663 | /* Define if you want IRIX project management */ | ||
1664 | #undef WITH_IRIX_PROJECT | ||
1665 | |||
1666 | /* use libcrypto for cryptography */ | ||
1667 | #undef WITH_OPENSSL | ||
1668 | |||
1669 | /* Define if you want SELinux support. */ | ||
1670 | #undef WITH_SELINUX | ||
1671 | |||
1672 | /* include SSH protocol version 1 support */ | ||
1673 | #undef WITH_SSH1 | ||
1674 | |||
1675 | /* Define to 1 if your processor stores words with the most significant byte | ||
1676 | first (like Motorola and SPARC, unlike Intel and VAX). */ | ||
1677 | #undef WORDS_BIGENDIAN | ||
1678 | |||
1679 | /* Define if xauth is found in your path */ | ||
1680 | #undef XAUTH_PATH | ||
1681 | |||
1682 | /* Number of bits in a file offset, on hosts where this is settable. */ | ||
1683 | #undef _FILE_OFFSET_BITS | ||
1684 | |||
1685 | /* Define for large files, on AIX-style hosts. */ | ||
1686 | #undef _LARGE_FILES | ||
1687 | |||
1688 | /* log for bad login attempts */ | ||
1689 | #undef _PATH_BTMP | ||
1690 | |||
1691 | /* Full path of your "passwd" program */ | ||
1692 | #undef _PATH_PASSWD_PROG | ||
1693 | |||
1694 | /* Specify location of ssh.pid */ | ||
1695 | #undef _PATH_SSH_PIDDIR | ||
1696 | |||
1697 | /* Define if we don't have struct __res_state in resolv.h */ | ||
1698 | #undef __res_state | ||
1699 | |||
1700 | /* Define to `__inline__' or `__inline' if that's what the C compiler | ||
1701 | calls it, or to nothing if 'inline' is not supported under any name. */ | ||
1702 | #ifndef __cplusplus | ||
1703 | #undef inline | ||
1704 | #endif | ||
1705 | |||
1706 | /* type to use in place of socklen_t if not defined */ | ||
1707 | #undef socklen_t | ||
diff --git a/configure b/configure new file mode 100755 index 000000000..803c5bcde --- /dev/null +++ b/configure | |||
@@ -0,0 +1,36697 @@ | |||
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-strip Disable calling strip(1) on install | ||
1309 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
1310 | --disable-lastlog disable use of lastlog even if detected no | ||
1311 | --disable-utmp disable use of utmp even if detected no | ||
1312 | --disable-utmpx disable use of utmpx even if detected no | ||
1313 | --disable-wtmp disable use of wtmp even if detected no | ||
1314 | --disable-wtmpx disable use of wtmpx even if detected no | ||
1315 | --disable-libutil disable use of libutil (login() etc.) no | ||
1316 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
1317 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
1318 | |||
1319 | Optional Packages: | ||
1320 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1321 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1322 | --without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL** | ||
1323 | --without-ssh1 Enable support for SSH protocol 1 | ||
1324 | --without-stackprotect Don't use compiler's stack protection | ||
1325 | --without-hardening Don't use toolchain hardening flags | ||
1326 | --without-rpath Disable auto-added -R linker paths | ||
1327 | --with-cflags Specify additional flags to pass to compiler | ||
1328 | --with-cppflags Specify additional flags to pass to preprocessor | ||
1329 | --with-ldflags Specify additional flags to pass to linker | ||
1330 | --with-libs Specify additional libraries to link with | ||
1331 | --with-Werror Build main code with -Werror | ||
1332 | --with-solaris-contracts Enable Solaris process contracts (experimental) | ||
1333 | --with-solaris-projects Enable Solaris projects (experimental) | ||
1334 | --with-osfsia Enable Digital Unix SIA | ||
1335 | --with-zlib=PATH Use zlib in PATH | ||
1336 | --without-zlib-version-check Disable zlib version check | ||
1337 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | ||
1338 | --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH) | ||
1339 | --with-libedit[=PATH] Enable libedit support for sftp | ||
1340 | --with-audit=module Enable audit support (modules=debug,bsm,linux) | ||
1341 | --with-pie Build Position Independent Executables if possible | ||
1342 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
1343 | --without-openssl-header-check Disable OpenSSL version consistency check | ||
1344 | --with-ssl-engine Enable OpenSSL (hardware) ENGINE support | ||
1345 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
1346 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
1347 | --with-pam Enable PAM support | ||
1348 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
1349 | --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter, capsicum) | ||
1350 | --with-selinux Enable SELinux support | ||
1351 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
1352 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
1353 | --with-xauth=PATH Specify path to xauth program | ||
1354 | --with-maildir=/path/to/mail Specify your system mail directory | ||
1355 | --with-mantype=man|cat|doc Set man page type | ||
1356 | --with-md5-passwords Enable use of MD5 passwords | ||
1357 | --without-shadow Disable shadow password support | ||
1358 | --with-ipaddr-display Use ip address instead of hostname in $DISPLAY | ||
1359 | --with-default-path= Specify default $PATH environment for server | ||
1360 | --with-superuser-path= Specify different path for super-user | ||
1361 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
1362 | --with-bsd-auth Enable BSD auth support | ||
1363 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
1364 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
1365 | |||
1366 | Some influential environment variables: | ||
1367 | CC C compiler command | ||
1368 | CFLAGS C compiler flags | ||
1369 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1370 | nonstandard directory <lib dir> | ||
1371 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1372 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | ||
1373 | you have headers in a nonstandard directory <include dir> | ||
1374 | CPP C preprocessor | ||
1375 | |||
1376 | Use these variables to override the choices made by `configure' or to help | ||
1377 | it to find libraries and programs with nonstandard names/locations. | ||
1378 | |||
1379 | Report bugs to <openssh-unix-dev@mindrot.org>. | ||
1380 | _ACEOF | ||
1381 | ac_status=$? | ||
1382 | fi | ||
1383 | |||
1384 | if test "$ac_init_help" = "recursive"; then | ||
1385 | # If there are subdirs, report their specific --help. | ||
1386 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1387 | test -d "$ac_dir" || continue | ||
1388 | ac_builddir=. | ||
1389 | |||
1390 | case "$ac_dir" in | ||
1391 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1392 | *) | ||
1393 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
1394 | # A ".." for each directory in $ac_dir_suffix. | ||
1395 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
1396 | case $ac_top_builddir_sub in | ||
1397 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1398 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1399 | esac ;; | ||
1400 | esac | ||
1401 | ac_abs_top_builddir=$ac_pwd | ||
1402 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1403 | # for backward compatibility: | ||
1404 | ac_top_builddir=$ac_top_build_prefix | ||
1405 | |||
1406 | case $srcdir in | ||
1407 | .) # We are building in place. | ||
1408 | ac_srcdir=. | ||
1409 | ac_top_srcdir=$ac_top_builddir_sub | ||
1410 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1411 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1412 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1413 | ac_top_srcdir=$srcdir | ||
1414 | ac_abs_top_srcdir=$srcdir ;; | ||
1415 | *) # Relative name. | ||
1416 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1417 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1418 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1419 | esac | ||
1420 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1421 | |||
1422 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1423 | # Check for guested configure. | ||
1424 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1425 | echo && | ||
1426 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1427 | elif test -f "$ac_srcdir/configure"; then | ||
1428 | echo && | ||
1429 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1430 | else | ||
1431 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1432 | fi || ac_status=$? | ||
1433 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1434 | done | ||
1435 | fi | ||
1436 | |||
1437 | test -n "$ac_init_help" && exit $ac_status | ||
1438 | if $ac_init_version; then | ||
1439 | cat <<\_ACEOF | ||
1440 | OpenSSH configure Portable | ||
1441 | generated by GNU Autoconf 2.61 | ||
1442 | |||
1443 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
1444 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
1445 | This configure script is free software; the Free Software Foundation | ||
1446 | gives unlimited permission to copy, distribute and modify it. | ||
1447 | _ACEOF | ||
1448 | exit | ||
1449 | fi | ||
1450 | cat >config.log <<_ACEOF | ||
1451 | This file contains any messages produced by compilers while | ||
1452 | running configure, to aid debugging if configure makes a mistake. | ||
1453 | |||
1454 | It was created by OpenSSH $as_me Portable, which was | ||
1455 | generated by GNU Autoconf 2.61. Invocation command line was | ||
1456 | |||
1457 | $ $0 $@ | ||
1458 | |||
1459 | _ACEOF | ||
1460 | exec 5>>config.log | ||
1461 | { | ||
1462 | cat <<_ASUNAME | ||
1463 | ## --------- ## | ||
1464 | ## Platform. ## | ||
1465 | ## --------- ## | ||
1466 | |||
1467 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1468 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1469 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1470 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1471 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1472 | |||
1473 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1474 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1475 | |||
1476 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1477 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1478 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1479 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
1480 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1481 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1482 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1483 | |||
1484 | _ASUNAME | ||
1485 | |||
1486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1487 | for as_dir in $PATH | ||
1488 | do | ||
1489 | IFS=$as_save_IFS | ||
1490 | test -z "$as_dir" && as_dir=. | ||
1491 | echo "PATH: $as_dir" | ||
1492 | done | ||
1493 | IFS=$as_save_IFS | ||
1494 | |||
1495 | } >&5 | ||
1496 | |||
1497 | cat >&5 <<_ACEOF | ||
1498 | |||
1499 | |||
1500 | ## ----------- ## | ||
1501 | ## Core tests. ## | ||
1502 | ## ----------- ## | ||
1503 | |||
1504 | _ACEOF | ||
1505 | |||
1506 | |||
1507 | # Keep a trace of the command line. | ||
1508 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1509 | # Strip out --silent because we don't want to record it for future runs. | ||
1510 | # Also quote any args containing shell meta-characters. | ||
1511 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1512 | ac_configure_args= | ||
1513 | ac_configure_args0= | ||
1514 | ac_configure_args1= | ||
1515 | ac_must_keep_next=false | ||
1516 | for ac_pass in 1 2 | ||
1517 | do | ||
1518 | for ac_arg | ||
1519 | do | ||
1520 | case $ac_arg in | ||
1521 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1522 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1523 | | -silent | --silent | --silen | --sile | --sil) | ||
1524 | continue ;; | ||
1525 | *\'*) | ||
1526 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1527 | esac | ||
1528 | case $ac_pass in | ||
1529 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1530 | 2) | ||
1531 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1532 | if test $ac_must_keep_next = true; then | ||
1533 | ac_must_keep_next=false # Got value, back to normal. | ||
1534 | else | ||
1535 | case $ac_arg in | ||
1536 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1537 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1538 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1539 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1540 | case "$ac_configure_args0 " in | ||
1541 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1542 | esac | ||
1543 | ;; | ||
1544 | -* ) ac_must_keep_next=true ;; | ||
1545 | esac | ||
1546 | fi | ||
1547 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
1548 | ;; | ||
1549 | esac | ||
1550 | done | ||
1551 | done | ||
1552 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1553 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1554 | |||
1555 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1556 | # config.log. We remove comments because anyway the quotes in there | ||
1557 | # would cause problems or look ugly. | ||
1558 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
1559 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
1560 | trap 'exit_status=$? | ||
1561 | # Save into config.log some information that might help in debugging. | ||
1562 | { | ||
1563 | echo | ||
1564 | |||
1565 | cat <<\_ASBOX | ||
1566 | ## ---------------- ## | ||
1567 | ## Cache variables. ## | ||
1568 | ## ---------------- ## | ||
1569 | _ASBOX | ||
1570 | echo | ||
1571 | # The following way of writing the cache mishandles newlines in values, | ||
1572 | ( | ||
1573 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
1574 | eval ac_val=\$$ac_var | ||
1575 | case $ac_val in #( | ||
1576 | *${as_nl}*) | ||
1577 | case $ac_var in #( | ||
1578 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
1579 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
1580 | esac | ||
1581 | case $ac_var in #( | ||
1582 | _ | IFS | as_nl) ;; #( | ||
1583 | *) $as_unset $ac_var ;; | ||
1584 | esac ;; | ||
1585 | esac | ||
1586 | done | ||
1587 | (set) 2>&1 | | ||
1588 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
1589 | *${as_nl}ac_space=\ *) | ||
1590 | sed -n \ | ||
1591 | "s/'\''/'\''\\\\'\'''\''/g; | ||
1592 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
1593 | ;; #( | ||
1594 | *) | ||
1595 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
1596 | ;; | ||
1597 | esac | | ||
1598 | sort | ||
1599 | ) | ||
1600 | echo | ||
1601 | |||
1602 | cat <<\_ASBOX | ||
1603 | ## ----------------- ## | ||
1604 | ## Output variables. ## | ||
1605 | ## ----------------- ## | ||
1606 | _ASBOX | ||
1607 | echo | ||
1608 | for ac_var in $ac_subst_vars | ||
1609 | do | ||
1610 | eval ac_val=\$$ac_var | ||
1611 | case $ac_val in | ||
1612 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1613 | esac | ||
1614 | echo "$ac_var='\''$ac_val'\''" | ||
1615 | done | sort | ||
1616 | echo | ||
1617 | |||
1618 | if test -n "$ac_subst_files"; then | ||
1619 | cat <<\_ASBOX | ||
1620 | ## ------------------- ## | ||
1621 | ## File substitutions. ## | ||
1622 | ## ------------------- ## | ||
1623 | _ASBOX | ||
1624 | echo | ||
1625 | for ac_var in $ac_subst_files | ||
1626 | do | ||
1627 | eval ac_val=\$$ac_var | ||
1628 | case $ac_val in | ||
1629 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1630 | esac | ||
1631 | echo "$ac_var='\''$ac_val'\''" | ||
1632 | done | sort | ||
1633 | echo | ||
1634 | fi | ||
1635 | |||
1636 | if test -s confdefs.h; then | ||
1637 | cat <<\_ASBOX | ||
1638 | ## ----------- ## | ||
1639 | ## confdefs.h. ## | ||
1640 | ## ----------- ## | ||
1641 | _ASBOX | ||
1642 | echo | ||
1643 | cat confdefs.h | ||
1644 | echo | ||
1645 | fi | ||
1646 | test "$ac_signal" != 0 && | ||
1647 | echo "$as_me: caught signal $ac_signal" | ||
1648 | echo "$as_me: exit $exit_status" | ||
1649 | } >&5 | ||
1650 | rm -f core *.core core.conftest.* && | ||
1651 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
1652 | exit $exit_status | ||
1653 | ' 0 | ||
1654 | for ac_signal in 1 2 13 15; do | ||
1655 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1656 | done | ||
1657 | ac_signal=0 | ||
1658 | |||
1659 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1660 | rm -f -r conftest* confdefs.h | ||
1661 | |||
1662 | # Predefined preprocessor variables. | ||
1663 | |||
1664 | cat >>confdefs.h <<_ACEOF | ||
1665 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1666 | _ACEOF | ||
1667 | |||
1668 | |||
1669 | cat >>confdefs.h <<_ACEOF | ||
1670 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1671 | _ACEOF | ||
1672 | |||
1673 | |||
1674 | cat >>confdefs.h <<_ACEOF | ||
1675 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1676 | _ACEOF | ||
1677 | |||
1678 | |||
1679 | cat >>confdefs.h <<_ACEOF | ||
1680 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1681 | _ACEOF | ||
1682 | |||
1683 | |||
1684 | cat >>confdefs.h <<_ACEOF | ||
1685 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1686 | _ACEOF | ||
1687 | |||
1688 | |||
1689 | # Let the site file select an alternate cache file if it wants to. | ||
1690 | # Prefer explicitly selected file to automatically selected ones. | ||
1691 | if test -n "$CONFIG_SITE"; then | ||
1692 | set x "$CONFIG_SITE" | ||
1693 | elif test "x$prefix" != xNONE; then | ||
1694 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | ||
1695 | else | ||
1696 | set x "$ac_default_prefix/share/config.site" \ | ||
1697 | "$ac_default_prefix/etc/config.site" | ||
1698 | fi | ||
1699 | shift | ||
1700 | for ac_site_file | ||
1701 | do | ||
1702 | if test -r "$ac_site_file"; then | ||
1703 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1704 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1705 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1706 | . "$ac_site_file" | ||
1707 | fi | ||
1708 | done | ||
1709 | |||
1710 | if test -r "$cache_file"; then | ||
1711 | # Some versions of bash will fail to source /dev/null (special | ||
1712 | # files actually), so we avoid doing that. | ||
1713 | if test -f "$cache_file"; then | ||
1714 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1715 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1716 | case $cache_file in | ||
1717 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
1718 | *) . "./$cache_file";; | ||
1719 | esac | ||
1720 | fi | ||
1721 | else | ||
1722 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1723 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1724 | >$cache_file | ||
1725 | fi | ||
1726 | |||
1727 | # Check that the precious variables saved in the cache have kept the same | ||
1728 | # value. | ||
1729 | ac_cache_corrupted=false | ||
1730 | for ac_var in $ac_precious_vars; do | ||
1731 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1732 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1733 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
1734 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
1735 | case $ac_old_set,$ac_new_set in | ||
1736 | set,) | ||
1737 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1738 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1739 | ac_cache_corrupted=: ;; | ||
1740 | ,set) | ||
1741 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1742 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1743 | ac_cache_corrupted=: ;; | ||
1744 | ,);; | ||
1745 | *) | ||
1746 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1747 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1748 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1749 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1750 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1751 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1752 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1753 | ac_cache_corrupted=: | ||
1754 | fi;; | ||
1755 | esac | ||
1756 | # Pass precious variables to config.status. | ||
1757 | if test "$ac_new_set" = set; then | ||
1758 | case $ac_new_val in | ||
1759 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1760 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1761 | esac | ||
1762 | case " $ac_configure_args " in | ||
1763 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1764 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1765 | esac | ||
1766 | fi | ||
1767 | done | ||
1768 | if $ac_cache_corrupted; then | ||
1769 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1770 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1771 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1772 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1773 | { (exit 1); exit 1; }; } | ||
1774 | fi | ||
1775 | |||
1776 | |||
1777 | |||
1778 | |||
1779 | |||
1780 | |||
1781 | |||
1782 | |||
1783 | |||
1784 | |||
1785 | |||
1786 | |||
1787 | |||
1788 | |||
1789 | |||
1790 | |||
1791 | |||
1792 | |||
1793 | |||
1794 | |||
1795 | |||
1796 | |||
1797 | |||
1798 | |||
1799 | |||
1800 | ac_ext=c | ||
1801 | ac_cpp='$CPP $CPPFLAGS' | ||
1802 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1803 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1804 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1805 | |||
1806 | |||
1807 | |||
1808 | |||
1809 | ac_ext=c | ||
1810 | ac_cpp='$CPP $CPPFLAGS' | ||
1811 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1812 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1813 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1814 | |||
1815 | |||
1816 | ac_config_headers="$ac_config_headers config.h" | ||
1817 | |||
1818 | ac_ext=c | ||
1819 | ac_cpp='$CPP $CPPFLAGS' | ||
1820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1823 | if test -n "$ac_tool_prefix"; then | ||
1824 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1825 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1826 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1828 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1830 | else | ||
1831 | if test -n "$CC"; then | ||
1832 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1833 | else | ||
1834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1835 | for as_dir in $PATH | ||
1836 | do | ||
1837 | IFS=$as_save_IFS | ||
1838 | test -z "$as_dir" && as_dir=. | ||
1839 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1841 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1843 | break 2 | ||
1844 | fi | ||
1845 | done | ||
1846 | done | ||
1847 | IFS=$as_save_IFS | ||
1848 | |||
1849 | fi | ||
1850 | fi | ||
1851 | CC=$ac_cv_prog_CC | ||
1852 | if test -n "$CC"; then | ||
1853 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
1854 | echo "${ECHO_T}$CC" >&6; } | ||
1855 | else | ||
1856 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1857 | echo "${ECHO_T}no" >&6; } | ||
1858 | fi | ||
1859 | |||
1860 | |||
1861 | fi | ||
1862 | if test -z "$ac_cv_prog_CC"; then | ||
1863 | ac_ct_CC=$CC | ||
1864 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1865 | set dummy gcc; ac_word=$2 | ||
1866 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1868 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1870 | else | ||
1871 | if test -n "$ac_ct_CC"; then | ||
1872 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1873 | else | ||
1874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1875 | for as_dir in $PATH | ||
1876 | do | ||
1877 | IFS=$as_save_IFS | ||
1878 | test -z "$as_dir" && as_dir=. | ||
1879 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1880 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1881 | ac_cv_prog_ac_ct_CC="gcc" | ||
1882 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1883 | break 2 | ||
1884 | fi | ||
1885 | done | ||
1886 | done | ||
1887 | IFS=$as_save_IFS | ||
1888 | |||
1889 | fi | ||
1890 | fi | ||
1891 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1892 | if test -n "$ac_ct_CC"; then | ||
1893 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1894 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
1895 | else | ||
1896 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1897 | echo "${ECHO_T}no" >&6; } | ||
1898 | fi | ||
1899 | |||
1900 | if test "x$ac_ct_CC" = x; then | ||
1901 | CC="" | ||
1902 | else | ||
1903 | case $cross_compiling:$ac_tool_warned in | ||
1904 | yes:) | ||
1905 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
1906 | whose name does not start with the host triplet. If you think this | ||
1907 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
1908 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
1909 | whose name does not start with the host triplet. If you think this | ||
1910 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
1911 | ac_tool_warned=yes ;; | ||
1912 | esac | ||
1913 | CC=$ac_ct_CC | ||
1914 | fi | ||
1915 | else | ||
1916 | CC="$ac_cv_prog_CC" | ||
1917 | fi | ||
1918 | |||
1919 | if test -z "$CC"; then | ||
1920 | if test -n "$ac_tool_prefix"; then | ||
1921 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1922 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1923 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1924 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1925 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1927 | else | ||
1928 | if test -n "$CC"; then | ||
1929 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1930 | else | ||
1931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1932 | for as_dir in $PATH | ||
1933 | do | ||
1934 | IFS=$as_save_IFS | ||
1935 | test -z "$as_dir" && as_dir=. | ||
1936 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1937 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1938 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1939 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1940 | break 2 | ||
1941 | fi | ||
1942 | done | ||
1943 | done | ||
1944 | IFS=$as_save_IFS | ||
1945 | |||
1946 | fi | ||
1947 | fi | ||
1948 | CC=$ac_cv_prog_CC | ||
1949 | if test -n "$CC"; then | ||
1950 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
1951 | echo "${ECHO_T}$CC" >&6; } | ||
1952 | else | ||
1953 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1954 | echo "${ECHO_T}no" >&6; } | ||
1955 | fi | ||
1956 | |||
1957 | |||
1958 | fi | ||
1959 | fi | ||
1960 | if test -z "$CC"; then | ||
1961 | # Extract the first word of "cc", so it can be a program name with args. | ||
1962 | set dummy cc; ac_word=$2 | ||
1963 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1965 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1967 | else | ||
1968 | if test -n "$CC"; then | ||
1969 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1970 | else | ||
1971 | ac_prog_rejected=no | ||
1972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1973 | for as_dir in $PATH | ||
1974 | do | ||
1975 | IFS=$as_save_IFS | ||
1976 | test -z "$as_dir" && as_dir=. | ||
1977 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1978 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1979 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
1980 | ac_prog_rejected=yes | ||
1981 | continue | ||
1982 | fi | ||
1983 | ac_cv_prog_CC="cc" | ||
1984 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1985 | break 2 | ||
1986 | fi | ||
1987 | done | ||
1988 | done | ||
1989 | IFS=$as_save_IFS | ||
1990 | |||
1991 | if test $ac_prog_rejected = yes; then | ||
1992 | # We found a bogon in the path, so make sure we never use it. | ||
1993 | set dummy $ac_cv_prog_CC | ||
1994 | shift | ||
1995 | if test $# != 0; then | ||
1996 | # We chose a different compiler from the bogus one. | ||
1997 | # However, it has the same basename, so the bogon will be chosen | ||
1998 | # first if we set CC to just the basename; use the full file name. | ||
1999 | shift | ||
2000 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2001 | fi | ||
2002 | fi | ||
2003 | fi | ||
2004 | fi | ||
2005 | CC=$ac_cv_prog_CC | ||
2006 | if test -n "$CC"; then | ||
2007 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2008 | echo "${ECHO_T}$CC" >&6; } | ||
2009 | else | ||
2010 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2011 | echo "${ECHO_T}no" >&6; } | ||
2012 | fi | ||
2013 | |||
2014 | |||
2015 | fi | ||
2016 | if test -z "$CC"; then | ||
2017 | if test -n "$ac_tool_prefix"; then | ||
2018 | for ac_prog in cl.exe | ||
2019 | do | ||
2020 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2021 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2022 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2023 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2024 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2026 | else | ||
2027 | if test -n "$CC"; then | ||
2028 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2029 | else | ||
2030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2031 | for as_dir in $PATH | ||
2032 | do | ||
2033 | IFS=$as_save_IFS | ||
2034 | test -z "$as_dir" && as_dir=. | ||
2035 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2036 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2037 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2038 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2039 | break 2 | ||
2040 | fi | ||
2041 | done | ||
2042 | done | ||
2043 | IFS=$as_save_IFS | ||
2044 | |||
2045 | fi | ||
2046 | fi | ||
2047 | CC=$ac_cv_prog_CC | ||
2048 | if test -n "$CC"; then | ||
2049 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2050 | echo "${ECHO_T}$CC" >&6; } | ||
2051 | else | ||
2052 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2053 | echo "${ECHO_T}no" >&6; } | ||
2054 | fi | ||
2055 | |||
2056 | |||
2057 | test -n "$CC" && break | ||
2058 | done | ||
2059 | fi | ||
2060 | if test -z "$CC"; then | ||
2061 | ac_ct_CC=$CC | ||
2062 | for ac_prog in cl.exe | ||
2063 | do | ||
2064 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2065 | set dummy $ac_prog; ac_word=$2 | ||
2066 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2067 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2068 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2070 | else | ||
2071 | if test -n "$ac_ct_CC"; then | ||
2072 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2073 | else | ||
2074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2075 | for as_dir in $PATH | ||
2076 | do | ||
2077 | IFS=$as_save_IFS | ||
2078 | test -z "$as_dir" && as_dir=. | ||
2079 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2080 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2081 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2083 | break 2 | ||
2084 | fi | ||
2085 | done | ||
2086 | done | ||
2087 | IFS=$as_save_IFS | ||
2088 | |||
2089 | fi | ||
2090 | fi | ||
2091 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2092 | if test -n "$ac_ct_CC"; then | ||
2093 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2094 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2095 | else | ||
2096 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2097 | echo "${ECHO_T}no" >&6; } | ||
2098 | fi | ||
2099 | |||
2100 | |||
2101 | test -n "$ac_ct_CC" && break | ||
2102 | done | ||
2103 | |||
2104 | if test "x$ac_ct_CC" = x; then | ||
2105 | CC="" | ||
2106 | else | ||
2107 | case $cross_compiling:$ac_tool_warned in | ||
2108 | yes:) | ||
2109 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2110 | whose name does not start with the host triplet. If you think this | ||
2111 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2112 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2113 | whose name does not start with the host triplet. If you think this | ||
2114 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2115 | ac_tool_warned=yes ;; | ||
2116 | esac | ||
2117 | CC=$ac_ct_CC | ||
2118 | fi | ||
2119 | fi | ||
2120 | |||
2121 | fi | ||
2122 | |||
2123 | |||
2124 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
2125 | See \`config.log' for more details." >&5 | ||
2126 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
2127 | See \`config.log' for more details." >&2;} | ||
2128 | { (exit 1); exit 1; }; } | ||
2129 | |||
2130 | # Provide some information about the compiler. | ||
2131 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | ||
2132 | ac_compiler=`set X $ac_compile; echo $2` | ||
2133 | { (ac_try="$ac_compiler --version >&5" | ||
2134 | case "(($ac_try" in | ||
2135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2136 | *) ac_try_echo=$ac_try;; | ||
2137 | esac | ||
2138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2139 | (eval "$ac_compiler --version >&5") 2>&5 | ||
2140 | ac_status=$? | ||
2141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2142 | (exit $ac_status); } | ||
2143 | { (ac_try="$ac_compiler -v >&5" | ||
2144 | case "(($ac_try" in | ||
2145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2146 | *) ac_try_echo=$ac_try;; | ||
2147 | esac | ||
2148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2149 | (eval "$ac_compiler -v >&5") 2>&5 | ||
2150 | ac_status=$? | ||
2151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2152 | (exit $ac_status); } | ||
2153 | { (ac_try="$ac_compiler -V >&5" | ||
2154 | case "(($ac_try" in | ||
2155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2156 | *) ac_try_echo=$ac_try;; | ||
2157 | esac | ||
2158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2159 | (eval "$ac_compiler -V >&5") 2>&5 | ||
2160 | ac_status=$? | ||
2161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2162 | (exit $ac_status); } | ||
2163 | |||
2164 | cat >conftest.$ac_ext <<_ACEOF | ||
2165 | /* confdefs.h. */ | ||
2166 | _ACEOF | ||
2167 | cat confdefs.h >>conftest.$ac_ext | ||
2168 | cat >>conftest.$ac_ext <<_ACEOF | ||
2169 | /* end confdefs.h. */ | ||
2170 | |||
2171 | int | ||
2172 | main () | ||
2173 | { | ||
2174 | |||
2175 | ; | ||
2176 | return 0; | ||
2177 | } | ||
2178 | _ACEOF | ||
2179 | ac_clean_files_save=$ac_clean_files | ||
2180 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
2181 | # Try to create an executable without -o first, disregard a.out. | ||
2182 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2183 | # of exeext. | ||
2184 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
2185 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | ||
2186 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2187 | # | ||
2188 | # List of possible output files, starting from the most likely. | ||
2189 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | ||
2190 | # only as a last resort. b.out is created by i960 compilers. | ||
2191 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | ||
2192 | # | ||
2193 | # The IRIX 6 linker writes into existing files which may not be | ||
2194 | # executable, retaining their permissions. Remove them first so a | ||
2195 | # subsequent execution test works. | ||
2196 | ac_rmfiles= | ||
2197 | for ac_file in $ac_files | ||
2198 | do | ||
2199 | case $ac_file in | ||
2200 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2201 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2202 | esac | ||
2203 | done | ||
2204 | rm -f $ac_rmfiles | ||
2205 | |||
2206 | if { (ac_try="$ac_link_default" | ||
2207 | case "(($ac_try" in | ||
2208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2209 | *) ac_try_echo=$ac_try;; | ||
2210 | esac | ||
2211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2212 | (eval "$ac_link_default") 2>&5 | ||
2213 | ac_status=$? | ||
2214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2215 | (exit $ac_status); }; then | ||
2216 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2217 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2218 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2219 | # so that the user can short-circuit this test for compilers unknown to | ||
2220 | # Autoconf. | ||
2221 | for ac_file in $ac_files '' | ||
2222 | do | ||
2223 | test -f "$ac_file" || continue | ||
2224 | case $ac_file in | ||
2225 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | ||
2226 | ;; | ||
2227 | [ab].out ) | ||
2228 | # We found the default executable, but exeext='' is most | ||
2229 | # certainly right. | ||
2230 | break;; | ||
2231 | *.* ) | ||
2232 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2233 | then :; else | ||
2234 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2235 | fi | ||
2236 | # We set ac_cv_exeext here because the later test for it is not | ||
2237 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2238 | # argument, so we may need to know it at that point already. | ||
2239 | # Even if this section looks crufty: it has the advantage of | ||
2240 | # actually working. | ||
2241 | break;; | ||
2242 | * ) | ||
2243 | break;; | ||
2244 | esac | ||
2245 | done | ||
2246 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2247 | |||
2248 | else | ||
2249 | ac_file='' | ||
2250 | fi | ||
2251 | |||
2252 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2253 | echo "${ECHO_T}$ac_file" >&6; } | ||
2254 | if test -z "$ac_file"; then | ||
2255 | echo "$as_me: failed program was:" >&5 | ||
2256 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2257 | |||
2258 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
2259 | See \`config.log' for more details." >&5 | ||
2260 | echo "$as_me: error: C compiler cannot create executables | ||
2261 | See \`config.log' for more details." >&2;} | ||
2262 | { (exit 77); exit 77; }; } | ||
2263 | fi | ||
2264 | |||
2265 | ac_exeext=$ac_cv_exeext | ||
2266 | |||
2267 | # Check that the compiler produces executables we can run. If not, either | ||
2268 | # the compiler is broken, or we cross compile. | ||
2269 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
2270 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | ||
2271 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
2272 | # If not cross compiling, check that we can run a simple program. | ||
2273 | if test "$cross_compiling" != yes; then | ||
2274 | if { ac_try='./$ac_file' | ||
2275 | { (case "(($ac_try" in | ||
2276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2277 | *) ac_try_echo=$ac_try;; | ||
2278 | esac | ||
2279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2280 | (eval "$ac_try") 2>&5 | ||
2281 | ac_status=$? | ||
2282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2283 | (exit $ac_status); }; }; then | ||
2284 | cross_compiling=no | ||
2285 | else | ||
2286 | if test "$cross_compiling" = maybe; then | ||
2287 | cross_compiling=yes | ||
2288 | else | ||
2289 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
2290 | If you meant to cross compile, use \`--host'. | ||
2291 | See \`config.log' for more details." >&5 | ||
2292 | echo "$as_me: error: cannot run C compiled programs. | ||
2293 | If you meant to cross compile, use \`--host'. | ||
2294 | See \`config.log' for more details." >&2;} | ||
2295 | { (exit 1); exit 1; }; } | ||
2296 | fi | ||
2297 | fi | ||
2298 | fi | ||
2299 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2300 | echo "${ECHO_T}yes" >&6; } | ||
2301 | |||
2302 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
2303 | ac_clean_files=$ac_clean_files_save | ||
2304 | # Check that the compiler produces executables we can run. If not, either | ||
2305 | # the compiler is broken, or we cross compile. | ||
2306 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
2307 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | ||
2308 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
2309 | echo "${ECHO_T}$cross_compiling" >&6; } | ||
2310 | |||
2311 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
2312 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | ||
2313 | if { (ac_try="$ac_link" | ||
2314 | case "(($ac_try" in | ||
2315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2316 | *) ac_try_echo=$ac_try;; | ||
2317 | esac | ||
2318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2319 | (eval "$ac_link") 2>&5 | ||
2320 | ac_status=$? | ||
2321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2322 | (exit $ac_status); }; then | ||
2323 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
2324 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
2325 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
2326 | # `rm'. | ||
2327 | for ac_file in conftest.exe conftest conftest.*; do | ||
2328 | test -f "$ac_file" || continue | ||
2329 | case $ac_file in | ||
2330 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2331 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2332 | break;; | ||
2333 | * ) break;; | ||
2334 | esac | ||
2335 | done | ||
2336 | else | ||
2337 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
2338 | See \`config.log' for more details." >&5 | ||
2339 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
2340 | See \`config.log' for more details." >&2;} | ||
2341 | { (exit 1); exit 1; }; } | ||
2342 | fi | ||
2343 | |||
2344 | rm -f conftest$ac_cv_exeext | ||
2345 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
2346 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | ||
2347 | |||
2348 | rm -f conftest.$ac_ext | ||
2349 | EXEEXT=$ac_cv_exeext | ||
2350 | ac_exeext=$EXEEXT | ||
2351 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
2352 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | ||
2353 | if test "${ac_cv_objext+set}" = set; then | ||
2354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2355 | else | ||
2356 | cat >conftest.$ac_ext <<_ACEOF | ||
2357 | /* confdefs.h. */ | ||
2358 | _ACEOF | ||
2359 | cat confdefs.h >>conftest.$ac_ext | ||
2360 | cat >>conftest.$ac_ext <<_ACEOF | ||
2361 | /* end confdefs.h. */ | ||
2362 | |||
2363 | int | ||
2364 | main () | ||
2365 | { | ||
2366 | |||
2367 | ; | ||
2368 | return 0; | ||
2369 | } | ||
2370 | _ACEOF | ||
2371 | rm -f conftest.o conftest.obj | ||
2372 | if { (ac_try="$ac_compile" | ||
2373 | case "(($ac_try" in | ||
2374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2375 | *) ac_try_echo=$ac_try;; | ||
2376 | esac | ||
2377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2378 | (eval "$ac_compile") 2>&5 | ||
2379 | ac_status=$? | ||
2380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2381 | (exit $ac_status); }; then | ||
2382 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
2383 | test -f "$ac_file" || continue; | ||
2384 | case $ac_file in | ||
2385 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | ||
2386 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
2387 | break;; | ||
2388 | esac | ||
2389 | done | ||
2390 | else | ||
2391 | echo "$as_me: failed program was:" >&5 | ||
2392 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2393 | |||
2394 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
2395 | See \`config.log' for more details." >&5 | ||
2396 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
2397 | See \`config.log' for more details." >&2;} | ||
2398 | { (exit 1); exit 1; }; } | ||
2399 | fi | ||
2400 | |||
2401 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
2402 | fi | ||
2403 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
2404 | echo "${ECHO_T}$ac_cv_objext" >&6; } | ||
2405 | OBJEXT=$ac_cv_objext | ||
2406 | ac_objext=$OBJEXT | ||
2407 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
2408 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | ||
2409 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
2410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2411 | else | ||
2412 | cat >conftest.$ac_ext <<_ACEOF | ||
2413 | /* confdefs.h. */ | ||
2414 | _ACEOF | ||
2415 | cat confdefs.h >>conftest.$ac_ext | ||
2416 | cat >>conftest.$ac_ext <<_ACEOF | ||
2417 | /* end confdefs.h. */ | ||
2418 | |||
2419 | int | ||
2420 | main () | ||
2421 | { | ||
2422 | #ifndef __GNUC__ | ||
2423 | choke me | ||
2424 | #endif | ||
2425 | |||
2426 | ; | ||
2427 | return 0; | ||
2428 | } | ||
2429 | _ACEOF | ||
2430 | rm -f conftest.$ac_objext | ||
2431 | if { (ac_try="$ac_compile" | ||
2432 | case "(($ac_try" in | ||
2433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2434 | *) ac_try_echo=$ac_try;; | ||
2435 | esac | ||
2436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2437 | (eval "$ac_compile") 2>conftest.er1 | ||
2438 | ac_status=$? | ||
2439 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2440 | rm -f conftest.er1 | ||
2441 | cat conftest.err >&5 | ||
2442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2443 | (exit $ac_status); } && { | ||
2444 | test -z "$ac_c_werror_flag" || | ||
2445 | test ! -s conftest.err | ||
2446 | } && test -s conftest.$ac_objext; then | ||
2447 | ac_compiler_gnu=yes | ||
2448 | else | ||
2449 | echo "$as_me: failed program was:" >&5 | ||
2450 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2451 | |||
2452 | ac_compiler_gnu=no | ||
2453 | fi | ||
2454 | |||
2455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2456 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
2457 | |||
2458 | fi | ||
2459 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
2460 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | ||
2461 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
2462 | ac_test_CFLAGS=${CFLAGS+set} | ||
2463 | ac_save_CFLAGS=$CFLAGS | ||
2464 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
2465 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | ||
2466 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
2467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2468 | else | ||
2469 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
2470 | ac_c_werror_flag=yes | ||
2471 | ac_cv_prog_cc_g=no | ||
2472 | CFLAGS="-g" | ||
2473 | cat >conftest.$ac_ext <<_ACEOF | ||
2474 | /* confdefs.h. */ | ||
2475 | _ACEOF | ||
2476 | cat confdefs.h >>conftest.$ac_ext | ||
2477 | cat >>conftest.$ac_ext <<_ACEOF | ||
2478 | /* end confdefs.h. */ | ||
2479 | |||
2480 | int | ||
2481 | main () | ||
2482 | { | ||
2483 | |||
2484 | ; | ||
2485 | return 0; | ||
2486 | } | ||
2487 | _ACEOF | ||
2488 | rm -f conftest.$ac_objext | ||
2489 | if { (ac_try="$ac_compile" | ||
2490 | case "(($ac_try" in | ||
2491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2492 | *) ac_try_echo=$ac_try;; | ||
2493 | esac | ||
2494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2495 | (eval "$ac_compile") 2>conftest.er1 | ||
2496 | ac_status=$? | ||
2497 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2498 | rm -f conftest.er1 | ||
2499 | cat conftest.err >&5 | ||
2500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2501 | (exit $ac_status); } && { | ||
2502 | test -z "$ac_c_werror_flag" || | ||
2503 | test ! -s conftest.err | ||
2504 | } && test -s conftest.$ac_objext; then | ||
2505 | ac_cv_prog_cc_g=yes | ||
2506 | else | ||
2507 | echo "$as_me: failed program was:" >&5 | ||
2508 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2509 | |||
2510 | CFLAGS="" | ||
2511 | cat >conftest.$ac_ext <<_ACEOF | ||
2512 | /* confdefs.h. */ | ||
2513 | _ACEOF | ||
2514 | cat confdefs.h >>conftest.$ac_ext | ||
2515 | cat >>conftest.$ac_ext <<_ACEOF | ||
2516 | /* end confdefs.h. */ | ||
2517 | |||
2518 | int | ||
2519 | main () | ||
2520 | { | ||
2521 | |||
2522 | ; | ||
2523 | return 0; | ||
2524 | } | ||
2525 | _ACEOF | ||
2526 | rm -f conftest.$ac_objext | ||
2527 | if { (ac_try="$ac_compile" | ||
2528 | case "(($ac_try" in | ||
2529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2530 | *) ac_try_echo=$ac_try;; | ||
2531 | esac | ||
2532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2533 | (eval "$ac_compile") 2>conftest.er1 | ||
2534 | ac_status=$? | ||
2535 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2536 | rm -f conftest.er1 | ||
2537 | cat conftest.err >&5 | ||
2538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2539 | (exit $ac_status); } && { | ||
2540 | test -z "$ac_c_werror_flag" || | ||
2541 | test ! -s conftest.err | ||
2542 | } && test -s conftest.$ac_objext; then | ||
2543 | : | ||
2544 | else | ||
2545 | echo "$as_me: failed program was:" >&5 | ||
2546 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2547 | |||
2548 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2549 | CFLAGS="-g" | ||
2550 | cat >conftest.$ac_ext <<_ACEOF | ||
2551 | /* confdefs.h. */ | ||
2552 | _ACEOF | ||
2553 | cat confdefs.h >>conftest.$ac_ext | ||
2554 | cat >>conftest.$ac_ext <<_ACEOF | ||
2555 | /* end confdefs.h. */ | ||
2556 | |||
2557 | int | ||
2558 | main () | ||
2559 | { | ||
2560 | |||
2561 | ; | ||
2562 | return 0; | ||
2563 | } | ||
2564 | _ACEOF | ||
2565 | rm -f conftest.$ac_objext | ||
2566 | if { (ac_try="$ac_compile" | ||
2567 | case "(($ac_try" in | ||
2568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2569 | *) ac_try_echo=$ac_try;; | ||
2570 | esac | ||
2571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2572 | (eval "$ac_compile") 2>conftest.er1 | ||
2573 | ac_status=$? | ||
2574 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2575 | rm -f conftest.er1 | ||
2576 | cat conftest.err >&5 | ||
2577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2578 | (exit $ac_status); } && { | ||
2579 | test -z "$ac_c_werror_flag" || | ||
2580 | test ! -s conftest.err | ||
2581 | } && test -s conftest.$ac_objext; then | ||
2582 | ac_cv_prog_cc_g=yes | ||
2583 | else | ||
2584 | echo "$as_me: failed program was:" >&5 | ||
2585 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2586 | |||
2587 | |||
2588 | fi | ||
2589 | |||
2590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2591 | fi | ||
2592 | |||
2593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2594 | fi | ||
2595 | |||
2596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2597 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2598 | fi | ||
2599 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
2600 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | ||
2601 | if test "$ac_test_CFLAGS" = set; then | ||
2602 | CFLAGS=$ac_save_CFLAGS | ||
2603 | elif test $ac_cv_prog_cc_g = yes; then | ||
2604 | if test "$GCC" = yes; then | ||
2605 | CFLAGS="-g -O2" | ||
2606 | else | ||
2607 | CFLAGS="-g" | ||
2608 | fi | ||
2609 | else | ||
2610 | if test "$GCC" = yes; then | ||
2611 | CFLAGS="-O2" | ||
2612 | else | ||
2613 | CFLAGS= | ||
2614 | fi | ||
2615 | fi | ||
2616 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | ||
2617 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | ||
2618 | if test "${ac_cv_prog_cc_c89+set}" = set; then | ||
2619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2620 | else | ||
2621 | ac_cv_prog_cc_c89=no | ||
2622 | ac_save_CC=$CC | ||
2623 | cat >conftest.$ac_ext <<_ACEOF | ||
2624 | /* confdefs.h. */ | ||
2625 | _ACEOF | ||
2626 | cat confdefs.h >>conftest.$ac_ext | ||
2627 | cat >>conftest.$ac_ext <<_ACEOF | ||
2628 | /* end confdefs.h. */ | ||
2629 | #include <stdarg.h> | ||
2630 | #include <stdio.h> | ||
2631 | #include <sys/types.h> | ||
2632 | #include <sys/stat.h> | ||
2633 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2634 | struct buf { int x; }; | ||
2635 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2636 | static char *e (p, i) | ||
2637 | char **p; | ||
2638 | int i; | ||
2639 | { | ||
2640 | return p[i]; | ||
2641 | } | ||
2642 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2643 | { | ||
2644 | char *s; | ||
2645 | va_list v; | ||
2646 | va_start (v,p); | ||
2647 | s = g (p, va_arg (v,int)); | ||
2648 | va_end (v); | ||
2649 | return s; | ||
2650 | } | ||
2651 | |||
2652 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
2653 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
2654 | These don't provoke an error unfortunately, instead are silently treated | ||
2655 | as 'x'. The following induces an error, until -std is added to get | ||
2656 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
2657 | array size at least. It's necessary to write '\x00'==0 to get something | ||
2658 | that's true only with -std. */ | ||
2659 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
2660 | |||
2661 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
2662 | inside strings and character constants. */ | ||
2663 | #define FOO(x) 'x' | ||
2664 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
2665 | |||
2666 | int test (int i, double x); | ||
2667 | struct s1 {int (*f) (int a);}; | ||
2668 | struct s2 {int (*f) (double a);}; | ||
2669 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2670 | int argc; | ||
2671 | char **argv; | ||
2672 | int | ||
2673 | main () | ||
2674 | { | ||
2675 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2676 | ; | ||
2677 | return 0; | ||
2678 | } | ||
2679 | _ACEOF | ||
2680 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
2681 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
2682 | do | ||
2683 | CC="$ac_save_CC $ac_arg" | ||
2684 | rm -f conftest.$ac_objext | ||
2685 | if { (ac_try="$ac_compile" | ||
2686 | case "(($ac_try" in | ||
2687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2688 | *) ac_try_echo=$ac_try;; | ||
2689 | esac | ||
2690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2691 | (eval "$ac_compile") 2>conftest.er1 | ||
2692 | ac_status=$? | ||
2693 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2694 | rm -f conftest.er1 | ||
2695 | cat conftest.err >&5 | ||
2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2697 | (exit $ac_status); } && { | ||
2698 | test -z "$ac_c_werror_flag" || | ||
2699 | test ! -s conftest.err | ||
2700 | } && test -s conftest.$ac_objext; then | ||
2701 | ac_cv_prog_cc_c89=$ac_arg | ||
2702 | else | ||
2703 | echo "$as_me: failed program was:" >&5 | ||
2704 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2705 | |||
2706 | |||
2707 | fi | ||
2708 | |||
2709 | rm -f core conftest.err conftest.$ac_objext | ||
2710 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
2711 | done | ||
2712 | rm -f conftest.$ac_ext | ||
2713 | CC=$ac_save_CC | ||
2714 | |||
2715 | fi | ||
2716 | # AC_CACHE_VAL | ||
2717 | case "x$ac_cv_prog_cc_c89" in | ||
2718 | x) | ||
2719 | { echo "$as_me:$LINENO: result: none needed" >&5 | ||
2720 | echo "${ECHO_T}none needed" >&6; } ;; | ||
2721 | xno) | ||
2722 | { echo "$as_me:$LINENO: result: unsupported" >&5 | ||
2723 | echo "${ECHO_T}unsupported" >&6; } ;; | ||
2724 | *) | ||
2725 | CC="$CC $ac_cv_prog_cc_c89" | ||
2726 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | ||
2727 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | ||
2728 | esac | ||
2729 | |||
2730 | |||
2731 | ac_ext=c | ||
2732 | ac_cpp='$CPP $CPPFLAGS' | ||
2733 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2734 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2735 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2736 | |||
2737 | ac_aux_dir= | ||
2738 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
2739 | if test -f "$ac_dir/install-sh"; then | ||
2740 | ac_aux_dir=$ac_dir | ||
2741 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2742 | break | ||
2743 | elif test -f "$ac_dir/install.sh"; then | ||
2744 | ac_aux_dir=$ac_dir | ||
2745 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2746 | break | ||
2747 | elif test -f "$ac_dir/shtool"; then | ||
2748 | ac_aux_dir=$ac_dir | ||
2749 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2750 | break | ||
2751 | fi | ||
2752 | done | ||
2753 | if test -z "$ac_aux_dir"; then | ||
2754 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | ||
2755 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | ||
2756 | { (exit 1); exit 1; }; } | ||
2757 | fi | ||
2758 | |||
2759 | # These three variables are undocumented and unsupported, | ||
2760 | # and are intended to be withdrawn in a future Autoconf release. | ||
2761 | # They can cause serious problems if a builder's source tree is in a directory | ||
2762 | # whose full name contains unusual characters. | ||
2763 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
2764 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
2765 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2766 | |||
2767 | |||
2768 | # Make sure we can run config.sub. | ||
2769 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
2770 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | ||
2771 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | ||
2772 | { (exit 1); exit 1; }; } | ||
2773 | |||
2774 | { echo "$as_me:$LINENO: checking build system type" >&5 | ||
2775 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | ||
2776 | if test "${ac_cv_build+set}" = set; then | ||
2777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2778 | else | ||
2779 | ac_build_alias=$build_alias | ||
2780 | test "x$ac_build_alias" = x && | ||
2781 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
2782 | test "x$ac_build_alias" = x && | ||
2783 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
2784 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
2785 | { (exit 1); exit 1; }; } | ||
2786 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
2787 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | ||
2788 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | ||
2789 | { (exit 1); exit 1; }; } | ||
2790 | |||
2791 | fi | ||
2792 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
2793 | echo "${ECHO_T}$ac_cv_build" >&6; } | ||
2794 | case $ac_cv_build in | ||
2795 | *-*-*) ;; | ||
2796 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | ||
2797 | echo "$as_me: error: invalid value of canonical build" >&2;} | ||
2798 | { (exit 1); exit 1; }; };; | ||
2799 | esac | ||
2800 | build=$ac_cv_build | ||
2801 | ac_save_IFS=$IFS; IFS='-' | ||
2802 | set x $ac_cv_build | ||
2803 | shift | ||
2804 | build_cpu=$1 | ||
2805 | build_vendor=$2 | ||
2806 | shift; shift | ||
2807 | # Remember, the first character of IFS is used to create $*, | ||
2808 | # except with old shells: | ||
2809 | build_os=$* | ||
2810 | IFS=$ac_save_IFS | ||
2811 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
2812 | |||
2813 | |||
2814 | { echo "$as_me:$LINENO: checking host system type" >&5 | ||
2815 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | ||
2816 | if test "${ac_cv_host+set}" = set; then | ||
2817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2818 | else | ||
2819 | if test "x$host_alias" = x; then | ||
2820 | ac_cv_host=$ac_cv_build | ||
2821 | else | ||
2822 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
2823 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | ||
2824 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | ||
2825 | { (exit 1); exit 1; }; } | ||
2826 | fi | ||
2827 | |||
2828 | fi | ||
2829 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
2830 | echo "${ECHO_T}$ac_cv_host" >&6; } | ||
2831 | case $ac_cv_host in | ||
2832 | *-*-*) ;; | ||
2833 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | ||
2834 | echo "$as_me: error: invalid value of canonical host" >&2;} | ||
2835 | { (exit 1); exit 1; }; };; | ||
2836 | esac | ||
2837 | host=$ac_cv_host | ||
2838 | ac_save_IFS=$IFS; IFS='-' | ||
2839 | set x $ac_cv_host | ||
2840 | shift | ||
2841 | host_cpu=$1 | ||
2842 | host_vendor=$2 | ||
2843 | shift; shift | ||
2844 | # Remember, the first character of IFS is used to create $*, | ||
2845 | # except with old shells: | ||
2846 | host_os=$* | ||
2847 | IFS=$ac_save_IFS | ||
2848 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
2849 | |||
2850 | |||
2851 | |||
2852 | ac_ext=c | ||
2853 | ac_cpp='$CPP $CPPFLAGS' | ||
2854 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2855 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2856 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2857 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
2858 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
2859 | # On Suns, sometimes $CPP names a directory. | ||
2860 | if test -n "$CPP" && test -d "$CPP"; then | ||
2861 | CPP= | ||
2862 | fi | ||
2863 | if test -z "$CPP"; then | ||
2864 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
2865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2866 | else | ||
2867 | # Double quotes because CPP needs to be expanded | ||
2868 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
2869 | do | ||
2870 | ac_preproc_ok=false | ||
2871 | for ac_c_preproc_warn_flag in '' yes | ||
2872 | do | ||
2873 | # Use a header file that comes with gcc, so configuring glibc | ||
2874 | # with a fresh cross-compiler works. | ||
2875 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2876 | # <limits.h> exists even on freestanding compilers. | ||
2877 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2878 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2879 | cat >conftest.$ac_ext <<_ACEOF | ||
2880 | /* confdefs.h. */ | ||
2881 | _ACEOF | ||
2882 | cat confdefs.h >>conftest.$ac_ext | ||
2883 | cat >>conftest.$ac_ext <<_ACEOF | ||
2884 | /* end confdefs.h. */ | ||
2885 | #ifdef __STDC__ | ||
2886 | # include <limits.h> | ||
2887 | #else | ||
2888 | # include <assert.h> | ||
2889 | #endif | ||
2890 | Syntax error | ||
2891 | _ACEOF | ||
2892 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2893 | case "(($ac_try" in | ||
2894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2895 | *) ac_try_echo=$ac_try;; | ||
2896 | esac | ||
2897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2898 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
2899 | ac_status=$? | ||
2900 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2901 | rm -f conftest.er1 | ||
2902 | cat conftest.err >&5 | ||
2903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2904 | (exit $ac_status); } >/dev/null && { | ||
2905 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2906 | test ! -s conftest.err | ||
2907 | }; then | ||
2908 | : | ||
2909 | else | ||
2910 | echo "$as_me: failed program was:" >&5 | ||
2911 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2912 | |||
2913 | # Broken: fails on valid input. | ||
2914 | continue | ||
2915 | fi | ||
2916 | |||
2917 | rm -f conftest.err conftest.$ac_ext | ||
2918 | |||
2919 | # OK, works on sane cases. Now check whether nonexistent headers | ||
2920 | # can be detected and how. | ||
2921 | cat >conftest.$ac_ext <<_ACEOF | ||
2922 | /* confdefs.h. */ | ||
2923 | _ACEOF | ||
2924 | cat confdefs.h >>conftest.$ac_ext | ||
2925 | cat >>conftest.$ac_ext <<_ACEOF | ||
2926 | /* end confdefs.h. */ | ||
2927 | #include <ac_nonexistent.h> | ||
2928 | _ACEOF | ||
2929 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2930 | case "(($ac_try" in | ||
2931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2932 | *) ac_try_echo=$ac_try;; | ||
2933 | esac | ||
2934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2935 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
2936 | ac_status=$? | ||
2937 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2938 | rm -f conftest.er1 | ||
2939 | cat conftest.err >&5 | ||
2940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2941 | (exit $ac_status); } >/dev/null && { | ||
2942 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2943 | test ! -s conftest.err | ||
2944 | }; then | ||
2945 | # Broken: success on invalid input. | ||
2946 | continue | ||
2947 | else | ||
2948 | echo "$as_me: failed program was:" >&5 | ||
2949 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2950 | |||
2951 | # Passes both tests. | ||
2952 | ac_preproc_ok=: | ||
2953 | break | ||
2954 | fi | ||
2955 | |||
2956 | rm -f conftest.err conftest.$ac_ext | ||
2957 | |||
2958 | done | ||
2959 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2960 | rm -f conftest.err conftest.$ac_ext | ||
2961 | if $ac_preproc_ok; then | ||
2962 | break | ||
2963 | fi | ||
2964 | |||
2965 | done | ||
2966 | ac_cv_prog_CPP=$CPP | ||
2967 | |||
2968 | fi | ||
2969 | CPP=$ac_cv_prog_CPP | ||
2970 | else | ||
2971 | ac_cv_prog_CPP=$CPP | ||
2972 | fi | ||
2973 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
2974 | echo "${ECHO_T}$CPP" >&6; } | ||
2975 | ac_preproc_ok=false | ||
2976 | for ac_c_preproc_warn_flag in '' yes | ||
2977 | do | ||
2978 | # Use a header file that comes with gcc, so configuring glibc | ||
2979 | # with a fresh cross-compiler works. | ||
2980 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2981 | # <limits.h> exists even on freestanding compilers. | ||
2982 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2983 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2984 | cat >conftest.$ac_ext <<_ACEOF | ||
2985 | /* confdefs.h. */ | ||
2986 | _ACEOF | ||
2987 | cat confdefs.h >>conftest.$ac_ext | ||
2988 | cat >>conftest.$ac_ext <<_ACEOF | ||
2989 | /* end confdefs.h. */ | ||
2990 | #ifdef __STDC__ | ||
2991 | # include <limits.h> | ||
2992 | #else | ||
2993 | # include <assert.h> | ||
2994 | #endif | ||
2995 | Syntax error | ||
2996 | _ACEOF | ||
2997 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2998 | case "(($ac_try" in | ||
2999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3000 | *) ac_try_echo=$ac_try;; | ||
3001 | esac | ||
3002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3003 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3004 | ac_status=$? | ||
3005 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3006 | rm -f conftest.er1 | ||
3007 | cat conftest.err >&5 | ||
3008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3009 | (exit $ac_status); } >/dev/null && { | ||
3010 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3011 | test ! -s conftest.err | ||
3012 | }; then | ||
3013 | : | ||
3014 | else | ||
3015 | echo "$as_me: failed program was:" >&5 | ||
3016 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3017 | |||
3018 | # Broken: fails on valid input. | ||
3019 | continue | ||
3020 | fi | ||
3021 | |||
3022 | rm -f conftest.err conftest.$ac_ext | ||
3023 | |||
3024 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3025 | # can be detected and how. | ||
3026 | cat >conftest.$ac_ext <<_ACEOF | ||
3027 | /* confdefs.h. */ | ||
3028 | _ACEOF | ||
3029 | cat confdefs.h >>conftest.$ac_ext | ||
3030 | cat >>conftest.$ac_ext <<_ACEOF | ||
3031 | /* end confdefs.h. */ | ||
3032 | #include <ac_nonexistent.h> | ||
3033 | _ACEOF | ||
3034 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3035 | case "(($ac_try" in | ||
3036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3037 | *) ac_try_echo=$ac_try;; | ||
3038 | esac | ||
3039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3040 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3041 | ac_status=$? | ||
3042 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3043 | rm -f conftest.er1 | ||
3044 | cat conftest.err >&5 | ||
3045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3046 | (exit $ac_status); } >/dev/null && { | ||
3047 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3048 | test ! -s conftest.err | ||
3049 | }; then | ||
3050 | # Broken: success on invalid input. | ||
3051 | continue | ||
3052 | else | ||
3053 | echo "$as_me: failed program was:" >&5 | ||
3054 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3055 | |||
3056 | # Passes both tests. | ||
3057 | ac_preproc_ok=: | ||
3058 | break | ||
3059 | fi | ||
3060 | |||
3061 | rm -f conftest.err conftest.$ac_ext | ||
3062 | |||
3063 | done | ||
3064 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3065 | rm -f conftest.err conftest.$ac_ext | ||
3066 | if $ac_preproc_ok; then | ||
3067 | : | ||
3068 | else | ||
3069 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3070 | See \`config.log' for more details." >&5 | ||
3071 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3072 | See \`config.log' for more details." >&2;} | ||
3073 | { (exit 1); exit 1; }; } | ||
3074 | fi | ||
3075 | |||
3076 | ac_ext=c | ||
3077 | ac_cpp='$CPP $CPPFLAGS' | ||
3078 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3079 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3080 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3081 | |||
3082 | |||
3083 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | ||
3084 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | ||
3085 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3087 | else | ||
3088 | # Extract the first word of "grep ggrep" to use in msg output | ||
3089 | if test -z "$GREP"; then | ||
3090 | set dummy grep ggrep; ac_prog_name=$2 | ||
3091 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3093 | else | ||
3094 | ac_path_GREP_found=false | ||
3095 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3097 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3098 | do | ||
3099 | IFS=$as_save_IFS | ||
3100 | test -z "$as_dir" && as_dir=. | ||
3101 | for ac_prog in grep ggrep; do | ||
3102 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3103 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3104 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
3105 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3106 | # Check for GNU $ac_path_GREP | ||
3107 | case `"$ac_path_GREP" --version 2>&1` in | ||
3108 | *GNU*) | ||
3109 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3110 | *) | ||
3111 | ac_count=0 | ||
3112 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3113 | while : | ||
3114 | do | ||
3115 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3116 | mv "conftest.tmp" "conftest.in" | ||
3117 | cp "conftest.in" "conftest.nl" | ||
3118 | echo 'GREP' >> "conftest.nl" | ||
3119 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3120 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3121 | ac_count=`expr $ac_count + 1` | ||
3122 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3123 | # Best one so far, save it but keep looking for a better one | ||
3124 | ac_cv_path_GREP="$ac_path_GREP" | ||
3125 | ac_path_GREP_max=$ac_count | ||
3126 | fi | ||
3127 | # 10*(2^10) chars as input seems more than enough | ||
3128 | test $ac_count -gt 10 && break | ||
3129 | done | ||
3130 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3131 | esac | ||
3132 | |||
3133 | |||
3134 | $ac_path_GREP_found && break 3 | ||
3135 | done | ||
3136 | done | ||
3137 | |||
3138 | done | ||
3139 | IFS=$as_save_IFS | ||
3140 | |||
3141 | |||
3142 | fi | ||
3143 | |||
3144 | GREP="$ac_cv_path_GREP" | ||
3145 | if test -z "$GREP"; then | ||
3146 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3147 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3148 | { (exit 1); exit 1; }; } | ||
3149 | fi | ||
3150 | |||
3151 | else | ||
3152 | ac_cv_path_GREP=$GREP | ||
3153 | fi | ||
3154 | |||
3155 | |||
3156 | fi | ||
3157 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | ||
3158 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | ||
3159 | GREP="$ac_cv_path_GREP" | ||
3160 | |||
3161 | |||
3162 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
3163 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
3164 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3166 | else | ||
3167 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3168 | then ac_cv_path_EGREP="$GREP -E" | ||
3169 | else | ||
3170 | # Extract the first word of "egrep" to use in msg output | ||
3171 | if test -z "$EGREP"; then | ||
3172 | set dummy egrep; ac_prog_name=$2 | ||
3173 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3175 | else | ||
3176 | ac_path_EGREP_found=false | ||
3177 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3179 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3180 | do | ||
3181 | IFS=$as_save_IFS | ||
3182 | test -z "$as_dir" && as_dir=. | ||
3183 | for ac_prog in egrep; do | ||
3184 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3185 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3186 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
3187 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3188 | # Check for GNU $ac_path_EGREP | ||
3189 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3190 | *GNU*) | ||
3191 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3192 | *) | ||
3193 | ac_count=0 | ||
3194 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3195 | while : | ||
3196 | do | ||
3197 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3198 | mv "conftest.tmp" "conftest.in" | ||
3199 | cp "conftest.in" "conftest.nl" | ||
3200 | echo 'EGREP' >> "conftest.nl" | ||
3201 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3202 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3203 | ac_count=`expr $ac_count + 1` | ||
3204 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3205 | # Best one so far, save it but keep looking for a better one | ||
3206 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3207 | ac_path_EGREP_max=$ac_count | ||
3208 | fi | ||
3209 | # 10*(2^10) chars as input seems more than enough | ||
3210 | test $ac_count -gt 10 && break | ||
3211 | done | ||
3212 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3213 | esac | ||
3214 | |||
3215 | |||
3216 | $ac_path_EGREP_found && break 3 | ||
3217 | done | ||
3218 | done | ||
3219 | |||
3220 | done | ||
3221 | IFS=$as_save_IFS | ||
3222 | |||
3223 | |||
3224 | fi | ||
3225 | |||
3226 | EGREP="$ac_cv_path_EGREP" | ||
3227 | if test -z "$EGREP"; then | ||
3228 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3229 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3230 | { (exit 1); exit 1; }; } | ||
3231 | fi | ||
3232 | |||
3233 | else | ||
3234 | ac_cv_path_EGREP=$EGREP | ||
3235 | fi | ||
3236 | |||
3237 | |||
3238 | fi | ||
3239 | fi | ||
3240 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
3241 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
3242 | EGREP="$ac_cv_path_EGREP" | ||
3243 | |||
3244 | |||
3245 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
3246 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | ||
3247 | if test "${ac_cv_header_stdc+set}" = set; then | ||
3248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3249 | else | ||
3250 | cat >conftest.$ac_ext <<_ACEOF | ||
3251 | /* confdefs.h. */ | ||
3252 | _ACEOF | ||
3253 | cat confdefs.h >>conftest.$ac_ext | ||
3254 | cat >>conftest.$ac_ext <<_ACEOF | ||
3255 | /* end confdefs.h. */ | ||
3256 | #include <stdlib.h> | ||
3257 | #include <stdarg.h> | ||
3258 | #include <string.h> | ||
3259 | #include <float.h> | ||
3260 | |||
3261 | int | ||
3262 | main () | ||
3263 | { | ||
3264 | |||
3265 | ; | ||
3266 | return 0; | ||
3267 | } | ||
3268 | _ACEOF | ||
3269 | rm -f conftest.$ac_objext | ||
3270 | if { (ac_try="$ac_compile" | ||
3271 | case "(($ac_try" in | ||
3272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3273 | *) ac_try_echo=$ac_try;; | ||
3274 | esac | ||
3275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3276 | (eval "$ac_compile") 2>conftest.er1 | ||
3277 | ac_status=$? | ||
3278 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3279 | rm -f conftest.er1 | ||
3280 | cat conftest.err >&5 | ||
3281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3282 | (exit $ac_status); } && { | ||
3283 | test -z "$ac_c_werror_flag" || | ||
3284 | test ! -s conftest.err | ||
3285 | } && test -s conftest.$ac_objext; then | ||
3286 | ac_cv_header_stdc=yes | ||
3287 | else | ||
3288 | echo "$as_me: failed program was:" >&5 | ||
3289 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3290 | |||
3291 | ac_cv_header_stdc=no | ||
3292 | fi | ||
3293 | |||
3294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3295 | |||
3296 | if test $ac_cv_header_stdc = yes; then | ||
3297 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3298 | cat >conftest.$ac_ext <<_ACEOF | ||
3299 | /* confdefs.h. */ | ||
3300 | _ACEOF | ||
3301 | cat confdefs.h >>conftest.$ac_ext | ||
3302 | cat >>conftest.$ac_ext <<_ACEOF | ||
3303 | /* end confdefs.h. */ | ||
3304 | #include <string.h> | ||
3305 | |||
3306 | _ACEOF | ||
3307 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3308 | $EGREP "memchr" >/dev/null 2>&1; then | ||
3309 | : | ||
3310 | else | ||
3311 | ac_cv_header_stdc=no | ||
3312 | fi | ||
3313 | rm -f conftest* | ||
3314 | |||
3315 | fi | ||
3316 | |||
3317 | if test $ac_cv_header_stdc = yes; then | ||
3318 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3319 | cat >conftest.$ac_ext <<_ACEOF | ||
3320 | /* confdefs.h. */ | ||
3321 | _ACEOF | ||
3322 | cat confdefs.h >>conftest.$ac_ext | ||
3323 | cat >>conftest.$ac_ext <<_ACEOF | ||
3324 | /* end confdefs.h. */ | ||
3325 | #include <stdlib.h> | ||
3326 | |||
3327 | _ACEOF | ||
3328 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3329 | $EGREP "free" >/dev/null 2>&1; then | ||
3330 | : | ||
3331 | else | ||
3332 | ac_cv_header_stdc=no | ||
3333 | fi | ||
3334 | rm -f conftest* | ||
3335 | |||
3336 | fi | ||
3337 | |||
3338 | if test $ac_cv_header_stdc = yes; then | ||
3339 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
3340 | if test "$cross_compiling" = yes; then | ||
3341 | : | ||
3342 | else | ||
3343 | cat >conftest.$ac_ext <<_ACEOF | ||
3344 | /* confdefs.h. */ | ||
3345 | _ACEOF | ||
3346 | cat confdefs.h >>conftest.$ac_ext | ||
3347 | cat >>conftest.$ac_ext <<_ACEOF | ||
3348 | /* end confdefs.h. */ | ||
3349 | #include <ctype.h> | ||
3350 | #include <stdlib.h> | ||
3351 | #if ((' ' & 0x0FF) == 0x020) | ||
3352 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
3353 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
3354 | #else | ||
3355 | # define ISLOWER(c) \ | ||
3356 | (('a' <= (c) && (c) <= 'i') \ | ||
3357 | || ('j' <= (c) && (c) <= 'r') \ | ||
3358 | || ('s' <= (c) && (c) <= 'z')) | ||
3359 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
3360 | #endif | ||
3361 | |||
3362 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
3363 | int | ||
3364 | main () | ||
3365 | { | ||
3366 | int i; | ||
3367 | for (i = 0; i < 256; i++) | ||
3368 | if (XOR (islower (i), ISLOWER (i)) | ||
3369 | || toupper (i) != TOUPPER (i)) | ||
3370 | return 2; | ||
3371 | return 0; | ||
3372 | } | ||
3373 | _ACEOF | ||
3374 | rm -f conftest$ac_exeext | ||
3375 | if { (ac_try="$ac_link" | ||
3376 | case "(($ac_try" in | ||
3377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3378 | *) ac_try_echo=$ac_try;; | ||
3379 | esac | ||
3380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3381 | (eval "$ac_link") 2>&5 | ||
3382 | ac_status=$? | ||
3383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3384 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3385 | { (case "(($ac_try" in | ||
3386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3387 | *) ac_try_echo=$ac_try;; | ||
3388 | esac | ||
3389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3390 | (eval "$ac_try") 2>&5 | ||
3391 | ac_status=$? | ||
3392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3393 | (exit $ac_status); }; }; then | ||
3394 | : | ||
3395 | else | ||
3396 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3397 | echo "$as_me: failed program was:" >&5 | ||
3398 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3399 | |||
3400 | ( exit $ac_status ) | ||
3401 | ac_cv_header_stdc=no | ||
3402 | fi | ||
3403 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3404 | fi | ||
3405 | |||
3406 | |||
3407 | fi | ||
3408 | fi | ||
3409 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
3410 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | ||
3411 | if test $ac_cv_header_stdc = yes; then | ||
3412 | |||
3413 | cat >>confdefs.h <<\_ACEOF | ||
3414 | #define STDC_HEADERS 1 | ||
3415 | _ACEOF | ||
3416 | |||
3417 | fi | ||
3418 | |||
3419 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3420 | |||
3421 | |||
3422 | |||
3423 | |||
3424 | |||
3425 | |||
3426 | |||
3427 | |||
3428 | |||
3429 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
3430 | inttypes.h stdint.h unistd.h | ||
3431 | do | ||
3432 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
3433 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
3434 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
3435 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
3436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3437 | else | ||
3438 | cat >conftest.$ac_ext <<_ACEOF | ||
3439 | /* confdefs.h. */ | ||
3440 | _ACEOF | ||
3441 | cat confdefs.h >>conftest.$ac_ext | ||
3442 | cat >>conftest.$ac_ext <<_ACEOF | ||
3443 | /* end confdefs.h. */ | ||
3444 | $ac_includes_default | ||
3445 | |||
3446 | #include <$ac_header> | ||
3447 | _ACEOF | ||
3448 | rm -f conftest.$ac_objext | ||
3449 | if { (ac_try="$ac_compile" | ||
3450 | case "(($ac_try" in | ||
3451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3452 | *) ac_try_echo=$ac_try;; | ||
3453 | esac | ||
3454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3455 | (eval "$ac_compile") 2>conftest.er1 | ||
3456 | ac_status=$? | ||
3457 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3458 | rm -f conftest.er1 | ||
3459 | cat conftest.err >&5 | ||
3460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3461 | (exit $ac_status); } && { | ||
3462 | test -z "$ac_c_werror_flag" || | ||
3463 | test ! -s conftest.err | ||
3464 | } && test -s conftest.$ac_objext; then | ||
3465 | eval "$as_ac_Header=yes" | ||
3466 | else | ||
3467 | echo "$as_me: failed program was:" >&5 | ||
3468 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3469 | |||
3470 | eval "$as_ac_Header=no" | ||
3471 | fi | ||
3472 | |||
3473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3474 | fi | ||
3475 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
3476 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
3477 | echo "${ECHO_T}$ac_res" >&6; } | ||
3478 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
3479 | cat >>confdefs.h <<_ACEOF | ||
3480 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
3481 | _ACEOF | ||
3482 | |||
3483 | fi | ||
3484 | |||
3485 | done | ||
3486 | |||
3487 | |||
3488 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | ||
3489 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | ||
3490 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
3491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3492 | else | ||
3493 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
3494 | cat >conftest.$ac_ext <<_ACEOF | ||
3495 | /* confdefs.h. */ | ||
3496 | _ACEOF | ||
3497 | cat confdefs.h >>conftest.$ac_ext | ||
3498 | cat >>conftest.$ac_ext <<_ACEOF | ||
3499 | /* end confdefs.h. */ | ||
3500 | #include <sys/types.h> | ||
3501 | #include <sys/param.h> | ||
3502 | |||
3503 | int | ||
3504 | main () | ||
3505 | { | ||
3506 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ | ||
3507 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | ||
3508 | bogus endian macros | ||
3509 | #endif | ||
3510 | |||
3511 | ; | ||
3512 | return 0; | ||
3513 | } | ||
3514 | _ACEOF | ||
3515 | rm -f conftest.$ac_objext | ||
3516 | if { (ac_try="$ac_compile" | ||
3517 | case "(($ac_try" in | ||
3518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3519 | *) ac_try_echo=$ac_try;; | ||
3520 | esac | ||
3521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3522 | (eval "$ac_compile") 2>conftest.er1 | ||
3523 | ac_status=$? | ||
3524 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3525 | rm -f conftest.er1 | ||
3526 | cat conftest.err >&5 | ||
3527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3528 | (exit $ac_status); } && { | ||
3529 | test -z "$ac_c_werror_flag" || | ||
3530 | test ! -s conftest.err | ||
3531 | } && test -s conftest.$ac_objext; then | ||
3532 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
3533 | cat >conftest.$ac_ext <<_ACEOF | ||
3534 | /* confdefs.h. */ | ||
3535 | _ACEOF | ||
3536 | cat confdefs.h >>conftest.$ac_ext | ||
3537 | cat >>conftest.$ac_ext <<_ACEOF | ||
3538 | /* end confdefs.h. */ | ||
3539 | #include <sys/types.h> | ||
3540 | #include <sys/param.h> | ||
3541 | |||
3542 | int | ||
3543 | main () | ||
3544 | { | ||
3545 | #if BYTE_ORDER != BIG_ENDIAN | ||
3546 | not big endian | ||
3547 | #endif | ||
3548 | |||
3549 | ; | ||
3550 | return 0; | ||
3551 | } | ||
3552 | _ACEOF | ||
3553 | rm -f conftest.$ac_objext | ||
3554 | if { (ac_try="$ac_compile" | ||
3555 | case "(($ac_try" in | ||
3556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3557 | *) ac_try_echo=$ac_try;; | ||
3558 | esac | ||
3559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3560 | (eval "$ac_compile") 2>conftest.er1 | ||
3561 | ac_status=$? | ||
3562 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3563 | rm -f conftest.er1 | ||
3564 | cat conftest.err >&5 | ||
3565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3566 | (exit $ac_status); } && { | ||
3567 | test -z "$ac_c_werror_flag" || | ||
3568 | test ! -s conftest.err | ||
3569 | } && test -s conftest.$ac_objext; then | ||
3570 | ac_cv_c_bigendian=yes | ||
3571 | else | ||
3572 | echo "$as_me: failed program was:" >&5 | ||
3573 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3574 | |||
3575 | ac_cv_c_bigendian=no | ||
3576 | fi | ||
3577 | |||
3578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3579 | else | ||
3580 | echo "$as_me: failed program was:" >&5 | ||
3581 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3582 | |||
3583 | # It does not; compile a test program. | ||
3584 | if test "$cross_compiling" = yes; then | ||
3585 | # try to guess the endianness by grepping values into an object file | ||
3586 | ac_cv_c_bigendian=unknown | ||
3587 | cat >conftest.$ac_ext <<_ACEOF | ||
3588 | /* confdefs.h. */ | ||
3589 | _ACEOF | ||
3590 | cat confdefs.h >>conftest.$ac_ext | ||
3591 | cat >>conftest.$ac_ext <<_ACEOF | ||
3592 | /* end confdefs.h. */ | ||
3593 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
3594 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
3595 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | ||
3596 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
3597 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
3598 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | ||
3599 | int | ||
3600 | main () | ||
3601 | { | ||
3602 | _ascii (); _ebcdic (); | ||
3603 | ; | ||
3604 | return 0; | ||
3605 | } | ||
3606 | _ACEOF | ||
3607 | rm -f conftest.$ac_objext | ||
3608 | if { (ac_try="$ac_compile" | ||
3609 | case "(($ac_try" in | ||
3610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3611 | *) ac_try_echo=$ac_try;; | ||
3612 | esac | ||
3613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3614 | (eval "$ac_compile") 2>conftest.er1 | ||
3615 | ac_status=$? | ||
3616 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3617 | rm -f conftest.er1 | ||
3618 | cat conftest.err >&5 | ||
3619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3620 | (exit $ac_status); } && { | ||
3621 | test -z "$ac_c_werror_flag" || | ||
3622 | test ! -s conftest.err | ||
3623 | } && test -s conftest.$ac_objext; then | ||
3624 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | ||
3625 | ac_cv_c_bigendian=yes | ||
3626 | fi | ||
3627 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
3628 | if test "$ac_cv_c_bigendian" = unknown; then | ||
3629 | ac_cv_c_bigendian=no | ||
3630 | else | ||
3631 | # finding both strings is unlikely to happen, but who knows? | ||
3632 | ac_cv_c_bigendian=unknown | ||
3633 | fi | ||
3634 | fi | ||
3635 | else | ||
3636 | echo "$as_me: failed program was:" >&5 | ||
3637 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3638 | |||
3639 | |||
3640 | fi | ||
3641 | |||
3642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3643 | else | ||
3644 | cat >conftest.$ac_ext <<_ACEOF | ||
3645 | /* confdefs.h. */ | ||
3646 | _ACEOF | ||
3647 | cat confdefs.h >>conftest.$ac_ext | ||
3648 | cat >>conftest.$ac_ext <<_ACEOF | ||
3649 | /* end confdefs.h. */ | ||
3650 | $ac_includes_default | ||
3651 | int | ||
3652 | main () | ||
3653 | { | ||
3654 | |||
3655 | /* Are we little or big endian? From Harbison&Steele. */ | ||
3656 | union | ||
3657 | { | ||
3658 | long int l; | ||
3659 | char c[sizeof (long int)]; | ||
3660 | } u; | ||
3661 | u.l = 1; | ||
3662 | return u.c[sizeof (long int) - 1] == 1; | ||
3663 | |||
3664 | ; | ||
3665 | return 0; | ||
3666 | } | ||
3667 | _ACEOF | ||
3668 | rm -f conftest$ac_exeext | ||
3669 | if { (ac_try="$ac_link" | ||
3670 | case "(($ac_try" in | ||
3671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3672 | *) ac_try_echo=$ac_try;; | ||
3673 | esac | ||
3674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3675 | (eval "$ac_link") 2>&5 | ||
3676 | ac_status=$? | ||
3677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3678 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3679 | { (case "(($ac_try" in | ||
3680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3681 | *) ac_try_echo=$ac_try;; | ||
3682 | esac | ||
3683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3684 | (eval "$ac_try") 2>&5 | ||
3685 | ac_status=$? | ||
3686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3687 | (exit $ac_status); }; }; then | ||
3688 | ac_cv_c_bigendian=no | ||
3689 | else | ||
3690 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3691 | echo "$as_me: failed program was:" >&5 | ||
3692 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3693 | |||
3694 | ( exit $ac_status ) | ||
3695 | ac_cv_c_bigendian=yes | ||
3696 | fi | ||
3697 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3698 | fi | ||
3699 | |||
3700 | |||
3701 | fi | ||
3702 | |||
3703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3704 | fi | ||
3705 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | ||
3706 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | ||
3707 | case $ac_cv_c_bigendian in | ||
3708 | yes) | ||
3709 | |||
3710 | cat >>confdefs.h <<\_ACEOF | ||
3711 | #define WORDS_BIGENDIAN 1 | ||
3712 | _ACEOF | ||
3713 | ;; | ||
3714 | no) | ||
3715 | ;; | ||
3716 | *) | ||
3717 | { { echo "$as_me:$LINENO: error: unknown endianness | ||
3718 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | ||
3719 | echo "$as_me: error: unknown endianness | ||
3720 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | ||
3721 | { (exit 1); exit 1; }; } ;; | ||
3722 | esac | ||
3723 | |||
3724 | |||
3725 | # Checks for programs. | ||
3726 | for ac_prog in gawk mawk nawk awk | ||
3727 | do | ||
3728 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3729 | set dummy $ac_prog; ac_word=$2 | ||
3730 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3731 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
3732 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
3733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3734 | else | ||
3735 | if test -n "$AWK"; then | ||
3736 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
3737 | else | ||
3738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3739 | for as_dir in $PATH | ||
3740 | do | ||
3741 | IFS=$as_save_IFS | ||
3742 | test -z "$as_dir" && as_dir=. | ||
3743 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3744 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3745 | ac_cv_prog_AWK="$ac_prog" | ||
3746 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3747 | break 2 | ||
3748 | fi | ||
3749 | done | ||
3750 | done | ||
3751 | IFS=$as_save_IFS | ||
3752 | |||
3753 | fi | ||
3754 | fi | ||
3755 | AWK=$ac_cv_prog_AWK | ||
3756 | if test -n "$AWK"; then | ||
3757 | { echo "$as_me:$LINENO: result: $AWK" >&5 | ||
3758 | echo "${ECHO_T}$AWK" >&6; } | ||
3759 | else | ||
3760 | { echo "$as_me:$LINENO: result: no" >&5 | ||
3761 | echo "${ECHO_T}no" >&6; } | ||
3762 | fi | ||
3763 | |||
3764 | |||
3765 | test -n "$AWK" && break | ||
3766 | done | ||
3767 | |||
3768 | ac_ext=c | ||
3769 | ac_cpp='$CPP $CPPFLAGS' | ||
3770 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3771 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3773 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
3774 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
3775 | # On Suns, sometimes $CPP names a directory. | ||
3776 | if test -n "$CPP" && test -d "$CPP"; then | ||
3777 | CPP= | ||
3778 | fi | ||
3779 | if test -z "$CPP"; then | ||
3780 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
3781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3782 | else | ||
3783 | # Double quotes because CPP needs to be expanded | ||
3784 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3785 | do | ||
3786 | ac_preproc_ok=false | ||
3787 | for ac_c_preproc_warn_flag in '' yes | ||
3788 | do | ||
3789 | # Use a header file that comes with gcc, so configuring glibc | ||
3790 | # with a fresh cross-compiler works. | ||
3791 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3792 | # <limits.h> exists even on freestanding compilers. | ||
3793 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3794 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3795 | cat >conftest.$ac_ext <<_ACEOF | ||
3796 | /* confdefs.h. */ | ||
3797 | _ACEOF | ||
3798 | cat confdefs.h >>conftest.$ac_ext | ||
3799 | cat >>conftest.$ac_ext <<_ACEOF | ||
3800 | /* end confdefs.h. */ | ||
3801 | #ifdef __STDC__ | ||
3802 | # include <limits.h> | ||
3803 | #else | ||
3804 | # include <assert.h> | ||
3805 | #endif | ||
3806 | Syntax error | ||
3807 | _ACEOF | ||
3808 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3809 | case "(($ac_try" in | ||
3810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3811 | *) ac_try_echo=$ac_try;; | ||
3812 | esac | ||
3813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3814 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3815 | ac_status=$? | ||
3816 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3817 | rm -f conftest.er1 | ||
3818 | cat conftest.err >&5 | ||
3819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3820 | (exit $ac_status); } >/dev/null && { | ||
3821 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3822 | test ! -s conftest.err | ||
3823 | }; then | ||
3824 | : | ||
3825 | else | ||
3826 | echo "$as_me: failed program was:" >&5 | ||
3827 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3828 | |||
3829 | # Broken: fails on valid input. | ||
3830 | continue | ||
3831 | fi | ||
3832 | |||
3833 | rm -f conftest.err conftest.$ac_ext | ||
3834 | |||
3835 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3836 | # can be detected and how. | ||
3837 | cat >conftest.$ac_ext <<_ACEOF | ||
3838 | /* confdefs.h. */ | ||
3839 | _ACEOF | ||
3840 | cat confdefs.h >>conftest.$ac_ext | ||
3841 | cat >>conftest.$ac_ext <<_ACEOF | ||
3842 | /* end confdefs.h. */ | ||
3843 | #include <ac_nonexistent.h> | ||
3844 | _ACEOF | ||
3845 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3846 | case "(($ac_try" in | ||
3847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3848 | *) ac_try_echo=$ac_try;; | ||
3849 | esac | ||
3850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3851 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3852 | ac_status=$? | ||
3853 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3854 | rm -f conftest.er1 | ||
3855 | cat conftest.err >&5 | ||
3856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3857 | (exit $ac_status); } >/dev/null && { | ||
3858 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3859 | test ! -s conftest.err | ||
3860 | }; then | ||
3861 | # Broken: success on invalid input. | ||
3862 | continue | ||
3863 | else | ||
3864 | echo "$as_me: failed program was:" >&5 | ||
3865 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3866 | |||
3867 | # Passes both tests. | ||
3868 | ac_preproc_ok=: | ||
3869 | break | ||
3870 | fi | ||
3871 | |||
3872 | rm -f conftest.err conftest.$ac_ext | ||
3873 | |||
3874 | done | ||
3875 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3876 | rm -f conftest.err conftest.$ac_ext | ||
3877 | if $ac_preproc_ok; then | ||
3878 | break | ||
3879 | fi | ||
3880 | |||
3881 | done | ||
3882 | ac_cv_prog_CPP=$CPP | ||
3883 | |||
3884 | fi | ||
3885 | CPP=$ac_cv_prog_CPP | ||
3886 | else | ||
3887 | ac_cv_prog_CPP=$CPP | ||
3888 | fi | ||
3889 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
3890 | echo "${ECHO_T}$CPP" >&6; } | ||
3891 | ac_preproc_ok=false | ||
3892 | for ac_c_preproc_warn_flag in '' yes | ||
3893 | do | ||
3894 | # Use a header file that comes with gcc, so configuring glibc | ||
3895 | # with a fresh cross-compiler works. | ||
3896 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3897 | # <limits.h> exists even on freestanding compilers. | ||
3898 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3899 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3900 | cat >conftest.$ac_ext <<_ACEOF | ||
3901 | /* confdefs.h. */ | ||
3902 | _ACEOF | ||
3903 | cat confdefs.h >>conftest.$ac_ext | ||
3904 | cat >>conftest.$ac_ext <<_ACEOF | ||
3905 | /* end confdefs.h. */ | ||
3906 | #ifdef __STDC__ | ||
3907 | # include <limits.h> | ||
3908 | #else | ||
3909 | # include <assert.h> | ||
3910 | #endif | ||
3911 | Syntax error | ||
3912 | _ACEOF | ||
3913 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3914 | case "(($ac_try" in | ||
3915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3916 | *) ac_try_echo=$ac_try;; | ||
3917 | esac | ||
3918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3919 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3920 | ac_status=$? | ||
3921 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3922 | rm -f conftest.er1 | ||
3923 | cat conftest.err >&5 | ||
3924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3925 | (exit $ac_status); } >/dev/null && { | ||
3926 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3927 | test ! -s conftest.err | ||
3928 | }; then | ||
3929 | : | ||
3930 | else | ||
3931 | echo "$as_me: failed program was:" >&5 | ||
3932 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3933 | |||
3934 | # Broken: fails on valid input. | ||
3935 | continue | ||
3936 | fi | ||
3937 | |||
3938 | rm -f conftest.err conftest.$ac_ext | ||
3939 | |||
3940 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3941 | # can be detected and how. | ||
3942 | cat >conftest.$ac_ext <<_ACEOF | ||
3943 | /* confdefs.h. */ | ||
3944 | _ACEOF | ||
3945 | cat confdefs.h >>conftest.$ac_ext | ||
3946 | cat >>conftest.$ac_ext <<_ACEOF | ||
3947 | /* end confdefs.h. */ | ||
3948 | #include <ac_nonexistent.h> | ||
3949 | _ACEOF | ||
3950 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3951 | case "(($ac_try" in | ||
3952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3953 | *) ac_try_echo=$ac_try;; | ||
3954 | esac | ||
3955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3956 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3957 | ac_status=$? | ||
3958 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3959 | rm -f conftest.er1 | ||
3960 | cat conftest.err >&5 | ||
3961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3962 | (exit $ac_status); } >/dev/null && { | ||
3963 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3964 | test ! -s conftest.err | ||
3965 | }; then | ||
3966 | # Broken: success on invalid input. | ||
3967 | continue | ||
3968 | else | ||
3969 | echo "$as_me: failed program was:" >&5 | ||
3970 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3971 | |||
3972 | # Passes both tests. | ||
3973 | ac_preproc_ok=: | ||
3974 | break | ||
3975 | fi | ||
3976 | |||
3977 | rm -f conftest.err conftest.$ac_ext | ||
3978 | |||
3979 | done | ||
3980 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3981 | rm -f conftest.err conftest.$ac_ext | ||
3982 | if $ac_preproc_ok; then | ||
3983 | : | ||
3984 | else | ||
3985 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3986 | See \`config.log' for more details." >&5 | ||
3987 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3988 | See \`config.log' for more details." >&2;} | ||
3989 | { (exit 1); exit 1; }; } | ||
3990 | fi | ||
3991 | |||
3992 | ac_ext=c | ||
3993 | ac_cpp='$CPP $CPPFLAGS' | ||
3994 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3995 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3996 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3997 | |||
3998 | if test -n "$ac_tool_prefix"; then | ||
3999 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
4000 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
4001 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4002 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4003 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
4004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4005 | else | ||
4006 | if test -n "$RANLIB"; then | ||
4007 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
4008 | else | ||
4009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4010 | for as_dir in $PATH | ||
4011 | do | ||
4012 | IFS=$as_save_IFS | ||
4013 | test -z "$as_dir" && as_dir=. | ||
4014 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4015 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4016 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
4017 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4018 | break 2 | ||
4019 | fi | ||
4020 | done | ||
4021 | done | ||
4022 | IFS=$as_save_IFS | ||
4023 | |||
4024 | fi | ||
4025 | fi | ||
4026 | RANLIB=$ac_cv_prog_RANLIB | ||
4027 | if test -n "$RANLIB"; then | ||
4028 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
4029 | echo "${ECHO_T}$RANLIB" >&6; } | ||
4030 | else | ||
4031 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4032 | echo "${ECHO_T}no" >&6; } | ||
4033 | fi | ||
4034 | |||
4035 | |||
4036 | fi | ||
4037 | if test -z "$ac_cv_prog_RANLIB"; then | ||
4038 | ac_ct_RANLIB=$RANLIB | ||
4039 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
4040 | set dummy ranlib; ac_word=$2 | ||
4041 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4043 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
4044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4045 | else | ||
4046 | if test -n "$ac_ct_RANLIB"; then | ||
4047 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
4048 | else | ||
4049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4050 | for as_dir in $PATH | ||
4051 | do | ||
4052 | IFS=$as_save_IFS | ||
4053 | test -z "$as_dir" && as_dir=. | ||
4054 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4055 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4056 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
4057 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4058 | break 2 | ||
4059 | fi | ||
4060 | done | ||
4061 | done | ||
4062 | IFS=$as_save_IFS | ||
4063 | |||
4064 | fi | ||
4065 | fi | ||
4066 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
4067 | if test -n "$ac_ct_RANLIB"; then | ||
4068 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
4069 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | ||
4070 | else | ||
4071 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4072 | echo "${ECHO_T}no" >&6; } | ||
4073 | fi | ||
4074 | |||
4075 | if test "x$ac_ct_RANLIB" = x; then | ||
4076 | RANLIB=":" | ||
4077 | else | ||
4078 | case $cross_compiling:$ac_tool_warned in | ||
4079 | yes:) | ||
4080 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
4081 | whose name does not start with the host triplet. If you think this | ||
4082 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
4083 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
4084 | whose name does not start with the host triplet. If you think this | ||
4085 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
4086 | ac_tool_warned=yes ;; | ||
4087 | esac | ||
4088 | RANLIB=$ac_ct_RANLIB | ||
4089 | fi | ||
4090 | else | ||
4091 | RANLIB="$ac_cv_prog_RANLIB" | ||
4092 | fi | ||
4093 | |||
4094 | # Find a good install program. We prefer a C program (faster), | ||
4095 | # so one script is as good as another. But avoid the broken or | ||
4096 | # incompatible versions: | ||
4097 | # SysV /etc/install, /usr/sbin/install | ||
4098 | # SunOS /usr/etc/install | ||
4099 | # IRIX /sbin/install | ||
4100 | # AIX /bin/install | ||
4101 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
4102 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
4103 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
4104 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
4105 | # OS/2's system install, which has a completely different semantic | ||
4106 | # ./install, which can be erroneously created by make from ./install.sh. | ||
4107 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
4108 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | ||
4109 | if test -z "$INSTALL"; then | ||
4110 | if test "${ac_cv_path_install+set}" = set; then | ||
4111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4112 | else | ||
4113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4114 | for as_dir in $PATH | ||
4115 | do | ||
4116 | IFS=$as_save_IFS | ||
4117 | test -z "$as_dir" && as_dir=. | ||
4118 | # Account for people who put trailing slashes in PATH elements. | ||
4119 | case $as_dir/ in | ||
4120 | ./ | .// | /cC/* | \ | ||
4121 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
4122 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
4123 | /usr/ucb/* ) ;; | ||
4124 | *) | ||
4125 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
4126 | # Don't use installbsd from OSF since it installs stuff as root | ||
4127 | # by default. | ||
4128 | for ac_prog in ginstall scoinst install; do | ||
4129 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4130 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
4131 | if test $ac_prog = install && | ||
4132 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4133 | # AIX install. It has an incompatible calling convention. | ||
4134 | : | ||
4135 | elif test $ac_prog = install && | ||
4136 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4137 | # program-specific install script used by HP pwplus--don't use. | ||
4138 | : | ||
4139 | else | ||
4140 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
4141 | break 3 | ||
4142 | fi | ||
4143 | fi | ||
4144 | done | ||
4145 | done | ||
4146 | ;; | ||
4147 | esac | ||
4148 | done | ||
4149 | IFS=$as_save_IFS | ||
4150 | |||
4151 | |||
4152 | fi | ||
4153 | if test "${ac_cv_path_install+set}" = set; then | ||
4154 | INSTALL=$ac_cv_path_install | ||
4155 | else | ||
4156 | # As a last resort, use the slow shell script. Don't cache a | ||
4157 | # value for INSTALL within a source directory, because that will | ||
4158 | # break other packages using the cache if that directory is | ||
4159 | # removed, or if the value is a relative name. | ||
4160 | INSTALL=$ac_install_sh | ||
4161 | fi | ||
4162 | fi | ||
4163 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
4164 | echo "${ECHO_T}$INSTALL" >&6; } | ||
4165 | |||
4166 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
4167 | # It thinks the first close brace ends the variable substitution. | ||
4168 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
4169 | |||
4170 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
4171 | |||
4172 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
4173 | |||
4174 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
4175 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
4176 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4178 | else | ||
4179 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4180 | then ac_cv_path_EGREP="$GREP -E" | ||
4181 | else | ||
4182 | # Extract the first word of "egrep" to use in msg output | ||
4183 | if test -z "$EGREP"; then | ||
4184 | set dummy egrep; ac_prog_name=$2 | ||
4185 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4187 | else | ||
4188 | ac_path_EGREP_found=false | ||
4189 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4191 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4192 | do | ||
4193 | IFS=$as_save_IFS | ||
4194 | test -z "$as_dir" && as_dir=. | ||
4195 | for ac_prog in egrep; do | ||
4196 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4197 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4198 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4199 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4200 | # Check for GNU $ac_path_EGREP | ||
4201 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4202 | *GNU*) | ||
4203 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4204 | *) | ||
4205 | ac_count=0 | ||
4206 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
4207 | while : | ||
4208 | do | ||
4209 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4210 | mv "conftest.tmp" "conftest.in" | ||
4211 | cp "conftest.in" "conftest.nl" | ||
4212 | echo 'EGREP' >> "conftest.nl" | ||
4213 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4214 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4215 | ac_count=`expr $ac_count + 1` | ||
4216 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4217 | # Best one so far, save it but keep looking for a better one | ||
4218 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4219 | ac_path_EGREP_max=$ac_count | ||
4220 | fi | ||
4221 | # 10*(2^10) chars as input seems more than enough | ||
4222 | test $ac_count -gt 10 && break | ||
4223 | done | ||
4224 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4225 | esac | ||
4226 | |||
4227 | |||
4228 | $ac_path_EGREP_found && break 3 | ||
4229 | done | ||
4230 | done | ||
4231 | |||
4232 | done | ||
4233 | IFS=$as_save_IFS | ||
4234 | |||
4235 | |||
4236 | fi | ||
4237 | |||
4238 | EGREP="$ac_cv_path_EGREP" | ||
4239 | if test -z "$EGREP"; then | ||
4240 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
4241 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
4242 | { (exit 1); exit 1; }; } | ||
4243 | fi | ||
4244 | |||
4245 | else | ||
4246 | ac_cv_path_EGREP=$EGREP | ||
4247 | fi | ||
4248 | |||
4249 | |||
4250 | fi | ||
4251 | fi | ||
4252 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
4253 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
4254 | EGREP="$ac_cv_path_EGREP" | ||
4255 | |||
4256 | |||
4257 | if test -n "$ac_tool_prefix"; then | ||
4258 | for ac_prog in ar | ||
4259 | do | ||
4260 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
4261 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
4262 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4263 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4264 | if test "${ac_cv_prog_AR+set}" = set; then | ||
4265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4266 | else | ||
4267 | if test -n "$AR"; then | ||
4268 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
4269 | else | ||
4270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4271 | for as_dir in $PATH | ||
4272 | do | ||
4273 | IFS=$as_save_IFS | ||
4274 | test -z "$as_dir" && as_dir=. | ||
4275 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4277 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
4278 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4279 | break 2 | ||
4280 | fi | ||
4281 | done | ||
4282 | done | ||
4283 | IFS=$as_save_IFS | ||
4284 | |||
4285 | fi | ||
4286 | fi | ||
4287 | AR=$ac_cv_prog_AR | ||
4288 | if test -n "$AR"; then | ||
4289 | { echo "$as_me:$LINENO: result: $AR" >&5 | ||
4290 | echo "${ECHO_T}$AR" >&6; } | ||
4291 | else | ||
4292 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4293 | echo "${ECHO_T}no" >&6; } | ||
4294 | fi | ||
4295 | |||
4296 | |||
4297 | test -n "$AR" && break | ||
4298 | done | ||
4299 | fi | ||
4300 | if test -z "$AR"; then | ||
4301 | ac_ct_AR=$AR | ||
4302 | for ac_prog in ar | ||
4303 | do | ||
4304 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4305 | set dummy $ac_prog; ac_word=$2 | ||
4306 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4307 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4308 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | ||
4309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4310 | else | ||
4311 | if test -n "$ac_ct_AR"; then | ||
4312 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
4313 | else | ||
4314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4315 | for as_dir in $PATH | ||
4316 | do | ||
4317 | IFS=$as_save_IFS | ||
4318 | test -z "$as_dir" && as_dir=. | ||
4319 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4320 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4321 | ac_cv_prog_ac_ct_AR="$ac_prog" | ||
4322 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4323 | break 2 | ||
4324 | fi | ||
4325 | done | ||
4326 | done | ||
4327 | IFS=$as_save_IFS | ||
4328 | |||
4329 | fi | ||
4330 | fi | ||
4331 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
4332 | if test -n "$ac_ct_AR"; then | ||
4333 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | ||
4334 | echo "${ECHO_T}$ac_ct_AR" >&6; } | ||
4335 | else | ||
4336 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4337 | echo "${ECHO_T}no" >&6; } | ||
4338 | fi | ||
4339 | |||
4340 | |||
4341 | test -n "$ac_ct_AR" && break | ||
4342 | done | ||
4343 | |||
4344 | if test "x$ac_ct_AR" = x; then | ||
4345 | AR="" | ||
4346 | else | ||
4347 | case $cross_compiling:$ac_tool_warned in | ||
4348 | yes:) | ||
4349 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
4350 | whose name does not start with the host triplet. If you think this | ||
4351 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
4352 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
4353 | whose name does not start with the host triplet. If you think this | ||
4354 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
4355 | ac_tool_warned=yes ;; | ||
4356 | esac | ||
4357 | AR=$ac_ct_AR | ||
4358 | fi | ||
4359 | fi | ||
4360 | |||
4361 | # Extract the first word of "cat", so it can be a program name with args. | ||
4362 | set dummy cat; ac_word=$2 | ||
4363 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4364 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4365 | if test "${ac_cv_path_CAT+set}" = set; then | ||
4366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4367 | else | ||
4368 | case $CAT in | ||
4369 | [\\/]* | ?:[\\/]*) | ||
4370 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
4371 | ;; | ||
4372 | *) | ||
4373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4374 | for as_dir in $PATH | ||
4375 | do | ||
4376 | IFS=$as_save_IFS | ||
4377 | test -z "$as_dir" && as_dir=. | ||
4378 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4379 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4380 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
4381 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4382 | break 2 | ||
4383 | fi | ||
4384 | done | ||
4385 | done | ||
4386 | IFS=$as_save_IFS | ||
4387 | |||
4388 | ;; | ||
4389 | esac | ||
4390 | fi | ||
4391 | CAT=$ac_cv_path_CAT | ||
4392 | if test -n "$CAT"; then | ||
4393 | { echo "$as_me:$LINENO: result: $CAT" >&5 | ||
4394 | echo "${ECHO_T}$CAT" >&6; } | ||
4395 | else | ||
4396 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4397 | echo "${ECHO_T}no" >&6; } | ||
4398 | fi | ||
4399 | |||
4400 | |||
4401 | # Extract the first word of "kill", so it can be a program name with args. | ||
4402 | set dummy kill; ac_word=$2 | ||
4403 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4404 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4405 | if test "${ac_cv_path_KILL+set}" = set; then | ||
4406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4407 | else | ||
4408 | case $KILL in | ||
4409 | [\\/]* | ?:[\\/]*) | ||
4410 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
4411 | ;; | ||
4412 | *) | ||
4413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4414 | for as_dir in $PATH | ||
4415 | do | ||
4416 | IFS=$as_save_IFS | ||
4417 | test -z "$as_dir" && as_dir=. | ||
4418 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4419 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4420 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
4421 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4422 | break 2 | ||
4423 | fi | ||
4424 | done | ||
4425 | done | ||
4426 | IFS=$as_save_IFS | ||
4427 | |||
4428 | ;; | ||
4429 | esac | ||
4430 | fi | ||
4431 | KILL=$ac_cv_path_KILL | ||
4432 | if test -n "$KILL"; then | ||
4433 | { echo "$as_me:$LINENO: result: $KILL" >&5 | ||
4434 | echo "${ECHO_T}$KILL" >&6; } | ||
4435 | else | ||
4436 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4437 | echo "${ECHO_T}no" >&6; } | ||
4438 | fi | ||
4439 | |||
4440 | |||
4441 | for ac_prog in perl5 perl | ||
4442 | do | ||
4443 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4444 | set dummy $ac_prog; ac_word=$2 | ||
4445 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4446 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4447 | if test "${ac_cv_path_PERL+set}" = set; then | ||
4448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4449 | else | ||
4450 | case $PERL in | ||
4451 | [\\/]* | ?:[\\/]*) | ||
4452 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
4453 | ;; | ||
4454 | *) | ||
4455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4456 | for as_dir in $PATH | ||
4457 | do | ||
4458 | IFS=$as_save_IFS | ||
4459 | test -z "$as_dir" && as_dir=. | ||
4460 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4461 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4462 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
4463 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4464 | break 2 | ||
4465 | fi | ||
4466 | done | ||
4467 | done | ||
4468 | IFS=$as_save_IFS | ||
4469 | |||
4470 | ;; | ||
4471 | esac | ||
4472 | fi | ||
4473 | PERL=$ac_cv_path_PERL | ||
4474 | if test -n "$PERL"; then | ||
4475 | { echo "$as_me:$LINENO: result: $PERL" >&5 | ||
4476 | echo "${ECHO_T}$PERL" >&6; } | ||
4477 | else | ||
4478 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4479 | echo "${ECHO_T}no" >&6; } | ||
4480 | fi | ||
4481 | |||
4482 | |||
4483 | test -n "$PERL" && break | ||
4484 | done | ||
4485 | |||
4486 | # Extract the first word of "sed", so it can be a program name with args. | ||
4487 | set dummy sed; ac_word=$2 | ||
4488 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4489 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4490 | if test "${ac_cv_path_SED+set}" = set; then | ||
4491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4492 | else | ||
4493 | case $SED in | ||
4494 | [\\/]* | ?:[\\/]*) | ||
4495 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
4496 | ;; | ||
4497 | *) | ||
4498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4499 | for as_dir in $PATH | ||
4500 | do | ||
4501 | IFS=$as_save_IFS | ||
4502 | test -z "$as_dir" && as_dir=. | ||
4503 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4504 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4505 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
4506 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4507 | break 2 | ||
4508 | fi | ||
4509 | done | ||
4510 | done | ||
4511 | IFS=$as_save_IFS | ||
4512 | |||
4513 | ;; | ||
4514 | esac | ||
4515 | fi | ||
4516 | SED=$ac_cv_path_SED | ||
4517 | if test -n "$SED"; then | ||
4518 | { echo "$as_me:$LINENO: result: $SED" >&5 | ||
4519 | echo "${ECHO_T}$SED" >&6; } | ||
4520 | else | ||
4521 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4522 | echo "${ECHO_T}no" >&6; } | ||
4523 | fi | ||
4524 | |||
4525 | |||
4526 | |||
4527 | # Extract the first word of "ent", so it can be a program name with args. | ||
4528 | set dummy ent; ac_word=$2 | ||
4529 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4530 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4531 | if test "${ac_cv_path_ENT+set}" = set; then | ||
4532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4533 | else | ||
4534 | case $ENT in | ||
4535 | [\\/]* | ?:[\\/]*) | ||
4536 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
4537 | ;; | ||
4538 | *) | ||
4539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4540 | for as_dir in $PATH | ||
4541 | do | ||
4542 | IFS=$as_save_IFS | ||
4543 | test -z "$as_dir" && as_dir=. | ||
4544 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4545 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4546 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
4547 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4548 | break 2 | ||
4549 | fi | ||
4550 | done | ||
4551 | done | ||
4552 | IFS=$as_save_IFS | ||
4553 | |||
4554 | ;; | ||
4555 | esac | ||
4556 | fi | ||
4557 | ENT=$ac_cv_path_ENT | ||
4558 | if test -n "$ENT"; then | ||
4559 | { echo "$as_me:$LINENO: result: $ENT" >&5 | ||
4560 | echo "${ECHO_T}$ENT" >&6; } | ||
4561 | else | ||
4562 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4563 | echo "${ECHO_T}no" >&6; } | ||
4564 | fi | ||
4565 | |||
4566 | |||
4567 | |||
4568 | # Extract the first word of "bash", so it can be a program name with args. | ||
4569 | set dummy bash; ac_word=$2 | ||
4570 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4571 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4572 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4574 | else | ||
4575 | case $TEST_MINUS_S_SH in | ||
4576 | [\\/]* | ?:[\\/]*) | ||
4577 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4578 | ;; | ||
4579 | *) | ||
4580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4581 | for as_dir in $PATH | ||
4582 | do | ||
4583 | IFS=$as_save_IFS | ||
4584 | test -z "$as_dir" && as_dir=. | ||
4585 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4586 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4587 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4588 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4589 | break 2 | ||
4590 | fi | ||
4591 | done | ||
4592 | done | ||
4593 | IFS=$as_save_IFS | ||
4594 | |||
4595 | ;; | ||
4596 | esac | ||
4597 | fi | ||
4598 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4599 | if test -n "$TEST_MINUS_S_SH"; then | ||
4600 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4601 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4602 | else | ||
4603 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4604 | echo "${ECHO_T}no" >&6; } | ||
4605 | fi | ||
4606 | |||
4607 | |||
4608 | # Extract the first word of "ksh", so it can be a program name with args. | ||
4609 | set dummy ksh; ac_word=$2 | ||
4610 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4612 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4614 | else | ||
4615 | case $TEST_MINUS_S_SH in | ||
4616 | [\\/]* | ?:[\\/]*) | ||
4617 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4618 | ;; | ||
4619 | *) | ||
4620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4621 | for as_dir in $PATH | ||
4622 | do | ||
4623 | IFS=$as_save_IFS | ||
4624 | test -z "$as_dir" && as_dir=. | ||
4625 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4626 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4627 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4628 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4629 | break 2 | ||
4630 | fi | ||
4631 | done | ||
4632 | done | ||
4633 | IFS=$as_save_IFS | ||
4634 | |||
4635 | ;; | ||
4636 | esac | ||
4637 | fi | ||
4638 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4639 | if test -n "$TEST_MINUS_S_SH"; then | ||
4640 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4641 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4642 | else | ||
4643 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4644 | echo "${ECHO_T}no" >&6; } | ||
4645 | fi | ||
4646 | |||
4647 | |||
4648 | # Extract the first word of "sh", so it can be a program name with args. | ||
4649 | set dummy sh; ac_word=$2 | ||
4650 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4652 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4654 | else | ||
4655 | case $TEST_MINUS_S_SH in | ||
4656 | [\\/]* | ?:[\\/]*) | ||
4657 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4658 | ;; | ||
4659 | *) | ||
4660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4661 | for as_dir in $PATH | ||
4662 | do | ||
4663 | IFS=$as_save_IFS | ||
4664 | test -z "$as_dir" && as_dir=. | ||
4665 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4666 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4667 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4668 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4669 | break 2 | ||
4670 | fi | ||
4671 | done | ||
4672 | done | ||
4673 | IFS=$as_save_IFS | ||
4674 | |||
4675 | ;; | ||
4676 | esac | ||
4677 | fi | ||
4678 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4679 | if test -n "$TEST_MINUS_S_SH"; then | ||
4680 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4681 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4682 | else | ||
4683 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4684 | echo "${ECHO_T}no" >&6; } | ||
4685 | fi | ||
4686 | |||
4687 | |||
4688 | # Extract the first word of "sh", so it can be a program name with args. | ||
4689 | set dummy sh; ac_word=$2 | ||
4690 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4691 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4692 | if test "${ac_cv_path_SH+set}" = set; then | ||
4693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4694 | else | ||
4695 | case $SH in | ||
4696 | [\\/]* | ?:[\\/]*) | ||
4697 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
4698 | ;; | ||
4699 | *) | ||
4700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4701 | for as_dir in $PATH | ||
4702 | do | ||
4703 | IFS=$as_save_IFS | ||
4704 | test -z "$as_dir" && as_dir=. | ||
4705 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4706 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4707 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4708 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4709 | break 2 | ||
4710 | fi | ||
4711 | done | ||
4712 | done | ||
4713 | IFS=$as_save_IFS | ||
4714 | |||
4715 | ;; | ||
4716 | esac | ||
4717 | fi | ||
4718 | SH=$ac_cv_path_SH | ||
4719 | if test -n "$SH"; then | ||
4720 | { echo "$as_me:$LINENO: result: $SH" >&5 | ||
4721 | echo "${ECHO_T}$SH" >&6; } | ||
4722 | else | ||
4723 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4724 | echo "${ECHO_T}no" >&6; } | ||
4725 | fi | ||
4726 | |||
4727 | |||
4728 | # Extract the first word of "groff", so it can be a program name with args. | ||
4729 | set dummy groff; ac_word=$2 | ||
4730 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4731 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4732 | if test "${ac_cv_path_GROFF+set}" = set; then | ||
4733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4734 | else | ||
4735 | case $GROFF in | ||
4736 | [\\/]* | ?:[\\/]*) | ||
4737 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. | ||
4738 | ;; | ||
4739 | *) | ||
4740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4741 | for as_dir in $PATH | ||
4742 | do | ||
4743 | IFS=$as_save_IFS | ||
4744 | test -z "$as_dir" && as_dir=. | ||
4745 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4746 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4747 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" | ||
4748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4749 | break 2 | ||
4750 | fi | ||
4751 | done | ||
4752 | done | ||
4753 | IFS=$as_save_IFS | ||
4754 | |||
4755 | ;; | ||
4756 | esac | ||
4757 | fi | ||
4758 | GROFF=$ac_cv_path_GROFF | ||
4759 | if test -n "$GROFF"; then | ||
4760 | { echo "$as_me:$LINENO: result: $GROFF" >&5 | ||
4761 | echo "${ECHO_T}$GROFF" >&6; } | ||
4762 | else | ||
4763 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4764 | echo "${ECHO_T}no" >&6; } | ||
4765 | fi | ||
4766 | |||
4767 | |||
4768 | # Extract the first word of "nroff", so it can be a program name with args. | ||
4769 | set dummy nroff; ac_word=$2 | ||
4770 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4772 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
4773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4774 | else | ||
4775 | case $NROFF in | ||
4776 | [\\/]* | ?:[\\/]*) | ||
4777 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
4778 | ;; | ||
4779 | *) | ||
4780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4781 | for as_dir in $PATH | ||
4782 | do | ||
4783 | IFS=$as_save_IFS | ||
4784 | test -z "$as_dir" && as_dir=. | ||
4785 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4786 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4787 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
4788 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4789 | break 2 | ||
4790 | fi | ||
4791 | done | ||
4792 | done | ||
4793 | IFS=$as_save_IFS | ||
4794 | |||
4795 | ;; | ||
4796 | esac | ||
4797 | fi | ||
4798 | NROFF=$ac_cv_path_NROFF | ||
4799 | if test -n "$NROFF"; then | ||
4800 | { echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
4801 | echo "${ECHO_T}$NROFF" >&6; } | ||
4802 | else | ||
4803 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4804 | echo "${ECHO_T}no" >&6; } | ||
4805 | fi | ||
4806 | |||
4807 | |||
4808 | # Extract the first word of "mandoc", so it can be a program name with args. | ||
4809 | set dummy mandoc; ac_word=$2 | ||
4810 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4812 | if test "${ac_cv_path_MANDOC+set}" = set; then | ||
4813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4814 | else | ||
4815 | case $MANDOC in | ||
4816 | [\\/]* | ?:[\\/]*) | ||
4817 | ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path. | ||
4818 | ;; | ||
4819 | *) | ||
4820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4821 | for as_dir in $PATH | ||
4822 | do | ||
4823 | IFS=$as_save_IFS | ||
4824 | test -z "$as_dir" && as_dir=. | ||
4825 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4826 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4827 | ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext" | ||
4828 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4829 | break 2 | ||
4830 | fi | ||
4831 | done | ||
4832 | done | ||
4833 | IFS=$as_save_IFS | ||
4834 | |||
4835 | ;; | ||
4836 | esac | ||
4837 | fi | ||
4838 | MANDOC=$ac_cv_path_MANDOC | ||
4839 | if test -n "$MANDOC"; then | ||
4840 | { echo "$as_me:$LINENO: result: $MANDOC" >&5 | ||
4841 | echo "${ECHO_T}$MANDOC" >&6; } | ||
4842 | else | ||
4843 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4844 | echo "${ECHO_T}no" >&6; } | ||
4845 | fi | ||
4846 | |||
4847 | |||
4848 | TEST_SHELL=sh | ||
4849 | |||
4850 | |||
4851 | if test "x$MANDOC" != "x" ; then | ||
4852 | MANFMT="$MANDOC" | ||
4853 | elif test "x$NROFF" != "x" ; then | ||
4854 | MANFMT="$NROFF -mandoc" | ||
4855 | elif test "x$GROFF" != "x" ; then | ||
4856 | MANFMT="$GROFF -mandoc -Tascii" | ||
4857 | else | ||
4858 | { echo "$as_me:$LINENO: WARNING: no manpage formatted found" >&5 | ||
4859 | echo "$as_me: WARNING: no manpage formatted found" >&2;} | ||
4860 | MANFMT="false" | ||
4861 | fi | ||
4862 | |||
4863 | |||
4864 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
4865 | set dummy groupadd; ac_word=$2 | ||
4866 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4868 | if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then | ||
4869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4870 | else | ||
4871 | case $PATH_GROUPADD_PROG in | ||
4872 | [\\/]* | ?:[\\/]*) | ||
4873 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
4874 | ;; | ||
4875 | *) | ||
4876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4877 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4878 | do | ||
4879 | IFS=$as_save_IFS | ||
4880 | test -z "$as_dir" && as_dir=. | ||
4881 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4883 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4885 | break 2 | ||
4886 | fi | ||
4887 | done | ||
4888 | done | ||
4889 | IFS=$as_save_IFS | ||
4890 | |||
4891 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
4892 | ;; | ||
4893 | esac | ||
4894 | fi | ||
4895 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
4896 | if test -n "$PATH_GROUPADD_PROG"; then | ||
4897 | { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5 | ||
4898 | echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; } | ||
4899 | else | ||
4900 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4901 | echo "${ECHO_T}no" >&6; } | ||
4902 | fi | ||
4903 | |||
4904 | |||
4905 | # Extract the first word of "useradd", so it can be a program name with args. | ||
4906 | set dummy useradd; ac_word=$2 | ||
4907 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4908 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4909 | if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then | ||
4910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4911 | else | ||
4912 | case $PATH_USERADD_PROG in | ||
4913 | [\\/]* | ?:[\\/]*) | ||
4914 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
4915 | ;; | ||
4916 | *) | ||
4917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4918 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4919 | do | ||
4920 | IFS=$as_save_IFS | ||
4921 | test -z "$as_dir" && as_dir=. | ||
4922 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4923 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4924 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4925 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4926 | break 2 | ||
4927 | fi | ||
4928 | done | ||
4929 | done | ||
4930 | IFS=$as_save_IFS | ||
4931 | |||
4932 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
4933 | ;; | ||
4934 | esac | ||
4935 | fi | ||
4936 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
4937 | if test -n "$PATH_USERADD_PROG"; then | ||
4938 | { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5 | ||
4939 | echo "${ECHO_T}$PATH_USERADD_PROG" >&6; } | ||
4940 | else | ||
4941 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4942 | echo "${ECHO_T}no" >&6; } | ||
4943 | fi | ||
4944 | |||
4945 | |||
4946 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
4947 | set dummy pkgmk; ac_word=$2 | ||
4948 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4950 | if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then | ||
4951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4952 | else | ||
4953 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
4954 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
4955 | else | ||
4956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4957 | for as_dir in $PATH | ||
4958 | do | ||
4959 | IFS=$as_save_IFS | ||
4960 | test -z "$as_dir" && as_dir=. | ||
4961 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4962 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4963 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
4964 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4965 | break 2 | ||
4966 | fi | ||
4967 | done | ||
4968 | done | ||
4969 | IFS=$as_save_IFS | ||
4970 | |||
4971 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
4972 | fi | ||
4973 | fi | ||
4974 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
4975 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
4976 | { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
4977 | echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; } | ||
4978 | else | ||
4979 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4980 | echo "${ECHO_T}no" >&6; } | ||
4981 | fi | ||
4982 | |||
4983 | |||
4984 | if test -x /sbin/sh; then | ||
4985 | STARTUP_SCRIPT_SHELL=/sbin/sh | ||
4986 | |||
4987 | else | ||
4988 | STARTUP_SCRIPT_SHELL=/bin/sh | ||
4989 | |||
4990 | fi | ||
4991 | |||
4992 | # System features | ||
4993 | # Check whether --enable-largefile was given. | ||
4994 | if test "${enable_largefile+set}" = set; then | ||
4995 | enableval=$enable_largefile; | ||
4996 | fi | ||
4997 | |||
4998 | if test "$enable_largefile" != no; then | ||
4999 | |||
5000 | { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | ||
5001 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } | ||
5002 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
5003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5004 | else | ||
5005 | ac_cv_sys_largefile_CC=no | ||
5006 | if test "$GCC" != yes; then | ||
5007 | ac_save_CC=$CC | ||
5008 | while :; do | ||
5009 | # IRIX 6.2 and later do not support large files by default, | ||
5010 | # so use the C compiler's -n32 option if that helps. | ||
5011 | cat >conftest.$ac_ext <<_ACEOF | ||
5012 | /* confdefs.h. */ | ||
5013 | _ACEOF | ||
5014 | cat confdefs.h >>conftest.$ac_ext | ||
5015 | cat >>conftest.$ac_ext <<_ACEOF | ||
5016 | /* end confdefs.h. */ | ||
5017 | #include <sys/types.h> | ||
5018 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5019 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5020 | since some C++ compilers masquerading as C compilers | ||
5021 | incorrectly reject 9223372036854775807. */ | ||
5022 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5023 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5024 | && LARGE_OFF_T % 2147483647 == 1) | ||
5025 | ? 1 : -1]; | ||
5026 | int | ||
5027 | main () | ||
5028 | { | ||
5029 | |||
5030 | ; | ||
5031 | return 0; | ||
5032 | } | ||
5033 | _ACEOF | ||
5034 | rm -f conftest.$ac_objext | ||
5035 | if { (ac_try="$ac_compile" | ||
5036 | case "(($ac_try" in | ||
5037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5038 | *) ac_try_echo=$ac_try;; | ||
5039 | esac | ||
5040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5041 | (eval "$ac_compile") 2>conftest.er1 | ||
5042 | ac_status=$? | ||
5043 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5044 | rm -f conftest.er1 | ||
5045 | cat conftest.err >&5 | ||
5046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5047 | (exit $ac_status); } && { | ||
5048 | test -z "$ac_c_werror_flag" || | ||
5049 | test ! -s conftest.err | ||
5050 | } && test -s conftest.$ac_objext; then | ||
5051 | break | ||
5052 | else | ||
5053 | echo "$as_me: failed program was:" >&5 | ||
5054 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5055 | |||
5056 | |||
5057 | fi | ||
5058 | |||
5059 | rm -f core conftest.err conftest.$ac_objext | ||
5060 | CC="$CC -n32" | ||
5061 | rm -f conftest.$ac_objext | ||
5062 | if { (ac_try="$ac_compile" | ||
5063 | case "(($ac_try" in | ||
5064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5065 | *) ac_try_echo=$ac_try;; | ||
5066 | esac | ||
5067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5068 | (eval "$ac_compile") 2>conftest.er1 | ||
5069 | ac_status=$? | ||
5070 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5071 | rm -f conftest.er1 | ||
5072 | cat conftest.err >&5 | ||
5073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5074 | (exit $ac_status); } && { | ||
5075 | test -z "$ac_c_werror_flag" || | ||
5076 | test ! -s conftest.err | ||
5077 | } && test -s conftest.$ac_objext; then | ||
5078 | ac_cv_sys_largefile_CC=' -n32'; break | ||
5079 | else | ||
5080 | echo "$as_me: failed program was:" >&5 | ||
5081 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5082 | |||
5083 | |||
5084 | fi | ||
5085 | |||
5086 | rm -f core conftest.err conftest.$ac_objext | ||
5087 | break | ||
5088 | done | ||
5089 | CC=$ac_save_CC | ||
5090 | rm -f conftest.$ac_ext | ||
5091 | fi | ||
5092 | fi | ||
5093 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | ||
5094 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } | ||
5095 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
5096 | CC=$CC$ac_cv_sys_largefile_CC | ||
5097 | fi | ||
5098 | |||
5099 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
5100 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } | ||
5101 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
5102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5103 | else | ||
5104 | while :; do | ||
5105 | cat >conftest.$ac_ext <<_ACEOF | ||
5106 | /* confdefs.h. */ | ||
5107 | _ACEOF | ||
5108 | cat confdefs.h >>conftest.$ac_ext | ||
5109 | cat >>conftest.$ac_ext <<_ACEOF | ||
5110 | /* end confdefs.h. */ | ||
5111 | #include <sys/types.h> | ||
5112 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5113 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5114 | since some C++ compilers masquerading as C compilers | ||
5115 | incorrectly reject 9223372036854775807. */ | ||
5116 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5117 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5118 | && LARGE_OFF_T % 2147483647 == 1) | ||
5119 | ? 1 : -1]; | ||
5120 | int | ||
5121 | main () | ||
5122 | { | ||
5123 | |||
5124 | ; | ||
5125 | return 0; | ||
5126 | } | ||
5127 | _ACEOF | ||
5128 | rm -f conftest.$ac_objext | ||
5129 | if { (ac_try="$ac_compile" | ||
5130 | case "(($ac_try" in | ||
5131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5132 | *) ac_try_echo=$ac_try;; | ||
5133 | esac | ||
5134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5135 | (eval "$ac_compile") 2>conftest.er1 | ||
5136 | ac_status=$? | ||
5137 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5138 | rm -f conftest.er1 | ||
5139 | cat conftest.err >&5 | ||
5140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5141 | (exit $ac_status); } && { | ||
5142 | test -z "$ac_c_werror_flag" || | ||
5143 | test ! -s conftest.err | ||
5144 | } && test -s conftest.$ac_objext; then | ||
5145 | ac_cv_sys_file_offset_bits=no; break | ||
5146 | else | ||
5147 | echo "$as_me: failed program was:" >&5 | ||
5148 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5149 | |||
5150 | |||
5151 | fi | ||
5152 | |||
5153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5154 | cat >conftest.$ac_ext <<_ACEOF | ||
5155 | /* confdefs.h. */ | ||
5156 | _ACEOF | ||
5157 | cat confdefs.h >>conftest.$ac_ext | ||
5158 | cat >>conftest.$ac_ext <<_ACEOF | ||
5159 | /* end confdefs.h. */ | ||
5160 | #define _FILE_OFFSET_BITS 64 | ||
5161 | #include <sys/types.h> | ||
5162 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5163 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5164 | since some C++ compilers masquerading as C compilers | ||
5165 | incorrectly reject 9223372036854775807. */ | ||
5166 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5167 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5168 | && LARGE_OFF_T % 2147483647 == 1) | ||
5169 | ? 1 : -1]; | ||
5170 | int | ||
5171 | main () | ||
5172 | { | ||
5173 | |||
5174 | ; | ||
5175 | return 0; | ||
5176 | } | ||
5177 | _ACEOF | ||
5178 | rm -f conftest.$ac_objext | ||
5179 | if { (ac_try="$ac_compile" | ||
5180 | case "(($ac_try" in | ||
5181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5182 | *) ac_try_echo=$ac_try;; | ||
5183 | esac | ||
5184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5185 | (eval "$ac_compile") 2>conftest.er1 | ||
5186 | ac_status=$? | ||
5187 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5188 | rm -f conftest.er1 | ||
5189 | cat conftest.err >&5 | ||
5190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5191 | (exit $ac_status); } && { | ||
5192 | test -z "$ac_c_werror_flag" || | ||
5193 | test ! -s conftest.err | ||
5194 | } && test -s conftest.$ac_objext; then | ||
5195 | ac_cv_sys_file_offset_bits=64; break | ||
5196 | else | ||
5197 | echo "$as_me: failed program was:" >&5 | ||
5198 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5199 | |||
5200 | |||
5201 | fi | ||
5202 | |||
5203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5204 | ac_cv_sys_file_offset_bits=unknown | ||
5205 | break | ||
5206 | done | ||
5207 | fi | ||
5208 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | ||
5209 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } | ||
5210 | case $ac_cv_sys_file_offset_bits in #( | ||
5211 | no | unknown) ;; | ||
5212 | *) | ||
5213 | cat >>confdefs.h <<_ACEOF | ||
5214 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
5215 | _ACEOF | ||
5216 | ;; | ||
5217 | esac | ||
5218 | rm -f conftest* | ||
5219 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
5220 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | ||
5221 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } | ||
5222 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
5223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5224 | else | ||
5225 | while :; do | ||
5226 | cat >conftest.$ac_ext <<_ACEOF | ||
5227 | /* confdefs.h. */ | ||
5228 | _ACEOF | ||
5229 | cat confdefs.h >>conftest.$ac_ext | ||
5230 | cat >>conftest.$ac_ext <<_ACEOF | ||
5231 | /* end confdefs.h. */ | ||
5232 | #include <sys/types.h> | ||
5233 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5234 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5235 | since some C++ compilers masquerading as C compilers | ||
5236 | incorrectly reject 9223372036854775807. */ | ||
5237 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5238 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5239 | && LARGE_OFF_T % 2147483647 == 1) | ||
5240 | ? 1 : -1]; | ||
5241 | int | ||
5242 | main () | ||
5243 | { | ||
5244 | |||
5245 | ; | ||
5246 | return 0; | ||
5247 | } | ||
5248 | _ACEOF | ||
5249 | rm -f conftest.$ac_objext | ||
5250 | if { (ac_try="$ac_compile" | ||
5251 | case "(($ac_try" in | ||
5252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5253 | *) ac_try_echo=$ac_try;; | ||
5254 | esac | ||
5255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5256 | (eval "$ac_compile") 2>conftest.er1 | ||
5257 | ac_status=$? | ||
5258 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5259 | rm -f conftest.er1 | ||
5260 | cat conftest.err >&5 | ||
5261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5262 | (exit $ac_status); } && { | ||
5263 | test -z "$ac_c_werror_flag" || | ||
5264 | test ! -s conftest.err | ||
5265 | } && test -s conftest.$ac_objext; then | ||
5266 | ac_cv_sys_large_files=no; break | ||
5267 | else | ||
5268 | echo "$as_me: failed program was:" >&5 | ||
5269 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5270 | |||
5271 | |||
5272 | fi | ||
5273 | |||
5274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5275 | cat >conftest.$ac_ext <<_ACEOF | ||
5276 | /* confdefs.h. */ | ||
5277 | _ACEOF | ||
5278 | cat confdefs.h >>conftest.$ac_ext | ||
5279 | cat >>conftest.$ac_ext <<_ACEOF | ||
5280 | /* end confdefs.h. */ | ||
5281 | #define _LARGE_FILES 1 | ||
5282 | #include <sys/types.h> | ||
5283 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5284 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5285 | since some C++ compilers masquerading as C compilers | ||
5286 | incorrectly reject 9223372036854775807. */ | ||
5287 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5288 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5289 | && LARGE_OFF_T % 2147483647 == 1) | ||
5290 | ? 1 : -1]; | ||
5291 | int | ||
5292 | main () | ||
5293 | { | ||
5294 | |||
5295 | ; | ||
5296 | return 0; | ||
5297 | } | ||
5298 | _ACEOF | ||
5299 | rm -f conftest.$ac_objext | ||
5300 | if { (ac_try="$ac_compile" | ||
5301 | case "(($ac_try" in | ||
5302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5303 | *) ac_try_echo=$ac_try;; | ||
5304 | esac | ||
5305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5306 | (eval "$ac_compile") 2>conftest.er1 | ||
5307 | ac_status=$? | ||
5308 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5309 | rm -f conftest.er1 | ||
5310 | cat conftest.err >&5 | ||
5311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5312 | (exit $ac_status); } && { | ||
5313 | test -z "$ac_c_werror_flag" || | ||
5314 | test ! -s conftest.err | ||
5315 | } && test -s conftest.$ac_objext; then | ||
5316 | ac_cv_sys_large_files=1; break | ||
5317 | else | ||
5318 | echo "$as_me: failed program was:" >&5 | ||
5319 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5320 | |||
5321 | |||
5322 | fi | ||
5323 | |||
5324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5325 | ac_cv_sys_large_files=unknown | ||
5326 | break | ||
5327 | done | ||
5328 | fi | ||
5329 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | ||
5330 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } | ||
5331 | case $ac_cv_sys_large_files in #( | ||
5332 | no | unknown) ;; | ||
5333 | *) | ||
5334 | cat >>confdefs.h <<_ACEOF | ||
5335 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
5336 | _ACEOF | ||
5337 | ;; | ||
5338 | esac | ||
5339 | rm -f conftest* | ||
5340 | fi | ||
5341 | fi | ||
5342 | |||
5343 | |||
5344 | if test -z "$AR" ; then | ||
5345 | { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
5346 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
5347 | { (exit 1); exit 1; }; } | ||
5348 | fi | ||
5349 | |||
5350 | # Use LOGIN_PROGRAM from environment if possible | ||
5351 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
5352 | |||
5353 | cat >>confdefs.h <<_ACEOF | ||
5354 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
5355 | _ACEOF | ||
5356 | |||
5357 | else | ||
5358 | # Search for login | ||
5359 | # Extract the first word of "login", so it can be a program name with args. | ||
5360 | set dummy login; ac_word=$2 | ||
5361 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5362 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5363 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
5364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5365 | else | ||
5366 | case $LOGIN_PROGRAM_FALLBACK in | ||
5367 | [\\/]* | ?:[\\/]*) | ||
5368 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
5369 | ;; | ||
5370 | *) | ||
5371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5372 | for as_dir in $PATH | ||
5373 | do | ||
5374 | IFS=$as_save_IFS | ||
5375 | test -z "$as_dir" && as_dir=. | ||
5376 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5377 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5378 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
5379 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5380 | break 2 | ||
5381 | fi | ||
5382 | done | ||
5383 | done | ||
5384 | IFS=$as_save_IFS | ||
5385 | |||
5386 | ;; | ||
5387 | esac | ||
5388 | fi | ||
5389 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
5390 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
5391 | { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
5392 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; } | ||
5393 | else | ||
5394 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5395 | echo "${ECHO_T}no" >&6; } | ||
5396 | fi | ||
5397 | |||
5398 | |||
5399 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
5400 | cat >>confdefs.h <<_ACEOF | ||
5401 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
5402 | _ACEOF | ||
5403 | |||
5404 | fi | ||
5405 | fi | ||
5406 | |||
5407 | # Extract the first word of "passwd", so it can be a program name with args. | ||
5408 | set dummy passwd; ac_word=$2 | ||
5409 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5410 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5411 | if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then | ||
5412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5413 | else | ||
5414 | case $PATH_PASSWD_PROG in | ||
5415 | [\\/]* | ?:[\\/]*) | ||
5416 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
5417 | ;; | ||
5418 | *) | ||
5419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5420 | for as_dir in $PATH | ||
5421 | do | ||
5422 | IFS=$as_save_IFS | ||
5423 | test -z "$as_dir" && as_dir=. | ||
5424 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5425 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5426 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5427 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5428 | break 2 | ||
5429 | fi | ||
5430 | done | ||
5431 | done | ||
5432 | IFS=$as_save_IFS | ||
5433 | |||
5434 | ;; | ||
5435 | esac | ||
5436 | fi | ||
5437 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
5438 | if test -n "$PATH_PASSWD_PROG"; then | ||
5439 | { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5 | ||
5440 | echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; } | ||
5441 | else | ||
5442 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5443 | echo "${ECHO_T}no" >&6; } | ||
5444 | fi | ||
5445 | |||
5446 | |||
5447 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
5448 | |||
5449 | cat >>confdefs.h <<_ACEOF | ||
5450 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
5451 | _ACEOF | ||
5452 | |||
5453 | fi | ||
5454 | |||
5455 | if test -z "$LD" ; then | ||
5456 | LD=$CC | ||
5457 | fi | ||
5458 | |||
5459 | |||
5460 | { echo "$as_me:$LINENO: checking for inline" >&5 | ||
5461 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | ||
5462 | if test "${ac_cv_c_inline+set}" = set; then | ||
5463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5464 | else | ||
5465 | ac_cv_c_inline=no | ||
5466 | for ac_kw in inline __inline__ __inline; do | ||
5467 | cat >conftest.$ac_ext <<_ACEOF | ||
5468 | /* confdefs.h. */ | ||
5469 | _ACEOF | ||
5470 | cat confdefs.h >>conftest.$ac_ext | ||
5471 | cat >>conftest.$ac_ext <<_ACEOF | ||
5472 | /* end confdefs.h. */ | ||
5473 | #ifndef __cplusplus | ||
5474 | typedef int foo_t; | ||
5475 | static $ac_kw foo_t static_foo () {return 0; } | ||
5476 | $ac_kw foo_t foo () {return 0; } | ||
5477 | #endif | ||
5478 | |||
5479 | _ACEOF | ||
5480 | rm -f conftest.$ac_objext | ||
5481 | if { (ac_try="$ac_compile" | ||
5482 | case "(($ac_try" in | ||
5483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5484 | *) ac_try_echo=$ac_try;; | ||
5485 | esac | ||
5486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5487 | (eval "$ac_compile") 2>conftest.er1 | ||
5488 | ac_status=$? | ||
5489 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5490 | rm -f conftest.er1 | ||
5491 | cat conftest.err >&5 | ||
5492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5493 | (exit $ac_status); } && { | ||
5494 | test -z "$ac_c_werror_flag" || | ||
5495 | test ! -s conftest.err | ||
5496 | } && test -s conftest.$ac_objext; then | ||
5497 | ac_cv_c_inline=$ac_kw | ||
5498 | else | ||
5499 | echo "$as_me: failed program was:" >&5 | ||
5500 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5501 | |||
5502 | |||
5503 | fi | ||
5504 | |||
5505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5506 | test "$ac_cv_c_inline" != no && break | ||
5507 | done | ||
5508 | |||
5509 | fi | ||
5510 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
5511 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | ||
5512 | |||
5513 | |||
5514 | case $ac_cv_c_inline in | ||
5515 | inline | yes) ;; | ||
5516 | *) | ||
5517 | case $ac_cv_c_inline in | ||
5518 | no) ac_val=;; | ||
5519 | *) ac_val=$ac_cv_c_inline;; | ||
5520 | esac | ||
5521 | cat >>confdefs.h <<_ACEOF | ||
5522 | #ifndef __cplusplus | ||
5523 | #define inline $ac_val | ||
5524 | #endif | ||
5525 | _ACEOF | ||
5526 | ;; | ||
5527 | esac | ||
5528 | |||
5529 | |||
5530 | { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
5531 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } | ||
5532 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
5533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5534 | else | ||
5535 | cat >conftest.$ac_ext <<_ACEOF | ||
5536 | /* confdefs.h. */ | ||
5537 | _ACEOF | ||
5538 | cat confdefs.h >>conftest.$ac_ext | ||
5539 | cat >>conftest.$ac_ext <<_ACEOF | ||
5540 | /* end confdefs.h. */ | ||
5541 | #include <limits.h> | ||
5542 | |||
5543 | int | ||
5544 | main () | ||
5545 | { | ||
5546 | #ifndef LLONG_MAX | ||
5547 | (void) LLONG_MAX; | ||
5548 | #endif | ||
5549 | |||
5550 | ; | ||
5551 | return 0; | ||
5552 | } | ||
5553 | _ACEOF | ||
5554 | rm -f conftest.$ac_objext | ||
5555 | if { (ac_try="$ac_compile" | ||
5556 | case "(($ac_try" in | ||
5557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5558 | *) ac_try_echo=$ac_try;; | ||
5559 | esac | ||
5560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5561 | (eval "$ac_compile") 2>conftest.er1 | ||
5562 | ac_status=$? | ||
5563 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5564 | rm -f conftest.er1 | ||
5565 | cat conftest.err >&5 | ||
5566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5567 | (exit $ac_status); } && { | ||
5568 | test -z "$ac_c_werror_flag" || | ||
5569 | test ! -s conftest.err | ||
5570 | } && test -s conftest.$ac_objext; then | ||
5571 | ac_cv_have_decl_LLONG_MAX=yes | ||
5572 | else | ||
5573 | echo "$as_me: failed program was:" >&5 | ||
5574 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5575 | |||
5576 | ac_cv_have_decl_LLONG_MAX=no | ||
5577 | fi | ||
5578 | |||
5579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5580 | fi | ||
5581 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
5582 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
5583 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
5584 | have_llong_max=1 | ||
5585 | fi | ||
5586 | |||
5587 | { echo "$as_me:$LINENO: checking whether SYSTR_POLICY_KILL is declared" >&5 | ||
5588 | echo $ECHO_N "checking whether SYSTR_POLICY_KILL is declared... $ECHO_C" >&6; } | ||
5589 | if test "${ac_cv_have_decl_SYSTR_POLICY_KILL+set}" = set; then | ||
5590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5591 | else | ||
5592 | cat >conftest.$ac_ext <<_ACEOF | ||
5593 | /* confdefs.h. */ | ||
5594 | _ACEOF | ||
5595 | cat confdefs.h >>conftest.$ac_ext | ||
5596 | cat >>conftest.$ac_ext <<_ACEOF | ||
5597 | /* end confdefs.h. */ | ||
5598 | |||
5599 | #include <sys/types.h> | ||
5600 | #include <sys/param.h> | ||
5601 | #include <dev/systrace.h> | ||
5602 | |||
5603 | |||
5604 | int | ||
5605 | main () | ||
5606 | { | ||
5607 | #ifndef SYSTR_POLICY_KILL | ||
5608 | (void) SYSTR_POLICY_KILL; | ||
5609 | #endif | ||
5610 | |||
5611 | ; | ||
5612 | return 0; | ||
5613 | } | ||
5614 | _ACEOF | ||
5615 | rm -f conftest.$ac_objext | ||
5616 | if { (ac_try="$ac_compile" | ||
5617 | case "(($ac_try" in | ||
5618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5619 | *) ac_try_echo=$ac_try;; | ||
5620 | esac | ||
5621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5622 | (eval "$ac_compile") 2>conftest.er1 | ||
5623 | ac_status=$? | ||
5624 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5625 | rm -f conftest.er1 | ||
5626 | cat conftest.err >&5 | ||
5627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5628 | (exit $ac_status); } && { | ||
5629 | test -z "$ac_c_werror_flag" || | ||
5630 | test ! -s conftest.err | ||
5631 | } && test -s conftest.$ac_objext; then | ||
5632 | ac_cv_have_decl_SYSTR_POLICY_KILL=yes | ||
5633 | else | ||
5634 | echo "$as_me: failed program was:" >&5 | ||
5635 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5636 | |||
5637 | ac_cv_have_decl_SYSTR_POLICY_KILL=no | ||
5638 | fi | ||
5639 | |||
5640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5641 | fi | ||
5642 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SYSTR_POLICY_KILL" >&5 | ||
5643 | echo "${ECHO_T}$ac_cv_have_decl_SYSTR_POLICY_KILL" >&6; } | ||
5644 | if test $ac_cv_have_decl_SYSTR_POLICY_KILL = yes; then | ||
5645 | have_systr_policy_kill=1 | ||
5646 | fi | ||
5647 | |||
5648 | { echo "$as_me:$LINENO: checking whether RLIMIT_NPROC is declared" >&5 | ||
5649 | echo $ECHO_N "checking whether RLIMIT_NPROC is declared... $ECHO_C" >&6; } | ||
5650 | if test "${ac_cv_have_decl_RLIMIT_NPROC+set}" = set; then | ||
5651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5652 | else | ||
5653 | cat >conftest.$ac_ext <<_ACEOF | ||
5654 | /* confdefs.h. */ | ||
5655 | _ACEOF | ||
5656 | cat confdefs.h >>conftest.$ac_ext | ||
5657 | cat >>conftest.$ac_ext <<_ACEOF | ||
5658 | /* end confdefs.h. */ | ||
5659 | |||
5660 | #include <sys/types.h> | ||
5661 | #include <sys/resource.h> | ||
5662 | |||
5663 | |||
5664 | int | ||
5665 | main () | ||
5666 | { | ||
5667 | #ifndef RLIMIT_NPROC | ||
5668 | (void) RLIMIT_NPROC; | ||
5669 | #endif | ||
5670 | |||
5671 | ; | ||
5672 | return 0; | ||
5673 | } | ||
5674 | _ACEOF | ||
5675 | rm -f conftest.$ac_objext | ||
5676 | if { (ac_try="$ac_compile" | ||
5677 | case "(($ac_try" in | ||
5678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5679 | *) ac_try_echo=$ac_try;; | ||
5680 | esac | ||
5681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5682 | (eval "$ac_compile") 2>conftest.er1 | ||
5683 | ac_status=$? | ||
5684 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5685 | rm -f conftest.er1 | ||
5686 | cat conftest.err >&5 | ||
5687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5688 | (exit $ac_status); } && { | ||
5689 | test -z "$ac_c_werror_flag" || | ||
5690 | test ! -s conftest.err | ||
5691 | } && test -s conftest.$ac_objext; then | ||
5692 | ac_cv_have_decl_RLIMIT_NPROC=yes | ||
5693 | else | ||
5694 | echo "$as_me: failed program was:" >&5 | ||
5695 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5696 | |||
5697 | ac_cv_have_decl_RLIMIT_NPROC=no | ||
5698 | fi | ||
5699 | |||
5700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5701 | fi | ||
5702 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_RLIMIT_NPROC" >&5 | ||
5703 | echo "${ECHO_T}$ac_cv_have_decl_RLIMIT_NPROC" >&6; } | ||
5704 | if test $ac_cv_have_decl_RLIMIT_NPROC = yes; then | ||
5705 | |||
5706 | cat >>confdefs.h <<\_ACEOF | ||
5707 | #define HAVE_RLIMIT_NPROC | ||
5708 | _ACEOF | ||
5709 | |||
5710 | fi | ||
5711 | |||
5712 | { echo "$as_me:$LINENO: checking whether PR_SET_NO_NEW_PRIVS is declared" >&5 | ||
5713 | echo $ECHO_N "checking whether PR_SET_NO_NEW_PRIVS is declared... $ECHO_C" >&6; } | ||
5714 | if test "${ac_cv_have_decl_PR_SET_NO_NEW_PRIVS+set}" = set; then | ||
5715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5716 | else | ||
5717 | cat >conftest.$ac_ext <<_ACEOF | ||
5718 | /* confdefs.h. */ | ||
5719 | _ACEOF | ||
5720 | cat confdefs.h >>conftest.$ac_ext | ||
5721 | cat >>conftest.$ac_ext <<_ACEOF | ||
5722 | /* end confdefs.h. */ | ||
5723 | |||
5724 | #include <sys/types.h> | ||
5725 | #include <linux/prctl.h> | ||
5726 | |||
5727 | |||
5728 | int | ||
5729 | main () | ||
5730 | { | ||
5731 | #ifndef PR_SET_NO_NEW_PRIVS | ||
5732 | (void) PR_SET_NO_NEW_PRIVS; | ||
5733 | #endif | ||
5734 | |||
5735 | ; | ||
5736 | return 0; | ||
5737 | } | ||
5738 | _ACEOF | ||
5739 | rm -f conftest.$ac_objext | ||
5740 | if { (ac_try="$ac_compile" | ||
5741 | case "(($ac_try" in | ||
5742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5743 | *) ac_try_echo=$ac_try;; | ||
5744 | esac | ||
5745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5746 | (eval "$ac_compile") 2>conftest.er1 | ||
5747 | ac_status=$? | ||
5748 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5749 | rm -f conftest.er1 | ||
5750 | cat conftest.err >&5 | ||
5751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5752 | (exit $ac_status); } && { | ||
5753 | test -z "$ac_c_werror_flag" || | ||
5754 | test ! -s conftest.err | ||
5755 | } && test -s conftest.$ac_objext; then | ||
5756 | ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=yes | ||
5757 | else | ||
5758 | echo "$as_me: failed program was:" >&5 | ||
5759 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5760 | |||
5761 | ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=no | ||
5762 | fi | ||
5763 | |||
5764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5765 | fi | ||
5766 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&5 | ||
5767 | echo "${ECHO_T}$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&6; } | ||
5768 | if test $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS = yes; then | ||
5769 | have_linux_no_new_privs=1 | ||
5770 | fi | ||
5771 | |||
5772 | |||
5773 | openssl=yes | ||
5774 | ssh1=yes | ||
5775 | |||
5776 | # Check whether --with-openssl was given. | ||
5777 | if test "${with_openssl+set}" = set; then | ||
5778 | withval=$with_openssl; if test "x$withval" = "xno" ; then | ||
5779 | openssl=no | ||
5780 | ssh1=no | ||
5781 | fi | ||
5782 | |||
5783 | |||
5784 | fi | ||
5785 | |||
5786 | { echo "$as_me:$LINENO: checking whether OpenSSL will be used for cryptography" >&5 | ||
5787 | echo $ECHO_N "checking whether OpenSSL will be used for cryptography... $ECHO_C" >&6; } | ||
5788 | if test "x$openssl" = "xyes" ; then | ||
5789 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5790 | echo "${ECHO_T}yes" >&6; } | ||
5791 | |||
5792 | cat >>confdefs.h <<_ACEOF | ||
5793 | #define WITH_OPENSSL 1 | ||
5794 | _ACEOF | ||
5795 | |||
5796 | else | ||
5797 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5798 | echo "${ECHO_T}no" >&6; } | ||
5799 | fi | ||
5800 | |||
5801 | |||
5802 | # Check whether --with-ssh1 was given. | ||
5803 | if test "${with_ssh1+set}" = set; then | ||
5804 | withval=$with_ssh1; | ||
5805 | if test "x$withval" = "xyes" ; then | ||
5806 | if test "x$openssl" = "xno" ; then | ||
5807 | { { echo "$as_me:$LINENO: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&5 | ||
5808 | echo "$as_me: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&2;} | ||
5809 | { (exit 1); exit 1; }; } | ||
5810 | fi | ||
5811 | ssh1=yes | ||
5812 | elif test "x$withval" = "xno" ; then | ||
5813 | ssh1=no | ||
5814 | else | ||
5815 | { { echo "$as_me:$LINENO: error: unknown --with-ssh1 argument" >&5 | ||
5816 | echo "$as_me: error: unknown --with-ssh1 argument" >&2;} | ||
5817 | { (exit 1); exit 1; }; } | ||
5818 | fi | ||
5819 | |||
5820 | |||
5821 | fi | ||
5822 | |||
5823 | { echo "$as_me:$LINENO: checking whether SSH protocol 1 support is enabled" >&5 | ||
5824 | echo $ECHO_N "checking whether SSH protocol 1 support is enabled... $ECHO_C" >&6; } | ||
5825 | if test "x$ssh1" = "xyes" ; then | ||
5826 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5827 | echo "${ECHO_T}yes" >&6; } | ||
5828 | |||
5829 | cat >>confdefs.h <<_ACEOF | ||
5830 | #define WITH_SSH1 1 | ||
5831 | _ACEOF | ||
5832 | |||
5833 | else | ||
5834 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5835 | echo "${ECHO_T}no" >&6; } | ||
5836 | fi | ||
5837 | |||
5838 | use_stack_protector=1 | ||
5839 | use_toolchain_hardening=1 | ||
5840 | |||
5841 | # Check whether --with-stackprotect was given. | ||
5842 | if test "${with_stackprotect+set}" = set; then | ||
5843 | withval=$with_stackprotect; | ||
5844 | if test "x$withval" = "xno"; then | ||
5845 | use_stack_protector=0 | ||
5846 | fi | ||
5847 | fi | ||
5848 | |||
5849 | |||
5850 | # Check whether --with-hardening was given. | ||
5851 | if test "${with_hardening+set}" = set; then | ||
5852 | withval=$with_hardening; | ||
5853 | if test "x$withval" = "xno"; then | ||
5854 | use_toolchain_hardening=0 | ||
5855 | fi | ||
5856 | fi | ||
5857 | |||
5858 | |||
5859 | # We use -Werror for the tests only so that we catch warnings like "this is | ||
5860 | # on by default" for things like -fPIE. | ||
5861 | { echo "$as_me:$LINENO: checking if $CC supports -Werror" >&5 | ||
5862 | echo $ECHO_N "checking if $CC supports -Werror... $ECHO_C" >&6; } | ||
5863 | saved_CFLAGS="$CFLAGS" | ||
5864 | CFLAGS="$CFLAGS -Werror" | ||
5865 | cat >conftest.$ac_ext <<_ACEOF | ||
5866 | /* confdefs.h. */ | ||
5867 | _ACEOF | ||
5868 | cat confdefs.h >>conftest.$ac_ext | ||
5869 | cat >>conftest.$ac_ext <<_ACEOF | ||
5870 | /* end confdefs.h. */ | ||
5871 | int main(void) { return 0; } | ||
5872 | _ACEOF | ||
5873 | rm -f conftest.$ac_objext | ||
5874 | if { (ac_try="$ac_compile" | ||
5875 | case "(($ac_try" in | ||
5876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5877 | *) ac_try_echo=$ac_try;; | ||
5878 | esac | ||
5879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5880 | (eval "$ac_compile") 2>conftest.er1 | ||
5881 | ac_status=$? | ||
5882 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5883 | rm -f conftest.er1 | ||
5884 | cat conftest.err >&5 | ||
5885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5886 | (exit $ac_status); } && { | ||
5887 | test -z "$ac_c_werror_flag" || | ||
5888 | test ! -s conftest.err | ||
5889 | } && test -s conftest.$ac_objext; then | ||
5890 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5891 | echo "${ECHO_T}yes" >&6; } | ||
5892 | WERROR="-Werror" | ||
5893 | else | ||
5894 | echo "$as_me: failed program was:" >&5 | ||
5895 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5896 | |||
5897 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5898 | echo "${ECHO_T}no" >&6; } | ||
5899 | WERROR="" | ||
5900 | |||
5901 | fi | ||
5902 | |||
5903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5904 | CFLAGS="$saved_CFLAGS" | ||
5905 | |||
5906 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
5907 | { | ||
5908 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Qunused-arguments" >&5 | ||
5909 | echo $ECHO_N "checking if $CC supports compile flag -Qunused-arguments... $ECHO_C" >&6; } | ||
5910 | saved_CFLAGS="$CFLAGS" | ||
5911 | CFLAGS="$CFLAGS $WERROR -Qunused-arguments" | ||
5912 | _define_flag="" | ||
5913 | test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments" | ||
5914 | cat >conftest.$ac_ext <<_ACEOF | ||
5915 | /* confdefs.h. */ | ||
5916 | _ACEOF | ||
5917 | cat confdefs.h >>conftest.$ac_ext | ||
5918 | cat >>conftest.$ac_ext <<_ACEOF | ||
5919 | /* end confdefs.h. */ | ||
5920 | |||
5921 | #include <stdlib.h> | ||
5922 | #include <stdio.h> | ||
5923 | int main(int argc, char **argv) { | ||
5924 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5925 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5926 | float l = i * 2.1; | ||
5927 | double m = l / 0.5; | ||
5928 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5929 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5930 | exit(0); | ||
5931 | } | ||
5932 | |||
5933 | _ACEOF | ||
5934 | rm -f conftest.$ac_objext | ||
5935 | if { (ac_try="$ac_compile" | ||
5936 | case "(($ac_try" in | ||
5937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5938 | *) ac_try_echo=$ac_try;; | ||
5939 | esac | ||
5940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5941 | (eval "$ac_compile") 2>conftest.er1 | ||
5942 | ac_status=$? | ||
5943 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5944 | rm -f conftest.er1 | ||
5945 | cat conftest.err >&5 | ||
5946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5947 | (exit $ac_status); } && { | ||
5948 | test -z "$ac_c_werror_flag" || | ||
5949 | test ! -s conftest.err | ||
5950 | } && test -s conftest.$ac_objext; then | ||
5951 | |||
5952 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5953 | then | ||
5954 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5955 | echo "${ECHO_T}no" >&6; } | ||
5956 | CFLAGS="$saved_CFLAGS" | ||
5957 | else | ||
5958 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5959 | echo "${ECHO_T}yes" >&6; } | ||
5960 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5961 | fi | ||
5962 | else | ||
5963 | echo "$as_me: failed program was:" >&5 | ||
5964 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5965 | |||
5966 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5967 | echo "${ECHO_T}no" >&6; } | ||
5968 | CFLAGS="$saved_CFLAGS" | ||
5969 | |||
5970 | fi | ||
5971 | |||
5972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5973 | } | ||
5974 | { | ||
5975 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunknown-warning-option" >&5 | ||
5976 | echo $ECHO_N "checking if $CC supports compile flag -Wunknown-warning-option... $ECHO_C" >&6; } | ||
5977 | saved_CFLAGS="$CFLAGS" | ||
5978 | CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option" | ||
5979 | _define_flag="" | ||
5980 | test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option" | ||
5981 | cat >conftest.$ac_ext <<_ACEOF | ||
5982 | /* confdefs.h. */ | ||
5983 | _ACEOF | ||
5984 | cat confdefs.h >>conftest.$ac_ext | ||
5985 | cat >>conftest.$ac_ext <<_ACEOF | ||
5986 | /* end confdefs.h. */ | ||
5987 | |||
5988 | #include <stdlib.h> | ||
5989 | #include <stdio.h> | ||
5990 | int main(int argc, char **argv) { | ||
5991 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5992 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5993 | float l = i * 2.1; | ||
5994 | double m = l / 0.5; | ||
5995 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5996 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5997 | exit(0); | ||
5998 | } | ||
5999 | |||
6000 | _ACEOF | ||
6001 | rm -f conftest.$ac_objext | ||
6002 | if { (ac_try="$ac_compile" | ||
6003 | case "(($ac_try" in | ||
6004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6005 | *) ac_try_echo=$ac_try;; | ||
6006 | esac | ||
6007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6008 | (eval "$ac_compile") 2>conftest.er1 | ||
6009 | ac_status=$? | ||
6010 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6011 | rm -f conftest.er1 | ||
6012 | cat conftest.err >&5 | ||
6013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6014 | (exit $ac_status); } && { | ||
6015 | test -z "$ac_c_werror_flag" || | ||
6016 | test ! -s conftest.err | ||
6017 | } && test -s conftest.$ac_objext; then | ||
6018 | |||
6019 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6020 | then | ||
6021 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6022 | echo "${ECHO_T}no" >&6; } | ||
6023 | CFLAGS="$saved_CFLAGS" | ||
6024 | else | ||
6025 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6026 | echo "${ECHO_T}yes" >&6; } | ||
6027 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6028 | fi | ||
6029 | else | ||
6030 | echo "$as_me: failed program was:" >&5 | ||
6031 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6032 | |||
6033 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6034 | echo "${ECHO_T}no" >&6; } | ||
6035 | CFLAGS="$saved_CFLAGS" | ||
6036 | |||
6037 | fi | ||
6038 | |||
6039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6040 | } | ||
6041 | { | ||
6042 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wall" >&5 | ||
6043 | echo $ECHO_N "checking if $CC supports compile flag -Wall... $ECHO_C" >&6; } | ||
6044 | saved_CFLAGS="$CFLAGS" | ||
6045 | CFLAGS="$CFLAGS $WERROR -Wall" | ||
6046 | _define_flag="" | ||
6047 | test "x$_define_flag" = "x" && _define_flag="-Wall" | ||
6048 | cat >conftest.$ac_ext <<_ACEOF | ||
6049 | /* confdefs.h. */ | ||
6050 | _ACEOF | ||
6051 | cat confdefs.h >>conftest.$ac_ext | ||
6052 | cat >>conftest.$ac_ext <<_ACEOF | ||
6053 | /* end confdefs.h. */ | ||
6054 | |||
6055 | #include <stdlib.h> | ||
6056 | #include <stdio.h> | ||
6057 | int main(int argc, char **argv) { | ||
6058 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6059 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6060 | float l = i * 2.1; | ||
6061 | double m = l / 0.5; | ||
6062 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6063 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6064 | exit(0); | ||
6065 | } | ||
6066 | |||
6067 | _ACEOF | ||
6068 | rm -f conftest.$ac_objext | ||
6069 | if { (ac_try="$ac_compile" | ||
6070 | case "(($ac_try" in | ||
6071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6072 | *) ac_try_echo=$ac_try;; | ||
6073 | esac | ||
6074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6075 | (eval "$ac_compile") 2>conftest.er1 | ||
6076 | ac_status=$? | ||
6077 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6078 | rm -f conftest.er1 | ||
6079 | cat conftest.err >&5 | ||
6080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6081 | (exit $ac_status); } && { | ||
6082 | test -z "$ac_c_werror_flag" || | ||
6083 | test ! -s conftest.err | ||
6084 | } && test -s conftest.$ac_objext; then | ||
6085 | |||
6086 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6087 | then | ||
6088 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6089 | echo "${ECHO_T}no" >&6; } | ||
6090 | CFLAGS="$saved_CFLAGS" | ||
6091 | else | ||
6092 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6093 | echo "${ECHO_T}yes" >&6; } | ||
6094 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6095 | fi | ||
6096 | else | ||
6097 | echo "$as_me: failed program was:" >&5 | ||
6098 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6099 | |||
6100 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6101 | echo "${ECHO_T}no" >&6; } | ||
6102 | CFLAGS="$saved_CFLAGS" | ||
6103 | |||
6104 | fi | ||
6105 | |||
6106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6107 | } | ||
6108 | { | ||
6109 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-arith" >&5 | ||
6110 | echo $ECHO_N "checking if $CC supports compile flag -Wpointer-arith... $ECHO_C" >&6; } | ||
6111 | saved_CFLAGS="$CFLAGS" | ||
6112 | CFLAGS="$CFLAGS $WERROR -Wpointer-arith" | ||
6113 | _define_flag="" | ||
6114 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith" | ||
6115 | cat >conftest.$ac_ext <<_ACEOF | ||
6116 | /* confdefs.h. */ | ||
6117 | _ACEOF | ||
6118 | cat confdefs.h >>conftest.$ac_ext | ||
6119 | cat >>conftest.$ac_ext <<_ACEOF | ||
6120 | /* end confdefs.h. */ | ||
6121 | |||
6122 | #include <stdlib.h> | ||
6123 | #include <stdio.h> | ||
6124 | int main(int argc, char **argv) { | ||
6125 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6126 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6127 | float l = i * 2.1; | ||
6128 | double m = l / 0.5; | ||
6129 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6130 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6131 | exit(0); | ||
6132 | } | ||
6133 | |||
6134 | _ACEOF | ||
6135 | rm -f conftest.$ac_objext | ||
6136 | if { (ac_try="$ac_compile" | ||
6137 | case "(($ac_try" in | ||
6138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6139 | *) ac_try_echo=$ac_try;; | ||
6140 | esac | ||
6141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6142 | (eval "$ac_compile") 2>conftest.er1 | ||
6143 | ac_status=$? | ||
6144 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6145 | rm -f conftest.er1 | ||
6146 | cat conftest.err >&5 | ||
6147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6148 | (exit $ac_status); } && { | ||
6149 | test -z "$ac_c_werror_flag" || | ||
6150 | test ! -s conftest.err | ||
6151 | } && test -s conftest.$ac_objext; then | ||
6152 | |||
6153 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6154 | then | ||
6155 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6156 | echo "${ECHO_T}no" >&6; } | ||
6157 | CFLAGS="$saved_CFLAGS" | ||
6158 | else | ||
6159 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6160 | echo "${ECHO_T}yes" >&6; } | ||
6161 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6162 | fi | ||
6163 | else | ||
6164 | echo "$as_me: failed program was:" >&5 | ||
6165 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6166 | |||
6167 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6168 | echo "${ECHO_T}no" >&6; } | ||
6169 | CFLAGS="$saved_CFLAGS" | ||
6170 | |||
6171 | fi | ||
6172 | |||
6173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6174 | } | ||
6175 | { | ||
6176 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wuninitialized" >&5 | ||
6177 | echo $ECHO_N "checking if $CC supports compile flag -Wuninitialized... $ECHO_C" >&6; } | ||
6178 | saved_CFLAGS="$CFLAGS" | ||
6179 | CFLAGS="$CFLAGS $WERROR -Wuninitialized" | ||
6180 | _define_flag="" | ||
6181 | test "x$_define_flag" = "x" && _define_flag="-Wuninitialized" | ||
6182 | cat >conftest.$ac_ext <<_ACEOF | ||
6183 | /* confdefs.h. */ | ||
6184 | _ACEOF | ||
6185 | cat confdefs.h >>conftest.$ac_ext | ||
6186 | cat >>conftest.$ac_ext <<_ACEOF | ||
6187 | /* end confdefs.h. */ | ||
6188 | |||
6189 | #include <stdlib.h> | ||
6190 | #include <stdio.h> | ||
6191 | int main(int argc, char **argv) { | ||
6192 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6193 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6194 | float l = i * 2.1; | ||
6195 | double m = l / 0.5; | ||
6196 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6197 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6198 | exit(0); | ||
6199 | } | ||
6200 | |||
6201 | _ACEOF | ||
6202 | rm -f conftest.$ac_objext | ||
6203 | if { (ac_try="$ac_compile" | ||
6204 | case "(($ac_try" in | ||
6205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6206 | *) ac_try_echo=$ac_try;; | ||
6207 | esac | ||
6208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6209 | (eval "$ac_compile") 2>conftest.er1 | ||
6210 | ac_status=$? | ||
6211 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6212 | rm -f conftest.er1 | ||
6213 | cat conftest.err >&5 | ||
6214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6215 | (exit $ac_status); } && { | ||
6216 | test -z "$ac_c_werror_flag" || | ||
6217 | test ! -s conftest.err | ||
6218 | } && test -s conftest.$ac_objext; then | ||
6219 | |||
6220 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6221 | then | ||
6222 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6223 | echo "${ECHO_T}no" >&6; } | ||
6224 | CFLAGS="$saved_CFLAGS" | ||
6225 | else | ||
6226 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6227 | echo "${ECHO_T}yes" >&6; } | ||
6228 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6229 | fi | ||
6230 | else | ||
6231 | echo "$as_me: failed program was:" >&5 | ||
6232 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6233 | |||
6234 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6235 | echo "${ECHO_T}no" >&6; } | ||
6236 | CFLAGS="$saved_CFLAGS" | ||
6237 | |||
6238 | fi | ||
6239 | |||
6240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6241 | } | ||
6242 | { | ||
6243 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsign-compare" >&5 | ||
6244 | echo $ECHO_N "checking if $CC supports compile flag -Wsign-compare... $ECHO_C" >&6; } | ||
6245 | saved_CFLAGS="$CFLAGS" | ||
6246 | CFLAGS="$CFLAGS $WERROR -Wsign-compare" | ||
6247 | _define_flag="" | ||
6248 | test "x$_define_flag" = "x" && _define_flag="-Wsign-compare" | ||
6249 | cat >conftest.$ac_ext <<_ACEOF | ||
6250 | /* confdefs.h. */ | ||
6251 | _ACEOF | ||
6252 | cat confdefs.h >>conftest.$ac_ext | ||
6253 | cat >>conftest.$ac_ext <<_ACEOF | ||
6254 | /* end confdefs.h. */ | ||
6255 | |||
6256 | #include <stdlib.h> | ||
6257 | #include <stdio.h> | ||
6258 | int main(int argc, char **argv) { | ||
6259 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6260 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6261 | float l = i * 2.1; | ||
6262 | double m = l / 0.5; | ||
6263 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6264 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6265 | exit(0); | ||
6266 | } | ||
6267 | |||
6268 | _ACEOF | ||
6269 | rm -f conftest.$ac_objext | ||
6270 | if { (ac_try="$ac_compile" | ||
6271 | case "(($ac_try" in | ||
6272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6273 | *) ac_try_echo=$ac_try;; | ||
6274 | esac | ||
6275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6276 | (eval "$ac_compile") 2>conftest.er1 | ||
6277 | ac_status=$? | ||
6278 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6279 | rm -f conftest.er1 | ||
6280 | cat conftest.err >&5 | ||
6281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6282 | (exit $ac_status); } && { | ||
6283 | test -z "$ac_c_werror_flag" || | ||
6284 | test ! -s conftest.err | ||
6285 | } && test -s conftest.$ac_objext; then | ||
6286 | |||
6287 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6288 | then | ||
6289 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6290 | echo "${ECHO_T}no" >&6; } | ||
6291 | CFLAGS="$saved_CFLAGS" | ||
6292 | else | ||
6293 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6294 | echo "${ECHO_T}yes" >&6; } | ||
6295 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6296 | fi | ||
6297 | else | ||
6298 | echo "$as_me: failed program was:" >&5 | ||
6299 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6300 | |||
6301 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6302 | echo "${ECHO_T}no" >&6; } | ||
6303 | CFLAGS="$saved_CFLAGS" | ||
6304 | |||
6305 | fi | ||
6306 | |||
6307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6308 | } | ||
6309 | { | ||
6310 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wformat-security" >&5 | ||
6311 | echo $ECHO_N "checking if $CC supports compile flag -Wformat-security... $ECHO_C" >&6; } | ||
6312 | saved_CFLAGS="$CFLAGS" | ||
6313 | CFLAGS="$CFLAGS $WERROR -Wformat-security" | ||
6314 | _define_flag="" | ||
6315 | test "x$_define_flag" = "x" && _define_flag="-Wformat-security" | ||
6316 | cat >conftest.$ac_ext <<_ACEOF | ||
6317 | /* confdefs.h. */ | ||
6318 | _ACEOF | ||
6319 | cat confdefs.h >>conftest.$ac_ext | ||
6320 | cat >>conftest.$ac_ext <<_ACEOF | ||
6321 | /* end confdefs.h. */ | ||
6322 | |||
6323 | #include <stdlib.h> | ||
6324 | #include <stdio.h> | ||
6325 | int main(int argc, char **argv) { | ||
6326 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6327 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6328 | float l = i * 2.1; | ||
6329 | double m = l / 0.5; | ||
6330 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6331 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6332 | exit(0); | ||
6333 | } | ||
6334 | |||
6335 | _ACEOF | ||
6336 | rm -f conftest.$ac_objext | ||
6337 | if { (ac_try="$ac_compile" | ||
6338 | case "(($ac_try" in | ||
6339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6340 | *) ac_try_echo=$ac_try;; | ||
6341 | esac | ||
6342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6343 | (eval "$ac_compile") 2>conftest.er1 | ||
6344 | ac_status=$? | ||
6345 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6346 | rm -f conftest.er1 | ||
6347 | cat conftest.err >&5 | ||
6348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6349 | (exit $ac_status); } && { | ||
6350 | test -z "$ac_c_werror_flag" || | ||
6351 | test ! -s conftest.err | ||
6352 | } && test -s conftest.$ac_objext; then | ||
6353 | |||
6354 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6355 | then | ||
6356 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6357 | echo "${ECHO_T}no" >&6; } | ||
6358 | CFLAGS="$saved_CFLAGS" | ||
6359 | else | ||
6360 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6361 | echo "${ECHO_T}yes" >&6; } | ||
6362 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6363 | fi | ||
6364 | else | ||
6365 | echo "$as_me: failed program was:" >&5 | ||
6366 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6367 | |||
6368 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6369 | echo "${ECHO_T}no" >&6; } | ||
6370 | CFLAGS="$saved_CFLAGS" | ||
6371 | |||
6372 | fi | ||
6373 | |||
6374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6375 | } | ||
6376 | { | ||
6377 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5 | ||
6378 | echo $ECHO_N "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... $ECHO_C" >&6; } | ||
6379 | saved_CFLAGS="$CFLAGS" | ||
6380 | CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess" | ||
6381 | _define_flag="" | ||
6382 | test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess" | ||
6383 | cat >conftest.$ac_ext <<_ACEOF | ||
6384 | /* confdefs.h. */ | ||
6385 | _ACEOF | ||
6386 | cat confdefs.h >>conftest.$ac_ext | ||
6387 | cat >>conftest.$ac_ext <<_ACEOF | ||
6388 | /* end confdefs.h. */ | ||
6389 | |||
6390 | #include <stdlib.h> | ||
6391 | #include <stdio.h> | ||
6392 | int main(int argc, char **argv) { | ||
6393 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6394 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6395 | float l = i * 2.1; | ||
6396 | double m = l / 0.5; | ||
6397 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6398 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6399 | exit(0); | ||
6400 | } | ||
6401 | |||
6402 | _ACEOF | ||
6403 | rm -f conftest.$ac_objext | ||
6404 | if { (ac_try="$ac_compile" | ||
6405 | case "(($ac_try" in | ||
6406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6407 | *) ac_try_echo=$ac_try;; | ||
6408 | esac | ||
6409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6410 | (eval "$ac_compile") 2>conftest.er1 | ||
6411 | ac_status=$? | ||
6412 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6413 | rm -f conftest.er1 | ||
6414 | cat conftest.err >&5 | ||
6415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6416 | (exit $ac_status); } && { | ||
6417 | test -z "$ac_c_werror_flag" || | ||
6418 | test ! -s conftest.err | ||
6419 | } && test -s conftest.$ac_objext; then | ||
6420 | |||
6421 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6422 | then | ||
6423 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6424 | echo "${ECHO_T}no" >&6; } | ||
6425 | CFLAGS="$saved_CFLAGS" | ||
6426 | else | ||
6427 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6428 | echo "${ECHO_T}yes" >&6; } | ||
6429 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6430 | fi | ||
6431 | else | ||
6432 | echo "$as_me: failed program was:" >&5 | ||
6433 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6434 | |||
6435 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6436 | echo "${ECHO_T}no" >&6; } | ||
6437 | CFLAGS="$saved_CFLAGS" | ||
6438 | |||
6439 | fi | ||
6440 | |||
6441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6442 | } | ||
6443 | { | ||
6444 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-sign" >&5 | ||
6445 | echo $ECHO_N "checking if $CC supports compile flag -Wpointer-sign... $ECHO_C" >&6; } | ||
6446 | saved_CFLAGS="$CFLAGS" | ||
6447 | CFLAGS="$CFLAGS $WERROR -Wpointer-sign" | ||
6448 | _define_flag="-Wno-pointer-sign" | ||
6449 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign" | ||
6450 | cat >conftest.$ac_ext <<_ACEOF | ||
6451 | /* confdefs.h. */ | ||
6452 | _ACEOF | ||
6453 | cat confdefs.h >>conftest.$ac_ext | ||
6454 | cat >>conftest.$ac_ext <<_ACEOF | ||
6455 | /* end confdefs.h. */ | ||
6456 | |||
6457 | #include <stdlib.h> | ||
6458 | #include <stdio.h> | ||
6459 | int main(int argc, char **argv) { | ||
6460 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6461 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6462 | float l = i * 2.1; | ||
6463 | double m = l / 0.5; | ||
6464 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6465 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6466 | exit(0); | ||
6467 | } | ||
6468 | |||
6469 | _ACEOF | ||
6470 | rm -f conftest.$ac_objext | ||
6471 | if { (ac_try="$ac_compile" | ||
6472 | case "(($ac_try" in | ||
6473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6474 | *) ac_try_echo=$ac_try;; | ||
6475 | esac | ||
6476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6477 | (eval "$ac_compile") 2>conftest.er1 | ||
6478 | ac_status=$? | ||
6479 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6480 | rm -f conftest.er1 | ||
6481 | cat conftest.err >&5 | ||
6482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6483 | (exit $ac_status); } && { | ||
6484 | test -z "$ac_c_werror_flag" || | ||
6485 | test ! -s conftest.err | ||
6486 | } && test -s conftest.$ac_objext; then | ||
6487 | |||
6488 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6489 | then | ||
6490 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6491 | echo "${ECHO_T}no" >&6; } | ||
6492 | CFLAGS="$saved_CFLAGS" | ||
6493 | else | ||
6494 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6495 | echo "${ECHO_T}yes" >&6; } | ||
6496 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6497 | fi | ||
6498 | else | ||
6499 | echo "$as_me: failed program was:" >&5 | ||
6500 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6501 | |||
6502 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6503 | echo "${ECHO_T}no" >&6; } | ||
6504 | CFLAGS="$saved_CFLAGS" | ||
6505 | |||
6506 | fi | ||
6507 | |||
6508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6509 | } | ||
6510 | { | ||
6511 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunused-result" >&5 | ||
6512 | echo $ECHO_N "checking if $CC supports compile flag -Wunused-result... $ECHO_C" >&6; } | ||
6513 | saved_CFLAGS="$CFLAGS" | ||
6514 | CFLAGS="$CFLAGS $WERROR -Wunused-result" | ||
6515 | _define_flag="-Wno-unused-result" | ||
6516 | test "x$_define_flag" = "x" && _define_flag="-Wunused-result" | ||
6517 | cat >conftest.$ac_ext <<_ACEOF | ||
6518 | /* confdefs.h. */ | ||
6519 | _ACEOF | ||
6520 | cat confdefs.h >>conftest.$ac_ext | ||
6521 | cat >>conftest.$ac_ext <<_ACEOF | ||
6522 | /* end confdefs.h. */ | ||
6523 | |||
6524 | #include <stdlib.h> | ||
6525 | #include <stdio.h> | ||
6526 | int main(int argc, char **argv) { | ||
6527 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6528 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6529 | float l = i * 2.1; | ||
6530 | double m = l / 0.5; | ||
6531 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6532 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6533 | exit(0); | ||
6534 | } | ||
6535 | |||
6536 | _ACEOF | ||
6537 | rm -f conftest.$ac_objext | ||
6538 | if { (ac_try="$ac_compile" | ||
6539 | case "(($ac_try" in | ||
6540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6541 | *) ac_try_echo=$ac_try;; | ||
6542 | esac | ||
6543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6544 | (eval "$ac_compile") 2>conftest.er1 | ||
6545 | ac_status=$? | ||
6546 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6547 | rm -f conftest.er1 | ||
6548 | cat conftest.err >&5 | ||
6549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6550 | (exit $ac_status); } && { | ||
6551 | test -z "$ac_c_werror_flag" || | ||
6552 | test ! -s conftest.err | ||
6553 | } && test -s conftest.$ac_objext; then | ||
6554 | |||
6555 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6556 | then | ||
6557 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6558 | echo "${ECHO_T}no" >&6; } | ||
6559 | CFLAGS="$saved_CFLAGS" | ||
6560 | else | ||
6561 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6562 | echo "${ECHO_T}yes" >&6; } | ||
6563 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6564 | fi | ||
6565 | else | ||
6566 | echo "$as_me: failed program was:" >&5 | ||
6567 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6568 | |||
6569 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6570 | echo "${ECHO_T}no" >&6; } | ||
6571 | CFLAGS="$saved_CFLAGS" | ||
6572 | |||
6573 | fi | ||
6574 | |||
6575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6576 | } | ||
6577 | { | ||
6578 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -fno-strict-aliasing" >&5 | ||
6579 | echo $ECHO_N "checking if $CC supports compile flag -fno-strict-aliasing... $ECHO_C" >&6; } | ||
6580 | saved_CFLAGS="$CFLAGS" | ||
6581 | CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing" | ||
6582 | _define_flag="" | ||
6583 | test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing" | ||
6584 | cat >conftest.$ac_ext <<_ACEOF | ||
6585 | /* confdefs.h. */ | ||
6586 | _ACEOF | ||
6587 | cat confdefs.h >>conftest.$ac_ext | ||
6588 | cat >>conftest.$ac_ext <<_ACEOF | ||
6589 | /* end confdefs.h. */ | ||
6590 | |||
6591 | #include <stdlib.h> | ||
6592 | #include <stdio.h> | ||
6593 | int main(int argc, char **argv) { | ||
6594 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6595 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6596 | float l = i * 2.1; | ||
6597 | double m = l / 0.5; | ||
6598 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6599 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6600 | exit(0); | ||
6601 | } | ||
6602 | |||
6603 | _ACEOF | ||
6604 | rm -f conftest.$ac_objext | ||
6605 | if { (ac_try="$ac_compile" | ||
6606 | case "(($ac_try" in | ||
6607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6608 | *) ac_try_echo=$ac_try;; | ||
6609 | esac | ||
6610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6611 | (eval "$ac_compile") 2>conftest.er1 | ||
6612 | ac_status=$? | ||
6613 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6614 | rm -f conftest.er1 | ||
6615 | cat conftest.err >&5 | ||
6616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6617 | (exit $ac_status); } && { | ||
6618 | test -z "$ac_c_werror_flag" || | ||
6619 | test ! -s conftest.err | ||
6620 | } && test -s conftest.$ac_objext; then | ||
6621 | |||
6622 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6623 | then | ||
6624 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6625 | echo "${ECHO_T}no" >&6; } | ||
6626 | CFLAGS="$saved_CFLAGS" | ||
6627 | else | ||
6628 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6629 | echo "${ECHO_T}yes" >&6; } | ||
6630 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6631 | fi | ||
6632 | else | ||
6633 | echo "$as_me: failed program was:" >&5 | ||
6634 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6635 | |||
6636 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6637 | echo "${ECHO_T}no" >&6; } | ||
6638 | CFLAGS="$saved_CFLAGS" | ||
6639 | |||
6640 | fi | ||
6641 | |||
6642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6643 | } | ||
6644 | { | ||
6645 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5 | ||
6646 | echo $ECHO_N "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... $ECHO_C" >&6; } | ||
6647 | saved_CFLAGS="$CFLAGS" | ||
6648 | CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2" | ||
6649 | _define_flag="" | ||
6650 | test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2" | ||
6651 | cat >conftest.$ac_ext <<_ACEOF | ||
6652 | /* confdefs.h. */ | ||
6653 | _ACEOF | ||
6654 | cat confdefs.h >>conftest.$ac_ext | ||
6655 | cat >>conftest.$ac_ext <<_ACEOF | ||
6656 | /* end confdefs.h. */ | ||
6657 | |||
6658 | #include <stdlib.h> | ||
6659 | #include <stdio.h> | ||
6660 | int main(int argc, char **argv) { | ||
6661 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6662 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6663 | float l = i * 2.1; | ||
6664 | double m = l / 0.5; | ||
6665 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6666 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6667 | exit(0); | ||
6668 | } | ||
6669 | |||
6670 | _ACEOF | ||
6671 | rm -f conftest.$ac_objext | ||
6672 | if { (ac_try="$ac_compile" | ||
6673 | case "(($ac_try" in | ||
6674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6675 | *) ac_try_echo=$ac_try;; | ||
6676 | esac | ||
6677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6678 | (eval "$ac_compile") 2>conftest.er1 | ||
6679 | ac_status=$? | ||
6680 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6681 | rm -f conftest.er1 | ||
6682 | cat conftest.err >&5 | ||
6683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6684 | (exit $ac_status); } && { | ||
6685 | test -z "$ac_c_werror_flag" || | ||
6686 | test ! -s conftest.err | ||
6687 | } && test -s conftest.$ac_objext; then | ||
6688 | |||
6689 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6690 | then | ||
6691 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6692 | echo "${ECHO_T}no" >&6; } | ||
6693 | CFLAGS="$saved_CFLAGS" | ||
6694 | else | ||
6695 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6696 | echo "${ECHO_T}yes" >&6; } | ||
6697 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6698 | fi | ||
6699 | else | ||
6700 | echo "$as_me: failed program was:" >&5 | ||
6701 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6702 | |||
6703 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6704 | echo "${ECHO_T}no" >&6; } | ||
6705 | CFLAGS="$saved_CFLAGS" | ||
6706 | |||
6707 | fi | ||
6708 | |||
6709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6710 | } | ||
6711 | if test "x$use_toolchain_hardening" = "x1"; then | ||
6712 | { | ||
6713 | { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,relro" >&5 | ||
6714 | echo $ECHO_N "checking if $LD supports link flag -Wl,-z,relro... $ECHO_C" >&6; } | ||
6715 | saved_LDFLAGS="$LDFLAGS" | ||
6716 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro" | ||
6717 | _define_flag="" | ||
6718 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro" | ||
6719 | cat >conftest.$ac_ext <<_ACEOF | ||
6720 | /* confdefs.h. */ | ||
6721 | _ACEOF | ||
6722 | cat confdefs.h >>conftest.$ac_ext | ||
6723 | cat >>conftest.$ac_ext <<_ACEOF | ||
6724 | /* end confdefs.h. */ | ||
6725 | |||
6726 | #include <stdlib.h> | ||
6727 | #include <stdio.h> | ||
6728 | int main(int argc, char **argv) { | ||
6729 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6730 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6731 | float l = i * 2.1; | ||
6732 | double m = l / 0.5; | ||
6733 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6734 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6735 | exit(0); | ||
6736 | } | ||
6737 | |||
6738 | _ACEOF | ||
6739 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6740 | if { (ac_try="$ac_link" | ||
6741 | case "(($ac_try" in | ||
6742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6743 | *) ac_try_echo=$ac_try;; | ||
6744 | esac | ||
6745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6746 | (eval "$ac_link") 2>conftest.er1 | ||
6747 | ac_status=$? | ||
6748 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6749 | rm -f conftest.er1 | ||
6750 | cat conftest.err >&5 | ||
6751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6752 | (exit $ac_status); } && { | ||
6753 | test -z "$ac_c_werror_flag" || | ||
6754 | test ! -s conftest.err | ||
6755 | } && test -s conftest$ac_exeext && | ||
6756 | $as_test_x conftest$ac_exeext; then | ||
6757 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6758 | echo "${ECHO_T}yes" >&6; } | ||
6759 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6760 | else | ||
6761 | echo "$as_me: failed program was:" >&5 | ||
6762 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6763 | |||
6764 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6765 | echo "${ECHO_T}no" >&6; } | ||
6766 | LDFLAGS="$saved_LDFLAGS" | ||
6767 | |||
6768 | fi | ||
6769 | |||
6770 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6771 | conftest$ac_exeext conftest.$ac_ext | ||
6772 | } | ||
6773 | { | ||
6774 | { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,now" >&5 | ||
6775 | echo $ECHO_N "checking if $LD supports link flag -Wl,-z,now... $ECHO_C" >&6; } | ||
6776 | saved_LDFLAGS="$LDFLAGS" | ||
6777 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now" | ||
6778 | _define_flag="" | ||
6779 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now" | ||
6780 | cat >conftest.$ac_ext <<_ACEOF | ||
6781 | /* confdefs.h. */ | ||
6782 | _ACEOF | ||
6783 | cat confdefs.h >>conftest.$ac_ext | ||
6784 | cat >>conftest.$ac_ext <<_ACEOF | ||
6785 | /* end confdefs.h. */ | ||
6786 | |||
6787 | #include <stdlib.h> | ||
6788 | #include <stdio.h> | ||
6789 | int main(int argc, char **argv) { | ||
6790 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6791 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6792 | float l = i * 2.1; | ||
6793 | double m = l / 0.5; | ||
6794 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6795 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6796 | exit(0); | ||
6797 | } | ||
6798 | |||
6799 | _ACEOF | ||
6800 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6801 | if { (ac_try="$ac_link" | ||
6802 | case "(($ac_try" in | ||
6803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6804 | *) ac_try_echo=$ac_try;; | ||
6805 | esac | ||
6806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6807 | (eval "$ac_link") 2>conftest.er1 | ||
6808 | ac_status=$? | ||
6809 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6810 | rm -f conftest.er1 | ||
6811 | cat conftest.err >&5 | ||
6812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6813 | (exit $ac_status); } && { | ||
6814 | test -z "$ac_c_werror_flag" || | ||
6815 | test ! -s conftest.err | ||
6816 | } && test -s conftest$ac_exeext && | ||
6817 | $as_test_x conftest$ac_exeext; then | ||
6818 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6819 | echo "${ECHO_T}yes" >&6; } | ||
6820 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6821 | else | ||
6822 | echo "$as_me: failed program was:" >&5 | ||
6823 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6824 | |||
6825 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6826 | echo "${ECHO_T}no" >&6; } | ||
6827 | LDFLAGS="$saved_LDFLAGS" | ||
6828 | |||
6829 | fi | ||
6830 | |||
6831 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6832 | conftest$ac_exeext conftest.$ac_ext | ||
6833 | } | ||
6834 | { | ||
6835 | { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,noexecstack" >&5 | ||
6836 | echo $ECHO_N "checking if $LD supports link flag -Wl,-z,noexecstack... $ECHO_C" >&6; } | ||
6837 | saved_LDFLAGS="$LDFLAGS" | ||
6838 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack" | ||
6839 | _define_flag="" | ||
6840 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack" | ||
6841 | cat >conftest.$ac_ext <<_ACEOF | ||
6842 | /* confdefs.h. */ | ||
6843 | _ACEOF | ||
6844 | cat confdefs.h >>conftest.$ac_ext | ||
6845 | cat >>conftest.$ac_ext <<_ACEOF | ||
6846 | /* end confdefs.h. */ | ||
6847 | |||
6848 | #include <stdlib.h> | ||
6849 | #include <stdio.h> | ||
6850 | int main(int argc, char **argv) { | ||
6851 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6852 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6853 | float l = i * 2.1; | ||
6854 | double m = l / 0.5; | ||
6855 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6856 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6857 | exit(0); | ||
6858 | } | ||
6859 | |||
6860 | _ACEOF | ||
6861 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6862 | if { (ac_try="$ac_link" | ||
6863 | case "(($ac_try" in | ||
6864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6865 | *) ac_try_echo=$ac_try;; | ||
6866 | esac | ||
6867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6868 | (eval "$ac_link") 2>conftest.er1 | ||
6869 | ac_status=$? | ||
6870 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6871 | rm -f conftest.er1 | ||
6872 | cat conftest.err >&5 | ||
6873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6874 | (exit $ac_status); } && { | ||
6875 | test -z "$ac_c_werror_flag" || | ||
6876 | test ! -s conftest.err | ||
6877 | } && test -s conftest$ac_exeext && | ||
6878 | $as_test_x conftest$ac_exeext; then | ||
6879 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6880 | echo "${ECHO_T}yes" >&6; } | ||
6881 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6882 | else | ||
6883 | echo "$as_me: failed program was:" >&5 | ||
6884 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6885 | |||
6886 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6887 | echo "${ECHO_T}no" >&6; } | ||
6888 | LDFLAGS="$saved_LDFLAGS" | ||
6889 | |||
6890 | fi | ||
6891 | |||
6892 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6893 | conftest$ac_exeext conftest.$ac_ext | ||
6894 | } | ||
6895 | # NB. -ftrapv expects certain support functions to be present in | ||
6896 | # the compiler library (libgcc or similar) to detect integer operations | ||
6897 | # that can overflow. We must check that the result of enabling it | ||
6898 | # actually links. The test program compiled/linked includes a number | ||
6899 | # of integer operations that should exercise this. | ||
6900 | { | ||
6901 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5 | ||
6902 | echo $ECHO_N "checking if $CC supports compile flag -ftrapv and linking succeeds... $ECHO_C" >&6; } | ||
6903 | saved_CFLAGS="$CFLAGS" | ||
6904 | CFLAGS="$CFLAGS $WERROR -ftrapv" | ||
6905 | _define_flag="" | ||
6906 | test "x$_define_flag" = "x" && _define_flag="-ftrapv" | ||
6907 | cat >conftest.$ac_ext <<_ACEOF | ||
6908 | /* confdefs.h. */ | ||
6909 | _ACEOF | ||
6910 | cat confdefs.h >>conftest.$ac_ext | ||
6911 | cat >>conftest.$ac_ext <<_ACEOF | ||
6912 | /* end confdefs.h. */ | ||
6913 | |||
6914 | #include <stdlib.h> | ||
6915 | #include <stdio.h> | ||
6916 | int main(int argc, char **argv) { | ||
6917 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6918 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6919 | float l = i * 2.1; | ||
6920 | double m = l / 0.5; | ||
6921 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6922 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6923 | exit(0); | ||
6924 | } | ||
6925 | |||
6926 | _ACEOF | ||
6927 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6928 | if { (ac_try="$ac_link" | ||
6929 | case "(($ac_try" in | ||
6930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6931 | *) ac_try_echo=$ac_try;; | ||
6932 | esac | ||
6933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6934 | (eval "$ac_link") 2>conftest.er1 | ||
6935 | ac_status=$? | ||
6936 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6937 | rm -f conftest.er1 | ||
6938 | cat conftest.err >&5 | ||
6939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6940 | (exit $ac_status); } && { | ||
6941 | test -z "$ac_c_werror_flag" || | ||
6942 | test ! -s conftest.err | ||
6943 | } && test -s conftest$ac_exeext && | ||
6944 | $as_test_x conftest$ac_exeext; then | ||
6945 | |||
6946 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6947 | then | ||
6948 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6949 | echo "${ECHO_T}no" >&6; } | ||
6950 | CFLAGS="$saved_CFLAGS" | ||
6951 | else | ||
6952 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6953 | echo "${ECHO_T}yes" >&6; } | ||
6954 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6955 | fi | ||
6956 | else | ||
6957 | echo "$as_me: failed program was:" >&5 | ||
6958 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6959 | |||
6960 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6961 | echo "${ECHO_T}no" >&6; } | ||
6962 | CFLAGS="$saved_CFLAGS" | ||
6963 | |||
6964 | fi | ||
6965 | |||
6966 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6967 | conftest$ac_exeext conftest.$ac_ext | ||
6968 | } | ||
6969 | fi | ||
6970 | { echo "$as_me:$LINENO: checking gcc version" >&5 | ||
6971 | echo $ECHO_N "checking gcc version... $ECHO_C" >&6; } | ||
6972 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` | ||
6973 | case $GCC_VER in | ||
6974 | 1.*) no_attrib_nonnull=1 ;; | ||
6975 | 2.8* | 2.9*) | ||
6976 | no_attrib_nonnull=1 | ||
6977 | ;; | ||
6978 | 2.*) no_attrib_nonnull=1 ;; | ||
6979 | *) ;; | ||
6980 | esac | ||
6981 | { echo "$as_me:$LINENO: result: $GCC_VER" >&5 | ||
6982 | echo "${ECHO_T}$GCC_VER" >&6; } | ||
6983 | |||
6984 | { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5 | ||
6985 | echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; } | ||
6986 | saved_CFLAGS="$CFLAGS" | ||
6987 | CFLAGS="$CFLAGS -fno-builtin-memset" | ||
6988 | cat >conftest.$ac_ext <<_ACEOF | ||
6989 | /* confdefs.h. */ | ||
6990 | _ACEOF | ||
6991 | cat confdefs.h >>conftest.$ac_ext | ||
6992 | cat >>conftest.$ac_ext <<_ACEOF | ||
6993 | /* end confdefs.h. */ | ||
6994 | #include <string.h> | ||
6995 | int | ||
6996 | main () | ||
6997 | { | ||
6998 | char b[10]; memset(b, 0, sizeof(b)); | ||
6999 | ; | ||
7000 | return 0; | ||
7001 | } | ||
7002 | _ACEOF | ||
7003 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7004 | if { (ac_try="$ac_link" | ||
7005 | case "(($ac_try" in | ||
7006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7007 | *) ac_try_echo=$ac_try;; | ||
7008 | esac | ||
7009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7010 | (eval "$ac_link") 2>conftest.er1 | ||
7011 | ac_status=$? | ||
7012 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7013 | rm -f conftest.er1 | ||
7014 | cat conftest.err >&5 | ||
7015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7016 | (exit $ac_status); } && { | ||
7017 | test -z "$ac_c_werror_flag" || | ||
7018 | test ! -s conftest.err | ||
7019 | } && test -s conftest$ac_exeext && | ||
7020 | $as_test_x conftest$ac_exeext; then | ||
7021 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
7022 | echo "${ECHO_T}yes" >&6; } | ||
7023 | else | ||
7024 | echo "$as_me: failed program was:" >&5 | ||
7025 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7026 | |||
7027 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7028 | echo "${ECHO_T}no" >&6; } | ||
7029 | CFLAGS="$saved_CFLAGS" | ||
7030 | |||
7031 | fi | ||
7032 | |||
7033 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7034 | conftest$ac_exeext conftest.$ac_ext | ||
7035 | |||
7036 | # -fstack-protector-all doesn't always work for some GCC versions | ||
7037 | # and/or platforms, so we test if we can. If it's not supported | ||
7038 | # on a given platform gcc will emit a warning so we use -Werror. | ||
7039 | if test "x$use_stack_protector" = "x1"; then | ||
7040 | for t in -fstack-protector-strong -fstack-protector-all \ | ||
7041 | -fstack-protector; do | ||
7042 | { echo "$as_me:$LINENO: checking if $CC supports $t" >&5 | ||
7043 | echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; } | ||
7044 | saved_CFLAGS="$CFLAGS" | ||
7045 | saved_LDFLAGS="$LDFLAGS" | ||
7046 | CFLAGS="$CFLAGS $t -Werror" | ||
7047 | LDFLAGS="$LDFLAGS $t -Werror" | ||
7048 | cat >conftest.$ac_ext <<_ACEOF | ||
7049 | /* confdefs.h. */ | ||
7050 | _ACEOF | ||
7051 | cat confdefs.h >>conftest.$ac_ext | ||
7052 | cat >>conftest.$ac_ext <<_ACEOF | ||
7053 | /* end confdefs.h. */ | ||
7054 | #include <stdio.h> | ||
7055 | int | ||
7056 | main () | ||
7057 | { | ||
7058 | |||
7059 | char x[256]; | ||
7060 | snprintf(x, sizeof(x), "XXX"); | ||
7061 | |||
7062 | ; | ||
7063 | return 0; | ||
7064 | } | ||
7065 | _ACEOF | ||
7066 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7067 | if { (ac_try="$ac_link" | ||
7068 | case "(($ac_try" in | ||
7069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7070 | *) ac_try_echo=$ac_try;; | ||
7071 | esac | ||
7072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7073 | (eval "$ac_link") 2>conftest.er1 | ||
7074 | ac_status=$? | ||
7075 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7076 | rm -f conftest.er1 | ||
7077 | cat conftest.err >&5 | ||
7078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7079 | (exit $ac_status); } && { | ||
7080 | test -z "$ac_c_werror_flag" || | ||
7081 | test ! -s conftest.err | ||
7082 | } && test -s conftest$ac_exeext && | ||
7083 | $as_test_x conftest$ac_exeext; then | ||
7084 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
7085 | echo "${ECHO_T}yes" >&6; } | ||
7086 | CFLAGS="$saved_CFLAGS $t" | ||
7087 | LDFLAGS="$saved_LDFLAGS $t" | ||
7088 | { echo "$as_me:$LINENO: checking if $t works" >&5 | ||
7089 | echo $ECHO_N "checking if $t works... $ECHO_C" >&6; } | ||
7090 | if test "$cross_compiling" = yes; then | ||
7091 | { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5 | ||
7092 | echo "$as_me: WARNING: cross compiling: cannot test" >&2;} | ||
7093 | break | ||
7094 | |||
7095 | else | ||
7096 | cat >conftest.$ac_ext <<_ACEOF | ||
7097 | /* confdefs.h. */ | ||
7098 | _ACEOF | ||
7099 | cat confdefs.h >>conftest.$ac_ext | ||
7100 | cat >>conftest.$ac_ext <<_ACEOF | ||
7101 | /* end confdefs.h. */ | ||
7102 | #include <stdio.h> | ||
7103 | int | ||
7104 | main () | ||
7105 | { | ||
7106 | |||
7107 | char x[256]; | ||
7108 | snprintf(x, sizeof(x), "XXX"); | ||
7109 | |||
7110 | ; | ||
7111 | return 0; | ||
7112 | } | ||
7113 | _ACEOF | ||
7114 | rm -f conftest$ac_exeext | ||
7115 | if { (ac_try="$ac_link" | ||
7116 | case "(($ac_try" in | ||
7117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7118 | *) ac_try_echo=$ac_try;; | ||
7119 | esac | ||
7120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7121 | (eval "$ac_link") 2>&5 | ||
7122 | ac_status=$? | ||
7123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7124 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7125 | { (case "(($ac_try" in | ||
7126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7127 | *) ac_try_echo=$ac_try;; | ||
7128 | esac | ||
7129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7130 | (eval "$ac_try") 2>&5 | ||
7131 | ac_status=$? | ||
7132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7133 | (exit $ac_status); }; }; then | ||
7134 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
7135 | echo "${ECHO_T}yes" >&6; } | ||
7136 | break | ||
7137 | else | ||
7138 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7139 | echo "$as_me: failed program was:" >&5 | ||
7140 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7141 | |||
7142 | ( exit $ac_status ) | ||
7143 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7144 | echo "${ECHO_T}no" >&6; } | ||
7145 | fi | ||
7146 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7147 | fi | ||
7148 | |||
7149 | |||
7150 | |||
7151 | else | ||
7152 | echo "$as_me: failed program was:" >&5 | ||
7153 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7154 | |||
7155 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7156 | echo "${ECHO_T}no" >&6; } | ||
7157 | |||
7158 | fi | ||
7159 | |||
7160 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7161 | conftest$ac_exeext conftest.$ac_ext | ||
7162 | CFLAGS="$saved_CFLAGS" | ||
7163 | LDFLAGS="$saved_LDFLAGS" | ||
7164 | done | ||
7165 | fi | ||
7166 | |||
7167 | if test -z "$have_llong_max"; then | ||
7168 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes | ||
7169 | unset ac_cv_have_decl_LLONG_MAX | ||
7170 | saved_CFLAGS="$CFLAGS" | ||
7171 | CFLAGS="$CFLAGS -std=gnu99" | ||
7172 | { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
7173 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } | ||
7174 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
7175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7176 | else | ||
7177 | cat >conftest.$ac_ext <<_ACEOF | ||
7178 | /* confdefs.h. */ | ||
7179 | _ACEOF | ||
7180 | cat confdefs.h >>conftest.$ac_ext | ||
7181 | cat >>conftest.$ac_ext <<_ACEOF | ||
7182 | /* end confdefs.h. */ | ||
7183 | #include <limits.h> | ||
7184 | |||
7185 | |||
7186 | int | ||
7187 | main () | ||
7188 | { | ||
7189 | #ifndef LLONG_MAX | ||
7190 | (void) LLONG_MAX; | ||
7191 | #endif | ||
7192 | |||
7193 | ; | ||
7194 | return 0; | ||
7195 | } | ||
7196 | _ACEOF | ||
7197 | rm -f conftest.$ac_objext | ||
7198 | if { (ac_try="$ac_compile" | ||
7199 | case "(($ac_try" in | ||
7200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7201 | *) ac_try_echo=$ac_try;; | ||
7202 | esac | ||
7203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7204 | (eval "$ac_compile") 2>conftest.er1 | ||
7205 | ac_status=$? | ||
7206 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7207 | rm -f conftest.er1 | ||
7208 | cat conftest.err >&5 | ||
7209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7210 | (exit $ac_status); } && { | ||
7211 | test -z "$ac_c_werror_flag" || | ||
7212 | test ! -s conftest.err | ||
7213 | } && test -s conftest.$ac_objext; then | ||
7214 | ac_cv_have_decl_LLONG_MAX=yes | ||
7215 | else | ||
7216 | echo "$as_me: failed program was:" >&5 | ||
7217 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7218 | |||
7219 | ac_cv_have_decl_LLONG_MAX=no | ||
7220 | fi | ||
7221 | |||
7222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7223 | fi | ||
7224 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
7225 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
7226 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
7227 | have_llong_max=1 | ||
7228 | else | ||
7229 | CFLAGS="$saved_CFLAGS" | ||
7230 | fi | ||
7231 | |||
7232 | fi | ||
7233 | fi | ||
7234 | |||
7235 | { echo "$as_me:$LINENO: checking if compiler allows __attribute__ on return types" >&5 | ||
7236 | echo $ECHO_N "checking if compiler allows __attribute__ on return types... $ECHO_C" >&6; } | ||
7237 | cat >conftest.$ac_ext <<_ACEOF | ||
7238 | /* confdefs.h. */ | ||
7239 | _ACEOF | ||
7240 | cat confdefs.h >>conftest.$ac_ext | ||
7241 | cat >>conftest.$ac_ext <<_ACEOF | ||
7242 | /* end confdefs.h. */ | ||
7243 | |||
7244 | #include <stdlib.h> | ||
7245 | __attribute__((__unused__)) static void foo(void){return;} | ||
7246 | int | ||
7247 | main () | ||
7248 | { | ||
7249 | exit(0); | ||
7250 | ; | ||
7251 | return 0; | ||
7252 | } | ||
7253 | _ACEOF | ||
7254 | rm -f conftest.$ac_objext | ||
7255 | if { (ac_try="$ac_compile" | ||
7256 | case "(($ac_try" in | ||
7257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7258 | *) ac_try_echo=$ac_try;; | ||
7259 | esac | ||
7260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7261 | (eval "$ac_compile") 2>conftest.er1 | ||
7262 | ac_status=$? | ||
7263 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7264 | rm -f conftest.er1 | ||
7265 | cat conftest.err >&5 | ||
7266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7267 | (exit $ac_status); } && { | ||
7268 | test -z "$ac_c_werror_flag" || | ||
7269 | test ! -s conftest.err | ||
7270 | } && test -s conftest.$ac_objext; then | ||
7271 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
7272 | echo "${ECHO_T}yes" >&6; } | ||
7273 | else | ||
7274 | echo "$as_me: failed program was:" >&5 | ||
7275 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7276 | |||
7277 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7278 | echo "${ECHO_T}no" >&6; } | ||
7279 | |||
7280 | cat >>confdefs.h <<\_ACEOF | ||
7281 | #define NO_ATTRIBUTE_ON_RETURN_TYPE 1 | ||
7282 | _ACEOF | ||
7283 | |||
7284 | |||
7285 | fi | ||
7286 | |||
7287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7288 | |||
7289 | if test "x$no_attrib_nonnull" != "x1" ; then | ||
7290 | |||
7291 | cat >>confdefs.h <<\_ACEOF | ||
7292 | #define HAVE_ATTRIBUTE__NONNULL__ 1 | ||
7293 | _ACEOF | ||
7294 | |||
7295 | fi | ||
7296 | |||
7297 | |||
7298 | # Check whether --with-rpath was given. | ||
7299 | if test "${with_rpath+set}" = set; then | ||
7300 | withval=$with_rpath; | ||
7301 | if test "x$withval" = "xno" ; then | ||
7302 | need_dash_r="" | ||
7303 | fi | ||
7304 | if test "x$withval" = "xyes" ; then | ||
7305 | need_dash_r=1 | ||
7306 | fi | ||
7307 | |||
7308 | |||
7309 | fi | ||
7310 | |||
7311 | |||
7312 | # Allow user to specify flags | ||
7313 | |||
7314 | # Check whether --with-cflags was given. | ||
7315 | if test "${with_cflags+set}" = set; then | ||
7316 | withval=$with_cflags; | ||
7317 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
7318 | test "x${withval}" != "xyes"; then | ||
7319 | CFLAGS="$CFLAGS $withval" | ||
7320 | fi | ||
7321 | |||
7322 | |||
7323 | fi | ||
7324 | |||
7325 | |||
7326 | # Check whether --with-cppflags was given. | ||
7327 | if test "${with_cppflags+set}" = set; then | ||
7328 | withval=$with_cppflags; | ||
7329 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
7330 | test "x${withval}" != "xyes"; then | ||
7331 | CPPFLAGS="$CPPFLAGS $withval" | ||
7332 | fi | ||
7333 | |||
7334 | |||
7335 | fi | ||
7336 | |||
7337 | |||
7338 | # Check whether --with-ldflags was given. | ||
7339 | if test "${with_ldflags+set}" = set; then | ||
7340 | withval=$with_ldflags; | ||
7341 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
7342 | test "x${withval}" != "xyes"; then | ||
7343 | LDFLAGS="$LDFLAGS $withval" | ||
7344 | fi | ||
7345 | |||
7346 | |||
7347 | fi | ||
7348 | |||
7349 | |||
7350 | # Check whether --with-libs was given. | ||
7351 | if test "${with_libs+set}" = set; then | ||
7352 | withval=$with_libs; | ||
7353 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
7354 | test "x${withval}" != "xyes"; then | ||
7355 | LIBS="$LIBS $withval" | ||
7356 | fi | ||
7357 | |||
7358 | |||
7359 | fi | ||
7360 | |||
7361 | |||
7362 | # Check whether --with-Werror was given. | ||
7363 | if test "${with_Werror+set}" = set; then | ||
7364 | withval=$with_Werror; | ||
7365 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
7366 | werror_flags="-Werror" | ||
7367 | if test "x${withval}" != "xyes"; then | ||
7368 | werror_flags="$withval" | ||
7369 | fi | ||
7370 | fi | ||
7371 | |||
7372 | |||
7373 | fi | ||
7374 | |||
7375 | |||
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 | for ac_header in \ | ||
7444 | blf.h \ | ||
7445 | bstring.h \ | ||
7446 | crypt.h \ | ||
7447 | crypto/sha2.h \ | ||
7448 | dirent.h \ | ||
7449 | endian.h \ | ||
7450 | elf.h \ | ||
7451 | features.h \ | ||
7452 | fcntl.h \ | ||
7453 | floatingpoint.h \ | ||
7454 | getopt.h \ | ||
7455 | glob.h \ | ||
7456 | ia.h \ | ||
7457 | iaf.h \ | ||
7458 | inttypes.h \ | ||
7459 | limits.h \ | ||
7460 | locale.h \ | ||
7461 | login.h \ | ||
7462 | maillock.h \ | ||
7463 | ndir.h \ | ||
7464 | net/if_tun.h \ | ||
7465 | netdb.h \ | ||
7466 | netgroup.h \ | ||
7467 | pam/pam_appl.h \ | ||
7468 | paths.h \ | ||
7469 | poll.h \ | ||
7470 | pty.h \ | ||
7471 | readpassphrase.h \ | ||
7472 | rpc/types.h \ | ||
7473 | security/pam_appl.h \ | ||
7474 | sha2.h \ | ||
7475 | shadow.h \ | ||
7476 | stddef.h \ | ||
7477 | stdint.h \ | ||
7478 | string.h \ | ||
7479 | strings.h \ | ||
7480 | sys/audit.h \ | ||
7481 | sys/bitypes.h \ | ||
7482 | sys/bsdtty.h \ | ||
7483 | sys/capability.h \ | ||
7484 | sys/cdefs.h \ | ||
7485 | sys/dir.h \ | ||
7486 | sys/mman.h \ | ||
7487 | sys/ndir.h \ | ||
7488 | sys/poll.h \ | ||
7489 | sys/prctl.h \ | ||
7490 | sys/pstat.h \ | ||
7491 | sys/select.h \ | ||
7492 | sys/stat.h \ | ||
7493 | sys/stream.h \ | ||
7494 | sys/stropts.h \ | ||
7495 | sys/strtio.h \ | ||
7496 | sys/statvfs.h \ | ||
7497 | sys/sysmacros.h \ | ||
7498 | sys/time.h \ | ||
7499 | sys/timers.h \ | ||
7500 | time.h \ | ||
7501 | tmpdir.h \ | ||
7502 | ttyent.h \ | ||
7503 | ucred.h \ | ||
7504 | unistd.h \ | ||
7505 | usersec.h \ | ||
7506 | util.h \ | ||
7507 | utime.h \ | ||
7508 | utmp.h \ | ||
7509 | utmpx.h \ | ||
7510 | vis.h \ | ||
7511 | |||
7512 | do | ||
7513 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7514 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7515 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7516 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7517 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7519 | fi | ||
7520 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7521 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7522 | echo "${ECHO_T}$ac_res" >&6; } | ||
7523 | else | ||
7524 | # Is the header compilable? | ||
7525 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7526 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
7527 | cat >conftest.$ac_ext <<_ACEOF | ||
7528 | /* confdefs.h. */ | ||
7529 | _ACEOF | ||
7530 | cat confdefs.h >>conftest.$ac_ext | ||
7531 | cat >>conftest.$ac_ext <<_ACEOF | ||
7532 | /* end confdefs.h. */ | ||
7533 | $ac_includes_default | ||
7534 | #include <$ac_header> | ||
7535 | _ACEOF | ||
7536 | rm -f conftest.$ac_objext | ||
7537 | if { (ac_try="$ac_compile" | ||
7538 | case "(($ac_try" in | ||
7539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7540 | *) ac_try_echo=$ac_try;; | ||
7541 | esac | ||
7542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7543 | (eval "$ac_compile") 2>conftest.er1 | ||
7544 | ac_status=$? | ||
7545 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7546 | rm -f conftest.er1 | ||
7547 | cat conftest.err >&5 | ||
7548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7549 | (exit $ac_status); } && { | ||
7550 | test -z "$ac_c_werror_flag" || | ||
7551 | test ! -s conftest.err | ||
7552 | } && test -s conftest.$ac_objext; then | ||
7553 | ac_header_compiler=yes | ||
7554 | else | ||
7555 | echo "$as_me: failed program was:" >&5 | ||
7556 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7557 | |||
7558 | ac_header_compiler=no | ||
7559 | fi | ||
7560 | |||
7561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7562 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7563 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
7564 | |||
7565 | # Is the header present? | ||
7566 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7567 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
7568 | cat >conftest.$ac_ext <<_ACEOF | ||
7569 | /* confdefs.h. */ | ||
7570 | _ACEOF | ||
7571 | cat confdefs.h >>conftest.$ac_ext | ||
7572 | cat >>conftest.$ac_ext <<_ACEOF | ||
7573 | /* end confdefs.h. */ | ||
7574 | #include <$ac_header> | ||
7575 | _ACEOF | ||
7576 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
7577 | case "(($ac_try" in | ||
7578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7579 | *) ac_try_echo=$ac_try;; | ||
7580 | esac | ||
7581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7582 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
7583 | ac_status=$? | ||
7584 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7585 | rm -f conftest.er1 | ||
7586 | cat conftest.err >&5 | ||
7587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7588 | (exit $ac_status); } >/dev/null && { | ||
7589 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
7590 | test ! -s conftest.err | ||
7591 | }; then | ||
7592 | ac_header_preproc=yes | ||
7593 | else | ||
7594 | echo "$as_me: failed program was:" >&5 | ||
7595 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7596 | |||
7597 | ac_header_preproc=no | ||
7598 | fi | ||
7599 | |||
7600 | rm -f conftest.err conftest.$ac_ext | ||
7601 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7602 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
7603 | |||
7604 | # So? What about this header? | ||
7605 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7606 | yes:no: ) | ||
7607 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7608 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7609 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
7610 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
7611 | ac_header_preproc=yes | ||
7612 | ;; | ||
7613 | no:yes:* ) | ||
7614 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7615 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7616 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7617 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7618 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
7619 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
7620 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
7621 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7622 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7623 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
7624 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
7625 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
7626 | ( cat <<\_ASBOX | ||
7627 | ## ------------------------------------------- ## | ||
7628 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
7629 | ## ------------------------------------------- ## | ||
7630 | _ASBOX | ||
7631 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
7632 | ;; | ||
7633 | esac | ||
7634 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7635 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7636 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7638 | else | ||
7639 | eval "$as_ac_Header=\$ac_header_preproc" | ||
7640 | fi | ||
7641 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7642 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7643 | echo "${ECHO_T}$ac_res" >&6; } | ||
7644 | |||
7645 | fi | ||
7646 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7647 | cat >>confdefs.h <<_ACEOF | ||
7648 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7649 | _ACEOF | ||
7650 | |||
7651 | fi | ||
7652 | |||
7653 | done | ||
7654 | |||
7655 | |||
7656 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
7657 | |||
7658 | for ac_header in lastlog.h | ||
7659 | do | ||
7660 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7661 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7662 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7663 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7665 | else | ||
7666 | cat >conftest.$ac_ext <<_ACEOF | ||
7667 | /* confdefs.h. */ | ||
7668 | _ACEOF | ||
7669 | cat confdefs.h >>conftest.$ac_ext | ||
7670 | cat >>conftest.$ac_ext <<_ACEOF | ||
7671 | /* end confdefs.h. */ | ||
7672 | |||
7673 | #ifdef HAVE_SYS_TIME_H | ||
7674 | # include <sys/time.h> | ||
7675 | #endif | ||
7676 | |||
7677 | |||
7678 | #include <$ac_header> | ||
7679 | _ACEOF | ||
7680 | rm -f conftest.$ac_objext | ||
7681 | if { (ac_try="$ac_compile" | ||
7682 | case "(($ac_try" in | ||
7683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7684 | *) ac_try_echo=$ac_try;; | ||
7685 | esac | ||
7686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7687 | (eval "$ac_compile") 2>conftest.er1 | ||
7688 | ac_status=$? | ||
7689 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7690 | rm -f conftest.er1 | ||
7691 | cat conftest.err >&5 | ||
7692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7693 | (exit $ac_status); } && { | ||
7694 | test -z "$ac_c_werror_flag" || | ||
7695 | test ! -s conftest.err | ||
7696 | } && test -s conftest.$ac_objext; then | ||
7697 | eval "$as_ac_Header=yes" | ||
7698 | else | ||
7699 | echo "$as_me: failed program was:" >&5 | ||
7700 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7701 | |||
7702 | eval "$as_ac_Header=no" | ||
7703 | fi | ||
7704 | |||
7705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7706 | fi | ||
7707 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7708 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7709 | echo "${ECHO_T}$ac_res" >&6; } | ||
7710 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7711 | cat >>confdefs.h <<_ACEOF | ||
7712 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7713 | _ACEOF | ||
7714 | |||
7715 | fi | ||
7716 | |||
7717 | done | ||
7718 | |||
7719 | |||
7720 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
7721 | |||
7722 | for ac_header in sys/ptms.h | ||
7723 | do | ||
7724 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7725 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7726 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7727 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7729 | else | ||
7730 | cat >conftest.$ac_ext <<_ACEOF | ||
7731 | /* confdefs.h. */ | ||
7732 | _ACEOF | ||
7733 | cat confdefs.h >>conftest.$ac_ext | ||
7734 | cat >>conftest.$ac_ext <<_ACEOF | ||
7735 | /* end confdefs.h. */ | ||
7736 | |||
7737 | #ifdef HAVE_SYS_STREAM_H | ||
7738 | # include <sys/stream.h> | ||
7739 | #endif | ||
7740 | |||
7741 | |||
7742 | #include <$ac_header> | ||
7743 | _ACEOF | ||
7744 | rm -f conftest.$ac_objext | ||
7745 | if { (ac_try="$ac_compile" | ||
7746 | case "(($ac_try" in | ||
7747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7748 | *) ac_try_echo=$ac_try;; | ||
7749 | esac | ||
7750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7751 | (eval "$ac_compile") 2>conftest.er1 | ||
7752 | ac_status=$? | ||
7753 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7754 | rm -f conftest.er1 | ||
7755 | cat conftest.err >&5 | ||
7756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7757 | (exit $ac_status); } && { | ||
7758 | test -z "$ac_c_werror_flag" || | ||
7759 | test ! -s conftest.err | ||
7760 | } && test -s conftest.$ac_objext; then | ||
7761 | eval "$as_ac_Header=yes" | ||
7762 | else | ||
7763 | echo "$as_me: failed program was:" >&5 | ||
7764 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7765 | |||
7766 | eval "$as_ac_Header=no" | ||
7767 | fi | ||
7768 | |||
7769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7770 | fi | ||
7771 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7772 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7773 | echo "${ECHO_T}$ac_res" >&6; } | ||
7774 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7775 | cat >>confdefs.h <<_ACEOF | ||
7776 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7777 | _ACEOF | ||
7778 | |||
7779 | fi | ||
7780 | |||
7781 | done | ||
7782 | |||
7783 | |||
7784 | # login_cap.h requires sys/types.h on NetBSD | ||
7785 | |||
7786 | for ac_header in login_cap.h | ||
7787 | do | ||
7788 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7789 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7790 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7791 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7793 | else | ||
7794 | cat >conftest.$ac_ext <<_ACEOF | ||
7795 | /* confdefs.h. */ | ||
7796 | _ACEOF | ||
7797 | cat confdefs.h >>conftest.$ac_ext | ||
7798 | cat >>conftest.$ac_ext <<_ACEOF | ||
7799 | /* end confdefs.h. */ | ||
7800 | |||
7801 | #include <sys/types.h> | ||
7802 | |||
7803 | |||
7804 | #include <$ac_header> | ||
7805 | _ACEOF | ||
7806 | rm -f conftest.$ac_objext | ||
7807 | if { (ac_try="$ac_compile" | ||
7808 | case "(($ac_try" in | ||
7809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7810 | *) ac_try_echo=$ac_try;; | ||
7811 | esac | ||
7812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7813 | (eval "$ac_compile") 2>conftest.er1 | ||
7814 | ac_status=$? | ||
7815 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7816 | rm -f conftest.er1 | ||
7817 | cat conftest.err >&5 | ||
7818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7819 | (exit $ac_status); } && { | ||
7820 | test -z "$ac_c_werror_flag" || | ||
7821 | test ! -s conftest.err | ||
7822 | } && test -s conftest.$ac_objext; then | ||
7823 | eval "$as_ac_Header=yes" | ||
7824 | else | ||
7825 | echo "$as_me: failed program was:" >&5 | ||
7826 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7827 | |||
7828 | eval "$as_ac_Header=no" | ||
7829 | fi | ||
7830 | |||
7831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7832 | fi | ||
7833 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7834 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7835 | echo "${ECHO_T}$ac_res" >&6; } | ||
7836 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7837 | cat >>confdefs.h <<_ACEOF | ||
7838 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7839 | _ACEOF | ||
7840 | |||
7841 | fi | ||
7842 | |||
7843 | done | ||
7844 | |||
7845 | |||
7846 | # older BSDs need sys/param.h before sys/mount.h | ||
7847 | |||
7848 | for ac_header in sys/mount.h | ||
7849 | do | ||
7850 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7851 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7852 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7853 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7855 | else | ||
7856 | cat >conftest.$ac_ext <<_ACEOF | ||
7857 | /* confdefs.h. */ | ||
7858 | _ACEOF | ||
7859 | cat confdefs.h >>conftest.$ac_ext | ||
7860 | cat >>conftest.$ac_ext <<_ACEOF | ||
7861 | /* end confdefs.h. */ | ||
7862 | |||
7863 | #include <sys/param.h> | ||
7864 | |||
7865 | |||
7866 | #include <$ac_header> | ||
7867 | _ACEOF | ||
7868 | rm -f conftest.$ac_objext | ||
7869 | if { (ac_try="$ac_compile" | ||
7870 | case "(($ac_try" in | ||
7871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7872 | *) ac_try_echo=$ac_try;; | ||
7873 | esac | ||
7874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7875 | (eval "$ac_compile") 2>conftest.er1 | ||
7876 | ac_status=$? | ||
7877 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7878 | rm -f conftest.er1 | ||
7879 | cat conftest.err >&5 | ||
7880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7881 | (exit $ac_status); } && { | ||
7882 | test -z "$ac_c_werror_flag" || | ||
7883 | test ! -s conftest.err | ||
7884 | } && test -s conftest.$ac_objext; then | ||
7885 | eval "$as_ac_Header=yes" | ||
7886 | else | ||
7887 | echo "$as_me: failed program was:" >&5 | ||
7888 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7889 | |||
7890 | eval "$as_ac_Header=no" | ||
7891 | fi | ||
7892 | |||
7893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7894 | fi | ||
7895 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7896 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7897 | echo "${ECHO_T}$ac_res" >&6; } | ||
7898 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7899 | cat >>confdefs.h <<_ACEOF | ||
7900 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7901 | _ACEOF | ||
7902 | |||
7903 | fi | ||
7904 | |||
7905 | done | ||
7906 | |||
7907 | |||
7908 | # Android requires sys/socket.h to be included before sys/un.h | ||
7909 | |||
7910 | for ac_header in sys/un.h | ||
7911 | do | ||
7912 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7913 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7914 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7915 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7917 | else | ||
7918 | cat >conftest.$ac_ext <<_ACEOF | ||
7919 | /* confdefs.h. */ | ||
7920 | _ACEOF | ||
7921 | cat confdefs.h >>conftest.$ac_ext | ||
7922 | cat >>conftest.$ac_ext <<_ACEOF | ||
7923 | /* end confdefs.h. */ | ||
7924 | |||
7925 | #include <sys/types.h> | ||
7926 | #include <sys/socket.h> | ||
7927 | |||
7928 | |||
7929 | #include <$ac_header> | ||
7930 | _ACEOF | ||
7931 | rm -f conftest.$ac_objext | ||
7932 | if { (ac_try="$ac_compile" | ||
7933 | case "(($ac_try" in | ||
7934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7935 | *) ac_try_echo=$ac_try;; | ||
7936 | esac | ||
7937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7938 | (eval "$ac_compile") 2>conftest.er1 | ||
7939 | ac_status=$? | ||
7940 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7941 | rm -f conftest.er1 | ||
7942 | cat conftest.err >&5 | ||
7943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7944 | (exit $ac_status); } && { | ||
7945 | test -z "$ac_c_werror_flag" || | ||
7946 | test ! -s conftest.err | ||
7947 | } && test -s conftest.$ac_objext; then | ||
7948 | eval "$as_ac_Header=yes" | ||
7949 | else | ||
7950 | echo "$as_me: failed program was:" >&5 | ||
7951 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7952 | |||
7953 | eval "$as_ac_Header=no" | ||
7954 | fi | ||
7955 | |||
7956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7957 | fi | ||
7958 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7959 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7960 | echo "${ECHO_T}$ac_res" >&6; } | ||
7961 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7962 | cat >>confdefs.h <<_ACEOF | ||
7963 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7964 | _ACEOF | ||
7965 | |||
7966 | fi | ||
7967 | |||
7968 | done | ||
7969 | |||
7970 | |||
7971 | # Messages for features tested for in target-specific section | ||
7972 | SIA_MSG="no" | ||
7973 | SPC_MSG="no" | ||
7974 | SP_MSG="no" | ||
7975 | |||
7976 | # Check for some target-specific stuff | ||
7977 | case "$host" in | ||
7978 | *-*-aix*) | ||
7979 | # Some versions of VAC won't allow macro redefinitions at | ||
7980 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that | ||
7981 | # particularly with older versions of vac or xlc. | ||
7982 | # It also throws errors about null macro argments, but these are | ||
7983 | # not fatal. | ||
7984 | { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5 | ||
7985 | echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; } | ||
7986 | cat >conftest.$ac_ext <<_ACEOF | ||
7987 | /* confdefs.h. */ | ||
7988 | _ACEOF | ||
7989 | cat confdefs.h >>conftest.$ac_ext | ||
7990 | cat >>conftest.$ac_ext <<_ACEOF | ||
7991 | /* end confdefs.h. */ | ||
7992 | |||
7993 | #define testmacro foo | ||
7994 | #define testmacro bar | ||
7995 | int | ||
7996 | main () | ||
7997 | { | ||
7998 | exit(0); | ||
7999 | ; | ||
8000 | return 0; | ||
8001 | } | ||
8002 | _ACEOF | ||
8003 | rm -f conftest.$ac_objext | ||
8004 | if { (ac_try="$ac_compile" | ||
8005 | case "(($ac_try" in | ||
8006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8007 | *) ac_try_echo=$ac_try;; | ||
8008 | esac | ||
8009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8010 | (eval "$ac_compile") 2>conftest.er1 | ||
8011 | ac_status=$? | ||
8012 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8013 | rm -f conftest.er1 | ||
8014 | cat conftest.err >&5 | ||
8015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8016 | (exit $ac_status); } && { | ||
8017 | test -z "$ac_c_werror_flag" || | ||
8018 | test ! -s conftest.err | ||
8019 | } && test -s conftest.$ac_objext; then | ||
8020 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
8021 | echo "${ECHO_T}yes" >&6; } | ||
8022 | else | ||
8023 | echo "$as_me: failed program was:" >&5 | ||
8024 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8025 | |||
8026 | { echo "$as_me:$LINENO: result: no" >&5 | ||
8027 | echo "${ECHO_T}no" >&6; } | ||
8028 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" | ||
8029 | LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" | ||
8030 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
8031 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
8032 | |||
8033 | |||
8034 | fi | ||
8035 | |||
8036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8037 | |||
8038 | { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5 | ||
8039 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; } | ||
8040 | if (test -z "$blibpath"); then | ||
8041 | blibpath="/usr/lib:/lib" | ||
8042 | fi | ||
8043 | saved_LDFLAGS="$LDFLAGS" | ||
8044 | if test "$GCC" = "yes"; then | ||
8045 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" | ||
8046 | else | ||
8047 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," | ||
8048 | fi | ||
8049 | for tryflags in $flags ;do | ||
8050 | if (test -z "$blibflags"); then | ||
8051 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
8052 | cat >conftest.$ac_ext <<_ACEOF | ||
8053 | /* confdefs.h. */ | ||
8054 | _ACEOF | ||
8055 | cat confdefs.h >>conftest.$ac_ext | ||
8056 | cat >>conftest.$ac_ext <<_ACEOF | ||
8057 | /* end confdefs.h. */ | ||
8058 | |||
8059 | int | ||
8060 | main () | ||
8061 | { | ||
8062 | |||
8063 | ; | ||
8064 | return 0; | ||
8065 | } | ||
8066 | _ACEOF | ||
8067 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8068 | if { (ac_try="$ac_link" | ||
8069 | case "(($ac_try" in | ||
8070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8071 | *) ac_try_echo=$ac_try;; | ||
8072 | esac | ||
8073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8074 | (eval "$ac_link") 2>conftest.er1 | ||
8075 | ac_status=$? | ||
8076 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8077 | rm -f conftest.er1 | ||
8078 | cat conftest.err >&5 | ||
8079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8080 | (exit $ac_status); } && { | ||
8081 | test -z "$ac_c_werror_flag" || | ||
8082 | test ! -s conftest.err | ||
8083 | } && test -s conftest$ac_exeext && | ||
8084 | $as_test_x conftest$ac_exeext; then | ||
8085 | blibflags=$tryflags | ||
8086 | else | ||
8087 | echo "$as_me: failed program was:" >&5 | ||
8088 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8089 | |||
8090 | |||
8091 | fi | ||
8092 | |||
8093 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8094 | conftest$ac_exeext conftest.$ac_ext | ||
8095 | fi | ||
8096 | done | ||
8097 | if (test -z "$blibflags"); then | ||
8098 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
8099 | echo "${ECHO_T}not found" >&6; } | ||
8100 | { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5 | ||
8101 | echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} | ||
8102 | { (exit 1); exit 1; }; } | ||
8103 | else | ||
8104 | { echo "$as_me:$LINENO: result: $blibflags" >&5 | ||
8105 | echo "${ECHO_T}$blibflags" >&6; } | ||
8106 | fi | ||
8107 | LDFLAGS="$saved_LDFLAGS" | ||
8108 | { echo "$as_me:$LINENO: checking for authenticate" >&5 | ||
8109 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; } | ||
8110 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
8111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8112 | else | ||
8113 | cat >conftest.$ac_ext <<_ACEOF | ||
8114 | /* confdefs.h. */ | ||
8115 | _ACEOF | ||
8116 | cat confdefs.h >>conftest.$ac_ext | ||
8117 | cat >>conftest.$ac_ext <<_ACEOF | ||
8118 | /* end confdefs.h. */ | ||
8119 | /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate. | ||
8120 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8121 | #define authenticate innocuous_authenticate | ||
8122 | |||
8123 | /* System header to define __stub macros and hopefully few prototypes, | ||
8124 | which can conflict with char authenticate (); below. | ||
8125 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8126 | <limits.h> exists even on freestanding compilers. */ | ||
8127 | |||
8128 | #ifdef __STDC__ | ||
8129 | # include <limits.h> | ||
8130 | #else | ||
8131 | # include <assert.h> | ||
8132 | #endif | ||
8133 | |||
8134 | #undef authenticate | ||
8135 | |||
8136 | /* Override any GCC internal prototype to avoid an error. | ||
8137 | Use char because int might match the return type of a GCC | ||
8138 | builtin and then its argument prototype would still apply. */ | ||
8139 | #ifdef __cplusplus | ||
8140 | extern "C" | ||
8141 | #endif | ||
8142 | char authenticate (); | ||
8143 | /* The GNU C library defines this for functions which it implements | ||
8144 | to always fail with ENOSYS. Some functions are actually named | ||
8145 | something starting with __ and the normal name is an alias. */ | ||
8146 | #if defined __stub_authenticate || defined __stub___authenticate | ||
8147 | choke me | ||
8148 | #endif | ||
8149 | |||
8150 | int | ||
8151 | main () | ||
8152 | { | ||
8153 | return authenticate (); | ||
8154 | ; | ||
8155 | return 0; | ||
8156 | } | ||
8157 | _ACEOF | ||
8158 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8159 | if { (ac_try="$ac_link" | ||
8160 | case "(($ac_try" in | ||
8161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8162 | *) ac_try_echo=$ac_try;; | ||
8163 | esac | ||
8164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8165 | (eval "$ac_link") 2>conftest.er1 | ||
8166 | ac_status=$? | ||
8167 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8168 | rm -f conftest.er1 | ||
8169 | cat conftest.err >&5 | ||
8170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8171 | (exit $ac_status); } && { | ||
8172 | test -z "$ac_c_werror_flag" || | ||
8173 | test ! -s conftest.err | ||
8174 | } && test -s conftest$ac_exeext && | ||
8175 | $as_test_x conftest$ac_exeext; then | ||
8176 | ac_cv_func_authenticate=yes | ||
8177 | else | ||
8178 | echo "$as_me: failed program was:" >&5 | ||
8179 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8180 | |||
8181 | ac_cv_func_authenticate=no | ||
8182 | fi | ||
8183 | |||
8184 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8185 | conftest$ac_exeext conftest.$ac_ext | ||
8186 | fi | ||
8187 | { echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | ||
8188 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6; } | ||
8189 | if test $ac_cv_func_authenticate = yes; then | ||
8190 | |||
8191 | cat >>confdefs.h <<\_ACEOF | ||
8192 | #define WITH_AIXAUTHENTICATE 1 | ||
8193 | _ACEOF | ||
8194 | |||
8195 | else | ||
8196 | { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5 | ||
8197 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; } | ||
8198 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
8199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8200 | else | ||
8201 | ac_check_lib_save_LIBS=$LIBS | ||
8202 | LIBS="-ls $LIBS" | ||
8203 | cat >conftest.$ac_ext <<_ACEOF | ||
8204 | /* confdefs.h. */ | ||
8205 | _ACEOF | ||
8206 | cat confdefs.h >>conftest.$ac_ext | ||
8207 | cat >>conftest.$ac_ext <<_ACEOF | ||
8208 | /* end confdefs.h. */ | ||
8209 | |||
8210 | /* Override any GCC internal prototype to avoid an error. | ||
8211 | Use char because int might match the return type of a GCC | ||
8212 | builtin and then its argument prototype would still apply. */ | ||
8213 | #ifdef __cplusplus | ||
8214 | extern "C" | ||
8215 | #endif | ||
8216 | char authenticate (); | ||
8217 | int | ||
8218 | main () | ||
8219 | { | ||
8220 | return authenticate (); | ||
8221 | ; | ||
8222 | return 0; | ||
8223 | } | ||
8224 | _ACEOF | ||
8225 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8226 | if { (ac_try="$ac_link" | ||
8227 | case "(($ac_try" in | ||
8228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8229 | *) ac_try_echo=$ac_try;; | ||
8230 | esac | ||
8231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8232 | (eval "$ac_link") 2>conftest.er1 | ||
8233 | ac_status=$? | ||
8234 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8235 | rm -f conftest.er1 | ||
8236 | cat conftest.err >&5 | ||
8237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8238 | (exit $ac_status); } && { | ||
8239 | test -z "$ac_c_werror_flag" || | ||
8240 | test ! -s conftest.err | ||
8241 | } && test -s conftest$ac_exeext && | ||
8242 | $as_test_x conftest$ac_exeext; then | ||
8243 | ac_cv_lib_s_authenticate=yes | ||
8244 | else | ||
8245 | echo "$as_me: failed program was:" >&5 | ||
8246 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8247 | |||
8248 | ac_cv_lib_s_authenticate=no | ||
8249 | fi | ||
8250 | |||
8251 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8252 | conftest$ac_exeext conftest.$ac_ext | ||
8253 | LIBS=$ac_check_lib_save_LIBS | ||
8254 | fi | ||
8255 | { echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5 | ||
8256 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; } | ||
8257 | if test $ac_cv_lib_s_authenticate = yes; then | ||
8258 | cat >>confdefs.h <<\_ACEOF | ||
8259 | #define WITH_AIXAUTHENTICATE 1 | ||
8260 | _ACEOF | ||
8261 | |||
8262 | LIBS="$LIBS -ls" | ||
8263 | |||
8264 | fi | ||
8265 | |||
8266 | |||
8267 | fi | ||
8268 | |||
8269 | { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5 | ||
8270 | echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; } | ||
8271 | if test "${ac_cv_have_decl_authenticate+set}" = set; then | ||
8272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8273 | else | ||
8274 | cat >conftest.$ac_ext <<_ACEOF | ||
8275 | /* confdefs.h. */ | ||
8276 | _ACEOF | ||
8277 | cat confdefs.h >>conftest.$ac_ext | ||
8278 | cat >>conftest.$ac_ext <<_ACEOF | ||
8279 | /* end confdefs.h. */ | ||
8280 | #include <usersec.h> | ||
8281 | |||
8282 | int | ||
8283 | main () | ||
8284 | { | ||
8285 | #ifndef authenticate | ||
8286 | (void) authenticate; | ||
8287 | #endif | ||
8288 | |||
8289 | ; | ||
8290 | return 0; | ||
8291 | } | ||
8292 | _ACEOF | ||
8293 | rm -f conftest.$ac_objext | ||
8294 | if { (ac_try="$ac_compile" | ||
8295 | case "(($ac_try" in | ||
8296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8297 | *) ac_try_echo=$ac_try;; | ||
8298 | esac | ||
8299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8300 | (eval "$ac_compile") 2>conftest.er1 | ||
8301 | ac_status=$? | ||
8302 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8303 | rm -f conftest.er1 | ||
8304 | cat conftest.err >&5 | ||
8305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8306 | (exit $ac_status); } && { | ||
8307 | test -z "$ac_c_werror_flag" || | ||
8308 | test ! -s conftest.err | ||
8309 | } && test -s conftest.$ac_objext; then | ||
8310 | ac_cv_have_decl_authenticate=yes | ||
8311 | else | ||
8312 | echo "$as_me: failed program was:" >&5 | ||
8313 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8314 | |||
8315 | ac_cv_have_decl_authenticate=no | ||
8316 | fi | ||
8317 | |||
8318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8319 | fi | ||
8320 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5 | ||
8321 | echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; } | ||
8322 | if test $ac_cv_have_decl_authenticate = yes; then | ||
8323 | |||
8324 | cat >>confdefs.h <<_ACEOF | ||
8325 | #define HAVE_DECL_AUTHENTICATE 1 | ||
8326 | _ACEOF | ||
8327 | |||
8328 | |||
8329 | else | ||
8330 | cat >>confdefs.h <<_ACEOF | ||
8331 | #define HAVE_DECL_AUTHENTICATE 0 | ||
8332 | _ACEOF | ||
8333 | |||
8334 | |||
8335 | fi | ||
8336 | { echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5 | ||
8337 | echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; } | ||
8338 | if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then | ||
8339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8340 | else | ||
8341 | cat >conftest.$ac_ext <<_ACEOF | ||
8342 | /* confdefs.h. */ | ||
8343 | _ACEOF | ||
8344 | cat confdefs.h >>conftest.$ac_ext | ||
8345 | cat >>conftest.$ac_ext <<_ACEOF | ||
8346 | /* end confdefs.h. */ | ||
8347 | #include <usersec.h> | ||
8348 | |||
8349 | int | ||
8350 | main () | ||
8351 | { | ||
8352 | #ifndef loginrestrictions | ||
8353 | (void) loginrestrictions; | ||
8354 | #endif | ||
8355 | |||
8356 | ; | ||
8357 | return 0; | ||
8358 | } | ||
8359 | _ACEOF | ||
8360 | rm -f conftest.$ac_objext | ||
8361 | if { (ac_try="$ac_compile" | ||
8362 | case "(($ac_try" in | ||
8363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8364 | *) ac_try_echo=$ac_try;; | ||
8365 | esac | ||
8366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8367 | (eval "$ac_compile") 2>conftest.er1 | ||
8368 | ac_status=$? | ||
8369 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8370 | rm -f conftest.er1 | ||
8371 | cat conftest.err >&5 | ||
8372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8373 | (exit $ac_status); } && { | ||
8374 | test -z "$ac_c_werror_flag" || | ||
8375 | test ! -s conftest.err | ||
8376 | } && test -s conftest.$ac_objext; then | ||
8377 | ac_cv_have_decl_loginrestrictions=yes | ||
8378 | else | ||
8379 | echo "$as_me: failed program was:" >&5 | ||
8380 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8381 | |||
8382 | ac_cv_have_decl_loginrestrictions=no | ||
8383 | fi | ||
8384 | |||
8385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8386 | fi | ||
8387 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5 | ||
8388 | echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; } | ||
8389 | if test $ac_cv_have_decl_loginrestrictions = yes; then | ||
8390 | |||
8391 | cat >>confdefs.h <<_ACEOF | ||
8392 | #define HAVE_DECL_LOGINRESTRICTIONS 1 | ||
8393 | _ACEOF | ||
8394 | |||
8395 | |||
8396 | else | ||
8397 | cat >>confdefs.h <<_ACEOF | ||
8398 | #define HAVE_DECL_LOGINRESTRICTIONS 0 | ||
8399 | _ACEOF | ||
8400 | |||
8401 | |||
8402 | fi | ||
8403 | { echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5 | ||
8404 | echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; } | ||
8405 | if test "${ac_cv_have_decl_loginsuccess+set}" = set; then | ||
8406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8407 | else | ||
8408 | cat >conftest.$ac_ext <<_ACEOF | ||
8409 | /* confdefs.h. */ | ||
8410 | _ACEOF | ||
8411 | cat confdefs.h >>conftest.$ac_ext | ||
8412 | cat >>conftest.$ac_ext <<_ACEOF | ||
8413 | /* end confdefs.h. */ | ||
8414 | #include <usersec.h> | ||
8415 | |||
8416 | int | ||
8417 | main () | ||
8418 | { | ||
8419 | #ifndef loginsuccess | ||
8420 | (void) loginsuccess; | ||
8421 | #endif | ||
8422 | |||
8423 | ; | ||
8424 | return 0; | ||
8425 | } | ||
8426 | _ACEOF | ||
8427 | rm -f conftest.$ac_objext | ||
8428 | if { (ac_try="$ac_compile" | ||
8429 | case "(($ac_try" in | ||
8430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8431 | *) ac_try_echo=$ac_try;; | ||
8432 | esac | ||
8433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8434 | (eval "$ac_compile") 2>conftest.er1 | ||
8435 | ac_status=$? | ||
8436 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8437 | rm -f conftest.er1 | ||
8438 | cat conftest.err >&5 | ||
8439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8440 | (exit $ac_status); } && { | ||
8441 | test -z "$ac_c_werror_flag" || | ||
8442 | test ! -s conftest.err | ||
8443 | } && test -s conftest.$ac_objext; then | ||
8444 | ac_cv_have_decl_loginsuccess=yes | ||
8445 | else | ||
8446 | echo "$as_me: failed program was:" >&5 | ||
8447 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8448 | |||
8449 | ac_cv_have_decl_loginsuccess=no | ||
8450 | fi | ||
8451 | |||
8452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8453 | fi | ||
8454 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5 | ||
8455 | echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; } | ||
8456 | if test $ac_cv_have_decl_loginsuccess = yes; then | ||
8457 | |||
8458 | cat >>confdefs.h <<_ACEOF | ||
8459 | #define HAVE_DECL_LOGINSUCCESS 1 | ||
8460 | _ACEOF | ||
8461 | |||
8462 | |||
8463 | else | ||
8464 | cat >>confdefs.h <<_ACEOF | ||
8465 | #define HAVE_DECL_LOGINSUCCESS 0 | ||
8466 | _ACEOF | ||
8467 | |||
8468 | |||
8469 | fi | ||
8470 | { echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5 | ||
8471 | echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; } | ||
8472 | if test "${ac_cv_have_decl_passwdexpired+set}" = set; then | ||
8473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8474 | else | ||
8475 | cat >conftest.$ac_ext <<_ACEOF | ||
8476 | /* confdefs.h. */ | ||
8477 | _ACEOF | ||
8478 | cat confdefs.h >>conftest.$ac_ext | ||
8479 | cat >>conftest.$ac_ext <<_ACEOF | ||
8480 | /* end confdefs.h. */ | ||
8481 | #include <usersec.h> | ||
8482 | |||
8483 | int | ||
8484 | main () | ||
8485 | { | ||
8486 | #ifndef passwdexpired | ||
8487 | (void) passwdexpired; | ||
8488 | #endif | ||
8489 | |||
8490 | ; | ||
8491 | return 0; | ||
8492 | } | ||
8493 | _ACEOF | ||
8494 | rm -f conftest.$ac_objext | ||
8495 | if { (ac_try="$ac_compile" | ||
8496 | case "(($ac_try" in | ||
8497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8498 | *) ac_try_echo=$ac_try;; | ||
8499 | esac | ||
8500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8501 | (eval "$ac_compile") 2>conftest.er1 | ||
8502 | ac_status=$? | ||
8503 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8504 | rm -f conftest.er1 | ||
8505 | cat conftest.err >&5 | ||
8506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8507 | (exit $ac_status); } && { | ||
8508 | test -z "$ac_c_werror_flag" || | ||
8509 | test ! -s conftest.err | ||
8510 | } && test -s conftest.$ac_objext; then | ||
8511 | ac_cv_have_decl_passwdexpired=yes | ||
8512 | else | ||
8513 | echo "$as_me: failed program was:" >&5 | ||
8514 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8515 | |||
8516 | ac_cv_have_decl_passwdexpired=no | ||
8517 | fi | ||
8518 | |||
8519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8520 | fi | ||
8521 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5 | ||
8522 | echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; } | ||
8523 | if test $ac_cv_have_decl_passwdexpired = yes; then | ||
8524 | |||
8525 | cat >>confdefs.h <<_ACEOF | ||
8526 | #define HAVE_DECL_PASSWDEXPIRED 1 | ||
8527 | _ACEOF | ||
8528 | |||
8529 | |||
8530 | else | ||
8531 | cat >>confdefs.h <<_ACEOF | ||
8532 | #define HAVE_DECL_PASSWDEXPIRED 0 | ||
8533 | _ACEOF | ||
8534 | |||
8535 | |||
8536 | fi | ||
8537 | { echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5 | ||
8538 | echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; } | ||
8539 | if test "${ac_cv_have_decl_setauthdb+set}" = set; then | ||
8540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8541 | else | ||
8542 | cat >conftest.$ac_ext <<_ACEOF | ||
8543 | /* confdefs.h. */ | ||
8544 | _ACEOF | ||
8545 | cat confdefs.h >>conftest.$ac_ext | ||
8546 | cat >>conftest.$ac_ext <<_ACEOF | ||
8547 | /* end confdefs.h. */ | ||
8548 | #include <usersec.h> | ||
8549 | |||
8550 | int | ||
8551 | main () | ||
8552 | { | ||
8553 | #ifndef setauthdb | ||
8554 | (void) setauthdb; | ||
8555 | #endif | ||
8556 | |||
8557 | ; | ||
8558 | return 0; | ||
8559 | } | ||
8560 | _ACEOF | ||
8561 | rm -f conftest.$ac_objext | ||
8562 | if { (ac_try="$ac_compile" | ||
8563 | case "(($ac_try" in | ||
8564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8565 | *) ac_try_echo=$ac_try;; | ||
8566 | esac | ||
8567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8568 | (eval "$ac_compile") 2>conftest.er1 | ||
8569 | ac_status=$? | ||
8570 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8571 | rm -f conftest.er1 | ||
8572 | cat conftest.err >&5 | ||
8573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8574 | (exit $ac_status); } && { | ||
8575 | test -z "$ac_c_werror_flag" || | ||
8576 | test ! -s conftest.err | ||
8577 | } && test -s conftest.$ac_objext; then | ||
8578 | ac_cv_have_decl_setauthdb=yes | ||
8579 | else | ||
8580 | echo "$as_me: failed program was:" >&5 | ||
8581 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8582 | |||
8583 | ac_cv_have_decl_setauthdb=no | ||
8584 | fi | ||
8585 | |||
8586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8587 | fi | ||
8588 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5 | ||
8589 | echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; } | ||
8590 | if test $ac_cv_have_decl_setauthdb = yes; then | ||
8591 | |||
8592 | cat >>confdefs.h <<_ACEOF | ||
8593 | #define HAVE_DECL_SETAUTHDB 1 | ||
8594 | _ACEOF | ||
8595 | |||
8596 | |||
8597 | else | ||
8598 | cat >>confdefs.h <<_ACEOF | ||
8599 | #define HAVE_DECL_SETAUTHDB 0 | ||
8600 | _ACEOF | ||
8601 | |||
8602 | |||
8603 | fi | ||
8604 | |||
8605 | |||
8606 | { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5 | ||
8607 | echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; } | ||
8608 | if test "${ac_cv_have_decl_loginfailed+set}" = set; then | ||
8609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8610 | else | ||
8611 | cat >conftest.$ac_ext <<_ACEOF | ||
8612 | /* confdefs.h. */ | ||
8613 | _ACEOF | ||
8614 | cat confdefs.h >>conftest.$ac_ext | ||
8615 | cat >>conftest.$ac_ext <<_ACEOF | ||
8616 | /* end confdefs.h. */ | ||
8617 | #include <usersec.h> | ||
8618 | |||
8619 | |||
8620 | int | ||
8621 | main () | ||
8622 | { | ||
8623 | #ifndef loginfailed | ||
8624 | (void) loginfailed; | ||
8625 | #endif | ||
8626 | |||
8627 | ; | ||
8628 | return 0; | ||
8629 | } | ||
8630 | _ACEOF | ||
8631 | rm -f conftest.$ac_objext | ||
8632 | if { (ac_try="$ac_compile" | ||
8633 | case "(($ac_try" in | ||
8634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8635 | *) ac_try_echo=$ac_try;; | ||
8636 | esac | ||
8637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8638 | (eval "$ac_compile") 2>conftest.er1 | ||
8639 | ac_status=$? | ||
8640 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8641 | rm -f conftest.er1 | ||
8642 | cat conftest.err >&5 | ||
8643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8644 | (exit $ac_status); } && { | ||
8645 | test -z "$ac_c_werror_flag" || | ||
8646 | test ! -s conftest.err | ||
8647 | } && test -s conftest.$ac_objext; then | ||
8648 | ac_cv_have_decl_loginfailed=yes | ||
8649 | else | ||
8650 | echo "$as_me: failed program was:" >&5 | ||
8651 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8652 | |||
8653 | ac_cv_have_decl_loginfailed=no | ||
8654 | fi | ||
8655 | |||
8656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8657 | fi | ||
8658 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5 | ||
8659 | echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; } | ||
8660 | if test $ac_cv_have_decl_loginfailed = yes; then | ||
8661 | |||
8662 | cat >>confdefs.h <<_ACEOF | ||
8663 | #define HAVE_DECL_LOGINFAILED 1 | ||
8664 | _ACEOF | ||
8665 | |||
8666 | { echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5 | ||
8667 | echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; } | ||
8668 | cat >conftest.$ac_ext <<_ACEOF | ||
8669 | /* confdefs.h. */ | ||
8670 | _ACEOF | ||
8671 | cat confdefs.h >>conftest.$ac_ext | ||
8672 | cat >>conftest.$ac_ext <<_ACEOF | ||
8673 | /* end confdefs.h. */ | ||
8674 | #include <usersec.h> | ||
8675 | int | ||
8676 | main () | ||
8677 | { | ||
8678 | (void)loginfailed("user","host","tty",0); | ||
8679 | ; | ||
8680 | return 0; | ||
8681 | } | ||
8682 | _ACEOF | ||
8683 | rm -f conftest.$ac_objext | ||
8684 | if { (ac_try="$ac_compile" | ||
8685 | case "(($ac_try" in | ||
8686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8687 | *) ac_try_echo=$ac_try;; | ||
8688 | esac | ||
8689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8690 | (eval "$ac_compile") 2>conftest.er1 | ||
8691 | ac_status=$? | ||
8692 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8693 | rm -f conftest.er1 | ||
8694 | cat conftest.err >&5 | ||
8695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8696 | (exit $ac_status); } && { | ||
8697 | test -z "$ac_c_werror_flag" || | ||
8698 | test ! -s conftest.err | ||
8699 | } && test -s conftest.$ac_objext; then | ||
8700 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
8701 | echo "${ECHO_T}yes" >&6; } | ||
8702 | |||
8703 | cat >>confdefs.h <<\_ACEOF | ||
8704 | #define AIX_LOGINFAILED_4ARG 1 | ||
8705 | _ACEOF | ||
8706 | |||
8707 | else | ||
8708 | echo "$as_me: failed program was:" >&5 | ||
8709 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8710 | |||
8711 | { echo "$as_me:$LINENO: result: no" >&5 | ||
8712 | echo "${ECHO_T}no" >&6; } | ||
8713 | |||
8714 | fi | ||
8715 | |||
8716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8717 | else | ||
8718 | cat >>confdefs.h <<_ACEOF | ||
8719 | #define HAVE_DECL_LOGINFAILED 0 | ||
8720 | _ACEOF | ||
8721 | |||
8722 | |||
8723 | fi | ||
8724 | |||
8725 | |||
8726 | |||
8727 | |||
8728 | for ac_func in getgrset setauthdb | ||
8729 | do | ||
8730 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8731 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
8732 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
8733 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8735 | else | ||
8736 | cat >conftest.$ac_ext <<_ACEOF | ||
8737 | /* confdefs.h. */ | ||
8738 | _ACEOF | ||
8739 | cat confdefs.h >>conftest.$ac_ext | ||
8740 | cat >>conftest.$ac_ext <<_ACEOF | ||
8741 | /* end confdefs.h. */ | ||
8742 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
8743 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8744 | #define $ac_func innocuous_$ac_func | ||
8745 | |||
8746 | /* System header to define __stub macros and hopefully few prototypes, | ||
8747 | which can conflict with char $ac_func (); below. | ||
8748 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8749 | <limits.h> exists even on freestanding compilers. */ | ||
8750 | |||
8751 | #ifdef __STDC__ | ||
8752 | # include <limits.h> | ||
8753 | #else | ||
8754 | # include <assert.h> | ||
8755 | #endif | ||
8756 | |||
8757 | #undef $ac_func | ||
8758 | |||
8759 | /* Override any GCC internal prototype to avoid an error. | ||
8760 | Use char because int might match the return type of a GCC | ||
8761 | builtin and then its argument prototype would still apply. */ | ||
8762 | #ifdef __cplusplus | ||
8763 | extern "C" | ||
8764 | #endif | ||
8765 | char $ac_func (); | ||
8766 | /* The GNU C library defines this for functions which it implements | ||
8767 | to always fail with ENOSYS. Some functions are actually named | ||
8768 | something starting with __ and the normal name is an alias. */ | ||
8769 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
8770 | choke me | ||
8771 | #endif | ||
8772 | |||
8773 | int | ||
8774 | main () | ||
8775 | { | ||
8776 | return $ac_func (); | ||
8777 | ; | ||
8778 | return 0; | ||
8779 | } | ||
8780 | _ACEOF | ||
8781 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8782 | if { (ac_try="$ac_link" | ||
8783 | case "(($ac_try" in | ||
8784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8785 | *) ac_try_echo=$ac_try;; | ||
8786 | esac | ||
8787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8788 | (eval "$ac_link") 2>conftest.er1 | ||
8789 | ac_status=$? | ||
8790 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8791 | rm -f conftest.er1 | ||
8792 | cat conftest.err >&5 | ||
8793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8794 | (exit $ac_status); } && { | ||
8795 | test -z "$ac_c_werror_flag" || | ||
8796 | test ! -s conftest.err | ||
8797 | } && test -s conftest$ac_exeext && | ||
8798 | $as_test_x conftest$ac_exeext; then | ||
8799 | eval "$as_ac_var=yes" | ||
8800 | else | ||
8801 | echo "$as_me: failed program was:" >&5 | ||
8802 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8803 | |||
8804 | eval "$as_ac_var=no" | ||
8805 | fi | ||
8806 | |||
8807 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8808 | conftest$ac_exeext conftest.$ac_ext | ||
8809 | fi | ||
8810 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
8811 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8812 | echo "${ECHO_T}$ac_res" >&6; } | ||
8813 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8814 | cat >>confdefs.h <<_ACEOF | ||
8815 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8816 | _ACEOF | ||
8817 | |||
8818 | fi | ||
8819 | done | ||
8820 | |||
8821 | { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5 | ||
8822 | echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; } | ||
8823 | if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then | ||
8824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8825 | else | ||
8826 | cat >conftest.$ac_ext <<_ACEOF | ||
8827 | /* confdefs.h. */ | ||
8828 | _ACEOF | ||
8829 | cat confdefs.h >>conftest.$ac_ext | ||
8830 | cat >>conftest.$ac_ext <<_ACEOF | ||
8831 | /* end confdefs.h. */ | ||
8832 | #include <limits.h> | ||
8833 | #include <fcntl.h> | ||
8834 | |||
8835 | |||
8836 | int | ||
8837 | main () | ||
8838 | { | ||
8839 | #ifndef F_CLOSEM | ||
8840 | (void) F_CLOSEM; | ||
8841 | #endif | ||
8842 | |||
8843 | ; | ||
8844 | return 0; | ||
8845 | } | ||
8846 | _ACEOF | ||
8847 | rm -f conftest.$ac_objext | ||
8848 | if { (ac_try="$ac_compile" | ||
8849 | case "(($ac_try" in | ||
8850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8851 | *) ac_try_echo=$ac_try;; | ||
8852 | esac | ||
8853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8854 | (eval "$ac_compile") 2>conftest.er1 | ||
8855 | ac_status=$? | ||
8856 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8857 | rm -f conftest.er1 | ||
8858 | cat conftest.err >&5 | ||
8859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8860 | (exit $ac_status); } && { | ||
8861 | test -z "$ac_c_werror_flag" || | ||
8862 | test ! -s conftest.err | ||
8863 | } && test -s conftest.$ac_objext; then | ||
8864 | ac_cv_have_decl_F_CLOSEM=yes | ||
8865 | else | ||
8866 | echo "$as_me: failed program was:" >&5 | ||
8867 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8868 | |||
8869 | ac_cv_have_decl_F_CLOSEM=no | ||
8870 | fi | ||
8871 | |||
8872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8873 | fi | ||
8874 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5 | ||
8875 | echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; } | ||
8876 | if test $ac_cv_have_decl_F_CLOSEM = yes; then | ||
8877 | |||
8878 | cat >>confdefs.h <<\_ACEOF | ||
8879 | #define HAVE_FCNTL_CLOSEM 1 | ||
8880 | _ACEOF | ||
8881 | |||
8882 | fi | ||
8883 | |||
8884 | check_for_aix_broken_getaddrinfo=1 | ||
8885 | |||
8886 | cat >>confdefs.h <<\_ACEOF | ||
8887 | #define BROKEN_REALPATH 1 | ||
8888 | _ACEOF | ||
8889 | |||
8890 | |||
8891 | cat >>confdefs.h <<\_ACEOF | ||
8892 | #define SETEUID_BREAKS_SETUID 1 | ||
8893 | _ACEOF | ||
8894 | |||
8895 | |||
8896 | cat >>confdefs.h <<\_ACEOF | ||
8897 | #define BROKEN_SETREUID 1 | ||
8898 | _ACEOF | ||
8899 | |||
8900 | |||
8901 | cat >>confdefs.h <<\_ACEOF | ||
8902 | #define BROKEN_SETREGID 1 | ||
8903 | _ACEOF | ||
8904 | |||
8905 | |||
8906 | cat >>confdefs.h <<\_ACEOF | ||
8907 | #define DISABLE_LASTLOG 1 | ||
8908 | _ACEOF | ||
8909 | |||
8910 | |||
8911 | cat >>confdefs.h <<\_ACEOF | ||
8912 | #define LOGIN_NEEDS_UTMPX 1 | ||
8913 | _ACEOF | ||
8914 | |||
8915 | |||
8916 | cat >>confdefs.h <<\_ACEOF | ||
8917 | #define SPT_TYPE SPT_REUSEARGV | ||
8918 | _ACEOF | ||
8919 | |||
8920 | |||
8921 | cat >>confdefs.h <<\_ACEOF | ||
8922 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
8923 | _ACEOF | ||
8924 | |||
8925 | |||
8926 | cat >>confdefs.h <<\_ACEOF | ||
8927 | #define PTY_ZEROREAD 1 | ||
8928 | _ACEOF | ||
8929 | |||
8930 | |||
8931 | cat >>confdefs.h <<\_ACEOF | ||
8932 | #define PLATFORM_SYS_DIR_UID 2 | ||
8933 | _ACEOF | ||
8934 | |||
8935 | ;; | ||
8936 | *-*-android*) | ||
8937 | |||
8938 | cat >>confdefs.h <<\_ACEOF | ||
8939 | #define DISABLE_UTMP 1 | ||
8940 | _ACEOF | ||
8941 | |||
8942 | |||
8943 | cat >>confdefs.h <<\_ACEOF | ||
8944 | #define DISABLE_WTMP 1 | ||
8945 | _ACEOF | ||
8946 | |||
8947 | ;; | ||
8948 | *-*-cygwin*) | ||
8949 | check_for_libcrypt_later=1 | ||
8950 | LIBS="$LIBS /usr/lib/textreadmode.o" | ||
8951 | |||
8952 | cat >>confdefs.h <<\_ACEOF | ||
8953 | #define HAVE_CYGWIN 1 | ||
8954 | _ACEOF | ||
8955 | |||
8956 | |||
8957 | cat >>confdefs.h <<\_ACEOF | ||
8958 | #define USE_PIPES 1 | ||
8959 | _ACEOF | ||
8960 | |||
8961 | |||
8962 | cat >>confdefs.h <<\_ACEOF | ||
8963 | #define DISABLE_SHADOW 1 | ||
8964 | _ACEOF | ||
8965 | |||
8966 | |||
8967 | cat >>confdefs.h <<\_ACEOF | ||
8968 | #define NO_X11_UNIX_SOCKETS 1 | ||
8969 | _ACEOF | ||
8970 | |||
8971 | |||
8972 | cat >>confdefs.h <<\_ACEOF | ||
8973 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
8974 | _ACEOF | ||
8975 | |||
8976 | |||
8977 | cat >>confdefs.h <<\_ACEOF | ||
8978 | #define DISABLE_FD_PASSING 1 | ||
8979 | _ACEOF | ||
8980 | |||
8981 | |||
8982 | cat >>confdefs.h <<\_ACEOF | ||
8983 | #define SSH_IOBUFSZ 65535 | ||
8984 | _ACEOF | ||
8985 | |||
8986 | |||
8987 | cat >>confdefs.h <<\_ACEOF | ||
8988 | #define FILESYSTEM_NO_BACKSLASH 1 | ||
8989 | _ACEOF | ||
8990 | |||
8991 | # Cygwin defines optargs, optargs as declspec(dllimport) for historical | ||
8992 | # reasons which cause compile warnings, so we disable those warnings. | ||
8993 | { | ||
8994 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wno-attributes" >&5 | ||
8995 | echo $ECHO_N "checking if $CC supports compile flag -Wno-attributes... $ECHO_C" >&6; } | ||
8996 | saved_CFLAGS="$CFLAGS" | ||
8997 | CFLAGS="$CFLAGS $WERROR -Wno-attributes" | ||
8998 | _define_flag="" | ||
8999 | test "x$_define_flag" = "x" && _define_flag="-Wno-attributes" | ||
9000 | cat >conftest.$ac_ext <<_ACEOF | ||
9001 | /* confdefs.h. */ | ||
9002 | _ACEOF | ||
9003 | cat confdefs.h >>conftest.$ac_ext | ||
9004 | cat >>conftest.$ac_ext <<_ACEOF | ||
9005 | /* end confdefs.h. */ | ||
9006 | |||
9007 | #include <stdlib.h> | ||
9008 | #include <stdio.h> | ||
9009 | int main(int argc, char **argv) { | ||
9010 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
9011 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
9012 | float l = i * 2.1; | ||
9013 | double m = l / 0.5; | ||
9014 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
9015 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
9016 | exit(0); | ||
9017 | } | ||
9018 | |||
9019 | _ACEOF | ||
9020 | rm -f conftest.$ac_objext | ||
9021 | if { (ac_try="$ac_compile" | ||
9022 | case "(($ac_try" in | ||
9023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9024 | *) ac_try_echo=$ac_try;; | ||
9025 | esac | ||
9026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9027 | (eval "$ac_compile") 2>conftest.er1 | ||
9028 | ac_status=$? | ||
9029 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9030 | rm -f conftest.er1 | ||
9031 | cat conftest.err >&5 | ||
9032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9033 | (exit $ac_status); } && { | ||
9034 | test -z "$ac_c_werror_flag" || | ||
9035 | test ! -s conftest.err | ||
9036 | } && test -s conftest.$ac_objext; then | ||
9037 | |||
9038 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
9039 | then | ||
9040 | { echo "$as_me:$LINENO: result: no" >&5 | ||
9041 | echo "${ECHO_T}no" >&6; } | ||
9042 | CFLAGS="$saved_CFLAGS" | ||
9043 | else | ||
9044 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
9045 | echo "${ECHO_T}yes" >&6; } | ||
9046 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
9047 | fi | ||
9048 | else | ||
9049 | echo "$as_me: failed program was:" >&5 | ||
9050 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9051 | |||
9052 | { echo "$as_me:$LINENO: result: no" >&5 | ||
9053 | echo "${ECHO_T}no" >&6; } | ||
9054 | CFLAGS="$saved_CFLAGS" | ||
9055 | |||
9056 | fi | ||
9057 | |||
9058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9059 | } | ||
9060 | ;; | ||
9061 | *-*-dgux*) | ||
9062 | |||
9063 | cat >>confdefs.h <<\_ACEOF | ||
9064 | #define IP_TOS_IS_BROKEN 1 | ||
9065 | _ACEOF | ||
9066 | |||
9067 | cat >>confdefs.h <<\_ACEOF | ||
9068 | #define SETEUID_BREAKS_SETUID 1 | ||
9069 | _ACEOF | ||
9070 | |||
9071 | cat >>confdefs.h <<\_ACEOF | ||
9072 | #define BROKEN_SETREUID 1 | ||
9073 | _ACEOF | ||
9074 | |||
9075 | cat >>confdefs.h <<\_ACEOF | ||
9076 | #define BROKEN_SETREGID 1 | ||
9077 | _ACEOF | ||
9078 | |||
9079 | ;; | ||
9080 | *-*-darwin*) | ||
9081 | use_pie=auto | ||
9082 | { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5 | ||
9083 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; } | ||
9084 | if test "$cross_compiling" = yes; then | ||
9085 | { echo "$as_me:$LINENO: result: assume it is working" >&5 | ||
9086 | echo "${ECHO_T}assume it is working" >&6; } | ||
9087 | else | ||
9088 | cat >conftest.$ac_ext <<_ACEOF | ||
9089 | /* confdefs.h. */ | ||
9090 | _ACEOF | ||
9091 | cat confdefs.h >>conftest.$ac_ext | ||
9092 | cat >>conftest.$ac_ext <<_ACEOF | ||
9093 | /* end confdefs.h. */ | ||
9094 | #include <mach-o/dyld.h> | ||
9095 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
9096 | exit(0); | ||
9097 | else | ||
9098 | exit(1); | ||
9099 | } | ||
9100 | |||
9101 | _ACEOF | ||
9102 | rm -f conftest$ac_exeext | ||
9103 | if { (ac_try="$ac_link" | ||
9104 | case "(($ac_try" in | ||
9105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9106 | *) ac_try_echo=$ac_try;; | ||
9107 | esac | ||
9108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9109 | (eval "$ac_link") 2>&5 | ||
9110 | ac_status=$? | ||
9111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9112 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9113 | { (case "(($ac_try" in | ||
9114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9115 | *) ac_try_echo=$ac_try;; | ||
9116 | esac | ||
9117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9118 | (eval "$ac_try") 2>&5 | ||
9119 | ac_status=$? | ||
9120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9121 | (exit $ac_status); }; }; then | ||
9122 | { echo "$as_me:$LINENO: result: working" >&5 | ||
9123 | echo "${ECHO_T}working" >&6; } | ||
9124 | else | ||
9125 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9126 | echo "$as_me: failed program was:" >&5 | ||
9127 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9128 | |||
9129 | ( exit $ac_status ) | ||
9130 | { echo "$as_me:$LINENO: result: buggy" >&5 | ||
9131 | echo "${ECHO_T}buggy" >&6; } | ||
9132 | |||
9133 | cat >>confdefs.h <<\_ACEOF | ||
9134 | #define BROKEN_GETADDRINFO 1 | ||
9135 | _ACEOF | ||
9136 | |||
9137 | |||
9138 | fi | ||
9139 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9140 | fi | ||
9141 | |||
9142 | |||
9143 | cat >>confdefs.h <<\_ACEOF | ||
9144 | #define SETEUID_BREAKS_SETUID 1 | ||
9145 | _ACEOF | ||
9146 | |||
9147 | cat >>confdefs.h <<\_ACEOF | ||
9148 | #define BROKEN_SETREUID 1 | ||
9149 | _ACEOF | ||
9150 | |||
9151 | cat >>confdefs.h <<\_ACEOF | ||
9152 | #define BROKEN_SETREGID 1 | ||
9153 | _ACEOF | ||
9154 | |||
9155 | |||
9156 | cat >>confdefs.h <<\_ACEOF | ||
9157 | #define BROKEN_GLOB 1 | ||
9158 | _ACEOF | ||
9159 | |||
9160 | |||
9161 | cat >>confdefs.h <<_ACEOF | ||
9162 | #define BIND_8_COMPAT 1 | ||
9163 | _ACEOF | ||
9164 | |||
9165 | |||
9166 | cat >>confdefs.h <<\_ACEOF | ||
9167 | #define SSH_TUN_FREEBSD 1 | ||
9168 | _ACEOF | ||
9169 | |||
9170 | |||
9171 | cat >>confdefs.h <<\_ACEOF | ||
9172 | #define SSH_TUN_COMPAT_AF 1 | ||
9173 | _ACEOF | ||
9174 | |||
9175 | |||
9176 | cat >>confdefs.h <<\_ACEOF | ||
9177 | #define SSH_TUN_PREPEND_AF 1 | ||
9178 | _ACEOF | ||
9179 | |||
9180 | |||
9181 | { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5 | ||
9182 | echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; } | ||
9183 | if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then | ||
9184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9185 | else | ||
9186 | cat >conftest.$ac_ext <<_ACEOF | ||
9187 | /* confdefs.h. */ | ||
9188 | _ACEOF | ||
9189 | cat confdefs.h >>conftest.$ac_ext | ||
9190 | cat >>conftest.$ac_ext <<_ACEOF | ||
9191 | /* end confdefs.h. */ | ||
9192 | $ac_includes_default | ||
9193 | int | ||
9194 | main () | ||
9195 | { | ||
9196 | #ifndef AU_IPv4 | ||
9197 | (void) AU_IPv4; | ||
9198 | #endif | ||
9199 | |||
9200 | ; | ||
9201 | return 0; | ||
9202 | } | ||
9203 | _ACEOF | ||
9204 | rm -f conftest.$ac_objext | ||
9205 | if { (ac_try="$ac_compile" | ||
9206 | case "(($ac_try" in | ||
9207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9208 | *) ac_try_echo=$ac_try;; | ||
9209 | esac | ||
9210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9211 | (eval "$ac_compile") 2>conftest.er1 | ||
9212 | ac_status=$? | ||
9213 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9214 | rm -f conftest.er1 | ||
9215 | cat conftest.err >&5 | ||
9216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9217 | (exit $ac_status); } && { | ||
9218 | test -z "$ac_c_werror_flag" || | ||
9219 | test ! -s conftest.err | ||
9220 | } && test -s conftest.$ac_objext; then | ||
9221 | ac_cv_have_decl_AU_IPv4=yes | ||
9222 | else | ||
9223 | echo "$as_me: failed program was:" >&5 | ||
9224 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9225 | |||
9226 | ac_cv_have_decl_AU_IPv4=no | ||
9227 | fi | ||
9228 | |||
9229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9230 | fi | ||
9231 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5 | ||
9232 | echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; } | ||
9233 | if test $ac_cv_have_decl_AU_IPv4 = yes; then | ||
9234 | : | ||
9235 | else | ||
9236 | |||
9237 | cat >>confdefs.h <<\_ACEOF | ||
9238 | #define AU_IPv4 0 | ||
9239 | _ACEOF | ||
9240 | |||
9241 | #include <bsm/audit.h> | ||
9242 | |||
9243 | cat >>confdefs.h <<\_ACEOF | ||
9244 | #define LASTLOG_WRITE_PUTUTXLINE 1 | ||
9245 | _ACEOF | ||
9246 | |||
9247 | |||
9248 | fi | ||
9249 | |||
9250 | |||
9251 | cat >>confdefs.h <<\_ACEOF | ||
9252 | #define SPT_TYPE SPT_REUSEARGV | ||
9253 | _ACEOF | ||
9254 | |||
9255 | |||
9256 | for ac_func in sandbox_init | ||
9257 | do | ||
9258 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9259 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9260 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
9261 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9263 | else | ||
9264 | cat >conftest.$ac_ext <<_ACEOF | ||
9265 | /* confdefs.h. */ | ||
9266 | _ACEOF | ||
9267 | cat confdefs.h >>conftest.$ac_ext | ||
9268 | cat >>conftest.$ac_ext <<_ACEOF | ||
9269 | /* end confdefs.h. */ | ||
9270 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9271 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9272 | #define $ac_func innocuous_$ac_func | ||
9273 | |||
9274 | /* System header to define __stub macros and hopefully few prototypes, | ||
9275 | which can conflict with char $ac_func (); below. | ||
9276 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9277 | <limits.h> exists even on freestanding compilers. */ | ||
9278 | |||
9279 | #ifdef __STDC__ | ||
9280 | # include <limits.h> | ||
9281 | #else | ||
9282 | # include <assert.h> | ||
9283 | #endif | ||
9284 | |||
9285 | #undef $ac_func | ||
9286 | |||
9287 | /* Override any GCC internal prototype to avoid an error. | ||
9288 | Use char because int might match the return type of a GCC | ||
9289 | builtin and then its argument prototype would still apply. */ | ||
9290 | #ifdef __cplusplus | ||
9291 | extern "C" | ||
9292 | #endif | ||
9293 | char $ac_func (); | ||
9294 | /* The GNU C library defines this for functions which it implements | ||
9295 | to always fail with ENOSYS. Some functions are actually named | ||
9296 | something starting with __ and the normal name is an alias. */ | ||
9297 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
9298 | choke me | ||
9299 | #endif | ||
9300 | |||
9301 | int | ||
9302 | main () | ||
9303 | { | ||
9304 | return $ac_func (); | ||
9305 | ; | ||
9306 | return 0; | ||
9307 | } | ||
9308 | _ACEOF | ||
9309 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9310 | if { (ac_try="$ac_link" | ||
9311 | case "(($ac_try" in | ||
9312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9313 | *) ac_try_echo=$ac_try;; | ||
9314 | esac | ||
9315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9316 | (eval "$ac_link") 2>conftest.er1 | ||
9317 | ac_status=$? | ||
9318 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9319 | rm -f conftest.er1 | ||
9320 | cat conftest.err >&5 | ||
9321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9322 | (exit $ac_status); } && { | ||
9323 | test -z "$ac_c_werror_flag" || | ||
9324 | test ! -s conftest.err | ||
9325 | } && test -s conftest$ac_exeext && | ||
9326 | $as_test_x conftest$ac_exeext; then | ||
9327 | eval "$as_ac_var=yes" | ||
9328 | else | ||
9329 | echo "$as_me: failed program was:" >&5 | ||
9330 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9331 | |||
9332 | eval "$as_ac_var=no" | ||
9333 | fi | ||
9334 | |||
9335 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9336 | conftest$ac_exeext conftest.$ac_ext | ||
9337 | fi | ||
9338 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
9339 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9340 | echo "${ECHO_T}$ac_res" >&6; } | ||
9341 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9342 | cat >>confdefs.h <<_ACEOF | ||
9343 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9344 | _ACEOF | ||
9345 | |||
9346 | fi | ||
9347 | done | ||
9348 | |||
9349 | |||
9350 | for ac_header in sandbox.h | ||
9351 | do | ||
9352 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
9353 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9354 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9355 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
9356 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9358 | fi | ||
9359 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
9360 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9361 | echo "${ECHO_T}$ac_res" >&6; } | ||
9362 | else | ||
9363 | # Is the header compilable? | ||
9364 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
9365 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
9366 | cat >conftest.$ac_ext <<_ACEOF | ||
9367 | /* confdefs.h. */ | ||
9368 | _ACEOF | ||
9369 | cat confdefs.h >>conftest.$ac_ext | ||
9370 | cat >>conftest.$ac_ext <<_ACEOF | ||
9371 | /* end confdefs.h. */ | ||
9372 | $ac_includes_default | ||
9373 | #include <$ac_header> | ||
9374 | _ACEOF | ||
9375 | rm -f conftest.$ac_objext | ||
9376 | if { (ac_try="$ac_compile" | ||
9377 | case "(($ac_try" in | ||
9378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9379 | *) ac_try_echo=$ac_try;; | ||
9380 | esac | ||
9381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9382 | (eval "$ac_compile") 2>conftest.er1 | ||
9383 | ac_status=$? | ||
9384 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9385 | rm -f conftest.er1 | ||
9386 | cat conftest.err >&5 | ||
9387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9388 | (exit $ac_status); } && { | ||
9389 | test -z "$ac_c_werror_flag" || | ||
9390 | test ! -s conftest.err | ||
9391 | } && test -s conftest.$ac_objext; then | ||
9392 | ac_header_compiler=yes | ||
9393 | else | ||
9394 | echo "$as_me: failed program was:" >&5 | ||
9395 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9396 | |||
9397 | ac_header_compiler=no | ||
9398 | fi | ||
9399 | |||
9400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9401 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
9402 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
9403 | |||
9404 | # Is the header present? | ||
9405 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
9406 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
9407 | cat >conftest.$ac_ext <<_ACEOF | ||
9408 | /* confdefs.h. */ | ||
9409 | _ACEOF | ||
9410 | cat confdefs.h >>conftest.$ac_ext | ||
9411 | cat >>conftest.$ac_ext <<_ACEOF | ||
9412 | /* end confdefs.h. */ | ||
9413 | #include <$ac_header> | ||
9414 | _ACEOF | ||
9415 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
9416 | case "(($ac_try" in | ||
9417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9418 | *) ac_try_echo=$ac_try;; | ||
9419 | esac | ||
9420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9421 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
9422 | ac_status=$? | ||
9423 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9424 | rm -f conftest.er1 | ||
9425 | cat conftest.err >&5 | ||
9426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9427 | (exit $ac_status); } >/dev/null && { | ||
9428 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
9429 | test ! -s conftest.err | ||
9430 | }; then | ||
9431 | ac_header_preproc=yes | ||
9432 | else | ||
9433 | echo "$as_me: failed program was:" >&5 | ||
9434 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9435 | |||
9436 | ac_header_preproc=no | ||
9437 | fi | ||
9438 | |||
9439 | rm -f conftest.err conftest.$ac_ext | ||
9440 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
9441 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
9442 | |||
9443 | # So? What about this header? | ||
9444 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
9445 | yes:no: ) | ||
9446 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
9447 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
9448 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
9449 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
9450 | ac_header_preproc=yes | ||
9451 | ;; | ||
9452 | no:yes:* ) | ||
9453 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
9454 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
9455 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
9456 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
9457 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
9458 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
9459 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
9460 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
9461 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
9462 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
9463 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
9464 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
9465 | ( cat <<\_ASBOX | ||
9466 | ## ------------------------------------------- ## | ||
9467 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
9468 | ## ------------------------------------------- ## | ||
9469 | _ASBOX | ||
9470 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
9471 | ;; | ||
9472 | esac | ||
9473 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9474 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
9475 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9477 | else | ||
9478 | eval "$as_ac_Header=\$ac_header_preproc" | ||
9479 | fi | ||
9480 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
9481 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9482 | echo "${ECHO_T}$ac_res" >&6; } | ||
9483 | |||
9484 | fi | ||
9485 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
9486 | cat >>confdefs.h <<_ACEOF | ||
9487 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
9488 | _ACEOF | ||
9489 | |||
9490 | fi | ||
9491 | |||
9492 | done | ||
9493 | |||
9494 | ;; | ||
9495 | *-*-dragonfly*) | ||
9496 | SSHDLIBS="$SSHDLIBS -lcrypt" | ||
9497 | TEST_MALLOC_OPTIONS="AFGJPRX" | ||
9498 | ;; | ||
9499 | *-*-haiku*) | ||
9500 | LIBS="$LIBS -lbsd " | ||
9501 | |||
9502 | { echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5 | ||
9503 | echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; } | ||
9504 | if test "${ac_cv_lib_network_socket+set}" = set; then | ||
9505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9506 | else | ||
9507 | ac_check_lib_save_LIBS=$LIBS | ||
9508 | LIBS="-lnetwork $LIBS" | ||
9509 | cat >conftest.$ac_ext <<_ACEOF | ||
9510 | /* confdefs.h. */ | ||
9511 | _ACEOF | ||
9512 | cat confdefs.h >>conftest.$ac_ext | ||
9513 | cat >>conftest.$ac_ext <<_ACEOF | ||
9514 | /* end confdefs.h. */ | ||
9515 | |||
9516 | /* Override any GCC internal prototype to avoid an error. | ||
9517 | Use char because int might match the return type of a GCC | ||
9518 | builtin and then its argument prototype would still apply. */ | ||
9519 | #ifdef __cplusplus | ||
9520 | extern "C" | ||
9521 | #endif | ||
9522 | char socket (); | ||
9523 | int | ||
9524 | main () | ||
9525 | { | ||
9526 | return socket (); | ||
9527 | ; | ||
9528 | return 0; | ||
9529 | } | ||
9530 | _ACEOF | ||
9531 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9532 | if { (ac_try="$ac_link" | ||
9533 | case "(($ac_try" in | ||
9534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9535 | *) ac_try_echo=$ac_try;; | ||
9536 | esac | ||
9537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9538 | (eval "$ac_link") 2>conftest.er1 | ||
9539 | ac_status=$? | ||
9540 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9541 | rm -f conftest.er1 | ||
9542 | cat conftest.err >&5 | ||
9543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9544 | (exit $ac_status); } && { | ||
9545 | test -z "$ac_c_werror_flag" || | ||
9546 | test ! -s conftest.err | ||
9547 | } && test -s conftest$ac_exeext && | ||
9548 | $as_test_x conftest$ac_exeext; then | ||
9549 | ac_cv_lib_network_socket=yes | ||
9550 | else | ||
9551 | echo "$as_me: failed program was:" >&5 | ||
9552 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9553 | |||
9554 | ac_cv_lib_network_socket=no | ||
9555 | fi | ||
9556 | |||
9557 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9558 | conftest$ac_exeext conftest.$ac_ext | ||
9559 | LIBS=$ac_check_lib_save_LIBS | ||
9560 | fi | ||
9561 | { echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5 | ||
9562 | echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; } | ||
9563 | if test $ac_cv_lib_network_socket = yes; then | ||
9564 | cat >>confdefs.h <<_ACEOF | ||
9565 | #define HAVE_LIBNETWORK 1 | ||
9566 | _ACEOF | ||
9567 | |||
9568 | LIBS="-lnetwork $LIBS" | ||
9569 | |||
9570 | fi | ||
9571 | |||
9572 | cat >>confdefs.h <<\_ACEOF | ||
9573 | #define HAVE_U_INT64_T 1 | ||
9574 | _ACEOF | ||
9575 | |||
9576 | MANTYPE=man | ||
9577 | ;; | ||
9578 | *-*-hpux*) | ||
9579 | # first we define all of the options common to all HP-UX releases | ||
9580 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
9581 | IPADDR_IN_DISPLAY=yes | ||
9582 | cat >>confdefs.h <<\_ACEOF | ||
9583 | #define USE_PIPES 1 | ||
9584 | _ACEOF | ||
9585 | |||
9586 | |||
9587 | cat >>confdefs.h <<\_ACEOF | ||
9588 | #define LOGIN_NO_ENDOPT 1 | ||
9589 | _ACEOF | ||
9590 | |||
9591 | cat >>confdefs.h <<\_ACEOF | ||
9592 | #define LOGIN_NEEDS_UTMPX 1 | ||
9593 | _ACEOF | ||
9594 | |||
9595 | |||
9596 | cat >>confdefs.h <<\_ACEOF | ||
9597 | #define LOCKED_PASSWD_STRING "*" | ||
9598 | _ACEOF | ||
9599 | |||
9600 | cat >>confdefs.h <<\_ACEOF | ||
9601 | #define SPT_TYPE SPT_PSTAT | ||
9602 | _ACEOF | ||
9603 | |||
9604 | |||
9605 | cat >>confdefs.h <<\_ACEOF | ||
9606 | #define PLATFORM_SYS_DIR_UID 2 | ||
9607 | _ACEOF | ||
9608 | |||
9609 | maildir="/var/mail" | ||
9610 | LIBS="$LIBS -lsec" | ||
9611 | |||
9612 | { echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
9613 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; } | ||
9614 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
9615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9616 | else | ||
9617 | ac_check_lib_save_LIBS=$LIBS | ||
9618 | LIBS="-lxnet $LIBS" | ||
9619 | cat >conftest.$ac_ext <<_ACEOF | ||
9620 | /* confdefs.h. */ | ||
9621 | _ACEOF | ||
9622 | cat confdefs.h >>conftest.$ac_ext | ||
9623 | cat >>conftest.$ac_ext <<_ACEOF | ||
9624 | /* end confdefs.h. */ | ||
9625 | |||
9626 | /* Override any GCC internal prototype to avoid an error. | ||
9627 | Use char because int might match the return type of a GCC | ||
9628 | builtin and then its argument prototype would still apply. */ | ||
9629 | #ifdef __cplusplus | ||
9630 | extern "C" | ||
9631 | #endif | ||
9632 | char t_error (); | ||
9633 | int | ||
9634 | main () | ||
9635 | { | ||
9636 | return t_error (); | ||
9637 | ; | ||
9638 | return 0; | ||
9639 | } | ||
9640 | _ACEOF | ||
9641 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9642 | if { (ac_try="$ac_link" | ||
9643 | case "(($ac_try" in | ||
9644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9645 | *) ac_try_echo=$ac_try;; | ||
9646 | esac | ||
9647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9648 | (eval "$ac_link") 2>conftest.er1 | ||
9649 | ac_status=$? | ||
9650 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9651 | rm -f conftest.er1 | ||
9652 | cat conftest.err >&5 | ||
9653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9654 | (exit $ac_status); } && { | ||
9655 | test -z "$ac_c_werror_flag" || | ||
9656 | test ! -s conftest.err | ||
9657 | } && test -s conftest$ac_exeext && | ||
9658 | $as_test_x conftest$ac_exeext; then | ||
9659 | ac_cv_lib_xnet_t_error=yes | ||
9660 | else | ||
9661 | echo "$as_me: failed program was:" >&5 | ||
9662 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9663 | |||
9664 | ac_cv_lib_xnet_t_error=no | ||
9665 | fi | ||
9666 | |||
9667 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9668 | conftest$ac_exeext conftest.$ac_ext | ||
9669 | LIBS=$ac_check_lib_save_LIBS | ||
9670 | fi | ||
9671 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
9672 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; } | ||
9673 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
9674 | cat >>confdefs.h <<_ACEOF | ||
9675 | #define HAVE_LIBXNET 1 | ||
9676 | _ACEOF | ||
9677 | |||
9678 | LIBS="-lxnet $LIBS" | ||
9679 | |||
9680 | else | ||
9681 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
9682 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
9683 | { (exit 1); exit 1; }; } | ||
9684 | fi | ||
9685 | |||
9686 | |||
9687 | # next, we define all of the options specific to major releases | ||
9688 | case "$host" in | ||
9689 | *-*-hpux10*) | ||
9690 | if test -z "$GCC"; then | ||
9691 | CFLAGS="$CFLAGS -Ae" | ||
9692 | fi | ||
9693 | ;; | ||
9694 | *-*-hpux11*) | ||
9695 | |||
9696 | cat >>confdefs.h <<\_ACEOF | ||
9697 | #define PAM_SUN_CODEBASE 1 | ||
9698 | _ACEOF | ||
9699 | |||
9700 | |||
9701 | cat >>confdefs.h <<\_ACEOF | ||
9702 | #define DISABLE_UTMP 1 | ||
9703 | _ACEOF | ||
9704 | |||
9705 | |||
9706 | cat >>confdefs.h <<\_ACEOF | ||
9707 | #define USE_BTMP 1 | ||
9708 | _ACEOF | ||
9709 | |||
9710 | check_for_hpux_broken_getaddrinfo=1 | ||
9711 | check_for_conflicting_getspnam=1 | ||
9712 | ;; | ||
9713 | esac | ||
9714 | |||
9715 | # lastly, we define options specific to minor releases | ||
9716 | case "$host" in | ||
9717 | *-*-hpux10.26) | ||
9718 | |||
9719 | cat >>confdefs.h <<\_ACEOF | ||
9720 | #define HAVE_SECUREWARE 1 | ||
9721 | _ACEOF | ||
9722 | |||
9723 | disable_ptmx_check=yes | ||
9724 | LIBS="$LIBS -lsecpw" | ||
9725 | ;; | ||
9726 | esac | ||
9727 | ;; | ||
9728 | *-*-irix5*) | ||
9729 | PATH="$PATH:/usr/etc" | ||
9730 | |||
9731 | cat >>confdefs.h <<\_ACEOF | ||
9732 | #define BROKEN_INET_NTOA 1 | ||
9733 | _ACEOF | ||
9734 | |||
9735 | cat >>confdefs.h <<\_ACEOF | ||
9736 | #define SETEUID_BREAKS_SETUID 1 | ||
9737 | _ACEOF | ||
9738 | |||
9739 | cat >>confdefs.h <<\_ACEOF | ||
9740 | #define BROKEN_SETREUID 1 | ||
9741 | _ACEOF | ||
9742 | |||
9743 | cat >>confdefs.h <<\_ACEOF | ||
9744 | #define BROKEN_SETREGID 1 | ||
9745 | _ACEOF | ||
9746 | |||
9747 | |||
9748 | cat >>confdefs.h <<\_ACEOF | ||
9749 | #define WITH_ABBREV_NO_TTY 1 | ||
9750 | _ACEOF | ||
9751 | |||
9752 | cat >>confdefs.h <<\_ACEOF | ||
9753 | #define LOCKED_PASSWD_STRING "*LK*" | ||
9754 | _ACEOF | ||
9755 | |||
9756 | ;; | ||
9757 | *-*-irix6*) | ||
9758 | PATH="$PATH:/usr/etc" | ||
9759 | |||
9760 | cat >>confdefs.h <<\_ACEOF | ||
9761 | #define WITH_IRIX_ARRAY 1 | ||
9762 | _ACEOF | ||
9763 | |||
9764 | |||
9765 | cat >>confdefs.h <<\_ACEOF | ||
9766 | #define WITH_IRIX_PROJECT 1 | ||
9767 | _ACEOF | ||
9768 | |||
9769 | |||
9770 | cat >>confdefs.h <<\_ACEOF | ||
9771 | #define WITH_IRIX_AUDIT 1 | ||
9772 | _ACEOF | ||
9773 | |||
9774 | { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | ||
9775 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; } | ||
9776 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
9777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9778 | else | ||
9779 | cat >conftest.$ac_ext <<_ACEOF | ||
9780 | /* confdefs.h. */ | ||
9781 | _ACEOF | ||
9782 | cat confdefs.h >>conftest.$ac_ext | ||
9783 | cat >>conftest.$ac_ext <<_ACEOF | ||
9784 | /* end confdefs.h. */ | ||
9785 | /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob. | ||
9786 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9787 | #define jlimit_startjob innocuous_jlimit_startjob | ||
9788 | |||
9789 | /* System header to define __stub macros and hopefully few prototypes, | ||
9790 | which can conflict with char jlimit_startjob (); below. | ||
9791 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9792 | <limits.h> exists even on freestanding compilers. */ | ||
9793 | |||
9794 | #ifdef __STDC__ | ||
9795 | # include <limits.h> | ||
9796 | #else | ||
9797 | # include <assert.h> | ||
9798 | #endif | ||
9799 | |||
9800 | #undef jlimit_startjob | ||
9801 | |||
9802 | /* Override any GCC internal prototype to avoid an error. | ||
9803 | Use char because int might match the return type of a GCC | ||
9804 | builtin and then its argument prototype would still apply. */ | ||
9805 | #ifdef __cplusplus | ||
9806 | extern "C" | ||
9807 | #endif | ||
9808 | char jlimit_startjob (); | ||
9809 | /* The GNU C library defines this for functions which it implements | ||
9810 | to always fail with ENOSYS. Some functions are actually named | ||
9811 | something starting with __ and the normal name is an alias. */ | ||
9812 | #if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob | ||
9813 | choke me | ||
9814 | #endif | ||
9815 | |||
9816 | int | ||
9817 | main () | ||
9818 | { | ||
9819 | return jlimit_startjob (); | ||
9820 | ; | ||
9821 | return 0; | ||
9822 | } | ||
9823 | _ACEOF | ||
9824 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9825 | if { (ac_try="$ac_link" | ||
9826 | case "(($ac_try" in | ||
9827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9828 | *) ac_try_echo=$ac_try;; | ||
9829 | esac | ||
9830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9831 | (eval "$ac_link") 2>conftest.er1 | ||
9832 | ac_status=$? | ||
9833 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9834 | rm -f conftest.er1 | ||
9835 | cat conftest.err >&5 | ||
9836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9837 | (exit $ac_status); } && { | ||
9838 | test -z "$ac_c_werror_flag" || | ||
9839 | test ! -s conftest.err | ||
9840 | } && test -s conftest$ac_exeext && | ||
9841 | $as_test_x conftest$ac_exeext; then | ||
9842 | ac_cv_func_jlimit_startjob=yes | ||
9843 | else | ||
9844 | echo "$as_me: failed program was:" >&5 | ||
9845 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9846 | |||
9847 | ac_cv_func_jlimit_startjob=no | ||
9848 | fi | ||
9849 | |||
9850 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9851 | conftest$ac_exeext conftest.$ac_ext | ||
9852 | fi | ||
9853 | { echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | ||
9854 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; } | ||
9855 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
9856 | |||
9857 | cat >>confdefs.h <<\_ACEOF | ||
9858 | #define WITH_IRIX_JOBS 1 | ||
9859 | _ACEOF | ||
9860 | |||
9861 | fi | ||
9862 | |||
9863 | cat >>confdefs.h <<\_ACEOF | ||
9864 | #define BROKEN_INET_NTOA 1 | ||
9865 | _ACEOF | ||
9866 | |||
9867 | cat >>confdefs.h <<\_ACEOF | ||
9868 | #define SETEUID_BREAKS_SETUID 1 | ||
9869 | _ACEOF | ||
9870 | |||
9871 | cat >>confdefs.h <<\_ACEOF | ||
9872 | #define BROKEN_SETREUID 1 | ||
9873 | _ACEOF | ||
9874 | |||
9875 | cat >>confdefs.h <<\_ACEOF | ||
9876 | #define BROKEN_SETREGID 1 | ||
9877 | _ACEOF | ||
9878 | |||
9879 | |||
9880 | cat >>confdefs.h <<\_ACEOF | ||
9881 | #define BROKEN_UPDWTMPX 1 | ||
9882 | _ACEOF | ||
9883 | |||
9884 | cat >>confdefs.h <<\_ACEOF | ||
9885 | #define WITH_ABBREV_NO_TTY 1 | ||
9886 | _ACEOF | ||
9887 | |||
9888 | cat >>confdefs.h <<\_ACEOF | ||
9889 | #define LOCKED_PASSWD_STRING "*LK*" | ||
9890 | _ACEOF | ||
9891 | |||
9892 | ;; | ||
9893 | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | ||
9894 | check_for_libcrypt_later=1 | ||
9895 | cat >>confdefs.h <<\_ACEOF | ||
9896 | #define PAM_TTY_KLUDGE 1 | ||
9897 | _ACEOF | ||
9898 | |||
9899 | cat >>confdefs.h <<\_ACEOF | ||
9900 | #define LOCKED_PASSWD_PREFIX "!" | ||
9901 | _ACEOF | ||
9902 | |||
9903 | cat >>confdefs.h <<\_ACEOF | ||
9904 | #define SPT_TYPE SPT_REUSEARGV | ||
9905 | _ACEOF | ||
9906 | |||
9907 | |||
9908 | cat >>confdefs.h <<\_ACEOF | ||
9909 | #define _PATH_BTMP "/var/log/btmp" | ||
9910 | _ACEOF | ||
9911 | |||
9912 | |||
9913 | cat >>confdefs.h <<\_ACEOF | ||
9914 | #define USE_BTMP 1 | ||
9915 | _ACEOF | ||
9916 | |||
9917 | ;; | ||
9918 | *-*-linux*) | ||
9919 | no_dev_ptmx=1 | ||
9920 | use_pie=auto | ||
9921 | check_for_libcrypt_later=1 | ||
9922 | check_for_openpty_ctty_bug=1 | ||
9923 | |||
9924 | cat >>confdefs.h <<\_ACEOF | ||
9925 | #define PAM_TTY_KLUDGE 1 | ||
9926 | _ACEOF | ||
9927 | |||
9928 | |||
9929 | cat >>confdefs.h <<\_ACEOF | ||
9930 | #define LOCKED_PASSWD_PREFIX "!" | ||
9931 | _ACEOF | ||
9932 | |||
9933 | cat >>confdefs.h <<\_ACEOF | ||
9934 | #define SPT_TYPE SPT_REUSEARGV | ||
9935 | _ACEOF | ||
9936 | |||
9937 | |||
9938 | cat >>confdefs.h <<\_ACEOF | ||
9939 | #define LINK_OPNOTSUPP_ERRNO EPERM | ||
9940 | _ACEOF | ||
9941 | |||
9942 | |||
9943 | cat >>confdefs.h <<\_ACEOF | ||
9944 | #define _PATH_BTMP "/var/log/btmp" | ||
9945 | _ACEOF | ||
9946 | |||
9947 | cat >>confdefs.h <<\_ACEOF | ||
9948 | #define USE_BTMP 1 | ||
9949 | _ACEOF | ||
9950 | |||
9951 | |||
9952 | cat >>confdefs.h <<\_ACEOF | ||
9953 | #define LINUX_OOM_ADJUST 1 | ||
9954 | _ACEOF | ||
9955 | |||
9956 | inet6_default_4in6=yes | ||
9957 | case `uname -r` in | ||
9958 | 1.*|2.0.*) | ||
9959 | |||
9960 | cat >>confdefs.h <<\_ACEOF | ||
9961 | #define BROKEN_CMSG_TYPE 1 | ||
9962 | _ACEOF | ||
9963 | |||
9964 | ;; | ||
9965 | esac | ||
9966 | # tun(4) forwarding compat code | ||
9967 | |||
9968 | for ac_header in linux/if_tun.h | ||
9969 | do | ||
9970 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
9971 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9972 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9973 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
9974 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9976 | fi | ||
9977 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
9978 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9979 | echo "${ECHO_T}$ac_res" >&6; } | ||
9980 | else | ||
9981 | # Is the header compilable? | ||
9982 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
9983 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
9984 | cat >conftest.$ac_ext <<_ACEOF | ||
9985 | /* confdefs.h. */ | ||
9986 | _ACEOF | ||
9987 | cat confdefs.h >>conftest.$ac_ext | ||
9988 | cat >>conftest.$ac_ext <<_ACEOF | ||
9989 | /* end confdefs.h. */ | ||
9990 | $ac_includes_default | ||
9991 | #include <$ac_header> | ||
9992 | _ACEOF | ||
9993 | rm -f conftest.$ac_objext | ||
9994 | if { (ac_try="$ac_compile" | ||
9995 | case "(($ac_try" in | ||
9996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9997 | *) ac_try_echo=$ac_try;; | ||
9998 | esac | ||
9999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10000 | (eval "$ac_compile") 2>conftest.er1 | ||
10001 | ac_status=$? | ||
10002 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10003 | rm -f conftest.er1 | ||
10004 | cat conftest.err >&5 | ||
10005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10006 | (exit $ac_status); } && { | ||
10007 | test -z "$ac_c_werror_flag" || | ||
10008 | test ! -s conftest.err | ||
10009 | } && test -s conftest.$ac_objext; then | ||
10010 | ac_header_compiler=yes | ||
10011 | else | ||
10012 | echo "$as_me: failed program was:" >&5 | ||
10013 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10014 | |||
10015 | ac_header_compiler=no | ||
10016 | fi | ||
10017 | |||
10018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10019 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10020 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10021 | |||
10022 | # Is the header present? | ||
10023 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
10024 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
10025 | cat >conftest.$ac_ext <<_ACEOF | ||
10026 | /* confdefs.h. */ | ||
10027 | _ACEOF | ||
10028 | cat confdefs.h >>conftest.$ac_ext | ||
10029 | cat >>conftest.$ac_ext <<_ACEOF | ||
10030 | /* end confdefs.h. */ | ||
10031 | #include <$ac_header> | ||
10032 | _ACEOF | ||
10033 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10034 | case "(($ac_try" in | ||
10035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10036 | *) ac_try_echo=$ac_try;; | ||
10037 | esac | ||
10038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10039 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10040 | ac_status=$? | ||
10041 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10042 | rm -f conftest.er1 | ||
10043 | cat conftest.err >&5 | ||
10044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10045 | (exit $ac_status); } >/dev/null && { | ||
10046 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10047 | test ! -s conftest.err | ||
10048 | }; then | ||
10049 | ac_header_preproc=yes | ||
10050 | else | ||
10051 | echo "$as_me: failed program was:" >&5 | ||
10052 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10053 | |||
10054 | ac_header_preproc=no | ||
10055 | fi | ||
10056 | |||
10057 | rm -f conftest.err conftest.$ac_ext | ||
10058 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10059 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10060 | |||
10061 | # So? What about this header? | ||
10062 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10063 | yes:no: ) | ||
10064 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10065 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10066 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
10067 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
10068 | ac_header_preproc=yes | ||
10069 | ;; | ||
10070 | no:yes:* ) | ||
10071 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
10072 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
10073 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
10074 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
10075 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
10076 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
10077 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
10078 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10079 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
10080 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
10081 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
10082 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
10083 | ( cat <<\_ASBOX | ||
10084 | ## ------------------------------------------- ## | ||
10085 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10086 | ## ------------------------------------------- ## | ||
10087 | _ASBOX | ||
10088 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10089 | ;; | ||
10090 | esac | ||
10091 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10092 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10093 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10095 | else | ||
10096 | eval "$as_ac_Header=\$ac_header_preproc" | ||
10097 | fi | ||
10098 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10099 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10100 | echo "${ECHO_T}$ac_res" >&6; } | ||
10101 | |||
10102 | fi | ||
10103 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10104 | cat >>confdefs.h <<_ACEOF | ||
10105 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10106 | _ACEOF | ||
10107 | |||
10108 | fi | ||
10109 | |||
10110 | done | ||
10111 | |||
10112 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then | ||
10113 | |||
10114 | cat >>confdefs.h <<\_ACEOF | ||
10115 | #define SSH_TUN_LINUX 1 | ||
10116 | _ACEOF | ||
10117 | |||
10118 | |||
10119 | cat >>confdefs.h <<\_ACEOF | ||
10120 | #define SSH_TUN_COMPAT_AF 1 | ||
10121 | _ACEOF | ||
10122 | |||
10123 | |||
10124 | cat >>confdefs.h <<\_ACEOF | ||
10125 | #define SSH_TUN_PREPEND_AF 1 | ||
10126 | _ACEOF | ||
10127 | |||
10128 | fi | ||
10129 | |||
10130 | |||
10131 | |||
10132 | for ac_header in linux/seccomp.h linux/filter.h linux/audit.h | ||
10133 | do | ||
10134 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
10135 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10136 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10137 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10139 | else | ||
10140 | cat >conftest.$ac_ext <<_ACEOF | ||
10141 | /* confdefs.h. */ | ||
10142 | _ACEOF | ||
10143 | cat confdefs.h >>conftest.$ac_ext | ||
10144 | cat >>conftest.$ac_ext <<_ACEOF | ||
10145 | /* end confdefs.h. */ | ||
10146 | #include <linux/types.h> | ||
10147 | |||
10148 | #include <$ac_header> | ||
10149 | _ACEOF | ||
10150 | rm -f conftest.$ac_objext | ||
10151 | if { (ac_try="$ac_compile" | ||
10152 | case "(($ac_try" in | ||
10153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10154 | *) ac_try_echo=$ac_try;; | ||
10155 | esac | ||
10156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10157 | (eval "$ac_compile") 2>conftest.er1 | ||
10158 | ac_status=$? | ||
10159 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10160 | rm -f conftest.er1 | ||
10161 | cat conftest.err >&5 | ||
10162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10163 | (exit $ac_status); } && { | ||
10164 | test -z "$ac_c_werror_flag" || | ||
10165 | test ! -s conftest.err | ||
10166 | } && test -s conftest.$ac_objext; then | ||
10167 | eval "$as_ac_Header=yes" | ||
10168 | else | ||
10169 | echo "$as_me: failed program was:" >&5 | ||
10170 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10171 | |||
10172 | eval "$as_ac_Header=no" | ||
10173 | fi | ||
10174 | |||
10175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10176 | fi | ||
10177 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10178 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10179 | echo "${ECHO_T}$ac_res" >&6; } | ||
10180 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10181 | cat >>confdefs.h <<_ACEOF | ||
10182 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10183 | _ACEOF | ||
10184 | |||
10185 | fi | ||
10186 | |||
10187 | done | ||
10188 | |||
10189 | |||
10190 | for ac_func in prctl | ||
10191 | do | ||
10192 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10193 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10194 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
10195 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10197 | else | ||
10198 | cat >conftest.$ac_ext <<_ACEOF | ||
10199 | /* confdefs.h. */ | ||
10200 | _ACEOF | ||
10201 | cat confdefs.h >>conftest.$ac_ext | ||
10202 | cat >>conftest.$ac_ext <<_ACEOF | ||
10203 | /* end confdefs.h. */ | ||
10204 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10205 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10206 | #define $ac_func innocuous_$ac_func | ||
10207 | |||
10208 | /* System header to define __stub macros and hopefully few prototypes, | ||
10209 | which can conflict with char $ac_func (); below. | ||
10210 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10211 | <limits.h> exists even on freestanding compilers. */ | ||
10212 | |||
10213 | #ifdef __STDC__ | ||
10214 | # include <limits.h> | ||
10215 | #else | ||
10216 | # include <assert.h> | ||
10217 | #endif | ||
10218 | |||
10219 | #undef $ac_func | ||
10220 | |||
10221 | /* Override any GCC internal prototype to avoid an error. | ||
10222 | Use char because int might match the return type of a GCC | ||
10223 | builtin and then its argument prototype would still apply. */ | ||
10224 | #ifdef __cplusplus | ||
10225 | extern "C" | ||
10226 | #endif | ||
10227 | char $ac_func (); | ||
10228 | /* The GNU C library defines this for functions which it implements | ||
10229 | to always fail with ENOSYS. Some functions are actually named | ||
10230 | something starting with __ and the normal name is an alias. */ | ||
10231 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
10232 | choke me | ||
10233 | #endif | ||
10234 | |||
10235 | int | ||
10236 | main () | ||
10237 | { | ||
10238 | return $ac_func (); | ||
10239 | ; | ||
10240 | return 0; | ||
10241 | } | ||
10242 | _ACEOF | ||
10243 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10244 | if { (ac_try="$ac_link" | ||
10245 | case "(($ac_try" in | ||
10246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10247 | *) ac_try_echo=$ac_try;; | ||
10248 | esac | ||
10249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10250 | (eval "$ac_link") 2>conftest.er1 | ||
10251 | ac_status=$? | ||
10252 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10253 | rm -f conftest.er1 | ||
10254 | cat conftest.err >&5 | ||
10255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10256 | (exit $ac_status); } && { | ||
10257 | test -z "$ac_c_werror_flag" || | ||
10258 | test ! -s conftest.err | ||
10259 | } && test -s conftest$ac_exeext && | ||
10260 | $as_test_x conftest$ac_exeext; then | ||
10261 | eval "$as_ac_var=yes" | ||
10262 | else | ||
10263 | echo "$as_me: failed program was:" >&5 | ||
10264 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10265 | |||
10266 | eval "$as_ac_var=no" | ||
10267 | fi | ||
10268 | |||
10269 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10270 | conftest$ac_exeext conftest.$ac_ext | ||
10271 | fi | ||
10272 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
10273 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10274 | echo "${ECHO_T}$ac_res" >&6; } | ||
10275 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10276 | cat >>confdefs.h <<_ACEOF | ||
10277 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10278 | _ACEOF | ||
10279 | |||
10280 | fi | ||
10281 | done | ||
10282 | |||
10283 | { echo "$as_me:$LINENO: checking for seccomp architecture" >&5 | ||
10284 | echo $ECHO_N "checking for seccomp architecture... $ECHO_C" >&6; } | ||
10285 | seccomp_audit_arch= | ||
10286 | case "$host" in | ||
10287 | x86_64-*) | ||
10288 | seccomp_audit_arch=AUDIT_ARCH_X86_64 | ||
10289 | ;; | ||
10290 | i*86-*) | ||
10291 | seccomp_audit_arch=AUDIT_ARCH_I386 | ||
10292 | ;; | ||
10293 | arm*-*) | ||
10294 | seccomp_audit_arch=AUDIT_ARCH_ARM | ||
10295 | ;; | ||
10296 | aarch64*-*) | ||
10297 | seccomp_audit_arch=AUDIT_ARCH_AARCH64 | ||
10298 | ;; | ||
10299 | esac | ||
10300 | if test "x$seccomp_audit_arch" != "x" ; then | ||
10301 | { echo "$as_me:$LINENO: result: \"$seccomp_audit_arch\"" >&5 | ||
10302 | echo "${ECHO_T}\"$seccomp_audit_arch\"" >&6; } | ||
10303 | |||
10304 | cat >>confdefs.h <<_ACEOF | ||
10305 | #define SECCOMP_AUDIT_ARCH $seccomp_audit_arch | ||
10306 | _ACEOF | ||
10307 | |||
10308 | else | ||
10309 | { echo "$as_me:$LINENO: result: architecture not supported" >&5 | ||
10310 | echo "${ECHO_T}architecture not supported" >&6; } | ||
10311 | fi | ||
10312 | ;; | ||
10313 | mips-sony-bsd|mips-sony-newsos4) | ||
10314 | |||
10315 | cat >>confdefs.h <<\_ACEOF | ||
10316 | #define NEED_SETPGRP 1 | ||
10317 | _ACEOF | ||
10318 | |||
10319 | SONY=1 | ||
10320 | ;; | ||
10321 | *-*-netbsd*) | ||
10322 | check_for_libcrypt_before=1 | ||
10323 | if test "x$withval" != "xno" ; then | ||
10324 | need_dash_r=1 | ||
10325 | fi | ||
10326 | |||
10327 | cat >>confdefs.h <<\_ACEOF | ||
10328 | #define SSH_TUN_FREEBSD 1 | ||
10329 | _ACEOF | ||
10330 | |||
10331 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
10332 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
10333 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
10334 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
10335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10336 | fi | ||
10337 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
10338 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
10339 | else | ||
10340 | # Is the header compilable? | ||
10341 | { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
10342 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } | ||
10343 | cat >conftest.$ac_ext <<_ACEOF | ||
10344 | /* confdefs.h. */ | ||
10345 | _ACEOF | ||
10346 | cat confdefs.h >>conftest.$ac_ext | ||
10347 | cat >>conftest.$ac_ext <<_ACEOF | ||
10348 | /* end confdefs.h. */ | ||
10349 | $ac_includes_default | ||
10350 | #include <net/if_tap.h> | ||
10351 | _ACEOF | ||
10352 | rm -f conftest.$ac_objext | ||
10353 | if { (ac_try="$ac_compile" | ||
10354 | case "(($ac_try" in | ||
10355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10356 | *) ac_try_echo=$ac_try;; | ||
10357 | esac | ||
10358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10359 | (eval "$ac_compile") 2>conftest.er1 | ||
10360 | ac_status=$? | ||
10361 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10362 | rm -f conftest.er1 | ||
10363 | cat conftest.err >&5 | ||
10364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10365 | (exit $ac_status); } && { | ||
10366 | test -z "$ac_c_werror_flag" || | ||
10367 | test ! -s conftest.err | ||
10368 | } && test -s conftest.$ac_objext; then | ||
10369 | ac_header_compiler=yes | ||
10370 | else | ||
10371 | echo "$as_me: failed program was:" >&5 | ||
10372 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10373 | |||
10374 | ac_header_compiler=no | ||
10375 | fi | ||
10376 | |||
10377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10378 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10379 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10380 | |||
10381 | # Is the header present? | ||
10382 | { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
10383 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } | ||
10384 | cat >conftest.$ac_ext <<_ACEOF | ||
10385 | /* confdefs.h. */ | ||
10386 | _ACEOF | ||
10387 | cat confdefs.h >>conftest.$ac_ext | ||
10388 | cat >>conftest.$ac_ext <<_ACEOF | ||
10389 | /* end confdefs.h. */ | ||
10390 | #include <net/if_tap.h> | ||
10391 | _ACEOF | ||
10392 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10393 | case "(($ac_try" in | ||
10394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10395 | *) ac_try_echo=$ac_try;; | ||
10396 | esac | ||
10397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10398 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10399 | ac_status=$? | ||
10400 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10401 | rm -f conftest.er1 | ||
10402 | cat conftest.err >&5 | ||
10403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10404 | (exit $ac_status); } >/dev/null && { | ||
10405 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10406 | test ! -s conftest.err | ||
10407 | }; then | ||
10408 | ac_header_preproc=yes | ||
10409 | else | ||
10410 | echo "$as_me: failed program was:" >&5 | ||
10411 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10412 | |||
10413 | ac_header_preproc=no | ||
10414 | fi | ||
10415 | |||
10416 | rm -f conftest.err conftest.$ac_ext | ||
10417 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10418 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10419 | |||
10420 | # So? What about this header? | ||
10421 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10422 | yes:no: ) | ||
10423 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10424 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10425 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
10426 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
10427 | ac_header_preproc=yes | ||
10428 | ;; | ||
10429 | no:yes:* ) | ||
10430 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
10431 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
10432 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
10433 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
10434 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
10435 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
10436 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
10437 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10438 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
10439 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
10440 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
10441 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
10442 | ( cat <<\_ASBOX | ||
10443 | ## ------------------------------------------- ## | ||
10444 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10445 | ## ------------------------------------------- ## | ||
10446 | _ASBOX | ||
10447 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10448 | ;; | ||
10449 | esac | ||
10450 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
10451 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
10452 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
10453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10454 | else | ||
10455 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
10456 | fi | ||
10457 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
10458 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
10459 | |||
10460 | fi | ||
10461 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
10462 | : | ||
10463 | else | ||
10464 | |||
10465 | cat >>confdefs.h <<\_ACEOF | ||
10466 | #define SSH_TUN_NO_L2 1 | ||
10467 | _ACEOF | ||
10468 | |||
10469 | fi | ||
10470 | |||
10471 | |||
10472 | |||
10473 | cat >>confdefs.h <<\_ACEOF | ||
10474 | #define SSH_TUN_PREPEND_AF 1 | ||
10475 | _ACEOF | ||
10476 | |||
10477 | TEST_MALLOC_OPTIONS="AJRX" | ||
10478 | |||
10479 | cat >>confdefs.h <<\_ACEOF | ||
10480 | #define BROKEN_STRNVIS 1 | ||
10481 | _ACEOF | ||
10482 | |||
10483 | |||
10484 | cat >>confdefs.h <<\_ACEOF | ||
10485 | #define BROKEN_READ_COMPARISON 1 | ||
10486 | _ACEOF | ||
10487 | |||
10488 | ;; | ||
10489 | *-*-freebsd*) | ||
10490 | check_for_libcrypt_later=1 | ||
10491 | |||
10492 | cat >>confdefs.h <<\_ACEOF | ||
10493 | #define LOCKED_PASSWD_PREFIX "*LOCKED*" | ||
10494 | _ACEOF | ||
10495 | |||
10496 | |||
10497 | cat >>confdefs.h <<\_ACEOF | ||
10498 | #define SSH_TUN_FREEBSD 1 | ||
10499 | _ACEOF | ||
10500 | |||
10501 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
10502 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
10503 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
10504 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
10505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10506 | fi | ||
10507 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
10508 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
10509 | else | ||
10510 | # Is the header compilable? | ||
10511 | { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
10512 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } | ||
10513 | cat >conftest.$ac_ext <<_ACEOF | ||
10514 | /* confdefs.h. */ | ||
10515 | _ACEOF | ||
10516 | cat confdefs.h >>conftest.$ac_ext | ||
10517 | cat >>conftest.$ac_ext <<_ACEOF | ||
10518 | /* end confdefs.h. */ | ||
10519 | $ac_includes_default | ||
10520 | #include <net/if_tap.h> | ||
10521 | _ACEOF | ||
10522 | rm -f conftest.$ac_objext | ||
10523 | if { (ac_try="$ac_compile" | ||
10524 | case "(($ac_try" in | ||
10525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10526 | *) ac_try_echo=$ac_try;; | ||
10527 | esac | ||
10528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10529 | (eval "$ac_compile") 2>conftest.er1 | ||
10530 | ac_status=$? | ||
10531 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10532 | rm -f conftest.er1 | ||
10533 | cat conftest.err >&5 | ||
10534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10535 | (exit $ac_status); } && { | ||
10536 | test -z "$ac_c_werror_flag" || | ||
10537 | test ! -s conftest.err | ||
10538 | } && test -s conftest.$ac_objext; then | ||
10539 | ac_header_compiler=yes | ||
10540 | else | ||
10541 | echo "$as_me: failed program was:" >&5 | ||
10542 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10543 | |||
10544 | ac_header_compiler=no | ||
10545 | fi | ||
10546 | |||
10547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10548 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10549 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10550 | |||
10551 | # Is the header present? | ||
10552 | { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
10553 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } | ||
10554 | cat >conftest.$ac_ext <<_ACEOF | ||
10555 | /* confdefs.h. */ | ||
10556 | _ACEOF | ||
10557 | cat confdefs.h >>conftest.$ac_ext | ||
10558 | cat >>conftest.$ac_ext <<_ACEOF | ||
10559 | /* end confdefs.h. */ | ||
10560 | #include <net/if_tap.h> | ||
10561 | _ACEOF | ||
10562 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10563 | case "(($ac_try" in | ||
10564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10565 | *) ac_try_echo=$ac_try;; | ||
10566 | esac | ||
10567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10568 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10569 | ac_status=$? | ||
10570 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10571 | rm -f conftest.er1 | ||
10572 | cat conftest.err >&5 | ||
10573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10574 | (exit $ac_status); } >/dev/null && { | ||
10575 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10576 | test ! -s conftest.err | ||
10577 | }; then | ||
10578 | ac_header_preproc=yes | ||
10579 | else | ||
10580 | echo "$as_me: failed program was:" >&5 | ||
10581 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10582 | |||
10583 | ac_header_preproc=no | ||
10584 | fi | ||
10585 | |||
10586 | rm -f conftest.err conftest.$ac_ext | ||
10587 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10588 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10589 | |||
10590 | # So? What about this header? | ||
10591 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10592 | yes:no: ) | ||
10593 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10594 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10595 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
10596 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
10597 | ac_header_preproc=yes | ||
10598 | ;; | ||
10599 | no:yes:* ) | ||
10600 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
10601 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
10602 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
10603 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
10604 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
10605 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
10606 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
10607 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10608 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
10609 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
10610 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
10611 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
10612 | ( cat <<\_ASBOX | ||
10613 | ## ------------------------------------------- ## | ||
10614 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10615 | ## ------------------------------------------- ## | ||
10616 | _ASBOX | ||
10617 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10618 | ;; | ||
10619 | esac | ||
10620 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
10621 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
10622 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
10623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10624 | else | ||
10625 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
10626 | fi | ||
10627 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
10628 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
10629 | |||
10630 | fi | ||
10631 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
10632 | : | ||
10633 | else | ||
10634 | |||
10635 | cat >>confdefs.h <<\_ACEOF | ||
10636 | #define SSH_TUN_NO_L2 1 | ||
10637 | _ACEOF | ||
10638 | |||
10639 | fi | ||
10640 | |||
10641 | |||
10642 | |||
10643 | cat >>confdefs.h <<\_ACEOF | ||
10644 | #define BROKEN_GLOB 1 | ||
10645 | _ACEOF | ||
10646 | |||
10647 | |||
10648 | cat >>confdefs.h <<\_ACEOF | ||
10649 | #define BROKEN_STRNVIS 1 | ||
10650 | _ACEOF | ||
10651 | |||
10652 | TEST_MALLOC_OPTIONS="AJRX" | ||
10653 | # Preauth crypto occasionally uses file descriptors for crypto offload | ||
10654 | # and will crash if they cannot be opened. | ||
10655 | |||
10656 | cat >>confdefs.h <<\_ACEOF | ||
10657 | #define SANDBOX_SKIP_RLIMIT_NOFILE 1 | ||
10658 | _ACEOF | ||
10659 | |||
10660 | ;; | ||
10661 | *-*-bsdi*) | ||
10662 | cat >>confdefs.h <<\_ACEOF | ||
10663 | #define SETEUID_BREAKS_SETUID 1 | ||
10664 | _ACEOF | ||
10665 | |||
10666 | cat >>confdefs.h <<\_ACEOF | ||
10667 | #define BROKEN_SETREUID 1 | ||
10668 | _ACEOF | ||
10669 | |||
10670 | cat >>confdefs.h <<\_ACEOF | ||
10671 | #define BROKEN_SETREGID 1 | ||
10672 | _ACEOF | ||
10673 | |||
10674 | ;; | ||
10675 | *-next-*) | ||
10676 | conf_lastlog_location="/usr/adm/lastlog" | ||
10677 | conf_utmp_location=/etc/utmp | ||
10678 | conf_wtmp_location=/usr/adm/wtmp | ||
10679 | maildir=/usr/spool/mail | ||
10680 | |||
10681 | cat >>confdefs.h <<\_ACEOF | ||
10682 | #define HAVE_NEXT 1 | ||
10683 | _ACEOF | ||
10684 | |||
10685 | cat >>confdefs.h <<\_ACEOF | ||
10686 | #define BROKEN_REALPATH 1 | ||
10687 | _ACEOF | ||
10688 | |||
10689 | cat >>confdefs.h <<\_ACEOF | ||
10690 | #define USE_PIPES 1 | ||
10691 | _ACEOF | ||
10692 | |||
10693 | |||
10694 | cat >>confdefs.h <<\_ACEOF | ||
10695 | #define BROKEN_SAVED_UIDS 1 | ||
10696 | _ACEOF | ||
10697 | |||
10698 | ;; | ||
10699 | *-*-openbsd*) | ||
10700 | use_pie=auto | ||
10701 | |||
10702 | cat >>confdefs.h <<\_ACEOF | ||
10703 | #define HAVE_ATTRIBUTE__SENTINEL__ 1 | ||
10704 | _ACEOF | ||
10705 | |||
10706 | |||
10707 | cat >>confdefs.h <<\_ACEOF | ||
10708 | #define HAVE_ATTRIBUTE__BOUNDED__ 1 | ||
10709 | _ACEOF | ||
10710 | |||
10711 | |||
10712 | cat >>confdefs.h <<\_ACEOF | ||
10713 | #define SSH_TUN_OPENBSD 1 | ||
10714 | _ACEOF | ||
10715 | |||
10716 | |||
10717 | cat >>confdefs.h <<\_ACEOF | ||
10718 | #define SYSLOG_R_SAFE_IN_SIGHAND 1 | ||
10719 | _ACEOF | ||
10720 | |||
10721 | TEST_MALLOC_OPTIONS="AFGJPRX" | ||
10722 | ;; | ||
10723 | *-*-solaris*) | ||
10724 | if test "x$withval" != "xno" ; then | ||
10725 | need_dash_r=1 | ||
10726 | fi | ||
10727 | cat >>confdefs.h <<\_ACEOF | ||
10728 | #define PAM_SUN_CODEBASE 1 | ||
10729 | _ACEOF | ||
10730 | |||
10731 | cat >>confdefs.h <<\_ACEOF | ||
10732 | #define LOGIN_NEEDS_UTMPX 1 | ||
10733 | _ACEOF | ||
10734 | |||
10735 | |||
10736 | cat >>confdefs.h <<\_ACEOF | ||
10737 | #define LOGIN_NEEDS_TERM 1 | ||
10738 | _ACEOF | ||
10739 | |||
10740 | cat >>confdefs.h <<\_ACEOF | ||
10741 | #define PAM_TTY_KLUDGE 1 | ||
10742 | _ACEOF | ||
10743 | |||
10744 | |||
10745 | cat >>confdefs.h <<\_ACEOF | ||
10746 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
10747 | _ACEOF | ||
10748 | |||
10749 | cat >>confdefs.h <<\_ACEOF | ||
10750 | #define LOCKED_PASSWD_STRING "*LK*" | ||
10751 | _ACEOF | ||
10752 | |||
10753 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
10754 | |||
10755 | cat >>confdefs.h <<\_ACEOF | ||
10756 | #define SSHD_ACQUIRES_CTTY 1 | ||
10757 | _ACEOF | ||
10758 | |||
10759 | |||
10760 | cat >>confdefs.h <<\_ACEOF | ||
10761 | #define PASSWD_NEEDS_USERNAME 1 | ||
10762 | _ACEOF | ||
10763 | |||
10764 | |||
10765 | cat >>confdefs.h <<\_ACEOF | ||
10766 | #define BROKEN_TCGETATTR_ICANON 1 | ||
10767 | _ACEOF | ||
10768 | |||
10769 | external_path_file=/etc/default/login | ||
10770 | # hardwire lastlog location (can't detect it on some versions) | ||
10771 | conf_lastlog_location="/var/adm/lastlog" | ||
10772 | { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
10773 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; } | ||
10774 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
10775 | if test "$sol2ver" -ge 8; then | ||
10776 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
10777 | echo "${ECHO_T}yes" >&6; } | ||
10778 | cat >>confdefs.h <<\_ACEOF | ||
10779 | #define DISABLE_UTMP 1 | ||
10780 | _ACEOF | ||
10781 | |||
10782 | |||
10783 | cat >>confdefs.h <<\_ACEOF | ||
10784 | #define DISABLE_WTMP 1 | ||
10785 | _ACEOF | ||
10786 | |||
10787 | else | ||
10788 | { echo "$as_me:$LINENO: result: no" >&5 | ||
10789 | echo "${ECHO_T}no" >&6; } | ||
10790 | fi | ||
10791 | |||
10792 | # Check whether --with-solaris-contracts was given. | ||
10793 | if test "${with_solaris_contracts+set}" = set; then | ||
10794 | withval=$with_solaris_contracts; | ||
10795 | { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5 | ||
10796 | echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; } | ||
10797 | if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then | ||
10798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10799 | else | ||
10800 | ac_check_lib_save_LIBS=$LIBS | ||
10801 | LIBS="-lcontract $LIBS" | ||
10802 | cat >conftest.$ac_ext <<_ACEOF | ||
10803 | /* confdefs.h. */ | ||
10804 | _ACEOF | ||
10805 | cat confdefs.h >>conftest.$ac_ext | ||
10806 | cat >>conftest.$ac_ext <<_ACEOF | ||
10807 | /* end confdefs.h. */ | ||
10808 | |||
10809 | /* Override any GCC internal prototype to avoid an error. | ||
10810 | Use char because int might match the return type of a GCC | ||
10811 | builtin and then its argument prototype would still apply. */ | ||
10812 | #ifdef __cplusplus | ||
10813 | extern "C" | ||
10814 | #endif | ||
10815 | char ct_tmpl_activate (); | ||
10816 | int | ||
10817 | main () | ||
10818 | { | ||
10819 | return ct_tmpl_activate (); | ||
10820 | ; | ||
10821 | return 0; | ||
10822 | } | ||
10823 | _ACEOF | ||
10824 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10825 | if { (ac_try="$ac_link" | ||
10826 | case "(($ac_try" in | ||
10827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10828 | *) ac_try_echo=$ac_try;; | ||
10829 | esac | ||
10830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10831 | (eval "$ac_link") 2>conftest.er1 | ||
10832 | ac_status=$? | ||
10833 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10834 | rm -f conftest.er1 | ||
10835 | cat conftest.err >&5 | ||
10836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10837 | (exit $ac_status); } && { | ||
10838 | test -z "$ac_c_werror_flag" || | ||
10839 | test ! -s conftest.err | ||
10840 | } && test -s conftest$ac_exeext && | ||
10841 | $as_test_x conftest$ac_exeext; then | ||
10842 | ac_cv_lib_contract_ct_tmpl_activate=yes | ||
10843 | else | ||
10844 | echo "$as_me: failed program was:" >&5 | ||
10845 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10846 | |||
10847 | ac_cv_lib_contract_ct_tmpl_activate=no | ||
10848 | fi | ||
10849 | |||
10850 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10851 | conftest$ac_exeext conftest.$ac_ext | ||
10852 | LIBS=$ac_check_lib_save_LIBS | ||
10853 | fi | ||
10854 | { echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 | ||
10855 | echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; } | ||
10856 | if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then | ||
10857 | |||
10858 | cat >>confdefs.h <<\_ACEOF | ||
10859 | #define USE_SOLARIS_PROCESS_CONTRACTS 1 | ||
10860 | _ACEOF | ||
10861 | |||
10862 | SSHDLIBS="$SSHDLIBS -lcontract" | ||
10863 | SPC_MSG="yes" | ||
10864 | fi | ||
10865 | |||
10866 | |||
10867 | fi | ||
10868 | |||
10869 | |||
10870 | # Check whether --with-solaris-projects was given. | ||
10871 | if test "${with_solaris_projects+set}" = set; then | ||
10872 | withval=$with_solaris_projects; | ||
10873 | { echo "$as_me:$LINENO: checking for setproject in -lproject" >&5 | ||
10874 | echo $ECHO_N "checking for setproject in -lproject... $ECHO_C" >&6; } | ||
10875 | if test "${ac_cv_lib_project_setproject+set}" = set; then | ||
10876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10877 | else | ||
10878 | ac_check_lib_save_LIBS=$LIBS | ||
10879 | LIBS="-lproject $LIBS" | ||
10880 | cat >conftest.$ac_ext <<_ACEOF | ||
10881 | /* confdefs.h. */ | ||
10882 | _ACEOF | ||
10883 | cat confdefs.h >>conftest.$ac_ext | ||
10884 | cat >>conftest.$ac_ext <<_ACEOF | ||
10885 | /* end confdefs.h. */ | ||
10886 | |||
10887 | /* Override any GCC internal prototype to avoid an error. | ||
10888 | Use char because int might match the return type of a GCC | ||
10889 | builtin and then its argument prototype would still apply. */ | ||
10890 | #ifdef __cplusplus | ||
10891 | extern "C" | ||
10892 | #endif | ||
10893 | char setproject (); | ||
10894 | int | ||
10895 | main () | ||
10896 | { | ||
10897 | return setproject (); | ||
10898 | ; | ||
10899 | return 0; | ||
10900 | } | ||
10901 | _ACEOF | ||
10902 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10903 | if { (ac_try="$ac_link" | ||
10904 | case "(($ac_try" in | ||
10905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10906 | *) ac_try_echo=$ac_try;; | ||
10907 | esac | ||
10908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10909 | (eval "$ac_link") 2>conftest.er1 | ||
10910 | ac_status=$? | ||
10911 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10912 | rm -f conftest.er1 | ||
10913 | cat conftest.err >&5 | ||
10914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10915 | (exit $ac_status); } && { | ||
10916 | test -z "$ac_c_werror_flag" || | ||
10917 | test ! -s conftest.err | ||
10918 | } && test -s conftest$ac_exeext && | ||
10919 | $as_test_x conftest$ac_exeext; then | ||
10920 | ac_cv_lib_project_setproject=yes | ||
10921 | else | ||
10922 | echo "$as_me: failed program was:" >&5 | ||
10923 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10924 | |||
10925 | ac_cv_lib_project_setproject=no | ||
10926 | fi | ||
10927 | |||
10928 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10929 | conftest$ac_exeext conftest.$ac_ext | ||
10930 | LIBS=$ac_check_lib_save_LIBS | ||
10931 | fi | ||
10932 | { echo "$as_me:$LINENO: result: $ac_cv_lib_project_setproject" >&5 | ||
10933 | echo "${ECHO_T}$ac_cv_lib_project_setproject" >&6; } | ||
10934 | if test $ac_cv_lib_project_setproject = yes; then | ||
10935 | |||
10936 | cat >>confdefs.h <<\_ACEOF | ||
10937 | #define USE_SOLARIS_PROJECTS 1 | ||
10938 | _ACEOF | ||
10939 | |||
10940 | SSHDLIBS="$SSHDLIBS -lproject" | ||
10941 | SP_MSG="yes" | ||
10942 | fi | ||
10943 | |||
10944 | |||
10945 | fi | ||
10946 | |||
10947 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
10948 | ;; | ||
10949 | *-*-sunos4*) | ||
10950 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
10951 | |||
10952 | for ac_func in getpwanam | ||
10953 | do | ||
10954 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10955 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10956 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
10957 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10959 | else | ||
10960 | cat >conftest.$ac_ext <<_ACEOF | ||
10961 | /* confdefs.h. */ | ||
10962 | _ACEOF | ||
10963 | cat confdefs.h >>conftest.$ac_ext | ||
10964 | cat >>conftest.$ac_ext <<_ACEOF | ||
10965 | /* end confdefs.h. */ | ||
10966 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10967 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10968 | #define $ac_func innocuous_$ac_func | ||
10969 | |||
10970 | /* System header to define __stub macros and hopefully few prototypes, | ||
10971 | which can conflict with char $ac_func (); below. | ||
10972 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10973 | <limits.h> exists even on freestanding compilers. */ | ||
10974 | |||
10975 | #ifdef __STDC__ | ||
10976 | # include <limits.h> | ||
10977 | #else | ||
10978 | # include <assert.h> | ||
10979 | #endif | ||
10980 | |||
10981 | #undef $ac_func | ||
10982 | |||
10983 | /* Override any GCC internal prototype to avoid an error. | ||
10984 | Use char because int might match the return type of a GCC | ||
10985 | builtin and then its argument prototype would still apply. */ | ||
10986 | #ifdef __cplusplus | ||
10987 | extern "C" | ||
10988 | #endif | ||
10989 | char $ac_func (); | ||
10990 | /* The GNU C library defines this for functions which it implements | ||
10991 | to always fail with ENOSYS. Some functions are actually named | ||
10992 | something starting with __ and the normal name is an alias. */ | ||
10993 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
10994 | choke me | ||
10995 | #endif | ||
10996 | |||
10997 | int | ||
10998 | main () | ||
10999 | { | ||
11000 | return $ac_func (); | ||
11001 | ; | ||
11002 | return 0; | ||
11003 | } | ||
11004 | _ACEOF | ||
11005 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11006 | if { (ac_try="$ac_link" | ||
11007 | case "(($ac_try" in | ||
11008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11009 | *) ac_try_echo=$ac_try;; | ||
11010 | esac | ||
11011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11012 | (eval "$ac_link") 2>conftest.er1 | ||
11013 | ac_status=$? | ||
11014 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11015 | rm -f conftest.er1 | ||
11016 | cat conftest.err >&5 | ||
11017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11018 | (exit $ac_status); } && { | ||
11019 | test -z "$ac_c_werror_flag" || | ||
11020 | test ! -s conftest.err | ||
11021 | } && test -s conftest$ac_exeext && | ||
11022 | $as_test_x conftest$ac_exeext; then | ||
11023 | eval "$as_ac_var=yes" | ||
11024 | else | ||
11025 | echo "$as_me: failed program was:" >&5 | ||
11026 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11027 | |||
11028 | eval "$as_ac_var=no" | ||
11029 | fi | ||
11030 | |||
11031 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11032 | conftest$ac_exeext conftest.$ac_ext | ||
11033 | fi | ||
11034 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11035 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11036 | echo "${ECHO_T}$ac_res" >&6; } | ||
11037 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11038 | cat >>confdefs.h <<_ACEOF | ||
11039 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11040 | _ACEOF | ||
11041 | |||
11042 | fi | ||
11043 | done | ||
11044 | |||
11045 | cat >>confdefs.h <<\_ACEOF | ||
11046 | #define PAM_SUN_CODEBASE 1 | ||
11047 | _ACEOF | ||
11048 | |||
11049 | conf_utmp_location=/etc/utmp | ||
11050 | conf_wtmp_location=/var/adm/wtmp | ||
11051 | conf_lastlog_location=/var/adm/lastlog | ||
11052 | cat >>confdefs.h <<\_ACEOF | ||
11053 | #define USE_PIPES 1 | ||
11054 | _ACEOF | ||
11055 | |||
11056 | ;; | ||
11057 | *-ncr-sysv*) | ||
11058 | LIBS="$LIBS -lc89" | ||
11059 | cat >>confdefs.h <<\_ACEOF | ||
11060 | #define USE_PIPES 1 | ||
11061 | _ACEOF | ||
11062 | |||
11063 | cat >>confdefs.h <<\_ACEOF | ||
11064 | #define SSHD_ACQUIRES_CTTY 1 | ||
11065 | _ACEOF | ||
11066 | |||
11067 | cat >>confdefs.h <<\_ACEOF | ||
11068 | #define SETEUID_BREAKS_SETUID 1 | ||
11069 | _ACEOF | ||
11070 | |||
11071 | cat >>confdefs.h <<\_ACEOF | ||
11072 | #define BROKEN_SETREUID 1 | ||
11073 | _ACEOF | ||
11074 | |||
11075 | cat >>confdefs.h <<\_ACEOF | ||
11076 | #define BROKEN_SETREGID 1 | ||
11077 | _ACEOF | ||
11078 | |||
11079 | ;; | ||
11080 | *-sni-sysv*) | ||
11081 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
11082 | |||
11083 | { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 | ||
11084 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; } | ||
11085 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then | ||
11086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11087 | else | ||
11088 | ac_check_lib_save_LIBS=$LIBS | ||
11089 | LIBS="-ldl $LIBS" | ||
11090 | cat >conftest.$ac_ext <<_ACEOF | ||
11091 | /* confdefs.h. */ | ||
11092 | _ACEOF | ||
11093 | cat confdefs.h >>conftest.$ac_ext | ||
11094 | cat >>conftest.$ac_ext <<_ACEOF | ||
11095 | /* end confdefs.h. */ | ||
11096 | |||
11097 | /* Override any GCC internal prototype to avoid an error. | ||
11098 | Use char because int might match the return type of a GCC | ||
11099 | builtin and then its argument prototype would still apply. */ | ||
11100 | #ifdef __cplusplus | ||
11101 | extern "C" | ||
11102 | #endif | ||
11103 | char dlsym (); | ||
11104 | int | ||
11105 | main () | ||
11106 | { | ||
11107 | return dlsym (); | ||
11108 | ; | ||
11109 | return 0; | ||
11110 | } | ||
11111 | _ACEOF | ||
11112 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11113 | if { (ac_try="$ac_link" | ||
11114 | case "(($ac_try" in | ||
11115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11116 | *) ac_try_echo=$ac_try;; | ||
11117 | esac | ||
11118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11119 | (eval "$ac_link") 2>conftest.er1 | ||
11120 | ac_status=$? | ||
11121 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11122 | rm -f conftest.er1 | ||
11123 | cat conftest.err >&5 | ||
11124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11125 | (exit $ac_status); } && { | ||
11126 | test -z "$ac_c_werror_flag" || | ||
11127 | test ! -s conftest.err | ||
11128 | } && test -s conftest$ac_exeext && | ||
11129 | $as_test_x conftest$ac_exeext; then | ||
11130 | ac_cv_lib_dl_dlsym=yes | ||
11131 | else | ||
11132 | echo "$as_me: failed program was:" >&5 | ||
11133 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11134 | |||
11135 | ac_cv_lib_dl_dlsym=no | ||
11136 | fi | ||
11137 | |||
11138 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11139 | conftest$ac_exeext conftest.$ac_ext | ||
11140 | LIBS=$ac_check_lib_save_LIBS | ||
11141 | fi | ||
11142 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 | ||
11143 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; } | ||
11144 | if test $ac_cv_lib_dl_dlsym = yes; then | ||
11145 | cat >>confdefs.h <<_ACEOF | ||
11146 | #define HAVE_LIBDL 1 | ||
11147 | _ACEOF | ||
11148 | |||
11149 | LIBS="-ldl $LIBS" | ||
11150 | |||
11151 | fi | ||
11152 | |||
11153 | # -lresolv needs to be at the end of LIBS or DNS lookups break | ||
11154 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
11155 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } | ||
11156 | if test "${ac_cv_lib_resolv_res_query+set}" = set; then | ||
11157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11158 | else | ||
11159 | ac_check_lib_save_LIBS=$LIBS | ||
11160 | LIBS="-lresolv $LIBS" | ||
11161 | cat >conftest.$ac_ext <<_ACEOF | ||
11162 | /* confdefs.h. */ | ||
11163 | _ACEOF | ||
11164 | cat confdefs.h >>conftest.$ac_ext | ||
11165 | cat >>conftest.$ac_ext <<_ACEOF | ||
11166 | /* end confdefs.h. */ | ||
11167 | |||
11168 | /* Override any GCC internal prototype to avoid an error. | ||
11169 | Use char because int might match the return type of a GCC | ||
11170 | builtin and then its argument prototype would still apply. */ | ||
11171 | #ifdef __cplusplus | ||
11172 | extern "C" | ||
11173 | #endif | ||
11174 | char res_query (); | ||
11175 | int | ||
11176 | main () | ||
11177 | { | ||
11178 | return res_query (); | ||
11179 | ; | ||
11180 | return 0; | ||
11181 | } | ||
11182 | _ACEOF | ||
11183 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11184 | if { (ac_try="$ac_link" | ||
11185 | case "(($ac_try" in | ||
11186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11187 | *) ac_try_echo=$ac_try;; | ||
11188 | esac | ||
11189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11190 | (eval "$ac_link") 2>conftest.er1 | ||
11191 | ac_status=$? | ||
11192 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11193 | rm -f conftest.er1 | ||
11194 | cat conftest.err >&5 | ||
11195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11196 | (exit $ac_status); } && { | ||
11197 | test -z "$ac_c_werror_flag" || | ||
11198 | test ! -s conftest.err | ||
11199 | } && test -s conftest$ac_exeext && | ||
11200 | $as_test_x conftest$ac_exeext; then | ||
11201 | ac_cv_lib_resolv_res_query=yes | ||
11202 | else | ||
11203 | echo "$as_me: failed program was:" >&5 | ||
11204 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11205 | |||
11206 | ac_cv_lib_resolv_res_query=no | ||
11207 | fi | ||
11208 | |||
11209 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11210 | conftest$ac_exeext conftest.$ac_ext | ||
11211 | LIBS=$ac_check_lib_save_LIBS | ||
11212 | fi | ||
11213 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5 | ||
11214 | echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; } | ||
11215 | if test $ac_cv_lib_resolv_res_query = yes; then | ||
11216 | LIBS="$LIBS -lresolv" | ||
11217 | fi | ||
11218 | |||
11219 | IPADDR_IN_DISPLAY=yes | ||
11220 | cat >>confdefs.h <<\_ACEOF | ||
11221 | #define USE_PIPES 1 | ||
11222 | _ACEOF | ||
11223 | |||
11224 | cat >>confdefs.h <<\_ACEOF | ||
11225 | #define IP_TOS_IS_BROKEN 1 | ||
11226 | _ACEOF | ||
11227 | |||
11228 | cat >>confdefs.h <<\_ACEOF | ||
11229 | #define SETEUID_BREAKS_SETUID 1 | ||
11230 | _ACEOF | ||
11231 | |||
11232 | cat >>confdefs.h <<\_ACEOF | ||
11233 | #define BROKEN_SETREUID 1 | ||
11234 | _ACEOF | ||
11235 | |||
11236 | cat >>confdefs.h <<\_ACEOF | ||
11237 | #define BROKEN_SETREGID 1 | ||
11238 | _ACEOF | ||
11239 | |||
11240 | cat >>confdefs.h <<\_ACEOF | ||
11241 | #define SSHD_ACQUIRES_CTTY 1 | ||
11242 | _ACEOF | ||
11243 | |||
11244 | external_path_file=/etc/default/login | ||
11245 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
11246 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
11247 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
11248 | ;; | ||
11249 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
11250 | *-*-sysv4.2*) | ||
11251 | cat >>confdefs.h <<\_ACEOF | ||
11252 | #define USE_PIPES 1 | ||
11253 | _ACEOF | ||
11254 | |||
11255 | cat >>confdefs.h <<\_ACEOF | ||
11256 | #define SETEUID_BREAKS_SETUID 1 | ||
11257 | _ACEOF | ||
11258 | |||
11259 | cat >>confdefs.h <<\_ACEOF | ||
11260 | #define BROKEN_SETREUID 1 | ||
11261 | _ACEOF | ||
11262 | |||
11263 | cat >>confdefs.h <<\_ACEOF | ||
11264 | #define BROKEN_SETREGID 1 | ||
11265 | _ACEOF | ||
11266 | |||
11267 | |||
11268 | cat >>confdefs.h <<\_ACEOF | ||
11269 | #define PASSWD_NEEDS_USERNAME 1 | ||
11270 | _ACEOF | ||
11271 | |||
11272 | cat >>confdefs.h <<\_ACEOF | ||
11273 | #define LOCKED_PASSWD_STRING "*LK*" | ||
11274 | _ACEOF | ||
11275 | |||
11276 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
11277 | ;; | ||
11278 | # UnixWare 7.x, OpenUNIX 8 | ||
11279 | *-*-sysv5*) | ||
11280 | CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf" | ||
11281 | |||
11282 | cat >>confdefs.h <<\_ACEOF | ||
11283 | #define UNIXWARE_LONG_PASSWORDS 1 | ||
11284 | _ACEOF | ||
11285 | |||
11286 | cat >>confdefs.h <<\_ACEOF | ||
11287 | #define USE_PIPES 1 | ||
11288 | _ACEOF | ||
11289 | |||
11290 | cat >>confdefs.h <<\_ACEOF | ||
11291 | #define SETEUID_BREAKS_SETUID 1 | ||
11292 | _ACEOF | ||
11293 | |||
11294 | cat >>confdefs.h <<\_ACEOF | ||
11295 | #define BROKEN_GETADDRINFO 1 | ||
11296 | _ACEOF | ||
11297 | |||
11298 | cat >>confdefs.h <<\_ACEOF | ||
11299 | #define BROKEN_SETREUID 1 | ||
11300 | _ACEOF | ||
11301 | |||
11302 | cat >>confdefs.h <<\_ACEOF | ||
11303 | #define BROKEN_SETREGID 1 | ||
11304 | _ACEOF | ||
11305 | |||
11306 | cat >>confdefs.h <<\_ACEOF | ||
11307 | #define PASSWD_NEEDS_USERNAME 1 | ||
11308 | _ACEOF | ||
11309 | |||
11310 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
11311 | case "$host" in | ||
11312 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | ||
11313 | maildir=/var/spool/mail | ||
11314 | |||
11315 | cat >>confdefs.h <<\_ACEOF | ||
11316 | #define BROKEN_LIBIAF 1 | ||
11317 | _ACEOF | ||
11318 | |||
11319 | cat >>confdefs.h <<\_ACEOF | ||
11320 | #define BROKEN_UPDWTMPX 1 | ||
11321 | _ACEOF | ||
11322 | |||
11323 | { echo "$as_me:$LINENO: checking for getluid in -lprot" >&5 | ||
11324 | echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; } | ||
11325 | if test "${ac_cv_lib_prot_getluid+set}" = set; then | ||
11326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11327 | else | ||
11328 | ac_check_lib_save_LIBS=$LIBS | ||
11329 | LIBS="-lprot $LIBS" | ||
11330 | cat >conftest.$ac_ext <<_ACEOF | ||
11331 | /* confdefs.h. */ | ||
11332 | _ACEOF | ||
11333 | cat confdefs.h >>conftest.$ac_ext | ||
11334 | cat >>conftest.$ac_ext <<_ACEOF | ||
11335 | /* end confdefs.h. */ | ||
11336 | |||
11337 | /* Override any GCC internal prototype to avoid an error. | ||
11338 | Use char because int might match the return type of a GCC | ||
11339 | builtin and then its argument prototype would still apply. */ | ||
11340 | #ifdef __cplusplus | ||
11341 | extern "C" | ||
11342 | #endif | ||
11343 | char getluid (); | ||
11344 | int | ||
11345 | main () | ||
11346 | { | ||
11347 | return getluid (); | ||
11348 | ; | ||
11349 | return 0; | ||
11350 | } | ||
11351 | _ACEOF | ||
11352 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11353 | if { (ac_try="$ac_link" | ||
11354 | case "(($ac_try" in | ||
11355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11356 | *) ac_try_echo=$ac_try;; | ||
11357 | esac | ||
11358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11359 | (eval "$ac_link") 2>conftest.er1 | ||
11360 | ac_status=$? | ||
11361 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11362 | rm -f conftest.er1 | ||
11363 | cat conftest.err >&5 | ||
11364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11365 | (exit $ac_status); } && { | ||
11366 | test -z "$ac_c_werror_flag" || | ||
11367 | test ! -s conftest.err | ||
11368 | } && test -s conftest$ac_exeext && | ||
11369 | $as_test_x conftest$ac_exeext; then | ||
11370 | ac_cv_lib_prot_getluid=yes | ||
11371 | else | ||
11372 | echo "$as_me: failed program was:" >&5 | ||
11373 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11374 | |||
11375 | ac_cv_lib_prot_getluid=no | ||
11376 | fi | ||
11377 | |||
11378 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11379 | conftest$ac_exeext conftest.$ac_ext | ||
11380 | LIBS=$ac_check_lib_save_LIBS | ||
11381 | fi | ||
11382 | { echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5 | ||
11383 | echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; } | ||
11384 | if test $ac_cv_lib_prot_getluid = yes; then | ||
11385 | LIBS="$LIBS -lprot" | ||
11386 | |||
11387 | |||
11388 | for ac_func in getluid setluid | ||
11389 | do | ||
11390 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11391 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11392 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11393 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11395 | else | ||
11396 | cat >conftest.$ac_ext <<_ACEOF | ||
11397 | /* confdefs.h. */ | ||
11398 | _ACEOF | ||
11399 | cat confdefs.h >>conftest.$ac_ext | ||
11400 | cat >>conftest.$ac_ext <<_ACEOF | ||
11401 | /* end confdefs.h. */ | ||
11402 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11403 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11404 | #define $ac_func innocuous_$ac_func | ||
11405 | |||
11406 | /* System header to define __stub macros and hopefully few prototypes, | ||
11407 | which can conflict with char $ac_func (); below. | ||
11408 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11409 | <limits.h> exists even on freestanding compilers. */ | ||
11410 | |||
11411 | #ifdef __STDC__ | ||
11412 | # include <limits.h> | ||
11413 | #else | ||
11414 | # include <assert.h> | ||
11415 | #endif | ||
11416 | |||
11417 | #undef $ac_func | ||
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 $ac_func (); | ||
11426 | /* The GNU C library defines this for functions which it implements | ||
11427 | to always fail with ENOSYS. Some functions are actually named | ||
11428 | something starting with __ and the normal name is an alias. */ | ||
11429 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11430 | choke me | ||
11431 | #endif | ||
11432 | |||
11433 | int | ||
11434 | main () | ||
11435 | { | ||
11436 | return $ac_func (); | ||
11437 | ; | ||
11438 | return 0; | ||
11439 | } | ||
11440 | _ACEOF | ||
11441 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11442 | if { (ac_try="$ac_link" | ||
11443 | case "(($ac_try" in | ||
11444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11445 | *) ac_try_echo=$ac_try;; | ||
11446 | esac | ||
11447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11448 | (eval "$ac_link") 2>conftest.er1 | ||
11449 | ac_status=$? | ||
11450 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11451 | rm -f conftest.er1 | ||
11452 | cat conftest.err >&5 | ||
11453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11454 | (exit $ac_status); } && { | ||
11455 | test -z "$ac_c_werror_flag" || | ||
11456 | test ! -s conftest.err | ||
11457 | } && test -s conftest$ac_exeext && | ||
11458 | $as_test_x conftest$ac_exeext; then | ||
11459 | eval "$as_ac_var=yes" | ||
11460 | else | ||
11461 | echo "$as_me: failed program was:" >&5 | ||
11462 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11463 | |||
11464 | eval "$as_ac_var=no" | ||
11465 | fi | ||
11466 | |||
11467 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11468 | conftest$ac_exeext conftest.$ac_ext | ||
11469 | fi | ||
11470 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11471 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11472 | echo "${ECHO_T}$ac_res" >&6; } | ||
11473 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11474 | cat >>confdefs.h <<_ACEOF | ||
11475 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11476 | _ACEOF | ||
11477 | |||
11478 | fi | ||
11479 | done | ||
11480 | |||
11481 | cat >>confdefs.h <<\_ACEOF | ||
11482 | #define HAVE_SECUREWARE 1 | ||
11483 | _ACEOF | ||
11484 | |||
11485 | cat >>confdefs.h <<\_ACEOF | ||
11486 | #define DISABLE_SHADOW 1 | ||
11487 | _ACEOF | ||
11488 | |||
11489 | |||
11490 | fi | ||
11491 | |||
11492 | ;; | ||
11493 | *) cat >>confdefs.h <<\_ACEOF | ||
11494 | #define LOCKED_PASSWD_STRING "*LK*" | ||
11495 | _ACEOF | ||
11496 | |||
11497 | check_for_libcrypt_later=1 | ||
11498 | ;; | ||
11499 | esac | ||
11500 | ;; | ||
11501 | *-*-sysv*) | ||
11502 | ;; | ||
11503 | # SCO UNIX and OEM versions of SCO UNIX | ||
11504 | *-*-sco3.2v4*) | ||
11505 | { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5 | ||
11506 | echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;} | ||
11507 | { (exit 1); exit 1; }; } | ||
11508 | ;; | ||
11509 | # SCO OpenServer 5.x | ||
11510 | *-*-sco3.2v5*) | ||
11511 | if test -z "$GCC"; then | ||
11512 | CFLAGS="$CFLAGS -belf" | ||
11513 | fi | ||
11514 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
11515 | no_dev_ptmx=1 | ||
11516 | cat >>confdefs.h <<\_ACEOF | ||
11517 | #define USE_PIPES 1 | ||
11518 | _ACEOF | ||
11519 | |||
11520 | cat >>confdefs.h <<\_ACEOF | ||
11521 | #define HAVE_SECUREWARE 1 | ||
11522 | _ACEOF | ||
11523 | |||
11524 | cat >>confdefs.h <<\_ACEOF | ||
11525 | #define DISABLE_SHADOW 1 | ||
11526 | _ACEOF | ||
11527 | |||
11528 | cat >>confdefs.h <<\_ACEOF | ||
11529 | #define DISABLE_FD_PASSING 1 | ||
11530 | _ACEOF | ||
11531 | |||
11532 | cat >>confdefs.h <<\_ACEOF | ||
11533 | #define SETEUID_BREAKS_SETUID 1 | ||
11534 | _ACEOF | ||
11535 | |||
11536 | cat >>confdefs.h <<\_ACEOF | ||
11537 | #define BROKEN_GETADDRINFO 1 | ||
11538 | _ACEOF | ||
11539 | |||
11540 | cat >>confdefs.h <<\_ACEOF | ||
11541 | #define BROKEN_SETREUID 1 | ||
11542 | _ACEOF | ||
11543 | |||
11544 | cat >>confdefs.h <<\_ACEOF | ||
11545 | #define BROKEN_SETREGID 1 | ||
11546 | _ACEOF | ||
11547 | |||
11548 | cat >>confdefs.h <<\_ACEOF | ||
11549 | #define WITH_ABBREV_NO_TTY 1 | ||
11550 | _ACEOF | ||
11551 | |||
11552 | cat >>confdefs.h <<\_ACEOF | ||
11553 | #define BROKEN_UPDWTMPX 1 | ||
11554 | _ACEOF | ||
11555 | |||
11556 | cat >>confdefs.h <<\_ACEOF | ||
11557 | #define PASSWD_NEEDS_USERNAME 1 | ||
11558 | _ACEOF | ||
11559 | |||
11560 | |||
11561 | |||
11562 | for ac_func in getluid setluid | ||
11563 | do | ||
11564 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11565 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11566 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11567 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11569 | else | ||
11570 | cat >conftest.$ac_ext <<_ACEOF | ||
11571 | /* confdefs.h. */ | ||
11572 | _ACEOF | ||
11573 | cat confdefs.h >>conftest.$ac_ext | ||
11574 | cat >>conftest.$ac_ext <<_ACEOF | ||
11575 | /* end confdefs.h. */ | ||
11576 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11577 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11578 | #define $ac_func innocuous_$ac_func | ||
11579 | |||
11580 | /* System header to define __stub macros and hopefully few prototypes, | ||
11581 | which can conflict with char $ac_func (); below. | ||
11582 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11583 | <limits.h> exists even on freestanding compilers. */ | ||
11584 | |||
11585 | #ifdef __STDC__ | ||
11586 | # include <limits.h> | ||
11587 | #else | ||
11588 | # include <assert.h> | ||
11589 | #endif | ||
11590 | |||
11591 | #undef $ac_func | ||
11592 | |||
11593 | /* Override any GCC internal prototype to avoid an error. | ||
11594 | Use char because int might match the return type of a GCC | ||
11595 | builtin and then its argument prototype would still apply. */ | ||
11596 | #ifdef __cplusplus | ||
11597 | extern "C" | ||
11598 | #endif | ||
11599 | char $ac_func (); | ||
11600 | /* The GNU C library defines this for functions which it implements | ||
11601 | to always fail with ENOSYS. Some functions are actually named | ||
11602 | something starting with __ and the normal name is an alias. */ | ||
11603 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11604 | choke me | ||
11605 | #endif | ||
11606 | |||
11607 | int | ||
11608 | main () | ||
11609 | { | ||
11610 | return $ac_func (); | ||
11611 | ; | ||
11612 | return 0; | ||
11613 | } | ||
11614 | _ACEOF | ||
11615 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11616 | if { (ac_try="$ac_link" | ||
11617 | case "(($ac_try" in | ||
11618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11619 | *) ac_try_echo=$ac_try;; | ||
11620 | esac | ||
11621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11622 | (eval "$ac_link") 2>conftest.er1 | ||
11623 | ac_status=$? | ||
11624 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11625 | rm -f conftest.er1 | ||
11626 | cat conftest.err >&5 | ||
11627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11628 | (exit $ac_status); } && { | ||
11629 | test -z "$ac_c_werror_flag" || | ||
11630 | test ! -s conftest.err | ||
11631 | } && test -s conftest$ac_exeext && | ||
11632 | $as_test_x conftest$ac_exeext; then | ||
11633 | eval "$as_ac_var=yes" | ||
11634 | else | ||
11635 | echo "$as_me: failed program was:" >&5 | ||
11636 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11637 | |||
11638 | eval "$as_ac_var=no" | ||
11639 | fi | ||
11640 | |||
11641 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11642 | conftest$ac_exeext conftest.$ac_ext | ||
11643 | fi | ||
11644 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11645 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11646 | echo "${ECHO_T}$ac_res" >&6; } | ||
11647 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11648 | cat >>confdefs.h <<_ACEOF | ||
11649 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11650 | _ACEOF | ||
11651 | |||
11652 | fi | ||
11653 | done | ||
11654 | |||
11655 | MANTYPE=man | ||
11656 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
11657 | SKIP_DISABLE_LASTLOG_DEFINE=yes | ||
11658 | ;; | ||
11659 | *-*-unicosmk*) | ||
11660 | |||
11661 | cat >>confdefs.h <<\_ACEOF | ||
11662 | #define NO_SSH_LASTLOG 1 | ||
11663 | _ACEOF | ||
11664 | |||
11665 | cat >>confdefs.h <<\_ACEOF | ||
11666 | #define SETEUID_BREAKS_SETUID 1 | ||
11667 | _ACEOF | ||
11668 | |||
11669 | cat >>confdefs.h <<\_ACEOF | ||
11670 | #define BROKEN_SETREUID 1 | ||
11671 | _ACEOF | ||
11672 | |||
11673 | cat >>confdefs.h <<\_ACEOF | ||
11674 | #define BROKEN_SETREGID 1 | ||
11675 | _ACEOF | ||
11676 | |||
11677 | cat >>confdefs.h <<\_ACEOF | ||
11678 | #define USE_PIPES 1 | ||
11679 | _ACEOF | ||
11680 | |||
11681 | cat >>confdefs.h <<\_ACEOF | ||
11682 | #define DISABLE_FD_PASSING 1 | ||
11683 | _ACEOF | ||
11684 | |||
11685 | LDFLAGS="$LDFLAGS" | ||
11686 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
11687 | MANTYPE=cat | ||
11688 | ;; | ||
11689 | *-*-unicosmp*) | ||
11690 | cat >>confdefs.h <<\_ACEOF | ||
11691 | #define SETEUID_BREAKS_SETUID 1 | ||
11692 | _ACEOF | ||
11693 | |||
11694 | cat >>confdefs.h <<\_ACEOF | ||
11695 | #define BROKEN_SETREUID 1 | ||
11696 | _ACEOF | ||
11697 | |||
11698 | cat >>confdefs.h <<\_ACEOF | ||
11699 | #define BROKEN_SETREGID 1 | ||
11700 | _ACEOF | ||
11701 | |||
11702 | cat >>confdefs.h <<\_ACEOF | ||
11703 | #define WITH_ABBREV_NO_TTY 1 | ||
11704 | _ACEOF | ||
11705 | |||
11706 | cat >>confdefs.h <<\_ACEOF | ||
11707 | #define USE_PIPES 1 | ||
11708 | _ACEOF | ||
11709 | |||
11710 | cat >>confdefs.h <<\_ACEOF | ||
11711 | #define DISABLE_FD_PASSING 1 | ||
11712 | _ACEOF | ||
11713 | |||
11714 | LDFLAGS="$LDFLAGS" | ||
11715 | LIBS="$LIBS -lgen -lacid -ldb" | ||
11716 | MANTYPE=cat | ||
11717 | ;; | ||
11718 | *-*-unicos*) | ||
11719 | cat >>confdefs.h <<\_ACEOF | ||
11720 | #define SETEUID_BREAKS_SETUID 1 | ||
11721 | _ACEOF | ||
11722 | |||
11723 | cat >>confdefs.h <<\_ACEOF | ||
11724 | #define BROKEN_SETREUID 1 | ||
11725 | _ACEOF | ||
11726 | |||
11727 | cat >>confdefs.h <<\_ACEOF | ||
11728 | #define BROKEN_SETREGID 1 | ||
11729 | _ACEOF | ||
11730 | |||
11731 | cat >>confdefs.h <<\_ACEOF | ||
11732 | #define USE_PIPES 1 | ||
11733 | _ACEOF | ||
11734 | |||
11735 | cat >>confdefs.h <<\_ACEOF | ||
11736 | #define DISABLE_FD_PASSING 1 | ||
11737 | _ACEOF | ||
11738 | |||
11739 | cat >>confdefs.h <<\_ACEOF | ||
11740 | #define NO_SSH_LASTLOG 1 | ||
11741 | _ACEOF | ||
11742 | |||
11743 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
11744 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
11745 | MANTYPE=cat | ||
11746 | ;; | ||
11747 | *-dec-osf*) | ||
11748 | { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | ||
11749 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; } | ||
11750 | no_osfsia="" | ||
11751 | |||
11752 | # Check whether --with-osfsia was given. | ||
11753 | if test "${with_osfsia+set}" = set; then | ||
11754 | withval=$with_osfsia; | ||
11755 | if test "x$withval" = "xno" ; then | ||
11756 | { echo "$as_me:$LINENO: result: disabled" >&5 | ||
11757 | echo "${ECHO_T}disabled" >&6; } | ||
11758 | no_osfsia=1 | ||
11759 | fi | ||
11760 | |||
11761 | fi | ||
11762 | |||
11763 | if test -z "$no_osfsia" ; then | ||
11764 | if test -f /etc/sia/matrix.conf; then | ||
11765 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11766 | echo "${ECHO_T}yes" >&6; } | ||
11767 | |||
11768 | cat >>confdefs.h <<\_ACEOF | ||
11769 | #define HAVE_OSF_SIA 1 | ||
11770 | _ACEOF | ||
11771 | |||
11772 | |||
11773 | cat >>confdefs.h <<\_ACEOF | ||
11774 | #define DISABLE_LOGIN 1 | ||
11775 | _ACEOF | ||
11776 | |||
11777 | cat >>confdefs.h <<\_ACEOF | ||
11778 | #define DISABLE_FD_PASSING 1 | ||
11779 | _ACEOF | ||
11780 | |||
11781 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
11782 | SIA_MSG="yes" | ||
11783 | else | ||
11784 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11785 | echo "${ECHO_T}no" >&6; } | ||
11786 | |||
11787 | cat >>confdefs.h <<\_ACEOF | ||
11788 | #define LOCKED_PASSWD_SUBSTR "Nologin" | ||
11789 | _ACEOF | ||
11790 | |||
11791 | fi | ||
11792 | fi | ||
11793 | cat >>confdefs.h <<\_ACEOF | ||
11794 | #define BROKEN_GETADDRINFO 1 | ||
11795 | _ACEOF | ||
11796 | |||
11797 | cat >>confdefs.h <<\_ACEOF | ||
11798 | #define SETEUID_BREAKS_SETUID 1 | ||
11799 | _ACEOF | ||
11800 | |||
11801 | cat >>confdefs.h <<\_ACEOF | ||
11802 | #define BROKEN_SETREUID 1 | ||
11803 | _ACEOF | ||
11804 | |||
11805 | cat >>confdefs.h <<\_ACEOF | ||
11806 | #define BROKEN_SETREGID 1 | ||
11807 | _ACEOF | ||
11808 | |||
11809 | |||
11810 | cat >>confdefs.h <<\_ACEOF | ||
11811 | #define BROKEN_READV_COMPARISON 1 | ||
11812 | _ACEOF | ||
11813 | |||
11814 | ;; | ||
11815 | |||
11816 | *-*-nto-qnx*) | ||
11817 | cat >>confdefs.h <<\_ACEOF | ||
11818 | #define USE_PIPES 1 | ||
11819 | _ACEOF | ||
11820 | |||
11821 | cat >>confdefs.h <<\_ACEOF | ||
11822 | #define NO_X11_UNIX_SOCKETS 1 | ||
11823 | _ACEOF | ||
11824 | |||
11825 | cat >>confdefs.h <<\_ACEOF | ||
11826 | #define DISABLE_LASTLOG 1 | ||
11827 | _ACEOF | ||
11828 | |||
11829 | cat >>confdefs.h <<\_ACEOF | ||
11830 | #define SSHD_ACQUIRES_CTTY 1 | ||
11831 | _ACEOF | ||
11832 | |||
11833 | |||
11834 | cat >>confdefs.h <<\_ACEOF | ||
11835 | #define BROKEN_SHADOW_EXPIRE 1 | ||
11836 | _ACEOF | ||
11837 | |||
11838 | enable_etc_default_login=no # has incompatible /etc/default/login | ||
11839 | case "$host" in | ||
11840 | *-*-nto-qnx6*) | ||
11841 | cat >>confdefs.h <<\_ACEOF | ||
11842 | #define DISABLE_FD_PASSING 1 | ||
11843 | _ACEOF | ||
11844 | |||
11845 | ;; | ||
11846 | esac | ||
11847 | ;; | ||
11848 | |||
11849 | *-*-ultrix*) | ||
11850 | |||
11851 | cat >>confdefs.h <<\_ACEOF | ||
11852 | #define BROKEN_GETGROUPS 1 | ||
11853 | _ACEOF | ||
11854 | |||
11855 | |||
11856 | cat >>confdefs.h <<\_ACEOF | ||
11857 | #define BROKEN_MMAP 1 | ||
11858 | _ACEOF | ||
11859 | |||
11860 | cat >>confdefs.h <<\_ACEOF | ||
11861 | #define NEED_SETPGRP 1 | ||
11862 | _ACEOF | ||
11863 | |||
11864 | |||
11865 | cat >>confdefs.h <<\_ACEOF | ||
11866 | #define HAVE_SYS_SYSLOG_H 1 | ||
11867 | _ACEOF | ||
11868 | |||
11869 | ;; | ||
11870 | |||
11871 | *-*-lynxos) | ||
11872 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" | ||
11873 | |||
11874 | cat >>confdefs.h <<\_ACEOF | ||
11875 | #define BROKEN_SETVBUF 1 | ||
11876 | _ACEOF | ||
11877 | |||
11878 | ;; | ||
11879 | esac | ||
11880 | |||
11881 | { echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 | ||
11882 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; } | ||
11883 | if test "$cross_compiling" = yes; then | ||
11884 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
11885 | echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
11886 | |||
11887 | else | ||
11888 | cat >conftest.$ac_ext <<_ACEOF | ||
11889 | /* confdefs.h. */ | ||
11890 | _ACEOF | ||
11891 | cat confdefs.h >>conftest.$ac_ext | ||
11892 | cat >>conftest.$ac_ext <<_ACEOF | ||
11893 | /* end confdefs.h. */ | ||
11894 | #include <stdio.h> | ||
11895 | int | ||
11896 | main () | ||
11897 | { | ||
11898 | exit(0); | ||
11899 | ; | ||
11900 | return 0; | ||
11901 | } | ||
11902 | _ACEOF | ||
11903 | rm -f conftest$ac_exeext | ||
11904 | if { (ac_try="$ac_link" | ||
11905 | case "(($ac_try" in | ||
11906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11907 | *) ac_try_echo=$ac_try;; | ||
11908 | esac | ||
11909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11910 | (eval "$ac_link") 2>&5 | ||
11911 | ac_status=$? | ||
11912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11913 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11914 | { (case "(($ac_try" in | ||
11915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11916 | *) ac_try_echo=$ac_try;; | ||
11917 | esac | ||
11918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11919 | (eval "$ac_try") 2>&5 | ||
11920 | ac_status=$? | ||
11921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11922 | (exit $ac_status); }; }; then | ||
11923 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11924 | echo "${ECHO_T}yes" >&6; } | ||
11925 | else | ||
11926 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11927 | echo "$as_me: failed program was:" >&5 | ||
11928 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11929 | |||
11930 | ( exit $ac_status ) | ||
11931 | |||
11932 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11933 | echo "${ECHO_T}no" >&6; } | ||
11934 | { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5 | ||
11935 | echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} | ||
11936 | { (exit 1); exit 1; }; } | ||
11937 | |||
11938 | fi | ||
11939 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11940 | fi | ||
11941 | |||
11942 | |||
11943 | |||
11944 | # Checks for libraries. | ||
11945 | { echo "$as_me:$LINENO: checking for yp_match" >&5 | ||
11946 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; } | ||
11947 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
11948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11949 | else | ||
11950 | cat >conftest.$ac_ext <<_ACEOF | ||
11951 | /* confdefs.h. */ | ||
11952 | _ACEOF | ||
11953 | cat confdefs.h >>conftest.$ac_ext | ||
11954 | cat >>conftest.$ac_ext <<_ACEOF | ||
11955 | /* end confdefs.h. */ | ||
11956 | /* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match. | ||
11957 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11958 | #define yp_match innocuous_yp_match | ||
11959 | |||
11960 | /* System header to define __stub macros and hopefully few prototypes, | ||
11961 | which can conflict with char yp_match (); below. | ||
11962 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11963 | <limits.h> exists even on freestanding compilers. */ | ||
11964 | |||
11965 | #ifdef __STDC__ | ||
11966 | # include <limits.h> | ||
11967 | #else | ||
11968 | # include <assert.h> | ||
11969 | #endif | ||
11970 | |||
11971 | #undef yp_match | ||
11972 | |||
11973 | /* Override any GCC internal prototype to avoid an error. | ||
11974 | Use char because int might match the return type of a GCC | ||
11975 | builtin and then its argument prototype would still apply. */ | ||
11976 | #ifdef __cplusplus | ||
11977 | extern "C" | ||
11978 | #endif | ||
11979 | char yp_match (); | ||
11980 | /* The GNU C library defines this for functions which it implements | ||
11981 | to always fail with ENOSYS. Some functions are actually named | ||
11982 | something starting with __ and the normal name is an alias. */ | ||
11983 | #if defined __stub_yp_match || defined __stub___yp_match | ||
11984 | choke me | ||
11985 | #endif | ||
11986 | |||
11987 | int | ||
11988 | main () | ||
11989 | { | ||
11990 | return yp_match (); | ||
11991 | ; | ||
11992 | return 0; | ||
11993 | } | ||
11994 | _ACEOF | ||
11995 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11996 | if { (ac_try="$ac_link" | ||
11997 | case "(($ac_try" in | ||
11998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11999 | *) ac_try_echo=$ac_try;; | ||
12000 | esac | ||
12001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12002 | (eval "$ac_link") 2>conftest.er1 | ||
12003 | ac_status=$? | ||
12004 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12005 | rm -f conftest.er1 | ||
12006 | cat conftest.err >&5 | ||
12007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12008 | (exit $ac_status); } && { | ||
12009 | test -z "$ac_c_werror_flag" || | ||
12010 | test ! -s conftest.err | ||
12011 | } && test -s conftest$ac_exeext && | ||
12012 | $as_test_x conftest$ac_exeext; then | ||
12013 | ac_cv_func_yp_match=yes | ||
12014 | else | ||
12015 | echo "$as_me: failed program was:" >&5 | ||
12016 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12017 | |||
12018 | ac_cv_func_yp_match=no | ||
12019 | fi | ||
12020 | |||
12021 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12022 | conftest$ac_exeext conftest.$ac_ext | ||
12023 | fi | ||
12024 | { echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 | ||
12025 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6; } | ||
12026 | if test $ac_cv_func_yp_match = yes; then | ||
12027 | : | ||
12028 | else | ||
12029 | |||
12030 | { echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 | ||
12031 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; } | ||
12032 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
12033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12034 | else | ||
12035 | ac_check_lib_save_LIBS=$LIBS | ||
12036 | LIBS="-lnsl $LIBS" | ||
12037 | cat >conftest.$ac_ext <<_ACEOF | ||
12038 | /* confdefs.h. */ | ||
12039 | _ACEOF | ||
12040 | cat confdefs.h >>conftest.$ac_ext | ||
12041 | cat >>conftest.$ac_ext <<_ACEOF | ||
12042 | /* end confdefs.h. */ | ||
12043 | |||
12044 | /* Override any GCC internal prototype to avoid an error. | ||
12045 | Use char because int might match the return type of a GCC | ||
12046 | builtin and then its argument prototype would still apply. */ | ||
12047 | #ifdef __cplusplus | ||
12048 | extern "C" | ||
12049 | #endif | ||
12050 | char yp_match (); | ||
12051 | int | ||
12052 | main () | ||
12053 | { | ||
12054 | return yp_match (); | ||
12055 | ; | ||
12056 | return 0; | ||
12057 | } | ||
12058 | _ACEOF | ||
12059 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12060 | if { (ac_try="$ac_link" | ||
12061 | case "(($ac_try" in | ||
12062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12063 | *) ac_try_echo=$ac_try;; | ||
12064 | esac | ||
12065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12066 | (eval "$ac_link") 2>conftest.er1 | ||
12067 | ac_status=$? | ||
12068 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12069 | rm -f conftest.er1 | ||
12070 | cat conftest.err >&5 | ||
12071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12072 | (exit $ac_status); } && { | ||
12073 | test -z "$ac_c_werror_flag" || | ||
12074 | test ! -s conftest.err | ||
12075 | } && test -s conftest$ac_exeext && | ||
12076 | $as_test_x conftest$ac_exeext; then | ||
12077 | ac_cv_lib_nsl_yp_match=yes | ||
12078 | else | ||
12079 | echo "$as_me: failed program was:" >&5 | ||
12080 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12081 | |||
12082 | ac_cv_lib_nsl_yp_match=no | ||
12083 | fi | ||
12084 | |||
12085 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12086 | conftest$ac_exeext conftest.$ac_ext | ||
12087 | LIBS=$ac_check_lib_save_LIBS | ||
12088 | fi | ||
12089 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
12090 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; } | ||
12091 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
12092 | cat >>confdefs.h <<_ACEOF | ||
12093 | #define HAVE_LIBNSL 1 | ||
12094 | _ACEOF | ||
12095 | |||
12096 | LIBS="-lnsl $LIBS" | ||
12097 | |||
12098 | fi | ||
12099 | |||
12100 | fi | ||
12101 | |||
12102 | { echo "$as_me:$LINENO: checking for setsockopt" >&5 | ||
12103 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } | ||
12104 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
12105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12106 | else | ||
12107 | cat >conftest.$ac_ext <<_ACEOF | ||
12108 | /* confdefs.h. */ | ||
12109 | _ACEOF | ||
12110 | cat confdefs.h >>conftest.$ac_ext | ||
12111 | cat >>conftest.$ac_ext <<_ACEOF | ||
12112 | /* end confdefs.h. */ | ||
12113 | /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. | ||
12114 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12115 | #define setsockopt innocuous_setsockopt | ||
12116 | |||
12117 | /* System header to define __stub macros and hopefully few prototypes, | ||
12118 | which can conflict with char setsockopt (); below. | ||
12119 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12120 | <limits.h> exists even on freestanding compilers. */ | ||
12121 | |||
12122 | #ifdef __STDC__ | ||
12123 | # include <limits.h> | ||
12124 | #else | ||
12125 | # include <assert.h> | ||
12126 | #endif | ||
12127 | |||
12128 | #undef setsockopt | ||
12129 | |||
12130 | /* Override any GCC internal prototype to avoid an error. | ||
12131 | Use char because int might match the return type of a GCC | ||
12132 | builtin and then its argument prototype would still apply. */ | ||
12133 | #ifdef __cplusplus | ||
12134 | extern "C" | ||
12135 | #endif | ||
12136 | char setsockopt (); | ||
12137 | /* The GNU C library defines this for functions which it implements | ||
12138 | to always fail with ENOSYS. Some functions are actually named | ||
12139 | something starting with __ and the normal name is an alias. */ | ||
12140 | #if defined __stub_setsockopt || defined __stub___setsockopt | ||
12141 | choke me | ||
12142 | #endif | ||
12143 | |||
12144 | int | ||
12145 | main () | ||
12146 | { | ||
12147 | return setsockopt (); | ||
12148 | ; | ||
12149 | return 0; | ||
12150 | } | ||
12151 | _ACEOF | ||
12152 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12153 | if { (ac_try="$ac_link" | ||
12154 | case "(($ac_try" in | ||
12155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12156 | *) ac_try_echo=$ac_try;; | ||
12157 | esac | ||
12158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12159 | (eval "$ac_link") 2>conftest.er1 | ||
12160 | ac_status=$? | ||
12161 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12162 | rm -f conftest.er1 | ||
12163 | cat conftest.err >&5 | ||
12164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12165 | (exit $ac_status); } && { | ||
12166 | test -z "$ac_c_werror_flag" || | ||
12167 | test ! -s conftest.err | ||
12168 | } && test -s conftest$ac_exeext && | ||
12169 | $as_test_x conftest$ac_exeext; then | ||
12170 | ac_cv_func_setsockopt=yes | ||
12171 | else | ||
12172 | echo "$as_me: failed program was:" >&5 | ||
12173 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12174 | |||
12175 | ac_cv_func_setsockopt=no | ||
12176 | fi | ||
12177 | |||
12178 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12179 | conftest$ac_exeext conftest.$ac_ext | ||
12180 | fi | ||
12181 | { echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | ||
12182 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } | ||
12183 | if test $ac_cv_func_setsockopt = yes; then | ||
12184 | : | ||
12185 | else | ||
12186 | |||
12187 | { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | ||
12188 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } | ||
12189 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
12190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12191 | else | ||
12192 | ac_check_lib_save_LIBS=$LIBS | ||
12193 | LIBS="-lsocket $LIBS" | ||
12194 | cat >conftest.$ac_ext <<_ACEOF | ||
12195 | /* confdefs.h. */ | ||
12196 | _ACEOF | ||
12197 | cat confdefs.h >>conftest.$ac_ext | ||
12198 | cat >>conftest.$ac_ext <<_ACEOF | ||
12199 | /* end confdefs.h. */ | ||
12200 | |||
12201 | /* Override any GCC internal prototype to avoid an error. | ||
12202 | Use char because int might match the return type of a GCC | ||
12203 | builtin and then its argument prototype would still apply. */ | ||
12204 | #ifdef __cplusplus | ||
12205 | extern "C" | ||
12206 | #endif | ||
12207 | char setsockopt (); | ||
12208 | int | ||
12209 | main () | ||
12210 | { | ||
12211 | return setsockopt (); | ||
12212 | ; | ||
12213 | return 0; | ||
12214 | } | ||
12215 | _ACEOF | ||
12216 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12217 | if { (ac_try="$ac_link" | ||
12218 | case "(($ac_try" in | ||
12219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12220 | *) ac_try_echo=$ac_try;; | ||
12221 | esac | ||
12222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12223 | (eval "$ac_link") 2>conftest.er1 | ||
12224 | ac_status=$? | ||
12225 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12226 | rm -f conftest.er1 | ||
12227 | cat conftest.err >&5 | ||
12228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12229 | (exit $ac_status); } && { | ||
12230 | test -z "$ac_c_werror_flag" || | ||
12231 | test ! -s conftest.err | ||
12232 | } && test -s conftest$ac_exeext && | ||
12233 | $as_test_x conftest$ac_exeext; then | ||
12234 | ac_cv_lib_socket_setsockopt=yes | ||
12235 | else | ||
12236 | echo "$as_me: failed program was:" >&5 | ||
12237 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12238 | |||
12239 | ac_cv_lib_socket_setsockopt=no | ||
12240 | fi | ||
12241 | |||
12242 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12243 | conftest$ac_exeext conftest.$ac_ext | ||
12244 | LIBS=$ac_check_lib_save_LIBS | ||
12245 | fi | ||
12246 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
12247 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } | ||
12248 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
12249 | cat >>confdefs.h <<_ACEOF | ||
12250 | #define HAVE_LIBSOCKET 1 | ||
12251 | _ACEOF | ||
12252 | |||
12253 | LIBS="-lsocket $LIBS" | ||
12254 | |||
12255 | fi | ||
12256 | |||
12257 | fi | ||
12258 | |||
12259 | |||
12260 | |||
12261 | for ac_func in dirname | ||
12262 | do | ||
12263 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12264 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12265 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12266 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12268 | else | ||
12269 | cat >conftest.$ac_ext <<_ACEOF | ||
12270 | /* confdefs.h. */ | ||
12271 | _ACEOF | ||
12272 | cat confdefs.h >>conftest.$ac_ext | ||
12273 | cat >>conftest.$ac_ext <<_ACEOF | ||
12274 | /* end confdefs.h. */ | ||
12275 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12276 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12277 | #define $ac_func innocuous_$ac_func | ||
12278 | |||
12279 | /* System header to define __stub macros and hopefully few prototypes, | ||
12280 | which can conflict with char $ac_func (); below. | ||
12281 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12282 | <limits.h> exists even on freestanding compilers. */ | ||
12283 | |||
12284 | #ifdef __STDC__ | ||
12285 | # include <limits.h> | ||
12286 | #else | ||
12287 | # include <assert.h> | ||
12288 | #endif | ||
12289 | |||
12290 | #undef $ac_func | ||
12291 | |||
12292 | /* Override any GCC internal prototype to avoid an error. | ||
12293 | Use char because int might match the return type of a GCC | ||
12294 | builtin and then its argument prototype would still apply. */ | ||
12295 | #ifdef __cplusplus | ||
12296 | extern "C" | ||
12297 | #endif | ||
12298 | char $ac_func (); | ||
12299 | /* The GNU C library defines this for functions which it implements | ||
12300 | to always fail with ENOSYS. Some functions are actually named | ||
12301 | something starting with __ and the normal name is an alias. */ | ||
12302 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12303 | choke me | ||
12304 | #endif | ||
12305 | |||
12306 | int | ||
12307 | main () | ||
12308 | { | ||
12309 | return $ac_func (); | ||
12310 | ; | ||
12311 | return 0; | ||
12312 | } | ||
12313 | _ACEOF | ||
12314 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12315 | if { (ac_try="$ac_link" | ||
12316 | case "(($ac_try" in | ||
12317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12318 | *) ac_try_echo=$ac_try;; | ||
12319 | esac | ||
12320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12321 | (eval "$ac_link") 2>conftest.er1 | ||
12322 | ac_status=$? | ||
12323 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12324 | rm -f conftest.er1 | ||
12325 | cat conftest.err >&5 | ||
12326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12327 | (exit $ac_status); } && { | ||
12328 | test -z "$ac_c_werror_flag" || | ||
12329 | test ! -s conftest.err | ||
12330 | } && test -s conftest$ac_exeext && | ||
12331 | $as_test_x conftest$ac_exeext; then | ||
12332 | eval "$as_ac_var=yes" | ||
12333 | else | ||
12334 | echo "$as_me: failed program was:" >&5 | ||
12335 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12336 | |||
12337 | eval "$as_ac_var=no" | ||
12338 | fi | ||
12339 | |||
12340 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12341 | conftest$ac_exeext conftest.$ac_ext | ||
12342 | fi | ||
12343 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12344 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12345 | echo "${ECHO_T}$ac_res" >&6; } | ||
12346 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12347 | cat >>confdefs.h <<_ACEOF | ||
12348 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12349 | _ACEOF | ||
12350 | |||
12351 | for ac_header in libgen.h | ||
12352 | do | ||
12353 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
12354 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12355 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
12356 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
12357 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12359 | fi | ||
12360 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
12361 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12362 | echo "${ECHO_T}$ac_res" >&6; } | ||
12363 | else | ||
12364 | # Is the header compilable? | ||
12365 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
12366 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
12367 | cat >conftest.$ac_ext <<_ACEOF | ||
12368 | /* confdefs.h. */ | ||
12369 | _ACEOF | ||
12370 | cat confdefs.h >>conftest.$ac_ext | ||
12371 | cat >>conftest.$ac_ext <<_ACEOF | ||
12372 | /* end confdefs.h. */ | ||
12373 | $ac_includes_default | ||
12374 | #include <$ac_header> | ||
12375 | _ACEOF | ||
12376 | rm -f conftest.$ac_objext | ||
12377 | if { (ac_try="$ac_compile" | ||
12378 | case "(($ac_try" in | ||
12379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12380 | *) ac_try_echo=$ac_try;; | ||
12381 | esac | ||
12382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12383 | (eval "$ac_compile") 2>conftest.er1 | ||
12384 | ac_status=$? | ||
12385 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12386 | rm -f conftest.er1 | ||
12387 | cat conftest.err >&5 | ||
12388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12389 | (exit $ac_status); } && { | ||
12390 | test -z "$ac_c_werror_flag" || | ||
12391 | test ! -s conftest.err | ||
12392 | } && test -s conftest.$ac_objext; then | ||
12393 | ac_header_compiler=yes | ||
12394 | else | ||
12395 | echo "$as_me: failed program was:" >&5 | ||
12396 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12397 | |||
12398 | ac_header_compiler=no | ||
12399 | fi | ||
12400 | |||
12401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12402 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
12403 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
12404 | |||
12405 | # Is the header present? | ||
12406 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
12407 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
12408 | cat >conftest.$ac_ext <<_ACEOF | ||
12409 | /* confdefs.h. */ | ||
12410 | _ACEOF | ||
12411 | cat confdefs.h >>conftest.$ac_ext | ||
12412 | cat >>conftest.$ac_ext <<_ACEOF | ||
12413 | /* end confdefs.h. */ | ||
12414 | #include <$ac_header> | ||
12415 | _ACEOF | ||
12416 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
12417 | case "(($ac_try" in | ||
12418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12419 | *) ac_try_echo=$ac_try;; | ||
12420 | esac | ||
12421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12422 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
12423 | ac_status=$? | ||
12424 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12425 | rm -f conftest.er1 | ||
12426 | cat conftest.err >&5 | ||
12427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12428 | (exit $ac_status); } >/dev/null && { | ||
12429 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
12430 | test ! -s conftest.err | ||
12431 | }; then | ||
12432 | ac_header_preproc=yes | ||
12433 | else | ||
12434 | echo "$as_me: failed program was:" >&5 | ||
12435 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12436 | |||
12437 | ac_header_preproc=no | ||
12438 | fi | ||
12439 | |||
12440 | rm -f conftest.err conftest.$ac_ext | ||
12441 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
12442 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
12443 | |||
12444 | # So? What about this header? | ||
12445 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
12446 | yes:no: ) | ||
12447 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
12448 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
12449 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
12450 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
12451 | ac_header_preproc=yes | ||
12452 | ;; | ||
12453 | no:yes:* ) | ||
12454 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
12455 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
12456 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
12457 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
12458 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
12459 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
12460 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
12461 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
12462 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
12463 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
12464 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
12465 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
12466 | ( cat <<\_ASBOX | ||
12467 | ## ------------------------------------------- ## | ||
12468 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
12469 | ## ------------------------------------------- ## | ||
12470 | _ASBOX | ||
12471 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
12472 | ;; | ||
12473 | esac | ||
12474 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
12475 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
12476 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12478 | else | ||
12479 | eval "$as_ac_Header=\$ac_header_preproc" | ||
12480 | fi | ||
12481 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
12482 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12483 | echo "${ECHO_T}$ac_res" >&6; } | ||
12484 | |||
12485 | fi | ||
12486 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
12487 | cat >>confdefs.h <<_ACEOF | ||
12488 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
12489 | _ACEOF | ||
12490 | |||
12491 | fi | ||
12492 | |||
12493 | done | ||
12494 | |||
12495 | else | ||
12496 | |||
12497 | { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | ||
12498 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; } | ||
12499 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
12500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12501 | else | ||
12502 | ac_check_lib_save_LIBS=$LIBS | ||
12503 | LIBS="-lgen $LIBS" | ||
12504 | cat >conftest.$ac_ext <<_ACEOF | ||
12505 | /* confdefs.h. */ | ||
12506 | _ACEOF | ||
12507 | cat confdefs.h >>conftest.$ac_ext | ||
12508 | cat >>conftest.$ac_ext <<_ACEOF | ||
12509 | /* end confdefs.h. */ | ||
12510 | |||
12511 | /* Override any GCC internal prototype to avoid an error. | ||
12512 | Use char because int might match the return type of a GCC | ||
12513 | builtin and then its argument prototype would still apply. */ | ||
12514 | #ifdef __cplusplus | ||
12515 | extern "C" | ||
12516 | #endif | ||
12517 | char dirname (); | ||
12518 | int | ||
12519 | main () | ||
12520 | { | ||
12521 | return dirname (); | ||
12522 | ; | ||
12523 | return 0; | ||
12524 | } | ||
12525 | _ACEOF | ||
12526 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12527 | if { (ac_try="$ac_link" | ||
12528 | case "(($ac_try" in | ||
12529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12530 | *) ac_try_echo=$ac_try;; | ||
12531 | esac | ||
12532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12533 | (eval "$ac_link") 2>conftest.er1 | ||
12534 | ac_status=$? | ||
12535 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12536 | rm -f conftest.er1 | ||
12537 | cat conftest.err >&5 | ||
12538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12539 | (exit $ac_status); } && { | ||
12540 | test -z "$ac_c_werror_flag" || | ||
12541 | test ! -s conftest.err | ||
12542 | } && test -s conftest$ac_exeext && | ||
12543 | $as_test_x conftest$ac_exeext; then | ||
12544 | ac_cv_lib_gen_dirname=yes | ||
12545 | else | ||
12546 | echo "$as_me: failed program was:" >&5 | ||
12547 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12548 | |||
12549 | ac_cv_lib_gen_dirname=no | ||
12550 | fi | ||
12551 | |||
12552 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12553 | conftest$ac_exeext conftest.$ac_ext | ||
12554 | LIBS=$ac_check_lib_save_LIBS | ||
12555 | fi | ||
12556 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | ||
12557 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; } | ||
12558 | if test $ac_cv_lib_gen_dirname = yes; then | ||
12559 | |||
12560 | { echo "$as_me:$LINENO: checking for broken dirname" >&5 | ||
12561 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; } | ||
12562 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
12563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12564 | else | ||
12565 | |||
12566 | save_LIBS="$LIBS" | ||
12567 | LIBS="$LIBS -lgen" | ||
12568 | if test "$cross_compiling" = yes; then | ||
12569 | ac_cv_have_broken_dirname="no" | ||
12570 | else | ||
12571 | cat >conftest.$ac_ext <<_ACEOF | ||
12572 | /* confdefs.h. */ | ||
12573 | _ACEOF | ||
12574 | cat confdefs.h >>conftest.$ac_ext | ||
12575 | cat >>conftest.$ac_ext <<_ACEOF | ||
12576 | /* end confdefs.h. */ | ||
12577 | |||
12578 | #include <libgen.h> | ||
12579 | #include <string.h> | ||
12580 | |||
12581 | int main(int argc, char **argv) { | ||
12582 | char *s, buf[32]; | ||
12583 | |||
12584 | strncpy(buf,"/etc", 32); | ||
12585 | s = dirname(buf); | ||
12586 | if (!s || strncmp(s, "/", 32) != 0) { | ||
12587 | exit(1); | ||
12588 | } else { | ||
12589 | exit(0); | ||
12590 | } | ||
12591 | } | ||
12592 | |||
12593 | _ACEOF | ||
12594 | rm -f conftest$ac_exeext | ||
12595 | if { (ac_try="$ac_link" | ||
12596 | case "(($ac_try" in | ||
12597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12598 | *) ac_try_echo=$ac_try;; | ||
12599 | esac | ||
12600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12601 | (eval "$ac_link") 2>&5 | ||
12602 | ac_status=$? | ||
12603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12604 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12605 | { (case "(($ac_try" in | ||
12606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12607 | *) ac_try_echo=$ac_try;; | ||
12608 | esac | ||
12609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12610 | (eval "$ac_try") 2>&5 | ||
12611 | ac_status=$? | ||
12612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12613 | (exit $ac_status); }; }; then | ||
12614 | ac_cv_have_broken_dirname="no" | ||
12615 | else | ||
12616 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12617 | echo "$as_me: failed program was:" >&5 | ||
12618 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12619 | |||
12620 | ( exit $ac_status ) | ||
12621 | ac_cv_have_broken_dirname="yes" | ||
12622 | fi | ||
12623 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12624 | fi | ||
12625 | |||
12626 | |||
12627 | LIBS="$save_LIBS" | ||
12628 | |||
12629 | fi | ||
12630 | { echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | ||
12631 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; } | ||
12632 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
12633 | LIBS="$LIBS -lgen" | ||
12634 | cat >>confdefs.h <<\_ACEOF | ||
12635 | #define HAVE_DIRNAME 1 | ||
12636 | _ACEOF | ||
12637 | |||
12638 | |||
12639 | for ac_header in libgen.h | ||
12640 | do | ||
12641 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
12642 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12643 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
12644 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
12645 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12647 | fi | ||
12648 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
12649 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12650 | echo "${ECHO_T}$ac_res" >&6; } | ||
12651 | else | ||
12652 | # Is the header compilable? | ||
12653 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
12654 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
12655 | cat >conftest.$ac_ext <<_ACEOF | ||
12656 | /* confdefs.h. */ | ||
12657 | _ACEOF | ||
12658 | cat confdefs.h >>conftest.$ac_ext | ||
12659 | cat >>conftest.$ac_ext <<_ACEOF | ||
12660 | /* end confdefs.h. */ | ||
12661 | $ac_includes_default | ||
12662 | #include <$ac_header> | ||
12663 | _ACEOF | ||
12664 | rm -f conftest.$ac_objext | ||
12665 | if { (ac_try="$ac_compile" | ||
12666 | case "(($ac_try" in | ||
12667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12668 | *) ac_try_echo=$ac_try;; | ||
12669 | esac | ||
12670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12671 | (eval "$ac_compile") 2>conftest.er1 | ||
12672 | ac_status=$? | ||
12673 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12674 | rm -f conftest.er1 | ||
12675 | cat conftest.err >&5 | ||
12676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12677 | (exit $ac_status); } && { | ||
12678 | test -z "$ac_c_werror_flag" || | ||
12679 | test ! -s conftest.err | ||
12680 | } && test -s conftest.$ac_objext; then | ||
12681 | ac_header_compiler=yes | ||
12682 | else | ||
12683 | echo "$as_me: failed program was:" >&5 | ||
12684 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12685 | |||
12686 | ac_header_compiler=no | ||
12687 | fi | ||
12688 | |||
12689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12690 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
12691 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
12692 | |||
12693 | # Is the header present? | ||
12694 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
12695 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
12696 | cat >conftest.$ac_ext <<_ACEOF | ||
12697 | /* confdefs.h. */ | ||
12698 | _ACEOF | ||
12699 | cat confdefs.h >>conftest.$ac_ext | ||
12700 | cat >>conftest.$ac_ext <<_ACEOF | ||
12701 | /* end confdefs.h. */ | ||
12702 | #include <$ac_header> | ||
12703 | _ACEOF | ||
12704 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
12705 | case "(($ac_try" in | ||
12706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12707 | *) ac_try_echo=$ac_try;; | ||
12708 | esac | ||
12709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12710 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
12711 | ac_status=$? | ||
12712 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12713 | rm -f conftest.er1 | ||
12714 | cat conftest.err >&5 | ||
12715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12716 | (exit $ac_status); } >/dev/null && { | ||
12717 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
12718 | test ! -s conftest.err | ||
12719 | }; then | ||
12720 | ac_header_preproc=yes | ||
12721 | else | ||
12722 | echo "$as_me: failed program was:" >&5 | ||
12723 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12724 | |||
12725 | ac_header_preproc=no | ||
12726 | fi | ||
12727 | |||
12728 | rm -f conftest.err conftest.$ac_ext | ||
12729 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
12730 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
12731 | |||
12732 | # So? What about this header? | ||
12733 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
12734 | yes:no: ) | ||
12735 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
12736 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
12737 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
12738 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
12739 | ac_header_preproc=yes | ||
12740 | ;; | ||
12741 | no:yes:* ) | ||
12742 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
12743 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
12744 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
12745 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
12746 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
12747 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
12748 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
12749 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
12750 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
12751 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
12752 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
12753 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
12754 | ( cat <<\_ASBOX | ||
12755 | ## ------------------------------------------- ## | ||
12756 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
12757 | ## ------------------------------------------- ## | ||
12758 | _ASBOX | ||
12759 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
12760 | ;; | ||
12761 | esac | ||
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 | else | ||
12767 | eval "$as_ac_Header=\$ac_header_preproc" | ||
12768 | fi | ||
12769 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
12770 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12771 | echo "${ECHO_T}$ac_res" >&6; } | ||
12772 | |||
12773 | fi | ||
12774 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
12775 | cat >>confdefs.h <<_ACEOF | ||
12776 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
12777 | _ACEOF | ||
12778 | |||
12779 | fi | ||
12780 | |||
12781 | done | ||
12782 | |||
12783 | fi | ||
12784 | |||
12785 | fi | ||
12786 | |||
12787 | |||
12788 | fi | ||
12789 | done | ||
12790 | |||
12791 | |||
12792 | { echo "$as_me:$LINENO: checking for getspnam" >&5 | ||
12793 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; } | ||
12794 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
12795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12796 | else | ||
12797 | cat >conftest.$ac_ext <<_ACEOF | ||
12798 | /* confdefs.h. */ | ||
12799 | _ACEOF | ||
12800 | cat confdefs.h >>conftest.$ac_ext | ||
12801 | cat >>conftest.$ac_ext <<_ACEOF | ||
12802 | /* end confdefs.h. */ | ||
12803 | /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam. | ||
12804 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12805 | #define getspnam innocuous_getspnam | ||
12806 | |||
12807 | /* System header to define __stub macros and hopefully few prototypes, | ||
12808 | which can conflict with char getspnam (); below. | ||
12809 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12810 | <limits.h> exists even on freestanding compilers. */ | ||
12811 | |||
12812 | #ifdef __STDC__ | ||
12813 | # include <limits.h> | ||
12814 | #else | ||
12815 | # include <assert.h> | ||
12816 | #endif | ||
12817 | |||
12818 | #undef getspnam | ||
12819 | |||
12820 | /* Override any GCC internal prototype to avoid an error. | ||
12821 | Use char because int might match the return type of a GCC | ||
12822 | builtin and then its argument prototype would still apply. */ | ||
12823 | #ifdef __cplusplus | ||
12824 | extern "C" | ||
12825 | #endif | ||
12826 | char getspnam (); | ||
12827 | /* The GNU C library defines this for functions which it implements | ||
12828 | to always fail with ENOSYS. Some functions are actually named | ||
12829 | something starting with __ and the normal name is an alias. */ | ||
12830 | #if defined __stub_getspnam || defined __stub___getspnam | ||
12831 | choke me | ||
12832 | #endif | ||
12833 | |||
12834 | int | ||
12835 | main () | ||
12836 | { | ||
12837 | return getspnam (); | ||
12838 | ; | ||
12839 | return 0; | ||
12840 | } | ||
12841 | _ACEOF | ||
12842 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12843 | if { (ac_try="$ac_link" | ||
12844 | case "(($ac_try" in | ||
12845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12846 | *) ac_try_echo=$ac_try;; | ||
12847 | esac | ||
12848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12849 | (eval "$ac_link") 2>conftest.er1 | ||
12850 | ac_status=$? | ||
12851 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12852 | rm -f conftest.er1 | ||
12853 | cat conftest.err >&5 | ||
12854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12855 | (exit $ac_status); } && { | ||
12856 | test -z "$ac_c_werror_flag" || | ||
12857 | test ! -s conftest.err | ||
12858 | } && test -s conftest$ac_exeext && | ||
12859 | $as_test_x conftest$ac_exeext; then | ||
12860 | ac_cv_func_getspnam=yes | ||
12861 | else | ||
12862 | echo "$as_me: failed program was:" >&5 | ||
12863 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12864 | |||
12865 | ac_cv_func_getspnam=no | ||
12866 | fi | ||
12867 | |||
12868 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12869 | conftest$ac_exeext conftest.$ac_ext | ||
12870 | fi | ||
12871 | { echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | ||
12872 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6; } | ||
12873 | if test $ac_cv_func_getspnam = yes; then | ||
12874 | : | ||
12875 | else | ||
12876 | { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | ||
12877 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; } | ||
12878 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
12879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12880 | else | ||
12881 | ac_check_lib_save_LIBS=$LIBS | ||
12882 | LIBS="-lgen $LIBS" | ||
12883 | cat >conftest.$ac_ext <<_ACEOF | ||
12884 | /* confdefs.h. */ | ||
12885 | _ACEOF | ||
12886 | cat confdefs.h >>conftest.$ac_ext | ||
12887 | cat >>conftest.$ac_ext <<_ACEOF | ||
12888 | /* end confdefs.h. */ | ||
12889 | |||
12890 | /* Override any GCC internal prototype to avoid an error. | ||
12891 | Use char because int might match the return type of a GCC | ||
12892 | builtin and then its argument prototype would still apply. */ | ||
12893 | #ifdef __cplusplus | ||
12894 | extern "C" | ||
12895 | #endif | ||
12896 | char getspnam (); | ||
12897 | int | ||
12898 | main () | ||
12899 | { | ||
12900 | return getspnam (); | ||
12901 | ; | ||
12902 | return 0; | ||
12903 | } | ||
12904 | _ACEOF | ||
12905 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12906 | if { (ac_try="$ac_link" | ||
12907 | case "(($ac_try" in | ||
12908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12909 | *) ac_try_echo=$ac_try;; | ||
12910 | esac | ||
12911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12912 | (eval "$ac_link") 2>conftest.er1 | ||
12913 | ac_status=$? | ||
12914 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12915 | rm -f conftest.er1 | ||
12916 | cat conftest.err >&5 | ||
12917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12918 | (exit $ac_status); } && { | ||
12919 | test -z "$ac_c_werror_flag" || | ||
12920 | test ! -s conftest.err | ||
12921 | } && test -s conftest$ac_exeext && | ||
12922 | $as_test_x conftest$ac_exeext; then | ||
12923 | ac_cv_lib_gen_getspnam=yes | ||
12924 | else | ||
12925 | echo "$as_me: failed program was:" >&5 | ||
12926 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12927 | |||
12928 | ac_cv_lib_gen_getspnam=no | ||
12929 | fi | ||
12930 | |||
12931 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12932 | conftest$ac_exeext conftest.$ac_ext | ||
12933 | LIBS=$ac_check_lib_save_LIBS | ||
12934 | fi | ||
12935 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | ||
12936 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; } | ||
12937 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
12938 | LIBS="$LIBS -lgen" | ||
12939 | fi | ||
12940 | |||
12941 | fi | ||
12942 | |||
12943 | { echo "$as_me:$LINENO: checking for library containing basename" >&5 | ||
12944 | echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; } | ||
12945 | if test "${ac_cv_search_basename+set}" = set; then | ||
12946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12947 | else | ||
12948 | ac_func_search_save_LIBS=$LIBS | ||
12949 | cat >conftest.$ac_ext <<_ACEOF | ||
12950 | /* confdefs.h. */ | ||
12951 | _ACEOF | ||
12952 | cat confdefs.h >>conftest.$ac_ext | ||
12953 | cat >>conftest.$ac_ext <<_ACEOF | ||
12954 | /* end confdefs.h. */ | ||
12955 | |||
12956 | /* Override any GCC internal prototype to avoid an error. | ||
12957 | Use char because int might match the return type of a GCC | ||
12958 | builtin and then its argument prototype would still apply. */ | ||
12959 | #ifdef __cplusplus | ||
12960 | extern "C" | ||
12961 | #endif | ||
12962 | char basename (); | ||
12963 | int | ||
12964 | main () | ||
12965 | { | ||
12966 | return basename (); | ||
12967 | ; | ||
12968 | return 0; | ||
12969 | } | ||
12970 | _ACEOF | ||
12971 | for ac_lib in '' gen; do | ||
12972 | if test -z "$ac_lib"; then | ||
12973 | ac_res="none required" | ||
12974 | else | ||
12975 | ac_res=-l$ac_lib | ||
12976 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
12977 | fi | ||
12978 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12979 | if { (ac_try="$ac_link" | ||
12980 | case "(($ac_try" in | ||
12981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12982 | *) ac_try_echo=$ac_try;; | ||
12983 | esac | ||
12984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12985 | (eval "$ac_link") 2>conftest.er1 | ||
12986 | ac_status=$? | ||
12987 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12988 | rm -f conftest.er1 | ||
12989 | cat conftest.err >&5 | ||
12990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12991 | (exit $ac_status); } && { | ||
12992 | test -z "$ac_c_werror_flag" || | ||
12993 | test ! -s conftest.err | ||
12994 | } && test -s conftest$ac_exeext && | ||
12995 | $as_test_x conftest$ac_exeext; then | ||
12996 | ac_cv_search_basename=$ac_res | ||
12997 | else | ||
12998 | echo "$as_me: failed program was:" >&5 | ||
12999 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13000 | |||
13001 | |||
13002 | fi | ||
13003 | |||
13004 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13005 | conftest$ac_exeext | ||
13006 | if test "${ac_cv_search_basename+set}" = set; then | ||
13007 | break | ||
13008 | fi | ||
13009 | done | ||
13010 | if test "${ac_cv_search_basename+set}" = set; then | ||
13011 | : | ||
13012 | else | ||
13013 | ac_cv_search_basename=no | ||
13014 | fi | ||
13015 | rm conftest.$ac_ext | ||
13016 | LIBS=$ac_func_search_save_LIBS | ||
13017 | fi | ||
13018 | { echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5 | ||
13019 | echo "${ECHO_T}$ac_cv_search_basename" >&6; } | ||
13020 | ac_res=$ac_cv_search_basename | ||
13021 | if test "$ac_res" != no; then | ||
13022 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13023 | |||
13024 | cat >>confdefs.h <<\_ACEOF | ||
13025 | #define HAVE_BASENAME 1 | ||
13026 | _ACEOF | ||
13027 | |||
13028 | fi | ||
13029 | |||
13030 | |||
13031 | |||
13032 | # Check whether --with-zlib was given. | ||
13033 | if test "${with_zlib+set}" = set; then | ||
13034 | withval=$with_zlib; if test "x$withval" = "xno" ; then | ||
13035 | { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | ||
13036 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
13037 | { (exit 1); exit 1; }; } | ||
13038 | elif test "x$withval" != "xyes"; then | ||
13039 | if test -d "$withval/lib"; then | ||
13040 | if test -n "${need_dash_r}"; then | ||
13041 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
13042 | else | ||
13043 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
13044 | fi | ||
13045 | else | ||
13046 | if test -n "${need_dash_r}"; then | ||
13047 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
13048 | else | ||
13049 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
13050 | fi | ||
13051 | fi | ||
13052 | if test -d "$withval/include"; then | ||
13053 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
13054 | else | ||
13055 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
13056 | fi | ||
13057 | fi | ||
13058 | |||
13059 | fi | ||
13060 | |||
13061 | |||
13062 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
13063 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
13064 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
13065 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
13066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13067 | fi | ||
13068 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
13069 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
13070 | else | ||
13071 | # Is the header compilable? | ||
13072 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 | ||
13073 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | ||
13074 | cat >conftest.$ac_ext <<_ACEOF | ||
13075 | /* confdefs.h. */ | ||
13076 | _ACEOF | ||
13077 | cat confdefs.h >>conftest.$ac_ext | ||
13078 | cat >>conftest.$ac_ext <<_ACEOF | ||
13079 | /* end confdefs.h. */ | ||
13080 | $ac_includes_default | ||
13081 | #include <zlib.h> | ||
13082 | _ACEOF | ||
13083 | rm -f conftest.$ac_objext | ||
13084 | if { (ac_try="$ac_compile" | ||
13085 | case "(($ac_try" in | ||
13086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13087 | *) ac_try_echo=$ac_try;; | ||
13088 | esac | ||
13089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13090 | (eval "$ac_compile") 2>conftest.er1 | ||
13091 | ac_status=$? | ||
13092 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13093 | rm -f conftest.er1 | ||
13094 | cat conftest.err >&5 | ||
13095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13096 | (exit $ac_status); } && { | ||
13097 | test -z "$ac_c_werror_flag" || | ||
13098 | test ! -s conftest.err | ||
13099 | } && test -s conftest.$ac_objext; then | ||
13100 | ac_header_compiler=yes | ||
13101 | else | ||
13102 | echo "$as_me: failed program was:" >&5 | ||
13103 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13104 | |||
13105 | ac_header_compiler=no | ||
13106 | fi | ||
13107 | |||
13108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13109 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
13110 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
13111 | |||
13112 | # Is the header present? | ||
13113 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 | ||
13114 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | ||
13115 | cat >conftest.$ac_ext <<_ACEOF | ||
13116 | /* confdefs.h. */ | ||
13117 | _ACEOF | ||
13118 | cat confdefs.h >>conftest.$ac_ext | ||
13119 | cat >>conftest.$ac_ext <<_ACEOF | ||
13120 | /* end confdefs.h. */ | ||
13121 | #include <zlib.h> | ||
13122 | _ACEOF | ||
13123 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
13124 | case "(($ac_try" in | ||
13125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13126 | *) ac_try_echo=$ac_try;; | ||
13127 | esac | ||
13128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13129 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
13130 | ac_status=$? | ||
13131 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13132 | rm -f conftest.er1 | ||
13133 | cat conftest.err >&5 | ||
13134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13135 | (exit $ac_status); } >/dev/null && { | ||
13136 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
13137 | test ! -s conftest.err | ||
13138 | }; then | ||
13139 | ac_header_preproc=yes | ||
13140 | else | ||
13141 | echo "$as_me: failed program was:" >&5 | ||
13142 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13143 | |||
13144 | ac_header_preproc=no | ||
13145 | fi | ||
13146 | |||
13147 | rm -f conftest.err conftest.$ac_ext | ||
13148 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
13149 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
13150 | |||
13151 | # So? What about this header? | ||
13152 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
13153 | yes:no: ) | ||
13154 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
13155 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
13156 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | ||
13157 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | ||
13158 | ac_header_preproc=yes | ||
13159 | ;; | ||
13160 | no:yes:* ) | ||
13161 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | ||
13162 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | ||
13163 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | ||
13164 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | ||
13165 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | ||
13166 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | ||
13167 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
13168 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
13169 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | ||
13170 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | ||
13171 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | ||
13172 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | ||
13173 | ( cat <<\_ASBOX | ||
13174 | ## ------------------------------------------- ## | ||
13175 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
13176 | ## ------------------------------------------- ## | ||
13177 | _ASBOX | ||
13178 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
13179 | ;; | ||
13180 | esac | ||
13181 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
13182 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
13183 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
13184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13185 | else | ||
13186 | ac_cv_header_zlib_h=$ac_header_preproc | ||
13187 | fi | ||
13188 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
13189 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
13190 | |||
13191 | fi | ||
13192 | if test $ac_cv_header_zlib_h = yes; then | ||
13193 | : | ||
13194 | else | ||
13195 | { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5 | ||
13196 | echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;} | ||
13197 | { (exit 1); exit 1; }; } | ||
13198 | fi | ||
13199 | |||
13200 | |||
13201 | |||
13202 | { echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | ||
13203 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; } | ||
13204 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
13205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13206 | else | ||
13207 | ac_check_lib_save_LIBS=$LIBS | ||
13208 | LIBS="-lz $LIBS" | ||
13209 | cat >conftest.$ac_ext <<_ACEOF | ||
13210 | /* confdefs.h. */ | ||
13211 | _ACEOF | ||
13212 | cat confdefs.h >>conftest.$ac_ext | ||
13213 | cat >>conftest.$ac_ext <<_ACEOF | ||
13214 | /* end confdefs.h. */ | ||
13215 | |||
13216 | /* Override any GCC internal prototype to avoid an error. | ||
13217 | Use char because int might match the return type of a GCC | ||
13218 | builtin and then its argument prototype would still apply. */ | ||
13219 | #ifdef __cplusplus | ||
13220 | extern "C" | ||
13221 | #endif | ||
13222 | char deflate (); | ||
13223 | int | ||
13224 | main () | ||
13225 | { | ||
13226 | return deflate (); | ||
13227 | ; | ||
13228 | return 0; | ||
13229 | } | ||
13230 | _ACEOF | ||
13231 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13232 | if { (ac_try="$ac_link" | ||
13233 | case "(($ac_try" in | ||
13234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13235 | *) ac_try_echo=$ac_try;; | ||
13236 | esac | ||
13237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13238 | (eval "$ac_link") 2>conftest.er1 | ||
13239 | ac_status=$? | ||
13240 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13241 | rm -f conftest.er1 | ||
13242 | cat conftest.err >&5 | ||
13243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13244 | (exit $ac_status); } && { | ||
13245 | test -z "$ac_c_werror_flag" || | ||
13246 | test ! -s conftest.err | ||
13247 | } && test -s conftest$ac_exeext && | ||
13248 | $as_test_x conftest$ac_exeext; then | ||
13249 | ac_cv_lib_z_deflate=yes | ||
13250 | else | ||
13251 | echo "$as_me: failed program was:" >&5 | ||
13252 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13253 | |||
13254 | ac_cv_lib_z_deflate=no | ||
13255 | fi | ||
13256 | |||
13257 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13258 | conftest$ac_exeext conftest.$ac_ext | ||
13259 | LIBS=$ac_check_lib_save_LIBS | ||
13260 | fi | ||
13261 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | ||
13262 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; } | ||
13263 | if test $ac_cv_lib_z_deflate = yes; then | ||
13264 | cat >>confdefs.h <<_ACEOF | ||
13265 | #define HAVE_LIBZ 1 | ||
13266 | _ACEOF | ||
13267 | |||
13268 | LIBS="-lz $LIBS" | ||
13269 | |||
13270 | else | ||
13271 | |||
13272 | saved_CPPFLAGS="$CPPFLAGS" | ||
13273 | saved_LDFLAGS="$LDFLAGS" | ||
13274 | save_LIBS="$LIBS" | ||
13275 | if test -n "${need_dash_r}"; then | ||
13276 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
13277 | else | ||
13278 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
13279 | fi | ||
13280 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
13281 | LIBS="$LIBS -lz" | ||
13282 | cat >conftest.$ac_ext <<_ACEOF | ||
13283 | /* confdefs.h. */ | ||
13284 | _ACEOF | ||
13285 | cat confdefs.h >>conftest.$ac_ext | ||
13286 | cat >>conftest.$ac_ext <<_ACEOF | ||
13287 | /* end confdefs.h. */ | ||
13288 | |||
13289 | /* Override any GCC internal prototype to avoid an error. | ||
13290 | Use char because int might match the return type of a GCC | ||
13291 | builtin and then its argument prototype would still apply. */ | ||
13292 | #ifdef __cplusplus | ||
13293 | extern "C" | ||
13294 | #endif | ||
13295 | char deflate (); | ||
13296 | int | ||
13297 | main () | ||
13298 | { | ||
13299 | return deflate (); | ||
13300 | ; | ||
13301 | return 0; | ||
13302 | } | ||
13303 | _ACEOF | ||
13304 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13305 | if { (ac_try="$ac_link" | ||
13306 | case "(($ac_try" in | ||
13307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13308 | *) ac_try_echo=$ac_try;; | ||
13309 | esac | ||
13310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13311 | (eval "$ac_link") 2>conftest.er1 | ||
13312 | ac_status=$? | ||
13313 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13314 | rm -f conftest.er1 | ||
13315 | cat conftest.err >&5 | ||
13316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13317 | (exit $ac_status); } && { | ||
13318 | test -z "$ac_c_werror_flag" || | ||
13319 | test ! -s conftest.err | ||
13320 | } && test -s conftest$ac_exeext && | ||
13321 | $as_test_x conftest$ac_exeext; then | ||
13322 | cat >>confdefs.h <<\_ACEOF | ||
13323 | #define HAVE_LIBZ 1 | ||
13324 | _ACEOF | ||
13325 | |||
13326 | else | ||
13327 | echo "$as_me: failed program was:" >&5 | ||
13328 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13329 | |||
13330 | |||
13331 | { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
13332 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
13333 | { (exit 1); exit 1; }; } | ||
13334 | |||
13335 | |||
13336 | fi | ||
13337 | |||
13338 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13339 | conftest$ac_exeext conftest.$ac_ext | ||
13340 | |||
13341 | |||
13342 | fi | ||
13343 | |||
13344 | |||
13345 | |||
13346 | # Check whether --with-zlib-version-check was given. | ||
13347 | if test "${with_zlib_version_check+set}" = set; then | ||
13348 | withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then | ||
13349 | zlib_check_nonfatal=1 | ||
13350 | fi | ||
13351 | |||
13352 | |||
13353 | fi | ||
13354 | |||
13355 | |||
13356 | { echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5 | ||
13357 | echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; } | ||
13358 | if test "$cross_compiling" = yes; then | ||
13359 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5 | ||
13360 | echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
13361 | |||
13362 | else | ||
13363 | cat >conftest.$ac_ext <<_ACEOF | ||
13364 | /* confdefs.h. */ | ||
13365 | _ACEOF | ||
13366 | cat confdefs.h >>conftest.$ac_ext | ||
13367 | cat >>conftest.$ac_ext <<_ACEOF | ||
13368 | /* end confdefs.h. */ | ||
13369 | |||
13370 | #include <stdio.h> | ||
13371 | #include <stdlib.h> | ||
13372 | #include <zlib.h> | ||
13373 | |||
13374 | int | ||
13375 | main () | ||
13376 | { | ||
13377 | |||
13378 | int a=0, b=0, c=0, d=0, n, v; | ||
13379 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
13380 | if (n != 3 && n != 4) | ||
13381 | exit(1); | ||
13382 | v = a*1000000 + b*10000 + c*100 + d; | ||
13383 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
13384 | |||
13385 | /* 1.1.4 is OK */ | ||
13386 | if (a == 1 && b == 1 && c >= 4) | ||
13387 | exit(0); | ||
13388 | |||
13389 | /* 1.2.3 and up are OK */ | ||
13390 | if (v >= 1020300) | ||
13391 | exit(0); | ||
13392 | |||
13393 | exit(2); | ||
13394 | |||
13395 | ; | ||
13396 | return 0; | ||
13397 | } | ||
13398 | _ACEOF | ||
13399 | rm -f conftest$ac_exeext | ||
13400 | if { (ac_try="$ac_link" | ||
13401 | case "(($ac_try" in | ||
13402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13403 | *) ac_try_echo=$ac_try;; | ||
13404 | esac | ||
13405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13406 | (eval "$ac_link") 2>&5 | ||
13407 | ac_status=$? | ||
13408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13409 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13410 | { (case "(($ac_try" in | ||
13411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13412 | *) ac_try_echo=$ac_try;; | ||
13413 | esac | ||
13414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13415 | (eval "$ac_try") 2>&5 | ||
13416 | ac_status=$? | ||
13417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13418 | (exit $ac_status); }; }; then | ||
13419 | { echo "$as_me:$LINENO: result: no" >&5 | ||
13420 | echo "${ECHO_T}no" >&6; } | ||
13421 | else | ||
13422 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13423 | echo "$as_me: failed program was:" >&5 | ||
13424 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13425 | |||
13426 | ( exit $ac_status ) | ||
13427 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
13428 | echo "${ECHO_T}yes" >&6; } | ||
13429 | if test -z "$zlib_check_nonfatal" ; then | ||
13430 | { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log *** | ||
13431 | Your reported zlib version has known security problems. It's possible your | ||
13432 | vendor has fixed these problems without changing the version number. If you | ||
13433 | are sure this is the case, you can disable the check by running | ||
13434 | \"./configure --without-zlib-version-check\". | ||
13435 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
13436 | See http://www.gzip.org/zlib/ for details." >&5 | ||
13437 | echo "$as_me: error: *** zlib too old - check config.log *** | ||
13438 | Your reported zlib version has known security problems. It's possible your | ||
13439 | vendor has fixed these problems without changing the version number. If you | ||
13440 | are sure this is the case, you can disable the check by running | ||
13441 | \"./configure --without-zlib-version-check\". | ||
13442 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
13443 | See http://www.gzip.org/zlib/ for details." >&2;} | ||
13444 | { (exit 1); exit 1; }; } | ||
13445 | else | ||
13446 | { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5 | ||
13447 | echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
13448 | fi | ||
13449 | |||
13450 | fi | ||
13451 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13452 | fi | ||
13453 | |||
13454 | |||
13455 | |||
13456 | { echo "$as_me:$LINENO: checking for strcasecmp" >&5 | ||
13457 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; } | ||
13458 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
13459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13460 | else | ||
13461 | cat >conftest.$ac_ext <<_ACEOF | ||
13462 | /* confdefs.h. */ | ||
13463 | _ACEOF | ||
13464 | cat confdefs.h >>conftest.$ac_ext | ||
13465 | cat >>conftest.$ac_ext <<_ACEOF | ||
13466 | /* end confdefs.h. */ | ||
13467 | /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp. | ||
13468 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13469 | #define strcasecmp innocuous_strcasecmp | ||
13470 | |||
13471 | /* System header to define __stub macros and hopefully few prototypes, | ||
13472 | which can conflict with char strcasecmp (); below. | ||
13473 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13474 | <limits.h> exists even on freestanding compilers. */ | ||
13475 | |||
13476 | #ifdef __STDC__ | ||
13477 | # include <limits.h> | ||
13478 | #else | ||
13479 | # include <assert.h> | ||
13480 | #endif | ||
13481 | |||
13482 | #undef strcasecmp | ||
13483 | |||
13484 | /* Override any GCC internal prototype to avoid an error. | ||
13485 | Use char because int might match the return type of a GCC | ||
13486 | builtin and then its argument prototype would still apply. */ | ||
13487 | #ifdef __cplusplus | ||
13488 | extern "C" | ||
13489 | #endif | ||
13490 | char strcasecmp (); | ||
13491 | /* The GNU C library defines this for functions which it implements | ||
13492 | to always fail with ENOSYS. Some functions are actually named | ||
13493 | something starting with __ and the normal name is an alias. */ | ||
13494 | #if defined __stub_strcasecmp || defined __stub___strcasecmp | ||
13495 | choke me | ||
13496 | #endif | ||
13497 | |||
13498 | int | ||
13499 | main () | ||
13500 | { | ||
13501 | return strcasecmp (); | ||
13502 | ; | ||
13503 | return 0; | ||
13504 | } | ||
13505 | _ACEOF | ||
13506 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13507 | if { (ac_try="$ac_link" | ||
13508 | case "(($ac_try" in | ||
13509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13510 | *) ac_try_echo=$ac_try;; | ||
13511 | esac | ||
13512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13513 | (eval "$ac_link") 2>conftest.er1 | ||
13514 | ac_status=$? | ||
13515 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13516 | rm -f conftest.er1 | ||
13517 | cat conftest.err >&5 | ||
13518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13519 | (exit $ac_status); } && { | ||
13520 | test -z "$ac_c_werror_flag" || | ||
13521 | test ! -s conftest.err | ||
13522 | } && test -s conftest$ac_exeext && | ||
13523 | $as_test_x conftest$ac_exeext; then | ||
13524 | ac_cv_func_strcasecmp=yes | ||
13525 | else | ||
13526 | echo "$as_me: failed program was:" >&5 | ||
13527 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13528 | |||
13529 | ac_cv_func_strcasecmp=no | ||
13530 | fi | ||
13531 | |||
13532 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13533 | conftest$ac_exeext conftest.$ac_ext | ||
13534 | fi | ||
13535 | { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | ||
13536 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; } | ||
13537 | if test $ac_cv_func_strcasecmp = yes; then | ||
13538 | : | ||
13539 | else | ||
13540 | { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | ||
13541 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; } | ||
13542 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
13543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13544 | else | ||
13545 | ac_check_lib_save_LIBS=$LIBS | ||
13546 | LIBS="-lresolv $LIBS" | ||
13547 | cat >conftest.$ac_ext <<_ACEOF | ||
13548 | /* confdefs.h. */ | ||
13549 | _ACEOF | ||
13550 | cat confdefs.h >>conftest.$ac_ext | ||
13551 | cat >>conftest.$ac_ext <<_ACEOF | ||
13552 | /* end confdefs.h. */ | ||
13553 | |||
13554 | /* Override any GCC internal prototype to avoid an error. | ||
13555 | Use char because int might match the return type of a GCC | ||
13556 | builtin and then its argument prototype would still apply. */ | ||
13557 | #ifdef __cplusplus | ||
13558 | extern "C" | ||
13559 | #endif | ||
13560 | char strcasecmp (); | ||
13561 | int | ||
13562 | main () | ||
13563 | { | ||
13564 | return strcasecmp (); | ||
13565 | ; | ||
13566 | return 0; | ||
13567 | } | ||
13568 | _ACEOF | ||
13569 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13570 | if { (ac_try="$ac_link" | ||
13571 | case "(($ac_try" in | ||
13572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13573 | *) ac_try_echo=$ac_try;; | ||
13574 | esac | ||
13575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13576 | (eval "$ac_link") 2>conftest.er1 | ||
13577 | ac_status=$? | ||
13578 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13579 | rm -f conftest.er1 | ||
13580 | cat conftest.err >&5 | ||
13581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13582 | (exit $ac_status); } && { | ||
13583 | test -z "$ac_c_werror_flag" || | ||
13584 | test ! -s conftest.err | ||
13585 | } && test -s conftest$ac_exeext && | ||
13586 | $as_test_x conftest$ac_exeext; then | ||
13587 | ac_cv_lib_resolv_strcasecmp=yes | ||
13588 | else | ||
13589 | echo "$as_me: failed program was:" >&5 | ||
13590 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13591 | |||
13592 | ac_cv_lib_resolv_strcasecmp=no | ||
13593 | fi | ||
13594 | |||
13595 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13596 | conftest$ac_exeext conftest.$ac_ext | ||
13597 | LIBS=$ac_check_lib_save_LIBS | ||
13598 | fi | ||
13599 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
13600 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; } | ||
13601 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
13602 | LIBS="$LIBS -lresolv" | ||
13603 | fi | ||
13604 | |||
13605 | |||
13606 | fi | ||
13607 | |||
13608 | |||
13609 | for ac_func in utimes | ||
13610 | do | ||
13611 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13612 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13613 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13614 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13616 | else | ||
13617 | cat >conftest.$ac_ext <<_ACEOF | ||
13618 | /* confdefs.h. */ | ||
13619 | _ACEOF | ||
13620 | cat confdefs.h >>conftest.$ac_ext | ||
13621 | cat >>conftest.$ac_ext <<_ACEOF | ||
13622 | /* end confdefs.h. */ | ||
13623 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13624 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13625 | #define $ac_func innocuous_$ac_func | ||
13626 | |||
13627 | /* System header to define __stub macros and hopefully few prototypes, | ||
13628 | which can conflict with char $ac_func (); below. | ||
13629 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13630 | <limits.h> exists even on freestanding compilers. */ | ||
13631 | |||
13632 | #ifdef __STDC__ | ||
13633 | # include <limits.h> | ||
13634 | #else | ||
13635 | # include <assert.h> | ||
13636 | #endif | ||
13637 | |||
13638 | #undef $ac_func | ||
13639 | |||
13640 | /* Override any GCC internal prototype to avoid an error. | ||
13641 | Use char because int might match the return type of a GCC | ||
13642 | builtin and then its argument prototype would still apply. */ | ||
13643 | #ifdef __cplusplus | ||
13644 | extern "C" | ||
13645 | #endif | ||
13646 | char $ac_func (); | ||
13647 | /* The GNU C library defines this for functions which it implements | ||
13648 | to always fail with ENOSYS. Some functions are actually named | ||
13649 | something starting with __ and the normal name is an alias. */ | ||
13650 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13651 | choke me | ||
13652 | #endif | ||
13653 | |||
13654 | int | ||
13655 | main () | ||
13656 | { | ||
13657 | return $ac_func (); | ||
13658 | ; | ||
13659 | return 0; | ||
13660 | } | ||
13661 | _ACEOF | ||
13662 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13663 | if { (ac_try="$ac_link" | ||
13664 | case "(($ac_try" in | ||
13665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13666 | *) ac_try_echo=$ac_try;; | ||
13667 | esac | ||
13668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13669 | (eval "$ac_link") 2>conftest.er1 | ||
13670 | ac_status=$? | ||
13671 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13672 | rm -f conftest.er1 | ||
13673 | cat conftest.err >&5 | ||
13674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13675 | (exit $ac_status); } && { | ||
13676 | test -z "$ac_c_werror_flag" || | ||
13677 | test ! -s conftest.err | ||
13678 | } && test -s conftest$ac_exeext && | ||
13679 | $as_test_x conftest$ac_exeext; then | ||
13680 | eval "$as_ac_var=yes" | ||
13681 | else | ||
13682 | echo "$as_me: failed program was:" >&5 | ||
13683 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13684 | |||
13685 | eval "$as_ac_var=no" | ||
13686 | fi | ||
13687 | |||
13688 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13689 | conftest$ac_exeext conftest.$ac_ext | ||
13690 | fi | ||
13691 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13692 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13693 | echo "${ECHO_T}$ac_res" >&6; } | ||
13694 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13695 | cat >>confdefs.h <<_ACEOF | ||
13696 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13697 | _ACEOF | ||
13698 | |||
13699 | else | ||
13700 | { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | ||
13701 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; } | ||
13702 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
13703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13704 | else | ||
13705 | ac_check_lib_save_LIBS=$LIBS | ||
13706 | LIBS="-lc89 $LIBS" | ||
13707 | cat >conftest.$ac_ext <<_ACEOF | ||
13708 | /* confdefs.h. */ | ||
13709 | _ACEOF | ||
13710 | cat confdefs.h >>conftest.$ac_ext | ||
13711 | cat >>conftest.$ac_ext <<_ACEOF | ||
13712 | /* end confdefs.h. */ | ||
13713 | |||
13714 | /* Override any GCC internal prototype to avoid an error. | ||
13715 | Use char because int might match the return type of a GCC | ||
13716 | builtin and then its argument prototype would still apply. */ | ||
13717 | #ifdef __cplusplus | ||
13718 | extern "C" | ||
13719 | #endif | ||
13720 | char utimes (); | ||
13721 | int | ||
13722 | main () | ||
13723 | { | ||
13724 | return utimes (); | ||
13725 | ; | ||
13726 | return 0; | ||
13727 | } | ||
13728 | _ACEOF | ||
13729 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13730 | if { (ac_try="$ac_link" | ||
13731 | case "(($ac_try" in | ||
13732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13733 | *) ac_try_echo=$ac_try;; | ||
13734 | esac | ||
13735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13736 | (eval "$ac_link") 2>conftest.er1 | ||
13737 | ac_status=$? | ||
13738 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13739 | rm -f conftest.er1 | ||
13740 | cat conftest.err >&5 | ||
13741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13742 | (exit $ac_status); } && { | ||
13743 | test -z "$ac_c_werror_flag" || | ||
13744 | test ! -s conftest.err | ||
13745 | } && test -s conftest$ac_exeext && | ||
13746 | $as_test_x conftest$ac_exeext; then | ||
13747 | ac_cv_lib_c89_utimes=yes | ||
13748 | else | ||
13749 | echo "$as_me: failed program was:" >&5 | ||
13750 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13751 | |||
13752 | ac_cv_lib_c89_utimes=no | ||
13753 | fi | ||
13754 | |||
13755 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13756 | conftest$ac_exeext conftest.$ac_ext | ||
13757 | LIBS=$ac_check_lib_save_LIBS | ||
13758 | fi | ||
13759 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | ||
13760 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; } | ||
13761 | if test $ac_cv_lib_c89_utimes = yes; then | ||
13762 | cat >>confdefs.h <<\_ACEOF | ||
13763 | #define HAVE_UTIMES 1 | ||
13764 | _ACEOF | ||
13765 | |||
13766 | LIBS="$LIBS -lc89" | ||
13767 | fi | ||
13768 | |||
13769 | |||
13770 | fi | ||
13771 | done | ||
13772 | |||
13773 | |||
13774 | |||
13775 | |||
13776 | for ac_header in bsd/libutil.h libutil.h | ||
13777 | do | ||
13778 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
13779 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13780 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
13781 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
13782 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13784 | fi | ||
13785 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
13786 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13787 | echo "${ECHO_T}$ac_res" >&6; } | ||
13788 | else | ||
13789 | # Is the header compilable? | ||
13790 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
13791 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
13792 | cat >conftest.$ac_ext <<_ACEOF | ||
13793 | /* confdefs.h. */ | ||
13794 | _ACEOF | ||
13795 | cat confdefs.h >>conftest.$ac_ext | ||
13796 | cat >>conftest.$ac_ext <<_ACEOF | ||
13797 | /* end confdefs.h. */ | ||
13798 | $ac_includes_default | ||
13799 | #include <$ac_header> | ||
13800 | _ACEOF | ||
13801 | rm -f conftest.$ac_objext | ||
13802 | if { (ac_try="$ac_compile" | ||
13803 | case "(($ac_try" in | ||
13804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13805 | *) ac_try_echo=$ac_try;; | ||
13806 | esac | ||
13807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13808 | (eval "$ac_compile") 2>conftest.er1 | ||
13809 | ac_status=$? | ||
13810 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13811 | rm -f conftest.er1 | ||
13812 | cat conftest.err >&5 | ||
13813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13814 | (exit $ac_status); } && { | ||
13815 | test -z "$ac_c_werror_flag" || | ||
13816 | test ! -s conftest.err | ||
13817 | } && test -s conftest.$ac_objext; then | ||
13818 | ac_header_compiler=yes | ||
13819 | else | ||
13820 | echo "$as_me: failed program was:" >&5 | ||
13821 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13822 | |||
13823 | ac_header_compiler=no | ||
13824 | fi | ||
13825 | |||
13826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13827 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
13828 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
13829 | |||
13830 | # Is the header present? | ||
13831 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
13832 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
13833 | cat >conftest.$ac_ext <<_ACEOF | ||
13834 | /* confdefs.h. */ | ||
13835 | _ACEOF | ||
13836 | cat confdefs.h >>conftest.$ac_ext | ||
13837 | cat >>conftest.$ac_ext <<_ACEOF | ||
13838 | /* end confdefs.h. */ | ||
13839 | #include <$ac_header> | ||
13840 | _ACEOF | ||
13841 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
13842 | case "(($ac_try" in | ||
13843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13844 | *) ac_try_echo=$ac_try;; | ||
13845 | esac | ||
13846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13847 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
13848 | ac_status=$? | ||
13849 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13850 | rm -f conftest.er1 | ||
13851 | cat conftest.err >&5 | ||
13852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13853 | (exit $ac_status); } >/dev/null && { | ||
13854 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
13855 | test ! -s conftest.err | ||
13856 | }; then | ||
13857 | ac_header_preproc=yes | ||
13858 | else | ||
13859 | echo "$as_me: failed program was:" >&5 | ||
13860 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13861 | |||
13862 | ac_header_preproc=no | ||
13863 | fi | ||
13864 | |||
13865 | rm -f conftest.err conftest.$ac_ext | ||
13866 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
13867 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
13868 | |||
13869 | # So? What about this header? | ||
13870 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
13871 | yes:no: ) | ||
13872 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
13873 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
13874 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
13875 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
13876 | ac_header_preproc=yes | ||
13877 | ;; | ||
13878 | no:yes:* ) | ||
13879 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
13880 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
13881 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
13882 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
13883 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
13884 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
13885 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
13886 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
13887 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
13888 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
13889 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
13890 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
13891 | ( cat <<\_ASBOX | ||
13892 | ## ------------------------------------------- ## | ||
13893 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
13894 | ## ------------------------------------------- ## | ||
13895 | _ASBOX | ||
13896 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
13897 | ;; | ||
13898 | esac | ||
13899 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
13900 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
13901 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13903 | else | ||
13904 | eval "$as_ac_Header=\$ac_header_preproc" | ||
13905 | fi | ||
13906 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
13907 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13908 | echo "${ECHO_T}$ac_res" >&6; } | ||
13909 | |||
13910 | fi | ||
13911 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
13912 | cat >>confdefs.h <<_ACEOF | ||
13913 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
13914 | _ACEOF | ||
13915 | |||
13916 | fi | ||
13917 | |||
13918 | done | ||
13919 | |||
13920 | { echo "$as_me:$LINENO: checking for library containing fmt_scaled" >&5 | ||
13921 | echo $ECHO_N "checking for library containing fmt_scaled... $ECHO_C" >&6; } | ||
13922 | if test "${ac_cv_search_fmt_scaled+set}" = set; then | ||
13923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13924 | else | ||
13925 | ac_func_search_save_LIBS=$LIBS | ||
13926 | cat >conftest.$ac_ext <<_ACEOF | ||
13927 | /* confdefs.h. */ | ||
13928 | _ACEOF | ||
13929 | cat confdefs.h >>conftest.$ac_ext | ||
13930 | cat >>conftest.$ac_ext <<_ACEOF | ||
13931 | /* end confdefs.h. */ | ||
13932 | |||
13933 | /* Override any GCC internal prototype to avoid an error. | ||
13934 | Use char because int might match the return type of a GCC | ||
13935 | builtin and then its argument prototype would still apply. */ | ||
13936 | #ifdef __cplusplus | ||
13937 | extern "C" | ||
13938 | #endif | ||
13939 | char fmt_scaled (); | ||
13940 | int | ||
13941 | main () | ||
13942 | { | ||
13943 | return fmt_scaled (); | ||
13944 | ; | ||
13945 | return 0; | ||
13946 | } | ||
13947 | _ACEOF | ||
13948 | for ac_lib in '' util bsd; do | ||
13949 | if test -z "$ac_lib"; then | ||
13950 | ac_res="none required" | ||
13951 | else | ||
13952 | ac_res=-l$ac_lib | ||
13953 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13954 | fi | ||
13955 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13956 | if { (ac_try="$ac_link" | ||
13957 | case "(($ac_try" in | ||
13958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13959 | *) ac_try_echo=$ac_try;; | ||
13960 | esac | ||
13961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13962 | (eval "$ac_link") 2>conftest.er1 | ||
13963 | ac_status=$? | ||
13964 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13965 | rm -f conftest.er1 | ||
13966 | cat conftest.err >&5 | ||
13967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13968 | (exit $ac_status); } && { | ||
13969 | test -z "$ac_c_werror_flag" || | ||
13970 | test ! -s conftest.err | ||
13971 | } && test -s conftest$ac_exeext && | ||
13972 | $as_test_x conftest$ac_exeext; then | ||
13973 | ac_cv_search_fmt_scaled=$ac_res | ||
13974 | else | ||
13975 | echo "$as_me: failed program was:" >&5 | ||
13976 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13977 | |||
13978 | |||
13979 | fi | ||
13980 | |||
13981 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13982 | conftest$ac_exeext | ||
13983 | if test "${ac_cv_search_fmt_scaled+set}" = set; then | ||
13984 | break | ||
13985 | fi | ||
13986 | done | ||
13987 | if test "${ac_cv_search_fmt_scaled+set}" = set; then | ||
13988 | : | ||
13989 | else | ||
13990 | ac_cv_search_fmt_scaled=no | ||
13991 | fi | ||
13992 | rm conftest.$ac_ext | ||
13993 | LIBS=$ac_func_search_save_LIBS | ||
13994 | fi | ||
13995 | { echo "$as_me:$LINENO: result: $ac_cv_search_fmt_scaled" >&5 | ||
13996 | echo "${ECHO_T}$ac_cv_search_fmt_scaled" >&6; } | ||
13997 | ac_res=$ac_cv_search_fmt_scaled | ||
13998 | if test "$ac_res" != no; then | ||
13999 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14000 | |||
14001 | fi | ||
14002 | |||
14003 | { echo "$as_me:$LINENO: checking for library containing scan_scaled" >&5 | ||
14004 | echo $ECHO_N "checking for library containing scan_scaled... $ECHO_C" >&6; } | ||
14005 | if test "${ac_cv_search_scan_scaled+set}" = set; then | ||
14006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14007 | else | ||
14008 | ac_func_search_save_LIBS=$LIBS | ||
14009 | cat >conftest.$ac_ext <<_ACEOF | ||
14010 | /* confdefs.h. */ | ||
14011 | _ACEOF | ||
14012 | cat confdefs.h >>conftest.$ac_ext | ||
14013 | cat >>conftest.$ac_ext <<_ACEOF | ||
14014 | /* end confdefs.h. */ | ||
14015 | |||
14016 | /* Override any GCC internal prototype to avoid an error. | ||
14017 | Use char because int might match the return type of a GCC | ||
14018 | builtin and then its argument prototype would still apply. */ | ||
14019 | #ifdef __cplusplus | ||
14020 | extern "C" | ||
14021 | #endif | ||
14022 | char scan_scaled (); | ||
14023 | int | ||
14024 | main () | ||
14025 | { | ||
14026 | return scan_scaled (); | ||
14027 | ; | ||
14028 | return 0; | ||
14029 | } | ||
14030 | _ACEOF | ||
14031 | for ac_lib in '' util bsd; do | ||
14032 | if test -z "$ac_lib"; then | ||
14033 | ac_res="none required" | ||
14034 | else | ||
14035 | ac_res=-l$ac_lib | ||
14036 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14037 | fi | ||
14038 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14039 | if { (ac_try="$ac_link" | ||
14040 | case "(($ac_try" in | ||
14041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14042 | *) ac_try_echo=$ac_try;; | ||
14043 | esac | ||
14044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14045 | (eval "$ac_link") 2>conftest.er1 | ||
14046 | ac_status=$? | ||
14047 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14048 | rm -f conftest.er1 | ||
14049 | cat conftest.err >&5 | ||
14050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14051 | (exit $ac_status); } && { | ||
14052 | test -z "$ac_c_werror_flag" || | ||
14053 | test ! -s conftest.err | ||
14054 | } && test -s conftest$ac_exeext && | ||
14055 | $as_test_x conftest$ac_exeext; then | ||
14056 | ac_cv_search_scan_scaled=$ac_res | ||
14057 | else | ||
14058 | echo "$as_me: failed program was:" >&5 | ||
14059 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14060 | |||
14061 | |||
14062 | fi | ||
14063 | |||
14064 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14065 | conftest$ac_exeext | ||
14066 | if test "${ac_cv_search_scan_scaled+set}" = set; then | ||
14067 | break | ||
14068 | fi | ||
14069 | done | ||
14070 | if test "${ac_cv_search_scan_scaled+set}" = set; then | ||
14071 | : | ||
14072 | else | ||
14073 | ac_cv_search_scan_scaled=no | ||
14074 | fi | ||
14075 | rm conftest.$ac_ext | ||
14076 | LIBS=$ac_func_search_save_LIBS | ||
14077 | fi | ||
14078 | { echo "$as_me:$LINENO: result: $ac_cv_search_scan_scaled" >&5 | ||
14079 | echo "${ECHO_T}$ac_cv_search_scan_scaled" >&6; } | ||
14080 | ac_res=$ac_cv_search_scan_scaled | ||
14081 | if test "$ac_res" != no; then | ||
14082 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14083 | |||
14084 | fi | ||
14085 | |||
14086 | { echo "$as_me:$LINENO: checking for library containing login" >&5 | ||
14087 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; } | ||
14088 | if test "${ac_cv_search_login+set}" = set; then | ||
14089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14090 | else | ||
14091 | ac_func_search_save_LIBS=$LIBS | ||
14092 | cat >conftest.$ac_ext <<_ACEOF | ||
14093 | /* confdefs.h. */ | ||
14094 | _ACEOF | ||
14095 | cat confdefs.h >>conftest.$ac_ext | ||
14096 | cat >>conftest.$ac_ext <<_ACEOF | ||
14097 | /* end confdefs.h. */ | ||
14098 | |||
14099 | /* Override any GCC internal prototype to avoid an error. | ||
14100 | Use char because int might match the return type of a GCC | ||
14101 | builtin and then its argument prototype would still apply. */ | ||
14102 | #ifdef __cplusplus | ||
14103 | extern "C" | ||
14104 | #endif | ||
14105 | char login (); | ||
14106 | int | ||
14107 | main () | ||
14108 | { | ||
14109 | return login (); | ||
14110 | ; | ||
14111 | return 0; | ||
14112 | } | ||
14113 | _ACEOF | ||
14114 | for ac_lib in '' util bsd; do | ||
14115 | if test -z "$ac_lib"; then | ||
14116 | ac_res="none required" | ||
14117 | else | ||
14118 | ac_res=-l$ac_lib | ||
14119 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14120 | fi | ||
14121 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14122 | if { (ac_try="$ac_link" | ||
14123 | case "(($ac_try" in | ||
14124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14125 | *) ac_try_echo=$ac_try;; | ||
14126 | esac | ||
14127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14128 | (eval "$ac_link") 2>conftest.er1 | ||
14129 | ac_status=$? | ||
14130 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14131 | rm -f conftest.er1 | ||
14132 | cat conftest.err >&5 | ||
14133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14134 | (exit $ac_status); } && { | ||
14135 | test -z "$ac_c_werror_flag" || | ||
14136 | test ! -s conftest.err | ||
14137 | } && test -s conftest$ac_exeext && | ||
14138 | $as_test_x conftest$ac_exeext; then | ||
14139 | ac_cv_search_login=$ac_res | ||
14140 | else | ||
14141 | echo "$as_me: failed program was:" >&5 | ||
14142 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14143 | |||
14144 | |||
14145 | fi | ||
14146 | |||
14147 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14148 | conftest$ac_exeext | ||
14149 | if test "${ac_cv_search_login+set}" = set; then | ||
14150 | break | ||
14151 | fi | ||
14152 | done | ||
14153 | if test "${ac_cv_search_login+set}" = set; then | ||
14154 | : | ||
14155 | else | ||
14156 | ac_cv_search_login=no | ||
14157 | fi | ||
14158 | rm conftest.$ac_ext | ||
14159 | LIBS=$ac_func_search_save_LIBS | ||
14160 | fi | ||
14161 | { echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | ||
14162 | echo "${ECHO_T}$ac_cv_search_login" >&6; } | ||
14163 | ac_res=$ac_cv_search_login | ||
14164 | if test "$ac_res" != no; then | ||
14165 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14166 | |||
14167 | fi | ||
14168 | |||
14169 | { echo "$as_me:$LINENO: checking for library containing logout" >&5 | ||
14170 | echo $ECHO_N "checking for library containing logout... $ECHO_C" >&6; } | ||
14171 | if test "${ac_cv_search_logout+set}" = set; then | ||
14172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14173 | else | ||
14174 | ac_func_search_save_LIBS=$LIBS | ||
14175 | cat >conftest.$ac_ext <<_ACEOF | ||
14176 | /* confdefs.h. */ | ||
14177 | _ACEOF | ||
14178 | cat confdefs.h >>conftest.$ac_ext | ||
14179 | cat >>conftest.$ac_ext <<_ACEOF | ||
14180 | /* end confdefs.h. */ | ||
14181 | |||
14182 | /* Override any GCC internal prototype to avoid an error. | ||
14183 | Use char because int might match the return type of a GCC | ||
14184 | builtin and then its argument prototype would still apply. */ | ||
14185 | #ifdef __cplusplus | ||
14186 | extern "C" | ||
14187 | #endif | ||
14188 | char logout (); | ||
14189 | int | ||
14190 | main () | ||
14191 | { | ||
14192 | return logout (); | ||
14193 | ; | ||
14194 | return 0; | ||
14195 | } | ||
14196 | _ACEOF | ||
14197 | for ac_lib in '' util bsd; do | ||
14198 | if test -z "$ac_lib"; then | ||
14199 | ac_res="none required" | ||
14200 | else | ||
14201 | ac_res=-l$ac_lib | ||
14202 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14203 | fi | ||
14204 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14205 | if { (ac_try="$ac_link" | ||
14206 | case "(($ac_try" in | ||
14207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14208 | *) ac_try_echo=$ac_try;; | ||
14209 | esac | ||
14210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14211 | (eval "$ac_link") 2>conftest.er1 | ||
14212 | ac_status=$? | ||
14213 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14214 | rm -f conftest.er1 | ||
14215 | cat conftest.err >&5 | ||
14216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14217 | (exit $ac_status); } && { | ||
14218 | test -z "$ac_c_werror_flag" || | ||
14219 | test ! -s conftest.err | ||
14220 | } && test -s conftest$ac_exeext && | ||
14221 | $as_test_x conftest$ac_exeext; then | ||
14222 | ac_cv_search_logout=$ac_res | ||
14223 | else | ||
14224 | echo "$as_me: failed program was:" >&5 | ||
14225 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14226 | |||
14227 | |||
14228 | fi | ||
14229 | |||
14230 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14231 | conftest$ac_exeext | ||
14232 | if test "${ac_cv_search_logout+set}" = set; then | ||
14233 | break | ||
14234 | fi | ||
14235 | done | ||
14236 | if test "${ac_cv_search_logout+set}" = set; then | ||
14237 | : | ||
14238 | else | ||
14239 | ac_cv_search_logout=no | ||
14240 | fi | ||
14241 | rm conftest.$ac_ext | ||
14242 | LIBS=$ac_func_search_save_LIBS | ||
14243 | fi | ||
14244 | { echo "$as_me:$LINENO: result: $ac_cv_search_logout" >&5 | ||
14245 | echo "${ECHO_T}$ac_cv_search_logout" >&6; } | ||
14246 | ac_res=$ac_cv_search_logout | ||
14247 | if test "$ac_res" != no; then | ||
14248 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14249 | |||
14250 | fi | ||
14251 | |||
14252 | { echo "$as_me:$LINENO: checking for library containing logwtmp" >&5 | ||
14253 | echo $ECHO_N "checking for library containing logwtmp... $ECHO_C" >&6; } | ||
14254 | if test "${ac_cv_search_logwtmp+set}" = set; then | ||
14255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14256 | else | ||
14257 | ac_func_search_save_LIBS=$LIBS | ||
14258 | cat >conftest.$ac_ext <<_ACEOF | ||
14259 | /* confdefs.h. */ | ||
14260 | _ACEOF | ||
14261 | cat confdefs.h >>conftest.$ac_ext | ||
14262 | cat >>conftest.$ac_ext <<_ACEOF | ||
14263 | /* end confdefs.h. */ | ||
14264 | |||
14265 | /* Override any GCC internal prototype to avoid an error. | ||
14266 | Use char because int might match the return type of a GCC | ||
14267 | builtin and then its argument prototype would still apply. */ | ||
14268 | #ifdef __cplusplus | ||
14269 | extern "C" | ||
14270 | #endif | ||
14271 | char logwtmp (); | ||
14272 | int | ||
14273 | main () | ||
14274 | { | ||
14275 | return logwtmp (); | ||
14276 | ; | ||
14277 | return 0; | ||
14278 | } | ||
14279 | _ACEOF | ||
14280 | for ac_lib in '' util bsd; do | ||
14281 | if test -z "$ac_lib"; then | ||
14282 | ac_res="none required" | ||
14283 | else | ||
14284 | ac_res=-l$ac_lib | ||
14285 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14286 | fi | ||
14287 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14288 | if { (ac_try="$ac_link" | ||
14289 | case "(($ac_try" in | ||
14290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14291 | *) ac_try_echo=$ac_try;; | ||
14292 | esac | ||
14293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14294 | (eval "$ac_link") 2>conftest.er1 | ||
14295 | ac_status=$? | ||
14296 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14297 | rm -f conftest.er1 | ||
14298 | cat conftest.err >&5 | ||
14299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14300 | (exit $ac_status); } && { | ||
14301 | test -z "$ac_c_werror_flag" || | ||
14302 | test ! -s conftest.err | ||
14303 | } && test -s conftest$ac_exeext && | ||
14304 | $as_test_x conftest$ac_exeext; then | ||
14305 | ac_cv_search_logwtmp=$ac_res | ||
14306 | else | ||
14307 | echo "$as_me: failed program was:" >&5 | ||
14308 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14309 | |||
14310 | |||
14311 | fi | ||
14312 | |||
14313 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14314 | conftest$ac_exeext | ||
14315 | if test "${ac_cv_search_logwtmp+set}" = set; then | ||
14316 | break | ||
14317 | fi | ||
14318 | done | ||
14319 | if test "${ac_cv_search_logwtmp+set}" = set; then | ||
14320 | : | ||
14321 | else | ||
14322 | ac_cv_search_logwtmp=no | ||
14323 | fi | ||
14324 | rm conftest.$ac_ext | ||
14325 | LIBS=$ac_func_search_save_LIBS | ||
14326 | fi | ||
14327 | { echo "$as_me:$LINENO: result: $ac_cv_search_logwtmp" >&5 | ||
14328 | echo "${ECHO_T}$ac_cv_search_logwtmp" >&6; } | ||
14329 | ac_res=$ac_cv_search_logwtmp | ||
14330 | if test "$ac_res" != no; then | ||
14331 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14332 | |||
14333 | fi | ||
14334 | |||
14335 | { echo "$as_me:$LINENO: checking for library containing openpty" >&5 | ||
14336 | echo $ECHO_N "checking for library containing openpty... $ECHO_C" >&6; } | ||
14337 | if test "${ac_cv_search_openpty+set}" = set; then | ||
14338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14339 | else | ||
14340 | ac_func_search_save_LIBS=$LIBS | ||
14341 | cat >conftest.$ac_ext <<_ACEOF | ||
14342 | /* confdefs.h. */ | ||
14343 | _ACEOF | ||
14344 | cat confdefs.h >>conftest.$ac_ext | ||
14345 | cat >>conftest.$ac_ext <<_ACEOF | ||
14346 | /* end confdefs.h. */ | ||
14347 | |||
14348 | /* Override any GCC internal prototype to avoid an error. | ||
14349 | Use char because int might match the return type of a GCC | ||
14350 | builtin and then its argument prototype would still apply. */ | ||
14351 | #ifdef __cplusplus | ||
14352 | extern "C" | ||
14353 | #endif | ||
14354 | char openpty (); | ||
14355 | int | ||
14356 | main () | ||
14357 | { | ||
14358 | return openpty (); | ||
14359 | ; | ||
14360 | return 0; | ||
14361 | } | ||
14362 | _ACEOF | ||
14363 | for ac_lib in '' util bsd; do | ||
14364 | if test -z "$ac_lib"; then | ||
14365 | ac_res="none required" | ||
14366 | else | ||
14367 | ac_res=-l$ac_lib | ||
14368 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14369 | fi | ||
14370 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14371 | if { (ac_try="$ac_link" | ||
14372 | case "(($ac_try" in | ||
14373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14374 | *) ac_try_echo=$ac_try;; | ||
14375 | esac | ||
14376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14377 | (eval "$ac_link") 2>conftest.er1 | ||
14378 | ac_status=$? | ||
14379 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14380 | rm -f conftest.er1 | ||
14381 | cat conftest.err >&5 | ||
14382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14383 | (exit $ac_status); } && { | ||
14384 | test -z "$ac_c_werror_flag" || | ||
14385 | test ! -s conftest.err | ||
14386 | } && test -s conftest$ac_exeext && | ||
14387 | $as_test_x conftest$ac_exeext; then | ||
14388 | ac_cv_search_openpty=$ac_res | ||
14389 | else | ||
14390 | echo "$as_me: failed program was:" >&5 | ||
14391 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14392 | |||
14393 | |||
14394 | fi | ||
14395 | |||
14396 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14397 | conftest$ac_exeext | ||
14398 | if test "${ac_cv_search_openpty+set}" = set; then | ||
14399 | break | ||
14400 | fi | ||
14401 | done | ||
14402 | if test "${ac_cv_search_openpty+set}" = set; then | ||
14403 | : | ||
14404 | else | ||
14405 | ac_cv_search_openpty=no | ||
14406 | fi | ||
14407 | rm conftest.$ac_ext | ||
14408 | LIBS=$ac_func_search_save_LIBS | ||
14409 | fi | ||
14410 | { echo "$as_me:$LINENO: result: $ac_cv_search_openpty" >&5 | ||
14411 | echo "${ECHO_T}$ac_cv_search_openpty" >&6; } | ||
14412 | ac_res=$ac_cv_search_openpty | ||
14413 | if test "$ac_res" != no; then | ||
14414 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14415 | |||
14416 | fi | ||
14417 | |||
14418 | { echo "$as_me:$LINENO: checking for library containing updwtmp" >&5 | ||
14419 | echo $ECHO_N "checking for library containing updwtmp... $ECHO_C" >&6; } | ||
14420 | if test "${ac_cv_search_updwtmp+set}" = set; then | ||
14421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14422 | else | ||
14423 | ac_func_search_save_LIBS=$LIBS | ||
14424 | cat >conftest.$ac_ext <<_ACEOF | ||
14425 | /* confdefs.h. */ | ||
14426 | _ACEOF | ||
14427 | cat confdefs.h >>conftest.$ac_ext | ||
14428 | cat >>conftest.$ac_ext <<_ACEOF | ||
14429 | /* end confdefs.h. */ | ||
14430 | |||
14431 | /* Override any GCC internal prototype to avoid an error. | ||
14432 | Use char because int might match the return type of a GCC | ||
14433 | builtin and then its argument prototype would still apply. */ | ||
14434 | #ifdef __cplusplus | ||
14435 | extern "C" | ||
14436 | #endif | ||
14437 | char updwtmp (); | ||
14438 | int | ||
14439 | main () | ||
14440 | { | ||
14441 | return updwtmp (); | ||
14442 | ; | ||
14443 | return 0; | ||
14444 | } | ||
14445 | _ACEOF | ||
14446 | for ac_lib in '' util bsd; do | ||
14447 | if test -z "$ac_lib"; then | ||
14448 | ac_res="none required" | ||
14449 | else | ||
14450 | ac_res=-l$ac_lib | ||
14451 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14452 | fi | ||
14453 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14454 | if { (ac_try="$ac_link" | ||
14455 | case "(($ac_try" in | ||
14456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14457 | *) ac_try_echo=$ac_try;; | ||
14458 | esac | ||
14459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14460 | (eval "$ac_link") 2>conftest.er1 | ||
14461 | ac_status=$? | ||
14462 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14463 | rm -f conftest.er1 | ||
14464 | cat conftest.err >&5 | ||
14465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14466 | (exit $ac_status); } && { | ||
14467 | test -z "$ac_c_werror_flag" || | ||
14468 | test ! -s conftest.err | ||
14469 | } && test -s conftest$ac_exeext && | ||
14470 | $as_test_x conftest$ac_exeext; then | ||
14471 | ac_cv_search_updwtmp=$ac_res | ||
14472 | else | ||
14473 | echo "$as_me: failed program was:" >&5 | ||
14474 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14475 | |||
14476 | |||
14477 | fi | ||
14478 | |||
14479 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14480 | conftest$ac_exeext | ||
14481 | if test "${ac_cv_search_updwtmp+set}" = set; then | ||
14482 | break | ||
14483 | fi | ||
14484 | done | ||
14485 | if test "${ac_cv_search_updwtmp+set}" = set; then | ||
14486 | : | ||
14487 | else | ||
14488 | ac_cv_search_updwtmp=no | ||
14489 | fi | ||
14490 | rm conftest.$ac_ext | ||
14491 | LIBS=$ac_func_search_save_LIBS | ||
14492 | fi | ||
14493 | { echo "$as_me:$LINENO: result: $ac_cv_search_updwtmp" >&5 | ||
14494 | echo "${ECHO_T}$ac_cv_search_updwtmp" >&6; } | ||
14495 | ac_res=$ac_cv_search_updwtmp | ||
14496 | if test "$ac_res" != no; then | ||
14497 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14498 | |||
14499 | fi | ||
14500 | |||
14501 | |||
14502 | |||
14503 | |||
14504 | |||
14505 | |||
14506 | |||
14507 | |||
14508 | for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp | ||
14509 | do | ||
14510 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14511 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14512 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14513 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14515 | else | ||
14516 | cat >conftest.$ac_ext <<_ACEOF | ||
14517 | /* confdefs.h. */ | ||
14518 | _ACEOF | ||
14519 | cat confdefs.h >>conftest.$ac_ext | ||
14520 | cat >>conftest.$ac_ext <<_ACEOF | ||
14521 | /* end confdefs.h. */ | ||
14522 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14523 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14524 | #define $ac_func innocuous_$ac_func | ||
14525 | |||
14526 | /* System header to define __stub macros and hopefully few prototypes, | ||
14527 | which can conflict with char $ac_func (); below. | ||
14528 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14529 | <limits.h> exists even on freestanding compilers. */ | ||
14530 | |||
14531 | #ifdef __STDC__ | ||
14532 | # include <limits.h> | ||
14533 | #else | ||
14534 | # include <assert.h> | ||
14535 | #endif | ||
14536 | |||
14537 | #undef $ac_func | ||
14538 | |||
14539 | /* Override any GCC internal prototype to avoid an error. | ||
14540 | Use char because int might match the return type of a GCC | ||
14541 | builtin and then its argument prototype would still apply. */ | ||
14542 | #ifdef __cplusplus | ||
14543 | extern "C" | ||
14544 | #endif | ||
14545 | char $ac_func (); | ||
14546 | /* The GNU C library defines this for functions which it implements | ||
14547 | to always fail with ENOSYS. Some functions are actually named | ||
14548 | something starting with __ and the normal name is an alias. */ | ||
14549 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14550 | choke me | ||
14551 | #endif | ||
14552 | |||
14553 | int | ||
14554 | main () | ||
14555 | { | ||
14556 | return $ac_func (); | ||
14557 | ; | ||
14558 | return 0; | ||
14559 | } | ||
14560 | _ACEOF | ||
14561 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14562 | if { (ac_try="$ac_link" | ||
14563 | case "(($ac_try" in | ||
14564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14565 | *) ac_try_echo=$ac_try;; | ||
14566 | esac | ||
14567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14568 | (eval "$ac_link") 2>conftest.er1 | ||
14569 | ac_status=$? | ||
14570 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14571 | rm -f conftest.er1 | ||
14572 | cat conftest.err >&5 | ||
14573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14574 | (exit $ac_status); } && { | ||
14575 | test -z "$ac_c_werror_flag" || | ||
14576 | test ! -s conftest.err | ||
14577 | } && test -s conftest$ac_exeext && | ||
14578 | $as_test_x conftest$ac_exeext; then | ||
14579 | eval "$as_ac_var=yes" | ||
14580 | else | ||
14581 | echo "$as_me: failed program was:" >&5 | ||
14582 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14583 | |||
14584 | eval "$as_ac_var=no" | ||
14585 | fi | ||
14586 | |||
14587 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14588 | conftest$ac_exeext conftest.$ac_ext | ||
14589 | fi | ||
14590 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14591 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14592 | echo "${ECHO_T}$ac_res" >&6; } | ||
14593 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14594 | cat >>confdefs.h <<_ACEOF | ||
14595 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14596 | _ACEOF | ||
14597 | |||
14598 | fi | ||
14599 | done | ||
14600 | |||
14601 | |||
14602 | # On some platforms, inet_ntop may be found in libresolv or libnsl. | ||
14603 | { echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5 | ||
14604 | echo $ECHO_N "checking for library containing inet_ntop... $ECHO_C" >&6; } | ||
14605 | if test "${ac_cv_search_inet_ntop+set}" = set; then | ||
14606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14607 | else | ||
14608 | ac_func_search_save_LIBS=$LIBS | ||
14609 | cat >conftest.$ac_ext <<_ACEOF | ||
14610 | /* confdefs.h. */ | ||
14611 | _ACEOF | ||
14612 | cat confdefs.h >>conftest.$ac_ext | ||
14613 | cat >>conftest.$ac_ext <<_ACEOF | ||
14614 | /* end confdefs.h. */ | ||
14615 | |||
14616 | /* Override any GCC internal prototype to avoid an error. | ||
14617 | Use char because int might match the return type of a GCC | ||
14618 | builtin and then its argument prototype would still apply. */ | ||
14619 | #ifdef __cplusplus | ||
14620 | extern "C" | ||
14621 | #endif | ||
14622 | char inet_ntop (); | ||
14623 | int | ||
14624 | main () | ||
14625 | { | ||
14626 | return inet_ntop (); | ||
14627 | ; | ||
14628 | return 0; | ||
14629 | } | ||
14630 | _ACEOF | ||
14631 | for ac_lib in '' resolv nsl; do | ||
14632 | if test -z "$ac_lib"; then | ||
14633 | ac_res="none required" | ||
14634 | else | ||
14635 | ac_res=-l$ac_lib | ||
14636 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14637 | fi | ||
14638 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14639 | if { (ac_try="$ac_link" | ||
14640 | case "(($ac_try" in | ||
14641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14642 | *) ac_try_echo=$ac_try;; | ||
14643 | esac | ||
14644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14645 | (eval "$ac_link") 2>conftest.er1 | ||
14646 | ac_status=$? | ||
14647 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14648 | rm -f conftest.er1 | ||
14649 | cat conftest.err >&5 | ||
14650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14651 | (exit $ac_status); } && { | ||
14652 | test -z "$ac_c_werror_flag" || | ||
14653 | test ! -s conftest.err | ||
14654 | } && test -s conftest$ac_exeext && | ||
14655 | $as_test_x conftest$ac_exeext; then | ||
14656 | ac_cv_search_inet_ntop=$ac_res | ||
14657 | else | ||
14658 | echo "$as_me: failed program was:" >&5 | ||
14659 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14660 | |||
14661 | |||
14662 | fi | ||
14663 | |||
14664 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14665 | conftest$ac_exeext | ||
14666 | if test "${ac_cv_search_inet_ntop+set}" = set; then | ||
14667 | break | ||
14668 | fi | ||
14669 | done | ||
14670 | if test "${ac_cv_search_inet_ntop+set}" = set; then | ||
14671 | : | ||
14672 | else | ||
14673 | ac_cv_search_inet_ntop=no | ||
14674 | fi | ||
14675 | rm conftest.$ac_ext | ||
14676 | LIBS=$ac_func_search_save_LIBS | ||
14677 | fi | ||
14678 | { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5 | ||
14679 | echo "${ECHO_T}$ac_cv_search_inet_ntop" >&6; } | ||
14680 | ac_res=$ac_cv_search_inet_ntop | ||
14681 | if test "$ac_res" != no; then | ||
14682 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14683 | |||
14684 | fi | ||
14685 | |||
14686 | |||
14687 | |||
14688 | for ac_func in strftime | ||
14689 | do | ||
14690 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14691 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14692 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14693 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14695 | else | ||
14696 | cat >conftest.$ac_ext <<_ACEOF | ||
14697 | /* confdefs.h. */ | ||
14698 | _ACEOF | ||
14699 | cat confdefs.h >>conftest.$ac_ext | ||
14700 | cat >>conftest.$ac_ext <<_ACEOF | ||
14701 | /* end confdefs.h. */ | ||
14702 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14703 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14704 | #define $ac_func innocuous_$ac_func | ||
14705 | |||
14706 | /* System header to define __stub macros and hopefully few prototypes, | ||
14707 | which can conflict with char $ac_func (); below. | ||
14708 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14709 | <limits.h> exists even on freestanding compilers. */ | ||
14710 | |||
14711 | #ifdef __STDC__ | ||
14712 | # include <limits.h> | ||
14713 | #else | ||
14714 | # include <assert.h> | ||
14715 | #endif | ||
14716 | |||
14717 | #undef $ac_func | ||
14718 | |||
14719 | /* Override any GCC internal prototype to avoid an error. | ||
14720 | Use char because int might match the return type of a GCC | ||
14721 | builtin and then its argument prototype would still apply. */ | ||
14722 | #ifdef __cplusplus | ||
14723 | extern "C" | ||
14724 | #endif | ||
14725 | char $ac_func (); | ||
14726 | /* The GNU C library defines this for functions which it implements | ||
14727 | to always fail with ENOSYS. Some functions are actually named | ||
14728 | something starting with __ and the normal name is an alias. */ | ||
14729 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14730 | choke me | ||
14731 | #endif | ||
14732 | |||
14733 | int | ||
14734 | main () | ||
14735 | { | ||
14736 | return $ac_func (); | ||
14737 | ; | ||
14738 | return 0; | ||
14739 | } | ||
14740 | _ACEOF | ||
14741 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14742 | if { (ac_try="$ac_link" | ||
14743 | case "(($ac_try" in | ||
14744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14745 | *) ac_try_echo=$ac_try;; | ||
14746 | esac | ||
14747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14748 | (eval "$ac_link") 2>conftest.er1 | ||
14749 | ac_status=$? | ||
14750 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14751 | rm -f conftest.er1 | ||
14752 | cat conftest.err >&5 | ||
14753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14754 | (exit $ac_status); } && { | ||
14755 | test -z "$ac_c_werror_flag" || | ||
14756 | test ! -s conftest.err | ||
14757 | } && test -s conftest$ac_exeext && | ||
14758 | $as_test_x conftest$ac_exeext; then | ||
14759 | eval "$as_ac_var=yes" | ||
14760 | else | ||
14761 | echo "$as_me: failed program was:" >&5 | ||
14762 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14763 | |||
14764 | eval "$as_ac_var=no" | ||
14765 | fi | ||
14766 | |||
14767 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14768 | conftest$ac_exeext conftest.$ac_ext | ||
14769 | fi | ||
14770 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14771 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14772 | echo "${ECHO_T}$ac_res" >&6; } | ||
14773 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14774 | cat >>confdefs.h <<_ACEOF | ||
14775 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14776 | _ACEOF | ||
14777 | |||
14778 | else | ||
14779 | # strftime is in -lintl on SCO UNIX. | ||
14780 | { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | ||
14781 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } | ||
14782 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
14783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14784 | else | ||
14785 | ac_check_lib_save_LIBS=$LIBS | ||
14786 | LIBS="-lintl $LIBS" | ||
14787 | cat >conftest.$ac_ext <<_ACEOF | ||
14788 | /* confdefs.h. */ | ||
14789 | _ACEOF | ||
14790 | cat confdefs.h >>conftest.$ac_ext | ||
14791 | cat >>conftest.$ac_ext <<_ACEOF | ||
14792 | /* end confdefs.h. */ | ||
14793 | |||
14794 | /* Override any GCC internal prototype to avoid an error. | ||
14795 | Use char because int might match the return type of a GCC | ||
14796 | builtin and then its argument prototype would still apply. */ | ||
14797 | #ifdef __cplusplus | ||
14798 | extern "C" | ||
14799 | #endif | ||
14800 | char strftime (); | ||
14801 | int | ||
14802 | main () | ||
14803 | { | ||
14804 | return strftime (); | ||
14805 | ; | ||
14806 | return 0; | ||
14807 | } | ||
14808 | _ACEOF | ||
14809 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14810 | if { (ac_try="$ac_link" | ||
14811 | case "(($ac_try" in | ||
14812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14813 | *) ac_try_echo=$ac_try;; | ||
14814 | esac | ||
14815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14816 | (eval "$ac_link") 2>conftest.er1 | ||
14817 | ac_status=$? | ||
14818 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14819 | rm -f conftest.er1 | ||
14820 | cat conftest.err >&5 | ||
14821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14822 | (exit $ac_status); } && { | ||
14823 | test -z "$ac_c_werror_flag" || | ||
14824 | test ! -s conftest.err | ||
14825 | } && test -s conftest$ac_exeext && | ||
14826 | $as_test_x conftest$ac_exeext; then | ||
14827 | ac_cv_lib_intl_strftime=yes | ||
14828 | else | ||
14829 | echo "$as_me: failed program was:" >&5 | ||
14830 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14831 | |||
14832 | ac_cv_lib_intl_strftime=no | ||
14833 | fi | ||
14834 | |||
14835 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14836 | conftest$ac_exeext conftest.$ac_ext | ||
14837 | LIBS=$ac_check_lib_save_LIBS | ||
14838 | fi | ||
14839 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | ||
14840 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } | ||
14841 | if test $ac_cv_lib_intl_strftime = yes; then | ||
14842 | cat >>confdefs.h <<\_ACEOF | ||
14843 | #define HAVE_STRFTIME 1 | ||
14844 | _ACEOF | ||
14845 | |||
14846 | LIBS="-lintl $LIBS" | ||
14847 | fi | ||
14848 | |||
14849 | fi | ||
14850 | done | ||
14851 | |||
14852 | |||
14853 | # Check for ALTDIRFUNC glob() extension | ||
14854 | { echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | ||
14855 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; } | ||
14856 | cat >conftest.$ac_ext <<_ACEOF | ||
14857 | /* confdefs.h. */ | ||
14858 | _ACEOF | ||
14859 | cat confdefs.h >>conftest.$ac_ext | ||
14860 | cat >>conftest.$ac_ext <<_ACEOF | ||
14861 | /* end confdefs.h. */ | ||
14862 | |||
14863 | #include <glob.h> | ||
14864 | #ifdef GLOB_ALTDIRFUNC | ||
14865 | FOUNDIT | ||
14866 | #endif | ||
14867 | |||
14868 | _ACEOF | ||
14869 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14870 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
14871 | |||
14872 | |||
14873 | cat >>confdefs.h <<\_ACEOF | ||
14874 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
14875 | _ACEOF | ||
14876 | |||
14877 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14878 | echo "${ECHO_T}yes" >&6; } | ||
14879 | |||
14880 | else | ||
14881 | |||
14882 | { echo "$as_me:$LINENO: result: no" >&5 | ||
14883 | echo "${ECHO_T}no" >&6; } | ||
14884 | |||
14885 | |||
14886 | fi | ||
14887 | rm -f conftest* | ||
14888 | |||
14889 | |||
14890 | # Check for g.gl_matchc glob() extension | ||
14891 | { echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | ||
14892 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; } | ||
14893 | cat >conftest.$ac_ext <<_ACEOF | ||
14894 | /* confdefs.h. */ | ||
14895 | _ACEOF | ||
14896 | cat confdefs.h >>conftest.$ac_ext | ||
14897 | cat >>conftest.$ac_ext <<_ACEOF | ||
14898 | /* end confdefs.h. */ | ||
14899 | #include <glob.h> | ||
14900 | int | ||
14901 | main () | ||
14902 | { | ||
14903 | glob_t g; g.gl_matchc = 1; | ||
14904 | ; | ||
14905 | return 0; | ||
14906 | } | ||
14907 | _ACEOF | ||
14908 | rm -f conftest.$ac_objext | ||
14909 | if { (ac_try="$ac_compile" | ||
14910 | case "(($ac_try" in | ||
14911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14912 | *) ac_try_echo=$ac_try;; | ||
14913 | esac | ||
14914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14915 | (eval "$ac_compile") 2>conftest.er1 | ||
14916 | ac_status=$? | ||
14917 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14918 | rm -f conftest.er1 | ||
14919 | cat conftest.err >&5 | ||
14920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14921 | (exit $ac_status); } && { | ||
14922 | test -z "$ac_c_werror_flag" || | ||
14923 | test ! -s conftest.err | ||
14924 | } && test -s conftest.$ac_objext; then | ||
14925 | |||
14926 | |||
14927 | cat >>confdefs.h <<\_ACEOF | ||
14928 | #define GLOB_HAS_GL_MATCHC 1 | ||
14929 | _ACEOF | ||
14930 | |||
14931 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14932 | echo "${ECHO_T}yes" >&6; } | ||
14933 | |||
14934 | else | ||
14935 | echo "$as_me: failed program was:" >&5 | ||
14936 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14937 | |||
14938 | |||
14939 | { echo "$as_me:$LINENO: result: no" >&5 | ||
14940 | echo "${ECHO_T}no" >&6; } | ||
14941 | |||
14942 | fi | ||
14943 | |||
14944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14945 | |||
14946 | # Check for g.gl_statv glob() extension | ||
14947 | { echo "$as_me:$LINENO: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5 | ||
14948 | echo $ECHO_N "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... $ECHO_C" >&6; } | ||
14949 | cat >conftest.$ac_ext <<_ACEOF | ||
14950 | /* confdefs.h. */ | ||
14951 | _ACEOF | ||
14952 | cat confdefs.h >>conftest.$ac_ext | ||
14953 | cat >>conftest.$ac_ext <<_ACEOF | ||
14954 | /* end confdefs.h. */ | ||
14955 | #include <glob.h> | ||
14956 | int | ||
14957 | main () | ||
14958 | { | ||
14959 | |||
14960 | #ifndef GLOB_KEEPSTAT | ||
14961 | #error "glob does not support GLOB_KEEPSTAT extension" | ||
14962 | #endif | ||
14963 | glob_t g; | ||
14964 | g.gl_statv = NULL; | ||
14965 | |||
14966 | ; | ||
14967 | return 0; | ||
14968 | } | ||
14969 | _ACEOF | ||
14970 | rm -f conftest.$ac_objext | ||
14971 | if { (ac_try="$ac_compile" | ||
14972 | case "(($ac_try" in | ||
14973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14974 | *) ac_try_echo=$ac_try;; | ||
14975 | esac | ||
14976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14977 | (eval "$ac_compile") 2>conftest.er1 | ||
14978 | ac_status=$? | ||
14979 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14980 | rm -f conftest.er1 | ||
14981 | cat conftest.err >&5 | ||
14982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14983 | (exit $ac_status); } && { | ||
14984 | test -z "$ac_c_werror_flag" || | ||
14985 | test ! -s conftest.err | ||
14986 | } && test -s conftest.$ac_objext; then | ||
14987 | |||
14988 | |||
14989 | cat >>confdefs.h <<\_ACEOF | ||
14990 | #define GLOB_HAS_GL_STATV 1 | ||
14991 | _ACEOF | ||
14992 | |||
14993 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14994 | echo "${ECHO_T}yes" >&6; } | ||
14995 | |||
14996 | else | ||
14997 | echo "$as_me: failed program was:" >&5 | ||
14998 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14999 | |||
15000 | |||
15001 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15002 | echo "${ECHO_T}no" >&6; } | ||
15003 | |||
15004 | |||
15005 | fi | ||
15006 | |||
15007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15008 | |||
15009 | { echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5 | ||
15010 | echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; } | ||
15011 | if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then | ||
15012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15013 | else | ||
15014 | cat >conftest.$ac_ext <<_ACEOF | ||
15015 | /* confdefs.h. */ | ||
15016 | _ACEOF | ||
15017 | cat confdefs.h >>conftest.$ac_ext | ||
15018 | cat >>conftest.$ac_ext <<_ACEOF | ||
15019 | /* end confdefs.h. */ | ||
15020 | #include <glob.h> | ||
15021 | |||
15022 | int | ||
15023 | main () | ||
15024 | { | ||
15025 | #ifndef GLOB_NOMATCH | ||
15026 | (void) GLOB_NOMATCH; | ||
15027 | #endif | ||
15028 | |||
15029 | ; | ||
15030 | return 0; | ||
15031 | } | ||
15032 | _ACEOF | ||
15033 | rm -f conftest.$ac_objext | ||
15034 | if { (ac_try="$ac_compile" | ||
15035 | case "(($ac_try" in | ||
15036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15037 | *) ac_try_echo=$ac_try;; | ||
15038 | esac | ||
15039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15040 | (eval "$ac_compile") 2>conftest.er1 | ||
15041 | ac_status=$? | ||
15042 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15043 | rm -f conftest.er1 | ||
15044 | cat conftest.err >&5 | ||
15045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15046 | (exit $ac_status); } && { | ||
15047 | test -z "$ac_c_werror_flag" || | ||
15048 | test ! -s conftest.err | ||
15049 | } && test -s conftest.$ac_objext; then | ||
15050 | ac_cv_have_decl_GLOB_NOMATCH=yes | ||
15051 | else | ||
15052 | echo "$as_me: failed program was:" >&5 | ||
15053 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15054 | |||
15055 | ac_cv_have_decl_GLOB_NOMATCH=no | ||
15056 | fi | ||
15057 | |||
15058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15059 | fi | ||
15060 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5 | ||
15061 | echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; } | ||
15062 | if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then | ||
15063 | |||
15064 | cat >>confdefs.h <<_ACEOF | ||
15065 | #define HAVE_DECL_GLOB_NOMATCH 1 | ||
15066 | _ACEOF | ||
15067 | |||
15068 | |||
15069 | else | ||
15070 | cat >>confdefs.h <<_ACEOF | ||
15071 | #define HAVE_DECL_GLOB_NOMATCH 0 | ||
15072 | _ACEOF | ||
15073 | |||
15074 | |||
15075 | fi | ||
15076 | |||
15077 | |||
15078 | |||
15079 | { echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | ||
15080 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; } | ||
15081 | if test "$cross_compiling" = yes; then | ||
15082 | |||
15083 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
15084 | echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
15085 | cat >>confdefs.h <<\_ACEOF | ||
15086 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
15087 | _ACEOF | ||
15088 | |||
15089 | |||
15090 | |||
15091 | else | ||
15092 | cat >conftest.$ac_ext <<_ACEOF | ||
15093 | /* confdefs.h. */ | ||
15094 | _ACEOF | ||
15095 | cat confdefs.h >>conftest.$ac_ext | ||
15096 | cat >>conftest.$ac_ext <<_ACEOF | ||
15097 | /* end confdefs.h. */ | ||
15098 | |||
15099 | #include <sys/types.h> | ||
15100 | #include <dirent.h> | ||
15101 | int | ||
15102 | main () | ||
15103 | { | ||
15104 | |||
15105 | struct dirent d; | ||
15106 | exit(sizeof(d.d_name)<=sizeof(char)); | ||
15107 | |||
15108 | ; | ||
15109 | return 0; | ||
15110 | } | ||
15111 | _ACEOF | ||
15112 | rm -f conftest$ac_exeext | ||
15113 | if { (ac_try="$ac_link" | ||
15114 | case "(($ac_try" in | ||
15115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15116 | *) ac_try_echo=$ac_try;; | ||
15117 | esac | ||
15118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15119 | (eval "$ac_link") 2>&5 | ||
15120 | ac_status=$? | ||
15121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15122 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15123 | { (case "(($ac_try" in | ||
15124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15125 | *) ac_try_echo=$ac_try;; | ||
15126 | esac | ||
15127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15128 | (eval "$ac_try") 2>&5 | ||
15129 | ac_status=$? | ||
15130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15131 | (exit $ac_status); }; }; then | ||
15132 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15133 | echo "${ECHO_T}yes" >&6; } | ||
15134 | else | ||
15135 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15136 | echo "$as_me: failed program was:" >&5 | ||
15137 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15138 | |||
15139 | ( exit $ac_status ) | ||
15140 | |||
15141 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15142 | echo "${ECHO_T}no" >&6; } | ||
15143 | |||
15144 | cat >>confdefs.h <<\_ACEOF | ||
15145 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
15146 | _ACEOF | ||
15147 | |||
15148 | |||
15149 | fi | ||
15150 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15151 | fi | ||
15152 | |||
15153 | |||
15154 | |||
15155 | { echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5 | ||
15156 | echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; } | ||
15157 | if test -d "/proc/$$/fd" ; then | ||
15158 | |||
15159 | cat >>confdefs.h <<\_ACEOF | ||
15160 | #define HAVE_PROC_PID 1 | ||
15161 | _ACEOF | ||
15162 | |||
15163 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15164 | echo "${ECHO_T}yes" >&6; } | ||
15165 | else | ||
15166 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15167 | echo "${ECHO_T}no" >&6; } | ||
15168 | fi | ||
15169 | |||
15170 | # Check whether user wants S/Key support | ||
15171 | SKEY_MSG="no" | ||
15172 | |||
15173 | # Check whether --with-skey was given. | ||
15174 | if test "${with_skey+set}" = set; then | ||
15175 | withval=$with_skey; | ||
15176 | if test "x$withval" != "xno" ; then | ||
15177 | |||
15178 | if test "x$withval" != "xyes" ; then | ||
15179 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
15180 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
15181 | fi | ||
15182 | |||
15183 | |||
15184 | cat >>confdefs.h <<\_ACEOF | ||
15185 | #define SKEY 1 | ||
15186 | _ACEOF | ||
15187 | |||
15188 | LIBS="-lskey $LIBS" | ||
15189 | SKEY_MSG="yes" | ||
15190 | |||
15191 | { echo "$as_me:$LINENO: checking for s/key support" >&5 | ||
15192 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; } | ||
15193 | cat >conftest.$ac_ext <<_ACEOF | ||
15194 | /* confdefs.h. */ | ||
15195 | _ACEOF | ||
15196 | cat confdefs.h >>conftest.$ac_ext | ||
15197 | cat >>conftest.$ac_ext <<_ACEOF | ||
15198 | /* end confdefs.h. */ | ||
15199 | |||
15200 | #include <stdio.h> | ||
15201 | #include <skey.h> | ||
15202 | |||
15203 | int | ||
15204 | main () | ||
15205 | { | ||
15206 | |||
15207 | char *ff = skey_keyinfo(""); ff=""; | ||
15208 | exit(0); | ||
15209 | |||
15210 | ; | ||
15211 | return 0; | ||
15212 | } | ||
15213 | _ACEOF | ||
15214 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15215 | if { (ac_try="$ac_link" | ||
15216 | case "(($ac_try" in | ||
15217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15218 | *) ac_try_echo=$ac_try;; | ||
15219 | esac | ||
15220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15221 | (eval "$ac_link") 2>conftest.er1 | ||
15222 | ac_status=$? | ||
15223 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15224 | rm -f conftest.er1 | ||
15225 | cat conftest.err >&5 | ||
15226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15227 | (exit $ac_status); } && { | ||
15228 | test -z "$ac_c_werror_flag" || | ||
15229 | test ! -s conftest.err | ||
15230 | } && test -s conftest$ac_exeext && | ||
15231 | $as_test_x conftest$ac_exeext; then | ||
15232 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15233 | echo "${ECHO_T}yes" >&6; } | ||
15234 | else | ||
15235 | echo "$as_me: failed program was:" >&5 | ||
15236 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15237 | |||
15238 | |||
15239 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15240 | echo "${ECHO_T}no" >&6; } | ||
15241 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | ||
15242 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
15243 | { (exit 1); exit 1; }; } | ||
15244 | |||
15245 | fi | ||
15246 | |||
15247 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15248 | conftest$ac_exeext conftest.$ac_ext | ||
15249 | { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5 | ||
15250 | echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; } | ||
15251 | cat >conftest.$ac_ext <<_ACEOF | ||
15252 | /* confdefs.h. */ | ||
15253 | _ACEOF | ||
15254 | cat confdefs.h >>conftest.$ac_ext | ||
15255 | cat >>conftest.$ac_ext <<_ACEOF | ||
15256 | /* end confdefs.h. */ | ||
15257 | |||
15258 | #include <stdio.h> | ||
15259 | #include <skey.h> | ||
15260 | |||
15261 | int | ||
15262 | main () | ||
15263 | { | ||
15264 | |||
15265 | (void)skeychallenge(NULL,"name","",0); | ||
15266 | |||
15267 | ; | ||
15268 | return 0; | ||
15269 | } | ||
15270 | _ACEOF | ||
15271 | rm -f conftest.$ac_objext | ||
15272 | if { (ac_try="$ac_compile" | ||
15273 | case "(($ac_try" in | ||
15274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15275 | *) ac_try_echo=$ac_try;; | ||
15276 | esac | ||
15277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15278 | (eval "$ac_compile") 2>conftest.er1 | ||
15279 | ac_status=$? | ||
15280 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15281 | rm -f conftest.er1 | ||
15282 | cat conftest.err >&5 | ||
15283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15284 | (exit $ac_status); } && { | ||
15285 | test -z "$ac_c_werror_flag" || | ||
15286 | test ! -s conftest.err | ||
15287 | } && test -s conftest.$ac_objext; then | ||
15288 | |||
15289 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15290 | echo "${ECHO_T}yes" >&6; } | ||
15291 | |||
15292 | cat >>confdefs.h <<\_ACEOF | ||
15293 | #define SKEYCHALLENGE_4ARG 1 | ||
15294 | _ACEOF | ||
15295 | |||
15296 | else | ||
15297 | echo "$as_me: failed program was:" >&5 | ||
15298 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15299 | |||
15300 | |||
15301 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15302 | echo "${ECHO_T}no" >&6; } | ||
15303 | |||
15304 | fi | ||
15305 | |||
15306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15307 | fi | ||
15308 | |||
15309 | |||
15310 | fi | ||
15311 | |||
15312 | |||
15313 | # Check whether user wants to use ldns | ||
15314 | LDNS_MSG="no" | ||
15315 | |||
15316 | # Check whether --with-ldns was given. | ||
15317 | if test "${with_ldns+set}" = set; then | ||
15318 | withval=$with_ldns; | ||
15319 | if test "x$withval" != "xno" ; then | ||
15320 | |||
15321 | if test "x$withval" != "xyes" ; then | ||
15322 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
15323 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
15324 | fi | ||
15325 | |||
15326 | |||
15327 | cat >>confdefs.h <<\_ACEOF | ||
15328 | #define HAVE_LDNS 1 | ||
15329 | _ACEOF | ||
15330 | |||
15331 | LIBS="-lldns $LIBS" | ||
15332 | LDNS_MSG="yes" | ||
15333 | |||
15334 | { echo "$as_me:$LINENO: checking for ldns support" >&5 | ||
15335 | echo $ECHO_N "checking for ldns support... $ECHO_C" >&6; } | ||
15336 | cat >conftest.$ac_ext <<_ACEOF | ||
15337 | /* confdefs.h. */ | ||
15338 | _ACEOF | ||
15339 | cat confdefs.h >>conftest.$ac_ext | ||
15340 | cat >>conftest.$ac_ext <<_ACEOF | ||
15341 | /* end confdefs.h. */ | ||
15342 | |||
15343 | #include <stdio.h> | ||
15344 | #include <stdlib.h> | ||
15345 | #include <stdint.h> | ||
15346 | #include <ldns/ldns.h> | ||
15347 | int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); } | ||
15348 | |||
15349 | |||
15350 | _ACEOF | ||
15351 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15352 | if { (ac_try="$ac_link" | ||
15353 | case "(($ac_try" in | ||
15354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15355 | *) ac_try_echo=$ac_try;; | ||
15356 | esac | ||
15357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15358 | (eval "$ac_link") 2>conftest.er1 | ||
15359 | ac_status=$? | ||
15360 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15361 | rm -f conftest.er1 | ||
15362 | cat conftest.err >&5 | ||
15363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15364 | (exit $ac_status); } && { | ||
15365 | test -z "$ac_c_werror_flag" || | ||
15366 | test ! -s conftest.err | ||
15367 | } && test -s conftest$ac_exeext && | ||
15368 | $as_test_x conftest$ac_exeext; then | ||
15369 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15370 | echo "${ECHO_T}yes" >&6; } | ||
15371 | else | ||
15372 | echo "$as_me: failed program was:" >&5 | ||
15373 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15374 | |||
15375 | |||
15376 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15377 | echo "${ECHO_T}no" >&6; } | ||
15378 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing ldns libraries." >&5 | ||
15379 | echo "$as_me: error: ** Incomplete or missing ldns libraries." >&2;} | ||
15380 | { (exit 1); exit 1; }; } | ||
15381 | |||
15382 | fi | ||
15383 | |||
15384 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15385 | conftest$ac_exeext conftest.$ac_ext | ||
15386 | fi | ||
15387 | |||
15388 | |||
15389 | fi | ||
15390 | |||
15391 | |||
15392 | # Check whether user wants libedit support | ||
15393 | LIBEDIT_MSG="no" | ||
15394 | |||
15395 | # Check whether --with-libedit was given. | ||
15396 | if test "${with_libedit+set}" = set; then | ||
15397 | withval=$with_libedit; if test "x$withval" != "xno" ; then | ||
15398 | if test "x$withval" = "xyes" ; then | ||
15399 | if test -n "$ac_tool_prefix"; then | ||
15400 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
15401 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
15402 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15403 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
15404 | if test "${ac_cv_path_PKGCONFIG+set}" = set; then | ||
15405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15406 | else | ||
15407 | case $PKGCONFIG in | ||
15408 | [\\/]* | ?:[\\/]*) | ||
15409 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. | ||
15410 | ;; | ||
15411 | *) | ||
15412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15413 | for as_dir in $PATH | ||
15414 | do | ||
15415 | IFS=$as_save_IFS | ||
15416 | test -z "$as_dir" && as_dir=. | ||
15417 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15418 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
15419 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
15420 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15421 | break 2 | ||
15422 | fi | ||
15423 | done | ||
15424 | done | ||
15425 | IFS=$as_save_IFS | ||
15426 | |||
15427 | ;; | ||
15428 | esac | ||
15429 | fi | ||
15430 | PKGCONFIG=$ac_cv_path_PKGCONFIG | ||
15431 | if test -n "$PKGCONFIG"; then | ||
15432 | { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5 | ||
15433 | echo "${ECHO_T}$PKGCONFIG" >&6; } | ||
15434 | else | ||
15435 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15436 | echo "${ECHO_T}no" >&6; } | ||
15437 | fi | ||
15438 | |||
15439 | |||
15440 | fi | ||
15441 | if test -z "$ac_cv_path_PKGCONFIG"; then | ||
15442 | ac_pt_PKGCONFIG=$PKGCONFIG | ||
15443 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
15444 | set dummy pkg-config; ac_word=$2 | ||
15445 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15446 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
15447 | if test "${ac_cv_path_ac_pt_PKGCONFIG+set}" = set; then | ||
15448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15449 | else | ||
15450 | case $ac_pt_PKGCONFIG in | ||
15451 | [\\/]* | ?:[\\/]*) | ||
15452 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. | ||
15453 | ;; | ||
15454 | *) | ||
15455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15456 | for as_dir in $PATH | ||
15457 | do | ||
15458 | IFS=$as_save_IFS | ||
15459 | test -z "$as_dir" && as_dir=. | ||
15460 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15461 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
15462 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
15463 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15464 | break 2 | ||
15465 | fi | ||
15466 | done | ||
15467 | done | ||
15468 | IFS=$as_save_IFS | ||
15469 | |||
15470 | ;; | ||
15471 | esac | ||
15472 | fi | ||
15473 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG | ||
15474 | if test -n "$ac_pt_PKGCONFIG"; then | ||
15475 | { echo "$as_me:$LINENO: result: $ac_pt_PKGCONFIG" >&5 | ||
15476 | echo "${ECHO_T}$ac_pt_PKGCONFIG" >&6; } | ||
15477 | else | ||
15478 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15479 | echo "${ECHO_T}no" >&6; } | ||
15480 | fi | ||
15481 | |||
15482 | if test "x$ac_pt_PKGCONFIG" = x; then | ||
15483 | PKGCONFIG="no" | ||
15484 | else | ||
15485 | case $cross_compiling:$ac_tool_warned in | ||
15486 | yes:) | ||
15487 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
15488 | whose name does not start with the host triplet. If you think this | ||
15489 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
15490 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
15491 | whose name does not start with the host triplet. If you think this | ||
15492 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
15493 | ac_tool_warned=yes ;; | ||
15494 | esac | ||
15495 | PKGCONFIG=$ac_pt_PKGCONFIG | ||
15496 | fi | ||
15497 | else | ||
15498 | PKGCONFIG="$ac_cv_path_PKGCONFIG" | ||
15499 | fi | ||
15500 | |||
15501 | if test "x$PKGCONFIG" != "xno"; then | ||
15502 | { echo "$as_me:$LINENO: checking if $PKGCONFIG knows about libedit" >&5 | ||
15503 | echo $ECHO_N "checking if $PKGCONFIG knows about libedit... $ECHO_C" >&6; } | ||
15504 | if "$PKGCONFIG" libedit; then | ||
15505 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15506 | echo "${ECHO_T}yes" >&6; } | ||
15507 | use_pkgconfig_for_libedit=yes | ||
15508 | else | ||
15509 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15510 | echo "${ECHO_T}no" >&6; } | ||
15511 | fi | ||
15512 | fi | ||
15513 | else | ||
15514 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
15515 | if test -n "${need_dash_r}"; then | ||
15516 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
15517 | else | ||
15518 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
15519 | fi | ||
15520 | fi | ||
15521 | if test "x$use_pkgconfig_for_libedit" = "xyes"; then | ||
15522 | LIBEDIT=`$PKGCONFIG --libs libedit` | ||
15523 | CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`" | ||
15524 | else | ||
15525 | LIBEDIT="-ledit -lcurses" | ||
15526 | fi | ||
15527 | OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` | ||
15528 | { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5 | ||
15529 | echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; } | ||
15530 | if test "${ac_cv_lib_edit_el_init+set}" = set; then | ||
15531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15532 | else | ||
15533 | ac_check_lib_save_LIBS=$LIBS | ||
15534 | LIBS="-ledit $OTHERLIBS | ||
15535 | $LIBS" | ||
15536 | cat >conftest.$ac_ext <<_ACEOF | ||
15537 | /* confdefs.h. */ | ||
15538 | _ACEOF | ||
15539 | cat confdefs.h >>conftest.$ac_ext | ||
15540 | cat >>conftest.$ac_ext <<_ACEOF | ||
15541 | /* end confdefs.h. */ | ||
15542 | |||
15543 | /* Override any GCC internal prototype to avoid an error. | ||
15544 | Use char because int might match the return type of a GCC | ||
15545 | builtin and then its argument prototype would still apply. */ | ||
15546 | #ifdef __cplusplus | ||
15547 | extern "C" | ||
15548 | #endif | ||
15549 | char el_init (); | ||
15550 | int | ||
15551 | main () | ||
15552 | { | ||
15553 | return el_init (); | ||
15554 | ; | ||
15555 | return 0; | ||
15556 | } | ||
15557 | _ACEOF | ||
15558 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15559 | if { (ac_try="$ac_link" | ||
15560 | case "(($ac_try" in | ||
15561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15562 | *) ac_try_echo=$ac_try;; | ||
15563 | esac | ||
15564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15565 | (eval "$ac_link") 2>conftest.er1 | ||
15566 | ac_status=$? | ||
15567 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15568 | rm -f conftest.er1 | ||
15569 | cat conftest.err >&5 | ||
15570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15571 | (exit $ac_status); } && { | ||
15572 | test -z "$ac_c_werror_flag" || | ||
15573 | test ! -s conftest.err | ||
15574 | } && test -s conftest$ac_exeext && | ||
15575 | $as_test_x conftest$ac_exeext; then | ||
15576 | ac_cv_lib_edit_el_init=yes | ||
15577 | else | ||
15578 | echo "$as_me: failed program was:" >&5 | ||
15579 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15580 | |||
15581 | ac_cv_lib_edit_el_init=no | ||
15582 | fi | ||
15583 | |||
15584 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15585 | conftest$ac_exeext conftest.$ac_ext | ||
15586 | LIBS=$ac_check_lib_save_LIBS | ||
15587 | fi | ||
15588 | { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5 | ||
15589 | echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; } | ||
15590 | if test $ac_cv_lib_edit_el_init = yes; then | ||
15591 | |||
15592 | cat >>confdefs.h <<\_ACEOF | ||
15593 | #define USE_LIBEDIT 1 | ||
15594 | _ACEOF | ||
15595 | |||
15596 | LIBEDIT_MSG="yes" | ||
15597 | |||
15598 | |||
15599 | else | ||
15600 | { { echo "$as_me:$LINENO: error: libedit not found" >&5 | ||
15601 | echo "$as_me: error: libedit not found" >&2;} | ||
15602 | { (exit 1); exit 1; }; } | ||
15603 | fi | ||
15604 | |||
15605 | { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5 | ||
15606 | echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; } | ||
15607 | cat >conftest.$ac_ext <<_ACEOF | ||
15608 | /* confdefs.h. */ | ||
15609 | _ACEOF | ||
15610 | cat confdefs.h >>conftest.$ac_ext | ||
15611 | cat >>conftest.$ac_ext <<_ACEOF | ||
15612 | /* end confdefs.h. */ | ||
15613 | #include <histedit.h> | ||
15614 | int | ||
15615 | main () | ||
15616 | { | ||
15617 | |||
15618 | int i = H_SETSIZE; | ||
15619 | el_init("", NULL, NULL, NULL); | ||
15620 | exit(0); | ||
15621 | |||
15622 | ; | ||
15623 | return 0; | ||
15624 | } | ||
15625 | _ACEOF | ||
15626 | rm -f conftest.$ac_objext | ||
15627 | if { (ac_try="$ac_compile" | ||
15628 | case "(($ac_try" in | ||
15629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15630 | *) ac_try_echo=$ac_try;; | ||
15631 | esac | ||
15632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15633 | (eval "$ac_compile") 2>conftest.er1 | ||
15634 | ac_status=$? | ||
15635 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15636 | rm -f conftest.er1 | ||
15637 | cat conftest.err >&5 | ||
15638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15639 | (exit $ac_status); } && { | ||
15640 | test -z "$ac_c_werror_flag" || | ||
15641 | test ! -s conftest.err | ||
15642 | } && test -s conftest.$ac_objext; then | ||
15643 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15644 | echo "${ECHO_T}yes" >&6; } | ||
15645 | else | ||
15646 | echo "$as_me: failed program was:" >&5 | ||
15647 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15648 | |||
15649 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15650 | echo "${ECHO_T}no" >&6; } | ||
15651 | { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5 | ||
15652 | echo "$as_me: error: libedit version is not compatible" >&2;} | ||
15653 | { (exit 1); exit 1; }; } | ||
15654 | |||
15655 | fi | ||
15656 | |||
15657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15658 | fi | ||
15659 | |||
15660 | fi | ||
15661 | |||
15662 | |||
15663 | AUDIT_MODULE=none | ||
15664 | |||
15665 | # Check whether --with-audit was given. | ||
15666 | if test "${with_audit+set}" = set; then | ||
15667 | withval=$with_audit; | ||
15668 | { echo "$as_me:$LINENO: checking for supported audit module" >&5 | ||
15669 | echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; } | ||
15670 | case "$withval" in | ||
15671 | bsm) | ||
15672 | { echo "$as_me:$LINENO: result: bsm" >&5 | ||
15673 | echo "${ECHO_T}bsm" >&6; } | ||
15674 | AUDIT_MODULE=bsm | ||
15675 | |||
15676 | for ac_header in bsm/audit.h | ||
15677 | do | ||
15678 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15679 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
15680 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
15681 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15683 | else | ||
15684 | cat >conftest.$ac_ext <<_ACEOF | ||
15685 | /* confdefs.h. */ | ||
15686 | _ACEOF | ||
15687 | cat confdefs.h >>conftest.$ac_ext | ||
15688 | cat >>conftest.$ac_ext <<_ACEOF | ||
15689 | /* end confdefs.h. */ | ||
15690 | |||
15691 | #ifdef HAVE_TIME_H | ||
15692 | # include <time.h> | ||
15693 | #endif | ||
15694 | |||
15695 | |||
15696 | |||
15697 | #include <$ac_header> | ||
15698 | _ACEOF | ||
15699 | rm -f conftest.$ac_objext | ||
15700 | if { (ac_try="$ac_compile" | ||
15701 | case "(($ac_try" in | ||
15702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15703 | *) ac_try_echo=$ac_try;; | ||
15704 | esac | ||
15705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15706 | (eval "$ac_compile") 2>conftest.er1 | ||
15707 | ac_status=$? | ||
15708 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15709 | rm -f conftest.er1 | ||
15710 | cat conftest.err >&5 | ||
15711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15712 | (exit $ac_status); } && { | ||
15713 | test -z "$ac_c_werror_flag" || | ||
15714 | test ! -s conftest.err | ||
15715 | } && test -s conftest.$ac_objext; then | ||
15716 | eval "$as_ac_Header=yes" | ||
15717 | else | ||
15718 | echo "$as_me: failed program was:" >&5 | ||
15719 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15720 | |||
15721 | eval "$as_ac_Header=no" | ||
15722 | fi | ||
15723 | |||
15724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15725 | fi | ||
15726 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
15727 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15728 | echo "${ECHO_T}$ac_res" >&6; } | ||
15729 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
15730 | cat >>confdefs.h <<_ACEOF | ||
15731 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15732 | _ACEOF | ||
15733 | |||
15734 | else | ||
15735 | { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5 | ||
15736 | echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;} | ||
15737 | { (exit 1); exit 1; }; } | ||
15738 | fi | ||
15739 | |||
15740 | done | ||
15741 | |||
15742 | |||
15743 | { echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5 | ||
15744 | echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; } | ||
15745 | if test "${ac_cv_lib_bsm_getaudit+set}" = set; then | ||
15746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15747 | else | ||
15748 | ac_check_lib_save_LIBS=$LIBS | ||
15749 | LIBS="-lbsm $LIBS" | ||
15750 | cat >conftest.$ac_ext <<_ACEOF | ||
15751 | /* confdefs.h. */ | ||
15752 | _ACEOF | ||
15753 | cat confdefs.h >>conftest.$ac_ext | ||
15754 | cat >>conftest.$ac_ext <<_ACEOF | ||
15755 | /* end confdefs.h. */ | ||
15756 | |||
15757 | /* Override any GCC internal prototype to avoid an error. | ||
15758 | Use char because int might match the return type of a GCC | ||
15759 | builtin and then its argument prototype would still apply. */ | ||
15760 | #ifdef __cplusplus | ||
15761 | extern "C" | ||
15762 | #endif | ||
15763 | char getaudit (); | ||
15764 | int | ||
15765 | main () | ||
15766 | { | ||
15767 | return getaudit (); | ||
15768 | ; | ||
15769 | return 0; | ||
15770 | } | ||
15771 | _ACEOF | ||
15772 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15773 | if { (ac_try="$ac_link" | ||
15774 | case "(($ac_try" in | ||
15775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15776 | *) ac_try_echo=$ac_try;; | ||
15777 | esac | ||
15778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15779 | (eval "$ac_link") 2>conftest.er1 | ||
15780 | ac_status=$? | ||
15781 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15782 | rm -f conftest.er1 | ||
15783 | cat conftest.err >&5 | ||
15784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15785 | (exit $ac_status); } && { | ||
15786 | test -z "$ac_c_werror_flag" || | ||
15787 | test ! -s conftest.err | ||
15788 | } && test -s conftest$ac_exeext && | ||
15789 | $as_test_x conftest$ac_exeext; then | ||
15790 | ac_cv_lib_bsm_getaudit=yes | ||
15791 | else | ||
15792 | echo "$as_me: failed program was:" >&5 | ||
15793 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15794 | |||
15795 | ac_cv_lib_bsm_getaudit=no | ||
15796 | fi | ||
15797 | |||
15798 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15799 | conftest$ac_exeext conftest.$ac_ext | ||
15800 | LIBS=$ac_check_lib_save_LIBS | ||
15801 | fi | ||
15802 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
15803 | echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; } | ||
15804 | if test $ac_cv_lib_bsm_getaudit = yes; then | ||
15805 | cat >>confdefs.h <<_ACEOF | ||
15806 | #define HAVE_LIBBSM 1 | ||
15807 | _ACEOF | ||
15808 | |||
15809 | LIBS="-lbsm $LIBS" | ||
15810 | |||
15811 | else | ||
15812 | { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5 | ||
15813 | echo "$as_me: error: BSM enabled and required library not found" >&2;} | ||
15814 | { (exit 1); exit 1; }; } | ||
15815 | fi | ||
15816 | |||
15817 | |||
15818 | for ac_func in getaudit | ||
15819 | do | ||
15820 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15821 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15822 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
15823 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15825 | else | ||
15826 | cat >conftest.$ac_ext <<_ACEOF | ||
15827 | /* confdefs.h. */ | ||
15828 | _ACEOF | ||
15829 | cat confdefs.h >>conftest.$ac_ext | ||
15830 | cat >>conftest.$ac_ext <<_ACEOF | ||
15831 | /* end confdefs.h. */ | ||
15832 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15833 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15834 | #define $ac_func innocuous_$ac_func | ||
15835 | |||
15836 | /* System header to define __stub macros and hopefully few prototypes, | ||
15837 | which can conflict with char $ac_func (); below. | ||
15838 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15839 | <limits.h> exists even on freestanding compilers. */ | ||
15840 | |||
15841 | #ifdef __STDC__ | ||
15842 | # include <limits.h> | ||
15843 | #else | ||
15844 | # include <assert.h> | ||
15845 | #endif | ||
15846 | |||
15847 | #undef $ac_func | ||
15848 | |||
15849 | /* Override any GCC internal prototype to avoid an error. | ||
15850 | Use char because int might match the return type of a GCC | ||
15851 | builtin and then its argument prototype would still apply. */ | ||
15852 | #ifdef __cplusplus | ||
15853 | extern "C" | ||
15854 | #endif | ||
15855 | char $ac_func (); | ||
15856 | /* The GNU C library defines this for functions which it implements | ||
15857 | to always fail with ENOSYS. Some functions are actually named | ||
15858 | something starting with __ and the normal name is an alias. */ | ||
15859 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15860 | choke me | ||
15861 | #endif | ||
15862 | |||
15863 | int | ||
15864 | main () | ||
15865 | { | ||
15866 | return $ac_func (); | ||
15867 | ; | ||
15868 | return 0; | ||
15869 | } | ||
15870 | _ACEOF | ||
15871 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15872 | if { (ac_try="$ac_link" | ||
15873 | case "(($ac_try" in | ||
15874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15875 | *) ac_try_echo=$ac_try;; | ||
15876 | esac | ||
15877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15878 | (eval "$ac_link") 2>conftest.er1 | ||
15879 | ac_status=$? | ||
15880 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15881 | rm -f conftest.er1 | ||
15882 | cat conftest.err >&5 | ||
15883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15884 | (exit $ac_status); } && { | ||
15885 | test -z "$ac_c_werror_flag" || | ||
15886 | test ! -s conftest.err | ||
15887 | } && test -s conftest$ac_exeext && | ||
15888 | $as_test_x conftest$ac_exeext; then | ||
15889 | eval "$as_ac_var=yes" | ||
15890 | else | ||
15891 | echo "$as_me: failed program was:" >&5 | ||
15892 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15893 | |||
15894 | eval "$as_ac_var=no" | ||
15895 | fi | ||
15896 | |||
15897 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15898 | conftest$ac_exeext conftest.$ac_ext | ||
15899 | fi | ||
15900 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
15901 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15902 | echo "${ECHO_T}$ac_res" >&6; } | ||
15903 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15904 | cat >>confdefs.h <<_ACEOF | ||
15905 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15906 | _ACEOF | ||
15907 | |||
15908 | else | ||
15909 | { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5 | ||
15910 | echo "$as_me: error: BSM enabled and required function not found" >&2;} | ||
15911 | { (exit 1); exit 1; }; } | ||
15912 | fi | ||
15913 | done | ||
15914 | |||
15915 | # These are optional | ||
15916 | |||
15917 | |||
15918 | for ac_func in getaudit_addr aug_get_machine | ||
15919 | do | ||
15920 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15921 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15922 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
15923 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15925 | else | ||
15926 | cat >conftest.$ac_ext <<_ACEOF | ||
15927 | /* confdefs.h. */ | ||
15928 | _ACEOF | ||
15929 | cat confdefs.h >>conftest.$ac_ext | ||
15930 | cat >>conftest.$ac_ext <<_ACEOF | ||
15931 | /* end confdefs.h. */ | ||
15932 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15933 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15934 | #define $ac_func innocuous_$ac_func | ||
15935 | |||
15936 | /* System header to define __stub macros and hopefully few prototypes, | ||
15937 | which can conflict with char $ac_func (); below. | ||
15938 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15939 | <limits.h> exists even on freestanding compilers. */ | ||
15940 | |||
15941 | #ifdef __STDC__ | ||
15942 | # include <limits.h> | ||
15943 | #else | ||
15944 | # include <assert.h> | ||
15945 | #endif | ||
15946 | |||
15947 | #undef $ac_func | ||
15948 | |||
15949 | /* Override any GCC internal prototype to avoid an error. | ||
15950 | Use char because int might match the return type of a GCC | ||
15951 | builtin and then its argument prototype would still apply. */ | ||
15952 | #ifdef __cplusplus | ||
15953 | extern "C" | ||
15954 | #endif | ||
15955 | char $ac_func (); | ||
15956 | /* The GNU C library defines this for functions which it implements | ||
15957 | to always fail with ENOSYS. Some functions are actually named | ||
15958 | something starting with __ and the normal name is an alias. */ | ||
15959 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15960 | choke me | ||
15961 | #endif | ||
15962 | |||
15963 | int | ||
15964 | main () | ||
15965 | { | ||
15966 | return $ac_func (); | ||
15967 | ; | ||
15968 | return 0; | ||
15969 | } | ||
15970 | _ACEOF | ||
15971 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15972 | if { (ac_try="$ac_link" | ||
15973 | case "(($ac_try" in | ||
15974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15975 | *) ac_try_echo=$ac_try;; | ||
15976 | esac | ||
15977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15978 | (eval "$ac_link") 2>conftest.er1 | ||
15979 | ac_status=$? | ||
15980 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15981 | rm -f conftest.er1 | ||
15982 | cat conftest.err >&5 | ||
15983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15984 | (exit $ac_status); } && { | ||
15985 | test -z "$ac_c_werror_flag" || | ||
15986 | test ! -s conftest.err | ||
15987 | } && test -s conftest$ac_exeext && | ||
15988 | $as_test_x conftest$ac_exeext; then | ||
15989 | eval "$as_ac_var=yes" | ||
15990 | else | ||
15991 | echo "$as_me: failed program was:" >&5 | ||
15992 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15993 | |||
15994 | eval "$as_ac_var=no" | ||
15995 | fi | ||
15996 | |||
15997 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15998 | conftest$ac_exeext conftest.$ac_ext | ||
15999 | fi | ||
16000 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
16001 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16002 | echo "${ECHO_T}$ac_res" >&6; } | ||
16003 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
16004 | cat >>confdefs.h <<_ACEOF | ||
16005 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16006 | _ACEOF | ||
16007 | |||
16008 | fi | ||
16009 | done | ||
16010 | |||
16011 | |||
16012 | cat >>confdefs.h <<\_ACEOF | ||
16013 | #define USE_BSM_AUDIT 1 | ||
16014 | _ACEOF | ||
16015 | |||
16016 | if test "$sol2ver" -ge 11; then | ||
16017 | SSHDLIBS="$SSHDLIBS -lscf" | ||
16018 | |||
16019 | cat >>confdefs.h <<\_ACEOF | ||
16020 | #define BROKEN_BSM_API 1 | ||
16021 | _ACEOF | ||
16022 | |||
16023 | fi | ||
16024 | ;; | ||
16025 | linux) | ||
16026 | { echo "$as_me:$LINENO: result: linux" >&5 | ||
16027 | echo "${ECHO_T}linux" >&6; } | ||
16028 | AUDIT_MODULE=linux | ||
16029 | |||
16030 | for ac_header in libaudit.h | ||
16031 | do | ||
16032 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
16033 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16034 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
16035 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
16036 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16038 | fi | ||
16039 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
16040 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16041 | echo "${ECHO_T}$ac_res" >&6; } | ||
16042 | else | ||
16043 | # Is the header compilable? | ||
16044 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
16045 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
16046 | cat >conftest.$ac_ext <<_ACEOF | ||
16047 | /* confdefs.h. */ | ||
16048 | _ACEOF | ||
16049 | cat confdefs.h >>conftest.$ac_ext | ||
16050 | cat >>conftest.$ac_ext <<_ACEOF | ||
16051 | /* end confdefs.h. */ | ||
16052 | $ac_includes_default | ||
16053 | #include <$ac_header> | ||
16054 | _ACEOF | ||
16055 | rm -f conftest.$ac_objext | ||
16056 | if { (ac_try="$ac_compile" | ||
16057 | case "(($ac_try" in | ||
16058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16059 | *) ac_try_echo=$ac_try;; | ||
16060 | esac | ||
16061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16062 | (eval "$ac_compile") 2>conftest.er1 | ||
16063 | ac_status=$? | ||
16064 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16065 | rm -f conftest.er1 | ||
16066 | cat conftest.err >&5 | ||
16067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16068 | (exit $ac_status); } && { | ||
16069 | test -z "$ac_c_werror_flag" || | ||
16070 | test ! -s conftest.err | ||
16071 | } && test -s conftest.$ac_objext; then | ||
16072 | ac_header_compiler=yes | ||
16073 | else | ||
16074 | echo "$as_me: failed program was:" >&5 | ||
16075 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16076 | |||
16077 | ac_header_compiler=no | ||
16078 | fi | ||
16079 | |||
16080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16081 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
16082 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
16083 | |||
16084 | # Is the header present? | ||
16085 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
16086 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
16087 | cat >conftest.$ac_ext <<_ACEOF | ||
16088 | /* confdefs.h. */ | ||
16089 | _ACEOF | ||
16090 | cat confdefs.h >>conftest.$ac_ext | ||
16091 | cat >>conftest.$ac_ext <<_ACEOF | ||
16092 | /* end confdefs.h. */ | ||
16093 | #include <$ac_header> | ||
16094 | _ACEOF | ||
16095 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
16096 | case "(($ac_try" in | ||
16097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16098 | *) ac_try_echo=$ac_try;; | ||
16099 | esac | ||
16100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16101 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
16102 | ac_status=$? | ||
16103 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16104 | rm -f conftest.er1 | ||
16105 | cat conftest.err >&5 | ||
16106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16107 | (exit $ac_status); } >/dev/null && { | ||
16108 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
16109 | test ! -s conftest.err | ||
16110 | }; then | ||
16111 | ac_header_preproc=yes | ||
16112 | else | ||
16113 | echo "$as_me: failed program was:" >&5 | ||
16114 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16115 | |||
16116 | ac_header_preproc=no | ||
16117 | fi | ||
16118 | |||
16119 | rm -f conftest.err conftest.$ac_ext | ||
16120 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
16121 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
16122 | |||
16123 | # So? What about this header? | ||
16124 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
16125 | yes:no: ) | ||
16126 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
16127 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
16128 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
16129 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
16130 | ac_header_preproc=yes | ||
16131 | ;; | ||
16132 | no:yes:* ) | ||
16133 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
16134 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
16135 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
16136 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
16137 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
16138 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
16139 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
16140 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
16141 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
16142 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
16143 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
16144 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
16145 | ( cat <<\_ASBOX | ||
16146 | ## ------------------------------------------- ## | ||
16147 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
16148 | ## ------------------------------------------- ## | ||
16149 | _ASBOX | ||
16150 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
16151 | ;; | ||
16152 | esac | ||
16153 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
16154 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
16155 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16157 | else | ||
16158 | eval "$as_ac_Header=\$ac_header_preproc" | ||
16159 | fi | ||
16160 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
16161 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16162 | echo "${ECHO_T}$ac_res" >&6; } | ||
16163 | |||
16164 | fi | ||
16165 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
16166 | cat >>confdefs.h <<_ACEOF | ||
16167 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
16168 | _ACEOF | ||
16169 | |||
16170 | fi | ||
16171 | |||
16172 | done | ||
16173 | |||
16174 | SSHDLIBS="$SSHDLIBS -laudit" | ||
16175 | |||
16176 | cat >>confdefs.h <<\_ACEOF | ||
16177 | #define USE_LINUX_AUDIT 1 | ||
16178 | _ACEOF | ||
16179 | |||
16180 | ;; | ||
16181 | debug) | ||
16182 | AUDIT_MODULE=debug | ||
16183 | { echo "$as_me:$LINENO: result: debug" >&5 | ||
16184 | echo "${ECHO_T}debug" >&6; } | ||
16185 | |||
16186 | cat >>confdefs.h <<\_ACEOF | ||
16187 | #define SSH_AUDIT_EVENTS 1 | ||
16188 | _ACEOF | ||
16189 | |||
16190 | ;; | ||
16191 | no) | ||
16192 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16193 | echo "${ECHO_T}no" >&6; } | ||
16194 | ;; | ||
16195 | *) | ||
16196 | { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5 | ||
16197 | echo "$as_me: error: Unknown audit module $withval" >&2;} | ||
16198 | { (exit 1); exit 1; }; } | ||
16199 | ;; | ||
16200 | esac | ||
16201 | |||
16202 | fi | ||
16203 | |||
16204 | |||
16205 | |||
16206 | # Check whether --with-pie was given. | ||
16207 | if test "${with_pie+set}" = set; then | ||
16208 | withval=$with_pie; | ||
16209 | if test "x$withval" = "xno"; then | ||
16210 | use_pie=no | ||
16211 | fi | ||
16212 | if test "x$withval" = "xyes"; then | ||
16213 | use_pie=yes | ||
16214 | fi | ||
16215 | |||
16216 | |||
16217 | fi | ||
16218 | |||
16219 | if test "x$use_pie" = "x"; then | ||
16220 | use_pie=no | ||
16221 | fi | ||
16222 | if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then | ||
16223 | # Turn off automatic PIE when toolchain hardening is off. | ||
16224 | use_pie=no | ||
16225 | fi | ||
16226 | if test "x$use_pie" = "xauto"; then | ||
16227 | # Automatic PIE requires gcc >= 4.x | ||
16228 | { echo "$as_me:$LINENO: checking for gcc >= 4.x" >&5 | ||
16229 | echo $ECHO_N "checking for gcc >= 4.x... $ECHO_C" >&6; } | ||
16230 | cat >conftest.$ac_ext <<_ACEOF | ||
16231 | /* confdefs.h. */ | ||
16232 | _ACEOF | ||
16233 | cat confdefs.h >>conftest.$ac_ext | ||
16234 | cat >>conftest.$ac_ext <<_ACEOF | ||
16235 | /* end confdefs.h. */ | ||
16236 | |||
16237 | #if !defined(__GNUC__) || __GNUC__ < 4 | ||
16238 | #error gcc is too old | ||
16239 | #endif | ||
16240 | |||
16241 | _ACEOF | ||
16242 | rm -f conftest.$ac_objext | ||
16243 | if { (ac_try="$ac_compile" | ||
16244 | case "(($ac_try" in | ||
16245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16246 | *) ac_try_echo=$ac_try;; | ||
16247 | esac | ||
16248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16249 | (eval "$ac_compile") 2>conftest.er1 | ||
16250 | ac_status=$? | ||
16251 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16252 | rm -f conftest.er1 | ||
16253 | cat conftest.err >&5 | ||
16254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16255 | (exit $ac_status); } && { | ||
16256 | test -z "$ac_c_werror_flag" || | ||
16257 | test ! -s conftest.err | ||
16258 | } && test -s conftest.$ac_objext; then | ||
16259 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16260 | echo "${ECHO_T}yes" >&6; } | ||
16261 | else | ||
16262 | echo "$as_me: failed program was:" >&5 | ||
16263 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16264 | |||
16265 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16266 | echo "${ECHO_T}no" >&6; } | ||
16267 | use_pie=no | ||
16268 | |||
16269 | fi | ||
16270 | |||
16271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16272 | fi | ||
16273 | if test "x$use_pie" != "xno"; then | ||
16274 | SAVED_CFLAGS="$CFLAGS" | ||
16275 | SAVED_LDFLAGS="$LDFLAGS" | ||
16276 | { | ||
16277 | { echo "$as_me:$LINENO: checking if $CC supports compile flag -fPIE" >&5 | ||
16278 | echo $ECHO_N "checking if $CC supports compile flag -fPIE... $ECHO_C" >&6; } | ||
16279 | saved_CFLAGS="$CFLAGS" | ||
16280 | CFLAGS="$CFLAGS $WERROR -fPIE" | ||
16281 | _define_flag="" | ||
16282 | test "x$_define_flag" = "x" && _define_flag="-fPIE" | ||
16283 | cat >conftest.$ac_ext <<_ACEOF | ||
16284 | /* confdefs.h. */ | ||
16285 | _ACEOF | ||
16286 | cat confdefs.h >>conftest.$ac_ext | ||
16287 | cat >>conftest.$ac_ext <<_ACEOF | ||
16288 | /* end confdefs.h. */ | ||
16289 | |||
16290 | #include <stdlib.h> | ||
16291 | #include <stdio.h> | ||
16292 | int main(int argc, char **argv) { | ||
16293 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
16294 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
16295 | float l = i * 2.1; | ||
16296 | double m = l / 0.5; | ||
16297 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
16298 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
16299 | exit(0); | ||
16300 | } | ||
16301 | |||
16302 | _ACEOF | ||
16303 | rm -f conftest.$ac_objext | ||
16304 | if { (ac_try="$ac_compile" | ||
16305 | case "(($ac_try" in | ||
16306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16307 | *) ac_try_echo=$ac_try;; | ||
16308 | esac | ||
16309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16310 | (eval "$ac_compile") 2>conftest.er1 | ||
16311 | ac_status=$? | ||
16312 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16313 | rm -f conftest.er1 | ||
16314 | cat conftest.err >&5 | ||
16315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16316 | (exit $ac_status); } && { | ||
16317 | test -z "$ac_c_werror_flag" || | ||
16318 | test ! -s conftest.err | ||
16319 | } && test -s conftest.$ac_objext; then | ||
16320 | |||
16321 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
16322 | then | ||
16323 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16324 | echo "${ECHO_T}no" >&6; } | ||
16325 | CFLAGS="$saved_CFLAGS" | ||
16326 | else | ||
16327 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16328 | echo "${ECHO_T}yes" >&6; } | ||
16329 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
16330 | fi | ||
16331 | else | ||
16332 | echo "$as_me: failed program was:" >&5 | ||
16333 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16334 | |||
16335 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16336 | echo "${ECHO_T}no" >&6; } | ||
16337 | CFLAGS="$saved_CFLAGS" | ||
16338 | |||
16339 | fi | ||
16340 | |||
16341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16342 | } | ||
16343 | { | ||
16344 | { echo "$as_me:$LINENO: checking if $LD supports link flag -pie" >&5 | ||
16345 | echo $ECHO_N "checking if $LD supports link flag -pie... $ECHO_C" >&6; } | ||
16346 | saved_LDFLAGS="$LDFLAGS" | ||
16347 | LDFLAGS="$LDFLAGS $WERROR -pie" | ||
16348 | _define_flag="" | ||
16349 | test "x$_define_flag" = "x" && _define_flag="-pie" | ||
16350 | cat >conftest.$ac_ext <<_ACEOF | ||
16351 | /* confdefs.h. */ | ||
16352 | _ACEOF | ||
16353 | cat confdefs.h >>conftest.$ac_ext | ||
16354 | cat >>conftest.$ac_ext <<_ACEOF | ||
16355 | /* end confdefs.h. */ | ||
16356 | |||
16357 | #include <stdlib.h> | ||
16358 | #include <stdio.h> | ||
16359 | int main(int argc, char **argv) { | ||
16360 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
16361 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
16362 | float l = i * 2.1; | ||
16363 | double m = l / 0.5; | ||
16364 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
16365 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
16366 | exit(0); | ||
16367 | } | ||
16368 | |||
16369 | _ACEOF | ||
16370 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16371 | if { (ac_try="$ac_link" | ||
16372 | case "(($ac_try" in | ||
16373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16374 | *) ac_try_echo=$ac_try;; | ||
16375 | esac | ||
16376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16377 | (eval "$ac_link") 2>conftest.er1 | ||
16378 | ac_status=$? | ||
16379 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16380 | rm -f conftest.er1 | ||
16381 | cat conftest.err >&5 | ||
16382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16383 | (exit $ac_status); } && { | ||
16384 | test -z "$ac_c_werror_flag" || | ||
16385 | test ! -s conftest.err | ||
16386 | } && test -s conftest$ac_exeext && | ||
16387 | $as_test_x conftest$ac_exeext; then | ||
16388 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16389 | echo "${ECHO_T}yes" >&6; } | ||
16390 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
16391 | else | ||
16392 | echo "$as_me: failed program was:" >&5 | ||
16393 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16394 | |||
16395 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16396 | echo "${ECHO_T}no" >&6; } | ||
16397 | LDFLAGS="$saved_LDFLAGS" | ||
16398 | |||
16399 | fi | ||
16400 | |||
16401 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16402 | conftest$ac_exeext conftest.$ac_ext | ||
16403 | } | ||
16404 | # We use both -fPIE and -pie or neither. | ||
16405 | { echo "$as_me:$LINENO: checking whether both -fPIE and -pie are supported" >&5 | ||
16406 | echo $ECHO_N "checking whether both -fPIE and -pie are supported... $ECHO_C" >&6; } | ||
16407 | if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \ | ||
16408 | echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then | ||
16409 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16410 | echo "${ECHO_T}yes" >&6; } | ||
16411 | else | ||
16412 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16413 | echo "${ECHO_T}no" >&6; } | ||
16414 | CFLAGS="$SAVED_CFLAGS" | ||
16415 | LDFLAGS="$SAVED_LDFLAGS" | ||
16416 | fi | ||
16417 | fi | ||
16418 | |||
16419 | |||
16420 | |||
16421 | |||
16422 | |||
16423 | |||
16424 | |||
16425 | |||
16426 | |||
16427 | |||
16428 | |||
16429 | |||
16430 | |||
16431 | |||
16432 | |||
16433 | |||
16434 | |||
16435 | |||
16436 | |||
16437 | |||
16438 | |||
16439 | |||
16440 | |||
16441 | |||
16442 | |||
16443 | |||
16444 | |||
16445 | |||
16446 | |||
16447 | |||
16448 | |||
16449 | |||
16450 | |||
16451 | |||
16452 | |||
16453 | |||
16454 | |||
16455 | |||
16456 | |||
16457 | |||
16458 | |||
16459 | |||
16460 | |||
16461 | |||
16462 | |||
16463 | |||
16464 | |||
16465 | |||
16466 | |||
16467 | |||
16468 | |||
16469 | |||
16470 | |||
16471 | |||
16472 | |||
16473 | |||
16474 | |||
16475 | |||
16476 | |||
16477 | |||
16478 | |||
16479 | |||
16480 | |||
16481 | |||
16482 | |||
16483 | |||
16484 | |||
16485 | |||
16486 | |||
16487 | |||
16488 | |||
16489 | |||
16490 | |||
16491 | |||
16492 | |||
16493 | |||
16494 | |||
16495 | |||
16496 | |||
16497 | |||
16498 | |||
16499 | |||
16500 | |||
16501 | |||
16502 | |||
16503 | |||
16504 | |||
16505 | |||
16506 | |||
16507 | |||
16508 | |||
16509 | |||
16510 | |||
16511 | |||
16512 | |||
16513 | |||
16514 | |||
16515 | |||
16516 | |||
16517 | |||
16518 | |||
16519 | |||
16520 | |||
16521 | |||
16522 | |||
16523 | |||
16524 | |||
16525 | |||
16526 | |||
16527 | |||
16528 | for ac_func in \ | ||
16529 | Blowfish_initstate \ | ||
16530 | Blowfish_expandstate \ | ||
16531 | Blowfish_expand0state \ | ||
16532 | Blowfish_stream2word \ | ||
16533 | asprintf \ | ||
16534 | b64_ntop \ | ||
16535 | __b64_ntop \ | ||
16536 | b64_pton \ | ||
16537 | __b64_pton \ | ||
16538 | bcopy \ | ||
16539 | bcrypt_pbkdf \ | ||
16540 | bindresvport_sa \ | ||
16541 | blf_enc \ | ||
16542 | cap_rights_limit \ | ||
16543 | clock \ | ||
16544 | closefrom \ | ||
16545 | dirfd \ | ||
16546 | endgrent \ | ||
16547 | explicit_bzero \ | ||
16548 | fchmod \ | ||
16549 | fchown \ | ||
16550 | freeaddrinfo \ | ||
16551 | fstatfs \ | ||
16552 | fstatvfs \ | ||
16553 | futimes \ | ||
16554 | getaddrinfo \ | ||
16555 | getcwd \ | ||
16556 | getgrouplist \ | ||
16557 | getnameinfo \ | ||
16558 | getopt \ | ||
16559 | getpeereid \ | ||
16560 | getpeerucred \ | ||
16561 | getpgid \ | ||
16562 | getpgrp \ | ||
16563 | _getpty \ | ||
16564 | getrlimit \ | ||
16565 | getttyent \ | ||
16566 | glob \ | ||
16567 | group_from_gid \ | ||
16568 | inet_aton \ | ||
16569 | inet_ntoa \ | ||
16570 | inet_ntop \ | ||
16571 | innetgr \ | ||
16572 | login_getcapbool \ | ||
16573 | mblen \ | ||
16574 | md5_crypt \ | ||
16575 | memmove \ | ||
16576 | memset_s \ | ||
16577 | mkdtemp \ | ||
16578 | mmap \ | ||
16579 | ngetaddrinfo \ | ||
16580 | nsleep \ | ||
16581 | ogetaddrinfo \ | ||
16582 | openlog_r \ | ||
16583 | poll \ | ||
16584 | prctl \ | ||
16585 | pstat \ | ||
16586 | readpassphrase \ | ||
16587 | reallocarray \ | ||
16588 | realpath \ | ||
16589 | recvmsg \ | ||
16590 | rresvport_af \ | ||
16591 | sendmsg \ | ||
16592 | setdtablesize \ | ||
16593 | setegid \ | ||
16594 | setenv \ | ||
16595 | seteuid \ | ||
16596 | setgroupent \ | ||
16597 | setgroups \ | ||
16598 | setlinebuf \ | ||
16599 | setlogin \ | ||
16600 | setpassent\ | ||
16601 | setpcred \ | ||
16602 | setproctitle \ | ||
16603 | setregid \ | ||
16604 | setreuid \ | ||
16605 | setrlimit \ | ||
16606 | setsid \ | ||
16607 | setvbuf \ | ||
16608 | sigaction \ | ||
16609 | sigvec \ | ||
16610 | snprintf \ | ||
16611 | socketpair \ | ||
16612 | statfs \ | ||
16613 | statvfs \ | ||
16614 | strdup \ | ||
16615 | strerror \ | ||
16616 | strlcat \ | ||
16617 | strlcpy \ | ||
16618 | strmode \ | ||
16619 | strnlen \ | ||
16620 | strnvis \ | ||
16621 | strptime \ | ||
16622 | strtonum \ | ||
16623 | strtoll \ | ||
16624 | strtoul \ | ||
16625 | strtoull \ | ||
16626 | swap32 \ | ||
16627 | sysconf \ | ||
16628 | tcgetpgrp \ | ||
16629 | timingsafe_bcmp \ | ||
16630 | truncate \ | ||
16631 | unsetenv \ | ||
16632 | updwtmpx \ | ||
16633 | user_from_uid \ | ||
16634 | usleep \ | ||
16635 | vasprintf \ | ||
16636 | vsnprintf \ | ||
16637 | waitpid \ | ||
16638 | |||
16639 | do | ||
16640 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16641 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
16642 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
16643 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16645 | else | ||
16646 | cat >conftest.$ac_ext <<_ACEOF | ||
16647 | /* confdefs.h. */ | ||
16648 | _ACEOF | ||
16649 | cat confdefs.h >>conftest.$ac_ext | ||
16650 | cat >>conftest.$ac_ext <<_ACEOF | ||
16651 | /* end confdefs.h. */ | ||
16652 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
16653 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
16654 | #define $ac_func innocuous_$ac_func | ||
16655 | |||
16656 | /* System header to define __stub macros and hopefully few prototypes, | ||
16657 | which can conflict with char $ac_func (); below. | ||
16658 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
16659 | <limits.h> exists even on freestanding compilers. */ | ||
16660 | |||
16661 | #ifdef __STDC__ | ||
16662 | # include <limits.h> | ||
16663 | #else | ||
16664 | # include <assert.h> | ||
16665 | #endif | ||
16666 | |||
16667 | #undef $ac_func | ||
16668 | |||
16669 | /* Override any GCC internal prototype to avoid an error. | ||
16670 | Use char because int might match the return type of a GCC | ||
16671 | builtin and then its argument prototype would still apply. */ | ||
16672 | #ifdef __cplusplus | ||
16673 | extern "C" | ||
16674 | #endif | ||
16675 | char $ac_func (); | ||
16676 | /* The GNU C library defines this for functions which it implements | ||
16677 | to always fail with ENOSYS. Some functions are actually named | ||
16678 | something starting with __ and the normal name is an alias. */ | ||
16679 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
16680 | choke me | ||
16681 | #endif | ||
16682 | |||
16683 | int | ||
16684 | main () | ||
16685 | { | ||
16686 | return $ac_func (); | ||
16687 | ; | ||
16688 | return 0; | ||
16689 | } | ||
16690 | _ACEOF | ||
16691 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16692 | if { (ac_try="$ac_link" | ||
16693 | case "(($ac_try" in | ||
16694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16695 | *) ac_try_echo=$ac_try;; | ||
16696 | esac | ||
16697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16698 | (eval "$ac_link") 2>conftest.er1 | ||
16699 | ac_status=$? | ||
16700 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16701 | rm -f conftest.er1 | ||
16702 | cat conftest.err >&5 | ||
16703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16704 | (exit $ac_status); } && { | ||
16705 | test -z "$ac_c_werror_flag" || | ||
16706 | test ! -s conftest.err | ||
16707 | } && test -s conftest$ac_exeext && | ||
16708 | $as_test_x conftest$ac_exeext; then | ||
16709 | eval "$as_ac_var=yes" | ||
16710 | else | ||
16711 | echo "$as_me: failed program was:" >&5 | ||
16712 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16713 | |||
16714 | eval "$as_ac_var=no" | ||
16715 | fi | ||
16716 | |||
16717 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16718 | conftest$ac_exeext conftest.$ac_ext | ||
16719 | fi | ||
16720 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
16721 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16722 | echo "${ECHO_T}$ac_res" >&6; } | ||
16723 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
16724 | cat >>confdefs.h <<_ACEOF | ||
16725 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16726 | _ACEOF | ||
16727 | |||
16728 | fi | ||
16729 | done | ||
16730 | |||
16731 | |||
16732 | cat >conftest.$ac_ext <<_ACEOF | ||
16733 | /* confdefs.h. */ | ||
16734 | _ACEOF | ||
16735 | cat confdefs.h >>conftest.$ac_ext | ||
16736 | cat >>conftest.$ac_ext <<_ACEOF | ||
16737 | /* end confdefs.h. */ | ||
16738 | #include <ctype.h> | ||
16739 | int | ||
16740 | main () | ||
16741 | { | ||
16742 | return (isblank('a')); | ||
16743 | ; | ||
16744 | return 0; | ||
16745 | } | ||
16746 | _ACEOF | ||
16747 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16748 | if { (ac_try="$ac_link" | ||
16749 | case "(($ac_try" in | ||
16750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16751 | *) ac_try_echo=$ac_try;; | ||
16752 | esac | ||
16753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16754 | (eval "$ac_link") 2>conftest.er1 | ||
16755 | ac_status=$? | ||
16756 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16757 | rm -f conftest.er1 | ||
16758 | cat conftest.err >&5 | ||
16759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16760 | (exit $ac_status); } && { | ||
16761 | test -z "$ac_c_werror_flag" || | ||
16762 | test ! -s conftest.err | ||
16763 | } && test -s conftest$ac_exeext && | ||
16764 | $as_test_x conftest$ac_exeext; then | ||
16765 | |||
16766 | cat >>confdefs.h <<\_ACEOF | ||
16767 | #define HAVE_ISBLANK 1 | ||
16768 | _ACEOF | ||
16769 | |||
16770 | |||
16771 | else | ||
16772 | echo "$as_me: failed program was:" >&5 | ||
16773 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16774 | |||
16775 | |||
16776 | fi | ||
16777 | |||
16778 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16779 | conftest$ac_exeext conftest.$ac_ext | ||
16780 | |||
16781 | # PKCS11 depends on OpenSSL. | ||
16782 | if test "x$openssl" = "xyes" ; then | ||
16783 | # PKCS#11 support requires dlopen() and co | ||
16784 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | ||
16785 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } | ||
16786 | if test "${ac_cv_search_dlopen+set}" = set; then | ||
16787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16788 | else | ||
16789 | ac_func_search_save_LIBS=$LIBS | ||
16790 | cat >conftest.$ac_ext <<_ACEOF | ||
16791 | /* confdefs.h. */ | ||
16792 | _ACEOF | ||
16793 | cat confdefs.h >>conftest.$ac_ext | ||
16794 | cat >>conftest.$ac_ext <<_ACEOF | ||
16795 | /* end confdefs.h. */ | ||
16796 | |||
16797 | /* Override any GCC internal prototype to avoid an error. | ||
16798 | Use char because int might match the return type of a GCC | ||
16799 | builtin and then its argument prototype would still apply. */ | ||
16800 | #ifdef __cplusplus | ||
16801 | extern "C" | ||
16802 | #endif | ||
16803 | char dlopen (); | ||
16804 | int | ||
16805 | main () | ||
16806 | { | ||
16807 | return dlopen (); | ||
16808 | ; | ||
16809 | return 0; | ||
16810 | } | ||
16811 | _ACEOF | ||
16812 | for ac_lib in '' dl; do | ||
16813 | if test -z "$ac_lib"; then | ||
16814 | ac_res="none required" | ||
16815 | else | ||
16816 | ac_res=-l$ac_lib | ||
16817 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
16818 | fi | ||
16819 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16820 | if { (ac_try="$ac_link" | ||
16821 | case "(($ac_try" in | ||
16822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16823 | *) ac_try_echo=$ac_try;; | ||
16824 | esac | ||
16825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16826 | (eval "$ac_link") 2>conftest.er1 | ||
16827 | ac_status=$? | ||
16828 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16829 | rm -f conftest.er1 | ||
16830 | cat conftest.err >&5 | ||
16831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16832 | (exit $ac_status); } && { | ||
16833 | test -z "$ac_c_werror_flag" || | ||
16834 | test ! -s conftest.err | ||
16835 | } && test -s conftest$ac_exeext && | ||
16836 | $as_test_x conftest$ac_exeext; then | ||
16837 | ac_cv_search_dlopen=$ac_res | ||
16838 | else | ||
16839 | echo "$as_me: failed program was:" >&5 | ||
16840 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16841 | |||
16842 | |||
16843 | fi | ||
16844 | |||
16845 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16846 | conftest$ac_exeext | ||
16847 | if test "${ac_cv_search_dlopen+set}" = set; then | ||
16848 | break | ||
16849 | fi | ||
16850 | done | ||
16851 | if test "${ac_cv_search_dlopen+set}" = set; then | ||
16852 | : | ||
16853 | else | ||
16854 | ac_cv_search_dlopen=no | ||
16855 | fi | ||
16856 | rm conftest.$ac_ext | ||
16857 | LIBS=$ac_func_search_save_LIBS | ||
16858 | fi | ||
16859 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | ||
16860 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } | ||
16861 | ac_res=$ac_cv_search_dlopen | ||
16862 | if test "$ac_res" != no; then | ||
16863 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
16864 | |||
16865 | cat >>confdefs.h <<\_ACEOF | ||
16866 | #define ENABLE_PKCS11 | ||
16867 | _ACEOF | ||
16868 | |||
16869 | |||
16870 | fi | ||
16871 | |||
16872 | fi | ||
16873 | |||
16874 | # IRIX has a const char return value for gai_strerror() | ||
16875 | |||
16876 | for ac_func in gai_strerror | ||
16877 | do | ||
16878 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16879 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
16880 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
16881 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16883 | else | ||
16884 | cat >conftest.$ac_ext <<_ACEOF | ||
16885 | /* confdefs.h. */ | ||
16886 | _ACEOF | ||
16887 | cat confdefs.h >>conftest.$ac_ext | ||
16888 | cat >>conftest.$ac_ext <<_ACEOF | ||
16889 | /* end confdefs.h. */ | ||
16890 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
16891 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
16892 | #define $ac_func innocuous_$ac_func | ||
16893 | |||
16894 | /* System header to define __stub macros and hopefully few prototypes, | ||
16895 | which can conflict with char $ac_func (); below. | ||
16896 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
16897 | <limits.h> exists even on freestanding compilers. */ | ||
16898 | |||
16899 | #ifdef __STDC__ | ||
16900 | # include <limits.h> | ||
16901 | #else | ||
16902 | # include <assert.h> | ||
16903 | #endif | ||
16904 | |||
16905 | #undef $ac_func | ||
16906 | |||
16907 | /* Override any GCC internal prototype to avoid an error. | ||
16908 | Use char because int might match the return type of a GCC | ||
16909 | builtin and then its argument prototype would still apply. */ | ||
16910 | #ifdef __cplusplus | ||
16911 | extern "C" | ||
16912 | #endif | ||
16913 | char $ac_func (); | ||
16914 | /* The GNU C library defines this for functions which it implements | ||
16915 | to always fail with ENOSYS. Some functions are actually named | ||
16916 | something starting with __ and the normal name is an alias. */ | ||
16917 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
16918 | choke me | ||
16919 | #endif | ||
16920 | |||
16921 | int | ||
16922 | main () | ||
16923 | { | ||
16924 | return $ac_func (); | ||
16925 | ; | ||
16926 | return 0; | ||
16927 | } | ||
16928 | _ACEOF | ||
16929 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16930 | if { (ac_try="$ac_link" | ||
16931 | case "(($ac_try" in | ||
16932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16933 | *) ac_try_echo=$ac_try;; | ||
16934 | esac | ||
16935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16936 | (eval "$ac_link") 2>conftest.er1 | ||
16937 | ac_status=$? | ||
16938 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16939 | rm -f conftest.er1 | ||
16940 | cat conftest.err >&5 | ||
16941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16942 | (exit $ac_status); } && { | ||
16943 | test -z "$ac_c_werror_flag" || | ||
16944 | test ! -s conftest.err | ||
16945 | } && test -s conftest$ac_exeext && | ||
16946 | $as_test_x conftest$ac_exeext; then | ||
16947 | eval "$as_ac_var=yes" | ||
16948 | else | ||
16949 | echo "$as_me: failed program was:" >&5 | ||
16950 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16951 | |||
16952 | eval "$as_ac_var=no" | ||
16953 | fi | ||
16954 | |||
16955 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16956 | conftest$ac_exeext conftest.$ac_ext | ||
16957 | fi | ||
16958 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
16959 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16960 | echo "${ECHO_T}$ac_res" >&6; } | ||
16961 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
16962 | cat >>confdefs.h <<_ACEOF | ||
16963 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16964 | _ACEOF | ||
16965 | |||
16966 | cat >>confdefs.h <<\_ACEOF | ||
16967 | #define HAVE_GAI_STRERROR 1 | ||
16968 | _ACEOF | ||
16969 | |||
16970 | cat >conftest.$ac_ext <<_ACEOF | ||
16971 | /* confdefs.h. */ | ||
16972 | _ACEOF | ||
16973 | cat confdefs.h >>conftest.$ac_ext | ||
16974 | cat >>conftest.$ac_ext <<_ACEOF | ||
16975 | /* end confdefs.h. */ | ||
16976 | |||
16977 | #include <sys/types.h> | ||
16978 | #include <sys/socket.h> | ||
16979 | #include <netdb.h> | ||
16980 | |||
16981 | const char *gai_strerror(int); | ||
16982 | |||
16983 | int | ||
16984 | main () | ||
16985 | { | ||
16986 | |||
16987 | char *str; | ||
16988 | str = gai_strerror(0); | ||
16989 | |||
16990 | ; | ||
16991 | return 0; | ||
16992 | } | ||
16993 | _ACEOF | ||
16994 | rm -f conftest.$ac_objext | ||
16995 | if { (ac_try="$ac_compile" | ||
16996 | case "(($ac_try" in | ||
16997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16998 | *) ac_try_echo=$ac_try;; | ||
16999 | esac | ||
17000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17001 | (eval "$ac_compile") 2>conftest.er1 | ||
17002 | ac_status=$? | ||
17003 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17004 | rm -f conftest.er1 | ||
17005 | cat conftest.err >&5 | ||
17006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17007 | (exit $ac_status); } && { | ||
17008 | test -z "$ac_c_werror_flag" || | ||
17009 | test ! -s conftest.err | ||
17010 | } && test -s conftest.$ac_objext; then | ||
17011 | |||
17012 | |||
17013 | cat >>confdefs.h <<\_ACEOF | ||
17014 | #define HAVE_CONST_GAI_STRERROR_PROTO 1 | ||
17015 | _ACEOF | ||
17016 | |||
17017 | else | ||
17018 | echo "$as_me: failed program was:" >&5 | ||
17019 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17020 | |||
17021 | |||
17022 | fi | ||
17023 | |||
17024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17025 | fi | ||
17026 | done | ||
17027 | |||
17028 | |||
17029 | { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 | ||
17030 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; } | ||
17031 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
17032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17033 | else | ||
17034 | ac_func_search_save_LIBS=$LIBS | ||
17035 | cat >conftest.$ac_ext <<_ACEOF | ||
17036 | /* confdefs.h. */ | ||
17037 | _ACEOF | ||
17038 | cat confdefs.h >>conftest.$ac_ext | ||
17039 | cat >>conftest.$ac_ext <<_ACEOF | ||
17040 | /* end confdefs.h. */ | ||
17041 | |||
17042 | /* Override any GCC internal prototype to avoid an error. | ||
17043 | Use char because int might match the return type of a GCC | ||
17044 | builtin and then its argument prototype would still apply. */ | ||
17045 | #ifdef __cplusplus | ||
17046 | extern "C" | ||
17047 | #endif | ||
17048 | char nanosleep (); | ||
17049 | int | ||
17050 | main () | ||
17051 | { | ||
17052 | return nanosleep (); | ||
17053 | ; | ||
17054 | return 0; | ||
17055 | } | ||
17056 | _ACEOF | ||
17057 | for ac_lib in '' rt posix4; do | ||
17058 | if test -z "$ac_lib"; then | ||
17059 | ac_res="none required" | ||
17060 | else | ||
17061 | ac_res=-l$ac_lib | ||
17062 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17063 | fi | ||
17064 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17065 | if { (ac_try="$ac_link" | ||
17066 | case "(($ac_try" in | ||
17067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17068 | *) ac_try_echo=$ac_try;; | ||
17069 | esac | ||
17070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17071 | (eval "$ac_link") 2>conftest.er1 | ||
17072 | ac_status=$? | ||
17073 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17074 | rm -f conftest.er1 | ||
17075 | cat conftest.err >&5 | ||
17076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17077 | (exit $ac_status); } && { | ||
17078 | test -z "$ac_c_werror_flag" || | ||
17079 | test ! -s conftest.err | ||
17080 | } && test -s conftest$ac_exeext && | ||
17081 | $as_test_x conftest$ac_exeext; then | ||
17082 | ac_cv_search_nanosleep=$ac_res | ||
17083 | else | ||
17084 | echo "$as_me: failed program was:" >&5 | ||
17085 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17086 | |||
17087 | |||
17088 | fi | ||
17089 | |||
17090 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17091 | conftest$ac_exeext | ||
17092 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
17093 | break | ||
17094 | fi | ||
17095 | done | ||
17096 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
17097 | : | ||
17098 | else | ||
17099 | ac_cv_search_nanosleep=no | ||
17100 | fi | ||
17101 | rm conftest.$ac_ext | ||
17102 | LIBS=$ac_func_search_save_LIBS | ||
17103 | fi | ||
17104 | { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 | ||
17105 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; } | ||
17106 | ac_res=$ac_cv_search_nanosleep | ||
17107 | if test "$ac_res" != no; then | ||
17108 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17109 | |||
17110 | cat >>confdefs.h <<\_ACEOF | ||
17111 | #define HAVE_NANOSLEEP 1 | ||
17112 | _ACEOF | ||
17113 | |||
17114 | fi | ||
17115 | |||
17116 | |||
17117 | { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5 | ||
17118 | echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; } | ||
17119 | if test "${ac_cv_search_clock_gettime+set}" = set; then | ||
17120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17121 | else | ||
17122 | ac_func_search_save_LIBS=$LIBS | ||
17123 | cat >conftest.$ac_ext <<_ACEOF | ||
17124 | /* confdefs.h. */ | ||
17125 | _ACEOF | ||
17126 | cat confdefs.h >>conftest.$ac_ext | ||
17127 | cat >>conftest.$ac_ext <<_ACEOF | ||
17128 | /* end confdefs.h. */ | ||
17129 | |||
17130 | /* Override any GCC internal prototype to avoid an error. | ||
17131 | Use char because int might match the return type of a GCC | ||
17132 | builtin and then its argument prototype would still apply. */ | ||
17133 | #ifdef __cplusplus | ||
17134 | extern "C" | ||
17135 | #endif | ||
17136 | char clock_gettime (); | ||
17137 | int | ||
17138 | main () | ||
17139 | { | ||
17140 | return clock_gettime (); | ||
17141 | ; | ||
17142 | return 0; | ||
17143 | } | ||
17144 | _ACEOF | ||
17145 | for ac_lib in '' rt; do | ||
17146 | if test -z "$ac_lib"; then | ||
17147 | ac_res="none required" | ||
17148 | else | ||
17149 | ac_res=-l$ac_lib | ||
17150 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17151 | fi | ||
17152 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17153 | if { (ac_try="$ac_link" | ||
17154 | case "(($ac_try" in | ||
17155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17156 | *) ac_try_echo=$ac_try;; | ||
17157 | esac | ||
17158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17159 | (eval "$ac_link") 2>conftest.er1 | ||
17160 | ac_status=$? | ||
17161 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17162 | rm -f conftest.er1 | ||
17163 | cat conftest.err >&5 | ||
17164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17165 | (exit $ac_status); } && { | ||
17166 | test -z "$ac_c_werror_flag" || | ||
17167 | test ! -s conftest.err | ||
17168 | } && test -s conftest$ac_exeext && | ||
17169 | $as_test_x conftest$ac_exeext; then | ||
17170 | ac_cv_search_clock_gettime=$ac_res | ||
17171 | else | ||
17172 | echo "$as_me: failed program was:" >&5 | ||
17173 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17174 | |||
17175 | |||
17176 | fi | ||
17177 | |||
17178 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17179 | conftest$ac_exeext | ||
17180 | if test "${ac_cv_search_clock_gettime+set}" = set; then | ||
17181 | break | ||
17182 | fi | ||
17183 | done | ||
17184 | if test "${ac_cv_search_clock_gettime+set}" = set; then | ||
17185 | : | ||
17186 | else | ||
17187 | ac_cv_search_clock_gettime=no | ||
17188 | fi | ||
17189 | rm conftest.$ac_ext | ||
17190 | LIBS=$ac_func_search_save_LIBS | ||
17191 | fi | ||
17192 | { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5 | ||
17193 | echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; } | ||
17194 | ac_res=$ac_cv_search_clock_gettime | ||
17195 | if test "$ac_res" != no; then | ||
17196 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17197 | |||
17198 | cat >>confdefs.h <<\_ACEOF | ||
17199 | #define HAVE_CLOCK_GETTIME 1 | ||
17200 | _ACEOF | ||
17201 | |||
17202 | fi | ||
17203 | |||
17204 | |||
17205 | { echo "$as_me:$LINENO: checking whether getrusage is declared" >&5 | ||
17206 | echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; } | ||
17207 | if test "${ac_cv_have_decl_getrusage+set}" = set; then | ||
17208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17209 | else | ||
17210 | cat >conftest.$ac_ext <<_ACEOF | ||
17211 | /* confdefs.h. */ | ||
17212 | _ACEOF | ||
17213 | cat confdefs.h >>conftest.$ac_ext | ||
17214 | cat >>conftest.$ac_ext <<_ACEOF | ||
17215 | /* end confdefs.h. */ | ||
17216 | $ac_includes_default | ||
17217 | int | ||
17218 | main () | ||
17219 | { | ||
17220 | #ifndef getrusage | ||
17221 | (void) getrusage; | ||
17222 | #endif | ||
17223 | |||
17224 | ; | ||
17225 | return 0; | ||
17226 | } | ||
17227 | _ACEOF | ||
17228 | rm -f conftest.$ac_objext | ||
17229 | if { (ac_try="$ac_compile" | ||
17230 | case "(($ac_try" in | ||
17231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17232 | *) ac_try_echo=$ac_try;; | ||
17233 | esac | ||
17234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17235 | (eval "$ac_compile") 2>conftest.er1 | ||
17236 | ac_status=$? | ||
17237 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17238 | rm -f conftest.er1 | ||
17239 | cat conftest.err >&5 | ||
17240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17241 | (exit $ac_status); } && { | ||
17242 | test -z "$ac_c_werror_flag" || | ||
17243 | test ! -s conftest.err | ||
17244 | } && test -s conftest.$ac_objext; then | ||
17245 | ac_cv_have_decl_getrusage=yes | ||
17246 | else | ||
17247 | echo "$as_me: failed program was:" >&5 | ||
17248 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17249 | |||
17250 | ac_cv_have_decl_getrusage=no | ||
17251 | fi | ||
17252 | |||
17253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17254 | fi | ||
17255 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5 | ||
17256 | echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; } | ||
17257 | if test $ac_cv_have_decl_getrusage = yes; then | ||
17258 | |||
17259 | for ac_func in getrusage | ||
17260 | do | ||
17261 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17262 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17263 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17264 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17266 | else | ||
17267 | cat >conftest.$ac_ext <<_ACEOF | ||
17268 | /* confdefs.h. */ | ||
17269 | _ACEOF | ||
17270 | cat confdefs.h >>conftest.$ac_ext | ||
17271 | cat >>conftest.$ac_ext <<_ACEOF | ||
17272 | /* end confdefs.h. */ | ||
17273 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17274 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17275 | #define $ac_func innocuous_$ac_func | ||
17276 | |||
17277 | /* System header to define __stub macros and hopefully few prototypes, | ||
17278 | which can conflict with char $ac_func (); below. | ||
17279 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17280 | <limits.h> exists even on freestanding compilers. */ | ||
17281 | |||
17282 | #ifdef __STDC__ | ||
17283 | # include <limits.h> | ||
17284 | #else | ||
17285 | # include <assert.h> | ||
17286 | #endif | ||
17287 | |||
17288 | #undef $ac_func | ||
17289 | |||
17290 | /* Override any GCC internal prototype to avoid an error. | ||
17291 | Use char because int might match the return type of a GCC | ||
17292 | builtin and then its argument prototype would still apply. */ | ||
17293 | #ifdef __cplusplus | ||
17294 | extern "C" | ||
17295 | #endif | ||
17296 | char $ac_func (); | ||
17297 | /* The GNU C library defines this for functions which it implements | ||
17298 | to always fail with ENOSYS. Some functions are actually named | ||
17299 | something starting with __ and the normal name is an alias. */ | ||
17300 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17301 | choke me | ||
17302 | #endif | ||
17303 | |||
17304 | int | ||
17305 | main () | ||
17306 | { | ||
17307 | return $ac_func (); | ||
17308 | ; | ||
17309 | return 0; | ||
17310 | } | ||
17311 | _ACEOF | ||
17312 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17313 | if { (ac_try="$ac_link" | ||
17314 | case "(($ac_try" in | ||
17315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17316 | *) ac_try_echo=$ac_try;; | ||
17317 | esac | ||
17318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17319 | (eval "$ac_link") 2>conftest.er1 | ||
17320 | ac_status=$? | ||
17321 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17322 | rm -f conftest.er1 | ||
17323 | cat conftest.err >&5 | ||
17324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17325 | (exit $ac_status); } && { | ||
17326 | test -z "$ac_c_werror_flag" || | ||
17327 | test ! -s conftest.err | ||
17328 | } && test -s conftest$ac_exeext && | ||
17329 | $as_test_x conftest$ac_exeext; then | ||
17330 | eval "$as_ac_var=yes" | ||
17331 | else | ||
17332 | echo "$as_me: failed program was:" >&5 | ||
17333 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17334 | |||
17335 | eval "$as_ac_var=no" | ||
17336 | fi | ||
17337 | |||
17338 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17339 | conftest$ac_exeext conftest.$ac_ext | ||
17340 | fi | ||
17341 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17342 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17343 | echo "${ECHO_T}$ac_res" >&6; } | ||
17344 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17345 | cat >>confdefs.h <<_ACEOF | ||
17346 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17347 | _ACEOF | ||
17348 | |||
17349 | fi | ||
17350 | done | ||
17351 | |||
17352 | fi | ||
17353 | |||
17354 | { echo "$as_me:$LINENO: checking whether strsep is declared" >&5 | ||
17355 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; } | ||
17356 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
17357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17358 | else | ||
17359 | cat >conftest.$ac_ext <<_ACEOF | ||
17360 | /* confdefs.h. */ | ||
17361 | _ACEOF | ||
17362 | cat confdefs.h >>conftest.$ac_ext | ||
17363 | cat >>conftest.$ac_ext <<_ACEOF | ||
17364 | /* end confdefs.h. */ | ||
17365 | |||
17366 | #ifdef HAVE_STRING_H | ||
17367 | # include <string.h> | ||
17368 | #endif | ||
17369 | |||
17370 | |||
17371 | int | ||
17372 | main () | ||
17373 | { | ||
17374 | #ifndef strsep | ||
17375 | (void) strsep; | ||
17376 | #endif | ||
17377 | |||
17378 | ; | ||
17379 | return 0; | ||
17380 | } | ||
17381 | _ACEOF | ||
17382 | rm -f conftest.$ac_objext | ||
17383 | if { (ac_try="$ac_compile" | ||
17384 | case "(($ac_try" in | ||
17385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17386 | *) ac_try_echo=$ac_try;; | ||
17387 | esac | ||
17388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17389 | (eval "$ac_compile") 2>conftest.er1 | ||
17390 | ac_status=$? | ||
17391 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17392 | rm -f conftest.er1 | ||
17393 | cat conftest.err >&5 | ||
17394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17395 | (exit $ac_status); } && { | ||
17396 | test -z "$ac_c_werror_flag" || | ||
17397 | test ! -s conftest.err | ||
17398 | } && test -s conftest.$ac_objext; then | ||
17399 | ac_cv_have_decl_strsep=yes | ||
17400 | else | ||
17401 | echo "$as_me: failed program was:" >&5 | ||
17402 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17403 | |||
17404 | ac_cv_have_decl_strsep=no | ||
17405 | fi | ||
17406 | |||
17407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17408 | fi | ||
17409 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 | ||
17410 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; } | ||
17411 | if test $ac_cv_have_decl_strsep = yes; then | ||
17412 | |||
17413 | for ac_func in strsep | ||
17414 | do | ||
17415 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17416 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17417 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17418 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17420 | else | ||
17421 | cat >conftest.$ac_ext <<_ACEOF | ||
17422 | /* confdefs.h. */ | ||
17423 | _ACEOF | ||
17424 | cat confdefs.h >>conftest.$ac_ext | ||
17425 | cat >>conftest.$ac_ext <<_ACEOF | ||
17426 | /* end confdefs.h. */ | ||
17427 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17428 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17429 | #define $ac_func innocuous_$ac_func | ||
17430 | |||
17431 | /* System header to define __stub macros and hopefully few prototypes, | ||
17432 | which can conflict with char $ac_func (); below. | ||
17433 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17434 | <limits.h> exists even on freestanding compilers. */ | ||
17435 | |||
17436 | #ifdef __STDC__ | ||
17437 | # include <limits.h> | ||
17438 | #else | ||
17439 | # include <assert.h> | ||
17440 | #endif | ||
17441 | |||
17442 | #undef $ac_func | ||
17443 | |||
17444 | /* Override any GCC internal prototype to avoid an error. | ||
17445 | Use char because int might match the return type of a GCC | ||
17446 | builtin and then its argument prototype would still apply. */ | ||
17447 | #ifdef __cplusplus | ||
17448 | extern "C" | ||
17449 | #endif | ||
17450 | char $ac_func (); | ||
17451 | /* The GNU C library defines this for functions which it implements | ||
17452 | to always fail with ENOSYS. Some functions are actually named | ||
17453 | something starting with __ and the normal name is an alias. */ | ||
17454 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17455 | choke me | ||
17456 | #endif | ||
17457 | |||
17458 | int | ||
17459 | main () | ||
17460 | { | ||
17461 | return $ac_func (); | ||
17462 | ; | ||
17463 | return 0; | ||
17464 | } | ||
17465 | _ACEOF | ||
17466 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17467 | if { (ac_try="$ac_link" | ||
17468 | case "(($ac_try" in | ||
17469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17470 | *) ac_try_echo=$ac_try;; | ||
17471 | esac | ||
17472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17473 | (eval "$ac_link") 2>conftest.er1 | ||
17474 | ac_status=$? | ||
17475 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17476 | rm -f conftest.er1 | ||
17477 | cat conftest.err >&5 | ||
17478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17479 | (exit $ac_status); } && { | ||
17480 | test -z "$ac_c_werror_flag" || | ||
17481 | test ! -s conftest.err | ||
17482 | } && test -s conftest$ac_exeext && | ||
17483 | $as_test_x conftest$ac_exeext; then | ||
17484 | eval "$as_ac_var=yes" | ||
17485 | else | ||
17486 | echo "$as_me: failed program was:" >&5 | ||
17487 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17488 | |||
17489 | eval "$as_ac_var=no" | ||
17490 | fi | ||
17491 | |||
17492 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17493 | conftest$ac_exeext conftest.$ac_ext | ||
17494 | fi | ||
17495 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17496 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17497 | echo "${ECHO_T}$ac_res" >&6; } | ||
17498 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17499 | cat >>confdefs.h <<_ACEOF | ||
17500 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17501 | _ACEOF | ||
17502 | |||
17503 | fi | ||
17504 | done | ||
17505 | |||
17506 | fi | ||
17507 | |||
17508 | |||
17509 | { echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5 | ||
17510 | echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; } | ||
17511 | if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then | ||
17512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17513 | else | ||
17514 | cat >conftest.$ac_ext <<_ACEOF | ||
17515 | /* confdefs.h. */ | ||
17516 | _ACEOF | ||
17517 | cat confdefs.h >>conftest.$ac_ext | ||
17518 | cat >>conftest.$ac_ext <<_ACEOF | ||
17519 | /* end confdefs.h. */ | ||
17520 | #include <termios.h> | ||
17521 | |||
17522 | |||
17523 | int | ||
17524 | main () | ||
17525 | { | ||
17526 | #ifndef tcsendbreak | ||
17527 | (void) tcsendbreak; | ||
17528 | #endif | ||
17529 | |||
17530 | ; | ||
17531 | return 0; | ||
17532 | } | ||
17533 | _ACEOF | ||
17534 | rm -f conftest.$ac_objext | ||
17535 | if { (ac_try="$ac_compile" | ||
17536 | case "(($ac_try" in | ||
17537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17538 | *) ac_try_echo=$ac_try;; | ||
17539 | esac | ||
17540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17541 | (eval "$ac_compile") 2>conftest.er1 | ||
17542 | ac_status=$? | ||
17543 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17544 | rm -f conftest.er1 | ||
17545 | cat conftest.err >&5 | ||
17546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17547 | (exit $ac_status); } && { | ||
17548 | test -z "$ac_c_werror_flag" || | ||
17549 | test ! -s conftest.err | ||
17550 | } && test -s conftest.$ac_objext; then | ||
17551 | ac_cv_have_decl_tcsendbreak=yes | ||
17552 | else | ||
17553 | echo "$as_me: failed program was:" >&5 | ||
17554 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17555 | |||
17556 | ac_cv_have_decl_tcsendbreak=no | ||
17557 | fi | ||
17558 | |||
17559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17560 | fi | ||
17561 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5 | ||
17562 | echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; } | ||
17563 | if test $ac_cv_have_decl_tcsendbreak = yes; then | ||
17564 | cat >>confdefs.h <<\_ACEOF | ||
17565 | #define HAVE_TCSENDBREAK 1 | ||
17566 | _ACEOF | ||
17567 | |||
17568 | else | ||
17569 | |||
17570 | for ac_func in tcsendbreak | ||
17571 | do | ||
17572 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17573 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17574 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17575 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17577 | else | ||
17578 | cat >conftest.$ac_ext <<_ACEOF | ||
17579 | /* confdefs.h. */ | ||
17580 | _ACEOF | ||
17581 | cat confdefs.h >>conftest.$ac_ext | ||
17582 | cat >>conftest.$ac_ext <<_ACEOF | ||
17583 | /* end confdefs.h. */ | ||
17584 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17585 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17586 | #define $ac_func innocuous_$ac_func | ||
17587 | |||
17588 | /* System header to define __stub macros and hopefully few prototypes, | ||
17589 | which can conflict with char $ac_func (); below. | ||
17590 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17591 | <limits.h> exists even on freestanding compilers. */ | ||
17592 | |||
17593 | #ifdef __STDC__ | ||
17594 | # include <limits.h> | ||
17595 | #else | ||
17596 | # include <assert.h> | ||
17597 | #endif | ||
17598 | |||
17599 | #undef $ac_func | ||
17600 | |||
17601 | /* Override any GCC internal prototype to avoid an error. | ||
17602 | Use char because int might match the return type of a GCC | ||
17603 | builtin and then its argument prototype would still apply. */ | ||
17604 | #ifdef __cplusplus | ||
17605 | extern "C" | ||
17606 | #endif | ||
17607 | char $ac_func (); | ||
17608 | /* The GNU C library defines this for functions which it implements | ||
17609 | to always fail with ENOSYS. Some functions are actually named | ||
17610 | something starting with __ and the normal name is an alias. */ | ||
17611 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17612 | choke me | ||
17613 | #endif | ||
17614 | |||
17615 | int | ||
17616 | main () | ||
17617 | { | ||
17618 | return $ac_func (); | ||
17619 | ; | ||
17620 | return 0; | ||
17621 | } | ||
17622 | _ACEOF | ||
17623 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17624 | if { (ac_try="$ac_link" | ||
17625 | case "(($ac_try" in | ||
17626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17627 | *) ac_try_echo=$ac_try;; | ||
17628 | esac | ||
17629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17630 | (eval "$ac_link") 2>conftest.er1 | ||
17631 | ac_status=$? | ||
17632 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17633 | rm -f conftest.er1 | ||
17634 | cat conftest.err >&5 | ||
17635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17636 | (exit $ac_status); } && { | ||
17637 | test -z "$ac_c_werror_flag" || | ||
17638 | test ! -s conftest.err | ||
17639 | } && test -s conftest$ac_exeext && | ||
17640 | $as_test_x conftest$ac_exeext; then | ||
17641 | eval "$as_ac_var=yes" | ||
17642 | else | ||
17643 | echo "$as_me: failed program was:" >&5 | ||
17644 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17645 | |||
17646 | eval "$as_ac_var=no" | ||
17647 | fi | ||
17648 | |||
17649 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17650 | conftest$ac_exeext conftest.$ac_ext | ||
17651 | fi | ||
17652 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17653 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17654 | echo "${ECHO_T}$ac_res" >&6; } | ||
17655 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17656 | cat >>confdefs.h <<_ACEOF | ||
17657 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17658 | _ACEOF | ||
17659 | |||
17660 | fi | ||
17661 | done | ||
17662 | |||
17663 | fi | ||
17664 | |||
17665 | |||
17666 | { echo "$as_me:$LINENO: checking whether h_errno is declared" >&5 | ||
17667 | echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; } | ||
17668 | if test "${ac_cv_have_decl_h_errno+set}" = set; then | ||
17669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17670 | else | ||
17671 | cat >conftest.$ac_ext <<_ACEOF | ||
17672 | /* confdefs.h. */ | ||
17673 | _ACEOF | ||
17674 | cat confdefs.h >>conftest.$ac_ext | ||
17675 | cat >>conftest.$ac_ext <<_ACEOF | ||
17676 | /* end confdefs.h. */ | ||
17677 | #include <netdb.h> | ||
17678 | |||
17679 | int | ||
17680 | main () | ||
17681 | { | ||
17682 | #ifndef h_errno | ||
17683 | (void) h_errno; | ||
17684 | #endif | ||
17685 | |||
17686 | ; | ||
17687 | return 0; | ||
17688 | } | ||
17689 | _ACEOF | ||
17690 | rm -f conftest.$ac_objext | ||
17691 | if { (ac_try="$ac_compile" | ||
17692 | case "(($ac_try" in | ||
17693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17694 | *) ac_try_echo=$ac_try;; | ||
17695 | esac | ||
17696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17697 | (eval "$ac_compile") 2>conftest.er1 | ||
17698 | ac_status=$? | ||
17699 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17700 | rm -f conftest.er1 | ||
17701 | cat conftest.err >&5 | ||
17702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17703 | (exit $ac_status); } && { | ||
17704 | test -z "$ac_c_werror_flag" || | ||
17705 | test ! -s conftest.err | ||
17706 | } && test -s conftest.$ac_objext; then | ||
17707 | ac_cv_have_decl_h_errno=yes | ||
17708 | else | ||
17709 | echo "$as_me: failed program was:" >&5 | ||
17710 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17711 | |||
17712 | ac_cv_have_decl_h_errno=no | ||
17713 | fi | ||
17714 | |||
17715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17716 | fi | ||
17717 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5 | ||
17718 | echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; } | ||
17719 | if test $ac_cv_have_decl_h_errno = yes; then | ||
17720 | |||
17721 | cat >>confdefs.h <<_ACEOF | ||
17722 | #define HAVE_DECL_H_ERRNO 1 | ||
17723 | _ACEOF | ||
17724 | |||
17725 | |||
17726 | else | ||
17727 | cat >>confdefs.h <<_ACEOF | ||
17728 | #define HAVE_DECL_H_ERRNO 0 | ||
17729 | _ACEOF | ||
17730 | |||
17731 | |||
17732 | fi | ||
17733 | |||
17734 | |||
17735 | |||
17736 | { echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5 | ||
17737 | echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; } | ||
17738 | if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then | ||
17739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17740 | else | ||
17741 | cat >conftest.$ac_ext <<_ACEOF | ||
17742 | /* confdefs.h. */ | ||
17743 | _ACEOF | ||
17744 | cat confdefs.h >>conftest.$ac_ext | ||
17745 | cat >>conftest.$ac_ext <<_ACEOF | ||
17746 | /* end confdefs.h. */ | ||
17747 | |||
17748 | #include <sys/types.h> | ||
17749 | #include <sys/socket.h> | ||
17750 | |||
17751 | |||
17752 | int | ||
17753 | main () | ||
17754 | { | ||
17755 | #ifndef SHUT_RD | ||
17756 | (void) SHUT_RD; | ||
17757 | #endif | ||
17758 | |||
17759 | ; | ||
17760 | return 0; | ||
17761 | } | ||
17762 | _ACEOF | ||
17763 | rm -f conftest.$ac_objext | ||
17764 | if { (ac_try="$ac_compile" | ||
17765 | case "(($ac_try" in | ||
17766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17767 | *) ac_try_echo=$ac_try;; | ||
17768 | esac | ||
17769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17770 | (eval "$ac_compile") 2>conftest.er1 | ||
17771 | ac_status=$? | ||
17772 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17773 | rm -f conftest.er1 | ||
17774 | cat conftest.err >&5 | ||
17775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17776 | (exit $ac_status); } && { | ||
17777 | test -z "$ac_c_werror_flag" || | ||
17778 | test ! -s conftest.err | ||
17779 | } && test -s conftest.$ac_objext; then | ||
17780 | ac_cv_have_decl_SHUT_RD=yes | ||
17781 | else | ||
17782 | echo "$as_me: failed program was:" >&5 | ||
17783 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17784 | |||
17785 | ac_cv_have_decl_SHUT_RD=no | ||
17786 | fi | ||
17787 | |||
17788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17789 | fi | ||
17790 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5 | ||
17791 | echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; } | ||
17792 | if test $ac_cv_have_decl_SHUT_RD = yes; then | ||
17793 | |||
17794 | cat >>confdefs.h <<_ACEOF | ||
17795 | #define HAVE_DECL_SHUT_RD 1 | ||
17796 | _ACEOF | ||
17797 | |||
17798 | |||
17799 | else | ||
17800 | cat >>confdefs.h <<_ACEOF | ||
17801 | #define HAVE_DECL_SHUT_RD 0 | ||
17802 | _ACEOF | ||
17803 | |||
17804 | |||
17805 | fi | ||
17806 | |||
17807 | |||
17808 | |||
17809 | { echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5 | ||
17810 | echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; } | ||
17811 | if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then | ||
17812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17813 | else | ||
17814 | cat >conftest.$ac_ext <<_ACEOF | ||
17815 | /* confdefs.h. */ | ||
17816 | _ACEOF | ||
17817 | cat confdefs.h >>conftest.$ac_ext | ||
17818 | cat >>conftest.$ac_ext <<_ACEOF | ||
17819 | /* end confdefs.h. */ | ||
17820 | |||
17821 | #include <sys/types.h> | ||
17822 | #ifdef HAVE_SYS_STAT_H | ||
17823 | # include <sys/stat.h> | ||
17824 | #endif | ||
17825 | #ifdef HAVE_FCNTL_H | ||
17826 | # include <fcntl.h> | ||
17827 | #endif | ||
17828 | |||
17829 | |||
17830 | int | ||
17831 | main () | ||
17832 | { | ||
17833 | #ifndef O_NONBLOCK | ||
17834 | (void) O_NONBLOCK; | ||
17835 | #endif | ||
17836 | |||
17837 | ; | ||
17838 | return 0; | ||
17839 | } | ||
17840 | _ACEOF | ||
17841 | rm -f conftest.$ac_objext | ||
17842 | if { (ac_try="$ac_compile" | ||
17843 | case "(($ac_try" in | ||
17844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17845 | *) ac_try_echo=$ac_try;; | ||
17846 | esac | ||
17847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17848 | (eval "$ac_compile") 2>conftest.er1 | ||
17849 | ac_status=$? | ||
17850 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17851 | rm -f conftest.er1 | ||
17852 | cat conftest.err >&5 | ||
17853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17854 | (exit $ac_status); } && { | ||
17855 | test -z "$ac_c_werror_flag" || | ||
17856 | test ! -s conftest.err | ||
17857 | } && test -s conftest.$ac_objext; then | ||
17858 | ac_cv_have_decl_O_NONBLOCK=yes | ||
17859 | else | ||
17860 | echo "$as_me: failed program was:" >&5 | ||
17861 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17862 | |||
17863 | ac_cv_have_decl_O_NONBLOCK=no | ||
17864 | fi | ||
17865 | |||
17866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17867 | fi | ||
17868 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5 | ||
17869 | echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; } | ||
17870 | if test $ac_cv_have_decl_O_NONBLOCK = yes; then | ||
17871 | |||
17872 | cat >>confdefs.h <<_ACEOF | ||
17873 | #define HAVE_DECL_O_NONBLOCK 1 | ||
17874 | _ACEOF | ||
17875 | |||
17876 | |||
17877 | else | ||
17878 | cat >>confdefs.h <<_ACEOF | ||
17879 | #define HAVE_DECL_O_NONBLOCK 0 | ||
17880 | _ACEOF | ||
17881 | |||
17882 | |||
17883 | fi | ||
17884 | |||
17885 | |||
17886 | |||
17887 | { echo "$as_me:$LINENO: checking whether writev is declared" >&5 | ||
17888 | echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; } | ||
17889 | if test "${ac_cv_have_decl_writev+set}" = set; then | ||
17890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17891 | else | ||
17892 | cat >conftest.$ac_ext <<_ACEOF | ||
17893 | /* confdefs.h. */ | ||
17894 | _ACEOF | ||
17895 | cat confdefs.h >>conftest.$ac_ext | ||
17896 | cat >>conftest.$ac_ext <<_ACEOF | ||
17897 | /* end confdefs.h. */ | ||
17898 | |||
17899 | #include <sys/types.h> | ||
17900 | #include <sys/uio.h> | ||
17901 | #include <unistd.h> | ||
17902 | |||
17903 | |||
17904 | int | ||
17905 | main () | ||
17906 | { | ||
17907 | #ifndef writev | ||
17908 | (void) writev; | ||
17909 | #endif | ||
17910 | |||
17911 | ; | ||
17912 | return 0; | ||
17913 | } | ||
17914 | _ACEOF | ||
17915 | rm -f conftest.$ac_objext | ||
17916 | if { (ac_try="$ac_compile" | ||
17917 | case "(($ac_try" in | ||
17918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17919 | *) ac_try_echo=$ac_try;; | ||
17920 | esac | ||
17921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17922 | (eval "$ac_compile") 2>conftest.er1 | ||
17923 | ac_status=$? | ||
17924 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17925 | rm -f conftest.er1 | ||
17926 | cat conftest.err >&5 | ||
17927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17928 | (exit $ac_status); } && { | ||
17929 | test -z "$ac_c_werror_flag" || | ||
17930 | test ! -s conftest.err | ||
17931 | } && test -s conftest.$ac_objext; then | ||
17932 | ac_cv_have_decl_writev=yes | ||
17933 | else | ||
17934 | echo "$as_me: failed program was:" >&5 | ||
17935 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17936 | |||
17937 | ac_cv_have_decl_writev=no | ||
17938 | fi | ||
17939 | |||
17940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17941 | fi | ||
17942 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5 | ||
17943 | echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; } | ||
17944 | if test $ac_cv_have_decl_writev = yes; then | ||
17945 | |||
17946 | cat >>confdefs.h <<_ACEOF | ||
17947 | #define HAVE_DECL_WRITEV 1 | ||
17948 | _ACEOF | ||
17949 | |||
17950 | |||
17951 | else | ||
17952 | cat >>confdefs.h <<_ACEOF | ||
17953 | #define HAVE_DECL_WRITEV 0 | ||
17954 | _ACEOF | ||
17955 | |||
17956 | |||
17957 | fi | ||
17958 | |||
17959 | |||
17960 | |||
17961 | { echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5 | ||
17962 | echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; } | ||
17963 | if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then | ||
17964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17965 | else | ||
17966 | cat >conftest.$ac_ext <<_ACEOF | ||
17967 | /* confdefs.h. */ | ||
17968 | _ACEOF | ||
17969 | cat confdefs.h >>conftest.$ac_ext | ||
17970 | cat >>conftest.$ac_ext <<_ACEOF | ||
17971 | /* end confdefs.h. */ | ||
17972 | |||
17973 | #include <sys/param.h> | ||
17974 | |||
17975 | |||
17976 | int | ||
17977 | main () | ||
17978 | { | ||
17979 | #ifndef MAXSYMLINKS | ||
17980 | (void) MAXSYMLINKS; | ||
17981 | #endif | ||
17982 | |||
17983 | ; | ||
17984 | return 0; | ||
17985 | } | ||
17986 | _ACEOF | ||
17987 | rm -f conftest.$ac_objext | ||
17988 | if { (ac_try="$ac_compile" | ||
17989 | case "(($ac_try" in | ||
17990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17991 | *) ac_try_echo=$ac_try;; | ||
17992 | esac | ||
17993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17994 | (eval "$ac_compile") 2>conftest.er1 | ||
17995 | ac_status=$? | ||
17996 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17997 | rm -f conftest.er1 | ||
17998 | cat conftest.err >&5 | ||
17999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18000 | (exit $ac_status); } && { | ||
18001 | test -z "$ac_c_werror_flag" || | ||
18002 | test ! -s conftest.err | ||
18003 | } && test -s conftest.$ac_objext; then | ||
18004 | ac_cv_have_decl_MAXSYMLINKS=yes | ||
18005 | else | ||
18006 | echo "$as_me: failed program was:" >&5 | ||
18007 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18008 | |||
18009 | ac_cv_have_decl_MAXSYMLINKS=no | ||
18010 | fi | ||
18011 | |||
18012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18013 | fi | ||
18014 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5 | ||
18015 | echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; } | ||
18016 | if test $ac_cv_have_decl_MAXSYMLINKS = yes; then | ||
18017 | |||
18018 | cat >>confdefs.h <<_ACEOF | ||
18019 | #define HAVE_DECL_MAXSYMLINKS 1 | ||
18020 | _ACEOF | ||
18021 | |||
18022 | |||
18023 | else | ||
18024 | cat >>confdefs.h <<_ACEOF | ||
18025 | #define HAVE_DECL_MAXSYMLINKS 0 | ||
18026 | _ACEOF | ||
18027 | |||
18028 | |||
18029 | fi | ||
18030 | |||
18031 | |||
18032 | |||
18033 | { echo "$as_me:$LINENO: checking whether offsetof is declared" >&5 | ||
18034 | echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; } | ||
18035 | if test "${ac_cv_have_decl_offsetof+set}" = set; then | ||
18036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18037 | else | ||
18038 | cat >conftest.$ac_ext <<_ACEOF | ||
18039 | /* confdefs.h. */ | ||
18040 | _ACEOF | ||
18041 | cat confdefs.h >>conftest.$ac_ext | ||
18042 | cat >>conftest.$ac_ext <<_ACEOF | ||
18043 | /* end confdefs.h. */ | ||
18044 | |||
18045 | #include <stddef.h> | ||
18046 | |||
18047 | |||
18048 | int | ||
18049 | main () | ||
18050 | { | ||
18051 | #ifndef offsetof | ||
18052 | (void) offsetof; | ||
18053 | #endif | ||
18054 | |||
18055 | ; | ||
18056 | return 0; | ||
18057 | } | ||
18058 | _ACEOF | ||
18059 | rm -f conftest.$ac_objext | ||
18060 | if { (ac_try="$ac_compile" | ||
18061 | case "(($ac_try" in | ||
18062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18063 | *) ac_try_echo=$ac_try;; | ||
18064 | esac | ||
18065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18066 | (eval "$ac_compile") 2>conftest.er1 | ||
18067 | ac_status=$? | ||
18068 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18069 | rm -f conftest.er1 | ||
18070 | cat conftest.err >&5 | ||
18071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18072 | (exit $ac_status); } && { | ||
18073 | test -z "$ac_c_werror_flag" || | ||
18074 | test ! -s conftest.err | ||
18075 | } && test -s conftest.$ac_objext; then | ||
18076 | ac_cv_have_decl_offsetof=yes | ||
18077 | else | ||
18078 | echo "$as_me: failed program was:" >&5 | ||
18079 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18080 | |||
18081 | ac_cv_have_decl_offsetof=no | ||
18082 | fi | ||
18083 | |||
18084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18085 | fi | ||
18086 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5 | ||
18087 | echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; } | ||
18088 | if test $ac_cv_have_decl_offsetof = yes; then | ||
18089 | |||
18090 | cat >>confdefs.h <<_ACEOF | ||
18091 | #define HAVE_DECL_OFFSETOF 1 | ||
18092 | _ACEOF | ||
18093 | |||
18094 | |||
18095 | else | ||
18096 | cat >>confdefs.h <<_ACEOF | ||
18097 | #define HAVE_DECL_OFFSETOF 0 | ||
18098 | _ACEOF | ||
18099 | |||
18100 | |||
18101 | fi | ||
18102 | |||
18103 | |||
18104 | |||
18105 | # extra bits for select(2) | ||
18106 | { echo "$as_me:$LINENO: checking whether howmany is declared" >&5 | ||
18107 | echo $ECHO_N "checking whether howmany is declared... $ECHO_C" >&6; } | ||
18108 | if test "${ac_cv_have_decl_howmany+set}" = set; then | ||
18109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18110 | else | ||
18111 | cat >conftest.$ac_ext <<_ACEOF | ||
18112 | /* confdefs.h. */ | ||
18113 | _ACEOF | ||
18114 | cat confdefs.h >>conftest.$ac_ext | ||
18115 | cat >>conftest.$ac_ext <<_ACEOF | ||
18116 | /* end confdefs.h. */ | ||
18117 | |||
18118 | #include <sys/param.h> | ||
18119 | #include <sys/types.h> | ||
18120 | #ifdef HAVE_SYS_SYSMACROS_H | ||
18121 | #include <sys/sysmacros.h> | ||
18122 | #endif | ||
18123 | #ifdef HAVE_SYS_SELECT_H | ||
18124 | #include <sys/select.h> | ||
18125 | #endif | ||
18126 | #ifdef HAVE_SYS_TIME_H | ||
18127 | #include <sys/time.h> | ||
18128 | #endif | ||
18129 | #ifdef HAVE_UNISTD_H | ||
18130 | #include <unistd.h> | ||
18131 | #endif | ||
18132 | |||
18133 | |||
18134 | int | ||
18135 | main () | ||
18136 | { | ||
18137 | #ifndef howmany | ||
18138 | (void) howmany; | ||
18139 | #endif | ||
18140 | |||
18141 | ; | ||
18142 | return 0; | ||
18143 | } | ||
18144 | _ACEOF | ||
18145 | rm -f conftest.$ac_objext | ||
18146 | if { (ac_try="$ac_compile" | ||
18147 | case "(($ac_try" in | ||
18148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18149 | *) ac_try_echo=$ac_try;; | ||
18150 | esac | ||
18151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18152 | (eval "$ac_compile") 2>conftest.er1 | ||
18153 | ac_status=$? | ||
18154 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18155 | rm -f conftest.er1 | ||
18156 | cat conftest.err >&5 | ||
18157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18158 | (exit $ac_status); } && { | ||
18159 | test -z "$ac_c_werror_flag" || | ||
18160 | test ! -s conftest.err | ||
18161 | } && test -s conftest.$ac_objext; then | ||
18162 | ac_cv_have_decl_howmany=yes | ||
18163 | else | ||
18164 | echo "$as_me: failed program was:" >&5 | ||
18165 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18166 | |||
18167 | ac_cv_have_decl_howmany=no | ||
18168 | fi | ||
18169 | |||
18170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18171 | fi | ||
18172 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_howmany" >&5 | ||
18173 | echo "${ECHO_T}$ac_cv_have_decl_howmany" >&6; } | ||
18174 | if test $ac_cv_have_decl_howmany = yes; then | ||
18175 | |||
18176 | cat >>confdefs.h <<_ACEOF | ||
18177 | #define HAVE_DECL_HOWMANY 1 | ||
18178 | _ACEOF | ||
18179 | |||
18180 | |||
18181 | else | ||
18182 | cat >>confdefs.h <<_ACEOF | ||
18183 | #define HAVE_DECL_HOWMANY 0 | ||
18184 | _ACEOF | ||
18185 | |||
18186 | |||
18187 | fi | ||
18188 | { echo "$as_me:$LINENO: checking whether NFDBITS is declared" >&5 | ||
18189 | echo $ECHO_N "checking whether NFDBITS is declared... $ECHO_C" >&6; } | ||
18190 | if test "${ac_cv_have_decl_NFDBITS+set}" = set; then | ||
18191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18192 | else | ||
18193 | cat >conftest.$ac_ext <<_ACEOF | ||
18194 | /* confdefs.h. */ | ||
18195 | _ACEOF | ||
18196 | cat confdefs.h >>conftest.$ac_ext | ||
18197 | cat >>conftest.$ac_ext <<_ACEOF | ||
18198 | /* end confdefs.h. */ | ||
18199 | |||
18200 | #include <sys/param.h> | ||
18201 | #include <sys/types.h> | ||
18202 | #ifdef HAVE_SYS_SYSMACROS_H | ||
18203 | #include <sys/sysmacros.h> | ||
18204 | #endif | ||
18205 | #ifdef HAVE_SYS_SELECT_H | ||
18206 | #include <sys/select.h> | ||
18207 | #endif | ||
18208 | #ifdef HAVE_SYS_TIME_H | ||
18209 | #include <sys/time.h> | ||
18210 | #endif | ||
18211 | #ifdef HAVE_UNISTD_H | ||
18212 | #include <unistd.h> | ||
18213 | #endif | ||
18214 | |||
18215 | |||
18216 | int | ||
18217 | main () | ||
18218 | { | ||
18219 | #ifndef NFDBITS | ||
18220 | (void) NFDBITS; | ||
18221 | #endif | ||
18222 | |||
18223 | ; | ||
18224 | return 0; | ||
18225 | } | ||
18226 | _ACEOF | ||
18227 | rm -f conftest.$ac_objext | ||
18228 | if { (ac_try="$ac_compile" | ||
18229 | case "(($ac_try" in | ||
18230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18231 | *) ac_try_echo=$ac_try;; | ||
18232 | esac | ||
18233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18234 | (eval "$ac_compile") 2>conftest.er1 | ||
18235 | ac_status=$? | ||
18236 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18237 | rm -f conftest.er1 | ||
18238 | cat conftest.err >&5 | ||
18239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18240 | (exit $ac_status); } && { | ||
18241 | test -z "$ac_c_werror_flag" || | ||
18242 | test ! -s conftest.err | ||
18243 | } && test -s conftest.$ac_objext; then | ||
18244 | ac_cv_have_decl_NFDBITS=yes | ||
18245 | else | ||
18246 | echo "$as_me: failed program was:" >&5 | ||
18247 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18248 | |||
18249 | ac_cv_have_decl_NFDBITS=no | ||
18250 | fi | ||
18251 | |||
18252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18253 | fi | ||
18254 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_NFDBITS" >&5 | ||
18255 | echo "${ECHO_T}$ac_cv_have_decl_NFDBITS" >&6; } | ||
18256 | if test $ac_cv_have_decl_NFDBITS = yes; then | ||
18257 | |||
18258 | cat >>confdefs.h <<_ACEOF | ||
18259 | #define HAVE_DECL_NFDBITS 1 | ||
18260 | _ACEOF | ||
18261 | |||
18262 | |||
18263 | else | ||
18264 | cat >>confdefs.h <<_ACEOF | ||
18265 | #define HAVE_DECL_NFDBITS 0 | ||
18266 | _ACEOF | ||
18267 | |||
18268 | |||
18269 | fi | ||
18270 | |||
18271 | |||
18272 | { echo "$as_me:$LINENO: checking for fd_mask" >&5 | ||
18273 | echo $ECHO_N "checking for fd_mask... $ECHO_C" >&6; } | ||
18274 | if test "${ac_cv_type_fd_mask+set}" = set; then | ||
18275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18276 | else | ||
18277 | cat >conftest.$ac_ext <<_ACEOF | ||
18278 | /* confdefs.h. */ | ||
18279 | _ACEOF | ||
18280 | cat confdefs.h >>conftest.$ac_ext | ||
18281 | cat >>conftest.$ac_ext <<_ACEOF | ||
18282 | /* end confdefs.h. */ | ||
18283 | |||
18284 | #include <sys/param.h> | ||
18285 | #include <sys/types.h> | ||
18286 | #ifdef HAVE_SYS_SELECT_H | ||
18287 | #include <sys/select.h> | ||
18288 | #endif | ||
18289 | #ifdef HAVE_SYS_TIME_H | ||
18290 | #include <sys/time.h> | ||
18291 | #endif | ||
18292 | #ifdef HAVE_UNISTD_H | ||
18293 | #include <unistd.h> | ||
18294 | #endif | ||
18295 | |||
18296 | |||
18297 | typedef fd_mask ac__type_new_; | ||
18298 | int | ||
18299 | main () | ||
18300 | { | ||
18301 | if ((ac__type_new_ *) 0) | ||
18302 | return 0; | ||
18303 | if (sizeof (ac__type_new_)) | ||
18304 | return 0; | ||
18305 | ; | ||
18306 | return 0; | ||
18307 | } | ||
18308 | _ACEOF | ||
18309 | rm -f conftest.$ac_objext | ||
18310 | if { (ac_try="$ac_compile" | ||
18311 | case "(($ac_try" in | ||
18312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18313 | *) ac_try_echo=$ac_try;; | ||
18314 | esac | ||
18315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18316 | (eval "$ac_compile") 2>conftest.er1 | ||
18317 | ac_status=$? | ||
18318 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18319 | rm -f conftest.er1 | ||
18320 | cat conftest.err >&5 | ||
18321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18322 | (exit $ac_status); } && { | ||
18323 | test -z "$ac_c_werror_flag" || | ||
18324 | test ! -s conftest.err | ||
18325 | } && test -s conftest.$ac_objext; then | ||
18326 | ac_cv_type_fd_mask=yes | ||
18327 | else | ||
18328 | echo "$as_me: failed program was:" >&5 | ||
18329 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18330 | |||
18331 | ac_cv_type_fd_mask=no | ||
18332 | fi | ||
18333 | |||
18334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18335 | fi | ||
18336 | { echo "$as_me:$LINENO: result: $ac_cv_type_fd_mask" >&5 | ||
18337 | echo "${ECHO_T}$ac_cv_type_fd_mask" >&6; } | ||
18338 | if test $ac_cv_type_fd_mask = yes; then | ||
18339 | |||
18340 | cat >>confdefs.h <<_ACEOF | ||
18341 | #define HAVE_FD_MASK 1 | ||
18342 | _ACEOF | ||
18343 | |||
18344 | |||
18345 | fi | ||
18346 | |||
18347 | |||
18348 | |||
18349 | for ac_func in setresuid | ||
18350 | do | ||
18351 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18352 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18353 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
18354 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18356 | else | ||
18357 | cat >conftest.$ac_ext <<_ACEOF | ||
18358 | /* confdefs.h. */ | ||
18359 | _ACEOF | ||
18360 | cat confdefs.h >>conftest.$ac_ext | ||
18361 | cat >>conftest.$ac_ext <<_ACEOF | ||
18362 | /* end confdefs.h. */ | ||
18363 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18364 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18365 | #define $ac_func innocuous_$ac_func | ||
18366 | |||
18367 | /* System header to define __stub macros and hopefully few prototypes, | ||
18368 | which can conflict with char $ac_func (); below. | ||
18369 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18370 | <limits.h> exists even on freestanding compilers. */ | ||
18371 | |||
18372 | #ifdef __STDC__ | ||
18373 | # include <limits.h> | ||
18374 | #else | ||
18375 | # include <assert.h> | ||
18376 | #endif | ||
18377 | |||
18378 | #undef $ac_func | ||
18379 | |||
18380 | /* Override any GCC internal prototype to avoid an error. | ||
18381 | Use char because int might match the return type of a GCC | ||
18382 | builtin and then its argument prototype would still apply. */ | ||
18383 | #ifdef __cplusplus | ||
18384 | extern "C" | ||
18385 | #endif | ||
18386 | char $ac_func (); | ||
18387 | /* The GNU C library defines this for functions which it implements | ||
18388 | to always fail with ENOSYS. Some functions are actually named | ||
18389 | something starting with __ and the normal name is an alias. */ | ||
18390 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18391 | choke me | ||
18392 | #endif | ||
18393 | |||
18394 | int | ||
18395 | main () | ||
18396 | { | ||
18397 | return $ac_func (); | ||
18398 | ; | ||
18399 | return 0; | ||
18400 | } | ||
18401 | _ACEOF | ||
18402 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18403 | if { (ac_try="$ac_link" | ||
18404 | case "(($ac_try" in | ||
18405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18406 | *) ac_try_echo=$ac_try;; | ||
18407 | esac | ||
18408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18409 | (eval "$ac_link") 2>conftest.er1 | ||
18410 | ac_status=$? | ||
18411 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18412 | rm -f conftest.er1 | ||
18413 | cat conftest.err >&5 | ||
18414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18415 | (exit $ac_status); } && { | ||
18416 | test -z "$ac_c_werror_flag" || | ||
18417 | test ! -s conftest.err | ||
18418 | } && test -s conftest$ac_exeext && | ||
18419 | $as_test_x conftest$ac_exeext; then | ||
18420 | eval "$as_ac_var=yes" | ||
18421 | else | ||
18422 | echo "$as_me: failed program was:" >&5 | ||
18423 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18424 | |||
18425 | eval "$as_ac_var=no" | ||
18426 | fi | ||
18427 | |||
18428 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18429 | conftest$ac_exeext conftest.$ac_ext | ||
18430 | fi | ||
18431 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
18432 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18433 | echo "${ECHO_T}$ac_res" >&6; } | ||
18434 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
18435 | cat >>confdefs.h <<_ACEOF | ||
18436 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18437 | _ACEOF | ||
18438 | |||
18439 | { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5 | ||
18440 | echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; } | ||
18441 | if test "$cross_compiling" = yes; then | ||
18442 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
18443 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
18444 | |||
18445 | else | ||
18446 | cat >conftest.$ac_ext <<_ACEOF | ||
18447 | /* confdefs.h. */ | ||
18448 | _ACEOF | ||
18449 | cat confdefs.h >>conftest.$ac_ext | ||
18450 | cat >>conftest.$ac_ext <<_ACEOF | ||
18451 | /* end confdefs.h. */ | ||
18452 | |||
18453 | #include <stdlib.h> | ||
18454 | #include <errno.h> | ||
18455 | |||
18456 | int | ||
18457 | main () | ||
18458 | { | ||
18459 | |||
18460 | errno=0; | ||
18461 | setresuid(0,0,0); | ||
18462 | if (errno==ENOSYS) | ||
18463 | exit(1); | ||
18464 | else | ||
18465 | exit(0); | ||
18466 | |||
18467 | ; | ||
18468 | return 0; | ||
18469 | } | ||
18470 | _ACEOF | ||
18471 | rm -f conftest$ac_exeext | ||
18472 | if { (ac_try="$ac_link" | ||
18473 | case "(($ac_try" in | ||
18474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18475 | *) ac_try_echo=$ac_try;; | ||
18476 | esac | ||
18477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18478 | (eval "$ac_link") 2>&5 | ||
18479 | ac_status=$? | ||
18480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18481 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
18482 | { (case "(($ac_try" in | ||
18483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18484 | *) ac_try_echo=$ac_try;; | ||
18485 | esac | ||
18486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18487 | (eval "$ac_try") 2>&5 | ||
18488 | ac_status=$? | ||
18489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18490 | (exit $ac_status); }; }; then | ||
18491 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
18492 | echo "${ECHO_T}yes" >&6; } | ||
18493 | else | ||
18494 | echo "$as_me: program exited with status $ac_status" >&5 | ||
18495 | echo "$as_me: failed program was:" >&5 | ||
18496 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18497 | |||
18498 | ( exit $ac_status ) | ||
18499 | |||
18500 | cat >>confdefs.h <<\_ACEOF | ||
18501 | #define BROKEN_SETRESUID 1 | ||
18502 | _ACEOF | ||
18503 | |||
18504 | { echo "$as_me:$LINENO: result: not implemented" >&5 | ||
18505 | echo "${ECHO_T}not implemented" >&6; } | ||
18506 | fi | ||
18507 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
18508 | fi | ||
18509 | |||
18510 | |||
18511 | |||
18512 | fi | ||
18513 | done | ||
18514 | |||
18515 | |||
18516 | |||
18517 | for ac_func in setresgid | ||
18518 | do | ||
18519 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18520 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18521 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
18522 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18524 | else | ||
18525 | cat >conftest.$ac_ext <<_ACEOF | ||
18526 | /* confdefs.h. */ | ||
18527 | _ACEOF | ||
18528 | cat confdefs.h >>conftest.$ac_ext | ||
18529 | cat >>conftest.$ac_ext <<_ACEOF | ||
18530 | /* end confdefs.h. */ | ||
18531 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18532 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18533 | #define $ac_func innocuous_$ac_func | ||
18534 | |||
18535 | /* System header to define __stub macros and hopefully few prototypes, | ||
18536 | which can conflict with char $ac_func (); below. | ||
18537 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18538 | <limits.h> exists even on freestanding compilers. */ | ||
18539 | |||
18540 | #ifdef __STDC__ | ||
18541 | # include <limits.h> | ||
18542 | #else | ||
18543 | # include <assert.h> | ||
18544 | #endif | ||
18545 | |||
18546 | #undef $ac_func | ||
18547 | |||
18548 | /* Override any GCC internal prototype to avoid an error. | ||
18549 | Use char because int might match the return type of a GCC | ||
18550 | builtin and then its argument prototype would still apply. */ | ||
18551 | #ifdef __cplusplus | ||
18552 | extern "C" | ||
18553 | #endif | ||
18554 | char $ac_func (); | ||
18555 | /* The GNU C library defines this for functions which it implements | ||
18556 | to always fail with ENOSYS. Some functions are actually named | ||
18557 | something starting with __ and the normal name is an alias. */ | ||
18558 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18559 | choke me | ||
18560 | #endif | ||
18561 | |||
18562 | int | ||
18563 | main () | ||
18564 | { | ||
18565 | return $ac_func (); | ||
18566 | ; | ||
18567 | return 0; | ||
18568 | } | ||
18569 | _ACEOF | ||
18570 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18571 | if { (ac_try="$ac_link" | ||
18572 | case "(($ac_try" in | ||
18573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18574 | *) ac_try_echo=$ac_try;; | ||
18575 | esac | ||
18576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18577 | (eval "$ac_link") 2>conftest.er1 | ||
18578 | ac_status=$? | ||
18579 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18580 | rm -f conftest.er1 | ||
18581 | cat conftest.err >&5 | ||
18582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18583 | (exit $ac_status); } && { | ||
18584 | test -z "$ac_c_werror_flag" || | ||
18585 | test ! -s conftest.err | ||
18586 | } && test -s conftest$ac_exeext && | ||
18587 | $as_test_x conftest$ac_exeext; then | ||
18588 | eval "$as_ac_var=yes" | ||
18589 | else | ||
18590 | echo "$as_me: failed program was:" >&5 | ||
18591 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18592 | |||
18593 | eval "$as_ac_var=no" | ||
18594 | fi | ||
18595 | |||
18596 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18597 | conftest$ac_exeext conftest.$ac_ext | ||
18598 | fi | ||
18599 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
18600 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18601 | echo "${ECHO_T}$ac_res" >&6; } | ||
18602 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
18603 | cat >>confdefs.h <<_ACEOF | ||
18604 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18605 | _ACEOF | ||
18606 | |||
18607 | { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5 | ||
18608 | echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; } | ||
18609 | if test "$cross_compiling" = yes; then | ||
18610 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
18611 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
18612 | |||
18613 | else | ||
18614 | cat >conftest.$ac_ext <<_ACEOF | ||
18615 | /* confdefs.h. */ | ||
18616 | _ACEOF | ||
18617 | cat confdefs.h >>conftest.$ac_ext | ||
18618 | cat >>conftest.$ac_ext <<_ACEOF | ||
18619 | /* end confdefs.h. */ | ||
18620 | |||
18621 | #include <stdlib.h> | ||
18622 | #include <errno.h> | ||
18623 | |||
18624 | int | ||
18625 | main () | ||
18626 | { | ||
18627 | |||
18628 | errno=0; | ||
18629 | setresgid(0,0,0); | ||
18630 | if (errno==ENOSYS) | ||
18631 | exit(1); | ||
18632 | else | ||
18633 | exit(0); | ||
18634 | |||
18635 | ; | ||
18636 | return 0; | ||
18637 | } | ||
18638 | _ACEOF | ||
18639 | rm -f conftest$ac_exeext | ||
18640 | if { (ac_try="$ac_link" | ||
18641 | case "(($ac_try" in | ||
18642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18643 | *) ac_try_echo=$ac_try;; | ||
18644 | esac | ||
18645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18646 | (eval "$ac_link") 2>&5 | ||
18647 | ac_status=$? | ||
18648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18649 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
18650 | { (case "(($ac_try" in | ||
18651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18652 | *) ac_try_echo=$ac_try;; | ||
18653 | esac | ||
18654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18655 | (eval "$ac_try") 2>&5 | ||
18656 | ac_status=$? | ||
18657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18658 | (exit $ac_status); }; }; then | ||
18659 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
18660 | echo "${ECHO_T}yes" >&6; } | ||
18661 | else | ||
18662 | echo "$as_me: program exited with status $ac_status" >&5 | ||
18663 | echo "$as_me: failed program was:" >&5 | ||
18664 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18665 | |||
18666 | ( exit $ac_status ) | ||
18667 | |||
18668 | cat >>confdefs.h <<\_ACEOF | ||
18669 | #define BROKEN_SETRESGID 1 | ||
18670 | _ACEOF | ||
18671 | |||
18672 | { echo "$as_me:$LINENO: result: not implemented" >&5 | ||
18673 | echo "${ECHO_T}not implemented" >&6; } | ||
18674 | fi | ||
18675 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
18676 | fi | ||
18677 | |||
18678 | |||
18679 | |||
18680 | fi | ||
18681 | done | ||
18682 | |||
18683 | |||
18684 | |||
18685 | |||
18686 | for ac_func in gettimeofday time | ||
18687 | do | ||
18688 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18689 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18690 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
18691 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18693 | else | ||
18694 | cat >conftest.$ac_ext <<_ACEOF | ||
18695 | /* confdefs.h. */ | ||
18696 | _ACEOF | ||
18697 | cat confdefs.h >>conftest.$ac_ext | ||
18698 | cat >>conftest.$ac_ext <<_ACEOF | ||
18699 | /* end confdefs.h. */ | ||
18700 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18701 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18702 | #define $ac_func innocuous_$ac_func | ||
18703 | |||
18704 | /* System header to define __stub macros and hopefully few prototypes, | ||
18705 | which can conflict with char $ac_func (); below. | ||
18706 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18707 | <limits.h> exists even on freestanding compilers. */ | ||
18708 | |||
18709 | #ifdef __STDC__ | ||
18710 | # include <limits.h> | ||
18711 | #else | ||
18712 | # include <assert.h> | ||
18713 | #endif | ||
18714 | |||
18715 | #undef $ac_func | ||
18716 | |||
18717 | /* Override any GCC internal prototype to avoid an error. | ||
18718 | Use char because int might match the return type of a GCC | ||
18719 | builtin and then its argument prototype would still apply. */ | ||
18720 | #ifdef __cplusplus | ||
18721 | extern "C" | ||
18722 | #endif | ||
18723 | char $ac_func (); | ||
18724 | /* The GNU C library defines this for functions which it implements | ||
18725 | to always fail with ENOSYS. Some functions are actually named | ||
18726 | something starting with __ and the normal name is an alias. */ | ||
18727 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18728 | choke me | ||
18729 | #endif | ||
18730 | |||
18731 | int | ||
18732 | main () | ||
18733 | { | ||
18734 | return $ac_func (); | ||
18735 | ; | ||
18736 | return 0; | ||
18737 | } | ||
18738 | _ACEOF | ||
18739 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18740 | if { (ac_try="$ac_link" | ||
18741 | case "(($ac_try" in | ||
18742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18743 | *) ac_try_echo=$ac_try;; | ||
18744 | esac | ||
18745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18746 | (eval "$ac_link") 2>conftest.er1 | ||
18747 | ac_status=$? | ||
18748 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18749 | rm -f conftest.er1 | ||
18750 | cat conftest.err >&5 | ||
18751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18752 | (exit $ac_status); } && { | ||
18753 | test -z "$ac_c_werror_flag" || | ||
18754 | test ! -s conftest.err | ||
18755 | } && test -s conftest$ac_exeext && | ||
18756 | $as_test_x conftest$ac_exeext; then | ||
18757 | eval "$as_ac_var=yes" | ||
18758 | else | ||
18759 | echo "$as_me: failed program was:" >&5 | ||
18760 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18761 | |||
18762 | eval "$as_ac_var=no" | ||
18763 | fi | ||
18764 | |||
18765 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18766 | conftest$ac_exeext conftest.$ac_ext | ||
18767 | fi | ||
18768 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
18769 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18770 | echo "${ECHO_T}$ac_res" >&6; } | ||
18771 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
18772 | cat >>confdefs.h <<_ACEOF | ||
18773 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18774 | _ACEOF | ||
18775 | |||
18776 | fi | ||
18777 | done | ||
18778 | |||
18779 | |||
18780 | |||
18781 | |||
18782 | |||
18783 | |||
18784 | |||
18785 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
18786 | do | ||
18787 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18788 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18789 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
18790 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18792 | else | ||
18793 | cat >conftest.$ac_ext <<_ACEOF | ||
18794 | /* confdefs.h. */ | ||
18795 | _ACEOF | ||
18796 | cat confdefs.h >>conftest.$ac_ext | ||
18797 | cat >>conftest.$ac_ext <<_ACEOF | ||
18798 | /* end confdefs.h. */ | ||
18799 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18800 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18801 | #define $ac_func innocuous_$ac_func | ||
18802 | |||
18803 | /* System header to define __stub macros and hopefully few prototypes, | ||
18804 | which can conflict with char $ac_func (); below. | ||
18805 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18806 | <limits.h> exists even on freestanding compilers. */ | ||
18807 | |||
18808 | #ifdef __STDC__ | ||
18809 | # include <limits.h> | ||
18810 | #else | ||
18811 | # include <assert.h> | ||
18812 | #endif | ||
18813 | |||
18814 | #undef $ac_func | ||
18815 | |||
18816 | /* Override any GCC internal prototype to avoid an error. | ||
18817 | Use char because int might match the return type of a GCC | ||
18818 | builtin and then its argument prototype would still apply. */ | ||
18819 | #ifdef __cplusplus | ||
18820 | extern "C" | ||
18821 | #endif | ||
18822 | char $ac_func (); | ||
18823 | /* The GNU C library defines this for functions which it implements | ||
18824 | to always fail with ENOSYS. Some functions are actually named | ||
18825 | something starting with __ and the normal name is an alias. */ | ||
18826 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18827 | choke me | ||
18828 | #endif | ||
18829 | |||
18830 | int | ||
18831 | main () | ||
18832 | { | ||
18833 | return $ac_func (); | ||
18834 | ; | ||
18835 | return 0; | ||
18836 | } | ||
18837 | _ACEOF | ||
18838 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18839 | if { (ac_try="$ac_link" | ||
18840 | case "(($ac_try" in | ||
18841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18842 | *) ac_try_echo=$ac_try;; | ||
18843 | esac | ||
18844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18845 | (eval "$ac_link") 2>conftest.er1 | ||
18846 | ac_status=$? | ||
18847 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18848 | rm -f conftest.er1 | ||
18849 | cat conftest.err >&5 | ||
18850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18851 | (exit $ac_status); } && { | ||
18852 | test -z "$ac_c_werror_flag" || | ||
18853 | test ! -s conftest.err | ||
18854 | } && test -s conftest$ac_exeext && | ||
18855 | $as_test_x conftest$ac_exeext; then | ||
18856 | eval "$as_ac_var=yes" | ||
18857 | else | ||
18858 | echo "$as_me: failed program was:" >&5 | ||
18859 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18860 | |||
18861 | eval "$as_ac_var=no" | ||
18862 | fi | ||
18863 | |||
18864 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18865 | conftest$ac_exeext conftest.$ac_ext | ||
18866 | fi | ||
18867 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
18868 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18869 | echo "${ECHO_T}$ac_res" >&6; } | ||
18870 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
18871 | cat >>confdefs.h <<_ACEOF | ||
18872 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18873 | _ACEOF | ||
18874 | |||
18875 | fi | ||
18876 | done | ||
18877 | |||
18878 | |||
18879 | for ac_func in utmpname | ||
18880 | do | ||
18881 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18882 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18883 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
18884 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18886 | else | ||
18887 | cat >conftest.$ac_ext <<_ACEOF | ||
18888 | /* confdefs.h. */ | ||
18889 | _ACEOF | ||
18890 | cat confdefs.h >>conftest.$ac_ext | ||
18891 | cat >>conftest.$ac_ext <<_ACEOF | ||
18892 | /* end confdefs.h. */ | ||
18893 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18894 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18895 | #define $ac_func innocuous_$ac_func | ||
18896 | |||
18897 | /* System header to define __stub macros and hopefully few prototypes, | ||
18898 | which can conflict with char $ac_func (); below. | ||
18899 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18900 | <limits.h> exists even on freestanding compilers. */ | ||
18901 | |||
18902 | #ifdef __STDC__ | ||
18903 | # include <limits.h> | ||
18904 | #else | ||
18905 | # include <assert.h> | ||
18906 | #endif | ||
18907 | |||
18908 | #undef $ac_func | ||
18909 | |||
18910 | /* Override any GCC internal prototype to avoid an error. | ||
18911 | Use char because int might match the return type of a GCC | ||
18912 | builtin and then its argument prototype would still apply. */ | ||
18913 | #ifdef __cplusplus | ||
18914 | extern "C" | ||
18915 | #endif | ||
18916 | char $ac_func (); | ||
18917 | /* The GNU C library defines this for functions which it implements | ||
18918 | to always fail with ENOSYS. Some functions are actually named | ||
18919 | something starting with __ and the normal name is an alias. */ | ||
18920 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18921 | choke me | ||
18922 | #endif | ||
18923 | |||
18924 | int | ||
18925 | main () | ||
18926 | { | ||
18927 | return $ac_func (); | ||
18928 | ; | ||
18929 | return 0; | ||
18930 | } | ||
18931 | _ACEOF | ||
18932 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18933 | if { (ac_try="$ac_link" | ||
18934 | case "(($ac_try" in | ||
18935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18936 | *) ac_try_echo=$ac_try;; | ||
18937 | esac | ||
18938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18939 | (eval "$ac_link") 2>conftest.er1 | ||
18940 | ac_status=$? | ||
18941 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18942 | rm -f conftest.er1 | ||
18943 | cat conftest.err >&5 | ||
18944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18945 | (exit $ac_status); } && { | ||
18946 | test -z "$ac_c_werror_flag" || | ||
18947 | test ! -s conftest.err | ||
18948 | } && test -s conftest$ac_exeext && | ||
18949 | $as_test_x conftest$ac_exeext; then | ||
18950 | eval "$as_ac_var=yes" | ||
18951 | else | ||
18952 | echo "$as_me: failed program was:" >&5 | ||
18953 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18954 | |||
18955 | eval "$as_ac_var=no" | ||
18956 | fi | ||
18957 | |||
18958 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18959 | conftest$ac_exeext conftest.$ac_ext | ||
18960 | fi | ||
18961 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
18962 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18963 | echo "${ECHO_T}$ac_res" >&6; } | ||
18964 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
18965 | cat >>confdefs.h <<_ACEOF | ||
18966 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18967 | _ACEOF | ||
18968 | |||
18969 | fi | ||
18970 | done | ||
18971 | |||
18972 | |||
18973 | |||
18974 | |||
18975 | |||
18976 | |||
18977 | |||
18978 | for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline | ||
18979 | do | ||
18980 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18981 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18982 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
18983 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18985 | else | ||
18986 | cat >conftest.$ac_ext <<_ACEOF | ||
18987 | /* confdefs.h. */ | ||
18988 | _ACEOF | ||
18989 | cat confdefs.h >>conftest.$ac_ext | ||
18990 | cat >>conftest.$ac_ext <<_ACEOF | ||
18991 | /* end confdefs.h. */ | ||
18992 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18993 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18994 | #define $ac_func innocuous_$ac_func | ||
18995 | |||
18996 | /* System header to define __stub macros and hopefully few prototypes, | ||
18997 | which can conflict with char $ac_func (); below. | ||
18998 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18999 | <limits.h> exists even on freestanding compilers. */ | ||
19000 | |||
19001 | #ifdef __STDC__ | ||
19002 | # include <limits.h> | ||
19003 | #else | ||
19004 | # include <assert.h> | ||
19005 | #endif | ||
19006 | |||
19007 | #undef $ac_func | ||
19008 | |||
19009 | /* Override any GCC internal prototype to avoid an error. | ||
19010 | Use char because int might match the return type of a GCC | ||
19011 | builtin and then its argument prototype would still apply. */ | ||
19012 | #ifdef __cplusplus | ||
19013 | extern "C" | ||
19014 | #endif | ||
19015 | char $ac_func (); | ||
19016 | /* The GNU C library defines this for functions which it implements | ||
19017 | to always fail with ENOSYS. Some functions are actually named | ||
19018 | something starting with __ and the normal name is an alias. */ | ||
19019 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
19020 | choke me | ||
19021 | #endif | ||
19022 | |||
19023 | int | ||
19024 | main () | ||
19025 | { | ||
19026 | return $ac_func (); | ||
19027 | ; | ||
19028 | return 0; | ||
19029 | } | ||
19030 | _ACEOF | ||
19031 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19032 | if { (ac_try="$ac_link" | ||
19033 | case "(($ac_try" in | ||
19034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19035 | *) ac_try_echo=$ac_try;; | ||
19036 | esac | ||
19037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19038 | (eval "$ac_link") 2>conftest.er1 | ||
19039 | ac_status=$? | ||
19040 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19041 | rm -f conftest.er1 | ||
19042 | cat conftest.err >&5 | ||
19043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19044 | (exit $ac_status); } && { | ||
19045 | test -z "$ac_c_werror_flag" || | ||
19046 | test ! -s conftest.err | ||
19047 | } && test -s conftest$ac_exeext && | ||
19048 | $as_test_x conftest$ac_exeext; then | ||
19049 | eval "$as_ac_var=yes" | ||
19050 | else | ||
19051 | echo "$as_me: failed program was:" >&5 | ||
19052 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19053 | |||
19054 | eval "$as_ac_var=no" | ||
19055 | fi | ||
19056 | |||
19057 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19058 | conftest$ac_exeext conftest.$ac_ext | ||
19059 | fi | ||
19060 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
19061 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
19062 | echo "${ECHO_T}$ac_res" >&6; } | ||
19063 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
19064 | cat >>confdefs.h <<_ACEOF | ||
19065 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
19066 | _ACEOF | ||
19067 | |||
19068 | fi | ||
19069 | done | ||
19070 | |||
19071 | |||
19072 | |||
19073 | |||
19074 | for ac_func in setutxdb setutxent utmpxname | ||
19075 | do | ||
19076 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19077 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
19078 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
19079 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
19080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19081 | else | ||
19082 | cat >conftest.$ac_ext <<_ACEOF | ||
19083 | /* confdefs.h. */ | ||
19084 | _ACEOF | ||
19085 | cat confdefs.h >>conftest.$ac_ext | ||
19086 | cat >>conftest.$ac_ext <<_ACEOF | ||
19087 | /* end confdefs.h. */ | ||
19088 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
19089 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
19090 | #define $ac_func innocuous_$ac_func | ||
19091 | |||
19092 | /* System header to define __stub macros and hopefully few prototypes, | ||
19093 | which can conflict with char $ac_func (); below. | ||
19094 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
19095 | <limits.h> exists even on freestanding compilers. */ | ||
19096 | |||
19097 | #ifdef __STDC__ | ||
19098 | # include <limits.h> | ||
19099 | #else | ||
19100 | # include <assert.h> | ||
19101 | #endif | ||
19102 | |||
19103 | #undef $ac_func | ||
19104 | |||
19105 | /* Override any GCC internal prototype to avoid an error. | ||
19106 | Use char because int might match the return type of a GCC | ||
19107 | builtin and then its argument prototype would still apply. */ | ||
19108 | #ifdef __cplusplus | ||
19109 | extern "C" | ||
19110 | #endif | ||
19111 | char $ac_func (); | ||
19112 | /* The GNU C library defines this for functions which it implements | ||
19113 | to always fail with ENOSYS. Some functions are actually named | ||
19114 | something starting with __ and the normal name is an alias. */ | ||
19115 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
19116 | choke me | ||
19117 | #endif | ||
19118 | |||
19119 | int | ||
19120 | main () | ||
19121 | { | ||
19122 | return $ac_func (); | ||
19123 | ; | ||
19124 | return 0; | ||
19125 | } | ||
19126 | _ACEOF | ||
19127 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19128 | if { (ac_try="$ac_link" | ||
19129 | case "(($ac_try" in | ||
19130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19131 | *) ac_try_echo=$ac_try;; | ||
19132 | esac | ||
19133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19134 | (eval "$ac_link") 2>conftest.er1 | ||
19135 | ac_status=$? | ||
19136 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19137 | rm -f conftest.er1 | ||
19138 | cat conftest.err >&5 | ||
19139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19140 | (exit $ac_status); } && { | ||
19141 | test -z "$ac_c_werror_flag" || | ||
19142 | test ! -s conftest.err | ||
19143 | } && test -s conftest$ac_exeext && | ||
19144 | $as_test_x conftest$ac_exeext; then | ||
19145 | eval "$as_ac_var=yes" | ||
19146 | else | ||
19147 | echo "$as_me: failed program was:" >&5 | ||
19148 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19149 | |||
19150 | eval "$as_ac_var=no" | ||
19151 | fi | ||
19152 | |||
19153 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19154 | conftest$ac_exeext conftest.$ac_ext | ||
19155 | fi | ||
19156 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
19157 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
19158 | echo "${ECHO_T}$ac_res" >&6; } | ||
19159 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
19160 | cat >>confdefs.h <<_ACEOF | ||
19161 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
19162 | _ACEOF | ||
19163 | |||
19164 | fi | ||
19165 | done | ||
19166 | |||
19167 | |||
19168 | for ac_func in getlastlogxbyname | ||
19169 | do | ||
19170 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19171 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
19172 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
19173 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
19174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19175 | else | ||
19176 | cat >conftest.$ac_ext <<_ACEOF | ||
19177 | /* confdefs.h. */ | ||
19178 | _ACEOF | ||
19179 | cat confdefs.h >>conftest.$ac_ext | ||
19180 | cat >>conftest.$ac_ext <<_ACEOF | ||
19181 | /* end confdefs.h. */ | ||
19182 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
19183 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
19184 | #define $ac_func innocuous_$ac_func | ||
19185 | |||
19186 | /* System header to define __stub macros and hopefully few prototypes, | ||
19187 | which can conflict with char $ac_func (); below. | ||
19188 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
19189 | <limits.h> exists even on freestanding compilers. */ | ||
19190 | |||
19191 | #ifdef __STDC__ | ||
19192 | # include <limits.h> | ||
19193 | #else | ||
19194 | # include <assert.h> | ||
19195 | #endif | ||
19196 | |||
19197 | #undef $ac_func | ||
19198 | |||
19199 | /* Override any GCC internal prototype to avoid an error. | ||
19200 | Use char because int might match the return type of a GCC | ||
19201 | builtin and then its argument prototype would still apply. */ | ||
19202 | #ifdef __cplusplus | ||
19203 | extern "C" | ||
19204 | #endif | ||
19205 | char $ac_func (); | ||
19206 | /* The GNU C library defines this for functions which it implements | ||
19207 | to always fail with ENOSYS. Some functions are actually named | ||
19208 | something starting with __ and the normal name is an alias. */ | ||
19209 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
19210 | choke me | ||
19211 | #endif | ||
19212 | |||
19213 | int | ||
19214 | main () | ||
19215 | { | ||
19216 | return $ac_func (); | ||
19217 | ; | ||
19218 | return 0; | ||
19219 | } | ||
19220 | _ACEOF | ||
19221 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19222 | if { (ac_try="$ac_link" | ||
19223 | case "(($ac_try" in | ||
19224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19225 | *) ac_try_echo=$ac_try;; | ||
19226 | esac | ||
19227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19228 | (eval "$ac_link") 2>conftest.er1 | ||
19229 | ac_status=$? | ||
19230 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19231 | rm -f conftest.er1 | ||
19232 | cat conftest.err >&5 | ||
19233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19234 | (exit $ac_status); } && { | ||
19235 | test -z "$ac_c_werror_flag" || | ||
19236 | test ! -s conftest.err | ||
19237 | } && test -s conftest$ac_exeext && | ||
19238 | $as_test_x conftest$ac_exeext; then | ||
19239 | eval "$as_ac_var=yes" | ||
19240 | else | ||
19241 | echo "$as_me: failed program was:" >&5 | ||
19242 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19243 | |||
19244 | eval "$as_ac_var=no" | ||
19245 | fi | ||
19246 | |||
19247 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19248 | conftest$ac_exeext conftest.$ac_ext | ||
19249 | fi | ||
19250 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
19251 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
19252 | echo "${ECHO_T}$ac_res" >&6; } | ||
19253 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
19254 | cat >>confdefs.h <<_ACEOF | ||
19255 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
19256 | _ACEOF | ||
19257 | |||
19258 | fi | ||
19259 | done | ||
19260 | |||
19261 | |||
19262 | { echo "$as_me:$LINENO: checking for daemon" >&5 | ||
19263 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6; } | ||
19264 | if test "${ac_cv_func_daemon+set}" = set; then | ||
19265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19266 | else | ||
19267 | cat >conftest.$ac_ext <<_ACEOF | ||
19268 | /* confdefs.h. */ | ||
19269 | _ACEOF | ||
19270 | cat confdefs.h >>conftest.$ac_ext | ||
19271 | cat >>conftest.$ac_ext <<_ACEOF | ||
19272 | /* end confdefs.h. */ | ||
19273 | /* Define daemon to an innocuous variant, in case <limits.h> declares daemon. | ||
19274 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
19275 | #define daemon innocuous_daemon | ||
19276 | |||
19277 | /* System header to define __stub macros and hopefully few prototypes, | ||
19278 | which can conflict with char daemon (); below. | ||
19279 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
19280 | <limits.h> exists even on freestanding compilers. */ | ||
19281 | |||
19282 | #ifdef __STDC__ | ||
19283 | # include <limits.h> | ||
19284 | #else | ||
19285 | # include <assert.h> | ||
19286 | #endif | ||
19287 | |||
19288 | #undef daemon | ||
19289 | |||
19290 | /* Override any GCC internal prototype to avoid an error. | ||
19291 | Use char because int might match the return type of a GCC | ||
19292 | builtin and then its argument prototype would still apply. */ | ||
19293 | #ifdef __cplusplus | ||
19294 | extern "C" | ||
19295 | #endif | ||
19296 | char daemon (); | ||
19297 | /* The GNU C library defines this for functions which it implements | ||
19298 | to always fail with ENOSYS. Some functions are actually named | ||
19299 | something starting with __ and the normal name is an alias. */ | ||
19300 | #if defined __stub_daemon || defined __stub___daemon | ||
19301 | choke me | ||
19302 | #endif | ||
19303 | |||
19304 | int | ||
19305 | main () | ||
19306 | { | ||
19307 | return daemon (); | ||
19308 | ; | ||
19309 | return 0; | ||
19310 | } | ||
19311 | _ACEOF | ||
19312 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19313 | if { (ac_try="$ac_link" | ||
19314 | case "(($ac_try" in | ||
19315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19316 | *) ac_try_echo=$ac_try;; | ||
19317 | esac | ||
19318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19319 | (eval "$ac_link") 2>conftest.er1 | ||
19320 | ac_status=$? | ||
19321 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19322 | rm -f conftest.er1 | ||
19323 | cat conftest.err >&5 | ||
19324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19325 | (exit $ac_status); } && { | ||
19326 | test -z "$ac_c_werror_flag" || | ||
19327 | test ! -s conftest.err | ||
19328 | } && test -s conftest$ac_exeext && | ||
19329 | $as_test_x conftest$ac_exeext; then | ||
19330 | ac_cv_func_daemon=yes | ||
19331 | else | ||
19332 | echo "$as_me: failed program was:" >&5 | ||
19333 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19334 | |||
19335 | ac_cv_func_daemon=no | ||
19336 | fi | ||
19337 | |||
19338 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19339 | conftest$ac_exeext conftest.$ac_ext | ||
19340 | fi | ||
19341 | { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | ||
19342 | echo "${ECHO_T}$ac_cv_func_daemon" >&6; } | ||
19343 | if test $ac_cv_func_daemon = yes; then | ||
19344 | |||
19345 | cat >>confdefs.h <<\_ACEOF | ||
19346 | #define HAVE_DAEMON 1 | ||
19347 | _ACEOF | ||
19348 | |||
19349 | else | ||
19350 | { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | ||
19351 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; } | ||
19352 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
19353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19354 | else | ||
19355 | ac_check_lib_save_LIBS=$LIBS | ||
19356 | LIBS="-lbsd $LIBS" | ||
19357 | cat >conftest.$ac_ext <<_ACEOF | ||
19358 | /* confdefs.h. */ | ||
19359 | _ACEOF | ||
19360 | cat confdefs.h >>conftest.$ac_ext | ||
19361 | cat >>conftest.$ac_ext <<_ACEOF | ||
19362 | /* end confdefs.h. */ | ||
19363 | |||
19364 | /* Override any GCC internal prototype to avoid an error. | ||
19365 | Use char because int might match the return type of a GCC | ||
19366 | builtin and then its argument prototype would still apply. */ | ||
19367 | #ifdef __cplusplus | ||
19368 | extern "C" | ||
19369 | #endif | ||
19370 | char daemon (); | ||
19371 | int | ||
19372 | main () | ||
19373 | { | ||
19374 | return daemon (); | ||
19375 | ; | ||
19376 | return 0; | ||
19377 | } | ||
19378 | _ACEOF | ||
19379 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19380 | if { (ac_try="$ac_link" | ||
19381 | case "(($ac_try" in | ||
19382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19383 | *) ac_try_echo=$ac_try;; | ||
19384 | esac | ||
19385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19386 | (eval "$ac_link") 2>conftest.er1 | ||
19387 | ac_status=$? | ||
19388 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19389 | rm -f conftest.er1 | ||
19390 | cat conftest.err >&5 | ||
19391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19392 | (exit $ac_status); } && { | ||
19393 | test -z "$ac_c_werror_flag" || | ||
19394 | test ! -s conftest.err | ||
19395 | } && test -s conftest$ac_exeext && | ||
19396 | $as_test_x conftest$ac_exeext; then | ||
19397 | ac_cv_lib_bsd_daemon=yes | ||
19398 | else | ||
19399 | echo "$as_me: failed program was:" >&5 | ||
19400 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19401 | |||
19402 | ac_cv_lib_bsd_daemon=no | ||
19403 | fi | ||
19404 | |||
19405 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19406 | conftest$ac_exeext conftest.$ac_ext | ||
19407 | LIBS=$ac_check_lib_save_LIBS | ||
19408 | fi | ||
19409 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | ||
19410 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; } | ||
19411 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
19412 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | ||
19413 | #define HAVE_DAEMON 1 | ||
19414 | _ACEOF | ||
19415 | |||
19416 | fi | ||
19417 | |||
19418 | |||
19419 | fi | ||
19420 | |||
19421 | |||
19422 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 | ||
19423 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } | ||
19424 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
19425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19426 | else | ||
19427 | cat >conftest.$ac_ext <<_ACEOF | ||
19428 | /* confdefs.h. */ | ||
19429 | _ACEOF | ||
19430 | cat confdefs.h >>conftest.$ac_ext | ||
19431 | cat >>conftest.$ac_ext <<_ACEOF | ||
19432 | /* end confdefs.h. */ | ||
19433 | /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize. | ||
19434 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
19435 | #define getpagesize innocuous_getpagesize | ||
19436 | |||
19437 | /* System header to define __stub macros and hopefully few prototypes, | ||
19438 | which can conflict with char getpagesize (); below. | ||
19439 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
19440 | <limits.h> exists even on freestanding compilers. */ | ||
19441 | |||
19442 | #ifdef __STDC__ | ||
19443 | # include <limits.h> | ||
19444 | #else | ||
19445 | # include <assert.h> | ||
19446 | #endif | ||
19447 | |||
19448 | #undef getpagesize | ||
19449 | |||
19450 | /* Override any GCC internal prototype to avoid an error. | ||
19451 | Use char because int might match the return type of a GCC | ||
19452 | builtin and then its argument prototype would still apply. */ | ||
19453 | #ifdef __cplusplus | ||
19454 | extern "C" | ||
19455 | #endif | ||
19456 | char getpagesize (); | ||
19457 | /* The GNU C library defines this for functions which it implements | ||
19458 | to always fail with ENOSYS. Some functions are actually named | ||
19459 | something starting with __ and the normal name is an alias. */ | ||
19460 | #if defined __stub_getpagesize || defined __stub___getpagesize | ||
19461 | choke me | ||
19462 | #endif | ||
19463 | |||
19464 | int | ||
19465 | main () | ||
19466 | { | ||
19467 | return getpagesize (); | ||
19468 | ; | ||
19469 | return 0; | ||
19470 | } | ||
19471 | _ACEOF | ||
19472 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19473 | if { (ac_try="$ac_link" | ||
19474 | case "(($ac_try" in | ||
19475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19476 | *) ac_try_echo=$ac_try;; | ||
19477 | esac | ||
19478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19479 | (eval "$ac_link") 2>conftest.er1 | ||
19480 | ac_status=$? | ||
19481 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19482 | rm -f conftest.er1 | ||
19483 | cat conftest.err >&5 | ||
19484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19485 | (exit $ac_status); } && { | ||
19486 | test -z "$ac_c_werror_flag" || | ||
19487 | test ! -s conftest.err | ||
19488 | } && test -s conftest$ac_exeext && | ||
19489 | $as_test_x conftest$ac_exeext; then | ||
19490 | ac_cv_func_getpagesize=yes | ||
19491 | else | ||
19492 | echo "$as_me: failed program was:" >&5 | ||
19493 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19494 | |||
19495 | ac_cv_func_getpagesize=no | ||
19496 | fi | ||
19497 | |||
19498 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19499 | conftest$ac_exeext conftest.$ac_ext | ||
19500 | fi | ||
19501 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | ||
19502 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; } | ||
19503 | if test $ac_cv_func_getpagesize = yes; then | ||
19504 | |||
19505 | cat >>confdefs.h <<\_ACEOF | ||
19506 | #define HAVE_GETPAGESIZE 1 | ||
19507 | _ACEOF | ||
19508 | |||
19509 | else | ||
19510 | { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | ||
19511 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; } | ||
19512 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
19513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19514 | else | ||
19515 | ac_check_lib_save_LIBS=$LIBS | ||
19516 | LIBS="-lucb $LIBS" | ||
19517 | cat >conftest.$ac_ext <<_ACEOF | ||
19518 | /* confdefs.h. */ | ||
19519 | _ACEOF | ||
19520 | cat confdefs.h >>conftest.$ac_ext | ||
19521 | cat >>conftest.$ac_ext <<_ACEOF | ||
19522 | /* end confdefs.h. */ | ||
19523 | |||
19524 | /* Override any GCC internal prototype to avoid an error. | ||
19525 | Use char because int might match the return type of a GCC | ||
19526 | builtin and then its argument prototype would still apply. */ | ||
19527 | #ifdef __cplusplus | ||
19528 | extern "C" | ||
19529 | #endif | ||
19530 | char getpagesize (); | ||
19531 | int | ||
19532 | main () | ||
19533 | { | ||
19534 | return getpagesize (); | ||
19535 | ; | ||
19536 | return 0; | ||
19537 | } | ||
19538 | _ACEOF | ||
19539 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19540 | if { (ac_try="$ac_link" | ||
19541 | case "(($ac_try" in | ||
19542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19543 | *) ac_try_echo=$ac_try;; | ||
19544 | esac | ||
19545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19546 | (eval "$ac_link") 2>conftest.er1 | ||
19547 | ac_status=$? | ||
19548 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19549 | rm -f conftest.er1 | ||
19550 | cat conftest.err >&5 | ||
19551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19552 | (exit $ac_status); } && { | ||
19553 | test -z "$ac_c_werror_flag" || | ||
19554 | test ! -s conftest.err | ||
19555 | } && test -s conftest$ac_exeext && | ||
19556 | $as_test_x conftest$ac_exeext; then | ||
19557 | ac_cv_lib_ucb_getpagesize=yes | ||
19558 | else | ||
19559 | echo "$as_me: failed program was:" >&5 | ||
19560 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19561 | |||
19562 | ac_cv_lib_ucb_getpagesize=no | ||
19563 | fi | ||
19564 | |||
19565 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19566 | conftest$ac_exeext conftest.$ac_ext | ||
19567 | LIBS=$ac_check_lib_save_LIBS | ||
19568 | fi | ||
19569 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
19570 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; } | ||
19571 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
19572 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | ||
19573 | #define HAVE_GETPAGESIZE 1 | ||
19574 | _ACEOF | ||
19575 | |||
19576 | fi | ||
19577 | |||
19578 | |||
19579 | fi | ||
19580 | |||
19581 | |||
19582 | # Check for broken snprintf | ||
19583 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
19584 | { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | ||
19585 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; } | ||
19586 | if test "$cross_compiling" = yes; then | ||
19587 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
19588 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
19589 | |||
19590 | else | ||
19591 | cat >conftest.$ac_ext <<_ACEOF | ||
19592 | /* confdefs.h. */ | ||
19593 | _ACEOF | ||
19594 | cat confdefs.h >>conftest.$ac_ext | ||
19595 | cat >>conftest.$ac_ext <<_ACEOF | ||
19596 | /* end confdefs.h. */ | ||
19597 | #include <stdio.h> | ||
19598 | int | ||
19599 | main () | ||
19600 | { | ||
19601 | |||
19602 | char b[5]; | ||
19603 | snprintf(b,5,"123456789"); | ||
19604 | exit(b[4]!='\0'); | ||
19605 | |||
19606 | ; | ||
19607 | return 0; | ||
19608 | } | ||
19609 | _ACEOF | ||
19610 | rm -f conftest$ac_exeext | ||
19611 | if { (ac_try="$ac_link" | ||
19612 | case "(($ac_try" in | ||
19613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19614 | *) ac_try_echo=$ac_try;; | ||
19615 | esac | ||
19616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19617 | (eval "$ac_link") 2>&5 | ||
19618 | ac_status=$? | ||
19619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19620 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19621 | { (case "(($ac_try" in | ||
19622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19623 | *) ac_try_echo=$ac_try;; | ||
19624 | esac | ||
19625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19626 | (eval "$ac_try") 2>&5 | ||
19627 | ac_status=$? | ||
19628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19629 | (exit $ac_status); }; }; then | ||
19630 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
19631 | echo "${ECHO_T}yes" >&6; } | ||
19632 | else | ||
19633 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19634 | echo "$as_me: failed program was:" >&5 | ||
19635 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19636 | |||
19637 | ( exit $ac_status ) | ||
19638 | |||
19639 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19640 | echo "${ECHO_T}no" >&6; } | ||
19641 | |||
19642 | cat >>confdefs.h <<\_ACEOF | ||
19643 | #define BROKEN_SNPRINTF 1 | ||
19644 | _ACEOF | ||
19645 | |||
19646 | { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
19647 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
19648 | |||
19649 | fi | ||
19650 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19651 | fi | ||
19652 | |||
19653 | |||
19654 | fi | ||
19655 | |||
19656 | # We depend on vsnprintf returning the right thing on overflow: the | ||
19657 | # number of characters it tried to create (as per SUSv3) | ||
19658 | if test "x$ac_cv_func_vsnprintf" = "xyes" ; then | ||
19659 | { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5 | ||
19660 | echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; } | ||
19661 | if test "$cross_compiling" = yes; then | ||
19662 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5 | ||
19663 | echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} | ||
19664 | |||
19665 | else | ||
19666 | cat >conftest.$ac_ext <<_ACEOF | ||
19667 | /* confdefs.h. */ | ||
19668 | _ACEOF | ||
19669 | cat confdefs.h >>conftest.$ac_ext | ||
19670 | cat >>conftest.$ac_ext <<_ACEOF | ||
19671 | /* end confdefs.h. */ | ||
19672 | |||
19673 | #include <sys/types.h> | ||
19674 | #include <stdio.h> | ||
19675 | #include <stdarg.h> | ||
19676 | |||
19677 | int x_snprintf(char *str, size_t count, const char *fmt, ...) | ||
19678 | { | ||
19679 | size_t ret; | ||
19680 | va_list ap; | ||
19681 | |||
19682 | va_start(ap, fmt); | ||
19683 | ret = vsnprintf(str, count, fmt, ap); | ||
19684 | va_end(ap); | ||
19685 | return ret; | ||
19686 | } | ||
19687 | |||
19688 | int | ||
19689 | main () | ||
19690 | { | ||
19691 | |||
19692 | char x[1]; | ||
19693 | if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11) | ||
19694 | return 1; | ||
19695 | if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11) | ||
19696 | return 1; | ||
19697 | return 0; | ||
19698 | |||
19699 | ; | ||
19700 | return 0; | ||
19701 | } | ||
19702 | _ACEOF | ||
19703 | rm -f conftest$ac_exeext | ||
19704 | if { (ac_try="$ac_link" | ||
19705 | case "(($ac_try" in | ||
19706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19707 | *) ac_try_echo=$ac_try;; | ||
19708 | esac | ||
19709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19710 | (eval "$ac_link") 2>&5 | ||
19711 | ac_status=$? | ||
19712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19713 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19714 | { (case "(($ac_try" in | ||
19715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19716 | *) ac_try_echo=$ac_try;; | ||
19717 | esac | ||
19718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19719 | (eval "$ac_try") 2>&5 | ||
19720 | ac_status=$? | ||
19721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19722 | (exit $ac_status); }; }; then | ||
19723 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
19724 | echo "${ECHO_T}yes" >&6; } | ||
19725 | else | ||
19726 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19727 | echo "$as_me: failed program was:" >&5 | ||
19728 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19729 | |||
19730 | ( exit $ac_status ) | ||
19731 | |||
19732 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19733 | echo "${ECHO_T}no" >&6; } | ||
19734 | |||
19735 | cat >>confdefs.h <<\_ACEOF | ||
19736 | #define BROKEN_SNPRINTF 1 | ||
19737 | _ACEOF | ||
19738 | |||
19739 | { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 | ||
19740 | echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} | ||
19741 | |||
19742 | fi | ||
19743 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19744 | fi | ||
19745 | |||
19746 | |||
19747 | fi | ||
19748 | |||
19749 | # On systems where [v]snprintf is broken, but is declared in stdio, | ||
19750 | # check that the fmt argument is const char * or just char *. | ||
19751 | # This is only useful for when BROKEN_SNPRINTF | ||
19752 | { echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5 | ||
19753 | echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; } | ||
19754 | cat >conftest.$ac_ext <<_ACEOF | ||
19755 | /* confdefs.h. */ | ||
19756 | _ACEOF | ||
19757 | cat confdefs.h >>conftest.$ac_ext | ||
19758 | cat >>conftest.$ac_ext <<_ACEOF | ||
19759 | /* end confdefs.h. */ | ||
19760 | |||
19761 | #include <stdio.h> | ||
19762 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } | ||
19763 | |||
19764 | int | ||
19765 | main () | ||
19766 | { | ||
19767 | |||
19768 | snprintf(0, 0, 0); | ||
19769 | |||
19770 | ; | ||
19771 | return 0; | ||
19772 | } | ||
19773 | _ACEOF | ||
19774 | rm -f conftest.$ac_objext | ||
19775 | if { (ac_try="$ac_compile" | ||
19776 | case "(($ac_try" in | ||
19777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19778 | *) ac_try_echo=$ac_try;; | ||
19779 | esac | ||
19780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19781 | (eval "$ac_compile") 2>conftest.er1 | ||
19782 | ac_status=$? | ||
19783 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19784 | rm -f conftest.er1 | ||
19785 | cat conftest.err >&5 | ||
19786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19787 | (exit $ac_status); } && { | ||
19788 | test -z "$ac_c_werror_flag" || | ||
19789 | test ! -s conftest.err | ||
19790 | } && test -s conftest.$ac_objext; then | ||
19791 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
19792 | echo "${ECHO_T}yes" >&6; } | ||
19793 | |||
19794 | cat >>confdefs.h <<\_ACEOF | ||
19795 | #define SNPRINTF_CONST const | ||
19796 | _ACEOF | ||
19797 | |||
19798 | else | ||
19799 | echo "$as_me: failed program was:" >&5 | ||
19800 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19801 | |||
19802 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19803 | echo "${ECHO_T}no" >&6; } | ||
19804 | cat >>confdefs.h <<\_ACEOF | ||
19805 | #define SNPRINTF_CONST /* not const */ | ||
19806 | _ACEOF | ||
19807 | |||
19808 | fi | ||
19809 | |||
19810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19811 | |||
19812 | # Check for missing getpeereid (or equiv) support | ||
19813 | NO_PEERCHECK="" | ||
19814 | if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then | ||
19815 | { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
19816 | echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; } | ||
19817 | cat >conftest.$ac_ext <<_ACEOF | ||
19818 | /* confdefs.h. */ | ||
19819 | _ACEOF | ||
19820 | cat confdefs.h >>conftest.$ac_ext | ||
19821 | cat >>conftest.$ac_ext <<_ACEOF | ||
19822 | /* end confdefs.h. */ | ||
19823 | |||
19824 | #include <sys/types.h> | ||
19825 | #include <sys/socket.h> | ||
19826 | int | ||
19827 | main () | ||
19828 | { | ||
19829 | int i = SO_PEERCRED; | ||
19830 | ; | ||
19831 | return 0; | ||
19832 | } | ||
19833 | _ACEOF | ||
19834 | rm -f conftest.$ac_objext | ||
19835 | if { (ac_try="$ac_compile" | ||
19836 | case "(($ac_try" in | ||
19837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19838 | *) ac_try_echo=$ac_try;; | ||
19839 | esac | ||
19840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19841 | (eval "$ac_compile") 2>conftest.er1 | ||
19842 | ac_status=$? | ||
19843 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19844 | rm -f conftest.er1 | ||
19845 | cat conftest.err >&5 | ||
19846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19847 | (exit $ac_status); } && { | ||
19848 | test -z "$ac_c_werror_flag" || | ||
19849 | test ! -s conftest.err | ||
19850 | } && test -s conftest.$ac_objext; then | ||
19851 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
19852 | echo "${ECHO_T}yes" >&6; } | ||
19853 | |||
19854 | cat >>confdefs.h <<\_ACEOF | ||
19855 | #define HAVE_SO_PEERCRED 1 | ||
19856 | _ACEOF | ||
19857 | |||
19858 | |||
19859 | else | ||
19860 | echo "$as_me: failed program was:" >&5 | ||
19861 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19862 | |||
19863 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19864 | echo "${ECHO_T}no" >&6; } | ||
19865 | NO_PEERCHECK=1 | ||
19866 | |||
19867 | fi | ||
19868 | |||
19869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19870 | fi | ||
19871 | |||
19872 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
19873 | { echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5 | ||
19874 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; } | ||
19875 | if test "$cross_compiling" = yes; then | ||
19876 | |||
19877 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
19878 | echo "${ECHO_T}yes" >&6; } | ||
19879 | cat >>confdefs.h <<\_ACEOF | ||
19880 | #define HAVE_STRICT_MKSTEMP 1 | ||
19881 | _ACEOF | ||
19882 | |||
19883 | |||
19884 | |||
19885 | else | ||
19886 | cat >conftest.$ac_ext <<_ACEOF | ||
19887 | /* confdefs.h. */ | ||
19888 | _ACEOF | ||
19889 | cat confdefs.h >>conftest.$ac_ext | ||
19890 | cat >>conftest.$ac_ext <<_ACEOF | ||
19891 | /* end confdefs.h. */ | ||
19892 | |||
19893 | #include <stdlib.h> | ||
19894 | |||
19895 | int | ||
19896 | main () | ||
19897 | { | ||
19898 | |||
19899 | char template[]="conftest.mkstemp-test"; | ||
19900 | if (mkstemp(template) == -1) | ||
19901 | exit(1); | ||
19902 | unlink(template); | ||
19903 | exit(0); | ||
19904 | |||
19905 | ; | ||
19906 | return 0; | ||
19907 | } | ||
19908 | _ACEOF | ||
19909 | rm -f conftest$ac_exeext | ||
19910 | if { (ac_try="$ac_link" | ||
19911 | case "(($ac_try" in | ||
19912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19913 | *) ac_try_echo=$ac_try;; | ||
19914 | esac | ||
19915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19916 | (eval "$ac_link") 2>&5 | ||
19917 | ac_status=$? | ||
19918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19919 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19920 | { (case "(($ac_try" in | ||
19921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19922 | *) ac_try_echo=$ac_try;; | ||
19923 | esac | ||
19924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19925 | (eval "$ac_try") 2>&5 | ||
19926 | ac_status=$? | ||
19927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19928 | (exit $ac_status); }; }; then | ||
19929 | |||
19930 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19931 | echo "${ECHO_T}no" >&6; } | ||
19932 | |||
19933 | else | ||
19934 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19935 | echo "$as_me: failed program was:" >&5 | ||
19936 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19937 | |||
19938 | ( exit $ac_status ) | ||
19939 | |||
19940 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
19941 | echo "${ECHO_T}yes" >&6; } | ||
19942 | |||
19943 | cat >>confdefs.h <<\_ACEOF | ||
19944 | #define HAVE_STRICT_MKSTEMP 1 | ||
19945 | _ACEOF | ||
19946 | |||
19947 | |||
19948 | fi | ||
19949 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19950 | fi | ||
19951 | |||
19952 | |||
19953 | fi | ||
19954 | |||
19955 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
19956 | { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5 | ||
19957 | echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; } | ||
19958 | if test "$cross_compiling" = yes; then | ||
19959 | |||
19960 | { echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5 | ||
19961 | echo "${ECHO_T}cross-compiling, assuming yes" >&6; } | ||
19962 | |||
19963 | |||
19964 | else | ||
19965 | cat >conftest.$ac_ext <<_ACEOF | ||
19966 | /* confdefs.h. */ | ||
19967 | _ACEOF | ||
19968 | cat confdefs.h >>conftest.$ac_ext | ||
19969 | cat >>conftest.$ac_ext <<_ACEOF | ||
19970 | /* end confdefs.h. */ | ||
19971 | |||
19972 | #include <stdio.h> | ||
19973 | #include <sys/fcntl.h> | ||
19974 | #include <sys/types.h> | ||
19975 | #include <sys/wait.h> | ||
19976 | |||
19977 | int | ||
19978 | main () | ||
19979 | { | ||
19980 | |||
19981 | pid_t pid; | ||
19982 | int fd, ptyfd, ttyfd, status; | ||
19983 | |||
19984 | pid = fork(); | ||
19985 | if (pid < 0) { /* failed */ | ||
19986 | exit(1); | ||
19987 | } else if (pid > 0) { /* parent */ | ||
19988 | waitpid(pid, &status, 0); | ||
19989 | if (WIFEXITED(status)) | ||
19990 | exit(WEXITSTATUS(status)); | ||
19991 | else | ||
19992 | exit(2); | ||
19993 | } else { /* child */ | ||
19994 | close(0); close(1); close(2); | ||
19995 | setsid(); | ||
19996 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
19997 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
19998 | if (fd >= 0) | ||
19999 | exit(3); /* Acquired ctty: broken */ | ||
20000 | else | ||
20001 | exit(0); /* Did not acquire ctty: OK */ | ||
20002 | } | ||
20003 | |||
20004 | ; | ||
20005 | return 0; | ||
20006 | } | ||
20007 | _ACEOF | ||
20008 | rm -f conftest$ac_exeext | ||
20009 | if { (ac_try="$ac_link" | ||
20010 | case "(($ac_try" in | ||
20011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20012 | *) ac_try_echo=$ac_try;; | ||
20013 | esac | ||
20014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20015 | (eval "$ac_link") 2>&5 | ||
20016 | ac_status=$? | ||
20017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20018 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20019 | { (case "(($ac_try" in | ||
20020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20021 | *) ac_try_echo=$ac_try;; | ||
20022 | esac | ||
20023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20024 | (eval "$ac_try") 2>&5 | ||
20025 | ac_status=$? | ||
20026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20027 | (exit $ac_status); }; }; then | ||
20028 | |||
20029 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20030 | echo "${ECHO_T}yes" >&6; } | ||
20031 | |||
20032 | else | ||
20033 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20034 | echo "$as_me: failed program was:" >&5 | ||
20035 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20036 | |||
20037 | ( exit $ac_status ) | ||
20038 | |||
20039 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20040 | echo "${ECHO_T}no" >&6; } | ||
20041 | cat >>confdefs.h <<\_ACEOF | ||
20042 | #define SSHD_ACQUIRES_CTTY 1 | ||
20043 | _ACEOF | ||
20044 | |||
20045 | |||
20046 | fi | ||
20047 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20048 | fi | ||
20049 | |||
20050 | |||
20051 | fi | ||
20052 | |||
20053 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
20054 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
20055 | { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
20056 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } | ||
20057 | if test "$cross_compiling" = yes; then | ||
20058 | |||
20059 | { echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5 | ||
20060 | echo "${ECHO_T}cross-compiling, assuming yes" >&6; } | ||
20061 | |||
20062 | |||
20063 | else | ||
20064 | cat >conftest.$ac_ext <<_ACEOF | ||
20065 | /* confdefs.h. */ | ||
20066 | _ACEOF | ||
20067 | cat confdefs.h >>conftest.$ac_ext | ||
20068 | cat >>conftest.$ac_ext <<_ACEOF | ||
20069 | /* end confdefs.h. */ | ||
20070 | |||
20071 | #include <stdio.h> | ||
20072 | #include <sys/socket.h> | ||
20073 | #include <netdb.h> | ||
20074 | #include <errno.h> | ||
20075 | #include <netinet/in.h> | ||
20076 | |||
20077 | #define TEST_PORT "2222" | ||
20078 | |||
20079 | int | ||
20080 | main () | ||
20081 | { | ||
20082 | |||
20083 | int err, sock; | ||
20084 | struct addrinfo *gai_ai, *ai, hints; | ||
20085 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
20086 | |||
20087 | memset(&hints, 0, sizeof(hints)); | ||
20088 | hints.ai_family = PF_UNSPEC; | ||
20089 | hints.ai_socktype = SOCK_STREAM; | ||
20090 | hints.ai_flags = AI_PASSIVE; | ||
20091 | |||
20092 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
20093 | if (err != 0) { | ||
20094 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
20095 | exit(1); | ||
20096 | } | ||
20097 | |||
20098 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
20099 | if (ai->ai_family != AF_INET6) | ||
20100 | continue; | ||
20101 | |||
20102 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
20103 | sizeof(ntop), strport, sizeof(strport), | ||
20104 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
20105 | |||
20106 | if (err != 0) { | ||
20107 | if (err == EAI_SYSTEM) | ||
20108 | perror("getnameinfo EAI_SYSTEM"); | ||
20109 | else | ||
20110 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
20111 | gai_strerror(err)); | ||
20112 | exit(2); | ||
20113 | } | ||
20114 | |||
20115 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
20116 | if (sock < 0) | ||
20117 | perror("socket"); | ||
20118 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
20119 | if (errno == EBADF) | ||
20120 | exit(3); | ||
20121 | } | ||
20122 | } | ||
20123 | exit(0); | ||
20124 | |||
20125 | ; | ||
20126 | return 0; | ||
20127 | } | ||
20128 | _ACEOF | ||
20129 | rm -f conftest$ac_exeext | ||
20130 | if { (ac_try="$ac_link" | ||
20131 | case "(($ac_try" in | ||
20132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20133 | *) ac_try_echo=$ac_try;; | ||
20134 | esac | ||
20135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20136 | (eval "$ac_link") 2>&5 | ||
20137 | ac_status=$? | ||
20138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20139 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20140 | { (case "(($ac_try" in | ||
20141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20142 | *) ac_try_echo=$ac_try;; | ||
20143 | esac | ||
20144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20145 | (eval "$ac_try") 2>&5 | ||
20146 | ac_status=$? | ||
20147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20148 | (exit $ac_status); }; }; then | ||
20149 | |||
20150 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20151 | echo "${ECHO_T}yes" >&6; } | ||
20152 | |||
20153 | else | ||
20154 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20155 | echo "$as_me: failed program was:" >&5 | ||
20156 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20157 | |||
20158 | ( exit $ac_status ) | ||
20159 | |||
20160 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20161 | echo "${ECHO_T}no" >&6; } | ||
20162 | cat >>confdefs.h <<\_ACEOF | ||
20163 | #define BROKEN_GETADDRINFO 1 | ||
20164 | _ACEOF | ||
20165 | |||
20166 | |||
20167 | fi | ||
20168 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20169 | fi | ||
20170 | |||
20171 | |||
20172 | fi | ||
20173 | |||
20174 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
20175 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
20176 | { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
20177 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } | ||
20178 | if test "$cross_compiling" = yes; then | ||
20179 | |||
20180 | { echo "$as_me:$LINENO: result: cross-compiling, assuming no" >&5 | ||
20181 | echo "${ECHO_T}cross-compiling, assuming no" >&6; } | ||
20182 | |||
20183 | |||
20184 | else | ||
20185 | cat >conftest.$ac_ext <<_ACEOF | ||
20186 | /* confdefs.h. */ | ||
20187 | _ACEOF | ||
20188 | cat confdefs.h >>conftest.$ac_ext | ||
20189 | cat >>conftest.$ac_ext <<_ACEOF | ||
20190 | /* end confdefs.h. */ | ||
20191 | |||
20192 | #include <stdio.h> | ||
20193 | #include <sys/socket.h> | ||
20194 | #include <netdb.h> | ||
20195 | #include <errno.h> | ||
20196 | #include <netinet/in.h> | ||
20197 | |||
20198 | #define TEST_PORT "2222" | ||
20199 | |||
20200 | int | ||
20201 | main () | ||
20202 | { | ||
20203 | |||
20204 | int err, sock; | ||
20205 | struct addrinfo *gai_ai, *ai, hints; | ||
20206 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
20207 | |||
20208 | memset(&hints, 0, sizeof(hints)); | ||
20209 | hints.ai_family = PF_UNSPEC; | ||
20210 | hints.ai_socktype = SOCK_STREAM; | ||
20211 | hints.ai_flags = AI_PASSIVE; | ||
20212 | |||
20213 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
20214 | if (err != 0) { | ||
20215 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
20216 | exit(1); | ||
20217 | } | ||
20218 | |||
20219 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
20220 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
20221 | continue; | ||
20222 | |||
20223 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
20224 | sizeof(ntop), strport, sizeof(strport), | ||
20225 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
20226 | |||
20227 | if (ai->ai_family == AF_INET && err != 0) { | ||
20228 | perror("getnameinfo"); | ||
20229 | exit(2); | ||
20230 | } | ||
20231 | } | ||
20232 | exit(0); | ||
20233 | |||
20234 | ; | ||
20235 | return 0; | ||
20236 | } | ||
20237 | _ACEOF | ||
20238 | rm -f conftest$ac_exeext | ||
20239 | if { (ac_try="$ac_link" | ||
20240 | case "(($ac_try" in | ||
20241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20242 | *) ac_try_echo=$ac_try;; | ||
20243 | esac | ||
20244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20245 | (eval "$ac_link") 2>&5 | ||
20246 | ac_status=$? | ||
20247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20248 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20249 | { (case "(($ac_try" in | ||
20250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20251 | *) ac_try_echo=$ac_try;; | ||
20252 | esac | ||
20253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20254 | (eval "$ac_try") 2>&5 | ||
20255 | ac_status=$? | ||
20256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20257 | (exit $ac_status); }; }; then | ||
20258 | |||
20259 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20260 | echo "${ECHO_T}yes" >&6; } | ||
20261 | |||
20262 | cat >>confdefs.h <<\_ACEOF | ||
20263 | #define AIX_GETNAMEINFO_HACK 1 | ||
20264 | _ACEOF | ||
20265 | |||
20266 | |||
20267 | else | ||
20268 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20269 | echo "$as_me: failed program was:" >&5 | ||
20270 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20271 | |||
20272 | ( exit $ac_status ) | ||
20273 | |||
20274 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20275 | echo "${ECHO_T}no" >&6; } | ||
20276 | cat >>confdefs.h <<\_ACEOF | ||
20277 | #define BROKEN_GETADDRINFO 1 | ||
20278 | _ACEOF | ||
20279 | |||
20280 | |||
20281 | fi | ||
20282 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20283 | fi | ||
20284 | |||
20285 | |||
20286 | fi | ||
20287 | |||
20288 | if test "x$ac_cv_func_getaddrinfo" = "xyes"; then | ||
20289 | { echo "$as_me:$LINENO: checking whether AI_NUMERICSERV is declared" >&5 | ||
20290 | echo $ECHO_N "checking whether AI_NUMERICSERV is declared... $ECHO_C" >&6; } | ||
20291 | if test "${ac_cv_have_decl_AI_NUMERICSERV+set}" = set; then | ||
20292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20293 | else | ||
20294 | cat >conftest.$ac_ext <<_ACEOF | ||
20295 | /* confdefs.h. */ | ||
20296 | _ACEOF | ||
20297 | cat confdefs.h >>conftest.$ac_ext | ||
20298 | cat >>conftest.$ac_ext <<_ACEOF | ||
20299 | /* end confdefs.h. */ | ||
20300 | #include <sys/types.h> | ||
20301 | #include <sys/socket.h> | ||
20302 | #include <netdb.h> | ||
20303 | |||
20304 | int | ||
20305 | main () | ||
20306 | { | ||
20307 | #ifndef AI_NUMERICSERV | ||
20308 | (void) AI_NUMERICSERV; | ||
20309 | #endif | ||
20310 | |||
20311 | ; | ||
20312 | return 0; | ||
20313 | } | ||
20314 | _ACEOF | ||
20315 | rm -f conftest.$ac_objext | ||
20316 | if { (ac_try="$ac_compile" | ||
20317 | case "(($ac_try" in | ||
20318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20319 | *) ac_try_echo=$ac_try;; | ||
20320 | esac | ||
20321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20322 | (eval "$ac_compile") 2>conftest.er1 | ||
20323 | ac_status=$? | ||
20324 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20325 | rm -f conftest.er1 | ||
20326 | cat conftest.err >&5 | ||
20327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20328 | (exit $ac_status); } && { | ||
20329 | test -z "$ac_c_werror_flag" || | ||
20330 | test ! -s conftest.err | ||
20331 | } && test -s conftest.$ac_objext; then | ||
20332 | ac_cv_have_decl_AI_NUMERICSERV=yes | ||
20333 | else | ||
20334 | echo "$as_me: failed program was:" >&5 | ||
20335 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20336 | |||
20337 | ac_cv_have_decl_AI_NUMERICSERV=no | ||
20338 | fi | ||
20339 | |||
20340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20341 | fi | ||
20342 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_NUMERICSERV" >&5 | ||
20343 | echo "${ECHO_T}$ac_cv_have_decl_AI_NUMERICSERV" >&6; } | ||
20344 | if test $ac_cv_have_decl_AI_NUMERICSERV = yes; then | ||
20345 | |||
20346 | cat >>confdefs.h <<_ACEOF | ||
20347 | #define HAVE_DECL_AI_NUMERICSERV 1 | ||
20348 | _ACEOF | ||
20349 | |||
20350 | |||
20351 | else | ||
20352 | cat >>confdefs.h <<_ACEOF | ||
20353 | #define HAVE_DECL_AI_NUMERICSERV 0 | ||
20354 | _ACEOF | ||
20355 | |||
20356 | |||
20357 | fi | ||
20358 | |||
20359 | |||
20360 | fi | ||
20361 | |||
20362 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
20363 | { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5 | ||
20364 | echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; } | ||
20365 | cat >conftest.$ac_ext <<_ACEOF | ||
20366 | /* confdefs.h. */ | ||
20367 | _ACEOF | ||
20368 | cat confdefs.h >>conftest.$ac_ext | ||
20369 | cat >>conftest.$ac_ext <<_ACEOF | ||
20370 | /* end confdefs.h. */ | ||
20371 | #include <shadow.h> | ||
20372 | int | ||
20373 | main () | ||
20374 | { | ||
20375 | exit(0); | ||
20376 | ; | ||
20377 | return 0; | ||
20378 | } | ||
20379 | _ACEOF | ||
20380 | rm -f conftest.$ac_objext | ||
20381 | if { (ac_try="$ac_compile" | ||
20382 | case "(($ac_try" in | ||
20383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20384 | *) ac_try_echo=$ac_try;; | ||
20385 | esac | ||
20386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20387 | (eval "$ac_compile") 2>conftest.er1 | ||
20388 | ac_status=$? | ||
20389 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20390 | rm -f conftest.er1 | ||
20391 | cat conftest.err >&5 | ||
20392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20393 | (exit $ac_status); } && { | ||
20394 | test -z "$ac_c_werror_flag" || | ||
20395 | test ! -s conftest.err | ||
20396 | } && test -s conftest.$ac_objext; then | ||
20397 | |||
20398 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20399 | echo "${ECHO_T}no" >&6; } | ||
20400 | |||
20401 | else | ||
20402 | echo "$as_me: failed program was:" >&5 | ||
20403 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20404 | |||
20405 | |||
20406 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20407 | echo "${ECHO_T}yes" >&6; } | ||
20408 | |||
20409 | cat >>confdefs.h <<\_ACEOF | ||
20410 | #define GETSPNAM_CONFLICTING_DEFS 1 | ||
20411 | _ACEOF | ||
20412 | |||
20413 | |||
20414 | |||
20415 | fi | ||
20416 | |||
20417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20418 | fi | ||
20419 | |||
20420 | { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | ||
20421 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; } | ||
20422 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
20423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20424 | else | ||
20425 | # Use it with a single arg. | ||
20426 | cat >conftest.$ac_ext <<_ACEOF | ||
20427 | /* confdefs.h. */ | ||
20428 | _ACEOF | ||
20429 | cat confdefs.h >>conftest.$ac_ext | ||
20430 | cat >>conftest.$ac_ext <<_ACEOF | ||
20431 | /* end confdefs.h. */ | ||
20432 | $ac_includes_default | ||
20433 | int | ||
20434 | main () | ||
20435 | { | ||
20436 | getpgrp (0); | ||
20437 | ; | ||
20438 | return 0; | ||
20439 | } | ||
20440 | _ACEOF | ||
20441 | rm -f conftest.$ac_objext | ||
20442 | if { (ac_try="$ac_compile" | ||
20443 | case "(($ac_try" in | ||
20444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20445 | *) ac_try_echo=$ac_try;; | ||
20446 | esac | ||
20447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20448 | (eval "$ac_compile") 2>conftest.er1 | ||
20449 | ac_status=$? | ||
20450 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20451 | rm -f conftest.er1 | ||
20452 | cat conftest.err >&5 | ||
20453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20454 | (exit $ac_status); } && { | ||
20455 | test -z "$ac_c_werror_flag" || | ||
20456 | test ! -s conftest.err | ||
20457 | } && test -s conftest.$ac_objext; then | ||
20458 | ac_cv_func_getpgrp_void=no | ||
20459 | else | ||
20460 | echo "$as_me: failed program was:" >&5 | ||
20461 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20462 | |||
20463 | ac_cv_func_getpgrp_void=yes | ||
20464 | fi | ||
20465 | |||
20466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20467 | |||
20468 | fi | ||
20469 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | ||
20470 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; } | ||
20471 | if test $ac_cv_func_getpgrp_void = yes; then | ||
20472 | |||
20473 | cat >>confdefs.h <<\_ACEOF | ||
20474 | #define GETPGRP_VOID 1 | ||
20475 | _ACEOF | ||
20476 | |||
20477 | fi | ||
20478 | |||
20479 | |||
20480 | # Search for OpenSSL | ||
20481 | saved_CPPFLAGS="$CPPFLAGS" | ||
20482 | saved_LDFLAGS="$LDFLAGS" | ||
20483 | |||
20484 | # Check whether --with-ssl-dir was given. | ||
20485 | if test "${with_ssl_dir+set}" = set; then | ||
20486 | withval=$with_ssl_dir; | ||
20487 | if test "x$openssl" = "xno" ; then | ||
20488 | { { echo "$as_me:$LINENO: error: cannot use --with-ssl-dir when OpenSSL disabled" >&5 | ||
20489 | echo "$as_me: error: cannot use --with-ssl-dir when OpenSSL disabled" >&2;} | ||
20490 | { (exit 1); exit 1; }; } | ||
20491 | fi | ||
20492 | if test "x$withval" != "xno" ; then | ||
20493 | case "$withval" in | ||
20494 | # Relative paths | ||
20495 | ./*|../*) withval="`pwd`/$withval" | ||
20496 | esac | ||
20497 | if test -d "$withval/lib"; then | ||
20498 | if test -n "${need_dash_r}"; then | ||
20499 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
20500 | else | ||
20501 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
20502 | fi | ||
20503 | elif test -d "$withval/lib64"; then | ||
20504 | if test -n "${need_dash_r}"; then | ||
20505 | LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}" | ||
20506 | else | ||
20507 | LDFLAGS="-L${withval}/lib64 ${LDFLAGS}" | ||
20508 | fi | ||
20509 | else | ||
20510 | if test -n "${need_dash_r}"; then | ||
20511 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
20512 | else | ||
20513 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
20514 | fi | ||
20515 | fi | ||
20516 | if test -d "$withval/include"; then | ||
20517 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
20518 | else | ||
20519 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
20520 | fi | ||
20521 | fi | ||
20522 | |||
20523 | |||
20524 | fi | ||
20525 | |||
20526 | |||
20527 | |||
20528 | # Check whether --with-openssl-header-check was given. | ||
20529 | if test "${with_openssl_header_check+set}" = set; then | ||
20530 | withval=$with_openssl_header_check; | ||
20531 | if test "x$withval" = "xno" ; then | ||
20532 | openssl_check_nonfatal=1 | ||
20533 | fi | ||
20534 | |||
20535 | |||
20536 | fi | ||
20537 | |||
20538 | |||
20539 | openssl_engine=no | ||
20540 | |||
20541 | # Check whether --with-ssl-engine was given. | ||
20542 | if test "${with_ssl_engine+set}" = set; then | ||
20543 | withval=$with_ssl_engine; | ||
20544 | if test "x$openssl" = "xno" ; then | ||
20545 | { { echo "$as_me:$LINENO: error: cannot use --with-ssl-engine when OpenSSL disabled" >&5 | ||
20546 | echo "$as_me: error: cannot use --with-ssl-engine when OpenSSL disabled" >&2;} | ||
20547 | { (exit 1); exit 1; }; } | ||
20548 | fi | ||
20549 | if test "x$withval" != "xno" ; then | ||
20550 | openssl_engine=yes | ||
20551 | fi | ||
20552 | |||
20553 | |||
20554 | fi | ||
20555 | |||
20556 | |||
20557 | if test "x$openssl" = "xyes" ; then | ||
20558 | LIBS="-lcrypto $LIBS" | ||
20559 | cat >conftest.$ac_ext <<_ACEOF | ||
20560 | /* confdefs.h. */ | ||
20561 | _ACEOF | ||
20562 | cat confdefs.h >>conftest.$ac_ext | ||
20563 | cat >>conftest.$ac_ext <<_ACEOF | ||
20564 | /* end confdefs.h. */ | ||
20565 | |||
20566 | /* Override any GCC internal prototype to avoid an error. | ||
20567 | Use char because int might match the return type of a GCC | ||
20568 | builtin and then its argument prototype would still apply. */ | ||
20569 | #ifdef __cplusplus | ||
20570 | extern "C" | ||
20571 | #endif | ||
20572 | char RAND_add (); | ||
20573 | int | ||
20574 | main () | ||
20575 | { | ||
20576 | return RAND_add (); | ||
20577 | ; | ||
20578 | return 0; | ||
20579 | } | ||
20580 | _ACEOF | ||
20581 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20582 | if { (ac_try="$ac_link" | ||
20583 | case "(($ac_try" in | ||
20584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20585 | *) ac_try_echo=$ac_try;; | ||
20586 | esac | ||
20587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20588 | (eval "$ac_link") 2>conftest.er1 | ||
20589 | ac_status=$? | ||
20590 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20591 | rm -f conftest.er1 | ||
20592 | cat conftest.err >&5 | ||
20593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20594 | (exit $ac_status); } && { | ||
20595 | test -z "$ac_c_werror_flag" || | ||
20596 | test ! -s conftest.err | ||
20597 | } && test -s conftest$ac_exeext && | ||
20598 | $as_test_x conftest$ac_exeext; then | ||
20599 | |||
20600 | cat >>confdefs.h <<\_ACEOF | ||
20601 | #define HAVE_OPENSSL 1 | ||
20602 | _ACEOF | ||
20603 | |||
20604 | else | ||
20605 | echo "$as_me: failed program was:" >&5 | ||
20606 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20607 | |||
20608 | |||
20609 | if test -n "${need_dash_r}"; then | ||
20610 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
20611 | else | ||
20612 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
20613 | fi | ||
20614 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
20615 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
20616 | { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5 | ||
20617 | echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; } | ||
20618 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
20619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20620 | fi | ||
20621 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5 | ||
20622 | echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; } | ||
20623 | else | ||
20624 | # Is the header compilable? | ||
20625 | { echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5 | ||
20626 | echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; } | ||
20627 | cat >conftest.$ac_ext <<_ACEOF | ||
20628 | /* confdefs.h. */ | ||
20629 | _ACEOF | ||
20630 | cat confdefs.h >>conftest.$ac_ext | ||
20631 | cat >>conftest.$ac_ext <<_ACEOF | ||
20632 | /* end confdefs.h. */ | ||
20633 | $ac_includes_default | ||
20634 | #include <openssl/opensslv.h> | ||
20635 | _ACEOF | ||
20636 | rm -f conftest.$ac_objext | ||
20637 | if { (ac_try="$ac_compile" | ||
20638 | case "(($ac_try" in | ||
20639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20640 | *) ac_try_echo=$ac_try;; | ||
20641 | esac | ||
20642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20643 | (eval "$ac_compile") 2>conftest.er1 | ||
20644 | ac_status=$? | ||
20645 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20646 | rm -f conftest.er1 | ||
20647 | cat conftest.err >&5 | ||
20648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20649 | (exit $ac_status); } && { | ||
20650 | test -z "$ac_c_werror_flag" || | ||
20651 | test ! -s conftest.err | ||
20652 | } && test -s conftest.$ac_objext; then | ||
20653 | ac_header_compiler=yes | ||
20654 | else | ||
20655 | echo "$as_me: failed program was:" >&5 | ||
20656 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20657 | |||
20658 | ac_header_compiler=no | ||
20659 | fi | ||
20660 | |||
20661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20662 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
20663 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
20664 | |||
20665 | # Is the header present? | ||
20666 | { echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5 | ||
20667 | echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; } | ||
20668 | cat >conftest.$ac_ext <<_ACEOF | ||
20669 | /* confdefs.h. */ | ||
20670 | _ACEOF | ||
20671 | cat confdefs.h >>conftest.$ac_ext | ||
20672 | cat >>conftest.$ac_ext <<_ACEOF | ||
20673 | /* end confdefs.h. */ | ||
20674 | #include <openssl/opensslv.h> | ||
20675 | _ACEOF | ||
20676 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
20677 | case "(($ac_try" in | ||
20678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20679 | *) ac_try_echo=$ac_try;; | ||
20680 | esac | ||
20681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20682 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
20683 | ac_status=$? | ||
20684 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20685 | rm -f conftest.er1 | ||
20686 | cat conftest.err >&5 | ||
20687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20688 | (exit $ac_status); } >/dev/null && { | ||
20689 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
20690 | test ! -s conftest.err | ||
20691 | }; then | ||
20692 | ac_header_preproc=yes | ||
20693 | else | ||
20694 | echo "$as_me: failed program was:" >&5 | ||
20695 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20696 | |||
20697 | ac_header_preproc=no | ||
20698 | fi | ||
20699 | |||
20700 | rm -f conftest.err conftest.$ac_ext | ||
20701 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
20702 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
20703 | |||
20704 | # So? What about this header? | ||
20705 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
20706 | yes:no: ) | ||
20707 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
20708 | echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
20709 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5 | ||
20710 | echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;} | ||
20711 | ac_header_preproc=yes | ||
20712 | ;; | ||
20713 | no:yes:* ) | ||
20714 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5 | ||
20715 | echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;} | ||
20716 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5 | ||
20717 | echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;} | ||
20718 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5 | ||
20719 | echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;} | ||
20720 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
20721 | echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
20722 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5 | ||
20723 | echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;} | ||
20724 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5 | ||
20725 | echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;} | ||
20726 | ( cat <<\_ASBOX | ||
20727 | ## ------------------------------------------- ## | ||
20728 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
20729 | ## ------------------------------------------- ## | ||
20730 | _ASBOX | ||
20731 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
20732 | ;; | ||
20733 | esac | ||
20734 | { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5 | ||
20735 | echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; } | ||
20736 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
20737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20738 | else | ||
20739 | ac_cv_header_openssl_opensslv_h=$ac_header_preproc | ||
20740 | fi | ||
20741 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5 | ||
20742 | echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; } | ||
20743 | |||
20744 | fi | ||
20745 | if test $ac_cv_header_openssl_opensslv_h = yes; then | ||
20746 | : | ||
20747 | else | ||
20748 | { { echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5 | ||
20749 | echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;} | ||
20750 | { (exit 1); exit 1; }; } | ||
20751 | fi | ||
20752 | |||
20753 | |||
20754 | cat >conftest.$ac_ext <<_ACEOF | ||
20755 | /* confdefs.h. */ | ||
20756 | _ACEOF | ||
20757 | cat confdefs.h >>conftest.$ac_ext | ||
20758 | cat >>conftest.$ac_ext <<_ACEOF | ||
20759 | /* end confdefs.h. */ | ||
20760 | |||
20761 | /* Override any GCC internal prototype to avoid an error. | ||
20762 | Use char because int might match the return type of a GCC | ||
20763 | builtin and then its argument prototype would still apply. */ | ||
20764 | #ifdef __cplusplus | ||
20765 | extern "C" | ||
20766 | #endif | ||
20767 | char RAND_add (); | ||
20768 | int | ||
20769 | main () | ||
20770 | { | ||
20771 | return RAND_add (); | ||
20772 | ; | ||
20773 | return 0; | ||
20774 | } | ||
20775 | _ACEOF | ||
20776 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20777 | if { (ac_try="$ac_link" | ||
20778 | case "(($ac_try" in | ||
20779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20780 | *) ac_try_echo=$ac_try;; | ||
20781 | esac | ||
20782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20783 | (eval "$ac_link") 2>conftest.er1 | ||
20784 | ac_status=$? | ||
20785 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20786 | rm -f conftest.er1 | ||
20787 | cat conftest.err >&5 | ||
20788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20789 | (exit $ac_status); } && { | ||
20790 | test -z "$ac_c_werror_flag" || | ||
20791 | test ! -s conftest.err | ||
20792 | } && test -s conftest$ac_exeext && | ||
20793 | $as_test_x conftest$ac_exeext; then | ||
20794 | cat >>confdefs.h <<\_ACEOF | ||
20795 | #define HAVE_OPENSSL 1 | ||
20796 | _ACEOF | ||
20797 | |||
20798 | else | ||
20799 | echo "$as_me: failed program was:" >&5 | ||
20800 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20801 | |||
20802 | |||
20803 | { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
20804 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
20805 | { (exit 1); exit 1; }; } | ||
20806 | |||
20807 | |||
20808 | fi | ||
20809 | |||
20810 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
20811 | conftest$ac_exeext conftest.$ac_ext | ||
20812 | |||
20813 | |||
20814 | fi | ||
20815 | |||
20816 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
20817 | conftest$ac_exeext conftest.$ac_ext | ||
20818 | |||
20819 | # Determine OpenSSL header version | ||
20820 | { echo "$as_me:$LINENO: checking OpenSSL header version" >&5 | ||
20821 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; } | ||
20822 | if test "$cross_compiling" = yes; then | ||
20823 | |||
20824 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
20825 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
20826 | |||
20827 | |||
20828 | else | ||
20829 | cat >conftest.$ac_ext <<_ACEOF | ||
20830 | /* confdefs.h. */ | ||
20831 | _ACEOF | ||
20832 | cat confdefs.h >>conftest.$ac_ext | ||
20833 | cat >>conftest.$ac_ext <<_ACEOF | ||
20834 | /* end confdefs.h. */ | ||
20835 | |||
20836 | #include <stdio.h> | ||
20837 | #include <string.h> | ||
20838 | #include <openssl/opensslv.h> | ||
20839 | #define DATA "conftest.sslincver" | ||
20840 | |||
20841 | int | ||
20842 | main () | ||
20843 | { | ||
20844 | |||
20845 | FILE *fd; | ||
20846 | int rc; | ||
20847 | |||
20848 | fd = fopen(DATA,"w"); | ||
20849 | if(fd == NULL) | ||
20850 | exit(1); | ||
20851 | |||
20852 | if ((rc = fprintf(fd ,"%08x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
20853 | exit(1); | ||
20854 | |||
20855 | exit(0); | ||
20856 | |||
20857 | ; | ||
20858 | return 0; | ||
20859 | } | ||
20860 | _ACEOF | ||
20861 | rm -f conftest$ac_exeext | ||
20862 | if { (ac_try="$ac_link" | ||
20863 | case "(($ac_try" in | ||
20864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20865 | *) ac_try_echo=$ac_try;; | ||
20866 | esac | ||
20867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20868 | (eval "$ac_link") 2>&5 | ||
20869 | ac_status=$? | ||
20870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20871 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20872 | { (case "(($ac_try" in | ||
20873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20874 | *) ac_try_echo=$ac_try;; | ||
20875 | esac | ||
20876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20877 | (eval "$ac_try") 2>&5 | ||
20878 | ac_status=$? | ||
20879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20880 | (exit $ac_status); }; }; then | ||
20881 | |||
20882 | ssl_header_ver=`cat conftest.sslincver` | ||
20883 | { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5 | ||
20884 | echo "${ECHO_T}$ssl_header_ver" >&6; } | ||
20885 | |||
20886 | else | ||
20887 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20888 | echo "$as_me: failed program was:" >&5 | ||
20889 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20890 | |||
20891 | ( exit $ac_status ) | ||
20892 | |||
20893 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
20894 | echo "${ECHO_T}not found" >&6; } | ||
20895 | { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5 | ||
20896 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
20897 | { (exit 1); exit 1; }; } | ||
20898 | |||
20899 | fi | ||
20900 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20901 | fi | ||
20902 | |||
20903 | |||
20904 | |||
20905 | # Determine OpenSSL library version | ||
20906 | { echo "$as_me:$LINENO: checking OpenSSL library version" >&5 | ||
20907 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; } | ||
20908 | if test "$cross_compiling" = yes; then | ||
20909 | |||
20910 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
20911 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
20912 | |||
20913 | |||
20914 | else | ||
20915 | cat >conftest.$ac_ext <<_ACEOF | ||
20916 | /* confdefs.h. */ | ||
20917 | _ACEOF | ||
20918 | cat confdefs.h >>conftest.$ac_ext | ||
20919 | cat >>conftest.$ac_ext <<_ACEOF | ||
20920 | /* end confdefs.h. */ | ||
20921 | |||
20922 | #include <stdio.h> | ||
20923 | #include <string.h> | ||
20924 | #include <openssl/opensslv.h> | ||
20925 | #include <openssl/crypto.h> | ||
20926 | #define DATA "conftest.ssllibver" | ||
20927 | |||
20928 | int | ||
20929 | main () | ||
20930 | { | ||
20931 | |||
20932 | FILE *fd; | ||
20933 | int rc; | ||
20934 | |||
20935 | fd = fopen(DATA,"w"); | ||
20936 | if(fd == NULL) | ||
20937 | exit(1); | ||
20938 | |||
20939 | if ((rc = fprintf(fd ,"%08x (%s)\n", SSLeay(), | ||
20940 | SSLeay_version(SSLEAY_VERSION))) <0) | ||
20941 | exit(1); | ||
20942 | |||
20943 | exit(0); | ||
20944 | |||
20945 | ; | ||
20946 | return 0; | ||
20947 | } | ||
20948 | _ACEOF | ||
20949 | rm -f conftest$ac_exeext | ||
20950 | if { (ac_try="$ac_link" | ||
20951 | case "(($ac_try" in | ||
20952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20953 | *) ac_try_echo=$ac_try;; | ||
20954 | esac | ||
20955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20956 | (eval "$ac_link") 2>&5 | ||
20957 | ac_status=$? | ||
20958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20959 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20960 | { (case "(($ac_try" in | ||
20961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20962 | *) ac_try_echo=$ac_try;; | ||
20963 | esac | ||
20964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20965 | (eval "$ac_try") 2>&5 | ||
20966 | ac_status=$? | ||
20967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20968 | (exit $ac_status); }; }; then | ||
20969 | |||
20970 | ssl_library_ver=`cat conftest.ssllibver` | ||
20971 | # Check version is supported. | ||
20972 | case "$ssl_library_ver" in | ||
20973 | 0090[0-7]*|009080[0-5]*) | ||
20974 | { { echo "$as_me:$LINENO: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&5 | ||
20975 | echo "$as_me: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&2;} | ||
20976 | { (exit 1); exit 1; }; } | ||
20977 | ;; | ||
20978 | *) ;; | ||
20979 | esac | ||
20980 | { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5 | ||
20981 | echo "${ECHO_T}$ssl_library_ver" >&6; } | ||
20982 | |||
20983 | else | ||
20984 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20985 | echo "$as_me: failed program was:" >&5 | ||
20986 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20987 | |||
20988 | ( exit $ac_status ) | ||
20989 | |||
20990 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
20991 | echo "${ECHO_T}not found" >&6; } | ||
20992 | { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5 | ||
20993 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
20994 | { (exit 1); exit 1; }; } | ||
20995 | |||
20996 | fi | ||
20997 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20998 | fi | ||
20999 | |||
21000 | |||
21001 | |||
21002 | # Sanity check OpenSSL headers | ||
21003 | { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | ||
21004 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; } | ||
21005 | if test "$cross_compiling" = yes; then | ||
21006 | |||
21007 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
21008 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
21009 | |||
21010 | |||
21011 | else | ||
21012 | cat >conftest.$ac_ext <<_ACEOF | ||
21013 | /* confdefs.h. */ | ||
21014 | _ACEOF | ||
21015 | cat confdefs.h >>conftest.$ac_ext | ||
21016 | cat >>conftest.$ac_ext <<_ACEOF | ||
21017 | /* end confdefs.h. */ | ||
21018 | |||
21019 | #include <string.h> | ||
21020 | #include <openssl/opensslv.h> | ||
21021 | |||
21022 | int | ||
21023 | main () | ||
21024 | { | ||
21025 | |||
21026 | exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); | ||
21027 | |||
21028 | ; | ||
21029 | return 0; | ||
21030 | } | ||
21031 | _ACEOF | ||
21032 | rm -f conftest$ac_exeext | ||
21033 | if { (ac_try="$ac_link" | ||
21034 | case "(($ac_try" in | ||
21035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21036 | *) ac_try_echo=$ac_try;; | ||
21037 | esac | ||
21038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21039 | (eval "$ac_link") 2>&5 | ||
21040 | ac_status=$? | ||
21041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21042 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21043 | { (case "(($ac_try" in | ||
21044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21045 | *) ac_try_echo=$ac_try;; | ||
21046 | esac | ||
21047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21048 | (eval "$ac_try") 2>&5 | ||
21049 | ac_status=$? | ||
21050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21051 | (exit $ac_status); }; }; then | ||
21052 | |||
21053 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21054 | echo "${ECHO_T}yes" >&6; } | ||
21055 | |||
21056 | else | ||
21057 | echo "$as_me: program exited with status $ac_status" >&5 | ||
21058 | echo "$as_me: failed program was:" >&5 | ||
21059 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21060 | |||
21061 | ( exit $ac_status ) | ||
21062 | |||
21063 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21064 | echo "${ECHO_T}no" >&6; } | ||
21065 | if test "x$openssl_check_nonfatal" = "x"; then | ||
21066 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your | ||
21067 | library. Check config.log for details. | ||
21068 | If you are sure your installation is consistent, you can disable the check | ||
21069 | by running \"./configure --without-openssl-header-check\". | ||
21070 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
21071 | " >&5 | ||
21072 | echo "$as_me: error: Your OpenSSL headers do not match your | ||
21073 | library. Check config.log for details. | ||
21074 | If you are sure your installation is consistent, you can disable the check | ||
21075 | by running \"./configure --without-openssl-header-check\". | ||
21076 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
21077 | " >&2;} | ||
21078 | { (exit 1); exit 1; }; } | ||
21079 | else | ||
21080 | { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your | ||
21081 | library. Check config.log for details. | ||
21082 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
21083 | echo "$as_me: WARNING: Your OpenSSL headers do not match your | ||
21084 | library. Check config.log for details. | ||
21085 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
21086 | fi | ||
21087 | |||
21088 | fi | ||
21089 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21090 | fi | ||
21091 | |||
21092 | |||
21093 | |||
21094 | { echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5 | ||
21095 | echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; } | ||
21096 | cat >conftest.$ac_ext <<_ACEOF | ||
21097 | /* confdefs.h. */ | ||
21098 | _ACEOF | ||
21099 | cat confdefs.h >>conftest.$ac_ext | ||
21100 | cat >>conftest.$ac_ext <<_ACEOF | ||
21101 | /* end confdefs.h. */ | ||
21102 | #include <openssl/evp.h> | ||
21103 | int | ||
21104 | main () | ||
21105 | { | ||
21106 | SSLeay_add_all_algorithms(); | ||
21107 | ; | ||
21108 | return 0; | ||
21109 | } | ||
21110 | _ACEOF | ||
21111 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21112 | if { (ac_try="$ac_link" | ||
21113 | case "(($ac_try" in | ||
21114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21115 | *) ac_try_echo=$ac_try;; | ||
21116 | esac | ||
21117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21118 | (eval "$ac_link") 2>conftest.er1 | ||
21119 | ac_status=$? | ||
21120 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21121 | rm -f conftest.er1 | ||
21122 | cat conftest.err >&5 | ||
21123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21124 | (exit $ac_status); } && { | ||
21125 | test -z "$ac_c_werror_flag" || | ||
21126 | test ! -s conftest.err | ||
21127 | } && test -s conftest$ac_exeext && | ||
21128 | $as_test_x conftest$ac_exeext; then | ||
21129 | |||
21130 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21131 | echo "${ECHO_T}yes" >&6; } | ||
21132 | |||
21133 | else | ||
21134 | echo "$as_me: failed program was:" >&5 | ||
21135 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21136 | |||
21137 | |||
21138 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21139 | echo "${ECHO_T}no" >&6; } | ||
21140 | saved_LIBS="$LIBS" | ||
21141 | LIBS="$LIBS -ldl" | ||
21142 | { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5 | ||
21143 | echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; } | ||
21144 | cat >conftest.$ac_ext <<_ACEOF | ||
21145 | /* confdefs.h. */ | ||
21146 | _ACEOF | ||
21147 | cat confdefs.h >>conftest.$ac_ext | ||
21148 | cat >>conftest.$ac_ext <<_ACEOF | ||
21149 | /* end confdefs.h. */ | ||
21150 | #include <openssl/evp.h> | ||
21151 | int | ||
21152 | main () | ||
21153 | { | ||
21154 | SSLeay_add_all_algorithms(); | ||
21155 | ; | ||
21156 | return 0; | ||
21157 | } | ||
21158 | _ACEOF | ||
21159 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21160 | if { (ac_try="$ac_link" | ||
21161 | case "(($ac_try" in | ||
21162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21163 | *) ac_try_echo=$ac_try;; | ||
21164 | esac | ||
21165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21166 | (eval "$ac_link") 2>conftest.er1 | ||
21167 | ac_status=$? | ||
21168 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21169 | rm -f conftest.er1 | ||
21170 | cat conftest.err >&5 | ||
21171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21172 | (exit $ac_status); } && { | ||
21173 | test -z "$ac_c_werror_flag" || | ||
21174 | test ! -s conftest.err | ||
21175 | } && test -s conftest$ac_exeext && | ||
21176 | $as_test_x conftest$ac_exeext; then | ||
21177 | |||
21178 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21179 | echo "${ECHO_T}yes" >&6; } | ||
21180 | |||
21181 | else | ||
21182 | echo "$as_me: failed program was:" >&5 | ||
21183 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21184 | |||
21185 | |||
21186 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21187 | echo "${ECHO_T}no" >&6; } | ||
21188 | LIBS="$saved_LIBS" | ||
21189 | |||
21190 | |||
21191 | fi | ||
21192 | |||
21193 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21194 | conftest$ac_exeext conftest.$ac_ext | ||
21195 | |||
21196 | |||
21197 | fi | ||
21198 | |||
21199 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21200 | conftest$ac_exeext conftest.$ac_ext | ||
21201 | |||
21202 | |||
21203 | |||
21204 | |||
21205 | |||
21206 | |||
21207 | |||
21208 | |||
21209 | |||
21210 | |||
21211 | |||
21212 | for ac_func in \ | ||
21213 | BN_is_prime_ex \ | ||
21214 | DSA_generate_parameters_ex \ | ||
21215 | EVP_DigestInit_ex \ | ||
21216 | EVP_DigestFinal_ex \ | ||
21217 | EVP_MD_CTX_init \ | ||
21218 | EVP_MD_CTX_cleanup \ | ||
21219 | EVP_MD_CTX_copy_ex \ | ||
21220 | HMAC_CTX_init \ | ||
21221 | RSA_generate_key_ex \ | ||
21222 | RSA_get_default_method \ | ||
21223 | |||
21224 | do | ||
21225 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
21226 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
21227 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
21228 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
21229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21230 | else | ||
21231 | cat >conftest.$ac_ext <<_ACEOF | ||
21232 | /* confdefs.h. */ | ||
21233 | _ACEOF | ||
21234 | cat confdefs.h >>conftest.$ac_ext | ||
21235 | cat >>conftest.$ac_ext <<_ACEOF | ||
21236 | /* end confdefs.h. */ | ||
21237 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
21238 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
21239 | #define $ac_func innocuous_$ac_func | ||
21240 | |||
21241 | /* System header to define __stub macros and hopefully few prototypes, | ||
21242 | which can conflict with char $ac_func (); below. | ||
21243 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
21244 | <limits.h> exists even on freestanding compilers. */ | ||
21245 | |||
21246 | #ifdef __STDC__ | ||
21247 | # include <limits.h> | ||
21248 | #else | ||
21249 | # include <assert.h> | ||
21250 | #endif | ||
21251 | |||
21252 | #undef $ac_func | ||
21253 | |||
21254 | /* Override any GCC internal prototype to avoid an error. | ||
21255 | Use char because int might match the return type of a GCC | ||
21256 | builtin and then its argument prototype would still apply. */ | ||
21257 | #ifdef __cplusplus | ||
21258 | extern "C" | ||
21259 | #endif | ||
21260 | char $ac_func (); | ||
21261 | /* The GNU C library defines this for functions which it implements | ||
21262 | to always fail with ENOSYS. Some functions are actually named | ||
21263 | something starting with __ and the normal name is an alias. */ | ||
21264 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
21265 | choke me | ||
21266 | #endif | ||
21267 | |||
21268 | int | ||
21269 | main () | ||
21270 | { | ||
21271 | return $ac_func (); | ||
21272 | ; | ||
21273 | return 0; | ||
21274 | } | ||
21275 | _ACEOF | ||
21276 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21277 | if { (ac_try="$ac_link" | ||
21278 | case "(($ac_try" in | ||
21279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21280 | *) ac_try_echo=$ac_try;; | ||
21281 | esac | ||
21282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21283 | (eval "$ac_link") 2>conftest.er1 | ||
21284 | ac_status=$? | ||
21285 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21286 | rm -f conftest.er1 | ||
21287 | cat conftest.err >&5 | ||
21288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21289 | (exit $ac_status); } && { | ||
21290 | test -z "$ac_c_werror_flag" || | ||
21291 | test ! -s conftest.err | ||
21292 | } && test -s conftest$ac_exeext && | ||
21293 | $as_test_x conftest$ac_exeext; then | ||
21294 | eval "$as_ac_var=yes" | ||
21295 | else | ||
21296 | echo "$as_me: failed program was:" >&5 | ||
21297 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21298 | |||
21299 | eval "$as_ac_var=no" | ||
21300 | fi | ||
21301 | |||
21302 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21303 | conftest$ac_exeext conftest.$ac_ext | ||
21304 | fi | ||
21305 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
21306 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
21307 | echo "${ECHO_T}$ac_res" >&6; } | ||
21308 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
21309 | cat >>confdefs.h <<_ACEOF | ||
21310 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
21311 | _ACEOF | ||
21312 | |||
21313 | fi | ||
21314 | done | ||
21315 | |||
21316 | |||
21317 | if test "x$openssl_engine" = "xyes" ; then | ||
21318 | { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5 | ||
21319 | echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; } | ||
21320 | cat >conftest.$ac_ext <<_ACEOF | ||
21321 | /* confdefs.h. */ | ||
21322 | _ACEOF | ||
21323 | cat confdefs.h >>conftest.$ac_ext | ||
21324 | cat >>conftest.$ac_ext <<_ACEOF | ||
21325 | /* end confdefs.h. */ | ||
21326 | |||
21327 | #include <openssl/engine.h> | ||
21328 | |||
21329 | int | ||
21330 | main () | ||
21331 | { | ||
21332 | |||
21333 | ENGINE_load_builtin_engines(); | ||
21334 | ENGINE_register_all_complete(); | ||
21335 | |||
21336 | ; | ||
21337 | return 0; | ||
21338 | } | ||
21339 | _ACEOF | ||
21340 | rm -f conftest.$ac_objext | ||
21341 | if { (ac_try="$ac_compile" | ||
21342 | case "(($ac_try" in | ||
21343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21344 | *) ac_try_echo=$ac_try;; | ||
21345 | esac | ||
21346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21347 | (eval "$ac_compile") 2>conftest.er1 | ||
21348 | ac_status=$? | ||
21349 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21350 | rm -f conftest.er1 | ||
21351 | cat conftest.err >&5 | ||
21352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21353 | (exit $ac_status); } && { | ||
21354 | test -z "$ac_c_werror_flag" || | ||
21355 | test ! -s conftest.err | ||
21356 | } && test -s conftest.$ac_objext; then | ||
21357 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21358 | echo "${ECHO_T}yes" >&6; } | ||
21359 | |||
21360 | cat >>confdefs.h <<\_ACEOF | ||
21361 | #define USE_OPENSSL_ENGINE 1 | ||
21362 | _ACEOF | ||
21363 | |||
21364 | |||
21365 | else | ||
21366 | echo "$as_me: failed program was:" >&5 | ||
21367 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21368 | |||
21369 | { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5 | ||
21370 | echo "$as_me: error: OpenSSL ENGINE support not found" >&2;} | ||
21371 | { (exit 1); exit 1; }; } | ||
21372 | |||
21373 | fi | ||
21374 | |||
21375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21376 | fi | ||
21377 | |||
21378 | # Check for OpenSSL without EVP_aes_{192,256}_cbc | ||
21379 | { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5 | ||
21380 | echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; } | ||
21381 | cat >conftest.$ac_ext <<_ACEOF | ||
21382 | /* confdefs.h. */ | ||
21383 | _ACEOF | ||
21384 | cat confdefs.h >>conftest.$ac_ext | ||
21385 | cat >>conftest.$ac_ext <<_ACEOF | ||
21386 | /* end confdefs.h. */ | ||
21387 | |||
21388 | #include <string.h> | ||
21389 | #include <openssl/evp.h> | ||
21390 | |||
21391 | int | ||
21392 | main () | ||
21393 | { | ||
21394 | |||
21395 | exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL); | ||
21396 | |||
21397 | ; | ||
21398 | return 0; | ||
21399 | } | ||
21400 | _ACEOF | ||
21401 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21402 | if { (ac_try="$ac_link" | ||
21403 | case "(($ac_try" in | ||
21404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21405 | *) ac_try_echo=$ac_try;; | ||
21406 | esac | ||
21407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21408 | (eval "$ac_link") 2>conftest.er1 | ||
21409 | ac_status=$? | ||
21410 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21411 | rm -f conftest.er1 | ||
21412 | cat conftest.err >&5 | ||
21413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21414 | (exit $ac_status); } && { | ||
21415 | test -z "$ac_c_werror_flag" || | ||
21416 | test ! -s conftest.err | ||
21417 | } && test -s conftest$ac_exeext && | ||
21418 | $as_test_x conftest$ac_exeext; then | ||
21419 | |||
21420 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21421 | echo "${ECHO_T}no" >&6; } | ||
21422 | |||
21423 | else | ||
21424 | echo "$as_me: failed program was:" >&5 | ||
21425 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21426 | |||
21427 | |||
21428 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21429 | echo "${ECHO_T}yes" >&6; } | ||
21430 | |||
21431 | cat >>confdefs.h <<\_ACEOF | ||
21432 | #define OPENSSL_LOBOTOMISED_AES 1 | ||
21433 | _ACEOF | ||
21434 | |||
21435 | |||
21436 | |||
21437 | fi | ||
21438 | |||
21439 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21440 | conftest$ac_exeext conftest.$ac_ext | ||
21441 | |||
21442 | # Check for OpenSSL with EVP_aes_*ctr | ||
21443 | { echo "$as_me:$LINENO: checking whether OpenSSL has AES CTR via EVP" >&5 | ||
21444 | echo $ECHO_N "checking whether OpenSSL has AES CTR via EVP... $ECHO_C" >&6; } | ||
21445 | cat >conftest.$ac_ext <<_ACEOF | ||
21446 | /* confdefs.h. */ | ||
21447 | _ACEOF | ||
21448 | cat confdefs.h >>conftest.$ac_ext | ||
21449 | cat >>conftest.$ac_ext <<_ACEOF | ||
21450 | /* end confdefs.h. */ | ||
21451 | |||
21452 | #include <string.h> | ||
21453 | #include <openssl/evp.h> | ||
21454 | |||
21455 | int | ||
21456 | main () | ||
21457 | { | ||
21458 | |||
21459 | exit(EVP_aes_128_ctr() == NULL || | ||
21460 | EVP_aes_192_cbc() == NULL || | ||
21461 | EVP_aes_256_cbc() == NULL); | ||
21462 | |||
21463 | ; | ||
21464 | return 0; | ||
21465 | } | ||
21466 | _ACEOF | ||
21467 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21468 | if { (ac_try="$ac_link" | ||
21469 | case "(($ac_try" in | ||
21470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21471 | *) ac_try_echo=$ac_try;; | ||
21472 | esac | ||
21473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21474 | (eval "$ac_link") 2>conftest.er1 | ||
21475 | ac_status=$? | ||
21476 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21477 | rm -f conftest.er1 | ||
21478 | cat conftest.err >&5 | ||
21479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21480 | (exit $ac_status); } && { | ||
21481 | test -z "$ac_c_werror_flag" || | ||
21482 | test ! -s conftest.err | ||
21483 | } && test -s conftest$ac_exeext && | ||
21484 | $as_test_x conftest$ac_exeext; then | ||
21485 | |||
21486 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21487 | echo "${ECHO_T}yes" >&6; } | ||
21488 | |||
21489 | cat >>confdefs.h <<\_ACEOF | ||
21490 | #define OPENSSL_HAVE_EVPCTR 1 | ||
21491 | _ACEOF | ||
21492 | |||
21493 | |||
21494 | else | ||
21495 | echo "$as_me: failed program was:" >&5 | ||
21496 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21497 | |||
21498 | |||
21499 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21500 | echo "${ECHO_T}no" >&6; } | ||
21501 | |||
21502 | |||
21503 | fi | ||
21504 | |||
21505 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21506 | conftest$ac_exeext conftest.$ac_ext | ||
21507 | |||
21508 | # Check for OpenSSL with EVP_aes_*gcm | ||
21509 | { echo "$as_me:$LINENO: checking whether OpenSSL has AES GCM via EVP" >&5 | ||
21510 | echo $ECHO_N "checking whether OpenSSL has AES GCM via EVP... $ECHO_C" >&6; } | ||
21511 | cat >conftest.$ac_ext <<_ACEOF | ||
21512 | /* confdefs.h. */ | ||
21513 | _ACEOF | ||
21514 | cat confdefs.h >>conftest.$ac_ext | ||
21515 | cat >>conftest.$ac_ext <<_ACEOF | ||
21516 | /* end confdefs.h. */ | ||
21517 | |||
21518 | #include <string.h> | ||
21519 | #include <openssl/evp.h> | ||
21520 | |||
21521 | int | ||
21522 | main () | ||
21523 | { | ||
21524 | |||
21525 | exit(EVP_aes_128_gcm() == NULL || | ||
21526 | EVP_aes_256_gcm() == NULL || | ||
21527 | EVP_CTRL_GCM_SET_IV_FIXED == 0 || | ||
21528 | EVP_CTRL_GCM_IV_GEN == 0 || | ||
21529 | EVP_CTRL_GCM_SET_TAG == 0 || | ||
21530 | EVP_CTRL_GCM_GET_TAG == 0 || | ||
21531 | EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0); | ||
21532 | |||
21533 | ; | ||
21534 | return 0; | ||
21535 | } | ||
21536 | _ACEOF | ||
21537 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21538 | if { (ac_try="$ac_link" | ||
21539 | case "(($ac_try" in | ||
21540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21541 | *) ac_try_echo=$ac_try;; | ||
21542 | esac | ||
21543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21544 | (eval "$ac_link") 2>conftest.er1 | ||
21545 | ac_status=$? | ||
21546 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21547 | rm -f conftest.er1 | ||
21548 | cat conftest.err >&5 | ||
21549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21550 | (exit $ac_status); } && { | ||
21551 | test -z "$ac_c_werror_flag" || | ||
21552 | test ! -s conftest.err | ||
21553 | } && test -s conftest$ac_exeext && | ||
21554 | $as_test_x conftest$ac_exeext; then | ||
21555 | |||
21556 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21557 | echo "${ECHO_T}yes" >&6; } | ||
21558 | |||
21559 | cat >>confdefs.h <<\_ACEOF | ||
21560 | #define OPENSSL_HAVE_EVPGCM 1 | ||
21561 | _ACEOF | ||
21562 | |||
21563 | |||
21564 | else | ||
21565 | echo "$as_me: failed program was:" >&5 | ||
21566 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21567 | |||
21568 | |||
21569 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21570 | echo "${ECHO_T}no" >&6; } | ||
21571 | unsupported_algorithms="$unsupported_cipers \ | ||
21572 | aes128-gcm@openssh.com aes256-gcm@openssh.com" | ||
21573 | |||
21574 | |||
21575 | fi | ||
21576 | |||
21577 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21578 | conftest$ac_exeext conftest.$ac_ext | ||
21579 | |||
21580 | { echo "$as_me:$LINENO: checking for library containing EVP_CIPHER_CTX_ctrl" >&5 | ||
21581 | echo $ECHO_N "checking for library containing EVP_CIPHER_CTX_ctrl... $ECHO_C" >&6; } | ||
21582 | if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then | ||
21583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21584 | else | ||
21585 | ac_func_search_save_LIBS=$LIBS | ||
21586 | cat >conftest.$ac_ext <<_ACEOF | ||
21587 | /* confdefs.h. */ | ||
21588 | _ACEOF | ||
21589 | cat confdefs.h >>conftest.$ac_ext | ||
21590 | cat >>conftest.$ac_ext <<_ACEOF | ||
21591 | /* end confdefs.h. */ | ||
21592 | |||
21593 | /* Override any GCC internal prototype to avoid an error. | ||
21594 | Use char because int might match the return type of a GCC | ||
21595 | builtin and then its argument prototype would still apply. */ | ||
21596 | #ifdef __cplusplus | ||
21597 | extern "C" | ||
21598 | #endif | ||
21599 | char EVP_CIPHER_CTX_ctrl (); | ||
21600 | int | ||
21601 | main () | ||
21602 | { | ||
21603 | return EVP_CIPHER_CTX_ctrl (); | ||
21604 | ; | ||
21605 | return 0; | ||
21606 | } | ||
21607 | _ACEOF | ||
21608 | for ac_lib in '' crypto; do | ||
21609 | if test -z "$ac_lib"; then | ||
21610 | ac_res="none required" | ||
21611 | else | ||
21612 | ac_res=-l$ac_lib | ||
21613 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
21614 | fi | ||
21615 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21616 | if { (ac_try="$ac_link" | ||
21617 | case "(($ac_try" in | ||
21618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21619 | *) ac_try_echo=$ac_try;; | ||
21620 | esac | ||
21621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21622 | (eval "$ac_link") 2>conftest.er1 | ||
21623 | ac_status=$? | ||
21624 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21625 | rm -f conftest.er1 | ||
21626 | cat conftest.err >&5 | ||
21627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21628 | (exit $ac_status); } && { | ||
21629 | test -z "$ac_c_werror_flag" || | ||
21630 | test ! -s conftest.err | ||
21631 | } && test -s conftest$ac_exeext && | ||
21632 | $as_test_x conftest$ac_exeext; then | ||
21633 | ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res | ||
21634 | else | ||
21635 | echo "$as_me: failed program was:" >&5 | ||
21636 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21637 | |||
21638 | |||
21639 | fi | ||
21640 | |||
21641 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21642 | conftest$ac_exeext | ||
21643 | if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then | ||
21644 | break | ||
21645 | fi | ||
21646 | done | ||
21647 | if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then | ||
21648 | : | ||
21649 | else | ||
21650 | ac_cv_search_EVP_CIPHER_CTX_ctrl=no | ||
21651 | fi | ||
21652 | rm conftest.$ac_ext | ||
21653 | LIBS=$ac_func_search_save_LIBS | ||
21654 | fi | ||
21655 | { echo "$as_me:$LINENO: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5 | ||
21656 | echo "${ECHO_T}$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; } | ||
21657 | ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl | ||
21658 | if test "$ac_res" != no; then | ||
21659 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
21660 | |||
21661 | cat >>confdefs.h <<\_ACEOF | ||
21662 | #define HAVE_EVP_CIPHER_CTX_CTRL 1 | ||
21663 | _ACEOF | ||
21664 | |||
21665 | fi | ||
21666 | |||
21667 | |||
21668 | { echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5 | ||
21669 | echo $ECHO_N "checking if EVP_DigestUpdate returns an int... $ECHO_C" >&6; } | ||
21670 | cat >conftest.$ac_ext <<_ACEOF | ||
21671 | /* confdefs.h. */ | ||
21672 | _ACEOF | ||
21673 | cat confdefs.h >>conftest.$ac_ext | ||
21674 | cat >>conftest.$ac_ext <<_ACEOF | ||
21675 | /* end confdefs.h. */ | ||
21676 | |||
21677 | #include <string.h> | ||
21678 | #include <openssl/evp.h> | ||
21679 | |||
21680 | int | ||
21681 | main () | ||
21682 | { | ||
21683 | |||
21684 | if(EVP_DigestUpdate(NULL, NULL,0)) | ||
21685 | exit(0); | ||
21686 | |||
21687 | ; | ||
21688 | return 0; | ||
21689 | } | ||
21690 | _ACEOF | ||
21691 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21692 | if { (ac_try="$ac_link" | ||
21693 | case "(($ac_try" in | ||
21694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21695 | *) ac_try_echo=$ac_try;; | ||
21696 | esac | ||
21697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21698 | (eval "$ac_link") 2>conftest.er1 | ||
21699 | ac_status=$? | ||
21700 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21701 | rm -f conftest.er1 | ||
21702 | cat conftest.err >&5 | ||
21703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21704 | (exit $ac_status); } && { | ||
21705 | test -z "$ac_c_werror_flag" || | ||
21706 | test ! -s conftest.err | ||
21707 | } && test -s conftest$ac_exeext && | ||
21708 | $as_test_x conftest$ac_exeext; then | ||
21709 | |||
21710 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21711 | echo "${ECHO_T}yes" >&6; } | ||
21712 | |||
21713 | else | ||
21714 | echo "$as_me: failed program was:" >&5 | ||
21715 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21716 | |||
21717 | |||
21718 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21719 | echo "${ECHO_T}no" >&6; } | ||
21720 | |||
21721 | cat >>confdefs.h <<\_ACEOF | ||
21722 | #define OPENSSL_EVP_DIGESTUPDATE_VOID 1 | ||
21723 | _ACEOF | ||
21724 | |||
21725 | |||
21726 | |||
21727 | fi | ||
21728 | |||
21729 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21730 | conftest$ac_exeext conftest.$ac_ext | ||
21731 | |||
21732 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
21733 | # because the system crypt() is more featureful. | ||
21734 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
21735 | |||
21736 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
21737 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
21738 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
21739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21740 | else | ||
21741 | ac_check_lib_save_LIBS=$LIBS | ||
21742 | LIBS="-lcrypt $LIBS" | ||
21743 | cat >conftest.$ac_ext <<_ACEOF | ||
21744 | /* confdefs.h. */ | ||
21745 | _ACEOF | ||
21746 | cat confdefs.h >>conftest.$ac_ext | ||
21747 | cat >>conftest.$ac_ext <<_ACEOF | ||
21748 | /* end confdefs.h. */ | ||
21749 | |||
21750 | /* Override any GCC internal prototype to avoid an error. | ||
21751 | Use char because int might match the return type of a GCC | ||
21752 | builtin and then its argument prototype would still apply. */ | ||
21753 | #ifdef __cplusplus | ||
21754 | extern "C" | ||
21755 | #endif | ||
21756 | char crypt (); | ||
21757 | int | ||
21758 | main () | ||
21759 | { | ||
21760 | return crypt (); | ||
21761 | ; | ||
21762 | return 0; | ||
21763 | } | ||
21764 | _ACEOF | ||
21765 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21766 | if { (ac_try="$ac_link" | ||
21767 | case "(($ac_try" in | ||
21768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21769 | *) ac_try_echo=$ac_try;; | ||
21770 | esac | ||
21771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21772 | (eval "$ac_link") 2>conftest.er1 | ||
21773 | ac_status=$? | ||
21774 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21775 | rm -f conftest.er1 | ||
21776 | cat conftest.err >&5 | ||
21777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21778 | (exit $ac_status); } && { | ||
21779 | test -z "$ac_c_werror_flag" || | ||
21780 | test ! -s conftest.err | ||
21781 | } && test -s conftest$ac_exeext && | ||
21782 | $as_test_x conftest$ac_exeext; then | ||
21783 | ac_cv_lib_crypt_crypt=yes | ||
21784 | else | ||
21785 | echo "$as_me: failed program was:" >&5 | ||
21786 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21787 | |||
21788 | ac_cv_lib_crypt_crypt=no | ||
21789 | fi | ||
21790 | |||
21791 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21792 | conftest$ac_exeext conftest.$ac_ext | ||
21793 | LIBS=$ac_check_lib_save_LIBS | ||
21794 | fi | ||
21795 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
21796 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
21797 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
21798 | cat >>confdefs.h <<_ACEOF | ||
21799 | #define HAVE_LIBCRYPT 1 | ||
21800 | _ACEOF | ||
21801 | |||
21802 | LIBS="-lcrypt $LIBS" | ||
21803 | |||
21804 | fi | ||
21805 | |||
21806 | fi | ||
21807 | |||
21808 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
21809 | # version in OpenSSL. | ||
21810 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
21811 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
21812 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
21813 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
21814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21815 | else | ||
21816 | ac_check_lib_save_LIBS=$LIBS | ||
21817 | LIBS="-lcrypt $LIBS" | ||
21818 | cat >conftest.$ac_ext <<_ACEOF | ||
21819 | /* confdefs.h. */ | ||
21820 | _ACEOF | ||
21821 | cat confdefs.h >>conftest.$ac_ext | ||
21822 | cat >>conftest.$ac_ext <<_ACEOF | ||
21823 | /* end confdefs.h. */ | ||
21824 | |||
21825 | /* Override any GCC internal prototype to avoid an error. | ||
21826 | Use char because int might match the return type of a GCC | ||
21827 | builtin and then its argument prototype would still apply. */ | ||
21828 | #ifdef __cplusplus | ||
21829 | extern "C" | ||
21830 | #endif | ||
21831 | char crypt (); | ||
21832 | int | ||
21833 | main () | ||
21834 | { | ||
21835 | return crypt (); | ||
21836 | ; | ||
21837 | return 0; | ||
21838 | } | ||
21839 | _ACEOF | ||
21840 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21841 | if { (ac_try="$ac_link" | ||
21842 | case "(($ac_try" in | ||
21843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21844 | *) ac_try_echo=$ac_try;; | ||
21845 | esac | ||
21846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21847 | (eval "$ac_link") 2>conftest.er1 | ||
21848 | ac_status=$? | ||
21849 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21850 | rm -f conftest.er1 | ||
21851 | cat conftest.err >&5 | ||
21852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21853 | (exit $ac_status); } && { | ||
21854 | test -z "$ac_c_werror_flag" || | ||
21855 | test ! -s conftest.err | ||
21856 | } && test -s conftest$ac_exeext && | ||
21857 | $as_test_x conftest$ac_exeext; then | ||
21858 | ac_cv_lib_crypt_crypt=yes | ||
21859 | else | ||
21860 | echo "$as_me: failed program was:" >&5 | ||
21861 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21862 | |||
21863 | ac_cv_lib_crypt_crypt=no | ||
21864 | fi | ||
21865 | |||
21866 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21867 | conftest$ac_exeext conftest.$ac_ext | ||
21868 | LIBS=$ac_check_lib_save_LIBS | ||
21869 | fi | ||
21870 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
21871 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
21872 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
21873 | LIBS="$LIBS -lcrypt" | ||
21874 | fi | ||
21875 | |||
21876 | fi | ||
21877 | |||
21878 | |||
21879 | for ac_func in crypt DES_crypt | ||
21880 | do | ||
21881 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
21882 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
21883 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
21884 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
21885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21886 | else | ||
21887 | cat >conftest.$ac_ext <<_ACEOF | ||
21888 | /* confdefs.h. */ | ||
21889 | _ACEOF | ||
21890 | cat confdefs.h >>conftest.$ac_ext | ||
21891 | cat >>conftest.$ac_ext <<_ACEOF | ||
21892 | /* end confdefs.h. */ | ||
21893 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
21894 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
21895 | #define $ac_func innocuous_$ac_func | ||
21896 | |||
21897 | /* System header to define __stub macros and hopefully few prototypes, | ||
21898 | which can conflict with char $ac_func (); below. | ||
21899 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
21900 | <limits.h> exists even on freestanding compilers. */ | ||
21901 | |||
21902 | #ifdef __STDC__ | ||
21903 | # include <limits.h> | ||
21904 | #else | ||
21905 | # include <assert.h> | ||
21906 | #endif | ||
21907 | |||
21908 | #undef $ac_func | ||
21909 | |||
21910 | /* Override any GCC internal prototype to avoid an error. | ||
21911 | Use char because int might match the return type of a GCC | ||
21912 | builtin and then its argument prototype would still apply. */ | ||
21913 | #ifdef __cplusplus | ||
21914 | extern "C" | ||
21915 | #endif | ||
21916 | char $ac_func (); | ||
21917 | /* The GNU C library defines this for functions which it implements | ||
21918 | to always fail with ENOSYS. Some functions are actually named | ||
21919 | something starting with __ and the normal name is an alias. */ | ||
21920 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
21921 | choke me | ||
21922 | #endif | ||
21923 | |||
21924 | int | ||
21925 | main () | ||
21926 | { | ||
21927 | return $ac_func (); | ||
21928 | ; | ||
21929 | return 0; | ||
21930 | } | ||
21931 | _ACEOF | ||
21932 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21933 | if { (ac_try="$ac_link" | ||
21934 | case "(($ac_try" in | ||
21935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21936 | *) ac_try_echo=$ac_try;; | ||
21937 | esac | ||
21938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21939 | (eval "$ac_link") 2>conftest.er1 | ||
21940 | ac_status=$? | ||
21941 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21942 | rm -f conftest.er1 | ||
21943 | cat conftest.err >&5 | ||
21944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21945 | (exit $ac_status); } && { | ||
21946 | test -z "$ac_c_werror_flag" || | ||
21947 | test ! -s conftest.err | ||
21948 | } && test -s conftest$ac_exeext && | ||
21949 | $as_test_x conftest$ac_exeext; then | ||
21950 | eval "$as_ac_var=yes" | ||
21951 | else | ||
21952 | echo "$as_me: failed program was:" >&5 | ||
21953 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21954 | |||
21955 | eval "$as_ac_var=no" | ||
21956 | fi | ||
21957 | |||
21958 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21959 | conftest$ac_exeext conftest.$ac_ext | ||
21960 | fi | ||
21961 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
21962 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
21963 | echo "${ECHO_T}$ac_res" >&6; } | ||
21964 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
21965 | cat >>confdefs.h <<_ACEOF | ||
21966 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
21967 | _ACEOF | ||
21968 | |||
21969 | fi | ||
21970 | done | ||
21971 | |||
21972 | |||
21973 | # Search for SHA256 support in libc and/or OpenSSL | ||
21974 | |||
21975 | |||
21976 | for ac_func in SHA256_Update EVP_sha256 | ||
21977 | do | ||
21978 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
21979 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
21980 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
21981 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
21982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21983 | else | ||
21984 | cat >conftest.$ac_ext <<_ACEOF | ||
21985 | /* confdefs.h. */ | ||
21986 | _ACEOF | ||
21987 | cat confdefs.h >>conftest.$ac_ext | ||
21988 | cat >>conftest.$ac_ext <<_ACEOF | ||
21989 | /* end confdefs.h. */ | ||
21990 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
21991 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
21992 | #define $ac_func innocuous_$ac_func | ||
21993 | |||
21994 | /* System header to define __stub macros and hopefully few prototypes, | ||
21995 | which can conflict with char $ac_func (); below. | ||
21996 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
21997 | <limits.h> exists even on freestanding compilers. */ | ||
21998 | |||
21999 | #ifdef __STDC__ | ||
22000 | # include <limits.h> | ||
22001 | #else | ||
22002 | # include <assert.h> | ||
22003 | #endif | ||
22004 | |||
22005 | #undef $ac_func | ||
22006 | |||
22007 | /* Override any GCC internal prototype to avoid an error. | ||
22008 | Use char because int might match the return type of a GCC | ||
22009 | builtin and then its argument prototype would still apply. */ | ||
22010 | #ifdef __cplusplus | ||
22011 | extern "C" | ||
22012 | #endif | ||
22013 | char $ac_func (); | ||
22014 | /* The GNU C library defines this for functions which it implements | ||
22015 | to always fail with ENOSYS. Some functions are actually named | ||
22016 | something starting with __ and the normal name is an alias. */ | ||
22017 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
22018 | choke me | ||
22019 | #endif | ||
22020 | |||
22021 | int | ||
22022 | main () | ||
22023 | { | ||
22024 | return $ac_func (); | ||
22025 | ; | ||
22026 | return 0; | ||
22027 | } | ||
22028 | _ACEOF | ||
22029 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22030 | if { (ac_try="$ac_link" | ||
22031 | case "(($ac_try" in | ||
22032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22033 | *) ac_try_echo=$ac_try;; | ||
22034 | esac | ||
22035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22036 | (eval "$ac_link") 2>conftest.er1 | ||
22037 | ac_status=$? | ||
22038 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22039 | rm -f conftest.er1 | ||
22040 | cat conftest.err >&5 | ||
22041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22042 | (exit $ac_status); } && { | ||
22043 | test -z "$ac_c_werror_flag" || | ||
22044 | test ! -s conftest.err | ||
22045 | } && test -s conftest$ac_exeext && | ||
22046 | $as_test_x conftest$ac_exeext; then | ||
22047 | eval "$as_ac_var=yes" | ||
22048 | else | ||
22049 | echo "$as_me: failed program was:" >&5 | ||
22050 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22051 | |||
22052 | eval "$as_ac_var=no" | ||
22053 | fi | ||
22054 | |||
22055 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22056 | conftest$ac_exeext conftest.$ac_ext | ||
22057 | fi | ||
22058 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
22059 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22060 | echo "${ECHO_T}$ac_res" >&6; } | ||
22061 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22062 | cat >>confdefs.h <<_ACEOF | ||
22063 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22064 | _ACEOF | ||
22065 | |||
22066 | else | ||
22067 | unsupported_algorithms="$unsupported_algorithms \ | ||
22068 | hmac-sha2-256 hmac-sha2-512 \ | ||
22069 | diffie-hellman-group-exchange-sha256 \ | ||
22070 | hmac-sha2-256-etm@openssh.com hmac-sha2-512-etm@openssh.com" | ||
22071 | |||
22072 | |||
22073 | fi | ||
22074 | done | ||
22075 | |||
22076 | # Search for RIPE-MD support in OpenSSL | ||
22077 | |||
22078 | for ac_func in EVP_ripemd160 | ||
22079 | do | ||
22080 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22081 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22082 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
22083 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22085 | else | ||
22086 | cat >conftest.$ac_ext <<_ACEOF | ||
22087 | /* confdefs.h. */ | ||
22088 | _ACEOF | ||
22089 | cat confdefs.h >>conftest.$ac_ext | ||
22090 | cat >>conftest.$ac_ext <<_ACEOF | ||
22091 | /* end confdefs.h. */ | ||
22092 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22093 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22094 | #define $ac_func innocuous_$ac_func | ||
22095 | |||
22096 | /* System header to define __stub macros and hopefully few prototypes, | ||
22097 | which can conflict with char $ac_func (); below. | ||
22098 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22099 | <limits.h> exists even on freestanding compilers. */ | ||
22100 | |||
22101 | #ifdef __STDC__ | ||
22102 | # include <limits.h> | ||
22103 | #else | ||
22104 | # include <assert.h> | ||
22105 | #endif | ||
22106 | |||
22107 | #undef $ac_func | ||
22108 | |||
22109 | /* Override any GCC internal prototype to avoid an error. | ||
22110 | Use char because int might match the return type of a GCC | ||
22111 | builtin and then its argument prototype would still apply. */ | ||
22112 | #ifdef __cplusplus | ||
22113 | extern "C" | ||
22114 | #endif | ||
22115 | char $ac_func (); | ||
22116 | /* The GNU C library defines this for functions which it implements | ||
22117 | to always fail with ENOSYS. Some functions are actually named | ||
22118 | something starting with __ and the normal name is an alias. */ | ||
22119 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
22120 | choke me | ||
22121 | #endif | ||
22122 | |||
22123 | int | ||
22124 | main () | ||
22125 | { | ||
22126 | return $ac_func (); | ||
22127 | ; | ||
22128 | return 0; | ||
22129 | } | ||
22130 | _ACEOF | ||
22131 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22132 | if { (ac_try="$ac_link" | ||
22133 | case "(($ac_try" in | ||
22134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22135 | *) ac_try_echo=$ac_try;; | ||
22136 | esac | ||
22137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22138 | (eval "$ac_link") 2>conftest.er1 | ||
22139 | ac_status=$? | ||
22140 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22141 | rm -f conftest.er1 | ||
22142 | cat conftest.err >&5 | ||
22143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22144 | (exit $ac_status); } && { | ||
22145 | test -z "$ac_c_werror_flag" || | ||
22146 | test ! -s conftest.err | ||
22147 | } && test -s conftest$ac_exeext && | ||
22148 | $as_test_x conftest$ac_exeext; then | ||
22149 | eval "$as_ac_var=yes" | ||
22150 | else | ||
22151 | echo "$as_me: failed program was:" >&5 | ||
22152 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22153 | |||
22154 | eval "$as_ac_var=no" | ||
22155 | fi | ||
22156 | |||
22157 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22158 | conftest$ac_exeext conftest.$ac_ext | ||
22159 | fi | ||
22160 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
22161 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22162 | echo "${ECHO_T}$ac_res" >&6; } | ||
22163 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22164 | cat >>confdefs.h <<_ACEOF | ||
22165 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22166 | _ACEOF | ||
22167 | |||
22168 | else | ||
22169 | unsupported_algorithms="$unsupported_algorithms \ | ||
22170 | hmac-ripemd160 | ||
22171 | hmac-ripemd160@openssh.com | ||
22172 | hmac-ripemd160-etm@openssh.com" | ||
22173 | |||
22174 | |||
22175 | fi | ||
22176 | done | ||
22177 | |||
22178 | |||
22179 | # Check complete ECC support in OpenSSL | ||
22180 | { echo "$as_me:$LINENO: checking whether OpenSSL has NID_X9_62_prime256v1" >&5 | ||
22181 | echo $ECHO_N "checking whether OpenSSL has NID_X9_62_prime256v1... $ECHO_C" >&6; } | ||
22182 | cat >conftest.$ac_ext <<_ACEOF | ||
22183 | /* confdefs.h. */ | ||
22184 | _ACEOF | ||
22185 | cat confdefs.h >>conftest.$ac_ext | ||
22186 | cat >>conftest.$ac_ext <<_ACEOF | ||
22187 | /* end confdefs.h. */ | ||
22188 | |||
22189 | #include <openssl/ec.h> | ||
22190 | #include <openssl/ecdh.h> | ||
22191 | #include <openssl/ecdsa.h> | ||
22192 | #include <openssl/evp.h> | ||
22193 | #include <openssl/objects.h> | ||
22194 | #include <openssl/opensslv.h> | ||
22195 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ | ||
22196 | # error "OpenSSL < 0.9.8g has unreliable ECC code" | ||
22197 | #endif | ||
22198 | |||
22199 | int | ||
22200 | main () | ||
22201 | { | ||
22202 | |||
22203 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); | ||
22204 | const EVP_MD *m = EVP_sha256(); /* We need this too */ | ||
22205 | |||
22206 | ; | ||
22207 | return 0; | ||
22208 | } | ||
22209 | _ACEOF | ||
22210 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22211 | if { (ac_try="$ac_link" | ||
22212 | case "(($ac_try" in | ||
22213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22214 | *) ac_try_echo=$ac_try;; | ||
22215 | esac | ||
22216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22217 | (eval "$ac_link") 2>conftest.er1 | ||
22218 | ac_status=$? | ||
22219 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22220 | rm -f conftest.er1 | ||
22221 | cat conftest.err >&5 | ||
22222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22223 | (exit $ac_status); } && { | ||
22224 | test -z "$ac_c_werror_flag" || | ||
22225 | test ! -s conftest.err | ||
22226 | } && test -s conftest$ac_exeext && | ||
22227 | $as_test_x conftest$ac_exeext; then | ||
22228 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22229 | echo "${ECHO_T}yes" >&6; } | ||
22230 | enable_nistp256=1 | ||
22231 | else | ||
22232 | echo "$as_me: failed program was:" >&5 | ||
22233 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22234 | |||
22235 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22236 | echo "${ECHO_T}no" >&6; } | ||
22237 | |||
22238 | fi | ||
22239 | |||
22240 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22241 | conftest$ac_exeext conftest.$ac_ext | ||
22242 | |||
22243 | { echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp384r1" >&5 | ||
22244 | echo $ECHO_N "checking whether OpenSSL has NID_secp384r1... $ECHO_C" >&6; } | ||
22245 | cat >conftest.$ac_ext <<_ACEOF | ||
22246 | /* confdefs.h. */ | ||
22247 | _ACEOF | ||
22248 | cat confdefs.h >>conftest.$ac_ext | ||
22249 | cat >>conftest.$ac_ext <<_ACEOF | ||
22250 | /* end confdefs.h. */ | ||
22251 | |||
22252 | #include <openssl/ec.h> | ||
22253 | #include <openssl/ecdh.h> | ||
22254 | #include <openssl/ecdsa.h> | ||
22255 | #include <openssl/evp.h> | ||
22256 | #include <openssl/objects.h> | ||
22257 | #include <openssl/opensslv.h> | ||
22258 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ | ||
22259 | # error "OpenSSL < 0.9.8g has unreliable ECC code" | ||
22260 | #endif | ||
22261 | |||
22262 | int | ||
22263 | main () | ||
22264 | { | ||
22265 | |||
22266 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1); | ||
22267 | const EVP_MD *m = EVP_sha384(); /* We need this too */ | ||
22268 | |||
22269 | ; | ||
22270 | return 0; | ||
22271 | } | ||
22272 | _ACEOF | ||
22273 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22274 | if { (ac_try="$ac_link" | ||
22275 | case "(($ac_try" in | ||
22276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22277 | *) ac_try_echo=$ac_try;; | ||
22278 | esac | ||
22279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22280 | (eval "$ac_link") 2>conftest.er1 | ||
22281 | ac_status=$? | ||
22282 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22283 | rm -f conftest.er1 | ||
22284 | cat conftest.err >&5 | ||
22285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22286 | (exit $ac_status); } && { | ||
22287 | test -z "$ac_c_werror_flag" || | ||
22288 | test ! -s conftest.err | ||
22289 | } && test -s conftest$ac_exeext && | ||
22290 | $as_test_x conftest$ac_exeext; then | ||
22291 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22292 | echo "${ECHO_T}yes" >&6; } | ||
22293 | enable_nistp384=1 | ||
22294 | else | ||
22295 | echo "$as_me: failed program was:" >&5 | ||
22296 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22297 | |||
22298 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22299 | echo "${ECHO_T}no" >&6; } | ||
22300 | |||
22301 | fi | ||
22302 | |||
22303 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22304 | conftest$ac_exeext conftest.$ac_ext | ||
22305 | |||
22306 | { echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp521r1" >&5 | ||
22307 | echo $ECHO_N "checking whether OpenSSL has NID_secp521r1... $ECHO_C" >&6; } | ||
22308 | cat >conftest.$ac_ext <<_ACEOF | ||
22309 | /* confdefs.h. */ | ||
22310 | _ACEOF | ||
22311 | cat confdefs.h >>conftest.$ac_ext | ||
22312 | cat >>conftest.$ac_ext <<_ACEOF | ||
22313 | /* end confdefs.h. */ | ||
22314 | |||
22315 | #include <openssl/ec.h> | ||
22316 | #include <openssl/ecdh.h> | ||
22317 | #include <openssl/ecdsa.h> | ||
22318 | #include <openssl/evp.h> | ||
22319 | #include <openssl/objects.h> | ||
22320 | #include <openssl/opensslv.h> | ||
22321 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ | ||
22322 | # error "OpenSSL < 0.9.8g has unreliable ECC code" | ||
22323 | #endif | ||
22324 | |||
22325 | int | ||
22326 | main () | ||
22327 | { | ||
22328 | |||
22329 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); | ||
22330 | const EVP_MD *m = EVP_sha512(); /* We need this too */ | ||
22331 | |||
22332 | ; | ||
22333 | return 0; | ||
22334 | } | ||
22335 | _ACEOF | ||
22336 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22337 | if { (ac_try="$ac_link" | ||
22338 | case "(($ac_try" in | ||
22339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22340 | *) ac_try_echo=$ac_try;; | ||
22341 | esac | ||
22342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22343 | (eval "$ac_link") 2>conftest.er1 | ||
22344 | ac_status=$? | ||
22345 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22346 | rm -f conftest.er1 | ||
22347 | cat conftest.err >&5 | ||
22348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22349 | (exit $ac_status); } && { | ||
22350 | test -z "$ac_c_werror_flag" || | ||
22351 | test ! -s conftest.err | ||
22352 | } && test -s conftest$ac_exeext && | ||
22353 | $as_test_x conftest$ac_exeext; then | ||
22354 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22355 | echo "${ECHO_T}yes" >&6; } | ||
22356 | { echo "$as_me:$LINENO: checking if OpenSSL's NID_secp521r1 is functional" >&5 | ||
22357 | echo $ECHO_N "checking if OpenSSL's NID_secp521r1 is functional... $ECHO_C" >&6; } | ||
22358 | if test "$cross_compiling" = yes; then | ||
22359 | { echo "$as_me:$LINENO: WARNING: cross-compiling: assuming yes" >&5 | ||
22360 | echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;} | ||
22361 | enable_nistp521=1 | ||
22362 | |||
22363 | else | ||
22364 | cat >conftest.$ac_ext <<_ACEOF | ||
22365 | /* confdefs.h. */ | ||
22366 | _ACEOF | ||
22367 | cat confdefs.h >>conftest.$ac_ext | ||
22368 | cat >>conftest.$ac_ext <<_ACEOF | ||
22369 | /* end confdefs.h. */ | ||
22370 | |||
22371 | #include <openssl/ec.h> | ||
22372 | #include <openssl/ecdh.h> | ||
22373 | #include <openssl/ecdsa.h> | ||
22374 | #include <openssl/evp.h> | ||
22375 | #include <openssl/objects.h> | ||
22376 | #include <openssl/opensslv.h> | ||
22377 | |||
22378 | int | ||
22379 | main () | ||
22380 | { | ||
22381 | |||
22382 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); | ||
22383 | const EVP_MD *m = EVP_sha512(); /* We need this too */ | ||
22384 | exit(e == NULL || m == NULL); | ||
22385 | |||
22386 | ; | ||
22387 | return 0; | ||
22388 | } | ||
22389 | _ACEOF | ||
22390 | rm -f conftest$ac_exeext | ||
22391 | if { (ac_try="$ac_link" | ||
22392 | case "(($ac_try" in | ||
22393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22394 | *) ac_try_echo=$ac_try;; | ||
22395 | esac | ||
22396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22397 | (eval "$ac_link") 2>&5 | ||
22398 | ac_status=$? | ||
22399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22400 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
22401 | { (case "(($ac_try" in | ||
22402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22403 | *) ac_try_echo=$ac_try;; | ||
22404 | esac | ||
22405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22406 | (eval "$ac_try") 2>&5 | ||
22407 | ac_status=$? | ||
22408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22409 | (exit $ac_status); }; }; then | ||
22410 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22411 | echo "${ECHO_T}yes" >&6; } | ||
22412 | enable_nistp521=1 | ||
22413 | else | ||
22414 | echo "$as_me: program exited with status $ac_status" >&5 | ||
22415 | echo "$as_me: failed program was:" >&5 | ||
22416 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22417 | |||
22418 | ( exit $ac_status ) | ||
22419 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22420 | echo "${ECHO_T}no" >&6; } | ||
22421 | fi | ||
22422 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
22423 | fi | ||
22424 | |||
22425 | |||
22426 | else | ||
22427 | echo "$as_me: failed program was:" >&5 | ||
22428 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22429 | |||
22430 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22431 | echo "${ECHO_T}no" >&6; } | ||
22432 | |||
22433 | fi | ||
22434 | |||
22435 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22436 | conftest$ac_exeext conftest.$ac_ext | ||
22437 | |||
22438 | COMMENT_OUT_ECC="#no ecc#" | ||
22439 | TEST_SSH_ECC=no | ||
22440 | |||
22441 | if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \ | ||
22442 | test x$enable_nistp521 = x1; then | ||
22443 | |||
22444 | cat >>confdefs.h <<\_ACEOF | ||
22445 | #define OPENSSL_HAS_ECC 1 | ||
22446 | _ACEOF | ||
22447 | |||
22448 | fi | ||
22449 | if test x$enable_nistp256 = x1; then | ||
22450 | |||
22451 | cat >>confdefs.h <<\_ACEOF | ||
22452 | #define OPENSSL_HAS_NISTP256 1 | ||
22453 | _ACEOF | ||
22454 | |||
22455 | TEST_SSH_ECC=yes | ||
22456 | COMMENT_OUT_ECC="" | ||
22457 | else | ||
22458 | unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp256 \ | ||
22459 | ecdh-sha2-nistp256 ecdsa-sha2-nistp256-cert-v01@openssh.com" | ||
22460 | fi | ||
22461 | if test x$enable_nistp384 = x1; then | ||
22462 | |||
22463 | cat >>confdefs.h <<\_ACEOF | ||
22464 | #define OPENSSL_HAS_NISTP384 1 | ||
22465 | _ACEOF | ||
22466 | |||
22467 | TEST_SSH_ECC=yes | ||
22468 | COMMENT_OUT_ECC="" | ||
22469 | else | ||
22470 | unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp384 \ | ||
22471 | ecdh-sha2-nistp384 ecdsa-sha2-nistp384-cert-v01@openssh.com" | ||
22472 | fi | ||
22473 | if test x$enable_nistp521 = x1; then | ||
22474 | |||
22475 | cat >>confdefs.h <<\_ACEOF | ||
22476 | #define OPENSSL_HAS_NISTP521 1 | ||
22477 | _ACEOF | ||
22478 | |||
22479 | TEST_SSH_ECC=yes | ||
22480 | COMMENT_OUT_ECC="" | ||
22481 | else | ||
22482 | unsupported_algorithms="$unsupported_algorithms ecdh-sha2-nistp521 \ | ||
22483 | ecdsa-sha2-nistp521 ecdsa-sha2-nistp521-cert-v01@openssh.com" | ||
22484 | fi | ||
22485 | |||
22486 | |||
22487 | |||
22488 | else | ||
22489 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
22490 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
22491 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
22492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22493 | else | ||
22494 | ac_check_lib_save_LIBS=$LIBS | ||
22495 | LIBS="-lcrypt $LIBS" | ||
22496 | cat >conftest.$ac_ext <<_ACEOF | ||
22497 | /* confdefs.h. */ | ||
22498 | _ACEOF | ||
22499 | cat confdefs.h >>conftest.$ac_ext | ||
22500 | cat >>conftest.$ac_ext <<_ACEOF | ||
22501 | /* end confdefs.h. */ | ||
22502 | |||
22503 | /* Override any GCC internal prototype to avoid an error. | ||
22504 | Use char because int might match the return type of a GCC | ||
22505 | builtin and then its argument prototype would still apply. */ | ||
22506 | #ifdef __cplusplus | ||
22507 | extern "C" | ||
22508 | #endif | ||
22509 | char crypt (); | ||
22510 | int | ||
22511 | main () | ||
22512 | { | ||
22513 | return crypt (); | ||
22514 | ; | ||
22515 | return 0; | ||
22516 | } | ||
22517 | _ACEOF | ||
22518 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22519 | if { (ac_try="$ac_link" | ||
22520 | case "(($ac_try" in | ||
22521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22522 | *) ac_try_echo=$ac_try;; | ||
22523 | esac | ||
22524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22525 | (eval "$ac_link") 2>conftest.er1 | ||
22526 | ac_status=$? | ||
22527 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22528 | rm -f conftest.er1 | ||
22529 | cat conftest.err >&5 | ||
22530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22531 | (exit $ac_status); } && { | ||
22532 | test -z "$ac_c_werror_flag" || | ||
22533 | test ! -s conftest.err | ||
22534 | } && test -s conftest$ac_exeext && | ||
22535 | $as_test_x conftest$ac_exeext; then | ||
22536 | ac_cv_lib_crypt_crypt=yes | ||
22537 | else | ||
22538 | echo "$as_me: failed program was:" >&5 | ||
22539 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22540 | |||
22541 | ac_cv_lib_crypt_crypt=no | ||
22542 | fi | ||
22543 | |||
22544 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22545 | conftest$ac_exeext conftest.$ac_ext | ||
22546 | LIBS=$ac_check_lib_save_LIBS | ||
22547 | fi | ||
22548 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
22549 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
22550 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
22551 | LIBS="$LIBS -lcrypt" | ||
22552 | fi | ||
22553 | |||
22554 | |||
22555 | for ac_func in crypt | ||
22556 | do | ||
22557 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22558 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22559 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
22560 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22562 | else | ||
22563 | cat >conftest.$ac_ext <<_ACEOF | ||
22564 | /* confdefs.h. */ | ||
22565 | _ACEOF | ||
22566 | cat confdefs.h >>conftest.$ac_ext | ||
22567 | cat >>conftest.$ac_ext <<_ACEOF | ||
22568 | /* end confdefs.h. */ | ||
22569 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22570 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22571 | #define $ac_func innocuous_$ac_func | ||
22572 | |||
22573 | /* System header to define __stub macros and hopefully few prototypes, | ||
22574 | which can conflict with char $ac_func (); below. | ||
22575 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22576 | <limits.h> exists even on freestanding compilers. */ | ||
22577 | |||
22578 | #ifdef __STDC__ | ||
22579 | # include <limits.h> | ||
22580 | #else | ||
22581 | # include <assert.h> | ||
22582 | #endif | ||
22583 | |||
22584 | #undef $ac_func | ||
22585 | |||
22586 | /* Override any GCC internal prototype to avoid an error. | ||
22587 | Use char because int might match the return type of a GCC | ||
22588 | builtin and then its argument prototype would still apply. */ | ||
22589 | #ifdef __cplusplus | ||
22590 | extern "C" | ||
22591 | #endif | ||
22592 | char $ac_func (); | ||
22593 | /* The GNU C library defines this for functions which it implements | ||
22594 | to always fail with ENOSYS. Some functions are actually named | ||
22595 | something starting with __ and the normal name is an alias. */ | ||
22596 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
22597 | choke me | ||
22598 | #endif | ||
22599 | |||
22600 | int | ||
22601 | main () | ||
22602 | { | ||
22603 | return $ac_func (); | ||
22604 | ; | ||
22605 | return 0; | ||
22606 | } | ||
22607 | _ACEOF | ||
22608 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22609 | if { (ac_try="$ac_link" | ||
22610 | case "(($ac_try" in | ||
22611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22612 | *) ac_try_echo=$ac_try;; | ||
22613 | esac | ||
22614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22615 | (eval "$ac_link") 2>conftest.er1 | ||
22616 | ac_status=$? | ||
22617 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22618 | rm -f conftest.er1 | ||
22619 | cat conftest.err >&5 | ||
22620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22621 | (exit $ac_status); } && { | ||
22622 | test -z "$ac_c_werror_flag" || | ||
22623 | test ! -s conftest.err | ||
22624 | } && test -s conftest$ac_exeext && | ||
22625 | $as_test_x conftest$ac_exeext; then | ||
22626 | eval "$as_ac_var=yes" | ||
22627 | else | ||
22628 | echo "$as_me: failed program was:" >&5 | ||
22629 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22630 | |||
22631 | eval "$as_ac_var=no" | ||
22632 | fi | ||
22633 | |||
22634 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22635 | conftest$ac_exeext conftest.$ac_ext | ||
22636 | fi | ||
22637 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
22638 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22639 | echo "${ECHO_T}$ac_res" >&6; } | ||
22640 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22641 | cat >>confdefs.h <<_ACEOF | ||
22642 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22643 | _ACEOF | ||
22644 | |||
22645 | fi | ||
22646 | done | ||
22647 | |||
22648 | fi | ||
22649 | |||
22650 | |||
22651 | |||
22652 | |||
22653 | |||
22654 | for ac_func in \ | ||
22655 | arc4random \ | ||
22656 | arc4random_buf \ | ||
22657 | arc4random_stir \ | ||
22658 | arc4random_uniform \ | ||
22659 | |||
22660 | do | ||
22661 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22662 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22663 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
22664 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22666 | else | ||
22667 | cat >conftest.$ac_ext <<_ACEOF | ||
22668 | /* confdefs.h. */ | ||
22669 | _ACEOF | ||
22670 | cat confdefs.h >>conftest.$ac_ext | ||
22671 | cat >>conftest.$ac_ext <<_ACEOF | ||
22672 | /* end confdefs.h. */ | ||
22673 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22674 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22675 | #define $ac_func innocuous_$ac_func | ||
22676 | |||
22677 | /* System header to define __stub macros and hopefully few prototypes, | ||
22678 | which can conflict with char $ac_func (); below. | ||
22679 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22680 | <limits.h> exists even on freestanding compilers. */ | ||
22681 | |||
22682 | #ifdef __STDC__ | ||
22683 | # include <limits.h> | ||
22684 | #else | ||
22685 | # include <assert.h> | ||
22686 | #endif | ||
22687 | |||
22688 | #undef $ac_func | ||
22689 | |||
22690 | /* Override any GCC internal prototype to avoid an error. | ||
22691 | Use char because int might match the return type of a GCC | ||
22692 | builtin and then its argument prototype would still apply. */ | ||
22693 | #ifdef __cplusplus | ||
22694 | extern "C" | ||
22695 | #endif | ||
22696 | char $ac_func (); | ||
22697 | /* The GNU C library defines this for functions which it implements | ||
22698 | to always fail with ENOSYS. Some functions are actually named | ||
22699 | something starting with __ and the normal name is an alias. */ | ||
22700 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
22701 | choke me | ||
22702 | #endif | ||
22703 | |||
22704 | int | ||
22705 | main () | ||
22706 | { | ||
22707 | return $ac_func (); | ||
22708 | ; | ||
22709 | return 0; | ||
22710 | } | ||
22711 | _ACEOF | ||
22712 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22713 | if { (ac_try="$ac_link" | ||
22714 | case "(($ac_try" in | ||
22715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22716 | *) ac_try_echo=$ac_try;; | ||
22717 | esac | ||
22718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22719 | (eval "$ac_link") 2>conftest.er1 | ||
22720 | ac_status=$? | ||
22721 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22722 | rm -f conftest.er1 | ||
22723 | cat conftest.err >&5 | ||
22724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22725 | (exit $ac_status); } && { | ||
22726 | test -z "$ac_c_werror_flag" || | ||
22727 | test ! -s conftest.err | ||
22728 | } && test -s conftest$ac_exeext && | ||
22729 | $as_test_x conftest$ac_exeext; then | ||
22730 | eval "$as_ac_var=yes" | ||
22731 | else | ||
22732 | echo "$as_me: failed program was:" >&5 | ||
22733 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22734 | |||
22735 | eval "$as_ac_var=no" | ||
22736 | fi | ||
22737 | |||
22738 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22739 | conftest$ac_exeext conftest.$ac_ext | ||
22740 | fi | ||
22741 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
22742 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22743 | echo "${ECHO_T}$ac_res" >&6; } | ||
22744 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22745 | cat >>confdefs.h <<_ACEOF | ||
22746 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22747 | _ACEOF | ||
22748 | |||
22749 | fi | ||
22750 | done | ||
22751 | |||
22752 | |||
22753 | saved_LIBS="$LIBS" | ||
22754 | { echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5 | ||
22755 | echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; } | ||
22756 | if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then | ||
22757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22758 | else | ||
22759 | ac_check_lib_save_LIBS=$LIBS | ||
22760 | LIBS="-liaf $LIBS" | ||
22761 | cat >conftest.$ac_ext <<_ACEOF | ||
22762 | /* confdefs.h. */ | ||
22763 | _ACEOF | ||
22764 | cat confdefs.h >>conftest.$ac_ext | ||
22765 | cat >>conftest.$ac_ext <<_ACEOF | ||
22766 | /* end confdefs.h. */ | ||
22767 | |||
22768 | /* Override any GCC internal prototype to avoid an error. | ||
22769 | Use char because int might match the return type of a GCC | ||
22770 | builtin and then its argument prototype would still apply. */ | ||
22771 | #ifdef __cplusplus | ||
22772 | extern "C" | ||
22773 | #endif | ||
22774 | char ia_openinfo (); | ||
22775 | int | ||
22776 | main () | ||
22777 | { | ||
22778 | return ia_openinfo (); | ||
22779 | ; | ||
22780 | return 0; | ||
22781 | } | ||
22782 | _ACEOF | ||
22783 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22784 | if { (ac_try="$ac_link" | ||
22785 | case "(($ac_try" in | ||
22786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22787 | *) ac_try_echo=$ac_try;; | ||
22788 | esac | ||
22789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22790 | (eval "$ac_link") 2>conftest.er1 | ||
22791 | ac_status=$? | ||
22792 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22793 | rm -f conftest.er1 | ||
22794 | cat conftest.err >&5 | ||
22795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22796 | (exit $ac_status); } && { | ||
22797 | test -z "$ac_c_werror_flag" || | ||
22798 | test ! -s conftest.err | ||
22799 | } && test -s conftest$ac_exeext && | ||
22800 | $as_test_x conftest$ac_exeext; then | ||
22801 | ac_cv_lib_iaf_ia_openinfo=yes | ||
22802 | else | ||
22803 | echo "$as_me: failed program was:" >&5 | ||
22804 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22805 | |||
22806 | ac_cv_lib_iaf_ia_openinfo=no | ||
22807 | fi | ||
22808 | |||
22809 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22810 | conftest$ac_exeext conftest.$ac_ext | ||
22811 | LIBS=$ac_check_lib_save_LIBS | ||
22812 | fi | ||
22813 | { echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5 | ||
22814 | echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; } | ||
22815 | if test $ac_cv_lib_iaf_ia_openinfo = yes; then | ||
22816 | |||
22817 | LIBS="$LIBS -liaf" | ||
22818 | |||
22819 | for ac_func in set_id | ||
22820 | do | ||
22821 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22822 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22823 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
22824 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22826 | else | ||
22827 | cat >conftest.$ac_ext <<_ACEOF | ||
22828 | /* confdefs.h. */ | ||
22829 | _ACEOF | ||
22830 | cat confdefs.h >>conftest.$ac_ext | ||
22831 | cat >>conftest.$ac_ext <<_ACEOF | ||
22832 | /* end confdefs.h. */ | ||
22833 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22834 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22835 | #define $ac_func innocuous_$ac_func | ||
22836 | |||
22837 | /* System header to define __stub macros and hopefully few prototypes, | ||
22838 | which can conflict with char $ac_func (); below. | ||
22839 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22840 | <limits.h> exists even on freestanding compilers. */ | ||
22841 | |||
22842 | #ifdef __STDC__ | ||
22843 | # include <limits.h> | ||
22844 | #else | ||
22845 | # include <assert.h> | ||
22846 | #endif | ||
22847 | |||
22848 | #undef $ac_func | ||
22849 | |||
22850 | /* Override any GCC internal prototype to avoid an error. | ||
22851 | Use char because int might match the return type of a GCC | ||
22852 | builtin and then its argument prototype would still apply. */ | ||
22853 | #ifdef __cplusplus | ||
22854 | extern "C" | ||
22855 | #endif | ||
22856 | char $ac_func (); | ||
22857 | /* The GNU C library defines this for functions which it implements | ||
22858 | to always fail with ENOSYS. Some functions are actually named | ||
22859 | something starting with __ and the normal name is an alias. */ | ||
22860 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
22861 | choke me | ||
22862 | #endif | ||
22863 | |||
22864 | int | ||
22865 | main () | ||
22866 | { | ||
22867 | return $ac_func (); | ||
22868 | ; | ||
22869 | return 0; | ||
22870 | } | ||
22871 | _ACEOF | ||
22872 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22873 | if { (ac_try="$ac_link" | ||
22874 | case "(($ac_try" in | ||
22875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22876 | *) ac_try_echo=$ac_try;; | ||
22877 | esac | ||
22878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22879 | (eval "$ac_link") 2>conftest.er1 | ||
22880 | ac_status=$? | ||
22881 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22882 | rm -f conftest.er1 | ||
22883 | cat conftest.err >&5 | ||
22884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22885 | (exit $ac_status); } && { | ||
22886 | test -z "$ac_c_werror_flag" || | ||
22887 | test ! -s conftest.err | ||
22888 | } && test -s conftest$ac_exeext && | ||
22889 | $as_test_x conftest$ac_exeext; then | ||
22890 | eval "$as_ac_var=yes" | ||
22891 | else | ||
22892 | echo "$as_me: failed program was:" >&5 | ||
22893 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22894 | |||
22895 | eval "$as_ac_var=no" | ||
22896 | fi | ||
22897 | |||
22898 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22899 | conftest$ac_exeext conftest.$ac_ext | ||
22900 | fi | ||
22901 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
22902 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
22903 | echo "${ECHO_T}$ac_res" >&6; } | ||
22904 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22905 | cat >>confdefs.h <<_ACEOF | ||
22906 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22907 | _ACEOF | ||
22908 | SSHDLIBS="$SSHDLIBS -liaf" | ||
22909 | |||
22910 | cat >>confdefs.h <<\_ACEOF | ||
22911 | #define HAVE_LIBIAF 1 | ||
22912 | _ACEOF | ||
22913 | |||
22914 | |||
22915 | fi | ||
22916 | done | ||
22917 | |||
22918 | |||
22919 | fi | ||
22920 | |||
22921 | LIBS="$saved_LIBS" | ||
22922 | |||
22923 | ### Configure cryptographic random number support | ||
22924 | |||
22925 | # Check wheter OpenSSL seeds itself | ||
22926 | if test "x$openssl" = "xyes" ; then | ||
22927 | { echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
22928 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; } | ||
22929 | if test "$cross_compiling" = yes; then | ||
22930 | |||
22931 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
22932 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
22933 | # This is safe, since we will fatal() at runtime if | ||
22934 | # OpenSSL is not seeded correctly. | ||
22935 | OPENSSL_SEEDS_ITSELF=yes | ||
22936 | |||
22937 | |||
22938 | else | ||
22939 | cat >conftest.$ac_ext <<_ACEOF | ||
22940 | /* confdefs.h. */ | ||
22941 | _ACEOF | ||
22942 | cat confdefs.h >>conftest.$ac_ext | ||
22943 | cat >>conftest.$ac_ext <<_ACEOF | ||
22944 | /* end confdefs.h. */ | ||
22945 | |||
22946 | #include <string.h> | ||
22947 | #include <openssl/rand.h> | ||
22948 | |||
22949 | int | ||
22950 | main () | ||
22951 | { | ||
22952 | |||
22953 | exit(RAND_status() == 1 ? 0 : 1); | ||
22954 | |||
22955 | ; | ||
22956 | return 0; | ||
22957 | } | ||
22958 | _ACEOF | ||
22959 | rm -f conftest$ac_exeext | ||
22960 | if { (ac_try="$ac_link" | ||
22961 | case "(($ac_try" in | ||
22962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22963 | *) ac_try_echo=$ac_try;; | ||
22964 | esac | ||
22965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22966 | (eval "$ac_link") 2>&5 | ||
22967 | ac_status=$? | ||
22968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22969 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
22970 | { (case "(($ac_try" in | ||
22971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22972 | *) ac_try_echo=$ac_try;; | ||
22973 | esac | ||
22974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22975 | (eval "$ac_try") 2>&5 | ||
22976 | ac_status=$? | ||
22977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22978 | (exit $ac_status); }; }; then | ||
22979 | |||
22980 | OPENSSL_SEEDS_ITSELF=yes | ||
22981 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22982 | echo "${ECHO_T}yes" >&6; } | ||
22983 | |||
22984 | else | ||
22985 | echo "$as_me: program exited with status $ac_status" >&5 | ||
22986 | echo "$as_me: failed program was:" >&5 | ||
22987 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22988 | |||
22989 | ( exit $ac_status ) | ||
22990 | |||
22991 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22992 | echo "${ECHO_T}no" >&6; } | ||
22993 | |||
22994 | fi | ||
22995 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
22996 | fi | ||
22997 | |||
22998 | |||
22999 | fi | ||
23000 | |||
23001 | # PRNGD TCP socket | ||
23002 | |||
23003 | # Check whether --with-prngd-port was given. | ||
23004 | if test "${with_prngd_port+set}" = set; then | ||
23005 | withval=$with_prngd_port; | ||
23006 | case "$withval" in | ||
23007 | no) | ||
23008 | withval="" | ||
23009 | ;; | ||
23010 | [0-9]*) | ||
23011 | ;; | ||
23012 | *) | ||
23013 | { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
23014 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
23015 | { (exit 1); exit 1; }; } | ||
23016 | ;; | ||
23017 | esac | ||
23018 | if test ! -z "$withval" ; then | ||
23019 | PRNGD_PORT="$withval" | ||
23020 | |||
23021 | cat >>confdefs.h <<_ACEOF | ||
23022 | #define PRNGD_PORT $PRNGD_PORT | ||
23023 | _ACEOF | ||
23024 | |||
23025 | fi | ||
23026 | |||
23027 | |||
23028 | fi | ||
23029 | |||
23030 | |||
23031 | # PRNGD Unix domain socket | ||
23032 | |||
23033 | # Check whether --with-prngd-socket was given. | ||
23034 | if test "${with_prngd_socket+set}" = set; then | ||
23035 | withval=$with_prngd_socket; | ||
23036 | case "$withval" in | ||
23037 | yes) | ||
23038 | withval="/var/run/egd-pool" | ||
23039 | ;; | ||
23040 | no) | ||
23041 | withval="" | ||
23042 | ;; | ||
23043 | /*) | ||
23044 | ;; | ||
23045 | *) | ||
23046 | { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | ||
23047 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
23048 | { (exit 1); exit 1; }; } | ||
23049 | ;; | ||
23050 | esac | ||
23051 | |||
23052 | if test ! -z "$withval" ; then | ||
23053 | if test ! -z "$PRNGD_PORT" ; then | ||
23054 | { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
23055 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
23056 | { (exit 1); exit 1; }; } | ||
23057 | fi | ||
23058 | if test ! -r "$withval" ; then | ||
23059 | { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | ||
23060 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
23061 | fi | ||
23062 | PRNGD_SOCKET="$withval" | ||
23063 | |||
23064 | cat >>confdefs.h <<_ACEOF | ||
23065 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
23066 | _ACEOF | ||
23067 | |||
23068 | fi | ||
23069 | |||
23070 | else | ||
23071 | |||
23072 | # Check for existing socket only if we don't have a random device already | ||
23073 | if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then | ||
23074 | { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | ||
23075 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; } | ||
23076 | # Insert other locations here | ||
23077 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
23078 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
23079 | PRNGD_SOCKET="$sock" | ||
23080 | cat >>confdefs.h <<_ACEOF | ||
23081 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
23082 | _ACEOF | ||
23083 | |||
23084 | break; | ||
23085 | fi | ||
23086 | done | ||
23087 | if test ! -z "$PRNGD_SOCKET" ; then | ||
23088 | { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | ||
23089 | echo "${ECHO_T}$PRNGD_SOCKET" >&6; } | ||
23090 | else | ||
23091 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
23092 | echo "${ECHO_T}not found" >&6; } | ||
23093 | fi | ||
23094 | fi | ||
23095 | |||
23096 | |||
23097 | fi | ||
23098 | |||
23099 | |||
23100 | # Which randomness source do we use? | ||
23101 | if test ! -z "$PRNGD_PORT" ; then | ||
23102 | RAND_MSG="PRNGd port $PRNGD_PORT" | ||
23103 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
23104 | RAND_MSG="PRNGd socket $PRNGD_SOCKET" | ||
23105 | elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
23106 | |||
23107 | cat >>confdefs.h <<\_ACEOF | ||
23108 | #define OPENSSL_PRNG_ONLY 1 | ||
23109 | _ACEOF | ||
23110 | |||
23111 | RAND_MSG="OpenSSL internal ONLY" | ||
23112 | elif test "x$openssl" = "xno" ; then | ||
23113 | { 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 | ||
23114 | 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;} | ||
23115 | else | ||
23116 | { { 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 | ||
23117 | 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;} | ||
23118 | { (exit 1); exit 1; }; } | ||
23119 | fi | ||
23120 | |||
23121 | # Check for PAM libs | ||
23122 | PAM_MSG="no" | ||
23123 | |||
23124 | # Check whether --with-pam was given. | ||
23125 | if test "${with_pam+set}" = set; then | ||
23126 | withval=$with_pam; | ||
23127 | if test "x$withval" != "xno" ; then | ||
23128 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
23129 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
23130 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
23131 | echo "$as_me: error: PAM headers not found" >&2;} | ||
23132 | { (exit 1); exit 1; }; } | ||
23133 | fi | ||
23134 | |||
23135 | saved_LIBS="$LIBS" | ||
23136 | |||
23137 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
23138 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
23139 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
23140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23141 | else | ||
23142 | ac_check_lib_save_LIBS=$LIBS | ||
23143 | LIBS="-ldl $LIBS" | ||
23144 | cat >conftest.$ac_ext <<_ACEOF | ||
23145 | /* confdefs.h. */ | ||
23146 | _ACEOF | ||
23147 | cat confdefs.h >>conftest.$ac_ext | ||
23148 | cat >>conftest.$ac_ext <<_ACEOF | ||
23149 | /* end confdefs.h. */ | ||
23150 | |||
23151 | /* Override any GCC internal prototype to avoid an error. | ||
23152 | Use char because int might match the return type of a GCC | ||
23153 | builtin and then its argument prototype would still apply. */ | ||
23154 | #ifdef __cplusplus | ||
23155 | extern "C" | ||
23156 | #endif | ||
23157 | char dlopen (); | ||
23158 | int | ||
23159 | main () | ||
23160 | { | ||
23161 | return dlopen (); | ||
23162 | ; | ||
23163 | return 0; | ||
23164 | } | ||
23165 | _ACEOF | ||
23166 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23167 | if { (ac_try="$ac_link" | ||
23168 | case "(($ac_try" in | ||
23169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23170 | *) ac_try_echo=$ac_try;; | ||
23171 | esac | ||
23172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23173 | (eval "$ac_link") 2>conftest.er1 | ||
23174 | ac_status=$? | ||
23175 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23176 | rm -f conftest.er1 | ||
23177 | cat conftest.err >&5 | ||
23178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23179 | (exit $ac_status); } && { | ||
23180 | test -z "$ac_c_werror_flag" || | ||
23181 | test ! -s conftest.err | ||
23182 | } && test -s conftest$ac_exeext && | ||
23183 | $as_test_x conftest$ac_exeext; then | ||
23184 | ac_cv_lib_dl_dlopen=yes | ||
23185 | else | ||
23186 | echo "$as_me: failed program was:" >&5 | ||
23187 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23188 | |||
23189 | ac_cv_lib_dl_dlopen=no | ||
23190 | fi | ||
23191 | |||
23192 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23193 | conftest$ac_exeext conftest.$ac_ext | ||
23194 | LIBS=$ac_check_lib_save_LIBS | ||
23195 | fi | ||
23196 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
23197 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
23198 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
23199 | cat >>confdefs.h <<_ACEOF | ||
23200 | #define HAVE_LIBDL 1 | ||
23201 | _ACEOF | ||
23202 | |||
23203 | LIBS="-ldl $LIBS" | ||
23204 | |||
23205 | fi | ||
23206 | |||
23207 | |||
23208 | { echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
23209 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; } | ||
23210 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
23211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23212 | else | ||
23213 | ac_check_lib_save_LIBS=$LIBS | ||
23214 | LIBS="-lpam $LIBS" | ||
23215 | cat >conftest.$ac_ext <<_ACEOF | ||
23216 | /* confdefs.h. */ | ||
23217 | _ACEOF | ||
23218 | cat confdefs.h >>conftest.$ac_ext | ||
23219 | cat >>conftest.$ac_ext <<_ACEOF | ||
23220 | /* end confdefs.h. */ | ||
23221 | |||
23222 | /* Override any GCC internal prototype to avoid an error. | ||
23223 | Use char because int might match the return type of a GCC | ||
23224 | builtin and then its argument prototype would still apply. */ | ||
23225 | #ifdef __cplusplus | ||
23226 | extern "C" | ||
23227 | #endif | ||
23228 | char pam_set_item (); | ||
23229 | int | ||
23230 | main () | ||
23231 | { | ||
23232 | return pam_set_item (); | ||
23233 | ; | ||
23234 | return 0; | ||
23235 | } | ||
23236 | _ACEOF | ||
23237 | rm -f conftest.$ac_objext 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>conftest.er1 | ||
23245 | ac_status=$? | ||
23246 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23247 | rm -f conftest.er1 | ||
23248 | cat conftest.err >&5 | ||
23249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23250 | (exit $ac_status); } && { | ||
23251 | test -z "$ac_c_werror_flag" || | ||
23252 | test ! -s conftest.err | ||
23253 | } && test -s conftest$ac_exeext && | ||
23254 | $as_test_x conftest$ac_exeext; then | ||
23255 | ac_cv_lib_pam_pam_set_item=yes | ||
23256 | else | ||
23257 | echo "$as_me: failed program was:" >&5 | ||
23258 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23259 | |||
23260 | ac_cv_lib_pam_pam_set_item=no | ||
23261 | fi | ||
23262 | |||
23263 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23264 | conftest$ac_exeext conftest.$ac_ext | ||
23265 | LIBS=$ac_check_lib_save_LIBS | ||
23266 | fi | ||
23267 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
23268 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; } | ||
23269 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
23270 | cat >>confdefs.h <<_ACEOF | ||
23271 | #define HAVE_LIBPAM 1 | ||
23272 | _ACEOF | ||
23273 | |||
23274 | LIBS="-lpam $LIBS" | ||
23275 | |||
23276 | else | ||
23277 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
23278 | echo "$as_me: error: *** libpam missing" >&2;} | ||
23279 | { (exit 1); exit 1; }; } | ||
23280 | fi | ||
23281 | |||
23282 | |||
23283 | for ac_func in pam_getenvlist | ||
23284 | do | ||
23285 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
23286 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
23287 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
23288 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23290 | else | ||
23291 | cat >conftest.$ac_ext <<_ACEOF | ||
23292 | /* confdefs.h. */ | ||
23293 | _ACEOF | ||
23294 | cat confdefs.h >>conftest.$ac_ext | ||
23295 | cat >>conftest.$ac_ext <<_ACEOF | ||
23296 | /* end confdefs.h. */ | ||
23297 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
23298 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
23299 | #define $ac_func innocuous_$ac_func | ||
23300 | |||
23301 | /* System header to define __stub macros and hopefully few prototypes, | ||
23302 | which can conflict with char $ac_func (); below. | ||
23303 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
23304 | <limits.h> exists even on freestanding compilers. */ | ||
23305 | |||
23306 | #ifdef __STDC__ | ||
23307 | # include <limits.h> | ||
23308 | #else | ||
23309 | # include <assert.h> | ||
23310 | #endif | ||
23311 | |||
23312 | #undef $ac_func | ||
23313 | |||
23314 | /* Override any GCC internal prototype to avoid an error. | ||
23315 | Use char because int might match the return type of a GCC | ||
23316 | builtin and then its argument prototype would still apply. */ | ||
23317 | #ifdef __cplusplus | ||
23318 | extern "C" | ||
23319 | #endif | ||
23320 | char $ac_func (); | ||
23321 | /* The GNU C library defines this for functions which it implements | ||
23322 | to always fail with ENOSYS. Some functions are actually named | ||
23323 | something starting with __ and the normal name is an alias. */ | ||
23324 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
23325 | choke me | ||
23326 | #endif | ||
23327 | |||
23328 | int | ||
23329 | main () | ||
23330 | { | ||
23331 | return $ac_func (); | ||
23332 | ; | ||
23333 | return 0; | ||
23334 | } | ||
23335 | _ACEOF | ||
23336 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23337 | if { (ac_try="$ac_link" | ||
23338 | case "(($ac_try" in | ||
23339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23340 | *) ac_try_echo=$ac_try;; | ||
23341 | esac | ||
23342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23343 | (eval "$ac_link") 2>conftest.er1 | ||
23344 | ac_status=$? | ||
23345 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23346 | rm -f conftest.er1 | ||
23347 | cat conftest.err >&5 | ||
23348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23349 | (exit $ac_status); } && { | ||
23350 | test -z "$ac_c_werror_flag" || | ||
23351 | test ! -s conftest.err | ||
23352 | } && test -s conftest$ac_exeext && | ||
23353 | $as_test_x conftest$ac_exeext; then | ||
23354 | eval "$as_ac_var=yes" | ||
23355 | else | ||
23356 | echo "$as_me: failed program was:" >&5 | ||
23357 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23358 | |||
23359 | eval "$as_ac_var=no" | ||
23360 | fi | ||
23361 | |||
23362 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23363 | conftest$ac_exeext conftest.$ac_ext | ||
23364 | fi | ||
23365 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
23366 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
23367 | echo "${ECHO_T}$ac_res" >&6; } | ||
23368 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
23369 | cat >>confdefs.h <<_ACEOF | ||
23370 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
23371 | _ACEOF | ||
23372 | |||
23373 | fi | ||
23374 | done | ||
23375 | |||
23376 | |||
23377 | for ac_func in pam_putenv | ||
23378 | do | ||
23379 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
23380 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
23381 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
23382 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23384 | else | ||
23385 | cat >conftest.$ac_ext <<_ACEOF | ||
23386 | /* confdefs.h. */ | ||
23387 | _ACEOF | ||
23388 | cat confdefs.h >>conftest.$ac_ext | ||
23389 | cat >>conftest.$ac_ext <<_ACEOF | ||
23390 | /* end confdefs.h. */ | ||
23391 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
23392 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
23393 | #define $ac_func innocuous_$ac_func | ||
23394 | |||
23395 | /* System header to define __stub macros and hopefully few prototypes, | ||
23396 | which can conflict with char $ac_func (); below. | ||
23397 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
23398 | <limits.h> exists even on freestanding compilers. */ | ||
23399 | |||
23400 | #ifdef __STDC__ | ||
23401 | # include <limits.h> | ||
23402 | #else | ||
23403 | # include <assert.h> | ||
23404 | #endif | ||
23405 | |||
23406 | #undef $ac_func | ||
23407 | |||
23408 | /* Override any GCC internal prototype to avoid an error. | ||
23409 | Use char because int might match the return type of a GCC | ||
23410 | builtin and then its argument prototype would still apply. */ | ||
23411 | #ifdef __cplusplus | ||
23412 | extern "C" | ||
23413 | #endif | ||
23414 | char $ac_func (); | ||
23415 | /* The GNU C library defines this for functions which it implements | ||
23416 | to always fail with ENOSYS. Some functions are actually named | ||
23417 | something starting with __ and the normal name is an alias. */ | ||
23418 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
23419 | choke me | ||
23420 | #endif | ||
23421 | |||
23422 | int | ||
23423 | main () | ||
23424 | { | ||
23425 | return $ac_func (); | ||
23426 | ; | ||
23427 | return 0; | ||
23428 | } | ||
23429 | _ACEOF | ||
23430 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23431 | if { (ac_try="$ac_link" | ||
23432 | case "(($ac_try" in | ||
23433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23434 | *) ac_try_echo=$ac_try;; | ||
23435 | esac | ||
23436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23437 | (eval "$ac_link") 2>conftest.er1 | ||
23438 | ac_status=$? | ||
23439 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23440 | rm -f conftest.er1 | ||
23441 | cat conftest.err >&5 | ||
23442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23443 | (exit $ac_status); } && { | ||
23444 | test -z "$ac_c_werror_flag" || | ||
23445 | test ! -s conftest.err | ||
23446 | } && test -s conftest$ac_exeext && | ||
23447 | $as_test_x conftest$ac_exeext; then | ||
23448 | eval "$as_ac_var=yes" | ||
23449 | else | ||
23450 | echo "$as_me: failed program was:" >&5 | ||
23451 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23452 | |||
23453 | eval "$as_ac_var=no" | ||
23454 | fi | ||
23455 | |||
23456 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23457 | conftest$ac_exeext conftest.$ac_ext | ||
23458 | fi | ||
23459 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
23460 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
23461 | echo "${ECHO_T}$ac_res" >&6; } | ||
23462 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
23463 | cat >>confdefs.h <<_ACEOF | ||
23464 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
23465 | _ACEOF | ||
23466 | |||
23467 | fi | ||
23468 | done | ||
23469 | |||
23470 | LIBS="$saved_LIBS" | ||
23471 | |||
23472 | PAM_MSG="yes" | ||
23473 | |||
23474 | SSHDLIBS="$SSHDLIBS -lpam" | ||
23475 | |||
23476 | cat >>confdefs.h <<\_ACEOF | ||
23477 | #define USE_PAM 1 | ||
23478 | _ACEOF | ||
23479 | |||
23480 | |||
23481 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
23482 | case "$LIBS" in | ||
23483 | *-ldl*) | ||
23484 | # libdl already in LIBS | ||
23485 | ;; | ||
23486 | *) | ||
23487 | SSHDLIBS="$SSHDLIBS -ldl" | ||
23488 | ;; | ||
23489 | esac | ||
23490 | fi | ||
23491 | fi | ||
23492 | |||
23493 | |||
23494 | fi | ||
23495 | |||
23496 | |||
23497 | # Check for older PAM | ||
23498 | if test "x$PAM_MSG" = "xyes" ; then | ||
23499 | # Check PAM strerror arguments (old PAM) | ||
23500 | { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
23501 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; } | ||
23502 | cat >conftest.$ac_ext <<_ACEOF | ||
23503 | /* confdefs.h. */ | ||
23504 | _ACEOF | ||
23505 | cat confdefs.h >>conftest.$ac_ext | ||
23506 | cat >>conftest.$ac_ext <<_ACEOF | ||
23507 | /* end confdefs.h. */ | ||
23508 | |||
23509 | #include <stdlib.h> | ||
23510 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
23511 | #include <security/pam_appl.h> | ||
23512 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
23513 | #include <pam/pam_appl.h> | ||
23514 | #endif | ||
23515 | |||
23516 | int | ||
23517 | main () | ||
23518 | { | ||
23519 | |||
23520 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
23521 | |||
23522 | ; | ||
23523 | return 0; | ||
23524 | } | ||
23525 | _ACEOF | ||
23526 | rm -f conftest.$ac_objext | ||
23527 | if { (ac_try="$ac_compile" | ||
23528 | case "(($ac_try" in | ||
23529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23530 | *) ac_try_echo=$ac_try;; | ||
23531 | esac | ||
23532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23533 | (eval "$ac_compile") 2>conftest.er1 | ||
23534 | ac_status=$? | ||
23535 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23536 | rm -f conftest.er1 | ||
23537 | cat conftest.err >&5 | ||
23538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23539 | (exit $ac_status); } && { | ||
23540 | test -z "$ac_c_werror_flag" || | ||
23541 | test ! -s conftest.err | ||
23542 | } && test -s conftest.$ac_objext; then | ||
23543 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23544 | echo "${ECHO_T}no" >&6; } | ||
23545 | else | ||
23546 | echo "$as_me: failed program was:" >&5 | ||
23547 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23548 | |||
23549 | |||
23550 | |||
23551 | cat >>confdefs.h <<\_ACEOF | ||
23552 | #define HAVE_OLD_PAM 1 | ||
23553 | _ACEOF | ||
23554 | |||
23555 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
23556 | echo "${ECHO_T}yes" >&6; } | ||
23557 | PAM_MSG="yes (old library)" | ||
23558 | |||
23559 | |||
23560 | fi | ||
23561 | |||
23562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23563 | fi | ||
23564 | |||
23565 | case "$host" in | ||
23566 | *-*-cygwin*) | ||
23567 | SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER | ||
23568 | ;; | ||
23569 | *) | ||
23570 | SSH_PRIVSEP_USER=sshd | ||
23571 | ;; | ||
23572 | esac | ||
23573 | |||
23574 | # Check whether --with-privsep-user was given. | ||
23575 | if test "${with_privsep_user+set}" = set; then | ||
23576 | withval=$with_privsep_user; | ||
23577 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
23578 | test "x${withval}" != "xyes"; then | ||
23579 | SSH_PRIVSEP_USER=$withval | ||
23580 | fi | ||
23581 | |||
23582 | |||
23583 | fi | ||
23584 | |||
23585 | if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then | ||
23586 | |||
23587 | cat >>confdefs.h <<_ACEOF | ||
23588 | #define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER | ||
23589 | _ACEOF | ||
23590 | |||
23591 | else | ||
23592 | |||
23593 | cat >>confdefs.h <<_ACEOF | ||
23594 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
23595 | _ACEOF | ||
23596 | |||
23597 | fi | ||
23598 | |||
23599 | |||
23600 | if test "x$have_linux_no_new_privs" = "x1" ; then | ||
23601 | { echo "$as_me:$LINENO: checking whether SECCOMP_MODE_FILTER is declared" >&5 | ||
23602 | echo $ECHO_N "checking whether SECCOMP_MODE_FILTER is declared... $ECHO_C" >&6; } | ||
23603 | if test "${ac_cv_have_decl_SECCOMP_MODE_FILTER+set}" = set; then | ||
23604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23605 | else | ||
23606 | cat >conftest.$ac_ext <<_ACEOF | ||
23607 | /* confdefs.h. */ | ||
23608 | _ACEOF | ||
23609 | cat confdefs.h >>conftest.$ac_ext | ||
23610 | cat >>conftest.$ac_ext <<_ACEOF | ||
23611 | /* end confdefs.h. */ | ||
23612 | |||
23613 | #include <sys/types.h> | ||
23614 | #include <linux/seccomp.h> | ||
23615 | |||
23616 | |||
23617 | int | ||
23618 | main () | ||
23619 | { | ||
23620 | #ifndef SECCOMP_MODE_FILTER | ||
23621 | (void) SECCOMP_MODE_FILTER; | ||
23622 | #endif | ||
23623 | |||
23624 | ; | ||
23625 | return 0; | ||
23626 | } | ||
23627 | _ACEOF | ||
23628 | rm -f conftest.$ac_objext | ||
23629 | if { (ac_try="$ac_compile" | ||
23630 | case "(($ac_try" in | ||
23631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23632 | *) ac_try_echo=$ac_try;; | ||
23633 | esac | ||
23634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23635 | (eval "$ac_compile") 2>conftest.er1 | ||
23636 | ac_status=$? | ||
23637 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23638 | rm -f conftest.er1 | ||
23639 | cat conftest.err >&5 | ||
23640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23641 | (exit $ac_status); } && { | ||
23642 | test -z "$ac_c_werror_flag" || | ||
23643 | test ! -s conftest.err | ||
23644 | } && test -s conftest.$ac_objext; then | ||
23645 | ac_cv_have_decl_SECCOMP_MODE_FILTER=yes | ||
23646 | else | ||
23647 | echo "$as_me: failed program was:" >&5 | ||
23648 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23649 | |||
23650 | ac_cv_have_decl_SECCOMP_MODE_FILTER=no | ||
23651 | fi | ||
23652 | |||
23653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23654 | fi | ||
23655 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SECCOMP_MODE_FILTER" >&5 | ||
23656 | echo "${ECHO_T}$ac_cv_have_decl_SECCOMP_MODE_FILTER" >&6; } | ||
23657 | if test $ac_cv_have_decl_SECCOMP_MODE_FILTER = yes; then | ||
23658 | have_seccomp_filter=1 | ||
23659 | fi | ||
23660 | |||
23661 | fi | ||
23662 | if test "x$have_seccomp_filter" = "x1" ; then | ||
23663 | { echo "$as_me:$LINENO: checking kernel for seccomp_filter support" >&5 | ||
23664 | echo $ECHO_N "checking kernel for seccomp_filter support... $ECHO_C" >&6; } | ||
23665 | cat >conftest.$ac_ext <<_ACEOF | ||
23666 | /* confdefs.h. */ | ||
23667 | _ACEOF | ||
23668 | cat confdefs.h >>conftest.$ac_ext | ||
23669 | cat >>conftest.$ac_ext <<_ACEOF | ||
23670 | /* end confdefs.h. */ | ||
23671 | |||
23672 | #include <errno.h> | ||
23673 | #include <elf.h> | ||
23674 | #include <linux/audit.h> | ||
23675 | #include <linux/seccomp.h> | ||
23676 | #include <stdlib.h> | ||
23677 | #include <sys/prctl.h> | ||
23678 | |||
23679 | int | ||
23680 | main () | ||
23681 | { | ||
23682 | int i = $seccomp_audit_arch; | ||
23683 | errno = 0; | ||
23684 | prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); | ||
23685 | exit(errno == EFAULT ? 0 : 1); | ||
23686 | ; | ||
23687 | return 0; | ||
23688 | } | ||
23689 | _ACEOF | ||
23690 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23691 | if { (ac_try="$ac_link" | ||
23692 | case "(($ac_try" in | ||
23693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23694 | *) ac_try_echo=$ac_try;; | ||
23695 | esac | ||
23696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23697 | (eval "$ac_link") 2>conftest.er1 | ||
23698 | ac_status=$? | ||
23699 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23700 | rm -f conftest.er1 | ||
23701 | cat conftest.err >&5 | ||
23702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23703 | (exit $ac_status); } && { | ||
23704 | test -z "$ac_c_werror_flag" || | ||
23705 | test ! -s conftest.err | ||
23706 | } && test -s conftest$ac_exeext && | ||
23707 | $as_test_x conftest$ac_exeext; then | ||
23708 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
23709 | echo "${ECHO_T}yes" >&6; } | ||
23710 | else | ||
23711 | echo "$as_me: failed program was:" >&5 | ||
23712 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23713 | |||
23714 | |||
23715 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23716 | echo "${ECHO_T}no" >&6; } | ||
23717 | # Disable seccomp filter as a target | ||
23718 | have_seccomp_filter=0 | ||
23719 | |||
23720 | |||
23721 | fi | ||
23722 | |||
23723 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
23724 | conftest$ac_exeext conftest.$ac_ext | ||
23725 | fi | ||
23726 | |||
23727 | # Decide which sandbox style to use | ||
23728 | sandbox_arg="" | ||
23729 | |||
23730 | # Check whether --with-sandbox was given. | ||
23731 | if test "${with_sandbox+set}" = set; then | ||
23732 | withval=$with_sandbox; | ||
23733 | if test "x$withval" = "xyes" ; then | ||
23734 | sandbox_arg="" | ||
23735 | else | ||
23736 | sandbox_arg="$withval" | ||
23737 | fi | ||
23738 | |||
23739 | |||
23740 | fi | ||
23741 | |||
23742 | |||
23743 | # Some platforms (seems to be the ones that have a kernel poll(2)-type | ||
23744 | # function with which they implement select(2)) use an extra file descriptor | ||
23745 | # when calling select(2), which means we can't use the rlimit sandbox. | ||
23746 | { echo "$as_me:$LINENO: checking if select works with descriptor rlimit" >&5 | ||
23747 | echo $ECHO_N "checking if select works with descriptor rlimit... $ECHO_C" >&6; } | ||
23748 | if test "$cross_compiling" = yes; then | ||
23749 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
23750 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
23751 | |||
23752 | else | ||
23753 | cat >conftest.$ac_ext <<_ACEOF | ||
23754 | /* confdefs.h. */ | ||
23755 | _ACEOF | ||
23756 | cat confdefs.h >>conftest.$ac_ext | ||
23757 | cat >>conftest.$ac_ext <<_ACEOF | ||
23758 | /* end confdefs.h. */ | ||
23759 | |||
23760 | #include <sys/types.h> | ||
23761 | #ifdef HAVE_SYS_TIME_H | ||
23762 | # include <sys/time.h> | ||
23763 | #endif | ||
23764 | #include <sys/resource.h> | ||
23765 | #ifdef HAVE_SYS_SELECT_H | ||
23766 | # include <sys/select.h> | ||
23767 | #endif | ||
23768 | #include <errno.h> | ||
23769 | #include <fcntl.h> | ||
23770 | #include <stdlib.h> | ||
23771 | |||
23772 | int | ||
23773 | main () | ||
23774 | { | ||
23775 | |||
23776 | struct rlimit rl_zero; | ||
23777 | int fd, r; | ||
23778 | fd_set fds; | ||
23779 | struct timeval tv; | ||
23780 | |||
23781 | fd = open("/dev/null", O_RDONLY); | ||
23782 | FD_ZERO(&fds); | ||
23783 | FD_SET(fd, &fds); | ||
23784 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
23785 | setrlimit(RLIMIT_FSIZE, &rl_zero); | ||
23786 | setrlimit(RLIMIT_NOFILE, &rl_zero); | ||
23787 | tv.tv_sec = 1; | ||
23788 | tv.tv_usec = 0; | ||
23789 | r = select(fd+1, &fds, NULL, NULL, &tv); | ||
23790 | exit (r == -1 ? 1 : 0); | ||
23791 | |||
23792 | ; | ||
23793 | return 0; | ||
23794 | } | ||
23795 | _ACEOF | ||
23796 | rm -f conftest$ac_exeext | ||
23797 | if { (ac_try="$ac_link" | ||
23798 | case "(($ac_try" in | ||
23799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23800 | *) ac_try_echo=$ac_try;; | ||
23801 | esac | ||
23802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23803 | (eval "$ac_link") 2>&5 | ||
23804 | ac_status=$? | ||
23805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23806 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
23807 | { (case "(($ac_try" in | ||
23808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23809 | *) ac_try_echo=$ac_try;; | ||
23810 | esac | ||
23811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23812 | (eval "$ac_try") 2>&5 | ||
23813 | ac_status=$? | ||
23814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23815 | (exit $ac_status); }; }; then | ||
23816 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
23817 | echo "${ECHO_T}yes" >&6; } | ||
23818 | select_works_with_rlimit=yes | ||
23819 | else | ||
23820 | echo "$as_me: program exited with status $ac_status" >&5 | ||
23821 | echo "$as_me: failed program was:" >&5 | ||
23822 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23823 | |||
23824 | ( exit $ac_status ) | ||
23825 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23826 | echo "${ECHO_T}no" >&6; } | ||
23827 | select_works_with_rlimit=no | ||
23828 | fi | ||
23829 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
23830 | fi | ||
23831 | |||
23832 | |||
23833 | |||
23834 | { echo "$as_me:$LINENO: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5 | ||
23835 | echo $ECHO_N "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... $ECHO_C" >&6; } | ||
23836 | if test "$cross_compiling" = yes; then | ||
23837 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
23838 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
23839 | |||
23840 | else | ||
23841 | cat >conftest.$ac_ext <<_ACEOF | ||
23842 | /* confdefs.h. */ | ||
23843 | _ACEOF | ||
23844 | cat confdefs.h >>conftest.$ac_ext | ||
23845 | cat >>conftest.$ac_ext <<_ACEOF | ||
23846 | /* end confdefs.h. */ | ||
23847 | |||
23848 | #include <sys/types.h> | ||
23849 | #ifdef HAVE_SYS_TIME_H | ||
23850 | # include <sys/time.h> | ||
23851 | #endif | ||
23852 | #include <sys/resource.h> | ||
23853 | #include <errno.h> | ||
23854 | #include <stdlib.h> | ||
23855 | |||
23856 | int | ||
23857 | main () | ||
23858 | { | ||
23859 | |||
23860 | struct rlimit rl_zero; | ||
23861 | int fd, r; | ||
23862 | fd_set fds; | ||
23863 | |||
23864 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
23865 | r = setrlimit(RLIMIT_NOFILE, &rl_zero); | ||
23866 | exit (r == -1 ? 1 : 0); | ||
23867 | |||
23868 | ; | ||
23869 | return 0; | ||
23870 | } | ||
23871 | _ACEOF | ||
23872 | rm -f conftest$ac_exeext | ||
23873 | if { (ac_try="$ac_link" | ||
23874 | case "(($ac_try" in | ||
23875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23876 | *) ac_try_echo=$ac_try;; | ||
23877 | esac | ||
23878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23879 | (eval "$ac_link") 2>&5 | ||
23880 | ac_status=$? | ||
23881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23882 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
23883 | { (case "(($ac_try" in | ||
23884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23885 | *) ac_try_echo=$ac_try;; | ||
23886 | esac | ||
23887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23888 | (eval "$ac_try") 2>&5 | ||
23889 | ac_status=$? | ||
23890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23891 | (exit $ac_status); }; }; then | ||
23892 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
23893 | echo "${ECHO_T}yes" >&6; } | ||
23894 | rlimit_nofile_zero_works=yes | ||
23895 | else | ||
23896 | echo "$as_me: program exited with status $ac_status" >&5 | ||
23897 | echo "$as_me: failed program was:" >&5 | ||
23898 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23899 | |||
23900 | ( exit $ac_status ) | ||
23901 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23902 | echo "${ECHO_T}no" >&6; } | ||
23903 | rlimit_nofile_zero_works=no | ||
23904 | fi | ||
23905 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
23906 | fi | ||
23907 | |||
23908 | |||
23909 | |||
23910 | { echo "$as_me:$LINENO: checking if setrlimit RLIMIT_FSIZE works" >&5 | ||
23911 | echo $ECHO_N "checking if setrlimit RLIMIT_FSIZE works... $ECHO_C" >&6; } | ||
23912 | if test "$cross_compiling" = yes; then | ||
23913 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
23914 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
23915 | |||
23916 | else | ||
23917 | cat >conftest.$ac_ext <<_ACEOF | ||
23918 | /* confdefs.h. */ | ||
23919 | _ACEOF | ||
23920 | cat confdefs.h >>conftest.$ac_ext | ||
23921 | cat >>conftest.$ac_ext <<_ACEOF | ||
23922 | /* end confdefs.h. */ | ||
23923 | |||
23924 | #include <sys/types.h> | ||
23925 | #include <sys/resource.h> | ||
23926 | #include <stdlib.h> | ||
23927 | |||
23928 | int | ||
23929 | main () | ||
23930 | { | ||
23931 | |||
23932 | struct rlimit rl_zero; | ||
23933 | |||
23934 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
23935 | exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0); | ||
23936 | |||
23937 | ; | ||
23938 | return 0; | ||
23939 | } | ||
23940 | _ACEOF | ||
23941 | rm -f conftest$ac_exeext | ||
23942 | if { (ac_try="$ac_link" | ||
23943 | case "(($ac_try" in | ||
23944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23945 | *) ac_try_echo=$ac_try;; | ||
23946 | esac | ||
23947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23948 | (eval "$ac_link") 2>&5 | ||
23949 | ac_status=$? | ||
23950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23951 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
23952 | { (case "(($ac_try" in | ||
23953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23954 | *) ac_try_echo=$ac_try;; | ||
23955 | esac | ||
23956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23957 | (eval "$ac_try") 2>&5 | ||
23958 | ac_status=$? | ||
23959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23960 | (exit $ac_status); }; }; then | ||
23961 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
23962 | echo "${ECHO_T}yes" >&6; } | ||
23963 | else | ||
23964 | echo "$as_me: program exited with status $ac_status" >&5 | ||
23965 | echo "$as_me: failed program was:" >&5 | ||
23966 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23967 | |||
23968 | ( exit $ac_status ) | ||
23969 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23970 | echo "${ECHO_T}no" >&6; } | ||
23971 | |||
23972 | cat >>confdefs.h <<\_ACEOF | ||
23973 | #define SANDBOX_SKIP_RLIMIT_FSIZE 1 | ||
23974 | _ACEOF | ||
23975 | |||
23976 | fi | ||
23977 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
23978 | fi | ||
23979 | |||
23980 | |||
23981 | |||
23982 | if test "x$sandbox_arg" = "xsystrace" || \ | ||
23983 | ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then | ||
23984 | test "x$have_systr_policy_kill" != "x1" && \ | ||
23985 | { { echo "$as_me:$LINENO: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&5 | ||
23986 | echo "$as_me: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&2;} | ||
23987 | { (exit 1); exit 1; }; } | ||
23988 | SANDBOX_STYLE="systrace" | ||
23989 | |||
23990 | cat >>confdefs.h <<\_ACEOF | ||
23991 | #define SANDBOX_SYSTRACE 1 | ||
23992 | _ACEOF | ||
23993 | |||
23994 | elif test "x$sandbox_arg" = "xdarwin" || \ | ||
23995 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \ | ||
23996 | test "x$ac_cv_header_sandbox_h" = "xyes") ; then | ||
23997 | test "x$ac_cv_func_sandbox_init" != "xyes" -o \ | ||
23998 | "x$ac_cv_header_sandbox_h" != "xyes" && \ | ||
23999 | { { echo "$as_me:$LINENO: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&5 | ||
24000 | echo "$as_me: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&2;} | ||
24001 | { (exit 1); exit 1; }; } | ||
24002 | SANDBOX_STYLE="darwin" | ||
24003 | |||
24004 | cat >>confdefs.h <<\_ACEOF | ||
24005 | #define SANDBOX_DARWIN 1 | ||
24006 | _ACEOF | ||
24007 | |||
24008 | elif test "x$sandbox_arg" = "xseccomp_filter" || \ | ||
24009 | ( test -z "$sandbox_arg" && \ | ||
24010 | test "x$have_seccomp_filter" = "x1" && \ | ||
24011 | test "x$ac_cv_header_elf_h" = "xyes" && \ | ||
24012 | test "x$ac_cv_header_linux_audit_h" = "xyes" && \ | ||
24013 | test "x$ac_cv_header_linux_filter_h" = "xyes" && \ | ||
24014 | test "x$seccomp_audit_arch" != "x" && \ | ||
24015 | test "x$have_linux_no_new_privs" = "x1" && \ | ||
24016 | test "x$ac_cv_func_prctl" = "xyes" ) ; then | ||
24017 | test "x$seccomp_audit_arch" = "x" && \ | ||
24018 | { { echo "$as_me:$LINENO: error: seccomp_filter sandbox not supported on $host" >&5 | ||
24019 | echo "$as_me: error: seccomp_filter sandbox not supported on $host" >&2;} | ||
24020 | { (exit 1); exit 1; }; } | ||
24021 | test "x$have_linux_no_new_privs" != "x1" && \ | ||
24022 | { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&5 | ||
24023 | echo "$as_me: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&2;} | ||
24024 | { (exit 1); exit 1; }; } | ||
24025 | test "x$have_seccomp_filter" != "x1" && \ | ||
24026 | { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires seccomp headers" >&5 | ||
24027 | echo "$as_me: error: seccomp_filter sandbox requires seccomp headers" >&2;} | ||
24028 | { (exit 1); exit 1; }; } | ||
24029 | test "x$ac_cv_func_prctl" != "xyes" && \ | ||
24030 | { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires prctl function" >&5 | ||
24031 | echo "$as_me: error: seccomp_filter sandbox requires prctl function" >&2;} | ||
24032 | { (exit 1); exit 1; }; } | ||
24033 | SANDBOX_STYLE="seccomp_filter" | ||
24034 | |||
24035 | cat >>confdefs.h <<\_ACEOF | ||
24036 | #define SANDBOX_SECCOMP_FILTER 1 | ||
24037 | _ACEOF | ||
24038 | |||
24039 | elif test "x$sandbox_arg" = "xcapsicum" || \ | ||
24040 | ( test -z "$sandbox_arg" && \ | ||
24041 | test "x$ac_cv_header_sys_capability_h" = "xyes" && \ | ||
24042 | test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then | ||
24043 | test "x$ac_cv_header_sys_capability_h" != "xyes" && \ | ||
24044 | { { echo "$as_me:$LINENO: error: capsicum sandbox requires sys/capability.h header" >&5 | ||
24045 | echo "$as_me: error: capsicum sandbox requires sys/capability.h header" >&2;} | ||
24046 | { (exit 1); exit 1; }; } | ||
24047 | test "x$ac_cv_func_cap_rights_limit" != "xyes" && \ | ||
24048 | { { echo "$as_me:$LINENO: error: capsicum sandbox requires cap_rights_limit function" >&5 | ||
24049 | echo "$as_me: error: capsicum sandbox requires cap_rights_limit function" >&2;} | ||
24050 | { (exit 1); exit 1; }; } | ||
24051 | SANDBOX_STYLE="capsicum" | ||
24052 | |||
24053 | cat >>confdefs.h <<\_ACEOF | ||
24054 | #define SANDBOX_CAPSICUM 1 | ||
24055 | _ACEOF | ||
24056 | |||
24057 | elif test "x$sandbox_arg" = "xrlimit" || \ | ||
24058 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ | ||
24059 | test "x$select_works_with_rlimit" = "xyes" && \ | ||
24060 | test "x$rlimit_nofile_zero_works" = "xyes" ) ; then | ||
24061 | test "x$ac_cv_func_setrlimit" != "xyes" && \ | ||
24062 | { { echo "$as_me:$LINENO: error: rlimit sandbox requires setrlimit function" >&5 | ||
24063 | echo "$as_me: error: rlimit sandbox requires setrlimit function" >&2;} | ||
24064 | { (exit 1); exit 1; }; } | ||
24065 | test "x$select_works_with_rlimit" != "xyes" && \ | ||
24066 | { { echo "$as_me:$LINENO: error: rlimit sandbox requires select to work with rlimit" >&5 | ||
24067 | echo "$as_me: error: rlimit sandbox requires select to work with rlimit" >&2;} | ||
24068 | { (exit 1); exit 1; }; } | ||
24069 | SANDBOX_STYLE="rlimit" | ||
24070 | |||
24071 | cat >>confdefs.h <<\_ACEOF | ||
24072 | #define SANDBOX_RLIMIT 1 | ||
24073 | _ACEOF | ||
24074 | |||
24075 | elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \ | ||
24076 | test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then | ||
24077 | SANDBOX_STYLE="none" | ||
24078 | |||
24079 | cat >>confdefs.h <<\_ACEOF | ||
24080 | #define SANDBOX_NULL 1 | ||
24081 | _ACEOF | ||
24082 | |||
24083 | else | ||
24084 | { { echo "$as_me:$LINENO: error: unsupported --with-sandbox" >&5 | ||
24085 | echo "$as_me: error: unsupported --with-sandbox" >&2;} | ||
24086 | { (exit 1); exit 1; }; } | ||
24087 | fi | ||
24088 | |||
24089 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
24090 | if test ! -z "$SONY" ; then | ||
24091 | LIBS="$LIBS -liberty"; | ||
24092 | fi | ||
24093 | |||
24094 | # Check for long long datatypes | ||
24095 | { echo "$as_me:$LINENO: checking for long long" >&5 | ||
24096 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | ||
24097 | if test "${ac_cv_type_long_long+set}" = set; then | ||
24098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24099 | else | ||
24100 | cat >conftest.$ac_ext <<_ACEOF | ||
24101 | /* confdefs.h. */ | ||
24102 | _ACEOF | ||
24103 | cat confdefs.h >>conftest.$ac_ext | ||
24104 | cat >>conftest.$ac_ext <<_ACEOF | ||
24105 | /* end confdefs.h. */ | ||
24106 | $ac_includes_default | ||
24107 | typedef long long ac__type_new_; | ||
24108 | int | ||
24109 | main () | ||
24110 | { | ||
24111 | if ((ac__type_new_ *) 0) | ||
24112 | return 0; | ||
24113 | if (sizeof (ac__type_new_)) | ||
24114 | return 0; | ||
24115 | ; | ||
24116 | return 0; | ||
24117 | } | ||
24118 | _ACEOF | ||
24119 | rm -f conftest.$ac_objext | ||
24120 | if { (ac_try="$ac_compile" | ||
24121 | case "(($ac_try" in | ||
24122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24123 | *) ac_try_echo=$ac_try;; | ||
24124 | esac | ||
24125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24126 | (eval "$ac_compile") 2>conftest.er1 | ||
24127 | ac_status=$? | ||
24128 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24129 | rm -f conftest.er1 | ||
24130 | cat conftest.err >&5 | ||
24131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24132 | (exit $ac_status); } && { | ||
24133 | test -z "$ac_c_werror_flag" || | ||
24134 | test ! -s conftest.err | ||
24135 | } && test -s conftest.$ac_objext; then | ||
24136 | ac_cv_type_long_long=yes | ||
24137 | else | ||
24138 | echo "$as_me: failed program was:" >&5 | ||
24139 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24140 | |||
24141 | ac_cv_type_long_long=no | ||
24142 | fi | ||
24143 | |||
24144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24145 | fi | ||
24146 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | ||
24147 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | ||
24148 | if test $ac_cv_type_long_long = yes; then | ||
24149 | |||
24150 | cat >>confdefs.h <<_ACEOF | ||
24151 | #define HAVE_LONG_LONG 1 | ||
24152 | _ACEOF | ||
24153 | |||
24154 | |||
24155 | fi | ||
24156 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 | ||
24157 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } | ||
24158 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then | ||
24159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24160 | else | ||
24161 | cat >conftest.$ac_ext <<_ACEOF | ||
24162 | /* confdefs.h. */ | ||
24163 | _ACEOF | ||
24164 | cat confdefs.h >>conftest.$ac_ext | ||
24165 | cat >>conftest.$ac_ext <<_ACEOF | ||
24166 | /* end confdefs.h. */ | ||
24167 | $ac_includes_default | ||
24168 | typedef unsigned long long ac__type_new_; | ||
24169 | int | ||
24170 | main () | ||
24171 | { | ||
24172 | if ((ac__type_new_ *) 0) | ||
24173 | return 0; | ||
24174 | if (sizeof (ac__type_new_)) | ||
24175 | return 0; | ||
24176 | ; | ||
24177 | return 0; | ||
24178 | } | ||
24179 | _ACEOF | ||
24180 | rm -f conftest.$ac_objext | ||
24181 | if { (ac_try="$ac_compile" | ||
24182 | case "(($ac_try" in | ||
24183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24184 | *) ac_try_echo=$ac_try;; | ||
24185 | esac | ||
24186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24187 | (eval "$ac_compile") 2>conftest.er1 | ||
24188 | ac_status=$? | ||
24189 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24190 | rm -f conftest.er1 | ||
24191 | cat conftest.err >&5 | ||
24192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24193 | (exit $ac_status); } && { | ||
24194 | test -z "$ac_c_werror_flag" || | ||
24195 | test ! -s conftest.err | ||
24196 | } && test -s conftest.$ac_objext; then | ||
24197 | ac_cv_type_unsigned_long_long=yes | ||
24198 | else | ||
24199 | echo "$as_me: failed program was:" >&5 | ||
24200 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24201 | |||
24202 | ac_cv_type_unsigned_long_long=no | ||
24203 | fi | ||
24204 | |||
24205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24206 | fi | ||
24207 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 | ||
24208 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } | ||
24209 | if test $ac_cv_type_unsigned_long_long = yes; then | ||
24210 | |||
24211 | cat >>confdefs.h <<_ACEOF | ||
24212 | #define HAVE_UNSIGNED_LONG_LONG 1 | ||
24213 | _ACEOF | ||
24214 | |||
24215 | |||
24216 | fi | ||
24217 | { echo "$as_me:$LINENO: checking for long double" >&5 | ||
24218 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } | ||
24219 | if test "${ac_cv_type_long_double+set}" = set; then | ||
24220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24221 | else | ||
24222 | cat >conftest.$ac_ext <<_ACEOF | ||
24223 | /* confdefs.h. */ | ||
24224 | _ACEOF | ||
24225 | cat confdefs.h >>conftest.$ac_ext | ||
24226 | cat >>conftest.$ac_ext <<_ACEOF | ||
24227 | /* end confdefs.h. */ | ||
24228 | $ac_includes_default | ||
24229 | typedef long double ac__type_new_; | ||
24230 | int | ||
24231 | main () | ||
24232 | { | ||
24233 | if ((ac__type_new_ *) 0) | ||
24234 | return 0; | ||
24235 | if (sizeof (ac__type_new_)) | ||
24236 | return 0; | ||
24237 | ; | ||
24238 | return 0; | ||
24239 | } | ||
24240 | _ACEOF | ||
24241 | rm -f conftest.$ac_objext | ||
24242 | if { (ac_try="$ac_compile" | ||
24243 | case "(($ac_try" in | ||
24244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24245 | *) ac_try_echo=$ac_try;; | ||
24246 | esac | ||
24247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24248 | (eval "$ac_compile") 2>conftest.er1 | ||
24249 | ac_status=$? | ||
24250 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24251 | rm -f conftest.er1 | ||
24252 | cat conftest.err >&5 | ||
24253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24254 | (exit $ac_status); } && { | ||
24255 | test -z "$ac_c_werror_flag" || | ||
24256 | test ! -s conftest.err | ||
24257 | } && test -s conftest.$ac_objext; then | ||
24258 | ac_cv_type_long_double=yes | ||
24259 | else | ||
24260 | echo "$as_me: failed program was:" >&5 | ||
24261 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24262 | |||
24263 | ac_cv_type_long_double=no | ||
24264 | fi | ||
24265 | |||
24266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24267 | fi | ||
24268 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 | ||
24269 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } | ||
24270 | if test $ac_cv_type_long_double = yes; then | ||
24271 | |||
24272 | cat >>confdefs.h <<_ACEOF | ||
24273 | #define HAVE_LONG_DOUBLE 1 | ||
24274 | _ACEOF | ||
24275 | |||
24276 | |||
24277 | fi | ||
24278 | |||
24279 | |||
24280 | # Check datatype sizes | ||
24281 | { echo "$as_me:$LINENO: checking for short int" >&5 | ||
24282 | echo $ECHO_N "checking for short int... $ECHO_C" >&6; } | ||
24283 | if test "${ac_cv_type_short_int+set}" = set; then | ||
24284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24285 | else | ||
24286 | cat >conftest.$ac_ext <<_ACEOF | ||
24287 | /* confdefs.h. */ | ||
24288 | _ACEOF | ||
24289 | cat confdefs.h >>conftest.$ac_ext | ||
24290 | cat >>conftest.$ac_ext <<_ACEOF | ||
24291 | /* end confdefs.h. */ | ||
24292 | $ac_includes_default | ||
24293 | typedef short int ac__type_new_; | ||
24294 | int | ||
24295 | main () | ||
24296 | { | ||
24297 | if ((ac__type_new_ *) 0) | ||
24298 | return 0; | ||
24299 | if (sizeof (ac__type_new_)) | ||
24300 | return 0; | ||
24301 | ; | ||
24302 | return 0; | ||
24303 | } | ||
24304 | _ACEOF | ||
24305 | rm -f conftest.$ac_objext | ||
24306 | if { (ac_try="$ac_compile" | ||
24307 | case "(($ac_try" in | ||
24308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24309 | *) ac_try_echo=$ac_try;; | ||
24310 | esac | ||
24311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24312 | (eval "$ac_compile") 2>conftest.er1 | ||
24313 | ac_status=$? | ||
24314 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24315 | rm -f conftest.er1 | ||
24316 | cat conftest.err >&5 | ||
24317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24318 | (exit $ac_status); } && { | ||
24319 | test -z "$ac_c_werror_flag" || | ||
24320 | test ! -s conftest.err | ||
24321 | } && test -s conftest.$ac_objext; then | ||
24322 | ac_cv_type_short_int=yes | ||
24323 | else | ||
24324 | echo "$as_me: failed program was:" >&5 | ||
24325 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24326 | |||
24327 | ac_cv_type_short_int=no | ||
24328 | fi | ||
24329 | |||
24330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24331 | fi | ||
24332 | { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 | ||
24333 | echo "${ECHO_T}$ac_cv_type_short_int" >&6; } | ||
24334 | |||
24335 | # The cast to long int works around a bug in the HP C Compiler | ||
24336 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
24337 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
24338 | # This bug is HP SR number 8606223364. | ||
24339 | { echo "$as_me:$LINENO: checking size of short int" >&5 | ||
24340 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6; } | ||
24341 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
24342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24343 | else | ||
24344 | if test "$cross_compiling" = yes; then | ||
24345 | # Depending upon the size, compute the lo and hi bounds. | ||
24346 | cat >conftest.$ac_ext <<_ACEOF | ||
24347 | /* confdefs.h. */ | ||
24348 | _ACEOF | ||
24349 | cat confdefs.h >>conftest.$ac_ext | ||
24350 | cat >>conftest.$ac_ext <<_ACEOF | ||
24351 | /* end confdefs.h. */ | ||
24352 | $ac_includes_default | ||
24353 | typedef short int ac__type_sizeof_; | ||
24354 | int | ||
24355 | main () | ||
24356 | { | ||
24357 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
24358 | test_array [0] = 0 | ||
24359 | |||
24360 | ; | ||
24361 | return 0; | ||
24362 | } | ||
24363 | _ACEOF | ||
24364 | rm -f conftest.$ac_objext | ||
24365 | if { (ac_try="$ac_compile" | ||
24366 | case "(($ac_try" in | ||
24367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24368 | *) ac_try_echo=$ac_try;; | ||
24369 | esac | ||
24370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24371 | (eval "$ac_compile") 2>conftest.er1 | ||
24372 | ac_status=$? | ||
24373 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24374 | rm -f conftest.er1 | ||
24375 | cat conftest.err >&5 | ||
24376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24377 | (exit $ac_status); } && { | ||
24378 | test -z "$ac_c_werror_flag" || | ||
24379 | test ! -s conftest.err | ||
24380 | } && test -s conftest.$ac_objext; then | ||
24381 | ac_lo=0 ac_mid=0 | ||
24382 | while :; do | ||
24383 | cat >conftest.$ac_ext <<_ACEOF | ||
24384 | /* confdefs.h. */ | ||
24385 | _ACEOF | ||
24386 | cat confdefs.h >>conftest.$ac_ext | ||
24387 | cat >>conftest.$ac_ext <<_ACEOF | ||
24388 | /* end confdefs.h. */ | ||
24389 | $ac_includes_default | ||
24390 | typedef short int ac__type_sizeof_; | ||
24391 | int | ||
24392 | main () | ||
24393 | { | ||
24394 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
24395 | test_array [0] = 0 | ||
24396 | |||
24397 | ; | ||
24398 | return 0; | ||
24399 | } | ||
24400 | _ACEOF | ||
24401 | rm -f conftest.$ac_objext | ||
24402 | if { (ac_try="$ac_compile" | ||
24403 | case "(($ac_try" in | ||
24404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24405 | *) ac_try_echo=$ac_try;; | ||
24406 | esac | ||
24407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24408 | (eval "$ac_compile") 2>conftest.er1 | ||
24409 | ac_status=$? | ||
24410 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24411 | rm -f conftest.er1 | ||
24412 | cat conftest.err >&5 | ||
24413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24414 | (exit $ac_status); } && { | ||
24415 | test -z "$ac_c_werror_flag" || | ||
24416 | test ! -s conftest.err | ||
24417 | } && test -s conftest.$ac_objext; then | ||
24418 | ac_hi=$ac_mid; break | ||
24419 | else | ||
24420 | echo "$as_me: failed program was:" >&5 | ||
24421 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24422 | |||
24423 | ac_lo=`expr $ac_mid + 1` | ||
24424 | if test $ac_lo -le $ac_mid; then | ||
24425 | ac_lo= ac_hi= | ||
24426 | break | ||
24427 | fi | ||
24428 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
24429 | fi | ||
24430 | |||
24431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24432 | done | ||
24433 | else | ||
24434 | echo "$as_me: failed program was:" >&5 | ||
24435 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24436 | |||
24437 | cat >conftest.$ac_ext <<_ACEOF | ||
24438 | /* confdefs.h. */ | ||
24439 | _ACEOF | ||
24440 | cat confdefs.h >>conftest.$ac_ext | ||
24441 | cat >>conftest.$ac_ext <<_ACEOF | ||
24442 | /* end confdefs.h. */ | ||
24443 | $ac_includes_default | ||
24444 | typedef short int ac__type_sizeof_; | ||
24445 | int | ||
24446 | main () | ||
24447 | { | ||
24448 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
24449 | test_array [0] = 0 | ||
24450 | |||
24451 | ; | ||
24452 | return 0; | ||
24453 | } | ||
24454 | _ACEOF | ||
24455 | rm -f conftest.$ac_objext | ||
24456 | if { (ac_try="$ac_compile" | ||
24457 | case "(($ac_try" in | ||
24458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24459 | *) ac_try_echo=$ac_try;; | ||
24460 | esac | ||
24461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24462 | (eval "$ac_compile") 2>conftest.er1 | ||
24463 | ac_status=$? | ||
24464 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24465 | rm -f conftest.er1 | ||
24466 | cat conftest.err >&5 | ||
24467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24468 | (exit $ac_status); } && { | ||
24469 | test -z "$ac_c_werror_flag" || | ||
24470 | test ! -s conftest.err | ||
24471 | } && test -s conftest.$ac_objext; then | ||
24472 | ac_hi=-1 ac_mid=-1 | ||
24473 | while :; do | ||
24474 | cat >conftest.$ac_ext <<_ACEOF | ||
24475 | /* confdefs.h. */ | ||
24476 | _ACEOF | ||
24477 | cat confdefs.h >>conftest.$ac_ext | ||
24478 | cat >>conftest.$ac_ext <<_ACEOF | ||
24479 | /* end confdefs.h. */ | ||
24480 | $ac_includes_default | ||
24481 | typedef short int ac__type_sizeof_; | ||
24482 | int | ||
24483 | main () | ||
24484 | { | ||
24485 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
24486 | test_array [0] = 0 | ||
24487 | |||
24488 | ; | ||
24489 | return 0; | ||
24490 | } | ||
24491 | _ACEOF | ||
24492 | rm -f conftest.$ac_objext | ||
24493 | if { (ac_try="$ac_compile" | ||
24494 | case "(($ac_try" in | ||
24495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24496 | *) ac_try_echo=$ac_try;; | ||
24497 | esac | ||
24498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24499 | (eval "$ac_compile") 2>conftest.er1 | ||
24500 | ac_status=$? | ||
24501 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24502 | rm -f conftest.er1 | ||
24503 | cat conftest.err >&5 | ||
24504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24505 | (exit $ac_status); } && { | ||
24506 | test -z "$ac_c_werror_flag" || | ||
24507 | test ! -s conftest.err | ||
24508 | } && test -s conftest.$ac_objext; then | ||
24509 | ac_lo=$ac_mid; break | ||
24510 | else | ||
24511 | echo "$as_me: failed program was:" >&5 | ||
24512 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24513 | |||
24514 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
24515 | if test $ac_mid -le $ac_hi; then | ||
24516 | ac_lo= ac_hi= | ||
24517 | break | ||
24518 | fi | ||
24519 | ac_mid=`expr 2 '*' $ac_mid` | ||
24520 | fi | ||
24521 | |||
24522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24523 | done | ||
24524 | else | ||
24525 | echo "$as_me: failed program was:" >&5 | ||
24526 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24527 | |||
24528 | ac_lo= ac_hi= | ||
24529 | fi | ||
24530 | |||
24531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24532 | fi | ||
24533 | |||
24534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24535 | # Binary search between lo and hi bounds. | ||
24536 | while test "x$ac_lo" != "x$ac_hi"; do | ||
24537 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
24538 | cat >conftest.$ac_ext <<_ACEOF | ||
24539 | /* confdefs.h. */ | ||
24540 | _ACEOF | ||
24541 | cat confdefs.h >>conftest.$ac_ext | ||
24542 | cat >>conftest.$ac_ext <<_ACEOF | ||
24543 | /* end confdefs.h. */ | ||
24544 | $ac_includes_default | ||
24545 | typedef short int ac__type_sizeof_; | ||
24546 | int | ||
24547 | main () | ||
24548 | { | ||
24549 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
24550 | test_array [0] = 0 | ||
24551 | |||
24552 | ; | ||
24553 | return 0; | ||
24554 | } | ||
24555 | _ACEOF | ||
24556 | rm -f conftest.$ac_objext | ||
24557 | if { (ac_try="$ac_compile" | ||
24558 | case "(($ac_try" in | ||
24559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24560 | *) ac_try_echo=$ac_try;; | ||
24561 | esac | ||
24562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24563 | (eval "$ac_compile") 2>conftest.er1 | ||
24564 | ac_status=$? | ||
24565 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24566 | rm -f conftest.er1 | ||
24567 | cat conftest.err >&5 | ||
24568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24569 | (exit $ac_status); } && { | ||
24570 | test -z "$ac_c_werror_flag" || | ||
24571 | test ! -s conftest.err | ||
24572 | } && test -s conftest.$ac_objext; then | ||
24573 | ac_hi=$ac_mid | ||
24574 | else | ||
24575 | echo "$as_me: failed program was:" >&5 | ||
24576 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24577 | |||
24578 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
24579 | fi | ||
24580 | |||
24581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24582 | done | ||
24583 | case $ac_lo in | ||
24584 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | ||
24585 | '') if test "$ac_cv_type_short_int" = yes; then | ||
24586 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
24587 | See \`config.log' for more details." >&5 | ||
24588 | echo "$as_me: error: cannot compute sizeof (short int) | ||
24589 | See \`config.log' for more details." >&2;} | ||
24590 | { (exit 77); exit 77; }; } | ||
24591 | else | ||
24592 | ac_cv_sizeof_short_int=0 | ||
24593 | fi ;; | ||
24594 | esac | ||
24595 | else | ||
24596 | cat >conftest.$ac_ext <<_ACEOF | ||
24597 | /* confdefs.h. */ | ||
24598 | _ACEOF | ||
24599 | cat confdefs.h >>conftest.$ac_ext | ||
24600 | cat >>conftest.$ac_ext <<_ACEOF | ||
24601 | /* end confdefs.h. */ | ||
24602 | $ac_includes_default | ||
24603 | typedef short int ac__type_sizeof_; | ||
24604 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
24605 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
24606 | #include <stdio.h> | ||
24607 | #include <stdlib.h> | ||
24608 | int | ||
24609 | main () | ||
24610 | { | ||
24611 | |||
24612 | FILE *f = fopen ("conftest.val", "w"); | ||
24613 | if (! f) | ||
24614 | return 1; | ||
24615 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
24616 | { | ||
24617 | long int i = longval (); | ||
24618 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
24619 | return 1; | ||
24620 | fprintf (f, "%ld\n", i); | ||
24621 | } | ||
24622 | else | ||
24623 | { | ||
24624 | unsigned long int i = ulongval (); | ||
24625 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
24626 | return 1; | ||
24627 | fprintf (f, "%lu\n", i); | ||
24628 | } | ||
24629 | return ferror (f) || fclose (f) != 0; | ||
24630 | |||
24631 | ; | ||
24632 | return 0; | ||
24633 | } | ||
24634 | _ACEOF | ||
24635 | rm -f conftest$ac_exeext | ||
24636 | if { (ac_try="$ac_link" | ||
24637 | case "(($ac_try" in | ||
24638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24639 | *) ac_try_echo=$ac_try;; | ||
24640 | esac | ||
24641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24642 | (eval "$ac_link") 2>&5 | ||
24643 | ac_status=$? | ||
24644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24645 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
24646 | { (case "(($ac_try" in | ||
24647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24648 | *) ac_try_echo=$ac_try;; | ||
24649 | esac | ||
24650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24651 | (eval "$ac_try") 2>&5 | ||
24652 | ac_status=$? | ||
24653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24654 | (exit $ac_status); }; }; then | ||
24655 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
24656 | else | ||
24657 | echo "$as_me: program exited with status $ac_status" >&5 | ||
24658 | echo "$as_me: failed program was:" >&5 | ||
24659 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24660 | |||
24661 | ( exit $ac_status ) | ||
24662 | if test "$ac_cv_type_short_int" = yes; then | ||
24663 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
24664 | See \`config.log' for more details." >&5 | ||
24665 | echo "$as_me: error: cannot compute sizeof (short int) | ||
24666 | See \`config.log' for more details." >&2;} | ||
24667 | { (exit 77); exit 77; }; } | ||
24668 | else | ||
24669 | ac_cv_sizeof_short_int=0 | ||
24670 | fi | ||
24671 | fi | ||
24672 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
24673 | fi | ||
24674 | rm -f conftest.val | ||
24675 | fi | ||
24676 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | ||
24677 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; } | ||
24678 | |||
24679 | |||
24680 | |||
24681 | cat >>confdefs.h <<_ACEOF | ||
24682 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
24683 | _ACEOF | ||
24684 | |||
24685 | |||
24686 | { echo "$as_me:$LINENO: checking for int" >&5 | ||
24687 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | ||
24688 | if test "${ac_cv_type_int+set}" = set; then | ||
24689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24690 | else | ||
24691 | cat >conftest.$ac_ext <<_ACEOF | ||
24692 | /* confdefs.h. */ | ||
24693 | _ACEOF | ||
24694 | cat confdefs.h >>conftest.$ac_ext | ||
24695 | cat >>conftest.$ac_ext <<_ACEOF | ||
24696 | /* end confdefs.h. */ | ||
24697 | $ac_includes_default | ||
24698 | typedef int ac__type_new_; | ||
24699 | int | ||
24700 | main () | ||
24701 | { | ||
24702 | if ((ac__type_new_ *) 0) | ||
24703 | return 0; | ||
24704 | if (sizeof (ac__type_new_)) | ||
24705 | return 0; | ||
24706 | ; | ||
24707 | return 0; | ||
24708 | } | ||
24709 | _ACEOF | ||
24710 | rm -f conftest.$ac_objext | ||
24711 | if { (ac_try="$ac_compile" | ||
24712 | case "(($ac_try" in | ||
24713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24714 | *) ac_try_echo=$ac_try;; | ||
24715 | esac | ||
24716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24717 | (eval "$ac_compile") 2>conftest.er1 | ||
24718 | ac_status=$? | ||
24719 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24720 | rm -f conftest.er1 | ||
24721 | cat conftest.err >&5 | ||
24722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24723 | (exit $ac_status); } && { | ||
24724 | test -z "$ac_c_werror_flag" || | ||
24725 | test ! -s conftest.err | ||
24726 | } && test -s conftest.$ac_objext; then | ||
24727 | ac_cv_type_int=yes | ||
24728 | else | ||
24729 | echo "$as_me: failed program was:" >&5 | ||
24730 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24731 | |||
24732 | ac_cv_type_int=no | ||
24733 | fi | ||
24734 | |||
24735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24736 | fi | ||
24737 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | ||
24738 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | ||
24739 | |||
24740 | # The cast to long int works around a bug in the HP C Compiler | ||
24741 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
24742 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
24743 | # This bug is HP SR number 8606223364. | ||
24744 | { echo "$as_me:$LINENO: checking size of int" >&5 | ||
24745 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | ||
24746 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
24747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24748 | else | ||
24749 | if test "$cross_compiling" = yes; then | ||
24750 | # Depending upon the size, compute the lo and hi bounds. | ||
24751 | cat >conftest.$ac_ext <<_ACEOF | ||
24752 | /* confdefs.h. */ | ||
24753 | _ACEOF | ||
24754 | cat confdefs.h >>conftest.$ac_ext | ||
24755 | cat >>conftest.$ac_ext <<_ACEOF | ||
24756 | /* end confdefs.h. */ | ||
24757 | $ac_includes_default | ||
24758 | typedef int ac__type_sizeof_; | ||
24759 | int | ||
24760 | main () | ||
24761 | { | ||
24762 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
24763 | test_array [0] = 0 | ||
24764 | |||
24765 | ; | ||
24766 | return 0; | ||
24767 | } | ||
24768 | _ACEOF | ||
24769 | rm -f conftest.$ac_objext | ||
24770 | if { (ac_try="$ac_compile" | ||
24771 | case "(($ac_try" in | ||
24772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24773 | *) ac_try_echo=$ac_try;; | ||
24774 | esac | ||
24775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24776 | (eval "$ac_compile") 2>conftest.er1 | ||
24777 | ac_status=$? | ||
24778 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24779 | rm -f conftest.er1 | ||
24780 | cat conftest.err >&5 | ||
24781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24782 | (exit $ac_status); } && { | ||
24783 | test -z "$ac_c_werror_flag" || | ||
24784 | test ! -s conftest.err | ||
24785 | } && test -s conftest.$ac_objext; then | ||
24786 | ac_lo=0 ac_mid=0 | ||
24787 | while :; do | ||
24788 | cat >conftest.$ac_ext <<_ACEOF | ||
24789 | /* confdefs.h. */ | ||
24790 | _ACEOF | ||
24791 | cat confdefs.h >>conftest.$ac_ext | ||
24792 | cat >>conftest.$ac_ext <<_ACEOF | ||
24793 | /* end confdefs.h. */ | ||
24794 | $ac_includes_default | ||
24795 | typedef int ac__type_sizeof_; | ||
24796 | int | ||
24797 | main () | ||
24798 | { | ||
24799 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
24800 | test_array [0] = 0 | ||
24801 | |||
24802 | ; | ||
24803 | return 0; | ||
24804 | } | ||
24805 | _ACEOF | ||
24806 | rm -f conftest.$ac_objext | ||
24807 | if { (ac_try="$ac_compile" | ||
24808 | case "(($ac_try" in | ||
24809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24810 | *) ac_try_echo=$ac_try;; | ||
24811 | esac | ||
24812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24813 | (eval "$ac_compile") 2>conftest.er1 | ||
24814 | ac_status=$? | ||
24815 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24816 | rm -f conftest.er1 | ||
24817 | cat conftest.err >&5 | ||
24818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24819 | (exit $ac_status); } && { | ||
24820 | test -z "$ac_c_werror_flag" || | ||
24821 | test ! -s conftest.err | ||
24822 | } && test -s conftest.$ac_objext; then | ||
24823 | ac_hi=$ac_mid; break | ||
24824 | else | ||
24825 | echo "$as_me: failed program was:" >&5 | ||
24826 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24827 | |||
24828 | ac_lo=`expr $ac_mid + 1` | ||
24829 | if test $ac_lo -le $ac_mid; then | ||
24830 | ac_lo= ac_hi= | ||
24831 | break | ||
24832 | fi | ||
24833 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
24834 | fi | ||
24835 | |||
24836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24837 | done | ||
24838 | else | ||
24839 | echo "$as_me: failed program was:" >&5 | ||
24840 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24841 | |||
24842 | cat >conftest.$ac_ext <<_ACEOF | ||
24843 | /* confdefs.h. */ | ||
24844 | _ACEOF | ||
24845 | cat confdefs.h >>conftest.$ac_ext | ||
24846 | cat >>conftest.$ac_ext <<_ACEOF | ||
24847 | /* end confdefs.h. */ | ||
24848 | $ac_includes_default | ||
24849 | typedef int ac__type_sizeof_; | ||
24850 | int | ||
24851 | main () | ||
24852 | { | ||
24853 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
24854 | test_array [0] = 0 | ||
24855 | |||
24856 | ; | ||
24857 | return 0; | ||
24858 | } | ||
24859 | _ACEOF | ||
24860 | rm -f conftest.$ac_objext | ||
24861 | if { (ac_try="$ac_compile" | ||
24862 | case "(($ac_try" in | ||
24863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24864 | *) ac_try_echo=$ac_try;; | ||
24865 | esac | ||
24866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24867 | (eval "$ac_compile") 2>conftest.er1 | ||
24868 | ac_status=$? | ||
24869 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24870 | rm -f conftest.er1 | ||
24871 | cat conftest.err >&5 | ||
24872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24873 | (exit $ac_status); } && { | ||
24874 | test -z "$ac_c_werror_flag" || | ||
24875 | test ! -s conftest.err | ||
24876 | } && test -s conftest.$ac_objext; then | ||
24877 | ac_hi=-1 ac_mid=-1 | ||
24878 | while :; do | ||
24879 | cat >conftest.$ac_ext <<_ACEOF | ||
24880 | /* confdefs.h. */ | ||
24881 | _ACEOF | ||
24882 | cat confdefs.h >>conftest.$ac_ext | ||
24883 | cat >>conftest.$ac_ext <<_ACEOF | ||
24884 | /* end confdefs.h. */ | ||
24885 | $ac_includes_default | ||
24886 | typedef int ac__type_sizeof_; | ||
24887 | int | ||
24888 | main () | ||
24889 | { | ||
24890 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
24891 | test_array [0] = 0 | ||
24892 | |||
24893 | ; | ||
24894 | return 0; | ||
24895 | } | ||
24896 | _ACEOF | ||
24897 | rm -f conftest.$ac_objext | ||
24898 | if { (ac_try="$ac_compile" | ||
24899 | case "(($ac_try" in | ||
24900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24901 | *) ac_try_echo=$ac_try;; | ||
24902 | esac | ||
24903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24904 | (eval "$ac_compile") 2>conftest.er1 | ||
24905 | ac_status=$? | ||
24906 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24907 | rm -f conftest.er1 | ||
24908 | cat conftest.err >&5 | ||
24909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24910 | (exit $ac_status); } && { | ||
24911 | test -z "$ac_c_werror_flag" || | ||
24912 | test ! -s conftest.err | ||
24913 | } && test -s conftest.$ac_objext; then | ||
24914 | ac_lo=$ac_mid; break | ||
24915 | else | ||
24916 | echo "$as_me: failed program was:" >&5 | ||
24917 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24918 | |||
24919 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
24920 | if test $ac_mid -le $ac_hi; then | ||
24921 | ac_lo= ac_hi= | ||
24922 | break | ||
24923 | fi | ||
24924 | ac_mid=`expr 2 '*' $ac_mid` | ||
24925 | fi | ||
24926 | |||
24927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24928 | done | ||
24929 | else | ||
24930 | echo "$as_me: failed program was:" >&5 | ||
24931 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24932 | |||
24933 | ac_lo= ac_hi= | ||
24934 | fi | ||
24935 | |||
24936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24937 | fi | ||
24938 | |||
24939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24940 | # Binary search between lo and hi bounds. | ||
24941 | while test "x$ac_lo" != "x$ac_hi"; do | ||
24942 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
24943 | cat >conftest.$ac_ext <<_ACEOF | ||
24944 | /* confdefs.h. */ | ||
24945 | _ACEOF | ||
24946 | cat confdefs.h >>conftest.$ac_ext | ||
24947 | cat >>conftest.$ac_ext <<_ACEOF | ||
24948 | /* end confdefs.h. */ | ||
24949 | $ac_includes_default | ||
24950 | typedef int ac__type_sizeof_; | ||
24951 | int | ||
24952 | main () | ||
24953 | { | ||
24954 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
24955 | test_array [0] = 0 | ||
24956 | |||
24957 | ; | ||
24958 | return 0; | ||
24959 | } | ||
24960 | _ACEOF | ||
24961 | rm -f conftest.$ac_objext | ||
24962 | if { (ac_try="$ac_compile" | ||
24963 | case "(($ac_try" in | ||
24964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24965 | *) ac_try_echo=$ac_try;; | ||
24966 | esac | ||
24967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24968 | (eval "$ac_compile") 2>conftest.er1 | ||
24969 | ac_status=$? | ||
24970 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24971 | rm -f conftest.er1 | ||
24972 | cat conftest.err >&5 | ||
24973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24974 | (exit $ac_status); } && { | ||
24975 | test -z "$ac_c_werror_flag" || | ||
24976 | test ! -s conftest.err | ||
24977 | } && test -s conftest.$ac_objext; then | ||
24978 | ac_hi=$ac_mid | ||
24979 | else | ||
24980 | echo "$as_me: failed program was:" >&5 | ||
24981 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24982 | |||
24983 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
24984 | fi | ||
24985 | |||
24986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24987 | done | ||
24988 | case $ac_lo in | ||
24989 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
24990 | '') if test "$ac_cv_type_int" = yes; then | ||
24991 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
24992 | See \`config.log' for more details." >&5 | ||
24993 | echo "$as_me: error: cannot compute sizeof (int) | ||
24994 | See \`config.log' for more details." >&2;} | ||
24995 | { (exit 77); exit 77; }; } | ||
24996 | else | ||
24997 | ac_cv_sizeof_int=0 | ||
24998 | fi ;; | ||
24999 | esac | ||
25000 | else | ||
25001 | cat >conftest.$ac_ext <<_ACEOF | ||
25002 | /* confdefs.h. */ | ||
25003 | _ACEOF | ||
25004 | cat confdefs.h >>conftest.$ac_ext | ||
25005 | cat >>conftest.$ac_ext <<_ACEOF | ||
25006 | /* end confdefs.h. */ | ||
25007 | $ac_includes_default | ||
25008 | typedef int ac__type_sizeof_; | ||
25009 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
25010 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
25011 | #include <stdio.h> | ||
25012 | #include <stdlib.h> | ||
25013 | int | ||
25014 | main () | ||
25015 | { | ||
25016 | |||
25017 | FILE *f = fopen ("conftest.val", "w"); | ||
25018 | if (! f) | ||
25019 | return 1; | ||
25020 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
25021 | { | ||
25022 | long int i = longval (); | ||
25023 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
25024 | return 1; | ||
25025 | fprintf (f, "%ld\n", i); | ||
25026 | } | ||
25027 | else | ||
25028 | { | ||
25029 | unsigned long int i = ulongval (); | ||
25030 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
25031 | return 1; | ||
25032 | fprintf (f, "%lu\n", i); | ||
25033 | } | ||
25034 | return ferror (f) || fclose (f) != 0; | ||
25035 | |||
25036 | ; | ||
25037 | return 0; | ||
25038 | } | ||
25039 | _ACEOF | ||
25040 | rm -f conftest$ac_exeext | ||
25041 | if { (ac_try="$ac_link" | ||
25042 | case "(($ac_try" in | ||
25043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25044 | *) ac_try_echo=$ac_try;; | ||
25045 | esac | ||
25046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25047 | (eval "$ac_link") 2>&5 | ||
25048 | ac_status=$? | ||
25049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25050 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
25051 | { (case "(($ac_try" in | ||
25052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25053 | *) ac_try_echo=$ac_try;; | ||
25054 | esac | ||
25055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25056 | (eval "$ac_try") 2>&5 | ||
25057 | ac_status=$? | ||
25058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25059 | (exit $ac_status); }; }; then | ||
25060 | ac_cv_sizeof_int=`cat conftest.val` | ||
25061 | else | ||
25062 | echo "$as_me: program exited with status $ac_status" >&5 | ||
25063 | echo "$as_me: failed program was:" >&5 | ||
25064 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25065 | |||
25066 | ( exit $ac_status ) | ||
25067 | if test "$ac_cv_type_int" = yes; then | ||
25068 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
25069 | See \`config.log' for more details." >&5 | ||
25070 | echo "$as_me: error: cannot compute sizeof (int) | ||
25071 | See \`config.log' for more details." >&2;} | ||
25072 | { (exit 77); exit 77; }; } | ||
25073 | else | ||
25074 | ac_cv_sizeof_int=0 | ||
25075 | fi | ||
25076 | fi | ||
25077 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
25078 | fi | ||
25079 | rm -f conftest.val | ||
25080 | fi | ||
25081 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
25082 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | ||
25083 | |||
25084 | |||
25085 | |||
25086 | cat >>confdefs.h <<_ACEOF | ||
25087 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
25088 | _ACEOF | ||
25089 | |||
25090 | |||
25091 | { echo "$as_me:$LINENO: checking for long int" >&5 | ||
25092 | echo $ECHO_N "checking for long int... $ECHO_C" >&6; } | ||
25093 | if test "${ac_cv_type_long_int+set}" = set; then | ||
25094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25095 | else | ||
25096 | cat >conftest.$ac_ext <<_ACEOF | ||
25097 | /* confdefs.h. */ | ||
25098 | _ACEOF | ||
25099 | cat confdefs.h >>conftest.$ac_ext | ||
25100 | cat >>conftest.$ac_ext <<_ACEOF | ||
25101 | /* end confdefs.h. */ | ||
25102 | $ac_includes_default | ||
25103 | typedef long int ac__type_new_; | ||
25104 | int | ||
25105 | main () | ||
25106 | { | ||
25107 | if ((ac__type_new_ *) 0) | ||
25108 | return 0; | ||
25109 | if (sizeof (ac__type_new_)) | ||
25110 | return 0; | ||
25111 | ; | ||
25112 | return 0; | ||
25113 | } | ||
25114 | _ACEOF | ||
25115 | rm -f conftest.$ac_objext | ||
25116 | if { (ac_try="$ac_compile" | ||
25117 | case "(($ac_try" in | ||
25118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25119 | *) ac_try_echo=$ac_try;; | ||
25120 | esac | ||
25121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25122 | (eval "$ac_compile") 2>conftest.er1 | ||
25123 | ac_status=$? | ||
25124 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25125 | rm -f conftest.er1 | ||
25126 | cat conftest.err >&5 | ||
25127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25128 | (exit $ac_status); } && { | ||
25129 | test -z "$ac_c_werror_flag" || | ||
25130 | test ! -s conftest.err | ||
25131 | } && test -s conftest.$ac_objext; then | ||
25132 | ac_cv_type_long_int=yes | ||
25133 | else | ||
25134 | echo "$as_me: failed program was:" >&5 | ||
25135 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25136 | |||
25137 | ac_cv_type_long_int=no | ||
25138 | fi | ||
25139 | |||
25140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25141 | fi | ||
25142 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | ||
25143 | echo "${ECHO_T}$ac_cv_type_long_int" >&6; } | ||
25144 | |||
25145 | # The cast to long int works around a bug in the HP C Compiler | ||
25146 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
25147 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
25148 | # This bug is HP SR number 8606223364. | ||
25149 | { echo "$as_me:$LINENO: checking size of long int" >&5 | ||
25150 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6; } | ||
25151 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
25152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25153 | else | ||
25154 | if test "$cross_compiling" = yes; then | ||
25155 | # Depending upon the size, compute the lo and hi bounds. | ||
25156 | cat >conftest.$ac_ext <<_ACEOF | ||
25157 | /* confdefs.h. */ | ||
25158 | _ACEOF | ||
25159 | cat confdefs.h >>conftest.$ac_ext | ||
25160 | cat >>conftest.$ac_ext <<_ACEOF | ||
25161 | /* end confdefs.h. */ | ||
25162 | $ac_includes_default | ||
25163 | typedef long int ac__type_sizeof_; | ||
25164 | int | ||
25165 | main () | ||
25166 | { | ||
25167 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
25168 | test_array [0] = 0 | ||
25169 | |||
25170 | ; | ||
25171 | return 0; | ||
25172 | } | ||
25173 | _ACEOF | ||
25174 | rm -f conftest.$ac_objext | ||
25175 | if { (ac_try="$ac_compile" | ||
25176 | case "(($ac_try" in | ||
25177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25178 | *) ac_try_echo=$ac_try;; | ||
25179 | esac | ||
25180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25181 | (eval "$ac_compile") 2>conftest.er1 | ||
25182 | ac_status=$? | ||
25183 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25184 | rm -f conftest.er1 | ||
25185 | cat conftest.err >&5 | ||
25186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25187 | (exit $ac_status); } && { | ||
25188 | test -z "$ac_c_werror_flag" || | ||
25189 | test ! -s conftest.err | ||
25190 | } && test -s conftest.$ac_objext; then | ||
25191 | ac_lo=0 ac_mid=0 | ||
25192 | while :; do | ||
25193 | cat >conftest.$ac_ext <<_ACEOF | ||
25194 | /* confdefs.h. */ | ||
25195 | _ACEOF | ||
25196 | cat confdefs.h >>conftest.$ac_ext | ||
25197 | cat >>conftest.$ac_ext <<_ACEOF | ||
25198 | /* end confdefs.h. */ | ||
25199 | $ac_includes_default | ||
25200 | typedef long int ac__type_sizeof_; | ||
25201 | int | ||
25202 | main () | ||
25203 | { | ||
25204 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
25205 | test_array [0] = 0 | ||
25206 | |||
25207 | ; | ||
25208 | return 0; | ||
25209 | } | ||
25210 | _ACEOF | ||
25211 | rm -f conftest.$ac_objext | ||
25212 | if { (ac_try="$ac_compile" | ||
25213 | case "(($ac_try" in | ||
25214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25215 | *) ac_try_echo=$ac_try;; | ||
25216 | esac | ||
25217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25218 | (eval "$ac_compile") 2>conftest.er1 | ||
25219 | ac_status=$? | ||
25220 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25221 | rm -f conftest.er1 | ||
25222 | cat conftest.err >&5 | ||
25223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25224 | (exit $ac_status); } && { | ||
25225 | test -z "$ac_c_werror_flag" || | ||
25226 | test ! -s conftest.err | ||
25227 | } && test -s conftest.$ac_objext; then | ||
25228 | ac_hi=$ac_mid; break | ||
25229 | else | ||
25230 | echo "$as_me: failed program was:" >&5 | ||
25231 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25232 | |||
25233 | ac_lo=`expr $ac_mid + 1` | ||
25234 | if test $ac_lo -le $ac_mid; then | ||
25235 | ac_lo= ac_hi= | ||
25236 | break | ||
25237 | fi | ||
25238 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
25239 | fi | ||
25240 | |||
25241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25242 | done | ||
25243 | else | ||
25244 | echo "$as_me: failed program was:" >&5 | ||
25245 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25246 | |||
25247 | cat >conftest.$ac_ext <<_ACEOF | ||
25248 | /* confdefs.h. */ | ||
25249 | _ACEOF | ||
25250 | cat confdefs.h >>conftest.$ac_ext | ||
25251 | cat >>conftest.$ac_ext <<_ACEOF | ||
25252 | /* end confdefs.h. */ | ||
25253 | $ac_includes_default | ||
25254 | typedef long int ac__type_sizeof_; | ||
25255 | int | ||
25256 | main () | ||
25257 | { | ||
25258 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
25259 | test_array [0] = 0 | ||
25260 | |||
25261 | ; | ||
25262 | return 0; | ||
25263 | } | ||
25264 | _ACEOF | ||
25265 | rm -f conftest.$ac_objext | ||
25266 | if { (ac_try="$ac_compile" | ||
25267 | case "(($ac_try" in | ||
25268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25269 | *) ac_try_echo=$ac_try;; | ||
25270 | esac | ||
25271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25272 | (eval "$ac_compile") 2>conftest.er1 | ||
25273 | ac_status=$? | ||
25274 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25275 | rm -f conftest.er1 | ||
25276 | cat conftest.err >&5 | ||
25277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25278 | (exit $ac_status); } && { | ||
25279 | test -z "$ac_c_werror_flag" || | ||
25280 | test ! -s conftest.err | ||
25281 | } && test -s conftest.$ac_objext; then | ||
25282 | ac_hi=-1 ac_mid=-1 | ||
25283 | while :; do | ||
25284 | cat >conftest.$ac_ext <<_ACEOF | ||
25285 | /* confdefs.h. */ | ||
25286 | _ACEOF | ||
25287 | cat confdefs.h >>conftest.$ac_ext | ||
25288 | cat >>conftest.$ac_ext <<_ACEOF | ||
25289 | /* end confdefs.h. */ | ||
25290 | $ac_includes_default | ||
25291 | typedef long int ac__type_sizeof_; | ||
25292 | int | ||
25293 | main () | ||
25294 | { | ||
25295 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
25296 | test_array [0] = 0 | ||
25297 | |||
25298 | ; | ||
25299 | return 0; | ||
25300 | } | ||
25301 | _ACEOF | ||
25302 | rm -f conftest.$ac_objext | ||
25303 | if { (ac_try="$ac_compile" | ||
25304 | case "(($ac_try" in | ||
25305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25306 | *) ac_try_echo=$ac_try;; | ||
25307 | esac | ||
25308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25309 | (eval "$ac_compile") 2>conftest.er1 | ||
25310 | ac_status=$? | ||
25311 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25312 | rm -f conftest.er1 | ||
25313 | cat conftest.err >&5 | ||
25314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25315 | (exit $ac_status); } && { | ||
25316 | test -z "$ac_c_werror_flag" || | ||
25317 | test ! -s conftest.err | ||
25318 | } && test -s conftest.$ac_objext; then | ||
25319 | ac_lo=$ac_mid; break | ||
25320 | else | ||
25321 | echo "$as_me: failed program was:" >&5 | ||
25322 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25323 | |||
25324 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
25325 | if test $ac_mid -le $ac_hi; then | ||
25326 | ac_lo= ac_hi= | ||
25327 | break | ||
25328 | fi | ||
25329 | ac_mid=`expr 2 '*' $ac_mid` | ||
25330 | fi | ||
25331 | |||
25332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25333 | done | ||
25334 | else | ||
25335 | echo "$as_me: failed program was:" >&5 | ||
25336 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25337 | |||
25338 | ac_lo= ac_hi= | ||
25339 | fi | ||
25340 | |||
25341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25342 | fi | ||
25343 | |||
25344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25345 | # Binary search between lo and hi bounds. | ||
25346 | while test "x$ac_lo" != "x$ac_hi"; do | ||
25347 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
25348 | cat >conftest.$ac_ext <<_ACEOF | ||
25349 | /* confdefs.h. */ | ||
25350 | _ACEOF | ||
25351 | cat confdefs.h >>conftest.$ac_ext | ||
25352 | cat >>conftest.$ac_ext <<_ACEOF | ||
25353 | /* end confdefs.h. */ | ||
25354 | $ac_includes_default | ||
25355 | typedef long int ac__type_sizeof_; | ||
25356 | int | ||
25357 | main () | ||
25358 | { | ||
25359 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
25360 | test_array [0] = 0 | ||
25361 | |||
25362 | ; | ||
25363 | return 0; | ||
25364 | } | ||
25365 | _ACEOF | ||
25366 | rm -f conftest.$ac_objext | ||
25367 | if { (ac_try="$ac_compile" | ||
25368 | case "(($ac_try" in | ||
25369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25370 | *) ac_try_echo=$ac_try;; | ||
25371 | esac | ||
25372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25373 | (eval "$ac_compile") 2>conftest.er1 | ||
25374 | ac_status=$? | ||
25375 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25376 | rm -f conftest.er1 | ||
25377 | cat conftest.err >&5 | ||
25378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25379 | (exit $ac_status); } && { | ||
25380 | test -z "$ac_c_werror_flag" || | ||
25381 | test ! -s conftest.err | ||
25382 | } && test -s conftest.$ac_objext; then | ||
25383 | ac_hi=$ac_mid | ||
25384 | else | ||
25385 | echo "$as_me: failed program was:" >&5 | ||
25386 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25387 | |||
25388 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
25389 | fi | ||
25390 | |||
25391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25392 | done | ||
25393 | case $ac_lo in | ||
25394 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
25395 | '') if test "$ac_cv_type_long_int" = yes; then | ||
25396 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
25397 | See \`config.log' for more details." >&5 | ||
25398 | echo "$as_me: error: cannot compute sizeof (long int) | ||
25399 | See \`config.log' for more details." >&2;} | ||
25400 | { (exit 77); exit 77; }; } | ||
25401 | else | ||
25402 | ac_cv_sizeof_long_int=0 | ||
25403 | fi ;; | ||
25404 | esac | ||
25405 | else | ||
25406 | cat >conftest.$ac_ext <<_ACEOF | ||
25407 | /* confdefs.h. */ | ||
25408 | _ACEOF | ||
25409 | cat confdefs.h >>conftest.$ac_ext | ||
25410 | cat >>conftest.$ac_ext <<_ACEOF | ||
25411 | /* end confdefs.h. */ | ||
25412 | $ac_includes_default | ||
25413 | typedef long int ac__type_sizeof_; | ||
25414 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
25415 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
25416 | #include <stdio.h> | ||
25417 | #include <stdlib.h> | ||
25418 | int | ||
25419 | main () | ||
25420 | { | ||
25421 | |||
25422 | FILE *f = fopen ("conftest.val", "w"); | ||
25423 | if (! f) | ||
25424 | return 1; | ||
25425 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
25426 | { | ||
25427 | long int i = longval (); | ||
25428 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
25429 | return 1; | ||
25430 | fprintf (f, "%ld\n", i); | ||
25431 | } | ||
25432 | else | ||
25433 | { | ||
25434 | unsigned long int i = ulongval (); | ||
25435 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
25436 | return 1; | ||
25437 | fprintf (f, "%lu\n", i); | ||
25438 | } | ||
25439 | return ferror (f) || fclose (f) != 0; | ||
25440 | |||
25441 | ; | ||
25442 | return 0; | ||
25443 | } | ||
25444 | _ACEOF | ||
25445 | rm -f conftest$ac_exeext | ||
25446 | if { (ac_try="$ac_link" | ||
25447 | case "(($ac_try" in | ||
25448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25449 | *) ac_try_echo=$ac_try;; | ||
25450 | esac | ||
25451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25452 | (eval "$ac_link") 2>&5 | ||
25453 | ac_status=$? | ||
25454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25455 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
25456 | { (case "(($ac_try" in | ||
25457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25458 | *) ac_try_echo=$ac_try;; | ||
25459 | esac | ||
25460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25461 | (eval "$ac_try") 2>&5 | ||
25462 | ac_status=$? | ||
25463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25464 | (exit $ac_status); }; }; then | ||
25465 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
25466 | else | ||
25467 | echo "$as_me: program exited with status $ac_status" >&5 | ||
25468 | echo "$as_me: failed program was:" >&5 | ||
25469 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25470 | |||
25471 | ( exit $ac_status ) | ||
25472 | if test "$ac_cv_type_long_int" = yes; then | ||
25473 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
25474 | See \`config.log' for more details." >&5 | ||
25475 | echo "$as_me: error: cannot compute sizeof (long int) | ||
25476 | See \`config.log' for more details." >&2;} | ||
25477 | { (exit 77); exit 77; }; } | ||
25478 | else | ||
25479 | ac_cv_sizeof_long_int=0 | ||
25480 | fi | ||
25481 | fi | ||
25482 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
25483 | fi | ||
25484 | rm -f conftest.val | ||
25485 | fi | ||
25486 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
25487 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; } | ||
25488 | |||
25489 | |||
25490 | |||
25491 | cat >>confdefs.h <<_ACEOF | ||
25492 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
25493 | _ACEOF | ||
25494 | |||
25495 | |||
25496 | { echo "$as_me:$LINENO: checking for long long int" >&5 | ||
25497 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6; } | ||
25498 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
25499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25500 | else | ||
25501 | cat >conftest.$ac_ext <<_ACEOF | ||
25502 | /* confdefs.h. */ | ||
25503 | _ACEOF | ||
25504 | cat confdefs.h >>conftest.$ac_ext | ||
25505 | cat >>conftest.$ac_ext <<_ACEOF | ||
25506 | /* end confdefs.h. */ | ||
25507 | $ac_includes_default | ||
25508 | typedef long long int ac__type_new_; | ||
25509 | int | ||
25510 | main () | ||
25511 | { | ||
25512 | if ((ac__type_new_ *) 0) | ||
25513 | return 0; | ||
25514 | if (sizeof (ac__type_new_)) | ||
25515 | return 0; | ||
25516 | ; | ||
25517 | return 0; | ||
25518 | } | ||
25519 | _ACEOF | ||
25520 | rm -f conftest.$ac_objext | ||
25521 | if { (ac_try="$ac_compile" | ||
25522 | case "(($ac_try" in | ||
25523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25524 | *) ac_try_echo=$ac_try;; | ||
25525 | esac | ||
25526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25527 | (eval "$ac_compile") 2>conftest.er1 | ||
25528 | ac_status=$? | ||
25529 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25530 | rm -f conftest.er1 | ||
25531 | cat conftest.err >&5 | ||
25532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25533 | (exit $ac_status); } && { | ||
25534 | test -z "$ac_c_werror_flag" || | ||
25535 | test ! -s conftest.err | ||
25536 | } && test -s conftest.$ac_objext; then | ||
25537 | ac_cv_type_long_long_int=yes | ||
25538 | else | ||
25539 | echo "$as_me: failed program was:" >&5 | ||
25540 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25541 | |||
25542 | ac_cv_type_long_long_int=no | ||
25543 | fi | ||
25544 | |||
25545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25546 | fi | ||
25547 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | ||
25548 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; } | ||
25549 | |||
25550 | # The cast to long int works around a bug in the HP C Compiler | ||
25551 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
25552 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
25553 | # This bug is HP SR number 8606223364. | ||
25554 | { echo "$as_me:$LINENO: checking size of long long int" >&5 | ||
25555 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; } | ||
25556 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
25557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25558 | else | ||
25559 | if test "$cross_compiling" = yes; then | ||
25560 | # Depending upon the size, compute the lo and hi bounds. | ||
25561 | cat >conftest.$ac_ext <<_ACEOF | ||
25562 | /* confdefs.h. */ | ||
25563 | _ACEOF | ||
25564 | cat confdefs.h >>conftest.$ac_ext | ||
25565 | cat >>conftest.$ac_ext <<_ACEOF | ||
25566 | /* end confdefs.h. */ | ||
25567 | $ac_includes_default | ||
25568 | typedef long long int ac__type_sizeof_; | ||
25569 | int | ||
25570 | main () | ||
25571 | { | ||
25572 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
25573 | test_array [0] = 0 | ||
25574 | |||
25575 | ; | ||
25576 | return 0; | ||
25577 | } | ||
25578 | _ACEOF | ||
25579 | rm -f conftest.$ac_objext | ||
25580 | if { (ac_try="$ac_compile" | ||
25581 | case "(($ac_try" in | ||
25582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25583 | *) ac_try_echo=$ac_try;; | ||
25584 | esac | ||
25585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25586 | (eval "$ac_compile") 2>conftest.er1 | ||
25587 | ac_status=$? | ||
25588 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25589 | rm -f conftest.er1 | ||
25590 | cat conftest.err >&5 | ||
25591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25592 | (exit $ac_status); } && { | ||
25593 | test -z "$ac_c_werror_flag" || | ||
25594 | test ! -s conftest.err | ||
25595 | } && test -s conftest.$ac_objext; then | ||
25596 | ac_lo=0 ac_mid=0 | ||
25597 | while :; do | ||
25598 | cat >conftest.$ac_ext <<_ACEOF | ||
25599 | /* confdefs.h. */ | ||
25600 | _ACEOF | ||
25601 | cat confdefs.h >>conftest.$ac_ext | ||
25602 | cat >>conftest.$ac_ext <<_ACEOF | ||
25603 | /* end confdefs.h. */ | ||
25604 | $ac_includes_default | ||
25605 | typedef long long int ac__type_sizeof_; | ||
25606 | int | ||
25607 | main () | ||
25608 | { | ||
25609 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
25610 | test_array [0] = 0 | ||
25611 | |||
25612 | ; | ||
25613 | return 0; | ||
25614 | } | ||
25615 | _ACEOF | ||
25616 | rm -f conftest.$ac_objext | ||
25617 | if { (ac_try="$ac_compile" | ||
25618 | case "(($ac_try" in | ||
25619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25620 | *) ac_try_echo=$ac_try;; | ||
25621 | esac | ||
25622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25623 | (eval "$ac_compile") 2>conftest.er1 | ||
25624 | ac_status=$? | ||
25625 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25626 | rm -f conftest.er1 | ||
25627 | cat conftest.err >&5 | ||
25628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25629 | (exit $ac_status); } && { | ||
25630 | test -z "$ac_c_werror_flag" || | ||
25631 | test ! -s conftest.err | ||
25632 | } && test -s conftest.$ac_objext; then | ||
25633 | ac_hi=$ac_mid; break | ||
25634 | else | ||
25635 | echo "$as_me: failed program was:" >&5 | ||
25636 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25637 | |||
25638 | ac_lo=`expr $ac_mid + 1` | ||
25639 | if test $ac_lo -le $ac_mid; then | ||
25640 | ac_lo= ac_hi= | ||
25641 | break | ||
25642 | fi | ||
25643 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
25644 | fi | ||
25645 | |||
25646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25647 | done | ||
25648 | else | ||
25649 | echo "$as_me: failed program was:" >&5 | ||
25650 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25651 | |||
25652 | cat >conftest.$ac_ext <<_ACEOF | ||
25653 | /* confdefs.h. */ | ||
25654 | _ACEOF | ||
25655 | cat confdefs.h >>conftest.$ac_ext | ||
25656 | cat >>conftest.$ac_ext <<_ACEOF | ||
25657 | /* end confdefs.h. */ | ||
25658 | $ac_includes_default | ||
25659 | typedef long long int ac__type_sizeof_; | ||
25660 | int | ||
25661 | main () | ||
25662 | { | ||
25663 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
25664 | test_array [0] = 0 | ||
25665 | |||
25666 | ; | ||
25667 | return 0; | ||
25668 | } | ||
25669 | _ACEOF | ||
25670 | rm -f conftest.$ac_objext | ||
25671 | if { (ac_try="$ac_compile" | ||
25672 | case "(($ac_try" in | ||
25673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25674 | *) ac_try_echo=$ac_try;; | ||
25675 | esac | ||
25676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25677 | (eval "$ac_compile") 2>conftest.er1 | ||
25678 | ac_status=$? | ||
25679 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25680 | rm -f conftest.er1 | ||
25681 | cat conftest.err >&5 | ||
25682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25683 | (exit $ac_status); } && { | ||
25684 | test -z "$ac_c_werror_flag" || | ||
25685 | test ! -s conftest.err | ||
25686 | } && test -s conftest.$ac_objext; then | ||
25687 | ac_hi=-1 ac_mid=-1 | ||
25688 | while :; do | ||
25689 | cat >conftest.$ac_ext <<_ACEOF | ||
25690 | /* confdefs.h. */ | ||
25691 | _ACEOF | ||
25692 | cat confdefs.h >>conftest.$ac_ext | ||
25693 | cat >>conftest.$ac_ext <<_ACEOF | ||
25694 | /* end confdefs.h. */ | ||
25695 | $ac_includes_default | ||
25696 | typedef long long int ac__type_sizeof_; | ||
25697 | int | ||
25698 | main () | ||
25699 | { | ||
25700 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
25701 | test_array [0] = 0 | ||
25702 | |||
25703 | ; | ||
25704 | return 0; | ||
25705 | } | ||
25706 | _ACEOF | ||
25707 | rm -f conftest.$ac_objext | ||
25708 | if { (ac_try="$ac_compile" | ||
25709 | case "(($ac_try" in | ||
25710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25711 | *) ac_try_echo=$ac_try;; | ||
25712 | esac | ||
25713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25714 | (eval "$ac_compile") 2>conftest.er1 | ||
25715 | ac_status=$? | ||
25716 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25717 | rm -f conftest.er1 | ||
25718 | cat conftest.err >&5 | ||
25719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25720 | (exit $ac_status); } && { | ||
25721 | test -z "$ac_c_werror_flag" || | ||
25722 | test ! -s conftest.err | ||
25723 | } && test -s conftest.$ac_objext; then | ||
25724 | ac_lo=$ac_mid; break | ||
25725 | else | ||
25726 | echo "$as_me: failed program was:" >&5 | ||
25727 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25728 | |||
25729 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
25730 | if test $ac_mid -le $ac_hi; then | ||
25731 | ac_lo= ac_hi= | ||
25732 | break | ||
25733 | fi | ||
25734 | ac_mid=`expr 2 '*' $ac_mid` | ||
25735 | fi | ||
25736 | |||
25737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25738 | done | ||
25739 | else | ||
25740 | echo "$as_me: failed program was:" >&5 | ||
25741 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25742 | |||
25743 | ac_lo= ac_hi= | ||
25744 | fi | ||
25745 | |||
25746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25747 | fi | ||
25748 | |||
25749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25750 | # Binary search between lo and hi bounds. | ||
25751 | while test "x$ac_lo" != "x$ac_hi"; do | ||
25752 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
25753 | cat >conftest.$ac_ext <<_ACEOF | ||
25754 | /* confdefs.h. */ | ||
25755 | _ACEOF | ||
25756 | cat confdefs.h >>conftest.$ac_ext | ||
25757 | cat >>conftest.$ac_ext <<_ACEOF | ||
25758 | /* end confdefs.h. */ | ||
25759 | $ac_includes_default | ||
25760 | typedef long long int ac__type_sizeof_; | ||
25761 | int | ||
25762 | main () | ||
25763 | { | ||
25764 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
25765 | test_array [0] = 0 | ||
25766 | |||
25767 | ; | ||
25768 | return 0; | ||
25769 | } | ||
25770 | _ACEOF | ||
25771 | rm -f conftest.$ac_objext | ||
25772 | if { (ac_try="$ac_compile" | ||
25773 | case "(($ac_try" in | ||
25774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25775 | *) ac_try_echo=$ac_try;; | ||
25776 | esac | ||
25777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25778 | (eval "$ac_compile") 2>conftest.er1 | ||
25779 | ac_status=$? | ||
25780 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25781 | rm -f conftest.er1 | ||
25782 | cat conftest.err >&5 | ||
25783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25784 | (exit $ac_status); } && { | ||
25785 | test -z "$ac_c_werror_flag" || | ||
25786 | test ! -s conftest.err | ||
25787 | } && test -s conftest.$ac_objext; then | ||
25788 | ac_hi=$ac_mid | ||
25789 | else | ||
25790 | echo "$as_me: failed program was:" >&5 | ||
25791 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25792 | |||
25793 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
25794 | fi | ||
25795 | |||
25796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25797 | done | ||
25798 | case $ac_lo in | ||
25799 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | ||
25800 | '') if test "$ac_cv_type_long_long_int" = yes; then | ||
25801 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
25802 | See \`config.log' for more details." >&5 | ||
25803 | echo "$as_me: error: cannot compute sizeof (long long int) | ||
25804 | See \`config.log' for more details." >&2;} | ||
25805 | { (exit 77); exit 77; }; } | ||
25806 | else | ||
25807 | ac_cv_sizeof_long_long_int=0 | ||
25808 | fi ;; | ||
25809 | esac | ||
25810 | else | ||
25811 | cat >conftest.$ac_ext <<_ACEOF | ||
25812 | /* confdefs.h. */ | ||
25813 | _ACEOF | ||
25814 | cat confdefs.h >>conftest.$ac_ext | ||
25815 | cat >>conftest.$ac_ext <<_ACEOF | ||
25816 | /* end confdefs.h. */ | ||
25817 | $ac_includes_default | ||
25818 | typedef long long int ac__type_sizeof_; | ||
25819 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
25820 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
25821 | #include <stdio.h> | ||
25822 | #include <stdlib.h> | ||
25823 | int | ||
25824 | main () | ||
25825 | { | ||
25826 | |||
25827 | FILE *f = fopen ("conftest.val", "w"); | ||
25828 | if (! f) | ||
25829 | return 1; | ||
25830 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
25831 | { | ||
25832 | long int i = longval (); | ||
25833 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
25834 | return 1; | ||
25835 | fprintf (f, "%ld\n", i); | ||
25836 | } | ||
25837 | else | ||
25838 | { | ||
25839 | unsigned long int i = ulongval (); | ||
25840 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
25841 | return 1; | ||
25842 | fprintf (f, "%lu\n", i); | ||
25843 | } | ||
25844 | return ferror (f) || fclose (f) != 0; | ||
25845 | |||
25846 | ; | ||
25847 | return 0; | ||
25848 | } | ||
25849 | _ACEOF | ||
25850 | rm -f conftest$ac_exeext | ||
25851 | if { (ac_try="$ac_link" | ||
25852 | case "(($ac_try" in | ||
25853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25854 | *) ac_try_echo=$ac_try;; | ||
25855 | esac | ||
25856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25857 | (eval "$ac_link") 2>&5 | ||
25858 | ac_status=$? | ||
25859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25860 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
25861 | { (case "(($ac_try" in | ||
25862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25863 | *) ac_try_echo=$ac_try;; | ||
25864 | esac | ||
25865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25866 | (eval "$ac_try") 2>&5 | ||
25867 | ac_status=$? | ||
25868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25869 | (exit $ac_status); }; }; then | ||
25870 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
25871 | else | ||
25872 | echo "$as_me: program exited with status $ac_status" >&5 | ||
25873 | echo "$as_me: failed program was:" >&5 | ||
25874 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25875 | |||
25876 | ( exit $ac_status ) | ||
25877 | if test "$ac_cv_type_long_long_int" = yes; then | ||
25878 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
25879 | See \`config.log' for more details." >&5 | ||
25880 | echo "$as_me: error: cannot compute sizeof (long long int) | ||
25881 | See \`config.log' for more details." >&2;} | ||
25882 | { (exit 77); exit 77; }; } | ||
25883 | else | ||
25884 | ac_cv_sizeof_long_long_int=0 | ||
25885 | fi | ||
25886 | fi | ||
25887 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
25888 | fi | ||
25889 | rm -f conftest.val | ||
25890 | fi | ||
25891 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | ||
25892 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; } | ||
25893 | |||
25894 | |||
25895 | |||
25896 | cat >>confdefs.h <<_ACEOF | ||
25897 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
25898 | _ACEOF | ||
25899 | |||
25900 | |||
25901 | |||
25902 | # Sanity check long long for some platforms (AIX) | ||
25903 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
25904 | ac_cv_sizeof_long_long_int=0 | ||
25905 | fi | ||
25906 | |||
25907 | # compute LLONG_MIN and LLONG_MAX if we don't know them. | ||
25908 | if test -z "$have_llong_max"; then | ||
25909 | { echo "$as_me:$LINENO: checking for max value of long long" >&5 | ||
25910 | echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; } | ||
25911 | if test "$cross_compiling" = yes; then | ||
25912 | |||
25913 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
25914 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
25915 | |||
25916 | |||
25917 | else | ||
25918 | cat >conftest.$ac_ext <<_ACEOF | ||
25919 | /* confdefs.h. */ | ||
25920 | _ACEOF | ||
25921 | cat confdefs.h >>conftest.$ac_ext | ||
25922 | cat >>conftest.$ac_ext <<_ACEOF | ||
25923 | /* end confdefs.h. */ | ||
25924 | |||
25925 | #include <stdio.h> | ||
25926 | /* Why is this so damn hard? */ | ||
25927 | #ifdef __GNUC__ | ||
25928 | # undef __GNUC__ | ||
25929 | #endif | ||
25930 | #define __USE_ISOC99 | ||
25931 | #include <limits.h> | ||
25932 | #define DATA "conftest.llminmax" | ||
25933 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) | ||
25934 | |||
25935 | /* | ||
25936 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so | ||
25937 | * we do this the hard way. | ||
25938 | */ | ||
25939 | static int | ||
25940 | fprint_ll(FILE *f, long long n) | ||
25941 | { | ||
25942 | unsigned int i; | ||
25943 | int l[sizeof(long long) * 8]; | ||
25944 | |||
25945 | if (n < 0) | ||
25946 | if (fprintf(f, "-") < 0) | ||
25947 | return -1; | ||
25948 | for (i = 0; n != 0; i++) { | ||
25949 | l[i] = my_abs(n % 10); | ||
25950 | n /= 10; | ||
25951 | } | ||
25952 | do { | ||
25953 | if (fprintf(f, "%d", l[--i]) < 0) | ||
25954 | return -1; | ||
25955 | } while (i != 0); | ||
25956 | if (fprintf(f, " ") < 0) | ||
25957 | return -1; | ||
25958 | return 0; | ||
25959 | } | ||
25960 | |||
25961 | int | ||
25962 | main () | ||
25963 | { | ||
25964 | |||
25965 | FILE *f; | ||
25966 | long long i, llmin, llmax = 0; | ||
25967 | |||
25968 | if((f = fopen(DATA,"w")) == NULL) | ||
25969 | exit(1); | ||
25970 | |||
25971 | #if defined(LLONG_MIN) && defined(LLONG_MAX) | ||
25972 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); | ||
25973 | llmin = LLONG_MIN; | ||
25974 | llmax = LLONG_MAX; | ||
25975 | #else | ||
25976 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); | ||
25977 | /* This will work on one's complement and two's complement */ | ||
25978 | for (i = 1; i > llmax; i <<= 1, i++) | ||
25979 | llmax = i; | ||
25980 | llmin = llmax + 1LL; /* wrap */ | ||
25981 | #endif | ||
25982 | |||
25983 | /* Sanity check */ | ||
25984 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | ||
25985 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 | ||
25986 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { | ||
25987 | fprintf(f, "unknown unknown\n"); | ||
25988 | exit(2); | ||
25989 | } | ||
25990 | |||
25991 | if (fprint_ll(f, llmin) < 0) | ||
25992 | exit(3); | ||
25993 | if (fprint_ll(f, llmax) < 0) | ||
25994 | exit(4); | ||
25995 | if (fclose(f) < 0) | ||
25996 | exit(5); | ||
25997 | exit(0); | ||
25998 | |||
25999 | ; | ||
26000 | return 0; | ||
26001 | } | ||
26002 | _ACEOF | ||
26003 | rm -f conftest$ac_exeext | ||
26004 | if { (ac_try="$ac_link" | ||
26005 | case "(($ac_try" in | ||
26006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26007 | *) ac_try_echo=$ac_try;; | ||
26008 | esac | ||
26009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26010 | (eval "$ac_link") 2>&5 | ||
26011 | ac_status=$? | ||
26012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26013 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
26014 | { (case "(($ac_try" in | ||
26015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26016 | *) ac_try_echo=$ac_try;; | ||
26017 | esac | ||
26018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26019 | (eval "$ac_try") 2>&5 | ||
26020 | ac_status=$? | ||
26021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26022 | (exit $ac_status); }; }; then | ||
26023 | |||
26024 | llong_min=`$AWK '{print $1}' conftest.llminmax` | ||
26025 | llong_max=`$AWK '{print $2}' conftest.llminmax` | ||
26026 | |||
26027 | { echo "$as_me:$LINENO: result: $llong_max" >&5 | ||
26028 | echo "${ECHO_T}$llong_max" >&6; } | ||
26029 | |||
26030 | cat >>confdefs.h <<_ACEOF | ||
26031 | #define LLONG_MAX ${llong_max}LL | ||
26032 | _ACEOF | ||
26033 | |||
26034 | { echo "$as_me:$LINENO: checking for min value of long long" >&5 | ||
26035 | echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; } | ||
26036 | { echo "$as_me:$LINENO: result: $llong_min" >&5 | ||
26037 | echo "${ECHO_T}$llong_min" >&6; } | ||
26038 | |||
26039 | cat >>confdefs.h <<_ACEOF | ||
26040 | #define LLONG_MIN ${llong_min}LL | ||
26041 | _ACEOF | ||
26042 | |||
26043 | |||
26044 | else | ||
26045 | echo "$as_me: program exited with status $ac_status" >&5 | ||
26046 | echo "$as_me: failed program was:" >&5 | ||
26047 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26048 | |||
26049 | ( exit $ac_status ) | ||
26050 | |||
26051 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
26052 | echo "${ECHO_T}not found" >&6; } | ||
26053 | |||
26054 | fi | ||
26055 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
26056 | fi | ||
26057 | |||
26058 | |||
26059 | fi | ||
26060 | |||
26061 | |||
26062 | # More checks for data types | ||
26063 | { echo "$as_me:$LINENO: checking for u_int type" >&5 | ||
26064 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; } | ||
26065 | if test "${ac_cv_have_u_int+set}" = set; then | ||
26066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26067 | else | ||
26068 | |||
26069 | cat >conftest.$ac_ext <<_ACEOF | ||
26070 | /* confdefs.h. */ | ||
26071 | _ACEOF | ||
26072 | cat confdefs.h >>conftest.$ac_ext | ||
26073 | cat >>conftest.$ac_ext <<_ACEOF | ||
26074 | /* end confdefs.h. */ | ||
26075 | #include <sys/types.h> | ||
26076 | int | ||
26077 | main () | ||
26078 | { | ||
26079 | u_int a; a = 1; | ||
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_cv_have_u_int="yes" | ||
26102 | else | ||
26103 | echo "$as_me: failed program was:" >&5 | ||
26104 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26105 | |||
26106 | ac_cv_have_u_int="no" | ||
26107 | |||
26108 | fi | ||
26109 | |||
26110 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26111 | |||
26112 | fi | ||
26113 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | ||
26114 | echo "${ECHO_T}$ac_cv_have_u_int" >&6; } | ||
26115 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
26116 | |||
26117 | cat >>confdefs.h <<\_ACEOF | ||
26118 | #define HAVE_U_INT 1 | ||
26119 | _ACEOF | ||
26120 | |||
26121 | have_u_int=1 | ||
26122 | fi | ||
26123 | |||
26124 | { echo "$as_me:$LINENO: checking for intXX_t types" >&5 | ||
26125 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; } | ||
26126 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
26127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26128 | else | ||
26129 | |||
26130 | cat >conftest.$ac_ext <<_ACEOF | ||
26131 | /* confdefs.h. */ | ||
26132 | _ACEOF | ||
26133 | cat confdefs.h >>conftest.$ac_ext | ||
26134 | cat >>conftest.$ac_ext <<_ACEOF | ||
26135 | /* end confdefs.h. */ | ||
26136 | #include <sys/types.h> | ||
26137 | int | ||
26138 | main () | ||
26139 | { | ||
26140 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
26141 | ; | ||
26142 | return 0; | ||
26143 | } | ||
26144 | _ACEOF | ||
26145 | rm -f conftest.$ac_objext | ||
26146 | if { (ac_try="$ac_compile" | ||
26147 | case "(($ac_try" in | ||
26148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26149 | *) ac_try_echo=$ac_try;; | ||
26150 | esac | ||
26151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26152 | (eval "$ac_compile") 2>conftest.er1 | ||
26153 | ac_status=$? | ||
26154 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26155 | rm -f conftest.er1 | ||
26156 | cat conftest.err >&5 | ||
26157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26158 | (exit $ac_status); } && { | ||
26159 | test -z "$ac_c_werror_flag" || | ||
26160 | test ! -s conftest.err | ||
26161 | } && test -s conftest.$ac_objext; then | ||
26162 | ac_cv_have_intxx_t="yes" | ||
26163 | else | ||
26164 | echo "$as_me: failed program was:" >&5 | ||
26165 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26166 | |||
26167 | ac_cv_have_intxx_t="no" | ||
26168 | |||
26169 | fi | ||
26170 | |||
26171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26172 | |||
26173 | fi | ||
26174 | { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | ||
26175 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; } | ||
26176 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
26177 | |||
26178 | cat >>confdefs.h <<\_ACEOF | ||
26179 | #define HAVE_INTXX_T 1 | ||
26180 | _ACEOF | ||
26181 | |||
26182 | have_intxx_t=1 | ||
26183 | fi | ||
26184 | |||
26185 | if (test -z "$have_intxx_t" && \ | ||
26186 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
26187 | then | ||
26188 | { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | ||
26189 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; } | ||
26190 | cat >conftest.$ac_ext <<_ACEOF | ||
26191 | /* confdefs.h. */ | ||
26192 | _ACEOF | ||
26193 | cat confdefs.h >>conftest.$ac_ext | ||
26194 | cat >>conftest.$ac_ext <<_ACEOF | ||
26195 | /* end confdefs.h. */ | ||
26196 | #include <stdint.h> | ||
26197 | int | ||
26198 | main () | ||
26199 | { | ||
26200 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
26201 | ; | ||
26202 | return 0; | ||
26203 | } | ||
26204 | _ACEOF | ||
26205 | rm -f conftest.$ac_objext | ||
26206 | if { (ac_try="$ac_compile" | ||
26207 | case "(($ac_try" in | ||
26208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26209 | *) ac_try_echo=$ac_try;; | ||
26210 | esac | ||
26211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26212 | (eval "$ac_compile") 2>conftest.er1 | ||
26213 | ac_status=$? | ||
26214 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26215 | rm -f conftest.er1 | ||
26216 | cat conftest.err >&5 | ||
26217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26218 | (exit $ac_status); } && { | ||
26219 | test -z "$ac_c_werror_flag" || | ||
26220 | test ! -s conftest.err | ||
26221 | } && test -s conftest.$ac_objext; then | ||
26222 | |||
26223 | cat >>confdefs.h <<\_ACEOF | ||
26224 | #define HAVE_INTXX_T 1 | ||
26225 | _ACEOF | ||
26226 | |||
26227 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26228 | echo "${ECHO_T}yes" >&6; } | ||
26229 | |||
26230 | else | ||
26231 | echo "$as_me: failed program was:" >&5 | ||
26232 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26233 | |||
26234 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26235 | echo "${ECHO_T}no" >&6; } | ||
26236 | |||
26237 | fi | ||
26238 | |||
26239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26240 | fi | ||
26241 | |||
26242 | { echo "$as_me:$LINENO: checking for int64_t type" >&5 | ||
26243 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; } | ||
26244 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
26245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26246 | else | ||
26247 | |||
26248 | cat >conftest.$ac_ext <<_ACEOF | ||
26249 | /* confdefs.h. */ | ||
26250 | _ACEOF | ||
26251 | cat confdefs.h >>conftest.$ac_ext | ||
26252 | cat >>conftest.$ac_ext <<_ACEOF | ||
26253 | /* end confdefs.h. */ | ||
26254 | |||
26255 | #include <sys/types.h> | ||
26256 | #ifdef HAVE_STDINT_H | ||
26257 | # include <stdint.h> | ||
26258 | #endif | ||
26259 | #include <sys/socket.h> | ||
26260 | #ifdef HAVE_SYS_BITYPES_H | ||
26261 | # include <sys/bitypes.h> | ||
26262 | #endif | ||
26263 | |||
26264 | int | ||
26265 | main () | ||
26266 | { | ||
26267 | |||
26268 | int64_t a; a = 1; | ||
26269 | |||
26270 | ; | ||
26271 | return 0; | ||
26272 | } | ||
26273 | _ACEOF | ||
26274 | rm -f conftest.$ac_objext | ||
26275 | if { (ac_try="$ac_compile" | ||
26276 | case "(($ac_try" in | ||
26277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26278 | *) ac_try_echo=$ac_try;; | ||
26279 | esac | ||
26280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26281 | (eval "$ac_compile") 2>conftest.er1 | ||
26282 | ac_status=$? | ||
26283 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26284 | rm -f conftest.er1 | ||
26285 | cat conftest.err >&5 | ||
26286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26287 | (exit $ac_status); } && { | ||
26288 | test -z "$ac_c_werror_flag" || | ||
26289 | test ! -s conftest.err | ||
26290 | } && test -s conftest.$ac_objext; then | ||
26291 | ac_cv_have_int64_t="yes" | ||
26292 | else | ||
26293 | echo "$as_me: failed program was:" >&5 | ||
26294 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26295 | |||
26296 | ac_cv_have_int64_t="no" | ||
26297 | |||
26298 | fi | ||
26299 | |||
26300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26301 | |||
26302 | fi | ||
26303 | { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | ||
26304 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6; } | ||
26305 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
26306 | |||
26307 | cat >>confdefs.h <<\_ACEOF | ||
26308 | #define HAVE_INT64_T 1 | ||
26309 | _ACEOF | ||
26310 | |||
26311 | fi | ||
26312 | |||
26313 | { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | ||
26314 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; } | ||
26315 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
26316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26317 | else | ||
26318 | |||
26319 | cat >conftest.$ac_ext <<_ACEOF | ||
26320 | /* confdefs.h. */ | ||
26321 | _ACEOF | ||
26322 | cat confdefs.h >>conftest.$ac_ext | ||
26323 | cat >>conftest.$ac_ext <<_ACEOF | ||
26324 | /* end confdefs.h. */ | ||
26325 | #include <sys/types.h> | ||
26326 | int | ||
26327 | main () | ||
26328 | { | ||
26329 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
26330 | ; | ||
26331 | return 0; | ||
26332 | } | ||
26333 | _ACEOF | ||
26334 | rm -f conftest.$ac_objext | ||
26335 | if { (ac_try="$ac_compile" | ||
26336 | case "(($ac_try" in | ||
26337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26338 | *) ac_try_echo=$ac_try;; | ||
26339 | esac | ||
26340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26341 | (eval "$ac_compile") 2>conftest.er1 | ||
26342 | ac_status=$? | ||
26343 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26344 | rm -f conftest.er1 | ||
26345 | cat conftest.err >&5 | ||
26346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26347 | (exit $ac_status); } && { | ||
26348 | test -z "$ac_c_werror_flag" || | ||
26349 | test ! -s conftest.err | ||
26350 | } && test -s conftest.$ac_objext; then | ||
26351 | ac_cv_have_u_intxx_t="yes" | ||
26352 | else | ||
26353 | echo "$as_me: failed program was:" >&5 | ||
26354 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26355 | |||
26356 | ac_cv_have_u_intxx_t="no" | ||
26357 | |||
26358 | fi | ||
26359 | |||
26360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26361 | |||
26362 | fi | ||
26363 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | ||
26364 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; } | ||
26365 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
26366 | |||
26367 | cat >>confdefs.h <<\_ACEOF | ||
26368 | #define HAVE_U_INTXX_T 1 | ||
26369 | _ACEOF | ||
26370 | |||
26371 | have_u_intxx_t=1 | ||
26372 | fi | ||
26373 | |||
26374 | if test -z "$have_u_intxx_t" ; then | ||
26375 | { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | ||
26376 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; } | ||
26377 | cat >conftest.$ac_ext <<_ACEOF | ||
26378 | /* confdefs.h. */ | ||
26379 | _ACEOF | ||
26380 | cat confdefs.h >>conftest.$ac_ext | ||
26381 | cat >>conftest.$ac_ext <<_ACEOF | ||
26382 | /* end confdefs.h. */ | ||
26383 | #include <sys/socket.h> | ||
26384 | int | ||
26385 | main () | ||
26386 | { | ||
26387 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
26388 | ; | ||
26389 | return 0; | ||
26390 | } | ||
26391 | _ACEOF | ||
26392 | rm -f conftest.$ac_objext | ||
26393 | if { (ac_try="$ac_compile" | ||
26394 | case "(($ac_try" in | ||
26395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26396 | *) ac_try_echo=$ac_try;; | ||
26397 | esac | ||
26398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26399 | (eval "$ac_compile") 2>conftest.er1 | ||
26400 | ac_status=$? | ||
26401 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26402 | rm -f conftest.er1 | ||
26403 | cat conftest.err >&5 | ||
26404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26405 | (exit $ac_status); } && { | ||
26406 | test -z "$ac_c_werror_flag" || | ||
26407 | test ! -s conftest.err | ||
26408 | } && test -s conftest.$ac_objext; then | ||
26409 | |||
26410 | cat >>confdefs.h <<\_ACEOF | ||
26411 | #define HAVE_U_INTXX_T 1 | ||
26412 | _ACEOF | ||
26413 | |||
26414 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26415 | echo "${ECHO_T}yes" >&6; } | ||
26416 | |||
26417 | else | ||
26418 | echo "$as_me: failed program was:" >&5 | ||
26419 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26420 | |||
26421 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26422 | echo "${ECHO_T}no" >&6; } | ||
26423 | |||
26424 | fi | ||
26425 | |||
26426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26427 | fi | ||
26428 | |||
26429 | { echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | ||
26430 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; } | ||
26431 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
26432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26433 | else | ||
26434 | |||
26435 | cat >conftest.$ac_ext <<_ACEOF | ||
26436 | /* confdefs.h. */ | ||
26437 | _ACEOF | ||
26438 | cat confdefs.h >>conftest.$ac_ext | ||
26439 | cat >>conftest.$ac_ext <<_ACEOF | ||
26440 | /* end confdefs.h. */ | ||
26441 | #include <sys/types.h> | ||
26442 | int | ||
26443 | main () | ||
26444 | { | ||
26445 | u_int64_t a; a = 1; | ||
26446 | ; | ||
26447 | return 0; | ||
26448 | } | ||
26449 | _ACEOF | ||
26450 | rm -f conftest.$ac_objext | ||
26451 | if { (ac_try="$ac_compile" | ||
26452 | case "(($ac_try" in | ||
26453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26454 | *) ac_try_echo=$ac_try;; | ||
26455 | esac | ||
26456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26457 | (eval "$ac_compile") 2>conftest.er1 | ||
26458 | ac_status=$? | ||
26459 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26460 | rm -f conftest.er1 | ||
26461 | cat conftest.err >&5 | ||
26462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26463 | (exit $ac_status); } && { | ||
26464 | test -z "$ac_c_werror_flag" || | ||
26465 | test ! -s conftest.err | ||
26466 | } && test -s conftest.$ac_objext; then | ||
26467 | ac_cv_have_u_int64_t="yes" | ||
26468 | else | ||
26469 | echo "$as_me: failed program was:" >&5 | ||
26470 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26471 | |||
26472 | ac_cv_have_u_int64_t="no" | ||
26473 | |||
26474 | fi | ||
26475 | |||
26476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26477 | |||
26478 | fi | ||
26479 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | ||
26480 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; } | ||
26481 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
26482 | |||
26483 | cat >>confdefs.h <<\_ACEOF | ||
26484 | #define HAVE_U_INT64_T 1 | ||
26485 | _ACEOF | ||
26486 | |||
26487 | have_u_int64_t=1 | ||
26488 | fi | ||
26489 | |||
26490 | if (test -z "$have_u_int64_t" && \ | ||
26491 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
26492 | then | ||
26493 | { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
26494 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; } | ||
26495 | cat >conftest.$ac_ext <<_ACEOF | ||
26496 | /* confdefs.h. */ | ||
26497 | _ACEOF | ||
26498 | cat confdefs.h >>conftest.$ac_ext | ||
26499 | cat >>conftest.$ac_ext <<_ACEOF | ||
26500 | /* end confdefs.h. */ | ||
26501 | #include <sys/bitypes.h> | ||
26502 | int | ||
26503 | main () | ||
26504 | { | ||
26505 | u_int64_t a; a = 1 | ||
26506 | ; | ||
26507 | return 0; | ||
26508 | } | ||
26509 | _ACEOF | ||
26510 | rm -f conftest.$ac_objext | ||
26511 | if { (ac_try="$ac_compile" | ||
26512 | case "(($ac_try" in | ||
26513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26514 | *) ac_try_echo=$ac_try;; | ||
26515 | esac | ||
26516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26517 | (eval "$ac_compile") 2>conftest.er1 | ||
26518 | ac_status=$? | ||
26519 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26520 | rm -f conftest.er1 | ||
26521 | cat conftest.err >&5 | ||
26522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26523 | (exit $ac_status); } && { | ||
26524 | test -z "$ac_c_werror_flag" || | ||
26525 | test ! -s conftest.err | ||
26526 | } && test -s conftest.$ac_objext; then | ||
26527 | |||
26528 | cat >>confdefs.h <<\_ACEOF | ||
26529 | #define HAVE_U_INT64_T 1 | ||
26530 | _ACEOF | ||
26531 | |||
26532 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26533 | echo "${ECHO_T}yes" >&6; } | ||
26534 | |||
26535 | else | ||
26536 | echo "$as_me: failed program was:" >&5 | ||
26537 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26538 | |||
26539 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26540 | echo "${ECHO_T}no" >&6; } | ||
26541 | |||
26542 | fi | ||
26543 | |||
26544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26545 | fi | ||
26546 | |||
26547 | if test -z "$have_u_intxx_t" ; then | ||
26548 | { echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | ||
26549 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; } | ||
26550 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
26551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26552 | else | ||
26553 | |||
26554 | cat >conftest.$ac_ext <<_ACEOF | ||
26555 | /* confdefs.h. */ | ||
26556 | _ACEOF | ||
26557 | cat confdefs.h >>conftest.$ac_ext | ||
26558 | cat >>conftest.$ac_ext <<_ACEOF | ||
26559 | /* end confdefs.h. */ | ||
26560 | |||
26561 | #include <sys/types.h> | ||
26562 | |||
26563 | int | ||
26564 | main () | ||
26565 | { | ||
26566 | |||
26567 | uint8_t a; | ||
26568 | uint16_t b; | ||
26569 | uint32_t c; | ||
26570 | a = b = c = 1; | ||
26571 | |||
26572 | ; | ||
26573 | return 0; | ||
26574 | } | ||
26575 | _ACEOF | ||
26576 | rm -f conftest.$ac_objext | ||
26577 | if { (ac_try="$ac_compile" | ||
26578 | case "(($ac_try" in | ||
26579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26580 | *) ac_try_echo=$ac_try;; | ||
26581 | esac | ||
26582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26583 | (eval "$ac_compile") 2>conftest.er1 | ||
26584 | ac_status=$? | ||
26585 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26586 | rm -f conftest.er1 | ||
26587 | cat conftest.err >&5 | ||
26588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26589 | (exit $ac_status); } && { | ||
26590 | test -z "$ac_c_werror_flag" || | ||
26591 | test ! -s conftest.err | ||
26592 | } && test -s conftest.$ac_objext; then | ||
26593 | ac_cv_have_uintxx_t="yes" | ||
26594 | else | ||
26595 | echo "$as_me: failed program was:" >&5 | ||
26596 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26597 | |||
26598 | ac_cv_have_uintxx_t="no" | ||
26599 | |||
26600 | fi | ||
26601 | |||
26602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26603 | |||
26604 | fi | ||
26605 | { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | ||
26606 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; } | ||
26607 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
26608 | |||
26609 | cat >>confdefs.h <<\_ACEOF | ||
26610 | #define HAVE_UINTXX_T 1 | ||
26611 | _ACEOF | ||
26612 | |||
26613 | fi | ||
26614 | fi | ||
26615 | |||
26616 | if (test -z "$have_uintxx_t" && \ | ||
26617 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
26618 | then | ||
26619 | { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | ||
26620 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; } | ||
26621 | cat >conftest.$ac_ext <<_ACEOF | ||
26622 | /* confdefs.h. */ | ||
26623 | _ACEOF | ||
26624 | cat confdefs.h >>conftest.$ac_ext | ||
26625 | cat >>conftest.$ac_ext <<_ACEOF | ||
26626 | /* end confdefs.h. */ | ||
26627 | #include <stdint.h> | ||
26628 | int | ||
26629 | main () | ||
26630 | { | ||
26631 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
26632 | ; | ||
26633 | return 0; | ||
26634 | } | ||
26635 | _ACEOF | ||
26636 | rm -f conftest.$ac_objext | ||
26637 | if { (ac_try="$ac_compile" | ||
26638 | case "(($ac_try" in | ||
26639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26640 | *) ac_try_echo=$ac_try;; | ||
26641 | esac | ||
26642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26643 | (eval "$ac_compile") 2>conftest.er1 | ||
26644 | ac_status=$? | ||
26645 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26646 | rm -f conftest.er1 | ||
26647 | cat conftest.err >&5 | ||
26648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26649 | (exit $ac_status); } && { | ||
26650 | test -z "$ac_c_werror_flag" || | ||
26651 | test ! -s conftest.err | ||
26652 | } && test -s conftest.$ac_objext; then | ||
26653 | |||
26654 | cat >>confdefs.h <<\_ACEOF | ||
26655 | #define HAVE_UINTXX_T 1 | ||
26656 | _ACEOF | ||
26657 | |||
26658 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26659 | echo "${ECHO_T}yes" >&6; } | ||
26660 | |||
26661 | else | ||
26662 | echo "$as_me: failed program was:" >&5 | ||
26663 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26664 | |||
26665 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26666 | echo "${ECHO_T}no" >&6; } | ||
26667 | |||
26668 | fi | ||
26669 | |||
26670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26671 | fi | ||
26672 | |||
26673 | if (test -z "$have_uintxx_t" && \ | ||
26674 | test "x$ac_cv_header_inttypes_h" = "xyes") | ||
26675 | then | ||
26676 | { echo "$as_me:$LINENO: checking for uintXX_t types in inttypes.h" >&5 | ||
26677 | echo $ECHO_N "checking for uintXX_t types in inttypes.h... $ECHO_C" >&6; } | ||
26678 | cat >conftest.$ac_ext <<_ACEOF | ||
26679 | /* confdefs.h. */ | ||
26680 | _ACEOF | ||
26681 | cat confdefs.h >>conftest.$ac_ext | ||
26682 | cat >>conftest.$ac_ext <<_ACEOF | ||
26683 | /* end confdefs.h. */ | ||
26684 | #include <inttypes.h> | ||
26685 | int | ||
26686 | main () | ||
26687 | { | ||
26688 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
26689 | ; | ||
26690 | return 0; | ||
26691 | } | ||
26692 | _ACEOF | ||
26693 | rm -f conftest.$ac_objext | ||
26694 | if { (ac_try="$ac_compile" | ||
26695 | case "(($ac_try" in | ||
26696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26697 | *) ac_try_echo=$ac_try;; | ||
26698 | esac | ||
26699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26700 | (eval "$ac_compile") 2>conftest.er1 | ||
26701 | ac_status=$? | ||
26702 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26703 | rm -f conftest.er1 | ||
26704 | cat conftest.err >&5 | ||
26705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26706 | (exit $ac_status); } && { | ||
26707 | test -z "$ac_c_werror_flag" || | ||
26708 | test ! -s conftest.err | ||
26709 | } && test -s conftest.$ac_objext; then | ||
26710 | |||
26711 | cat >>confdefs.h <<\_ACEOF | ||
26712 | #define HAVE_UINTXX_T 1 | ||
26713 | _ACEOF | ||
26714 | |||
26715 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26716 | echo "${ECHO_T}yes" >&6; } | ||
26717 | |||
26718 | else | ||
26719 | echo "$as_me: failed program was:" >&5 | ||
26720 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26721 | |||
26722 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26723 | echo "${ECHO_T}no" >&6; } | ||
26724 | |||
26725 | fi | ||
26726 | |||
26727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26728 | fi | ||
26729 | |||
26730 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
26731 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
26732 | then | ||
26733 | { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
26734 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; } | ||
26735 | cat >conftest.$ac_ext <<_ACEOF | ||
26736 | /* confdefs.h. */ | ||
26737 | _ACEOF | ||
26738 | cat confdefs.h >>conftest.$ac_ext | ||
26739 | cat >>conftest.$ac_ext <<_ACEOF | ||
26740 | /* end confdefs.h. */ | ||
26741 | |||
26742 | #include <sys/bitypes.h> | ||
26743 | |||
26744 | int | ||
26745 | main () | ||
26746 | { | ||
26747 | |||
26748 | int8_t a; int16_t b; int32_t c; | ||
26749 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
26750 | a = b = c = e = f = g = 1; | ||
26751 | |||
26752 | ; | ||
26753 | return 0; | ||
26754 | } | ||
26755 | _ACEOF | ||
26756 | rm -f conftest.$ac_objext | ||
26757 | if { (ac_try="$ac_compile" | ||
26758 | case "(($ac_try" in | ||
26759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26760 | *) ac_try_echo=$ac_try;; | ||
26761 | esac | ||
26762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26763 | (eval "$ac_compile") 2>conftest.er1 | ||
26764 | ac_status=$? | ||
26765 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26766 | rm -f conftest.er1 | ||
26767 | cat conftest.err >&5 | ||
26768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26769 | (exit $ac_status); } && { | ||
26770 | test -z "$ac_c_werror_flag" || | ||
26771 | test ! -s conftest.err | ||
26772 | } && test -s conftest.$ac_objext; then | ||
26773 | |||
26774 | cat >>confdefs.h <<\_ACEOF | ||
26775 | #define HAVE_U_INTXX_T 1 | ||
26776 | _ACEOF | ||
26777 | |||
26778 | cat >>confdefs.h <<\_ACEOF | ||
26779 | #define HAVE_INTXX_T 1 | ||
26780 | _ACEOF | ||
26781 | |||
26782 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26783 | echo "${ECHO_T}yes" >&6; } | ||
26784 | |||
26785 | else | ||
26786 | echo "$as_me: failed program was:" >&5 | ||
26787 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26788 | |||
26789 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26790 | echo "${ECHO_T}no" >&6; } | ||
26791 | |||
26792 | fi | ||
26793 | |||
26794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26795 | fi | ||
26796 | |||
26797 | |||
26798 | { echo "$as_me:$LINENO: checking for u_char" >&5 | ||
26799 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6; } | ||
26800 | if test "${ac_cv_have_u_char+set}" = set; then | ||
26801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26802 | else | ||
26803 | |||
26804 | cat >conftest.$ac_ext <<_ACEOF | ||
26805 | /* confdefs.h. */ | ||
26806 | _ACEOF | ||
26807 | cat confdefs.h >>conftest.$ac_ext | ||
26808 | cat >>conftest.$ac_ext <<_ACEOF | ||
26809 | /* end confdefs.h. */ | ||
26810 | #include <sys/types.h> | ||
26811 | int | ||
26812 | main () | ||
26813 | { | ||
26814 | u_char foo; foo = 125; | ||
26815 | ; | ||
26816 | return 0; | ||
26817 | } | ||
26818 | _ACEOF | ||
26819 | rm -f conftest.$ac_objext | ||
26820 | if { (ac_try="$ac_compile" | ||
26821 | case "(($ac_try" in | ||
26822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26823 | *) ac_try_echo=$ac_try;; | ||
26824 | esac | ||
26825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26826 | (eval "$ac_compile") 2>conftest.er1 | ||
26827 | ac_status=$? | ||
26828 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26829 | rm -f conftest.er1 | ||
26830 | cat conftest.err >&5 | ||
26831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26832 | (exit $ac_status); } && { | ||
26833 | test -z "$ac_c_werror_flag" || | ||
26834 | test ! -s conftest.err | ||
26835 | } && test -s conftest.$ac_objext; then | ||
26836 | ac_cv_have_u_char="yes" | ||
26837 | else | ||
26838 | echo "$as_me: failed program was:" >&5 | ||
26839 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26840 | |||
26841 | ac_cv_have_u_char="no" | ||
26842 | |||
26843 | fi | ||
26844 | |||
26845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26846 | |||
26847 | fi | ||
26848 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | ||
26849 | echo "${ECHO_T}$ac_cv_have_u_char" >&6; } | ||
26850 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
26851 | |||
26852 | cat >>confdefs.h <<\_ACEOF | ||
26853 | #define HAVE_U_CHAR 1 | ||
26854 | _ACEOF | ||
26855 | |||
26856 | fi | ||
26857 | |||
26858 | { echo "$as_me:$LINENO: checking for intmax_t" >&5 | ||
26859 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } | ||
26860 | if test "${ac_cv_type_intmax_t+set}" = set; then | ||
26861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26862 | else | ||
26863 | cat >conftest.$ac_ext <<_ACEOF | ||
26864 | /* confdefs.h. */ | ||
26865 | _ACEOF | ||
26866 | cat confdefs.h >>conftest.$ac_ext | ||
26867 | cat >>conftest.$ac_ext <<_ACEOF | ||
26868 | /* end confdefs.h. */ | ||
26869 | |||
26870 | #include <sys/types.h> | ||
26871 | #include <stdint.h> | ||
26872 | |||
26873 | |||
26874 | typedef intmax_t ac__type_new_; | ||
26875 | int | ||
26876 | main () | ||
26877 | { | ||
26878 | if ((ac__type_new_ *) 0) | ||
26879 | return 0; | ||
26880 | if (sizeof (ac__type_new_)) | ||
26881 | return 0; | ||
26882 | ; | ||
26883 | return 0; | ||
26884 | } | ||
26885 | _ACEOF | ||
26886 | rm -f conftest.$ac_objext | ||
26887 | if { (ac_try="$ac_compile" | ||
26888 | case "(($ac_try" in | ||
26889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26890 | *) ac_try_echo=$ac_try;; | ||
26891 | esac | ||
26892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26893 | (eval "$ac_compile") 2>conftest.er1 | ||
26894 | ac_status=$? | ||
26895 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26896 | rm -f conftest.er1 | ||
26897 | cat conftest.err >&5 | ||
26898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26899 | (exit $ac_status); } && { | ||
26900 | test -z "$ac_c_werror_flag" || | ||
26901 | test ! -s conftest.err | ||
26902 | } && test -s conftest.$ac_objext; then | ||
26903 | ac_cv_type_intmax_t=yes | ||
26904 | else | ||
26905 | echo "$as_me: failed program was:" >&5 | ||
26906 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26907 | |||
26908 | ac_cv_type_intmax_t=no | ||
26909 | fi | ||
26910 | |||
26911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26912 | fi | ||
26913 | { echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5 | ||
26914 | echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; } | ||
26915 | if test $ac_cv_type_intmax_t = yes; then | ||
26916 | |||
26917 | cat >>confdefs.h <<_ACEOF | ||
26918 | #define HAVE_INTMAX_T 1 | ||
26919 | _ACEOF | ||
26920 | |||
26921 | |||
26922 | fi | ||
26923 | { echo "$as_me:$LINENO: checking for uintmax_t" >&5 | ||
26924 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; } | ||
26925 | if test "${ac_cv_type_uintmax_t+set}" = set; then | ||
26926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26927 | else | ||
26928 | cat >conftest.$ac_ext <<_ACEOF | ||
26929 | /* confdefs.h. */ | ||
26930 | _ACEOF | ||
26931 | cat confdefs.h >>conftest.$ac_ext | ||
26932 | cat >>conftest.$ac_ext <<_ACEOF | ||
26933 | /* end confdefs.h. */ | ||
26934 | |||
26935 | #include <sys/types.h> | ||
26936 | #include <stdint.h> | ||
26937 | |||
26938 | |||
26939 | typedef uintmax_t ac__type_new_; | ||
26940 | int | ||
26941 | main () | ||
26942 | { | ||
26943 | if ((ac__type_new_ *) 0) | ||
26944 | return 0; | ||
26945 | if (sizeof (ac__type_new_)) | ||
26946 | return 0; | ||
26947 | ; | ||
26948 | return 0; | ||
26949 | } | ||
26950 | _ACEOF | ||
26951 | rm -f conftest.$ac_objext | ||
26952 | if { (ac_try="$ac_compile" | ||
26953 | case "(($ac_try" in | ||
26954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26955 | *) ac_try_echo=$ac_try;; | ||
26956 | esac | ||
26957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26958 | (eval "$ac_compile") 2>conftest.er1 | ||
26959 | ac_status=$? | ||
26960 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26961 | rm -f conftest.er1 | ||
26962 | cat conftest.err >&5 | ||
26963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26964 | (exit $ac_status); } && { | ||
26965 | test -z "$ac_c_werror_flag" || | ||
26966 | test ! -s conftest.err | ||
26967 | } && test -s conftest.$ac_objext; then | ||
26968 | ac_cv_type_uintmax_t=yes | ||
26969 | else | ||
26970 | echo "$as_me: failed program was:" >&5 | ||
26971 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26972 | |||
26973 | ac_cv_type_uintmax_t=no | ||
26974 | fi | ||
26975 | |||
26976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26977 | fi | ||
26978 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 | ||
26979 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; } | ||
26980 | if test $ac_cv_type_uintmax_t = yes; then | ||
26981 | |||
26982 | cat >>confdefs.h <<_ACEOF | ||
26983 | #define HAVE_UINTMAX_T 1 | ||
26984 | _ACEOF | ||
26985 | |||
26986 | |||
26987 | fi | ||
26988 | |||
26989 | |||
26990 | |||
26991 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 | ||
26992 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | ||
26993 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
26994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26995 | else | ||
26996 | cat >conftest.$ac_ext <<_ACEOF | ||
26997 | /* confdefs.h. */ | ||
26998 | _ACEOF | ||
26999 | cat confdefs.h >>conftest.$ac_ext | ||
27000 | cat >>conftest.$ac_ext <<_ACEOF | ||
27001 | /* end confdefs.h. */ | ||
27002 | #include <sys/types.h> | ||
27003 | #include <sys/socket.h> | ||
27004 | |||
27005 | typedef socklen_t ac__type_new_; | ||
27006 | int | ||
27007 | main () | ||
27008 | { | ||
27009 | if ((ac__type_new_ *) 0) | ||
27010 | return 0; | ||
27011 | if (sizeof (ac__type_new_)) | ||
27012 | return 0; | ||
27013 | ; | ||
27014 | return 0; | ||
27015 | } | ||
27016 | _ACEOF | ||
27017 | rm -f conftest.$ac_objext | ||
27018 | if { (ac_try="$ac_compile" | ||
27019 | case "(($ac_try" in | ||
27020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27021 | *) ac_try_echo=$ac_try;; | ||
27022 | esac | ||
27023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27024 | (eval "$ac_compile") 2>conftest.er1 | ||
27025 | ac_status=$? | ||
27026 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27027 | rm -f conftest.er1 | ||
27028 | cat conftest.err >&5 | ||
27029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27030 | (exit $ac_status); } && { | ||
27031 | test -z "$ac_c_werror_flag" || | ||
27032 | test ! -s conftest.err | ||
27033 | } && test -s conftest.$ac_objext; then | ||
27034 | ac_cv_type_socklen_t=yes | ||
27035 | else | ||
27036 | echo "$as_me: failed program was:" >&5 | ||
27037 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27038 | |||
27039 | ac_cv_type_socklen_t=no | ||
27040 | fi | ||
27041 | |||
27042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27043 | fi | ||
27044 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | ||
27045 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | ||
27046 | if test $ac_cv_type_socklen_t = yes; then | ||
27047 | : | ||
27048 | else | ||
27049 | |||
27050 | { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | ||
27051 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; } | ||
27052 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
27053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27054 | else | ||
27055 | |||
27056 | # Systems have either "struct sockaddr *" or | ||
27057 | # "void *" as the second argument to getpeername | ||
27058 | curl_cv_socklen_t_equiv= | ||
27059 | for arg2 in "struct sockaddr" void; do | ||
27060 | for t in int size_t unsigned long "unsigned long"; do | ||
27061 | cat >conftest.$ac_ext <<_ACEOF | ||
27062 | /* confdefs.h. */ | ||
27063 | _ACEOF | ||
27064 | cat confdefs.h >>conftest.$ac_ext | ||
27065 | cat >>conftest.$ac_ext <<_ACEOF | ||
27066 | /* end confdefs.h. */ | ||
27067 | |||
27068 | #include <sys/types.h> | ||
27069 | #include <sys/socket.h> | ||
27070 | |||
27071 | int getpeername (int, $arg2 *, $t *); | ||
27072 | |||
27073 | int | ||
27074 | main () | ||
27075 | { | ||
27076 | |||
27077 | $t len; | ||
27078 | getpeername(0,0,&len); | ||
27079 | |||
27080 | ; | ||
27081 | return 0; | ||
27082 | } | ||
27083 | _ACEOF | ||
27084 | rm -f conftest.$ac_objext | ||
27085 | if { (ac_try="$ac_compile" | ||
27086 | case "(($ac_try" in | ||
27087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27088 | *) ac_try_echo=$ac_try;; | ||
27089 | esac | ||
27090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27091 | (eval "$ac_compile") 2>conftest.er1 | ||
27092 | ac_status=$? | ||
27093 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27094 | rm -f conftest.er1 | ||
27095 | cat conftest.err >&5 | ||
27096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27097 | (exit $ac_status); } && { | ||
27098 | test -z "$ac_c_werror_flag" || | ||
27099 | test ! -s conftest.err | ||
27100 | } && test -s conftest.$ac_objext; then | ||
27101 | |||
27102 | curl_cv_socklen_t_equiv="$t" | ||
27103 | break | ||
27104 | |||
27105 | else | ||
27106 | echo "$as_me: failed program was:" >&5 | ||
27107 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27108 | |||
27109 | |||
27110 | fi | ||
27111 | |||
27112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27113 | done | ||
27114 | done | ||
27115 | |||
27116 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
27117 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | ||
27118 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
27119 | { (exit 1); exit 1; }; } | ||
27120 | fi | ||
27121 | |||
27122 | fi | ||
27123 | |||
27124 | { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | ||
27125 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; } | ||
27126 | |||
27127 | cat >>confdefs.h <<_ACEOF | ||
27128 | #define socklen_t $curl_cv_socklen_t_equiv | ||
27129 | _ACEOF | ||
27130 | |||
27131 | fi | ||
27132 | |||
27133 | |||
27134 | |||
27135 | { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | ||
27136 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; } | ||
27137 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
27138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27139 | else | ||
27140 | cat >conftest.$ac_ext <<_ACEOF | ||
27141 | /* confdefs.h. */ | ||
27142 | _ACEOF | ||
27143 | cat confdefs.h >>conftest.$ac_ext | ||
27144 | cat >>conftest.$ac_ext <<_ACEOF | ||
27145 | /* end confdefs.h. */ | ||
27146 | #include <signal.h> | ||
27147 | |||
27148 | typedef sig_atomic_t ac__type_new_; | ||
27149 | int | ||
27150 | main () | ||
27151 | { | ||
27152 | if ((ac__type_new_ *) 0) | ||
27153 | return 0; | ||
27154 | if (sizeof (ac__type_new_)) | ||
27155 | return 0; | ||
27156 | ; | ||
27157 | return 0; | ||
27158 | } | ||
27159 | _ACEOF | ||
27160 | rm -f conftest.$ac_objext | ||
27161 | if { (ac_try="$ac_compile" | ||
27162 | case "(($ac_try" in | ||
27163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27164 | *) ac_try_echo=$ac_try;; | ||
27165 | esac | ||
27166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27167 | (eval "$ac_compile") 2>conftest.er1 | ||
27168 | ac_status=$? | ||
27169 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27170 | rm -f conftest.er1 | ||
27171 | cat conftest.err >&5 | ||
27172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27173 | (exit $ac_status); } && { | ||
27174 | test -z "$ac_c_werror_flag" || | ||
27175 | test ! -s conftest.err | ||
27176 | } && test -s conftest.$ac_objext; then | ||
27177 | ac_cv_type_sig_atomic_t=yes | ||
27178 | else | ||
27179 | echo "$as_me: failed program was:" >&5 | ||
27180 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27181 | |||
27182 | ac_cv_type_sig_atomic_t=no | ||
27183 | fi | ||
27184 | |||
27185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27186 | fi | ||
27187 | { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | ||
27188 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; } | ||
27189 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
27190 | |||
27191 | cat >>confdefs.h <<_ACEOF | ||
27192 | #define HAVE_SIG_ATOMIC_T 1 | ||
27193 | _ACEOF | ||
27194 | |||
27195 | |||
27196 | fi | ||
27197 | |||
27198 | { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5 | ||
27199 | echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; } | ||
27200 | if test "${ac_cv_type_fsblkcnt_t+set}" = set; then | ||
27201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27202 | else | ||
27203 | cat >conftest.$ac_ext <<_ACEOF | ||
27204 | /* confdefs.h. */ | ||
27205 | _ACEOF | ||
27206 | cat confdefs.h >>conftest.$ac_ext | ||
27207 | cat >>conftest.$ac_ext <<_ACEOF | ||
27208 | /* end confdefs.h. */ | ||
27209 | |||
27210 | #include <sys/types.h> | ||
27211 | #ifdef HAVE_SYS_BITYPES_H | ||
27212 | #include <sys/bitypes.h> | ||
27213 | #endif | ||
27214 | #ifdef HAVE_SYS_STATFS_H | ||
27215 | #include <sys/statfs.h> | ||
27216 | #endif | ||
27217 | #ifdef HAVE_SYS_STATVFS_H | ||
27218 | #include <sys/statvfs.h> | ||
27219 | #endif | ||
27220 | |||
27221 | |||
27222 | typedef fsblkcnt_t ac__type_new_; | ||
27223 | int | ||
27224 | main () | ||
27225 | { | ||
27226 | if ((ac__type_new_ *) 0) | ||
27227 | return 0; | ||
27228 | if (sizeof (ac__type_new_)) | ||
27229 | return 0; | ||
27230 | ; | ||
27231 | return 0; | ||
27232 | } | ||
27233 | _ACEOF | ||
27234 | rm -f conftest.$ac_objext | ||
27235 | if { (ac_try="$ac_compile" | ||
27236 | case "(($ac_try" in | ||
27237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27238 | *) ac_try_echo=$ac_try;; | ||
27239 | esac | ||
27240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27241 | (eval "$ac_compile") 2>conftest.er1 | ||
27242 | ac_status=$? | ||
27243 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27244 | rm -f conftest.er1 | ||
27245 | cat conftest.err >&5 | ||
27246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27247 | (exit $ac_status); } && { | ||
27248 | test -z "$ac_c_werror_flag" || | ||
27249 | test ! -s conftest.err | ||
27250 | } && test -s conftest.$ac_objext; then | ||
27251 | ac_cv_type_fsblkcnt_t=yes | ||
27252 | else | ||
27253 | echo "$as_me: failed program was:" >&5 | ||
27254 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27255 | |||
27256 | ac_cv_type_fsblkcnt_t=no | ||
27257 | fi | ||
27258 | |||
27259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27260 | fi | ||
27261 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5 | ||
27262 | echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; } | ||
27263 | if test $ac_cv_type_fsblkcnt_t = yes; then | ||
27264 | |||
27265 | cat >>confdefs.h <<_ACEOF | ||
27266 | #define HAVE_FSBLKCNT_T 1 | ||
27267 | _ACEOF | ||
27268 | |||
27269 | |||
27270 | fi | ||
27271 | { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5 | ||
27272 | echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; } | ||
27273 | if test "${ac_cv_type_fsfilcnt_t+set}" = set; then | ||
27274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27275 | else | ||
27276 | cat >conftest.$ac_ext <<_ACEOF | ||
27277 | /* confdefs.h. */ | ||
27278 | _ACEOF | ||
27279 | cat confdefs.h >>conftest.$ac_ext | ||
27280 | cat >>conftest.$ac_ext <<_ACEOF | ||
27281 | /* end confdefs.h. */ | ||
27282 | |||
27283 | #include <sys/types.h> | ||
27284 | #ifdef HAVE_SYS_BITYPES_H | ||
27285 | #include <sys/bitypes.h> | ||
27286 | #endif | ||
27287 | #ifdef HAVE_SYS_STATFS_H | ||
27288 | #include <sys/statfs.h> | ||
27289 | #endif | ||
27290 | #ifdef HAVE_SYS_STATVFS_H | ||
27291 | #include <sys/statvfs.h> | ||
27292 | #endif | ||
27293 | |||
27294 | |||
27295 | typedef fsfilcnt_t ac__type_new_; | ||
27296 | int | ||
27297 | main () | ||
27298 | { | ||
27299 | if ((ac__type_new_ *) 0) | ||
27300 | return 0; | ||
27301 | if (sizeof (ac__type_new_)) | ||
27302 | return 0; | ||
27303 | ; | ||
27304 | return 0; | ||
27305 | } | ||
27306 | _ACEOF | ||
27307 | rm -f conftest.$ac_objext | ||
27308 | if { (ac_try="$ac_compile" | ||
27309 | case "(($ac_try" in | ||
27310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27311 | *) ac_try_echo=$ac_try;; | ||
27312 | esac | ||
27313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27314 | (eval "$ac_compile") 2>conftest.er1 | ||
27315 | ac_status=$? | ||
27316 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27317 | rm -f conftest.er1 | ||
27318 | cat conftest.err >&5 | ||
27319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27320 | (exit $ac_status); } && { | ||
27321 | test -z "$ac_c_werror_flag" || | ||
27322 | test ! -s conftest.err | ||
27323 | } && test -s conftest.$ac_objext; then | ||
27324 | ac_cv_type_fsfilcnt_t=yes | ||
27325 | else | ||
27326 | echo "$as_me: failed program was:" >&5 | ||
27327 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27328 | |||
27329 | ac_cv_type_fsfilcnt_t=no | ||
27330 | fi | ||
27331 | |||
27332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27333 | fi | ||
27334 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5 | ||
27335 | echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; } | ||
27336 | if test $ac_cv_type_fsfilcnt_t = yes; then | ||
27337 | |||
27338 | cat >>confdefs.h <<_ACEOF | ||
27339 | #define HAVE_FSFILCNT_T 1 | ||
27340 | _ACEOF | ||
27341 | |||
27342 | |||
27343 | fi | ||
27344 | |||
27345 | |||
27346 | { echo "$as_me:$LINENO: checking for in_addr_t" >&5 | ||
27347 | echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; } | ||
27348 | if test "${ac_cv_type_in_addr_t+set}" = set; then | ||
27349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27350 | else | ||
27351 | cat >conftest.$ac_ext <<_ACEOF | ||
27352 | /* confdefs.h. */ | ||
27353 | _ACEOF | ||
27354 | cat confdefs.h >>conftest.$ac_ext | ||
27355 | cat >>conftest.$ac_ext <<_ACEOF | ||
27356 | /* end confdefs.h. */ | ||
27357 | #include <sys/types.h> | ||
27358 | #include <netinet/in.h> | ||
27359 | |||
27360 | typedef in_addr_t ac__type_new_; | ||
27361 | int | ||
27362 | main () | ||
27363 | { | ||
27364 | if ((ac__type_new_ *) 0) | ||
27365 | return 0; | ||
27366 | if (sizeof (ac__type_new_)) | ||
27367 | return 0; | ||
27368 | ; | ||
27369 | return 0; | ||
27370 | } | ||
27371 | _ACEOF | ||
27372 | rm -f conftest.$ac_objext | ||
27373 | if { (ac_try="$ac_compile" | ||
27374 | case "(($ac_try" in | ||
27375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27376 | *) ac_try_echo=$ac_try;; | ||
27377 | esac | ||
27378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27379 | (eval "$ac_compile") 2>conftest.er1 | ||
27380 | ac_status=$? | ||
27381 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27382 | rm -f conftest.er1 | ||
27383 | cat conftest.err >&5 | ||
27384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27385 | (exit $ac_status); } && { | ||
27386 | test -z "$ac_c_werror_flag" || | ||
27387 | test ! -s conftest.err | ||
27388 | } && test -s conftest.$ac_objext; then | ||
27389 | ac_cv_type_in_addr_t=yes | ||
27390 | else | ||
27391 | echo "$as_me: failed program was:" >&5 | ||
27392 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27393 | |||
27394 | ac_cv_type_in_addr_t=no | ||
27395 | fi | ||
27396 | |||
27397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27398 | fi | ||
27399 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5 | ||
27400 | echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; } | ||
27401 | if test $ac_cv_type_in_addr_t = yes; then | ||
27402 | |||
27403 | cat >>confdefs.h <<_ACEOF | ||
27404 | #define HAVE_IN_ADDR_T 1 | ||
27405 | _ACEOF | ||
27406 | |||
27407 | |||
27408 | fi | ||
27409 | { echo "$as_me:$LINENO: checking for in_port_t" >&5 | ||
27410 | echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; } | ||
27411 | if test "${ac_cv_type_in_port_t+set}" = set; then | ||
27412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27413 | else | ||
27414 | cat >conftest.$ac_ext <<_ACEOF | ||
27415 | /* confdefs.h. */ | ||
27416 | _ACEOF | ||
27417 | cat confdefs.h >>conftest.$ac_ext | ||
27418 | cat >>conftest.$ac_ext <<_ACEOF | ||
27419 | /* end confdefs.h. */ | ||
27420 | #include <sys/types.h> | ||
27421 | #include <netinet/in.h> | ||
27422 | |||
27423 | typedef in_port_t ac__type_new_; | ||
27424 | int | ||
27425 | main () | ||
27426 | { | ||
27427 | if ((ac__type_new_ *) 0) | ||
27428 | return 0; | ||
27429 | if (sizeof (ac__type_new_)) | ||
27430 | return 0; | ||
27431 | ; | ||
27432 | return 0; | ||
27433 | } | ||
27434 | _ACEOF | ||
27435 | rm -f conftest.$ac_objext | ||
27436 | if { (ac_try="$ac_compile" | ||
27437 | case "(($ac_try" in | ||
27438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27439 | *) ac_try_echo=$ac_try;; | ||
27440 | esac | ||
27441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27442 | (eval "$ac_compile") 2>conftest.er1 | ||
27443 | ac_status=$? | ||
27444 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27445 | rm -f conftest.er1 | ||
27446 | cat conftest.err >&5 | ||
27447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27448 | (exit $ac_status); } && { | ||
27449 | test -z "$ac_c_werror_flag" || | ||
27450 | test ! -s conftest.err | ||
27451 | } && test -s conftest.$ac_objext; then | ||
27452 | ac_cv_type_in_port_t=yes | ||
27453 | else | ||
27454 | echo "$as_me: failed program was:" >&5 | ||
27455 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27456 | |||
27457 | ac_cv_type_in_port_t=no | ||
27458 | fi | ||
27459 | |||
27460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27461 | fi | ||
27462 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5 | ||
27463 | echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; } | ||
27464 | if test $ac_cv_type_in_port_t = yes; then | ||
27465 | |||
27466 | cat >>confdefs.h <<_ACEOF | ||
27467 | #define HAVE_IN_PORT_T 1 | ||
27468 | _ACEOF | ||
27469 | |||
27470 | |||
27471 | fi | ||
27472 | |||
27473 | |||
27474 | { echo "$as_me:$LINENO: checking for size_t" >&5 | ||
27475 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | ||
27476 | if test "${ac_cv_have_size_t+set}" = set; then | ||
27477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27478 | else | ||
27479 | |||
27480 | cat >conftest.$ac_ext <<_ACEOF | ||
27481 | /* confdefs.h. */ | ||
27482 | _ACEOF | ||
27483 | cat confdefs.h >>conftest.$ac_ext | ||
27484 | cat >>conftest.$ac_ext <<_ACEOF | ||
27485 | /* end confdefs.h. */ | ||
27486 | #include <sys/types.h> | ||
27487 | int | ||
27488 | main () | ||
27489 | { | ||
27490 | size_t foo; foo = 1235; | ||
27491 | ; | ||
27492 | return 0; | ||
27493 | } | ||
27494 | _ACEOF | ||
27495 | rm -f conftest.$ac_objext | ||
27496 | if { (ac_try="$ac_compile" | ||
27497 | case "(($ac_try" in | ||
27498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27499 | *) ac_try_echo=$ac_try;; | ||
27500 | esac | ||
27501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27502 | (eval "$ac_compile") 2>conftest.er1 | ||
27503 | ac_status=$? | ||
27504 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27505 | rm -f conftest.er1 | ||
27506 | cat conftest.err >&5 | ||
27507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27508 | (exit $ac_status); } && { | ||
27509 | test -z "$ac_c_werror_flag" || | ||
27510 | test ! -s conftest.err | ||
27511 | } && test -s conftest.$ac_objext; then | ||
27512 | ac_cv_have_size_t="yes" | ||
27513 | else | ||
27514 | echo "$as_me: failed program was:" >&5 | ||
27515 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27516 | |||
27517 | ac_cv_have_size_t="no" | ||
27518 | |||
27519 | fi | ||
27520 | |||
27521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27522 | |||
27523 | fi | ||
27524 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | ||
27525 | echo "${ECHO_T}$ac_cv_have_size_t" >&6; } | ||
27526 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
27527 | |||
27528 | cat >>confdefs.h <<\_ACEOF | ||
27529 | #define HAVE_SIZE_T 1 | ||
27530 | _ACEOF | ||
27531 | |||
27532 | fi | ||
27533 | |||
27534 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 | ||
27535 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } | ||
27536 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
27537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27538 | else | ||
27539 | |||
27540 | cat >conftest.$ac_ext <<_ACEOF | ||
27541 | /* confdefs.h. */ | ||
27542 | _ACEOF | ||
27543 | cat confdefs.h >>conftest.$ac_ext | ||
27544 | cat >>conftest.$ac_ext <<_ACEOF | ||
27545 | /* end confdefs.h. */ | ||
27546 | #include <sys/types.h> | ||
27547 | int | ||
27548 | main () | ||
27549 | { | ||
27550 | ssize_t foo; foo = 1235; | ||
27551 | ; | ||
27552 | return 0; | ||
27553 | } | ||
27554 | _ACEOF | ||
27555 | rm -f conftest.$ac_objext | ||
27556 | if { (ac_try="$ac_compile" | ||
27557 | case "(($ac_try" in | ||
27558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27559 | *) ac_try_echo=$ac_try;; | ||
27560 | esac | ||
27561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27562 | (eval "$ac_compile") 2>conftest.er1 | ||
27563 | ac_status=$? | ||
27564 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27565 | rm -f conftest.er1 | ||
27566 | cat conftest.err >&5 | ||
27567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27568 | (exit $ac_status); } && { | ||
27569 | test -z "$ac_c_werror_flag" || | ||
27570 | test ! -s conftest.err | ||
27571 | } && test -s conftest.$ac_objext; then | ||
27572 | ac_cv_have_ssize_t="yes" | ||
27573 | else | ||
27574 | echo "$as_me: failed program was:" >&5 | ||
27575 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27576 | |||
27577 | ac_cv_have_ssize_t="no" | ||
27578 | |||
27579 | fi | ||
27580 | |||
27581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27582 | |||
27583 | fi | ||
27584 | { echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | ||
27585 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; } | ||
27586 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
27587 | |||
27588 | cat >>confdefs.h <<\_ACEOF | ||
27589 | #define HAVE_SSIZE_T 1 | ||
27590 | _ACEOF | ||
27591 | |||
27592 | fi | ||
27593 | |||
27594 | { echo "$as_me:$LINENO: checking for clock_t" >&5 | ||
27595 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; } | ||
27596 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
27597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27598 | else | ||
27599 | |||
27600 | cat >conftest.$ac_ext <<_ACEOF | ||
27601 | /* confdefs.h. */ | ||
27602 | _ACEOF | ||
27603 | cat confdefs.h >>conftest.$ac_ext | ||
27604 | cat >>conftest.$ac_ext <<_ACEOF | ||
27605 | /* end confdefs.h. */ | ||
27606 | #include <time.h> | ||
27607 | int | ||
27608 | main () | ||
27609 | { | ||
27610 | clock_t foo; foo = 1235; | ||
27611 | ; | ||
27612 | return 0; | ||
27613 | } | ||
27614 | _ACEOF | ||
27615 | rm -f conftest.$ac_objext | ||
27616 | if { (ac_try="$ac_compile" | ||
27617 | case "(($ac_try" in | ||
27618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27619 | *) ac_try_echo=$ac_try;; | ||
27620 | esac | ||
27621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27622 | (eval "$ac_compile") 2>conftest.er1 | ||
27623 | ac_status=$? | ||
27624 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27625 | rm -f conftest.er1 | ||
27626 | cat conftest.err >&5 | ||
27627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27628 | (exit $ac_status); } && { | ||
27629 | test -z "$ac_c_werror_flag" || | ||
27630 | test ! -s conftest.err | ||
27631 | } && test -s conftest.$ac_objext; then | ||
27632 | ac_cv_have_clock_t="yes" | ||
27633 | else | ||
27634 | echo "$as_me: failed program was:" >&5 | ||
27635 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27636 | |||
27637 | ac_cv_have_clock_t="no" | ||
27638 | |||
27639 | fi | ||
27640 | |||
27641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27642 | |||
27643 | fi | ||
27644 | { echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | ||
27645 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6; } | ||
27646 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
27647 | |||
27648 | cat >>confdefs.h <<\_ACEOF | ||
27649 | #define HAVE_CLOCK_T 1 | ||
27650 | _ACEOF | ||
27651 | |||
27652 | fi | ||
27653 | |||
27654 | { echo "$as_me:$LINENO: checking for sa_family_t" >&5 | ||
27655 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } | ||
27656 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
27657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27658 | else | ||
27659 | |||
27660 | cat >conftest.$ac_ext <<_ACEOF | ||
27661 | /* confdefs.h. */ | ||
27662 | _ACEOF | ||
27663 | cat confdefs.h >>conftest.$ac_ext | ||
27664 | cat >>conftest.$ac_ext <<_ACEOF | ||
27665 | /* end confdefs.h. */ | ||
27666 | |||
27667 | #include <sys/types.h> | ||
27668 | #include <sys/socket.h> | ||
27669 | |||
27670 | int | ||
27671 | main () | ||
27672 | { | ||
27673 | sa_family_t foo; foo = 1235; | ||
27674 | ; | ||
27675 | return 0; | ||
27676 | } | ||
27677 | _ACEOF | ||
27678 | rm -f conftest.$ac_objext | ||
27679 | if { (ac_try="$ac_compile" | ||
27680 | case "(($ac_try" in | ||
27681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27682 | *) ac_try_echo=$ac_try;; | ||
27683 | esac | ||
27684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27685 | (eval "$ac_compile") 2>conftest.er1 | ||
27686 | ac_status=$? | ||
27687 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27688 | rm -f conftest.er1 | ||
27689 | cat conftest.err >&5 | ||
27690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27691 | (exit $ac_status); } && { | ||
27692 | test -z "$ac_c_werror_flag" || | ||
27693 | test ! -s conftest.err | ||
27694 | } && test -s conftest.$ac_objext; then | ||
27695 | ac_cv_have_sa_family_t="yes" | ||
27696 | else | ||
27697 | echo "$as_me: failed program was:" >&5 | ||
27698 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27699 | |||
27700 | cat >conftest.$ac_ext <<_ACEOF | ||
27701 | /* confdefs.h. */ | ||
27702 | _ACEOF | ||
27703 | cat confdefs.h >>conftest.$ac_ext | ||
27704 | cat >>conftest.$ac_ext <<_ACEOF | ||
27705 | /* end confdefs.h. */ | ||
27706 | |||
27707 | #include <sys/types.h> | ||
27708 | #include <sys/socket.h> | ||
27709 | #include <netinet/in.h> | ||
27710 | |||
27711 | int | ||
27712 | main () | ||
27713 | { | ||
27714 | sa_family_t foo; foo = 1235; | ||
27715 | ; | ||
27716 | return 0; | ||
27717 | } | ||
27718 | _ACEOF | ||
27719 | rm -f conftest.$ac_objext | ||
27720 | if { (ac_try="$ac_compile" | ||
27721 | case "(($ac_try" in | ||
27722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27723 | *) ac_try_echo=$ac_try;; | ||
27724 | esac | ||
27725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27726 | (eval "$ac_compile") 2>conftest.er1 | ||
27727 | ac_status=$? | ||
27728 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27729 | rm -f conftest.er1 | ||
27730 | cat conftest.err >&5 | ||
27731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27732 | (exit $ac_status); } && { | ||
27733 | test -z "$ac_c_werror_flag" || | ||
27734 | test ! -s conftest.err | ||
27735 | } && test -s conftest.$ac_objext; then | ||
27736 | ac_cv_have_sa_family_t="yes" | ||
27737 | else | ||
27738 | echo "$as_me: failed program was:" >&5 | ||
27739 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27740 | |||
27741 | ac_cv_have_sa_family_t="no" | ||
27742 | |||
27743 | fi | ||
27744 | |||
27745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27746 | |||
27747 | fi | ||
27748 | |||
27749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27750 | |||
27751 | fi | ||
27752 | { echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | ||
27753 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; } | ||
27754 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
27755 | |||
27756 | cat >>confdefs.h <<\_ACEOF | ||
27757 | #define HAVE_SA_FAMILY_T 1 | ||
27758 | _ACEOF | ||
27759 | |||
27760 | fi | ||
27761 | |||
27762 | { echo "$as_me:$LINENO: checking for pid_t" >&5 | ||
27763 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | ||
27764 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
27765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27766 | else | ||
27767 | |||
27768 | cat >conftest.$ac_ext <<_ACEOF | ||
27769 | /* confdefs.h. */ | ||
27770 | _ACEOF | ||
27771 | cat confdefs.h >>conftest.$ac_ext | ||
27772 | cat >>conftest.$ac_ext <<_ACEOF | ||
27773 | /* end confdefs.h. */ | ||
27774 | #include <sys/types.h> | ||
27775 | int | ||
27776 | main () | ||
27777 | { | ||
27778 | pid_t foo; foo = 1235; | ||
27779 | ; | ||
27780 | return 0; | ||
27781 | } | ||
27782 | _ACEOF | ||
27783 | rm -f conftest.$ac_objext | ||
27784 | if { (ac_try="$ac_compile" | ||
27785 | case "(($ac_try" in | ||
27786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27787 | *) ac_try_echo=$ac_try;; | ||
27788 | esac | ||
27789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27790 | (eval "$ac_compile") 2>conftest.er1 | ||
27791 | ac_status=$? | ||
27792 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27793 | rm -f conftest.er1 | ||
27794 | cat conftest.err >&5 | ||
27795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27796 | (exit $ac_status); } && { | ||
27797 | test -z "$ac_c_werror_flag" || | ||
27798 | test ! -s conftest.err | ||
27799 | } && test -s conftest.$ac_objext; then | ||
27800 | ac_cv_have_pid_t="yes" | ||
27801 | else | ||
27802 | echo "$as_me: failed program was:" >&5 | ||
27803 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27804 | |||
27805 | ac_cv_have_pid_t="no" | ||
27806 | |||
27807 | fi | ||
27808 | |||
27809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27810 | |||
27811 | fi | ||
27812 | { echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | ||
27813 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6; } | ||
27814 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
27815 | |||
27816 | cat >>confdefs.h <<\_ACEOF | ||
27817 | #define HAVE_PID_T 1 | ||
27818 | _ACEOF | ||
27819 | |||
27820 | fi | ||
27821 | |||
27822 | { echo "$as_me:$LINENO: checking for mode_t" >&5 | ||
27823 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | ||
27824 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
27825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27826 | else | ||
27827 | |||
27828 | cat >conftest.$ac_ext <<_ACEOF | ||
27829 | /* confdefs.h. */ | ||
27830 | _ACEOF | ||
27831 | cat confdefs.h >>conftest.$ac_ext | ||
27832 | cat >>conftest.$ac_ext <<_ACEOF | ||
27833 | /* end confdefs.h. */ | ||
27834 | #include <sys/types.h> | ||
27835 | int | ||
27836 | main () | ||
27837 | { | ||
27838 | mode_t foo; foo = 1235; | ||
27839 | ; | ||
27840 | return 0; | ||
27841 | } | ||
27842 | _ACEOF | ||
27843 | rm -f conftest.$ac_objext | ||
27844 | if { (ac_try="$ac_compile" | ||
27845 | case "(($ac_try" in | ||
27846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27847 | *) ac_try_echo=$ac_try;; | ||
27848 | esac | ||
27849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27850 | (eval "$ac_compile") 2>conftest.er1 | ||
27851 | ac_status=$? | ||
27852 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27853 | rm -f conftest.er1 | ||
27854 | cat conftest.err >&5 | ||
27855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27856 | (exit $ac_status); } && { | ||
27857 | test -z "$ac_c_werror_flag" || | ||
27858 | test ! -s conftest.err | ||
27859 | } && test -s conftest.$ac_objext; then | ||
27860 | ac_cv_have_mode_t="yes" | ||
27861 | else | ||
27862 | echo "$as_me: failed program was:" >&5 | ||
27863 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27864 | |||
27865 | ac_cv_have_mode_t="no" | ||
27866 | |||
27867 | fi | ||
27868 | |||
27869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27870 | |||
27871 | fi | ||
27872 | { echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | ||
27873 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6; } | ||
27874 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
27875 | |||
27876 | cat >>confdefs.h <<\_ACEOF | ||
27877 | #define HAVE_MODE_T 1 | ||
27878 | _ACEOF | ||
27879 | |||
27880 | fi | ||
27881 | |||
27882 | |||
27883 | { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | ||
27884 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; } | ||
27885 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
27886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27887 | else | ||
27888 | |||
27889 | cat >conftest.$ac_ext <<_ACEOF | ||
27890 | /* confdefs.h. */ | ||
27891 | _ACEOF | ||
27892 | cat confdefs.h >>conftest.$ac_ext | ||
27893 | cat >>conftest.$ac_ext <<_ACEOF | ||
27894 | /* end confdefs.h. */ | ||
27895 | |||
27896 | #include <sys/types.h> | ||
27897 | #include <sys/socket.h> | ||
27898 | |||
27899 | int | ||
27900 | main () | ||
27901 | { | ||
27902 | struct sockaddr_storage s; | ||
27903 | ; | ||
27904 | return 0; | ||
27905 | } | ||
27906 | _ACEOF | ||
27907 | rm -f conftest.$ac_objext | ||
27908 | if { (ac_try="$ac_compile" | ||
27909 | case "(($ac_try" in | ||
27910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27911 | *) ac_try_echo=$ac_try;; | ||
27912 | esac | ||
27913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27914 | (eval "$ac_compile") 2>conftest.er1 | ||
27915 | ac_status=$? | ||
27916 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27917 | rm -f conftest.er1 | ||
27918 | cat conftest.err >&5 | ||
27919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27920 | (exit $ac_status); } && { | ||
27921 | test -z "$ac_c_werror_flag" || | ||
27922 | test ! -s conftest.err | ||
27923 | } && test -s conftest.$ac_objext; then | ||
27924 | ac_cv_have_struct_sockaddr_storage="yes" | ||
27925 | else | ||
27926 | echo "$as_me: failed program was:" >&5 | ||
27927 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27928 | |||
27929 | ac_cv_have_struct_sockaddr_storage="no" | ||
27930 | |||
27931 | fi | ||
27932 | |||
27933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27934 | |||
27935 | fi | ||
27936 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
27937 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; } | ||
27938 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
27939 | |||
27940 | cat >>confdefs.h <<\_ACEOF | ||
27941 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
27942 | _ACEOF | ||
27943 | |||
27944 | fi | ||
27945 | |||
27946 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | ||
27947 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; } | ||
27948 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
27949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27950 | else | ||
27951 | |||
27952 | cat >conftest.$ac_ext <<_ACEOF | ||
27953 | /* confdefs.h. */ | ||
27954 | _ACEOF | ||
27955 | cat confdefs.h >>conftest.$ac_ext | ||
27956 | cat >>conftest.$ac_ext <<_ACEOF | ||
27957 | /* end confdefs.h. */ | ||
27958 | |||
27959 | #include <sys/types.h> | ||
27960 | #include <netinet/in.h> | ||
27961 | |||
27962 | int | ||
27963 | main () | ||
27964 | { | ||
27965 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
27966 | ; | ||
27967 | return 0; | ||
27968 | } | ||
27969 | _ACEOF | ||
27970 | rm -f conftest.$ac_objext | ||
27971 | if { (ac_try="$ac_compile" | ||
27972 | case "(($ac_try" in | ||
27973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27974 | *) ac_try_echo=$ac_try;; | ||
27975 | esac | ||
27976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27977 | (eval "$ac_compile") 2>conftest.er1 | ||
27978 | ac_status=$? | ||
27979 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27980 | rm -f conftest.er1 | ||
27981 | cat conftest.err >&5 | ||
27982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27983 | (exit $ac_status); } && { | ||
27984 | test -z "$ac_c_werror_flag" || | ||
27985 | test ! -s conftest.err | ||
27986 | } && test -s conftest.$ac_objext; then | ||
27987 | ac_cv_have_struct_sockaddr_in6="yes" | ||
27988 | else | ||
27989 | echo "$as_me: failed program was:" >&5 | ||
27990 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27991 | |||
27992 | ac_cv_have_struct_sockaddr_in6="no" | ||
27993 | |||
27994 | fi | ||
27995 | |||
27996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27997 | |||
27998 | fi | ||
27999 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
28000 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; } | ||
28001 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
28002 | |||
28003 | cat >>confdefs.h <<\_ACEOF | ||
28004 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
28005 | _ACEOF | ||
28006 | |||
28007 | fi | ||
28008 | |||
28009 | { echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | ||
28010 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; } | ||
28011 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
28012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28013 | else | ||
28014 | |||
28015 | cat >conftest.$ac_ext <<_ACEOF | ||
28016 | /* confdefs.h. */ | ||
28017 | _ACEOF | ||
28018 | cat confdefs.h >>conftest.$ac_ext | ||
28019 | cat >>conftest.$ac_ext <<_ACEOF | ||
28020 | /* end confdefs.h. */ | ||
28021 | |||
28022 | #include <sys/types.h> | ||
28023 | #include <netinet/in.h> | ||
28024 | |||
28025 | int | ||
28026 | main () | ||
28027 | { | ||
28028 | struct in6_addr s; s.s6_addr[0] = 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_have_struct_in6_addr="yes" | ||
28051 | else | ||
28052 | echo "$as_me: failed program was:" >&5 | ||
28053 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28054 | |||
28055 | ac_cv_have_struct_in6_addr="no" | ||
28056 | |||
28057 | fi | ||
28058 | |||
28059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28060 | |||
28061 | fi | ||
28062 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | ||
28063 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; } | ||
28064 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
28065 | |||
28066 | cat >>confdefs.h <<\_ACEOF | ||
28067 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
28068 | _ACEOF | ||
28069 | |||
28070 | |||
28071 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5 | ||
28072 | echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; } | ||
28073 | if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+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 | #ifdef HAVE_SYS_TYPES_H | ||
28084 | #include <sys/types.h> | ||
28085 | #endif | ||
28086 | #include <netinet/in.h> | ||
28087 | |||
28088 | |||
28089 | int | ||
28090 | main () | ||
28091 | { | ||
28092 | static struct sockaddr_in6 ac_aggr; | ||
28093 | if (ac_aggr.sin6_scope_id) | ||
28094 | return 0; | ||
28095 | ; | ||
28096 | return 0; | ||
28097 | } | ||
28098 | _ACEOF | ||
28099 | rm -f conftest.$ac_objext | ||
28100 | if { (ac_try="$ac_compile" | ||
28101 | case "(($ac_try" in | ||
28102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28103 | *) ac_try_echo=$ac_try;; | ||
28104 | esac | ||
28105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28106 | (eval "$ac_compile") 2>conftest.er1 | ||
28107 | ac_status=$? | ||
28108 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28109 | rm -f conftest.er1 | ||
28110 | cat conftest.err >&5 | ||
28111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28112 | (exit $ac_status); } && { | ||
28113 | test -z "$ac_c_werror_flag" || | ||
28114 | test ! -s conftest.err | ||
28115 | } && test -s conftest.$ac_objext; then | ||
28116 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes | ||
28117 | else | ||
28118 | echo "$as_me: failed program was:" >&5 | ||
28119 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28120 | |||
28121 | cat >conftest.$ac_ext <<_ACEOF | ||
28122 | /* confdefs.h. */ | ||
28123 | _ACEOF | ||
28124 | cat confdefs.h >>conftest.$ac_ext | ||
28125 | cat >>conftest.$ac_ext <<_ACEOF | ||
28126 | /* end confdefs.h. */ | ||
28127 | |||
28128 | #ifdef HAVE_SYS_TYPES_H | ||
28129 | #include <sys/types.h> | ||
28130 | #endif | ||
28131 | #include <netinet/in.h> | ||
28132 | |||
28133 | |||
28134 | int | ||
28135 | main () | ||
28136 | { | ||
28137 | static struct sockaddr_in6 ac_aggr; | ||
28138 | if (sizeof ac_aggr.sin6_scope_id) | ||
28139 | return 0; | ||
28140 | ; | ||
28141 | return 0; | ||
28142 | } | ||
28143 | _ACEOF | ||
28144 | rm -f conftest.$ac_objext | ||
28145 | if { (ac_try="$ac_compile" | ||
28146 | case "(($ac_try" in | ||
28147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28148 | *) ac_try_echo=$ac_try;; | ||
28149 | esac | ||
28150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28151 | (eval "$ac_compile") 2>conftest.er1 | ||
28152 | ac_status=$? | ||
28153 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28154 | rm -f conftest.er1 | ||
28155 | cat conftest.err >&5 | ||
28156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28157 | (exit $ac_status); } && { | ||
28158 | test -z "$ac_c_werror_flag" || | ||
28159 | test ! -s conftest.err | ||
28160 | } && test -s conftest.$ac_objext; then | ||
28161 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes | ||
28162 | else | ||
28163 | echo "$as_me: failed program was:" >&5 | ||
28164 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28165 | |||
28166 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no | ||
28167 | fi | ||
28168 | |||
28169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28170 | fi | ||
28171 | |||
28172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28173 | fi | ||
28174 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5 | ||
28175 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; } | ||
28176 | if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then | ||
28177 | |||
28178 | cat >>confdefs.h <<_ACEOF | ||
28179 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 | ||
28180 | _ACEOF | ||
28181 | |||
28182 | |||
28183 | fi | ||
28184 | |||
28185 | fi | ||
28186 | |||
28187 | { echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | ||
28188 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; } | ||
28189 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
28190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28191 | else | ||
28192 | |||
28193 | cat >conftest.$ac_ext <<_ACEOF | ||
28194 | /* confdefs.h. */ | ||
28195 | _ACEOF | ||
28196 | cat confdefs.h >>conftest.$ac_ext | ||
28197 | cat >>conftest.$ac_ext <<_ACEOF | ||
28198 | /* end confdefs.h. */ | ||
28199 | |||
28200 | #include <sys/types.h> | ||
28201 | #include <sys/socket.h> | ||
28202 | #include <netdb.h> | ||
28203 | |||
28204 | int | ||
28205 | main () | ||
28206 | { | ||
28207 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
28208 | ; | ||
28209 | return 0; | ||
28210 | } | ||
28211 | _ACEOF | ||
28212 | rm -f conftest.$ac_objext | ||
28213 | if { (ac_try="$ac_compile" | ||
28214 | case "(($ac_try" in | ||
28215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28216 | *) ac_try_echo=$ac_try;; | ||
28217 | esac | ||
28218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28219 | (eval "$ac_compile") 2>conftest.er1 | ||
28220 | ac_status=$? | ||
28221 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28222 | rm -f conftest.er1 | ||
28223 | cat conftest.err >&5 | ||
28224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28225 | (exit $ac_status); } && { | ||
28226 | test -z "$ac_c_werror_flag" || | ||
28227 | test ! -s conftest.err | ||
28228 | } && test -s conftest.$ac_objext; then | ||
28229 | ac_cv_have_struct_addrinfo="yes" | ||
28230 | else | ||
28231 | echo "$as_me: failed program was:" >&5 | ||
28232 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28233 | |||
28234 | ac_cv_have_struct_addrinfo="no" | ||
28235 | |||
28236 | fi | ||
28237 | |||
28238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28239 | |||
28240 | fi | ||
28241 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | ||
28242 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; } | ||
28243 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
28244 | |||
28245 | cat >>confdefs.h <<\_ACEOF | ||
28246 | #define HAVE_STRUCT_ADDRINFO 1 | ||
28247 | _ACEOF | ||
28248 | |||
28249 | fi | ||
28250 | |||
28251 | { echo "$as_me:$LINENO: checking for struct timeval" >&5 | ||
28252 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; } | ||
28253 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
28254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28255 | else | ||
28256 | |||
28257 | cat >conftest.$ac_ext <<_ACEOF | ||
28258 | /* confdefs.h. */ | ||
28259 | _ACEOF | ||
28260 | cat confdefs.h >>conftest.$ac_ext | ||
28261 | cat >>conftest.$ac_ext <<_ACEOF | ||
28262 | /* end confdefs.h. */ | ||
28263 | #include <sys/time.h> | ||
28264 | int | ||
28265 | main () | ||
28266 | { | ||
28267 | struct timeval tv; tv.tv_sec = 1; | ||
28268 | ; | ||
28269 | return 0; | ||
28270 | } | ||
28271 | _ACEOF | ||
28272 | rm -f conftest.$ac_objext | ||
28273 | if { (ac_try="$ac_compile" | ||
28274 | case "(($ac_try" in | ||
28275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28276 | *) ac_try_echo=$ac_try;; | ||
28277 | esac | ||
28278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28279 | (eval "$ac_compile") 2>conftest.er1 | ||
28280 | ac_status=$? | ||
28281 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28282 | rm -f conftest.er1 | ||
28283 | cat conftest.err >&5 | ||
28284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28285 | (exit $ac_status); } && { | ||
28286 | test -z "$ac_c_werror_flag" || | ||
28287 | test ! -s conftest.err | ||
28288 | } && test -s conftest.$ac_objext; then | ||
28289 | ac_cv_have_struct_timeval="yes" | ||
28290 | else | ||
28291 | echo "$as_me: failed program was:" >&5 | ||
28292 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28293 | |||
28294 | ac_cv_have_struct_timeval="no" | ||
28295 | |||
28296 | fi | ||
28297 | |||
28298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28299 | |||
28300 | fi | ||
28301 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | ||
28302 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; } | ||
28303 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
28304 | |||
28305 | cat >>confdefs.h <<\_ACEOF | ||
28306 | #define HAVE_STRUCT_TIMEVAL 1 | ||
28307 | _ACEOF | ||
28308 | |||
28309 | have_struct_timeval=1 | ||
28310 | fi | ||
28311 | |||
28312 | { echo "$as_me:$LINENO: checking for struct timespec" >&5 | ||
28313 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; } | ||
28314 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
28315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28316 | else | ||
28317 | cat >conftest.$ac_ext <<_ACEOF | ||
28318 | /* confdefs.h. */ | ||
28319 | _ACEOF | ||
28320 | cat confdefs.h >>conftest.$ac_ext | ||
28321 | cat >>conftest.$ac_ext <<_ACEOF | ||
28322 | /* end confdefs.h. */ | ||
28323 | $ac_includes_default | ||
28324 | typedef struct timespec ac__type_new_; | ||
28325 | int | ||
28326 | main () | ||
28327 | { | ||
28328 | if ((ac__type_new_ *) 0) | ||
28329 | return 0; | ||
28330 | if (sizeof (ac__type_new_)) | ||
28331 | return 0; | ||
28332 | ; | ||
28333 | return 0; | ||
28334 | } | ||
28335 | _ACEOF | ||
28336 | rm -f conftest.$ac_objext | ||
28337 | if { (ac_try="$ac_compile" | ||
28338 | case "(($ac_try" in | ||
28339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28340 | *) ac_try_echo=$ac_try;; | ||
28341 | esac | ||
28342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28343 | (eval "$ac_compile") 2>conftest.er1 | ||
28344 | ac_status=$? | ||
28345 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28346 | rm -f conftest.er1 | ||
28347 | cat conftest.err >&5 | ||
28348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28349 | (exit $ac_status); } && { | ||
28350 | test -z "$ac_c_werror_flag" || | ||
28351 | test ! -s conftest.err | ||
28352 | } && test -s conftest.$ac_objext; then | ||
28353 | ac_cv_type_struct_timespec=yes | ||
28354 | else | ||
28355 | echo "$as_me: failed program was:" >&5 | ||
28356 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28357 | |||
28358 | ac_cv_type_struct_timespec=no | ||
28359 | fi | ||
28360 | |||
28361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28362 | fi | ||
28363 | { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 | ||
28364 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; } | ||
28365 | if test $ac_cv_type_struct_timespec = yes; then | ||
28366 | |||
28367 | cat >>confdefs.h <<_ACEOF | ||
28368 | #define HAVE_STRUCT_TIMESPEC 1 | ||
28369 | _ACEOF | ||
28370 | |||
28371 | |||
28372 | fi | ||
28373 | |||
28374 | |||
28375 | # We need int64_t or else certian parts of the compile will fail. | ||
28376 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
28377 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
28378 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
28379 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
28380 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
28381 | echo "" | ||
28382 | exit 1; | ||
28383 | else | ||
28384 | if test "$cross_compiling" = yes; then | ||
28385 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
28386 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
28387 | |||
28388 | else | ||
28389 | cat >conftest.$ac_ext <<_ACEOF | ||
28390 | /* confdefs.h. */ | ||
28391 | _ACEOF | ||
28392 | cat confdefs.h >>conftest.$ac_ext | ||
28393 | cat >>conftest.$ac_ext <<_ACEOF | ||
28394 | /* end confdefs.h. */ | ||
28395 | |||
28396 | #include <stdio.h> | ||
28397 | #include <string.h> | ||
28398 | #ifdef HAVE_SNPRINTF | ||
28399 | main() | ||
28400 | { | ||
28401 | char buf[50]; | ||
28402 | char expected_out[50]; | ||
28403 | int mazsize = 50 ; | ||
28404 | #if (SIZEOF_LONG_INT == 8) | ||
28405 | long int num = 0x7fffffffffffffff; | ||
28406 | #else | ||
28407 | long long num = 0x7fffffffffffffffll; | ||
28408 | #endif | ||
28409 | strcpy(expected_out, "9223372036854775807"); | ||
28410 | snprintf(buf, mazsize, "%lld", num); | ||
28411 | if(strcmp(buf, expected_out) != 0) | ||
28412 | exit(1); | ||
28413 | exit(0); | ||
28414 | } | ||
28415 | #else | ||
28416 | main() { exit(0); } | ||
28417 | #endif | ||
28418 | |||
28419 | _ACEOF | ||
28420 | rm -f conftest$ac_exeext | ||
28421 | if { (ac_try="$ac_link" | ||
28422 | case "(($ac_try" in | ||
28423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28424 | *) ac_try_echo=$ac_try;; | ||
28425 | esac | ||
28426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28427 | (eval "$ac_link") 2>&5 | ||
28428 | ac_status=$? | ||
28429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28430 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
28431 | { (case "(($ac_try" in | ||
28432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28433 | *) ac_try_echo=$ac_try;; | ||
28434 | esac | ||
28435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28436 | (eval "$ac_try") 2>&5 | ||
28437 | ac_status=$? | ||
28438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28439 | (exit $ac_status); }; }; then | ||
28440 | true | ||
28441 | else | ||
28442 | echo "$as_me: program exited with status $ac_status" >&5 | ||
28443 | echo "$as_me: failed program was:" >&5 | ||
28444 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28445 | |||
28446 | ( exit $ac_status ) | ||
28447 | cat >>confdefs.h <<\_ACEOF | ||
28448 | #define BROKEN_SNPRINTF 1 | ||
28449 | _ACEOF | ||
28450 | |||
28451 | fi | ||
28452 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
28453 | fi | ||
28454 | |||
28455 | |||
28456 | fi | ||
28457 | |||
28458 | |||
28459 | # look for field 'ut_host' in header 'utmp.h' | ||
28460 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
28461 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
28462 | { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | ||
28463 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; } | ||
28464 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28466 | else | ||
28467 | |||
28468 | cat >conftest.$ac_ext <<_ACEOF | ||
28469 | /* confdefs.h. */ | ||
28470 | _ACEOF | ||
28471 | cat confdefs.h >>conftest.$ac_ext | ||
28472 | cat >>conftest.$ac_ext <<_ACEOF | ||
28473 | /* end confdefs.h. */ | ||
28474 | #include <utmp.h> | ||
28475 | |||
28476 | _ACEOF | ||
28477 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28478 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
28479 | eval "$ossh_varname=yes" | ||
28480 | else | ||
28481 | eval "$ossh_varname=no" | ||
28482 | fi | ||
28483 | rm -f conftest* | ||
28484 | |||
28485 | fi | ||
28486 | |||
28487 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28488 | if test -n "`echo $ossh_varname`"; then | ||
28489 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28490 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28491 | if test "x$ossh_result" = "xyes"; then | ||
28492 | |||
28493 | cat >>confdefs.h <<\_ACEOF | ||
28494 | #define HAVE_HOST_IN_UTMP 1 | ||
28495 | _ACEOF | ||
28496 | |||
28497 | fi | ||
28498 | else | ||
28499 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28500 | echo "${ECHO_T}no" >&6; } | ||
28501 | fi | ||
28502 | |||
28503 | |||
28504 | # look for field 'ut_host' in header 'utmpx.h' | ||
28505 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
28506 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
28507 | { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | ||
28508 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; } | ||
28509 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28511 | else | ||
28512 | |||
28513 | cat >conftest.$ac_ext <<_ACEOF | ||
28514 | /* confdefs.h. */ | ||
28515 | _ACEOF | ||
28516 | cat confdefs.h >>conftest.$ac_ext | ||
28517 | cat >>conftest.$ac_ext <<_ACEOF | ||
28518 | /* end confdefs.h. */ | ||
28519 | #include <utmpx.h> | ||
28520 | |||
28521 | _ACEOF | ||
28522 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28523 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
28524 | eval "$ossh_varname=yes" | ||
28525 | else | ||
28526 | eval "$ossh_varname=no" | ||
28527 | fi | ||
28528 | rm -f conftest* | ||
28529 | |||
28530 | fi | ||
28531 | |||
28532 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28533 | if test -n "`echo $ossh_varname`"; then | ||
28534 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28535 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28536 | if test "x$ossh_result" = "xyes"; then | ||
28537 | |||
28538 | cat >>confdefs.h <<\_ACEOF | ||
28539 | #define HAVE_HOST_IN_UTMPX 1 | ||
28540 | _ACEOF | ||
28541 | |||
28542 | fi | ||
28543 | else | ||
28544 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28545 | echo "${ECHO_T}no" >&6; } | ||
28546 | fi | ||
28547 | |||
28548 | |||
28549 | # look for field 'syslen' in header 'utmpx.h' | ||
28550 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
28551 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
28552 | { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | ||
28553 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; } | ||
28554 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28556 | else | ||
28557 | |||
28558 | cat >conftest.$ac_ext <<_ACEOF | ||
28559 | /* confdefs.h. */ | ||
28560 | _ACEOF | ||
28561 | cat confdefs.h >>conftest.$ac_ext | ||
28562 | cat >>conftest.$ac_ext <<_ACEOF | ||
28563 | /* end confdefs.h. */ | ||
28564 | #include <utmpx.h> | ||
28565 | |||
28566 | _ACEOF | ||
28567 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28568 | $EGREP "syslen" >/dev/null 2>&1; then | ||
28569 | eval "$ossh_varname=yes" | ||
28570 | else | ||
28571 | eval "$ossh_varname=no" | ||
28572 | fi | ||
28573 | rm -f conftest* | ||
28574 | |||
28575 | fi | ||
28576 | |||
28577 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28578 | if test -n "`echo $ossh_varname`"; then | ||
28579 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28580 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28581 | if test "x$ossh_result" = "xyes"; then | ||
28582 | |||
28583 | cat >>confdefs.h <<\_ACEOF | ||
28584 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
28585 | _ACEOF | ||
28586 | |||
28587 | fi | ||
28588 | else | ||
28589 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28590 | echo "${ECHO_T}no" >&6; } | ||
28591 | fi | ||
28592 | |||
28593 | |||
28594 | # look for field 'ut_pid' in header 'utmp.h' | ||
28595 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
28596 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
28597 | { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | ||
28598 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; } | ||
28599 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28601 | else | ||
28602 | |||
28603 | cat >conftest.$ac_ext <<_ACEOF | ||
28604 | /* confdefs.h. */ | ||
28605 | _ACEOF | ||
28606 | cat confdefs.h >>conftest.$ac_ext | ||
28607 | cat >>conftest.$ac_ext <<_ACEOF | ||
28608 | /* end confdefs.h. */ | ||
28609 | #include <utmp.h> | ||
28610 | |||
28611 | _ACEOF | ||
28612 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28613 | $EGREP "ut_pid" >/dev/null 2>&1; then | ||
28614 | eval "$ossh_varname=yes" | ||
28615 | else | ||
28616 | eval "$ossh_varname=no" | ||
28617 | fi | ||
28618 | rm -f conftest* | ||
28619 | |||
28620 | fi | ||
28621 | |||
28622 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28623 | if test -n "`echo $ossh_varname`"; then | ||
28624 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28625 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28626 | if test "x$ossh_result" = "xyes"; then | ||
28627 | |||
28628 | cat >>confdefs.h <<\_ACEOF | ||
28629 | #define HAVE_PID_IN_UTMP 1 | ||
28630 | _ACEOF | ||
28631 | |||
28632 | fi | ||
28633 | else | ||
28634 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28635 | echo "${ECHO_T}no" >&6; } | ||
28636 | fi | ||
28637 | |||
28638 | |||
28639 | # look for field 'ut_type' in header 'utmp.h' | ||
28640 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
28641 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
28642 | { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | ||
28643 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; } | ||
28644 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28646 | else | ||
28647 | |||
28648 | cat >conftest.$ac_ext <<_ACEOF | ||
28649 | /* confdefs.h. */ | ||
28650 | _ACEOF | ||
28651 | cat confdefs.h >>conftest.$ac_ext | ||
28652 | cat >>conftest.$ac_ext <<_ACEOF | ||
28653 | /* end confdefs.h. */ | ||
28654 | #include <utmp.h> | ||
28655 | |||
28656 | _ACEOF | ||
28657 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28658 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
28659 | eval "$ossh_varname=yes" | ||
28660 | else | ||
28661 | eval "$ossh_varname=no" | ||
28662 | fi | ||
28663 | rm -f conftest* | ||
28664 | |||
28665 | fi | ||
28666 | |||
28667 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28668 | if test -n "`echo $ossh_varname`"; then | ||
28669 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28670 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28671 | if test "x$ossh_result" = "xyes"; then | ||
28672 | |||
28673 | cat >>confdefs.h <<\_ACEOF | ||
28674 | #define HAVE_TYPE_IN_UTMP 1 | ||
28675 | _ACEOF | ||
28676 | |||
28677 | fi | ||
28678 | else | ||
28679 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28680 | echo "${ECHO_T}no" >&6; } | ||
28681 | fi | ||
28682 | |||
28683 | |||
28684 | # look for field 'ut_type' in header 'utmpx.h' | ||
28685 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
28686 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
28687 | { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | ||
28688 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; } | ||
28689 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28691 | else | ||
28692 | |||
28693 | cat >conftest.$ac_ext <<_ACEOF | ||
28694 | /* confdefs.h. */ | ||
28695 | _ACEOF | ||
28696 | cat confdefs.h >>conftest.$ac_ext | ||
28697 | cat >>conftest.$ac_ext <<_ACEOF | ||
28698 | /* end confdefs.h. */ | ||
28699 | #include <utmpx.h> | ||
28700 | |||
28701 | _ACEOF | ||
28702 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28703 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
28704 | eval "$ossh_varname=yes" | ||
28705 | else | ||
28706 | eval "$ossh_varname=no" | ||
28707 | fi | ||
28708 | rm -f conftest* | ||
28709 | |||
28710 | fi | ||
28711 | |||
28712 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28713 | if test -n "`echo $ossh_varname`"; then | ||
28714 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28715 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28716 | if test "x$ossh_result" = "xyes"; then | ||
28717 | |||
28718 | cat >>confdefs.h <<\_ACEOF | ||
28719 | #define HAVE_TYPE_IN_UTMPX 1 | ||
28720 | _ACEOF | ||
28721 | |||
28722 | fi | ||
28723 | else | ||
28724 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28725 | echo "${ECHO_T}no" >&6; } | ||
28726 | fi | ||
28727 | |||
28728 | |||
28729 | # look for field 'ut_tv' in header 'utmp.h' | ||
28730 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
28731 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
28732 | { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | ||
28733 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; } | ||
28734 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28736 | else | ||
28737 | |||
28738 | cat >conftest.$ac_ext <<_ACEOF | ||
28739 | /* confdefs.h. */ | ||
28740 | _ACEOF | ||
28741 | cat confdefs.h >>conftest.$ac_ext | ||
28742 | cat >>conftest.$ac_ext <<_ACEOF | ||
28743 | /* end confdefs.h. */ | ||
28744 | #include <utmp.h> | ||
28745 | |||
28746 | _ACEOF | ||
28747 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28748 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
28749 | eval "$ossh_varname=yes" | ||
28750 | else | ||
28751 | eval "$ossh_varname=no" | ||
28752 | fi | ||
28753 | rm -f conftest* | ||
28754 | |||
28755 | fi | ||
28756 | |||
28757 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28758 | if test -n "`echo $ossh_varname`"; then | ||
28759 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28760 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28761 | if test "x$ossh_result" = "xyes"; then | ||
28762 | |||
28763 | cat >>confdefs.h <<\_ACEOF | ||
28764 | #define HAVE_TV_IN_UTMP 1 | ||
28765 | _ACEOF | ||
28766 | |||
28767 | fi | ||
28768 | else | ||
28769 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28770 | echo "${ECHO_T}no" >&6; } | ||
28771 | fi | ||
28772 | |||
28773 | |||
28774 | # look for field 'ut_id' in header 'utmp.h' | ||
28775 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
28776 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
28777 | { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | ||
28778 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; } | ||
28779 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28781 | else | ||
28782 | |||
28783 | cat >conftest.$ac_ext <<_ACEOF | ||
28784 | /* confdefs.h. */ | ||
28785 | _ACEOF | ||
28786 | cat confdefs.h >>conftest.$ac_ext | ||
28787 | cat >>conftest.$ac_ext <<_ACEOF | ||
28788 | /* end confdefs.h. */ | ||
28789 | #include <utmp.h> | ||
28790 | |||
28791 | _ACEOF | ||
28792 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28793 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
28794 | eval "$ossh_varname=yes" | ||
28795 | else | ||
28796 | eval "$ossh_varname=no" | ||
28797 | fi | ||
28798 | rm -f conftest* | ||
28799 | |||
28800 | fi | ||
28801 | |||
28802 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28803 | if test -n "`echo $ossh_varname`"; then | ||
28804 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28805 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28806 | if test "x$ossh_result" = "xyes"; then | ||
28807 | |||
28808 | cat >>confdefs.h <<\_ACEOF | ||
28809 | #define HAVE_ID_IN_UTMP 1 | ||
28810 | _ACEOF | ||
28811 | |||
28812 | fi | ||
28813 | else | ||
28814 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28815 | echo "${ECHO_T}no" >&6; } | ||
28816 | fi | ||
28817 | |||
28818 | |||
28819 | # look for field 'ut_id' in header 'utmpx.h' | ||
28820 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
28821 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
28822 | { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | ||
28823 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; } | ||
28824 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28826 | else | ||
28827 | |||
28828 | cat >conftest.$ac_ext <<_ACEOF | ||
28829 | /* confdefs.h. */ | ||
28830 | _ACEOF | ||
28831 | cat confdefs.h >>conftest.$ac_ext | ||
28832 | cat >>conftest.$ac_ext <<_ACEOF | ||
28833 | /* end confdefs.h. */ | ||
28834 | #include <utmpx.h> | ||
28835 | |||
28836 | _ACEOF | ||
28837 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28838 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
28839 | eval "$ossh_varname=yes" | ||
28840 | else | ||
28841 | eval "$ossh_varname=no" | ||
28842 | fi | ||
28843 | rm -f conftest* | ||
28844 | |||
28845 | fi | ||
28846 | |||
28847 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28848 | if test -n "`echo $ossh_varname`"; then | ||
28849 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28850 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28851 | if test "x$ossh_result" = "xyes"; then | ||
28852 | |||
28853 | cat >>confdefs.h <<\_ACEOF | ||
28854 | #define HAVE_ID_IN_UTMPX 1 | ||
28855 | _ACEOF | ||
28856 | |||
28857 | fi | ||
28858 | else | ||
28859 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28860 | echo "${ECHO_T}no" >&6; } | ||
28861 | fi | ||
28862 | |||
28863 | |||
28864 | # look for field 'ut_addr' in header 'utmp.h' | ||
28865 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
28866 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
28867 | { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | ||
28868 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; } | ||
28869 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28871 | else | ||
28872 | |||
28873 | cat >conftest.$ac_ext <<_ACEOF | ||
28874 | /* confdefs.h. */ | ||
28875 | _ACEOF | ||
28876 | cat confdefs.h >>conftest.$ac_ext | ||
28877 | cat >>conftest.$ac_ext <<_ACEOF | ||
28878 | /* end confdefs.h. */ | ||
28879 | #include <utmp.h> | ||
28880 | |||
28881 | _ACEOF | ||
28882 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28883 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
28884 | eval "$ossh_varname=yes" | ||
28885 | else | ||
28886 | eval "$ossh_varname=no" | ||
28887 | fi | ||
28888 | rm -f conftest* | ||
28889 | |||
28890 | fi | ||
28891 | |||
28892 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28893 | if test -n "`echo $ossh_varname`"; then | ||
28894 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28895 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28896 | if test "x$ossh_result" = "xyes"; then | ||
28897 | |||
28898 | cat >>confdefs.h <<\_ACEOF | ||
28899 | #define HAVE_ADDR_IN_UTMP 1 | ||
28900 | _ACEOF | ||
28901 | |||
28902 | fi | ||
28903 | else | ||
28904 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28905 | echo "${ECHO_T}no" >&6; } | ||
28906 | fi | ||
28907 | |||
28908 | |||
28909 | # look for field 'ut_addr' in header 'utmpx.h' | ||
28910 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
28911 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
28912 | { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | ||
28913 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; } | ||
28914 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28916 | else | ||
28917 | |||
28918 | cat >conftest.$ac_ext <<_ACEOF | ||
28919 | /* confdefs.h. */ | ||
28920 | _ACEOF | ||
28921 | cat confdefs.h >>conftest.$ac_ext | ||
28922 | cat >>conftest.$ac_ext <<_ACEOF | ||
28923 | /* end confdefs.h. */ | ||
28924 | #include <utmpx.h> | ||
28925 | |||
28926 | _ACEOF | ||
28927 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28928 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
28929 | eval "$ossh_varname=yes" | ||
28930 | else | ||
28931 | eval "$ossh_varname=no" | ||
28932 | fi | ||
28933 | rm -f conftest* | ||
28934 | |||
28935 | fi | ||
28936 | |||
28937 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28938 | if test -n "`echo $ossh_varname`"; then | ||
28939 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28940 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28941 | if test "x$ossh_result" = "xyes"; then | ||
28942 | |||
28943 | cat >>confdefs.h <<\_ACEOF | ||
28944 | #define HAVE_ADDR_IN_UTMPX 1 | ||
28945 | _ACEOF | ||
28946 | |||
28947 | fi | ||
28948 | else | ||
28949 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28950 | echo "${ECHO_T}no" >&6; } | ||
28951 | fi | ||
28952 | |||
28953 | |||
28954 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
28955 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
28956 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
28957 | { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | ||
28958 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; } | ||
28959 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28961 | else | ||
28962 | |||
28963 | cat >conftest.$ac_ext <<_ACEOF | ||
28964 | /* confdefs.h. */ | ||
28965 | _ACEOF | ||
28966 | cat confdefs.h >>conftest.$ac_ext | ||
28967 | cat >>conftest.$ac_ext <<_ACEOF | ||
28968 | /* end confdefs.h. */ | ||
28969 | #include <utmp.h> | ||
28970 | |||
28971 | _ACEOF | ||
28972 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
28973 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
28974 | eval "$ossh_varname=yes" | ||
28975 | else | ||
28976 | eval "$ossh_varname=no" | ||
28977 | fi | ||
28978 | rm -f conftest* | ||
28979 | |||
28980 | fi | ||
28981 | |||
28982 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
28983 | if test -n "`echo $ossh_varname`"; then | ||
28984 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
28985 | echo "${ECHO_T}$ossh_result" >&6; } | ||
28986 | if test "x$ossh_result" = "xyes"; then | ||
28987 | |||
28988 | cat >>confdefs.h <<\_ACEOF | ||
28989 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
28990 | _ACEOF | ||
28991 | |||
28992 | fi | ||
28993 | else | ||
28994 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28995 | echo "${ECHO_T}no" >&6; } | ||
28996 | fi | ||
28997 | |||
28998 | |||
28999 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
29000 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
29001 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
29002 | { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
29003 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; } | ||
29004 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29006 | else | ||
29007 | |||
29008 | cat >conftest.$ac_ext <<_ACEOF | ||
29009 | /* confdefs.h. */ | ||
29010 | _ACEOF | ||
29011 | cat confdefs.h >>conftest.$ac_ext | ||
29012 | cat >>conftest.$ac_ext <<_ACEOF | ||
29013 | /* end confdefs.h. */ | ||
29014 | #include <utmpx.h> | ||
29015 | |||
29016 | _ACEOF | ||
29017 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29018 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
29019 | eval "$ossh_varname=yes" | ||
29020 | else | ||
29021 | eval "$ossh_varname=no" | ||
29022 | fi | ||
29023 | rm -f conftest* | ||
29024 | |||
29025 | fi | ||
29026 | |||
29027 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29028 | if test -n "`echo $ossh_varname`"; then | ||
29029 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29030 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29031 | if test "x$ossh_result" = "xyes"; then | ||
29032 | |||
29033 | cat >>confdefs.h <<\_ACEOF | ||
29034 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
29035 | _ACEOF | ||
29036 | |||
29037 | fi | ||
29038 | else | ||
29039 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29040 | echo "${ECHO_T}no" >&6; } | ||
29041 | fi | ||
29042 | |||
29043 | |||
29044 | # look for field 'ut_exit' in header 'utmp.h' | ||
29045 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
29046 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
29047 | { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | ||
29048 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; } | ||
29049 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29051 | else | ||
29052 | |||
29053 | cat >conftest.$ac_ext <<_ACEOF | ||
29054 | /* confdefs.h. */ | ||
29055 | _ACEOF | ||
29056 | cat confdefs.h >>conftest.$ac_ext | ||
29057 | cat >>conftest.$ac_ext <<_ACEOF | ||
29058 | /* end confdefs.h. */ | ||
29059 | #include <utmp.h> | ||
29060 | |||
29061 | _ACEOF | ||
29062 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29063 | $EGREP "ut_exit" >/dev/null 2>&1; then | ||
29064 | eval "$ossh_varname=yes" | ||
29065 | else | ||
29066 | eval "$ossh_varname=no" | ||
29067 | fi | ||
29068 | rm -f conftest* | ||
29069 | |||
29070 | fi | ||
29071 | |||
29072 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29073 | if test -n "`echo $ossh_varname`"; then | ||
29074 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29075 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29076 | if test "x$ossh_result" = "xyes"; then | ||
29077 | |||
29078 | cat >>confdefs.h <<\_ACEOF | ||
29079 | #define HAVE_EXIT_IN_UTMP 1 | ||
29080 | _ACEOF | ||
29081 | |||
29082 | fi | ||
29083 | else | ||
29084 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29085 | echo "${ECHO_T}no" >&6; } | ||
29086 | fi | ||
29087 | |||
29088 | |||
29089 | # look for field 'ut_time' in header 'utmp.h' | ||
29090 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
29091 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
29092 | { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | ||
29093 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; } | ||
29094 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29096 | else | ||
29097 | |||
29098 | cat >conftest.$ac_ext <<_ACEOF | ||
29099 | /* confdefs.h. */ | ||
29100 | _ACEOF | ||
29101 | cat confdefs.h >>conftest.$ac_ext | ||
29102 | cat >>conftest.$ac_ext <<_ACEOF | ||
29103 | /* end confdefs.h. */ | ||
29104 | #include <utmp.h> | ||
29105 | |||
29106 | _ACEOF | ||
29107 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29108 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
29109 | eval "$ossh_varname=yes" | ||
29110 | else | ||
29111 | eval "$ossh_varname=no" | ||
29112 | fi | ||
29113 | rm -f conftest* | ||
29114 | |||
29115 | fi | ||
29116 | |||
29117 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29118 | if test -n "`echo $ossh_varname`"; then | ||
29119 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29120 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29121 | if test "x$ossh_result" = "xyes"; then | ||
29122 | |||
29123 | cat >>confdefs.h <<\_ACEOF | ||
29124 | #define HAVE_TIME_IN_UTMP 1 | ||
29125 | _ACEOF | ||
29126 | |||
29127 | fi | ||
29128 | else | ||
29129 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29130 | echo "${ECHO_T}no" >&6; } | ||
29131 | fi | ||
29132 | |||
29133 | |||
29134 | # look for field 'ut_time' in header 'utmpx.h' | ||
29135 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
29136 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
29137 | { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | ||
29138 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; } | ||
29139 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29141 | else | ||
29142 | |||
29143 | cat >conftest.$ac_ext <<_ACEOF | ||
29144 | /* confdefs.h. */ | ||
29145 | _ACEOF | ||
29146 | cat confdefs.h >>conftest.$ac_ext | ||
29147 | cat >>conftest.$ac_ext <<_ACEOF | ||
29148 | /* end confdefs.h. */ | ||
29149 | #include <utmpx.h> | ||
29150 | |||
29151 | _ACEOF | ||
29152 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29153 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
29154 | eval "$ossh_varname=yes" | ||
29155 | else | ||
29156 | eval "$ossh_varname=no" | ||
29157 | fi | ||
29158 | rm -f conftest* | ||
29159 | |||
29160 | fi | ||
29161 | |||
29162 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29163 | if test -n "`echo $ossh_varname`"; then | ||
29164 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29165 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29166 | if test "x$ossh_result" = "xyes"; then | ||
29167 | |||
29168 | cat >>confdefs.h <<\_ACEOF | ||
29169 | #define HAVE_TIME_IN_UTMPX 1 | ||
29170 | _ACEOF | ||
29171 | |||
29172 | fi | ||
29173 | else | ||
29174 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29175 | echo "${ECHO_T}no" >&6; } | ||
29176 | fi | ||
29177 | |||
29178 | |||
29179 | # look for field 'ut_tv' in header 'utmpx.h' | ||
29180 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
29181 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
29182 | { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | ||
29183 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; } | ||
29184 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29186 | else | ||
29187 | |||
29188 | cat >conftest.$ac_ext <<_ACEOF | ||
29189 | /* confdefs.h. */ | ||
29190 | _ACEOF | ||
29191 | cat confdefs.h >>conftest.$ac_ext | ||
29192 | cat >>conftest.$ac_ext <<_ACEOF | ||
29193 | /* end confdefs.h. */ | ||
29194 | #include <utmpx.h> | ||
29195 | |||
29196 | _ACEOF | ||
29197 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
29198 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
29199 | eval "$ossh_varname=yes" | ||
29200 | else | ||
29201 | eval "$ossh_varname=no" | ||
29202 | fi | ||
29203 | rm -f conftest* | ||
29204 | |||
29205 | fi | ||
29206 | |||
29207 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
29208 | if test -n "`echo $ossh_varname`"; then | ||
29209 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
29210 | echo "${ECHO_T}$ossh_result" >&6; } | ||
29211 | if test "x$ossh_result" = "xyes"; then | ||
29212 | |||
29213 | cat >>confdefs.h <<\_ACEOF | ||
29214 | #define HAVE_TV_IN_UTMPX 1 | ||
29215 | _ACEOF | ||
29216 | |||
29217 | fi | ||
29218 | else | ||
29219 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29220 | echo "${ECHO_T}no" >&6; } | ||
29221 | fi | ||
29222 | |||
29223 | |||
29224 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | ||
29225 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; } | ||
29226 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
29227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29228 | else | ||
29229 | cat >conftest.$ac_ext <<_ACEOF | ||
29230 | /* confdefs.h. */ | ||
29231 | _ACEOF | ||
29232 | cat confdefs.h >>conftest.$ac_ext | ||
29233 | cat >>conftest.$ac_ext <<_ACEOF | ||
29234 | /* end confdefs.h. */ | ||
29235 | $ac_includes_default | ||
29236 | int | ||
29237 | main () | ||
29238 | { | ||
29239 | static struct stat ac_aggr; | ||
29240 | if (ac_aggr.st_blksize) | ||
29241 | return 0; | ||
29242 | ; | ||
29243 | return 0; | ||
29244 | } | ||
29245 | _ACEOF | ||
29246 | rm -f conftest.$ac_objext | ||
29247 | if { (ac_try="$ac_compile" | ||
29248 | case "(($ac_try" in | ||
29249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29250 | *) ac_try_echo=$ac_try;; | ||
29251 | esac | ||
29252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29253 | (eval "$ac_compile") 2>conftest.er1 | ||
29254 | ac_status=$? | ||
29255 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29256 | rm -f conftest.er1 | ||
29257 | cat conftest.err >&5 | ||
29258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29259 | (exit $ac_status); } && { | ||
29260 | test -z "$ac_c_werror_flag" || | ||
29261 | test ! -s conftest.err | ||
29262 | } && test -s conftest.$ac_objext; then | ||
29263 | ac_cv_member_struct_stat_st_blksize=yes | ||
29264 | else | ||
29265 | echo "$as_me: failed program was:" >&5 | ||
29266 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29267 | |||
29268 | cat >conftest.$ac_ext <<_ACEOF | ||
29269 | /* confdefs.h. */ | ||
29270 | _ACEOF | ||
29271 | cat confdefs.h >>conftest.$ac_ext | ||
29272 | cat >>conftest.$ac_ext <<_ACEOF | ||
29273 | /* end confdefs.h. */ | ||
29274 | $ac_includes_default | ||
29275 | int | ||
29276 | main () | ||
29277 | { | ||
29278 | static struct stat ac_aggr; | ||
29279 | if (sizeof ac_aggr.st_blksize) | ||
29280 | return 0; | ||
29281 | ; | ||
29282 | return 0; | ||
29283 | } | ||
29284 | _ACEOF | ||
29285 | rm -f conftest.$ac_objext | ||
29286 | if { (ac_try="$ac_compile" | ||
29287 | case "(($ac_try" in | ||
29288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29289 | *) ac_try_echo=$ac_try;; | ||
29290 | esac | ||
29291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29292 | (eval "$ac_compile") 2>conftest.er1 | ||
29293 | ac_status=$? | ||
29294 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29295 | rm -f conftest.er1 | ||
29296 | cat conftest.err >&5 | ||
29297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29298 | (exit $ac_status); } && { | ||
29299 | test -z "$ac_c_werror_flag" || | ||
29300 | test ! -s conftest.err | ||
29301 | } && test -s conftest.$ac_objext; then | ||
29302 | ac_cv_member_struct_stat_st_blksize=yes | ||
29303 | else | ||
29304 | echo "$as_me: failed program was:" >&5 | ||
29305 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29306 | |||
29307 | ac_cv_member_struct_stat_st_blksize=no | ||
29308 | fi | ||
29309 | |||
29310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29311 | fi | ||
29312 | |||
29313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29314 | fi | ||
29315 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
29316 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } | ||
29317 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
29318 | |||
29319 | cat >>confdefs.h <<_ACEOF | ||
29320 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
29321 | _ACEOF | ||
29322 | |||
29323 | |||
29324 | fi | ||
29325 | |||
29326 | { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5 | ||
29327 | echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; } | ||
29328 | if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then | ||
29329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29330 | else | ||
29331 | cat >conftest.$ac_ext <<_ACEOF | ||
29332 | /* confdefs.h. */ | ||
29333 | _ACEOF | ||
29334 | cat confdefs.h >>conftest.$ac_ext | ||
29335 | cat >>conftest.$ac_ext <<_ACEOF | ||
29336 | /* end confdefs.h. */ | ||
29337 | |||
29338 | #include <sys/types.h> | ||
29339 | #include <pwd.h> | ||
29340 | |||
29341 | |||
29342 | int | ||
29343 | main () | ||
29344 | { | ||
29345 | static struct passwd ac_aggr; | ||
29346 | if (ac_aggr.pw_gecos) | ||
29347 | return 0; | ||
29348 | ; | ||
29349 | return 0; | ||
29350 | } | ||
29351 | _ACEOF | ||
29352 | rm -f conftest.$ac_objext | ||
29353 | if { (ac_try="$ac_compile" | ||
29354 | case "(($ac_try" in | ||
29355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29356 | *) ac_try_echo=$ac_try;; | ||
29357 | esac | ||
29358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29359 | (eval "$ac_compile") 2>conftest.er1 | ||
29360 | ac_status=$? | ||
29361 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29362 | rm -f conftest.er1 | ||
29363 | cat conftest.err >&5 | ||
29364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29365 | (exit $ac_status); } && { | ||
29366 | test -z "$ac_c_werror_flag" || | ||
29367 | test ! -s conftest.err | ||
29368 | } && test -s conftest.$ac_objext; then | ||
29369 | ac_cv_member_struct_passwd_pw_gecos=yes | ||
29370 | else | ||
29371 | echo "$as_me: failed program was:" >&5 | ||
29372 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29373 | |||
29374 | cat >conftest.$ac_ext <<_ACEOF | ||
29375 | /* confdefs.h. */ | ||
29376 | _ACEOF | ||
29377 | cat confdefs.h >>conftest.$ac_ext | ||
29378 | cat >>conftest.$ac_ext <<_ACEOF | ||
29379 | /* end confdefs.h. */ | ||
29380 | |||
29381 | #include <sys/types.h> | ||
29382 | #include <pwd.h> | ||
29383 | |||
29384 | |||
29385 | int | ||
29386 | main () | ||
29387 | { | ||
29388 | static struct passwd ac_aggr; | ||
29389 | if (sizeof ac_aggr.pw_gecos) | ||
29390 | return 0; | ||
29391 | ; | ||
29392 | return 0; | ||
29393 | } | ||
29394 | _ACEOF | ||
29395 | rm -f conftest.$ac_objext | ||
29396 | if { (ac_try="$ac_compile" | ||
29397 | case "(($ac_try" in | ||
29398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29399 | *) ac_try_echo=$ac_try;; | ||
29400 | esac | ||
29401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29402 | (eval "$ac_compile") 2>conftest.er1 | ||
29403 | ac_status=$? | ||
29404 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29405 | rm -f conftest.er1 | ||
29406 | cat conftest.err >&5 | ||
29407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29408 | (exit $ac_status); } && { | ||
29409 | test -z "$ac_c_werror_flag" || | ||
29410 | test ! -s conftest.err | ||
29411 | } && test -s conftest.$ac_objext; then | ||
29412 | ac_cv_member_struct_passwd_pw_gecos=yes | ||
29413 | else | ||
29414 | echo "$as_me: failed program was:" >&5 | ||
29415 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29416 | |||
29417 | ac_cv_member_struct_passwd_pw_gecos=no | ||
29418 | fi | ||
29419 | |||
29420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29421 | fi | ||
29422 | |||
29423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29424 | fi | ||
29425 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5 | ||
29426 | echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; } | ||
29427 | if test $ac_cv_member_struct_passwd_pw_gecos = yes; then | ||
29428 | |||
29429 | cat >>confdefs.h <<_ACEOF | ||
29430 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | ||
29431 | _ACEOF | ||
29432 | |||
29433 | |||
29434 | fi | ||
29435 | { echo "$as_me:$LINENO: checking for struct passwd.pw_class" >&5 | ||
29436 | echo $ECHO_N "checking for struct passwd.pw_class... $ECHO_C" >&6; } | ||
29437 | if test "${ac_cv_member_struct_passwd_pw_class+set}" = set; then | ||
29438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29439 | else | ||
29440 | cat >conftest.$ac_ext <<_ACEOF | ||
29441 | /* confdefs.h. */ | ||
29442 | _ACEOF | ||
29443 | cat confdefs.h >>conftest.$ac_ext | ||
29444 | cat >>conftest.$ac_ext <<_ACEOF | ||
29445 | /* end confdefs.h. */ | ||
29446 | |||
29447 | #include <sys/types.h> | ||
29448 | #include <pwd.h> | ||
29449 | |||
29450 | |||
29451 | int | ||
29452 | main () | ||
29453 | { | ||
29454 | static struct passwd ac_aggr; | ||
29455 | if (ac_aggr.pw_class) | ||
29456 | return 0; | ||
29457 | ; | ||
29458 | return 0; | ||
29459 | } | ||
29460 | _ACEOF | ||
29461 | rm -f conftest.$ac_objext | ||
29462 | if { (ac_try="$ac_compile" | ||
29463 | case "(($ac_try" in | ||
29464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29465 | *) ac_try_echo=$ac_try;; | ||
29466 | esac | ||
29467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29468 | (eval "$ac_compile") 2>conftest.er1 | ||
29469 | ac_status=$? | ||
29470 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29471 | rm -f conftest.er1 | ||
29472 | cat conftest.err >&5 | ||
29473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29474 | (exit $ac_status); } && { | ||
29475 | test -z "$ac_c_werror_flag" || | ||
29476 | test ! -s conftest.err | ||
29477 | } && test -s conftest.$ac_objext; then | ||
29478 | ac_cv_member_struct_passwd_pw_class=yes | ||
29479 | else | ||
29480 | echo "$as_me: failed program was:" >&5 | ||
29481 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29482 | |||
29483 | cat >conftest.$ac_ext <<_ACEOF | ||
29484 | /* confdefs.h. */ | ||
29485 | _ACEOF | ||
29486 | cat confdefs.h >>conftest.$ac_ext | ||
29487 | cat >>conftest.$ac_ext <<_ACEOF | ||
29488 | /* end confdefs.h. */ | ||
29489 | |||
29490 | #include <sys/types.h> | ||
29491 | #include <pwd.h> | ||
29492 | |||
29493 | |||
29494 | int | ||
29495 | main () | ||
29496 | { | ||
29497 | static struct passwd ac_aggr; | ||
29498 | if (sizeof ac_aggr.pw_class) | ||
29499 | return 0; | ||
29500 | ; | ||
29501 | return 0; | ||
29502 | } | ||
29503 | _ACEOF | ||
29504 | rm -f conftest.$ac_objext | ||
29505 | if { (ac_try="$ac_compile" | ||
29506 | case "(($ac_try" in | ||
29507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29508 | *) ac_try_echo=$ac_try;; | ||
29509 | esac | ||
29510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29511 | (eval "$ac_compile") 2>conftest.er1 | ||
29512 | ac_status=$? | ||
29513 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29514 | rm -f conftest.er1 | ||
29515 | cat conftest.err >&5 | ||
29516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29517 | (exit $ac_status); } && { | ||
29518 | test -z "$ac_c_werror_flag" || | ||
29519 | test ! -s conftest.err | ||
29520 | } && test -s conftest.$ac_objext; then | ||
29521 | ac_cv_member_struct_passwd_pw_class=yes | ||
29522 | else | ||
29523 | echo "$as_me: failed program was:" >&5 | ||
29524 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29525 | |||
29526 | ac_cv_member_struct_passwd_pw_class=no | ||
29527 | fi | ||
29528 | |||
29529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29530 | fi | ||
29531 | |||
29532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29533 | fi | ||
29534 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_class" >&5 | ||
29535 | echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_class" >&6; } | ||
29536 | if test $ac_cv_member_struct_passwd_pw_class = yes; then | ||
29537 | |||
29538 | cat >>confdefs.h <<_ACEOF | ||
29539 | #define HAVE_STRUCT_PASSWD_PW_CLASS 1 | ||
29540 | _ACEOF | ||
29541 | |||
29542 | |||
29543 | fi | ||
29544 | { echo "$as_me:$LINENO: checking for struct passwd.pw_change" >&5 | ||
29545 | echo $ECHO_N "checking for struct passwd.pw_change... $ECHO_C" >&6; } | ||
29546 | if test "${ac_cv_member_struct_passwd_pw_change+set}" = set; then | ||
29547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29548 | else | ||
29549 | cat >conftest.$ac_ext <<_ACEOF | ||
29550 | /* confdefs.h. */ | ||
29551 | _ACEOF | ||
29552 | cat confdefs.h >>conftest.$ac_ext | ||
29553 | cat >>conftest.$ac_ext <<_ACEOF | ||
29554 | /* end confdefs.h. */ | ||
29555 | |||
29556 | #include <sys/types.h> | ||
29557 | #include <pwd.h> | ||
29558 | |||
29559 | |||
29560 | int | ||
29561 | main () | ||
29562 | { | ||
29563 | static struct passwd ac_aggr; | ||
29564 | if (ac_aggr.pw_change) | ||
29565 | return 0; | ||
29566 | ; | ||
29567 | return 0; | ||
29568 | } | ||
29569 | _ACEOF | ||
29570 | rm -f conftest.$ac_objext | ||
29571 | if { (ac_try="$ac_compile" | ||
29572 | case "(($ac_try" in | ||
29573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29574 | *) ac_try_echo=$ac_try;; | ||
29575 | esac | ||
29576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29577 | (eval "$ac_compile") 2>conftest.er1 | ||
29578 | ac_status=$? | ||
29579 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29580 | rm -f conftest.er1 | ||
29581 | cat conftest.err >&5 | ||
29582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29583 | (exit $ac_status); } && { | ||
29584 | test -z "$ac_c_werror_flag" || | ||
29585 | test ! -s conftest.err | ||
29586 | } && test -s conftest.$ac_objext; then | ||
29587 | ac_cv_member_struct_passwd_pw_change=yes | ||
29588 | else | ||
29589 | echo "$as_me: failed program was:" >&5 | ||
29590 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29591 | |||
29592 | cat >conftest.$ac_ext <<_ACEOF | ||
29593 | /* confdefs.h. */ | ||
29594 | _ACEOF | ||
29595 | cat confdefs.h >>conftest.$ac_ext | ||
29596 | cat >>conftest.$ac_ext <<_ACEOF | ||
29597 | /* end confdefs.h. */ | ||
29598 | |||
29599 | #include <sys/types.h> | ||
29600 | #include <pwd.h> | ||
29601 | |||
29602 | |||
29603 | int | ||
29604 | main () | ||
29605 | { | ||
29606 | static struct passwd ac_aggr; | ||
29607 | if (sizeof ac_aggr.pw_change) | ||
29608 | return 0; | ||
29609 | ; | ||
29610 | return 0; | ||
29611 | } | ||
29612 | _ACEOF | ||
29613 | rm -f conftest.$ac_objext | ||
29614 | if { (ac_try="$ac_compile" | ||
29615 | case "(($ac_try" in | ||
29616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29617 | *) ac_try_echo=$ac_try;; | ||
29618 | esac | ||
29619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29620 | (eval "$ac_compile") 2>conftest.er1 | ||
29621 | ac_status=$? | ||
29622 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29623 | rm -f conftest.er1 | ||
29624 | cat conftest.err >&5 | ||
29625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29626 | (exit $ac_status); } && { | ||
29627 | test -z "$ac_c_werror_flag" || | ||
29628 | test ! -s conftest.err | ||
29629 | } && test -s conftest.$ac_objext; then | ||
29630 | ac_cv_member_struct_passwd_pw_change=yes | ||
29631 | else | ||
29632 | echo "$as_me: failed program was:" >&5 | ||
29633 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29634 | |||
29635 | ac_cv_member_struct_passwd_pw_change=no | ||
29636 | fi | ||
29637 | |||
29638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29639 | fi | ||
29640 | |||
29641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29642 | fi | ||
29643 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_change" >&5 | ||
29644 | echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_change" >&6; } | ||
29645 | if test $ac_cv_member_struct_passwd_pw_change = yes; then | ||
29646 | |||
29647 | cat >>confdefs.h <<_ACEOF | ||
29648 | #define HAVE_STRUCT_PASSWD_PW_CHANGE 1 | ||
29649 | _ACEOF | ||
29650 | |||
29651 | |||
29652 | fi | ||
29653 | { echo "$as_me:$LINENO: checking for struct passwd.pw_expire" >&5 | ||
29654 | echo $ECHO_N "checking for struct passwd.pw_expire... $ECHO_C" >&6; } | ||
29655 | if test "${ac_cv_member_struct_passwd_pw_expire+set}" = set; then | ||
29656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29657 | else | ||
29658 | cat >conftest.$ac_ext <<_ACEOF | ||
29659 | /* confdefs.h. */ | ||
29660 | _ACEOF | ||
29661 | cat confdefs.h >>conftest.$ac_ext | ||
29662 | cat >>conftest.$ac_ext <<_ACEOF | ||
29663 | /* end confdefs.h. */ | ||
29664 | |||
29665 | #include <sys/types.h> | ||
29666 | #include <pwd.h> | ||
29667 | |||
29668 | |||
29669 | int | ||
29670 | main () | ||
29671 | { | ||
29672 | static struct passwd ac_aggr; | ||
29673 | if (ac_aggr.pw_expire) | ||
29674 | return 0; | ||
29675 | ; | ||
29676 | return 0; | ||
29677 | } | ||
29678 | _ACEOF | ||
29679 | rm -f conftest.$ac_objext | ||
29680 | if { (ac_try="$ac_compile" | ||
29681 | case "(($ac_try" in | ||
29682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29683 | *) ac_try_echo=$ac_try;; | ||
29684 | esac | ||
29685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29686 | (eval "$ac_compile") 2>conftest.er1 | ||
29687 | ac_status=$? | ||
29688 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29689 | rm -f conftest.er1 | ||
29690 | cat conftest.err >&5 | ||
29691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29692 | (exit $ac_status); } && { | ||
29693 | test -z "$ac_c_werror_flag" || | ||
29694 | test ! -s conftest.err | ||
29695 | } && test -s conftest.$ac_objext; then | ||
29696 | ac_cv_member_struct_passwd_pw_expire=yes | ||
29697 | else | ||
29698 | echo "$as_me: failed program was:" >&5 | ||
29699 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
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 | |||
29708 | #include <sys/types.h> | ||
29709 | #include <pwd.h> | ||
29710 | |||
29711 | |||
29712 | int | ||
29713 | main () | ||
29714 | { | ||
29715 | static struct passwd ac_aggr; | ||
29716 | if (sizeof ac_aggr.pw_expire) | ||
29717 | return 0; | ||
29718 | ; | ||
29719 | return 0; | ||
29720 | } | ||
29721 | _ACEOF | ||
29722 | rm -f conftest.$ac_objext | ||
29723 | if { (ac_try="$ac_compile" | ||
29724 | case "(($ac_try" in | ||
29725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29726 | *) ac_try_echo=$ac_try;; | ||
29727 | esac | ||
29728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29729 | (eval "$ac_compile") 2>conftest.er1 | ||
29730 | ac_status=$? | ||
29731 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29732 | rm -f conftest.er1 | ||
29733 | cat conftest.err >&5 | ||
29734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29735 | (exit $ac_status); } && { | ||
29736 | test -z "$ac_c_werror_flag" || | ||
29737 | test ! -s conftest.err | ||
29738 | } && test -s conftest.$ac_objext; then | ||
29739 | ac_cv_member_struct_passwd_pw_expire=yes | ||
29740 | else | ||
29741 | echo "$as_me: failed program was:" >&5 | ||
29742 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29743 | |||
29744 | ac_cv_member_struct_passwd_pw_expire=no | ||
29745 | fi | ||
29746 | |||
29747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29748 | fi | ||
29749 | |||
29750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29751 | fi | ||
29752 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_expire" >&5 | ||
29753 | echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_expire" >&6; } | ||
29754 | if test $ac_cv_member_struct_passwd_pw_expire = yes; then | ||
29755 | |||
29756 | cat >>confdefs.h <<_ACEOF | ||
29757 | #define HAVE_STRUCT_PASSWD_PW_EXPIRE 1 | ||
29758 | _ACEOF | ||
29759 | |||
29760 | |||
29761 | fi | ||
29762 | |||
29763 | |||
29764 | { echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5 | ||
29765 | echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; } | ||
29766 | if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then | ||
29767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29768 | else | ||
29769 | cat >conftest.$ac_ext <<_ACEOF | ||
29770 | /* confdefs.h. */ | ||
29771 | _ACEOF | ||
29772 | cat confdefs.h >>conftest.$ac_ext | ||
29773 | cat >>conftest.$ac_ext <<_ACEOF | ||
29774 | /* end confdefs.h. */ | ||
29775 | |||
29776 | #include <stdio.h> | ||
29777 | #if HAVE_SYS_TYPES_H | ||
29778 | # include <sys/types.h> | ||
29779 | #endif | ||
29780 | #include <netinet/in.h> | ||
29781 | #include <arpa/nameser.h> | ||
29782 | #include <resolv.h> | ||
29783 | |||
29784 | |||
29785 | int | ||
29786 | main () | ||
29787 | { | ||
29788 | static struct __res_state ac_aggr; | ||
29789 | if (ac_aggr.retrans) | ||
29790 | return 0; | ||
29791 | ; | ||
29792 | return 0; | ||
29793 | } | ||
29794 | _ACEOF | ||
29795 | rm -f conftest.$ac_objext | ||
29796 | if { (ac_try="$ac_compile" | ||
29797 | case "(($ac_try" in | ||
29798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29799 | *) ac_try_echo=$ac_try;; | ||
29800 | esac | ||
29801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29802 | (eval "$ac_compile") 2>conftest.er1 | ||
29803 | ac_status=$? | ||
29804 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29805 | rm -f conftest.er1 | ||
29806 | cat conftest.err >&5 | ||
29807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29808 | (exit $ac_status); } && { | ||
29809 | test -z "$ac_c_werror_flag" || | ||
29810 | test ! -s conftest.err | ||
29811 | } && test -s conftest.$ac_objext; then | ||
29812 | ac_cv_member_struct___res_state_retrans=yes | ||
29813 | else | ||
29814 | echo "$as_me: failed program was:" >&5 | ||
29815 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29816 | |||
29817 | cat >conftest.$ac_ext <<_ACEOF | ||
29818 | /* confdefs.h. */ | ||
29819 | _ACEOF | ||
29820 | cat confdefs.h >>conftest.$ac_ext | ||
29821 | cat >>conftest.$ac_ext <<_ACEOF | ||
29822 | /* end confdefs.h. */ | ||
29823 | |||
29824 | #include <stdio.h> | ||
29825 | #if HAVE_SYS_TYPES_H | ||
29826 | # include <sys/types.h> | ||
29827 | #endif | ||
29828 | #include <netinet/in.h> | ||
29829 | #include <arpa/nameser.h> | ||
29830 | #include <resolv.h> | ||
29831 | |||
29832 | |||
29833 | int | ||
29834 | main () | ||
29835 | { | ||
29836 | static struct __res_state ac_aggr; | ||
29837 | if (sizeof ac_aggr.retrans) | ||
29838 | return 0; | ||
29839 | ; | ||
29840 | return 0; | ||
29841 | } | ||
29842 | _ACEOF | ||
29843 | rm -f conftest.$ac_objext | ||
29844 | if { (ac_try="$ac_compile" | ||
29845 | case "(($ac_try" in | ||
29846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29847 | *) ac_try_echo=$ac_try;; | ||
29848 | esac | ||
29849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29850 | (eval "$ac_compile") 2>conftest.er1 | ||
29851 | ac_status=$? | ||
29852 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29853 | rm -f conftest.er1 | ||
29854 | cat conftest.err >&5 | ||
29855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29856 | (exit $ac_status); } && { | ||
29857 | test -z "$ac_c_werror_flag" || | ||
29858 | test ! -s conftest.err | ||
29859 | } && test -s conftest.$ac_objext; then | ||
29860 | ac_cv_member_struct___res_state_retrans=yes | ||
29861 | else | ||
29862 | echo "$as_me: failed program was:" >&5 | ||
29863 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29864 | |||
29865 | ac_cv_member_struct___res_state_retrans=no | ||
29866 | fi | ||
29867 | |||
29868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29869 | fi | ||
29870 | |||
29871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29872 | fi | ||
29873 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5 | ||
29874 | echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; } | ||
29875 | if test $ac_cv_member_struct___res_state_retrans = yes; then | ||
29876 | : | ||
29877 | else | ||
29878 | |||
29879 | cat >>confdefs.h <<\_ACEOF | ||
29880 | #define __res_state state | ||
29881 | _ACEOF | ||
29882 | |||
29883 | fi | ||
29884 | |||
29885 | |||
29886 | { echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | ||
29887 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } | ||
29888 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
29889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29890 | else | ||
29891 | |||
29892 | cat >conftest.$ac_ext <<_ACEOF | ||
29893 | /* confdefs.h. */ | ||
29894 | _ACEOF | ||
29895 | cat confdefs.h >>conftest.$ac_ext | ||
29896 | cat >>conftest.$ac_ext <<_ACEOF | ||
29897 | /* end confdefs.h. */ | ||
29898 | |||
29899 | #include <sys/types.h> | ||
29900 | #include <sys/socket.h> | ||
29901 | |||
29902 | int | ||
29903 | main () | ||
29904 | { | ||
29905 | struct sockaddr_storage s; s.ss_family = 1; | ||
29906 | ; | ||
29907 | return 0; | ||
29908 | } | ||
29909 | _ACEOF | ||
29910 | rm -f conftest.$ac_objext | ||
29911 | if { (ac_try="$ac_compile" | ||
29912 | case "(($ac_try" in | ||
29913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29914 | *) ac_try_echo=$ac_try;; | ||
29915 | esac | ||
29916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29917 | (eval "$ac_compile") 2>conftest.er1 | ||
29918 | ac_status=$? | ||
29919 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29920 | rm -f conftest.er1 | ||
29921 | cat conftest.err >&5 | ||
29922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29923 | (exit $ac_status); } && { | ||
29924 | test -z "$ac_c_werror_flag" || | ||
29925 | test ! -s conftest.err | ||
29926 | } && test -s conftest.$ac_objext; then | ||
29927 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
29928 | else | ||
29929 | echo "$as_me: failed program was:" >&5 | ||
29930 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29931 | |||
29932 | ac_cv_have_ss_family_in_struct_ss="no" | ||
29933 | fi | ||
29934 | |||
29935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29936 | |||
29937 | fi | ||
29938 | { echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
29939 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; } | ||
29940 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
29941 | |||
29942 | cat >>confdefs.h <<\_ACEOF | ||
29943 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
29944 | _ACEOF | ||
29945 | |||
29946 | fi | ||
29947 | |||
29948 | { echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
29949 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } | ||
29950 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
29951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29952 | else | ||
29953 | |||
29954 | cat >conftest.$ac_ext <<_ACEOF | ||
29955 | /* confdefs.h. */ | ||
29956 | _ACEOF | ||
29957 | cat confdefs.h >>conftest.$ac_ext | ||
29958 | cat >>conftest.$ac_ext <<_ACEOF | ||
29959 | /* end confdefs.h. */ | ||
29960 | |||
29961 | #include <sys/types.h> | ||
29962 | #include <sys/socket.h> | ||
29963 | |||
29964 | int | ||
29965 | main () | ||
29966 | { | ||
29967 | struct sockaddr_storage s; s.__ss_family = 1; | ||
29968 | ; | ||
29969 | return 0; | ||
29970 | } | ||
29971 | _ACEOF | ||
29972 | rm -f conftest.$ac_objext | ||
29973 | if { (ac_try="$ac_compile" | ||
29974 | case "(($ac_try" in | ||
29975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29976 | *) ac_try_echo=$ac_try;; | ||
29977 | esac | ||
29978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29979 | (eval "$ac_compile") 2>conftest.er1 | ||
29980 | ac_status=$? | ||
29981 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29982 | rm -f conftest.er1 | ||
29983 | cat conftest.err >&5 | ||
29984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29985 | (exit $ac_status); } && { | ||
29986 | test -z "$ac_c_werror_flag" || | ||
29987 | test ! -s conftest.err | ||
29988 | } && test -s conftest.$ac_objext; then | ||
29989 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
29990 | else | ||
29991 | echo "$as_me: failed program was:" >&5 | ||
29992 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29993 | |||
29994 | ac_cv_have___ss_family_in_struct_ss="no" | ||
29995 | |||
29996 | fi | ||
29997 | |||
29998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29999 | |||
30000 | fi | ||
30001 | { echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
30002 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; } | ||
30003 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
30004 | |||
30005 | cat >>confdefs.h <<\_ACEOF | ||
30006 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
30007 | _ACEOF | ||
30008 | |||
30009 | fi | ||
30010 | |||
30011 | { echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | ||
30012 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; } | ||
30013 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
30014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30015 | else | ||
30016 | |||
30017 | cat >conftest.$ac_ext <<_ACEOF | ||
30018 | /* confdefs.h. */ | ||
30019 | _ACEOF | ||
30020 | cat confdefs.h >>conftest.$ac_ext | ||
30021 | cat >>conftest.$ac_ext <<_ACEOF | ||
30022 | /* end confdefs.h. */ | ||
30023 | |||
30024 | #include <sys/types.h> | ||
30025 | #include <sys/socket.h> | ||
30026 | #include <sys/uio.h> | ||
30027 | |||
30028 | int | ||
30029 | main () | ||
30030 | { | ||
30031 | |||
30032 | #ifdef msg_accrights | ||
30033 | #error "msg_accrights is a macro" | ||
30034 | exit(1); | ||
30035 | #endif | ||
30036 | struct msghdr m; | ||
30037 | m.msg_accrights = 0; | ||
30038 | exit(0); | ||
30039 | |||
30040 | ; | ||
30041 | return 0; | ||
30042 | } | ||
30043 | _ACEOF | ||
30044 | rm -f conftest.$ac_objext | ||
30045 | if { (ac_try="$ac_compile" | ||
30046 | case "(($ac_try" in | ||
30047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30048 | *) ac_try_echo=$ac_try;; | ||
30049 | esac | ||
30050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30051 | (eval "$ac_compile") 2>conftest.er1 | ||
30052 | ac_status=$? | ||
30053 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30054 | rm -f conftest.er1 | ||
30055 | cat conftest.err >&5 | ||
30056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30057 | (exit $ac_status); } && { | ||
30058 | test -z "$ac_c_werror_flag" || | ||
30059 | test ! -s conftest.err | ||
30060 | } && test -s conftest.$ac_objext; then | ||
30061 | ac_cv_have_accrights_in_msghdr="yes" | ||
30062 | else | ||
30063 | echo "$as_me: failed program was:" >&5 | ||
30064 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30065 | |||
30066 | ac_cv_have_accrights_in_msghdr="no" | ||
30067 | |||
30068 | fi | ||
30069 | |||
30070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30071 | |||
30072 | fi | ||
30073 | { echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
30074 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; } | ||
30075 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
30076 | |||
30077 | cat >>confdefs.h <<\_ACEOF | ||
30078 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
30079 | _ACEOF | ||
30080 | |||
30081 | fi | ||
30082 | |||
30083 | { echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5 | ||
30084 | echo $ECHO_N "checking if struct statvfs.f_fsid is integral type... $ECHO_C" >&6; } | ||
30085 | cat >conftest.$ac_ext <<_ACEOF | ||
30086 | /* confdefs.h. */ | ||
30087 | _ACEOF | ||
30088 | cat confdefs.h >>conftest.$ac_ext | ||
30089 | cat >>conftest.$ac_ext <<_ACEOF | ||
30090 | /* end confdefs.h. */ | ||
30091 | |||
30092 | #include <sys/param.h> | ||
30093 | #include <sys/stat.h> | ||
30094 | #ifdef HAVE_SYS_TIME_H | ||
30095 | # include <sys/time.h> | ||
30096 | #endif | ||
30097 | #ifdef HAVE_SYS_MOUNT_H | ||
30098 | #include <sys/mount.h> | ||
30099 | #endif | ||
30100 | #ifdef HAVE_SYS_STATVFS_H | ||
30101 | #include <sys/statvfs.h> | ||
30102 | #endif | ||
30103 | |||
30104 | int | ||
30105 | main () | ||
30106 | { | ||
30107 | struct statvfs s; s.f_fsid = 0; | ||
30108 | ; | ||
30109 | return 0; | ||
30110 | } | ||
30111 | _ACEOF | ||
30112 | rm -f conftest.$ac_objext | ||
30113 | if { (ac_try="$ac_compile" | ||
30114 | case "(($ac_try" in | ||
30115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30116 | *) ac_try_echo=$ac_try;; | ||
30117 | esac | ||
30118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30119 | (eval "$ac_compile") 2>conftest.er1 | ||
30120 | ac_status=$? | ||
30121 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30122 | rm -f conftest.er1 | ||
30123 | cat conftest.err >&5 | ||
30124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30125 | (exit $ac_status); } && { | ||
30126 | test -z "$ac_c_werror_flag" || | ||
30127 | test ! -s conftest.err | ||
30128 | } && test -s conftest.$ac_objext; then | ||
30129 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
30130 | echo "${ECHO_T}yes" >&6; } | ||
30131 | else | ||
30132 | echo "$as_me: failed program was:" >&5 | ||
30133 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30134 | |||
30135 | { echo "$as_me:$LINENO: result: no" >&5 | ||
30136 | echo "${ECHO_T}no" >&6; } | ||
30137 | |||
30138 | { echo "$as_me:$LINENO: checking if fsid_t has member val" >&5 | ||
30139 | echo $ECHO_N "checking if fsid_t has member val... $ECHO_C" >&6; } | ||
30140 | cat >conftest.$ac_ext <<_ACEOF | ||
30141 | /* confdefs.h. */ | ||
30142 | _ACEOF | ||
30143 | cat confdefs.h >>conftest.$ac_ext | ||
30144 | cat >>conftest.$ac_ext <<_ACEOF | ||
30145 | /* end confdefs.h. */ | ||
30146 | |||
30147 | #include <sys/types.h> | ||
30148 | #include <sys/statvfs.h> | ||
30149 | |||
30150 | int | ||
30151 | main () | ||
30152 | { | ||
30153 | fsid_t t; t.val[0] = 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 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
30176 | echo "${ECHO_T}yes" >&6; } | ||
30177 | |||
30178 | cat >>confdefs.h <<\_ACEOF | ||
30179 | #define FSID_HAS_VAL 1 | ||
30180 | _ACEOF | ||
30181 | |||
30182 | else | ||
30183 | echo "$as_me: failed program was:" >&5 | ||
30184 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30185 | |||
30186 | { echo "$as_me:$LINENO: result: no" >&5 | ||
30187 | echo "${ECHO_T}no" >&6; } | ||
30188 | fi | ||
30189 | |||
30190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30191 | |||
30192 | { echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5 | ||
30193 | echo $ECHO_N "checking if f_fsid has member __val... $ECHO_C" >&6; } | ||
30194 | cat >conftest.$ac_ext <<_ACEOF | ||
30195 | /* confdefs.h. */ | ||
30196 | _ACEOF | ||
30197 | cat confdefs.h >>conftest.$ac_ext | ||
30198 | cat >>conftest.$ac_ext <<_ACEOF | ||
30199 | /* end confdefs.h. */ | ||
30200 | |||
30201 | #include <sys/types.h> | ||
30202 | #include <sys/statvfs.h> | ||
30203 | |||
30204 | int | ||
30205 | main () | ||
30206 | { | ||
30207 | fsid_t t; t.__val[0] = 0; | ||
30208 | ; | ||
30209 | return 0; | ||
30210 | } | ||
30211 | _ACEOF | ||
30212 | rm -f conftest.$ac_objext | ||
30213 | if { (ac_try="$ac_compile" | ||
30214 | case "(($ac_try" in | ||
30215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30216 | *) ac_try_echo=$ac_try;; | ||
30217 | esac | ||
30218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30219 | (eval "$ac_compile") 2>conftest.er1 | ||
30220 | ac_status=$? | ||
30221 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30222 | rm -f conftest.er1 | ||
30223 | cat conftest.err >&5 | ||
30224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30225 | (exit $ac_status); } && { | ||
30226 | test -z "$ac_c_werror_flag" || | ||
30227 | test ! -s conftest.err | ||
30228 | } && test -s conftest.$ac_objext; then | ||
30229 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
30230 | echo "${ECHO_T}yes" >&6; } | ||
30231 | |||
30232 | cat >>confdefs.h <<\_ACEOF | ||
30233 | #define FSID_HAS___VAL 1 | ||
30234 | _ACEOF | ||
30235 | |||
30236 | else | ||
30237 | echo "$as_me: failed program was:" >&5 | ||
30238 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30239 | |||
30240 | { echo "$as_me:$LINENO: result: no" >&5 | ||
30241 | echo "${ECHO_T}no" >&6; } | ||
30242 | fi | ||
30243 | |||
30244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30245 | |||
30246 | fi | ||
30247 | |||
30248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30249 | |||
30250 | { echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | ||
30251 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; } | ||
30252 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
30253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30254 | else | ||
30255 | |||
30256 | cat >conftest.$ac_ext <<_ACEOF | ||
30257 | /* confdefs.h. */ | ||
30258 | _ACEOF | ||
30259 | cat confdefs.h >>conftest.$ac_ext | ||
30260 | cat >>conftest.$ac_ext <<_ACEOF | ||
30261 | /* end confdefs.h. */ | ||
30262 | |||
30263 | #include <sys/types.h> | ||
30264 | #include <sys/socket.h> | ||
30265 | #include <sys/uio.h> | ||
30266 | |||
30267 | int | ||
30268 | main () | ||
30269 | { | ||
30270 | |||
30271 | #ifdef msg_control | ||
30272 | #error "msg_control is a macro" | ||
30273 | exit(1); | ||
30274 | #endif | ||
30275 | struct msghdr m; | ||
30276 | m.msg_control = 0; | ||
30277 | exit(0); | ||
30278 | |||
30279 | ; | ||
30280 | return 0; | ||
30281 | } | ||
30282 | _ACEOF | ||
30283 | rm -f conftest.$ac_objext | ||
30284 | if { (ac_try="$ac_compile" | ||
30285 | case "(($ac_try" in | ||
30286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30287 | *) ac_try_echo=$ac_try;; | ||
30288 | esac | ||
30289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30290 | (eval "$ac_compile") 2>conftest.er1 | ||
30291 | ac_status=$? | ||
30292 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30293 | rm -f conftest.er1 | ||
30294 | cat conftest.err >&5 | ||
30295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30296 | (exit $ac_status); } && { | ||
30297 | test -z "$ac_c_werror_flag" || | ||
30298 | test ! -s conftest.err | ||
30299 | } && test -s conftest.$ac_objext; then | ||
30300 | ac_cv_have_control_in_msghdr="yes" | ||
30301 | else | ||
30302 | echo "$as_me: failed program was:" >&5 | ||
30303 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30304 | |||
30305 | ac_cv_have_control_in_msghdr="no" | ||
30306 | |||
30307 | fi | ||
30308 | |||
30309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30310 | |||
30311 | fi | ||
30312 | { echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | ||
30313 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; } | ||
30314 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
30315 | |||
30316 | cat >>confdefs.h <<\_ACEOF | ||
30317 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
30318 | _ACEOF | ||
30319 | |||
30320 | fi | ||
30321 | |||
30322 | { echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | ||
30323 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; } | ||
30324 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
30325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30326 | else | ||
30327 | |||
30328 | cat >conftest.$ac_ext <<_ACEOF | ||
30329 | /* confdefs.h. */ | ||
30330 | _ACEOF | ||
30331 | cat confdefs.h >>conftest.$ac_ext | ||
30332 | cat >>conftest.$ac_ext <<_ACEOF | ||
30333 | /* end confdefs.h. */ | ||
30334 | |||
30335 | int | ||
30336 | main () | ||
30337 | { | ||
30338 | extern char *__progname; printf("%s", __progname); | ||
30339 | ; | ||
30340 | return 0; | ||
30341 | } | ||
30342 | _ACEOF | ||
30343 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
30344 | if { (ac_try="$ac_link" | ||
30345 | case "(($ac_try" in | ||
30346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30347 | *) ac_try_echo=$ac_try;; | ||
30348 | esac | ||
30349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30350 | (eval "$ac_link") 2>conftest.er1 | ||
30351 | ac_status=$? | ||
30352 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30353 | rm -f conftest.er1 | ||
30354 | cat conftest.err >&5 | ||
30355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30356 | (exit $ac_status); } && { | ||
30357 | test -z "$ac_c_werror_flag" || | ||
30358 | test ! -s conftest.err | ||
30359 | } && test -s conftest$ac_exeext && | ||
30360 | $as_test_x conftest$ac_exeext; then | ||
30361 | ac_cv_libc_defines___progname="yes" | ||
30362 | else | ||
30363 | echo "$as_me: failed program was:" >&5 | ||
30364 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30365 | |||
30366 | ac_cv_libc_defines___progname="no" | ||
30367 | |||
30368 | fi | ||
30369 | |||
30370 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
30371 | conftest$ac_exeext conftest.$ac_ext | ||
30372 | |||
30373 | fi | ||
30374 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | ||
30375 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; } | ||
30376 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
30377 | |||
30378 | cat >>confdefs.h <<\_ACEOF | ||
30379 | #define HAVE___PROGNAME 1 | ||
30380 | _ACEOF | ||
30381 | |||
30382 | fi | ||
30383 | |||
30384 | { echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | ||
30385 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; } | ||
30386 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
30387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30388 | else | ||
30389 | |||
30390 | cat >conftest.$ac_ext <<_ACEOF | ||
30391 | /* confdefs.h. */ | ||
30392 | _ACEOF | ||
30393 | cat confdefs.h >>conftest.$ac_ext | ||
30394 | cat >>conftest.$ac_ext <<_ACEOF | ||
30395 | /* end confdefs.h. */ | ||
30396 | #include <stdio.h> | ||
30397 | int | ||
30398 | main () | ||
30399 | { | ||
30400 | printf("%s", __FUNCTION__); | ||
30401 | ; | ||
30402 | return 0; | ||
30403 | } | ||
30404 | _ACEOF | ||
30405 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
30406 | if { (ac_try="$ac_link" | ||
30407 | case "(($ac_try" in | ||
30408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30409 | *) ac_try_echo=$ac_try;; | ||
30410 | esac | ||
30411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30412 | (eval "$ac_link") 2>conftest.er1 | ||
30413 | ac_status=$? | ||
30414 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30415 | rm -f conftest.er1 | ||
30416 | cat conftest.err >&5 | ||
30417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30418 | (exit $ac_status); } && { | ||
30419 | test -z "$ac_c_werror_flag" || | ||
30420 | test ! -s conftest.err | ||
30421 | } && test -s conftest$ac_exeext && | ||
30422 | $as_test_x conftest$ac_exeext; then | ||
30423 | ac_cv_cc_implements___FUNCTION__="yes" | ||
30424 | else | ||
30425 | echo "$as_me: failed program was:" >&5 | ||
30426 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30427 | |||
30428 | ac_cv_cc_implements___FUNCTION__="no" | ||
30429 | |||
30430 | fi | ||
30431 | |||
30432 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
30433 | conftest$ac_exeext conftest.$ac_ext | ||
30434 | |||
30435 | fi | ||
30436 | { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
30437 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; } | ||
30438 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
30439 | |||
30440 | cat >>confdefs.h <<\_ACEOF | ||
30441 | #define HAVE___FUNCTION__ 1 | ||
30442 | _ACEOF | ||
30443 | |||
30444 | fi | ||
30445 | |||
30446 | { echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | ||
30447 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; } | ||
30448 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
30449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30450 | else | ||
30451 | |||
30452 | cat >conftest.$ac_ext <<_ACEOF | ||
30453 | /* confdefs.h. */ | ||
30454 | _ACEOF | ||
30455 | cat confdefs.h >>conftest.$ac_ext | ||
30456 | cat >>conftest.$ac_ext <<_ACEOF | ||
30457 | /* end confdefs.h. */ | ||
30458 | #include <stdio.h> | ||
30459 | int | ||
30460 | main () | ||
30461 | { | ||
30462 | printf("%s", __func__); | ||
30463 | ; | ||
30464 | return 0; | ||
30465 | } | ||
30466 | _ACEOF | ||
30467 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
30468 | if { (ac_try="$ac_link" | ||
30469 | case "(($ac_try" in | ||
30470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30471 | *) ac_try_echo=$ac_try;; | ||
30472 | esac | ||
30473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30474 | (eval "$ac_link") 2>conftest.er1 | ||
30475 | ac_status=$? | ||
30476 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30477 | rm -f conftest.er1 | ||
30478 | cat conftest.err >&5 | ||
30479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30480 | (exit $ac_status); } && { | ||
30481 | test -z "$ac_c_werror_flag" || | ||
30482 | test ! -s conftest.err | ||
30483 | } && test -s conftest$ac_exeext && | ||
30484 | $as_test_x conftest$ac_exeext; then | ||
30485 | ac_cv_cc_implements___func__="yes" | ||
30486 | else | ||
30487 | echo "$as_me: failed program was:" >&5 | ||
30488 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30489 | |||
30490 | ac_cv_cc_implements___func__="no" | ||
30491 | |||
30492 | fi | ||
30493 | |||
30494 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
30495 | conftest$ac_exeext conftest.$ac_ext | ||
30496 | |||
30497 | fi | ||
30498 | { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | ||
30499 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; } | ||
30500 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
30501 | |||
30502 | cat >>confdefs.h <<\_ACEOF | ||
30503 | #define HAVE___func__ 1 | ||
30504 | _ACEOF | ||
30505 | |||
30506 | fi | ||
30507 | |||
30508 | { echo "$as_me:$LINENO: checking whether va_copy exists" >&5 | ||
30509 | echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; } | ||
30510 | if test "${ac_cv_have_va_copy+set}" = set; then | ||
30511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30512 | else | ||
30513 | |||
30514 | cat >conftest.$ac_ext <<_ACEOF | ||
30515 | /* confdefs.h. */ | ||
30516 | _ACEOF | ||
30517 | cat confdefs.h >>conftest.$ac_ext | ||
30518 | cat >>conftest.$ac_ext <<_ACEOF | ||
30519 | /* end confdefs.h. */ | ||
30520 | |||
30521 | #include <stdarg.h> | ||
30522 | va_list x,y; | ||
30523 | |||
30524 | int | ||
30525 | main () | ||
30526 | { | ||
30527 | va_copy(x,y); | ||
30528 | ; | ||
30529 | return 0; | ||
30530 | } | ||
30531 | _ACEOF | ||
30532 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
30533 | if { (ac_try="$ac_link" | ||
30534 | case "(($ac_try" in | ||
30535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30536 | *) ac_try_echo=$ac_try;; | ||
30537 | esac | ||
30538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30539 | (eval "$ac_link") 2>conftest.er1 | ||
30540 | ac_status=$? | ||
30541 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30542 | rm -f conftest.er1 | ||
30543 | cat conftest.err >&5 | ||
30544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30545 | (exit $ac_status); } && { | ||
30546 | test -z "$ac_c_werror_flag" || | ||
30547 | test ! -s conftest.err | ||
30548 | } && test -s conftest$ac_exeext && | ||
30549 | $as_test_x conftest$ac_exeext; then | ||
30550 | ac_cv_have_va_copy="yes" | ||
30551 | else | ||
30552 | echo "$as_me: failed program was:" >&5 | ||
30553 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30554 | |||
30555 | ac_cv_have_va_copy="no" | ||
30556 | |||
30557 | fi | ||
30558 | |||
30559 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
30560 | conftest$ac_exeext conftest.$ac_ext | ||
30561 | |||
30562 | fi | ||
30563 | { echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5 | ||
30564 | echo "${ECHO_T}$ac_cv_have_va_copy" >&6; } | ||
30565 | if test "x$ac_cv_have_va_copy" = "xyes" ; then | ||
30566 | |||
30567 | cat >>confdefs.h <<\_ACEOF | ||
30568 | #define HAVE_VA_COPY 1 | ||
30569 | _ACEOF | ||
30570 | |||
30571 | fi | ||
30572 | |||
30573 | { echo "$as_me:$LINENO: checking whether __va_copy exists" >&5 | ||
30574 | echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; } | ||
30575 | if test "${ac_cv_have___va_copy+set}" = set; then | ||
30576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30577 | else | ||
30578 | |||
30579 | cat >conftest.$ac_ext <<_ACEOF | ||
30580 | /* confdefs.h. */ | ||
30581 | _ACEOF | ||
30582 | cat confdefs.h >>conftest.$ac_ext | ||
30583 | cat >>conftest.$ac_ext <<_ACEOF | ||
30584 | /* end confdefs.h. */ | ||
30585 | |||
30586 | #include <stdarg.h> | ||
30587 | va_list x,y; | ||
30588 | |||
30589 | int | ||
30590 | main () | ||
30591 | { | ||
30592 | __va_copy(x,y); | ||
30593 | ; | ||
30594 | return 0; | ||
30595 | } | ||
30596 | _ACEOF | ||
30597 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
30598 | if { (ac_try="$ac_link" | ||
30599 | case "(($ac_try" in | ||
30600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30601 | *) ac_try_echo=$ac_try;; | ||
30602 | esac | ||
30603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30604 | (eval "$ac_link") 2>conftest.er1 | ||
30605 | ac_status=$? | ||
30606 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30607 | rm -f conftest.er1 | ||
30608 | cat conftest.err >&5 | ||
30609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30610 | (exit $ac_status); } && { | ||
30611 | test -z "$ac_c_werror_flag" || | ||
30612 | test ! -s conftest.err | ||
30613 | } && test -s conftest$ac_exeext && | ||
30614 | $as_test_x conftest$ac_exeext; then | ||
30615 | ac_cv_have___va_copy="yes" | ||
30616 | else | ||
30617 | echo "$as_me: failed program was:" >&5 | ||
30618 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30619 | |||
30620 | ac_cv_have___va_copy="no" | ||
30621 | |||
30622 | fi | ||
30623 | |||
30624 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
30625 | conftest$ac_exeext conftest.$ac_ext | ||
30626 | |||
30627 | fi | ||
30628 | { echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5 | ||
30629 | echo "${ECHO_T}$ac_cv_have___va_copy" >&6; } | ||
30630 | if test "x$ac_cv_have___va_copy" = "xyes" ; then | ||
30631 | |||
30632 | cat >>confdefs.h <<\_ACEOF | ||
30633 | #define HAVE___VA_COPY 1 | ||
30634 | _ACEOF | ||
30635 | |||
30636 | fi | ||
30637 | |||
30638 | { echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | ||
30639 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; } | ||
30640 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
30641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30642 | else | ||
30643 | |||
30644 | cat >conftest.$ac_ext <<_ACEOF | ||
30645 | /* confdefs.h. */ | ||
30646 | _ACEOF | ||
30647 | cat confdefs.h >>conftest.$ac_ext | ||
30648 | cat >>conftest.$ac_ext <<_ACEOF | ||
30649 | /* end confdefs.h. */ | ||
30650 | #include <getopt.h> | ||
30651 | int | ||
30652 | main () | ||
30653 | { | ||
30654 | extern int optreset; optreset = 0; | ||
30655 | ; | ||
30656 | return 0; | ||
30657 | } | ||
30658 | _ACEOF | ||
30659 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
30660 | if { (ac_try="$ac_link" | ||
30661 | case "(($ac_try" in | ||
30662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30663 | *) ac_try_echo=$ac_try;; | ||
30664 | esac | ||
30665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30666 | (eval "$ac_link") 2>conftest.er1 | ||
30667 | ac_status=$? | ||
30668 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30669 | rm -f conftest.er1 | ||
30670 | cat conftest.err >&5 | ||
30671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30672 | (exit $ac_status); } && { | ||
30673 | test -z "$ac_c_werror_flag" || | ||
30674 | test ! -s conftest.err | ||
30675 | } && test -s conftest$ac_exeext && | ||
30676 | $as_test_x conftest$ac_exeext; then | ||
30677 | ac_cv_have_getopt_optreset="yes" | ||
30678 | else | ||
30679 | echo "$as_me: failed program was:" >&5 | ||
30680 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30681 | |||
30682 | ac_cv_have_getopt_optreset="no" | ||
30683 | |||
30684 | fi | ||
30685 | |||
30686 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
30687 | conftest$ac_exeext conftest.$ac_ext | ||
30688 | |||
30689 | fi | ||
30690 | { echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | ||
30691 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; } | ||
30692 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
30693 | |||
30694 | cat >>confdefs.h <<\_ACEOF | ||
30695 | #define HAVE_GETOPT_OPTRESET 1 | ||
30696 | _ACEOF | ||
30697 | |||
30698 | fi | ||
30699 | |||
30700 | { echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | ||
30701 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; } | ||
30702 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
30703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30704 | else | ||
30705 | |||
30706 | cat >conftest.$ac_ext <<_ACEOF | ||
30707 | /* confdefs.h. */ | ||
30708 | _ACEOF | ||
30709 | cat confdefs.h >>conftest.$ac_ext | ||
30710 | cat >>conftest.$ac_ext <<_ACEOF | ||
30711 | /* end confdefs.h. */ | ||
30712 | |||
30713 | int | ||
30714 | main () | ||
30715 | { | ||
30716 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
30717 | ; | ||
30718 | return 0; | ||
30719 | } | ||
30720 | _ACEOF | ||
30721 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
30722 | if { (ac_try="$ac_link" | ||
30723 | case "(($ac_try" in | ||
30724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30725 | *) ac_try_echo=$ac_try;; | ||
30726 | esac | ||
30727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30728 | (eval "$ac_link") 2>conftest.er1 | ||
30729 | ac_status=$? | ||
30730 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30731 | rm -f conftest.er1 | ||
30732 | cat conftest.err >&5 | ||
30733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30734 | (exit $ac_status); } && { | ||
30735 | test -z "$ac_c_werror_flag" || | ||
30736 | test ! -s conftest.err | ||
30737 | } && test -s conftest$ac_exeext && | ||
30738 | $as_test_x conftest$ac_exeext; then | ||
30739 | ac_cv_libc_defines_sys_errlist="yes" | ||
30740 | else | ||
30741 | echo "$as_me: failed program was:" >&5 | ||
30742 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30743 | |||
30744 | ac_cv_libc_defines_sys_errlist="no" | ||
30745 | |||
30746 | fi | ||
30747 | |||
30748 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
30749 | conftest$ac_exeext conftest.$ac_ext | ||
30750 | |||
30751 | fi | ||
30752 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
30753 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; } | ||
30754 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
30755 | |||
30756 | cat >>confdefs.h <<\_ACEOF | ||
30757 | #define HAVE_SYS_ERRLIST 1 | ||
30758 | _ACEOF | ||
30759 | |||
30760 | fi | ||
30761 | |||
30762 | |||
30763 | { echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | ||
30764 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; } | ||
30765 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
30766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30767 | else | ||
30768 | |||
30769 | cat >conftest.$ac_ext <<_ACEOF | ||
30770 | /* confdefs.h. */ | ||
30771 | _ACEOF | ||
30772 | cat confdefs.h >>conftest.$ac_ext | ||
30773 | cat >>conftest.$ac_ext <<_ACEOF | ||
30774 | /* end confdefs.h. */ | ||
30775 | |||
30776 | int | ||
30777 | main () | ||
30778 | { | ||
30779 | extern int sys_nerr; printf("%i", sys_nerr); | ||
30780 | ; | ||
30781 | return 0; | ||
30782 | } | ||
30783 | _ACEOF | ||
30784 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
30785 | if { (ac_try="$ac_link" | ||
30786 | case "(($ac_try" in | ||
30787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30788 | *) ac_try_echo=$ac_try;; | ||
30789 | esac | ||
30790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30791 | (eval "$ac_link") 2>conftest.er1 | ||
30792 | ac_status=$? | ||
30793 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30794 | rm -f conftest.er1 | ||
30795 | cat conftest.err >&5 | ||
30796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30797 | (exit $ac_status); } && { | ||
30798 | test -z "$ac_c_werror_flag" || | ||
30799 | test ! -s conftest.err | ||
30800 | } && test -s conftest$ac_exeext && | ||
30801 | $as_test_x conftest$ac_exeext; then | ||
30802 | ac_cv_libc_defines_sys_nerr="yes" | ||
30803 | else | ||
30804 | echo "$as_me: failed program was:" >&5 | ||
30805 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30806 | |||
30807 | ac_cv_libc_defines_sys_nerr="no" | ||
30808 | |||
30809 | fi | ||
30810 | |||
30811 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
30812 | conftest$ac_exeext conftest.$ac_ext | ||
30813 | |||
30814 | fi | ||
30815 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
30816 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; } | ||
30817 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
30818 | |||
30819 | cat >>confdefs.h <<\_ACEOF | ||
30820 | #define HAVE_SYS_NERR 1 | ||
30821 | _ACEOF | ||
30822 | |||
30823 | fi | ||
30824 | |||
30825 | # Check libraries needed by DNS fingerprint support | ||
30826 | { echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5 | ||
30827 | echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; } | ||
30828 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
30829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30830 | else | ||
30831 | ac_func_search_save_LIBS=$LIBS | ||
30832 | cat >conftest.$ac_ext <<_ACEOF | ||
30833 | /* confdefs.h. */ | ||
30834 | _ACEOF | ||
30835 | cat confdefs.h >>conftest.$ac_ext | ||
30836 | cat >>conftest.$ac_ext <<_ACEOF | ||
30837 | /* end confdefs.h. */ | ||
30838 | |||
30839 | /* Override any GCC internal prototype to avoid an error. | ||
30840 | Use char because int might match the return type of a GCC | ||
30841 | builtin and then its argument prototype would still apply. */ | ||
30842 | #ifdef __cplusplus | ||
30843 | extern "C" | ||
30844 | #endif | ||
30845 | char getrrsetbyname (); | ||
30846 | int | ||
30847 | main () | ||
30848 | { | ||
30849 | return getrrsetbyname (); | ||
30850 | ; | ||
30851 | return 0; | ||
30852 | } | ||
30853 | _ACEOF | ||
30854 | for ac_lib in '' resolv; do | ||
30855 | if test -z "$ac_lib"; then | ||
30856 | ac_res="none required" | ||
30857 | else | ||
30858 | ac_res=-l$ac_lib | ||
30859 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
30860 | fi | ||
30861 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
30862 | if { (ac_try="$ac_link" | ||
30863 | case "(($ac_try" in | ||
30864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30865 | *) ac_try_echo=$ac_try;; | ||
30866 | esac | ||
30867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30868 | (eval "$ac_link") 2>conftest.er1 | ||
30869 | ac_status=$? | ||
30870 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30871 | rm -f conftest.er1 | ||
30872 | cat conftest.err >&5 | ||
30873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30874 | (exit $ac_status); } && { | ||
30875 | test -z "$ac_c_werror_flag" || | ||
30876 | test ! -s conftest.err | ||
30877 | } && test -s conftest$ac_exeext && | ||
30878 | $as_test_x conftest$ac_exeext; then | ||
30879 | ac_cv_search_getrrsetbyname=$ac_res | ||
30880 | else | ||
30881 | echo "$as_me: failed program was:" >&5 | ||
30882 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30883 | |||
30884 | |||
30885 | fi | ||
30886 | |||
30887 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
30888 | conftest$ac_exeext | ||
30889 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
30890 | break | ||
30891 | fi | ||
30892 | done | ||
30893 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
30894 | : | ||
30895 | else | ||
30896 | ac_cv_search_getrrsetbyname=no | ||
30897 | fi | ||
30898 | rm conftest.$ac_ext | ||
30899 | LIBS=$ac_func_search_save_LIBS | ||
30900 | fi | ||
30901 | { echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5 | ||
30902 | echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; } | ||
30903 | ac_res=$ac_cv_search_getrrsetbyname | ||
30904 | if test "$ac_res" != no; then | ||
30905 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
30906 | |||
30907 | cat >>confdefs.h <<\_ACEOF | ||
30908 | #define HAVE_GETRRSETBYNAME 1 | ||
30909 | _ACEOF | ||
30910 | |||
30911 | else | ||
30912 | |||
30913 | # Needed by our getrrsetbyname() | ||
30914 | { echo "$as_me:$LINENO: checking for library containing res_query" >&5 | ||
30915 | echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; } | ||
30916 | if test "${ac_cv_search_res_query+set}" = set; then | ||
30917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30918 | else | ||
30919 | ac_func_search_save_LIBS=$LIBS | ||
30920 | cat >conftest.$ac_ext <<_ACEOF | ||
30921 | /* confdefs.h. */ | ||
30922 | _ACEOF | ||
30923 | cat confdefs.h >>conftest.$ac_ext | ||
30924 | cat >>conftest.$ac_ext <<_ACEOF | ||
30925 | /* end confdefs.h. */ | ||
30926 | |||
30927 | /* Override any GCC internal prototype to avoid an error. | ||
30928 | Use char because int might match the return type of a GCC | ||
30929 | builtin and then its argument prototype would still apply. */ | ||
30930 | #ifdef __cplusplus | ||
30931 | extern "C" | ||
30932 | #endif | ||
30933 | char res_query (); | ||
30934 | int | ||
30935 | main () | ||
30936 | { | ||
30937 | return res_query (); | ||
30938 | ; | ||
30939 | return 0; | ||
30940 | } | ||
30941 | _ACEOF | ||
30942 | for ac_lib in '' resolv; do | ||
30943 | if test -z "$ac_lib"; then | ||
30944 | ac_res="none required" | ||
30945 | else | ||
30946 | ac_res=-l$ac_lib | ||
30947 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
30948 | fi | ||
30949 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
30950 | if { (ac_try="$ac_link" | ||
30951 | case "(($ac_try" in | ||
30952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30953 | *) ac_try_echo=$ac_try;; | ||
30954 | esac | ||
30955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30956 | (eval "$ac_link") 2>conftest.er1 | ||
30957 | ac_status=$? | ||
30958 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30959 | rm -f conftest.er1 | ||
30960 | cat conftest.err >&5 | ||
30961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30962 | (exit $ac_status); } && { | ||
30963 | test -z "$ac_c_werror_flag" || | ||
30964 | test ! -s conftest.err | ||
30965 | } && test -s conftest$ac_exeext && | ||
30966 | $as_test_x conftest$ac_exeext; then | ||
30967 | ac_cv_search_res_query=$ac_res | ||
30968 | else | ||
30969 | echo "$as_me: failed program was:" >&5 | ||
30970 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30971 | |||
30972 | |||
30973 | fi | ||
30974 | |||
30975 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
30976 | conftest$ac_exeext | ||
30977 | if test "${ac_cv_search_res_query+set}" = set; then | ||
30978 | break | ||
30979 | fi | ||
30980 | done | ||
30981 | if test "${ac_cv_search_res_query+set}" = set; then | ||
30982 | : | ||
30983 | else | ||
30984 | ac_cv_search_res_query=no | ||
30985 | fi | ||
30986 | rm conftest.$ac_ext | ||
30987 | LIBS=$ac_func_search_save_LIBS | ||
30988 | fi | ||
30989 | { echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5 | ||
30990 | echo "${ECHO_T}$ac_cv_search_res_query" >&6; } | ||
30991 | ac_res=$ac_cv_search_res_query | ||
30992 | if test "$ac_res" != no; then | ||
30993 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
30994 | |||
30995 | fi | ||
30996 | |||
30997 | { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
30998 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } | ||
30999 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
31000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31001 | else | ||
31002 | ac_func_search_save_LIBS=$LIBS | ||
31003 | cat >conftest.$ac_ext <<_ACEOF | ||
31004 | /* confdefs.h. */ | ||
31005 | _ACEOF | ||
31006 | cat confdefs.h >>conftest.$ac_ext | ||
31007 | cat >>conftest.$ac_ext <<_ACEOF | ||
31008 | /* end confdefs.h. */ | ||
31009 | |||
31010 | /* Override any GCC internal prototype to avoid an error. | ||
31011 | Use char because int might match the return type of a GCC | ||
31012 | builtin and then its argument prototype would still apply. */ | ||
31013 | #ifdef __cplusplus | ||
31014 | extern "C" | ||
31015 | #endif | ||
31016 | char dn_expand (); | ||
31017 | int | ||
31018 | main () | ||
31019 | { | ||
31020 | return dn_expand (); | ||
31021 | ; | ||
31022 | return 0; | ||
31023 | } | ||
31024 | _ACEOF | ||
31025 | for ac_lib in '' resolv; do | ||
31026 | if test -z "$ac_lib"; then | ||
31027 | ac_res="none required" | ||
31028 | else | ||
31029 | ac_res=-l$ac_lib | ||
31030 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
31031 | fi | ||
31032 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31033 | if { (ac_try="$ac_link" | ||
31034 | case "(($ac_try" in | ||
31035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31036 | *) ac_try_echo=$ac_try;; | ||
31037 | esac | ||
31038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31039 | (eval "$ac_link") 2>conftest.er1 | ||
31040 | ac_status=$? | ||
31041 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31042 | rm -f conftest.er1 | ||
31043 | cat conftest.err >&5 | ||
31044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31045 | (exit $ac_status); } && { | ||
31046 | test -z "$ac_c_werror_flag" || | ||
31047 | test ! -s conftest.err | ||
31048 | } && test -s conftest$ac_exeext && | ||
31049 | $as_test_x conftest$ac_exeext; then | ||
31050 | ac_cv_search_dn_expand=$ac_res | ||
31051 | else | ||
31052 | echo "$as_me: failed program was:" >&5 | ||
31053 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31054 | |||
31055 | |||
31056 | fi | ||
31057 | |||
31058 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31059 | conftest$ac_exeext | ||
31060 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
31061 | break | ||
31062 | fi | ||
31063 | done | ||
31064 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
31065 | : | ||
31066 | else | ||
31067 | ac_cv_search_dn_expand=no | ||
31068 | fi | ||
31069 | rm conftest.$ac_ext | ||
31070 | LIBS=$ac_func_search_save_LIBS | ||
31071 | fi | ||
31072 | { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
31073 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } | ||
31074 | ac_res=$ac_cv_search_dn_expand | ||
31075 | if test "$ac_res" != no; then | ||
31076 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
31077 | |||
31078 | fi | ||
31079 | |||
31080 | { echo "$as_me:$LINENO: checking if res_query will link" >&5 | ||
31081 | echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; } | ||
31082 | cat >conftest.$ac_ext <<_ACEOF | ||
31083 | /* confdefs.h. */ | ||
31084 | _ACEOF | ||
31085 | cat confdefs.h >>conftest.$ac_ext | ||
31086 | cat >>conftest.$ac_ext <<_ACEOF | ||
31087 | /* end confdefs.h. */ | ||
31088 | |||
31089 | #include <sys/types.h> | ||
31090 | #include <netinet/in.h> | ||
31091 | #include <arpa/nameser.h> | ||
31092 | #include <netdb.h> | ||
31093 | #include <resolv.h> | ||
31094 | |||
31095 | int | ||
31096 | main () | ||
31097 | { | ||
31098 | |||
31099 | res_query (0, 0, 0, 0, 0); | ||
31100 | |||
31101 | ; | ||
31102 | return 0; | ||
31103 | } | ||
31104 | _ACEOF | ||
31105 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31106 | if { (ac_try="$ac_link" | ||
31107 | case "(($ac_try" in | ||
31108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31109 | *) ac_try_echo=$ac_try;; | ||
31110 | esac | ||
31111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31112 | (eval "$ac_link") 2>conftest.er1 | ||
31113 | ac_status=$? | ||
31114 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31115 | rm -f conftest.er1 | ||
31116 | cat conftest.err >&5 | ||
31117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31118 | (exit $ac_status); } && { | ||
31119 | test -z "$ac_c_werror_flag" || | ||
31120 | test ! -s conftest.err | ||
31121 | } && test -s conftest$ac_exeext && | ||
31122 | $as_test_x conftest$ac_exeext; then | ||
31123 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
31124 | echo "${ECHO_T}yes" >&6; } | ||
31125 | else | ||
31126 | echo "$as_me: failed program was:" >&5 | ||
31127 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31128 | |||
31129 | { echo "$as_me:$LINENO: result: no" >&5 | ||
31130 | echo "${ECHO_T}no" >&6; } | ||
31131 | saved_LIBS="$LIBS" | ||
31132 | LIBS="$LIBS -lresolv" | ||
31133 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
31134 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } | ||
31135 | cat >conftest.$ac_ext <<_ACEOF | ||
31136 | /* confdefs.h. */ | ||
31137 | _ACEOF | ||
31138 | cat confdefs.h >>conftest.$ac_ext | ||
31139 | cat >>conftest.$ac_ext <<_ACEOF | ||
31140 | /* end confdefs.h. */ | ||
31141 | |||
31142 | #include <sys/types.h> | ||
31143 | #include <netinet/in.h> | ||
31144 | #include <arpa/nameser.h> | ||
31145 | #include <netdb.h> | ||
31146 | #include <resolv.h> | ||
31147 | |||
31148 | int | ||
31149 | main () | ||
31150 | { | ||
31151 | |||
31152 | res_query (0, 0, 0, 0, 0); | ||
31153 | |||
31154 | ; | ||
31155 | return 0; | ||
31156 | } | ||
31157 | _ACEOF | ||
31158 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31159 | if { (ac_try="$ac_link" | ||
31160 | case "(($ac_try" in | ||
31161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31162 | *) ac_try_echo=$ac_try;; | ||
31163 | esac | ||
31164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31165 | (eval "$ac_link") 2>conftest.er1 | ||
31166 | ac_status=$? | ||
31167 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31168 | rm -f conftest.er1 | ||
31169 | cat conftest.err >&5 | ||
31170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31171 | (exit $ac_status); } && { | ||
31172 | test -z "$ac_c_werror_flag" || | ||
31173 | test ! -s conftest.err | ||
31174 | } && test -s conftest$ac_exeext && | ||
31175 | $as_test_x conftest$ac_exeext; then | ||
31176 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
31177 | echo "${ECHO_T}yes" >&6; } | ||
31178 | else | ||
31179 | echo "$as_me: failed program was:" >&5 | ||
31180 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31181 | |||
31182 | LIBS="$saved_LIBS" | ||
31183 | { echo "$as_me:$LINENO: result: no" >&5 | ||
31184 | echo "${ECHO_T}no" >&6; } | ||
31185 | fi | ||
31186 | |||
31187 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31188 | conftest$ac_exeext conftest.$ac_ext | ||
31189 | |||
31190 | fi | ||
31191 | |||
31192 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31193 | conftest$ac_exeext conftest.$ac_ext | ||
31194 | |||
31195 | |||
31196 | for ac_func in _getshort _getlong | ||
31197 | do | ||
31198 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
31199 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
31200 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
31201 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
31202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31203 | else | ||
31204 | cat >conftest.$ac_ext <<_ACEOF | ||
31205 | /* confdefs.h. */ | ||
31206 | _ACEOF | ||
31207 | cat confdefs.h >>conftest.$ac_ext | ||
31208 | cat >>conftest.$ac_ext <<_ACEOF | ||
31209 | /* end confdefs.h. */ | ||
31210 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
31211 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
31212 | #define $ac_func innocuous_$ac_func | ||
31213 | |||
31214 | /* System header to define __stub macros and hopefully few prototypes, | ||
31215 | which can conflict with char $ac_func (); below. | ||
31216 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
31217 | <limits.h> exists even on freestanding compilers. */ | ||
31218 | |||
31219 | #ifdef __STDC__ | ||
31220 | # include <limits.h> | ||
31221 | #else | ||
31222 | # include <assert.h> | ||
31223 | #endif | ||
31224 | |||
31225 | #undef $ac_func | ||
31226 | |||
31227 | /* Override any GCC internal prototype to avoid an error. | ||
31228 | Use char because int might match the return type of a GCC | ||
31229 | builtin and then its argument prototype would still apply. */ | ||
31230 | #ifdef __cplusplus | ||
31231 | extern "C" | ||
31232 | #endif | ||
31233 | char $ac_func (); | ||
31234 | /* The GNU C library defines this for functions which it implements | ||
31235 | to always fail with ENOSYS. Some functions are actually named | ||
31236 | something starting with __ and the normal name is an alias. */ | ||
31237 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
31238 | choke me | ||
31239 | #endif | ||
31240 | |||
31241 | int | ||
31242 | main () | ||
31243 | { | ||
31244 | return $ac_func (); | ||
31245 | ; | ||
31246 | return 0; | ||
31247 | } | ||
31248 | _ACEOF | ||
31249 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31250 | if { (ac_try="$ac_link" | ||
31251 | case "(($ac_try" in | ||
31252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31253 | *) ac_try_echo=$ac_try;; | ||
31254 | esac | ||
31255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31256 | (eval "$ac_link") 2>conftest.er1 | ||
31257 | ac_status=$? | ||
31258 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31259 | rm -f conftest.er1 | ||
31260 | cat conftest.err >&5 | ||
31261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31262 | (exit $ac_status); } && { | ||
31263 | test -z "$ac_c_werror_flag" || | ||
31264 | test ! -s conftest.err | ||
31265 | } && test -s conftest$ac_exeext && | ||
31266 | $as_test_x conftest$ac_exeext; then | ||
31267 | eval "$as_ac_var=yes" | ||
31268 | else | ||
31269 | echo "$as_me: failed program was:" >&5 | ||
31270 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31271 | |||
31272 | eval "$as_ac_var=no" | ||
31273 | fi | ||
31274 | |||
31275 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31276 | conftest$ac_exeext conftest.$ac_ext | ||
31277 | fi | ||
31278 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
31279 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
31280 | echo "${ECHO_T}$ac_res" >&6; } | ||
31281 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
31282 | cat >>confdefs.h <<_ACEOF | ||
31283 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
31284 | _ACEOF | ||
31285 | |||
31286 | fi | ||
31287 | done | ||
31288 | |||
31289 | { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5 | ||
31290 | echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; } | ||
31291 | if test "${ac_cv_have_decl__getshort+set}" = set; then | ||
31292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31293 | else | ||
31294 | cat >conftest.$ac_ext <<_ACEOF | ||
31295 | /* confdefs.h. */ | ||
31296 | _ACEOF | ||
31297 | cat confdefs.h >>conftest.$ac_ext | ||
31298 | cat >>conftest.$ac_ext <<_ACEOF | ||
31299 | /* end confdefs.h. */ | ||
31300 | #include <sys/types.h> | ||
31301 | #include <arpa/nameser.h> | ||
31302 | |||
31303 | int | ||
31304 | main () | ||
31305 | { | ||
31306 | #ifndef _getshort | ||
31307 | (void) _getshort; | ||
31308 | #endif | ||
31309 | |||
31310 | ; | ||
31311 | return 0; | ||
31312 | } | ||
31313 | _ACEOF | ||
31314 | rm -f conftest.$ac_objext | ||
31315 | if { (ac_try="$ac_compile" | ||
31316 | case "(($ac_try" in | ||
31317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31318 | *) ac_try_echo=$ac_try;; | ||
31319 | esac | ||
31320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31321 | (eval "$ac_compile") 2>conftest.er1 | ||
31322 | ac_status=$? | ||
31323 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31324 | rm -f conftest.er1 | ||
31325 | cat conftest.err >&5 | ||
31326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31327 | (exit $ac_status); } && { | ||
31328 | test -z "$ac_c_werror_flag" || | ||
31329 | test ! -s conftest.err | ||
31330 | } && test -s conftest.$ac_objext; then | ||
31331 | ac_cv_have_decl__getshort=yes | ||
31332 | else | ||
31333 | echo "$as_me: failed program was:" >&5 | ||
31334 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31335 | |||
31336 | ac_cv_have_decl__getshort=no | ||
31337 | fi | ||
31338 | |||
31339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
31340 | fi | ||
31341 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5 | ||
31342 | echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; } | ||
31343 | if test $ac_cv_have_decl__getshort = yes; then | ||
31344 | |||
31345 | cat >>confdefs.h <<_ACEOF | ||
31346 | #define HAVE_DECL__GETSHORT 1 | ||
31347 | _ACEOF | ||
31348 | |||
31349 | |||
31350 | else | ||
31351 | cat >>confdefs.h <<_ACEOF | ||
31352 | #define HAVE_DECL__GETSHORT 0 | ||
31353 | _ACEOF | ||
31354 | |||
31355 | |||
31356 | fi | ||
31357 | { echo "$as_me:$LINENO: checking whether _getlong is declared" >&5 | ||
31358 | echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; } | ||
31359 | if test "${ac_cv_have_decl__getlong+set}" = set; then | ||
31360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31361 | else | ||
31362 | cat >conftest.$ac_ext <<_ACEOF | ||
31363 | /* confdefs.h. */ | ||
31364 | _ACEOF | ||
31365 | cat confdefs.h >>conftest.$ac_ext | ||
31366 | cat >>conftest.$ac_ext <<_ACEOF | ||
31367 | /* end confdefs.h. */ | ||
31368 | #include <sys/types.h> | ||
31369 | #include <arpa/nameser.h> | ||
31370 | |||
31371 | int | ||
31372 | main () | ||
31373 | { | ||
31374 | #ifndef _getlong | ||
31375 | (void) _getlong; | ||
31376 | #endif | ||
31377 | |||
31378 | ; | ||
31379 | return 0; | ||
31380 | } | ||
31381 | _ACEOF | ||
31382 | rm -f conftest.$ac_objext | ||
31383 | if { (ac_try="$ac_compile" | ||
31384 | case "(($ac_try" in | ||
31385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31386 | *) ac_try_echo=$ac_try;; | ||
31387 | esac | ||
31388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31389 | (eval "$ac_compile") 2>conftest.er1 | ||
31390 | ac_status=$? | ||
31391 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31392 | rm -f conftest.er1 | ||
31393 | cat conftest.err >&5 | ||
31394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31395 | (exit $ac_status); } && { | ||
31396 | test -z "$ac_c_werror_flag" || | ||
31397 | test ! -s conftest.err | ||
31398 | } && test -s conftest.$ac_objext; then | ||
31399 | ac_cv_have_decl__getlong=yes | ||
31400 | else | ||
31401 | echo "$as_me: failed program was:" >&5 | ||
31402 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31403 | |||
31404 | ac_cv_have_decl__getlong=no | ||
31405 | fi | ||
31406 | |||
31407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
31408 | fi | ||
31409 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5 | ||
31410 | echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; } | ||
31411 | if test $ac_cv_have_decl__getlong = yes; then | ||
31412 | |||
31413 | cat >>confdefs.h <<_ACEOF | ||
31414 | #define HAVE_DECL__GETLONG 1 | ||
31415 | _ACEOF | ||
31416 | |||
31417 | |||
31418 | else | ||
31419 | cat >>confdefs.h <<_ACEOF | ||
31420 | #define HAVE_DECL__GETLONG 0 | ||
31421 | _ACEOF | ||
31422 | |||
31423 | |||
31424 | fi | ||
31425 | |||
31426 | |||
31427 | { echo "$as_me:$LINENO: checking for HEADER.ad" >&5 | ||
31428 | echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; } | ||
31429 | if test "${ac_cv_member_HEADER_ad+set}" = set; then | ||
31430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31431 | else | ||
31432 | cat >conftest.$ac_ext <<_ACEOF | ||
31433 | /* confdefs.h. */ | ||
31434 | _ACEOF | ||
31435 | cat confdefs.h >>conftest.$ac_ext | ||
31436 | cat >>conftest.$ac_ext <<_ACEOF | ||
31437 | /* end confdefs.h. */ | ||
31438 | #include <arpa/nameser.h> | ||
31439 | |||
31440 | int | ||
31441 | main () | ||
31442 | { | ||
31443 | static HEADER ac_aggr; | ||
31444 | if (ac_aggr.ad) | ||
31445 | return 0; | ||
31446 | ; | ||
31447 | return 0; | ||
31448 | } | ||
31449 | _ACEOF | ||
31450 | rm -f conftest.$ac_objext | ||
31451 | if { (ac_try="$ac_compile" | ||
31452 | case "(($ac_try" in | ||
31453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31454 | *) ac_try_echo=$ac_try;; | ||
31455 | esac | ||
31456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31457 | (eval "$ac_compile") 2>conftest.er1 | ||
31458 | ac_status=$? | ||
31459 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31460 | rm -f conftest.er1 | ||
31461 | cat conftest.err >&5 | ||
31462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31463 | (exit $ac_status); } && { | ||
31464 | test -z "$ac_c_werror_flag" || | ||
31465 | test ! -s conftest.err | ||
31466 | } && test -s conftest.$ac_objext; then | ||
31467 | ac_cv_member_HEADER_ad=yes | ||
31468 | else | ||
31469 | echo "$as_me: failed program was:" >&5 | ||
31470 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31471 | |||
31472 | cat >conftest.$ac_ext <<_ACEOF | ||
31473 | /* confdefs.h. */ | ||
31474 | _ACEOF | ||
31475 | cat confdefs.h >>conftest.$ac_ext | ||
31476 | cat >>conftest.$ac_ext <<_ACEOF | ||
31477 | /* end confdefs.h. */ | ||
31478 | #include <arpa/nameser.h> | ||
31479 | |||
31480 | int | ||
31481 | main () | ||
31482 | { | ||
31483 | static HEADER ac_aggr; | ||
31484 | if (sizeof ac_aggr.ad) | ||
31485 | return 0; | ||
31486 | ; | ||
31487 | return 0; | ||
31488 | } | ||
31489 | _ACEOF | ||
31490 | rm -f conftest.$ac_objext | ||
31491 | if { (ac_try="$ac_compile" | ||
31492 | case "(($ac_try" in | ||
31493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31494 | *) ac_try_echo=$ac_try;; | ||
31495 | esac | ||
31496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31497 | (eval "$ac_compile") 2>conftest.er1 | ||
31498 | ac_status=$? | ||
31499 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31500 | rm -f conftest.er1 | ||
31501 | cat conftest.err >&5 | ||
31502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31503 | (exit $ac_status); } && { | ||
31504 | test -z "$ac_c_werror_flag" || | ||
31505 | test ! -s conftest.err | ||
31506 | } && test -s conftest.$ac_objext; then | ||
31507 | ac_cv_member_HEADER_ad=yes | ||
31508 | else | ||
31509 | echo "$as_me: failed program was:" >&5 | ||
31510 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31511 | |||
31512 | ac_cv_member_HEADER_ad=no | ||
31513 | fi | ||
31514 | |||
31515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
31516 | fi | ||
31517 | |||
31518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
31519 | fi | ||
31520 | { echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5 | ||
31521 | echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; } | ||
31522 | if test $ac_cv_member_HEADER_ad = yes; then | ||
31523 | |||
31524 | cat >>confdefs.h <<\_ACEOF | ||
31525 | #define HAVE_HEADER_AD 1 | ||
31526 | _ACEOF | ||
31527 | |||
31528 | fi | ||
31529 | |||
31530 | |||
31531 | fi | ||
31532 | |||
31533 | |||
31534 | { echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5 | ||
31535 | echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; } | ||
31536 | cat >conftest.$ac_ext <<_ACEOF | ||
31537 | /* confdefs.h. */ | ||
31538 | _ACEOF | ||
31539 | cat confdefs.h >>conftest.$ac_ext | ||
31540 | cat >>conftest.$ac_ext <<_ACEOF | ||
31541 | /* end confdefs.h. */ | ||
31542 | |||
31543 | #include <stdio.h> | ||
31544 | #if HAVE_SYS_TYPES_H | ||
31545 | # include <sys/types.h> | ||
31546 | #endif | ||
31547 | #include <netinet/in.h> | ||
31548 | #include <arpa/nameser.h> | ||
31549 | #include <resolv.h> | ||
31550 | extern struct __res_state _res; | ||
31551 | |||
31552 | int | ||
31553 | main () | ||
31554 | { | ||
31555 | |||
31556 | ; | ||
31557 | return 0; | ||
31558 | } | ||
31559 | _ACEOF | ||
31560 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31561 | if { (ac_try="$ac_link" | ||
31562 | case "(($ac_try" in | ||
31563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31564 | *) ac_try_echo=$ac_try;; | ||
31565 | esac | ||
31566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31567 | (eval "$ac_link") 2>conftest.er1 | ||
31568 | ac_status=$? | ||
31569 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31570 | rm -f conftest.er1 | ||
31571 | cat conftest.err >&5 | ||
31572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31573 | (exit $ac_status); } && { | ||
31574 | test -z "$ac_c_werror_flag" || | ||
31575 | test ! -s conftest.err | ||
31576 | } && test -s conftest$ac_exeext && | ||
31577 | $as_test_x conftest$ac_exeext; then | ||
31578 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
31579 | echo "${ECHO_T}yes" >&6; } | ||
31580 | |||
31581 | cat >>confdefs.h <<\_ACEOF | ||
31582 | #define HAVE__RES_EXTERN 1 | ||
31583 | _ACEOF | ||
31584 | |||
31585 | |||
31586 | else | ||
31587 | echo "$as_me: failed program was:" >&5 | ||
31588 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31589 | |||
31590 | { echo "$as_me:$LINENO: result: no" >&5 | ||
31591 | echo "${ECHO_T}no" >&6; } | ||
31592 | |||
31593 | fi | ||
31594 | |||
31595 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31596 | conftest$ac_exeext conftest.$ac_ext | ||
31597 | |||
31598 | # Check whether user wants SELinux support | ||
31599 | SELINUX_MSG="no" | ||
31600 | LIBSELINUX="" | ||
31601 | |||
31602 | # Check whether --with-selinux was given. | ||
31603 | if test "${with_selinux+set}" = set; then | ||
31604 | withval=$with_selinux; if test "x$withval" != "xno" ; then | ||
31605 | save_LIBS="$LIBS" | ||
31606 | |||
31607 | cat >>confdefs.h <<\_ACEOF | ||
31608 | #define WITH_SELINUX 1 | ||
31609 | _ACEOF | ||
31610 | |||
31611 | SELINUX_MSG="yes" | ||
31612 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
31613 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
31614 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } | ||
31615 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
31616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31617 | fi | ||
31618 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
31619 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } | ||
31620 | else | ||
31621 | # Is the header compilable? | ||
31622 | { echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5 | ||
31623 | echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; } | ||
31624 | cat >conftest.$ac_ext <<_ACEOF | ||
31625 | /* confdefs.h. */ | ||
31626 | _ACEOF | ||
31627 | cat confdefs.h >>conftest.$ac_ext | ||
31628 | cat >>conftest.$ac_ext <<_ACEOF | ||
31629 | /* end confdefs.h. */ | ||
31630 | $ac_includes_default | ||
31631 | #include <selinux/selinux.h> | ||
31632 | _ACEOF | ||
31633 | rm -f conftest.$ac_objext | ||
31634 | if { (ac_try="$ac_compile" | ||
31635 | case "(($ac_try" in | ||
31636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31637 | *) ac_try_echo=$ac_try;; | ||
31638 | esac | ||
31639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31640 | (eval "$ac_compile") 2>conftest.er1 | ||
31641 | ac_status=$? | ||
31642 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31643 | rm -f conftest.er1 | ||
31644 | cat conftest.err >&5 | ||
31645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31646 | (exit $ac_status); } && { | ||
31647 | test -z "$ac_c_werror_flag" || | ||
31648 | test ! -s conftest.err | ||
31649 | } && test -s conftest.$ac_objext; then | ||
31650 | ac_header_compiler=yes | ||
31651 | else | ||
31652 | echo "$as_me: failed program was:" >&5 | ||
31653 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31654 | |||
31655 | ac_header_compiler=no | ||
31656 | fi | ||
31657 | |||
31658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
31659 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
31660 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
31661 | |||
31662 | # Is the header present? | ||
31663 | { echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5 | ||
31664 | echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; } | ||
31665 | cat >conftest.$ac_ext <<_ACEOF | ||
31666 | /* confdefs.h. */ | ||
31667 | _ACEOF | ||
31668 | cat confdefs.h >>conftest.$ac_ext | ||
31669 | cat >>conftest.$ac_ext <<_ACEOF | ||
31670 | /* end confdefs.h. */ | ||
31671 | #include <selinux/selinux.h> | ||
31672 | _ACEOF | ||
31673 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
31674 | case "(($ac_try" in | ||
31675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31676 | *) ac_try_echo=$ac_try;; | ||
31677 | esac | ||
31678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31679 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
31680 | ac_status=$? | ||
31681 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31682 | rm -f conftest.er1 | ||
31683 | cat conftest.err >&5 | ||
31684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31685 | (exit $ac_status); } >/dev/null && { | ||
31686 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
31687 | test ! -s conftest.err | ||
31688 | }; then | ||
31689 | ac_header_preproc=yes | ||
31690 | else | ||
31691 | echo "$as_me: failed program was:" >&5 | ||
31692 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31693 | |||
31694 | ac_header_preproc=no | ||
31695 | fi | ||
31696 | |||
31697 | rm -f conftest.err conftest.$ac_ext | ||
31698 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
31699 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
31700 | |||
31701 | # So? What about this header? | ||
31702 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
31703 | yes:no: ) | ||
31704 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
31705 | echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
31706 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5 | ||
31707 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;} | ||
31708 | ac_header_preproc=yes | ||
31709 | ;; | ||
31710 | no:yes:* ) | ||
31711 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5 | ||
31712 | echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;} | ||
31713 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5 | ||
31714 | echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;} | ||
31715 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5 | ||
31716 | echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;} | ||
31717 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
31718 | echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
31719 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5 | ||
31720 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;} | ||
31721 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5 | ||
31722 | echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;} | ||
31723 | ( cat <<\_ASBOX | ||
31724 | ## ------------------------------------------- ## | ||
31725 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
31726 | ## ------------------------------------------- ## | ||
31727 | _ASBOX | ||
31728 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
31729 | ;; | ||
31730 | esac | ||
31731 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
31732 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } | ||
31733 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
31734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31735 | else | ||
31736 | ac_cv_header_selinux_selinux_h=$ac_header_preproc | ||
31737 | fi | ||
31738 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
31739 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } | ||
31740 | |||
31741 | fi | ||
31742 | if test $ac_cv_header_selinux_selinux_h = yes; then | ||
31743 | : | ||
31744 | else | ||
31745 | { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5 | ||
31746 | echo "$as_me: error: SELinux support requires selinux.h header" >&2;} | ||
31747 | { (exit 1); exit 1; }; } | ||
31748 | fi | ||
31749 | |||
31750 | |||
31751 | { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5 | ||
31752 | echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; } | ||
31753 | if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then | ||
31754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31755 | else | ||
31756 | ac_check_lib_save_LIBS=$LIBS | ||
31757 | LIBS="-lselinux $LIBS" | ||
31758 | cat >conftest.$ac_ext <<_ACEOF | ||
31759 | /* confdefs.h. */ | ||
31760 | _ACEOF | ||
31761 | cat confdefs.h >>conftest.$ac_ext | ||
31762 | cat >>conftest.$ac_ext <<_ACEOF | ||
31763 | /* end confdefs.h. */ | ||
31764 | |||
31765 | /* Override any GCC internal prototype to avoid an error. | ||
31766 | Use char because int might match the return type of a GCC | ||
31767 | builtin and then its argument prototype would still apply. */ | ||
31768 | #ifdef __cplusplus | ||
31769 | extern "C" | ||
31770 | #endif | ||
31771 | char setexeccon (); | ||
31772 | int | ||
31773 | main () | ||
31774 | { | ||
31775 | return setexeccon (); | ||
31776 | ; | ||
31777 | return 0; | ||
31778 | } | ||
31779 | _ACEOF | ||
31780 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31781 | if { (ac_try="$ac_link" | ||
31782 | case "(($ac_try" in | ||
31783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31784 | *) ac_try_echo=$ac_try;; | ||
31785 | esac | ||
31786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31787 | (eval "$ac_link") 2>conftest.er1 | ||
31788 | ac_status=$? | ||
31789 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31790 | rm -f conftest.er1 | ||
31791 | cat conftest.err >&5 | ||
31792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31793 | (exit $ac_status); } && { | ||
31794 | test -z "$ac_c_werror_flag" || | ||
31795 | test ! -s conftest.err | ||
31796 | } && test -s conftest$ac_exeext && | ||
31797 | $as_test_x conftest$ac_exeext; then | ||
31798 | ac_cv_lib_selinux_setexeccon=yes | ||
31799 | else | ||
31800 | echo "$as_me: failed program was:" >&5 | ||
31801 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31802 | |||
31803 | ac_cv_lib_selinux_setexeccon=no | ||
31804 | fi | ||
31805 | |||
31806 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31807 | conftest$ac_exeext conftest.$ac_ext | ||
31808 | LIBS=$ac_check_lib_save_LIBS | ||
31809 | fi | ||
31810 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5 | ||
31811 | echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; } | ||
31812 | if test $ac_cv_lib_selinux_setexeccon = yes; then | ||
31813 | LIBSELINUX="-lselinux" | ||
31814 | LIBS="$LIBS -lselinux" | ||
31815 | |||
31816 | else | ||
31817 | { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5 | ||
31818 | echo "$as_me: error: SELinux support requires libselinux library" >&2;} | ||
31819 | { (exit 1); exit 1; }; } | ||
31820 | fi | ||
31821 | |||
31822 | SSHLIBS="$SSHLIBS $LIBSELINUX" | ||
31823 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" | ||
31824 | |||
31825 | |||
31826 | for ac_func in getseuserbyname get_default_context_with_level | ||
31827 | do | ||
31828 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
31829 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
31830 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
31831 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
31832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31833 | else | ||
31834 | cat >conftest.$ac_ext <<_ACEOF | ||
31835 | /* confdefs.h. */ | ||
31836 | _ACEOF | ||
31837 | cat confdefs.h >>conftest.$ac_ext | ||
31838 | cat >>conftest.$ac_ext <<_ACEOF | ||
31839 | /* end confdefs.h. */ | ||
31840 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
31841 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
31842 | #define $ac_func innocuous_$ac_func | ||
31843 | |||
31844 | /* System header to define __stub macros and hopefully few prototypes, | ||
31845 | which can conflict with char $ac_func (); below. | ||
31846 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
31847 | <limits.h> exists even on freestanding compilers. */ | ||
31848 | |||
31849 | #ifdef __STDC__ | ||
31850 | # include <limits.h> | ||
31851 | #else | ||
31852 | # include <assert.h> | ||
31853 | #endif | ||
31854 | |||
31855 | #undef $ac_func | ||
31856 | |||
31857 | /* Override any GCC internal prototype to avoid an error. | ||
31858 | Use char because int might match the return type of a GCC | ||
31859 | builtin and then its argument prototype would still apply. */ | ||
31860 | #ifdef __cplusplus | ||
31861 | extern "C" | ||
31862 | #endif | ||
31863 | char $ac_func (); | ||
31864 | /* The GNU C library defines this for functions which it implements | ||
31865 | to always fail with ENOSYS. Some functions are actually named | ||
31866 | something starting with __ and the normal name is an alias. */ | ||
31867 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
31868 | choke me | ||
31869 | #endif | ||
31870 | |||
31871 | int | ||
31872 | main () | ||
31873 | { | ||
31874 | return $ac_func (); | ||
31875 | ; | ||
31876 | return 0; | ||
31877 | } | ||
31878 | _ACEOF | ||
31879 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
31880 | if { (ac_try="$ac_link" | ||
31881 | case "(($ac_try" in | ||
31882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
31883 | *) ac_try_echo=$ac_try;; | ||
31884 | esac | ||
31885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
31886 | (eval "$ac_link") 2>conftest.er1 | ||
31887 | ac_status=$? | ||
31888 | grep -v '^ *+' conftest.er1 >conftest.err | ||
31889 | rm -f conftest.er1 | ||
31890 | cat conftest.err >&5 | ||
31891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
31892 | (exit $ac_status); } && { | ||
31893 | test -z "$ac_c_werror_flag" || | ||
31894 | test ! -s conftest.err | ||
31895 | } && test -s conftest$ac_exeext && | ||
31896 | $as_test_x conftest$ac_exeext; then | ||
31897 | eval "$as_ac_var=yes" | ||
31898 | else | ||
31899 | echo "$as_me: failed program was:" >&5 | ||
31900 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
31901 | |||
31902 | eval "$as_ac_var=no" | ||
31903 | fi | ||
31904 | |||
31905 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
31906 | conftest$ac_exeext conftest.$ac_ext | ||
31907 | fi | ||
31908 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
31909 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
31910 | echo "${ECHO_T}$ac_res" >&6; } | ||
31911 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
31912 | cat >>confdefs.h <<_ACEOF | ||
31913 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
31914 | _ACEOF | ||
31915 | |||
31916 | fi | ||
31917 | done | ||
31918 | |||
31919 | LIBS="$save_LIBS" | ||
31920 | fi | ||
31921 | |||
31922 | fi | ||
31923 | |||
31924 | |||
31925 | |||
31926 | |||
31927 | # Check whether user wants Kerberos 5 support | ||
31928 | KRB5_MSG="no" | ||
31929 | |||
31930 | # Check whether --with-kerberos5 was given. | ||
31931 | if test "${with_kerberos5+set}" = set; then | ||
31932 | withval=$with_kerberos5; if test "x$withval" != "xno" ; then | ||
31933 | if test "x$withval" = "xyes" ; then | ||
31934 | KRB5ROOT="/usr/local" | ||
31935 | else | ||
31936 | KRB5ROOT=${withval} | ||
31937 | fi | ||
31938 | |||
31939 | |||
31940 | cat >>confdefs.h <<\_ACEOF | ||
31941 | #define KRB5 1 | ||
31942 | _ACEOF | ||
31943 | |||
31944 | KRB5_MSG="yes" | ||
31945 | |||
31946 | # Extract the first word of "krb5-config", so it can be a program name with args. | ||
31947 | set dummy krb5-config; ac_word=$2 | ||
31948 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
31949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
31950 | if test "${ac_cv_path_KRB5CONF+set}" = set; then | ||
31951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
31952 | else | ||
31953 | case $KRB5CONF in | ||
31954 | [\\/]* | ?:[\\/]*) | ||
31955 | ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path. | ||
31956 | ;; | ||
31957 | *) | ||
31958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
31959 | as_dummy="$KRB5ROOT/bin:$PATH" | ||
31960 | for as_dir in $as_dummy | ||
31961 | do | ||
31962 | IFS=$as_save_IFS | ||
31963 | test -z "$as_dir" && as_dir=. | ||
31964 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
31965 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
31966 | ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" | ||
31967 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
31968 | break 2 | ||
31969 | fi | ||
31970 | done | ||
31971 | done | ||
31972 | IFS=$as_save_IFS | ||
31973 | |||
31974 | test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config" | ||
31975 | ;; | ||
31976 | esac | ||
31977 | fi | ||
31978 | KRB5CONF=$ac_cv_path_KRB5CONF | ||
31979 | if test -n "$KRB5CONF"; then | ||
31980 | { echo "$as_me:$LINENO: result: $KRB5CONF" >&5 | ||
31981 | echo "${ECHO_T}$KRB5CONF" >&6; } | ||
31982 | else | ||
31983 | { echo "$as_me:$LINENO: result: no" >&5 | ||
31984 | echo "${ECHO_T}no" >&6; } | ||
31985 | fi | ||
31986 | |||
31987 | |||
31988 | if test -x $KRB5CONF ; then | ||
31989 | K5CFLAGS="`$KRB5CONF --cflags`" | ||
31990 | K5LIBS="`$KRB5CONF --libs`" | ||
31991 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
31992 | |||
31993 | { echo "$as_me:$LINENO: checking for gssapi support" >&5 | ||
31994 | echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; } | ||
31995 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
31996 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
31997 | echo "${ECHO_T}yes" >&6; } | ||
31998 | |||
31999 | cat >>confdefs.h <<\_ACEOF | ||
32000 | #define GSSAPI 1 | ||
32001 | _ACEOF | ||
32002 | |||
32003 | GSSCFLAGS="`$KRB5CONF --cflags gssapi`" | ||
32004 | GSSLIBS="`$KRB5CONF --libs gssapi`" | ||
32005 | CPPFLAGS="$CPPFLAGS $GSSCFLAGS" | ||
32006 | else | ||
32007 | { echo "$as_me:$LINENO: result: no" >&5 | ||
32008 | echo "${ECHO_T}no" >&6; } | ||
32009 | fi | ||
32010 | { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
32011 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } | ||
32012 | cat >conftest.$ac_ext <<_ACEOF | ||
32013 | /* confdefs.h. */ | ||
32014 | _ACEOF | ||
32015 | cat confdefs.h >>conftest.$ac_ext | ||
32016 | cat >>conftest.$ac_ext <<_ACEOF | ||
32017 | /* end confdefs.h. */ | ||
32018 | #include <krb5.h> | ||
32019 | |||
32020 | int | ||
32021 | main () | ||
32022 | { | ||
32023 | char *tmp = heimdal_version; | ||
32024 | ; | ||
32025 | return 0; | ||
32026 | } | ||
32027 | _ACEOF | ||
32028 | rm -f conftest.$ac_objext | ||
32029 | if { (ac_try="$ac_compile" | ||
32030 | case "(($ac_try" in | ||
32031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32032 | *) ac_try_echo=$ac_try;; | ||
32033 | esac | ||
32034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32035 | (eval "$ac_compile") 2>conftest.er1 | ||
32036 | ac_status=$? | ||
32037 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32038 | rm -f conftest.er1 | ||
32039 | cat conftest.err >&5 | ||
32040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32041 | (exit $ac_status); } && { | ||
32042 | test -z "$ac_c_werror_flag" || | ||
32043 | test ! -s conftest.err | ||
32044 | } && test -s conftest.$ac_objext; then | ||
32045 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
32046 | echo "${ECHO_T}yes" >&6; } | ||
32047 | |||
32048 | cat >>confdefs.h <<\_ACEOF | ||
32049 | #define HEIMDAL 1 | ||
32050 | _ACEOF | ||
32051 | |||
32052 | else | ||
32053 | echo "$as_me: failed program was:" >&5 | ||
32054 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32055 | |||
32056 | { echo "$as_me:$LINENO: result: no" >&5 | ||
32057 | echo "${ECHO_T}no" >&6; } | ||
32058 | |||
32059 | fi | ||
32060 | |||
32061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
32062 | else | ||
32063 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
32064 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
32065 | { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
32066 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } | ||
32067 | cat >conftest.$ac_ext <<_ACEOF | ||
32068 | /* confdefs.h. */ | ||
32069 | _ACEOF | ||
32070 | cat confdefs.h >>conftest.$ac_ext | ||
32071 | cat >>conftest.$ac_ext <<_ACEOF | ||
32072 | /* end confdefs.h. */ | ||
32073 | #include <krb5.h> | ||
32074 | |||
32075 | int | ||
32076 | main () | ||
32077 | { | ||
32078 | char *tmp = heimdal_version; | ||
32079 | ; | ||
32080 | return 0; | ||
32081 | } | ||
32082 | _ACEOF | ||
32083 | rm -f conftest.$ac_objext | ||
32084 | if { (ac_try="$ac_compile" | ||
32085 | case "(($ac_try" in | ||
32086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32087 | *) ac_try_echo=$ac_try;; | ||
32088 | esac | ||
32089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32090 | (eval "$ac_compile") 2>conftest.er1 | ||
32091 | ac_status=$? | ||
32092 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32093 | rm -f conftest.er1 | ||
32094 | cat conftest.err >&5 | ||
32095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32096 | (exit $ac_status); } && { | ||
32097 | test -z "$ac_c_werror_flag" || | ||
32098 | test ! -s conftest.err | ||
32099 | } && test -s conftest.$ac_objext; then | ||
32100 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
32101 | echo "${ECHO_T}yes" >&6; } | ||
32102 | cat >>confdefs.h <<\_ACEOF | ||
32103 | #define HEIMDAL 1 | ||
32104 | _ACEOF | ||
32105 | |||
32106 | K5LIBS="-lkrb5" | ||
32107 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
32108 | { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5 | ||
32109 | echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; } | ||
32110 | if test "${ac_cv_lib_roken_net_write+set}" = set; then | ||
32111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32112 | else | ||
32113 | ac_check_lib_save_LIBS=$LIBS | ||
32114 | LIBS="-lroken $LIBS" | ||
32115 | cat >conftest.$ac_ext <<_ACEOF | ||
32116 | /* confdefs.h. */ | ||
32117 | _ACEOF | ||
32118 | cat confdefs.h >>conftest.$ac_ext | ||
32119 | cat >>conftest.$ac_ext <<_ACEOF | ||
32120 | /* end confdefs.h. */ | ||
32121 | |||
32122 | /* Override any GCC internal prototype to avoid an error. | ||
32123 | Use char because int might match the return type of a GCC | ||
32124 | builtin and then its argument prototype would still apply. */ | ||
32125 | #ifdef __cplusplus | ||
32126 | extern "C" | ||
32127 | #endif | ||
32128 | char net_write (); | ||
32129 | int | ||
32130 | main () | ||
32131 | { | ||
32132 | return net_write (); | ||
32133 | ; | ||
32134 | return 0; | ||
32135 | } | ||
32136 | _ACEOF | ||
32137 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
32138 | if { (ac_try="$ac_link" | ||
32139 | case "(($ac_try" in | ||
32140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32141 | *) ac_try_echo=$ac_try;; | ||
32142 | esac | ||
32143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32144 | (eval "$ac_link") 2>conftest.er1 | ||
32145 | ac_status=$? | ||
32146 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32147 | rm -f conftest.er1 | ||
32148 | cat conftest.err >&5 | ||
32149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32150 | (exit $ac_status); } && { | ||
32151 | test -z "$ac_c_werror_flag" || | ||
32152 | test ! -s conftest.err | ||
32153 | } && test -s conftest$ac_exeext && | ||
32154 | $as_test_x conftest$ac_exeext; then | ||
32155 | ac_cv_lib_roken_net_write=yes | ||
32156 | else | ||
32157 | echo "$as_me: failed program was:" >&5 | ||
32158 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32159 | |||
32160 | ac_cv_lib_roken_net_write=no | ||
32161 | fi | ||
32162 | |||
32163 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
32164 | conftest$ac_exeext conftest.$ac_ext | ||
32165 | LIBS=$ac_check_lib_save_LIBS | ||
32166 | fi | ||
32167 | { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5 | ||
32168 | echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; } | ||
32169 | if test $ac_cv_lib_roken_net_write = yes; then | ||
32170 | K5LIBS="$K5LIBS -lroken" | ||
32171 | fi | ||
32172 | |||
32173 | { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 | ||
32174 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; } | ||
32175 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | ||
32176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32177 | else | ||
32178 | ac_check_lib_save_LIBS=$LIBS | ||
32179 | LIBS="-ldes $LIBS" | ||
32180 | cat >conftest.$ac_ext <<_ACEOF | ||
32181 | /* confdefs.h. */ | ||
32182 | _ACEOF | ||
32183 | cat confdefs.h >>conftest.$ac_ext | ||
32184 | cat >>conftest.$ac_ext <<_ACEOF | ||
32185 | /* end confdefs.h. */ | ||
32186 | |||
32187 | /* Override any GCC internal prototype to avoid an error. | ||
32188 | Use char because int might match the return type of a GCC | ||
32189 | builtin and then its argument prototype would still apply. */ | ||
32190 | #ifdef __cplusplus | ||
32191 | extern "C" | ||
32192 | #endif | ||
32193 | char des_cbc_encrypt (); | ||
32194 | int | ||
32195 | main () | ||
32196 | { | ||
32197 | return des_cbc_encrypt (); | ||
32198 | ; | ||
32199 | return 0; | ||
32200 | } | ||
32201 | _ACEOF | ||
32202 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
32203 | if { (ac_try="$ac_link" | ||
32204 | case "(($ac_try" in | ||
32205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32206 | *) ac_try_echo=$ac_try;; | ||
32207 | esac | ||
32208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32209 | (eval "$ac_link") 2>conftest.er1 | ||
32210 | ac_status=$? | ||
32211 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32212 | rm -f conftest.er1 | ||
32213 | cat conftest.err >&5 | ||
32214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32215 | (exit $ac_status); } && { | ||
32216 | test -z "$ac_c_werror_flag" || | ||
32217 | test ! -s conftest.err | ||
32218 | } && test -s conftest$ac_exeext && | ||
32219 | $as_test_x conftest$ac_exeext; then | ||
32220 | ac_cv_lib_des_des_cbc_encrypt=yes | ||
32221 | else | ||
32222 | echo "$as_me: failed program was:" >&5 | ||
32223 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32224 | |||
32225 | ac_cv_lib_des_des_cbc_encrypt=no | ||
32226 | fi | ||
32227 | |||
32228 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
32229 | conftest$ac_exeext conftest.$ac_ext | ||
32230 | LIBS=$ac_check_lib_save_LIBS | ||
32231 | fi | ||
32232 | { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | ||
32233 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; } | ||
32234 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | ||
32235 | K5LIBS="$K5LIBS -ldes" | ||
32236 | fi | ||
32237 | |||
32238 | |||
32239 | else | ||
32240 | echo "$as_me: failed program was:" >&5 | ||
32241 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32242 | |||
32243 | { echo "$as_me:$LINENO: result: no" >&5 | ||
32244 | echo "${ECHO_T}no" >&6; } | ||
32245 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
32246 | |||
32247 | |||
32248 | fi | ||
32249 | |||
32250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
32251 | { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
32252 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } | ||
32253 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
32254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32255 | else | ||
32256 | ac_func_search_save_LIBS=$LIBS | ||
32257 | cat >conftest.$ac_ext <<_ACEOF | ||
32258 | /* confdefs.h. */ | ||
32259 | _ACEOF | ||
32260 | cat confdefs.h >>conftest.$ac_ext | ||
32261 | cat >>conftest.$ac_ext <<_ACEOF | ||
32262 | /* end confdefs.h. */ | ||
32263 | |||
32264 | /* Override any GCC internal prototype to avoid an error. | ||
32265 | Use char because int might match the return type of a GCC | ||
32266 | builtin and then its argument prototype would still apply. */ | ||
32267 | #ifdef __cplusplus | ||
32268 | extern "C" | ||
32269 | #endif | ||
32270 | char dn_expand (); | ||
32271 | int | ||
32272 | main () | ||
32273 | { | ||
32274 | return dn_expand (); | ||
32275 | ; | ||
32276 | return 0; | ||
32277 | } | ||
32278 | _ACEOF | ||
32279 | for ac_lib in '' resolv; do | ||
32280 | if test -z "$ac_lib"; then | ||
32281 | ac_res="none required" | ||
32282 | else | ||
32283 | ac_res=-l$ac_lib | ||
32284 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
32285 | fi | ||
32286 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
32287 | if { (ac_try="$ac_link" | ||
32288 | case "(($ac_try" in | ||
32289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32290 | *) ac_try_echo=$ac_try;; | ||
32291 | esac | ||
32292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32293 | (eval "$ac_link") 2>conftest.er1 | ||
32294 | ac_status=$? | ||
32295 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32296 | rm -f conftest.er1 | ||
32297 | cat conftest.err >&5 | ||
32298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32299 | (exit $ac_status); } && { | ||
32300 | test -z "$ac_c_werror_flag" || | ||
32301 | test ! -s conftest.err | ||
32302 | } && test -s conftest$ac_exeext && | ||
32303 | $as_test_x conftest$ac_exeext; then | ||
32304 | ac_cv_search_dn_expand=$ac_res | ||
32305 | else | ||
32306 | echo "$as_me: failed program was:" >&5 | ||
32307 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32308 | |||
32309 | |||
32310 | fi | ||
32311 | |||
32312 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
32313 | conftest$ac_exeext | ||
32314 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
32315 | break | ||
32316 | fi | ||
32317 | done | ||
32318 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
32319 | : | ||
32320 | else | ||
32321 | ac_cv_search_dn_expand=no | ||
32322 | fi | ||
32323 | rm conftest.$ac_ext | ||
32324 | LIBS=$ac_func_search_save_LIBS | ||
32325 | fi | ||
32326 | { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
32327 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } | ||
32328 | ac_res=$ac_cv_search_dn_expand | ||
32329 | if test "$ac_res" != no; then | ||
32330 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
32331 | |||
32332 | fi | ||
32333 | |||
32334 | |||
32335 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
32336 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; } | ||
32337 | if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then | ||
32338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32339 | else | ||
32340 | ac_check_lib_save_LIBS=$LIBS | ||
32341 | LIBS="-lgssapi_krb5 $LIBS" | ||
32342 | cat >conftest.$ac_ext <<_ACEOF | ||
32343 | /* confdefs.h. */ | ||
32344 | _ACEOF | ||
32345 | cat confdefs.h >>conftest.$ac_ext | ||
32346 | cat >>conftest.$ac_ext <<_ACEOF | ||
32347 | /* end confdefs.h. */ | ||
32348 | |||
32349 | /* Override any GCC internal prototype to avoid an error. | ||
32350 | Use char because int might match the return type of a GCC | ||
32351 | builtin and then its argument prototype would still apply. */ | ||
32352 | #ifdef __cplusplus | ||
32353 | extern "C" | ||
32354 | #endif | ||
32355 | char gss_init_sec_context (); | ||
32356 | int | ||
32357 | main () | ||
32358 | { | ||
32359 | return gss_init_sec_context (); | ||
32360 | ; | ||
32361 | return 0; | ||
32362 | } | ||
32363 | _ACEOF | ||
32364 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
32365 | if { (ac_try="$ac_link" | ||
32366 | case "(($ac_try" in | ||
32367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32368 | *) ac_try_echo=$ac_try;; | ||
32369 | esac | ||
32370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32371 | (eval "$ac_link") 2>conftest.er1 | ||
32372 | ac_status=$? | ||
32373 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32374 | rm -f conftest.er1 | ||
32375 | cat conftest.err >&5 | ||
32376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32377 | (exit $ac_status); } && { | ||
32378 | test -z "$ac_c_werror_flag" || | ||
32379 | test ! -s conftest.err | ||
32380 | } && test -s conftest$ac_exeext && | ||
32381 | $as_test_x conftest$ac_exeext; then | ||
32382 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
32383 | else | ||
32384 | echo "$as_me: failed program was:" >&5 | ||
32385 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32386 | |||
32387 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
32388 | fi | ||
32389 | |||
32390 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
32391 | conftest$ac_exeext conftest.$ac_ext | ||
32392 | LIBS=$ac_check_lib_save_LIBS | ||
32393 | fi | ||
32394 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
32395 | echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } | ||
32396 | if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then | ||
32397 | cat >>confdefs.h <<\_ACEOF | ||
32398 | #define GSSAPI 1 | ||
32399 | _ACEOF | ||
32400 | |||
32401 | GSSLIBS="-lgssapi_krb5" | ||
32402 | else | ||
32403 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5 | ||
32404 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; } | ||
32405 | if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then | ||
32406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32407 | else | ||
32408 | ac_check_lib_save_LIBS=$LIBS | ||
32409 | LIBS="-lgssapi $LIBS" | ||
32410 | cat >conftest.$ac_ext <<_ACEOF | ||
32411 | /* confdefs.h. */ | ||
32412 | _ACEOF | ||
32413 | cat confdefs.h >>conftest.$ac_ext | ||
32414 | cat >>conftest.$ac_ext <<_ACEOF | ||
32415 | /* end confdefs.h. */ | ||
32416 | |||
32417 | /* Override any GCC internal prototype to avoid an error. | ||
32418 | Use char because int might match the return type of a GCC | ||
32419 | builtin and then its argument prototype would still apply. */ | ||
32420 | #ifdef __cplusplus | ||
32421 | extern "C" | ||
32422 | #endif | ||
32423 | char gss_init_sec_context (); | ||
32424 | int | ||
32425 | main () | ||
32426 | { | ||
32427 | return gss_init_sec_context (); | ||
32428 | ; | ||
32429 | return 0; | ||
32430 | } | ||
32431 | _ACEOF | ||
32432 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
32433 | if { (ac_try="$ac_link" | ||
32434 | case "(($ac_try" in | ||
32435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32436 | *) ac_try_echo=$ac_try;; | ||
32437 | esac | ||
32438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32439 | (eval "$ac_link") 2>conftest.er1 | ||
32440 | ac_status=$? | ||
32441 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32442 | rm -f conftest.er1 | ||
32443 | cat conftest.err >&5 | ||
32444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32445 | (exit $ac_status); } && { | ||
32446 | test -z "$ac_c_werror_flag" || | ||
32447 | test ! -s conftest.err | ||
32448 | } && test -s conftest$ac_exeext && | ||
32449 | $as_test_x conftest$ac_exeext; then | ||
32450 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
32451 | else | ||
32452 | echo "$as_me: failed program was:" >&5 | ||
32453 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32454 | |||
32455 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
32456 | fi | ||
32457 | |||
32458 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
32459 | conftest$ac_exeext conftest.$ac_ext | ||
32460 | LIBS=$ac_check_lib_save_LIBS | ||
32461 | fi | ||
32462 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
32463 | echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } | ||
32464 | if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then | ||
32465 | cat >>confdefs.h <<\_ACEOF | ||
32466 | #define GSSAPI 1 | ||
32467 | _ACEOF | ||
32468 | |||
32469 | GSSLIBS="-lgssapi" | ||
32470 | else | ||
32471 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgss" >&5 | ||
32472 | echo $ECHO_N "checking for gss_init_sec_context in -lgss... $ECHO_C" >&6; } | ||
32473 | if test "${ac_cv_lib_gss_gss_init_sec_context+set}" = set; then | ||
32474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32475 | else | ||
32476 | ac_check_lib_save_LIBS=$LIBS | ||
32477 | LIBS="-lgss $LIBS" | ||
32478 | cat >conftest.$ac_ext <<_ACEOF | ||
32479 | /* confdefs.h. */ | ||
32480 | _ACEOF | ||
32481 | cat confdefs.h >>conftest.$ac_ext | ||
32482 | cat >>conftest.$ac_ext <<_ACEOF | ||
32483 | /* end confdefs.h. */ | ||
32484 | |||
32485 | /* Override any GCC internal prototype to avoid an error. | ||
32486 | Use char because int might match the return type of a GCC | ||
32487 | builtin and then its argument prototype would still apply. */ | ||
32488 | #ifdef __cplusplus | ||
32489 | extern "C" | ||
32490 | #endif | ||
32491 | char gss_init_sec_context (); | ||
32492 | int | ||
32493 | main () | ||
32494 | { | ||
32495 | return gss_init_sec_context (); | ||
32496 | ; | ||
32497 | return 0; | ||
32498 | } | ||
32499 | _ACEOF | ||
32500 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
32501 | if { (ac_try="$ac_link" | ||
32502 | case "(($ac_try" in | ||
32503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32504 | *) ac_try_echo=$ac_try;; | ||
32505 | esac | ||
32506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32507 | (eval "$ac_link") 2>conftest.er1 | ||
32508 | ac_status=$? | ||
32509 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32510 | rm -f conftest.er1 | ||
32511 | cat conftest.err >&5 | ||
32512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32513 | (exit $ac_status); } && { | ||
32514 | test -z "$ac_c_werror_flag" || | ||
32515 | test ! -s conftest.err | ||
32516 | } && test -s conftest$ac_exeext && | ||
32517 | $as_test_x conftest$ac_exeext; then | ||
32518 | ac_cv_lib_gss_gss_init_sec_context=yes | ||
32519 | else | ||
32520 | echo "$as_me: failed program was:" >&5 | ||
32521 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32522 | |||
32523 | ac_cv_lib_gss_gss_init_sec_context=no | ||
32524 | fi | ||
32525 | |||
32526 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
32527 | conftest$ac_exeext conftest.$ac_ext | ||
32528 | LIBS=$ac_check_lib_save_LIBS | ||
32529 | fi | ||
32530 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_init_sec_context" >&5 | ||
32531 | echo "${ECHO_T}$ac_cv_lib_gss_gss_init_sec_context" >&6; } | ||
32532 | if test $ac_cv_lib_gss_gss_init_sec_context = yes; then | ||
32533 | cat >>confdefs.h <<\_ACEOF | ||
32534 | #define GSSAPI 1 | ||
32535 | _ACEOF | ||
32536 | |||
32537 | GSSLIBS="-lgss" | ||
32538 | else | ||
32539 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
32540 | echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
32541 | fi | ||
32542 | |||
32543 | |||
32544 | fi | ||
32545 | |||
32546 | |||
32547 | fi | ||
32548 | |||
32549 | |||
32550 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
32551 | { echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
32552 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } | ||
32553 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
32554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32555 | fi | ||
32556 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
32557 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } | ||
32558 | else | ||
32559 | # Is the header compilable? | ||
32560 | { echo "$as_me:$LINENO: checking gssapi.h usability" >&5 | ||
32561 | echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; } | ||
32562 | cat >conftest.$ac_ext <<_ACEOF | ||
32563 | /* confdefs.h. */ | ||
32564 | _ACEOF | ||
32565 | cat confdefs.h >>conftest.$ac_ext | ||
32566 | cat >>conftest.$ac_ext <<_ACEOF | ||
32567 | /* end confdefs.h. */ | ||
32568 | $ac_includes_default | ||
32569 | #include <gssapi.h> | ||
32570 | _ACEOF | ||
32571 | rm -f conftest.$ac_objext | ||
32572 | if { (ac_try="$ac_compile" | ||
32573 | case "(($ac_try" in | ||
32574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32575 | *) ac_try_echo=$ac_try;; | ||
32576 | esac | ||
32577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32578 | (eval "$ac_compile") 2>conftest.er1 | ||
32579 | ac_status=$? | ||
32580 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32581 | rm -f conftest.er1 | ||
32582 | cat conftest.err >&5 | ||
32583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32584 | (exit $ac_status); } && { | ||
32585 | test -z "$ac_c_werror_flag" || | ||
32586 | test ! -s conftest.err | ||
32587 | } && test -s conftest.$ac_objext; then | ||
32588 | ac_header_compiler=yes | ||
32589 | else | ||
32590 | echo "$as_me: failed program was:" >&5 | ||
32591 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32592 | |||
32593 | ac_header_compiler=no | ||
32594 | fi | ||
32595 | |||
32596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
32597 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
32598 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
32599 | |||
32600 | # Is the header present? | ||
32601 | { echo "$as_me:$LINENO: checking gssapi.h presence" >&5 | ||
32602 | echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; } | ||
32603 | cat >conftest.$ac_ext <<_ACEOF | ||
32604 | /* confdefs.h. */ | ||
32605 | _ACEOF | ||
32606 | cat confdefs.h >>conftest.$ac_ext | ||
32607 | cat >>conftest.$ac_ext <<_ACEOF | ||
32608 | /* end confdefs.h. */ | ||
32609 | #include <gssapi.h> | ||
32610 | _ACEOF | ||
32611 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
32612 | case "(($ac_try" in | ||
32613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32614 | *) ac_try_echo=$ac_try;; | ||
32615 | esac | ||
32616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32617 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
32618 | ac_status=$? | ||
32619 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32620 | rm -f conftest.er1 | ||
32621 | cat conftest.err >&5 | ||
32622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32623 | (exit $ac_status); } >/dev/null && { | ||
32624 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
32625 | test ! -s conftest.err | ||
32626 | }; then | ||
32627 | ac_header_preproc=yes | ||
32628 | else | ||
32629 | echo "$as_me: failed program was:" >&5 | ||
32630 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32631 | |||
32632 | ac_header_preproc=no | ||
32633 | fi | ||
32634 | |||
32635 | rm -f conftest.err conftest.$ac_ext | ||
32636 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
32637 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
32638 | |||
32639 | # So? What about this header? | ||
32640 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
32641 | yes:no: ) | ||
32642 | { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
32643 | echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
32644 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5 | ||
32645 | echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;} | ||
32646 | ac_header_preproc=yes | ||
32647 | ;; | ||
32648 | no:yes:* ) | ||
32649 | { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5 | ||
32650 | echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;} | ||
32651 | { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5 | ||
32652 | echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;} | ||
32653 | { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5 | ||
32654 | echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;} | ||
32655 | { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
32656 | echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
32657 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5 | ||
32658 | echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;} | ||
32659 | { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5 | ||
32660 | echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;} | ||
32661 | ( cat <<\_ASBOX | ||
32662 | ## ------------------------------------------- ## | ||
32663 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
32664 | ## ------------------------------------------- ## | ||
32665 | _ASBOX | ||
32666 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
32667 | ;; | ||
32668 | esac | ||
32669 | { echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
32670 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } | ||
32671 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
32672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32673 | else | ||
32674 | ac_cv_header_gssapi_h=$ac_header_preproc | ||
32675 | fi | ||
32676 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
32677 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } | ||
32678 | |||
32679 | fi | ||
32680 | if test $ac_cv_header_gssapi_h = yes; then | ||
32681 | : | ||
32682 | else | ||
32683 | unset ac_cv_header_gssapi_h | ||
32684 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
32685 | |||
32686 | for ac_header in gssapi.h | ||
32687 | do | ||
32688 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
32689 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
32690 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
32691 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
32692 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
32693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32694 | fi | ||
32695 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
32696 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
32697 | echo "${ECHO_T}$ac_res" >&6; } | ||
32698 | else | ||
32699 | # Is the header compilable? | ||
32700 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
32701 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
32702 | cat >conftest.$ac_ext <<_ACEOF | ||
32703 | /* confdefs.h. */ | ||
32704 | _ACEOF | ||
32705 | cat confdefs.h >>conftest.$ac_ext | ||
32706 | cat >>conftest.$ac_ext <<_ACEOF | ||
32707 | /* end confdefs.h. */ | ||
32708 | $ac_includes_default | ||
32709 | #include <$ac_header> | ||
32710 | _ACEOF | ||
32711 | rm -f conftest.$ac_objext | ||
32712 | if { (ac_try="$ac_compile" | ||
32713 | case "(($ac_try" in | ||
32714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32715 | *) ac_try_echo=$ac_try;; | ||
32716 | esac | ||
32717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32718 | (eval "$ac_compile") 2>conftest.er1 | ||
32719 | ac_status=$? | ||
32720 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32721 | rm -f conftest.er1 | ||
32722 | cat conftest.err >&5 | ||
32723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32724 | (exit $ac_status); } && { | ||
32725 | test -z "$ac_c_werror_flag" || | ||
32726 | test ! -s conftest.err | ||
32727 | } && test -s conftest.$ac_objext; then | ||
32728 | ac_header_compiler=yes | ||
32729 | else | ||
32730 | echo "$as_me: failed program was:" >&5 | ||
32731 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32732 | |||
32733 | ac_header_compiler=no | ||
32734 | fi | ||
32735 | |||
32736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
32737 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
32738 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
32739 | |||
32740 | # Is the header present? | ||
32741 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
32742 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
32743 | cat >conftest.$ac_ext <<_ACEOF | ||
32744 | /* confdefs.h. */ | ||
32745 | _ACEOF | ||
32746 | cat confdefs.h >>conftest.$ac_ext | ||
32747 | cat >>conftest.$ac_ext <<_ACEOF | ||
32748 | /* end confdefs.h. */ | ||
32749 | #include <$ac_header> | ||
32750 | _ACEOF | ||
32751 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
32752 | case "(($ac_try" in | ||
32753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32754 | *) ac_try_echo=$ac_try;; | ||
32755 | esac | ||
32756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32757 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
32758 | ac_status=$? | ||
32759 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32760 | rm -f conftest.er1 | ||
32761 | cat conftest.err >&5 | ||
32762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32763 | (exit $ac_status); } >/dev/null && { | ||
32764 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
32765 | test ! -s conftest.err | ||
32766 | }; then | ||
32767 | ac_header_preproc=yes | ||
32768 | else | ||
32769 | echo "$as_me: failed program was:" >&5 | ||
32770 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32771 | |||
32772 | ac_header_preproc=no | ||
32773 | fi | ||
32774 | |||
32775 | rm -f conftest.err conftest.$ac_ext | ||
32776 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
32777 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
32778 | |||
32779 | # So? What about this header? | ||
32780 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
32781 | yes:no: ) | ||
32782 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
32783 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
32784 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
32785 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
32786 | ac_header_preproc=yes | ||
32787 | ;; | ||
32788 | no:yes:* ) | ||
32789 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
32790 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
32791 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
32792 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
32793 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
32794 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
32795 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
32796 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
32797 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
32798 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
32799 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
32800 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
32801 | ( cat <<\_ASBOX | ||
32802 | ## ------------------------------------------- ## | ||
32803 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
32804 | ## ------------------------------------------- ## | ||
32805 | _ASBOX | ||
32806 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
32807 | ;; | ||
32808 | esac | ||
32809 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
32810 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
32811 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
32812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32813 | else | ||
32814 | eval "$as_ac_Header=\$ac_header_preproc" | ||
32815 | fi | ||
32816 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
32817 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
32818 | echo "${ECHO_T}$ac_res" >&6; } | ||
32819 | |||
32820 | fi | ||
32821 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
32822 | cat >>confdefs.h <<_ACEOF | ||
32823 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
32824 | _ACEOF | ||
32825 | |||
32826 | else | ||
32827 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
32828 | echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
32829 | |||
32830 | fi | ||
32831 | |||
32832 | done | ||
32833 | |||
32834 | |||
32835 | |||
32836 | fi | ||
32837 | |||
32838 | |||
32839 | |||
32840 | oldCPP="$CPPFLAGS" | ||
32841 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
32842 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
32843 | { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
32844 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } | ||
32845 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
32846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32847 | fi | ||
32848 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
32849 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } | ||
32850 | else | ||
32851 | # Is the header compilable? | ||
32852 | { echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5 | ||
32853 | echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; } | ||
32854 | cat >conftest.$ac_ext <<_ACEOF | ||
32855 | /* confdefs.h. */ | ||
32856 | _ACEOF | ||
32857 | cat confdefs.h >>conftest.$ac_ext | ||
32858 | cat >>conftest.$ac_ext <<_ACEOF | ||
32859 | /* end confdefs.h. */ | ||
32860 | $ac_includes_default | ||
32861 | #include <gssapi_krb5.h> | ||
32862 | _ACEOF | ||
32863 | rm -f conftest.$ac_objext | ||
32864 | if { (ac_try="$ac_compile" | ||
32865 | case "(($ac_try" in | ||
32866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32867 | *) ac_try_echo=$ac_try;; | ||
32868 | esac | ||
32869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32870 | (eval "$ac_compile") 2>conftest.er1 | ||
32871 | ac_status=$? | ||
32872 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32873 | rm -f conftest.er1 | ||
32874 | cat conftest.err >&5 | ||
32875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32876 | (exit $ac_status); } && { | ||
32877 | test -z "$ac_c_werror_flag" || | ||
32878 | test ! -s conftest.err | ||
32879 | } && test -s conftest.$ac_objext; then | ||
32880 | ac_header_compiler=yes | ||
32881 | else | ||
32882 | echo "$as_me: failed program was:" >&5 | ||
32883 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32884 | |||
32885 | ac_header_compiler=no | ||
32886 | fi | ||
32887 | |||
32888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
32889 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
32890 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
32891 | |||
32892 | # Is the header present? | ||
32893 | { echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5 | ||
32894 | echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; } | ||
32895 | cat >conftest.$ac_ext <<_ACEOF | ||
32896 | /* confdefs.h. */ | ||
32897 | _ACEOF | ||
32898 | cat confdefs.h >>conftest.$ac_ext | ||
32899 | cat >>conftest.$ac_ext <<_ACEOF | ||
32900 | /* end confdefs.h. */ | ||
32901 | #include <gssapi_krb5.h> | ||
32902 | _ACEOF | ||
32903 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
32904 | case "(($ac_try" in | ||
32905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
32906 | *) ac_try_echo=$ac_try;; | ||
32907 | esac | ||
32908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
32909 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
32910 | ac_status=$? | ||
32911 | grep -v '^ *+' conftest.er1 >conftest.err | ||
32912 | rm -f conftest.er1 | ||
32913 | cat conftest.err >&5 | ||
32914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
32915 | (exit $ac_status); } >/dev/null && { | ||
32916 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
32917 | test ! -s conftest.err | ||
32918 | }; then | ||
32919 | ac_header_preproc=yes | ||
32920 | else | ||
32921 | echo "$as_me: failed program was:" >&5 | ||
32922 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
32923 | |||
32924 | ac_header_preproc=no | ||
32925 | fi | ||
32926 | |||
32927 | rm -f conftest.err conftest.$ac_ext | ||
32928 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
32929 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
32930 | |||
32931 | # So? What about this header? | ||
32932 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
32933 | yes:no: ) | ||
32934 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
32935 | echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
32936 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5 | ||
32937 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;} | ||
32938 | ac_header_preproc=yes | ||
32939 | ;; | ||
32940 | no:yes:* ) | ||
32941 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5 | ||
32942 | echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;} | ||
32943 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5 | ||
32944 | echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;} | ||
32945 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5 | ||
32946 | echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;} | ||
32947 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
32948 | echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
32949 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5 | ||
32950 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;} | ||
32951 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5 | ||
32952 | echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;} | ||
32953 | ( cat <<\_ASBOX | ||
32954 | ## ------------------------------------------- ## | ||
32955 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
32956 | ## ------------------------------------------- ## | ||
32957 | _ASBOX | ||
32958 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
32959 | ;; | ||
32960 | esac | ||
32961 | { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
32962 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } | ||
32963 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
32964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32965 | else | ||
32966 | ac_cv_header_gssapi_krb5_h=$ac_header_preproc | ||
32967 | fi | ||
32968 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
32969 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } | ||
32970 | |||
32971 | fi | ||
32972 | if test $ac_cv_header_gssapi_krb5_h = yes; then | ||
32973 | : | ||
32974 | else | ||
32975 | CPPFLAGS="$oldCPP" | ||
32976 | fi | ||
32977 | |||
32978 | |||
32979 | |||
32980 | fi | ||
32981 | if test ! -z "$need_dash_r" ; then | ||
32982 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
32983 | fi | ||
32984 | if test ! -z "$blibpath" ; then | ||
32985 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
32986 | fi | ||
32987 | |||
32988 | |||
32989 | |||
32990 | for ac_header in gssapi.h gssapi/gssapi.h | ||
32991 | do | ||
32992 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
32993 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
32994 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
32995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
32996 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
32997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
32998 | fi | ||
32999 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
33000 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
33001 | echo "${ECHO_T}$ac_res" >&6; } | ||
33002 | else | ||
33003 | # Is the header compilable? | ||
33004 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
33005 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
33006 | cat >conftest.$ac_ext <<_ACEOF | ||
33007 | /* confdefs.h. */ | ||
33008 | _ACEOF | ||
33009 | cat confdefs.h >>conftest.$ac_ext | ||
33010 | cat >>conftest.$ac_ext <<_ACEOF | ||
33011 | /* end confdefs.h. */ | ||
33012 | $ac_includes_default | ||
33013 | #include <$ac_header> | ||
33014 | _ACEOF | ||
33015 | rm -f conftest.$ac_objext | ||
33016 | if { (ac_try="$ac_compile" | ||
33017 | case "(($ac_try" in | ||
33018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33019 | *) ac_try_echo=$ac_try;; | ||
33020 | esac | ||
33021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33022 | (eval "$ac_compile") 2>conftest.er1 | ||
33023 | ac_status=$? | ||
33024 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33025 | rm -f conftest.er1 | ||
33026 | cat conftest.err >&5 | ||
33027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33028 | (exit $ac_status); } && { | ||
33029 | test -z "$ac_c_werror_flag" || | ||
33030 | test ! -s conftest.err | ||
33031 | } && test -s conftest.$ac_objext; then | ||
33032 | ac_header_compiler=yes | ||
33033 | else | ||
33034 | echo "$as_me: failed program was:" >&5 | ||
33035 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33036 | |||
33037 | ac_header_compiler=no | ||
33038 | fi | ||
33039 | |||
33040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
33041 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
33042 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
33043 | |||
33044 | # Is the header present? | ||
33045 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
33046 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
33047 | cat >conftest.$ac_ext <<_ACEOF | ||
33048 | /* confdefs.h. */ | ||
33049 | _ACEOF | ||
33050 | cat confdefs.h >>conftest.$ac_ext | ||
33051 | cat >>conftest.$ac_ext <<_ACEOF | ||
33052 | /* end confdefs.h. */ | ||
33053 | #include <$ac_header> | ||
33054 | _ACEOF | ||
33055 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
33056 | case "(($ac_try" in | ||
33057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33058 | *) ac_try_echo=$ac_try;; | ||
33059 | esac | ||
33060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33061 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
33062 | ac_status=$? | ||
33063 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33064 | rm -f conftest.er1 | ||
33065 | cat conftest.err >&5 | ||
33066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33067 | (exit $ac_status); } >/dev/null && { | ||
33068 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
33069 | test ! -s conftest.err | ||
33070 | }; then | ||
33071 | ac_header_preproc=yes | ||
33072 | else | ||
33073 | echo "$as_me: failed program was:" >&5 | ||
33074 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33075 | |||
33076 | ac_header_preproc=no | ||
33077 | fi | ||
33078 | |||
33079 | rm -f conftest.err conftest.$ac_ext | ||
33080 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
33081 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
33082 | |||
33083 | # So? What about this header? | ||
33084 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
33085 | yes:no: ) | ||
33086 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
33087 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
33088 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
33089 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
33090 | ac_header_preproc=yes | ||
33091 | ;; | ||
33092 | no:yes:* ) | ||
33093 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
33094 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
33095 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
33096 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
33097 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
33098 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
33099 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
33100 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
33101 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
33102 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
33103 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
33104 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
33105 | ( cat <<\_ASBOX | ||
33106 | ## ------------------------------------------- ## | ||
33107 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
33108 | ## ------------------------------------------- ## | ||
33109 | _ASBOX | ||
33110 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
33111 | ;; | ||
33112 | esac | ||
33113 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
33114 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
33115 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33117 | else | ||
33118 | eval "$as_ac_Header=\$ac_header_preproc" | ||
33119 | fi | ||
33120 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
33121 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
33122 | echo "${ECHO_T}$ac_res" >&6; } | ||
33123 | |||
33124 | fi | ||
33125 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
33126 | cat >>confdefs.h <<_ACEOF | ||
33127 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
33128 | _ACEOF | ||
33129 | |||
33130 | fi | ||
33131 | |||
33132 | done | ||
33133 | |||
33134 | |||
33135 | |||
33136 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
33137 | do | ||
33138 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
33139 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33140 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
33141 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
33142 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33144 | fi | ||
33145 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
33146 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
33147 | echo "${ECHO_T}$ac_res" >&6; } | ||
33148 | else | ||
33149 | # Is the header compilable? | ||
33150 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
33151 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
33152 | cat >conftest.$ac_ext <<_ACEOF | ||
33153 | /* confdefs.h. */ | ||
33154 | _ACEOF | ||
33155 | cat confdefs.h >>conftest.$ac_ext | ||
33156 | cat >>conftest.$ac_ext <<_ACEOF | ||
33157 | /* end confdefs.h. */ | ||
33158 | $ac_includes_default | ||
33159 | #include <$ac_header> | ||
33160 | _ACEOF | ||
33161 | rm -f conftest.$ac_objext | ||
33162 | if { (ac_try="$ac_compile" | ||
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_compile") 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_objext; then | ||
33178 | ac_header_compiler=yes | ||
33179 | else | ||
33180 | echo "$as_me: failed program was:" >&5 | ||
33181 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33182 | |||
33183 | ac_header_compiler=no | ||
33184 | fi | ||
33185 | |||
33186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
33187 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
33188 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
33189 | |||
33190 | # Is the header present? | ||
33191 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
33192 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
33193 | cat >conftest.$ac_ext <<_ACEOF | ||
33194 | /* confdefs.h. */ | ||
33195 | _ACEOF | ||
33196 | cat confdefs.h >>conftest.$ac_ext | ||
33197 | cat >>conftest.$ac_ext <<_ACEOF | ||
33198 | /* end confdefs.h. */ | ||
33199 | #include <$ac_header> | ||
33200 | _ACEOF | ||
33201 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
33202 | case "(($ac_try" in | ||
33203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33204 | *) ac_try_echo=$ac_try;; | ||
33205 | esac | ||
33206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33207 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
33208 | ac_status=$? | ||
33209 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33210 | rm -f conftest.er1 | ||
33211 | cat conftest.err >&5 | ||
33212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33213 | (exit $ac_status); } >/dev/null && { | ||
33214 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
33215 | test ! -s conftest.err | ||
33216 | }; then | ||
33217 | ac_header_preproc=yes | ||
33218 | else | ||
33219 | echo "$as_me: failed program was:" >&5 | ||
33220 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33221 | |||
33222 | ac_header_preproc=no | ||
33223 | fi | ||
33224 | |||
33225 | rm -f conftest.err conftest.$ac_ext | ||
33226 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
33227 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
33228 | |||
33229 | # So? What about this header? | ||
33230 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
33231 | yes:no: ) | ||
33232 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
33233 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
33234 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
33235 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
33236 | ac_header_preproc=yes | ||
33237 | ;; | ||
33238 | no:yes:* ) | ||
33239 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
33240 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
33241 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
33242 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
33243 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
33244 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
33245 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
33246 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
33247 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
33248 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
33249 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
33250 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
33251 | ( cat <<\_ASBOX | ||
33252 | ## ------------------------------------------- ## | ||
33253 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
33254 | ## ------------------------------------------- ## | ||
33255 | _ASBOX | ||
33256 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
33257 | ;; | ||
33258 | esac | ||
33259 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
33260 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
33261 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33263 | else | ||
33264 | eval "$as_ac_Header=\$ac_header_preproc" | ||
33265 | fi | ||
33266 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
33267 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
33268 | echo "${ECHO_T}$ac_res" >&6; } | ||
33269 | |||
33270 | fi | ||
33271 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
33272 | cat >>confdefs.h <<_ACEOF | ||
33273 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
33274 | _ACEOF | ||
33275 | |||
33276 | fi | ||
33277 | |||
33278 | done | ||
33279 | |||
33280 | |||
33281 | |||
33282 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
33283 | do | ||
33284 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
33285 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33286 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
33287 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
33288 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33290 | fi | ||
33291 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
33292 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
33293 | echo "${ECHO_T}$ac_res" >&6; } | ||
33294 | else | ||
33295 | # Is the header compilable? | ||
33296 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
33297 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
33298 | cat >conftest.$ac_ext <<_ACEOF | ||
33299 | /* confdefs.h. */ | ||
33300 | _ACEOF | ||
33301 | cat confdefs.h >>conftest.$ac_ext | ||
33302 | cat >>conftest.$ac_ext <<_ACEOF | ||
33303 | /* end confdefs.h. */ | ||
33304 | $ac_includes_default | ||
33305 | #include <$ac_header> | ||
33306 | _ACEOF | ||
33307 | rm -f conftest.$ac_objext | ||
33308 | if { (ac_try="$ac_compile" | ||
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_compile") 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_objext; then | ||
33324 | ac_header_compiler=yes | ||
33325 | else | ||
33326 | echo "$as_me: failed program was:" >&5 | ||
33327 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33328 | |||
33329 | ac_header_compiler=no | ||
33330 | fi | ||
33331 | |||
33332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
33333 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
33334 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
33335 | |||
33336 | # Is the header present? | ||
33337 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
33338 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
33339 | cat >conftest.$ac_ext <<_ACEOF | ||
33340 | /* confdefs.h. */ | ||
33341 | _ACEOF | ||
33342 | cat confdefs.h >>conftest.$ac_ext | ||
33343 | cat >>conftest.$ac_ext <<_ACEOF | ||
33344 | /* end confdefs.h. */ | ||
33345 | #include <$ac_header> | ||
33346 | _ACEOF | ||
33347 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
33348 | case "(($ac_try" in | ||
33349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33350 | *) ac_try_echo=$ac_try;; | ||
33351 | esac | ||
33352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33353 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
33354 | ac_status=$? | ||
33355 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33356 | rm -f conftest.er1 | ||
33357 | cat conftest.err >&5 | ||
33358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33359 | (exit $ac_status); } >/dev/null && { | ||
33360 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
33361 | test ! -s conftest.err | ||
33362 | }; then | ||
33363 | ac_header_preproc=yes | ||
33364 | else | ||
33365 | echo "$as_me: failed program was:" >&5 | ||
33366 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33367 | |||
33368 | ac_header_preproc=no | ||
33369 | fi | ||
33370 | |||
33371 | rm -f conftest.err conftest.$ac_ext | ||
33372 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
33373 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
33374 | |||
33375 | # So? What about this header? | ||
33376 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
33377 | yes:no: ) | ||
33378 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
33379 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
33380 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
33381 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
33382 | ac_header_preproc=yes | ||
33383 | ;; | ||
33384 | no:yes:* ) | ||
33385 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
33386 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
33387 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
33388 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
33389 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
33390 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
33391 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
33392 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
33393 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
33394 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
33395 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
33396 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
33397 | ( cat <<\_ASBOX | ||
33398 | ## ------------------------------------------- ## | ||
33399 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
33400 | ## ------------------------------------------- ## | ||
33401 | _ASBOX | ||
33402 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
33403 | ;; | ||
33404 | esac | ||
33405 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
33406 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
33407 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33409 | else | ||
33410 | eval "$as_ac_Header=\$ac_header_preproc" | ||
33411 | fi | ||
33412 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
33413 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
33414 | echo "${ECHO_T}$ac_res" >&6; } | ||
33415 | |||
33416 | fi | ||
33417 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
33418 | cat >>confdefs.h <<_ACEOF | ||
33419 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
33420 | _ACEOF | ||
33421 | |||
33422 | fi | ||
33423 | |||
33424 | done | ||
33425 | |||
33426 | |||
33427 | { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5 | ||
33428 | echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; } | ||
33429 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
33430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33431 | else | ||
33432 | ac_func_search_save_LIBS=$LIBS | ||
33433 | cat >conftest.$ac_ext <<_ACEOF | ||
33434 | /* confdefs.h. */ | ||
33435 | _ACEOF | ||
33436 | cat confdefs.h >>conftest.$ac_ext | ||
33437 | cat >>conftest.$ac_ext <<_ACEOF | ||
33438 | /* end confdefs.h. */ | ||
33439 | |||
33440 | /* Override any GCC internal prototype to avoid an error. | ||
33441 | Use char because int might match the return type of a GCC | ||
33442 | builtin and then its argument prototype would still apply. */ | ||
33443 | #ifdef __cplusplus | ||
33444 | extern "C" | ||
33445 | #endif | ||
33446 | char k_hasafs (); | ||
33447 | int | ||
33448 | main () | ||
33449 | { | ||
33450 | return k_hasafs (); | ||
33451 | ; | ||
33452 | return 0; | ||
33453 | } | ||
33454 | _ACEOF | ||
33455 | for ac_lib in '' kafs; do | ||
33456 | if test -z "$ac_lib"; then | ||
33457 | ac_res="none required" | ||
33458 | else | ||
33459 | ac_res=-l$ac_lib | ||
33460 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
33461 | fi | ||
33462 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
33463 | if { (ac_try="$ac_link" | ||
33464 | case "(($ac_try" in | ||
33465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33466 | *) ac_try_echo=$ac_try;; | ||
33467 | esac | ||
33468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33469 | (eval "$ac_link") 2>conftest.er1 | ||
33470 | ac_status=$? | ||
33471 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33472 | rm -f conftest.er1 | ||
33473 | cat conftest.err >&5 | ||
33474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33475 | (exit $ac_status); } && { | ||
33476 | test -z "$ac_c_werror_flag" || | ||
33477 | test ! -s conftest.err | ||
33478 | } && test -s conftest$ac_exeext && | ||
33479 | $as_test_x conftest$ac_exeext; then | ||
33480 | ac_cv_search_k_hasafs=$ac_res | ||
33481 | else | ||
33482 | echo "$as_me: failed program was:" >&5 | ||
33483 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33484 | |||
33485 | |||
33486 | fi | ||
33487 | |||
33488 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
33489 | conftest$ac_exeext | ||
33490 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
33491 | break | ||
33492 | fi | ||
33493 | done | ||
33494 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
33495 | : | ||
33496 | else | ||
33497 | ac_cv_search_k_hasafs=no | ||
33498 | fi | ||
33499 | rm conftest.$ac_ext | ||
33500 | LIBS=$ac_func_search_save_LIBS | ||
33501 | fi | ||
33502 | { echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5 | ||
33503 | echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; } | ||
33504 | ac_res=$ac_cv_search_k_hasafs | ||
33505 | if test "$ac_res" != no; then | ||
33506 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
33507 | |||
33508 | cat >>confdefs.h <<\_ACEOF | ||
33509 | #define USE_AFS 1 | ||
33510 | _ACEOF | ||
33511 | |||
33512 | fi | ||
33513 | |||
33514 | |||
33515 | { echo "$as_me:$LINENO: checking whether GSS_C_NT_HOSTBASED_SERVICE is declared" >&5 | ||
33516 | echo $ECHO_N "checking whether GSS_C_NT_HOSTBASED_SERVICE is declared... $ECHO_C" >&6; } | ||
33517 | if test "${ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE+set}" = set; then | ||
33518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33519 | else | ||
33520 | cat >conftest.$ac_ext <<_ACEOF | ||
33521 | /* confdefs.h. */ | ||
33522 | _ACEOF | ||
33523 | cat confdefs.h >>conftest.$ac_ext | ||
33524 | cat >>conftest.$ac_ext <<_ACEOF | ||
33525 | /* end confdefs.h. */ | ||
33526 | |||
33527 | #ifdef HAVE_GSSAPI_H | ||
33528 | # include <gssapi.h> | ||
33529 | #elif defined(HAVE_GSSAPI_GSSAPI_H) | ||
33530 | # include <gssapi/gssapi.h> | ||
33531 | #endif | ||
33532 | |||
33533 | #ifdef HAVE_GSSAPI_GENERIC_H | ||
33534 | # include <gssapi_generic.h> | ||
33535 | #elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H) | ||
33536 | # include <gssapi/gssapi_generic.h> | ||
33537 | #endif | ||
33538 | |||
33539 | |||
33540 | int | ||
33541 | main () | ||
33542 | { | ||
33543 | #ifndef GSS_C_NT_HOSTBASED_SERVICE | ||
33544 | (void) GSS_C_NT_HOSTBASED_SERVICE; | ||
33545 | #endif | ||
33546 | |||
33547 | ; | ||
33548 | return 0; | ||
33549 | } | ||
33550 | _ACEOF | ||
33551 | rm -f conftest.$ac_objext | ||
33552 | if { (ac_try="$ac_compile" | ||
33553 | case "(($ac_try" in | ||
33554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33555 | *) ac_try_echo=$ac_try;; | ||
33556 | esac | ||
33557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33558 | (eval "$ac_compile") 2>conftest.er1 | ||
33559 | ac_status=$? | ||
33560 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33561 | rm -f conftest.er1 | ||
33562 | cat conftest.err >&5 | ||
33563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33564 | (exit $ac_status); } && { | ||
33565 | test -z "$ac_c_werror_flag" || | ||
33566 | test ! -s conftest.err | ||
33567 | } && test -s conftest.$ac_objext; then | ||
33568 | ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=yes | ||
33569 | else | ||
33570 | echo "$as_me: failed program was:" >&5 | ||
33571 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33572 | |||
33573 | ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=no | ||
33574 | fi | ||
33575 | |||
33576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
33577 | fi | ||
33578 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&5 | ||
33579 | echo "${ECHO_T}$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&6; } | ||
33580 | if test $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE = yes; then | ||
33581 | |||
33582 | cat >>confdefs.h <<_ACEOF | ||
33583 | #define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 1 | ||
33584 | _ACEOF | ||
33585 | |||
33586 | |||
33587 | else | ||
33588 | cat >>confdefs.h <<_ACEOF | ||
33589 | #define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 0 | ||
33590 | _ACEOF | ||
33591 | |||
33592 | |||
33593 | fi | ||
33594 | |||
33595 | |||
33596 | saved_LIBS="$LIBS" | ||
33597 | LIBS="$LIBS $K5LIBS" | ||
33598 | |||
33599 | |||
33600 | |||
33601 | for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message | ||
33602 | do | ||
33603 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
33604 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
33605 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
33606 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
33607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33608 | else | ||
33609 | cat >conftest.$ac_ext <<_ACEOF | ||
33610 | /* confdefs.h. */ | ||
33611 | _ACEOF | ||
33612 | cat confdefs.h >>conftest.$ac_ext | ||
33613 | cat >>conftest.$ac_ext <<_ACEOF | ||
33614 | /* end confdefs.h. */ | ||
33615 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
33616 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
33617 | #define $ac_func innocuous_$ac_func | ||
33618 | |||
33619 | /* System header to define __stub macros and hopefully few prototypes, | ||
33620 | which can conflict with char $ac_func (); below. | ||
33621 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
33622 | <limits.h> exists even on freestanding compilers. */ | ||
33623 | |||
33624 | #ifdef __STDC__ | ||
33625 | # include <limits.h> | ||
33626 | #else | ||
33627 | # include <assert.h> | ||
33628 | #endif | ||
33629 | |||
33630 | #undef $ac_func | ||
33631 | |||
33632 | /* Override any GCC internal prototype to avoid an error. | ||
33633 | Use char because int might match the return type of a GCC | ||
33634 | builtin and then its argument prototype would still apply. */ | ||
33635 | #ifdef __cplusplus | ||
33636 | extern "C" | ||
33637 | #endif | ||
33638 | char $ac_func (); | ||
33639 | /* The GNU C library defines this for functions which it implements | ||
33640 | to always fail with ENOSYS. Some functions are actually named | ||
33641 | something starting with __ and the normal name is an alias. */ | ||
33642 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
33643 | choke me | ||
33644 | #endif | ||
33645 | |||
33646 | int | ||
33647 | main () | ||
33648 | { | ||
33649 | return $ac_func (); | ||
33650 | ; | ||
33651 | return 0; | ||
33652 | } | ||
33653 | _ACEOF | ||
33654 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
33655 | if { (ac_try="$ac_link" | ||
33656 | case "(($ac_try" in | ||
33657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33658 | *) ac_try_echo=$ac_try;; | ||
33659 | esac | ||
33660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33661 | (eval "$ac_link") 2>conftest.er1 | ||
33662 | ac_status=$? | ||
33663 | grep -v '^ *+' conftest.er1 >conftest.err | ||
33664 | rm -f conftest.er1 | ||
33665 | cat conftest.err >&5 | ||
33666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33667 | (exit $ac_status); } && { | ||
33668 | test -z "$ac_c_werror_flag" || | ||
33669 | test ! -s conftest.err | ||
33670 | } && test -s conftest$ac_exeext && | ||
33671 | $as_test_x conftest$ac_exeext; then | ||
33672 | eval "$as_ac_var=yes" | ||
33673 | else | ||
33674 | echo "$as_me: failed program was:" >&5 | ||
33675 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33676 | |||
33677 | eval "$as_ac_var=no" | ||
33678 | fi | ||
33679 | |||
33680 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
33681 | conftest$ac_exeext conftest.$ac_ext | ||
33682 | fi | ||
33683 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
33684 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
33685 | echo "${ECHO_T}$ac_res" >&6; } | ||
33686 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
33687 | cat >>confdefs.h <<_ACEOF | ||
33688 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
33689 | _ACEOF | ||
33690 | |||
33691 | fi | ||
33692 | done | ||
33693 | |||
33694 | LIBS="$saved_LIBS" | ||
33695 | |||
33696 | fi | ||
33697 | |||
33698 | |||
33699 | fi | ||
33700 | |||
33701 | |||
33702 | |||
33703 | |||
33704 | # Looking for programs, paths and files | ||
33705 | |||
33706 | PRIVSEP_PATH=/var/empty | ||
33707 | |||
33708 | # Check whether --with-privsep-path was given. | ||
33709 | if test "${with_privsep_path+set}" = set; then | ||
33710 | withval=$with_privsep_path; | ||
33711 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
33712 | test "x${withval}" != "xyes"; then | ||
33713 | PRIVSEP_PATH=$withval | ||
33714 | fi | ||
33715 | |||
33716 | |||
33717 | fi | ||
33718 | |||
33719 | |||
33720 | |||
33721 | |||
33722 | # Check whether --with-xauth was given. | ||
33723 | if test "${with_xauth+set}" = set; then | ||
33724 | withval=$with_xauth; | ||
33725 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
33726 | test "x${withval}" != "xyes"; then | ||
33727 | xauth_path=$withval | ||
33728 | fi | ||
33729 | |||
33730 | else | ||
33731 | |||
33732 | TestPath="$PATH" | ||
33733 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
33734 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
33735 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
33736 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
33737 | # Extract the first word of "xauth", so it can be a program name with args. | ||
33738 | set dummy xauth; ac_word=$2 | ||
33739 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
33740 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
33741 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
33742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33743 | else | ||
33744 | case $xauth_path in | ||
33745 | [\\/]* | ?:[\\/]*) | ||
33746 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
33747 | ;; | ||
33748 | *) | ||
33749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
33750 | for as_dir in $TestPath | ||
33751 | do | ||
33752 | IFS=$as_save_IFS | ||
33753 | test -z "$as_dir" && as_dir=. | ||
33754 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
33755 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
33756 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
33757 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
33758 | break 2 | ||
33759 | fi | ||
33760 | done | ||
33761 | done | ||
33762 | IFS=$as_save_IFS | ||
33763 | |||
33764 | ;; | ||
33765 | esac | ||
33766 | fi | ||
33767 | xauth_path=$ac_cv_path_xauth_path | ||
33768 | if test -n "$xauth_path"; then | ||
33769 | { echo "$as_me:$LINENO: result: $xauth_path" >&5 | ||
33770 | echo "${ECHO_T}$xauth_path" >&6; } | ||
33771 | else | ||
33772 | { echo "$as_me:$LINENO: result: no" >&5 | ||
33773 | echo "${ECHO_T}no" >&6; } | ||
33774 | fi | ||
33775 | |||
33776 | |||
33777 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
33778 | xauth_path="/usr/openwin/bin/xauth" | ||
33779 | fi | ||
33780 | |||
33781 | |||
33782 | fi | ||
33783 | |||
33784 | |||
33785 | STRIP_OPT=-s | ||
33786 | # Check whether --enable-strip was given. | ||
33787 | if test "${enable_strip+set}" = set; then | ||
33788 | enableval=$enable_strip; | ||
33789 | if test "x$enableval" = "xno" ; then | ||
33790 | STRIP_OPT= | ||
33791 | fi | ||
33792 | |||
33793 | |||
33794 | fi | ||
33795 | |||
33796 | |||
33797 | |||
33798 | if test -z "$xauth_path" ; then | ||
33799 | XAUTH_PATH="undefined" | ||
33800 | |||
33801 | else | ||
33802 | |||
33803 | cat >>confdefs.h <<_ACEOF | ||
33804 | #define XAUTH_PATH "$xauth_path" | ||
33805 | _ACEOF | ||
33806 | |||
33807 | XAUTH_PATH=$xauth_path | ||
33808 | |||
33809 | fi | ||
33810 | |||
33811 | # Check for mail directory | ||
33812 | |||
33813 | # Check whether --with-maildir was given. | ||
33814 | if test "${with_maildir+set}" = set; then | ||
33815 | withval=$with_maildir; | ||
33816 | if test "X$withval" != X && test "x$withval" != xno && \ | ||
33817 | test "x${withval}" != xyes; then | ||
33818 | |||
33819 | cat >>confdefs.h <<_ACEOF | ||
33820 | #define MAIL_DIRECTORY "$withval" | ||
33821 | _ACEOF | ||
33822 | |||
33823 | fi | ||
33824 | |||
33825 | else | ||
33826 | |||
33827 | if test "X$maildir" != "X"; then | ||
33828 | cat >>confdefs.h <<_ACEOF | ||
33829 | #define MAIL_DIRECTORY "$maildir" | ||
33830 | _ACEOF | ||
33831 | |||
33832 | else | ||
33833 | { echo "$as_me:$LINENO: checking Discovering system mail directory" >&5 | ||
33834 | echo $ECHO_N "checking Discovering system mail directory... $ECHO_C" >&6; } | ||
33835 | if test "$cross_compiling" = yes; then | ||
33836 | |||
33837 | { echo "$as_me:$LINENO: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5 | ||
33838 | echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;} | ||
33839 | |||
33840 | |||
33841 | else | ||
33842 | cat >conftest.$ac_ext <<_ACEOF | ||
33843 | /* confdefs.h. */ | ||
33844 | _ACEOF | ||
33845 | cat confdefs.h >>conftest.$ac_ext | ||
33846 | cat >>conftest.$ac_ext <<_ACEOF | ||
33847 | /* end confdefs.h. */ | ||
33848 | |||
33849 | #include <stdio.h> | ||
33850 | #include <string.h> | ||
33851 | #ifdef HAVE_PATHS_H | ||
33852 | #include <paths.h> | ||
33853 | #endif | ||
33854 | #ifdef HAVE_MAILLOCK_H | ||
33855 | #include <maillock.h> | ||
33856 | #endif | ||
33857 | #define DATA "conftest.maildir" | ||
33858 | |||
33859 | int | ||
33860 | main () | ||
33861 | { | ||
33862 | |||
33863 | FILE *fd; | ||
33864 | int rc; | ||
33865 | |||
33866 | fd = fopen(DATA,"w"); | ||
33867 | if(fd == NULL) | ||
33868 | exit(1); | ||
33869 | |||
33870 | #if defined (_PATH_MAILDIR) | ||
33871 | if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0) | ||
33872 | exit(1); | ||
33873 | #elif defined (MAILDIR) | ||
33874 | if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0) | ||
33875 | exit(1); | ||
33876 | #elif defined (_PATH_MAIL) | ||
33877 | if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0) | ||
33878 | exit(1); | ||
33879 | #else | ||
33880 | exit (2); | ||
33881 | #endif | ||
33882 | |||
33883 | exit(0); | ||
33884 | |||
33885 | ; | ||
33886 | return 0; | ||
33887 | } | ||
33888 | _ACEOF | ||
33889 | rm -f conftest$ac_exeext | ||
33890 | if { (ac_try="$ac_link" | ||
33891 | case "(($ac_try" in | ||
33892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33893 | *) ac_try_echo=$ac_try;; | ||
33894 | esac | ||
33895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33896 | (eval "$ac_link") 2>&5 | ||
33897 | ac_status=$? | ||
33898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33899 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
33900 | { (case "(($ac_try" in | ||
33901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
33902 | *) ac_try_echo=$ac_try;; | ||
33903 | esac | ||
33904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
33905 | (eval "$ac_try") 2>&5 | ||
33906 | ac_status=$? | ||
33907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
33908 | (exit $ac_status); }; }; then | ||
33909 | |||
33910 | maildir_what=`awk -F: '{print $1}' conftest.maildir` | ||
33911 | maildir=`awk -F: '{print $2}' conftest.maildir \ | ||
33912 | | sed 's|/$||'` | ||
33913 | { echo "$as_me:$LINENO: result: Using: $maildir from $maildir_what" >&5 | ||
33914 | echo "${ECHO_T}Using: $maildir from $maildir_what" >&6; } | ||
33915 | if test "x$maildir_what" != "x_PATH_MAILDIR"; then | ||
33916 | cat >>confdefs.h <<_ACEOF | ||
33917 | #define MAIL_DIRECTORY "$maildir" | ||
33918 | _ACEOF | ||
33919 | |||
33920 | fi | ||
33921 | |||
33922 | else | ||
33923 | echo "$as_me: program exited with status $ac_status" >&5 | ||
33924 | echo "$as_me: failed program was:" >&5 | ||
33925 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
33926 | |||
33927 | ( exit $ac_status ) | ||
33928 | |||
33929 | if test "X$ac_status" = "X2";then | ||
33930 | # our test program didn't find it. Default to /var/spool/mail | ||
33931 | { echo "$as_me:$LINENO: result: Using: default value of /var/spool/mail" >&5 | ||
33932 | echo "${ECHO_T}Using: default value of /var/spool/mail" >&6; } | ||
33933 | cat >>confdefs.h <<_ACEOF | ||
33934 | #define MAIL_DIRECTORY "/var/spool/mail" | ||
33935 | _ACEOF | ||
33936 | |||
33937 | else | ||
33938 | { echo "$as_me:$LINENO: result: *** not found ***" >&5 | ||
33939 | echo "${ECHO_T}*** not found ***" >&6; } | ||
33940 | fi | ||
33941 | |||
33942 | fi | ||
33943 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
33944 | fi | ||
33945 | |||
33946 | |||
33947 | fi | ||
33948 | |||
33949 | |||
33950 | fi | ||
33951 | # maildir | ||
33952 | |||
33953 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
33954 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
33955 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
33956 | disable_ptmx_check=yes | ||
33957 | fi | ||
33958 | if test -z "$no_dev_ptmx" ; then | ||
33959 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
33960 | { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | ||
33961 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; } | ||
33962 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
33963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33964 | else | ||
33965 | test "$cross_compiling" = yes && | ||
33966 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
33967 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
33968 | { (exit 1); exit 1; }; } | ||
33969 | if test -r ""/dev/ptmx""; then | ||
33970 | ac_cv_file___dev_ptmx_=yes | ||
33971 | else | ||
33972 | ac_cv_file___dev_ptmx_=no | ||
33973 | fi | ||
33974 | fi | ||
33975 | { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | ||
33976 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; } | ||
33977 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
33978 | |||
33979 | |||
33980 | cat >>confdefs.h <<_ACEOF | ||
33981 | #define HAVE_DEV_PTMX 1 | ||
33982 | _ACEOF | ||
33983 | |||
33984 | have_dev_ptmx=1 | ||
33985 | |||
33986 | |||
33987 | fi | ||
33988 | |||
33989 | fi | ||
33990 | fi | ||
33991 | |||
33992 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
33993 | { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | ||
33994 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; } | ||
33995 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
33996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
33997 | else | ||
33998 | test "$cross_compiling" = yes && | ||
33999 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
34000 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
34001 | { (exit 1); exit 1; }; } | ||
34002 | if test -r ""/dev/ptc""; then | ||
34003 | ac_cv_file___dev_ptc_=yes | ||
34004 | else | ||
34005 | ac_cv_file___dev_ptc_=no | ||
34006 | fi | ||
34007 | fi | ||
34008 | { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | ||
34009 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; } | ||
34010 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
34011 | |||
34012 | |||
34013 | cat >>confdefs.h <<_ACEOF | ||
34014 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
34015 | _ACEOF | ||
34016 | |||
34017 | have_dev_ptc=1 | ||
34018 | |||
34019 | |||
34020 | fi | ||
34021 | |||
34022 | else | ||
34023 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
34024 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
34025 | fi | ||
34026 | |||
34027 | # Options from here on. Some of these are preset by platform above | ||
34028 | |||
34029 | # Check whether --with-mantype was given. | ||
34030 | if test "${with_mantype+set}" = set; then | ||
34031 | withval=$with_mantype; | ||
34032 | case "$withval" in | ||
34033 | man|cat|doc) | ||
34034 | MANTYPE=$withval | ||
34035 | ;; | ||
34036 | *) | ||
34037 | { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | ||
34038 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
34039 | { (exit 1); exit 1; }; } | ||
34040 | ;; | ||
34041 | esac | ||
34042 | |||
34043 | |||
34044 | fi | ||
34045 | |||
34046 | if test -z "$MANTYPE"; then | ||
34047 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
34048 | for ac_prog in nroff awf | ||
34049 | do | ||
34050 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
34051 | set dummy $ac_prog; ac_word=$2 | ||
34052 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
34053 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
34054 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
34055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
34056 | else | ||
34057 | case $NROFF in | ||
34058 | [\\/]* | ?:[\\/]*) | ||
34059 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
34060 | ;; | ||
34061 | *) | ||
34062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
34063 | for as_dir in $TestPath | ||
34064 | do | ||
34065 | IFS=$as_save_IFS | ||
34066 | test -z "$as_dir" && as_dir=. | ||
34067 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
34068 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
34069 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
34070 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
34071 | break 2 | ||
34072 | fi | ||
34073 | done | ||
34074 | done | ||
34075 | IFS=$as_save_IFS | ||
34076 | |||
34077 | ;; | ||
34078 | esac | ||
34079 | fi | ||
34080 | NROFF=$ac_cv_path_NROFF | ||
34081 | if test -n "$NROFF"; then | ||
34082 | { echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
34083 | echo "${ECHO_T}$NROFF" >&6; } | ||
34084 | else | ||
34085 | { echo "$as_me:$LINENO: result: no" >&5 | ||
34086 | echo "${ECHO_T}no" >&6; } | ||
34087 | fi | ||
34088 | |||
34089 | |||
34090 | test -n "$NROFF" && break | ||
34091 | done | ||
34092 | test -n "$NROFF" || NROFF="/bin/false" | ||
34093 | |||
34094 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
34095 | MANTYPE=doc | ||
34096 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
34097 | MANTYPE=man | ||
34098 | else | ||
34099 | MANTYPE=cat | ||
34100 | fi | ||
34101 | fi | ||
34102 | |||
34103 | if test "$MANTYPE" = "doc"; then | ||
34104 | mansubdir=man; | ||
34105 | else | ||
34106 | mansubdir=$MANTYPE; | ||
34107 | fi | ||
34108 | |||
34109 | |||
34110 | # Check whether to enable MD5 passwords | ||
34111 | MD5_MSG="no" | ||
34112 | |||
34113 | # Check whether --with-md5-passwords was given. | ||
34114 | if test "${with_md5_passwords+set}" = set; then | ||
34115 | withval=$with_md5_passwords; | ||
34116 | if test "x$withval" != "xno" ; then | ||
34117 | |||
34118 | cat >>confdefs.h <<\_ACEOF | ||
34119 | #define HAVE_MD5_PASSWORDS 1 | ||
34120 | _ACEOF | ||
34121 | |||
34122 | MD5_MSG="yes" | ||
34123 | fi | ||
34124 | |||
34125 | |||
34126 | fi | ||
34127 | |||
34128 | |||
34129 | # Whether to disable shadow password support | ||
34130 | |||
34131 | # Check whether --with-shadow was given. | ||
34132 | if test "${with_shadow+set}" = set; then | ||
34133 | withval=$with_shadow; | ||
34134 | if test "x$withval" = "xno" ; then | ||
34135 | cat >>confdefs.h <<\_ACEOF | ||
34136 | #define DISABLE_SHADOW 1 | ||
34137 | _ACEOF | ||
34138 | |||
34139 | disable_shadow=yes | ||
34140 | fi | ||
34141 | |||
34142 | |||
34143 | fi | ||
34144 | |||
34145 | |||
34146 | if test -z "$disable_shadow" ; then | ||
34147 | { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | ||
34148 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; } | ||
34149 | cat >conftest.$ac_ext <<_ACEOF | ||
34150 | /* confdefs.h. */ | ||
34151 | _ACEOF | ||
34152 | cat confdefs.h >>conftest.$ac_ext | ||
34153 | cat >>conftest.$ac_ext <<_ACEOF | ||
34154 | /* end confdefs.h. */ | ||
34155 | |||
34156 | #include <sys/types.h> | ||
34157 | #include <shadow.h> | ||
34158 | struct spwd sp; | ||
34159 | |||
34160 | int | ||
34161 | main () | ||
34162 | { | ||
34163 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
34164 | ; | ||
34165 | return 0; | ||
34166 | } | ||
34167 | _ACEOF | ||
34168 | rm -f conftest.$ac_objext | ||
34169 | if { (ac_try="$ac_compile" | ||
34170 | case "(($ac_try" in | ||
34171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34172 | *) ac_try_echo=$ac_try;; | ||
34173 | esac | ||
34174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34175 | (eval "$ac_compile") 2>conftest.er1 | ||
34176 | ac_status=$? | ||
34177 | grep -v '^ *+' conftest.er1 >conftest.err | ||
34178 | rm -f conftest.er1 | ||
34179 | cat conftest.err >&5 | ||
34180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34181 | (exit $ac_status); } && { | ||
34182 | test -z "$ac_c_werror_flag" || | ||
34183 | test ! -s conftest.err | ||
34184 | } && test -s conftest.$ac_objext; then | ||
34185 | sp_expire_available=yes | ||
34186 | else | ||
34187 | echo "$as_me: failed program was:" >&5 | ||
34188 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
34189 | |||
34190 | |||
34191 | |||
34192 | fi | ||
34193 | |||
34194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
34195 | |||
34196 | if test "x$sp_expire_available" = "xyes" ; then | ||
34197 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
34198 | echo "${ECHO_T}yes" >&6; } | ||
34199 | |||
34200 | cat >>confdefs.h <<\_ACEOF | ||
34201 | #define HAS_SHADOW_EXPIRE 1 | ||
34202 | _ACEOF | ||
34203 | |||
34204 | else | ||
34205 | { echo "$as_me:$LINENO: result: no" >&5 | ||
34206 | echo "${ECHO_T}no" >&6; } | ||
34207 | fi | ||
34208 | fi | ||
34209 | |||
34210 | # Use ip address instead of hostname in $DISPLAY | ||
34211 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
34212 | DISPLAY_HACK_MSG="yes" | ||
34213 | |||
34214 | cat >>confdefs.h <<\_ACEOF | ||
34215 | #define IPADDR_IN_DISPLAY 1 | ||
34216 | _ACEOF | ||
34217 | |||
34218 | else | ||
34219 | DISPLAY_HACK_MSG="no" | ||
34220 | |||
34221 | # Check whether --with-ipaddr-display was given. | ||
34222 | if test "${with_ipaddr_display+set}" = set; then | ||
34223 | withval=$with_ipaddr_display; | ||
34224 | if test "x$withval" != "xno" ; then | ||
34225 | cat >>confdefs.h <<\_ACEOF | ||
34226 | #define IPADDR_IN_DISPLAY 1 | ||
34227 | _ACEOF | ||
34228 | |||
34229 | DISPLAY_HACK_MSG="yes" | ||
34230 | fi | ||
34231 | |||
34232 | |||
34233 | fi | ||
34234 | |||
34235 | fi | ||
34236 | |||
34237 | # check for /etc/default/login and use it if present. | ||
34238 | # Check whether --enable-etc-default-login was given. | ||
34239 | if test "${enable_etc_default_login+set}" = set; then | ||
34240 | enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then | ||
34241 | { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5 | ||
34242 | echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
34243 | etc_default_login=no | ||
34244 | else | ||
34245 | etc_default_login=yes | ||
34246 | fi | ||
34247 | else | ||
34248 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
34249 | then | ||
34250 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5 | ||
34251 | echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} | ||
34252 | etc_default_login=no | ||
34253 | else | ||
34254 | etc_default_login=yes | ||
34255 | fi | ||
34256 | |||
34257 | fi | ||
34258 | |||
34259 | |||
34260 | if test "x$etc_default_login" != "xno"; then | ||
34261 | { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5 | ||
34262 | echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; } | ||
34263 | if test "${ac_cv_file___etc_default_login_+set}" = set; then | ||
34264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
34265 | else | ||
34266 | test "$cross_compiling" = yes && | ||
34267 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
34268 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
34269 | { (exit 1); exit 1; }; } | ||
34270 | if test -r ""/etc/default/login""; then | ||
34271 | ac_cv_file___etc_default_login_=yes | ||
34272 | else | ||
34273 | ac_cv_file___etc_default_login_=no | ||
34274 | fi | ||
34275 | fi | ||
34276 | { echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5 | ||
34277 | echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; } | ||
34278 | if test $ac_cv_file___etc_default_login_ = yes; then | ||
34279 | external_path_file=/etc/default/login | ||
34280 | fi | ||
34281 | |||
34282 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
34283 | |||
34284 | cat >>confdefs.h <<\_ACEOF | ||
34285 | #define HAVE_ETC_DEFAULT_LOGIN 1 | ||
34286 | _ACEOF | ||
34287 | |||
34288 | fi | ||
34289 | fi | ||
34290 | |||
34291 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
34292 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
34293 | external_path_file=/etc/login.conf | ||
34294 | fi | ||
34295 | |||
34296 | # Whether to mess with the default path | ||
34297 | SERVER_PATH_MSG="(default)" | ||
34298 | |||
34299 | # Check whether --with-default-path was given. | ||
34300 | if test "${with_default_path+set}" = set; then | ||
34301 | withval=$with_default_path; | ||
34302 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
34303 | { echo "$as_me:$LINENO: WARNING: | ||
34304 | --with-default-path=PATH has no effect on this system. | ||
34305 | Edit /etc/login.conf instead." >&5 | ||
34306 | echo "$as_me: WARNING: | ||
34307 | --with-default-path=PATH has no effect on this system. | ||
34308 | Edit /etc/login.conf instead." >&2;} | ||
34309 | elif test "x$withval" != "xno" ; then | ||
34310 | if test ! -z "$external_path_file" ; then | ||
34311 | { echo "$as_me:$LINENO: WARNING: | ||
34312 | --with-default-path=PATH will only be used if PATH is not defined in | ||
34313 | $external_path_file ." >&5 | ||
34314 | echo "$as_me: WARNING: | ||
34315 | --with-default-path=PATH will only be used if PATH is not defined in | ||
34316 | $external_path_file ." >&2;} | ||
34317 | fi | ||
34318 | user_path="$withval" | ||
34319 | SERVER_PATH_MSG="$withval" | ||
34320 | fi | ||
34321 | |||
34322 | else | ||
34323 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
34324 | { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
34325 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
34326 | else | ||
34327 | if test ! -z "$external_path_file" ; then | ||
34328 | { echo "$as_me:$LINENO: WARNING: | ||
34329 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
34330 | otherwise scp will not work." >&5 | ||
34331 | echo "$as_me: WARNING: | ||
34332 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
34333 | otherwise scp will not work." >&2;} | ||
34334 | fi | ||
34335 | if test "$cross_compiling" = yes; then | ||
34336 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
34337 | |||
34338 | else | ||
34339 | cat >conftest.$ac_ext <<_ACEOF | ||
34340 | /* confdefs.h. */ | ||
34341 | _ACEOF | ||
34342 | cat confdefs.h >>conftest.$ac_ext | ||
34343 | cat >>conftest.$ac_ext <<_ACEOF | ||
34344 | /* end confdefs.h. */ | ||
34345 | |||
34346 | /* find out what STDPATH is */ | ||
34347 | #include <stdio.h> | ||
34348 | #ifdef HAVE_PATHS_H | ||
34349 | # include <paths.h> | ||
34350 | #endif | ||
34351 | #ifndef _PATH_STDPATH | ||
34352 | # ifdef _PATH_USERPATH /* Irix */ | ||
34353 | # define _PATH_STDPATH _PATH_USERPATH | ||
34354 | # else | ||
34355 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
34356 | # endif | ||
34357 | #endif | ||
34358 | #include <sys/types.h> | ||
34359 | #include <sys/stat.h> | ||
34360 | #include <fcntl.h> | ||
34361 | #define DATA "conftest.stdpath" | ||
34362 | |||
34363 | int | ||
34364 | main () | ||
34365 | { | ||
34366 | |||
34367 | FILE *fd; | ||
34368 | int rc; | ||
34369 | |||
34370 | fd = fopen(DATA,"w"); | ||
34371 | if(fd == NULL) | ||
34372 | exit(1); | ||
34373 | |||
34374 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
34375 | exit(1); | ||
34376 | |||
34377 | exit(0); | ||
34378 | |||
34379 | ; | ||
34380 | return 0; | ||
34381 | } | ||
34382 | _ACEOF | ||
34383 | rm -f conftest$ac_exeext | ||
34384 | if { (ac_try="$ac_link" | ||
34385 | case "(($ac_try" in | ||
34386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34387 | *) ac_try_echo=$ac_try;; | ||
34388 | esac | ||
34389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34390 | (eval "$ac_link") 2>&5 | ||
34391 | ac_status=$? | ||
34392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34393 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
34394 | { (case "(($ac_try" in | ||
34395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34396 | *) ac_try_echo=$ac_try;; | ||
34397 | esac | ||
34398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34399 | (eval "$ac_try") 2>&5 | ||
34400 | ac_status=$? | ||
34401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34402 | (exit $ac_status); }; }; then | ||
34403 | user_path=`cat conftest.stdpath` | ||
34404 | else | ||
34405 | echo "$as_me: program exited with status $ac_status" >&5 | ||
34406 | echo "$as_me: failed program was:" >&5 | ||
34407 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
34408 | |||
34409 | ( exit $ac_status ) | ||
34410 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
34411 | fi | ||
34412 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
34413 | fi | ||
34414 | |||
34415 | |||
34416 | # make sure $bindir is in USER_PATH so scp will work | ||
34417 | t_bindir="${bindir}" | ||
34418 | while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do | ||
34419 | t_bindir=`eval echo ${t_bindir}` | ||
34420 | case $t_bindir in | ||
34421 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
34422 | esac | ||
34423 | case $t_bindir in | ||
34424 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
34425 | esac | ||
34426 | done | ||
34427 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
34428 | if test $? -ne 0 ; then | ||
34429 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
34430 | if test $? -ne 0 ; then | ||
34431 | user_path=$user_path:$t_bindir | ||
34432 | { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
34433 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; } | ||
34434 | fi | ||
34435 | fi | ||
34436 | fi | ||
34437 | |||
34438 | fi | ||
34439 | |||
34440 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
34441 | |||
34442 | cat >>confdefs.h <<_ACEOF | ||
34443 | #define USER_PATH "$user_path" | ||
34444 | _ACEOF | ||
34445 | |||
34446 | |||
34447 | fi | ||
34448 | |||
34449 | # Set superuser path separately to user path | ||
34450 | |||
34451 | # Check whether --with-superuser-path was given. | ||
34452 | if test "${with_superuser_path+set}" = set; then | ||
34453 | withval=$with_superuser_path; | ||
34454 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
34455 | test "x${withval}" != "xyes"; then | ||
34456 | |||
34457 | cat >>confdefs.h <<_ACEOF | ||
34458 | #define SUPERUSER_PATH "$withval" | ||
34459 | _ACEOF | ||
34460 | |||
34461 | superuser_path=$withval | ||
34462 | fi | ||
34463 | |||
34464 | |||
34465 | fi | ||
34466 | |||
34467 | |||
34468 | |||
34469 | { echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
34470 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; } | ||
34471 | IPV4_IN6_HACK_MSG="no" | ||
34472 | |||
34473 | # Check whether --with-4in6 was given. | ||
34474 | if test "${with_4in6+set}" = set; then | ||
34475 | withval=$with_4in6; | ||
34476 | if test "x$withval" != "xno" ; then | ||
34477 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
34478 | echo "${ECHO_T}yes" >&6; } | ||
34479 | |||
34480 | cat >>confdefs.h <<\_ACEOF | ||
34481 | #define IPV4_IN_IPV6 1 | ||
34482 | _ACEOF | ||
34483 | |||
34484 | IPV4_IN6_HACK_MSG="yes" | ||
34485 | else | ||
34486 | { echo "$as_me:$LINENO: result: no" >&5 | ||
34487 | echo "${ECHO_T}no" >&6; } | ||
34488 | fi | ||
34489 | |||
34490 | else | ||
34491 | |||
34492 | if test "x$inet6_default_4in6" = "xyes"; then | ||
34493 | { echo "$as_me:$LINENO: result: yes (default)" >&5 | ||
34494 | echo "${ECHO_T}yes (default)" >&6; } | ||
34495 | cat >>confdefs.h <<\_ACEOF | ||
34496 | #define IPV4_IN_IPV6 1 | ||
34497 | _ACEOF | ||
34498 | |||
34499 | IPV4_IN6_HACK_MSG="yes" | ||
34500 | else | ||
34501 | { echo "$as_me:$LINENO: result: no (default)" >&5 | ||
34502 | echo "${ECHO_T}no (default)" >&6; } | ||
34503 | fi | ||
34504 | |||
34505 | |||
34506 | fi | ||
34507 | |||
34508 | |||
34509 | # Whether to enable BSD auth support | ||
34510 | BSD_AUTH_MSG=no | ||
34511 | |||
34512 | # Check whether --with-bsd-auth was given. | ||
34513 | if test "${with_bsd_auth+set}" = set; then | ||
34514 | withval=$with_bsd_auth; | ||
34515 | if test "x$withval" != "xno" ; then | ||
34516 | |||
34517 | cat >>confdefs.h <<\_ACEOF | ||
34518 | #define BSD_AUTH 1 | ||
34519 | _ACEOF | ||
34520 | |||
34521 | BSD_AUTH_MSG=yes | ||
34522 | fi | ||
34523 | |||
34524 | |||
34525 | fi | ||
34526 | |||
34527 | |||
34528 | # Where to place sshd.pid | ||
34529 | piddir=/var/run | ||
34530 | # make sure the directory exists | ||
34531 | if test ! -d $piddir ; then | ||
34532 | piddir=`eval echo ${sysconfdir}` | ||
34533 | case $piddir in | ||
34534 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
34535 | esac | ||
34536 | fi | ||
34537 | |||
34538 | |||
34539 | # Check whether --with-pid-dir was given. | ||
34540 | if test "${with_pid_dir+set}" = set; then | ||
34541 | withval=$with_pid_dir; | ||
34542 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
34543 | test "x${withval}" != "xyes"; then | ||
34544 | piddir=$withval | ||
34545 | if test ! -d $piddir ; then | ||
34546 | { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | ||
34547 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
34548 | fi | ||
34549 | fi | ||
34550 | |||
34551 | |||
34552 | fi | ||
34553 | |||
34554 | |||
34555 | |||
34556 | cat >>confdefs.h <<_ACEOF | ||
34557 | #define _PATH_SSH_PIDDIR "$piddir" | ||
34558 | _ACEOF | ||
34559 | |||
34560 | |||
34561 | |||
34562 | # Check whether --enable-lastlog was given. | ||
34563 | if test "${enable_lastlog+set}" = set; then | ||
34564 | enableval=$enable_lastlog; | ||
34565 | if test "x$enableval" = "xno" ; then | ||
34566 | cat >>confdefs.h <<\_ACEOF | ||
34567 | #define DISABLE_LASTLOG 1 | ||
34568 | _ACEOF | ||
34569 | |||
34570 | fi | ||
34571 | |||
34572 | |||
34573 | fi | ||
34574 | |||
34575 | # Check whether --enable-utmp was given. | ||
34576 | if test "${enable_utmp+set}" = set; then | ||
34577 | enableval=$enable_utmp; | ||
34578 | if test "x$enableval" = "xno" ; then | ||
34579 | cat >>confdefs.h <<\_ACEOF | ||
34580 | #define DISABLE_UTMP 1 | ||
34581 | _ACEOF | ||
34582 | |||
34583 | fi | ||
34584 | |||
34585 | |||
34586 | fi | ||
34587 | |||
34588 | # Check whether --enable-utmpx was given. | ||
34589 | if test "${enable_utmpx+set}" = set; then | ||
34590 | enableval=$enable_utmpx; | ||
34591 | if test "x$enableval" = "xno" ; then | ||
34592 | |||
34593 | cat >>confdefs.h <<\_ACEOF | ||
34594 | #define DISABLE_UTMPX 1 | ||
34595 | _ACEOF | ||
34596 | |||
34597 | fi | ||
34598 | |||
34599 | |||
34600 | fi | ||
34601 | |||
34602 | # Check whether --enable-wtmp was given. | ||
34603 | if test "${enable_wtmp+set}" = set; then | ||
34604 | enableval=$enable_wtmp; | ||
34605 | if test "x$enableval" = "xno" ; then | ||
34606 | cat >>confdefs.h <<\_ACEOF | ||
34607 | #define DISABLE_WTMP 1 | ||
34608 | _ACEOF | ||
34609 | |||
34610 | fi | ||
34611 | |||
34612 | |||
34613 | fi | ||
34614 | |||
34615 | # Check whether --enable-wtmpx was given. | ||
34616 | if test "${enable_wtmpx+set}" = set; then | ||
34617 | enableval=$enable_wtmpx; | ||
34618 | if test "x$enableval" = "xno" ; then | ||
34619 | |||
34620 | cat >>confdefs.h <<\_ACEOF | ||
34621 | #define DISABLE_WTMPX 1 | ||
34622 | _ACEOF | ||
34623 | |||
34624 | fi | ||
34625 | |||
34626 | |||
34627 | fi | ||
34628 | |||
34629 | # Check whether --enable-libutil was given. | ||
34630 | if test "${enable_libutil+set}" = set; then | ||
34631 | enableval=$enable_libutil; | ||
34632 | if test "x$enableval" = "xno" ; then | ||
34633 | cat >>confdefs.h <<\_ACEOF | ||
34634 | #define DISABLE_LOGIN 1 | ||
34635 | _ACEOF | ||
34636 | |||
34637 | fi | ||
34638 | |||
34639 | |||
34640 | fi | ||
34641 | |||
34642 | # Check whether --enable-pututline was given. | ||
34643 | if test "${enable_pututline+set}" = set; then | ||
34644 | enableval=$enable_pututline; | ||
34645 | if test "x$enableval" = "xno" ; then | ||
34646 | |||
34647 | cat >>confdefs.h <<\_ACEOF | ||
34648 | #define DISABLE_PUTUTLINE 1 | ||
34649 | _ACEOF | ||
34650 | |||
34651 | fi | ||
34652 | |||
34653 | |||
34654 | fi | ||
34655 | |||
34656 | # Check whether --enable-pututxline was given. | ||
34657 | if test "${enable_pututxline+set}" = set; then | ||
34658 | enableval=$enable_pututxline; | ||
34659 | if test "x$enableval" = "xno" ; then | ||
34660 | |||
34661 | cat >>confdefs.h <<\_ACEOF | ||
34662 | #define DISABLE_PUTUTXLINE 1 | ||
34663 | _ACEOF | ||
34664 | |||
34665 | fi | ||
34666 | |||
34667 | |||
34668 | fi | ||
34669 | |||
34670 | |||
34671 | # Check whether --with-lastlog was given. | ||
34672 | if test "${with_lastlog+set}" = set; then | ||
34673 | withval=$with_lastlog; | ||
34674 | if test "x$withval" = "xno" ; then | ||
34675 | cat >>confdefs.h <<\_ACEOF | ||
34676 | #define DISABLE_LASTLOG 1 | ||
34677 | _ACEOF | ||
34678 | |||
34679 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
34680 | conf_lastlog_location=$withval | ||
34681 | fi | ||
34682 | |||
34683 | |||
34684 | fi | ||
34685 | |||
34686 | |||
34687 | |||
34688 | { echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | ||
34689 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; } | ||
34690 | cat >conftest.$ac_ext <<_ACEOF | ||
34691 | /* confdefs.h. */ | ||
34692 | _ACEOF | ||
34693 | cat confdefs.h >>conftest.$ac_ext | ||
34694 | cat >>conftest.$ac_ext <<_ACEOF | ||
34695 | /* end confdefs.h. */ | ||
34696 | |||
34697 | #include <sys/types.h> | ||
34698 | #include <utmp.h> | ||
34699 | #ifdef HAVE_LASTLOG_H | ||
34700 | # include <lastlog.h> | ||
34701 | #endif | ||
34702 | #ifdef HAVE_PATHS_H | ||
34703 | # include <paths.h> | ||
34704 | #endif | ||
34705 | #ifdef HAVE_LOGIN_H | ||
34706 | # include <login.h> | ||
34707 | #endif | ||
34708 | |||
34709 | int | ||
34710 | main () | ||
34711 | { | ||
34712 | char *lastlog = LASTLOG_FILE; | ||
34713 | ; | ||
34714 | return 0; | ||
34715 | } | ||
34716 | _ACEOF | ||
34717 | rm -f conftest.$ac_objext | ||
34718 | if { (ac_try="$ac_compile" | ||
34719 | case "(($ac_try" in | ||
34720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34721 | *) ac_try_echo=$ac_try;; | ||
34722 | esac | ||
34723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34724 | (eval "$ac_compile") 2>conftest.er1 | ||
34725 | ac_status=$? | ||
34726 | grep -v '^ *+' conftest.er1 >conftest.err | ||
34727 | rm -f conftest.er1 | ||
34728 | cat conftest.err >&5 | ||
34729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34730 | (exit $ac_status); } && { | ||
34731 | test -z "$ac_c_werror_flag" || | ||
34732 | test ! -s conftest.err | ||
34733 | } && test -s conftest.$ac_objext; then | ||
34734 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
34735 | echo "${ECHO_T}yes" >&6; } | ||
34736 | else | ||
34737 | echo "$as_me: failed program was:" >&5 | ||
34738 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
34739 | |||
34740 | |||
34741 | { echo "$as_me:$LINENO: result: no" >&5 | ||
34742 | echo "${ECHO_T}no" >&6; } | ||
34743 | { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | ||
34744 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; } | ||
34745 | cat >conftest.$ac_ext <<_ACEOF | ||
34746 | /* confdefs.h. */ | ||
34747 | _ACEOF | ||
34748 | cat confdefs.h >>conftest.$ac_ext | ||
34749 | cat >>conftest.$ac_ext <<_ACEOF | ||
34750 | /* end confdefs.h. */ | ||
34751 | |||
34752 | #include <sys/types.h> | ||
34753 | #include <utmp.h> | ||
34754 | #ifdef HAVE_LASTLOG_H | ||
34755 | # include <lastlog.h> | ||
34756 | #endif | ||
34757 | #ifdef HAVE_PATHS_H | ||
34758 | # include <paths.h> | ||
34759 | #endif | ||
34760 | |||
34761 | int | ||
34762 | main () | ||
34763 | { | ||
34764 | char *lastlog = _PATH_LASTLOG; | ||
34765 | ; | ||
34766 | return 0; | ||
34767 | } | ||
34768 | _ACEOF | ||
34769 | rm -f conftest.$ac_objext | ||
34770 | if { (ac_try="$ac_compile" | ||
34771 | case "(($ac_try" in | ||
34772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34773 | *) ac_try_echo=$ac_try;; | ||
34774 | esac | ||
34775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34776 | (eval "$ac_compile") 2>conftest.er1 | ||
34777 | ac_status=$? | ||
34778 | grep -v '^ *+' conftest.er1 >conftest.err | ||
34779 | rm -f conftest.er1 | ||
34780 | cat conftest.err >&5 | ||
34781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34782 | (exit $ac_status); } && { | ||
34783 | test -z "$ac_c_werror_flag" || | ||
34784 | test ! -s conftest.err | ||
34785 | } && test -s conftest.$ac_objext; then | ||
34786 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
34787 | echo "${ECHO_T}yes" >&6; } | ||
34788 | else | ||
34789 | echo "$as_me: failed program was:" >&5 | ||
34790 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
34791 | |||
34792 | |||
34793 | { echo "$as_me:$LINENO: result: no" >&5 | ||
34794 | echo "${ECHO_T}no" >&6; } | ||
34795 | system_lastlog_path=no | ||
34796 | |||
34797 | fi | ||
34798 | |||
34799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
34800 | |||
34801 | fi | ||
34802 | |||
34803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
34804 | |||
34805 | if test -z "$conf_lastlog_location"; then | ||
34806 | if test x"$system_lastlog_path" = x"no" ; then | ||
34807 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
34808 | if (test -d "$f" || test -f "$f") ; then | ||
34809 | conf_lastlog_location=$f | ||
34810 | fi | ||
34811 | done | ||
34812 | if test -z "$conf_lastlog_location"; then | ||
34813 | { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | ||
34814 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
34815 | fi | ||
34816 | fi | ||
34817 | fi | ||
34818 | |||
34819 | if test -n "$conf_lastlog_location"; then | ||
34820 | |||
34821 | cat >>confdefs.h <<_ACEOF | ||
34822 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
34823 | _ACEOF | ||
34824 | |||
34825 | fi | ||
34826 | |||
34827 | { echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | ||
34828 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; } | ||
34829 | cat >conftest.$ac_ext <<_ACEOF | ||
34830 | /* confdefs.h. */ | ||
34831 | _ACEOF | ||
34832 | cat confdefs.h >>conftest.$ac_ext | ||
34833 | cat >>conftest.$ac_ext <<_ACEOF | ||
34834 | /* end confdefs.h. */ | ||
34835 | |||
34836 | #include <sys/types.h> | ||
34837 | #include <utmp.h> | ||
34838 | #ifdef HAVE_PATHS_H | ||
34839 | # include <paths.h> | ||
34840 | #endif | ||
34841 | |||
34842 | int | ||
34843 | main () | ||
34844 | { | ||
34845 | char *utmp = UTMP_FILE; | ||
34846 | ; | ||
34847 | return 0; | ||
34848 | } | ||
34849 | _ACEOF | ||
34850 | rm -f conftest.$ac_objext | ||
34851 | if { (ac_try="$ac_compile" | ||
34852 | case "(($ac_try" in | ||
34853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34854 | *) ac_try_echo=$ac_try;; | ||
34855 | esac | ||
34856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34857 | (eval "$ac_compile") 2>conftest.er1 | ||
34858 | ac_status=$? | ||
34859 | grep -v '^ *+' conftest.er1 >conftest.err | ||
34860 | rm -f conftest.er1 | ||
34861 | cat conftest.err >&5 | ||
34862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34863 | (exit $ac_status); } && { | ||
34864 | test -z "$ac_c_werror_flag" || | ||
34865 | test ! -s conftest.err | ||
34866 | } && test -s conftest.$ac_objext; then | ||
34867 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
34868 | echo "${ECHO_T}yes" >&6; } | ||
34869 | else | ||
34870 | echo "$as_me: failed program was:" >&5 | ||
34871 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
34872 | |||
34873 | { echo "$as_me:$LINENO: result: no" >&5 | ||
34874 | echo "${ECHO_T}no" >&6; } | ||
34875 | system_utmp_path=no | ||
34876 | |||
34877 | fi | ||
34878 | |||
34879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
34880 | if test -z "$conf_utmp_location"; then | ||
34881 | if test x"$system_utmp_path" = x"no" ; then | ||
34882 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
34883 | if test -f $f ; then | ||
34884 | conf_utmp_location=$f | ||
34885 | fi | ||
34886 | done | ||
34887 | if test -z "$conf_utmp_location"; then | ||
34888 | cat >>confdefs.h <<\_ACEOF | ||
34889 | #define DISABLE_UTMP 1 | ||
34890 | _ACEOF | ||
34891 | |||
34892 | fi | ||
34893 | fi | ||
34894 | fi | ||
34895 | if test -n "$conf_utmp_location"; then | ||
34896 | |||
34897 | cat >>confdefs.h <<_ACEOF | ||
34898 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
34899 | _ACEOF | ||
34900 | |||
34901 | fi | ||
34902 | |||
34903 | { echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | ||
34904 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; } | ||
34905 | cat >conftest.$ac_ext <<_ACEOF | ||
34906 | /* confdefs.h. */ | ||
34907 | _ACEOF | ||
34908 | cat confdefs.h >>conftest.$ac_ext | ||
34909 | cat >>conftest.$ac_ext <<_ACEOF | ||
34910 | /* end confdefs.h. */ | ||
34911 | |||
34912 | #include <sys/types.h> | ||
34913 | #include <utmp.h> | ||
34914 | #ifdef HAVE_PATHS_H | ||
34915 | # include <paths.h> | ||
34916 | #endif | ||
34917 | |||
34918 | int | ||
34919 | main () | ||
34920 | { | ||
34921 | char *wtmp = WTMP_FILE; | ||
34922 | ; | ||
34923 | return 0; | ||
34924 | } | ||
34925 | _ACEOF | ||
34926 | rm -f conftest.$ac_objext | ||
34927 | if { (ac_try="$ac_compile" | ||
34928 | case "(($ac_try" in | ||
34929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
34930 | *) ac_try_echo=$ac_try;; | ||
34931 | esac | ||
34932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
34933 | (eval "$ac_compile") 2>conftest.er1 | ||
34934 | ac_status=$? | ||
34935 | grep -v '^ *+' conftest.er1 >conftest.err | ||
34936 | rm -f conftest.er1 | ||
34937 | cat conftest.err >&5 | ||
34938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
34939 | (exit $ac_status); } && { | ||
34940 | test -z "$ac_c_werror_flag" || | ||
34941 | test ! -s conftest.err | ||
34942 | } && test -s conftest.$ac_objext; then | ||
34943 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
34944 | echo "${ECHO_T}yes" >&6; } | ||
34945 | else | ||
34946 | echo "$as_me: failed program was:" >&5 | ||
34947 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
34948 | |||
34949 | { echo "$as_me:$LINENO: result: no" >&5 | ||
34950 | echo "${ECHO_T}no" >&6; } | ||
34951 | system_wtmp_path=no | ||
34952 | |||
34953 | fi | ||
34954 | |||
34955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
34956 | if test -z "$conf_wtmp_location"; then | ||
34957 | if test x"$system_wtmp_path" = x"no" ; then | ||
34958 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
34959 | if test -f $f ; then | ||
34960 | conf_wtmp_location=$f | ||
34961 | fi | ||
34962 | done | ||
34963 | if test -z "$conf_wtmp_location"; then | ||
34964 | cat >>confdefs.h <<\_ACEOF | ||
34965 | #define DISABLE_WTMP 1 | ||
34966 | _ACEOF | ||
34967 | |||
34968 | fi | ||
34969 | fi | ||
34970 | fi | ||
34971 | if test -n "$conf_wtmp_location"; then | ||
34972 | |||
34973 | cat >>confdefs.h <<_ACEOF | ||
34974 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
34975 | _ACEOF | ||
34976 | |||
34977 | fi | ||
34978 | |||
34979 | { echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | ||
34980 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; } | ||
34981 | cat >conftest.$ac_ext <<_ACEOF | ||
34982 | /* confdefs.h. */ | ||
34983 | _ACEOF | ||
34984 | cat confdefs.h >>conftest.$ac_ext | ||
34985 | cat >>conftest.$ac_ext <<_ACEOF | ||
34986 | /* end confdefs.h. */ | ||
34987 | |||
34988 | #include <sys/types.h> | ||
34989 | #include <utmp.h> | ||
34990 | #ifdef HAVE_UTMPX_H | ||
34991 | #include <utmpx.h> | ||
34992 | #endif | ||
34993 | #ifdef HAVE_PATHS_H | ||
34994 | # include <paths.h> | ||
34995 | #endif | ||
34996 | |||
34997 | int | ||
34998 | main () | ||
34999 | { | ||
35000 | char *wtmpx = WTMPX_FILE; | ||
35001 | ; | ||
35002 | return 0; | ||
35003 | } | ||
35004 | _ACEOF | ||
35005 | rm -f conftest.$ac_objext | ||
35006 | if { (ac_try="$ac_compile" | ||
35007 | case "(($ac_try" in | ||
35008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35009 | *) ac_try_echo=$ac_try;; | ||
35010 | esac | ||
35011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35012 | (eval "$ac_compile") 2>conftest.er1 | ||
35013 | ac_status=$? | ||
35014 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35015 | rm -f conftest.er1 | ||
35016 | cat conftest.err >&5 | ||
35017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35018 | (exit $ac_status); } && { | ||
35019 | test -z "$ac_c_werror_flag" || | ||
35020 | test ! -s conftest.err | ||
35021 | } && test -s conftest.$ac_objext; then | ||
35022 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
35023 | echo "${ECHO_T}yes" >&6; } | ||
35024 | else | ||
35025 | echo "$as_me: failed program was:" >&5 | ||
35026 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35027 | |||
35028 | { echo "$as_me:$LINENO: result: no" >&5 | ||
35029 | echo "${ECHO_T}no" >&6; } | ||
35030 | system_wtmpx_path=no | ||
35031 | |||
35032 | fi | ||
35033 | |||
35034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35035 | if test -z "$conf_wtmpx_location"; then | ||
35036 | if test x"$system_wtmpx_path" = x"no" ; then | ||
35037 | cat >>confdefs.h <<\_ACEOF | ||
35038 | #define DISABLE_WTMPX 1 | ||
35039 | _ACEOF | ||
35040 | |||
35041 | fi | ||
35042 | else | ||
35043 | |||
35044 | cat >>confdefs.h <<_ACEOF | ||
35045 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
35046 | _ACEOF | ||
35047 | |||
35048 | fi | ||
35049 | |||
35050 | |||
35051 | if test ! -z "$blibpath" ; then | ||
35052 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
35053 | { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
35054 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
35055 | fi | ||
35056 | |||
35057 | { echo "$as_me:$LINENO: checking for struct lastlog.ll_line" >&5 | ||
35058 | echo $ECHO_N "checking for struct lastlog.ll_line... $ECHO_C" >&6; } | ||
35059 | if test "${ac_cv_member_struct_lastlog_ll_line+set}" = set; then | ||
35060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
35061 | else | ||
35062 | cat >conftest.$ac_ext <<_ACEOF | ||
35063 | /* confdefs.h. */ | ||
35064 | _ACEOF | ||
35065 | cat confdefs.h >>conftest.$ac_ext | ||
35066 | cat >>conftest.$ac_ext <<_ACEOF | ||
35067 | /* end confdefs.h. */ | ||
35068 | |||
35069 | #ifdef HAVE_SYS_TYPES_H | ||
35070 | #include <sys/types.h> | ||
35071 | #endif | ||
35072 | #ifdef HAVE_UTMP_H | ||
35073 | #include <utmp.h> | ||
35074 | #endif | ||
35075 | #ifdef HAVE_UTMPX_H | ||
35076 | #include <utmpx.h> | ||
35077 | #endif | ||
35078 | #ifdef HAVE_LASTLOG_H | ||
35079 | #include <lastlog.h> | ||
35080 | #endif | ||
35081 | |||
35082 | |||
35083 | int | ||
35084 | main () | ||
35085 | { | ||
35086 | static struct lastlog ac_aggr; | ||
35087 | if (ac_aggr.ll_line) | ||
35088 | return 0; | ||
35089 | ; | ||
35090 | return 0; | ||
35091 | } | ||
35092 | _ACEOF | ||
35093 | rm -f conftest.$ac_objext | ||
35094 | if { (ac_try="$ac_compile" | ||
35095 | case "(($ac_try" in | ||
35096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35097 | *) ac_try_echo=$ac_try;; | ||
35098 | esac | ||
35099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35100 | (eval "$ac_compile") 2>conftest.er1 | ||
35101 | ac_status=$? | ||
35102 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35103 | rm -f conftest.er1 | ||
35104 | cat conftest.err >&5 | ||
35105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35106 | (exit $ac_status); } && { | ||
35107 | test -z "$ac_c_werror_flag" || | ||
35108 | test ! -s conftest.err | ||
35109 | } && test -s conftest.$ac_objext; then | ||
35110 | ac_cv_member_struct_lastlog_ll_line=yes | ||
35111 | else | ||
35112 | echo "$as_me: failed program was:" >&5 | ||
35113 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35114 | |||
35115 | cat >conftest.$ac_ext <<_ACEOF | ||
35116 | /* confdefs.h. */ | ||
35117 | _ACEOF | ||
35118 | cat confdefs.h >>conftest.$ac_ext | ||
35119 | cat >>conftest.$ac_ext <<_ACEOF | ||
35120 | /* end confdefs.h. */ | ||
35121 | |||
35122 | #ifdef HAVE_SYS_TYPES_H | ||
35123 | #include <sys/types.h> | ||
35124 | #endif | ||
35125 | #ifdef HAVE_UTMP_H | ||
35126 | #include <utmp.h> | ||
35127 | #endif | ||
35128 | #ifdef HAVE_UTMPX_H | ||
35129 | #include <utmpx.h> | ||
35130 | #endif | ||
35131 | #ifdef HAVE_LASTLOG_H | ||
35132 | #include <lastlog.h> | ||
35133 | #endif | ||
35134 | |||
35135 | |||
35136 | int | ||
35137 | main () | ||
35138 | { | ||
35139 | static struct lastlog ac_aggr; | ||
35140 | if (sizeof ac_aggr.ll_line) | ||
35141 | return 0; | ||
35142 | ; | ||
35143 | return 0; | ||
35144 | } | ||
35145 | _ACEOF | ||
35146 | rm -f conftest.$ac_objext | ||
35147 | if { (ac_try="$ac_compile" | ||
35148 | case "(($ac_try" in | ||
35149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35150 | *) ac_try_echo=$ac_try;; | ||
35151 | esac | ||
35152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35153 | (eval "$ac_compile") 2>conftest.er1 | ||
35154 | ac_status=$? | ||
35155 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35156 | rm -f conftest.er1 | ||
35157 | cat conftest.err >&5 | ||
35158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35159 | (exit $ac_status); } && { | ||
35160 | test -z "$ac_c_werror_flag" || | ||
35161 | test ! -s conftest.err | ||
35162 | } && test -s conftest.$ac_objext; then | ||
35163 | ac_cv_member_struct_lastlog_ll_line=yes | ||
35164 | else | ||
35165 | echo "$as_me: failed program was:" >&5 | ||
35166 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35167 | |||
35168 | ac_cv_member_struct_lastlog_ll_line=no | ||
35169 | fi | ||
35170 | |||
35171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35172 | fi | ||
35173 | |||
35174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35175 | fi | ||
35176 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_lastlog_ll_line" >&5 | ||
35177 | echo "${ECHO_T}$ac_cv_member_struct_lastlog_ll_line" >&6; } | ||
35178 | if test $ac_cv_member_struct_lastlog_ll_line = yes; then | ||
35179 | : | ||
35180 | else | ||
35181 | |||
35182 | if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then | ||
35183 | cat >>confdefs.h <<\_ACEOF | ||
35184 | #define DISABLE_LASTLOG 1 | ||
35185 | _ACEOF | ||
35186 | |||
35187 | fi | ||
35188 | |||
35189 | fi | ||
35190 | |||
35191 | |||
35192 | { echo "$as_me:$LINENO: checking for struct utmp.ut_line" >&5 | ||
35193 | echo $ECHO_N "checking for struct utmp.ut_line... $ECHO_C" >&6; } | ||
35194 | if test "${ac_cv_member_struct_utmp_ut_line+set}" = set; then | ||
35195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
35196 | else | ||
35197 | cat >conftest.$ac_ext <<_ACEOF | ||
35198 | /* confdefs.h. */ | ||
35199 | _ACEOF | ||
35200 | cat confdefs.h >>conftest.$ac_ext | ||
35201 | cat >>conftest.$ac_ext <<_ACEOF | ||
35202 | /* end confdefs.h. */ | ||
35203 | |||
35204 | #ifdef HAVE_SYS_TYPES_H | ||
35205 | #include <sys/types.h> | ||
35206 | #endif | ||
35207 | #ifdef HAVE_UTMP_H | ||
35208 | #include <utmp.h> | ||
35209 | #endif | ||
35210 | #ifdef HAVE_UTMPX_H | ||
35211 | #include <utmpx.h> | ||
35212 | #endif | ||
35213 | #ifdef HAVE_LASTLOG_H | ||
35214 | #include <lastlog.h> | ||
35215 | #endif | ||
35216 | |||
35217 | |||
35218 | int | ||
35219 | main () | ||
35220 | { | ||
35221 | static struct utmp ac_aggr; | ||
35222 | if (ac_aggr.ut_line) | ||
35223 | return 0; | ||
35224 | ; | ||
35225 | return 0; | ||
35226 | } | ||
35227 | _ACEOF | ||
35228 | rm -f conftest.$ac_objext | ||
35229 | if { (ac_try="$ac_compile" | ||
35230 | case "(($ac_try" in | ||
35231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35232 | *) ac_try_echo=$ac_try;; | ||
35233 | esac | ||
35234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35235 | (eval "$ac_compile") 2>conftest.er1 | ||
35236 | ac_status=$? | ||
35237 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35238 | rm -f conftest.er1 | ||
35239 | cat conftest.err >&5 | ||
35240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35241 | (exit $ac_status); } && { | ||
35242 | test -z "$ac_c_werror_flag" || | ||
35243 | test ! -s conftest.err | ||
35244 | } && test -s conftest.$ac_objext; then | ||
35245 | ac_cv_member_struct_utmp_ut_line=yes | ||
35246 | else | ||
35247 | echo "$as_me: failed program was:" >&5 | ||
35248 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35249 | |||
35250 | cat >conftest.$ac_ext <<_ACEOF | ||
35251 | /* confdefs.h. */ | ||
35252 | _ACEOF | ||
35253 | cat confdefs.h >>conftest.$ac_ext | ||
35254 | cat >>conftest.$ac_ext <<_ACEOF | ||
35255 | /* end confdefs.h. */ | ||
35256 | |||
35257 | #ifdef HAVE_SYS_TYPES_H | ||
35258 | #include <sys/types.h> | ||
35259 | #endif | ||
35260 | #ifdef HAVE_UTMP_H | ||
35261 | #include <utmp.h> | ||
35262 | #endif | ||
35263 | #ifdef HAVE_UTMPX_H | ||
35264 | #include <utmpx.h> | ||
35265 | #endif | ||
35266 | #ifdef HAVE_LASTLOG_H | ||
35267 | #include <lastlog.h> | ||
35268 | #endif | ||
35269 | |||
35270 | |||
35271 | int | ||
35272 | main () | ||
35273 | { | ||
35274 | static struct utmp ac_aggr; | ||
35275 | if (sizeof ac_aggr.ut_line) | ||
35276 | return 0; | ||
35277 | ; | ||
35278 | return 0; | ||
35279 | } | ||
35280 | _ACEOF | ||
35281 | rm -f conftest.$ac_objext | ||
35282 | if { (ac_try="$ac_compile" | ||
35283 | case "(($ac_try" in | ||
35284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35285 | *) ac_try_echo=$ac_try;; | ||
35286 | esac | ||
35287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35288 | (eval "$ac_compile") 2>conftest.er1 | ||
35289 | ac_status=$? | ||
35290 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35291 | rm -f conftest.er1 | ||
35292 | cat conftest.err >&5 | ||
35293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35294 | (exit $ac_status); } && { | ||
35295 | test -z "$ac_c_werror_flag" || | ||
35296 | test ! -s conftest.err | ||
35297 | } && test -s conftest.$ac_objext; then | ||
35298 | ac_cv_member_struct_utmp_ut_line=yes | ||
35299 | else | ||
35300 | echo "$as_me: failed program was:" >&5 | ||
35301 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35302 | |||
35303 | ac_cv_member_struct_utmp_ut_line=no | ||
35304 | fi | ||
35305 | |||
35306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35307 | fi | ||
35308 | |||
35309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35310 | fi | ||
35311 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_line" >&5 | ||
35312 | echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_line" >&6; } | ||
35313 | if test $ac_cv_member_struct_utmp_ut_line = yes; then | ||
35314 | : | ||
35315 | else | ||
35316 | |||
35317 | cat >>confdefs.h <<\_ACEOF | ||
35318 | #define DISABLE_UTMP 1 | ||
35319 | _ACEOF | ||
35320 | |||
35321 | cat >>confdefs.h <<\_ACEOF | ||
35322 | #define DISABLE_WTMP 1 | ||
35323 | _ACEOF | ||
35324 | |||
35325 | |||
35326 | fi | ||
35327 | |||
35328 | |||
35329 | CFLAGS="$CFLAGS $werror_flags" | ||
35330 | |||
35331 | if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then | ||
35332 | TEST_SSH_IPV6=no | ||
35333 | else | ||
35334 | TEST_SSH_IPV6=yes | ||
35335 | fi | ||
35336 | { echo "$as_me:$LINENO: checking whether BROKEN_GETADDRINFO is declared" >&5 | ||
35337 | echo $ECHO_N "checking whether BROKEN_GETADDRINFO is declared... $ECHO_C" >&6; } | ||
35338 | if test "${ac_cv_have_decl_BROKEN_GETADDRINFO+set}" = set; then | ||
35339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
35340 | else | ||
35341 | cat >conftest.$ac_ext <<_ACEOF | ||
35342 | /* confdefs.h. */ | ||
35343 | _ACEOF | ||
35344 | cat confdefs.h >>conftest.$ac_ext | ||
35345 | cat >>conftest.$ac_ext <<_ACEOF | ||
35346 | /* end confdefs.h. */ | ||
35347 | $ac_includes_default | ||
35348 | int | ||
35349 | main () | ||
35350 | { | ||
35351 | #ifndef BROKEN_GETADDRINFO | ||
35352 | (void) BROKEN_GETADDRINFO; | ||
35353 | #endif | ||
35354 | |||
35355 | ; | ||
35356 | return 0; | ||
35357 | } | ||
35358 | _ACEOF | ||
35359 | rm -f conftest.$ac_objext | ||
35360 | if { (ac_try="$ac_compile" | ||
35361 | case "(($ac_try" in | ||
35362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
35363 | *) ac_try_echo=$ac_try;; | ||
35364 | esac | ||
35365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
35366 | (eval "$ac_compile") 2>conftest.er1 | ||
35367 | ac_status=$? | ||
35368 | grep -v '^ *+' conftest.er1 >conftest.err | ||
35369 | rm -f conftest.er1 | ||
35370 | cat conftest.err >&5 | ||
35371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
35372 | (exit $ac_status); } && { | ||
35373 | test -z "$ac_c_werror_flag" || | ||
35374 | test ! -s conftest.err | ||
35375 | } && test -s conftest.$ac_objext; then | ||
35376 | ac_cv_have_decl_BROKEN_GETADDRINFO=yes | ||
35377 | else | ||
35378 | echo "$as_me: failed program was:" >&5 | ||
35379 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
35380 | |||
35381 | ac_cv_have_decl_BROKEN_GETADDRINFO=no | ||
35382 | fi | ||
35383 | |||
35384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
35385 | fi | ||
35386 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_BROKEN_GETADDRINFO" >&5 | ||
35387 | echo "${ECHO_T}$ac_cv_have_decl_BROKEN_GETADDRINFO" >&6; } | ||
35388 | if test $ac_cv_have_decl_BROKEN_GETADDRINFO = yes; then | ||
35389 | TEST_SSH_IPV6=no | ||
35390 | fi | ||
35391 | |||
35392 | TEST_SSH_IPV6=$TEST_SSH_IPV6 | ||
35393 | |||
35394 | TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS | ||
35395 | |||
35396 | UNSUPPORTED_ALGORITHMS=$unsupported_algorithms | ||
35397 | |||
35398 | |||
35399 | |||
35400 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh" | ||
35401 | |||
35402 | cat >confcache <<\_ACEOF | ||
35403 | # This file is a shell script that caches the results of configure | ||
35404 | # tests run on this system so they can be shared between configure | ||
35405 | # scripts and configure runs, see configure's option --config-cache. | ||
35406 | # It is not useful on other systems. If it contains results you don't | ||
35407 | # want to keep, you may remove or edit it. | ||
35408 | # | ||
35409 | # config.status only pays attention to the cache file if you give it | ||
35410 | # the --recheck option to rerun configure. | ||
35411 | # | ||
35412 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
35413 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
35414 | # following values. | ||
35415 | |||
35416 | _ACEOF | ||
35417 | |||
35418 | # The following way of writing the cache mishandles newlines in values, | ||
35419 | # but we know of no workaround that is simple, portable, and efficient. | ||
35420 | # So, we kill variables containing newlines. | ||
35421 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
35422 | # and sets the high bit in the cache file unless we assign to the vars. | ||
35423 | ( | ||
35424 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
35425 | eval ac_val=\$$ac_var | ||
35426 | case $ac_val in #( | ||
35427 | *${as_nl}*) | ||
35428 | case $ac_var in #( | ||
35429 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
35430 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
35431 | esac | ||
35432 | case $ac_var in #( | ||
35433 | _ | IFS | as_nl) ;; #( | ||
35434 | *) $as_unset $ac_var ;; | ||
35435 | esac ;; | ||
35436 | esac | ||
35437 | done | ||
35438 | |||
35439 | (set) 2>&1 | | ||
35440 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
35441 | *${as_nl}ac_space=\ *) | ||
35442 | # `set' does not quote correctly, so add quotes (double-quote | ||
35443 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
35444 | sed -n \ | ||
35445 | "s/'/'\\\\''/g; | ||
35446 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
35447 | ;; #( | ||
35448 | *) | ||
35449 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
35450 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
35451 | ;; | ||
35452 | esac | | ||
35453 | sort | ||
35454 | ) | | ||
35455 | sed ' | ||
35456 | /^ac_cv_env_/b end | ||
35457 | t clear | ||
35458 | :clear | ||
35459 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
35460 | t end | ||
35461 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
35462 | :end' >>confcache | ||
35463 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
35464 | if test -w "$cache_file"; then | ||
35465 | test "x$cache_file" != "x/dev/null" && | ||
35466 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | ||
35467 | echo "$as_me: updating cache $cache_file" >&6;} | ||
35468 | cat confcache >$cache_file | ||
35469 | else | ||
35470 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | ||
35471 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
35472 | fi | ||
35473 | fi | ||
35474 | rm -f confcache | ||
35475 | |||
35476 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
35477 | # Let make expand exec_prefix. | ||
35478 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
35479 | |||
35480 | DEFS=-DHAVE_CONFIG_H | ||
35481 | |||
35482 | ac_libobjs= | ||
35483 | ac_ltlibobjs= | ||
35484 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
35485 | # 1. Remove the extension, and $U if already installed. | ||
35486 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
35487 | ac_i=`echo "$ac_i" | sed "$ac_script"` | ||
35488 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
35489 | # will be set to the directory where LIBOBJS objects are built. | ||
35490 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
35491 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | ||
35492 | done | ||
35493 | LIBOBJS=$ac_libobjs | ||
35494 | |||
35495 | LTLIBOBJS=$ac_ltlibobjs | ||
35496 | |||
35497 | |||
35498 | |||
35499 | : ${CONFIG_STATUS=./config.status} | ||
35500 | ac_clean_files_save=$ac_clean_files | ||
35501 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
35502 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
35503 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
35504 | cat >$CONFIG_STATUS <<_ACEOF | ||
35505 | #! $SHELL | ||
35506 | # Generated by $as_me. | ||
35507 | # Run this file to recreate the current configuration. | ||
35508 | # Compiler output produced by configure, useful for debugging | ||
35509 | # configure, is in config.log if it exists. | ||
35510 | |||
35511 | debug=false | ||
35512 | ac_cs_recheck=false | ||
35513 | ac_cs_silent=false | ||
35514 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
35515 | _ACEOF | ||
35516 | |||
35517 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
35518 | ## --------------------- ## | ||
35519 | ## M4sh Initialization. ## | ||
35520 | ## --------------------- ## | ||
35521 | |||
35522 | # Be more Bourne compatible | ||
35523 | DUALCASE=1; export DUALCASE # for MKS sh | ||
35524 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
35525 | emulate sh | ||
35526 | NULLCMD=: | ||
35527 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
35528 | # is contrary to our usage. Disable this feature. | ||
35529 | alias -g '${1+"$@"}'='"$@"' | ||
35530 | setopt NO_GLOB_SUBST | ||
35531 | else | ||
35532 | case `(set -o) 2>/dev/null` in | ||
35533 | *posix*) set -o posix ;; | ||
35534 | esac | ||
35535 | |||
35536 | fi | ||
35537 | |||
35538 | |||
35539 | |||
35540 | |||
35541 | # PATH needs CR | ||
35542 | # Avoid depending upon Character Ranges. | ||
35543 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
35544 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
35545 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
35546 | as_cr_digits='0123456789' | ||
35547 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
35548 | |||
35549 | # The user is always right. | ||
35550 | if test "${PATH_SEPARATOR+set}" != set; then | ||
35551 | echo "#! /bin/sh" >conf$$.sh | ||
35552 | echo "exit 0" >>conf$$.sh | ||
35553 | chmod +x conf$$.sh | ||
35554 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
35555 | PATH_SEPARATOR=';' | ||
35556 | else | ||
35557 | PATH_SEPARATOR=: | ||
35558 | fi | ||
35559 | rm -f conf$$.sh | ||
35560 | fi | ||
35561 | |||
35562 | # Support unset when possible. | ||
35563 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
35564 | as_unset=unset | ||
35565 | else | ||
35566 | as_unset=false | ||
35567 | fi | ||
35568 | |||
35569 | |||
35570 | # IFS | ||
35571 | # We need space, tab and new line, in precisely that order. Quoting is | ||
35572 | # there to prevent editors from complaining about space-tab. | ||
35573 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
35574 | # splitting by setting IFS to empty value.) | ||
35575 | as_nl=' | ||
35576 | ' | ||
35577 | IFS=" "" $as_nl" | ||
35578 | |||
35579 | # Find who we are. Look in the path if we contain no directory separator. | ||
35580 | case $0 in | ||
35581 | *[\\/]* ) as_myself=$0 ;; | ||
35582 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
35583 | for as_dir in $PATH | ||
35584 | do | ||
35585 | IFS=$as_save_IFS | ||
35586 | test -z "$as_dir" && as_dir=. | ||
35587 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
35588 | done | ||
35589 | IFS=$as_save_IFS | ||
35590 | |||
35591 | ;; | ||
35592 | esac | ||
35593 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
35594 | # in which case we are not to be found in the path. | ||
35595 | if test "x$as_myself" = x; then | ||
35596 | as_myself=$0 | ||
35597 | fi | ||
35598 | if test ! -f "$as_myself"; then | ||
35599 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
35600 | { (exit 1); exit 1; } | ||
35601 | fi | ||
35602 | |||
35603 | # Work around bugs in pre-3.0 UWIN ksh. | ||
35604 | for as_var in ENV MAIL MAILPATH | ||
35605 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
35606 | done | ||
35607 | PS1='$ ' | ||
35608 | PS2='> ' | ||
35609 | PS4='+ ' | ||
35610 | |||
35611 | # NLS nuisances. | ||
35612 | for as_var in \ | ||
35613 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
35614 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
35615 | LC_TELEPHONE LC_TIME | ||
35616 | do | ||
35617 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
35618 | eval $as_var=C; export $as_var | ||
35619 | else | ||
35620 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
35621 | fi | ||
35622 | done | ||
35623 | |||
35624 | # Required to use basename. | ||
35625 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
35626 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
35627 | as_expr=expr | ||
35628 | else | ||
35629 | as_expr=false | ||
35630 | fi | ||
35631 | |||
35632 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
35633 | as_basename=basename | ||
35634 | else | ||
35635 | as_basename=false | ||
35636 | fi | ||
35637 | |||
35638 | |||
35639 | # Name of the executable. | ||
35640 | as_me=`$as_basename -- "$0" || | ||
35641 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
35642 | X"$0" : 'X\(//\)$' \| \ | ||
35643 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
35644 | echo X/"$0" | | ||
35645 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
35646 | s//\1/ | ||
35647 | q | ||
35648 | } | ||
35649 | /^X\/\(\/\/\)$/{ | ||
35650 | s//\1/ | ||
35651 | q | ||
35652 | } | ||
35653 | /^X\/\(\/\).*/{ | ||
35654 | s//\1/ | ||
35655 | q | ||
35656 | } | ||
35657 | s/.*/./; q'` | ||
35658 | |||
35659 | # CDPATH. | ||
35660 | $as_unset CDPATH | ||
35661 | |||
35662 | |||
35663 | |||
35664 | as_lineno_1=$LINENO | ||
35665 | as_lineno_2=$LINENO | ||
35666 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
35667 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
35668 | |||
35669 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
35670 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
35671 | # line-number line after each line using $LINENO; the second 'sed' | ||
35672 | # does the real work. The second script uses 'N' to pair each | ||
35673 | # line-number line with the line containing $LINENO, and appends | ||
35674 | # trailing '-' during substitution so that $LINENO is not a special | ||
35675 | # case at line end. | ||
35676 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
35677 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
35678 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
35679 | sed -n ' | ||
35680 | p | ||
35681 | /[$]LINENO/= | ||
35682 | ' <$as_myself | | ||
35683 | sed ' | ||
35684 | s/[$]LINENO.*/&-/ | ||
35685 | t lineno | ||
35686 | b | ||
35687 | :lineno | ||
35688 | N | ||
35689 | :loop | ||
35690 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
35691 | t loop | ||
35692 | s/-\n.*// | ||
35693 | ' >$as_me.lineno && | ||
35694 | chmod +x "$as_me.lineno" || | ||
35695 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
35696 | { (exit 1); exit 1; }; } | ||
35697 | |||
35698 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
35699 | # (the dirname of $[0] is not the place where we might find the | ||
35700 | # original and so on. Autoconf is especially sensitive to this). | ||
35701 | . "./$as_me.lineno" | ||
35702 | # Exit status is that of the last command. | ||
35703 | exit | ||
35704 | } | ||
35705 | |||
35706 | |||
35707 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
35708 | as_dirname=dirname | ||
35709 | else | ||
35710 | as_dirname=false | ||
35711 | fi | ||
35712 | |||
35713 | ECHO_C= ECHO_N= ECHO_T= | ||
35714 | case `echo -n x` in | ||
35715 | -n*) | ||
35716 | case `echo 'x\c'` in | ||
35717 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
35718 | *) ECHO_C='\c';; | ||
35719 | esac;; | ||
35720 | *) | ||
35721 | ECHO_N='-n';; | ||
35722 | esac | ||
35723 | |||
35724 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
35725 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
35726 | as_expr=expr | ||
35727 | else | ||
35728 | as_expr=false | ||
35729 | fi | ||
35730 | |||
35731 | rm -f conf$$ conf$$.exe conf$$.file | ||
35732 | if test -d conf$$.dir; then | ||
35733 | rm -f conf$$.dir/conf$$.file | ||
35734 | else | ||
35735 | rm -f conf$$.dir | ||
35736 | mkdir conf$$.dir | ||
35737 | fi | ||
35738 | echo >conf$$.file | ||
35739 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
35740 | as_ln_s='ln -s' | ||
35741 | # ... but there are two gotchas: | ||
35742 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
35743 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
35744 | # In both cases, we have to default to `cp -p'. | ||
35745 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
35746 | as_ln_s='cp -p' | ||
35747 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
35748 | as_ln_s=ln | ||
35749 | else | ||
35750 | as_ln_s='cp -p' | ||
35751 | fi | ||
35752 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
35753 | rmdir conf$$.dir 2>/dev/null | ||
35754 | |||
35755 | if mkdir -p . 2>/dev/null; then | ||
35756 | as_mkdir_p=: | ||
35757 | else | ||
35758 | test -d ./-p && rmdir ./-p | ||
35759 | as_mkdir_p=false | ||
35760 | fi | ||
35761 | |||
35762 | if test -x / >/dev/null 2>&1; then | ||
35763 | as_test_x='test -x' | ||
35764 | else | ||
35765 | if ls -dL / >/dev/null 2>&1; then | ||
35766 | as_ls_L_option=L | ||
35767 | else | ||
35768 | as_ls_L_option= | ||
35769 | fi | ||
35770 | as_test_x=' | ||
35771 | eval sh -c '\'' | ||
35772 | if test -d "$1"; then | ||
35773 | test -d "$1/."; | ||
35774 | else | ||
35775 | case $1 in | ||
35776 | -*)set "./$1";; | ||
35777 | esac; | ||
35778 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | ||
35779 | ???[sx]*):;;*)false;;esac;fi | ||
35780 | '\'' sh | ||
35781 | ' | ||
35782 | fi | ||
35783 | as_executable_p=$as_test_x | ||
35784 | |||
35785 | # Sed expression to map a string onto a valid CPP name. | ||
35786 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
35787 | |||
35788 | # Sed expression to map a string onto a valid variable name. | ||
35789 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
35790 | |||
35791 | |||
35792 | exec 6>&1 | ||
35793 | |||
35794 | # Save the log message, to keep $[0] and so on meaningful, and to | ||
35795 | # report actual input values of CONFIG_FILES etc. instead of their | ||
35796 | # values after options handling. | ||
35797 | ac_log=" | ||
35798 | This file was extended by OpenSSH $as_me Portable, which was | ||
35799 | generated by GNU Autoconf 2.61. Invocation command line was | ||
35800 | |||
35801 | CONFIG_FILES = $CONFIG_FILES | ||
35802 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
35803 | CONFIG_LINKS = $CONFIG_LINKS | ||
35804 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
35805 | $ $0 $@ | ||
35806 | |||
35807 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
35808 | " | ||
35809 | |||
35810 | _ACEOF | ||
35811 | |||
35812 | cat >>$CONFIG_STATUS <<_ACEOF | ||
35813 | # Files that config.status was made for. | ||
35814 | config_files="$ac_config_files" | ||
35815 | config_headers="$ac_config_headers" | ||
35816 | |||
35817 | _ACEOF | ||
35818 | |||
35819 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
35820 | ac_cs_usage="\ | ||
35821 | \`$as_me' instantiates files from templates according to the | ||
35822 | current configuration. | ||
35823 | |||
35824 | Usage: $0 [OPTIONS] [FILE]... | ||
35825 | |||
35826 | -h, --help print this help, then exit | ||
35827 | -V, --version print version number and configuration settings, then exit | ||
35828 | -q, --quiet do not print progress messages | ||
35829 | -d, --debug don't remove temporary files | ||
35830 | --recheck update $as_me by reconfiguring in the same conditions | ||
35831 | --file=FILE[:TEMPLATE] | ||
35832 | instantiate the configuration file FILE | ||
35833 | --header=FILE[:TEMPLATE] | ||
35834 | instantiate the configuration header FILE | ||
35835 | |||
35836 | Configuration files: | ||
35837 | $config_files | ||
35838 | |||
35839 | Configuration headers: | ||
35840 | $config_headers | ||
35841 | |||
35842 | Report bugs to <bug-autoconf@gnu.org>." | ||
35843 | |||
35844 | _ACEOF | ||
35845 | cat >>$CONFIG_STATUS <<_ACEOF | ||
35846 | ac_cs_version="\\ | ||
35847 | OpenSSH config.status Portable | ||
35848 | configured by $0, generated by GNU Autoconf 2.61, | ||
35849 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | ||
35850 | |||
35851 | Copyright (C) 2006 Free Software Foundation, Inc. | ||
35852 | This config.status script is free software; the Free Software Foundation | ||
35853 | gives unlimited permission to copy, distribute and modify it." | ||
35854 | |||
35855 | ac_pwd='$ac_pwd' | ||
35856 | srcdir='$srcdir' | ||
35857 | INSTALL='$INSTALL' | ||
35858 | _ACEOF | ||
35859 | |||
35860 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
35861 | # If no file are specified by the user, then we need to provide default | ||
35862 | # value. By we need to know if files were specified by the user. | ||
35863 | ac_need_defaults=: | ||
35864 | while test $# != 0 | ||
35865 | do | ||
35866 | case $1 in | ||
35867 | --*=*) | ||
35868 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
35869 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
35870 | ac_shift=: | ||
35871 | ;; | ||
35872 | *) | ||
35873 | ac_option=$1 | ||
35874 | ac_optarg=$2 | ||
35875 | ac_shift=shift | ||
35876 | ;; | ||
35877 | esac | ||
35878 | |||
35879 | case $ac_option in | ||
35880 | # Handling of the options. | ||
35881 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
35882 | ac_cs_recheck=: ;; | ||
35883 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
35884 | echo "$ac_cs_version"; exit ;; | ||
35885 | --debug | --debu | --deb | --de | --d | -d ) | ||
35886 | debug=: ;; | ||
35887 | --file | --fil | --fi | --f ) | ||
35888 | $ac_shift | ||
35889 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
35890 | ac_need_defaults=false;; | ||
35891 | --header | --heade | --head | --hea ) | ||
35892 | $ac_shift | ||
35893 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
35894 | ac_need_defaults=false;; | ||
35895 | --he | --h) | ||
35896 | # Conflict between --help and --header | ||
35897 | { echo "$as_me: error: ambiguous option: $1 | ||
35898 | Try \`$0 --help' for more information." >&2 | ||
35899 | { (exit 1); exit 1; }; };; | ||
35900 | --help | --hel | -h ) | ||
35901 | echo "$ac_cs_usage"; exit ;; | ||
35902 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
35903 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
35904 | ac_cs_silent=: ;; | ||
35905 | |||
35906 | # This is an error. | ||
35907 | -*) { echo "$as_me: error: unrecognized option: $1 | ||
35908 | Try \`$0 --help' for more information." >&2 | ||
35909 | { (exit 1); exit 1; }; } ;; | ||
35910 | |||
35911 | *) ac_config_targets="$ac_config_targets $1" | ||
35912 | ac_need_defaults=false ;; | ||
35913 | |||
35914 | esac | ||
35915 | shift | ||
35916 | done | ||
35917 | |||
35918 | ac_configure_extra_args= | ||
35919 | |||
35920 | if $ac_cs_silent; then | ||
35921 | exec 6>/dev/null | ||
35922 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
35923 | fi | ||
35924 | |||
35925 | _ACEOF | ||
35926 | cat >>$CONFIG_STATUS <<_ACEOF | ||
35927 | if \$ac_cs_recheck; then | ||
35928 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
35929 | CONFIG_SHELL=$SHELL | ||
35930 | export CONFIG_SHELL | ||
35931 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
35932 | fi | ||
35933 | |||
35934 | _ACEOF | ||
35935 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
35936 | exec 5>>config.log | ||
35937 | { | ||
35938 | echo | ||
35939 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
35940 | ## Running $as_me. ## | ||
35941 | _ASBOX | ||
35942 | echo "$ac_log" | ||
35943 | } >&5 | ||
35944 | |||
35945 | _ACEOF | ||
35946 | cat >>$CONFIG_STATUS <<_ACEOF | ||
35947 | _ACEOF | ||
35948 | |||
35949 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
35950 | |||
35951 | # Handling of arguments. | ||
35952 | for ac_config_target in $ac_config_targets | ||
35953 | do | ||
35954 | case $ac_config_target in | ||
35955 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
35956 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
35957 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
35958 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
35959 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; | ||
35960 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
35961 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; | ||
35962 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
35963 | |||
35964 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
35965 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
35966 | { (exit 1); exit 1; }; };; | ||
35967 | esac | ||
35968 | done | ||
35969 | |||
35970 | |||
35971 | # If the user did not use the arguments to specify the items to instantiate, | ||
35972 | # then the envvar interface is used. Set only those that are not. | ||
35973 | # We use the long form for the default assignment because of an extremely | ||
35974 | # bizarre bug on SunOS 4.1.3. | ||
35975 | if $ac_need_defaults; then | ||
35976 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
35977 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
35978 | fi | ||
35979 | |||
35980 | # Have a temporary directory for convenience. Make it in the build tree | ||
35981 | # simply because there is no reason against having it here, and in addition, | ||
35982 | # creating and moving files from /tmp can sometimes cause problems. | ||
35983 | # Hook for its removal unless debugging. | ||
35984 | # Note that there is a small window in which the directory will not be cleaned: | ||
35985 | # after its creation but before its name has been assigned to `$tmp'. | ||
35986 | $debug || | ||
35987 | { | ||
35988 | tmp= | ||
35989 | trap 'exit_status=$? | ||
35990 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
35991 | ' 0 | ||
35992 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
35993 | } | ||
35994 | # Create a (secure) tmp directory for tmp files. | ||
35995 | |||
35996 | { | ||
35997 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
35998 | test -n "$tmp" && test -d "$tmp" | ||
35999 | } || | ||
36000 | { | ||
36001 | tmp=./conf$$-$RANDOM | ||
36002 | (umask 077 && mkdir "$tmp") | ||
36003 | } || | ||
36004 | { | ||
36005 | echo "$me: cannot create a temporary directory in ." >&2 | ||
36006 | { (exit 1); exit 1; } | ||
36007 | } | ||
36008 | |||
36009 | # | ||
36010 | # Set up the sed scripts for CONFIG_FILES section. | ||
36011 | # | ||
36012 | |||
36013 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
36014 | # This happens for instance when ./config.status config.h | ||
36015 | if test -n "$CONFIG_FILES"; then | ||
36016 | |||
36017 | _ACEOF | ||
36018 | |||
36019 | |||
36020 | |||
36021 | ac_delim='%!_!# ' | ||
36022 | for ac_last_try in false false false false false :; do | ||
36023 | cat >conf$$subs.sed <<_ACEOF | ||
36024 | SHELL!$SHELL$ac_delim | ||
36025 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | ||
36026 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | ||
36027 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | ||
36028 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | ||
36029 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | ||
36030 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | ||
36031 | exec_prefix!$exec_prefix$ac_delim | ||
36032 | prefix!$prefix$ac_delim | ||
36033 | program_transform_name!$program_transform_name$ac_delim | ||
36034 | bindir!$bindir$ac_delim | ||
36035 | sbindir!$sbindir$ac_delim | ||
36036 | libexecdir!$libexecdir$ac_delim | ||
36037 | datarootdir!$datarootdir$ac_delim | ||
36038 | datadir!$datadir$ac_delim | ||
36039 | sysconfdir!$sysconfdir$ac_delim | ||
36040 | sharedstatedir!$sharedstatedir$ac_delim | ||
36041 | localstatedir!$localstatedir$ac_delim | ||
36042 | includedir!$includedir$ac_delim | ||
36043 | oldincludedir!$oldincludedir$ac_delim | ||
36044 | docdir!$docdir$ac_delim | ||
36045 | infodir!$infodir$ac_delim | ||
36046 | htmldir!$htmldir$ac_delim | ||
36047 | dvidir!$dvidir$ac_delim | ||
36048 | pdfdir!$pdfdir$ac_delim | ||
36049 | psdir!$psdir$ac_delim | ||
36050 | libdir!$libdir$ac_delim | ||
36051 | localedir!$localedir$ac_delim | ||
36052 | mandir!$mandir$ac_delim | ||
36053 | DEFS!$DEFS$ac_delim | ||
36054 | ECHO_C!$ECHO_C$ac_delim | ||
36055 | ECHO_N!$ECHO_N$ac_delim | ||
36056 | ECHO_T!$ECHO_T$ac_delim | ||
36057 | LIBS!$LIBS$ac_delim | ||
36058 | build_alias!$build_alias$ac_delim | ||
36059 | host_alias!$host_alias$ac_delim | ||
36060 | target_alias!$target_alias$ac_delim | ||
36061 | CC!$CC$ac_delim | ||
36062 | CFLAGS!$CFLAGS$ac_delim | ||
36063 | LDFLAGS!$LDFLAGS$ac_delim | ||
36064 | CPPFLAGS!$CPPFLAGS$ac_delim | ||
36065 | ac_ct_CC!$ac_ct_CC$ac_delim | ||
36066 | EXEEXT!$EXEEXT$ac_delim | ||
36067 | OBJEXT!$OBJEXT$ac_delim | ||
36068 | build!$build$ac_delim | ||
36069 | build_cpu!$build_cpu$ac_delim | ||
36070 | build_vendor!$build_vendor$ac_delim | ||
36071 | build_os!$build_os$ac_delim | ||
36072 | host!$host$ac_delim | ||
36073 | host_cpu!$host_cpu$ac_delim | ||
36074 | host_vendor!$host_vendor$ac_delim | ||
36075 | host_os!$host_os$ac_delim | ||
36076 | CPP!$CPP$ac_delim | ||
36077 | GREP!$GREP$ac_delim | ||
36078 | EGREP!$EGREP$ac_delim | ||
36079 | AWK!$AWK$ac_delim | ||
36080 | RANLIB!$RANLIB$ac_delim | ||
36081 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | ||
36082 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | ||
36083 | INSTALL_DATA!$INSTALL_DATA$ac_delim | ||
36084 | AR!$AR$ac_delim | ||
36085 | ac_ct_AR!$ac_ct_AR$ac_delim | ||
36086 | CAT!$CAT$ac_delim | ||
36087 | KILL!$KILL$ac_delim | ||
36088 | PERL!$PERL$ac_delim | ||
36089 | SED!$SED$ac_delim | ||
36090 | ENT!$ENT$ac_delim | ||
36091 | TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim | ||
36092 | SH!$SH$ac_delim | ||
36093 | GROFF!$GROFF$ac_delim | ||
36094 | NROFF!$NROFF$ac_delim | ||
36095 | MANDOC!$MANDOC$ac_delim | ||
36096 | TEST_SHELL!$TEST_SHELL$ac_delim | ||
36097 | MANFMT!$MANFMT$ac_delim | ||
36098 | PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim | ||
36099 | PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim | ||
36100 | MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim | ||
36101 | STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim | ||
36102 | LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim | ||
36103 | PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim | ||
36104 | LD!$LD$ac_delim | ||
36105 | PKGCONFIG!$PKGCONFIG$ac_delim | ||
36106 | LIBEDIT!$LIBEDIT$ac_delim | ||
36107 | TEST_SSH_ECC!$TEST_SSH_ECC$ac_delim | ||
36108 | COMMENT_OUT_ECC!$COMMENT_OUT_ECC$ac_delim | ||
36109 | SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim | ||
36110 | SSHLIBS!$SSHLIBS$ac_delim | ||
36111 | SSHDLIBS!$SSHDLIBS$ac_delim | ||
36112 | KRB5CONF!$KRB5CONF$ac_delim | ||
36113 | GSSLIBS!$GSSLIBS$ac_delim | ||
36114 | K5LIBS!$K5LIBS$ac_delim | ||
36115 | PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim | ||
36116 | xauth_path!$xauth_path$ac_delim | ||
36117 | STRIP_OPT!$STRIP_OPT$ac_delim | ||
36118 | XAUTH_PATH!$XAUTH_PATH$ac_delim | ||
36119 | MANTYPE!$MANTYPE$ac_delim | ||
36120 | mansubdir!$mansubdir$ac_delim | ||
36121 | _ACEOF | ||
36122 | |||
36123 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | ||
36124 | break | ||
36125 | elif $ac_last_try; then | ||
36126 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
36127 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
36128 | { (exit 1); exit 1; }; } | ||
36129 | else | ||
36130 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
36131 | fi | ||
36132 | done | ||
36133 | |||
36134 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
36135 | if test -n "$ac_eof"; then | ||
36136 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
36137 | ac_eof=`expr $ac_eof + 1` | ||
36138 | fi | ||
36139 | |||
36140 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36141 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | ||
36142 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
36143 | _ACEOF | ||
36144 | sed ' | ||
36145 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
36146 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
36147 | :n | ||
36148 | t n | ||
36149 | s/'"$ac_delim"'$/,g/; t | ||
36150 | s/$/\\/; p | ||
36151 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
36152 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
36153 | rm -f conf$$subs.sed | ||
36154 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36155 | CEOF$ac_eof | ||
36156 | _ACEOF | ||
36157 | |||
36158 | |||
36159 | ac_delim='%!_!# ' | ||
36160 | for ac_last_try in false false false false false :; do | ||
36161 | cat >conf$$subs.sed <<_ACEOF | ||
36162 | user_path!$user_path$ac_delim | ||
36163 | piddir!$piddir$ac_delim | ||
36164 | TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim | ||
36165 | TEST_MALLOC_OPTIONS!$TEST_MALLOC_OPTIONS$ac_delim | ||
36166 | UNSUPPORTED_ALGORITHMS!$UNSUPPORTED_ALGORITHMS$ac_delim | ||
36167 | LIBOBJS!$LIBOBJS$ac_delim | ||
36168 | LTLIBOBJS!$LTLIBOBJS$ac_delim | ||
36169 | _ACEOF | ||
36170 | |||
36171 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then | ||
36172 | break | ||
36173 | elif $ac_last_try; then | ||
36174 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
36175 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
36176 | { (exit 1); exit 1; }; } | ||
36177 | else | ||
36178 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
36179 | fi | ||
36180 | done | ||
36181 | |||
36182 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
36183 | if test -n "$ac_eof"; then | ||
36184 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
36185 | ac_eof=`expr $ac_eof + 1` | ||
36186 | fi | ||
36187 | |||
36188 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36189 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | ||
36190 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | ||
36191 | _ACEOF | ||
36192 | sed ' | ||
36193 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
36194 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
36195 | :n | ||
36196 | t n | ||
36197 | s/'"$ac_delim"'$/,g/; t | ||
36198 | s/$/\\/; p | ||
36199 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
36200 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
36201 | rm -f conf$$subs.sed | ||
36202 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36203 | :end | ||
36204 | s/|#_!!_#|//g | ||
36205 | CEOF$ac_eof | ||
36206 | _ACEOF | ||
36207 | |||
36208 | |||
36209 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
36210 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
36211 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
36212 | # (actually we leave an empty line to preserve line numbers). | ||
36213 | if test "x$srcdir" = x.; then | ||
36214 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
36215 | s/:*\$(srcdir):*/:/ | ||
36216 | s/:*\${srcdir}:*/:/ | ||
36217 | s/:*@srcdir@:*/:/ | ||
36218 | s/^\([^=]*=[ ]*\):*/\1/ | ||
36219 | s/:*$// | ||
36220 | s/^[^=]*=[ ]*$// | ||
36221 | }' | ||
36222 | fi | ||
36223 | |||
36224 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
36225 | fi # test -n "$CONFIG_FILES" | ||
36226 | |||
36227 | |||
36228 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | ||
36229 | do | ||
36230 | case $ac_tag in | ||
36231 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
36232 | esac | ||
36233 | case $ac_mode$ac_tag in | ||
36234 | :[FHL]*:*);; | ||
36235 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | ||
36236 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | ||
36237 | { (exit 1); exit 1; }; };; | ||
36238 | :[FH]-) ac_tag=-:-;; | ||
36239 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
36240 | esac | ||
36241 | ac_save_IFS=$IFS | ||
36242 | IFS=: | ||
36243 | set x $ac_tag | ||
36244 | IFS=$ac_save_IFS | ||
36245 | shift | ||
36246 | ac_file=$1 | ||
36247 | shift | ||
36248 | |||
36249 | case $ac_mode in | ||
36250 | :L) ac_source=$1;; | ||
36251 | :[FH]) | ||
36252 | ac_file_inputs= | ||
36253 | for ac_f | ||
36254 | do | ||
36255 | case $ac_f in | ||
36256 | -) ac_f="$tmp/stdin";; | ||
36257 | *) # Look for the file first in the build tree, then in the source tree | ||
36258 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
36259 | # because $ac_f cannot contain `:'. | ||
36260 | test -f "$ac_f" || | ||
36261 | case $ac_f in | ||
36262 | [\\/$]*) false;; | ||
36263 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
36264 | esac || | ||
36265 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | ||
36266 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | ||
36267 | { (exit 1); exit 1; }; };; | ||
36268 | esac | ||
36269 | ac_file_inputs="$ac_file_inputs $ac_f" | ||
36270 | done | ||
36271 | |||
36272 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
36273 | # use $as_me), people would be surprised to read: | ||
36274 | # /* config.h. Generated by config.status. */ | ||
36275 | configure_input="Generated from "`IFS=: | ||
36276 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | ||
36277 | if test x"$ac_file" != x-; then | ||
36278 | configure_input="$ac_file. $configure_input" | ||
36279 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
36280 | echo "$as_me: creating $ac_file" >&6;} | ||
36281 | fi | ||
36282 | |||
36283 | case $ac_tag in | ||
36284 | *:-:* | *:-) cat >"$tmp/stdin";; | ||
36285 | esac | ||
36286 | ;; | ||
36287 | esac | ||
36288 | |||
36289 | ac_dir=`$as_dirname -- "$ac_file" || | ||
36290 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
36291 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
36292 | X"$ac_file" : 'X\(//\)$' \| \ | ||
36293 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
36294 | echo X"$ac_file" | | ||
36295 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
36296 | s//\1/ | ||
36297 | q | ||
36298 | } | ||
36299 | /^X\(\/\/\)[^/].*/{ | ||
36300 | s//\1/ | ||
36301 | q | ||
36302 | } | ||
36303 | /^X\(\/\/\)$/{ | ||
36304 | s//\1/ | ||
36305 | q | ||
36306 | } | ||
36307 | /^X\(\/\).*/{ | ||
36308 | s//\1/ | ||
36309 | q | ||
36310 | } | ||
36311 | s/.*/./; q'` | ||
36312 | { as_dir="$ac_dir" | ||
36313 | case $as_dir in #( | ||
36314 | -*) as_dir=./$as_dir;; | ||
36315 | esac | ||
36316 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
36317 | as_dirs= | ||
36318 | while :; do | ||
36319 | case $as_dir in #( | ||
36320 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | ||
36321 | *) as_qdir=$as_dir;; | ||
36322 | esac | ||
36323 | as_dirs="'$as_qdir' $as_dirs" | ||
36324 | as_dir=`$as_dirname -- "$as_dir" || | ||
36325 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
36326 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
36327 | X"$as_dir" : 'X\(//\)$' \| \ | ||
36328 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
36329 | echo X"$as_dir" | | ||
36330 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
36331 | s//\1/ | ||
36332 | q | ||
36333 | } | ||
36334 | /^X\(\/\/\)[^/].*/{ | ||
36335 | s//\1/ | ||
36336 | q | ||
36337 | } | ||
36338 | /^X\(\/\/\)$/{ | ||
36339 | s//\1/ | ||
36340 | q | ||
36341 | } | ||
36342 | /^X\(\/\).*/{ | ||
36343 | s//\1/ | ||
36344 | q | ||
36345 | } | ||
36346 | s/.*/./; q'` | ||
36347 | test -d "$as_dir" && break | ||
36348 | done | ||
36349 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
36350 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
36351 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
36352 | { (exit 1); exit 1; }; }; } | ||
36353 | ac_builddir=. | ||
36354 | |||
36355 | case "$ac_dir" in | ||
36356 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
36357 | *) | ||
36358 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
36359 | # A ".." for each directory in $ac_dir_suffix. | ||
36360 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
36361 | case $ac_top_builddir_sub in | ||
36362 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
36363 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
36364 | esac ;; | ||
36365 | esac | ||
36366 | ac_abs_top_builddir=$ac_pwd | ||
36367 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
36368 | # for backward compatibility: | ||
36369 | ac_top_builddir=$ac_top_build_prefix | ||
36370 | |||
36371 | case $srcdir in | ||
36372 | .) # We are building in place. | ||
36373 | ac_srcdir=. | ||
36374 | ac_top_srcdir=$ac_top_builddir_sub | ||
36375 | ac_abs_top_srcdir=$ac_pwd ;; | ||
36376 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
36377 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
36378 | ac_top_srcdir=$srcdir | ||
36379 | ac_abs_top_srcdir=$srcdir ;; | ||
36380 | *) # Relative name. | ||
36381 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
36382 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
36383 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
36384 | esac | ||
36385 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
36386 | |||
36387 | |||
36388 | case $ac_mode in | ||
36389 | :F) | ||
36390 | # | ||
36391 | # CONFIG_FILE | ||
36392 | # | ||
36393 | |||
36394 | case $INSTALL in | ||
36395 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
36396 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
36397 | esac | ||
36398 | _ACEOF | ||
36399 | |||
36400 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
36401 | # If the template does not know about datarootdir, expand it. | ||
36402 | # FIXME: This hack should be removed a few years after 2.60. | ||
36403 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
36404 | |||
36405 | case `sed -n '/datarootdir/ { | ||
36406 | p | ||
36407 | q | ||
36408 | } | ||
36409 | /@datadir@/p | ||
36410 | /@docdir@/p | ||
36411 | /@infodir@/p | ||
36412 | /@localedir@/p | ||
36413 | /@mandir@/p | ||
36414 | ' $ac_file_inputs` in | ||
36415 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
36416 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
36417 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
36418 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
36419 | _ACEOF | ||
36420 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36421 | ac_datarootdir_hack=' | ||
36422 | s&@datadir@&$datadir&g | ||
36423 | s&@docdir@&$docdir&g | ||
36424 | s&@infodir@&$infodir&g | ||
36425 | s&@localedir@&$localedir&g | ||
36426 | s&@mandir@&$mandir&g | ||
36427 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
36428 | esac | ||
36429 | _ACEOF | ||
36430 | |||
36431 | # Neutralize VPATH when `$srcdir' = `.'. | ||
36432 | # Shell code in configure.ac might set extrasub. | ||
36433 | # FIXME: do we really want to maintain this feature? | ||
36434 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36435 | sed "$ac_vpsub | ||
36436 | $extrasub | ||
36437 | _ACEOF | ||
36438 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
36439 | :t | ||
36440 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
36441 | s&@configure_input@&$configure_input&;t t | ||
36442 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
36443 | s&@srcdir@&$ac_srcdir&;t t | ||
36444 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
36445 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
36446 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
36447 | s&@builddir@&$ac_builddir&;t t | ||
36448 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
36449 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
36450 | s&@INSTALL@&$ac_INSTALL&;t t | ||
36451 | $ac_datarootdir_hack | ||
36452 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | ||
36453 | |||
36454 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
36455 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
36456 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
36457 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
36458 | which seems to be undefined. Please make sure it is defined." >&5 | ||
36459 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
36460 | which seems to be undefined. Please make sure it is defined." >&2;} | ||
36461 | |||
36462 | rm -f "$tmp/stdin" | ||
36463 | case $ac_file in | ||
36464 | -) cat "$tmp/out"; rm -f "$tmp/out";; | ||
36465 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | ||
36466 | esac | ||
36467 | ;; | ||
36468 | :H) | ||
36469 | # | ||
36470 | # CONFIG_HEADER | ||
36471 | # | ||
36472 | _ACEOF | ||
36473 | |||
36474 | # Transform confdefs.h into a sed script `conftest.defines', that | ||
36475 | # substitutes the proper values into config.h.in to produce config.h. | ||
36476 | rm -f conftest.defines conftest.tail | ||
36477 | # First, append a space to every undef/define line, to ease matching. | ||
36478 | echo 's/$/ /' >conftest.defines | ||
36479 | # Then, protect against being on the right side of a sed subst, or in | ||
36480 | # an unquoted here document, in config.status. If some macros were | ||
36481 | # called several times there might be several #defines for the same | ||
36482 | # symbol, which is useless. But do not sort them, since the last | ||
36483 | # AC_DEFINE must be honored. | ||
36484 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
36485 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | ||
36486 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | ||
36487 | # PARAMS is the parameter list in the macro definition--in most cases, it's | ||
36488 | # just an empty string. | ||
36489 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | ||
36490 | ac_dB='\\)[ (].*,\\1define\\2' | ||
36491 | ac_dC=' ' | ||
36492 | ac_dD=' ,' | ||
36493 | |||
36494 | uniq confdefs.h | | ||
36495 | sed -n ' | ||
36496 | t rset | ||
36497 | :rset | ||
36498 | s/^[ ]*#[ ]*define[ ][ ]*// | ||
36499 | t ok | ||
36500 | d | ||
36501 | :ok | ||
36502 | s/[\\&,]/\\&/g | ||
36503 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | ||
36504 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | ||
36505 | ' >>conftest.defines | ||
36506 | |||
36507 | # Remove the space that was appended to ease matching. | ||
36508 | # Then replace #undef with comments. This is necessary, for | ||
36509 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
36510 | # on some systems where configure will not decide to define it. | ||
36511 | # (The regexp can be short, since the line contains either #define or #undef.) | ||
36512 | echo 's/ $// | ||
36513 | s,^[ #]*u.*,/* & */,' >>conftest.defines | ||
36514 | |||
36515 | # Break up conftest.defines: | ||
36516 | ac_max_sed_lines=50 | ||
36517 | |||
36518 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | ||
36519 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | ||
36520 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | ||
36521 | # et cetera. | ||
36522 | ac_in='$ac_file_inputs' | ||
36523 | ac_out='"$tmp/out1"' | ||
36524 | ac_nxt='"$tmp/out2"' | ||
36525 | |||
36526 | while : | ||
36527 | do | ||
36528 | # Write a here document: | ||
36529 | cat >>$CONFIG_STATUS <<_ACEOF | ||
36530 | # First, check the format of the line: | ||
36531 | cat >"\$tmp/defines.sed" <<\\CEOF | ||
36532 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | ||
36533 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | ||
36534 | b | ||
36535 | :def | ||
36536 | _ACEOF | ||
36537 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | ||
36538 | echo 'CEOF | ||
36539 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | ||
36540 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | ||
36541 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | ||
36542 | grep . conftest.tail >/dev/null || break | ||
36543 | rm -f conftest.defines | ||
36544 | mv conftest.tail conftest.defines | ||
36545 | done | ||
36546 | rm -f conftest.defines conftest.tail | ||
36547 | |||
36548 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | ||
36549 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
36550 | if test x"$ac_file" != x-; then | ||
36551 | echo "/* $configure_input */" >"$tmp/config.h" | ||
36552 | cat "$ac_result" >>"$tmp/config.h" | ||
36553 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | ||
36554 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
36555 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
36556 | else | ||
36557 | rm -f $ac_file | ||
36558 | mv "$tmp/config.h" $ac_file | ||
36559 | fi | ||
36560 | else | ||
36561 | echo "/* $configure_input */" | ||
36562 | cat "$ac_result" | ||
36563 | fi | ||
36564 | rm -f "$tmp/out12" | ||
36565 | ;; | ||
36566 | |||
36567 | |||
36568 | esac | ||
36569 | |||
36570 | done # for ac_tag | ||
36571 | |||
36572 | |||
36573 | { (exit 0); exit 0; } | ||
36574 | _ACEOF | ||
36575 | chmod +x $CONFIG_STATUS | ||
36576 | ac_clean_files=$ac_clean_files_save | ||
36577 | |||
36578 | |||
36579 | # configure is writing to config.log, and then calls config.status. | ||
36580 | # config.status does its own redirection, appending to config.log. | ||
36581 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
36582 | # by configure, so config.status won't be able to write to it; its | ||
36583 | # output is simply discarded. So we exec the FD to /dev/null, | ||
36584 | # effectively closing config.log, so it can be properly (re)opened and | ||
36585 | # appended to by config.status. When coming back to configure, we | ||
36586 | # need to make the FD available again. | ||
36587 | if test "$no_create" != yes; then | ||
36588 | ac_cs_success=: | ||
36589 | ac_config_status_args= | ||
36590 | test "$silent" = yes && | ||
36591 | ac_config_status_args="$ac_config_status_args --quiet" | ||
36592 | exec 5>/dev/null | ||
36593 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
36594 | exec 5>>config.log | ||
36595 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
36596 | # would make configure fail if this is the last instruction. | ||
36597 | $ac_cs_success || { (exit 1); exit 1; } | ||
36598 | fi | ||
36599 | |||
36600 | |||
36601 | # Print summary of options | ||
36602 | |||
36603 | # Someone please show me a better way :) | ||
36604 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
36605 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
36606 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
36607 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
36608 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
36609 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
36610 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
36611 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
36612 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
36613 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
36614 | |||
36615 | echo "" | ||
36616 | echo "OpenSSH has been configured with the following options:" | ||
36617 | echo " User binaries: $B" | ||
36618 | echo " System binaries: $C" | ||
36619 | echo " Configuration files: $D" | ||
36620 | echo " Askpass program: $E" | ||
36621 | echo " Manual pages: $F" | ||
36622 | echo " PID file: $G" | ||
36623 | echo " Privilege separation chroot path: $H" | ||
36624 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
36625 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
36626 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
36627 | else | ||
36628 | echo " sshd default user PATH: $I" | ||
36629 | if test ! -z "$external_path_file"; then | ||
36630 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
36631 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
36632 | fi | ||
36633 | fi | ||
36634 | if test ! -z "$superuser_path" ; then | ||
36635 | echo " sshd superuser user PATH: $J" | ||
36636 | fi | ||
36637 | echo " Manpage format: $MANTYPE" | ||
36638 | echo " PAM support: $PAM_MSG" | ||
36639 | echo " OSF SIA support: $SIA_MSG" | ||
36640 | echo " KerberosV support: $KRB5_MSG" | ||
36641 | echo " SELinux support: $SELINUX_MSG" | ||
36642 | echo " Smartcard support: $SCARD_MSG" | ||
36643 | echo " S/KEY support: $SKEY_MSG" | ||
36644 | echo " MD5 password support: $MD5_MSG" | ||
36645 | echo " libedit support: $LIBEDIT_MSG" | ||
36646 | echo " Solaris process contract support: $SPC_MSG" | ||
36647 | echo " Solaris project support: $SP_MSG" | ||
36648 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
36649 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
36650 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
36651 | echo " Random number source: $RAND_MSG" | ||
36652 | echo " Privsep sandbox style: $SANDBOX_STYLE" | ||
36653 | |||
36654 | echo "" | ||
36655 | |||
36656 | echo " Host: ${host}" | ||
36657 | echo " Compiler: ${CC}" | ||
36658 | echo " Compiler flags: ${CFLAGS}" | ||
36659 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
36660 | echo " Linker flags: ${LDFLAGS}" | ||
36661 | echo " Libraries: ${LIBS}" | ||
36662 | if test ! -z "${SSHDLIBS}"; then | ||
36663 | echo " +for sshd: ${SSHDLIBS}" | ||
36664 | fi | ||
36665 | if test ! -z "${SSHLIBS}"; then | ||
36666 | echo " +for ssh: ${SSHLIBS}" | ||
36667 | fi | ||
36668 | |||
36669 | echo "" | ||
36670 | |||
36671 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
36672 | echo "SVR4 style packages are supported with \"make package\"" | ||
36673 | echo "" | ||
36674 | fi | ||
36675 | |||
36676 | if test "x$PAM_MSG" = "xyes" ; then | ||
36677 | echo "PAM is enabled. You may need to install a PAM control file " | ||
36678 | echo "for sshd, otherwise password authentication may fail. " | ||
36679 | echo "Example PAM control files can be found in the contrib/ " | ||
36680 | echo "subdirectory" | ||
36681 | echo "" | ||
36682 | fi | ||
36683 | |||
36684 | if test ! -z "$NO_PEERCHECK" ; then | ||
36685 | echo "WARNING: the operating system that you are using does not" | ||
36686 | echo "appear to support getpeereid(), getpeerucred() or the" | ||
36687 | echo "SO_PEERCRED getsockopt() option. These facilities are used to" | ||
36688 | echo "enforce security checks to prevent unauthorised connections to" | ||
36689 | echo "ssh-agent. Their absence increases the risk that a malicious" | ||
36690 | echo "user can connect to your agent." | ||
36691 | echo "" | ||
36692 | fi | ||
36693 | |||
36694 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
36695 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
36696 | echo "See the Solaris section in README.platform for details." | ||
36697 | fi | ||
diff --git a/moduli.0 b/moduli.0 new file mode 100644 index 000000000..1c580d46c --- /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 5.7 September 26, 2012 OpenBSD 5.7 | ||
@@ -0,0 +1,164 @@ | |||
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 | ChallengeResponseAuthentication | ||
76 | CheckHostIP | ||
77 | Cipher | ||
78 | Ciphers | ||
79 | Compression | ||
80 | CompressionLevel | ||
81 | ConnectionAttempts | ||
82 | ConnectTimeout | ||
83 | ControlMaster | ||
84 | ControlPath | ||
85 | ControlPersist | ||
86 | GlobalKnownHostsFile | ||
87 | GSSAPIAuthentication | ||
88 | GSSAPIDelegateCredentials | ||
89 | HashKnownHosts | ||
90 | Host | ||
91 | HostbasedAuthentication | ||
92 | HostbasedKeyTypes | ||
93 | HostKeyAlgorithms | ||
94 | HostKeyAlias | ||
95 | HostName | ||
96 | IdentityFile | ||
97 | IdentitiesOnly | ||
98 | IPQoS | ||
99 | KbdInteractiveAuthentication | ||
100 | KbdInteractiveDevices | ||
101 | KexAlgorithms | ||
102 | LogLevel | ||
103 | MACs | ||
104 | NoHostAuthenticationForLocalhost | ||
105 | NumberOfPasswordPrompts | ||
106 | PasswordAuthentication | ||
107 | PKCS11Provider | ||
108 | Port | ||
109 | PreferredAuthentications | ||
110 | Protocol | ||
111 | ProxyCommand | ||
112 | PubkeyAuthentication | ||
113 | RekeyLimit | ||
114 | RhostsRSAAuthentication | ||
115 | RSAAuthentication | ||
116 | SendEnv | ||
117 | ServerAliveInterval | ||
118 | ServerAliveCountMax | ||
119 | StrictHostKeyChecking | ||
120 | TCPKeepAlive | ||
121 | UpdateHostKeys | ||
122 | UsePrivilegedPort | ||
123 | User | ||
124 | UserKnownHostsFile | ||
125 | VerifyHostKeyDNS | ||
126 | |||
127 | -P port | ||
128 | Specifies the port to connect to on the remote host. Note that | ||
129 | this option is written with a capital M-bM-^@M-^XPM-bM-^@M-^Y, because -p is already | ||
130 | reserved for preserving the times and modes of the file. | ||
131 | |||
132 | -p Preserves modification times, access times, and modes from the | ||
133 | original file. | ||
134 | |||
135 | -q Quiet mode: disables the progress meter as well as warning and | ||
136 | diagnostic messages from ssh(1). | ||
137 | |||
138 | -r Recursively copy entire directories. Note that scp follows | ||
139 | symbolic links encountered in the tree traversal. | ||
140 | |||
141 | -S program | ||
142 | Name of program to use for the encrypted connection. The program | ||
143 | must understand ssh(1) options. | ||
144 | |||
145 | -v Verbose mode. Causes scp and ssh(1) to print debugging messages | ||
146 | about their progress. This is helpful in debugging connection, | ||
147 | authentication, and configuration problems. | ||
148 | |||
149 | EXIT STATUS | ||
150 | The scp utility exitsM-BM- 0 on success, andM-BM- >0 if an error occurs. | ||
151 | |||
152 | SEE ALSO | ||
153 | sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh_config(5), | ||
154 | sshd(8) | ||
155 | |||
156 | HISTORY | ||
157 | scp is based on the rcp program in BSD source code from the Regents of | ||
158 | the University of California. | ||
159 | |||
160 | AUTHORS | ||
161 | Timo Rinne <tri@iki.fi> | ||
162 | Tatu Ylonen <ylo@cs.hut.fi> | ||
163 | |||
164 | OpenBSD 5.7 January 30, 2015 OpenBSD 5.7 | ||
diff --git a/sftp-server.0 b/sftp-server.0 new file mode 100644 index 000000000..77b6bb509 --- /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 5.7 December 11, 2014 OpenBSD 5.7 | ||
@@ -0,0 +1,383 @@ | |||
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 | ChallengeResponseAuthentication | ||
112 | CheckHostIP | ||
113 | Cipher | ||
114 | Ciphers | ||
115 | Compression | ||
116 | CompressionLevel | ||
117 | ConnectionAttempts | ||
118 | ConnectTimeout | ||
119 | ControlMaster | ||
120 | ControlPath | ||
121 | ControlPersist | ||
122 | GlobalKnownHostsFile | ||
123 | GSSAPIAuthentication | ||
124 | GSSAPIDelegateCredentials | ||
125 | HashKnownHosts | ||
126 | Host | ||
127 | HostbasedAuthentication | ||
128 | HostbasedKeyTypes | ||
129 | HostKeyAlgorithms | ||
130 | HostKeyAlias | ||
131 | HostName | ||
132 | IdentityFile | ||
133 | IdentitiesOnly | ||
134 | IPQoS | ||
135 | KbdInteractiveAuthentication | ||
136 | KbdInteractiveDevices | ||
137 | KexAlgorithms | ||
138 | LogLevel | ||
139 | MACs | ||
140 | NoHostAuthenticationForLocalhost | ||
141 | NumberOfPasswordPrompts | ||
142 | PasswordAuthentication | ||
143 | PKCS11Provider | ||
144 | Port | ||
145 | PreferredAuthentications | ||
146 | Protocol | ||
147 | ProxyCommand | ||
148 | PubkeyAuthentication | ||
149 | RekeyLimit | ||
150 | RhostsRSAAuthentication | ||
151 | RSAAuthentication | ||
152 | SendEnv | ||
153 | ServerAliveInterval | ||
154 | ServerAliveCountMax | ||
155 | StrictHostKeyChecking | ||
156 | TCPKeepAlive | ||
157 | UpdateHostKeys | ||
158 | UsePrivilegedPort | ||
159 | User | ||
160 | UserKnownHostsFile | ||
161 | VerifyHostKeyDNS | ||
162 | |||
163 | -P port | ||
164 | Specifies the port to connect to on the remote host. | ||
165 | |||
166 | -p Preserves modification times, access times, and modes from the | ||
167 | original files transferred. | ||
168 | |||
169 | -q Quiet mode: disables the progress meter as well as warning and | ||
170 | diagnostic messages from ssh(1). | ||
171 | |||
172 | -R num_requests | ||
173 | Specify how many requests may be outstanding at any one time. | ||
174 | Increasing this may slightly improve file transfer speed but will | ||
175 | increase memory usage. The default is 64 outstanding requests. | ||
176 | |||
177 | -r Recursively copy entire directories when uploading and | ||
178 | downloading. Note that sftp does not follow symbolic links | ||
179 | encountered in the tree traversal. | ||
180 | |||
181 | -S program | ||
182 | Name of the program to use for the encrypted connection. The | ||
183 | program must understand ssh(1) options. | ||
184 | |||
185 | -s subsystem | sftp_server | ||
186 | Specifies the SSH2 subsystem or the path for an sftp server on | ||
187 | the remote host. A path is useful for using sftp over protocol | ||
188 | version 1, or when the remote sshd(8) does not have an sftp | ||
189 | subsystem configured. | ||
190 | |||
191 | -v Raise logging level. This option is also passed to ssh. | ||
192 | |||
193 | INTERACTIVE COMMANDS | ||
194 | Once in interactive mode, sftp understands a set of commands similar to | ||
195 | those of ftp(1). Commands are case insensitive. Pathnames that contain | ||
196 | spaces must be enclosed in quotes. Any special characters contained | ||
197 | within pathnames that are recognized by glob(3) must be escaped with | ||
198 | backslashes (M-bM-^@M-^X\M-bM-^@M-^Y). | ||
199 | |||
200 | bye Quit sftp. | ||
201 | |||
202 | cd path | ||
203 | Change remote directory to path. | ||
204 | |||
205 | chgrp grp path | ||
206 | Change group of file path to grp. path may contain glob(3) | ||
207 | characters and may match multiple files. grp must be a numeric | ||
208 | GID. | ||
209 | |||
210 | chmod mode path | ||
211 | Change permissions of file path to mode. path may contain | ||
212 | glob(3) characters and may match multiple files. | ||
213 | |||
214 | chown own path | ||
215 | Change owner of file path to own. path may contain glob(3) | ||
216 | characters and may match multiple files. own must be a numeric | ||
217 | UID. | ||
218 | |||
219 | df [-hi] [path] | ||
220 | Display usage information for the filesystem holding the current | ||
221 | directory (or path if specified). If the -h flag is specified, | ||
222 | the capacity information will be displayed using "human-readable" | ||
223 | suffixes. The -i flag requests display of inode information in | ||
224 | addition to capacity information. This command is only supported | ||
225 | on servers that implement the M-bM-^@M-^\statvfs@openssh.comM-bM-^@M-^] extension. | ||
226 | |||
227 | exit Quit sftp. | ||
228 | |||
229 | get [-afPpr] remote-path [local-path] | ||
230 | Retrieve the remote-path and store it on the local machine. If | ||
231 | the local path name is not specified, it is given the same name | ||
232 | it has on the remote machine. remote-path may contain glob(3) | ||
233 | characters and may match multiple files. If it does and | ||
234 | local-path is specified, then local-path must specify a | ||
235 | directory. | ||
236 | |||
237 | If the -a flag is specified, then attempt to resume partial | ||
238 | transfers of existing files. Note that resumption assumes that | ||
239 | any partial copy of the local file matches the remote copy. If | ||
240 | the remote file contents differ from the partial local copy then | ||
241 | the resultant file is likely to be corrupt. | ||
242 | |||
243 | If the -f flag is specified, then fsync(2) will be called after | ||
244 | the file transfer has completed to flush the file to disk. | ||
245 | |||
246 | If either the -P or -p flag is specified, then full file | ||
247 | permissions and access times are copied too. | ||
248 | |||
249 | If the -r flag is specified then directories will be copied | ||
250 | recursively. Note that sftp does not follow symbolic links when | ||
251 | performing recursive transfers. | ||
252 | |||
253 | help Display help text. | ||
254 | |||
255 | lcd path | ||
256 | Change local directory to path. | ||
257 | |||
258 | lls [ls-options [path]] | ||
259 | Display local directory listing of either path or current | ||
260 | directory if path is not specified. ls-options may contain any | ||
261 | flags supported by the local system's ls(1) command. path may | ||
262 | contain glob(3) characters and may match multiple files. | ||
263 | |||
264 | lmkdir path | ||
265 | Create local directory specified by path. | ||
266 | |||
267 | ln [-s] oldpath newpath | ||
268 | Create a link from oldpath to newpath. If the -s flag is | ||
269 | specified the created link is a symbolic link, otherwise it is a | ||
270 | hard link. | ||
271 | |||
272 | lpwd Print local working directory. | ||
273 | |||
274 | ls [-1afhlnrSt] [path] | ||
275 | Display a remote directory listing of either path or the current | ||
276 | directory if path is not specified. path may contain glob(3) | ||
277 | characters and may match multiple files. | ||
278 | |||
279 | The following flags are recognized and alter the behaviour of ls | ||
280 | accordingly: | ||
281 | |||
282 | -1 Produce single columnar output. | ||
283 | |||
284 | -a List files beginning with a dot (M-bM-^@M-^X.M-bM-^@M-^Y). | ||
285 | |||
286 | -f Do not sort the listing. The default sort order is | ||
287 | lexicographical. | ||
288 | |||
289 | -h When used with a long format option, use unit suffixes: | ||
290 | Byte, Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte, | ||
291 | and Exabyte in order to reduce the number of digits to | ||
292 | four or fewer using powers of 2 for sizes (K=1024, | ||
293 | M=1048576, etc.). | ||
294 | |||
295 | -l Display additional details including permissions and | ||
296 | ownership information. | ||
297 | |||
298 | -n Produce a long listing with user and group information | ||
299 | presented numerically. | ||
300 | |||
301 | -r Reverse the sort order of the listing. | ||
302 | |||
303 | -S Sort the listing by file size. | ||
304 | |||
305 | -t Sort the listing by last modification time. | ||
306 | |||
307 | lumask umask | ||
308 | Set local umask to umask. | ||
309 | |||
310 | mkdir path | ||
311 | Create remote directory specified by path. | ||
312 | |||
313 | progress | ||
314 | Toggle display of progress meter. | ||
315 | |||
316 | put [-afPpr] local-path [remote-path] | ||
317 | Upload local-path and store it on the remote machine. If the | ||
318 | remote path name is not specified, it is given the same name it | ||
319 | has on the local machine. local-path may contain glob(3) | ||
320 | characters and may match multiple files. If it does and | ||
321 | remote-path is specified, then remote-path must specify a | ||
322 | directory. | ||
323 | |||
324 | If the -a flag is specified, then attempt to resume partial | ||
325 | transfers of existing files. Note that resumption assumes that | ||
326 | any partial copy of the remote file matches the local copy. If | ||
327 | the local file contents differ from the remote local copy then | ||
328 | the resultant file is likely to be corrupt. | ||
329 | |||
330 | If the -f flag is specified, then a request will be sent to the | ||
331 | server to call fsync(2) after the file has been transferred. | ||
332 | Note that this is only supported by servers that implement the | ||
333 | "fsync@openssh.com" extension. | ||
334 | |||
335 | If either the -P or -p flag is specified, then full file | ||
336 | permissions and access times are copied too. | ||
337 | |||
338 | If the -r flag is specified then directories will be copied | ||
339 | recursively. Note that sftp does not follow symbolic links when | ||
340 | performing recursive transfers. | ||
341 | |||
342 | pwd Display remote working directory. | ||
343 | |||
344 | quit Quit sftp. | ||
345 | |||
346 | reget [-Ppr] remote-path [local-path] | ||
347 | Resume download of remote-path. Equivalent to get with the -a | ||
348 | flag set. | ||
349 | |||
350 | reput [-Ppr] [local-path] remote-path | ||
351 | Resume upload of [local-path]. Equivalent to put with the -a | ||
352 | flag set. | ||
353 | |||
354 | rename oldpath newpath | ||
355 | Rename remote file from oldpath to newpath. | ||
356 | |||
357 | rm path | ||
358 | Delete remote file specified by path. | ||
359 | |||
360 | rmdir path | ||
361 | Remove remote directory specified by path. | ||
362 | |||
363 | symlink oldpath newpath | ||
364 | Create a symbolic link from oldpath to newpath. | ||
365 | |||
366 | version | ||
367 | Display the sftp protocol version. | ||
368 | |||
369 | !command | ||
370 | Execute command in local shell. | ||
371 | |||
372 | ! Escape to local shell. | ||
373 | |||
374 | ? Synonym for help. | ||
375 | |||
376 | SEE ALSO | ||
377 | ftp(1), ls(1), scp(1), ssh(1), ssh-add(1), ssh-keygen(1), glob(3), | ||
378 | ssh_config(5), sftp-server(8), sshd(8) | ||
379 | |||
380 | T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh- | ||
381 | filexfer-00.txt, January 2001, work in progress material. | ||
382 | |||
383 | OpenBSD 5.7 January 30, 2015 OpenBSD 5.7 | ||
diff --git a/ssh-add.0 b/ssh-add.0 new file mode 100644 index 000000000..66493f141 --- /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 5.7 March 30, 2015 OpenBSD 5.7 | ||
diff --git a/ssh-agent.0 b/ssh-agent.0 new file mode 100644 index 000000000..eb892811c --- /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-add(1). Multiple identities may be stored in ssh-agent concurrently | ||
22 | and ssh(1) will automatically use them if present. ssh-add(1) is also | ||
23 | used to remove keys from ssh-agent and to query the keys that are held in | ||
24 | 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 commandline is given, this is executed as a subprocess of the agent. | ||
60 | 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 5.7 April 24, 2015 OpenBSD 5.7 | ||
diff --git a/ssh-keygen.0 b/ssh-keygen.0 new file mode 100644 index 000000000..784ad032f --- /dev/null +++ b/ssh-keygen.0 | |||
@@ -0,0 +1,566 @@ | |||
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 RSA keys for use by SSH protocol version 1 | ||
35 | and DSA, ECDSA, Ed25519 or RSA keys for use by SSH protocol version 2. | ||
36 | The type of key to be generated is specified with the -t option. If | ||
37 | invoked without any arguments, ssh-keygen will generate an RSA key for | ||
38 | use in SSH protocol 2 connections. | ||
39 | |||
40 | ssh-keygen is also used to generate groups for use in Diffie-Hellman | ||
41 | group exchange (DH-GEX). See the MODULI GENERATION section for details. | ||
42 | |||
43 | Finally, ssh-keygen can be used to generate and update Key Revocation | ||
44 | Lists, and to test whether given keys have been revoked by one. See the | ||
45 | KEY REVOCATION LISTS section for details. | ||
46 | |||
47 | Normally each user wishing to use SSH with public key authentication runs | ||
48 | this once to create the authentication key in ~/.ssh/identity, | ||
49 | ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, ~/.ssh/id_ed25519 or ~/.ssh/id_rsa. | ||
50 | Additionally, the system administrator may use this to generate host | ||
51 | keys, as seen in /etc/rc. | ||
52 | |||
53 | Normally this program generates the key and asks for a file in which to | ||
54 | store the private key. The public key is stored in a file with the same | ||
55 | name but M-bM-^@M-^\.pubM-bM-^@M-^] appended. The program also asks for a passphrase. The | ||
56 | passphrase may be empty to indicate no passphrase (host keys must have an | ||
57 | empty passphrase), or it may be a string of arbitrary length. A | ||
58 | passphrase is similar to a password, except it can be a phrase with a | ||
59 | series of words, punctuation, numbers, whitespace, or any string of | ||
60 | characters you want. Good passphrases are 10-30 characters long, are not | ||
61 | simple sentences or otherwise easily guessable (English prose has only | ||
62 | 1-2 bits of entropy per character, and provides very bad passphrases), | ||
63 | and contain a mix of upper and lowercase letters, numbers, and non- | ||
64 | alphanumeric characters. The passphrase can be changed later by using | ||
65 | the -p option. | ||
66 | |||
67 | There is no way to recover a lost passphrase. If the passphrase is lost | ||
68 | or forgotten, a new key must be generated and the corresponding public | ||
69 | key copied to other machines. | ||
70 | |||
71 | For RSA1 keys, there is also a comment field in the key file that is only | ||
72 | for convenience to the user to help identify the key. The comment can | ||
73 | tell what the key is for, or whatever is useful. The comment is | ||
74 | initialized to M-bM-^@M-^\user@hostM-bM-^@M-^] when the key is created, but can be changed | ||
75 | using the -c option. | ||
76 | |||
77 | After a key is generated, instructions below detail where the keys should | ||
78 | be placed to be activated. | ||
79 | |||
80 | The options are as follows: | ||
81 | |||
82 | -A For each of the key types (rsa1, rsa, dsa, ecdsa and ed25519) for | ||
83 | which host keys do not exist, generate the host keys with the | ||
84 | default key file path, an empty passphrase, default bits for the | ||
85 | key type, and default comment. This is used by /etc/rc to | ||
86 | generate new host keys. | ||
87 | |||
88 | -a rounds | ||
89 | When saving a new-format private key (i.e. an ed25519 key or any | ||
90 | SSH protocol 2 key when the -o flag is set), this option | ||
91 | specifies the number of KDF (key derivation function) rounds | ||
92 | used. Higher numbers result in slower passphrase verification | ||
93 | and increased resistance to brute-force password cracking (should | ||
94 | the keys be stolen). | ||
95 | |||
96 | When screening DH-GEX candidates ( using the -T command). This | ||
97 | option specifies the number of primality tests to perform. | ||
98 | |||
99 | -B Show the bubblebabble digest of specified private or public key | ||
100 | file. | ||
101 | |||
102 | -b bits | ||
103 | Specifies the number of bits in the key to create. For RSA keys, | ||
104 | the minimum size is 768 bits and the default is 2048 bits. | ||
105 | Generally, 2048 bits is considered sufficient. DSA keys must be | ||
106 | exactly 1024 bits as specified by FIPS 186-2. For ECDSA keys, | ||
107 | the -b flag determines the key length by selecting from one of | ||
108 | three elliptic curve sizes: 256, 384 or 521 bits. Attempting to | ||
109 | use bit lengths other than these three values for ECDSA keys will | ||
110 | fail. Ed25519 keys have a fixed length and the -b flag will be | ||
111 | ignored. | ||
112 | |||
113 | -C comment | ||
114 | Provides a new comment. | ||
115 | |||
116 | -c Requests changing the comment in the private and public key | ||
117 | files. This operation is only supported for RSA1 keys. The | ||
118 | program will prompt for the file containing the private keys, for | ||
119 | the passphrase if the key has one, and for the new comment. | ||
120 | |||
121 | -D pkcs11 | ||
122 | Download the RSA public keys provided by the PKCS#11 shared | ||
123 | library pkcs11. When used in combination with -s, this option | ||
124 | indicates that a CA key resides in a PKCS#11 token (see the | ||
125 | CERTIFICATES section for details). | ||
126 | |||
127 | -E fingerprint_hash | ||
128 | Specifies the hash algorithm used when displaying key | ||
129 | fingerprints. Valid options are: M-bM-^@M-^\md5M-bM-^@M-^] and M-bM-^@M-^\sha256M-bM-^@M-^]. The | ||
130 | default is M-bM-^@M-^\sha256M-bM-^@M-^]. | ||
131 | |||
132 | -e This option will read a private or public OpenSSH key file and | ||
133 | print to stdout the key in one of the formats specified by the -m | ||
134 | option. The default export format is M-bM-^@M-^\RFC4716M-bM-^@M-^]. This option | ||
135 | allows exporting OpenSSH keys for use by other programs, | ||
136 | including several commercial SSH implementations. | ||
137 | |||
138 | -F hostname | ||
139 | Search for the specified hostname in a known_hosts file, listing | ||
140 | any occurrences found. This option is useful to find hashed host | ||
141 | names or addresses and may also be used in conjunction with the | ||
142 | -H option to print found keys in a hashed format. | ||
143 | |||
144 | -f filename | ||
145 | Specifies the filename of the key file. | ||
146 | |||
147 | -G output_file | ||
148 | Generate candidate primes for DH-GEX. These primes must be | ||
149 | screened for safety (using the -T option) before use. | ||
150 | |||
151 | -g Use generic DNS format when printing fingerprint resource records | ||
152 | using the -r command. | ||
153 | |||
154 | -H Hash a known_hosts file. This replaces all hostnames and | ||
155 | addresses with hashed representations within the specified file; | ||
156 | the original content is moved to a file with a .old suffix. | ||
157 | These hashes may be used normally by ssh and sshd, but they do | ||
158 | not reveal identifying information should the file's contents be | ||
159 | disclosed. This option will not modify existing hashed hostnames | ||
160 | and is therefore safe to use on files that mix hashed and non- | ||
161 | hashed names. | ||
162 | |||
163 | -h When signing a key, create a host certificate instead of a user | ||
164 | certificate. Please see the CERTIFICATES section for details. | ||
165 | |||
166 | -I certificate_identity | ||
167 | Specify the key identity when signing a public key. Please see | ||
168 | the CERTIFICATES section for details. | ||
169 | |||
170 | -i This option will read an unencrypted private (or public) key file | ||
171 | in the format specified by the -m option and print an OpenSSH | ||
172 | compatible private (or public) key to stdout. This option allows | ||
173 | importing keys from other software, including several commercial | ||
174 | SSH implementations. The default import format is M-bM-^@M-^\RFC4716M-bM-^@M-^]. | ||
175 | |||
176 | -J num_lines | ||
177 | Exit after screening the specified number of lines while | ||
178 | performing DH candidate screening using the -T option. | ||
179 | |||
180 | -j start_line | ||
181 | Start screening at the specified line number while performing DH | ||
182 | candidate screening using the -T option. | ||
183 | |||
184 | -K checkpt | ||
185 | Write the last line processed to the file checkpt while | ||
186 | performing DH candidate screening using the -T option. This will | ||
187 | be used to skip lines in the input file that have already been | ||
188 | processed if the job is restarted. | ||
189 | |||
190 | -k Generate a KRL file. In this mode, ssh-keygen will generate a | ||
191 | KRL file at the location specified via the -f flag that revokes | ||
192 | every key or certificate presented on the command line. | ||
193 | Keys/certificates to be revoked may be specified by public key | ||
194 | file or using the format described in the KEY REVOCATION LISTS | ||
195 | section. | ||
196 | |||
197 | -L Prints the contents of a certificate. | ||
198 | |||
199 | -l Show fingerprint of specified public key file. Private RSA1 keys | ||
200 | are also supported. For RSA and DSA keys ssh-keygen tries to | ||
201 | find the matching public key file and prints its fingerprint. If | ||
202 | combined with -v, an ASCII art representation of the key is | ||
203 | supplied with the fingerprint. | ||
204 | |||
205 | -M memory | ||
206 | Specify the amount of memory to use (in megabytes) when | ||
207 | generating candidate moduli for DH-GEX. | ||
208 | |||
209 | -m key_format | ||
210 | Specify a key format for the -i (import) or -e (export) | ||
211 | conversion options. The supported key formats are: M-bM-^@M-^\RFC4716M-bM-^@M-^] | ||
212 | (RFC 4716/SSH2 public or private key), M-bM-^@M-^\PKCS8M-bM-^@M-^] (PEM PKCS8 public | ||
213 | key) or M-bM-^@M-^\PEMM-bM-^@M-^] (PEM public key). The default conversion format is | ||
214 | M-bM-^@M-^\RFC4716M-bM-^@M-^]. | ||
215 | |||
216 | -N new_passphrase | ||
217 | Provides the new passphrase. | ||
218 | |||
219 | -n principals | ||
220 | Specify one or more principals (user or host names) to be | ||
221 | included in a certificate when signing a key. Multiple | ||
222 | principals may be specified, separated by commas. Please see the | ||
223 | CERTIFICATES section for details. | ||
224 | |||
225 | -O option | ||
226 | Specify a certificate option when signing a key. This option may | ||
227 | be specified multiple times. Please see the CERTIFICATES section | ||
228 | for details. The options that are valid for user certificates | ||
229 | are: | ||
230 | |||
231 | clear Clear all enabled permissions. This is useful for | ||
232 | clearing the default set of permissions so permissions | ||
233 | may be added individually. | ||
234 | |||
235 | force-command=command | ||
236 | Forces the execution of command instead of any shell or | ||
237 | command specified by the user when the certificate is | ||
238 | used for authentication. | ||
239 | |||
240 | no-agent-forwarding | ||
241 | Disable ssh-agent(1) forwarding (permitted by default). | ||
242 | |||
243 | no-port-forwarding | ||
244 | Disable port forwarding (permitted by default). | ||
245 | |||
246 | no-pty Disable PTY allocation (permitted by default). | ||
247 | |||
248 | no-user-rc | ||
249 | Disable execution of ~/.ssh/rc by sshd(8) (permitted by | ||
250 | default). | ||
251 | |||
252 | no-x11-forwarding | ||
253 | Disable X11 forwarding (permitted by default). | ||
254 | |||
255 | permit-agent-forwarding | ||
256 | Allows ssh-agent(1) forwarding. | ||
257 | |||
258 | permit-port-forwarding | ||
259 | Allows port forwarding. | ||
260 | |||
261 | permit-pty | ||
262 | Allows PTY allocation. | ||
263 | |||
264 | permit-user-rc | ||
265 | Allows execution of ~/.ssh/rc by sshd(8). | ||
266 | |||
267 | permit-x11-forwarding | ||
268 | Allows X11 forwarding. | ||
269 | |||
270 | source-address=address_list | ||
271 | Restrict the source addresses from which the certificate | ||
272 | is considered valid. The address_list is a comma- | ||
273 | separated list of one or more address/netmask pairs in | ||
274 | CIDR format. | ||
275 | |||
276 | At present, no options are valid for host keys. | ||
277 | |||
278 | -o Causes ssh-keygen to save SSH protocol 2 private keys using the | ||
279 | new OpenSSH format rather than the more compatible PEM format. | ||
280 | The new format has increased resistance to brute-force password | ||
281 | cracking but is not supported by versions of OpenSSH prior to | ||
282 | 6.5. Ed25519 keys always use the new private key format. | ||
283 | |||
284 | -P passphrase | ||
285 | Provides the (old) passphrase. | ||
286 | |||
287 | -p Requests changing the passphrase of a private key file instead of | ||
288 | creating a new private key. The program will prompt for the file | ||
289 | containing the private key, for the old passphrase, and twice for | ||
290 | the new passphrase. | ||
291 | |||
292 | -Q Test whether keys have been revoked in a KRL. | ||
293 | |||
294 | -q Silence ssh-keygen. | ||
295 | |||
296 | -R hostname | ||
297 | Removes all keys belonging to hostname from a known_hosts file. | ||
298 | This option is useful to delete hashed hosts (see the -H option | ||
299 | above). | ||
300 | |||
301 | -r hostname | ||
302 | Print the SSHFP fingerprint resource record named hostname for | ||
303 | the specified public key file. | ||
304 | |||
305 | -S start | ||
306 | Specify start point (in hex) when generating candidate moduli for | ||
307 | DH-GEX. | ||
308 | |||
309 | -s ca_key | ||
310 | Certify (sign) a public key using the specified CA key. Please | ||
311 | see the CERTIFICATES section for details. | ||
312 | |||
313 | When generating a KRL, -s specifies a path to a CA public key | ||
314 | file used to revoke certificates directly by key ID or serial | ||
315 | number. See the KEY REVOCATION LISTS section for details. | ||
316 | |||
317 | -T output_file | ||
318 | Test DH group exchange candidate primes (generated using the -G | ||
319 | option) for safety. | ||
320 | |||
321 | -t dsa | ecdsa | ed25519 | rsa | rsa1 | ||
322 | Specifies the type of key to create. The possible values are | ||
323 | 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 | ||
324 | M-bM-^@M-^\rsaM-bM-^@M-^] for protocol version 2. | ||
325 | |||
326 | -u Update a KRL. When specified with -k, keys listed via the | ||
327 | command line are added to the existing KRL rather than a new KRL | ||
328 | being created. | ||
329 | |||
330 | -V validity_interval | ||
331 | Specify a validity interval when signing a certificate. A | ||
332 | validity interval may consist of a single time, indicating that | ||
333 | the certificate is valid beginning now and expiring at that time, | ||
334 | or may consist of two times separated by a colon to indicate an | ||
335 | explicit time interval. The start time may be specified as a | ||
336 | date in YYYYMMDD format, a time in YYYYMMDDHHMMSS format or a | ||
337 | relative time (to the current time) consisting of a minus sign | ||
338 | followed by a relative time in the format described in the TIME | ||
339 | FORMATS section of sshd_config(5). The end time may be specified | ||
340 | as a YYYYMMDD date, a YYYYMMDDHHMMSS time or a relative time | ||
341 | starting with a plus character. | ||
342 | |||
343 | For example: M-bM-^@M-^\+52w1dM-bM-^@M-^] (valid from now to 52 weeks and one day | ||
344 | from now), M-bM-^@M-^\-4w:+4wM-bM-^@M-^] (valid from four weeks ago to four weeks | ||
345 | from now), M-bM-^@M-^\20100101123000:20110101123000M-bM-^@M-^] (valid from 12:30 PM, | ||
346 | January 1st, 2010 to 12:30 PM, January 1st, 2011), M-bM-^@M-^\-1d:20110101M-bM-^@M-^] | ||
347 | (valid from yesterday to midnight, January 1st, 2011). | ||
348 | |||
349 | -v Verbose mode. Causes ssh-keygen to print debugging messages | ||
350 | about its progress. This is helpful for debugging moduli | ||
351 | generation. Multiple -v options increase the verbosity. The | ||
352 | maximum is 3. | ||
353 | |||
354 | -W generator | ||
355 | Specify desired generator when testing candidate moduli for DH- | ||
356 | GEX. | ||
357 | |||
358 | -y This option will read a private OpenSSH format file and print an | ||
359 | OpenSSH public key to stdout. | ||
360 | |||
361 | -z serial_number | ||
362 | Specifies a serial number to be embedded in the certificate to | ||
363 | distinguish this certificate from others from the same CA. The | ||
364 | default serial number is zero. | ||
365 | |||
366 | When generating a KRL, the -z flag is used to specify a KRL | ||
367 | version number. | ||
368 | |||
369 | MODULI GENERATION | ||
370 | ssh-keygen may be used to generate groups for the Diffie-Hellman Group | ||
371 | Exchange (DH-GEX) protocol. Generating these groups is a two-step | ||
372 | process: first, candidate primes are generated using a fast, but memory | ||
373 | intensive process. These candidate primes are then tested for | ||
374 | suitability (a CPU-intensive process). | ||
375 | |||
376 | Generation of primes is performed using the -G option. The desired | ||
377 | length of the primes may be specified by the -b option. For example: | ||
378 | |||
379 | # ssh-keygen -G moduli-2048.candidates -b 2048 | ||
380 | |||
381 | By default, the search for primes begins at a random point in the desired | ||
382 | length range. This may be overridden using the -S option, which | ||
383 | specifies a different start point (in hex). | ||
384 | |||
385 | Once a set of candidates have been generated, they must be screened for | ||
386 | suitability. This may be performed using the -T option. In this mode | ||
387 | ssh-keygen will read candidates from standard input (or a file specified | ||
388 | using the -f option). For example: | ||
389 | |||
390 | # ssh-keygen -T moduli-2048 -f moduli-2048.candidates | ||
391 | |||
392 | By default, each candidate will be subjected to 100 primality tests. | ||
393 | This may be overridden using the -a option. The DH generator value will | ||
394 | be chosen automatically for the prime under consideration. If a specific | ||
395 | generator is desired, it may be requested using the -W option. Valid | ||
396 | generator values are 2, 3, and 5. | ||
397 | |||
398 | Screened DH groups may be installed in /etc/moduli. It is important that | ||
399 | this file contains moduli of a range of bit lengths and that both ends of | ||
400 | a connection share common moduli. | ||
401 | |||
402 | CERTIFICATES | ||
403 | ssh-keygen supports signing of keys to produce certificates that may be | ||
404 | used for user or host authentication. Certificates consist of a public | ||
405 | key, some identity information, zero or more principal (user or host) | ||
406 | names and a set of options that are signed by a Certification Authority | ||
407 | (CA) key. Clients or servers may then trust only the CA key and verify | ||
408 | its signature on a certificate rather than trusting many user/host keys. | ||
409 | Note that OpenSSH certificates are a different, and much simpler, format | ||
410 | to the X.509 certificates used in ssl(8). | ||
411 | |||
412 | ssh-keygen supports two types of certificates: user and host. User | ||
413 | certificates authenticate users to servers, whereas host certificates | ||
414 | authenticate server hosts to users. To generate a user certificate: | ||
415 | |||
416 | $ ssh-keygen -s /path/to/ca_key -I key_id /path/to/user_key.pub | ||
417 | |||
418 | The resultant certificate will be placed in /path/to/user_key-cert.pub. | ||
419 | A host certificate requires the -h option: | ||
420 | |||
421 | $ ssh-keygen -s /path/to/ca_key -I key_id -h /path/to/host_key.pub | ||
422 | |||
423 | The host certificate will be output to /path/to/host_key-cert.pub. | ||
424 | |||
425 | It is possible to sign using a CA key stored in a PKCS#11 token by | ||
426 | providing the token library using -D and identifying the CA key by | ||
427 | providing its public half as an argument to -s: | ||
428 | |||
429 | $ ssh-keygen -s ca_key.pub -D libpkcs11.so -I key_id host_key.pub | ||
430 | |||
431 | In all cases, key_id is a "key identifier" that is logged by the server | ||
432 | when the certificate is used for authentication. | ||
433 | |||
434 | Certificates may be limited to be valid for a set of principal | ||
435 | (user/host) names. By default, generated certificates are valid for all | ||
436 | users or hosts. To generate a certificate for a specified set of | ||
437 | principals: | ||
438 | |||
439 | $ ssh-keygen -s ca_key -I key_id -n user1,user2 user_key.pub | ||
440 | $ ssh-keygen -s ca_key -I key_id -h -n host.domain user_key.pub | ||
441 | |||
442 | Additional limitations on the validity and use of user certificates may | ||
443 | be specified through certificate options. A certificate option may | ||
444 | disable features of the SSH session, may be valid only when presented | ||
445 | from particular source addresses or may force the use of a specific | ||
446 | command. For a list of valid certificate options, see the documentation | ||
447 | for the -O option above. | ||
448 | |||
449 | Finally, certificates may be defined with a validity lifetime. The -V | ||
450 | option allows specification of certificate start and end times. A | ||
451 | certificate that is presented at a time outside this range will not be | ||
452 | considered valid. By default, certificates are valid from UNIX Epoch to | ||
453 | the distant future. | ||
454 | |||
455 | For certificates to be used for user or host authentication, the CA | ||
456 | public key must be trusted by sshd(8) or ssh(1). Please refer to those | ||
457 | manual pages for details. | ||
458 | |||
459 | KEY REVOCATION LISTS | ||
460 | ssh-keygen is able to manage OpenSSH format Key Revocation Lists (KRLs). | ||
461 | These binary files specify keys or certificates to be revoked using a | ||
462 | compact format, taking as little as one bit per certificate if they are | ||
463 | being revoked by serial number. | ||
464 | |||
465 | KRLs may be generated using the -k flag. This option reads one or more | ||
466 | files from the command line and generates a new KRL. The files may | ||
467 | either contain a KRL specification (see below) or public keys, listed one | ||
468 | per line. Plain public keys are revoked by listing their hash or | ||
469 | contents in the KRL and certificates revoked by serial number or key ID | ||
470 | (if the serial is zero or not available). | ||
471 | |||
472 | Revoking keys using a KRL specification offers explicit control over the | ||
473 | types of record used to revoke keys and may be used to directly revoke | ||
474 | certificates by serial number or key ID without having the complete | ||
475 | original certificate on hand. A KRL specification consists of lines | ||
476 | containing one of the following directives followed by a colon and some | ||
477 | directive-specific information. | ||
478 | |||
479 | serial: serial_number[-serial_number] | ||
480 | Revokes a certificate with the specified serial number. Serial | ||
481 | numbers are 64-bit values, not including zero and may be | ||
482 | expressed in decimal, hex or octal. If two serial numbers are | ||
483 | specified separated by a hyphen, then the range of serial numbers | ||
484 | including and between each is revoked. The CA key must have been | ||
485 | specified on the ssh-keygen command line using the -s option. | ||
486 | |||
487 | id: key_id | ||
488 | Revokes a certificate with the specified key ID string. The CA | ||
489 | key must have been specified on the ssh-keygen command line using | ||
490 | the -s option. | ||
491 | |||
492 | key: public_key | ||
493 | Revokes the specified key. If a certificate is listed, then it | ||
494 | is revoked as a plain public key. | ||
495 | |||
496 | sha1: public_key | ||
497 | Revokes the specified key by its SHA1 hash. | ||
498 | |||
499 | KRLs may be updated using the -u flag in addition to -k. When this | ||
500 | option is specified, keys listed via the command line are merged into the | ||
501 | KRL, adding to those already there. | ||
502 | |||
503 | It is also possible, given a KRL, to test whether it revokes a particular | ||
504 | key (or keys). The -Q flag will query an existing KRL, testing each key | ||
505 | specified on the commandline. If any key listed on the command line has | ||
506 | been revoked (or an error encountered) then ssh-keygen will exit with a | ||
507 | non-zero exit status. A zero exit status will only be returned if no key | ||
508 | was revoked. | ||
509 | |||
510 | FILES | ||
511 | ~/.ssh/identity | ||
512 | Contains the protocol version 1 RSA authentication identity of | ||
513 | the user. This file should not be readable by anyone but the | ||
514 | user. It is possible to specify a passphrase when generating the | ||
515 | key; that passphrase will be used to encrypt the private part of | ||
516 | this file using 3DES. This file is not automatically accessed by | ||
517 | ssh-keygen but it is offered as the default file for the private | ||
518 | key. ssh(1) will read this file when a login attempt is made. | ||
519 | |||
520 | ~/.ssh/identity.pub | ||
521 | Contains the protocol version 1 RSA public key for | ||
522 | authentication. The contents of this file should be added to | ||
523 | ~/.ssh/authorized_keys on all machines where the user wishes to | ||
524 | log in using RSA authentication. There is no need to keep the | ||
525 | contents of this file secret. | ||
526 | |||
527 | ~/.ssh/id_dsa | ||
528 | ~/.ssh/id_ecdsa | ||
529 | ~/.ssh/id_ed25519 | ||
530 | ~/.ssh/id_rsa | ||
531 | Contains the protocol version 2 DSA, ECDSA, Ed25519 or RSA | ||
532 | authentication identity of the user. This file should not be | ||
533 | readable by anyone but the user. It is possible to specify a | ||
534 | passphrase when generating the key; that passphrase will be used | ||
535 | to encrypt the private part of this file using 128-bit AES. This | ||
536 | file is not automatically accessed by ssh-keygen but it is | ||
537 | offered as the default file for the private key. ssh(1) will | ||
538 | read this file when a login attempt is made. | ||
539 | |||
540 | ~/.ssh/id_dsa.pub | ||
541 | ~/.ssh/id_ecdsa.pub | ||
542 | ~/.ssh/id_ed25519.pub | ||
543 | ~/.ssh/id_rsa.pub | ||
544 | Contains the protocol version 2 DSA, ECDSA, Ed25519 or RSA public | ||
545 | key for authentication. The contents of this file should be | ||
546 | added to ~/.ssh/authorized_keys on all machines where the user | ||
547 | wishes to log in using public key authentication. There is no | ||
548 | need to keep the contents of this file secret. | ||
549 | |||
550 | /etc/moduli | ||
551 | Contains Diffie-Hellman groups used for DH-GEX. The file format | ||
552 | is described in moduli(5). | ||
553 | |||
554 | SEE ALSO | ||
555 | ssh(1), ssh-add(1), ssh-agent(1), moduli(5), sshd(8) | ||
556 | |||
557 | The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006. | ||
558 | |||
559 | AUTHORS | ||
560 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
561 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
562 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
563 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
564 | versions 1.5 and 2.0. | ||
565 | |||
566 | OpenBSD 5.7 February 24, 2015 OpenBSD 5.7 | ||
diff --git a/ssh-keyscan.0 b/ssh-keyscan.0 new file mode 100644 index 000000000..fe7aa8559 --- /dev/null +++ b/ssh-keyscan.0 | |||
@@ -0,0 +1,109 @@ | |||
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 [-46Hv] [-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 | -f file | ||
30 | Read hosts or M-bM-^@M-^\addrlist namelistM-bM-^@M-^] pairs from file, one per line. | ||
31 | If - is supplied instead of a filename, ssh-keyscan will read | ||
32 | hosts or M-bM-^@M-^\addrlist namelistM-bM-^@M-^] pairs from the standard input. | ||
33 | |||
34 | -H Hash all hostnames and addresses in the output. Hashed names may | ||
35 | be used normally by ssh and sshd, but they do not reveal | ||
36 | identifying information should the file's contents be disclosed. | ||
37 | |||
38 | -p port | ||
39 | Port to connect to on the remote host. | ||
40 | |||
41 | -T timeout | ||
42 | Set the timeout for connection attempts. If timeout seconds have | ||
43 | elapsed since a connection was initiated to a host or since the | ||
44 | last time anything was read from that host, then the connection | ||
45 | is closed and the host in question considered unavailable. | ||
46 | Default is 5 seconds. | ||
47 | |||
48 | -t type | ||
49 | Specifies the type of the key to fetch from the scanned hosts. | ||
50 | The possible values are M-bM-^@M-^\rsa1M-bM-^@M-^] for protocol version 1 and M-bM-^@M-^\dsaM-bM-^@M-^], | ||
51 | M-bM-^@M-^\ecdsaM-bM-^@M-^], M-bM-^@M-^\ed25519M-bM-^@M-^], or M-bM-^@M-^\rsaM-bM-^@M-^] for protocol version 2. Multiple | ||
52 | values may be specified by separating them with commas. The | ||
53 | default is to fetch M-bM-^@M-^\rsaM-bM-^@M-^], M-bM-^@M-^\ecdsaM-bM-^@M-^], and M-bM-^@M-^\ed25519M-bM-^@M-^] keys. | ||
54 | |||
55 | -v Verbose mode. Causes ssh-keyscan to print debugging messages | ||
56 | about its progress. | ||
57 | |||
58 | SECURITY | ||
59 | If an ssh_known_hosts file is constructed using ssh-keyscan without | ||
60 | verifying the keys, users will be vulnerable to man in the middle | ||
61 | attacks. On the other hand, if the security model allows such a risk, | ||
62 | ssh-keyscan can help in the detection of tampered keyfiles or man in the | ||
63 | middle attacks which have begun after the ssh_known_hosts file was | ||
64 | created. | ||
65 | |||
66 | FILES | ||
67 | Input format: | ||
68 | |||
69 | 1.2.3.4,1.2.4.4 name.my.domain,name,n.my.domain,n,1.2.3.4,1.2.4.4 | ||
70 | |||
71 | Output format for RSA1 keys: | ||
72 | |||
73 | host-or-namelist bits exponent modulus | ||
74 | |||
75 | Output format for RSA, DSA, ECDSA, and Ed25519 keys: | ||
76 | |||
77 | host-or-namelist keytype base64-encoded-key | ||
78 | |||
79 | Where keytype is either M-bM-^@M-^\ecdsa-sha2-nistp256M-bM-^@M-^], M-bM-^@M-^\ecdsa-sha2-nistp384M-bM-^@M-^], | ||
80 | 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-^]. | ||
81 | |||
82 | /etc/ssh/ssh_known_hosts | ||
83 | |||
84 | EXAMPLES | ||
85 | Print the rsa host key for machine hostname: | ||
86 | |||
87 | $ ssh-keyscan hostname | ||
88 | |||
89 | Find all hosts from the file ssh_hosts which have new or different keys | ||
90 | from those in the sorted file ssh_known_hosts: | ||
91 | |||
92 | $ ssh-keyscan -t rsa,dsa,ecdsa,ed25519 -f ssh_hosts | \ | ||
93 | sort -u - ssh_known_hosts | diff ssh_known_hosts - | ||
94 | |||
95 | SEE ALSO | ||
96 | ssh(1), sshd(8) | ||
97 | |||
98 | AUTHORS | ||
99 | David Mazieres <dm@lcs.mit.edu> wrote the initial version, and Wayne | ||
100 | Davison <wayned@users.sourceforge.net> added support for protocol version | ||
101 | 2. | ||
102 | |||
103 | BUGS | ||
104 | It generates "Connection closed by remote host" messages on the consoles | ||
105 | of all the machines it scans if the server is older than version 2.9. | ||
106 | This is because it opens a connection to the ssh port, reads the public | ||
107 | key, and drops the connection as soon as it gets the key. | ||
108 | |||
109 | OpenBSD 5.7 August 30, 2014 OpenBSD 5.7 | ||
diff --git a/ssh-keysign.0 b/ssh-keysign.0 new file mode 100644 index 000000000..b06107617 --- /dev/null +++ b/ssh-keysign.0 | |||
@@ -0,0 +1,53 @@ | |||
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 with SSH | ||
12 | protocol version 2. | ||
13 | |||
14 | ssh-keysign is disabled by default and can only be enabled in the global | ||
15 | client configuration file /etc/ssh/ssh_config by setting EnableSSHKeysign | ||
16 | to M-bM-^@M-^\yesM-bM-^@M-^]. | ||
17 | |||
18 | ssh-keysign is not intended to be invoked by the user, but from ssh(1). | ||
19 | See ssh(1) and sshd(8) for more information about host-based | ||
20 | authentication. | ||
21 | |||
22 | FILES | ||
23 | /etc/ssh/ssh_config | ||
24 | Controls whether ssh-keysign is enabled. | ||
25 | |||
26 | /etc/ssh/ssh_host_dsa_key | ||
27 | /etc/ssh/ssh_host_ecdsa_key | ||
28 | /etc/ssh/ssh_host_ed25519_key | ||
29 | /etc/ssh/ssh_host_rsa_key | ||
30 | These files contain the private parts of the host keys used to | ||
31 | generate the digital signature. They should be owned by root, | ||
32 | readable only by root, and not accessible to others. Since they | ||
33 | are readable only by root, ssh-keysign must be set-uid root if | ||
34 | host-based authentication is used. | ||
35 | |||
36 | /etc/ssh/ssh_host_dsa_key-cert.pub | ||
37 | /etc/ssh/ssh_host_ecdsa_key-cert.pub | ||
38 | /etc/ssh/ssh_host_ed25519_key-cert.pub | ||
39 | /etc/ssh/ssh_host_rsa_key-cert.pub | ||
40 | If these files exist they are assumed to contain public | ||
41 | certificate information corresponding with the private keys | ||
42 | above. | ||
43 | |||
44 | SEE ALSO | ||
45 | ssh(1), ssh-keygen(1), ssh_config(5), sshd(8) | ||
46 | |||
47 | HISTORY | ||
48 | ssh-keysign first appeared in OpenBSD 3.2. | ||
49 | |||
50 | AUTHORS | ||
51 | Markus Friedl <markus@openbsd.org> | ||
52 | |||
53 | OpenBSD 5.7 December 7, 2013 OpenBSD 5.7 | ||
diff --git a/ssh-pkcs11-helper.0 b/ssh-pkcs11-helper.0 new file mode 100644 index 000000000..a4d6dd4c0 --- /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 5.7 July 16, 2013 OpenBSD 5.7 | ||
@@ -0,0 +1,960 @@ | |||
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 | [-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec] | ||
11 | [-O ctl_cmd] [-o option] [-p port] | ||
12 | [-Q cipher | cipher-auth | mac | kex | key | protocol-version] | ||
13 | [-R [bind_address:]port:host:hostport] [-S ctl_path] [-W host:port] | ||
14 | [-w local_tun[:remote_tun]] [user@]hostname [command] | ||
15 | |||
16 | DESCRIPTION | ||
17 | ssh (SSH client) is a program for logging into a remote machine and for | ||
18 | executing commands on a remote machine. It is intended to replace rlogin | ||
19 | and rsh, and provide secure encrypted communications between two | ||
20 | untrusted hosts over an insecure network. X11 connections, arbitrary TCP | ||
21 | ports and UNIX-domain sockets can also be forwarded over the secure | ||
22 | channel. | ||
23 | |||
24 | ssh connects and logs into the specified hostname (with optional user | ||
25 | name). The user must prove his/her identity to the remote machine using | ||
26 | one of several methods depending on the protocol version used (see | ||
27 | below). | ||
28 | |||
29 | If command is specified, it is executed on the remote host instead of a | ||
30 | login shell. | ||
31 | |||
32 | The options are as follows: | ||
33 | |||
34 | -1 Forces ssh to try protocol version 1 only. | ||
35 | |||
36 | -2 Forces ssh to try protocol version 2 only. | ||
37 | |||
38 | -4 Forces ssh to use IPv4 addresses only. | ||
39 | |||
40 | -6 Forces ssh to use IPv6 addresses only. | ||
41 | |||
42 | -A Enables forwarding of the authentication agent connection. This | ||
43 | can also be specified on a per-host basis in a configuration | ||
44 | file. | ||
45 | |||
46 | Agent forwarding should be enabled with caution. Users with the | ||
47 | ability to bypass file permissions on the remote host (for the | ||
48 | agent's UNIX-domain socket) can access the local agent through | ||
49 | the forwarded connection. An attacker cannot obtain key material | ||
50 | from the agent, however they can perform operations on the keys | ||
51 | that enable them to authenticate using the identities loaded into | ||
52 | the agent. | ||
53 | |||
54 | -a Disables forwarding of the authentication agent connection. | ||
55 | |||
56 | -b bind_address | ||
57 | Use bind_address on the local machine as the source address of | ||
58 | the connection. Only useful on systems with more than one | ||
59 | address. | ||
60 | |||
61 | -C Requests compression of all data (including stdin, stdout, | ||
62 | stderr, and data for forwarded X11, TCP and UNIX-domain | ||
63 | connections). The compression algorithm is the same used by | ||
64 | gzip(1), and the M-bM-^@M-^\levelM-bM-^@M-^] can be controlled by the | ||
65 | CompressionLevel option for protocol version 1. Compression is | ||
66 | desirable on modem lines and other slow connections, but will | ||
67 | only slow down things on fast networks. The default value can be | ||
68 | set on a host-by-host basis in the configuration files; see the | ||
69 | Compression option. | ||
70 | |||
71 | -c cipher_spec | ||
72 | Selects the cipher specification for encrypting the session. | ||
73 | |||
74 | Protocol version 1 allows specification of a single cipher. The | ||
75 | supported values are M-bM-^@M-^\3desM-bM-^@M-^], M-bM-^@M-^\blowfishM-bM-^@M-^], and M-bM-^@M-^\desM-bM-^@M-^]. For protocol | ||
76 | version 2, cipher_spec is a comma-separated list of ciphers | ||
77 | listed in order of preference. See the Ciphers keyword in | ||
78 | ssh_config(5) for more information. | ||
79 | |||
80 | -D [bind_address:]port | ||
81 | Specifies a local M-bM-^@M-^\dynamicM-bM-^@M-^] application-level port forwarding. | ||
82 | This works by allocating a socket to listen to port on the local | ||
83 | side, optionally bound to the specified bind_address. Whenever a | ||
84 | connection is made to this port, the connection is forwarded over | ||
85 | the secure channel, and the application protocol is then used to | ||
86 | determine where to connect to from the remote machine. Currently | ||
87 | the SOCKS4 and SOCKS5 protocols are supported, and ssh will act | ||
88 | as a SOCKS server. Only root can forward privileged ports. | ||
89 | Dynamic port forwardings can also be specified in the | ||
90 | configuration file. | ||
91 | |||
92 | IPv6 addresses can be specified by enclosing the address in | ||
93 | square brackets. Only the superuser can forward privileged | ||
94 | ports. By default, the local port is bound in accordance with | ||
95 | the GatewayPorts setting. However, an explicit bind_address may | ||
96 | be used to bind the connection to a specific address. The | ||
97 | bind_address of M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the listening port be | ||
98 | bound for local use only, while an empty address or M-bM-^@M-^X*M-bM-^@M-^Y indicates | ||
99 | that the port should be available from all interfaces. | ||
100 | |||
101 | -E log_file | ||
102 | Append debug logs to log_file instead of standard error. | ||
103 | |||
104 | -e escape_char | ||
105 | Sets the escape character for sessions with a pty (default: M-bM-^@M-^X~M-bM-^@M-^Y). | ||
106 | The escape character is only recognized at the beginning of a | ||
107 | line. The escape character followed by a dot (M-bM-^@M-^X.M-bM-^@M-^Y) closes the | ||
108 | connection; followed by control-Z suspends the connection; and | ||
109 | followed by itself sends the escape character once. Setting the | ||
110 | character to M-bM-^@M-^\noneM-bM-^@M-^] disables any escapes and makes the session | ||
111 | fully transparent. | ||
112 | |||
113 | -F configfile | ||
114 | Specifies an alternative per-user configuration file. If a | ||
115 | configuration file is given on the command line, the system-wide | ||
116 | configuration file (/etc/ssh/ssh_config) will be ignored. The | ||
117 | default for the per-user configuration file is ~/.ssh/config. | ||
118 | |||
119 | -f Requests ssh to go to background just before command execution. | ||
120 | This is useful if ssh is going to ask for passwords or | ||
121 | passphrases, but the user wants it in the background. This | ||
122 | implies -n. The recommended way to start X11 programs at a | ||
123 | remote site is with something like ssh -f host xterm. | ||
124 | |||
125 | If the ExitOnForwardFailure configuration option is set to M-bM-^@M-^\yesM-bM-^@M-^], | ||
126 | then a client started with -f will wait for all remote port | ||
127 | forwards to be successfully established before placing itself in | ||
128 | the background. | ||
129 | |||
130 | -G Causes ssh to print its configuration after evaluating Host and | ||
131 | Match blocks and exit. | ||
132 | |||
133 | -g Allows remote hosts to connect to local forwarded ports. If used | ||
134 | on a multiplexed connection, then this option must be specified | ||
135 | on the master process. | ||
136 | |||
137 | -I pkcs11 | ||
138 | Specify the PKCS#11 shared library ssh should use to communicate | ||
139 | with a PKCS#11 token providing the user's private RSA key. | ||
140 | |||
141 | -i identity_file | ||
142 | Selects a file from which the identity (private key) for public | ||
143 | key authentication is read. The default is ~/.ssh/identity for | ||
144 | protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, | ||
145 | ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2. | ||
146 | Identity files may also be specified on a per-host basis in the | ||
147 | configuration file. It is possible to have multiple -i options | ||
148 | (and multiple identities specified in configuration files). ssh | ||
149 | will also try to load certificate information from the filename | ||
150 | obtained by appending -cert.pub to identity filenames. | ||
151 | |||
152 | -K Enables GSSAPI-based authentication and forwarding (delegation) | ||
153 | of GSSAPI credentials to the server. | ||
154 | |||
155 | -k Disables forwarding (delegation) of GSSAPI credentials to the | ||
156 | server. | ||
157 | |||
158 | -L [bind_address:]port:host:hostport | ||
159 | Specifies that the given port on the local (client) host is to be | ||
160 | forwarded to the given host and port on the remote side. This | ||
161 | works by allocating a socket to listen to port on the local side, | ||
162 | optionally bound to the specified bind_address. Whenever a | ||
163 | connection is made to this port, the connection is forwarded over | ||
164 | the secure channel, and a connection is made to host port | ||
165 | hostport from the remote machine. Port forwardings can also be | ||
166 | specified in the configuration file. IPv6 addresses can be | ||
167 | specified by enclosing the address in square brackets. Only the | ||
168 | superuser can forward privileged ports. By default, the local | ||
169 | port is bound in accordance with the GatewayPorts setting. | ||
170 | However, an explicit bind_address may be used to bind the | ||
171 | connection to a specific address. The bind_address of | ||
172 | M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the listening port be bound for local | ||
173 | use only, while an empty address or M-bM-^@M-^X*M-bM-^@M-^Y indicates that the port | ||
174 | should be available from all interfaces. | ||
175 | |||
176 | -l login_name | ||
177 | Specifies the user to log in as on the remote machine. This also | ||
178 | may be specified on a per-host basis in the configuration file. | ||
179 | |||
180 | -M Places the ssh client into M-bM-^@M-^\masterM-bM-^@M-^] mode for connection sharing. | ||
181 | Multiple -M options places ssh into M-bM-^@M-^\masterM-bM-^@M-^] mode with | ||
182 | confirmation required before slave connections are accepted. | ||
183 | Refer to the description of ControlMaster in ssh_config(5) for | ||
184 | details. | ||
185 | |||
186 | -m mac_spec | ||
187 | Additionally, for protocol version 2 a comma-separated list of | ||
188 | MAC (message authentication code) algorithms can be specified in | ||
189 | order of preference. See the MACs keyword for more information. | ||
190 | |||
191 | -N Do not execute a remote command. This is useful for just | ||
192 | forwarding ports (protocol version 2 only). | ||
193 | |||
194 | -n Redirects stdin from /dev/null (actually, prevents reading from | ||
195 | stdin). This must be used when ssh is run in the background. A | ||
196 | common trick is to use this to run X11 programs on a remote | ||
197 | machine. For example, ssh -n shadows.cs.hut.fi emacs & will | ||
198 | start an emacs on shadows.cs.hut.fi, and the X11 connection will | ||
199 | be automatically forwarded over an encrypted channel. The ssh | ||
200 | program will be put in the background. (This does not work if | ||
201 | ssh needs to ask for a password or passphrase; see also the -f | ||
202 | option.) | ||
203 | |||
204 | -O ctl_cmd | ||
205 | Control an active connection multiplexing master process. When | ||
206 | the -O option is specified, the ctl_cmd argument is interpreted | ||
207 | and passed to the master process. Valid commands are: M-bM-^@M-^\checkM-bM-^@M-^] | ||
208 | (check that the master process is running), M-bM-^@M-^\forwardM-bM-^@M-^] (request | ||
209 | forwardings without command execution), M-bM-^@M-^\cancelM-bM-^@M-^] (cancel | ||
210 | forwardings), M-bM-^@M-^\exitM-bM-^@M-^] (request the master to exit), and M-bM-^@M-^\stopM-bM-^@M-^] | ||
211 | (request the master to stop accepting further multiplexing | ||
212 | requests). | ||
213 | |||
214 | -o option | ||
215 | Can be used to give options in the format used in the | ||
216 | configuration file. This is useful for specifying options for | ||
217 | which there is no separate command-line flag. For full details | ||
218 | of the options listed below, and their possible values, see | ||
219 | ssh_config(5). | ||
220 | |||
221 | AddressFamily | ||
222 | BatchMode | ||
223 | BindAddress | ||
224 | CanonicalDomains | ||
225 | CanonicalizeFallbackLocal | ||
226 | CanonicalizeHostname | ||
227 | CanonicalizeMaxDots | ||
228 | CanonicalizePermittedCNAMEs | ||
229 | ChallengeResponseAuthentication | ||
230 | CheckHostIP | ||
231 | Cipher | ||
232 | Ciphers | ||
233 | ClearAllForwardings | ||
234 | Compression | ||
235 | CompressionLevel | ||
236 | ConnectionAttempts | ||
237 | ConnectTimeout | ||
238 | ControlMaster | ||
239 | ControlPath | ||
240 | ControlPersist | ||
241 | DynamicForward | ||
242 | EscapeChar | ||
243 | ExitOnForwardFailure | ||
244 | FingerprintHash | ||
245 | ForwardAgent | ||
246 | ForwardX11 | ||
247 | ForwardX11Timeout | ||
248 | ForwardX11Trusted | ||
249 | GatewayPorts | ||
250 | GlobalKnownHostsFile | ||
251 | GSSAPIAuthentication | ||
252 | GSSAPIDelegateCredentials | ||
253 | HashKnownHosts | ||
254 | Host | ||
255 | HostbasedAuthentication | ||
256 | HostbasedKeyTypes | ||
257 | HostKeyAlgorithms | ||
258 | HostKeyAlias | ||
259 | HostName | ||
260 | IdentityFile | ||
261 | IdentitiesOnly | ||
262 | IPQoS | ||
263 | KbdInteractiveAuthentication | ||
264 | KbdInteractiveDevices | ||
265 | KexAlgorithms | ||
266 | LocalCommand | ||
267 | LocalForward | ||
268 | LogLevel | ||
269 | MACs | ||
270 | Match | ||
271 | NoHostAuthenticationForLocalhost | ||
272 | NumberOfPasswordPrompts | ||
273 | PasswordAuthentication | ||
274 | PermitLocalCommand | ||
275 | PKCS11Provider | ||
276 | Port | ||
277 | PreferredAuthentications | ||
278 | Protocol | ||
279 | ProxyCommand | ||
280 | ProxyUseFdpass | ||
281 | PubkeyAuthentication | ||
282 | RekeyLimit | ||
283 | RemoteForward | ||
284 | RequestTTY | ||
285 | RhostsRSAAuthentication | ||
286 | RSAAuthentication | ||
287 | SendEnv | ||
288 | ServerAliveInterval | ||
289 | ServerAliveCountMax | ||
290 | StreamLocalBindMask | ||
291 | StreamLocalBindUnlink | ||
292 | StrictHostKeyChecking | ||
293 | TCPKeepAlive | ||
294 | Tunnel | ||
295 | TunnelDevice | ||
296 | UpdateHostKeys | ||
297 | UsePrivilegedPort | ||
298 | User | ||
299 | UserKnownHostsFile | ||
300 | VerifyHostKeyDNS | ||
301 | VisualHostKey | ||
302 | XAuthLocation | ||
303 | |||
304 | -p port | ||
305 | Port to connect to on the remote host. This can be specified on | ||
306 | a per-host basis in the configuration file. | ||
307 | |||
308 | -Q cipher | cipher-auth | mac | kex | key | protocol-version | ||
309 | Queries ssh for the algorithms supported for the specified | ||
310 | version 2. The available features are: cipher (supported | ||
311 | symmetric ciphers), cipher-auth (supported symmetric ciphers that | ||
312 | support authenticated encryption), mac (supported message | ||
313 | integrity codes), kex (key exchange algorithms), key (key types) | ||
314 | and protocol-version (supported SSH protocol versions). | ||
315 | |||
316 | -q Quiet mode. Causes most warning and diagnostic messages to be | ||
317 | suppressed. | ||
318 | |||
319 | -R [bind_address:]port:host:hostport | ||
320 | Specifies that the given port on the remote (server) host is to | ||
321 | be forwarded to the given host and port on the local side. This | ||
322 | works by allocating a socket to listen to port on the remote | ||
323 | side, and whenever a connection is made to this port, the | ||
324 | connection is forwarded over the secure channel, and a connection | ||
325 | is made to host port hostport from the local machine. | ||
326 | |||
327 | Port forwardings can also be specified in the configuration file. | ||
328 | Privileged ports can be forwarded only when logging in as root on | ||
329 | the remote machine. IPv6 addresses can be specified by enclosing | ||
330 | the address in square brackets. | ||
331 | |||
332 | By default, the listening socket on the server will be bound to | ||
333 | the loopback interface only. This may be overridden by | ||
334 | specifying a bind_address. An empty bind_address, or the address | ||
335 | M-bM-^@M-^X*M-bM-^@M-^Y, indicates that the remote socket should listen on all | ||
336 | interfaces. Specifying a remote bind_address will only succeed | ||
337 | if the server's GatewayPorts option is enabled (see | ||
338 | sshd_config(5)). | ||
339 | |||
340 | If the port argument is M-bM-^@M-^X0M-bM-^@M-^Y, the listen port will be dynamically | ||
341 | allocated on the server and reported to the client at run time. | ||
342 | When used together with -O forward the allocated port will be | ||
343 | printed to the standard output. | ||
344 | |||
345 | -S ctl_path | ||
346 | Specifies the location of a control socket for connection | ||
347 | sharing, or the string M-bM-^@M-^\noneM-bM-^@M-^] to disable connection sharing. | ||
348 | Refer to the description of ControlPath and ControlMaster in | ||
349 | ssh_config(5) for details. | ||
350 | |||
351 | -s May be used to request invocation of a subsystem on the remote | ||
352 | system. Subsystems are a feature of the SSH2 protocol which | ||
353 | facilitate the use of SSH as a secure transport for other | ||
354 | applications (eg. sftp(1)). The subsystem is specified as the | ||
355 | remote command. | ||
356 | |||
357 | -T Disable pseudo-terminal allocation. | ||
358 | |||
359 | -t Force pseudo-terminal allocation. This can be used to execute | ||
360 | arbitrary screen-based programs on a remote machine, which can be | ||
361 | very useful, e.g. when implementing menu services. Multiple -t | ||
362 | options force tty allocation, even if ssh has no local tty. | ||
363 | |||
364 | -V Display the version number and exit. | ||
365 | |||
366 | -v Verbose mode. Causes ssh to print debugging messages about its | ||
367 | progress. This is helpful in debugging connection, | ||
368 | authentication, and configuration problems. Multiple -v options | ||
369 | increase the verbosity. The maximum is 3. | ||
370 | |||
371 | -W host:port | ||
372 | Requests that standard input and output on the client be | ||
373 | forwarded to host on port over the secure channel. Implies -N, | ||
374 | -T, ExitOnForwardFailure and ClearAllForwardings. Works with | ||
375 | Protocol version 2 only. | ||
376 | |||
377 | -w local_tun[:remote_tun] | ||
378 | Requests tunnel device forwarding with the specified tun(4) | ||
379 | devices between the client (local_tun) and the server | ||
380 | (remote_tun). | ||
381 | |||
382 | The devices may be specified by numerical ID or the keyword | ||
383 | M-bM-^@M-^\anyM-bM-^@M-^], which uses the next available tunnel device. If | ||
384 | remote_tun is not specified, it defaults to M-bM-^@M-^\anyM-bM-^@M-^]. See also the | ||
385 | Tunnel and TunnelDevice directives in ssh_config(5). If the | ||
386 | Tunnel directive is unset, it is set to the default tunnel mode, | ||
387 | which is M-bM-^@M-^\point-to-pointM-bM-^@M-^]. | ||
388 | |||
389 | -X Enables X11 forwarding. This can also be specified on a per-host | ||
390 | basis in a configuration file. | ||
391 | |||
392 | X11 forwarding should be enabled with caution. Users with the | ||
393 | ability to bypass file permissions on the remote host (for the | ||
394 | user's X authorization database) can access the local X11 display | ||
395 | through the forwarded connection. An attacker may then be able | ||
396 | to perform activities such as keystroke monitoring. | ||
397 | |||
398 | For this reason, X11 forwarding is subjected to X11 SECURITY | ||
399 | extension restrictions by default. Please refer to the ssh -Y | ||
400 | option and the ForwardX11Trusted directive in ssh_config(5) for | ||
401 | more information. | ||
402 | |||
403 | -x Disables X11 forwarding. | ||
404 | |||
405 | -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not | ||
406 | subjected to the X11 SECURITY extension controls. | ||
407 | |||
408 | -y Send log information using the syslog(3) system module. By | ||
409 | default this information is sent to stderr. | ||
410 | |||
411 | ssh may additionally obtain configuration data from a per-user | ||
412 | configuration file and a system-wide configuration file. The file format | ||
413 | and configuration options are described in ssh_config(5). | ||
414 | |||
415 | AUTHENTICATION | ||
416 | The OpenSSH SSH client supports SSH protocols 1 and 2. The default is to | ||
417 | use protocol 2 only, though this can be changed via the Protocol option | ||
418 | in ssh_config(5) or the -1 and -2 options (see above). Both protocols | ||
419 | support similar authentication methods, but protocol 2 is the default | ||
420 | since it provides additional mechanisms for confidentiality (the traffic | ||
421 | is encrypted using AES, 3DES, Blowfish, CAST128, or Arcfour) and | ||
422 | integrity (hmac-md5, hmac-sha1, hmac-sha2-256, hmac-sha2-512, umac-64, | ||
423 | umac-128, hmac-ripemd160). Protocol 1 lacks a strong mechanism for | ||
424 | ensuring the integrity of the connection. | ||
425 | |||
426 | The methods available for authentication are: GSSAPI-based | ||
427 | authentication, host-based authentication, public key authentication, | ||
428 | challenge-response authentication, and password authentication. | ||
429 | Authentication methods are tried in the order specified above, though | ||
430 | protocol 2 has a configuration option to change the default order: | ||
431 | PreferredAuthentications. | ||
432 | |||
433 | Host-based authentication works as follows: If the machine the user logs | ||
434 | in from is listed in /etc/hosts.equiv or /etc/shosts.equiv on the remote | ||
435 | machine, and the user names are the same on both sides, or if the files | ||
436 | ~/.rhosts or ~/.shosts exist in the user's home directory on the remote | ||
437 | machine and contain a line containing the name of the client machine and | ||
438 | the name of the user on that machine, the user is considered for login. | ||
439 | Additionally, the server must be able to verify the client's host key | ||
440 | (see the description of /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts, | ||
441 | below) for login to be permitted. This authentication method closes | ||
442 | security holes due to IP spoofing, DNS spoofing, and routing spoofing. | ||
443 | [Note to the administrator: /etc/hosts.equiv, ~/.rhosts, and the | ||
444 | rlogin/rsh protocol in general, are inherently insecure and should be | ||
445 | disabled if security is desired.] | ||
446 | |||
447 | Public key authentication works as follows: The scheme is based on | ||
448 | public-key cryptography, using cryptosystems where encryption and | ||
449 | decryption are done using separate keys, and it is unfeasible to derive | ||
450 | the decryption key from the encryption key. The idea is that each user | ||
451 | creates a public/private key pair for authentication purposes. The | ||
452 | server knows the public key, and only the user knows the private key. | ||
453 | ssh implements public key authentication protocol automatically, using | ||
454 | one of the DSA, ECDSA, Ed25519 or RSA algorithms. Protocol 1 is | ||
455 | restricted to using only RSA keys, but protocol 2 may use any. The | ||
456 | HISTORY section of ssl(8) contains a brief discussion of the DSA and RSA | ||
457 | algorithms. | ||
458 | |||
459 | The file ~/.ssh/authorized_keys lists the public keys that are permitted | ||
460 | for logging in. When the user logs in, the ssh program tells the server | ||
461 | which key pair it would like to use for authentication. The client | ||
462 | proves that it has access to the private key and the server checks that | ||
463 | the corresponding public key is authorized to accept the account. | ||
464 | |||
465 | The user creates his/her key pair by running ssh-keygen(1). This stores | ||
466 | the private key in ~/.ssh/identity (protocol 1), ~/.ssh/id_dsa (protocol | ||
467 | 2 DSA), ~/.ssh/id_ecdsa (protocol 2 ECDSA), ~/.ssh/id_ed25519 (protocol 2 | ||
468 | Ed25519), or ~/.ssh/id_rsa (protocol 2 RSA) and stores the public key in | ||
469 | ~/.ssh/identity.pub (protocol 1), ~/.ssh/id_dsa.pub (protocol 2 DSA), | ||
470 | ~/.ssh/id_ecdsa.pub (protocol 2 ECDSA), ~/.ssh/id_ed25519.pub (protocol 2 | ||
471 | Ed25519), or ~/.ssh/id_rsa.pub (protocol 2 RSA) in the user's home | ||
472 | directory. The user should then copy the public key to | ||
473 | ~/.ssh/authorized_keys in his/her home directory on the remote machine. | ||
474 | The authorized_keys file corresponds to the conventional ~/.rhosts file, | ||
475 | and has one key per line, though the lines can be very long. After this, | ||
476 | the user can log in without giving the password. | ||
477 | |||
478 | A variation on public key authentication is available in the form of | ||
479 | certificate authentication: instead of a set of public/private keys, | ||
480 | signed certificates are used. This has the advantage that a single | ||
481 | trusted certification authority can be used in place of many | ||
482 | public/private keys. See the CERTIFICATES section of ssh-keygen(1) for | ||
483 | more information. | ||
484 | |||
485 | The most convenient way to use public key or certificate authentication | ||
486 | may be with an authentication agent. See ssh-agent(1) for more | ||
487 | information. | ||
488 | |||
489 | Challenge-response authentication works as follows: The server sends an | ||
490 | arbitrary "challenge" text, and prompts for a response. Protocol 2 | ||
491 | allows multiple challenges and responses; protocol 1 is restricted to | ||
492 | just one challenge/response. Examples of challenge-response | ||
493 | authentication include BSD Authentication (see login.conf(5)) and PAM | ||
494 | (some non-OpenBSD systems). | ||
495 | |||
496 | Finally, if other authentication methods fail, ssh prompts the user for a | ||
497 | password. The password is sent to the remote host for checking; however, | ||
498 | since all communications are encrypted, the password cannot be seen by | ||
499 | someone listening on the network. | ||
500 | |||
501 | ssh automatically maintains and checks a database containing | ||
502 | identification for all hosts it has ever been used with. Host keys are | ||
503 | stored in ~/.ssh/known_hosts in the user's home directory. Additionally, | ||
504 | the file /etc/ssh/ssh_known_hosts is automatically checked for known | ||
505 | hosts. Any new hosts are automatically added to the user's file. If a | ||
506 | host's identification ever changes, ssh warns about this and disables | ||
507 | password authentication to prevent server spoofing or man-in-the-middle | ||
508 | attacks, which could otherwise be used to circumvent the encryption. The | ||
509 | StrictHostKeyChecking option can be used to control logins to machines | ||
510 | whose host key is not known or has changed. | ||
511 | |||
512 | When the user's identity has been accepted by the server, the server | ||
513 | either executes the given command in a non-interactive session or, if no | ||
514 | command has been specified, logs into the machine and gives the user a | ||
515 | normal shell as an interactive session. All communication with the | ||
516 | remote command or shell will be automatically encrypted. | ||
517 | |||
518 | If an interactive session is requested ssh by default will only request a | ||
519 | pseudo-terminal (pty) for interactive sessions when the client has one. | ||
520 | The flags -T and -t can be used to override this behaviour. | ||
521 | |||
522 | If a pseudo-terminal has been allocated the user may use the escape | ||
523 | characters noted below. | ||
524 | |||
525 | If no pseudo-terminal has been allocated, the session is transparent and | ||
526 | can be used to reliably transfer binary data. On most systems, setting | ||
527 | the escape character to M-bM-^@M-^\noneM-bM-^@M-^] will also make the session transparent | ||
528 | even if a tty is used. | ||
529 | |||
530 | The session terminates when the command or shell on the remote machine | ||
531 | exits and all X11 and TCP connections have been closed. | ||
532 | |||
533 | ESCAPE CHARACTERS | ||
534 | When a pseudo-terminal has been requested, ssh supports a number of | ||
535 | functions through the use of an escape character. | ||
536 | |||
537 | A single tilde character can be sent as ~~ or by following the tilde by a | ||
538 | character other than those described below. The escape character must | ||
539 | always follow a newline to be interpreted as special. The escape | ||
540 | character can be changed in configuration files using the EscapeChar | ||
541 | configuration directive or on the command line by the -e option. | ||
542 | |||
543 | The supported escapes (assuming the default M-bM-^@M-^X~M-bM-^@M-^Y) are: | ||
544 | |||
545 | ~. Disconnect. | ||
546 | |||
547 | ~^Z Background ssh. | ||
548 | |||
549 | ~# List forwarded connections. | ||
550 | |||
551 | ~& Background ssh at logout when waiting for forwarded connection / | ||
552 | X11 sessions to terminate. | ||
553 | |||
554 | ~? Display a list of escape characters. | ||
555 | |||
556 | ~B Send a BREAK to the remote system (only useful for SSH protocol | ||
557 | version 2 and if the peer supports it). | ||
558 | |||
559 | ~C Open command line. Currently this allows the addition of port | ||
560 | forwardings using the -L, -R and -D options (see above). It also | ||
561 | allows the cancellation of existing port-forwardings with | ||
562 | -KL[bind_address:]port for local, -KR[bind_address:]port for | ||
563 | remote and -KD[bind_address:]port for dynamic port-forwardings. | ||
564 | !command allows the user to execute a local command if the | ||
565 | PermitLocalCommand option is enabled in ssh_config(5). Basic | ||
566 | help is available, using the -h option. | ||
567 | |||
568 | ~R Request rekeying of the connection (only useful for SSH protocol | ||
569 | version 2 and if the peer supports it). | ||
570 | |||
571 | ~V Decrease the verbosity (LogLevel) when errors are being written | ||
572 | to stderr. | ||
573 | |||
574 | ~v Increase the verbosity (LogLevel) when errors are being written | ||
575 | to stderr. | ||
576 | |||
577 | TCP FORWARDING | ||
578 | Forwarding of arbitrary TCP connections over the secure channel can be | ||
579 | specified either on the command line or in a configuration file. One | ||
580 | possible application of TCP forwarding is a secure connection to a mail | ||
581 | server; another is going through firewalls. | ||
582 | |||
583 | In the example below, we look at encrypting communication between an IRC | ||
584 | client and server, even though the IRC server does not directly support | ||
585 | encrypted communications. This works as follows: the user connects to | ||
586 | the remote host using ssh, specifying a port to be used to forward | ||
587 | connections to the remote server. After that it is possible to start the | ||
588 | service which is to be encrypted on the client machine, connecting to the | ||
589 | same local port, and ssh will encrypt and forward the connection. | ||
590 | |||
591 | The following example tunnels an IRC session from client machine | ||
592 | M-bM-^@M-^\127.0.0.1M-bM-^@M-^] (localhost) to remote server M-bM-^@M-^\server.example.comM-bM-^@M-^]: | ||
593 | |||
594 | $ ssh -f -L 1234:localhost:6667 server.example.com sleep 10 | ||
595 | $ irc -c '#users' -p 1234 pinky 127.0.0.1 | ||
596 | |||
597 | This tunnels a connection to IRC server M-bM-^@M-^\server.example.comM-bM-^@M-^], joining | ||
598 | channel M-bM-^@M-^\#usersM-bM-^@M-^], nickname M-bM-^@M-^\pinkyM-bM-^@M-^], using port 1234. It doesn't matter | ||
599 | which port is used, as long as it's greater than 1023 (remember, only | ||
600 | root can open sockets on privileged ports) and doesn't conflict with any | ||
601 | ports already in use. The connection is forwarded to port 6667 on the | ||
602 | remote server, since that's the standard port for IRC services. | ||
603 | |||
604 | The -f option backgrounds ssh and the remote command M-bM-^@M-^\sleep 10M-bM-^@M-^] is | ||
605 | specified to allow an amount of time (10 seconds, in the example) to | ||
606 | start the service which is to be tunnelled. If no connections are made | ||
607 | within the time specified, ssh will exit. | ||
608 | |||
609 | X11 FORWARDING | ||
610 | If the ForwardX11 variable is set to M-bM-^@M-^\yesM-bM-^@M-^] (or see the description of the | ||
611 | -X, -x, and -Y options above) and the user is using X11 (the DISPLAY | ||
612 | environment variable is set), the connection to the X11 display is | ||
613 | automatically forwarded to the remote side in such a way that any X11 | ||
614 | programs started from the shell (or command) will go through the | ||
615 | encrypted channel, and the connection to the real X server will be made | ||
616 | from the local machine. The user should not manually set DISPLAY. | ||
617 | Forwarding of X11 connections can be configured on the command line or in | ||
618 | configuration files. | ||
619 | |||
620 | The DISPLAY value set by ssh will point to the server machine, but with a | ||
621 | display number greater than zero. This is normal, and happens because | ||
622 | ssh creates a M-bM-^@M-^\proxyM-bM-^@M-^] X server on the server machine for forwarding the | ||
623 | connections over the encrypted channel. | ||
624 | |||
625 | ssh will also automatically set up Xauthority data on the server machine. | ||
626 | For this purpose, it will generate a random authorization cookie, store | ||
627 | it in Xauthority on the server, and verify that any forwarded connections | ||
628 | carry this cookie and replace it by the real cookie when the connection | ||
629 | is opened. The real authentication cookie is never sent to the server | ||
630 | machine (and no cookies are sent in the plain). | ||
631 | |||
632 | If the ForwardAgent variable is set to M-bM-^@M-^\yesM-bM-^@M-^] (or see the description of | ||
633 | the -A and -a options above) and the user is using an authentication | ||
634 | agent, the connection to the agent is automatically forwarded to the | ||
635 | remote side. | ||
636 | |||
637 | VERIFYING HOST KEYS | ||
638 | When connecting to a server for the first time, a fingerprint of the | ||
639 | server's public key is presented to the user (unless the option | ||
640 | StrictHostKeyChecking has been disabled). Fingerprints can be determined | ||
641 | using ssh-keygen(1): | ||
642 | |||
643 | $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key | ||
644 | |||
645 | If the fingerprint is already known, it can be matched and the key can be | ||
646 | accepted or rejected. If only legacy (MD5) fingerprints for the server | ||
647 | are available, the ssh-keygen(1) -E option may be used to downgrade the | ||
648 | fingerprint algorithm to match. | ||
649 | |||
650 | Because of the difficulty of comparing host keys just by looking at | ||
651 | fingerprint strings, there is also support to compare host keys visually, | ||
652 | using random art. By setting the VisualHostKey option to M-bM-^@M-^\yesM-bM-^@M-^], a small | ||
653 | ASCII graphic gets displayed on every login to a server, no matter if the | ||
654 | session itself is interactive or not. By learning the pattern a known | ||
655 | server produces, a user can easily find out that the host key has changed | ||
656 | when a completely different pattern is displayed. Because these patterns | ||
657 | are not unambiguous however, a pattern that looks similar to the pattern | ||
658 | remembered only gives a good probability that the host key is the same, | ||
659 | not guaranteed proof. | ||
660 | |||
661 | To get a listing of the fingerprints along with their random art for all | ||
662 | known hosts, the following command line can be used: | ||
663 | |||
664 | $ ssh-keygen -lv -f ~/.ssh/known_hosts | ||
665 | |||
666 | If the fingerprint is unknown, an alternative method of verification is | ||
667 | available: SSH fingerprints verified by DNS. An additional resource | ||
668 | record (RR), SSHFP, is added to a zonefile and the connecting client is | ||
669 | able to match the fingerprint with that of the key presented. | ||
670 | |||
671 | In this example, we are connecting a client to a server, | ||
672 | M-bM-^@M-^\host.example.comM-bM-^@M-^]. The SSHFP resource records should first be added to | ||
673 | the zonefile for host.example.com: | ||
674 | |||
675 | $ ssh-keygen -r host.example.com. | ||
676 | |||
677 | The output lines will have to be added to the zonefile. To check that | ||
678 | the zone is answering fingerprint queries: | ||
679 | |||
680 | $ dig -t SSHFP host.example.com | ||
681 | |||
682 | Finally the client connects: | ||
683 | |||
684 | $ ssh -o "VerifyHostKeyDNS ask" host.example.com | ||
685 | [...] | ||
686 | Matching host key fingerprint found in DNS. | ||
687 | Are you sure you want to continue connecting (yes/no)? | ||
688 | |||
689 | See the VerifyHostKeyDNS option in ssh_config(5) for more information. | ||
690 | |||
691 | SSH-BASED VIRTUAL PRIVATE NETWORKS | ||
692 | ssh contains support for Virtual Private Network (VPN) tunnelling using | ||
693 | the tun(4) network pseudo-device, allowing two networks to be joined | ||
694 | securely. The sshd_config(5) configuration option PermitTunnel controls | ||
695 | whether the server supports this, and at what level (layer 2 or 3 | ||
696 | traffic). | ||
697 | |||
698 | The following example would connect client network 10.0.50.0/24 with | ||
699 | remote network 10.0.99.0/24 using a point-to-point connection from | ||
700 | 10.1.1.1 to 10.1.1.2, provided that the SSH server running on the gateway | ||
701 | to the remote network, at 192.168.1.15, allows it. | ||
702 | |||
703 | On the client: | ||
704 | |||
705 | # ssh -f -w 0:1 192.168.1.15 true | ||
706 | # ifconfig tun0 10.1.1.1 10.1.1.2 netmask 255.255.255.252 | ||
707 | # route add 10.0.99.0/24 10.1.1.2 | ||
708 | |||
709 | On the server: | ||
710 | |||
711 | # ifconfig tun1 10.1.1.2 10.1.1.1 netmask 255.255.255.252 | ||
712 | # route add 10.0.50.0/24 10.1.1.1 | ||
713 | |||
714 | Client access may be more finely tuned via the /root/.ssh/authorized_keys | ||
715 | file (see below) and the PermitRootLogin server option. The following | ||
716 | entry would permit connections on tun(4) device 1 from user M-bM-^@M-^\janeM-bM-^@M-^] and on | ||
717 | tun device 2 from user M-bM-^@M-^\johnM-bM-^@M-^], if PermitRootLogin is set to | ||
718 | M-bM-^@M-^\forced-commands-onlyM-bM-^@M-^]: | ||
719 | |||
720 | tunnel="1",command="sh /etc/netstart tun1" ssh-rsa ... jane | ||
721 | tunnel="2",command="sh /etc/netstart tun2" ssh-rsa ... john | ||
722 | |||
723 | Since an SSH-based setup entails a fair amount of overhead, it may be | ||
724 | more suited to temporary setups, such as for wireless VPNs. More | ||
725 | permanent VPNs are better provided by tools such as ipsecctl(8) and | ||
726 | isakmpd(8). | ||
727 | |||
728 | ENVIRONMENT | ||
729 | ssh will normally set the following environment variables: | ||
730 | |||
731 | DISPLAY The DISPLAY variable indicates the location of the | ||
732 | X11 server. It is automatically set by ssh to | ||
733 | point to a value of the form M-bM-^@M-^\hostname:nM-bM-^@M-^], where | ||
734 | M-bM-^@M-^\hostnameM-bM-^@M-^] indicates the host where the shell runs, | ||
735 | and M-bM-^@M-^XnM-bM-^@M-^Y is an integer M-bM-^IM-% 1. ssh uses this special | ||
736 | value to forward X11 connections over the secure | ||
737 | channel. The user should normally not set DISPLAY | ||
738 | explicitly, as that will render the X11 connection | ||
739 | insecure (and will require the user to manually | ||
740 | copy any required authorization cookies). | ||
741 | |||
742 | HOME Set to the path of the user's home directory. | ||
743 | |||
744 | LOGNAME Synonym for USER; set for compatibility with | ||
745 | systems that use this variable. | ||
746 | |||
747 | MAIL Set to the path of the user's mailbox. | ||
748 | |||
749 | PATH Set to the default PATH, as specified when | ||
750 | compiling ssh. | ||
751 | |||
752 | SSH_ASKPASS If ssh needs a passphrase, it will read the | ||
753 | passphrase from the current terminal if it was run | ||
754 | from a terminal. If ssh does not have a terminal | ||
755 | associated with it but DISPLAY and SSH_ASKPASS are | ||
756 | set, it will execute the program specified by | ||
757 | SSH_ASKPASS and open an X11 window to read the | ||
758 | passphrase. This is particularly useful when | ||
759 | calling ssh from a .xsession or related script. | ||
760 | (Note that on some machines it may be necessary to | ||
761 | redirect the input from /dev/null to make this | ||
762 | work.) | ||
763 | |||
764 | SSH_AUTH_SOCK Identifies the path of a UNIX-domain socket used to | ||
765 | communicate with the agent. | ||
766 | |||
767 | SSH_CONNECTION Identifies the client and server ends of the | ||
768 | connection. The variable contains four space- | ||
769 | separated values: client IP address, client port | ||
770 | number, server IP address, and server port number. | ||
771 | |||
772 | SSH_ORIGINAL_COMMAND This variable contains the original command line if | ||
773 | a forced command is executed. It can be used to | ||
774 | extract the original arguments. | ||
775 | |||
776 | SSH_TTY This is set to the name of the tty (path to the | ||
777 | device) associated with the current shell or | ||
778 | command. If the current session has no tty, this | ||
779 | variable is not set. | ||
780 | |||
781 | TZ This variable is set to indicate the present time | ||
782 | zone if it was set when the daemon was started | ||
783 | (i.e. the daemon passes the value on to new | ||
784 | connections). | ||
785 | |||
786 | USER Set to the name of the user logging in. | ||
787 | |||
788 | Additionally, ssh reads ~/.ssh/environment, and adds lines of the format | ||
789 | M-bM-^@M-^\VARNAME=valueM-bM-^@M-^] to the environment if the file exists and users are | ||
790 | allowed to change their environment. For more information, see the | ||
791 | PermitUserEnvironment option in sshd_config(5). | ||
792 | |||
793 | FILES | ||
794 | ~/.rhosts | ||
795 | This file is used for host-based authentication (see above). On | ||
796 | some machines this file may need to be world-readable if the | ||
797 | user's home directory is on an NFS partition, because sshd(8) | ||
798 | reads it as root. Additionally, this file must be owned by the | ||
799 | user, and must not have write permissions for anyone else. The | ||
800 | recommended permission for most machines is read/write for the | ||
801 | user, and not accessible by others. | ||
802 | |||
803 | ~/.shosts | ||
804 | This file is used in exactly the same way as .rhosts, but allows | ||
805 | host-based authentication without permitting login with | ||
806 | rlogin/rsh. | ||
807 | |||
808 | ~/.ssh/ | ||
809 | This directory is the default location for all user-specific | ||
810 | configuration and authentication information. There is no | ||
811 | general requirement to keep the entire contents of this directory | ||
812 | secret, but the recommended permissions are read/write/execute | ||
813 | for the user, and not accessible by others. | ||
814 | |||
815 | ~/.ssh/authorized_keys | ||
816 | Lists the public keys (DSA, ECDSA, Ed25519, RSA) that can be used | ||
817 | for logging in as this user. The format of this file is | ||
818 | described in the sshd(8) manual page. This file is not highly | ||
819 | sensitive, but the recommended permissions are read/write for the | ||
820 | user, and not accessible by others. | ||
821 | |||
822 | ~/.ssh/config | ||
823 | This is the per-user configuration file. The file format and | ||
824 | configuration options are described in ssh_config(5). Because of | ||
825 | the potential for abuse, this file must have strict permissions: | ||
826 | read/write for the user, and not writable by others. | ||
827 | |||
828 | ~/.ssh/environment | ||
829 | Contains additional definitions for environment variables; see | ||
830 | ENVIRONMENT, above. | ||
831 | |||
832 | ~/.ssh/identity | ||
833 | ~/.ssh/id_dsa | ||
834 | ~/.ssh/id_ecdsa | ||
835 | ~/.ssh/id_ed25519 | ||
836 | ~/.ssh/id_rsa | ||
837 | Contains the private key for authentication. These files contain | ||
838 | sensitive data and should be readable by the user but not | ||
839 | accessible by others (read/write/execute). ssh will simply | ||
840 | ignore a private key file if it is accessible by others. It is | ||
841 | possible to specify a passphrase when generating the key which | ||
842 | will be used to encrypt the sensitive part of this file using | ||
843 | 3DES. | ||
844 | |||
845 | ~/.ssh/identity.pub | ||
846 | ~/.ssh/id_dsa.pub | ||
847 | ~/.ssh/id_ecdsa.pub | ||
848 | ~/.ssh/id_ed25519.pub | ||
849 | ~/.ssh/id_rsa.pub | ||
850 | Contains the public key for authentication. These files are not | ||
851 | sensitive and can (but need not) be readable by anyone. | ||
852 | |||
853 | ~/.ssh/known_hosts | ||
854 | Contains a list of host keys for all hosts the user has logged | ||
855 | into that are not already in the systemwide list of known host | ||
856 | keys. See sshd(8) for further details of the format of this | ||
857 | file. | ||
858 | |||
859 | ~/.ssh/rc | ||
860 | Commands in this file are executed by ssh when the user logs in, | ||
861 | just before the user's shell (or command) is started. See the | ||
862 | sshd(8) manual page for more information. | ||
863 | |||
864 | /etc/hosts.equiv | ||
865 | This file is for host-based authentication (see above). It | ||
866 | should only be writable by root. | ||
867 | |||
868 | /etc/shosts.equiv | ||
869 | This file is used in exactly the same way as hosts.equiv, but | ||
870 | allows host-based authentication without permitting login with | ||
871 | rlogin/rsh. | ||
872 | |||
873 | /etc/ssh/ssh_config | ||
874 | Systemwide configuration file. The file format and configuration | ||
875 | options are described in ssh_config(5). | ||
876 | |||
877 | /etc/ssh/ssh_host_key | ||
878 | /etc/ssh/ssh_host_dsa_key | ||
879 | /etc/ssh/ssh_host_ecdsa_key | ||
880 | /etc/ssh/ssh_host_ed25519_key | ||
881 | /etc/ssh/ssh_host_rsa_key | ||
882 | These files contain the private parts of the host keys and are | ||
883 | used for host-based authentication. If protocol version 1 is | ||
884 | used, ssh must be setuid root, since the host key is readable | ||
885 | only by root. For protocol version 2, ssh uses ssh-keysign(8) to | ||
886 | access the host keys, eliminating the requirement that ssh be | ||
887 | setuid root when host-based authentication is used. By default | ||
888 | ssh is not setuid root. | ||
889 | |||
890 | /etc/ssh/ssh_known_hosts | ||
891 | Systemwide list of known host keys. This file should be prepared | ||
892 | by the system administrator to contain the public host keys of | ||
893 | all machines in the organization. It should be world-readable. | ||
894 | See sshd(8) for further details of the format of this file. | ||
895 | |||
896 | /etc/ssh/sshrc | ||
897 | Commands in this file are executed by ssh when the user logs in, | ||
898 | just before the user's shell (or command) is started. See the | ||
899 | sshd(8) manual page for more information. | ||
900 | |||
901 | EXIT STATUS | ||
902 | ssh exits with the exit status of the remote command or with 255 if an | ||
903 | error occurred. | ||
904 | |||
905 | SEE ALSO | ||
906 | scp(1), sftp(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh-keyscan(1), | ||
907 | tun(4), ssh_config(5), ssh-keysign(8), sshd(8) | ||
908 | |||
909 | STANDARDS | ||
910 | S. Lehtinen and C. Lonvick, The Secure Shell (SSH) Protocol Assigned | ||
911 | Numbers, RFC 4250, January 2006. | ||
912 | |||
913 | T. Ylonen and C. Lonvick, The Secure Shell (SSH) Protocol Architecture, | ||
914 | RFC 4251, January 2006. | ||
915 | |||
916 | T. Ylonen and C. Lonvick, The Secure Shell (SSH) Authentication Protocol, | ||
917 | RFC 4252, January 2006. | ||
918 | |||
919 | T. Ylonen and C. Lonvick, The Secure Shell (SSH) Transport Layer | ||
920 | Protocol, RFC 4253, January 2006. | ||
921 | |||
922 | T. Ylonen and C. Lonvick, The Secure Shell (SSH) Connection Protocol, RFC | ||
923 | 4254, January 2006. | ||
924 | |||
925 | J. Schlyter and W. Griffin, Using DNS to Securely Publish Secure Shell | ||
926 | (SSH) Key Fingerprints, RFC 4255, January 2006. | ||
927 | |||
928 | F. Cusack and M. Forssen, Generic Message Exchange Authentication for the | ||
929 | Secure Shell Protocol (SSH), RFC 4256, January 2006. | ||
930 | |||
931 | J. Galbraith and P. Remaker, The Secure Shell (SSH) Session Channel Break | ||
932 | Extension, RFC 4335, January 2006. | ||
933 | |||
934 | M. Bellare, T. Kohno, and C. Namprempre, The Secure Shell (SSH) Transport | ||
935 | Layer Encryption Modes, RFC 4344, January 2006. | ||
936 | |||
937 | B. Harris, Improved Arcfour Modes for the Secure Shell (SSH) Transport | ||
938 | Layer Protocol, RFC 4345, January 2006. | ||
939 | |||
940 | M. Friedl, N. Provos, and W. Simpson, Diffie-Hellman Group Exchange for | ||
941 | the Secure Shell (SSH) Transport Layer Protocol, RFC 4419, March 2006. | ||
942 | |||
943 | J. Galbraith and R. Thayer, The Secure Shell (SSH) Public Key File | ||
944 | Format, RFC 4716, November 2006. | ||
945 | |||
946 | D. Stebila and J. Green, Elliptic Curve Algorithm Integration in the | ||
947 | Secure Shell Transport Layer, RFC 5656, December 2009. | ||
948 | |||
949 | A. Perrig and D. Song, Hash Visualization: a New Technique to improve | ||
950 | Real-World Security, 1999, International Workshop on Cryptographic | ||
951 | Techniques and E-Commerce (CrypTEC '99). | ||
952 | |||
953 | AUTHORS | ||
954 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
955 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
956 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
957 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
958 | versions 1.5 and 2.0. | ||
959 | |||
960 | OpenBSD 5.7 May 22, 2015 OpenBSD 5.7 | ||
diff --git a/ssh_config.0 b/ssh_config.0 new file mode 100644 index 000000000..b0a614b8a --- /dev/null +++ b/ssh_config.0 | |||
@@ -0,0 +1,985 @@ | |||
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 critera 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 | AddressFamily | ||
98 | Specifies which address family to use when connecting. Valid | ||
99 | 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 | ||
100 | only). | ||
101 | |||
102 | BatchMode | ||
103 | If set to M-bM-^@M-^\yesM-bM-^@M-^], passphrase/password querying will be disabled. | ||
104 | This option is useful in scripts and other batch jobs where no | ||
105 | user is present to supply the password. The argument must be | ||
106 | M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
107 | |||
108 | BindAddress | ||
109 | Use the specified address on the local machine as the source | ||
110 | address of the connection. Only useful on systems with more than | ||
111 | one address. Note that this option does not work if | ||
112 | UsePrivilegedPort is set to M-bM-^@M-^\yesM-bM-^@M-^]. | ||
113 | |||
114 | CanonicalDomains | ||
115 | When CanonicalizeHostname is enabled, this option specifies the | ||
116 | list of domain suffixes in which to search for the specified | ||
117 | destination host. | ||
118 | |||
119 | CanonicalizeFallbackLocal | ||
120 | Specifies whether to fail with an error when hostname | ||
121 | canonicalization fails. The default, M-bM-^@M-^\yesM-bM-^@M-^], will attempt to look | ||
122 | up the unqualified hostname using the system resolver's search | ||
123 | rules. A value of M-bM-^@M-^\noM-bM-^@M-^] will cause ssh(1) to fail instantly if | ||
124 | CanonicalizeHostname is enabled and the target hostname cannot be | ||
125 | found in any of the domains specified by CanonicalDomains. | ||
126 | |||
127 | CanonicalizeHostname | ||
128 | Controls whether explicit hostname canonicalization is performed. | ||
129 | The default, M-bM-^@M-^\noM-bM-^@M-^], is not to perform any name rewriting and let | ||
130 | the system resolver handle all hostname lookups. If set to M-bM-^@M-^\yesM-bM-^@M-^] | ||
131 | then, for connections that do not use a ProxyCommand, ssh(1) will | ||
132 | attempt to canonicalize the hostname specified on the command | ||
133 | line using the CanonicalDomains suffixes and | ||
134 | CanonicalizePermittedCNAMEs rules. If CanonicalizeHostname is | ||
135 | set to M-bM-^@M-^\alwaysM-bM-^@M-^], then canonicalization is applied to proxied | ||
136 | connections too. | ||
137 | |||
138 | If this option is enabled, then the configuration files are | ||
139 | processed again using the new target name to pick up any new | ||
140 | configuration in matching Host and Match stanzas. | ||
141 | |||
142 | CanonicalizeMaxDots | ||
143 | Specifies the maximum number of dot characters in a hostname | ||
144 | before canonicalization is disabled. The default, M-bM-^@M-^\1M-bM-^@M-^], allows a | ||
145 | single dot (i.e. hostname.subdomain). | ||
146 | |||
147 | CanonicalizePermittedCNAMEs | ||
148 | Specifies rules to determine whether CNAMEs should be followed | ||
149 | when canonicalizing hostnames. The rules consist of one or more | ||
150 | arguments of source_domain_list:target_domain_list, where | ||
151 | source_domain_list is a pattern-list of domains that may follow | ||
152 | CNAMEs in canonicalization, and target_domain_list is a pattern- | ||
153 | list of domains that they may resolve to. | ||
154 | |||
155 | For example, M-bM-^@M-^\*.a.example.com:*.b.example.com,*.c.example.comM-bM-^@M-^] | ||
156 | will allow hostnames matching M-bM-^@M-^\*.a.example.comM-bM-^@M-^] to be | ||
157 | canonicalized to names in the M-bM-^@M-^\*.b.example.comM-bM-^@M-^] or | ||
158 | M-bM-^@M-^\*.c.example.comM-bM-^@M-^] domains. | ||
159 | |||
160 | ChallengeResponseAuthentication | ||
161 | Specifies whether to use challenge-response authentication. The | ||
162 | argument to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is | ||
163 | M-bM-^@M-^\yesM-bM-^@M-^]. | ||
164 | |||
165 | CheckHostIP | ||
166 | If this flag is set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) will additionally check the | ||
167 | host IP address in the known_hosts file. This allows ssh to | ||
168 | detect if a host key changed due to DNS spoofing and will add | ||
169 | addresses of destination hosts to ~/.ssh/known_hosts in the | ||
170 | process, regardless of the setting of StrictHostKeyChecking. If | ||
171 | the option is set to M-bM-^@M-^\noM-bM-^@M-^], the check will not be executed. The | ||
172 | default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
173 | |||
174 | Cipher Specifies the cipher to use for encrypting the session in | ||
175 | protocol version 1. Currently, M-bM-^@M-^\blowfishM-bM-^@M-^], M-bM-^@M-^\3desM-bM-^@M-^], and M-bM-^@M-^\desM-bM-^@M-^] are | ||
176 | supported. des is only supported in the ssh(1) client for | ||
177 | interoperability with legacy protocol 1 implementations that do | ||
178 | not support the 3des cipher. Its use is strongly discouraged due | ||
179 | to cryptographic weaknesses. The default is M-bM-^@M-^\3desM-bM-^@M-^]. | ||
180 | |||
181 | Ciphers | ||
182 | Specifies the ciphers allowed for protocol version 2 in order of | ||
183 | preference. Multiple ciphers must be comma-separated. The | ||
184 | supported ciphers are: | ||
185 | |||
186 | 3des-cbc | ||
187 | aes128-cbc | ||
188 | aes192-cbc | ||
189 | aes256-cbc | ||
190 | aes128-ctr | ||
191 | aes192-ctr | ||
192 | aes256-ctr | ||
193 | aes128-gcm@openssh.com | ||
194 | aes256-gcm@openssh.com | ||
195 | arcfour | ||
196 | arcfour128 | ||
197 | arcfour256 | ||
198 | blowfish-cbc | ||
199 | cast128-cbc | ||
200 | chacha20-poly1305@openssh.com | ||
201 | |||
202 | The default is: | ||
203 | |||
204 | aes128-ctr,aes192-ctr,aes256-ctr, | ||
205 | aes128-gcm@openssh.com,aes256-gcm@openssh.com, | ||
206 | chacha20-poly1305@openssh.com, | ||
207 | arcfour256,arcfour128, | ||
208 | aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc, | ||
209 | aes192-cbc,aes256-cbc,arcfour | ||
210 | |||
211 | The list of available ciphers may also be obtained using the -Q | ||
212 | option of ssh(1) with an argument of M-bM-^@M-^\cipherM-bM-^@M-^]. | ||
213 | |||
214 | ClearAllForwardings | ||
215 | Specifies that all local, remote, and dynamic port forwardings | ||
216 | specified in the configuration files or on the command line be | ||
217 | cleared. This option is primarily useful when used from the | ||
218 | ssh(1) command line to clear port forwardings set in | ||
219 | configuration files, and is automatically set by scp(1) and | ||
220 | sftp(1). The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is | ||
221 | M-bM-^@M-^\noM-bM-^@M-^]. | ||
222 | |||
223 | Compression | ||
224 | Specifies whether to use compression. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] | ||
225 | or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
226 | |||
227 | CompressionLevel | ||
228 | Specifies the compression level to use if compression is enabled. | ||
229 | The argument must be an integer from 1 (fast) to 9 (slow, best). | ||
230 | The default level is 6, which is good for most applications. The | ||
231 | meaning of the values is the same as in gzip(1). Note that this | ||
232 | option applies to protocol version 1 only. | ||
233 | |||
234 | ConnectionAttempts | ||
235 | Specifies the number of tries (one per second) to make before | ||
236 | exiting. The argument must be an integer. This may be useful in | ||
237 | scripts if the connection sometimes fails. The default is 1. | ||
238 | |||
239 | ConnectTimeout | ||
240 | Specifies the timeout (in seconds) used when connecting to the | ||
241 | SSH server, instead of using the default system TCP timeout. | ||
242 | This value is used only when the target is down or really | ||
243 | unreachable, not when it refuses the connection. | ||
244 | |||
245 | ControlMaster | ||
246 | Enables the sharing of multiple sessions over a single network | ||
247 | connection. When set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) will listen for | ||
248 | connections on a control socket specified using the ControlPath | ||
249 | argument. Additional sessions can connect to this socket using | ||
250 | the same ControlPath with ControlMaster set to M-bM-^@M-^\noM-bM-^@M-^] (the | ||
251 | default). These sessions will try to reuse the master instance's | ||
252 | network connection rather than initiating new ones, but will fall | ||
253 | back to connecting normally if the control socket does not exist, | ||
254 | or is not listening. | ||
255 | |||
256 | Setting this to M-bM-^@M-^\askM-bM-^@M-^] will cause ssh to listen for control | ||
257 | connections, but require confirmation using ssh-askpass(1). If | ||
258 | the ControlPath cannot be opened, ssh will continue without | ||
259 | connecting to a master instance. | ||
260 | |||
261 | X11 and ssh-agent(1) forwarding is supported over these | ||
262 | multiplexed connections, however the display and agent forwarded | ||
263 | will be the one belonging to the master connection i.e. it is not | ||
264 | possible to forward multiple displays or agents. | ||
265 | |||
266 | Two additional options allow for opportunistic multiplexing: try | ||
267 | to use a master connection but fall back to creating a new one if | ||
268 | one does not already exist. These options are: M-bM-^@M-^\autoM-bM-^@M-^] and | ||
269 | M-bM-^@M-^\autoaskM-bM-^@M-^]. The latter requires confirmation like the M-bM-^@M-^\askM-bM-^@M-^] | ||
270 | option. | ||
271 | |||
272 | ControlPath | ||
273 | Specify the path to the control socket used for connection | ||
274 | sharing as described in the ControlMaster section above or the | ||
275 | string M-bM-^@M-^\noneM-bM-^@M-^] to disable connection sharing. In the path, M-bM-^@M-^X%LM-bM-^@M-^Y | ||
276 | will be substituted by the first component of the local host | ||
277 | name, M-bM-^@M-^X%lM-bM-^@M-^Y will be substituted by the local host name (including | ||
278 | any domain name), M-bM-^@M-^X%hM-bM-^@M-^Y will be substituted by the target host | ||
279 | name, M-bM-^@M-^X%nM-bM-^@M-^Y will be substituted by the original target host name | ||
280 | 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 | ||
281 | the remote login username, M-bM-^@M-^X%uM-bM-^@M-^Y by the username of the user | ||
282 | running ssh(1), and M-bM-^@M-^X%CM-bM-^@M-^Y by a hash of the concatenation: | ||
283 | %l%h%p%r. It is recommended that any ControlPath used for | ||
284 | opportunistic connection sharing include at least %h, %p, and %r | ||
285 | (or alternatively %C) and be placed in a directory that is not | ||
286 | writable by other users. This ensures that shared connections | ||
287 | are uniquely identified. | ||
288 | |||
289 | ControlPersist | ||
290 | When used in conjunction with ControlMaster, specifies that the | ||
291 | master connection should remain open in the background (waiting | ||
292 | for future client connections) after the initial client | ||
293 | connection has been closed. If set to M-bM-^@M-^\noM-bM-^@M-^], then the master | ||
294 | connection will not be placed into the background, and will close | ||
295 | as soon as the initial client connection is closed. If set to | ||
296 | M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\0M-bM-^@M-^], then the master connection will remain in the | ||
297 | background indefinitely (until killed or closed via a mechanism | ||
298 | such as the ssh(1) M-bM-^@M-^\-O exitM-bM-^@M-^] option). If set to a time in | ||
299 | seconds, or a time in any of the formats documented in | ||
300 | sshd_config(5), then the backgrounded master connection will | ||
301 | automatically terminate after it has remained idle (with no | ||
302 | client connections) for the specified time. | ||
303 | |||
304 | DynamicForward | ||
305 | Specifies that a TCP port on the local machine be forwarded over | ||
306 | the secure channel, and the application protocol is then used to | ||
307 | determine where to connect to from the remote machine. | ||
308 | |||
309 | The argument must be [bind_address:]port. IPv6 addresses can be | ||
310 | specified by enclosing addresses in square brackets. By default, | ||
311 | the local port is bound in accordance with the GatewayPorts | ||
312 | setting. However, an explicit bind_address may be used to bind | ||
313 | the connection to a specific address. The bind_address of | ||
314 | M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the listening port be bound for local | ||
315 | use only, while an empty address or M-bM-^@M-^X*M-bM-^@M-^Y indicates that the port | ||
316 | should be available from all interfaces. | ||
317 | |||
318 | Currently the SOCKS4 and SOCKS5 protocols are supported, and | ||
319 | ssh(1) will act as a SOCKS server. Multiple forwardings may be | ||
320 | specified, and additional forwardings can be given on the command | ||
321 | line. Only the superuser can forward privileged ports. | ||
322 | |||
323 | EnableSSHKeysign | ||
324 | Setting this option to M-bM-^@M-^\yesM-bM-^@M-^] in the global client configuration | ||
325 | file /etc/ssh/ssh_config enables the use of the helper program | ||
326 | ssh-keysign(8) during HostbasedAuthentication. The argument must | ||
327 | 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 | ||
328 | placed in the non-hostspecific section. See ssh-keysign(8) for | ||
329 | more information. | ||
330 | |||
331 | EscapeChar | ||
332 | Sets the escape character (default: M-bM-^@M-^X~M-bM-^@M-^Y). The escape character | ||
333 | can also be set on the command line. The argument should be a | ||
334 | single character, M-bM-^@M-^X^M-bM-^@M-^Y followed by a letter, or M-bM-^@M-^\noneM-bM-^@M-^] to disable | ||
335 | the escape character entirely (making the connection transparent | ||
336 | for binary data). | ||
337 | |||
338 | ExitOnForwardFailure | ||
339 | Specifies whether ssh(1) should terminate the connection if it | ||
340 | cannot set up all requested dynamic, tunnel, local, and remote | ||
341 | port forwardings. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The | ||
342 | default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
343 | |||
344 | FingerprintHash | ||
345 | Specifies the hash algorithm used when displaying key | ||
346 | fingerprints. Valid options are: M-bM-^@M-^\md5M-bM-^@M-^] and M-bM-^@M-^\sha256M-bM-^@M-^]. The | ||
347 | default is M-bM-^@M-^\sha256M-bM-^@M-^]. | ||
348 | |||
349 | ForwardAgent | ||
350 | Specifies whether the connection to the authentication agent (if | ||
351 | any) will be forwarded to the remote machine. The argument must | ||
352 | be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
353 | |||
354 | Agent forwarding should be enabled with caution. Users with the | ||
355 | ability to bypass file permissions on the remote host (for the | ||
356 | agent's Unix-domain socket) can access the local agent through | ||
357 | the forwarded connection. An attacker cannot obtain key material | ||
358 | from the agent, however they can perform operations on the keys | ||
359 | that enable them to authenticate using the identities loaded into | ||
360 | the agent. | ||
361 | |||
362 | ForwardX11 | ||
363 | Specifies whether X11 connections will be automatically | ||
364 | redirected over the secure channel and DISPLAY set. The argument | ||
365 | must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
366 | |||
367 | X11 forwarding should be enabled with caution. Users with the | ||
368 | ability to bypass file permissions on the remote host (for the | ||
369 | user's X11 authorization database) can access the local X11 | ||
370 | display through the forwarded connection. An attacker may then | ||
371 | be able to perform activities such as keystroke monitoring if the | ||
372 | ForwardX11Trusted option is also enabled. | ||
373 | |||
374 | ForwardX11Timeout | ||
375 | Specify a timeout for untrusted X11 forwarding using the format | ||
376 | described in the TIME FORMATS section of sshd_config(5). X11 | ||
377 | connections received by ssh(1) after this time will be refused. | ||
378 | The default is to disable untrusted X11 forwarding after twenty | ||
379 | minutes has elapsed. | ||
380 | |||
381 | ForwardX11Trusted | ||
382 | If this option is set to M-bM-^@M-^\yesM-bM-^@M-^], remote X11 clients will have full | ||
383 | access to the original X11 display. | ||
384 | |||
385 | If this option is set to M-bM-^@M-^\noM-bM-^@M-^], remote X11 clients will be | ||
386 | considered untrusted and prevented from stealing or tampering | ||
387 | with data belonging to trusted X11 clients. Furthermore, the | ||
388 | xauth(1) token used for the session will be set to expire after | ||
389 | 20 minutes. Remote clients will be refused access after this | ||
390 | time. | ||
391 | |||
392 | The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
393 | |||
394 | See the X11 SECURITY extension specification for full details on | ||
395 | the restrictions imposed on untrusted clients. | ||
396 | |||
397 | GatewayPorts | ||
398 | Specifies whether remote hosts are allowed to connect to local | ||
399 | forwarded ports. By default, ssh(1) binds local port forwardings | ||
400 | to the loopback address. This prevents other remote hosts from | ||
401 | connecting to forwarded ports. GatewayPorts can be used to | ||
402 | specify that ssh should bind local port forwardings to the | ||
403 | wildcard address, thus allowing remote hosts to connect to | ||
404 | forwarded ports. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The | ||
405 | default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
406 | |||
407 | GlobalKnownHostsFile | ||
408 | Specifies one or more files to use for the global host key | ||
409 | database, separated by whitespace. The default is | ||
410 | /etc/ssh/ssh_known_hosts, /etc/ssh/ssh_known_hosts2. | ||
411 | |||
412 | GSSAPIAuthentication | ||
413 | Specifies whether user authentication based on GSSAPI is allowed. | ||
414 | The default is M-bM-^@M-^\noM-bM-^@M-^]. Note that this option applies to protocol | ||
415 | version 2 only. | ||
416 | |||
417 | GSSAPIDelegateCredentials | ||
418 | Forward (delegate) credentials to the server. The default is | ||
419 | M-bM-^@M-^\noM-bM-^@M-^]. Note that this option applies to protocol version 2 only. | ||
420 | |||
421 | HashKnownHosts | ||
422 | Indicates that ssh(1) should hash host names and addresses when | ||
423 | they are added to ~/.ssh/known_hosts. These hashed names may be | ||
424 | used normally by ssh(1) and sshd(8), but they do not reveal | ||
425 | identifying information should the file's contents be disclosed. | ||
426 | The default is M-bM-^@M-^\noM-bM-^@M-^]. Note that existing names and addresses in | ||
427 | known hosts files will not be converted automatically, but may be | ||
428 | manually hashed using ssh-keygen(1). | ||
429 | |||
430 | HostbasedAuthentication | ||
431 | Specifies whether to try rhosts based authentication with public | ||
432 | key authentication. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The | ||
433 | default is M-bM-^@M-^\noM-bM-^@M-^]. This option applies to protocol version 2 only | ||
434 | and is similar to RhostsRSAAuthentication. | ||
435 | |||
436 | HostbasedKeyTypes | ||
437 | Specifies the key types that will be used for hostbased | ||
438 | authentication as a comma-separated pattern list. The default | ||
439 | M-bM-^@M-^\*M-bM-^@M-^] will allow all key types. The -Q option of ssh(1) may be | ||
440 | used to list supported key types. | ||
441 | |||
442 | HostKeyAlgorithms | ||
443 | Specifies the protocol version 2 host key algorithms that the | ||
444 | client wants to use in order of preference. The default for this | ||
445 | option is: | ||
446 | |||
447 | ecdsa-sha2-nistp256-cert-v01@openssh.com, | ||
448 | ecdsa-sha2-nistp384-cert-v01@openssh.com, | ||
449 | ecdsa-sha2-nistp521-cert-v01@openssh.com, | ||
450 | ssh-ed25519-cert-v01@openssh.com, | ||
451 | ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com, | ||
452 | ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com, | ||
453 | ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521, | ||
454 | ssh-ed25519,ssh-rsa,ssh-dss | ||
455 | |||
456 | If hostkeys are known for the destination host then this default | ||
457 | is modified to prefer their algorithms. | ||
458 | |||
459 | The list of available key types may also be obtained using the -Q | ||
460 | option of ssh(1) with an argument of M-bM-^@M-^\keyM-bM-^@M-^]. | ||
461 | |||
462 | HostKeyAlias | ||
463 | Specifies an alias that should be used instead of the real host | ||
464 | name when looking up or saving the host key in the host key | ||
465 | database files. This option is useful for tunneling SSH | ||
466 | connections or for multiple servers running on a single host. | ||
467 | |||
468 | HostName | ||
469 | Specifies the real host name to log into. This can be used to | ||
470 | specify nicknames or abbreviations for hosts. If the hostname | ||
471 | contains the character sequence M-bM-^@M-^X%hM-bM-^@M-^Y, then this will be replaced | ||
472 | with the host name specified on the command line (this is useful | ||
473 | for manipulating unqualified names). The character sequence M-bM-^@M-^X%%M-bM-^@M-^Y | ||
474 | will be replaced by a single M-bM-^@M-^X%M-bM-^@M-^Y character, which may be used | ||
475 | when specifying IPv6 link-local addresses. | ||
476 | |||
477 | The default is the name given on the command line. Numeric IP | ||
478 | addresses are also permitted (both on the command line and in | ||
479 | HostName specifications). | ||
480 | |||
481 | IdentitiesOnly | ||
482 | Specifies that ssh(1) should only use the authentication identity | ||
483 | files configured in the ssh_config files, even if ssh-agent(1) or | ||
484 | a PKCS11Provider offers more identities. The argument to this | ||
485 | keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. This option is intended for | ||
486 | situations where ssh-agent offers many different identities. The | ||
487 | default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
488 | |||
489 | IdentityFile | ||
490 | Specifies a file from which the user's DSA, ECDSA, Ed25519 or RSA | ||
491 | authentication identity is read. The default is ~/.ssh/identity | ||
492 | for protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, | ||
493 | ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2. | ||
494 | Additionally, any identities represented by the authentication | ||
495 | agent will be used for authentication unless IdentitiesOnly is | ||
496 | set. ssh(1) will try to load certificate information from the | ||
497 | filename obtained by appending -cert.pub to the path of a | ||
498 | specified IdentityFile. | ||
499 | |||
500 | The file name may use the tilde syntax to refer to a user's home | ||
501 | directory or one of the following escape characters: M-bM-^@M-^X%dM-bM-^@M-^Y (local | ||
502 | 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 | ||
503 | name), M-bM-^@M-^X%hM-bM-^@M-^Y (remote host name) or M-bM-^@M-^X%rM-bM-^@M-^Y (remote user name). | ||
504 | |||
505 | It is possible to have multiple identity files specified in | ||
506 | configuration files; all these identities will be tried in | ||
507 | sequence. Multiple IdentityFile directives will add to the list | ||
508 | of identities tried (this behaviour differs from that of other | ||
509 | configuration directives). | ||
510 | |||
511 | IdentityFile may be used in conjunction with IdentitiesOnly to | ||
512 | select which identities in an agent are offered during | ||
513 | authentication. | ||
514 | |||
515 | IgnoreUnknown | ||
516 | Specifies a pattern-list of unknown options to be ignored if they | ||
517 | are encountered in configuration parsing. This may be used to | ||
518 | suppress errors if ssh_config contains options that are | ||
519 | unrecognised by ssh(1). It is recommended that IgnoreUnknown be | ||
520 | listed early in the configuration file as it will not be applied | ||
521 | to unknown options that appear before it. | ||
522 | |||
523 | IPQoS Specifies the IPv4 type-of-service or DSCP class for connections. | ||
524 | 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-^], | ||
525 | 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-^], | ||
526 | 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-^], | ||
527 | M-bM-^@M-^\lowdelayM-bM-^@M-^], M-bM-^@M-^\throughputM-bM-^@M-^], M-bM-^@M-^\reliabilityM-bM-^@M-^], or a numeric value. | ||
528 | This option may take one or two arguments, separated by | ||
529 | whitespace. If one argument is specified, it is used as the | ||
530 | packet class unconditionally. If two values are specified, the | ||
531 | first is automatically selected for interactive sessions and the | ||
532 | second for non-interactive sessions. The default is M-bM-^@M-^\lowdelayM-bM-^@M-^] | ||
533 | for interactive sessions and M-bM-^@M-^\throughputM-bM-^@M-^] for non-interactive | ||
534 | sessions. | ||
535 | |||
536 | KbdInteractiveAuthentication | ||
537 | Specifies whether to use keyboard-interactive authentication. | ||
538 | The argument to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default | ||
539 | is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
540 | |||
541 | KbdInteractiveDevices | ||
542 | Specifies the list of methods to use in keyboard-interactive | ||
543 | authentication. Multiple method names must be comma-separated. | ||
544 | The default is to use the server specified list. The methods | ||
545 | available vary depending on what the server supports. For an | ||
546 | OpenSSH server, it may be zero or more of: M-bM-^@M-^\bsdauthM-bM-^@M-^], M-bM-^@M-^\pamM-bM-^@M-^], and | ||
547 | M-bM-^@M-^\skeyM-bM-^@M-^]. | ||
548 | |||
549 | KexAlgorithms | ||
550 | Specifies the available KEX (Key Exchange) algorithms. Multiple | ||
551 | algorithms must be comma-separated. The default is: | ||
552 | |||
553 | curve25519-sha256@libssh.org, | ||
554 | ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521, | ||
555 | diffie-hellman-group-exchange-sha256, | ||
556 | diffie-hellman-group-exchange-sha1, | ||
557 | diffie-hellman-group14-sha1, | ||
558 | diffie-hellman-group1-sha1 | ||
559 | |||
560 | The list of available key exchange algorithms may also be | ||
561 | obtained using the -Q option of ssh(1) with an argument of M-bM-^@M-^\kexM-bM-^@M-^]. | ||
562 | |||
563 | LocalCommand | ||
564 | Specifies a command to execute on the local machine after | ||
565 | successfully connecting to the server. The command string | ||
566 | extends to the end of the line, and is executed with the user's | ||
567 | shell. The following escape character substitutions will be | ||
568 | performed: M-bM-^@M-^X%dM-bM-^@M-^Y (local user's home directory), M-bM-^@M-^X%hM-bM-^@M-^Y (remote host | ||
569 | 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 | ||
570 | command line), M-bM-^@M-^X%pM-bM-^@M-^Y (remote port), M-bM-^@M-^X%rM-bM-^@M-^Y (remote user name) or | ||
571 | 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: | ||
572 | %l%h%p%r. | ||
573 | |||
574 | The command is run synchronously and does not have access to the | ||
575 | session of the ssh(1) that spawned it. It should not be used for | ||
576 | interactive commands. | ||
577 | |||
578 | This directive is ignored unless PermitLocalCommand has been | ||
579 | enabled. | ||
580 | |||
581 | LocalForward | ||
582 | Specifies that a TCP port on the local machine be forwarded over | ||
583 | the secure channel to the specified host and port from the remote | ||
584 | machine. The first argument must be [bind_address:]port and the | ||
585 | second argument must be host:hostport. IPv6 addresses can be | ||
586 | specified by enclosing addresses in square brackets. Multiple | ||
587 | forwardings may be specified, and additional forwardings can be | ||
588 | given on the command line. Only the superuser can forward | ||
589 | privileged ports. By default, the local port is bound in | ||
590 | accordance with the GatewayPorts setting. However, an explicit | ||
591 | bind_address may be used to bind the connection to a specific | ||
592 | address. The bind_address of M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the | ||
593 | listening port be bound for local use only, while an empty | ||
594 | address or M-bM-^@M-^X*M-bM-^@M-^Y indicates that the port should be available from | ||
595 | all interfaces. | ||
596 | |||
597 | LogLevel | ||
598 | Gives the verbosity level that is used when logging messages from | ||
599 | ssh(1). The possible values are: QUIET, FATAL, ERROR, INFO, | ||
600 | VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO. | ||
601 | DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify | ||
602 | higher levels of verbose output. | ||
603 | |||
604 | MACs Specifies the MAC (message authentication code) algorithms in | ||
605 | order of preference. The MAC algorithm is used in protocol | ||
606 | version 2 for data integrity protection. Multiple algorithms | ||
607 | must be comma-separated. The algorithms that contain M-bM-^@M-^\-etmM-bM-^@M-^] | ||
608 | calculate the MAC after encryption (encrypt-then-mac). These are | ||
609 | considered safer and their use recommended. The default is: | ||
610 | |||
611 | umac-64-etm@openssh.com,umac-128-etm@openssh.com, | ||
612 | hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com, | ||
613 | umac-64@openssh.com,umac-128@openssh.com, | ||
614 | hmac-sha2-256,hmac-sha2-512, | ||
615 | hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com, | ||
616 | hmac-ripemd160-etm@openssh.com, | ||
617 | hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com, | ||
618 | hmac-md5,hmac-sha1,hmac-ripemd160, | ||
619 | hmac-sha1-96,hmac-md5-96 | ||
620 | |||
621 | The list of available MAC algorithms may also be obtained using | ||
622 | the -Q option of ssh(1) with an argument of M-bM-^@M-^\macM-bM-^@M-^]. | ||
623 | |||
624 | NoHostAuthenticationForLocalhost | ||
625 | This option can be used if the home directory is shared across | ||
626 | machines. In this case localhost will refer to a different | ||
627 | machine on each of the machines and the user will get many | ||
628 | warnings about changed host keys. However, this option disables | ||
629 | host authentication for localhost. The argument to this keyword | ||
630 | must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is to check the host key for | ||
631 | localhost. | ||
632 | |||
633 | NumberOfPasswordPrompts | ||
634 | Specifies the number of password prompts before giving up. The | ||
635 | argument to this keyword must be an integer. The default is 3. | ||
636 | |||
637 | PasswordAuthentication | ||
638 | Specifies whether to use password authentication. The argument | ||
639 | 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-^]. | ||
640 | |||
641 | PermitLocalCommand | ||
642 | Allow local command execution via the LocalCommand option or | ||
643 | using the !command escape sequence in ssh(1). The argument must | ||
644 | be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
645 | |||
646 | PKCS11Provider | ||
647 | Specifies which PKCS#11 provider to use. The argument to this | ||
648 | keyword is the PKCS#11 shared library ssh(1) should use to | ||
649 | communicate with a PKCS#11 token providing the user's private RSA | ||
650 | key. | ||
651 | |||
652 | Port Specifies the port number to connect on the remote host. The | ||
653 | default is 22. | ||
654 | |||
655 | PreferredAuthentications | ||
656 | Specifies the order in which the client should try protocol 2 | ||
657 | authentication methods. This allows a client to prefer one | ||
658 | method (e.g. keyboard-interactive) over another method (e.g. | ||
659 | password). The default is: | ||
660 | |||
661 | gssapi-with-mic,hostbased,publickey, | ||
662 | keyboard-interactive,password | ||
663 | |||
664 | Protocol | ||
665 | Specifies the protocol versions ssh(1) should support in order of | ||
666 | preference. The possible values are M-bM-^@M-^X1M-bM-^@M-^Y and M-bM-^@M-^X2M-bM-^@M-^Y. Multiple | ||
667 | versions must be comma-separated. When this option is set to | ||
668 | M-bM-^@M-^\2,1M-bM-^@M-^] ssh will try version 2 and fall back to version 1 if | ||
669 | version 2 is not available. The default is M-bM-^@M-^X2M-bM-^@M-^Y. | ||
670 | |||
671 | ProxyCommand | ||
672 | Specifies the command to use to connect to the server. The | ||
673 | command string extends to the end of the line, and is executed | ||
674 | using the user's shell M-bM-^@M-^XexecM-bM-^@M-^Y directive to avoid a lingering | ||
675 | shell process. | ||
676 | |||
677 | In the command string, any occurrence of M-bM-^@M-^X%hM-bM-^@M-^Y will be substituted | ||
678 | 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 | ||
679 | remote user name. The command can be basically anything, and | ||
680 | should read from its standard input and write to its standard | ||
681 | output. It should eventually connect an sshd(8) server running | ||
682 | on some machine, or execute sshd -i somewhere. Host key | ||
683 | management will be done using the HostName of the host being | ||
684 | connected (defaulting to the name typed by the user). Setting | ||
685 | the command to M-bM-^@M-^\noneM-bM-^@M-^] disables this option entirely. Note that | ||
686 | CheckHostIP is not available for connects with a proxy command. | ||
687 | |||
688 | This directive is useful in conjunction with nc(1) and its proxy | ||
689 | support. For example, the following directive would connect via | ||
690 | an HTTP proxy at 192.0.2.0: | ||
691 | |||
692 | ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p | ||
693 | |||
694 | ProxyUseFdpass | ||
695 | Specifies that ProxyCommand will pass a connected file descriptor | ||
696 | back to ssh(1) instead of continuing to execute and pass data. | ||
697 | The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
698 | |||
699 | PubkeyAuthentication | ||
700 | Specifies whether to try public key authentication. The argument | ||
701 | 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-^]. | ||
702 | This option applies to protocol version 2 only. | ||
703 | |||
704 | RekeyLimit | ||
705 | Specifies the maximum amount of data that may be transmitted | ||
706 | before the session key is renegotiated, optionally followed a | ||
707 | maximum amount of time that may pass before the session key is | ||
708 | renegotiated. The first argument is specified in bytes and may | ||
709 | 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, | ||
710 | Megabytes, or Gigabytes, respectively. The default is between | ||
711 | M-bM-^@M-^X1GM-bM-^@M-^Y and M-bM-^@M-^X4GM-bM-^@M-^Y, depending on the cipher. The optional second | ||
712 | value is specified in seconds and may use any of the units | ||
713 | documented in the TIME FORMATS section of sshd_config(5). The | ||
714 | default value for RekeyLimit is M-bM-^@M-^\default noneM-bM-^@M-^], which means that | ||
715 | rekeying is performed after the cipher's default amount of data | ||
716 | has been sent or received and no time based rekeying is done. | ||
717 | This option applies to protocol version 2 only. | ||
718 | |||
719 | RemoteForward | ||
720 | Specifies that a TCP port on the remote machine be forwarded over | ||
721 | the secure channel to the specified host and port from the local | ||
722 | machine. The first argument must be [bind_address:]port and the | ||
723 | second argument must be host:hostport. IPv6 addresses can be | ||
724 | specified by enclosing addresses in square brackets. Multiple | ||
725 | forwardings may be specified, and additional forwardings can be | ||
726 | given on the command line. Privileged ports can be forwarded | ||
727 | only when logging in as root on the remote machine. | ||
728 | |||
729 | If the port argument is M-bM-^@M-^X0M-bM-^@M-^Y, the listen port will be dynamically | ||
730 | allocated on the server and reported to the client at run time. | ||
731 | |||
732 | If the bind_address is not specified, the default is to only bind | ||
733 | to loopback addresses. If the bind_address is M-bM-^@M-^X*M-bM-^@M-^Y or an empty | ||
734 | string, then the forwarding is requested to listen on all | ||
735 | interfaces. Specifying a remote bind_address will only succeed | ||
736 | if the server's GatewayPorts option is enabled (see | ||
737 | sshd_config(5)). | ||
738 | |||
739 | RequestTTY | ||
740 | Specifies whether to request a pseudo-tty for the session. The | ||
741 | argument may be one of: M-bM-^@M-^\noM-bM-^@M-^] (never request a TTY), M-bM-^@M-^\yesM-bM-^@M-^] (always | ||
742 | request a TTY when standard input is a TTY), M-bM-^@M-^\forceM-bM-^@M-^] (always | ||
743 | request a TTY) or M-bM-^@M-^\autoM-bM-^@M-^] (request a TTY when opening a login | ||
744 | session). This option mirrors the -t and -T flags for ssh(1). | ||
745 | |||
746 | RevokedHostKeys | ||
747 | Specifies revoked host public keys. Keys listed in this file | ||
748 | will be refused for host authentication. Note that if this file | ||
749 | does not exist or is not readable, then host authentication will | ||
750 | be refused for all hosts. Keys may be specified as a text file, | ||
751 | listing one public key per line, or as an OpenSSH Key Revocation | ||
752 | List (KRL) as generated by ssh-keygen(1). For more information | ||
753 | on KRLs, see the KEY REVOCATION LISTS section in ssh-keygen(1). | ||
754 | |||
755 | RhostsRSAAuthentication | ||
756 | Specifies whether to try rhosts based authentication with RSA | ||
757 | host authentication. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The | ||
758 | default is M-bM-^@M-^\noM-bM-^@M-^]. This option applies to protocol version 1 only | ||
759 | and requires ssh(1) to be setuid root. | ||
760 | |||
761 | RSAAuthentication | ||
762 | Specifies whether to try RSA authentication. The argument to | ||
763 | this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. RSA authentication will only | ||
764 | be attempted if the identity file exists, or an authentication | ||
765 | agent is running. The default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that this option | ||
766 | applies to protocol version 1 only. | ||
767 | |||
768 | SendEnv | ||
769 | Specifies what variables from the local environ(7) should be sent | ||
770 | to the server. Note that environment passing is only supported | ||
771 | for protocol 2. The server must also support it, and the server | ||
772 | must be configured to accept these environment variables. Note | ||
773 | that the TERM environment variable is always sent whenever a | ||
774 | pseudo-terminal is requested as it is required by the protocol. | ||
775 | Refer to AcceptEnv in sshd_config(5) for how to configure the | ||
776 | server. Variables are specified by name, which may contain | ||
777 | wildcard characters. Multiple environment variables may be | ||
778 | separated by whitespace or spread across multiple SendEnv | ||
779 | directives. The default is not to send any environment | ||
780 | variables. | ||
781 | |||
782 | See PATTERNS for more information on patterns. | ||
783 | |||
784 | ServerAliveCountMax | ||
785 | Sets the number of server alive messages (see below) which may be | ||
786 | sent without ssh(1) receiving any messages back from the server. | ||
787 | If this threshold is reached while server alive messages are | ||
788 | being sent, ssh will disconnect from the server, terminating the | ||
789 | session. It is important to note that the use of server alive | ||
790 | messages is very different from TCPKeepAlive (below). The server | ||
791 | alive messages are sent through the encrypted channel and | ||
792 | therefore will not be spoofable. The TCP keepalive option | ||
793 | enabled by TCPKeepAlive is spoofable. The server alive mechanism | ||
794 | is valuable when the client or server depend on knowing when a | ||
795 | connection has become inactive. | ||
796 | |||
797 | The default value is 3. If, for example, ServerAliveInterval | ||
798 | (see below) is set to 15 and ServerAliveCountMax is left at the | ||
799 | default, if the server becomes unresponsive, ssh will disconnect | ||
800 | after approximately 45 seconds. This option applies to protocol | ||
801 | version 2 only. | ||
802 | |||
803 | ServerAliveInterval | ||
804 | Sets a timeout interval in seconds after which if no data has | ||
805 | been received from the server, ssh(1) will send a message through | ||
806 | the encrypted channel to request a response from the server. The | ||
807 | default is 0, indicating that these messages will not be sent to | ||
808 | the server. This option applies to protocol version 2 only. | ||
809 | |||
810 | StreamLocalBindMask | ||
811 | Sets the octal file creation mode mask (umask) used when creating | ||
812 | a Unix-domain socket file for local or remote port forwarding. | ||
813 | This option is only used for port forwarding to a Unix-domain | ||
814 | socket file. | ||
815 | |||
816 | The default value is 0177, which creates a Unix-domain socket | ||
817 | file that is readable and writable only by the owner. Note that | ||
818 | not all operating systems honor the file mode on Unix-domain | ||
819 | socket files. | ||
820 | |||
821 | StreamLocalBindUnlink | ||
822 | Specifies whether to remove an existing Unix-domain socket file | ||
823 | for local or remote port forwarding before creating a new one. | ||
824 | If the socket file already exists and StreamLocalBindUnlink is | ||
825 | not enabled, ssh will be unable to forward the port to the Unix- | ||
826 | domain socket file. This option is only used for port forwarding | ||
827 | to a Unix-domain socket file. | ||
828 | |||
829 | 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-^]. | ||
830 | |||
831 | StrictHostKeyChecking | ||
832 | If this flag is set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) will never automatically add | ||
833 | host keys to the ~/.ssh/known_hosts file, and refuses to connect | ||
834 | to hosts whose host key has changed. This provides maximum | ||
835 | protection against trojan horse attacks, though it can be | ||
836 | annoying when the /etc/ssh/ssh_known_hosts file is poorly | ||
837 | maintained or when connections to new hosts are frequently made. | ||
838 | This option forces the user to manually add all new hosts. If | ||
839 | this flag is set to M-bM-^@M-^\noM-bM-^@M-^], ssh will automatically add new host | ||
840 | keys to the user known hosts files. If this flag is set to | ||
841 | M-bM-^@M-^\askM-bM-^@M-^], new host keys will be added to the user known host files | ||
842 | only after the user has confirmed that is what they really want | ||
843 | to do, and ssh will refuse to connect to hosts whose host key has | ||
844 | changed. The host keys of known hosts will be verified | ||
845 | automatically in all cases. The argument must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\noM-bM-^@M-^], or | ||
846 | M-bM-^@M-^\askM-bM-^@M-^]. The default is M-bM-^@M-^\askM-bM-^@M-^]. | ||
847 | |||
848 | TCPKeepAlive | ||
849 | Specifies whether the system should send TCP keepalive messages | ||
850 | to the other side. If they are sent, death of the connection or | ||
851 | crash of one of the machines will be properly noticed. However, | ||
852 | this means that connections will die if the route is down | ||
853 | temporarily, and some people find it annoying. | ||
854 | |||
855 | The default is M-bM-^@M-^\yesM-bM-^@M-^] (to send TCP keepalive messages), and the | ||
856 | client will notice if the network goes down or the remote host | ||
857 | dies. This is important in scripts, and many users want it too. | ||
858 | |||
859 | To disable TCP keepalive messages, the value should be set to | ||
860 | M-bM-^@M-^\noM-bM-^@M-^]. | ||
861 | |||
862 | Tunnel Request tun(4) device forwarding between the client and the | ||
863 | server. The argument must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\point-to-pointM-bM-^@M-^] (layer 3), | ||
864 | M-bM-^@M-^\ethernetM-bM-^@M-^] (layer 2), or M-bM-^@M-^\noM-bM-^@M-^]. Specifying M-bM-^@M-^\yesM-bM-^@M-^] requests the | ||
865 | default tunnel mode, which is M-bM-^@M-^\point-to-pointM-bM-^@M-^]. The default is | ||
866 | M-bM-^@M-^\noM-bM-^@M-^]. | ||
867 | |||
868 | TunnelDevice | ||
869 | Specifies the tun(4) devices to open on the client (local_tun) | ||
870 | and the server (remote_tun). | ||
871 | |||
872 | The argument must be local_tun[:remote_tun]. The devices may be | ||
873 | specified by numerical ID or the keyword M-bM-^@M-^\anyM-bM-^@M-^], which uses the | ||
874 | next available tunnel device. If remote_tun is not specified, it | ||
875 | defaults to M-bM-^@M-^\anyM-bM-^@M-^]. The default is M-bM-^@M-^\any:anyM-bM-^@M-^]. | ||
876 | |||
877 | UpdateHostKeys | ||
878 | Specifies whether ssh(1) should accept notifications of | ||
879 | additional hostkeys from the server sent after authentication has | ||
880 | completed and add them to UserKnownHostsFile. The argument must | ||
881 | 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 | ||
882 | allows learning alternate hostkeys for a server and supports | ||
883 | graceful key rotation by allowing a server to send replacement | ||
884 | public keys before old ones are removed. Additional hostkeys are | ||
885 | only accepted if the key used to authenticate the host was | ||
886 | already trusted or explicity accepted by the user. If | ||
887 | UpdateHostKeys is set to M-bM-^@M-^\askM-bM-^@M-^], then the user is asked to confirm | ||
888 | the modifications to the known_hosts file. Confirmation is | ||
889 | currently incompatible with ControlPersist, and will be disabled | ||
890 | if it is enabled. | ||
891 | |||
892 | Presently, only sshd(8) from OpenSSH 6.8 and greater support the | ||
893 | M-bM-^@M-^\hostkeys@openssh.comM-bM-^@M-^] protocol extension used to inform the | ||
894 | client of all the server's hostkeys. | ||
895 | |||
896 | UsePrivilegedPort | ||
897 | Specifies whether to use a privileged port for outgoing | ||
898 | connections. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is | ||
899 | M-bM-^@M-^\noM-bM-^@M-^]. If set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) must be setuid root. Note that | ||
900 | this option must be set to M-bM-^@M-^\yesM-bM-^@M-^] for RhostsRSAAuthentication with | ||
901 | older servers. | ||
902 | |||
903 | User Specifies the user to log in as. This can be useful when a | ||
904 | different user name is used on different machines. This saves | ||
905 | the trouble of having to remember to give the user name on the | ||
906 | command line. | ||
907 | |||
908 | UserKnownHostsFile | ||
909 | Specifies one or more files to use for the user host key | ||
910 | database, separated by whitespace. The default is | ||
911 | ~/.ssh/known_hosts, ~/.ssh/known_hosts2. | ||
912 | |||
913 | VerifyHostKeyDNS | ||
914 | Specifies whether to verify the remote key using DNS and SSHFP | ||
915 | resource records. If this option is set to M-bM-^@M-^\yesM-bM-^@M-^], the client | ||
916 | will implicitly trust keys that match a secure fingerprint from | ||
917 | DNS. Insecure fingerprints will be handled as if this option was | ||
918 | set to M-bM-^@M-^\askM-bM-^@M-^]. If this option is set to M-bM-^@M-^\askM-bM-^@M-^], information on | ||
919 | fingerprint match will be displayed, but the user will still need | ||
920 | to confirm new host keys according to the StrictHostKeyChecking | ||
921 | 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 | ||
922 | is M-bM-^@M-^\noM-bM-^@M-^]. Note that this option applies to protocol version 2 | ||
923 | only. | ||
924 | |||
925 | See also VERIFYING HOST KEYS in ssh(1). | ||
926 | |||
927 | VisualHostKey | ||
928 | If this flag is set to M-bM-^@M-^\yesM-bM-^@M-^], an ASCII art representation of the | ||
929 | remote host key fingerprint is printed in addition to the | ||
930 | fingerprint string at login and for unknown host keys. If this | ||
931 | flag is set to M-bM-^@M-^\noM-bM-^@M-^], no fingerprint strings are printed at login | ||
932 | and only the fingerprint string will be printed for unknown host | ||
933 | keys. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
934 | |||
935 | XAuthLocation | ||
936 | Specifies the full pathname of the xauth(1) program. The default | ||
937 | is /usr/X11R6/bin/xauth. | ||
938 | |||
939 | PATTERNS | ||
940 | A pattern consists of zero or more non-whitespace characters, M-bM-^@M-^X*M-bM-^@M-^Y (a | ||
941 | wildcard that matches zero or more characters), or M-bM-^@M-^X?M-bM-^@M-^Y (a wildcard that | ||
942 | matches exactly one character). For example, to specify a set of | ||
943 | declarations for any host in the M-bM-^@M-^\.co.ukM-bM-^@M-^] set of domains, the following | ||
944 | pattern could be used: | ||
945 | |||
946 | Host *.co.uk | ||
947 | |||
948 | The following pattern would match any host in the 192.168.0.[0-9] network | ||
949 | range: | ||
950 | |||
951 | Host 192.168.0.? | ||
952 | |||
953 | A pattern-list is a comma-separated list of patterns. Patterns within | ||
954 | pattern-lists may be negated by preceding them with an exclamation mark | ||
955 | (M-bM-^@M-^X!M-bM-^@M-^Y). For example, to allow a key to be used from anywhere within an | ||
956 | organization except from the M-bM-^@M-^\dialupM-bM-^@M-^] pool, the following entry (in | ||
957 | authorized_keys) could be used: | ||
958 | |||
959 | from="!*.dialup.example.com,*.example.com" | ||
960 | |||
961 | FILES | ||
962 | ~/.ssh/config | ||
963 | This is the per-user configuration file. The format of this file | ||
964 | is described above. This file is used by the SSH client. | ||
965 | Because of the potential for abuse, this file must have strict | ||
966 | permissions: read/write for the user, and not accessible by | ||
967 | others. | ||
968 | |||
969 | /etc/ssh/ssh_config | ||
970 | Systemwide configuration file. This file provides defaults for | ||
971 | those values that are not specified in the user's configuration | ||
972 | file, and for those users who do not have a configuration file. | ||
973 | This file must be world-readable. | ||
974 | |||
975 | SEE ALSO | ||
976 | ssh(1) | ||
977 | |||
978 | AUTHORS | ||
979 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
980 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
981 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
982 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
983 | versions 1.5 and 2.0. | ||
984 | |||
985 | OpenBSD 5.7 June 2, 2015 OpenBSD 5.7 | ||
@@ -0,0 +1,636 @@ | |||
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). sshd is normally | ||
91 | not run from inetd because it needs to generate the server key | ||
92 | before it can respond to the client, and this may take tens of | ||
93 | seconds. Clients would have to wait too long if the key was | ||
94 | regenerated every time. However, with small key sizes (e.g. 512) | ||
95 | using sshd from inetd may be feasible. | ||
96 | |||
97 | -k key_gen_time | ||
98 | Specifies how often the ephemeral protocol version 1 server key | ||
99 | is regenerated (default 3600 seconds, or one hour). The | ||
100 | motivation for regenerating the key fairly often is that the key | ||
101 | is not stored anywhere, and after about an hour it becomes | ||
102 | impossible to recover the key for decrypting intercepted | ||
103 | communications even if the machine is cracked into or physically | ||
104 | seized. A value of zero indicates that the key will never be | ||
105 | regenerated. | ||
106 | |||
107 | -o option | ||
108 | Can be used to give options in the format used in the | ||
109 | configuration file. This is useful for specifying options for | ||
110 | which there is no separate command-line flag. For full details | ||
111 | of the options, and their values, see sshd_config(5). | ||
112 | |||
113 | -p port | ||
114 | Specifies the port on which the server listens for connections | ||
115 | (default 22). Multiple port options are permitted. Ports | ||
116 | specified in the configuration file with the Port option are | ||
117 | ignored when a command-line port is specified. Ports specified | ||
118 | using the ListenAddress option override command-line ports. | ||
119 | |||
120 | -q Quiet mode. Nothing is sent to the system log. Normally the | ||
121 | beginning, authentication, and termination of each connection is | ||
122 | logged. | ||
123 | |||
124 | -T Extended test mode. Check the validity of the configuration | ||
125 | file, output the effective configuration to stdout and then exit. | ||
126 | Optionally, Match rules may be applied by specifying the | ||
127 | connection parameters using one or more -C options. | ||
128 | |||
129 | -t Test mode. Only check the validity of the configuration file and | ||
130 | sanity of the keys. This is useful for updating sshd reliably as | ||
131 | configuration options may change. | ||
132 | |||
133 | -u len This option is used to specify the size of the field in the utmp | ||
134 | structure that holds the remote host name. If the resolved host | ||
135 | name is longer than len, the dotted decimal value will be used | ||
136 | instead. This allows hosts with very long host names that | ||
137 | overflow this field to still be uniquely identified. Specifying | ||
138 | -u0 indicates that only dotted decimal addresses should be put | ||
139 | into the utmp file. -u0 may also be used to prevent sshd from | ||
140 | making DNS requests unless the authentication mechanism or | ||
141 | configuration requires it. Authentication mechanisms that may | ||
142 | require DNS include RhostsRSAAuthentication, | ||
143 | HostbasedAuthentication, and using a from="pattern-list" option | ||
144 | in a key file. Configuration options that require DNS include | ||
145 | using a USER@HOST pattern in AllowUsers or DenyUsers. | ||
146 | |||
147 | AUTHENTICATION | ||
148 | The OpenSSH SSH daemon supports SSH protocols 1 and 2. The default is to | ||
149 | use protocol 2 only, though this can be changed via the Protocol option | ||
150 | in sshd_config(5). Protocol 2 supports DSA, ECDSA, Ed25519 and RSA keys; | ||
151 | protocol 1 only supports RSA keys. For both protocols, each host has a | ||
152 | host-specific key, normally 2048 bits, used to identify the host. | ||
153 | |||
154 | Forward security for protocol 1 is provided through an additional server | ||
155 | key, normally 768 bits, generated when the server starts. This key is | ||
156 | normally regenerated every hour if it has been used, and is never stored | ||
157 | on disk. Whenever a client connects, the daemon responds with its public | ||
158 | host and server keys. The client compares the RSA host key against its | ||
159 | own database to verify that it has not changed. The client then | ||
160 | generates a 256-bit random number. It encrypts this random number using | ||
161 | both the host key and the server key, and sends the encrypted number to | ||
162 | the server. Both sides then use this random number as a session key | ||
163 | which is used to encrypt all further communications in the session. The | ||
164 | rest of the session is encrypted using a conventional cipher, currently | ||
165 | Blowfish or 3DES, with 3DES being used by default. The client selects | ||
166 | the encryption algorithm to use from those offered by the server. | ||
167 | |||
168 | For protocol 2, forward security is provided through a Diffie-Hellman key | ||
169 | agreement. This key agreement results in a shared session key. The rest | ||
170 | of the session is encrypted using a symmetric cipher, currently 128-bit | ||
171 | AES, Blowfish, 3DES, CAST128, Arcfour, 192-bit AES, or 256-bit AES. The | ||
172 | client selects the encryption algorithm to use from those offered by the | ||
173 | server. Additionally, session integrity is provided through a | ||
174 | cryptographic message authentication code (hmac-md5, hmac-sha1, umac-64, | ||
175 | umac-128, hmac-ripemd160, hmac-sha2-256 or hmac-sha2-512). | ||
176 | |||
177 | Finally, the server and the client enter an authentication dialog. The | ||
178 | client tries to authenticate itself using host-based authentication, | ||
179 | public key authentication, challenge-response authentication, or password | ||
180 | authentication. | ||
181 | |||
182 | Regardless of the authentication type, the account is checked to ensure | ||
183 | that it is accessible. An account is not accessible if it is locked, | ||
184 | listed in DenyUsers or its group is listed in DenyGroups . The | ||
185 | definition of a locked account is system dependant. Some platforms have | ||
186 | their own account database (eg AIX) and some modify the passwd field ( | ||
187 | 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 | ||
188 | 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 | ||
189 | Linuxes). If there is a requirement to disable password authentication | ||
190 | for the account while allowing still public-key, then the passwd field | ||
191 | 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 ). | ||
192 | |||
193 | If the client successfully authenticates itself, a dialog for preparing | ||
194 | the session is entered. At this time the client may request things like | ||
195 | allocating a pseudo-tty, forwarding X11 connections, forwarding TCP | ||
196 | connections, or forwarding the authentication agent connection over the | ||
197 | secure channel. | ||
198 | |||
199 | After this, the client either requests a shell or execution of a command. | ||
200 | The sides then enter session mode. In this mode, either side may send | ||
201 | data at any time, and such data is forwarded to/from the shell or command | ||
202 | on the server side, and the user terminal in the client side. | ||
203 | |||
204 | When the user program terminates and all forwarded X11 and other | ||
205 | connections have been closed, the server sends command exit status to the | ||
206 | client, and both sides exit. | ||
207 | |||
208 | LOGIN PROCESS | ||
209 | When a user successfully logs in, sshd does the following: | ||
210 | |||
211 | 1. If the login is on a tty, and no command has been specified, | ||
212 | prints last login time and /etc/motd (unless prevented in the | ||
213 | configuration file or by ~/.hushlogin; see the FILES section). | ||
214 | |||
215 | 2. If the login is on a tty, records login time. | ||
216 | |||
217 | 3. Checks /etc/nologin; if it exists, prints contents and quits | ||
218 | (unless root). | ||
219 | |||
220 | 4. Changes to run with normal user privileges. | ||
221 | |||
222 | 5. Sets up basic environment. | ||
223 | |||
224 | 6. Reads the file ~/.ssh/environment, if it exists, and users are | ||
225 | allowed to change their environment. See the | ||
226 | PermitUserEnvironment option in sshd_config(5). | ||
227 | |||
228 | 7. Changes to user's home directory. | ||
229 | |||
230 | 8. If ~/.ssh/rc exists and the sshd_config(5) PermitUserRC option | ||
231 | is set, runs it; else if /etc/ssh/sshrc exists, runs it; | ||
232 | otherwise runs xauth. The M-bM-^@M-^\rcM-bM-^@M-^] files are given the X11 | ||
233 | authentication protocol and cookie in standard input. See | ||
234 | SSHRC, below. | ||
235 | |||
236 | 9. Runs user's shell or command. All commands are run under the | ||
237 | user's login shell as specified in the system password | ||
238 | database. | ||
239 | |||
240 | SSHRC | ||
241 | If the file ~/.ssh/rc exists, sh(1) runs it after reading the environment | ||
242 | files but before starting the user's shell or command. It must not | ||
243 | produce any output on stdout; stderr must be used instead. If X11 | ||
244 | forwarding is in use, it will receive the "proto cookie" pair in its | ||
245 | standard input (and DISPLAY in its environment). The script must call | ||
246 | xauth(1) because sshd will not run xauth automatically to add X11 | ||
247 | cookies. | ||
248 | |||
249 | The primary purpose of this file is to run any initialization routines | ||
250 | which may be needed before the user's home directory becomes accessible; | ||
251 | AFS is a particular example of such an environment. | ||
252 | |||
253 | This file will probably contain some initialization code followed by | ||
254 | something similar to: | ||
255 | |||
256 | if read proto cookie && [ -n "$DISPLAY" ]; then | ||
257 | if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then | ||
258 | # X11UseLocalhost=yes | ||
259 | echo add unix:`echo $DISPLAY | | ||
260 | cut -c11-` $proto $cookie | ||
261 | else | ||
262 | # X11UseLocalhost=no | ||
263 | echo add $DISPLAY $proto $cookie | ||
264 | fi | xauth -q - | ||
265 | fi | ||
266 | |||
267 | If this file does not exist, /etc/ssh/sshrc is run, and if that does not | ||
268 | exist either, xauth is used to add the cookie. | ||
269 | |||
270 | AUTHORIZED_KEYS FILE FORMAT | ||
271 | AuthorizedKeysFile specifies the files containing public keys for public | ||
272 | key authentication; if none is specified, the default is | ||
273 | ~/.ssh/authorized_keys and ~/.ssh/authorized_keys2. Each line of the | ||
274 | file contains one key (empty lines and lines starting with a M-bM-^@M-^X#M-bM-^@M-^Y are | ||
275 | ignored as comments). Protocol 1 public keys consist of the following | ||
276 | space-separated fields: options, bits, exponent, modulus, comment. | ||
277 | Protocol 2 public key consist of: options, keytype, base64-encoded key, | ||
278 | comment. The options field is optional; its presence is determined by | ||
279 | whether the line starts with a number or not (the options field never | ||
280 | starts with a number). The bits, exponent, modulus, and comment fields | ||
281 | give the RSA key for protocol version 1; the comment field is not used | ||
282 | for anything (but may be convenient for the user to identify the key). | ||
283 | For protocol version 2 the keytype is M-bM-^@M-^\ecdsa-sha2-nistp256M-bM-^@M-^], | ||
284 | 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 | ||
285 | M-bM-^@M-^\ssh-rsaM-bM-^@M-^]. | ||
286 | |||
287 | Note that lines in this file are usually several hundred bytes long | ||
288 | (because of the size of the public key encoding) up to a limit of 8 | ||
289 | kilobytes, which permits DSA keys up to 8 kilobits and RSA keys up to 16 | ||
290 | kilobits. You don't want to type them in; instead, copy the | ||
291 | identity.pub, id_dsa.pub, id_ecdsa.pub, id_ed25519.pub, or the id_rsa.pub | ||
292 | file and edit it. | ||
293 | |||
294 | sshd enforces a minimum RSA key modulus size for protocol 1 and protocol | ||
295 | 2 keys of 768 bits. | ||
296 | |||
297 | The options (if present) consist of comma-separated option | ||
298 | specifications. No spaces are permitted, except within double quotes. | ||
299 | The following option specifications are supported (note that option | ||
300 | keywords are case-insensitive): | ||
301 | |||
302 | cert-authority | ||
303 | Specifies that the listed key is a certification authority (CA) | ||
304 | that is trusted to validate signed certificates for user | ||
305 | authentication. | ||
306 | |||
307 | Certificates may encode access restrictions similar to these key | ||
308 | options. If both certificate restrictions and key options are | ||
309 | present, the most restrictive union of the two is applied. | ||
310 | |||
311 | command="command" | ||
312 | Specifies that the command is executed whenever this key is used | ||
313 | for authentication. The command supplied by the user (if any) is | ||
314 | ignored. The command is run on a pty if the client requests a | ||
315 | pty; otherwise it is run without a tty. If an 8-bit clean | ||
316 | channel is required, one must not request a pty or should specify | ||
317 | no-pty. A quote may be included in the command by quoting it | ||
318 | with a backslash. This option might be useful to restrict | ||
319 | certain public keys to perform just a specific operation. An | ||
320 | example might be a key that permits remote backups but nothing | ||
321 | else. Note that the client may specify TCP and/or X11 forwarding | ||
322 | unless they are explicitly prohibited. The command originally | ||
323 | supplied by the client is available in the SSH_ORIGINAL_COMMAND | ||
324 | environment variable. Note that this option applies to shell, | ||
325 | command or subsystem execution. Also note that this command may | ||
326 | be superseded by either a sshd_config(5) ForceCommand directive | ||
327 | or a command embedded in a certificate. | ||
328 | |||
329 | environment="NAME=value" | ||
330 | Specifies that the string is to be added to the environment when | ||
331 | logging in using this key. Environment variables set this way | ||
332 | override other default environment values. Multiple options of | ||
333 | this type are permitted. Environment processing is disabled by | ||
334 | default and is controlled via the PermitUserEnvironment option. | ||
335 | This option is automatically disabled if UseLogin is enabled. | ||
336 | |||
337 | from="pattern-list" | ||
338 | Specifies that in addition to public key authentication, either | ||
339 | the canonical name of the remote host or its IP address must be | ||
340 | present in the comma-separated list of patterns. See PATTERNS in | ||
341 | ssh_config(5) for more information on patterns. | ||
342 | |||
343 | In addition to the wildcard matching that may be applied to | ||
344 | hostnames or addresses, a from stanza may match IP addresses | ||
345 | using CIDR address/masklen notation. | ||
346 | |||
347 | The purpose of this option is to optionally increase security: | ||
348 | public key authentication by itself does not trust the network or | ||
349 | name servers or anything (but the key); however, if somebody | ||
350 | somehow steals the key, the key permits an intruder to log in | ||
351 | from anywhere in the world. This additional option makes using a | ||
352 | stolen key more difficult (name servers and/or routers would have | ||
353 | to be compromised in addition to just the key). | ||
354 | |||
355 | no-agent-forwarding | ||
356 | Forbids authentication agent forwarding when this key is used for | ||
357 | authentication. | ||
358 | |||
359 | no-port-forwarding | ||
360 | Forbids TCP forwarding when this key is used for authentication. | ||
361 | Any port forward requests by the client will return an error. | ||
362 | This might be used, e.g. in connection with the command option. | ||
363 | |||
364 | no-pty Prevents tty allocation (a request to allocate a pty will fail). | ||
365 | |||
366 | no-user-rc | ||
367 | Disables execution of ~/.ssh/rc. | ||
368 | |||
369 | no-X11-forwarding | ||
370 | Forbids X11 forwarding when this key is used for authentication. | ||
371 | Any X11 forward requests by the client will return an error. | ||
372 | |||
373 | permitopen="host:port" | ||
374 | Limit local port forwarding with ssh(1) -L such that it may only | ||
375 | connect to the specified host and port. IPv6 addresses can be | ||
376 | specified by enclosing the address in square brackets. Multiple | ||
377 | permitopen options may be applied separated by commas. No | ||
378 | pattern matching is performed on the specified hostnames, they | ||
379 | must be literal domains or addresses. A port specification of * | ||
380 | matches any port. | ||
381 | |||
382 | principals="principals" | ||
383 | On a cert-authority line, specifies allowed principals for | ||
384 | certificate authentication as a comma-separated list. At least | ||
385 | one name from the list must appear in the certificate's list of | ||
386 | principals for the certificate to be accepted. This option is | ||
387 | ignored for keys that are not marked as trusted certificate | ||
388 | signers using the cert-authority option. | ||
389 | |||
390 | tunnel="n" | ||
391 | Force a tun(4) device on the server. Without this option, the | ||
392 | next available device will be used if the client requests a | ||
393 | tunnel. | ||
394 | |||
395 | An example authorized_keys file: | ||
396 | |||
397 | # Comments allowed at start of line | ||
398 | ssh-rsa AAAAB3Nza...LiPk== user@example.net | ||
399 | from="*.sales.example.net,!pc.sales.example.net" ssh-rsa | ||
400 | AAAAB2...19Q== john@example.net | ||
401 | command="dump /home",no-pty,no-port-forwarding ssh-dss | ||
402 | AAAAC3...51R== example.net | ||
403 | permitopen="192.0.2.1:80",permitopen="192.0.2.2:25" ssh-dss | ||
404 | AAAAB5...21S== | ||
405 | tunnel="0",command="sh /etc/netstart tun0" ssh-rsa AAAA...== | ||
406 | jane@example.net | ||
407 | |||
408 | SSH_KNOWN_HOSTS FILE FORMAT | ||
409 | The /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts files contain host | ||
410 | public keys for all known hosts. The global file should be prepared by | ||
411 | the administrator (optional), and the per-user file is maintained | ||
412 | automatically: whenever the user connects from an unknown host, its key | ||
413 | is added to the per-user file. | ||
414 | |||
415 | Each line in these files contains the following fields: markers | ||
416 | (optional), hostnames, bits, exponent, modulus, comment. The fields are | ||
417 | separated by spaces. | ||
418 | |||
419 | The marker is optional, but if it is present then it must be one of | ||
420 | M-bM-^@M-^\@cert-authorityM-bM-^@M-^], to indicate that the line contains a certification | ||
421 | authority (CA) key, or M-bM-^@M-^\@revokedM-bM-^@M-^], to indicate that the key contained on | ||
422 | the line is revoked and must not ever be accepted. Only one marker | ||
423 | should be used on a key line. | ||
424 | |||
425 | 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 | ||
426 | wildcards); each pattern in turn is matched against the canonical host | ||
427 | name (when authenticating a client) or against the user-supplied name | ||
428 | (when authenticating a server). A pattern may also be preceded by M-bM-^@M-^X!M-bM-^@M-^Y to | ||
429 | indicate negation: if the host name matches a negated pattern, it is not | ||
430 | accepted (by that line) even if it matched another pattern on the line. | ||
431 | 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 | ||
432 | brackets then followed by M-bM-^@M-^X:M-bM-^@M-^Y and a non-standard port number. | ||
433 | |||
434 | Alternately, hostnames may be stored in a hashed form which hides host | ||
435 | names and addresses should the file's contents be disclosed. Hashed | ||
436 | hostnames start with a M-bM-^@M-^X|M-bM-^@M-^Y character. Only one hashed hostname may | ||
437 | appear on a single line and none of the above negation or wildcard | ||
438 | operators may be applied. | ||
439 | |||
440 | Bits, exponent, and modulus are taken directly from the RSA host key; | ||
441 | they can be obtained, for example, from /etc/ssh/ssh_host_key.pub. The | ||
442 | optional comment field continues to the end of the line, and is not used. | ||
443 | |||
444 | Lines starting with M-bM-^@M-^X#M-bM-^@M-^Y and empty lines are ignored as comments. | ||
445 | |||
446 | When performing host authentication, authentication is accepted if any | ||
447 | matching line has the proper key; either one that matches exactly or, if | ||
448 | the server has presented a certificate for authentication, the key of the | ||
449 | certification authority that signed the certificate. For a key to be | ||
450 | trusted as a certification authority, it must use the M-bM-^@M-^\@cert-authorityM-bM-^@M-^] | ||
451 | marker described above. | ||
452 | |||
453 | The known hosts file also provides a facility to mark keys as revoked, | ||
454 | for example when it is known that the associated private key has been | ||
455 | stolen. Revoked keys are specified by including the M-bM-^@M-^\@revokedM-bM-^@M-^] marker at | ||
456 | the beginning of the key line, and are never accepted for authentication | ||
457 | or as certification authorities, but instead will produce a warning from | ||
458 | ssh(1) when they are encountered. | ||
459 | |||
460 | It is permissible (but not recommended) to have several lines or | ||
461 | different host keys for the same names. This will inevitably happen when | ||
462 | short forms of host names from different domains are put in the file. It | ||
463 | is possible that the files contain conflicting information; | ||
464 | authentication is accepted if valid information can be found from either | ||
465 | file. | ||
466 | |||
467 | Note that the lines in these files are typically hundreds of characters | ||
468 | long, and you definitely don't want to type in the host keys by hand. | ||
469 | Rather, generate them by a script, ssh-keyscan(1) or by taking | ||
470 | /etc/ssh/ssh_host_key.pub and adding the host names at the front. | ||
471 | ssh-keygen(1) also offers some basic automated editing for | ||
472 | ~/.ssh/known_hosts including removing hosts matching a host name and | ||
473 | converting all host names to their hashed representations. | ||
474 | |||
475 | An example ssh_known_hosts file: | ||
476 | |||
477 | # Comments allowed at start of line | ||
478 | closenet,...,192.0.2.53 1024 37 159...93 closenet.example.net | ||
479 | cvs.example.net,192.0.2.10 ssh-rsa AAAA1234.....= | ||
480 | # A hashed hostname | ||
481 | |1|JfKTdBh7rNbXkVAQCRp4OQoPfmI=|USECr3SWf1JUPsms5AqfD5QfxkM= ssh-rsa | ||
482 | AAAA1234.....= | ||
483 | # A revoked key | ||
484 | @revoked * ssh-rsa AAAAB5W... | ||
485 | # A CA key, accepted for any host in *.mydomain.com or *.mydomain.org | ||
486 | @cert-authority *.mydomain.org,*.mydomain.com ssh-rsa AAAAB5W... | ||
487 | |||
488 | FILES | ||
489 | ~/.hushlogin | ||
490 | This file is used to suppress printing the last login time and | ||
491 | /etc/motd, if PrintLastLog and PrintMotd, respectively, are | ||
492 | enabled. It does not suppress printing of the banner specified | ||
493 | by Banner. | ||
494 | |||
495 | ~/.rhosts | ||
496 | This file is used for host-based authentication (see ssh(1) for | ||
497 | more information). On some machines this file may need to be | ||
498 | world-readable if the user's home directory is on an NFS | ||
499 | partition, because sshd reads it as root. Additionally, this | ||
500 | file must be owned by the user, and must not have write | ||
501 | permissions for anyone else. The recommended permission for most | ||
502 | machines is read/write for the user, and not accessible by | ||
503 | others. | ||
504 | |||
505 | ~/.shosts | ||
506 | This file is used in exactly the same way as .rhosts, but allows | ||
507 | host-based authentication without permitting login with | ||
508 | rlogin/rsh. | ||
509 | |||
510 | ~/.ssh/ | ||
511 | This directory is the default location for all user-specific | ||
512 | configuration and authentication information. There is no | ||
513 | general requirement to keep the entire contents of this directory | ||
514 | secret, but the recommended permissions are read/write/execute | ||
515 | for the user, and not accessible by others. | ||
516 | |||
517 | ~/.ssh/authorized_keys | ||
518 | Lists the public keys (DSA, ECDSA, Ed25519, RSA) that can be used | ||
519 | for logging in as this user. The format of this file is | ||
520 | described above. The content of the file is not highly | ||
521 | sensitive, but the recommended permissions are read/write for the | ||
522 | user, and not accessible by others. | ||
523 | |||
524 | If this file, the ~/.ssh directory, or the user's home directory | ||
525 | are writable by other users, then the file could be modified or | ||
526 | replaced by unauthorized users. In this case, sshd will not | ||
527 | allow it to be used unless the StrictModes option has been set to | ||
528 | M-bM-^@M-^\noM-bM-^@M-^]. | ||
529 | |||
530 | ~/.ssh/environment | ||
531 | This file is read into the environment at login (if it exists). | ||
532 | It can only contain empty lines, comment lines (that start with | ||
533 | M-bM-^@M-^X#M-bM-^@M-^Y), and assignment lines of the form name=value. The file | ||
534 | should be writable only by the user; it need not be readable by | ||
535 | anyone else. Environment processing is disabled by default and | ||
536 | is controlled via the PermitUserEnvironment option. | ||
537 | |||
538 | ~/.ssh/known_hosts | ||
539 | Contains a list of host keys for all hosts the user has logged | ||
540 | into that are not already in the systemwide list of known host | ||
541 | keys. The format of this file is described above. This file | ||
542 | should be writable only by root/the owner and can, but need not | ||
543 | be, world-readable. | ||
544 | |||
545 | ~/.ssh/rc | ||
546 | Contains initialization routines to be run before the user's home | ||
547 | directory becomes accessible. This file should be writable only | ||
548 | by the user, and need not be readable by anyone else. | ||
549 | |||
550 | /etc/hosts.equiv | ||
551 | This file is for host-based authentication (see ssh(1)). It | ||
552 | should only be writable by root. | ||
553 | |||
554 | /etc/moduli | ||
555 | Contains Diffie-Hellman groups used for the "Diffie-Hellman Group | ||
556 | Exchange". The file format is described in moduli(5). | ||
557 | |||
558 | /etc/motd | ||
559 | See motd(5). | ||
560 | |||
561 | /etc/nologin | ||
562 | If this file exists, sshd refuses to let anyone except root log | ||
563 | in. The contents of the file are displayed to anyone trying to | ||
564 | log in, and non-root connections are refused. The file should be | ||
565 | world-readable. | ||
566 | |||
567 | /etc/shosts.equiv | ||
568 | This file is used in exactly the same way as hosts.equiv, but | ||
569 | allows host-based authentication without permitting login with | ||
570 | rlogin/rsh. | ||
571 | |||
572 | /etc/ssh/ssh_host_key | ||
573 | /etc/ssh/ssh_host_dsa_key | ||
574 | /etc/ssh/ssh_host_ecdsa_key | ||
575 | /etc/ssh/ssh_host_ed25519_key | ||
576 | /etc/ssh/ssh_host_rsa_key | ||
577 | These files contain the private parts of the host keys. These | ||
578 | files should only be owned by root, readable only by root, and | ||
579 | not accessible to others. Note that sshd does not start if these | ||
580 | files are group/world-accessible. | ||
581 | |||
582 | /etc/ssh/ssh_host_key.pub | ||
583 | /etc/ssh/ssh_host_dsa_key.pub | ||
584 | /etc/ssh/ssh_host_ecdsa_key.pub | ||
585 | /etc/ssh/ssh_host_ed25519_key.pub | ||
586 | /etc/ssh/ssh_host_rsa_key.pub | ||
587 | These files contain the public parts of the host keys. These | ||
588 | files should be world-readable but writable only by root. Their | ||
589 | contents should match the respective private parts. These files | ||
590 | are not really used for anything; they are provided for the | ||
591 | convenience of the user so their contents can be copied to known | ||
592 | hosts files. These files are created using ssh-keygen(1). | ||
593 | |||
594 | /etc/ssh/ssh_known_hosts | ||
595 | Systemwide list of known host keys. This file should be prepared | ||
596 | by the system administrator to contain the public host keys of | ||
597 | all machines in the organization. The format of this file is | ||
598 | described above. This file should be writable only by root/the | ||
599 | owner and should be world-readable. | ||
600 | |||
601 | /etc/ssh/sshd_config | ||
602 | Contains configuration data for sshd. The file format and | ||
603 | configuration options are described in sshd_config(5). | ||
604 | |||
605 | /etc/ssh/sshrc | ||
606 | Similar to ~/.ssh/rc, it can be used to specify machine-specific | ||
607 | login-time initializations globally. This file should be | ||
608 | writable only by root, and should be world-readable. | ||
609 | |||
610 | /var/empty | ||
611 | chroot(2) directory used by sshd during privilege separation in | ||
612 | the pre-authentication phase. The directory should not contain | ||
613 | any files and must be owned by root and not group or world- | ||
614 | writable. | ||
615 | |||
616 | /var/run/sshd.pid | ||
617 | Contains the process ID of the sshd listening for connections (if | ||
618 | there are several daemons running concurrently for different | ||
619 | ports, this contains the process ID of the one started last). | ||
620 | The content of this file is not sensitive; it can be world- | ||
621 | readable. | ||
622 | |||
623 | SEE ALSO | ||
624 | scp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), | ||
625 | ssh-keyscan(1), chroot(2), login.conf(5), moduli(5), sshd_config(5), | ||
626 | inetd(8), sftp-server(8) | ||
627 | |||
628 | AUTHORS | ||
629 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
630 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
631 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
632 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
633 | versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support | ||
634 | for privilege separation. | ||
635 | |||
636 | OpenBSD 5.7 May 1, 2015 OpenBSD 5.7 | ||
diff --git a/sshd_config.0 b/sshd_config.0 new file mode 100644 index 000000000..641041852 --- /dev/null +++ b/sshd_config.0 | |||
@@ -0,0 +1,995 @@ | |||
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. Note that | ||
23 | environment passing is only supported for protocol 2, and that | ||
24 | the TERM environment variable is always sent whenever the client | ||
25 | requests a pseudo-terminal as it is required by the protocol. | ||
26 | Variables are specified by name, which may contain the wildcard | ||
27 | characters M-bM-^@M-^X*M-bM-^@M-^Y and M-bM-^@M-^X?M-bM-^@M-^Y. Multiple environment variables may be | ||
28 | separated by whitespace or spread across multiple AcceptEnv | ||
29 | directives. Be warned that some environment variables could be | ||
30 | used to bypass restricted user environments. For this reason, | ||
31 | care should be taken in the use of this directive. The default | ||
32 | is not to accept any environment variables. | ||
33 | |||
34 | AddressFamily | ||
35 | Specifies which address family should be used by sshd(8). Valid | ||
36 | 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 | ||
37 | only). The default is M-bM-^@M-^\anyM-bM-^@M-^]. | ||
38 | |||
39 | AllowAgentForwarding | ||
40 | Specifies whether ssh-agent(1) forwarding is permitted. The | ||
41 | default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that disabling agent forwarding does not | ||
42 | improve security unless users are also denied shell access, as | ||
43 | they can always install their own forwarders. | ||
44 | |||
45 | AllowGroups | ||
46 | This keyword can be followed by a list of group name patterns, | ||
47 | separated by spaces. If specified, login is allowed only for | ||
48 | users whose primary group or supplementary group list matches one | ||
49 | of the patterns. Only group names are valid; a numerical group | ||
50 | ID is not recognized. By default, login is allowed for all | ||
51 | groups. The allow/deny directives are processed in the following | ||
52 | order: DenyUsers, AllowUsers, DenyGroups, and finally | ||
53 | AllowGroups. | ||
54 | |||
55 | See PATTERNS in ssh_config(5) for more information on patterns. | ||
56 | |||
57 | AllowTcpForwarding | ||
58 | Specifies whether TCP forwarding is permitted. The available | ||
59 | 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 | ||
60 | prevent all TCP forwarding, M-bM-^@M-^\localM-bM-^@M-^] to allow local (from the | ||
61 | perspective of ssh(1)) forwarding only or M-bM-^@M-^\remoteM-bM-^@M-^] to allow | ||
62 | remote forwarding only. The default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that | ||
63 | disabling TCP forwarding does not improve security unless users | ||
64 | are also denied shell access, as they can always install their | ||
65 | own forwarders. | ||
66 | |||
67 | AllowStreamLocalForwarding | ||
68 | Specifies whether StreamLocal (Unix-domain socket) forwarding is | ||
69 | permitted. The available options are M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\allM-bM-^@M-^] to allow | ||
70 | StreamLocal forwarding, M-bM-^@M-^\noM-bM-^@M-^] to prevent all StreamLocal | ||
71 | forwarding, M-bM-^@M-^\localM-bM-^@M-^] to allow local (from the perspective of | ||
72 | ssh(1)) forwarding only or M-bM-^@M-^\remoteM-bM-^@M-^] to allow remote forwarding | ||
73 | only. The default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that disabling StreamLocal | ||
74 | forwarding does not improve security unless users are also denied | ||
75 | shell access, as they can always install their own forwarders. | ||
76 | |||
77 | AllowUsers | ||
78 | This keyword can be followed by a list of user name patterns, | ||
79 | separated by spaces. If specified, login is allowed only for | ||
80 | user names that match one of the patterns. Only user names are | ||
81 | valid; a numerical user ID is not recognized. By default, login | ||
82 | is allowed for all users. If the pattern takes the form | ||
83 | USER@HOST then USER and HOST are separately checked, restricting | ||
84 | logins to particular users from particular hosts. The allow/deny | ||
85 | directives are processed in the following order: DenyUsers, | ||
86 | AllowUsers, DenyGroups, and finally AllowGroups. | ||
87 | |||
88 | See PATTERNS in ssh_config(5) for more information on patterns. | ||
89 | |||
90 | AuthenticationMethods | ||
91 | Specifies the authentication methods that must be successfully | ||
92 | completed for a user to be granted access. This option must be | ||
93 | followed by one or more comma-separated lists of authentication | ||
94 | method names. Successful authentication requires completion of | ||
95 | every method in at least one of these lists. | ||
96 | |||
97 | For example, an argument of M-bM-^@M-^\publickey,password | ||
98 | publickey,keyboard-interactiveM-bM-^@M-^] would require the user to | ||
99 | complete public key authentication, followed by either password | ||
100 | or keyboard interactive authentication. Only methods that are | ||
101 | next in one or more lists are offered at each stage, so for this | ||
102 | example, it would not be possible to attempt password or | ||
103 | keyboard-interactive authentication before public key. | ||
104 | |||
105 | For keyboard interactive authentication it is also possible to | ||
106 | restrict authentication to a specific device by appending a colon | ||
107 | followed by the device identifier M-bM-^@M-^\bsdauthM-bM-^@M-^], M-bM-^@M-^\pamM-bM-^@M-^], or M-bM-^@M-^\skeyM-bM-^@M-^], | ||
108 | depending on the server configuration. For example, | ||
109 | M-bM-^@M-^\keyboard-interactive:bsdauthM-bM-^@M-^] would restrict keyboard | ||
110 | interactive authentication to the M-bM-^@M-^\bsdauthM-bM-^@M-^] device. | ||
111 | |||
112 | If the M-bM-^@M-^\publickeyM-bM-^@M-^] method is listed more than once, sshd(8) | ||
113 | verifies that keys that have been used successfully are not | ||
114 | reused for subsequent authentications. For example, an | ||
115 | AuthenticationMethods of M-bM-^@M-^\publickey,publickeyM-bM-^@M-^] will require | ||
116 | successful authentication using two different public keys. | ||
117 | |||
118 | This option is only available for SSH protocol 2 and will yield a | ||
119 | fatal error if enabled if protocol 1 is also enabled. Note that | ||
120 | each authentication method listed should also be explicitly | ||
121 | enabled in the configuration. The default is not to require | ||
122 | multiple authentication; successful completion of a single | ||
123 | authentication method is sufficient. | ||
124 | |||
125 | AuthorizedKeysCommand | ||
126 | Specifies a program to be used to look up the user's public keys. | ||
127 | The program must be owned by root, not writable by group or | ||
128 | others and specified by an absolute path. | ||
129 | |||
130 | Arguments to AuthorizedKeysCommand may be provided using the | ||
131 | following tokens, which will be expanded at runtime: %% is | ||
132 | replaced by a literal '%', %u is replaced by the username being | ||
133 | authenticated, %h is replaced by the home directory of the user | ||
134 | being authenticated, %t is replaced with the key type offered for | ||
135 | authentication, %f is replaced with the fingerprint of the key, | ||
136 | and %k is replaced with the key being offered for authentication. | ||
137 | If no arguments are specified then the username of the target | ||
138 | user will be supplied. | ||
139 | |||
140 | The program should produce on standard output zero or more lines | ||
141 | of authorized_keys output (see AUTHORIZED_KEYS in sshd(8)). If a | ||
142 | key supplied by AuthorizedKeysCommand does not successfully | ||
143 | authenticate and authorize the user then public key | ||
144 | authentication continues using the usual AuthorizedKeysFile | ||
145 | files. By default, no AuthorizedKeysCommand is run. | ||
146 | |||
147 | AuthorizedKeysCommandUser | ||
148 | Specifies the user under whose account the AuthorizedKeysCommand | ||
149 | is run. It is recommended to use a dedicated user that has no | ||
150 | other role on the host than running authorized keys commands. If | ||
151 | AuthorizedKeysCommand is specified but AuthorizedKeysCommandUser | ||
152 | is not, then sshd(8) will refuse to start. | ||
153 | |||
154 | AuthorizedKeysFile | ||
155 | Specifies the file that contains the public keys that can be used | ||
156 | for user authentication. The format is described in the | ||
157 | AUTHORIZED_KEYS FILE FORMAT section of sshd(8). | ||
158 | AuthorizedKeysFile may contain tokens of the form %T which are | ||
159 | substituted during connection setup. The following tokens are | ||
160 | defined: %% is replaced by a literal '%', %h is replaced by the | ||
161 | home directory of the user being authenticated, and %u is | ||
162 | replaced by the username of that user. After expansion, | ||
163 | AuthorizedKeysFile is taken to be an absolute path or one | ||
164 | relative to the user's home directory. Multiple files may be | ||
165 | listed, separated by whitespace. The default is | ||
166 | M-bM-^@M-^\.ssh/authorized_keys .ssh/authorized_keys2M-bM-^@M-^]. | ||
167 | |||
168 | AuthorizedPrincipalsCommand | ||
169 | Specifies a program to be used to generate the list of allowed | ||
170 | certificate principals as per AuthorizedPrincipalsFile. The | ||
171 | program must be owned by root, not writable by group or others | ||
172 | and specified by an absolute path. | ||
173 | |||
174 | Arguments to AuthorizedPrincipalsCommand may be provided using | ||
175 | the following tokens, which will be expanded at runtime: %% is | ||
176 | replaced by a literal '%', %u is replaced by the username being | ||
177 | authenticated and %h is replaced by the home directory of the | ||
178 | user being authenticated. | ||
179 | |||
180 | The program should produce on standard output zero or more lines | ||
181 | of AuthorizedPrincipalsFile output. If either | ||
182 | AuthorizedPrincipalsCommand or AuthorizedPrincipalsFile is | ||
183 | specified, then certificates offered by the client for | ||
184 | authentication must contain a principal that is listed. By | ||
185 | default, no AuthorizedPrincipalsCommand is run. | ||
186 | |||
187 | AuthorizedPrincipalsCommandUser | ||
188 | Specifies the user under whose account the | ||
189 | AuthorizedPrincipalsCommand is run. It is recommended to use a | ||
190 | dedicated user that has no other role on the host than running | ||
191 | authorized principals commands. If AuthorizedPrincipalsCommand | ||
192 | is specified but AuthorizedPrincipalsCommandUser is not, then | ||
193 | sshd(8) will refuse to start. | ||
194 | |||
195 | AuthorizedPrincipalsFile | ||
196 | Specifies a file that lists principal names that are accepted for | ||
197 | certificate authentication. When using certificates signed by a | ||
198 | key listed in TrustedUserCAKeys, this file lists names, one of | ||
199 | which must appear in the certificate for it to be accepted for | ||
200 | authentication. Names are listed one per line preceded by key | ||
201 | options (as described in AUTHORIZED_KEYS FILE FORMAT in sshd(8)). | ||
202 | Empty lines and comments starting with M-bM-^@M-^X#M-bM-^@M-^Y are ignored. | ||
203 | |||
204 | AuthorizedPrincipalsFile may contain tokens of the form %T which | ||
205 | are substituted during connection setup. The following tokens | ||
206 | are defined: %% is replaced by a literal '%', %h is replaced by | ||
207 | the home directory of the user being authenticated, and %u is | ||
208 | replaced by the username of that user. After expansion, | ||
209 | AuthorizedPrincipalsFile is taken to be an absolute path or one | ||
210 | relative to the user's home directory. | ||
211 | |||
212 | The default is M-bM-^@M-^\noneM-bM-^@M-^], i.e. not to use a principals file M-bM-^@M-^S in | ||
213 | this case, the username of the user must appear in a | ||
214 | certificate's principals list for it to be accepted. Note that | ||
215 | AuthorizedPrincipalsFile is only used when authentication | ||
216 | proceeds using a CA listed in TrustedUserCAKeys and is not | ||
217 | consulted for certification authorities trusted via | ||
218 | ~/.ssh/authorized_keys, though the principals= key option offers | ||
219 | a similar facility (see sshd(8) for details). | ||
220 | |||
221 | Banner The contents of the specified file are sent to the remote user | ||
222 | before authentication is allowed. If the argument is M-bM-^@M-^\noneM-bM-^@M-^] then | ||
223 | no banner is displayed. This option is only available for | ||
224 | protocol version 2. By default, no banner is displayed. | ||
225 | |||
226 | ChallengeResponseAuthentication | ||
227 | Specifies whether challenge-response authentication is allowed | ||
228 | (e.g. via PAM or through authentication styles supported in | ||
229 | login.conf(5)) The default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
230 | |||
231 | ChrootDirectory | ||
232 | Specifies the pathname of a directory to chroot(2) to after | ||
233 | authentication. At session startup sshd(8) checks that all | ||
234 | components of the pathname are root-owned directories which are | ||
235 | not writable by any other user or group. After the chroot, | ||
236 | sshd(8) changes the working directory to the user's home | ||
237 | directory. | ||
238 | |||
239 | The pathname may contain the following tokens that are expanded | ||
240 | at runtime once the connecting user has been authenticated: %% is | ||
241 | replaced by a literal '%', %h is replaced by the home directory | ||
242 | of the user being authenticated, and %u is replaced by the | ||
243 | username of that user. | ||
244 | |||
245 | The ChrootDirectory must contain the necessary files and | ||
246 | directories to support the user's session. For an interactive | ||
247 | session this requires at least a shell, typically sh(1), and | ||
248 | basic /dev nodes such as null(4), zero(4), stdin(4), stdout(4), | ||
249 | stderr(4), and tty(4) devices. For file transfer sessions using | ||
250 | M-bM-^@M-^\sftpM-bM-^@M-^], no additional configuration of the environment is | ||
251 | necessary if the in-process sftp server is used, though sessions | ||
252 | which use logging may require /dev/log inside the chroot | ||
253 | directory on some operating systems (see sftp-server(8) for | ||
254 | details). | ||
255 | |||
256 | For safety, it is very important that the directory hierarchy be | ||
257 | prevented from modification by other processes on the system | ||
258 | (especially those outside the jail). Misconfiguration can lead | ||
259 | to unsafe environments which sshd(8) cannot detect. | ||
260 | |||
261 | The default is not to chroot(2). | ||
262 | |||
263 | Ciphers | ||
264 | Specifies the ciphers allowed for protocol version 2. Multiple | ||
265 | ciphers must be comma-separated. The supported ciphers are: | ||
266 | |||
267 | 3des-cbc | ||
268 | aes128-cbc | ||
269 | aes192-cbc | ||
270 | aes256-cbc | ||
271 | aes128-ctr | ||
272 | aes192-ctr | ||
273 | aes256-ctr | ||
274 | aes128-gcm@openssh.com | ||
275 | aes256-gcm@openssh.com | ||
276 | arcfour | ||
277 | arcfour128 | ||
278 | arcfour256 | ||
279 | blowfish-cbc | ||
280 | cast128-cbc | ||
281 | chacha20-poly1305@openssh.com | ||
282 | |||
283 | The default is: | ||
284 | |||
285 | aes128-ctr,aes192-ctr,aes256-ctr, | ||
286 | aes128-gcm@openssh.com,aes256-gcm@openssh.com, | ||
287 | chacha20-poly1305@openssh.com | ||
288 | |||
289 | The list of available ciphers may also be obtained using the -Q | ||
290 | option of ssh(1) with an argument of M-bM-^@M-^\cipherM-bM-^@M-^]. | ||
291 | |||
292 | ClientAliveCountMax | ||
293 | Sets the number of client alive messages (see below) which may be | ||
294 | sent without sshd(8) receiving any messages back from the client. | ||
295 | If this threshold is reached while client alive messages are | ||
296 | being sent, sshd will disconnect the client, terminating the | ||
297 | session. It is important to note that the use of client alive | ||
298 | messages is very different from TCPKeepAlive (below). The client | ||
299 | alive messages are sent through the encrypted channel and | ||
300 | therefore will not be spoofable. The TCP keepalive option | ||
301 | enabled by TCPKeepAlive is spoofable. The client alive mechanism | ||
302 | is valuable when the client or server depend on knowing when a | ||
303 | connection has become inactive. | ||
304 | |||
305 | The default value is 3. If ClientAliveInterval (see below) is | ||
306 | set to 15, and ClientAliveCountMax is left at the default, | ||
307 | unresponsive SSH clients will be disconnected after approximately | ||
308 | 45 seconds. This option applies to protocol version 2 only. | ||
309 | |||
310 | ClientAliveInterval | ||
311 | Sets a timeout interval in seconds after which if no data has | ||
312 | been received from the client, sshd(8) will send a message | ||
313 | through the encrypted channel to request a response from the | ||
314 | client. The default is 0, indicating that these messages will | ||
315 | not be sent to the client. This option applies to protocol | ||
316 | version 2 only. | ||
317 | |||
318 | Compression | ||
319 | Specifies whether compression is allowed, or delayed until the | ||
320 | user has authenticated successfully. The argument must be M-bM-^@M-^\yesM-bM-^@M-^], | ||
321 | M-bM-^@M-^\delayedM-bM-^@M-^], or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\delayedM-bM-^@M-^]. | ||
322 | |||
323 | DenyGroups | ||
324 | This keyword can be followed by a list of group name patterns, | ||
325 | separated by spaces. Login is disallowed for users whose primary | ||
326 | group or supplementary group list matches one of the patterns. | ||
327 | Only group names are valid; a numerical group ID is not | ||
328 | recognized. By default, login is allowed for all groups. The | ||
329 | allow/deny directives are processed in the following order: | ||
330 | DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups. | ||
331 | |||
332 | See PATTERNS in ssh_config(5) for more information on patterns. | ||
333 | |||
334 | DenyUsers | ||
335 | This keyword can be followed by a list of user name patterns, | ||
336 | separated by spaces. Login is disallowed for user names that | ||
337 | match one of the patterns. Only user names are valid; a | ||
338 | numerical user ID is not recognized. By default, login is | ||
339 | allowed for all users. If the pattern takes the form USER@HOST | ||
340 | then USER and HOST are separately checked, restricting logins to | ||
341 | particular users from particular hosts. The allow/deny | ||
342 | directives are processed in the following order: DenyUsers, | ||
343 | AllowUsers, DenyGroups, and finally AllowGroups. | ||
344 | |||
345 | See PATTERNS in ssh_config(5) for more information on patterns. | ||
346 | |||
347 | FingerprintHash | ||
348 | Specifies the hash algorithm used when logging key fingerprints. | ||
349 | 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-^]. | ||
350 | |||
351 | ForceCommand | ||
352 | Forces the execution of the command specified by ForceCommand, | ||
353 | ignoring any command supplied by the client and ~/.ssh/rc if | ||
354 | present. The command is invoked by using the user's login shell | ||
355 | with the -c option. This applies to shell, command, or subsystem | ||
356 | execution. It is most useful inside a Match block. The command | ||
357 | originally supplied by the client is available in the | ||
358 | SSH_ORIGINAL_COMMAND environment variable. Specifying a command | ||
359 | of M-bM-^@M-^\internal-sftpM-bM-^@M-^] will force the use of an in-process sftp | ||
360 | server that requires no support files when used with | ||
361 | ChrootDirectory. | ||
362 | |||
363 | GatewayPorts | ||
364 | Specifies whether remote hosts are allowed to connect to ports | ||
365 | forwarded for the client. By default, sshd(8) binds remote port | ||
366 | forwardings to the loopback address. This prevents other remote | ||
367 | hosts from connecting to forwarded ports. GatewayPorts can be | ||
368 | used to specify that sshd should allow remote port forwardings to | ||
369 | bind to non-loopback addresses, thus allowing other hosts to | ||
370 | connect. The argument may be M-bM-^@M-^\noM-bM-^@M-^] to force remote port | ||
371 | forwardings to be available to the local host only, M-bM-^@M-^\yesM-bM-^@M-^] to | ||
372 | force remote port forwardings to bind to the wildcard address, or | ||
373 | M-bM-^@M-^\clientspecifiedM-bM-^@M-^] to allow the client to select the address to | ||
374 | which the forwarding is bound. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
375 | |||
376 | GSSAPIAuthentication | ||
377 | Specifies whether user authentication based on GSSAPI is allowed. | ||
378 | The default is M-bM-^@M-^\noM-bM-^@M-^]. Note that this option applies to protocol | ||
379 | version 2 only. | ||
380 | |||
381 | GSSAPICleanupCredentials | ||
382 | Specifies whether to automatically destroy the user's credentials | ||
383 | cache on logout. The default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that this option | ||
384 | applies to protocol version 2 only. | ||
385 | |||
386 | GSSAPIStrictAcceptorCheck | ||
387 | Determines whether to be strict about the identity of the GSSAPI | ||
388 | acceptor a client authenticates against. If set to M-bM-^@M-^\yesM-bM-^@M-^] then | ||
389 | the client must authenticate against the host service on the | ||
390 | current hostname. If set to M-bM-^@M-^\noM-bM-^@M-^] then the client may | ||
391 | authenticate against any service key stored in the machine's | ||
392 | default store. This facility is provided to assist with | ||
393 | operation on multi homed machines. The default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
394 | |||
395 | HostbasedAcceptedKeyTypes | ||
396 | Specifies the key types that will be accepted for hostbased | ||
397 | authentication as a comma-separated pattern list. The default | ||
398 | M-bM-^@M-^\*M-bM-^@M-^] will allow all key types. The -Q option of ssh(1) may be | ||
399 | used to list supported key types. | ||
400 | |||
401 | HostbasedAuthentication | ||
402 | Specifies whether rhosts or /etc/hosts.equiv authentication | ||
403 | together with successful public key client host authentication is | ||
404 | allowed (host-based authentication). This option is similar to | ||
405 | RhostsRSAAuthentication and applies to protocol version 2 only. | ||
406 | The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
407 | |||
408 | HostbasedUsesNameFromPacketOnly | ||
409 | Specifies whether or not the server will attempt to perform a | ||
410 | reverse name lookup when matching the name in the ~/.shosts, | ||
411 | ~/.rhosts, and /etc/hosts.equiv files during | ||
412 | HostbasedAuthentication. A setting of M-bM-^@M-^\yesM-bM-^@M-^] means that sshd(8) | ||
413 | uses the name supplied by the client rather than attempting to | ||
414 | resolve the name from the TCP connection itself. The default is | ||
415 | M-bM-^@M-^\noM-bM-^@M-^]. | ||
416 | |||
417 | HostCertificate | ||
418 | Specifies a file containing a public host certificate. The | ||
419 | certificate's public key must match a private host key already | ||
420 | specified by HostKey. The default behaviour of sshd(8) is not to | ||
421 | load any certificates. | ||
422 | |||
423 | HostKey | ||
424 | Specifies a file containing a private host key used by SSH. The | ||
425 | default is /etc/ssh/ssh_host_key for protocol version 1, and | ||
426 | /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_ecdsa_key, | ||
427 | /etc/ssh/ssh_host_ed25519_key and /etc/ssh/ssh_host_rsa_key for | ||
428 | protocol version 2. Note that sshd(8) will refuse to use a file | ||
429 | if it is group/world-accessible. It is possible to have multiple | ||
430 | host key files. M-bM-^@M-^\rsa1M-bM-^@M-^] keys are used for version 1 and M-bM-^@M-^\dsaM-bM-^@M-^], | ||
431 | M-bM-^@M-^\ecdsaM-bM-^@M-^], M-bM-^@M-^\ed25519M-bM-^@M-^] or M-bM-^@M-^\rsaM-bM-^@M-^] are used for version 2 of the SSH | ||
432 | protocol. It is also possible to specify public host key files | ||
433 | instead. In this case operations on the private key will be | ||
434 | delegated to an ssh-agent(1). | ||
435 | |||
436 | HostKeyAgent | ||
437 | Identifies the UNIX-domain socket used to communicate with an | ||
438 | agent that has access to the private host keys. If | ||
439 | M-bM-^@M-^\SSH_AUTH_SOCKM-bM-^@M-^] is specified, the location of the socket will be | ||
440 | read from the SSH_AUTH_SOCK environment variable. | ||
441 | |||
442 | IgnoreRhosts | ||
443 | Specifies that .rhosts and .shosts files will not be used in | ||
444 | RhostsRSAAuthentication or HostbasedAuthentication. | ||
445 | |||
446 | /etc/hosts.equiv and /etc/shosts.equiv are still used. The | ||
447 | default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
448 | |||
449 | IgnoreUserKnownHosts | ||
450 | Specifies whether sshd(8) should ignore the user's | ||
451 | ~/.ssh/known_hosts during RhostsRSAAuthentication or | ||
452 | HostbasedAuthentication. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
453 | |||
454 | IPQoS Specifies the IPv4 type-of-service or DSCP class for the | ||
455 | 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-^], | ||
456 | 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-^], | ||
457 | 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-^], | ||
458 | M-bM-^@M-^\lowdelayM-bM-^@M-^], M-bM-^@M-^\throughputM-bM-^@M-^], M-bM-^@M-^\reliabilityM-bM-^@M-^], or a numeric value. | ||
459 | This option may take one or two arguments, separated by | ||
460 | whitespace. If one argument is specified, it is used as the | ||
461 | packet class unconditionally. If two values are specified, the | ||
462 | first is automatically selected for interactive sessions and the | ||
463 | second for non-interactive sessions. The default is M-bM-^@M-^\lowdelayM-bM-^@M-^] | ||
464 | for interactive sessions and M-bM-^@M-^\throughputM-bM-^@M-^] for non-interactive | ||
465 | sessions. | ||
466 | |||
467 | KbdInteractiveAuthentication | ||
468 | Specifies whether to allow keyboard-interactive authentication. | ||
469 | The argument to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default | ||
470 | is to use whatever value ChallengeResponseAuthentication is set | ||
471 | to (by default M-bM-^@M-^\yesM-bM-^@M-^]). | ||
472 | |||
473 | KerberosAuthentication | ||
474 | Specifies whether the password provided by the user for | ||
475 | PasswordAuthentication will be validated through the Kerberos | ||
476 | KDC. To use this option, the server needs a Kerberos servtab | ||
477 | which allows the verification of the KDC's identity. The default | ||
478 | is M-bM-^@M-^\noM-bM-^@M-^]. | ||
479 | |||
480 | KerberosGetAFSToken | ||
481 | If AFS is active and the user has a Kerberos 5 TGT, attempt to | ||
482 | acquire an AFS token before accessing the user's home directory. | ||
483 | The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
484 | |||
485 | KerberosOrLocalPasswd | ||
486 | If password authentication through Kerberos fails then the | ||
487 | password will be validated via any additional local mechanism | ||
488 | such as /etc/passwd. The default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
489 | |||
490 | KerberosTicketCleanup | ||
491 | Specifies whether to automatically destroy the user's ticket | ||
492 | cache file on logout. The default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
493 | |||
494 | KexAlgorithms | ||
495 | Specifies the available KEX (Key Exchange) algorithms. Multiple | ||
496 | algorithms must be comma-separated. The supported algorithms | ||
497 | are: | ||
498 | |||
499 | curve25519-sha256@libssh.org | ||
500 | diffie-hellman-group1-sha1 | ||
501 | diffie-hellman-group14-sha1 | ||
502 | diffie-hellman-group-exchange-sha1 | ||
503 | diffie-hellman-group-exchange-sha256 | ||
504 | ecdh-sha2-nistp256 | ||
505 | ecdh-sha2-nistp384 | ||
506 | ecdh-sha2-nistp521 | ||
507 | |||
508 | The default is: | ||
509 | |||
510 | curve25519-sha256@libssh.org, | ||
511 | ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521, | ||
512 | diffie-hellman-group-exchange-sha256, | ||
513 | diffie-hellman-group14-sha1 | ||
514 | |||
515 | The list of available key exchange algorithms may also be | ||
516 | obtained using the -Q option of ssh(1) with an argument of M-bM-^@M-^\kexM-bM-^@M-^]. | ||
517 | |||
518 | KeyRegenerationInterval | ||
519 | In protocol version 1, the ephemeral server key is automatically | ||
520 | regenerated after this many seconds (if it has been used). The | ||
521 | purpose of regeneration is to prevent decrypting captured | ||
522 | sessions by later breaking into the machine and stealing the | ||
523 | keys. The key is never stored anywhere. If the value is 0, the | ||
524 | key is never regenerated. The default is 3600 (seconds). | ||
525 | |||
526 | ListenAddress | ||
527 | Specifies the local addresses sshd(8) should listen on. The | ||
528 | following forms may be used: | ||
529 | |||
530 | ListenAddress host|IPv4_addr|IPv6_addr | ||
531 | ListenAddress host|IPv4_addr:port | ||
532 | ListenAddress [host|IPv6_addr]:port | ||
533 | |||
534 | If port is not specified, sshd will listen on the address and all | ||
535 | Port options specified. The default is to listen on all local | ||
536 | addresses. Multiple ListenAddress options are permitted. | ||
537 | |||
538 | LoginGraceTime | ||
539 | The server disconnects after this time if the user has not | ||
540 | successfully logged in. If the value is 0, there is no time | ||
541 | limit. The default is 120 seconds. | ||
542 | |||
543 | LogLevel | ||
544 | Gives the verbosity level that is used when logging messages from | ||
545 | sshd(8). The possible values are: QUIET, FATAL, ERROR, INFO, | ||
546 | VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO. | ||
547 | DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify | ||
548 | higher levels of debugging output. Logging with a DEBUG level | ||
549 | violates the privacy of users and is not recommended. | ||
550 | |||
551 | MACs Specifies the available MAC (message authentication code) | ||
552 | algorithms. The MAC algorithm is used in protocol version 2 for | ||
553 | data integrity protection. Multiple algorithms must be comma- | ||
554 | separated. The algorithms that contain M-bM-^@M-^\-etmM-bM-^@M-^] calculate the MAC | ||
555 | after encryption (encrypt-then-mac). These are considered safer | ||
556 | and their use recommended. The supported MACs are: | ||
557 | |||
558 | hmac-md5 | ||
559 | hmac-md5-96 | ||
560 | hmac-ripemd160 | ||
561 | hmac-sha1 | ||
562 | hmac-sha1-96 | ||
563 | hmac-sha2-256 | ||
564 | hmac-sha2-512 | ||
565 | umac-64@openssh.com | ||
566 | umac-128@openssh.com | ||
567 | hmac-md5-etm@openssh.com | ||
568 | hmac-md5-96-etm@openssh.com | ||
569 | hmac-ripemd160-etm@openssh.com | ||
570 | hmac-sha1-etm@openssh.com | ||
571 | hmac-sha1-96-etm@openssh.com | ||
572 | hmac-sha2-256-etm@openssh.com | ||
573 | hmac-sha2-512-etm@openssh.com | ||
574 | umac-64-etm@openssh.com | ||
575 | umac-128-etm@openssh.com | ||
576 | |||
577 | The default is: | ||
578 | |||
579 | umac-64-etm@openssh.com,umac-128-etm@openssh.com, | ||
580 | hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com, | ||
581 | umac-64@openssh.com,umac-128@openssh.com, | ||
582 | hmac-sha2-256,hmac-sha2-512 | ||
583 | |||
584 | The list of available MAC algorithms may also be obtained using | ||
585 | the -Q option of ssh(1) with an argument of M-bM-^@M-^\macM-bM-^@M-^]. | ||
586 | |||
587 | Match Introduces a conditional block. If all of the criteria on the | ||
588 | Match line are satisfied, the keywords on the following lines | ||
589 | override those set in the global section of the config file, | ||
590 | until either another Match line or the end of the file. If a | ||
591 | keyword appears in multiple Match blocks that are satisfied, only | ||
592 | the first instance of the keyword is applied. | ||
593 | |||
594 | The arguments to Match are one or more criteria-pattern pairs or | ||
595 | the single token All which matches all criteria. The available | ||
596 | criteria are User, Group, Host, LocalAddress, LocalPort, and | ||
597 | Address. The match patterns may consist of single entries or | ||
598 | comma-separated lists and may use the wildcard and negation | ||
599 | operators described in the PATTERNS section of ssh_config(5). | ||
600 | |||
601 | The patterns in an Address criteria may additionally contain | ||
602 | addresses to match in CIDR address/masklen format, e.g. | ||
603 | M-bM-^@M-^\192.0.2.0/24M-bM-^@M-^] or M-bM-^@M-^\3ffe:ffff::/32M-bM-^@M-^]. Note that the mask length | ||
604 | provided must be consistent with the address - it is an error to | ||
605 | specify a mask length that is too long for the address or one | ||
606 | with bits set in this host portion of the address. For example, | ||
607 | M-bM-^@M-^\192.0.2.0/33M-bM-^@M-^] and M-bM-^@M-^\192.0.2.0/8M-bM-^@M-^] respectively. | ||
608 | |||
609 | Only a subset of keywords may be used on the lines following a | ||
610 | Match keyword. Available keywords are AcceptEnv, | ||
611 | AllowAgentForwarding, AllowGroups, AllowStreamLocalForwarding, | ||
612 | AllowTcpForwarding, AllowUsers, AuthenticationMethods, | ||
613 | AuthorizedKeysCommand, AuthorizedKeysCommandUser, | ||
614 | AuthorizedKeysFile, AuthorizedPrincipalsFile, Banner, | ||
615 | ChrootDirectory, DenyGroups, DenyUsers, ForceCommand, | ||
616 | GatewayPorts, GSSAPIAuthentication, HostbasedAcceptedKeyTypes, | ||
617 | HostbasedAuthentication, HostbasedUsesNameFromPacketOnly, IPQoS, | ||
618 | KbdInteractiveAuthentication, KerberosAuthentication, | ||
619 | MaxAuthTries, MaxSessions, PasswordAuthentication, | ||
620 | PermitEmptyPasswords, PermitOpen, PermitRootLogin, PermitTTY, | ||
621 | PermitTunnel, PermitUserRC, PubkeyAcceptedKeyTypes, | ||
622 | PubkeyAuthentication, RekeyLimit, RevokedKeys, | ||
623 | RhostsRSAAuthentication, RSAAuthentication, StreamLocalBindMask, | ||
624 | StreamLocalBindUnlink, TrustedUserCAKeys, X11DisplayOffset, | ||
625 | X11Forwarding and X11UseLocalHost. | ||
626 | |||
627 | MaxAuthTries | ||
628 | Specifies the maximum number of authentication attempts permitted | ||
629 | per connection. Once the number of failures reaches half this | ||
630 | value, additional failures are logged. The default is 6. | ||
631 | |||
632 | MaxSessions | ||
633 | Specifies the maximum number of open sessions permitted per | ||
634 | network connection. The default is 10. | ||
635 | |||
636 | MaxStartups | ||
637 | Specifies the maximum number of concurrent unauthenticated | ||
638 | connections to the SSH daemon. Additional connections will be | ||
639 | dropped until authentication succeeds or the LoginGraceTime | ||
640 | expires for a connection. The default is 10:30:100. | ||
641 | |||
642 | Alternatively, random early drop can be enabled by specifying the | ||
643 | three colon separated values M-bM-^@M-^\start:rate:fullM-bM-^@M-^] (e.g. "10:30:60"). | ||
644 | sshd(8) will refuse connection attempts with a probability of | ||
645 | M-bM-^@M-^\rate/100M-bM-^@M-^] (30%) if there are currently M-bM-^@M-^\startM-bM-^@M-^] (10) | ||
646 | unauthenticated connections. The probability increases linearly | ||
647 | and all connection attempts are refused if the number of | ||
648 | unauthenticated connections reaches M-bM-^@M-^\fullM-bM-^@M-^] (60). | ||
649 | |||
650 | PasswordAuthentication | ||
651 | Specifies whether password authentication is allowed. The | ||
652 | default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
653 | |||
654 | PermitEmptyPasswords | ||
655 | When password authentication is allowed, it specifies whether the | ||
656 | server allows login to accounts with empty password strings. The | ||
657 | default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
658 | |||
659 | PermitOpen | ||
660 | Specifies the destinations to which TCP port forwarding is | ||
661 | permitted. The forwarding specification must be one of the | ||
662 | following forms: | ||
663 | |||
664 | PermitOpen host:port | ||
665 | PermitOpen IPv4_addr:port | ||
666 | PermitOpen [IPv6_addr]:port | ||
667 | |||
668 | Multiple forwards may be specified by separating them with | ||
669 | whitespace. An argument of M-bM-^@M-^\anyM-bM-^@M-^] can be used to remove all | ||
670 | restrictions and permit any forwarding requests. An argument of | ||
671 | M-bM-^@M-^\noneM-bM-^@M-^] can be used to prohibit all forwarding requests. By | ||
672 | default all port forwarding requests are permitted. | ||
673 | |||
674 | PermitRootLogin | ||
675 | Specifies whether root can log in using ssh(1). The argument | ||
676 | must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\without-passwordM-bM-^@M-^], M-bM-^@M-^\forced-commands-onlyM-bM-^@M-^], or | ||
677 | M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
678 | |||
679 | If this option is set to M-bM-^@M-^\without-passwordM-bM-^@M-^], password | ||
680 | authentication is disabled for root. | ||
681 | |||
682 | If this option is set to M-bM-^@M-^\forced-commands-onlyM-bM-^@M-^], root login with | ||
683 | public key authentication will be allowed, but only if the | ||
684 | command option has been specified (which may be useful for taking | ||
685 | remote backups even if root login is normally not allowed). All | ||
686 | other authentication methods are disabled for root. | ||
687 | |||
688 | If this option is set to M-bM-^@M-^\noM-bM-^@M-^], root is not allowed to log in. | ||
689 | |||
690 | PermitTunnel | ||
691 | Specifies whether tun(4) device forwarding is allowed. The | ||
692 | 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-^] | ||
693 | (layer 2), or M-bM-^@M-^\noM-bM-^@M-^]. Specifying M-bM-^@M-^\yesM-bM-^@M-^] permits both | ||
694 | M-bM-^@M-^\point-to-pointM-bM-^@M-^] and M-bM-^@M-^\ethernetM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
695 | |||
696 | Independent of this setting, the permissions of the selected | ||
697 | tun(4) device must allow access to the user. | ||
698 | |||
699 | PermitTTY | ||
700 | Specifies whether pty(4) allocation is permitted. The default is | ||
701 | M-bM-^@M-^\yesM-bM-^@M-^]. | ||
702 | |||
703 | PermitUserEnvironment | ||
704 | Specifies whether ~/.ssh/environment and environment= options in | ||
705 | ~/.ssh/authorized_keys are processed by sshd(8). The default is | ||
706 | M-bM-^@M-^\noM-bM-^@M-^]. Enabling environment processing may enable users to bypass | ||
707 | access restrictions in some configurations using mechanisms such | ||
708 | as LD_PRELOAD. | ||
709 | |||
710 | PermitUserRC | ||
711 | Specifies whether any ~/.ssh/rc file is executed. The default is | ||
712 | M-bM-^@M-^\yesM-bM-^@M-^]. | ||
713 | |||
714 | PidFile | ||
715 | Specifies the file that contains the process ID of the SSH | ||
716 | daemon, or M-bM-^@M-^\noneM-bM-^@M-^] to not write one. The default is | ||
717 | /var/run/sshd.pid. | ||
718 | |||
719 | Port Specifies the port number that sshd(8) listens on. The default | ||
720 | is 22. Multiple options of this type are permitted. See also | ||
721 | ListenAddress. | ||
722 | |||
723 | PrintLastLog | ||
724 | Specifies whether sshd(8) should print the date and time of the | ||
725 | last user login when a user logs in interactively. The default | ||
726 | is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
727 | |||
728 | PrintMotd | ||
729 | Specifies whether sshd(8) should print /etc/motd when a user logs | ||
730 | in interactively. (On some systems it is also printed by the | ||
731 | shell, /etc/profile, or equivalent.) The default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
732 | |||
733 | Protocol | ||
734 | Specifies the protocol versions sshd(8) supports. The possible | ||
735 | values are M-bM-^@M-^X1M-bM-^@M-^Y and M-bM-^@M-^X2M-bM-^@M-^Y. Multiple versions must be comma- | ||
736 | separated. The default is M-bM-^@M-^X2M-bM-^@M-^Y. Note that the order of the | ||
737 | protocol list does not indicate preference, because the client | ||
738 | selects among multiple protocol versions offered by the server. | ||
739 | Specifying M-bM-^@M-^\2,1M-bM-^@M-^] is identical to M-bM-^@M-^\1,2M-bM-^@M-^]. | ||
740 | |||
741 | PubkeyAcceptedKeyTypes | ||
742 | Specifies the key types that will be accepted for public key | ||
743 | authentication as a comma-separated pattern list. The default | ||
744 | M-bM-^@M-^\*M-bM-^@M-^] will allow all key types. The -Q option of ssh(1) may be | ||
745 | used to list supported key types. | ||
746 | |||
747 | PubkeyAuthentication | ||
748 | Specifies whether public key authentication is allowed. The | ||
749 | default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that this option applies to protocol | ||
750 | version 2 only. | ||
751 | |||
752 | RekeyLimit | ||
753 | Specifies the maximum amount of data that may be transmitted | ||
754 | before the session key is renegotiated, optionally followed a | ||
755 | maximum amount of time that may pass before the session key is | ||
756 | renegotiated. The first argument is specified in bytes and may | ||
757 | 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, | ||
758 | Megabytes, or Gigabytes, respectively. The default is between | ||
759 | M-bM-^@M-^X1GM-bM-^@M-^Y and M-bM-^@M-^X4GM-bM-^@M-^Y, depending on the cipher. The optional second | ||
760 | value is specified in seconds and may use any of the units | ||
761 | documented in the TIME FORMATS section. The default value for | ||
762 | RekeyLimit is M-bM-^@M-^\default noneM-bM-^@M-^], which means that rekeying is | ||
763 | performed after the cipher's default amount of data has been sent | ||
764 | or received and no time based rekeying is done. This option | ||
765 | applies to protocol version 2 only. | ||
766 | |||
767 | RevokedKeys | ||
768 | Specifies revoked public keys file, or M-bM-^@M-^\noneM-bM-^@M-^] to not use one. | ||
769 | Keys listed in this file will be refused for public key | ||
770 | authentication. Note that if this file is not readable, then | ||
771 | public key authentication will be refused for all users. Keys | ||
772 | may be specified as a text file, listing one public key per line, | ||
773 | or as an OpenSSH Key Revocation List (KRL) as generated by | ||
774 | ssh-keygen(1). For more information on KRLs, see the KEY | ||
775 | REVOCATION LISTS section in ssh-keygen(1). | ||
776 | |||
777 | RhostsRSAAuthentication | ||
778 | Specifies whether rhosts or /etc/hosts.equiv authentication | ||
779 | together with successful RSA host authentication is allowed. The | ||
780 | default is M-bM-^@M-^\noM-bM-^@M-^]. This option applies to protocol version 1 only. | ||
781 | |||
782 | RSAAuthentication | ||
783 | Specifies whether pure RSA authentication is allowed. The | ||
784 | default is M-bM-^@M-^\yesM-bM-^@M-^]. This option applies to protocol version 1 | ||
785 | only. | ||
786 | |||
787 | ServerKeyBits | ||
788 | Defines the number of bits in the ephemeral protocol version 1 | ||
789 | server key. The minimum value is 512, and the default is 1024. | ||
790 | |||
791 | StreamLocalBindMask | ||
792 | Sets the octal file creation mode mask (umask) used when creating | ||
793 | a Unix-domain socket file for local or remote port forwarding. | ||
794 | This option is only used for port forwarding to a Unix-domain | ||
795 | socket file. | ||
796 | |||
797 | The default value is 0177, which creates a Unix-domain socket | ||
798 | file that is readable and writable only by the owner. Note that | ||
799 | not all operating systems honor the file mode on Unix-domain | ||
800 | socket files. | ||
801 | |||
802 | StreamLocalBindUnlink | ||
803 | Specifies whether to remove an existing Unix-domain socket file | ||
804 | for local or remote port forwarding before creating a new one. | ||
805 | If the socket file already exists and StreamLocalBindUnlink is | ||
806 | not enabled, sshd will be unable to forward the port to the Unix- | ||
807 | domain socket file. This option is only used for port forwarding | ||
808 | to a Unix-domain socket file. | ||
809 | |||
810 | 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-^]. | ||
811 | |||
812 | StrictModes | ||
813 | Specifies whether sshd(8) should check file modes and ownership | ||
814 | of the user's files and home directory before accepting login. | ||
815 | This is normally desirable because novices sometimes accidentally | ||
816 | leave their directory or files world-writable. The default is | ||
817 | M-bM-^@M-^\yesM-bM-^@M-^]. Note that this does not apply to ChrootDirectory, whose | ||
818 | permissions and ownership are checked unconditionally. | ||
819 | |||
820 | Subsystem | ||
821 | Configures an external subsystem (e.g. file transfer daemon). | ||
822 | Arguments should be a subsystem name and a command (with optional | ||
823 | arguments) to execute upon subsystem request. | ||
824 | |||
825 | The command sftp-server(8) implements the M-bM-^@M-^\sftpM-bM-^@M-^] file transfer | ||
826 | subsystem. | ||
827 | |||
828 | Alternately the name M-bM-^@M-^\internal-sftpM-bM-^@M-^] implements an in-process | ||
829 | M-bM-^@M-^\sftpM-bM-^@M-^] server. This may simplify configurations using | ||
830 | ChrootDirectory to force a different filesystem root on clients. | ||
831 | |||
832 | By default no subsystems are defined. Note that this option | ||
833 | applies to protocol version 2 only. | ||
834 | |||
835 | SyslogFacility | ||
836 | Gives the facility code that is used when logging messages from | ||
837 | sshd(8). The possible values are: DAEMON, USER, AUTH, LOCAL0, | ||
838 | LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The | ||
839 | default is AUTH. | ||
840 | |||
841 | TCPKeepAlive | ||
842 | Specifies whether the system should send TCP keepalive messages | ||
843 | to the other side. If they are sent, death of the connection or | ||
844 | crash of one of the machines will be properly noticed. However, | ||
845 | this means that connections will die if the route is down | ||
846 | temporarily, and some people find it annoying. On the other | ||
847 | hand, if TCP keepalives are not sent, sessions may hang | ||
848 | indefinitely on the server, leaving M-bM-^@M-^\ghostM-bM-^@M-^] users and consuming | ||
849 | server resources. | ||
850 | |||
851 | The default is M-bM-^@M-^\yesM-bM-^@M-^] (to send TCP keepalive messages), and the | ||
852 | server will notice if the network goes down or the client host | ||
853 | crashes. This avoids infinitely hanging sessions. | ||
854 | |||
855 | To disable TCP keepalive messages, the value should be set to | ||
856 | M-bM-^@M-^\noM-bM-^@M-^]. | ||
857 | |||
858 | TrustedUserCAKeys | ||
859 | Specifies a file containing public keys of certificate | ||
860 | authorities that are trusted to sign user certificates for | ||
861 | authentication, or M-bM-^@M-^\noneM-bM-^@M-^] to not use one. Keys are listed one | ||
862 | per line; empty lines and comments starting with M-bM-^@M-^X#M-bM-^@M-^Y are allowed. | ||
863 | If a certificate is presented for authentication and has its | ||
864 | signing CA key listed in this file, then it may be used for | ||
865 | authentication for any user listed in the certificate's | ||
866 | principals list. Note that certificates that lack a list of | ||
867 | principals will not be permitted for authentication using | ||
868 | TrustedUserCAKeys. For more details on certificates, see the | ||
869 | CERTIFICATES section in ssh-keygen(1). | ||
870 | |||
871 | UseDNS Specifies whether sshd(8) should look up the remote host name and | ||
872 | check that the resolved host name for the remote IP address maps | ||
873 | back to the very same IP address. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
874 | |||
875 | UseLogin | ||
876 | Specifies whether login(1) is used for interactive login | ||
877 | sessions. The default is M-bM-^@M-^\noM-bM-^@M-^]. Note that login(1) is never used | ||
878 | for remote command execution. Note also, that if this is | ||
879 | enabled, X11Forwarding will be disabled because login(1) does not | ||
880 | know how to handle xauth(1) cookies. If UsePrivilegeSeparation | ||
881 | is specified, it will be disabled after authentication. | ||
882 | |||
883 | UsePAM Enables the Pluggable Authentication Module interface. If set to | ||
884 | M-bM-^@M-^\yesM-bM-^@M-^] this will enable PAM authentication using | ||
885 | ChallengeResponseAuthentication and PasswordAuthentication in | ||
886 | addition to PAM account and session module processing for all | ||
887 | authentication types. | ||
888 | |||
889 | Because PAM challenge-response authentication usually serves an | ||
890 | equivalent role to password authentication, you should disable | ||
891 | either PasswordAuthentication or ChallengeResponseAuthentication. | ||
892 | |||
893 | If UsePAM is enabled, you will not be able to run sshd(8) as a | ||
894 | non-root user. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
895 | |||
896 | UsePrivilegeSeparation | ||
897 | Specifies whether sshd(8) separates privileges by creating an | ||
898 | unprivileged child process to deal with incoming network traffic. | ||
899 | After successful authentication, another process will be created | ||
900 | that has the privilege of the authenticated user. The goal of | ||
901 | privilege separation is to prevent privilege escalation by | ||
902 | containing any corruption within the unprivileged processes. The | ||
903 | default is M-bM-^@M-^\yesM-bM-^@M-^]. If UsePrivilegeSeparation is set to M-bM-^@M-^\sandboxM-bM-^@M-^] | ||
904 | then the pre-authentication unprivileged process is subject to | ||
905 | additional restrictions. | ||
906 | |||
907 | VersionAddendum | ||
908 | Optionally specifies additional text to append to the SSH | ||
909 | protocol banner sent by the server upon connection. The default | ||
910 | is M-bM-^@M-^\noneM-bM-^@M-^]. | ||
911 | |||
912 | X11DisplayOffset | ||
913 | Specifies the first display number available for sshd(8)'s X11 | ||
914 | forwarding. This prevents sshd from interfering with real X11 | ||
915 | servers. The default is 10. | ||
916 | |||
917 | X11Forwarding | ||
918 | Specifies whether X11 forwarding is permitted. The argument must | ||
919 | be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
920 | |||
921 | When X11 forwarding is enabled, there may be additional exposure | ||
922 | to the server and to client displays if the sshd(8) proxy display | ||
923 | is configured to listen on the wildcard address (see | ||
924 | X11UseLocalhost below), though this is not the default. | ||
925 | Additionally, the authentication spoofing and authentication data | ||
926 | verification and substitution occur on the client side. The | ||
927 | security risk of using X11 forwarding is that the client's X11 | ||
928 | display server may be exposed to attack when the SSH client | ||
929 | requests forwarding (see the warnings for ForwardX11 in | ||
930 | ssh_config(5)). A system administrator may have a stance in | ||
931 | which they want to protect clients that may expose themselves to | ||
932 | attack by unwittingly requesting X11 forwarding, which can | ||
933 | warrant a M-bM-^@M-^\noM-bM-^@M-^] setting. | ||
934 | |||
935 | Note that disabling X11 forwarding does not prevent users from | ||
936 | forwarding X11 traffic, as users can always install their own | ||
937 | forwarders. X11 forwarding is automatically disabled if UseLogin | ||
938 | is enabled. | ||
939 | |||
940 | X11UseLocalhost | ||
941 | Specifies whether sshd(8) should bind the X11 forwarding server | ||
942 | to the loopback address or to the wildcard address. By default, | ||
943 | sshd binds the forwarding server to the loopback address and sets | ||
944 | the hostname part of the DISPLAY environment variable to | ||
945 | M-bM-^@M-^\localhostM-bM-^@M-^]. This prevents remote hosts from connecting to the | ||
946 | proxy display. However, some older X11 clients may not function | ||
947 | with this configuration. X11UseLocalhost may be set to M-bM-^@M-^\noM-bM-^@M-^] to | ||
948 | specify that the forwarding server should be bound to the | ||
949 | wildcard address. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The | ||
950 | default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
951 | |||
952 | XAuthLocation | ||
953 | Specifies the full pathname of the xauth(1) program, or M-bM-^@M-^\noneM-bM-^@M-^] to | ||
954 | not use one. The default is /usr/X11R6/bin/xauth. | ||
955 | |||
956 | TIME FORMATS | ||
957 | sshd(8) command-line arguments and configuration file options that | ||
958 | specify time may be expressed using a sequence of the form: | ||
959 | time[qualifier], where time is a positive integer value and qualifier is | ||
960 | one of the following: | ||
961 | |||
962 | M-bM-^_M-(noneM-bM-^_M-) seconds | ||
963 | s | S seconds | ||
964 | m | M minutes | ||
965 | h | H hours | ||
966 | d | D days | ||
967 | w | W weeks | ||
968 | |||
969 | Each member of the sequence is added together to calculate the total time | ||
970 | value. | ||
971 | |||
972 | Time format examples: | ||
973 | |||
974 | 600 600 seconds (10 minutes) | ||
975 | 10m 10 minutes | ||
976 | 1h30m 1 hour 30 minutes (90 minutes) | ||
977 | |||
978 | FILES | ||
979 | /etc/ssh/sshd_config | ||
980 | Contains configuration data for sshd(8). This file should be | ||
981 | writable by root only, but it is recommended (though not | ||
982 | necessary) that it be world-readable. | ||
983 | |||
984 | SEE ALSO | ||
985 | sshd(8) | ||
986 | |||
987 | AUTHORS | ||
988 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
989 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
990 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
991 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
992 | versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support | ||
993 | for privilege separation. | ||
994 | |||
995 | OpenBSD 5.7 June 5, 2015 OpenBSD 5.7 | ||