summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8905
-rw-r--r--config.h.in1728
-rwxr-xr-xconfigure37262
-rw-r--r--moduli.074
-rw-r--r--scp.0166
-rw-r--r--sftp-server.096
-rw-r--r--sftp.0384
-rw-r--r--ssh-add.0129
-rw-r--r--ssh-agent.0112
-rw-r--r--ssh-keygen.0569
-rw-r--r--ssh-keyscan.0111
-rw-r--r--ssh-keysign.052
-rw-r--r--ssh-pkcs11-helper.025
-rw-r--r--ssh.0958
-rw-r--r--ssh_config.01052
-rw-r--r--sshd.0665
-rw-r--r--sshd_config.01054
17 files changed, 53342 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 000000000..1e4346715
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,8905 @@
1commit 5c35450a0c901d9375fb23343a8dc82397da5f75
2Author: Damien Miller <djm@mindrot.org>
3Date: Thu Mar 10 05:04:48 2016 +1100
4
5 update versions for release
6
7commit 9d47b8d3f50c3a6282896df8274147e3b9a38c56
8Author: Damien Miller <djm@mindrot.org>
9Date: Thu Mar 10 05:03:39 2016 +1100
10
11 sanitise characters destined for xauth(1)
12
13 reported by github.com/tintinweb
14
15commit 72b061d4ba0f909501c595d709ea76e06b01e5c9
16Author: Darren Tucker <dtucker@zip.com.au>
17Date: Fri Feb 26 14:40:04 2016 +1100
18
19 Add a note about using xlc on AIX.
20
21commit fd4e4f2416baa2e6565ea49d52aade296bad3e28
22Author: Darren Tucker <dtucker@zip.com.au>
23Date: Wed Feb 24 10:44:25 2016 +1100
24
25 Skip PrintLastLog in config dump mode.
26
27 When DISABLE_LASTLOG is set, do not try to include PrintLastLog in the
28 config dump since it'll be reported as UNKNOWN.
29
30commit 99135c764fa250801da5ec3b8d06cbd0111caae8
31Author: Damien Miller <djm@mindrot.org>
32Date: Tue Feb 23 20:17:23 2016 +1100
33
34 update spec/README versions ahead of release
35
36commit b86a334aaaa4d1e643eb1fd71f718573d6d948b5
37Author: Damien Miller <djm@mindrot.org>
38Date: Tue Feb 23 20:16:53 2016 +1100
39
40 put back portable patchlevel to p1
41
42commit 555dd35ff176847e3c6bd068ba2e8db4022eb24f
43Author: djm@openbsd.org <djm@openbsd.org>
44Date: Tue Feb 23 09:14:34 2016 +0000
45
46 upstream commit
47
48 openssh-7.2
49
50 Upstream-ID: 9db776b26014147fc907ece8460ef2bcb0f11e78
51
52commit 1acc058d0a7913838c830ed998a1a1fb5b7864bf
53Author: Damien Miller <djm@mindrot.org>
54Date: Tue Feb 23 16:12:13 2016 +1100
55
56 Disable tests where fs perms are incorrect
57
58 Some tests have strict requirements on the filesystem permissions
59 for certain files and directories. This adds a regress/check-perm
60 tool that copies the relevant logic from sshd to exactly test
61 the paths in question. This lets us skip tests when the local
62 filesystem doesn't conform to our expectations rather than
63 continuing and failing the test run.
64
65 ok dtucker@
66
67commit 39f303b1f36d934d8410b05625f25c7bcb75db4d
68Author: Damien Miller <djm@mindrot.org>
69Date: Tue Feb 23 12:56:59 2016 +1100
70
71 fix sandbox on OSX Lion
72
73 sshd was failing with:
74
75 ssh_sandbox_child: sandbox_init: dlopen(/usr/lib/libsandbox.1.dylib, 261):cw
76 image not found [preauth]
77
78 caused by chroot before sandboxing. Avoid by explicitly linking libsandbox
79 to sshd. Spotted by Darren.
80
81commit 0d1451a32c7436e6d3d482351e776bc5e7824ce4
82Author: djm@openbsd.org <djm@openbsd.org>
83Date: Tue Feb 23 01:34:14 2016 +0000
84
85 upstream commit
86
87 fix spurious error message when incorrect passphrase
88 entered for keys; reported by espie@ ok deraadt@
89
90 Upstream-ID: 58b2e46e63ed6912ed1ee780bd3bd8560f9a5899
91
92commit 09d87d79741beb85768b5e788d7dfdf4bc3543dc
93Author: sobrado@openbsd.org <sobrado@openbsd.org>
94Date: Sat Feb 20 23:06:23 2016 +0000
95
96 upstream commit
97
98 set ssh(1) protocol version to 2 only.
99
100 ok djm@
101
102 Upstream-ID: e168daf9d27d7e392e3c9923826bd8e87b2b3a10
103
104commit 9262e07826ba5eebf8423f7ac9e47ec488c47869
105Author: sobrado@openbsd.org <sobrado@openbsd.org>
106Date: Sat Feb 20 23:02:39 2016 +0000
107
108 upstream commit
109
110 add missing ~/.ssh/id_ecdsa and ~/.ssh/id_ed25519 to
111 IdentityFile.
112
113 ok djm@
114
115 Upstream-ID: 6ce99466312e4ae7708017c3665e3edb976f70cf
116
117commit c12f0fdce8f985fca8d71829fd64c5b89dc777f5
118Author: sobrado@openbsd.org <sobrado@openbsd.org>
119Date: Sat Feb 20 23:01:46 2016 +0000
120
121 upstream commit
122
123 AddressFamily defaults to any.
124
125 ok djm@
126
127 Upstream-ID: 0d94aa06a4b889bf57a7f631c45ba36d24c13e0c
128
129commit 907091acb188b1057d50c2158f74c3ecf1c2302b
130Author: Darren Tucker <dtucker@zip.com.au>
131Date: Fri Feb 19 09:05:39 2016 +1100
132
133 Make Solaris privs code build on older systems.
134
135 Not all systems with Solaris privs have priv_basicset so factor that
136 out and provide backward compatibility code. Similarly, not all have
137 PRIV_NET_ACCESS so wrap that in #ifdef. Based on code from
138 alex at cooperi.net and djm@ with help from carson at taltos.org and
139 wieland at purdue.edu.
140
141commit 292a8dee14e5e67dcd1b49ba5c7b9023e8420d59
142Author: djm@openbsd.org <djm@openbsd.org>
143Date: Wed Feb 17 22:20:14 2016 +0000
144
145 upstream commit
146
147 rekey refactor broke SSH1; spotted by Tom G. Christensen
148
149 Upstream-ID: 43f0d57928cc077c949af0bfa71ef574dcb58243
150
151commit 3a13cb543df9919aec2fc6b75f3dd3802facaeca
152Author: djm@openbsd.org <djm@openbsd.org>
153Date: Wed Feb 17 08:57:34 2016 +0000
154
155 upstream commit
156
157 rsa-sha2-512,rsa-sha2-256 cannot be selected explicitly
158 in *KeyTypes options yet. Remove them from the lists of algorithms for now.
159 committing on behalf of markus@ ok djm@
160
161 Upstream-ID: c6e8820eb8e610ac21551832c0c89684a9a51bb7
162
163commit a685ae8d1c24fb7c712c55a4f3280ee76f5f1e4b
164Author: jmc@openbsd.org <jmc@openbsd.org>
165Date: Wed Feb 17 07:38:19 2016 +0000
166
167 upstream commit
168
169 since these pages now clearly tell folks to avoid v1,
170 normalise the docs from a v2 perspective (i.e. stop pointing out which bits
171 are v2 only);
172
173 ok/tweaks djm ok markus
174
175 Upstream-ID: eb474f8c36fb6a532dc05c282f7965e38dcfa129
176
177commit c5c3f3279a0e4044b8de71b70d3570d692d0f29d
178Author: djm@openbsd.org <djm@openbsd.org>
179Date: Wed Feb 17 05:29:04 2016 +0000
180
181 upstream commit
182
183 make sandboxed privilege separation the default, not just
184 for new installs; "absolutely" deraadt@
185
186 Upstream-ID: 5221ef3b927d2df044e9aa3f5db74ae91743f69b
187
188commit eb3f7337a651aa01d5dec019025e6cdc124ed081
189Author: jmc@openbsd.org <jmc@openbsd.org>
190Date: Tue Feb 16 07:47:54 2016 +0000
191
192 upstream commit
193
194 no need to state that protocol 2 is the default twice;
195
196 Upstream-ID: b1e4c36b0c2e12e338e5b66e2978f2ac953b95eb
197
198commit e7901efa9b24e5b0c7e74f2c5520d47eead4d005
199Author: djm@openbsd.org <djm@openbsd.org>
200Date: Tue Feb 16 05:11:04 2016 +0000
201
202 upstream commit
203
204 Replace list of ciphers and MACs adjacent to -1/-2 flag
205 descriptions in ssh(1) with a strong recommendation not to use protocol 1.
206 Add a similar warning to the Protocol option descriptions in ssh_config(5)
207 and sshd_config(5);
208
209 prompted by and ok mmcc@
210
211 Upstream-ID: 961f99e5437d50e636feca023978950a232ead5e
212
213commit 5a0fcb77287342e2fc2ba1cee79b6af108973dc2
214Author: djm@openbsd.org <djm@openbsd.org>
215Date: Tue Feb 16 03:37:48 2016 +0000
216
217 upstream commit
218
219 add a "Close session" log entry (at loglevel=verbose) to
220 correspond to the existing "Starting session" one. Also include the session
221 id number to make multiplexed sessions more apparent.
222
223 feedback and ok dtucker@
224
225 Upstream-ID: e72d2ac080e02774376325136e532cb24c2e617c
226
227commit 624fd395b559820705171f460dd33d67743d13d6
228Author: djm@openbsd.org <djm@openbsd.org>
229Date: Wed Feb 17 02:24:17 2016 +0000
230
231 upstream commit
232
233 include bad $SSH_CONNECTION in failure output
234
235 Upstream-Regress-ID: b22d72edfde78c403aaec2b9c9753ef633cc0529
236
237commit 60d860e54b4f199e5e89963b1c086981309753cb
238Author: Darren Tucker <dtucker@zip.com.au>
239Date: Wed Feb 17 13:37:09 2016 +1100
240
241 Rollback addition of va_start.
242
243 va_start was added in 0f754e29dd3760fc0b172c1220f18b753fb0957e, however
244 it has the wrong number of args and it's not usable in non-variadic
245 functions anyway so it breaks things (for example Solaris 2.6 as
246 reported by Tom G. Christensen).i ok djm@
247
248commit 2fee909c3cee2472a98b26eb82696297b81e0d38
249Author: Darren Tucker <dtucker@zip.com.au>
250Date: Wed Feb 17 09:48:15 2016 +1100
251
252 Look for gethostbyname in libresolv and libnsl.
253
254 Should fix build problem on Solaris 2.6 reported by Tom G. Christensen.
255
256commit 5ac712d81a84396aab441a272ec429af5b738302
257Author: Damien Miller <djm@mindrot.org>
258Date: Tue Feb 16 10:45:02 2016 +1100
259
260 make existing ssh_malloc_init only for __OpenBSD__
261
262commit 24c9bded569d9f2449ded73f92fb6d12db7a9eec
263Author: djm@openbsd.org <djm@openbsd.org>
264Date: Mon Feb 15 23:32:37 2016 +0000
265
266 upstream commit
267
268 memleak of algorithm name in mm_answer_sign; reported by
269 Jakub Jelen
270
271 Upstream-ID: ccd742cd25952240ebd23d7d4d6b605862584d08
272
273commit ffb1e7e896139a42ceb78676f637658f44612411
274Author: dtucker@openbsd.org <dtucker@openbsd.org>
275Date: Mon Feb 15 09:47:49 2016 +0000
276
277 upstream commit
278
279 Add a function to enable security-related malloc_options.
280 With and ok deraadt@, something similar has been in the snaps for a while.
281
282 Upstream-ID: 43a95523b832b7f3b943d2908662191110c380ed
283
284commit ef39e8c0497ff0564990a4f9e8b7338b3ba3507c
285Author: Damien Miller <djm@mindrot.org>
286Date: Tue Feb 16 10:34:39 2016 +1100
287
288 sync ssh-copy-id with upstream 783ef08b0a75
289
290commit d2d772f55b19bb0e8d03c2fe1b9bb176d9779efd
291Author: djm@openbsd.org <djm@openbsd.org>
292Date: Fri Feb 12 00:20:30 2016 +0000
293
294 upstream commit
295
296 avoid fatal() for PKCS11 tokens that present empty key IDs
297 bz#1773, ok markus@
298
299 Upstream-ID: 044a764fee526f2c4a9d530bd10695422d01fc54
300
301commit e4c918a6c721410792b287c9fd21356a1bed5805
302Author: djm@openbsd.org <djm@openbsd.org>
303Date: Thu Feb 11 02:56:32 2016 +0000
304
305 upstream commit
306
307 sync crypto algorithm lists in ssh_config(5) and
308 sshd_config(5) with current reality. bz#2527
309
310 Upstream-ID: d7fd1b6c1ed848d866236bcb1d7049d2bb9b2ff6
311
312commit e30cabfa4ab456a30b3224f7f545f1bdfc4a2517
313Author: djm@openbsd.org <djm@openbsd.org>
314Date: Thu Feb 11 02:21:34 2016 +0000
315
316 upstream commit
317
318 fix regression in openssh-6.8 sftp client: existing
319 destination directories would incorrectly terminate recursive uploads;
320 bz#2528
321
322 Upstream-ID: 3306be469f41f26758e3d447987ac6d662623e18
323
324commit 714e367226ded4dc3897078be48b961637350b05
325Author: djm@openbsd.org <djm@openbsd.org>
326Date: Tue Feb 9 05:30:04 2016 +0000
327
328 upstream commit
329
330 turn off more old crypto in the client: hmac-md5, ripemd,
331 truncated HMACs, RC4, blowfish. ok markus@ dtucker@
332
333 Upstream-ID: 96aa11c2c082be45267a690c12f1d2aae6acd46e
334
335commit 5a622844ff7f78dcb75e223399f9ef0977e8d0a3
336Author: djm@openbsd.org <djm@openbsd.org>
337Date: Mon Feb 8 23:40:12 2016 +0000
338
339 upstream commit
340
341 don't attempt to percent_expand() already-canonicalised
342 addresses, avoiding unnecessary failures when attempting to connect to scoped
343 IPv6 addresses (that naturally contain '%' characters)
344
345 Upstream-ID: f24569cffa1a7cbde5f08dc739a72f4d78aa5c6a
346
347commit 19bcf2ea2d17413f2d9730dd2a19575ff86b9b6a
348Author: djm@openbsd.org <djm@openbsd.org>
349Date: Mon Feb 8 10:57:07 2016 +0000
350
351 upstream commit
352
353 refactor activation of rekeying
354
355 This makes automatic rekeying internal to the packet code (previously
356 the server and client loops needed to assist). In doing to it makes
357 application of rekey limits more accurate by accounting for packets
358 about to be sent as well as packets queued during rekeying events
359 themselves.
360
361 Based on a patch from dtucker@ which was in turn based on a patch
362 Aleksander Adamowski in bz#2521; ok markus@
363
364 Upstream-ID: a441227fd64f9739850ca97b4cf794202860fcd8
365
366commit 603ba41179e4b53951c7b90ee95b6ef3faa3f15d
367Author: naddy@openbsd.org <naddy@openbsd.org>
368Date: Fri Feb 5 13:28:19 2016 +0000
369
370 upstream commit
371
372 Only check errno if read() has returned an error. EOF is
373 not an error. This fixes a problem where the mux master would sporadically
374 fail to notice that the client had exited. ok mikeb@ djm@
375
376 Upstream-ID: 3c2dadc21fac6ef64665688aac8a75fffd57ae53
377
378commit 56d7dac790693ce420d225119283bc355cff9185
379Author: jsg@openbsd.org <jsg@openbsd.org>
380Date: Fri Feb 5 04:31:21 2016 +0000
381
382 upstream commit
383
384 avoid an uninitialised value when NumberOfPasswordPrompts
385 is 0 ok markus@ djm@
386
387 Upstream-ID: 11b068d83c2865343aeb46acf1e9eec00f829b6b
388
389commit deae7d52d59c5019c528f977360d87fdda15d20b
390Author: djm@openbsd.org <djm@openbsd.org>
391Date: Fri Feb 5 03:07:06 2016 +0000
392
393 upstream commit
394
395 mention internal DH-GEX fallback groups; bz#2302
396
397 Upstream-ID: e7b395fcca3122cd825515f45a2e41c9a157e09e
398
399commit cac3b6665f884d46192c0dc98a64112e8b11a766
400Author: djm@openbsd.org <djm@openbsd.org>
401Date: Fri Feb 5 02:37:56 2016 +0000
402
403 upstream commit
404
405 better description for MaxSessions; bz#2531
406
407 Upstream-ID: e2c0d74ee185cd1a3e9d4ca1f1b939b745b354da
408
409commit 5ef4b0fdcc7a239577a754829b50022b91ab4712
410Author: Damien Miller <djm@mindrot.org>
411Date: Wed Jan 27 17:45:56 2016 +1100
412
413 avoid FreeBSD RCS Id in comment
414
415 Change old $FreeBSD version string in comment so it doesn't
416 become an RCS ident downstream; requested by des AT des.no
417
418commit 696d12683c90d20a0a9c5f4275fc916b7011fb04
419Author: djm@openbsd.org <djm@openbsd.org>
420Date: Thu Feb 4 23:43:48 2016 +0000
421
422 upstream commit
423
424 printf argument casts to avoid warnings on strict
425 compilers
426
427 Upstream-ID: 7b9f6712cef01865ad29070262d366cf13587c9c
428
429commit 5658ef2501e785fbbdf5de2dc33b1ff7a4dca73a
430Author: millert@openbsd.org <millert@openbsd.org>
431Date: Mon Feb 1 21:18:17 2016 +0000
432
433 upstream commit
434
435 Avoid ugly "DISPLAY "(null)" invalid; disabling X11
436 forwarding" message when DISPLAY is not set. This could also result in a
437 crash on systems with a printf that doesn't handle NULL. OK djm@
438
439 Upstream-ID: 20ee0cfbda678a247264c20ed75362042b90b412
440
441commit 537f88ec7bcf40bd444ac5584c707c5588c55c43
442Author: dtucker@openbsd.org <dtucker@openbsd.org>
443Date: Fri Jan 29 05:18:15 2016 +0000
444
445 upstream commit
446
447 Add regression test for RekeyLimit parsing of >32bit values
448 (4G and 8G).
449
450 Upstream-Regress-ID: 548390350c62747b6234f522a99c319eee401328
451
452commit 4c6cb8330460f94e6c7ae28a364236d4188156a3
453Author: dtucker@openbsd.org <dtucker@openbsd.org>
454Date: Fri Jan 29 23:04:46 2016 +0000
455
456 upstream commit
457
458 Remove leftover roaming dead code. ok djm markus.
459
460 Upstream-ID: 13d1f9c8b65a5109756bcfd3b74df949d53615be
461
462commit 28136471809806d6246ef41e4341467a39fe2f91
463Author: djm@openbsd.org <djm@openbsd.org>
464Date: Fri Jan 29 05:46:01 2016 +0000
465
466 upstream commit
467
468 include packet type of non-data packets in debug3 output;
469 ok markus dtucker
470
471 Upstream-ID: 034eaf639acc96459b9c5ce782db9fcd8bd02d41
472
473commit 6fd6e28daccafaa35f02741036abe64534c361a1
474Author: dtucker@openbsd.org <dtucker@openbsd.org>
475Date: Fri Jan 29 03:31:03 2016 +0000
476
477 upstream commit
478
479 Revert "account for packets buffered but not yet
480 processed" change as it breaks for very small RekeyLimit values due to
481 continuous rekeying. ok djm@
482
483 Upstream-ID: 7e03f636cb45ab60db18850236ccf19079182a19
484
485commit 921ff00b0ac429666fb361d2d6cb1c8fff0006cb
486Author: dtucker@openbsd.org <dtucker@openbsd.org>
487Date: Fri Jan 29 02:54:45 2016 +0000
488
489 upstream commit
490
491 Allow RekeyLimits in excess of 4G up to 2**63 bits
492 (limited by the return type of scan_scaled). Part of bz#2521, ok djm.
493
494 Upstream-ID: 13bea82be566b9704821b1ea05bf7804335c7979
495
496commit c0060a65296f01d4634f274eee184c0e93ba0f23
497Author: dtucker@openbsd.org <dtucker@openbsd.org>
498Date: Fri Jan 29 02:42:46 2016 +0000
499
500 upstream commit
501
502 Account for packets buffered but not yet processed when
503 computing whether or not it is time to perform rekeying. bz#2521, based
504 loosely on a patch from olo at fb.com, ok djm@
505
506 Upstream-ID: 67e268b547f990ed220f3cb70a5624d9bda12b8c
507
508commit 44cf930e670488c85c9efeb373fa5f4b455692ac
509Author: djm@openbsd.org <djm@openbsd.org>
510Date: Wed Jan 27 06:44:58 2016 +0000
511
512 upstream commit
513
514 change old $FreeBSD version string in comment so it doesn't
515 become an RCS ident downstream; requested by des AT des.no
516
517 Upstream-ID: 8ca558c01f184e596b45e4fc8885534b2c864722
518
519commit ebacd377769ac07d1bf3c75169644336056b7060
520Author: djm@openbsd.org <djm@openbsd.org>
521Date: Wed Jan 27 00:53:12 2016 +0000
522
523 upstream commit
524
525 make the debug messages a bit more useful here
526
527 Upstream-ID: 478ccd4e897e0af8486b294aa63aa3f90ab78d64
528
529commit 458abc2934e82034c5c281336d8dc0f910aecad3
530Author: jsg@openbsd.org <jsg@openbsd.org>
531Date: Sat Jan 23 05:31:35 2016 +0000
532
533 upstream commit
534
535 Zero a stack buffer with explicit_bzero() instead of
536 memset() when returning from client_loop() for consistency with
537 buffer_free()/sshbuf_free().
538
539 ok dtucker@ deraadt@ djm@
540
541 Upstream-ID: bc9975b2095339811c3b954694d7d15ea5c58f66
542
543commit 65a3c0dacbc7dbb75ddb6a70ebe22d8de084d0b0
544Author: dtucker@openbsd.org <dtucker@openbsd.org>
545Date: Wed Jan 20 09:22:39 2016 +0000
546
547 upstream commit
548
549 Include sys/time.h for gettimeofday. From sortie at
550 maxsi.org.
551
552 Upstream-ID: 6ed0c33b836d9de0a664cd091e86523ecaa2fb3b
553
554commit fc77ccdc2ce6d5d06628b8da5048a6a5f6ffca5a
555Author: markus@openbsd.org <markus@openbsd.org>
556Date: Thu Jan 14 22:56:56 2016 +0000
557
558 upstream commit
559
560 fd leaks; report Qualys Security Advisory team; ok
561 deraadt@
562
563 Upstream-ID: 4ec0f12b9d8fa202293c9effa115464185aa071d
564
565commit a306863831c57ec5fad918687cc5d289ee8e2635
566Author: markus@openbsd.org <markus@openbsd.org>
567Date: Thu Jan 14 16:17:39 2016 +0000
568
569 upstream commit
570
571 remove roaming support; ok djm@
572
573 Upstream-ID: 2cab8f4b197bc95776fb1c8dc2859dad0c64dc56
574
575commit 6ef49e83e30688504552ac10875feabd5521565f
576Author: deraadt@openbsd.org <deraadt@openbsd.org>
577Date: Thu Jan 14 14:34:34 2016 +0000
578
579 upstream commit
580
581 Disable experimental client-side roaming support. Server
582 side was disabled/gutted for years already, but this aspect was surprisingly
583 forgotten. Thanks for report from Qualys
584
585 Upstream-ID: 2328004b58f431a554d4c1bf67f5407eae3389df
586
587commit 8d7b523b96d3be180572d9d338cedaafc0570f60
588Author: Damien Miller <djm@mindrot.org>
589Date: Thu Jan 14 11:08:19 2016 +1100
590
591 bump version numbers
592
593commit 8c3d512a1fac8b9c83b4d0c9c3f2376290bd84ca
594Author: Damien Miller <djm@mindrot.org>
595Date: Thu Jan 14 11:04:04 2016 +1100
596
597 openssh-7.1p2
598
599commit e6c85f8889c5c9eb04796fdb76d2807636b9eef5
600Author: Damien Miller <djm@mindrot.org>
601Date: Fri Jan 15 01:30:36 2016 +1100
602
603 forcibly disable roaming support in the client
604
605commit ed4ce82dbfa8a3a3c8ea6fa0db113c71e234416c
606Author: djm@openbsd.org <djm@openbsd.org>
607Date: Wed Jan 13 23:04:47 2016 +0000
608
609 upstream commit
610
611 eliminate fallback from untrusted X11 forwarding to trusted
612 forwarding when the X server disables the SECURITY extension; Reported by
613 Thomas Hoger; ok deraadt@
614
615 Upstream-ID: f76195bd2064615a63ef9674a0e4096b0713f938
616
617commit 9a728cc918fad67c8a9a71201088b1e150340ba4
618Author: djm@openbsd.org <djm@openbsd.org>
619Date: Tue Jan 12 23:42:54 2016 +0000
620
621 upstream commit
622
623 use explicit_bzero() more liberally in the buffer code; ok
624 deraadt
625
626 Upstream-ID: 0ece37069fd66bc6e4f55eb1321f93df372b65bf
627
628commit 4626cbaf78767fc8e9c86dd04785386c59ae0839
629Author: Damien Miller <djm@mindrot.org>
630Date: Fri Jan 8 14:24:56 2016 +1100
631
632 Support Illumos/Solaris fine-grained privileges
633
634 Includes a pre-auth privsep sandbox and several pledge()
635 emulations. bz#2511, patch by Alex Wilson.
636
637 ok dtucker@
638
639commit 422d1b3ee977ff4c724b597fb2e437d38fc8de9d
640Author: djm@openbsd.org <djm@openbsd.org>
641Date: Thu Dec 31 00:33:52 2015 +0000
642
643 upstream commit
644
645 fix three bugs in KRL code related to (unused) signature
646 support: verification length was being incorrectly calculated, multiple
647 signatures were being incorrectly processed and a NULL dereference that
648 occurred when signatures were verified. Reported by Carl Jackson
649
650 Upstream-ID: e705e97ad3ccce84291eaa651708dd1b9692576b
651
652commit 6074c84bf95d00f29cc7d5d3cd3798737851aa1a
653Author: djm@openbsd.org <djm@openbsd.org>
654Date: Wed Dec 30 23:46:14 2015 +0000
655
656 upstream commit
657
658 unused prototype
659
660 Upstream-ID: f3eef4389d53ed6c0d5c77dcdcca3060c745da97
661
662commit 6213f0e180e54122bb1ba928e11c784e2b4e5380
663Author: guenther@openbsd.org <guenther@openbsd.org>
664Date: Sat Dec 26 20:51:35 2015 +0000
665
666 upstream commit
667
668 Use pread/pwrite instead separate lseek+read/write for
669 lastlog. Cast to off_t before multiplication to avoid truncation on ILP32
670
671 ok kettenis@ mmcc@
672
673 Upstream-ID: fc40092568cd195719ddf1a00aa0742340d616cf
674
675commit d7d2bc95045a43dd56ea696cc1d030ac9d77e81f
676Author: semarie@openbsd.org <semarie@openbsd.org>
677Date: Sat Dec 26 07:46:03 2015 +0000
678
679 upstream commit
680
681 adjust pledge promises for ControlMaster: when using
682 "ask" or "autoask", the process will use ssh-askpass for asking confirmation.
683
684 problem found by halex@
685
686 ok halex@
687
688 Upstream-ID: 38a58b30ae3eef85051c74d3c247216ec0735f80
689
690commit 271df8185d9689b3fb0523f58514481b858f6843
691Author: djm@openbsd.org <djm@openbsd.org>
692Date: Sun Dec 13 22:42:23 2015 +0000
693
694 upstream commit
695
696 unbreak connections with peers that set
697 first_kex_follows; fix from Matt Johnston va bz#2515
698
699 Upstream-ID: decc88ec4fc7515594fdb42b04aa03189a44184b
700
701commit 43849a47c5f8687699eafbcb5604f6b9c395179f
702Author: doug@openbsd.org <doug@openbsd.org>
703Date: Fri Dec 11 17:41:37 2015 +0000
704
705 upstream commit
706
707 Add "id" to ssh-agent pledge for subprocess support.
708
709 Found the hard way by Jan Johansson when using ssh-agent with X. Also,
710 rearranged proc/exec and retval to match other pledge calls in the tree.
711
712 ok djm@
713
714 Upstream-ID: 914255f6850e5e7fa830a2de6c38605333b584db
715
716commit 52d7078421844b2f88329f5be3de370b0a938636
717Author: mmcc@openbsd.org <mmcc@openbsd.org>
718Date: Fri Dec 11 04:21:11 2015 +0000
719
720 upstream commit
721
722 Remove NULL-checks before sshbuf_free().
723
724 ok djm@
725
726 Upstream-ID: 5ebed00ed5f9f03b119a345085e8774565466917
727
728commit a4b9e0f4e4a6980a0eb8072f76ea611cab5b77e7
729Author: djm@openbsd.org <djm@openbsd.org>
730Date: Fri Dec 11 03:24:25 2015 +0000
731
732 upstream commit
733
734 include remote port number in a few more messages; makes
735 tying log messages together into a session a bit easier; bz#2503 ok dtucker@
736
737 Upstream-ID: 9300dc354015f7a7368d94a8ff4a4266a69d237e
738
739commit 6091c362e89079397e68744ae30df121b0a72c07
740Author: djm@openbsd.org <djm@openbsd.org>
741Date: Fri Dec 11 03:20:09 2015 +0000
742
743 upstream commit
744
745 don't try to load SSHv1 private key when compiled without
746 SSHv1 support. From Iain Morgan bz#2505
747
748 Upstream-ID: 8b8e7b02a448cf5e5635979df2d83028f58868a7
749
750commit cce6a36bb95e81fa8bfb46daf22eabcf13afc352
751Author: djm@openbsd.org <djm@openbsd.org>
752Date: Fri Dec 11 03:19:09 2015 +0000
753
754 upstream commit
755
756 use SSH_MAX_PUBKEY_BYTES consistently as buffer size when
757 reading key files. Increase it to match the size of the buffers already being
758 used.
759
760 Upstream-ID: 1b60586b484b55a947d99a0b32bd25e0ced56fae
761
762commit 89540b6de025b80404a0cb8418c06377f3f98848
763Author: mmcc@openbsd.org <mmcc@openbsd.org>
764Date: Fri Dec 11 02:31:47 2015 +0000
765
766 upstream commit
767
768 Remove NULL-checks before sshkey_free().
769
770 ok djm@
771
772 Upstream-ID: 3e35afe8a25e021216696b5d6cde7f5d2e5e3f52
773
774commit 79394ed6d74572c2d2643d73937dad33727fc240
775Author: dtucker@openbsd.org <dtucker@openbsd.org>
776Date: Fri Dec 11 02:29:03 2015 +0000
777
778 upstream commit
779
780 fflush stdout so that output is seen even when running in
781 debug mode when output may otherwise not be flushed. Patch from dustin at
782 null-ptr.net.
783
784 Upstream-ID: b0c6b4cd2cdb01d7e9eefbffdc522e35b5bc4acc
785
786commit ee607cccb6636eb543282ba90e0677b0604d8b7a
787Author: Darren Tucker <dtucker@zip.com.au>
788Date: Tue Dec 15 15:23:49 2015 +1100
789
790 Increase robustness of redhat/openssh.spec
791
792 - remove configure --with-rsh, because this option isn't supported anymore
793 - replace last occurrence of BuildPreReq by BuildRequires
794 - update grep statement to query the krb5 include directory
795
796 Patch from CarstenGrohmann via github, ok djm.
797
798commit b5fa0cd73555b991a543145603658d7088ec6b60
799Author: Darren Tucker <dtucker@zip.com.au>
800Date: Tue Dec 15 15:10:32 2015 +1100
801
802 Allow --without-ssl-engine with --without-openssl
803
804 Patch from Mike Frysinger via github.
805
806commit c1d7e546f6029024f3257cc25c92f2bddf163125
807Author: Darren Tucker <dtucker@zip.com.au>
808Date: Tue Dec 15 14:27:09 2015 +1100
809
810 Include openssl crypto.h for SSLeay.
811
812 Patch from doughdemon via github.
813
814commit c6f5f01651526e88c00d988ce59d71f481ebac62
815Author: Darren Tucker <dtucker@zip.com.au>
816Date: Tue Dec 15 13:59:12 2015 +1100
817
818 Add sys/time.h for gettimeofday.
819
820 Should allow it it compile with MUSL libc. Based on patch from
821 doughdemon via github.
822
823commit 39736be06c7498ef57d6970f2d85cf066ae57c82
824Author: djm@openbsd.org <djm@openbsd.org>
825Date: Fri Dec 11 02:20:28 2015 +0000
826
827 upstream commit
828
829 correct error messages; from Tomas Kuthan bz#2507
830
831 Upstream-ID: 7454a0affeab772398052954c79300aa82077093
832
833commit 94141b7ade24afceeb6762a3f99e09e47a6c42b6
834Author: mmcc@openbsd.org <mmcc@openbsd.org>
835Date: Fri Dec 11 00:20:04 2015 +0000
836
837 upstream commit
838
839 Pass (char *)NULL rather than (char *)0 to execl and
840 execlp.
841
842 ok dtucker@
843
844 Upstream-ID: 56c955106cbddba86c3dd9bbf786ac0d1b361492
845
846commit d59ce08811bf94111c2f442184cf7d1257ffae24
847Author: mmcc@openbsd.org <mmcc@openbsd.org>
848Date: Thu Dec 10 17:08:40 2015 +0000
849
850 upstream commit
851
852 Remove NULL-checks before free().
853
854 ok dtucker@
855
856 Upstream-ID: e3d3cb1ce900179906af36517b5eea0fb15e6ef8
857
858commit 8e56dd46cb37879c73bce2d6032cf5e7f82d5a71
859Author: mmcc@openbsd.org <mmcc@openbsd.org>
860Date: Thu Dec 10 07:01:35 2015 +0000
861
862 upstream commit
863
864 Fix a couple "the the" typos. ok dtucker@
865
866 Upstream-ID: ec364c5af32031f013001fd28d1bd3dfacfe9a72
867
868commit 6262a0522ddc2c0f2e9358dcb68d59b46e9c533e
869Author: markus@openbsd.org <markus@openbsd.org>
870Date: Mon Dec 7 20:04:09 2015 +0000
871
872 upstream commit
873
874 stricter encoding type checks for ssh-rsa; ok djm@
875
876 Upstream-ID: 8cca7c787599a5e8391e184d0b4f36fdc3665650
877
878commit d86a3ba7af160c13496102aed861ae48a4297072
879Author: Damien Miller <djm@mindrot.org>
880Date: Wed Dec 9 09:18:45 2015 +1100
881
882 Don't set IPV6_V6ONLY on OpenBSD
883
884 It isn't necessary and runs afoul of pledge(2) restrictions.
885
886commit da98c11d03d819a15429d8fff9688acd7505439f
887Author: djm@openbsd.org <djm@openbsd.org>
888Date: Mon Dec 7 02:20:46 2015 +0000
889
890 upstream commit
891
892 basic unit tests for rsa-sha2-* signature types
893
894 Upstream-Regress-ID: 7dc4b9db809d578ff104d591b4d86560c3598d3c
895
896commit 3da893fdec9936dd2c23739cdb3c0c9d4c59fca0
897Author: markus@openbsd.org <markus@openbsd.org>
898Date: Sat Dec 5 20:53:21 2015 +0000
899
900 upstream commit
901
902 prefer rsa-sha2-512 over -256 for hostkeys, too; noticed
903 by naddy@
904
905 Upstream-ID: 685f55f7ec566a8caca587750672723a0faf3ffe
906
907commit 8b56e59714d87181505e4678f0d6d39955caf10e
908Author: tobias@openbsd.org <tobias@openbsd.org>
909Date: Fri Dec 4 21:51:06 2015 +0000
910
911 upstream commit
912
913 Properly handle invalid %-format by calling fatal.
914
915 ok deraadt, djm
916
917 Upstream-ID: 5692bce7d9f6eaa9c488cb93d3b55e758bef1eac
918
919commit 76c9fbbe35aabc1db977fb78e827644345e9442e
920Author: markus@openbsd.org <markus@openbsd.org>
921Date: Fri Dec 4 16:41:28 2015 +0000
922
923 upstream commit
924
925 implement SHA2-{256,512} for RSASSA-PKCS1-v1_5 signatures
926 (user and host auth) based on draft-rsa-dsa-sha2-256-03.txt and
927 draft-ssh-ext-info-04.txt; with & ok djm@
928
929 Upstream-ID: cf82ce532b2733e5c4b34bb7b7c94835632db309
930
931commit 6064a8b8295cb5a17b5ebcfade53053377714f40
932Author: djm@openbsd.org <djm@openbsd.org>
933Date: Fri Dec 4 00:24:55 2015 +0000
934
935 upstream commit
936
937 clean up agent_fd handling; properly initialise it to -1
938 and make tests consistent
939
940 ok markus@
941
942 Upstream-ID: ac9554323d5065745caf17b5e37cb0f0d4825707
943
944commit b91926a97620f3e51761c271ba57aa5db790f48d
945Author: semarie@openbsd.org <semarie@openbsd.org>
946Date: Thu Dec 3 17:00:18 2015 +0000
947
948 upstream commit
949
950 pledges ssh client: - mux client: which is used when
951 ControlMaster is in use. will end with "stdio proc tty" (proc is to
952 permit sending SIGWINCH to mux master on window resize)
953
954 - client loop: several levels of pledging depending of your used options
955
956 ok deraadt@
957
958 Upstream-ID: 21676155a700e51f2ce911e33538e92a2cd1d94b
959
960commit bcce47466bbc974636f588b5e4a9a18ae386f64a
961Author: doug@openbsd.org <doug@openbsd.org>
962Date: Wed Dec 2 08:30:50 2015 +0000
963
964 upstream commit
965
966 Add "cpath" to the ssh-agent pledge so the cleanup
967 handler can unlink().
968
969 ok djm@
970
971 Upstream-ID: 9e632991d48241d56db645602d381253a3d8c29d
972
973commit a90d001543f46716b6590c6dcc681d5f5322f8cf
974Author: djm@openbsd.org <djm@openbsd.org>
975Date: Wed Dec 2 08:00:58 2015 +0000
976
977 upstream commit
978
979 ssh-agent pledge needs proc for askpass; spotted by todd@
980
981 Upstream-ID: 349aa261b29cc0e7de47ef56167769c432630b2a
982
983commit d952162b3c158a8f23220587bb6c8fcda75da551
984Author: djm@openbsd.org <djm@openbsd.org>
985Date: Tue Dec 1 23:29:24 2015 +0000
986
987 upstream commit
988
989 basic pledge() for ssh-agent, more refinement needed
990
991 Upstream-ID: 5b5b03c88162fce549e45e1b6dd833f20bbb5e13
992
993commit f0191d7c8e76e30551084b79341886d9bb38e453
994Author: Damien Miller <djm@mindrot.org>
995Date: Mon Nov 30 10:53:25 2015 +1100
996
997 Revert "stub for pledge(2) for systems that lack it"
998
999 This reverts commit 14c887c8393adde2d9fd437d498be30f8c98535c.
1000
1001 dtucker beat me to it :/
1002
1003commit 6283cc72eb0e49a3470d30e07ca99a1ba9e89676
1004Author: Damien Miller <djm@mindrot.org>
1005Date: Mon Nov 30 10:37:03 2015 +1100
1006
1007 revert 7d4c7513: bring back S/Key prototypes
1008
1009 (but leave RCSID changes)
1010
1011commit 14c887c8393adde2d9fd437d498be30f8c98535c
1012Author: Damien Miller <djm@mindrot.org>
1013Date: Mon Nov 30 09:45:29 2015 +1100
1014
1015 stub for pledge(2) for systems that lack it
1016
1017commit 452c0b6af5d14c37553e30059bf74456012493f3
1018Author: djm@openbsd.org <djm@openbsd.org>
1019Date: Sun Nov 29 22:18:37 2015 +0000
1020
1021 upstream commit
1022
1023 pledge, better fatal() messages; feedback deraadt@
1024
1025 Upstream-ID: 3e00f6ccfe2b9a7a2d1dbba5409586180801488f
1026
1027commit 6da413c085dba37127687b2617a415602505729b
1028Author: deraadt@openbsd.org <deraadt@openbsd.org>
1029Date: Sat Nov 28 06:50:52 2015 +0000
1030
1031 upstream commit
1032
1033 do not leak temp file if there is no known_hosts file
1034 from craig leres, ok djm
1035
1036 Upstream-ID: c820497fd5574844c782e79405c55860f170e426
1037
1038commit 3ddd15e1b63a4d4f06c8ab16fbdd8a5a61764f16
1039Author: Darren Tucker <dtucker@zip.com.au>
1040Date: Mon Nov 30 07:23:53 2015 +1100
1041
1042 Add a null implementation of pledge.
1043
1044 Fixes builds on almost everything.
1045
1046commit b1d6b3971ef256a08692efc409fc9ada719111cc
1047Author: djm@openbsd.org <djm@openbsd.org>
1048Date: Sat Nov 28 06:41:03 2015 +0000
1049
1050 upstream commit
1051
1052 don't include port number in tcpip-forward replies for
1053 requests that don't allocate a port; bz#2509 diagnosed by Ron Frederick ok
1054 markus
1055
1056 Upstream-ID: 77efad818addb61ec638b5a2362f1554e21a970a
1057
1058commit 9080bd0b9cf10d0f13b1f642f20cb84285cb8d65
1059Author: deraadt@openbsd.org <deraadt@openbsd.org>
1060Date: Fri Nov 27 00:49:31 2015 +0000
1061
1062 upstream commit
1063
1064 pledge "stdio rpath wpath cpath fattr tty proc exec"
1065 except for the -p option (which sadly has insane semantics...) ok semarie
1066 dtucker
1067
1068 Upstream-ID: 8854bbd58279abe00f6c33f8094bdc02c8c65059
1069
1070commit 4d90625b229cf6b3551d81550a9861897509a65f
1071Author: halex@openbsd.org <halex@openbsd.org>
1072Date: Fri Nov 20 23:04:01 2015 +0000
1073
1074 upstream commit
1075
1076 allow comment change for all supported formats
1077
1078 ok djm@
1079
1080 Upstream-ID: 5fc477cf2f119b2d44aa9c683af16cb00bb3744b
1081
1082commit 8ca915fc761519dd1f7766a550ec597a81db5646
1083Author: djm@openbsd.org <djm@openbsd.org>
1084Date: Fri Nov 20 01:45:29 2015 +0000
1085
1086 upstream commit
1087
1088 add cast to make -Werror clean
1089
1090 Upstream-ID: 288db4f8f810bd475be01320c198250a04ff064d
1091
1092commit ac9473580dcd401f8281305af98635cdaae9bf96
1093Author: Damien Miller <djm@mindrot.org>
1094Date: Fri Nov 20 12:35:41 2015 +1100
1095
1096 fix multiple authentication using S/Key w/ privsep
1097
1098 bz#2502, patch from Kevin Korb and feandil_
1099
1100commit 88b6fcdeb87a2fb76767854d9eb15006662dca57
1101Author: djm@openbsd.org <djm@openbsd.org>
1102Date: Thu Nov 19 08:23:27 2015 +0000
1103
1104 upstream commit
1105
1106 ban ConnectionAttempts=0, it makes no sense and would cause
1107 ssh_connect_direct() to print an uninitialised stack variable; bz#2500
1108 reported by dvw AT phas.ubc.ca
1109
1110 Upstream-ID: 32b5134c608270583a90b93a07b3feb3cbd5f7d5
1111
1112commit 964ab3ee7a8f96bdbc963d5b5a91933d6045ebe7
1113Author: djm@openbsd.org <djm@openbsd.org>
1114Date: Thu Nov 19 01:12:32 2015 +0000
1115
1116 upstream commit
1117
1118 trailing whitespace
1119
1120 Upstream-ID: 31fe0ad7c4d08e87f1d69c79372f5e3c5cd79051
1121
1122commit f96516d052dbe38561f6b92b0e4365d8e24bb686
1123Author: djm@openbsd.org <djm@openbsd.org>
1124Date: Thu Nov 19 01:09:38 2015 +0000
1125
1126 upstream commit
1127
1128 print host certificate contents at debug level
1129
1130 Upstream-ID: 39354cdd8a2b32b308fd03f98645f877f540f00d
1131
1132commit 499cf36fecd6040e30e2912dd25655bc574739a7
1133Author: djm@openbsd.org <djm@openbsd.org>
1134Date: Thu Nov 19 01:08:55 2015 +0000
1135
1136 upstream commit
1137
1138 move the certificate validity formatting code to
1139 sshkey.[ch]
1140
1141 Upstream-ID: f05f7c78fab20d02ff1d5ceeda533ef52e8fe523
1142
1143commit bcb7bc77bbb1535d1008c7714085556f3065d99d
1144Author: djm@openbsd.org <djm@openbsd.org>
1145Date: Wed Nov 18 08:37:28 2015 +0000
1146
1147 upstream commit
1148
1149 fix "ssh-keygen -l" of private key, broken in support for
1150 multiple plain keys on stdin
1151
1152 Upstream-ID: 6b3132d2c62d03d0bad6f2bcd7e2d8b7dab5cd9d
1153
1154commit 259adb6179e23195c8f6913635ea71040d1ccd63
1155Author: millert@openbsd.org <millert@openbsd.org>
1156Date: Mon Nov 16 23:47:52 2015 +0000
1157
1158 upstream commit
1159
1160 Replace remaining calls to index(3) with strchr(3). OK
1161 jca@ krw@
1162
1163 Upstream-ID: 33837d767a0cf1db1489b96055f9e330bc0bab6d
1164
1165commit c56a255162c2166884539c0a1f7511575325b477
1166Author: djm@openbsd.org <djm@openbsd.org>
1167Date: Mon Nov 16 22:53:07 2015 +0000
1168
1169 upstream commit
1170
1171 Allow fingerprinting from standard input "ssh-keygen -lf
1172 -"
1173
1174 Support fingerprinting multiple plain keys in a file and authorized_keys
1175 files too (bz#1319)
1176
1177 ok markus@
1178
1179 Upstream-ID: 903f8b4502929d6ccf53509e4e07eae084574b77
1180
1181commit 5b4010d9b923cf1b46c9c7b1887c013c2967e204
1182Author: djm@openbsd.org <djm@openbsd.org>
1183Date: Mon Nov 16 22:51:05 2015 +0000
1184
1185 upstream commit
1186
1187 always call privsep_preauth_child() regardless of whether
1188 sshd was started by root; it does important priming before sandboxing and
1189 failing to call it could result in sandbox violations later; ok markus@
1190
1191 Upstream-ID: c8a6d0d56c42f3faab38460dc917ca0d1705d383
1192
1193commit 3a9f84b58b0534bbb485f1eeab75665e2d03371f
1194Author: djm@openbsd.org <djm@openbsd.org>
1195Date: Mon Nov 16 22:50:01 2015 +0000
1196
1197 upstream commit
1198
1199 improve sshkey_read() semantics; only update *cpp when a
1200 key is successfully read; ok markus@
1201
1202 Upstream-ID: f371e78e8f4fab366cf69a42bdecedaed5d1b089
1203
1204commit db6f8dc5dd5655b59368efd074994d4568bc3556
1205Author: logan@openbsd.org <logan@openbsd.org>
1206Date: Mon Nov 16 06:13:04 2015 +0000
1207
1208 upstream commit
1209
1210 1) Use xcalloc() instead of xmalloc() to check for
1211 potential overflow. (Feedback from both mmcc@ and djm@) 2) move set_size
1212 just before the for loop. (suggested by djm@)
1213
1214 OK djm@
1215
1216 Upstream-ID: 013534c308187284756c3141f11d2c0f33c47213
1217
1218commit 383f10fb84a0fee3c01f9d97594f3e22aa3cd5e0
1219Author: djm@openbsd.org <djm@openbsd.org>
1220Date: Mon Nov 16 00:30:02 2015 +0000
1221
1222 upstream commit
1223
1224 Add a new authorized_keys option "restrict" that
1225 includes all current and future key restrictions (no-*-forwarding, etc). Also
1226 add permissive versions of the existing restrictions, e.g. "no-pty" -> "pty".
1227 This simplifies the task of setting up restricted keys and ensures they are
1228 maximally-restricted, regardless of any permissions we might implement in the
1229 future.
1230
1231 Example:
1232
1233 restrict,pty,command="nethack" ssh-ed25519 AAAAC3NzaC1lZDI1...
1234
1235 Idea from Jann Horn; ok markus@
1236
1237 Upstream-ID: 04ceb9d448e46e67e13887a7ae5ea45b4f1719d0
1238
1239commit e41a071f7bda6af1fb3f081bed0151235fa61f15
1240Author: jmc@openbsd.org <jmc@openbsd.org>
1241Date: Sun Nov 15 23:58:04 2015 +0000
1242
1243 upstream commit
1244
1245 correct section number for ssh-agent;
1246
1247 Upstream-ID: 44be72fd8bcc167635c49b357b1beea8d5674bd6
1248
1249commit 1a11670286acddcc19f5eff0966c380831fc4638
1250Author: jmc@openbsd.org <jmc@openbsd.org>
1251Date: Sun Nov 15 23:54:15 2015 +0000
1252
1253 upstream commit
1254
1255 do not confuse mandoc by presenting "Dd";
1256
1257 Upstream-ID: 1470fce171c47b60bbc7ecd0fc717a442c2cfe65
1258
1259commit f361df474c49a097bfcf16d1b7b5c36fcd844b4b
1260Author: jcs@openbsd.org <jcs@openbsd.org>
1261Date: Sun Nov 15 22:26:49 2015 +0000
1262
1263 upstream commit
1264
1265 Add an AddKeysToAgent client option which can be set to
1266 'yes', 'no', 'ask', or 'confirm', and defaults to 'no'. When enabled, a
1267 private key that is used during authentication will be added to ssh-agent if
1268 it is running (with confirmation enabled if set to 'confirm').
1269
1270 Initial version from Joachim Schipper many years ago.
1271
1272 ok markus@
1273
1274 Upstream-ID: a680db2248e8064ec55f8be72d539458c987d5f4
1275
1276commit d87063d9baf5479b6e813d47dfb694a97df6f6f5
1277Author: djm@openbsd.org <djm@openbsd.org>
1278Date: Fri Nov 13 04:39:35 2015 +0000
1279
1280 upstream commit
1281
1282 send SSH2_MSG_UNIMPLEMENTED replies to unexpected
1283 messages during KEX; bz#2949, ok dtucker@
1284
1285 Upstream-ID: 2b3abdff344d53c8d505f45c83a7b12e84935786
1286
1287commit 9fd04681a1e9b0af21e08ff82eb674cf0a499bfc
1288Author: djm@openbsd.org <djm@openbsd.org>
1289Date: Fri Nov 13 04:38:06 2015 +0000
1290
1291 upstream commit
1292
1293 Support "none" as an argument for sshd_config
1294 ForceCommand and ChrootDirectory. Useful inside Match blocks to override a
1295 global default. bz#2486 ok dtucker@
1296
1297 Upstream-ID: 7ef478d6592bc7db5c7376fc33b4443e63dccfa5
1298
1299commit 94bc0b72c29e511cbbc5772190d43282e5acfdfe
1300Author: djm@openbsd.org <djm@openbsd.org>
1301Date: Fri Nov 13 04:34:15 2015 +0000
1302
1303 upstream commit
1304
1305 support multiple certificates (one per line) and
1306 reading from standard input (using "-f -") for "ssh-keygen -L"; ok dtucker@
1307
1308 Upstream-ID: ecbadeeef3926e5be6281689b7250a32a80e88db
1309
1310commit b6b9108f5b561c83612cb97ece4134eb59fde071
1311Author: djm@openbsd.org <djm@openbsd.org>
1312Date: Fri Nov 13 02:57:46 2015 +0000
1313
1314 upstream commit
1315
1316 list a couple more options usable in Match blocks;
1317 bz#2489
1318
1319 Upstream-ID: e4d03f39d254db4c0cc54101921bb89fbda19879
1320
1321commit a7994b3f5a5a5a33b52b0a6065d08e888f0a99fb
1322Author: djm@openbsd.org <djm@openbsd.org>
1323Date: Wed Nov 11 04:56:39 2015 +0000
1324
1325 upstream commit
1326
1327 improve PEEK/POKE macros: better casts, don't multiply
1328 evaluate arguments; ok deraadt@
1329
1330 Upstream-ID: 9a1889e19647615ededbbabab89064843ba92d3e
1331
1332commit 7d4c7513a7f209cb303a608ac6e46b3f1dfc11ec
1333Author: djm@openbsd.org <djm@openbsd.org>
1334Date: Wed Nov 11 01:48:01 2015 +0000
1335
1336 upstream commit
1337
1338 remove prototypes for long-gone s/key support; ok
1339 dtucker@
1340
1341 Upstream-ID: db5bed3c57118af986490ab23d399df807359a79
1342
1343commit 07889c75926c040b8e095949c724e66af26441cb
1344Author: Damien Miller <djm@mindrot.org>
1345Date: Sat Nov 14 18:44:49 2015 +1100
1346
1347 read back from libcrypto RAND when privdropping
1348
1349 makes certain libcrypto implementations cache a /dev/urandom fd
1350 in preparation of sandboxing. Based on patch by Greg Hartman.
1351
1352commit 1560596f44c01bb0cef977816410950ed17b8ecd
1353Author: Darren Tucker <dtucker@zip.com.au>
1354Date: Tue Nov 10 11:14:47 2015 +1100
1355
1356 Fix compiler warnings in the openssl header check.
1357
1358 Noted by Austin English.
1359
1360commit e72a8575ffe1d8adff42c9abe9ca36938acc036b
1361Author: jmc@openbsd.org <jmc@openbsd.org>
1362Date: Sun Nov 8 23:24:03 2015 +0000
1363
1364 upstream commit
1365
1366 -c before -H, in SYNOPSIS and usage();
1367
1368 Upstream-ID: 25e8c58a69e1f37fcd54ac2cd1699370acb5e404
1369
1370commit 3a424cdd21db08c7b0ded902f97b8f02af5aa485
1371Author: djm@openbsd.org <djm@openbsd.org>
1372Date: Sun Nov 8 22:30:20 2015 +0000
1373
1374 upstream commit
1375
1376 Add "ssh-keyscan -c ..." flag to allow fetching
1377 certificates instead of plain keys; ok markus@
1378
1379 Upstream-ID: 0947e2177dba92339eced9e49d3c5bf7dda69f82
1380
1381commit 69fead5d7cdaa73bdece9fcba80f8e8e70b90346
1382Author: jmc@openbsd.org <jmc@openbsd.org>
1383Date: Sun Nov 8 22:08:38 2015 +0000
1384
1385 upstream commit
1386
1387 remove slogin links; ok deraadt markus djm
1388
1389 Upstream-ID: 39ba08548acde4c54f2d4520c202c2a863a3c730
1390
1391commit 2fecfd486bdba9f51b3a789277bb0733ca36e1c0
1392Author: djm@openbsd.org <djm@openbsd.org>
1393Date: Sun Nov 8 21:59:11 2015 +0000
1394
1395 upstream commit
1396
1397 fix OOB read in packet code caused by missing return
1398 statement found by Ben Hawkes; ok markus@ deraadt@
1399
1400 Upstream-ID: a3e3a85434ebfa0690d4879091959591f30efc62
1401
1402commit 5e288923a303ca672b686908320bc5368ebec6e6
1403Author: mmcc@openbsd.org <mmcc@openbsd.org>
1404Date: Fri Nov 6 00:31:41 2015 +0000
1405
1406 upstream commit
1407
1408 1. rlogin and rsh are long gone 2. protocol version isn't
1409 of core relevance here, and v1 is going away
1410
1411 ok markus@, deraadt@
1412
1413 Upstream-ID: 8b46bc94cf1ca7c8c1a75b1c958b2bb38d7579c8
1414
1415commit 8b29008bbe97f33381d9b4b93fcfa304168d0286
1416Author: jmc@openbsd.org <jmc@openbsd.org>
1417Date: Thu Nov 5 09:48:05 2015 +0000
1418
1419 upstream commit
1420
1421 "commandline" -> "command line", since there are so few
1422 examples of the former in the pages, so many of the latter, and in some of
1423 these pages we had multiple spellings;
1424
1425 prompted by tj
1426
1427 Upstream-ID: 78459d59bff74223f8139d9001ccd56fc4310659
1428
1429commit 996b24cebf20077fbe5db07b3a2c20c2d9db736e
1430Author: Darren Tucker <dtucker@zip.com.au>
1431Date: Thu Oct 29 20:57:34 2015 +1100
1432
1433 (re)wrap SYS_sendsyslog in ifdef.
1434
1435 Replace ifdef that went missing in commit
1436 c61b42f2678f21f05653ac2d3d241b48ab5d59ac. Fixes build on older
1437 OpenBSDs.
1438
1439commit b67e2e76fcf1ae7c802eb27ca927e16c91a513ff
1440Author: djm@openbsd.org <djm@openbsd.org>
1441Date: Thu Oct 29 08:05:17 2015 +0000
1442
1443 upstream commit
1444
1445 regress test for "PubkeyAcceptedKeyTypes +..." inside a
1446 Match block
1447
1448 Upstream-Regress-ID: 246c37ed64a2e5704d4c158ccdca1ff700e10647
1449
1450commit abd9dbc3c0d8c8c7561347cfa22166156e78c077
1451Author: dtucker@openbsd.org <dtucker@openbsd.org>
1452Date: Mon Oct 26 02:50:58 2015 +0000
1453
1454 upstream commit
1455
1456 Fix typo certopt->certopts in shell variable. This would
1457 cause the test to hang at a host key prompt if you have an A or CNAME for
1458 "proxy" in your local domain.
1459
1460 Upstream-Regress-ID: 6ea03bcd39443a83c89e2c5606392ceb9585836a
1461
1462commit ed08510d38aef930a061ae30d10f2a9cf233bafa
1463Author: djm@openbsd.org <djm@openbsd.org>
1464Date: Thu Oct 29 08:05:01 2015 +0000
1465
1466 upstream commit
1467
1468 Fix "PubkeyAcceptedKeyTypes +..." inside a Match block;
1469 ok dtucker@
1470
1471 Upstream-ID: 853662c4036730b966aab77684390c47b9738c69
1472
1473commit a4aef3ed29071719b2af82fdf1ac3c2514f82bc5
1474Author: djm@openbsd.org <djm@openbsd.org>
1475Date: Tue Oct 27 08:54:52 2015 +0000
1476
1477 upstream commit
1478
1479 fix execv arguments in a way less likely to cause grief
1480 for -portable; ok dtucker@
1481
1482 Upstream-ID: 5902bf0ea0371f39f1300698dc3b8e4105fc0fc5
1483
1484commit 63d188175accea83305e89fafa011136ff3d96ad
1485Author: djm@openbsd.org <djm@openbsd.org>
1486Date: Tue Oct 27 01:44:45 2015 +0000
1487
1488 upstream commit
1489
1490 log certificate serial in verbose() messages to match the
1491 main auth success/fail message; ok dtucker@
1492
1493 Upstream-ID: dfc48b417c320b97c36ff351d303c142f2186288
1494
1495commit 2aaba0cfd560ecfe92aa50c00750e6143842cf1f
1496Author: djm@openbsd.org <djm@openbsd.org>
1497Date: Tue Oct 27 00:49:53 2015 +0000
1498
1499 upstream commit
1500
1501 avoid de-const warning & shrink; ok dtucker@
1502
1503 Upstream-ID: 69a85ef94832378952a22c172009cbf52aaa11db
1504
1505commit 03239c18312b9bab7d1c3b03062c61e8bbc1ca6e
1506Author: dtucker@openbsd.org <dtucker@openbsd.org>
1507Date: Sun Oct 25 23:42:00 2015 +0000
1508
1509 upstream commit
1510
1511 Expand tildes in filenames passed to -i before checking
1512 whether or not the identity file exists. This means that if the shell
1513 doesn't do the expansion (eg because the option and filename were given as a
1514 single argument) then we'll still add the key. bz#2481, ok markus@
1515
1516 Upstream-ID: db1757178a14ac519e9a3e1a2dbd21113cb3bfc6
1517
1518commit 97e184e508dd33c37860c732c0eca3fc57698b40
1519Author: dtucker@openbsd.org <dtucker@openbsd.org>
1520Date: Sun Oct 25 23:14:03 2015 +0000
1521
1522 upstream commit
1523
1524 Do not prepend "exec" to the shell command run by "Match
1525 exec" in a config file. It's an unnecessary optimization from repurposed
1526 ProxyCommand code and prevents some things working with some shells.
1527 bz#2471, pointed out by res at qoxp.net. ok markus@
1528
1529 Upstream-ID: a1ead25ae336bfa15fb58d8c6b5589f85b4c33a3
1530
1531commit 8db134e7f457bcb069ec72bc4ee722e2af557c69
1532Author: Darren Tucker <dtucker@zip.com.au>
1533Date: Thu Oct 29 10:48:23 2015 +1100
1534
1535 Prevent name collisions with system glob (bz#2463)
1536
1537 Move glob.h from includes.h to the only caller (sftp) and override the
1538 names for the symbols. This prevents name collisions with the system glob
1539 in the case where something other than ssh uses it (eg kerberos). With
1540 jjelen at redhat.com, ok djm@
1541
1542commit 86c10dbbef6a5800d2431a66cf7f41a954bb62b5
1543Author: dtucker@openbsd.org <dtucker@openbsd.org>
1544Date: Fri Oct 23 02:22:01 2015 +0000
1545
1546 upstream commit
1547
1548 Update expected group sizes to match recent code changes.
1549
1550 Upstream-Regress-ID: 0004f0ea93428969fe75bcfff0d521c553977794
1551
1552commit 9ada37d36003a77902e90a3214981e417457cf13
1553Author: djm@openbsd.org <djm@openbsd.org>
1554Date: Sat Oct 24 22:56:19 2015 +0000
1555
1556 upstream commit
1557
1558 fix keyscan output for multiple hosts/addrs on one line
1559 when host hashing or a non standard port is in use; bz#2479 ok dtucker@
1560
1561 Upstream-ID: 5321dabfaeceba343da3c8a8b5754c6f4a0a307b
1562
1563commit 44fc7cd7dcef6c52c6b7e9ff830dfa32879bd319
1564Author: djm@openbsd.org <djm@openbsd.org>
1565Date: Sat Oct 24 22:52:22 2015 +0000
1566
1567 upstream commit
1568
1569 skip "Could not chdir to home directory" message when
1570 chrooted
1571
1572 patch from Christian Hesse in bz#2485 ok dtucker@
1573
1574 Upstream-ID: 86783c1953da426dff5b03b03ce46e699d9e5431
1575
1576commit a820a8618ec44735dabc688fab96fba38ad66bb2
1577Author: sthen@openbsd.org <sthen@openbsd.org>
1578Date: Sat Oct 24 08:34:09 2015 +0000
1579
1580 upstream commit
1581
1582 Handle the split of tun(4) "link0" into tap(4) in ssh
1583 tun-forwarding. Adapted from portable (using separate devices for this is the
1584 normal case in most OS). ok djm@
1585
1586 Upstream-ID: 90facf4c59ce73d6741db1bc926e578ef465cd39
1587
1588commit 66d2e229baa9fe57b868c373b05f7ff3bb20055b
1589Author: gsoares@openbsd.org <gsoares@openbsd.org>
1590Date: Wed Oct 21 11:33:03 2015 +0000
1591
1592 upstream commit
1593
1594 fix memory leak in error path ok djm@
1595
1596 Upstream-ID: dd2f402b0a0029b755df029fc7f0679e1365ce35
1597
1598commit 7d6c0362039ceacdc1366b5df29ad5d2693c13e5
1599Author: mmcc@openbsd.org <mmcc@openbsd.org>
1600Date: Tue Oct 20 23:24:25 2015 +0000
1601
1602 upstream commit
1603
1604 Compare pointers to NULL rather than 0.
1605
1606 ok djm@
1607
1608 Upstream-ID: 21616cfea27eda65a06e772cc887530b9a1a27f8
1609
1610commit f98a09cacff7baad8748c9aa217afd155a4d493f
1611Author: mmcc@openbsd.org <mmcc@openbsd.org>
1612Date: Tue Oct 20 03:36:35 2015 +0000
1613
1614 upstream commit
1615
1616 Replace a function-local allocation with stack memory.
1617
1618 ok djm@
1619
1620 Upstream-ID: c09fbbab637053a2ab9f33ca142b4e20a4c5a17e
1621
1622commit ac908c1eeacccfa85659594d92428659320fd57e
1623Author: Damien Miller <djm@mindrot.org>
1624Date: Thu Oct 22 09:35:24 2015 +1100
1625
1626 turn off PrintLastLog when --disable-lastlog
1627
1628 bz#2278 from Brent Paulson
1629
1630commit b56deb847f4a0115a8bf488bf6ee8524658162fd
1631Author: djm@openbsd.org <djm@openbsd.org>
1632Date: Fri Oct 16 22:32:22 2015 +0000
1633
1634 upstream commit
1635
1636 increase the minimum modulus that we will send or accept in
1637 diffie-hellman-group-exchange to 2048 bits; ok markus@
1638
1639 Upstream-ID: 06dce7a24c17b999a0f5fadfe95de1ed6a1a9b6a
1640
1641commit 5ee0063f024bf5b3f3ffb275b8cd20055d62b4b9
1642Author: djm@openbsd.org <djm@openbsd.org>
1643Date: Fri Oct 16 18:40:49 2015 +0000
1644
1645 upstream commit
1646
1647 better handle anchored FQDNs (e.g. 'cvs.openbsd.org.') in
1648 hostname canonicalisation - treat them as already canonical and remove the
1649 trailing '.' before matching ssh_config; ok markus@
1650
1651 Upstream-ID: f7619652e074ac3febe8363f19622aa4853b679a
1652
1653commit e92c499a75477ecfe94dd7b4aed89f20b1fac5a7
1654Author: mmcc@openbsd.org <mmcc@openbsd.org>
1655Date: Fri Oct 16 17:07:24 2015 +0000
1656
1657 upstream commit
1658
1659 0 -> NULL when comparing with a char*.
1660
1661 ok dtucker@, djm@.
1662
1663 Upstream-ID: a928e9c21c0a9020727d99738ff64027c1272300
1664
1665commit b1d38a3cc6fe349feb8d16a5f520ef12d1de7cb2
1666Author: djm@openbsd.org <djm@openbsd.org>
1667Date: Thu Oct 15 23:51:40 2015 +0000
1668
1669 upstream commit
1670
1671 fix some signed/unsigned integer type mismatches in
1672 format strings; reported by Nicholas Lemonias
1673
1674 Upstream-ID: 78cd55420a0eef68c4095bdfddd1af84afe5f95c
1675
1676commit 1a2663a15d356bb188196b6414b4c50dc12fd42b
1677Author: djm@openbsd.org <djm@openbsd.org>
1678Date: Thu Oct 15 23:08:23 2015 +0000
1679
1680 upstream commit
1681
1682 argument to sshkey_from_private() and sshkey_demote()
1683 can't be NULL
1684
1685 Upstream-ID: 0111245b1641d387977a9b38da15916820a5fd1f
1686
1687commit 0f754e29dd3760fc0b172c1220f18b753fb0957e
1688Author: Damien Miller <djm@mindrot.org>
1689Date: Fri Oct 16 10:53:14 2015 +1100
1690
1691 need va_copy before va_start
1692
1693 reported by Nicholas Lemonias
1694
1695commit eb6c50d82aa1f0d3fc95f5630ea69761e918bfcd
1696Author: Damien Miller <djm@mindrot.org>
1697Date: Thu Oct 15 15:48:28 2015 -0700
1698
1699 fix compilation on systems without SYMLOOP_MAX
1700
1701commit fafe1d84a210fb3dae7744f268059cc583db8c12
1702Author: Damien Miller <djm@mindrot.org>
1703Date: Wed Oct 14 09:22:15 2015 -0700
1704
1705 s/SANDBOX_TAME/SANDBOX_PLEDGE/g
1706
1707commit 8f22911027ff6c17d7226d232ccd20727f389310
1708Author: Damien Miller <djm@mindrot.org>
1709Date: Wed Oct 14 08:28:19 2015 +1100
1710
1711 upstream commit
1712
1713 revision 1.20
1714 date: 2015/10/13 20:55:37; author: millert; state: Exp; lines: +2 -2; commitid: X39sl5ay1czgFIgp;
1715 In rev 1.15 the sizeof argument was fixed in a strlcat() call but
1716 the truncation check immediately following it was not updated to
1717 match. Not an issue in practice since the buffers are the same
1718 size. OK deraadt@
1719
1720commit 23fa695bb735f54f04d46123662609edb6c76767
1721Author: Damien Miller <djm@mindrot.org>
1722Date: Wed Oct 14 08:27:51 2015 +1100
1723
1724 upstream commit
1725
1726 revision 1.19
1727 date: 2015/01/16 16:48:51; author: deraadt; state: Exp; lines: +3 -3; commitid: 0DYulI8hhujBHMcR;
1728 Move to the <limits.h> universe.
1729 review by millert, binary checking process with doug, concept with guenther
1730
1731commit c71be375a69af00c2d0a0c24d8752bec12d8fd1b
1732Author: Damien Miller <djm@mindrot.org>
1733Date: Wed Oct 14 08:27:08 2015 +1100
1734
1735 upstream commit
1736
1737 revision 1.18
1738 date: 2014/10/19 03:56:28; author: doug; state: Exp; lines: +9 -9; commitid: U6QxmtbXrGoc02S5;
1739 Revert last commit due to changed semantics found by make release.
1740
1741commit c39ad23b06e9aecc3ff788e92f787a08472905b1
1742Author: Damien Miller <djm@mindrot.org>
1743Date: Wed Oct 14 08:26:24 2015 +1100
1744
1745 upstream commit
1746
1747 revision 1.17
1748 date: 2014/10/18 20:43:52; author: doug; state: Exp; lines: +10 -10; commitid: I74hI1tVZtsspKEt;
1749 Better POSIX compliance in realpath(3).
1750
1751 millert@ made changes to realpath.c based on FreeBSD's version. I merged
1752 Todd's changes into dl_realpath.c.
1753
1754 ok millert@, guenther@
1755
1756commit e929a43f957dbd1254aca2aaf85c8c00cbfc25f4
1757Author: Damien Miller <djm@mindrot.org>
1758Date: Wed Oct 14 08:25:55 2015 +1100
1759
1760 upstream commit
1761
1762 revision 1.16
1763 date: 2013/04/05 12:59:54; author: kurt; state: Exp; lines: +3 -1;
1764 - Add comments regarding copies of these files also in libexec/ld.so
1765 okay guenther@
1766
1767commit 5225db68e58a1048cb17f0e36e0d33bc4a8fc410
1768Author: Damien Miller <djm@mindrot.org>
1769Date: Wed Oct 14 08:25:32 2015 +1100
1770
1771 upstream commit
1772
1773 revision 1.15
1774 date: 2012/09/13 15:39:05; author: deraadt; state: Exp; lines: +2 -2;
1775 specify the bounds of the dst to strlcat (both values were static and
1776 equal, but it is more correct)
1777 from Michal Mazurek
1778
1779commit 7365fe5b4859de2305e40ea132da3823830fa710
1780Author: Damien Miller <djm@mindrot.org>
1781Date: Wed Oct 14 08:25:09 2015 +1100
1782
1783 upstream commit
1784
1785 revision 1.14
1786 date: 2011/07/24 21:03:00; author: miod; state: Exp; lines: +35 -13;
1787 Recent Single Unix will malloc memory if the second argument of realpath()
1788 is NULL, and third-party software is starting to rely upon this.
1789 Adapted from FreeBSD via Jona Joachim (jaj ; hcl-club , .lu), with minor
1790 tweaks from nicm@ and yours truly.
1791
1792commit e679c09cd1951f963793aa3d9748d1c3fdcf808f
1793Author: djm@openbsd.org <djm@openbsd.org>
1794Date: Tue Oct 13 16:15:21 2015 +0000
1795
1796 upstream commit
1797
1798 apply PubkeyAcceptedKeyTypes filtering earlier, so all
1799 skipped keys are noted before pubkey authentication starts. ok dtucker@
1800
1801 Upstream-ID: ba4f52f54268a421a2a5f98bb375403f4cb044b8
1802
1803commit 179c353f564ec7ada64b87730b25fb41107babd7
1804Author: djm@openbsd.org <djm@openbsd.org>
1805Date: Tue Oct 13 00:21:27 2015 +0000
1806
1807 upstream commit
1808
1809 free the correct IV length, don't assume it's always the
1810 cipher blocksize; ok dtucker@
1811
1812 Upstream-ID: c260d9e5ec73628d9ff4b067fbb060eff5a7d298
1813
1814commit 2539dce2a049a8f6bb0d44cac51f07ad48e691d3
1815Author: deraadt@openbsd.org <deraadt@openbsd.org>
1816Date: Fri Oct 9 01:37:08 2015 +0000
1817
1818 upstream commit
1819
1820 Change all tame callers to namechange to pledge(2).
1821
1822 Upstream-ID: 17e654fc27ceaf523c60f4ffd9ec7ae4e7efc7f2
1823
1824commit 9846a2f4067383bb76b4e31a9d2303e0a9c13a73
1825Author: Damien Miller <djm@mindrot.org>
1826Date: Thu Oct 8 04:30:48 2015 +1100
1827
1828 hook tame(2) sandbox up to build
1829
1830 OpenBSD only for now
1831
1832commit 0c46bbe68b70bdf0d6d20588e5847e71f3739fe6
1833Author: djm@openbsd.org <djm@openbsd.org>
1834Date: Wed Oct 7 15:59:12 2015 +0000
1835
1836 upstream commit
1837
1838 include PubkeyAcceptedKeyTypes in ssh -G config dump
1839
1840 Upstream-ID: 6c097ce6ffebf6fe393fb7988b5d152a5d6b36bb
1841
1842commit bdcb73fb7641b1cf73c0065d1a0dd57b1e8b778e
1843Author: sobrado@openbsd.org <sobrado@openbsd.org>
1844Date: Wed Oct 7 14:45:30 2015 +0000
1845
1846 upstream commit
1847
1848 UsePrivilegeSeparation defaults to sandbox now.
1849
1850 ok djm@
1851
1852 Upstream-ID: bff136c38bcae89df82e044d2f42de21e1ad914f
1853
1854commit 2905d6f99c837bb699b6ebc61711b19acd030709
1855Author: djm@openbsd.org <djm@openbsd.org>
1856Date: Wed Oct 7 00:54:06 2015 +0000
1857
1858 upstream commit
1859
1860 don't try to change tun device flags if they are already
1861 what we need; makes it possible to use tun/tap networking as non- root user
1862 if device permissions and interface flags are pre-established; based on patch
1863 by Ossi Herrala
1864
1865 Upstream-ID: 89099ac4634cd477b066865acf54cb230780fd21
1866
1867commit 0dc74512bdb105b048883f07de538b37e5e024d4
1868Author: Damien Miller <djm@mindrot.org>
1869Date: Mon Oct 5 18:33:05 2015 -0700
1870
1871 unbreak merge botch
1872
1873commit fdd020e86439afa7f537e2429d29d4b744c94331
1874Author: djm@openbsd.org <djm@openbsd.org>
1875Date: Tue Oct 6 01:20:59 2015 +0000
1876
1877 upstream commit
1878
1879 adapt to recent sshkey_parse_private_fileblob() API
1880 change
1881
1882 Upstream-Regress-ID: 5c0d818da511e33e0abf6a92a31bd7163b7ad988
1883
1884commit 21ae8ee3b630b0925f973db647a1b9aa5fcdd4c5
1885Author: djm@openbsd.org <djm@openbsd.org>
1886Date: Thu Sep 24 07:15:39 2015 +0000
1887
1888 upstream commit
1889
1890 fix command-line option to match what was actually
1891 committed
1892
1893 Upstream-Regress-ID: 3e8c24a2044e8afd37e7ce17b69002ca817ac699
1894
1895commit e14ac43b75e68f1ffbd3e1a5e44143c8ae578dcd
1896Author: djm@openbsd.org <djm@openbsd.org>
1897Date: Thu Sep 24 06:16:53 2015 +0000
1898
1899 upstream commit
1900
1901 regress test for CertificateFile; patch from Meghana Bhat
1902 via bz#2436
1903
1904 Upstream-Regress-ID: e7a6e980cbe0f8081ba2e83de40d06c17be8bd25
1905
1906commit 905b054ed24e0d5b4ef226ebf2c8bfc02ae6d4ad
1907Author: djm@openbsd.org <djm@openbsd.org>
1908Date: Mon Oct 5 17:11:21 2015 +0000
1909
1910 upstream commit
1911
1912 some more bzero->explicit_bzero, from Michael McConville
1913
1914 Upstream-ID: 17f19545685c33327db2efdc357c1c9225ff00d0
1915
1916commit b007159a0acdbcf65814b3ee05dbe2cf4ea46011
1917Author: deraadt@openbsd.org <deraadt@openbsd.org>
1918Date: Fri Oct 2 15:52:55 2015 +0000
1919
1920 upstream commit
1921
1922 fix email
1923
1924 Upstream-ID: 72150f2d54b94de14ebef1ea054ef974281bf834
1925
1926commit b19e1b4ab11884c4f62aee9f8ab53127a4732658
1927Author: deraadt@openbsd.org <deraadt@openbsd.org>
1928Date: Fri Oct 2 01:39:52 2015 +0000
1929
1930 upstream commit
1931
1932 a sandbox using tame ok djm
1933
1934 Upstream-ID: 4ca24e47895e72f5daaa02f3e3d3e5ca2d820fa3
1935
1936commit c61b42f2678f21f05653ac2d3d241b48ab5d59ac
1937Author: deraadt@openbsd.org <deraadt@openbsd.org>
1938Date: Fri Oct 2 01:39:26 2015 +0000
1939
1940 upstream commit
1941
1942 re-order system calls in order of risk, ok i'll be
1943 honest, ordered this way they look like tame... ok djm
1944
1945 Upstream-ID: 42a1e6d251fd8be13c8262bee026059ae6328813
1946
1947commit c5f7c0843cb6e6074a93c8ac34e49ce33a6f5546
1948Author: jmc@openbsd.org <jmc@openbsd.org>
1949Date: Fri Sep 25 18:19:54 2015 +0000
1950
1951 upstream commit
1952
1953 some certificatefile tweaks; ok djm
1954
1955 Upstream-ID: 0e5a7852c28c05fc193419cc7e50e64c1c535af0
1956
1957commit 4e44a79a07d4b88b6a4e5e8c1bed5f58c841b1b8
1958Author: djm@openbsd.org <djm@openbsd.org>
1959Date: Thu Sep 24 06:15:11 2015 +0000
1960
1961 upstream commit
1962
1963 add ssh_config CertificateFile option to explicitly list
1964 a certificate; patch from Meghana Bhat on bz#2436; ok markus@
1965
1966 Upstream-ID: 58648ec53c510b41c1f46d8fe293aadc87229ab8
1967
1968commit e3cbb06ade83c72b640a53728d362bbefa0008e2
1969Author: sobrado@openbsd.org <sobrado@openbsd.org>
1970Date: Tue Sep 22 08:33:23 2015 +0000
1971
1972 upstream commit
1973
1974 fix two typos.
1975
1976 Upstream-ID: 424402c0d8863a11b51749bacd7f8d932083b709
1977
1978commit 8408218c1ca88cb17d15278174a24a94a6f65fe1
1979Author: djm@openbsd.org <djm@openbsd.org>
1980Date: Mon Sep 21 04:31:00 2015 +0000
1981
1982 upstream commit
1983
1984 fix possible hang on closed output; bz#2469 reported by Tomas
1985 Kuthan ok markus@
1986
1987 Upstream-ID: f7afd41810f8540f524284f1be6b970859f94fe3
1988
1989commit 0097248f90a00865082e8c146b905a6555cc146f
1990Author: djm@openbsd.org <djm@openbsd.org>
1991Date: Fri Sep 11 04:55:01 2015 +0000
1992
1993 upstream commit
1994
1995 skip if running as root; many systems (inc OpenBSD) allow
1996 root to ptrace arbitrary processes
1997
1998 Upstream-Regress-ID: be2b925df89360dff36f972951fa0fa793769038
1999
2000commit 9c06c814aff925e11a5cc592c06929c258a014f6
2001Author: djm@openbsd.org <djm@openbsd.org>
2002Date: Fri Sep 11 03:44:21 2015 +0000
2003
2004 upstream commit
2005
2006 try all supported key types here; bz#2455 reported by
2007 Jakub Jelen
2008
2009 Upstream-Regress-ID: 188cb7d9031cdbac3a0fa58b428b8fa2b2482bba
2010
2011commit 3c019a936b43f3e2773f3edbde7c114d73caaa4c
2012Author: tim@openbsd.org <tim@openbsd.org>
2013Date: Sun Sep 13 14:39:16 2015 +0000
2014
2015 upstream commit
2016
2017 - Fix error message: passphrase needs to be at least 5
2018 characters, not 4. - Remove unused function argument. - Remove two
2019 unnecessary variables.
2020
2021 OK djm@
2022
2023 Upstream-ID: 13010c05bfa8b523da1c0dc19e81dd180662bc30
2024
2025commit 2681cdb6e0de7c1af549dac37a9531af202b4434
2026Author: tim@openbsd.org <tim@openbsd.org>
2027Date: Sun Sep 13 13:48:19 2015 +0000
2028
2029 upstream commit
2030
2031 When adding keys to the agent, don't ignore the comment
2032 of keys for which the user is prompted for a passphrase.
2033
2034 Tweak and OK djm@
2035
2036 Upstream-ID: dc737c620a5a8d282cc4f66e3b9b624e9abefbec
2037
2038commit 14692f7b8251cdda847e648a82735eef8a4d2a33
2039Author: guenther@openbsd.org <guenther@openbsd.org>
2040Date: Fri Sep 11 08:50:04 2015 +0000
2041
2042 upstream commit
2043
2044 Use explicit_bzero() when zeroing before free()
2045
2046 from Michael McConville (mmcconv1 (at) sccs.swarthmore.edu)
2047 ok millert@ djm@
2048
2049 Upstream-ID: 2e3337db046c3fe70c7369ee31515ac73ec00f50
2050
2051commit 846f6fa4cfa8483a9195971dbdd162220f199d85
2052Author: jmc@openbsd.org <jmc@openbsd.org>
2053Date: Fri Sep 11 06:55:46 2015 +0000
2054
2055 upstream commit
2056
2057 sync -Q in usage() to SYNOPSIS; since it's drastically
2058 shorter, i've reformatted the block to sync with the man (80 cols) and saved
2059 a line;
2060
2061 Upstream-ID: 86e2c65c3989a0777a6258a77e589b9f6f354abd
2062
2063commit 95923e0520a8647417ee6dcdff44694703dfeef0
2064Author: jmc@openbsd.org <jmc@openbsd.org>
2065Date: Fri Sep 11 06:51:39 2015 +0000
2066
2067 upstream commit
2068
2069 tweak previous;
2070
2071 Upstream-ID: f29b3cfcfd9aa31fa140c393e7bd48c1c74139d6
2072
2073commit 86ac462f833b05d8ed9de9c50ccb295d7faa79ff
2074Author: dtucker@openbsd.org <dtucker@openbsd.org>
2075Date: Fri Sep 11 05:27:02 2015 +0000
2076
2077 upstream commit
2078
2079 Update usage to match man page.
2080
2081 Upstream-ID: 9e85aefaecfb6aaf34c7cfd0700cd21783a35675
2082
2083commit 674b3b68c1d36b2562324927cd03857b565e05e8
2084Author: djm@openbsd.org <djm@openbsd.org>
2085Date: Fri Sep 11 03:47:28 2015 +0000
2086
2087 upstream commit
2088
2089 expand %i in ControlPath to UID; bz#2449
2090
2091 patch from Christian Hesse w/ feedback from dtucker@
2092
2093 Upstream-ID: 2ba8d303e555a84e2f2165ab4b324b41e80ab925
2094
2095commit c0f55db7ee00c8202b05cb4b9ad4ce72cc45df41
2096Author: djm@openbsd.org <djm@openbsd.org>
2097Date: Fri Sep 11 03:42:32 2015 +0000
2098
2099 upstream commit
2100
2101 mention -Q key-plain and -Q key-cert; bz#2455 pointed out
2102 by Jakub Jelen
2103
2104 Upstream-ID: c8f1f8169332e4fa73ac96b0043e3b84e01d4896
2105
2106commit cfffbdb10fdf0f02d3f4232232eef7ec3876c383
2107Author: Darren Tucker <dtucker@zip.com.au>
2108Date: Mon Sep 14 16:24:21 2015 +1000
2109
2110 Use ssh-keygen -A when generating host keys.
2111
2112 Use ssh-keygen -A instead of per-keytype invocations when generating host
2113 keys. Add tests when doing host-key-force since we can't use ssh-keygen -A
2114 since it can't specify alternate locations. bz#2459, ok djm@
2115
2116commit 366bada1e9e124654aac55b72b6ccf878755b0dc
2117Author: Darren Tucker <dtucker@zip.com.au>
2118Date: Fri Sep 11 13:29:22 2015 +1000
2119
2120 Correct default value for --with-ssh1.
2121
2122 bz#2457, from konto-mindrot.org at walimnieto.com.
2123
2124commit 2bca8a43e7dd9b04d7070824ffebb823c72587b2
2125Author: djm@openbsd.org <djm@openbsd.org>
2126Date: Fri Sep 11 03:13:36 2015 +0000
2127
2128 upstream commit
2129
2130 more clarity on what AuthorizedKeysFile=none does; based
2131 on diff by Thiebaud Weksteen
2132
2133 Upstream-ID: 78ab87f069080f0cc3bc353bb04eddd9e8ad3704
2134
2135commit 61942ea4a01e6db4fdf37ad61de81312ffe310e9
2136Author: djm@openbsd.org <djm@openbsd.org>
2137Date: Wed Sep 9 00:52:44 2015 +0000
2138
2139 upstream commit
2140
2141 openssh_RSA_verify return type is int, so don't make it
2142 size_t within the function itself with only negative numbers or zero assigned
2143 to it. bz#2460
2144
2145 Upstream-ID: b6e794b0c7fc4f9f329509263c8668d35f83ea55
2146
2147commit 4f7cc2f8cc861a21e6dbd7f6c25652afb38b9b96
2148Author: dtucker@openbsd.org <dtucker@openbsd.org>
2149Date: Fri Sep 4 08:21:47 2015 +0000
2150
2151 upstream commit
2152
2153 Plug minor memory leaks when options are used more than
2154 once. bz#2182, patch from Tiago Cunha, ok deraadt djm
2155
2156 Upstream-ID: 5b84d0401e27fe1614c10997010cc55933adb48e
2157
2158commit 7ad8b287c8453a3e61dbc0d34d467632b8b06fc8
2159Author: Darren Tucker <dtucker@zip.com.au>
2160Date: Fri Sep 11 13:11:02 2015 +1000
2161
2162 Force resolution of _res for correct detection.
2163
2164 bz#2259, from sconeu at yahoo.com.
2165
2166commit 26ad18247213ff72b4438abe7fc660c958810fa2
2167Author: Damien Miller <djm@mindrot.org>
2168Date: Thu Sep 10 10:57:41 2015 +1000
2169
2170 allow getrandom syscall; from Felix von Leitner
2171
2172commit 5245bc1e6b129a10a928f73f11c3aa32656c44b4
2173Author: jmc@openbsd.org <jmc@openbsd.org>
2174Date: Fri Sep 4 06:40:45 2015 +0000
2175
2176 upstream commit
2177
2178 full stop belongs outside the brackets, not inside;
2179
2180 Upstream-ID: 99d098287767799ac33d2442a05b5053fa5a551a
2181
2182commit a85768a9321d74b41219eeb3c9be9f1702cbf6a5
2183Author: djm@openbsd.org <djm@openbsd.org>
2184Date: Fri Sep 4 04:56:09 2015 +0000
2185
2186 upstream commit
2187
2188 add a debug2() right before DNS resolution; it's a place
2189 where ssh could previously silently hang for a while. bz#2433
2190
2191 Upstream-ID: 52a1a3e0748db66518e7598352c427145692a6a0
2192
2193commit 46152af8d27aa34d5d26ed1c371dc8aa142d4730
2194Author: djm@openbsd.org <djm@openbsd.org>
2195Date: Fri Sep 4 04:55:24 2015 +0000
2196
2197 upstream commit
2198
2199 correct function name in error messages
2200
2201 Upstream-ID: 92fb2798617ad9561370897f4ab60adef2ff4c0e
2202
2203commit a954cdb799a4d83c2d40fbf3e7b9f187fbfd72fc
2204Author: djm@openbsd.org <djm@openbsd.org>
2205Date: Fri Sep 4 04:47:50 2015 +0000
2206
2207 upstream commit
2208
2209 better document ExitOnForwardFailure; bz#2444, ok
2210 dtucker@
2211
2212 Upstream-ID: a126209b5a6d9cb3117ac7ab5bc63d284538bfc2
2213
2214commit f54d8ac2474b6fc3afa081cf759b48a6c89d3319
2215Author: djm@openbsd.org <djm@openbsd.org>
2216Date: Fri Sep 4 04:44:08 2015 +0000
2217
2218 upstream commit
2219
2220 don't record hostbased authentication hostkeys as user
2221 keys in test for multiple authentication with the same key
2222
2223 Upstream-ID: 26b368fa2cff481f47f37e01b8da1ae5b57b1adc
2224
2225commit ac3451dd65f27ecf85dc045c46d49e2bbcb8dddd
2226Author: djm@openbsd.org <djm@openbsd.org>
2227Date: Fri Sep 4 03:57:38 2015 +0000
2228
2229 upstream commit
2230
2231 remove extra newline in nethack-mode hostkey; from
2232 Christian Hesse bz#2686
2233
2234 Upstream-ID: 4f56368b1cc47baeea0531912186f66007fd5b92
2235
2236commit 9e3ed9ebb1a7e47c155c28399ddf09b306ea05df
2237Author: djm@openbsd.org <djm@openbsd.org>
2238Date: Fri Sep 4 04:23:10 2015 +0000
2239
2240 upstream commit
2241
2242 trim junk from end of file; bz#2455 from Jakub Jelen
2243
2244 Upstream-Regress-ID: a4e64e8931e40d23874b047074444eff919cdfe6
2245
2246commit f3a3ea180afff080bab82087ee0b60db9fd84f6c
2247Author: jsg@openbsd.org <jsg@openbsd.org>
2248Date: Wed Sep 2 07:51:12 2015 +0000
2249
2250 upstream commit
2251
2252 Fix occurrences of "r = func() != 0" which result in the
2253 wrong error codes being returned due to != having higher precedence than =.
2254
2255 ok deraadt@ markus@
2256
2257 Upstream-ID: 5fc35c9fc0319cc6fca243632662d2f06b5fd840
2258
2259commit f498a98cf83feeb7ea01c15cd1c98b3111361f3a
2260Author: Damien Miller <djm@mindrot.org>
2261Date: Thu Sep 3 09:11:22 2015 +1000
2262
2263 don't check for yp_match; ok tim@
2264
2265commit 9690b78b7848b0b376980a61d51b1613e187ddb5
2266Author: djm@openbsd.org <djm@openbsd.org>
2267Date: Fri Aug 21 23:57:48 2015 +0000
2268
2269 upstream commit
2270
2271 Improve printing of KEX offers and decisions
2272
2273 The debug output now labels the client and server offers and the
2274 negotiated options. ok markus@
2275
2276 Upstream-ID: 8db921b3f92a4565271b1c1fbce6e7f508e1a2cb
2277
2278commit 60a92470e21340e1a3fc10f9c7140d8e1519dc55
2279Author: djm@openbsd.org <djm@openbsd.org>
2280Date: Fri Aug 21 23:53:08 2015 +0000
2281
2282 upstream commit
2283
2284 Fix printing (ssh -G ...) of HostKeyAlgorithms=+...
2285 Reported by Bryan Drewery
2286
2287 Upstream-ID: 19ad20c41bd5971e006289b6f9af829dd46c1293
2288
2289commit 6310f60fffca2d1e464168e7d1f7e3b6b0268897
2290Author: djm@openbsd.org <djm@openbsd.org>
2291Date: Fri Aug 21 23:52:30 2015 +0000
2292
2293 upstream commit
2294
2295 Fix expansion of HostkeyAlgorithms=+...
2296
2297 Reported by Bryan Drewery
2298
2299 Upstream-ID: 70ca1deea39d758ba36d36428ae832e28566f78d
2300
2301commit e774e5ea56237fd626a8161f9005023dff3e76c9
2302Author: deraadt@openbsd.org <deraadt@openbsd.org>
2303Date: Fri Aug 21 23:29:31 2015 +0000
2304
2305 upstream commit
2306
2307 Improve size == 0, count == 0 checking in mm_zalloc,
2308 which is "array" like. Discussed with tedu, millert, otto.... and ok djm
2309
2310 Upstream-ID: 899b021be43b913fad3eca1aef44efe710c53e29
2311
2312commit 189de02d9ad6f3645417c0ddf359b923aae5f926
2313Author: Damien Miller <djm@mindrot.org>
2314Date: Fri Aug 21 15:45:02 2015 +1000
2315
2316 expose POLLHUP and POLLNVAL for netcat.c
2317
2318commit e91346dc2bbf460246df2ab591b7613908c1b0ad
2319Author: Damien Miller <djm@mindrot.org>
2320Date: Fri Aug 21 14:49:03 2015 +1000
2321
2322 we don't use Github for issues/pull-requests
2323
2324commit a4f5b507c708cc3dc2c8dd2d02e4416d7514dc23
2325Author: Damien Miller <djm@mindrot.org>
2326Date: Fri Aug 21 14:43:55 2015 +1000
2327
2328 fix URL for connect.c
2329
2330commit d026a8d3da0f8186598442997c7d0a28e7275414
2331Author: Damien Miller <djm@mindrot.org>
2332Date: Fri Aug 21 13:47:10 2015 +1000
2333
2334 update version numbers for 7.1
2335
2336commit 78f8f589f0ca1c9f41e5a9bae3cda5ce8a6b42ed
2337Author: djm@openbsd.org <djm@openbsd.org>
2338Date: Fri Aug 21 03:45:26 2015 +0000
2339
2340 upstream commit
2341
2342 openssh-7.1
2343
2344 Upstream-ID: ff7b1ef4b06caddfb45e08ba998128c88be3d73f
2345
2346commit 32a181980c62fce94f7f9ffaf6a79d90f0c309cf
2347Author: djm@openbsd.org <djm@openbsd.org>
2348Date: Fri Aug 21 03:42:19 2015 +0000
2349
2350 upstream commit
2351
2352 fix inverted logic that broke PermitRootLogin; reported
2353 by Mantas Mikulenas; ok markus@
2354
2355 Upstream-ID: 260dd6a904c1bb7e43267e394b1c9cf70bdd5ea5
2356
2357commit ce445b0ed927e45bd5bdce8f836eb353998dd65c
2358Author: deraadt@openbsd.org <deraadt@openbsd.org>
2359Date: Thu Aug 20 22:32:42 2015 +0000
2360
2361 upstream commit
2362
2363 Do not cast result of malloc/calloc/realloc* if stdlib.h
2364 is in scope ok krw millert
2365
2366 Upstream-ID: 5e50ded78cadf3841556649a16cc4b1cb6c58667
2367
2368commit 05291e5288704d1a98bacda269eb5a0153599146
2369Author: naddy@openbsd.org <naddy@openbsd.org>
2370Date: Thu Aug 20 19:20:06 2015 +0000
2371
2372 upstream commit
2373
2374 In the certificates section, be consistent about using
2375 "host_key" and "user_key" for the respective key types. ok sthen@ deraadt@
2376
2377 Upstream-ID: 9e037ea3b15577b238604c5533e082a3947f13cb
2378
2379commit 8543d4ef6f2e9f98c3e6b77c894ceec30c5e4ae4
2380Author: djm@openbsd.org <djm@openbsd.org>
2381Date: Wed Aug 19 23:21:42 2015 +0000
2382
2383 upstream commit
2384
2385 Better compat matching for WinSCP, add compat matching
2386 for FuTTY (fork of PuTTY); ok markus@ deraadt@
2387
2388 Upstream-ID: 24001d1ac115fa3260fbdc329a4b9aeb283c5389
2389
2390commit ec6eda16ebab771aa3dfc90629b41953b999cb1e
2391Author: djm@openbsd.org <djm@openbsd.org>
2392Date: Wed Aug 19 23:19:01 2015 +0000
2393
2394 upstream commit
2395
2396 fix double-free() in error path of DSA key generation
2397 reported by Mateusz Kocielski; ok markus@
2398
2399 Upstream-ID: 4735d8f888b10599a935fa1b374787089116713c
2400
2401commit 45b0eb752c94954a6de046bfaaf129e518ad4b5b
2402Author: djm@openbsd.org <djm@openbsd.org>
2403Date: Wed Aug 19 23:18:26 2015 +0000
2404
2405 upstream commit
2406
2407 fix free() of uninitialised pointer reported by Mateusz
2408 Kocielski; ok markus@
2409
2410 Upstream-ID: 519552b050618501a06b7b023de5cb104e2c5663
2411
2412commit c837643b93509a3ef538cb6624b678c5fe32ff79
2413Author: djm@openbsd.org <djm@openbsd.org>
2414Date: Wed Aug 19 23:17:51 2015 +0000
2415
2416 upstream commit
2417
2418 fixed unlink([uninitialised memory]) reported by Mateusz
2419 Kocielski; ok markus@
2420
2421 Upstream-ID: 14a0c4e7d891f5a8dabc4b89d4f6b7c0d5a20109
2422
2423commit 1f8d3d629cd553031021068eb9c646a5f1e50994
2424Author: jmc@openbsd.org <jmc@openbsd.org>
2425Date: Fri Aug 14 15:32:41 2015 +0000
2426
2427 upstream commit
2428
2429 match myproposal.h order; from brian conway (i snuck in a
2430 tweak while here)
2431
2432 ok dtucker
2433
2434 Upstream-ID: 35174a19b5237ea36aa3798f042bf5933b772c67
2435
2436commit 1dc8d93ce69d6565747eb44446ed117187621b26
2437Author: deraadt@openbsd.org <deraadt@openbsd.org>
2438Date: Thu Aug 6 14:53:21 2015 +0000
2439
2440 upstream commit
2441
2442 add prohibit-password as a synonymn for without-password,
2443 since the without-password is causing too many questions. Harden it to ban
2444 all but pubkey, hostbased, and GSSAPI auth (when the latter is enabled) from
2445 djm, ok markus
2446
2447 Upstream-ID: d53317d7b28942153e6236d3fd6e12ceb482db7a
2448
2449commit 90a95a4745a531b62b81ce3b025e892bdc434de5
2450Author: Damien Miller <djm@mindrot.org>
2451Date: Tue Aug 11 13:53:41 2015 +1000
2452
2453 update version in README
2454
2455commit 318c37743534b58124f1bab37a8a0087a3a9bd2f
2456Author: Damien Miller <djm@mindrot.org>
2457Date: Tue Aug 11 13:53:09 2015 +1000
2458
2459 update versions in *.spec
2460
2461commit 5e75f5198769056089fb06c4d738ab0e5abc66f7
2462Author: Damien Miller <djm@mindrot.org>
2463Date: Tue Aug 11 13:34:12 2015 +1000
2464
2465 set sshpam_ctxt to NULL after free
2466
2467 Avoids use-after-free in monitor when privsep child is compromised.
2468 Reported by Moritz Jodeit; ok dtucker@
2469
2470commit d4697fe9a28dab7255c60433e4dd23cf7fce8a8b
2471Author: Damien Miller <djm@mindrot.org>
2472Date: Tue Aug 11 13:33:24 2015 +1000
2473
2474 Don't resend username to PAM; it already has it.
2475
2476 Pointed out by Moritz Jodeit; ok dtucker@
2477
2478commit 88763a6c893bf3dfe951ba9271bf09715e8d91ca
2479Author: Darren Tucker <dtucker@zip.com.au>
2480Date: Mon Jul 27 12:14:25 2015 +1000
2481
2482 Import updated moduli file from OpenBSD.
2483
2484commit 55b263fb7cfeacb81aaf1c2036e0394c881637da
2485Author: Damien Miller <djm@mindrot.org>
2486Date: Mon Aug 10 11:13:44 2015 +1000
2487
2488 let principals-command.sh work for noexec /var/run
2489
2490commit 2651e34cd11b1aac3a0fe23b86d8c2ff35c07897
2491Author: Damien Miller <djm@mindrot.org>
2492Date: Thu Aug 6 11:43:42 2015 +1000
2493
2494 work around echo -n / sed behaviour in tests
2495
2496commit d85dad81778c1aa8106acd46930b25fdf0d15b2a
2497Author: djm@openbsd.org <djm@openbsd.org>
2498Date: Wed Aug 5 05:27:33 2015 +0000
2499
2500 upstream commit
2501
2502 adjust for RSA minimum modulus switch; ok deraadt@
2503
2504 Upstream-Regress-ID: 5a72c83431b96224d583c573ca281cd3a3ebfdae
2505
2506commit 57e8e229bad5fe6056b5f1199665f5f7008192c6
2507Author: djm@openbsd.org <djm@openbsd.org>
2508Date: Tue Aug 4 05:23:06 2015 +0000
2509
2510 upstream commit
2511
2512 backout SSH_RSA_MINIMUM_MODULUS_SIZE increase for this
2513 release; problems spotted by sthen@ ok deraadt@ markus@
2514
2515 Upstream-ID: d0bd60dde9e8c3cd7030007680371894c1499822
2516
2517commit f097d0ea1e0889ca0fa2e53a00214e43ab7fa22a
2518Author: djm@openbsd.org <djm@openbsd.org>
2519Date: Sun Aug 2 09:56:42 2015 +0000
2520
2521 upstream commit
2522
2523 openssh 7.0; ok deraadt@
2524
2525 Upstream-ID: c63afdef537f57f28ae84145c5a8e29e9250221f
2526
2527commit 3d5728a0f6874ce4efb16913a12963595070f3a9
2528Author: chris@openbsd.org <chris@openbsd.org>
2529Date: Fri Jul 31 15:38:09 2015 +0000
2530
2531 upstream commit
2532
2533 Allow PermitRootLogin to be overridden by config
2534
2535 ok markus@ deeradt@
2536
2537 Upstream-ID: 5cf3e26ed702888de84e2dc9d0054ccf4d9125b4
2538
2539commit 6f941396b6835ad18018845f515b0c4fe20be21a
2540Author: djm@openbsd.org <djm@openbsd.org>
2541Date: Thu Jul 30 23:09:15 2015 +0000
2542
2543 upstream commit
2544
2545 fix pty permissions; patch from Nikolay Edigaryev; ok
2546 deraadt
2547
2548 Upstream-ID: 40ff076d2878b916fbfd8e4f45dbe5bec019e550
2549
2550commit f4373ed1e8fbc7c8ce3fc4ea97d0ba2e0c1d7ef0
2551Author: deraadt@openbsd.org <deraadt@openbsd.org>
2552Date: Thu Jul 30 19:23:02 2015 +0000
2553
2554 upstream commit
2555
2556 change default: PermitRootLogin without-password matching
2557 install script changes coming as well ok djm markus
2558
2559 Upstream-ID: 0e2a6c4441daf5498b47a61767382bead5eb8ea6
2560
2561commit 0c30ba91f87fcda7e975e6ff8a057f624e87ea1c
2562Author: Damien Miller <djm@mindrot.org>
2563Date: Thu Jul 30 12:31:39 2015 +1000
2564
2565 downgrade OOM adjustment logging: verbose -> debug
2566
2567commit f9eca249d4961f28ae4b09186d7dc91de74b5895
2568Author: djm@openbsd.org <djm@openbsd.org>
2569Date: Thu Jul 30 00:01:34 2015 +0000
2570
2571 upstream commit
2572
2573 Allow ssh_config and sshd_config kex parameters options be
2574 prefixed by a '+' to indicate that the specified items be appended to the
2575 default rather than replacing it.
2576
2577 approach suggested by dtucker@, feedback dlg@, ok markus@
2578
2579 Upstream-ID: 0f901137298fc17095d5756ff1561a7028e8882a
2580
2581commit 5cefe769105a2a2e3ca7479d28d9a325d5ef0163
2582Author: djm@openbsd.org <djm@openbsd.org>
2583Date: Wed Jul 29 08:34:54 2015 +0000
2584
2585 upstream commit
2586
2587 fix bug in previous; was printing incorrect string for
2588 failed host key algorithms negotiation
2589
2590 Upstream-ID: 22c0dc6bc61930513065d92e11f0753adc4c6e6e
2591
2592commit f319912b0d0e1675b8bb051ed8213792c788bcb2
2593Author: djm@openbsd.org <djm@openbsd.org>
2594Date: Wed Jul 29 04:43:06 2015 +0000
2595
2596 upstream commit
2597
2598 include the peer's offer when logging a failure to
2599 negotiate a mutual set of algorithms (kex, pubkey, ciphers, etc.) ok markus@
2600
2601 Upstream-ID: bbb8caabf5c01790bb845f5ce135565248d7c796
2602
2603commit b6ea0e573042eb85d84defb19227c89eb74cf05a
2604Author: djm@openbsd.org <djm@openbsd.org>
2605Date: Tue Jul 28 23:20:42 2015 +0000
2606
2607 upstream commit
2608
2609 add Cisco to the list of clients that choke on the
2610 hostkeys update extension. Pointed out by Howard Kash
2611
2612 Upstream-ID: c9eadde28ecec056c73d09ee10ba4570dfba7e84
2613
2614commit 3f628c7b537291c1019ce86af90756fb4e66d0fd
2615Author: guenther@openbsd.org <guenther@openbsd.org>
2616Date: Mon Jul 27 16:29:23 2015 +0000
2617
2618 upstream commit
2619
2620 Permit kbind(2) use in the sandbox now, to ease testing
2621 of ld.so work using it
2622
2623 reminded by miod@, ok deraadt@
2624
2625 Upstream-ID: 523922e4d1ba7a091e3824e77a8a3c818ee97413
2626
2627commit ebe27ebe520098bbc0fe58945a87ce8490121edb
2628Author: millert@openbsd.org <millert@openbsd.org>
2629Date: Mon Jul 20 18:44:12 2015 +0000
2630
2631 upstream commit
2632
2633 Move .Pp before .Bl, not after to quiet mandoc -Tlint.
2634 Noticed by jmc@
2635
2636 Upstream-ID: 59fadbf8407cec4e6931e50c53cfa0214a848e23
2637
2638commit d5d91d0da819611167782c66ab629159169d94d4
2639Author: millert@openbsd.org <millert@openbsd.org>
2640Date: Mon Jul 20 18:42:35 2015 +0000
2641
2642 upstream commit
2643
2644 Sync usage with SYNOPSIS
2645
2646 Upstream-ID: 7a321a170181a54f6450deabaccb6ef60cf3f0b7
2647
2648commit 79ec2142fbc68dd2ed9688608da355fc0b1ed743
2649Author: millert@openbsd.org <millert@openbsd.org>
2650Date: Mon Jul 20 15:39:52 2015 +0000
2651
2652 upstream commit
2653
2654 Better desciption of Unix domain socket forwarding.
2655 bz#2423; ok jmc@
2656
2657 Upstream-ID: 85e28874726897e3f26ae50dfa2e8d2de683805d
2658
2659commit d56fd1828074a4031b18b8faa0bf949669eb18a0
2660Author: Damien Miller <djm@mindrot.org>
2661Date: Mon Jul 20 11:19:51 2015 +1000
2662
2663 make realpath.c compile -Wsign-compare clean
2664
2665commit c63c9a691dca26bb7648827f5a13668832948929
2666Author: djm@openbsd.org <djm@openbsd.org>
2667Date: Mon Jul 20 00:30:01 2015 +0000
2668
2669 upstream commit
2670
2671 mention that the default of UseDNS=no implies that
2672 hostnames cannot be used for host matching in sshd_config and
2673 authorized_keys; bz#2045, ok dtucker@
2674
2675 Upstream-ID: 0812705d5f2dfa59aab01f2764ee800b1741c4e1
2676
2677commit 63ebcd0005e9894fcd6871b7b80aeea1fec0ff76
2678Author: djm@openbsd.org <djm@openbsd.org>
2679Date: Sat Jul 18 08:02:17 2015 +0000
2680
2681 upstream commit
2682
2683 don't ignore PKCS#11 hosted keys that return empty
2684 CKA_ID; patch by Jakub Jelen via bz#2429; ok markus
2685
2686 Upstream-ID: 2f7c94744eb0342f8ee8bf97b2351d4e00116485
2687
2688commit b15fd989c8c62074397160147a8d5bc34b3f3c63
2689Author: djm@openbsd.org <djm@openbsd.org>
2690Date: Sat Jul 18 08:00:21 2015 +0000
2691
2692 upstream commit
2693
2694 skip uninitialised PKCS#11 slots; patch from Jakub Jelen
2695 in bz#2427 ok markus@
2696
2697 Upstream-ID: 744c1e7796e237ad32992d0d02148e8a18f27d29
2698
2699commit 5b64f85bb811246c59ebab70aed331f26ba37b18
2700Author: djm@openbsd.org <djm@openbsd.org>
2701Date: Sat Jul 18 07:57:14 2015 +0000
2702
2703 upstream commit
2704
2705 only query each keyboard-interactive device once per
2706 authentication request regardless of how many times it is listed; ok markus@
2707
2708 Upstream-ID: d73fafba6e86030436ff673656ec1f33d9ffeda1
2709
2710commit cd7324d0667794eb5c236d8a4e0f236251babc2d
2711Author: djm@openbsd.org <djm@openbsd.org>
2712Date: Fri Jul 17 03:34:27 2015 +0000
2713
2714 upstream commit
2715
2716 remove -u flag to diff (only used for error output) to make
2717 things easier for -portable
2718
2719 Upstream-Regress-ID: a5d6777d2909540d87afec3039d9bb2414ade548
2720
2721commit deb8d99ecba70b67f4af7880b11ca8768df9ec3a
2722Author: djm@openbsd.org <djm@openbsd.org>
2723Date: Fri Jul 17 03:09:19 2015 +0000
2724
2725 upstream commit
2726
2727 direct-streamlocal@openssh.com Unix domain foward
2728 messages do not contain a "reserved for future use" field and in fact,
2729 serverloop.c checks that there isn't one. Remove erroneous mention from
2730 PROTOCOL description. bz#2421 from Daniel Black
2731
2732 Upstream-ID: 3d51a19e64f72f764682f1b08f35a8aa810a43ac
2733
2734commit 356b61f365405b5257f5b2ab446e5d7bd33a7b52
2735Author: djm@openbsd.org <djm@openbsd.org>
2736Date: Fri Jul 17 03:04:27 2015 +0000
2737
2738 upstream commit
2739
2740 describe magic for setting up Unix domain socket fowards
2741 via the mux channel; bz#2422 patch from Daniel Black
2742
2743 Upstream-ID: 943080fe3864715c423bdeb7c920bb30c4eee861
2744
2745commit d3e2aee41487d55b8d7d40f538b84ff1db7989bc
2746Author: Darren Tucker <dtucker@zip.com.au>
2747Date: Fri Jul 17 12:52:34 2015 +1000
2748
2749 Check if realpath works on nonexistent files.
2750
2751 On some platforms the native realpath doesn't work with non-existent
2752 files (this is actually specified in some versions of POSIX), however
2753 the sftp spec says its realpath with "canonicalize any given path name".
2754 On those platforms, use realpath from the compat library.
2755
2756 In addition, when compiling with -DFORTIFY_SOURCE, glibc redefines
2757 the realpath symbol to the checked version, so redefine ours to
2758 something else so we pick up the compat version we want.
2759
2760 bz#2428, ok djm@
2761
2762commit 25b14610dab655646a109db5ef8cb4c4bf2a48a0
2763Author: djm@openbsd.org <djm@openbsd.org>
2764Date: Fri Jul 17 02:47:45 2015 +0000
2765
2766 upstream commit
2767
2768 fix incorrect test for SSH1 keys when compiled without SSH1
2769 support
2770
2771 Upstream-ID: 6004d720345b8e481c405e8ad05ce2271726e451
2772
2773commit df56a8035d429b2184ee94aaa7e580c1ff67f73a
2774Author: djm@openbsd.org <djm@openbsd.org>
2775Date: Wed Jul 15 08:00:11 2015 +0000
2776
2777 upstream commit
2778
2779 fix NULL-deref when SSH1 reenabled
2780
2781 Upstream-ID: f22fd805288c92b3e9646782d15b48894b2d5295
2782
2783commit 41e38c4d49dd60908484e6703316651333f16b93
2784Author: djm@openbsd.org <djm@openbsd.org>
2785Date: Wed Jul 15 07:19:50 2015 +0000
2786
2787 upstream commit
2788
2789 regen RSA1 test keys; the last batch was missing their
2790 private parts
2791
2792 Upstream-Regress-ID: 7ccf437305dd63ff0b48dd50c5fd0f4d4230c10a
2793
2794commit 5bf0933184cb622ca3f96d224bf3299fd2285acc
2795Author: markus@openbsd.org <markus@openbsd.org>
2796Date: Fri Jul 10 06:23:25 2015 +0000
2797
2798 upstream commit
2799
2800 Adapt tests, now that DSA if off by default; use
2801 PubkeyAcceptedKeyTypes and PubkeyAcceptedKeyTypes to test DSA.
2802
2803 Upstream-Regress-ID: 0ff2a3ff5ac1ce5f92321d27aa07b98656efcc5c
2804
2805commit 7a6e3fd7b41dbd3756b6bf9acd67954c0b1564cc
2806Author: markus@openbsd.org <markus@openbsd.org>
2807Date: Tue Jul 7 14:54:16 2015 +0000
2808
2809 upstream commit
2810
2811 regen test data after mktestdata.sh changes
2812
2813 Upstream-Regress-ID: 3495ecb082b9a7c048a2d7c5c845d3bf181d25a4
2814
2815commit 7c8c174c69f681d4910fa41c37646763692b28e2
2816Author: markus@openbsd.org <markus@openbsd.org>
2817Date: Tue Jul 7 14:53:30 2015 +0000
2818
2819 upstream commit
2820
2821 adapt tests to new minimum RSA size and default FP format
2822
2823 Upstream-Regress-ID: a4b30afd174ce82b96df14eb49fb0b81398ffd0e
2824
2825commit 6a977a4b68747ade189e43d302f33403fd4a47ac
2826Author: djm@openbsd.org <djm@openbsd.org>
2827Date: Fri Jul 3 04:39:23 2015 +0000
2828
2829 upstream commit
2830
2831 legacy v00 certificates are gone; adapt and don't try to
2832 test them; "sure" markus@ dtucker@
2833
2834 Upstream-Regress-ID: c57321e69b3cd4a3b3396dfcc43f0803d047da12
2835
2836commit 0c4123ad5e93fb90fee9c6635b13a6cdabaac385
2837Author: djm@openbsd.org <djm@openbsd.org>
2838Date: Wed Jul 1 23:11:18 2015 +0000
2839
2840 upstream commit
2841
2842 don't expect SSH v.1 in unittests
2843
2844 Upstream-Regress-ID: f8812b16668ba78e6a698646b2a652b90b653397
2845
2846commit 3c099845798a817cdde513c39074ec2063781f18
2847Author: djm@openbsd.org <djm@openbsd.org>
2848Date: Mon Jun 15 06:38:50 2015 +0000
2849
2850 upstream commit
2851
2852 turn SSH1 back on to match src/usr.bin/ssh being tested
2853
2854 Upstream-Regress-ID: 6c4f763a2f0cc6893bf33983919e9030ae638333
2855
2856commit b1dc2b33689668c75e95f873a42d5aea1f4af1db
2857Author: dtucker@openbsd.org <dtucker@openbsd.org>
2858Date: Mon Jul 13 04:57:14 2015 +0000
2859
2860 upstream commit
2861
2862 Add "PuTTY_Local:" to the clients to which we do not
2863 offer DH-GEX. This was the string that was used for development versions
2864 prior to September 2014 and they don't do RFC4419 DH-GEX, but unfortunately
2865 there are some extant products based on those versions. bx2424 from Jay
2866 Rouman, ok markus@ djm@
2867
2868 Upstream-ID: be34d41e18b966832fe09ca243d275b81882e1d5
2869
2870commit 3a1638dda19bbc73d0ae02b4c251ce08e564b4b9
2871Author: markus@openbsd.org <markus@openbsd.org>
2872Date: Fri Jul 10 06:21:53 2015 +0000
2873
2874 upstream commit
2875
2876 Turn off DSA by default; add HostKeyAlgorithms to the
2877 server and PubkeyAcceptedKeyTypes to the client side, so it still can be
2878 tested or turned back on; feedback and ok djm@
2879
2880 Upstream-ID: 8450a9e6d83f80c9bfed864ff061dfc9323cec21
2881
2882commit 16db0a7ee9a87945cc594d13863cfcb86038db59
2883Author: markus@openbsd.org <markus@openbsd.org>
2884Date: Thu Jul 9 09:49:46 2015 +0000
2885
2886 upstream commit
2887
2888 re-enable ed25519-certs if compiled w/o openssl; ok djm
2889
2890 Upstream-ID: e10c90808b001fd2c7a93778418e9b318f5c4c49
2891
2892commit c355bf306ac33de6545ce9dac22b84a194601e2f
2893Author: markus@openbsd.org <markus@openbsd.org>
2894Date: Wed Jul 8 20:24:02 2015 +0000
2895
2896 upstream commit
2897
2898 no need to include the old buffer/key API
2899
2900 Upstream-ID: fb13c9f7c0bba2545f3eb0a0e69cb0030819f52b
2901
2902commit a3cc48cdf9853f1e832d78cb29bedfab7adce1ee
2903Author: markus@openbsd.org <markus@openbsd.org>
2904Date: Wed Jul 8 19:09:25 2015 +0000
2905
2906 upstream commit
2907
2908 typedefs for Cipher&CipherContext are unused
2909
2910 Upstream-ID: 50e6a18ee92221d23ad173a96d5b6c42207cf9a7
2911
2912commit a635bd06b5c427a57c3ae760d3a2730bb2c863c0
2913Author: markus@openbsd.org <markus@openbsd.org>
2914Date: Wed Jul 8 19:04:21 2015 +0000
2915
2916 upstream commit
2917
2918 xmalloc.h is unused
2919
2920 Upstream-ID: afb532355b7fa7135a60d944ca1e644d1d63cb58
2921
2922commit 2521cf0e36c7f3f6b19f206da0af134f535e4a31
2923Author: markus@openbsd.org <markus@openbsd.org>
2924Date: Wed Jul 8 19:01:15 2015 +0000
2925
2926 upstream commit
2927
2928 compress.c is gone
2929
2930 Upstream-ID: 174fa7faa9b9643cba06164b5e498591356fbced
2931
2932commit c65a7aa6c43aa7a308ee1ab8a96f216169ae9615
2933Author: djm@openbsd.org <djm@openbsd.org>
2934Date: Fri Jul 3 04:05:54 2015 +0000
2935
2936 upstream commit
2937
2938 another SSH_RSA_MINIMUM_MODULUS_SIZE that needed
2939 cranking
2940
2941 Upstream-ID: 9d8826cafe96aab4ae8e2f6fd22800874b7ffef1
2942
2943commit b1f383da5cd3cb921fc7776f17a14f44b8a31757
2944Author: djm@openbsd.org <djm@openbsd.org>
2945Date: Fri Jul 3 03:56:25 2015 +0000
2946
2947 upstream commit
2948
2949 add an XXX reminder for getting correct key paths from
2950 sshd_config
2951
2952 Upstream-ID: feae52b209d7782ad742df04a4260e9fe41741db
2953
2954commit 933935ce8d093996c34d7efa4d59113163080680
2955Author: djm@openbsd.org <djm@openbsd.org>
2956Date: Fri Jul 3 03:49:45 2015 +0000
2957
2958 upstream commit
2959
2960 refuse to generate or accept RSA keys smaller than 1024
2961 bits; feedback and ok dtucker@
2962
2963 Upstream-ID: 7ea3d31271366ba264f06e34a3539bf1ac30f0ba
2964
2965commit bdfd29f60b74f3e678297269dc6247a5699583c1
2966Author: djm@openbsd.org <djm@openbsd.org>
2967Date: Fri Jul 3 03:47:00 2015 +0000
2968
2969 upstream commit
2970
2971 turn off 1024 bit diffie-hellman-group1-sha1 key
2972 exchange method (already off in server, this turns it off in the client by
2973 default too) ok dtucker@
2974
2975 Upstream-ID: f59b88f449210ab7acf7d9d88f20f1daee97a4fa
2976
2977commit c28fc62d789d860c75e23a9fa9fb250eb2beca57
2978Author: djm@openbsd.org <djm@openbsd.org>
2979Date: Fri Jul 3 03:43:18 2015 +0000
2980
2981 upstream commit
2982
2983 delete support for legacy v00 certificates; "sure"
2984 markus@ dtucker@
2985
2986 Upstream-ID: b5b9bb5f9202d09e88f912989d74928601b6636f
2987
2988commit 564d63e1b4a9637a209d42a9d49646781fc9caef
2989Author: djm@openbsd.org <djm@openbsd.org>
2990Date: Wed Jul 1 23:10:47 2015 +0000
2991
2992 upstream commit
2993
2994 Compile-time disable SSH v.1 again
2995
2996 Upstream-ID: 1d4b513a3a06232f02650b73bad25100d1b800af
2997
2998commit 868109b650504dd9bcccdb1f51d0906f967c20ff
2999Author: djm@openbsd.org <djm@openbsd.org>
3000Date: Wed Jul 1 02:39:06 2015 +0000
3001
3002 upstream commit
3003
3004 twiddle PermitRootLogin back
3005
3006 Upstream-ID: 2bd23976305d0512e9f84d054e1fc23cd70b89f2
3007
3008commit 7de4b03a6e4071d454b72927ffaf52949fa34545
3009Author: djm@openbsd.org <djm@openbsd.org>
3010Date: Wed Jul 1 02:32:17 2015 +0000
3011
3012 upstream commit
3013
3014 twiddle; (this commit marks the openssh-6.9 release)
3015
3016 Upstream-ID: 78500582819f61dd8adee36ec5cc9b9ac9351234
3017
3018commit 1bf477d3cdf1a864646d59820878783d42357a1d
3019Author: djm@openbsd.org <djm@openbsd.org>
3020Date: Wed Jul 1 02:26:31 2015 +0000
3021
3022 upstream commit
3023
3024 better refuse ForwardX11Trusted=no connections attempted
3025 after ForwardX11Timeout expires; reported by Jann Horn
3026
3027 Upstream-ID: bf0fddadc1b46a0334e26c080038313b4b6dea21
3028
3029commit 47aa7a0f8551b471fcae0447c1d78464f6dba869
3030Author: djm@openbsd.org <djm@openbsd.org>
3031Date: Wed Jul 1 01:56:13 2015 +0000
3032
3033 upstream commit
3034
3035 put back default PermitRootLogin=no
3036
3037 Upstream-ID: 7bdedd5cead99c57ed5571f3b6b7840922d5f728
3038
3039commit 984b064fe2a23733733262f88d2e1b2a1a501662
3040Author: djm@openbsd.org <djm@openbsd.org>
3041Date: Wed Jul 1 01:55:13 2015 +0000
3042
3043 upstream commit
3044
3045 openssh-6.9
3046
3047 Upstream-ID: 6cfe8e1904812531080e6ab6e752d7001b5b2d45
3048
3049commit d921082ed670f516652eeba50705e1e9f6325346
3050Author: djm@openbsd.org <djm@openbsd.org>
3051Date: Wed Jul 1 01:55:00 2015 +0000
3052
3053 upstream commit
3054
3055 reset default PermitRootLogin to 'yes' (momentarily, for
3056 release)
3057
3058 Upstream-ID: cad8513527066e65dd7a1c16363d6903e8cefa24
3059
3060commit 66295e0e1ba860e527f191b6325d2d77dec4dbce
3061Author: Damien Miller <djm@mindrot.org>
3062Date: Wed Jul 1 11:49:12 2015 +1000
3063
3064 crank version numbers for release
3065
3066commit 37035c07d4f26bb1fbe000d2acf78efdb008681d
3067Author: Damien Miller <djm@mindrot.org>
3068Date: Wed Jul 1 10:49:37 2015 +1000
3069
3070 s/--with-ssh1/--without-ssh1/
3071
3072commit 629df770dbadc2accfbe1c81b3f31f876d0acd84
3073Author: djm@openbsd.org <djm@openbsd.org>
3074Date: Tue Jun 30 05:25:07 2015 +0000
3075
3076 upstream commit
3077
3078 fatal() when a remote window update causes the window
3079 value to overflow. Reported by Georg Wicherski, ok markus@
3080
3081 Upstream-ID: ead397a9aceb3bf74ebfa5fcaf259d72e569f351
3082
3083commit f715afebe735d61df3fd30ad72d9ac1c8bd3b5f2
3084Author: djm@openbsd.org <djm@openbsd.org>
3085Date: Tue Jun 30 05:23:25 2015 +0000
3086
3087 upstream commit
3088
3089 Fix math error in remote window calculations that causes
3090 eventual stalls for datagram channels. Reported by Georg Wicherski, ok
3091 markus@
3092
3093 Upstream-ID: be54059d11bf64e0d85061f7257f53067842e2ab
3094
3095commit 52fb6b9b034fcfd24bf88cc7be313e9c31de9889
3096Author: Damien Miller <djm@mindrot.org>
3097Date: Tue Jun 30 16:05:40 2015 +1000
3098
3099 skip IPv6-related portions on hosts without IPv6
3100
3101 with Tim Rice
3102
3103commit 512caddf590857af6aa12218461b5c0441028cf5
3104Author: djm@openbsd.org <djm@openbsd.org>
3105Date: Mon Jun 29 22:35:12 2015 +0000
3106
3107 upstream commit
3108
3109 add getpid to sandbox, reachable by grace_alarm_handler
3110
3111 reported by Jakub Jelen; bz#2419
3112
3113 Upstream-ID: d0da1117c16d4c223954995d35b0f47c8f684cd8
3114
3115commit 78c2a4f883ea9aba866358e2acd9793a7f42ca93
3116Author: djm@openbsd.org <djm@openbsd.org>
3117Date: Fri Jun 26 05:13:20 2015 +0000
3118
3119 upstream commit
3120
3121 Fix \-escaping bug that caused forward path parsing to skip
3122 two characters and skip past the end of the string.
3123
3124 Based on patch by Salvador Fandino; ok dtucker@
3125
3126 Upstream-ID: 7b879dc446335677cbe4cb549495636a0535f3bd
3127
3128commit bc20205c91c9920361d12b15d253d4997dba494a
3129Author: Damien Miller <djm@mindrot.org>
3130Date: Thu Jun 25 09:51:39 2015 +1000
3131
3132 add missing pselect6
3133
3134 patch from Jakub Jelen
3135
3136commit 9d27fb73b4a4e5e99cb880af790d5b1ce44f720a
3137Author: djm@openbsd.org <djm@openbsd.org>
3138Date: Wed Jun 24 23:47:23 2015 +0000
3139
3140 upstream commit
3141
3142 correct test to sshkey_sign(); spotted by Albert S.
3143
3144 Upstream-ID: 5f7347f40f0ca6abdaca2edb3bd62f4776518933
3145
3146commit 7ed01a96a1911d8b4a9ef4f3d064e1923bfad7e3
3147Author: dtucker@openbsd.org <dtucker@openbsd.org>
3148Date: Wed Jun 24 01:49:19 2015 +0000
3149
3150 upstream commit
3151
3152 Revert previous commit. We still want to call setgroups
3153 in the case where there are zero groups to remove any that we might otherwise
3154 inherit (as pointed out by grawity at gmail.com) and since the 2nd argument
3155 to setgroups is always a static global it's always valid to dereference in
3156 this case. ok deraadt@ djm@
3157
3158 Upstream-ID: 895b5ac560a10befc6b82afa778641315725fd01
3159
3160commit 882f8bf94f79528caa65b0ba71c185d705bb7195
3161Author: dtucker@openbsd.org <dtucker@openbsd.org>
3162Date: Wed Jun 24 01:49:19 2015 +0000
3163
3164 upstream commit
3165
3166 Revert previous commit. We still want to call setgroups in
3167 the case where there are zero groups to remove any that we might otherwise
3168 inherit (as pointed out by grawity at gmail.com) and since the 2nd argument
3169 to setgroups is always a static global it's always valid to dereference in
3170 this case. ok deraadt@ djm@
3171
3172 Upstream-ID: 895b5ac560a10befc6b82afa778641315725fd01
3173
3174commit 9488538a726951e82b3a4374f3c558d72c80a89b
3175Author: djm@openbsd.org <djm@openbsd.org>
3176Date: Mon Jun 22 23:42:16 2015 +0000
3177
3178 upstream commit
3179
3180 Don't count successful partial authentication as failures
3181 in monitor; this may have caused the monitor to refuse multiple
3182 authentications that would otherwise have successfully completed; ok markus@
3183
3184 Upstream-ID: eb74b8e506714d0f649bd5c300f762a527af04a3
3185
3186commit 63b78d003bd8ca111a736e6cea6333da50f5f09b
3187Author: dtucker@openbsd.org <dtucker@openbsd.org>
3188Date: Mon Jun 22 12:29:57 2015 +0000
3189
3190 upstream commit
3191
3192 Don't call setgroups if we have zero groups; there's no
3193 guarantee that it won't try to deref the pointer. Based on a patch from mail
3194 at quitesimple.org, ok djm deraadt
3195
3196 Upstream-ID: 2fff85e11d7a9a387ef7fddf41fbfaf566708ab1
3197
3198commit 5c15e22c691c79a47747bcf5490126656f97cecd
3199Author: Damien Miller <djm@mindrot.org>
3200Date: Thu Jun 18 15:07:56 2015 +1000
3201
3202 fix syntax error
3203
3204commit 596dbca82f3f567fb3d2d69af4b4e1d3ba1e6403
3205Author: jsing@openbsd.org <jsing@openbsd.org>
3206Date: Mon Jun 15 18:44:22 2015 +0000
3207
3208 upstream commit
3209
3210 If AuthorizedPrincipalsCommand is specified, however
3211 AuthorizedPrincipalsFile is not (or is set to "none"), authentication will
3212 potentially fail due to key_cert_check_authority() failing to locate a
3213 principal that matches the username, even though an authorized principal has
3214 already been matched in the output of the subprocess. Fix this by using the
3215 same logic to determine if pw->pw_name should be passed, as is used to
3216 determine if a authorized principal must be matched earlier on.
3217
3218 ok djm@
3219
3220 Upstream-ID: 43b42302ec846b0ea68aceb40677245391b9409d
3221
3222commit aff3e94c0d75d0d0fa84ea392b50ab04f8c57905
3223Author: jsing@openbsd.org <jsing@openbsd.org>
3224Date: Mon Jun 15 18:42:19 2015 +0000
3225
3226 upstream commit
3227
3228 Make the arguments to match_principals_command() similar
3229 to match_principals_file(), by changing the last argument a struct
3230 sshkey_cert * and dereferencing key->cert in the caller.
3231
3232 No functional change.
3233
3234 ok djm@
3235
3236 Upstream-ID: 533f99b844b21b47342b32b62e198dfffcf8651c
3237
3238commit 97e2e1596c202a4693468378b16b2353fd2d6c5e
3239Author: Damien Miller <djm@mindrot.org>
3240Date: Wed Jun 17 14:36:54 2015 +1000
3241
3242 trivial optimisation for seccomp-bpf
3243
3244 When doing arg inspection and the syscall doesn't match, skip
3245 past the instruction that reloads the syscall into the accumulator,
3246 since the accumulator hasn't been modified at this point.
3247
3248commit 99f33d7304893bd9fa04d227cb6e870171cded19
3249Author: Damien Miller <djm@mindrot.org>
3250Date: Wed Jun 17 10:50:51 2015 +1000
3251
3252 aarch64 support for seccomp-bpf sandbox
3253
3254 Also resort and tidy syscall list. Based on patches by Jakub Jelen
3255 bz#2361; ok dtucker@
3256
3257commit 4ef702e1244633c1025ec7cfe044b9ab267097bf
3258Author: djm@openbsd.org <djm@openbsd.org>
3259Date: Mon Jun 15 01:32:50 2015 +0000
3260
3261 upstream commit
3262
3263 return failure on RSA signature error; reported by Albert S
3264
3265 Upstream-ID: e61bb93dbe0349625807b0810bc213a6822121fa
3266
3267commit a170f22baf18af0b1acf2788b8b715605f41a1f9
3268Author: Tim Rice <tim@multitalents.net>
3269Date: Tue Jun 9 22:41:13 2015 -0700
3270
3271 Fix t12 rules for out of tree builds.
3272
3273commit ec04dc4a5515c913121bc04ed261857e68fa5c18
3274Author: millert@openbsd.org <millert@openbsd.org>
3275Date: Fri Jun 5 15:13:13 2015 +0000
3276
3277 upstream commit
3278
3279 For "ssh -L 12345:/tmp/sock" don't fail with "No forward host
3280 name." (we have a path, not a host name). Based on a diff from Jared
3281 Yanovich. OK djm@
3282
3283 Upstream-ID: 2846b0a8c7de037e33657f95afbd282837fc213f
3284
3285commit 732d61f417a6aea0aa5308b59cb0f563bcd6edd6
3286Author: djm@openbsd.org <djm@openbsd.org>
3287Date: Fri Jun 5 03:44:14 2015 +0000
3288
3289 upstream commit
3290
3291 typo: accidental repetition; bz#2386
3292
3293 Upstream-ID: 45e620d99f6bc301e5949d34a54027374991c88b
3294
3295commit adfb24c69d1b6f5e758db200866c711e25a2ba73
3296Author: Darren Tucker <dtucker@zip.com.au>
3297Date: Fri Jun 5 14:51:40 2015 +1000
3298
3299 Add Linux powerpc64le and powerpcle entries.
3300
3301 Stopgap to resolve bz#2409 because we are so close to release and will
3302 update config.guess and friends shortly after the release. ok djm@
3303
3304commit a1195a0fdc9eddddb04d3e9e44c4775431cb77da
3305Merge: 6397eed d2480bc
3306Author: Tim Rice <tim@multitalents.net>
3307Date: Wed Jun 3 21:43:13 2015 -0700
3308
3309 Merge branch 'master' of git.mindrot.org:/var/git/openssh
3310
3311commit 6397eedf953b2b973d2d7cbb504ab501a07f8ddc
3312Author: Tim Rice <tim@multitalents.net>
3313Date: Wed Jun 3 21:41:11 2015 -0700
3314
3315 Remove unneeded backslashes. Patch from Ángel González
3316
3317commit d2480bcac1caf31b03068de877a47d6e1027bf6d
3318Author: Darren Tucker <dtucker@zip.com.au>
3319Date: Thu Jun 4 14:10:55 2015 +1000
3320
3321 Remove redundant include of stdarg.h. bz#2410
3322
3323commit 5e67859a623826ccdf2df284cbb37e2d8e2787eb
3324Author: djm@openbsd.org <djm@openbsd.org>
3325Date: Tue Jun 2 09:10:40 2015 +0000
3326
3327 upstream commit
3328
3329 mention CheckHostIP adding addresses to known_hosts;
3330 bz#1993; ok dtucker@
3331
3332 Upstream-ID: fd44b68440fd0dc29abf9f2d3f703d74a2396cb7
3333
3334commit d7a58bbac6583e33fd5eca8e2c2cc70c57617818
3335Author: Darren Tucker <dtucker@zip.com.au>
3336Date: Tue Jun 2 20:15:26 2015 +1000
3337
3338 Replace strcpy with strlcpy.
3339
3340 ok djm, sanity check by Corinna Vinschen.
3341
3342commit 51a1c2115265c6e80ede8a5c9dccada9aeed7143
3343Author: Damien Miller <djm@mindrot.org>
3344Date: Fri May 29 18:27:21 2015 +1000
3345
3346 skip, rather than fatal when run without SUDO set
3347
3348commit 599f01142a376645b15cbc9349d7e8975e1cf245
3349Author: Damien Miller <djm@mindrot.org>
3350Date: Fri May 29 18:03:15 2015 +1000
3351
3352 fix merge botch that left ",," in KEX algs
3353
3354commit 0c2a81dfc21822f2423edd30751e5ec53467b347
3355Author: Damien Miller <djm@mindrot.org>
3356Date: Fri May 29 17:08:28 2015 +1000
3357
3358 re-enable SSH protocol 1 at compile time
3359
3360commit db438f9285d64282d3ac9e8c0944f59f037c0151
3361Author: djm@openbsd.org <djm@openbsd.org>
3362Date: Fri May 29 03:05:13 2015 +0000
3363
3364 upstream commit
3365
3366 make this work without SUDO set; ok dtucker@
3367
3368 Upstream-Regress-ID: bca88217b70bce2fe52b23b8e06bdeb82d98c715
3369
3370commit 1d9a2e2849c9864fe75daabf433436341c968e14
3371Author: djm@openbsd.org <djm@openbsd.org>
3372Date: Thu May 28 07:37:31 2015 +0000
3373
3374 upstream commit
3375
3376 wrap all moduli-related code in #ifdef WITH_OPENSSL.
3377 based on patch from Reuben Hawkins; bz#2388 feedback and ok dtucker@
3378
3379 Upstream-ID: d80cfc8be3e6ec65b3fac9e87c4466533b31b7cf
3380
3381commit 496aeb25bc2d6c434171292e4714771b594bd00e
3382Author: dtucker@openbsd.org <dtucker@openbsd.org>
3383Date: Thu May 28 05:41:29 2015 +0000
3384
3385 upstream commit
3386
3387 Increase the allowed length of the known host file name
3388 in the log message to be consistent with other cases. Part of bz#1993, ok
3389 deraadt.
3390
3391 Upstream-ID: a9e97567be49f25daf286721450968251ff78397
3392
3393commit dd2cfeb586c646ff8d70eb93567b2e559ace5b14
3394Author: dtucker@openbsd.org <dtucker@openbsd.org>
3395Date: Thu May 28 05:09:45 2015 +0000
3396
3397 upstream commit
3398
3399 Fix typo (keywork->keyword)
3400
3401 Upstream-ID: 8aacd0f4089c0a244cf43417f4f9045dfaeab534
3402
3403commit 9cc6842493fbf23025ccc1edab064869640d3bec
3404Author: djm@openbsd.org <djm@openbsd.org>
3405Date: Thu May 28 04:50:53 2015 +0000
3406
3407 upstream commit
3408
3409 add error message on ftruncate failure; bz#2176
3410
3411 Upstream-ID: cbcc606e0b748520c74a210d8f3cc9718d3148cf
3412
3413commit d1958793a0072c22be26d136dbda5ae263e717a0
3414Author: djm@openbsd.org <djm@openbsd.org>
3415Date: Thu May 28 04:40:13 2015 +0000
3416
3417 upstream commit
3418
3419 make ssh-keygen default to ed25519 keys when compiled
3420 without OpenSSL; bz#2388, ok dtucker@
3421
3422 Upstream-ID: 85a471fa6d3fa57a7b8e882d22cfbfc1d84cdc71
3423
3424commit 3ecde664c9fc5fb3667aedf9e6671462600f6496
3425Author: dtucker@openbsd.org <dtucker@openbsd.org>
3426Date: Wed May 27 23:51:10 2015 +0000
3427
3428 upstream commit
3429
3430 Reorder client proposal to prefer
3431 diffie-hellman-group-exchange-sha1 over diffie-hellman-group14-sha1. ok djm@
3432
3433 Upstream-ID: 552c08d47347c3ee1a9a57d88441ab50abe17058
3434
3435commit 40f64292b907afd0a674fdbf3e4c2356d17a7d68
3436Author: dtucker@openbsd.org <dtucker@openbsd.org>
3437Date: Wed May 27 23:39:18 2015 +0000
3438
3439 upstream commit
3440
3441 Add a stronger (4k bit) fallback group that sshd can use
3442 when the moduli file is missing or broken, sourced from RFC3526. bz#2302, ok
3443 markus@ (earlier version), djm@
3444
3445 Upstream-ID: b635215746a25a829d117673d5e5a76d4baee7f4
3446
3447commit 5ab7d5fa03ad55bc438fab45dfb3aeb30a3c237a
3448Author: Darren Tucker <dtucker@zip.com.au>
3449Date: Thu May 28 10:03:40 2015 +1000
3450
3451 New moduli file from OpenBSD, removing 1k groups.
3452
3453 Remove 1k bit groups. ok deraadt@, markus@
3454
3455commit a71ba58adf34e599f30cdda6e9b93ae6e3937eea
3456Author: djm@openbsd.org <djm@openbsd.org>
3457Date: Wed May 27 05:15:02 2015 +0000
3458
3459 upstream commit
3460
3461 support PKCS#11 devices with external PIN entry devices
3462 bz#2240, based on patch from Dirk-Willem van Gulik; feedback and ok dtucker@
3463
3464 Upstream-ID: 504568992b55a8fc984375242b1bd505ced61b0d
3465
3466commit b282fec1aa05246ed3482270eb70fc3ec5f39a00
3467Author: dtucker@openbsd.org <dtucker@openbsd.org>
3468Date: Tue May 26 23:23:40 2015 +0000
3469
3470 upstream commit
3471
3472 Cap DH-GEX group size at 4kbits for Cisco implementations.
3473 Some of them will choke when asked for preferred sizes >4k instead of
3474 returning the 4k group that they do have. bz#2209, ok djm@
3475
3476 Upstream-ID: 54b863a19713446b7431f9d06ad0532b4fcfef8d
3477
3478commit 3e91b4e8b0dc2b4b7e7d42cf6e8994a32e4cb55e
3479Author: djm@openbsd.org <djm@openbsd.org>
3480Date: Sun May 24 23:39:16 2015 +0000
3481
3482 upstream commit
3483
3484 add missing 'c' option to getopt(), case statement was
3485 already there; from Felix Bolte
3486
3487 Upstream-ID: 9b19b4e2e0b54d6fefa0dfac707c51cf4bae3081
3488
3489commit 64a89ec07660abba4d0da7c0095b7371c98bab62
3490Author: jsg@openbsd.org <jsg@openbsd.org>
3491Date: Sat May 23 14:28:37 2015 +0000
3492
3493 upstream commit
3494
3495 fix a memory leak in an error path ok markus@ dtucker@
3496
3497 Upstream-ID: bc1da0f205494944918533d8780fde65dff6c598
3498
3499commit f948737449257d2cb83ffcfe7275eb79b677fd4a
3500Author: djm@openbsd.org <djm@openbsd.org>
3501Date: Fri May 22 05:28:45 2015 +0000
3502
3503 upstream commit
3504
3505 mention ssh-keygen -E for comparing legacy MD5
3506 fingerprints; bz#2332
3507
3508 Upstream-ID: 079a3669549041dbf10dbc072d9563f0dc3b2859
3509
3510commit 0882332616e4f0272c31cc47bf2018f9cb258a4e
3511Author: djm@openbsd.org <djm@openbsd.org>
3512Date: Fri May 22 04:45:52 2015 +0000
3513
3514 upstream commit
3515
3516 Reorder EscapeChar option parsing to avoid a single-byte
3517 out- of-bounds read. bz#2396 from Jaak Ristioja; ok dtucker@
3518
3519 Upstream-ID: 1dc6b5b63d1c8d9a88619da0b27ade461d79b060
3520
3521commit d7c31da4d42c115843edee2074d7d501f8804420
3522Author: djm@openbsd.org <djm@openbsd.org>
3523Date: Fri May 22 03:50:02 2015 +0000
3524
3525 upstream commit
3526
3527 add knob to relax GSSAPI host credential check for
3528 multihomed hosts bz#928, patch by Simon Wilkinson; ok dtucker
3529 (kerberos/GSSAPI is not compiled by default on OpenBSD)
3530
3531 Upstream-ID: 15ddf1c6f7fd9d98eea9962f480079ae3637285d
3532
3533commit aa72196a00be6e0b666215edcffbc10af234cb0e
3534Author: Darren Tucker <dtucker@zip.com.au>
3535Date: Fri May 22 17:49:46 2015 +1000
3536
3537 Include signal.h for sig_atomic_t, used by kex.h.
3538
3539 bz#2402, from tomas.kuthan at oracle com.
3540
3541commit 8b02481143d75e91c49d1bfae0876ac1fbf9511a
3542Author: Darren Tucker <dtucker@zip.com.au>
3543Date: Fri May 22 12:47:24 2015 +1000
3544
3545 Import updated moduli file from OpenBSD.
3546
3547commit 4739e8d5e1c0be49624082bd9f6b077e9e758db9
3548Author: djm@openbsd.org <djm@openbsd.org>
3549Date: Thu May 21 12:01:19 2015 +0000
3550
3551 upstream commit
3552
3553 Support "ssh-keygen -lF hostname" to find search known_hosts
3554 and print key hashes. Already advertised by ssh-keygen(1), but not delivered
3555 by code; ok dtucker@
3556
3557 Upstream-ID: 459e0e2bf39825e41b0811c336db2d56a1c23387
3558
3559commit e97201feca10b5196da35819ae516d0b87cf3a50
3560Author: Damien Miller <djm@mindrot.org>
3561Date: Thu May 21 17:55:15 2015 +1000
3562
3563 conditionalise util.h inclusion
3564
3565commit 13640798c7dd011ece0a7d02841fe48e94cfa0e0
3566Author: djm@openbsd.org <djm@openbsd.org>
3567Date: Thu May 21 06:44:25 2015 +0000
3568
3569 upstream commit
3570
3571 regress test for AuthorizedPrincipalsCommand
3572
3573 Upstream-Regress-ID: c658fbf1ab6b6011dc83b73402322e396f1e1219
3574
3575commit 84452c5d03c21f9bfb28c234e0dc1dc67dd817b1
3576Author: djm@openbsd.org <djm@openbsd.org>
3577Date: Thu May 21 06:40:02 2015 +0000
3578
3579 upstream commit
3580
3581 regress test for AuthorizedKeysCommand arguments
3582
3583 Upstream-Regress-ID: bbd65c13c6b3be9a442ec115800bff9625898f12
3584
3585commit bcc50d816187fa9a03907ac1f3a52f04a52e10d1
3586Author: djm@openbsd.org <djm@openbsd.org>
3587Date: Thu May 21 06:43:30 2015 +0000
3588
3589 upstream commit
3590
3591 add AuthorizedPrincipalsCommand that allows getting
3592 authorized_principals from a subprocess rather than a file, which is quite
3593 useful in deployments with large userbases
3594
3595 feedback and ok markus@
3596
3597 Upstream-ID: aa1bdac7b16fc6d2fa3524ef08f04c7258d247f6
3598
3599commit 24232a3e5ab467678a86aa67968bbb915caffed4
3600Author: djm@openbsd.org <djm@openbsd.org>
3601Date: Thu May 21 06:38:35 2015 +0000
3602
3603 upstream commit
3604
3605 support arguments to AuthorizedKeysCommand
3606
3607 bz#2081 loosely based on patch by Sami Hartikainen
3608 feedback and ok markus@
3609
3610 Upstream-ID: b080387a14aa67dddd8ece67c00f268d626541f7
3611
3612commit d80fbe41a57c72420c87a628444da16d09d66ca7
3613Author: djm@openbsd.org <djm@openbsd.org>
3614Date: Thu May 21 04:55:51 2015 +0000
3615
3616 upstream commit
3617
3618 refactor: split base64 encoding of pubkey into its own
3619 sshkey_to_base64() function and out of sshkey_write(); ok markus@
3620
3621 Upstream-ID: 54fc38f5832e9b91028900819bda46c3959a0c1a
3622
3623commit 7cc44ef74133a473734bbcbd3484f24d6a7328c5
3624Author: deraadt@openbsd.org <deraadt@openbsd.org>
3625Date: Mon May 18 15:06:05 2015 +0000
3626
3627 upstream commit
3628
3629 getentropy() and sendsyslog() have been around long
3630 enough. openssh-portable may want the #ifdef's but not base. discussed with
3631 djm few weeks back
3632
3633 Upstream-ID: 0506a4334de108e3fb6c66f8d6e0f9c112866926
3634
3635commit 9173d0fbe44de7ebcad8a15618e13a8b8d78902e
3636Author: dtucker@openbsd.org <dtucker@openbsd.org>
3637Date: Fri May 15 05:44:21 2015 +0000
3638
3639 upstream commit
3640
3641 Use a salted hash of the lock passphrase instead of plain
3642 text and do constant-time comparisons of it. Should prevent leaking any
3643 information about it via timing, pointed out by Ryan Castellucci. Add a 0.1s
3644 incrementing delay for each failed unlock attempt up to 10s. ok markus@
3645 (earlier version), djm@
3646
3647 Upstream-ID: c599fcc325aa1cc65496b25220b622d22208c85f
3648
3649commit d028d5d3a697c71b21e4066d8672cacab3caa0a8
3650Author: Damien Miller <djm@mindrot.org>
3651Date: Tue May 5 19:10:58 2015 +1000
3652
3653 upstream commit
3654
3655 - tedu@cvs.openbsd.org 2015/01/12 03:20:04
3656 [bcrypt_pbkdf.c]
3657 rename blocks to words. bcrypt "blocks" are unrelated to blowfish blocks,
3658 nor are they the same size.
3659
3660commit f6391d4e59b058984163ab28f4e317e7a72478f1
3661Author: Damien Miller <djm@mindrot.org>
3662Date: Tue May 5 19:10:23 2015 +1000
3663
3664 upstream commit
3665
3666 - deraadt@cvs.openbsd.org 2015/01/08 00:30:07
3667 [bcrypt_pbkdf.c]
3668 declare a local version of MIN(), call it MINIMUM()
3669
3670commit 8ac6b13cc9113eb47cd9e86c97d7b26b4b71b77f
3671Author: Damien Miller <djm@mindrot.org>
3672Date: Tue May 5 19:09:46 2015 +1000
3673
3674 upstream commit
3675
3676 - djm@cvs.openbsd.org 2014/12/30 01:41:43
3677 [bcrypt_pbkdf.c]
3678 typo in comment: ouput => output
3679
3680commit 1f792489d5cf86a4f4e3003e6e9177654033f0f2
3681Author: djm@openbsd.org <djm@openbsd.org>
3682Date: Mon May 4 06:10:48 2015 +0000
3683
3684 upstream commit
3685
3686 Remove pattern length argument from match_pattern_list(), we
3687 only ever use it for strlen(pattern).
3688
3689 Prompted by hanno AT hboeck.de pointing an out-of-bound read
3690 error caused by an incorrect pattern length found using AFL
3691 and his own tools.
3692
3693 ok markus@
3694
3695commit 639d6bc57b1942393ed12fb48f00bc05d4e093e4
3696Author: djm@openbsd.org <djm@openbsd.org>
3697Date: Fri May 1 07:10:01 2015 +0000
3698
3699 upstream commit
3700
3701 refactor ssh_dispatch_run_fatal() to use sshpkt_fatal()
3702 to better report error conditions. Teach sshpkt_fatal() about ECONNRESET.
3703
3704 Improves error messages on TCP connection resets. bz#2257
3705
3706 ok dtucker@
3707
3708commit 9559d7de34c572d4d3fd990ca211f8ec99f62c4d
3709Author: djm@openbsd.org <djm@openbsd.org>
3710Date: Fri May 1 07:08:08 2015 +0000
3711
3712 upstream commit
3713
3714 a couple of parse targets were missing activep checks,
3715 causing them to be misapplied in match context; bz#2272 diagnosis and
3716 original patch from Sami Hartikainen ok dtucker@
3717
3718commit 7e8528cad04b2775c3b7db08abf8fb42e47e6b2a
3719Author: djm@openbsd.org <djm@openbsd.org>
3720Date: Fri May 1 04:17:51 2015 +0000
3721
3722 upstream commit
3723
3724 make handling of AuthorizedPrincipalsFile=none more
3725 consistent with other =none options; bz#2288 from Jakub Jelen; ok dtucker@
3726
3727commit ca430d4d9cc0f62eca3b1fb1e2928395b7ce80f7
3728Author: djm@openbsd.org <djm@openbsd.org>
3729Date: Fri May 1 04:03:20 2015 +0000
3730
3731 upstream commit
3732
3733 remove failed remote forwards established by muliplexing
3734 from the list of active forwards; bz#2363, patch mostly by Yoann Ricordel; ok
3735 dtucker@
3736
3737commit 8312cfb8ad88657517b3e23ac8c56c8e38eb9792
3738Author: djm@openbsd.org <djm@openbsd.org>
3739Date: Fri May 1 04:01:58 2015 +0000
3740
3741 upstream commit
3742
3743 reduce stderr spam when using ssh -S /path/mux -O forward
3744 -R 0:... ok dtucker@
3745
3746commit 179be0f5e62f1f492462571944e45a3da660d82b
3747Author: djm@openbsd.org <djm@openbsd.org>
3748Date: Fri May 1 03:23:51 2015 +0000
3749
3750 upstream commit
3751
3752 prevent authorized_keys options picked up on public key
3753 tests without a corresponding private key authentication being applied to
3754 other authentication methods. Reported by halex@, ok markus@
3755
3756commit a42d67be65b719a430b7fcaba2a4e4118382723a
3757Author: djm@openbsd.org <djm@openbsd.org>
3758Date: Fri May 1 03:20:54 2015 +0000
3759
3760 upstream commit
3761
3762 Don't make parsing of authorized_keys' environment=
3763 option conditional on PermitUserEnv - always parse it, but only use the
3764 result if the option is enabled. This prevents the syntax of authorized_keys
3765 changing depending on which sshd_config options were enabled.
3766
3767 bz#2329; based on patch from coladict AT gmail.com, ok dtucker@
3768
3769commit e661a86353e11592c7ed6a847e19a83609f49e77
3770Author: djm@openbsd.org <djm@openbsd.org>
3771Date: Mon May 4 06:10:48 2015 +0000
3772
3773 upstream commit
3774
3775 Remove pattern length argument from match_pattern_list(), we
3776 only ever use it for strlen(pattern).
3777
3778 Prompted by hanno AT hboeck.de pointing an out-of-bound read
3779 error caused by an incorrect pattern length found using AFL
3780 and his own tools.
3781
3782 ok markus@
3783
3784commit 0ef1de742be2ee4b10381193fe90730925b7f027
3785Author: dtucker@openbsd.org <dtucker@openbsd.org>
3786Date: Thu Apr 23 05:01:19 2015 +0000
3787
3788 upstream commit
3789
3790 Add a simple regression test for sshd's configuration
3791 parser. Right now, all it does is run the output of sshd -T back through
3792 itself and ensure the output is valid and invariant.
3793
3794commit 368f83c793275faa2c52f60eaa9bdac155c4254b
3795Author: djm@openbsd.org <djm@openbsd.org>
3796Date: Wed Apr 22 01:38:36 2015 +0000
3797
3798 upstream commit
3799
3800 use correct key for nested certificate test
3801
3802commit 8d4d1bfddbbd7d21f545dc6997081d1ea1fbc99a
3803Author: djm@openbsd.org <djm@openbsd.org>
3804Date: Fri May 1 07:11:47 2015 +0000
3805
3806 upstream commit
3807
3808 mention that the user's shell from /etc/passwd is used
3809 for commands too; bz#1459 ok dtucker@
3810
3811commit 5ab283d0016bbc9d4d71e8e5284d011bc5a930cf
3812Author: djm@openbsd.org <djm@openbsd.org>
3813Date: Fri May 8 07:29:00 2015 +0000
3814
3815 upstream commit
3816
3817 whitespace
3818
3819 Upstream-Regress-ID: 6b708a3e709d5b7fd37890f874bafdff1f597519
3820
3821commit 8377d5008ad260048192e1e56ad7d15a56d103dd
3822Author: djm@openbsd.org <djm@openbsd.org>
3823Date: Fri May 8 07:26:13 2015 +0000
3824
3825 upstream commit
3826
3827 whitespace at EOL
3828
3829 Upstream-Regress-ID: 9c48911643d5b05173b36a012041bed4080b8554
3830
3831commit c28a3436fa8737709ea88e4437f8f23a6ab50359
3832Author: djm@openbsd.org <djm@openbsd.org>
3833Date: Fri May 8 06:45:13 2015 +0000
3834
3835 upstream commit
3836
3837 moar whitespace at eol
3838
3839 Upstream-ID: 64eaf872a3ba52ed41e494287e80d40aaba4b515
3840
3841commit 2b64c490468fd4ca35ac8d5cc31c0520dc1508bb
3842Author: djm@openbsd.org <djm@openbsd.org>
3843Date: Fri May 8 06:41:56 2015 +0000
3844
3845 upstream commit
3846
3847 whitespace at EOL
3848
3849 Upstream-ID: 57bcf67d666c6fc1ad798aee448fdc3f70f7ec2c
3850
3851commit 4e636cf201ce6e7e3b9088568218f9d4e2c51712
3852Author: djm@openbsd.org <djm@openbsd.org>
3853Date: Fri May 8 03:56:51 2015 +0000
3854
3855 upstream commit
3856
3857 whitespace at EOL
3858
3859commit 38b8272f823dc1dd4e29dbcee83943ed48bb12fa
3860Author: dtucker@openbsd.org <dtucker@openbsd.org>
3861Date: Mon May 4 01:47:53 2015 +0000
3862
3863 upstream commit
3864
3865 Use diff w/out -u for better portability
3866
3867commit 297060f42d5189a4065ea1b6f0afdf6371fb0507
3868Author: dtucker@openbsd.org <dtucker@openbsd.org>
3869Date: Fri May 8 03:25:07 2015 +0000
3870
3871 upstream commit
3872
3873 Use xcalloc for permitted_adm_opens instead of xmalloc to
3874 ensure it's zeroed. Fixes post-auth crash with permitopen=none. bz#2355, ok
3875 djm@
3876
3877commit 63ebf019be863b2d90492a85e248cf55a6e87403
3878Author: djm@openbsd.org <djm@openbsd.org>
3879Date: Fri May 8 03:17:49 2015 +0000
3880
3881 upstream commit
3882
3883 don't choke on new-format private keys encrypted with an
3884 AEAD cipher; bz#2366, patch from Ron Frederick; ok markus@
3885
3886commit f8484dac678ab3098ae522a5f03bb2530f822987
3887Author: dtucker@openbsd.org <dtucker@openbsd.org>
3888Date: Wed May 6 05:45:17 2015 +0000
3889
3890 upstream commit
3891
3892 Clarify pseudo-terminal request behaviour and use
3893 "pseudo-terminal" consistently. bz#1716, ok jmc@ "I like it" deraadt@.
3894
3895commit ea139507bef8bad26e86ed99a42c7233ad115c38
3896Author: dtucker@openbsd.org <dtucker@openbsd.org>
3897Date: Wed May 6 04:07:18 2015 +0000
3898
3899 upstream commit
3900
3901 Blacklist DH-GEX for specific PuTTY versions known to
3902 send non-RFC4419 DH-GEX messages rather than all versions of PuTTY.
3903 According to Simon Tatham, 0.65 and newer versions will send RFC4419 DH-GEX
3904 messages. ok djm@
3905
3906commit b58234f00ee3872eb84f6e9e572a9a34e902e36e
3907Author: dtucker@openbsd.org <dtucker@openbsd.org>
3908Date: Tue May 5 10:17:49 2015 +0000
3909
3910 upstream commit
3911
3912 WinSCP doesn't implement RFC4419 DH-GEX so flag it so we
3913 don't offer that KEX method. ok markus@
3914
3915commit d5b1507a207253b39e810e91e68f9598691b7a29
3916Author: jsg@openbsd.org <jsg@openbsd.org>
3917Date: Tue May 5 02:48:17 2015 +0000
3918
3919 upstream commit
3920
3921 use the sizeof the struct not the sizeof a pointer to the
3922 struct in ssh_digest_start()
3923
3924 This file is only used if ssh is built with OPENSSL=no
3925
3926 ok markus@
3927
3928commit a647b9b8e616c231594b2710c925d31b1b8afea3
3929Author: Darren Tucker <dtucker@zip.com.au>
3930Date: Fri May 8 11:07:27 2015 +1000
3931
3932 Put brackets around mblen() compat constant.
3933
3934 This might help with the reported problem cross compiling for Android
3935 ("error: expected identifier or '(' before numeric constant") but
3936 shouldn't hurt in any case.
3937
3938commit d1680d36e17244d9af3843aeb5025cb8e40d6c07
3939Author: Darren Tucker <dtucker@zip.com.au>
3940Date: Thu Apr 30 09:18:11 2015 +1000
3941
3942 xrealloc -> xreallocarray in portable code too.
3943
3944commit 531a57a3893f9fcd4aaaba8c312b612bbbcc021e
3945Author: dtucker@openbsd.org <dtucker@openbsd.org>
3946Date: Wed Apr 29 03:48:56 2015 +0000
3947
3948 upstream commit
3949
3950 Allow ListenAddress, Port and AddressFamily in any
3951 order. bz#68, ok djm@, jmc@ (for the man page bit).
3952
3953commit c1d5bcf1aaf1209af02f79e48ba1cbc76a87b56f
3954Author: jmc@openbsd.org <jmc@openbsd.org>
3955Date: Tue Apr 28 13:47:38 2015 +0000
3956
3957 upstream commit
3958
3959 enviroment -> environment: apologies to darren for not
3960 spotting that first time round...
3961
3962commit 43beea053db191cac47c2cd8d3dc1930158aff1a
3963Author: dtucker@openbsd.org <dtucker@openbsd.org>
3964Date: Tue Apr 28 10:25:15 2015 +0000
3965
3966 upstream commit
3967
3968 Fix typo in previous
3969
3970commit 85b96ef41374f3ddc9139581f87da09b2cd9199e
3971Author: dtucker@openbsd.org <dtucker@openbsd.org>
3972Date: Tue Apr 28 10:17:58 2015 +0000
3973
3974 upstream commit
3975
3976 Document that the TERM environment variable is not
3977 subject to SendEnv and AcceptEnv. bz#2386, based loosely on a patch from
3978 jjelen at redhat, help and ok jmc@
3979
3980commit 88a7c598a94ff53f76df228eeaae238d2d467565
3981Author: djm@openbsd.org <djm@openbsd.org>
3982Date: Mon Apr 27 21:42:48 2015 +0000
3983
3984 upstream commit
3985
3986 Make sshd default to PermitRootLogin=no; ok deraadt@
3987 rpe@
3988
3989commit 734226b4480a6c736096c729fcf6f391400599c7
3990Author: djm@openbsd.org <djm@openbsd.org>
3991Date: Mon Apr 27 01:52:30 2015 +0000
3992
3993 upstream commit
3994
3995 fix compilation with OPENSSL=no; ok dtucker@
3996
3997commit a4b9d2ce1eb7703eaf0809b0c8a82ded8aa4f1c6
3998Author: dtucker@openbsd.org <dtucker@openbsd.org>
3999Date: Mon Apr 27 00:37:53 2015 +0000
4000
4001 upstream commit
4002
4003 Include stdio.h for FILE (used in sshkey.h) so it
4004 compiles with OPENSSL=no.
4005
4006commit dbcc652f4ca11fe04e5930c7ef18a219318c6cda
4007Author: djm@openbsd.org <djm@openbsd.org>
4008Date: Mon Apr 27 00:21:21 2015 +0000
4009
4010 upstream commit
4011
4012 allow "sshd -f none" to skip reading the config file,
4013 much like "ssh -F none" does. ok dtucker
4014
4015commit b7ca276fca316c952f0b90f5adb1448c8481eedc
4016Author: jmc@openbsd.org <jmc@openbsd.org>
4017Date: Fri Apr 24 06:26:49 2015 +0000
4018
4019 upstream commit
4020
4021 combine -Dd onto one line and update usage();
4022
4023commit 2ea974630d7017e4c7666d14d9dc939707613e96
4024Author: djm@openbsd.org <djm@openbsd.org>
4025Date: Fri Apr 24 05:26:44 2015 +0000
4026
4027 upstream commit
4028
4029 add ssh-agent -D to leave ssh-agent in foreground
4030 without enabling debug mode; bz#2381 ok dtucker@
4031
4032commit 8ac2ffd7aa06042f6b924c87139f2fea5c5682f7
4033Author: deraadt@openbsd.org <deraadt@openbsd.org>
4034Date: Fri Apr 24 01:36:24 2015 +0000
4035
4036 upstream commit
4037
4038 2*len -> use xreallocarray() ok djm
4039
4040commit 657a5fbc0d0aff309079ff8fb386f17e964963c2
4041Author: deraadt@openbsd.org <deraadt@openbsd.org>
4042Date: Fri Apr 24 01:36:00 2015 +0000
4043
4044 upstream commit
4045
4046 rename xrealloc() to xreallocarray() since it follows
4047 that form. ok djm
4048
4049commit 1108ae242fdd2c304307b68ddf46aebe43ebffaa
4050Author: dtucker@openbsd.org <dtucker@openbsd.org>
4051Date: Thu Apr 23 04:59:10 2015 +0000
4052
4053 upstream commit
4054
4055 Two small fixes for sshd -T: ListenAddress'es are added
4056 to a list head so reverse the order when printing them to ensure the
4057 behaviour remains the same, and print StreamLocalBindMask as octal with
4058 leading zero. ok deraadt@
4059
4060commit bd902b8473e1168f19378d5d0ae68d0c203525df
4061Author: dtucker@openbsd.org <dtucker@openbsd.org>
4062Date: Thu Apr 23 04:53:53 2015 +0000
4063
4064 upstream commit
4065
4066 Check for and reject missing arguments for
4067 VersionAddendum and ForceCommand. bz#2281, patch from plautrba at redhat com,
4068 ok djm@
4069
4070commit ca42c1758575e592239de1d5755140e054b91a0d
4071Author: djm@openbsd.org <djm@openbsd.org>
4072Date: Wed Apr 22 01:24:01 2015 +0000
4073
4074 upstream commit
4075
4076 unknown certificate extensions are non-fatal, so don't
4077 fatal when they are encountered; bz#2387 reported by Bob Van Zant; ok
4078 dtucker@
4079
4080commit 39bfbf7caad231cc4bda6909fb1af0705bca04d8
4081Author: jsg@openbsd.org <jsg@openbsd.org>
4082Date: Tue Apr 21 07:01:00 2015 +0000
4083
4084 upstream commit
4085
4086 Add back a backslash removed in rev 1.42 so
4087 KEX_SERVER_ENCRYPT will include aes again.
4088
4089 ok deraadt@
4090
4091commit 6b0d576bb87eca3efd2b309fcfe4edfefc289f9c
4092Author: djm@openbsd.org <djm@openbsd.org>
4093Date: Fri Apr 17 13:32:09 2015 +0000
4094
4095 upstream commit
4096
4097 s/recommended/required/ that private keys be og-r this
4098 wording change was made a while ago but got accidentally reverted
4099
4100commit 44a8e7ce6f3ab4c2eb1ae49115c210b98e53c4df
4101Author: djm@openbsd.org <djm@openbsd.org>
4102Date: Fri Apr 17 13:25:52 2015 +0000
4103
4104 upstream commit
4105
4106 don't try to cleanup NULL KEX proposals in
4107 kex_prop_free(); found by Jukka Taimisto and Markus Hietava
4108
4109commit 3038a191872d2882052306098c1810d14835e704
4110Author: djm@openbsd.org <djm@openbsd.org>
4111Date: Fri Apr 17 13:19:22 2015 +0000
4112
4113 upstream commit
4114
4115 use error/logit/fatal instead of fprintf(stderr, ...)
4116 and exit(0), fix a few errors that were being printed to stdout instead of
4117 stderr and a few non-errors that were going to stderr instead of stdout
4118 bz#2325; ok dtucker
4119
4120commit a58be33cb6cd24441fa7e634db0e5babdd56f07f
4121Author: djm@openbsd.org <djm@openbsd.org>
4122Date: Fri Apr 17 13:16:48 2015 +0000
4123
4124 upstream commit
4125
4126 debug log missing DISPLAY environment when X11
4127 forwarding requested; bz#1682 ok dtucker@
4128
4129commit 17d4d9d9fbc8fb80e322f94d95eecc604588a474
4130Author: djm@openbsd.org <djm@openbsd.org>
4131Date: Fri Apr 17 04:32:31 2015 +0000
4132
4133 upstream commit
4134
4135 don't call record_login() in monitor when UseLogin is
4136 enabled; bz#278 reported by drk AT sgi.com; ok dtucker
4137
4138commit 40132ff87b6cbc3dc05fb5df2e9d8e3afa06aafd
4139Author: dtucker@openbsd.org <dtucker@openbsd.org>
4140Date: Fri Apr 17 04:12:35 2015 +0000
4141
4142 upstream commit
4143
4144 Add some missing options to sshd -T and fix the output
4145 of VersionAddendum HostCertificate. bz#2346, patch from jjelen at redhat
4146 com, ok djm.
4147
4148commit 6cc7cfa936afde2d829e56ee6528c7ea47a42441
4149Author: dtucker@openbsd.org <dtucker@openbsd.org>
4150Date: Thu Apr 16 23:25:50 2015 +0000
4151
4152 upstream commit
4153
4154 Document "none" for PidFile XAuthLocation
4155 TrustedUserCAKeys and RevokedKeys. bz#2382, feedback from jmc@, ok djm@
4156
4157commit 15fdfc9b1c6808b26bc54d4d61a38b54541763ed
4158Author: dtucker@openbsd.org <dtucker@openbsd.org>
4159Date: Wed Apr 15 23:23:25 2015 +0000
4160
4161 upstream commit
4162
4163 Plug leak of address passed to logging. bz#2373, patch
4164 from jjelen at redhat, ok markus@
4165
4166commit bb2289e2a47d465eaaaeff3dee2a6b7777b4c291
4167Author: dtucker@openbsd.org <dtucker@openbsd.org>
4168Date: Tue Apr 14 04:17:03 2015 +0000
4169
4170 upstream commit
4171
4172 Output remote username in debug output since with Host
4173 and Match it's not always obvious what it will be. bz#2368, ok djm@
4174
4175commit 70860b6d07461906730632f9758ff1b7c98c695a
4176Author: Darren Tucker <dtucker@zip.com.au>
4177Date: Fri Apr 17 10:56:13 2015 +1000
4178
4179 Format UsePAM setting when using sshd -T.
4180
4181 Part of bz#2346, patch from jjelen at redhat com.
4182
4183commit ee15d9c9f0720f5a8b0b34e4b10ecf21f9824814
4184Author: Darren Tucker <dtucker@zip.com.au>
4185Date: Fri Apr 17 10:40:23 2015 +1000
4186
4187 Wrap endian.h include inside ifdef (bz#2370).
4188
4189commit 408f4c2ad4a4c41baa7b9b2b7423d875abbfa70b
4190Author: Darren Tucker <dtucker@zip.com.au>
4191Date: Fri Apr 17 09:39:58 2015 +1000
4192
4193 Look for '${host}-ar' before 'ar'.
4194
4195 This changes configure.ac to look for '${host}-ar' as set by
4196 AC_CANONICAL_HOST before looking for the unprefixed 'ar'.
4197 Useful when cross-compiling when all your binutils are prefixed.
4198
4199 Patch from moben at exherbo org via astrand at lysator liu se and
4200 bz#2352.
4201
4202commit 673a1c16ad078d41558247ce739fe812c960acc8
4203Author: Damien Miller <djm@google.com>
4204Date: Thu Apr 16 11:40:20 2015 +1000
4205
4206 remove dependency on arpa/telnet.h
4207
4208commit 202d443eeda1829d336595a3cfc07827e49f45ed
4209Author: Darren Tucker <dtucker@zip.com.au>
4210Date: Wed Apr 15 15:59:49 2015 +1000
4211
4212 Remove duplicate include of pwd.h. bz#2337, patch from Mordy Ovits.
4213
4214commit 597986493412c499f2bc2209420cb195f97b3668
4215Author: Damien Miller <djm@google.com>
4216Date: Thu Apr 9 10:14:48 2015 +1000
4217
4218 platform's with openpty don't need pty_release
4219
4220commit 318be28cda1fd9108f2e6f2f86b0b7589ba2aed0
4221Author: djm@openbsd.org <djm@openbsd.org>
4222Date: Mon Apr 13 02:04:08 2015 +0000
4223
4224 upstream commit
4225
4226 deprecate ancient, pre-RFC4419 and undocumented
4227 SSH2_MSG_KEX_DH_GEX_REQUEST_OLD message; ok markus@ deraadt@ "seems
4228 reasonable" dtucker@
4229
4230commit d8f391caef62378463a0e6b36f940170dadfe605
4231Author: dtucker@openbsd.org <dtucker@openbsd.org>
4232Date: Fri Apr 10 05:16:50 2015 +0000
4233
4234 upstream commit
4235
4236 Don't send hostkey advertisments
4237 (hostkeys-00@openssh.com) to current versions of Tera Term as they can't
4238 handle them. Newer versions should be OK. Patch from Bryan Drewery and
4239 IWAMOTO Kouichi, ok djm@
4240
4241commit 2c2cfe1a1c97eb9a08cc9817fd0678209680c636
4242Author: djm@openbsd.org <djm@openbsd.org>
4243Date: Fri Apr 10 00:08:55 2015 +0000
4244
4245 upstream commit
4246
4247 include port number if a non-default one has been
4248 specified; based on patch from Michael Handler
4249
4250commit 4492a4f222da4cf1e8eab12689196322e27b08c4
4251Author: djm@openbsd.org <djm@openbsd.org>
4252Date: Tue Apr 7 23:00:42 2015 +0000
4253
4254 upstream commit
4255
4256 treat Protocol=1,2|2,1 as Protocol=2 when compiled
4257 without SSH1 support; ok dtucker@ millert@
4258
4259commit c265e2e6e932efc6d86f6cc885dea33637a67564
4260Author: miod@openbsd.org <miod@openbsd.org>
4261Date: Sun Apr 5 15:43:43 2015 +0000
4262
4263 upstream commit
4264
4265 Do not use int for sig_atomic_t; spotted by
4266 christos@netbsd; ok markus@
4267
4268commit e7bf3a5eda6a1b02bef6096fed78527ee11e54cc
4269Author: Darren Tucker <dtucker@zip.com.au>
4270Date: Tue Apr 7 10:48:04 2015 +1000
4271
4272 Use do{}while(0) for no-op functions.
4273
4274 From FreeBSD.
4275
4276commit bb99844abae2b6447272f79e7fa84134802eb4df
4277Author: Darren Tucker <dtucker@zip.com.au>
4278Date: Tue Apr 7 10:47:15 2015 +1000
4279
4280 Wrap blf.h include in ifdef. From FreeBSD.
4281
4282commit d9b9b43656091cf0ad55c122f08fadb07dad0abd
4283Author: Darren Tucker <dtucker@zip.com.au>
4284Date: Tue Apr 7 09:10:00 2015 +1000
4285
4286 Fix misspellings of regress CONFOPTS env variables.
4287
4288 Patch from Bryan Drewery.
4289
4290commit 3f4ea3c9ab1d32d43c9222c4351f58ca11144156
4291Author: djm@openbsd.org <djm@openbsd.org>
4292Date: Fri Apr 3 22:17:27 2015 +0000
4293
4294 upstream commit
4295
4296 correct return value in pubkey parsing, spotted by Ben Hawkes
4297 ok markus@
4298
4299commit 7da2be0cb9601ed25460c83aa4d44052b967ba0f
4300Author: djm@openbsd.org <djm@openbsd.org>
4301Date: Tue Mar 31 22:59:01 2015 +0000
4302
4303 upstream commit
4304
4305 adapt to recent hostfile.c change: when parsing
4306 known_hosts without fully parsing the keys therein, hostkeys_foreach() will
4307 now correctly identify KEY_RSA1 keys; ok markus@ miod@
4308
4309commit 9e1777a0d1c706714b055811c12ab8cc21033e4a
4310Author: markus@openbsd.org <markus@openbsd.org>
4311Date: Tue Mar 24 20:19:15 2015 +0000
4312
4313 upstream commit
4314
4315 use ${SSH} for -Q instead of installed ssh
4316
4317commit ce1b358ea414a2cc88e4430cd5a2ea7fecd9de57
4318Author: djm@openbsd.org <djm@openbsd.org>
4319Date: Mon Mar 16 22:46:14 2015 +0000
4320
4321 upstream commit
4322
4323 make CLEANFILES clean up more of the tests' droppings
4324
4325commit 398f9ef192d820b67beba01ec234d66faca65775
4326Author: djm@openbsd.org <djm@openbsd.org>
4327Date: Tue Mar 31 22:57:06 2015 +0000
4328
4329 upstream commit
4330
4331 downgrade error() for known_hosts parse errors to debug()
4332 to quiet warnings from ssh1 keys present when compiled !ssh1.
4333
4334 also identify ssh1 keys when scanning, even when compiled !ssh1
4335
4336 ok markus@ miod@
4337
4338commit 9a47ab80030a31f2d122b8fd95bd48c408b9fcd9
4339Author: djm@openbsd.org <djm@openbsd.org>
4340Date: Tue Mar 31 22:55:50 2015 +0000
4341
4342 upstream commit
4343
4344 fd leak for !ssh1 case; found by unittests; ok markus@
4345
4346commit c9a0805a6280681901c270755a7cd630d7c5280e
4347Author: djm@openbsd.org <djm@openbsd.org>
4348Date: Tue Mar 31 22:55:24 2015 +0000
4349
4350 upstream commit
4351
4352 don't fatal when a !ssh1 sshd is reexeced from a w/ssh1
4353 listener; reported by miod@; ok miod@ markus@
4354
4355commit 704d8c88988cae38fb755a6243b119731d223222
4356Author: tobias@openbsd.org <tobias@openbsd.org>
4357Date: Tue Mar 31 11:06:49 2015 +0000
4358
4359 upstream commit
4360
4361 Comments are only supported for RSA1 keys. If a user
4362 tried to add one and entered his passphrase, explicitly clear it before exit.
4363 This is done in all other error paths, too.
4364
4365 ok djm
4366
4367commit 78de1673c05ea2c33e0d4a4b64ecb5186b6ea2e9
4368Author: jmc@openbsd.org <jmc@openbsd.org>
4369Date: Mon Mar 30 18:28:37 2015 +0000
4370
4371 upstream commit
4372
4373 ssh-askpass(1) is the default, overridden by SSH_ASKPASS;
4374 diff originally from jiri b;
4375
4376commit 26e0bcf766fadb4a44fb6199386fb1dcab65ad00
4377Author: djm@openbsd.org <djm@openbsd.org>
4378Date: Mon Mar 30 00:00:29 2015 +0000
4379
4380 upstream commit
4381
4382 fix uninitialised memory read when parsing a config file
4383 consisting of a single nul byte. Found by hanno AT hboeck.de using AFL; ok
4384 dtucker
4385
4386commit fecede00a76fbb33a349f5121c0b2f9fbc04a777
4387Author: markus@openbsd.org <markus@openbsd.org>
4388Date: Thu Mar 26 19:32:19 2015 +0000
4389
4390 upstream commit
4391
4392 sigp and lenp are not optional in ssh_agent_sign(); ok
4393 djm@
4394
4395commit 1b0ef3813244c78669e6d4d54c624f600945327d
4396Author: naddy@openbsd.org <naddy@openbsd.org>
4397Date: Thu Mar 26 12:32:38 2015 +0000
4398
4399 upstream commit
4400
4401 don't try to load .ssh/identity by default if SSH1 is
4402 disabled; ok markus@
4403
4404commit f9b78852379b74a2d14e6fc94fe52af30b7e9c31
4405Author: djm@openbsd.org <djm@openbsd.org>
4406Date: Thu Mar 26 07:00:04 2015 +0000
4407
4408 upstream commit
4409
4410 ban all-zero curve25519 keys as recommended by latest
4411 CFRG curves draft; ok markus
4412
4413commit b8afbe2c1aaf573565e4da775261dfafc8b1ba9c
4414Author: djm@openbsd.org <djm@openbsd.org>
4415Date: Thu Mar 26 06:59:28 2015 +0000
4416
4417 upstream commit
4418
4419 relax bits needed check to allow
4420 diffie-hellman-group1-sha1 key exchange to complete for chacha20-poly1305 was
4421 selected as symmetric cipher; ok markus
4422
4423commit 47842f71e31da130555353c1d57a1e5a8937f1c0
4424Author: markus@openbsd.org <markus@openbsd.org>
4425Date: Wed Mar 25 19:29:58 2015 +0000
4426
4427 upstream commit
4428
4429 ignore v1 errors on ssh-add -D; only try v2 keys on
4430 -l/-L (unless WITH_SSH1) ok djm@
4431
4432commit 5f57e77f91bf2230c09eca96eb5ecec39e5f2da6
4433Author: markus@openbsd.org <markus@openbsd.org>
4434Date: Wed Mar 25 19:21:48 2015 +0000
4435
4436 upstream commit
4437
4438 unbreak ssh_agent_sign (lenp vs *lenp)
4439
4440commit 4daeb67181054f2a377677fac919ee8f9ed3490e
4441Author: markus@openbsd.org <markus@openbsd.org>
4442Date: Tue Mar 24 20:10:08 2015 +0000
4443
4444 upstream commit
4445
4446 don't leak 'setp' on error; noted by Nicholas Lemonias;
4447 ok djm@
4448
4449commit 7d4f96f9de2a18af0d9fa75ea89a4990de0344f5
4450Author: markus@openbsd.org <markus@openbsd.org>
4451Date: Tue Mar 24 20:09:11 2015 +0000
4452
4453 upstream commit
4454
4455 consistent check for NULL as noted by Nicholas
4456 Lemonias; ok djm@
4457
4458commit df100be51354e447d9345cf1ec22e6013c0eed50
4459Author: markus@openbsd.org <markus@openbsd.org>
4460Date: Tue Mar 24 20:03:44 2015 +0000
4461
4462 upstream commit
4463
4464 correct fmt-string for size_t as noted by Nicholas
4465 Lemonias; ok djm@
4466
4467commit a22b9ef21285e81775732436f7c84a27bd3f71e0
4468Author: djm@openbsd.org <djm@openbsd.org>
4469Date: Tue Mar 24 09:17:21 2015 +0000
4470
4471 upstream commit
4472
4473 promote chacha20-poly1305@openssh.com to be the default
4474 cipher; ok markus
4475
4476commit 2aa9da1a3b360cf7b13e96fe1521534b91501fb5
4477Author: djm@openbsd.org <djm@openbsd.org>
4478Date: Tue Mar 24 01:29:19 2015 +0000
4479
4480 upstream commit
4481
4482 Compile-time disable SSH protocol 1. You can turn it
4483 back on using the Makefile.inc knob if you need it to talk to ancient
4484 devices.
4485
4486commit 53097b2022154edf96b4e8526af5666f979503f7
4487Author: djm@openbsd.org <djm@openbsd.org>
4488Date: Tue Mar 24 01:11:12 2015 +0000
4489
4490 upstream commit
4491
4492 fix double-negative error message "ssh1 is not
4493 unsupported"
4494
4495commit 5c27e3b6ec2db711dfcd40e6359c0bcdd0b62ea9
4496Author: djm@openbsd.org <djm@openbsd.org>
4497Date: Mon Mar 23 06:06:38 2015 +0000
4498
4499 upstream commit
4500
4501 for ssh-keygen -A, don't try (and fail) to generate ssh
4502 v.1 keys when compiled without SSH1 support RSA/DSA/ECDSA keys when compiled
4503 without OpenSSL based on patch by Mike Frysinger; bz#2369
4504
4505commit 725fd22a8c41db7de73a638539a5157b7e4424ae
4506Author: djm@openbsd.org <djm@openbsd.org>
4507Date: Wed Mar 18 01:44:21 2015 +0000
4508
4509 upstream commit
4510
4511 KRL support doesn't need OpenSSL anymore, remove #ifdefs
4512 from around call
4513
4514commit b07011c18e0b2e172c5fd09d21fb159a0bf5fcc7
4515Author: djm@openbsd.org <djm@openbsd.org>
4516Date: Mon Mar 16 11:09:52 2015 +0000
4517
4518 upstream commit
4519
4520 #if 0 some more arrays used only for decrypting (we don't
4521 use since we only need encrypt for AES-CTR)
4522
4523commit 1cb3016635898d287e9d58b50c430995652d5358
4524Author: jsg@openbsd.org <jsg@openbsd.org>
4525Date: Wed Mar 11 00:48:39 2015 +0000
4526
4527 upstream commit
4528
4529 add back the changes from rev 1.206, djm reverted this by
4530 mistake in rev 1.207
4531
4532commit 4d24b3b6a4a6383e05e7da26d183b79fa8663697
4533Author: Damien Miller <djm@mindrot.org>
4534Date: Fri Mar 20 09:11:59 2015 +1100
4535
4536 remove error() accidentally inserted for debugging
4537
4538 pointed out by Christian Hesse
4539
4540commit 9f82e5a9042f2d872e98f48a876fcab3e25dd9bb
4541Author: Tim Rice <tim@multitalents.net>
4542Date: Mon Mar 16 22:49:20 2015 -0700
4543
4544 portability fix: Solaris systems may not have a grep that understands -q
4545
4546commit 8ef691f7d9ef500257a549d0906d78187490668f
4547Author: Damien Miller <djm@google.com>
4548Date: Wed Mar 11 10:35:26 2015 +1100
4549
4550 fix compile with clang
4551
4552commit 4df590cf8dc799e8986268d62019b487a8ed63ad
4553Author: Damien Miller <djm@google.com>
4554Date: Wed Mar 11 10:02:39 2015 +1100
4555
4556 make unit tests work for !OPENSSH_HAS_ECC
4557
4558commit 307bb40277ca2c32e97e61d70d1ed74b571fd6ba
4559Author: djm@openbsd.org <djm@openbsd.org>
4560Date: Sat Mar 7 04:41:48 2015 +0000
4561
4562 upstream commit
4563
4564 unbreak for w/SSH1 (default) case; ok markus@ deraadt@
4565
4566commit b44ee0c998fb4c5f3c3281f2398af5ce42840b6f
4567Author: Damien Miller <djm@mindrot.org>
4568Date: Thu Mar 5 18:39:20 2015 -0800
4569
4570 unbreak hostkeys test for w/ SSH1 case
4571
4572commit 55e5bdeb519cb60cc18b7ba0545be581fb8598b4
4573Author: djm@openbsd.org <djm@openbsd.org>
4574Date: Fri Mar 6 01:40:56 2015 +0000
4575
4576 upstream commit
4577
4578 fix sshkey_certify() return value for unsupported key types;
4579 ok markus@ deraadt@
4580
4581commit be8f658e550a434eac04256bfbc4289457a24e99
4582Author: Damien Miller <djm@mindrot.org>
4583Date: Wed Mar 4 15:38:03 2015 -0800
4584
4585 update version numbers to match version.h
4586
4587commit ac5e8acefa253eb5e5ba186e34236c0e8007afdc
4588Author: djm@openbsd.org <djm@openbsd.org>
4589Date: Wed Mar 4 23:22:35 2015 +0000
4590
4591 upstream commit
4592
4593 make these work with !SSH1; ok markus@ deraadt@
4594
4595commit 2f04af92f036b0c87a23efb259c37da98cd81fe6
4596Author: djm@openbsd.org <djm@openbsd.org>
4597Date: Wed Mar 4 21:12:59 2015 +0000
4598
4599 upstream commit
4600
4601 make ssh-add -D work with !SSH1 agent
4602
4603commit a05adf95d2af6abb2b7826ddaa7a0ec0cdc1726b
4604Author: Damien Miller <djm@mindrot.org>
4605Date: Wed Mar 4 00:55:48 2015 -0800
4606
4607 netcat needs poll.h portability goop
4608
4609commit dad2b1892b4c1b7e58df483a8c5b983c4454e099
4610Author: markus@openbsd.org <markus@openbsd.org>
4611Date: Tue Mar 3 22:35:19 2015 +0000
4612
4613 upstream commit
4614
4615 make it possible to run tests w/o ssh1 support; ok djm@
4616
4617commit d48a22601bdd3eec054794c535f4ae8d8ae4c6e2
4618Author: djm@openbsd.org <djm@openbsd.org>
4619Date: Wed Mar 4 18:53:53 2015 +0000
4620
4621 upstream commit
4622
4623 crank; ok markus, deraadt
4624
4625commit bbffb23daa0b002dd9f296e396a9ab8a5866b339
4626Author: Damien Miller <djm@mindrot.org>
4627Date: Tue Mar 3 13:50:27 2015 -0800
4628
4629 more --without-ssh1 fixes
4630
4631commit 6c2039286f503e2012a58a1d109e389016e7a99b
4632Author: Damien Miller <djm@mindrot.org>
4633Date: Tue Mar 3 13:48:48 2015 -0800
4634
4635 fix merge both that broke --without-ssh1 compile
4636
4637commit 111dfb225478a76f89ecbcd31e96eaf1311b59d3
4638Author: djm@openbsd.org <djm@openbsd.org>
4639Date: Tue Mar 3 21:21:13 2015 +0000
4640
4641 upstream commit
4642
4643 add SSH1 Makefile knob to make it easier to build without
4644 SSH1 support; ok markus@
4645
4646commit 3f7f5e6c5d2aa3f6710289c1a30119e534e56c5c
4647Author: djm@openbsd.org <djm@openbsd.org>
4648Date: Tue Mar 3 20:42:49 2015 +0000
4649
4650 upstream commit
4651
4652 expand __unused to full __attribute__ for better portability
4653
4654commit 2fab9b0f8720baf990c931e3f68babb0bf9949c6
4655Author: Damien Miller <djm@mindrot.org>
4656Date: Wed Mar 4 07:41:27 2015 +1100
4657
4658 avoid warning
4659
4660commit d1bc844322461f882b4fd2277ba9a8d4966573d2
4661Author: Damien Miller <djm@mindrot.org>
4662Date: Wed Mar 4 06:31:45 2015 +1100
4663
4664 Revert "define __unused to nothing if not already defined"
4665
4666 This reverts commit 1598419e38afbaa8aa5df8dd6b0af98301e2c908.
4667
4668 Some system headers have objects named __unused
4669
4670commit 00797e86b2d98334d1bb808f65fa1fd47f328ff1
4671Author: Damien Miller <djm@mindrot.org>
4672Date: Wed Mar 4 05:02:45 2015 +1100
4673
4674 check for crypt and DES_crypt in openssl block
4675
4676 fixes builds on systems that use DES_crypt; based on patch
4677 from Roumen Petrov
4678
4679commit 1598419e38afbaa8aa5df8dd6b0af98301e2c908
4680Author: Damien Miller <djm@mindrot.org>
4681Date: Wed Mar 4 04:59:13 2015 +1100
4682
4683 define __unused to nothing if not already defined
4684
4685 fixes builds on BSD/OS
4686
4687commit d608a51daad4f14ad6ab43d7cf74ef4801cc3fe9
4688Author: djm@openbsd.org <djm@openbsd.org>
4689Date: Tue Mar 3 17:53:40 2015 +0000
4690
4691 upstream commit
4692
4693 reorder logic for better portability; patch from Roumen
4694 Petrov
4695
4696commit 68d2dfc464fbcdf8d6387884260f9801f4352393
4697Author: djm@openbsd.org <djm@openbsd.org>
4698Date: Tue Mar 3 06:48:58 2015 +0000
4699
4700 upstream commit
4701
4702 Allow "ssh -Q protocol-version" to list supported SSH
4703 protocol versions. Useful for detecting builds without SSH v.1 support; idea
4704 and ok markus@
4705
4706commit 39e2f1229562e1195169905607bc12290d21f021
4707Author: millert@openbsd.org <millert@openbsd.org>
4708Date: Sun Mar 1 15:44:40 2015 +0000
4709
4710 upstream commit
4711
4712 Make sure we only call getnameinfo() for AF_INET or AF_INET6
4713 sockets. getpeername() of a Unix domain socket may return without error on
4714 some systems without actually setting ss_family so getnameinfo() was getting
4715 called with ss_family set to AF_UNSPEC. OK djm@
4716
4717commit e47536ba9692d271b8ad89078abdecf0a1c11707
4718Author: Damien Miller <djm@mindrot.org>
4719Date: Sat Feb 28 08:20:11 2015 -0800
4720
4721 portability fixes for regress/netcat.c
4722
4723 Mostly avoiding "err(1, NULL)"
4724
4725commit 02973ad5f6f49d8420e50a392331432b0396c100
4726Author: Damien Miller <djm@mindrot.org>
4727Date: Sat Feb 28 08:05:27 2015 -0800
4728
4729 twiddle another test for portability
4730
4731 from Tom G. Christensen
4732
4733commit f7f3116abf2a6e2f309ab096b08c58d19613e5d0
4734Author: Damien Miller <djm@mindrot.org>
4735Date: Fri Feb 27 15:52:49 2015 -0800
4736
4737 twiddle test for portability
4738
4739commit 1ad3a77cc9d5568f5437ff99d377aa7a41859b83
4740Author: Damien Miller <djm@mindrot.org>
4741Date: Thu Feb 26 20:33:22 2015 -0800
4742
4743 make regress/netcat.c fd passing (more) portable
4744
4745commit 9e1cfca7e1fe9cf8edb634fc894e43993e4da1ea
4746Author: Damien Miller <djm@mindrot.org>
4747Date: Thu Feb 26 20:32:58 2015 -0800
4748
4749 create OBJ/valgrind-out before running unittests
4750
4751commit bd58853102cee739f0e115e6d4b5334332ab1442
4752Author: Damien Miller <djm@mindrot.org>
4753Date: Wed Feb 25 16:58:22 2015 -0800
4754
4755 valgrind support
4756
4757commit f43d17269194761eded9e89f17456332f4c83824
4758Author: djm@openbsd.org <djm@openbsd.org>
4759Date: Thu Feb 26 20:45:47 2015 +0000
4760
4761 upstream commit
4762
4763 don't printf NULL key comments; reported by Tom Christensen
4764
4765commit 6e6458b476ec854db33e3e68ebf4f489d0ab3df8
4766Author: djm@openbsd.org <djm@openbsd.org>
4767Date: Wed Feb 25 23:05:47 2015 +0000
4768
4769 upstream commit
4770
4771 zero cmsgbuf before use; we initialise the bits we use
4772 but valgrind still spams warning on it
4773
4774commit a63cfa26864b93ab6afefad0b630e5358ed8edfa
4775Author: djm@openbsd.org <djm@openbsd.org>
4776Date: Wed Feb 25 19:54:02 2015 +0000
4777
4778 upstream commit
4779
4780 fix small memory leak when UpdateHostkeys=no
4781
4782commit e6b950341dd75baa8526f1862bca39e52f5b879b
4783Author: Tim Rice <tim@multitalents.net>
4784Date: Wed Feb 25 09:56:48 2015 -0800
4785
4786 Revert "Work around finicky USL linker so netcat will build."
4787
4788 This reverts commit d1db656021d0cd8c001a6692f772f1de29b67c8b.
4789
4790 No longer needed with commit 678e473e2af2e4802f24dd913985864d9ead7fb3
4791
4792commit 6f621603f9cff2a5d6016a404c96cb2f8ac2dec0
4793Author: djm@openbsd.org <djm@openbsd.org>
4794Date: Wed Feb 25 17:29:38 2015 +0000
4795
4796 upstream commit
4797
4798 don't leak validity of user in "too many authentication
4799 failures" disconnect message; reported by Sebastian Reitenbach
4800
4801commit 6288e3a935494df12519164f52ca5c8c65fc3ca5
4802Author: naddy@openbsd.org <naddy@openbsd.org>
4803Date: Tue Feb 24 15:24:05 2015 +0000
4804
4805 upstream commit
4806
4807 add -v (show ASCII art) to -l's synopsis; ok djm@
4808
4809commit 678e473e2af2e4802f24dd913985864d9ead7fb3
4810Author: Darren Tucker <dtucker@zip.com.au>
4811Date: Thu Feb 26 04:12:58 2015 +1100
4812
4813 Remove dependency on xmalloc.
4814
4815 Remove ssh_get_progname's dependency on xmalloc, which should reduce
4816 link order problems. ok djm@
4817
4818commit 5d5ec165c5b614b03678afdad881f10e25832e46
4819Author: Darren Tucker <dtucker@zip.com.au>
4820Date: Wed Feb 25 15:32:49 2015 +1100
4821
4822 Restrict ECDSA and ECDH tests.
4823
4824 ifdef out some more ECDSA and ECDH tests when built against an OpenSSL
4825 that does not have eliptic curve functionality.
4826
4827commit 1734e276d99b17e92d4233fac7aef3a3180aaca7
4828Author: Darren Tucker <dtucker@zip.com.au>
4829Date: Wed Feb 25 13:40:45 2015 +1100
4830
4831 Move definition of _NSIG.
4832
4833 _NSIG is only unsed in one file, so move it there prevent redefinition
4834 warnings reported by Kevin Brott.
4835
4836commit a47ead7c95cfbeb72721066c4da2312e5b1b9f3d
4837Author: Darren Tucker <dtucker@zip.com.au>
4838Date: Wed Feb 25 13:17:40 2015 +1100
4839
4840 Add includes.h for compatibility stuff.
4841
4842commit 38806bda6d2e48ad32812b461eebe17672ada771
4843Author: Damien Miller <djm@mindrot.org>
4844Date: Tue Feb 24 16:50:06 2015 -0800
4845
4846 include netdb.h to look for MAXHOSTNAMELEN; ok tim
4847
4848commit d1db656021d0cd8c001a6692f772f1de29b67c8b
4849Author: Tim Rice <tim@multitalents.net>
4850Date: Tue Feb 24 10:42:08 2015 -0800
4851
4852 Work around finicky USL linker so netcat will build.
4853
4854commit cb030ce25f555737e8ba97bdd7883ac43f3ff2a3
4855Author: Damien Miller <djm@mindrot.org>
4856Date: Tue Feb 24 09:23:04 2015 -0800
4857
4858 include includes.h to avoid build failure on AIX
4859
4860commit 13af342458f5064144abbb07e5ac9bbd4eb42567
4861Author: Tim Rice <tim@multitalents.net>
4862Date: Tue Feb 24 07:56:47 2015 -0800
4863
4864 Original portability patch from djm@ for platforms missing err.h.
4865 Fix name space clash on Solaris 10. Still more to do for Solaris 10
4866 to deal with msghdr structure differences. ok djm@
4867
4868commit 910209203d0cd60c5083901cbcc0b7b44d9f48d2
4869Author: Tim Rice <tim@multitalents.net>
4870Date: Mon Feb 23 22:06:56 2015 -0800
4871
4872 cleaner way fix dispatch.h portion of commit
4873 a88dd1da119052870bb2654c1a32c51971eade16
4874 (some systems have sig_atomic_t in signal.h, some in sys/signal.h)
4875 Sounds good to me djm@
4876
4877commit 676c38d7cbe65b76bbfff796861bb6615cc6a596
4878Author: Tim Rice <tim@multitalents.net>
4879Date: Mon Feb 23 21:51:33 2015 -0800
4880
4881 portability fix: if we can't dind a better define for HOST_NAME_MAX, use 255
4882
4883commit 1221b22023dce38cbc90ba77eae4c5d78c77a5e6
4884Author: Tim Rice <tim@multitalents.net>
4885Date: Mon Feb 23 21:50:34 2015 -0800
4886
4887 portablity fix: s/__inline__/inline/
4888
4889commit 4c356308a88d309c796325bb75dce90ca16591d5
4890Author: Darren Tucker <dtucker@zip.com.au>
4891Date: Tue Feb 24 13:49:31 2015 +1100
4892
4893 Wrap stdint.h includes in HAVE_STDINT_H.
4894
4895commit c9c88355c6a27a908e7d1e5003a2b35ea99c1614
4896Author: Darren Tucker <dtucker@zip.com.au>
4897Date: Tue Feb 24 13:43:57 2015 +1100
4898
4899 Add AI_NUMERICSERV to fake-rfc2553.
4900
4901 Our getaddrinfo implementation always returns numeric values already.
4902
4903commit ef342ab1ce6fb9a4b30186c89c309d0ae9d0eeb4
4904Author: Darren Tucker <dtucker@zip.com.au>
4905Date: Tue Feb 24 13:39:57 2015 +1100
4906
4907 Include OpenSSL's objects.h before bn.h.
4908
4909 Prevents compile errors on some platforms (at least old GCCs and AIX's
4910 XLC compilers).
4911
4912commit dcc8997d116f615195aa7c9ec019fb36c28c6228
4913Author: Darren Tucker <dtucker@zip.com.au>
4914Date: Tue Feb 24 12:30:59 2015 +1100
4915
4916 Convert two macros into functions.
4917
4918 Convert packet_send_debug and packet_disconnect from macros to
4919 functions. Some older GCCs (2.7.x, 2.95.x) see to have problems with
4920 variadic macros with only one argument so we convert these two into
4921 functions. ok djm@
4922
4923commit 2285c30d51b7e2052c6526445abe7e7cc7e170a1
4924Author: djm@openbsd.org <djm@openbsd.org>
4925Date: Mon Feb 23 22:21:21 2015 +0000
4926
4927 upstream commit
4928
4929 further silence spurious error message even when -v is
4930 specified (e.g. to get visual host keys); reported by naddy@
4931
4932commit 9af21979c00652029e160295e988dea40758ece2
4933Author: Damien Miller <djm@mindrot.org>
4934Date: Tue Feb 24 09:04:32 2015 +1100
4935
4936 don't include stdint.h unless HAVE_STDINT_H set
4937
4938commit 62f678dd51660d6f8aee1da33d3222c5de10a89e
4939Author: Damien Miller <djm@mindrot.org>
4940Date: Tue Feb 24 09:02:54 2015 +1100
4941
4942 nother sys/queue.h -> sys-queue.h fix
4943
4944 spotted by Tom Christensen
4945
4946commit b3c19151cba2c0ed01b27f55de0d723ad07ca98f
4947Author: djm@openbsd.org <djm@openbsd.org>
4948Date: Mon Feb 23 20:32:15 2015 +0000
4949
4950 upstream commit
4951
4952 fix a race condition by using a mux socket rather than an
4953 ineffectual wait statement
4954
4955commit a88dd1da119052870bb2654c1a32c51971eade16
4956Author: Damien Miller <djm@mindrot.org>
4957Date: Tue Feb 24 06:30:29 2015 +1100
4958
4959 various include fixes for portable
4960
4961commit 5248429b5ec524d0a65507cff0cdd6e0cb99effd
4962Author: djm@openbsd.org <djm@openbsd.org>
4963Date: Mon Feb 23 16:55:51 2015 +0000
4964
4965 upstream commit
4966
4967 add an XXX to remind me to improve sshkey_load_public
4968
4969commit e94e4b07ef2eaead38b085a60535df9981cdbcdb
4970Author: djm@openbsd.org <djm@openbsd.org>
4971Date: Mon Feb 23 16:55:31 2015 +0000
4972
4973 upstream commit
4974
4975 silence a spurious error message when listing
4976 fingerprints for known_hosts; bz#2342
4977
4978commit f2293a65392b54ac721f66bc0b44462e8d1d81f8
4979Author: djm@openbsd.org <djm@openbsd.org>
4980Date: Mon Feb 23 16:33:25 2015 +0000
4981
4982 upstream commit
4983
4984 fix setting/clearing of TTY raw mode around
4985 UpdateHostKeys=ask confirmation question; reported by Herb Goldman
4986
4987commit f2004cd1adf34492eae0a44b1ef84e0e31b06088
4988Author: Darren Tucker <dtucker@zip.com.au>
4989Date: Mon Feb 23 05:04:21 2015 +1100
4990
4991 Repair for non-ECC OpenSSL.
4992
4993 Ifdef out the ECC parts when building with an OpenSSL that doesn't have
4994 it.
4995
4996commit 37f9220db8d1a52c75894c3de1e5f2ae5bd71b6f
4997Author: Darren Tucker <dtucker@zip.com.au>
4998Date: Mon Feb 23 03:07:24 2015 +1100
4999
5000 Wrap stdint.h includes in ifdefs.
5001
5002commit f81f1bbc5b892c8614ea740b1f92735652eb43f0
5003Author: Tim Rice <tim@multitalents.net>
5004Date: Sat Feb 21 18:12:10 2015 -0800
5005
5006 out of tree build fix
5007
5008commit 2e13a1e4d22f3b503c3bfc878562cc7386a1d1ae
5009Author: Tim Rice <tim@multitalents.net>
5010Date: Sat Feb 21 18:08:51 2015 -0800
5011
5012 mkdir kex unit test directory so testing out of tree builds works
5013
5014commit 1797f49b1ba31e8700231cd6b1d512d80bb50d2c
5015Author: halex@openbsd.org <halex@openbsd.org>
5016Date: Sat Feb 21 21:46:57 2015 +0000
5017
5018 upstream commit
5019
5020 make "ssh-add -d" properly remove a corresponding
5021 certificate, and also not whine and fail if there is none
5022
5023 ok djm@
5024
5025commit 7faaa32da83a609059d95dbfcb0649fdb04caaf6
5026Author: Damien Miller <djm@mindrot.org>
5027Date: Sun Feb 22 07:57:27 2015 +1100
5028
5029 mkdir hostkey and bitmap unit test directories
5030
5031commit bd49da2ef197efac5e38f5399263a8b47990c538
5032Author: djm@openbsd.org <djm@openbsd.org>
5033Date: Fri Feb 20 23:46:01 2015 +0000
5034
5035 upstream commit
5036
5037 sort options useable under Match case-insensitively; prodded
5038 jmc@
5039
5040commit 1a779a0dd6cd8b4a1a40ea33b5415ab8408128ac
5041Author: djm@openbsd.org <djm@openbsd.org>
5042Date: Sat Feb 21 20:51:02 2015 +0000
5043
5044 upstream commit
5045
5046 correct paths to configuration files being written/updated;
5047 they live in $OBJ not cwd; some by Roumen Petrov
5048
5049commit 28ba006c1acddff992ae946d0bc0b500b531ba6b
5050Author: Darren Tucker <dtucker@zip.com.au>
5051Date: Sat Feb 21 15:41:07 2015 +1100
5052
5053 More correct checking of HAVE_DECL_AI_NUMERICSERV.
5054
5055commit e50e8c97a9cecae1f28febccaa6ca5ab3bc10f54
5056Author: Darren Tucker <dtucker@zip.com.au>
5057Date: Sat Feb 21 15:10:33 2015 +1100
5058
5059 Add null declaration of AI_NUMERICINFO.
5060
5061 Some platforms (older FreeBSD and DragonFly versions) do have
5062 getaddrinfo() but do not have AI_NUMERICINFO. so define it to zero
5063 in those cases.
5064
5065commit 18a208d6a460d707a45916db63a571e805f5db46
5066Author: djm@openbsd.org <djm@openbsd.org>
5067Date: Fri Feb 20 22:40:32 2015 +0000
5068
5069 upstream commit
5070
5071 more options that are available under Match; bz#2353 reported
5072 by calestyo AT scientia.net
5073
5074commit 44732de06884238049f285f1455b2181baa7dc82
5075Author: djm@openbsd.org <djm@openbsd.org>
5076Date: Fri Feb 20 22:17:21 2015 +0000
5077
5078 upstream commit
5079
5080 UpdateHostKeys fixes:
5081
5082 I accidentally changed the format of the hostkeys@openssh.com messages
5083 last week without changing the extension name, and this has been causing
5084 connection failures for people who are running -current. First reported
5085 by sthen@
5086
5087 s/hostkeys@openssh.com/hostkeys-00@openssh.com/
5088 Change the name of the proof message too, and reorder it a little.
5089
5090 Also, UpdateHostKeys=ask is incompatible with ControlPersist (no TTY
5091 available to read the response) so disable UpdateHostKeys if it is in
5092 ask mode and ControlPersist is active (and document this)
5093
5094commit 13a39414d25646f93e6d355521d832a03aaaffe2
5095Author: djm@openbsd.org <djm@openbsd.org>
5096Date: Tue Feb 17 00:14:05 2015 +0000
5097
5098 upstream commit
5099
5100 Regression: I broke logging of public key fingerprints in
5101 1.46. Pointed out by Pontus Lundkvist
5102
5103commit 773dda25e828c4c9a52f7bdce6e1e5924157beab
5104Author: Damien Miller <djm@mindrot.org>
5105Date: Fri Jan 30 23:10:17 2015 +1100
5106
5107 repair --without-openssl; broken in refactor
5108
5109commit e89c780886b23600de1e1c8d74aabd1ff61f43f0
5110Author: Damien Miller <djm@google.com>
5111Date: Tue Feb 17 10:04:55 2015 +1100
5112
5113 hook up hostkeys unittest to portable Makefiles
5114
5115commit 0abf41f99aa16ff09b263bead242d6cb2dbbcf99
5116Author: djm@openbsd.org <djm@openbsd.org>
5117Date: Mon Feb 16 22:21:03 2015 +0000
5118
5119 upstream commit
5120
5121 enable hostkeys unit tests
5122
5123commit 68a5d647ccf0fb6782b2f749433a1eee5bc9044b
5124Author: djm@openbsd.org <djm@openbsd.org>
5125Date: Mon Feb 16 22:20:50 2015 +0000
5126
5127 upstream commit
5128
5129 check string/memory compare arguments aren't NULL
5130
5131commit ef575ef20d09f20722e26b45dab80b3620469687
5132Author: djm@openbsd.org <djm@openbsd.org>
5133Date: Mon Feb 16 22:18:34 2015 +0000
5134
5135 upstream commit
5136
5137 unit tests for hostfile.c code, just hostkeys_foreach so
5138 far
5139
5140commit 8ea3365e6aa2759ccf5c76eaea62cbc8a280b0e7
5141Author: markus@openbsd.org <markus@openbsd.org>
5142Date: Sat Feb 14 12:43:16 2015 +0000
5143
5144 upstream commit
5145
5146 test server rekey limit
5147
5148commit ce63c4b063c39b2b22d4ada449c9e3fbde788cb3
5149Author: djm@openbsd.org <djm@openbsd.org>
5150Date: Mon Feb 16 22:30:03 2015 +0000
5151
5152 upstream commit
5153
5154 partial backout of:
5155
5156 revision 1.441
5157 date: 2015/01/31 20:30:05; author: djm; state: Exp; lines: +17 -10; commitid
5158 : x8klYPZMJSrVlt3O;
5159 Let sshd load public host keys even when private keys are missing.
5160 Allows sshd to advertise additional keys for future key rotation.
5161 Also log fingerprint of hostkeys loaded; ok markus@
5162
5163 hostkey updates now require access to the private key, so we can't
5164 load public keys only. The improved log messages (fingerprints of keys
5165 loaded) are kept.
5166
5167commit 523463a3a2a9bfc6cfc5afa01bae9147f76a37cc
5168Author: djm@openbsd.org <djm@openbsd.org>
5169Date: Mon Feb 16 22:13:32 2015 +0000
5170
5171 upstream commit
5172
5173 Revise hostkeys@openssh.com hostkey learning extension.
5174
5175 The client will not ask the server to prove ownership of the private
5176 halves of any hitherto-unseen hostkeys it offers to the client.
5177
5178 Allow UpdateHostKeys option to take an 'ask' argument to let the
5179 user manually review keys offered.
5180
5181 ok markus@
5182
5183commit 6c5c949782d86a6e7d58006599c7685bfcd01685
5184Author: djm@openbsd.org <djm@openbsd.org>
5185Date: Mon Feb 16 22:08:57 2015 +0000
5186
5187 upstream commit
5188
5189 Refactor hostkeys_foreach() and dependent code Deal with
5190 IP addresses (i.e. CheckHostIP) Don't clobber known_hosts when nothing
5191 changed ok markus@ as part of larger commit
5192
5193commit 51b082ccbe633dc970df1d1f4c9c0497115fe721
5194Author: miod@openbsd.org <miod@openbsd.org>
5195Date: Mon Feb 16 18:26:26 2015 +0000
5196
5197 upstream commit
5198
5199 Declare ge25519_base as extern, to prevent it from
5200 becoming a common. Gets us rid of ``lignment 4 of symbol
5201 `crypto_sign_ed25519_ref_ge25519_base' in mod_ge25519.o is smaller than 16 in
5202 mod_ed25519.o'' warnings at link time.
5203
5204commit 02db468bf7e3281a8e3c058ced571b38b6407c34
5205Author: markus@openbsd.org <markus@openbsd.org>
5206Date: Fri Feb 13 18:57:00 2015 +0000
5207
5208 upstream commit
5209
5210 make rekey_limit for sshd w/privsep work; ok djm@
5211 dtucker@
5212
5213commit 8ec67d505bd23c8bf9e17b7a364b563a07a58ec8
5214Author: dtucker@openbsd.org <dtucker@openbsd.org>
5215Date: Thu Feb 12 20:34:19 2015 +0000
5216
5217 upstream commit
5218
5219 Prevent sshd spamming syslog with
5220 "ssh_dispatch_run_fatal: disconnected". ok markus@
5221
5222commit d4c0295d1afc342057ba358237acad6be8af480b
5223Author: djm@openbsd.org <djm@openbsd.org>
5224Date: Wed Feb 11 01:20:38 2015 +0000
5225
5226 upstream commit
5227
5228 Some packet error messages show the address of the peer,
5229 but might be generated after the socket to the peer has suffered a TCP reset.
5230 In these cases, getpeername() won't work so cache the address earlier.
5231
5232 spotted in the wild via deraadt@ and tedu@
5233
5234commit 4af1709cf774475ce5d1bc3ddcc165f6c222897d
5235Author: jsg@openbsd.org <jsg@openbsd.org>
5236Date: Mon Feb 9 23:22:37 2015 +0000
5237
5238 upstream commit
5239
5240 fix some leaks in error paths ok markus@
5241
5242commit fd36834871d06a03e1ff8d69e41992efa1bbf85f
5243Author: millert@openbsd.org <millert@openbsd.org>
5244Date: Fri Feb 6 23:21:59 2015 +0000
5245
5246 upstream commit
5247
5248 SIZE_MAX is standard, we should be using it in preference to
5249 the obsolete SIZE_T_MAX. OK miod@ beck@
5250
5251commit 1910a286d7771eab84c0b047f31c0a17505236fa
5252Author: millert@openbsd.org <millert@openbsd.org>
5253Date: Thu Feb 5 12:59:57 2015 +0000
5254
5255 upstream commit
5256
5257 Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@
5258
5259commit ce4f59b2405845584f45e0b3214760eb0008c06c
5260Author: deraadt@openbsd.org <deraadt@openbsd.org>
5261Date: Tue Feb 3 08:07:20 2015 +0000
5262
5263 upstream commit
5264
5265 missing ; djm and mlarkin really having great
5266 interactions recently
5267
5268commit 5d34aa94938abb12b877a25be51862757f25d54b
5269Author: halex@openbsd.org <halex@openbsd.org>
5270Date: Tue Feb 3 00:34:14 2015 +0000
5271
5272 upstream commit
5273
5274 slightly extend the passphrase prompt if running with -c
5275 in order to give the user a chance to notice if unintentionally running
5276 without it
5277
5278 wording tweak and ok djm@
5279
5280commit cb3bde373e80902c7d5d0db429f85068d19b2918
5281Author: djm@openbsd.org <djm@openbsd.org>
5282Date: Mon Feb 2 22:48:53 2015 +0000
5283
5284 upstream commit
5285
5286 handle PKCS#11 C_Login returning
5287 CKR_USER_ALREADY_LOGGED_IN; based on patch from Yuri Samoilenko; ok markus@
5288
5289commit 15ad750e5ec3cc69765b7eba1ce90060e7083399
5290Author: djm@openbsd.org <djm@openbsd.org>
5291Date: Mon Feb 2 07:41:40 2015 +0000
5292
5293 upstream commit
5294
5295 turn UpdateHostkeys off by default until I figure out
5296 mlarkin@'s warning message; requested by deraadt@
5297
5298commit 3cd5103c1e1aaa59bd66f7f52f6ebbcd5deb12f9
5299Author: deraadt@openbsd.org <deraadt@openbsd.org>
5300Date: Mon Feb 2 01:57:44 2015 +0000
5301
5302 upstream commit
5303
5304 increasing encounters with difficult DNS setups in
5305 darknets has convinced me UseDNS off by default is better ok djm
5306
5307commit 6049a548a8a68ff0bbe581ab1748ea6a59ecdc38
5308Author: djm@openbsd.org <djm@openbsd.org>
5309Date: Sat Jan 31 20:30:05 2015 +0000
5310
5311 upstream commit
5312
5313 Let sshd load public host keys even when private keys are
5314 missing. Allows sshd to advertise additional keys for future key rotation.
5315 Also log fingerprint of hostkeys loaded; ok markus@
5316
5317commit 46347ed5968f582661e8a70a45f448e0179ca0ab
5318Author: djm@openbsd.org <djm@openbsd.org>
5319Date: Fri Jan 30 11:43:14 2015 +0000
5320
5321 upstream commit
5322
5323 Add a ssh_config HostbasedKeyType option to control which
5324 host public key types are tried during hostbased authentication.
5325
5326 This may be used to prevent too many keys being sent to the server,
5327 and blowing past its MaxAuthTries limit.
5328
5329 bz#2211 based on patch by Iain Morgan; ok markus@
5330
5331commit 802660cb70453fa4d230cb0233bc1bbdf8328de1
5332Author: djm@openbsd.org <djm@openbsd.org>
5333Date: Fri Jan 30 10:44:49 2015 +0000
5334
5335 upstream commit
5336
5337 set a timeout to prevent hangs when talking to busted
5338 servers; ok markus@
5339
5340commit 86936ec245a15c7abe71a0722610998b0a28b194
5341Author: djm@openbsd.org <djm@openbsd.org>
5342Date: Fri Jan 30 01:11:39 2015 +0000
5343
5344 upstream commit
5345
5346 regression test for 'wildcard CA' serial/key ID revocations
5347
5348commit 4509b5d4a4fa645a022635bfa7e86d09b285001f
5349Author: djm@openbsd.org <djm@openbsd.org>
5350Date: Fri Jan 30 01:13:33 2015 +0000
5351
5352 upstream commit
5353
5354 avoid more fatal/exit in the packet.c paths that
5355 ssh-keyscan uses; feedback and "looks good" markus@
5356
5357commit 669aee994348468af8b4b2ebd29b602cf2860b22
5358Author: djm@openbsd.org <djm@openbsd.org>
5359Date: Fri Jan 30 01:10:33 2015 +0000
5360
5361 upstream commit
5362
5363 permit KRLs that revoke certificates by serial number or
5364 key ID without scoping to a particular CA; ok markus@
5365
5366commit 7a2c368477e26575d0866247d3313da4256cb2b5
5367Author: djm@openbsd.org <djm@openbsd.org>
5368Date: Fri Jan 30 00:59:19 2015 +0000
5369
5370 upstream commit
5371
5372 missing parentheses after if in do_convert_from() broke
5373 private key conversion from other formats some time in 2010; bz#2345 reported
5374 by jjelen AT redhat.com
5375
5376commit 25f5f78d8bf5c22d9cea8b49de24ebeee648a355
5377Author: djm@openbsd.org <djm@openbsd.org>
5378Date: Fri Jan 30 00:22:25 2015 +0000
5379
5380 upstream commit
5381
5382 fix ssh protocol 1, spotted by miod@
5383
5384commit 9ce86c926dfa6e0635161b035e3944e611cbccf0
5385Author: djm@openbsd.org <djm@openbsd.org>
5386Date: Wed Jan 28 22:36:00 2015 +0000
5387
5388 upstream commit
5389
5390 update to new API (key_fingerprint => sshkey_fingerprint)
5391 check sshkey_fingerprint return values; ok markus
5392
5393commit 9125525c37bf73ad3ee4025520889d2ce9d10f29
5394Author: djm@openbsd.org <djm@openbsd.org>
5395Date: Wed Jan 28 22:05:31 2015 +0000
5396
5397 upstream commit
5398
5399 avoid fatal() calls in packet code makes ssh-keyscan more
5400 reliable against server failures ok dtucker@ markus@
5401
5402commit fae7bbe544cba7a9e5e4ab47ff6faa3d978646eb
5403Author: djm@openbsd.org <djm@openbsd.org>
5404Date: Wed Jan 28 21:15:47 2015 +0000
5405
5406 upstream commit
5407
5408 avoid fatal() calls in packet code makes ssh-keyscan more
5409 reliable against server failures ok dtucker@ markus@
5410
5411commit 1a3d14f6b44a494037c7deab485abe6496bf2c60
5412Author: djm@openbsd.org <djm@openbsd.org>
5413Date: Wed Jan 28 11:07:25 2015 +0000
5414
5415 upstream commit
5416
5417 remove obsolete comment
5418
5419commit 80c25b7bc0a71d75c43a4575d9a1336f589eb639
5420Author: okan@openbsd.org <okan@openbsd.org>
5421Date: Tue Jan 27 12:54:06 2015 +0000
5422
5423 upstream commit
5424
5425 Since r1.2 removed the use of PRI* macros, inttypes.h is
5426 no longer required.
5427
5428 ok djm@
5429
5430commit 69ff64f69615c2a21c97cb5878a0996c21423257
5431Author: Damien Miller <djm@mindrot.org>
5432Date: Tue Jan 27 23:07:43 2015 +1100
5433
5434 compile on systems without TCP_MD5SIG (e.g. OSX)
5435
5436commit 358964f3082fb90b2ae15bcab07b6105cfad5a43
5437Author: Damien Miller <djm@mindrot.org>
5438Date: Tue Jan 27 23:07:25 2015 +1100
5439
5440 use ssh-keygen under test rather than system's
5441
5442commit a2c95c1bf33ea53038324d1fdd774bc953f98236
5443Author: Damien Miller <djm@mindrot.org>
5444Date: Tue Jan 27 23:06:59 2015 +1100
5445
5446 OSX lacks HOST_NAME_MAX, has _POSIX_HOST_NAME_MAX
5447
5448commit ade31d7b6f608a19b85bee29a7a00b1e636a2919
5449Author: Damien Miller <djm@mindrot.org>
5450Date: Tue Jan 27 23:06:23 2015 +1100
5451
5452 these need active_state defined to link on OSX
5453
5454 temporary measure until active_state goes away entirely
5455
5456commit e56aa87502f22c5844918c10190e8b4f785f067b
5457Author: djm@openbsd.org <djm@openbsd.org>
5458Date: Tue Jan 27 12:01:36 2015 +0000
5459
5460 upstream commit
5461
5462 use printf instead of echo -n to reduce diff against
5463 -portable
5464
5465commit 9f7637f56eddfaf62ce3c0af89c25480f2cf1068
5466Author: jmc@openbsd.org <jmc@openbsd.org>
5467Date: Mon Jan 26 13:55:29 2015 +0000
5468
5469 upstream commit
5470
5471 sort previous;
5472
5473commit 3076ee7d530d5b16842fac7a6229706c7e5acd26
5474Author: djm@openbsd.org <djm@openbsd.org>
5475Date: Mon Jan 26 13:36:53 2015 +0000
5476
5477 upstream commit
5478
5479 properly restore umask
5480
5481commit d411d395556b73ba1b9e451516a0bd6697c4b03d
5482Author: djm@openbsd.org <djm@openbsd.org>
5483Date: Mon Jan 26 06:12:18 2015 +0000
5484
5485 upstream commit
5486
5487 regression test for host key rotation
5488
5489commit fe8a3a51699afbc6407a8fae59b73349d01e49f8
5490Author: djm@openbsd.org <djm@openbsd.org>
5491Date: Mon Jan 26 06:11:28 2015 +0000
5492
5493 upstream commit
5494
5495 adapt to sshkey API tweaks
5496
5497commit 7dd355fb1f0038a3d5cdca57ebab4356c7a5b434
5498Author: miod@openbsd.org <miod@openbsd.org>
5499Date: Sat Jan 24 10:39:21 2015 +0000
5500
5501 upstream commit
5502
5503 Move -lz late in the linker commandline for things to
5504 build on static arches.
5505
5506commit 0dad3b806fddb93c475b30853b9be1a25d673a33
5507Author: miod@openbsd.org <miod@openbsd.org>
5508Date: Fri Jan 23 21:21:23 2015 +0000
5509
5510 upstream commit
5511
5512 -Wpointer-sign is supported by gcc 4 only.
5513
5514commit 2b3b1c1e4bd9577b6e780c255c278542ea66c098
5515Author: djm@openbsd.org <djm@openbsd.org>
5516Date: Tue Jan 20 22:58:57 2015 +0000
5517
5518 upstream commit
5519
5520 use SUBDIR to recuse into unit tests; makes "make obj"
5521 actually work
5522
5523commit 1d1092bff8db27080155541212b420703f8b9c92
5524Author: djm@openbsd.org <djm@openbsd.org>
5525Date: Mon Jan 26 12:16:36 2015 +0000
5526
5527 upstream commit
5528
5529 correct description of UpdateHostKeys in ssh_config.5 and
5530 add it to -o lists for ssh, scp and sftp; pointed out by jmc@
5531
5532commit 5104db7cbd6cdd9c5971f4358e74414862fc1022
5533Author: djm@openbsd.org <djm@openbsd.org>
5534Date: Mon Jan 26 06:10:03 2015 +0000
5535
5536 upstream commit
5537
5538 correctly match ECDSA subtype (== curve) for
5539 offered/recevied host keys. Fixes connection-killing host key mismatches when
5540 a server offers multiple ECDSA keys with different curve type (an extremely
5541 unlikely configuration).
5542
5543 ok markus, "looks mechanical" deraadt@
5544
5545commit 8d4f87258f31cb6def9b3b55b6a7321d84728ff2
5546Author: djm@openbsd.org <djm@openbsd.org>
5547Date: Mon Jan 26 03:04:45 2015 +0000
5548
5549 upstream commit
5550
5551 Host key rotation support.
5552
5553 Add a hostkeys@openssh.com protocol extension (global request) for
5554 a server to inform a client of all its available host key after
5555 authentication has completed. The client may record the keys in
5556 known_hosts, allowing it to upgrade to better host key algorithms
5557 and a server to gracefully rotate its keys.
5558
5559 The client side of this is controlled by a UpdateHostkeys config
5560 option (default on).
5561
5562 ok markus@
5563
5564commit 60b1825262b1f1e24fc72050b907189c92daf18e
5565Author: djm@openbsd.org <djm@openbsd.org>
5566Date: Mon Jan 26 02:59:11 2015 +0000
5567
5568 upstream commit
5569
5570 small refactor and add some convenience functions; ok
5571 markus
5572
5573commit a5a3e3328ddce91e76f71ff479022d53e35c60c9
5574Author: jmc@openbsd.org <jmc@openbsd.org>
5575Date: Thu Jan 22 21:00:42 2015 +0000
5576
5577 upstream commit
5578
5579 heirarchy -> hierarchy;
5580
5581commit dcff5810a11195c57e1b3343c0d6b6f2b9974c11
5582Author: deraadt@openbsd.org <deraadt@openbsd.org>
5583Date: Thu Jan 22 20:24:41 2015 +0000
5584
5585 upstream commit
5586
5587 Provide a warning about chroot misuses (which sadly, seem
5588 to have become quite popular because shiny). sshd cannot detect/manage/do
5589 anything about these cases, best we can do is warn in the right spot in the
5590 man page. ok markus
5591
5592commit 087266ec33c76fc8d54ac5a19efacf2f4a4ca076
5593Author: deraadt@openbsd.org <deraadt@openbsd.org>
5594Date: Tue Jan 20 23:14:00 2015 +0000
5595
5596 upstream commit
5597
5598 Reduce use of <sys/param.h> and transition to <limits.h>
5599 throughout. ok djm markus
5600
5601commit 57e783c8ba2c0797f93977e83b2a8644a03065d8
5602Author: markus@openbsd.org <markus@openbsd.org>
5603Date: Tue Jan 20 20:16:21 2015 +0000
5604
5605 upstream commit
5606
5607 kex_setup errors are fatal()
5608
5609commit 1d6424a6ff94633c221297ae8f42d54e12a20912
5610Author: djm@openbsd.org <djm@openbsd.org>
5611Date: Tue Jan 20 08:02:33 2015 +0000
5612
5613 upstream commit
5614
5615 this test would accidentally delete agent.sh if run without
5616 obj/
5617
5618commit 12b5f50777203e12575f1b08568281e447249ed3
5619Author: djm@openbsd.org <djm@openbsd.org>
5620Date: Tue Jan 20 07:56:44 2015 +0000
5621
5622 upstream commit
5623
5624 make this compile with KERBEROS5 enabled
5625
5626commit e2cc6bef08941256817d44d146115b3478586ad4
5627Author: djm@openbsd.org <djm@openbsd.org>
5628Date: Tue Jan 20 07:55:33 2015 +0000
5629
5630 upstream commit
5631
5632 fix hostkeys in agent; ok markus@
5633
5634commit 1ca3e2155aa5d3801a7ae050f85c71f41fcb95b1
5635Author: Damien Miller <djm@mindrot.org>
5636Date: Tue Jan 20 10:11:31 2015 +1100
5637
5638 fix kex test
5639
5640commit c78a578107c7e6dcf5d30a2f34cb6581bef14029
5641Author: markus@openbsd.org <markus@openbsd.org>
5642Date: Mon Jan 19 20:45:25 2015 +0000
5643
5644 upstream commit
5645
5646 finally enable the KEX tests I wrote some years ago...
5647
5648commit 31821d7217e686667d04935aeec99e1fc4a46e7e
5649Author: markus@openbsd.org <markus@openbsd.org>
5650Date: Mon Jan 19 20:42:31 2015 +0000
5651
5652 upstream commit
5653
5654 adapt to new error message (SSH_ERR_MAC_INVALID)
5655
5656commit d3716ca19e510e95d956ae14d5b367e364bff7f1
5657Author: djm@openbsd.org <djm@openbsd.org>
5658Date: Mon Jan 19 17:31:13 2015 +0000
5659
5660 upstream commit
5661
5662 this test was broken in at least two ways, such that it
5663 wasn't checking that a KRL was not excluding valid keys
5664
5665commit 3f797653748e7c2b037dacb57574c01d9ef3b4d3
5666Author: markus@openbsd.org <markus@openbsd.org>
5667Date: Mon Jan 19 20:32:39 2015 +0000
5668
5669 upstream commit
5670
5671 switch ssh-keyscan from setjmp to multiple ssh transport
5672 layer instances ok djm@
5673
5674commit f582f0e917bb0017b00944783cd5f408bf4b0b5e
5675Author: markus@openbsd.org <markus@openbsd.org>
5676Date: Mon Jan 19 20:30:23 2015 +0000
5677
5678 upstream commit
5679
5680 add experimental api for packet layer; ok djm@
5681
5682commit 48b3b2ba75181f11fca7f327058a591f4426cade
5683Author: markus@openbsd.org <markus@openbsd.org>
5684Date: Mon Jan 19 20:20:20 2015 +0000
5685
5686 upstream commit
5687
5688 store compat flags in struct ssh; ok djm@
5689
5690commit 57d10cbe861a235dd269c74fb2fe248469ecee9d
5691Author: markus@openbsd.org <markus@openbsd.org>
5692Date: Mon Jan 19 20:16:15 2015 +0000
5693
5694 upstream commit
5695
5696 adapt kex to sshbuf and struct ssh; ok djm@
5697
5698commit 3fdc88a0def4f86aa88a5846ac079dc964c0546a
5699Author: markus@openbsd.org <markus@openbsd.org>
5700Date: Mon Jan 19 20:07:45 2015 +0000
5701
5702 upstream commit
5703
5704 move dispatch to struct ssh; ok djm@
5705
5706commit 091c302829210c41e7f57c3f094c7b9c054306f0
5707Author: markus@openbsd.org <markus@openbsd.org>
5708Date: Mon Jan 19 19:52:16 2015 +0000
5709
5710 upstream commit
5711
5712 update packet.c & isolate, introduce struct ssh a) switch
5713 packet.c to buffer api and isolate per-connection info into struct ssh b)
5714 (de)serialization of the state is moved from monitor to packet.c c) the old
5715 packet.c API is implemented in opacket.[ch] d) compress.c/h is removed and
5716 integrated into packet.c with and ok djm@
5717
5718commit 4e62cc68ce4ba20245d208b252e74e91d3785b74
5719Author: djm@openbsd.org <djm@openbsd.org>
5720Date: Mon Jan 19 17:35:48 2015 +0000
5721
5722 upstream commit
5723
5724 fix format strings in (disabled) debugging
5725
5726commit d85e06245907d49a2cd0cfa0abf59150ad616f42
5727Author: djm@openbsd.org <djm@openbsd.org>
5728Date: Mon Jan 19 06:01:32 2015 +0000
5729
5730 upstream commit
5731
5732 be a bit more careful in these tests to ensure that
5733 known_hosts is clean
5734
5735commit 7947810eab5fe0ad311f32a48f4d4eb1f71be6cf
5736Author: djm@openbsd.org <djm@openbsd.org>
5737Date: Sun Jan 18 22:00:18 2015 +0000
5738
5739 upstream commit
5740
5741 regression test for known_host file editing using
5742 ssh-keygen (-H / -R / -F) after hostkeys_foreach() change; feedback and ok
5743 markus@
5744
5745commit 3a2b09d147a565d8a47edf37491e149a02c0d3a3
5746Author: djm@openbsd.org <djm@openbsd.org>
5747Date: Sun Jan 18 19:54:46 2015 +0000
5748
5749 upstream commit
5750
5751 more and better key tests
5752
5753 test signatures and verification
5754 test certificate generation
5755 flesh out nested cert test
5756
5757 removes most of the XXX todo markers
5758
5759commit 589e69fd82724cfc9738f128e4771da2e6405d0d
5760Author: djm@openbsd.org <djm@openbsd.org>
5761Date: Sun Jan 18 19:53:58 2015 +0000
5762
5763 upstream commit
5764
5765 make the signature fuzzing test much more rigorous:
5766 ensure that the fuzzed input cases do not match the original (using new
5767 fuzz_matches_original() function) and check that the verification fails in
5768 each case
5769
5770commit 80603c0daa2538c349c1c152405580b164d5475f
5771Author: djm@openbsd.org <djm@openbsd.org>
5772Date: Sun Jan 18 19:52:44 2015 +0000
5773
5774 upstream commit
5775
5776 add a fuzz_matches_original() function to the fuzzer to
5777 detect fuzz cases that are identical to the original data. Hacky
5778 implementation, but very useful when you need the fuzz to be different, e.g.
5779 when verifying signature
5780
5781commit 87d5495bd337e358ad69c524fcb9495208c0750b
5782Author: djm@openbsd.org <djm@openbsd.org>
5783Date: Sun Jan 18 19:50:55 2015 +0000
5784
5785 upstream commit
5786
5787 better dumps from the fuzzer (shown on errors) -
5788 include the original data as well as the fuzzed copy.
5789
5790commit d59ec478c453a3fff05badbbfd96aa856364f2c2
5791Author: djm@openbsd.org <djm@openbsd.org>
5792Date: Sun Jan 18 19:47:55 2015 +0000
5793
5794 upstream commit
5795
5796 enable hostkey-agent.sh test
5797
5798commit 26b3425170bf840e4b095e1c10bf25a0a3e3a105
5799Author: djm@openbsd.org <djm@openbsd.org>
5800Date: Sat Jan 17 18:54:30 2015 +0000
5801
5802 upstream commit
5803
5804 unit test for hostkeys in ssh-agent
5805
5806commit 9e06a0fb23ec55d9223b26a45bb63c7649e2f2f2
5807Author: markus@openbsd.org <markus@openbsd.org>
5808Date: Thu Jan 15 23:41:29 2015 +0000
5809
5810 upstream commit
5811
5812 add kex unit tests
5813
5814commit d2099dec6da21ae627f6289aedae6bc1d41a22ce
5815Author: deraadt@openbsd.org <deraadt@openbsd.org>
5816Date: Mon Jan 19 00:32:54 2015 +0000
5817
5818 upstream commit
5819
5820 djm, your /usr/include tree is old
5821
5822commit 2b3c3c76c30dc5076fe09d590f5b26880f148a54
5823Author: djm@openbsd.org <djm@openbsd.org>
5824Date: Sun Jan 18 21:51:19 2015 +0000
5825
5826 upstream commit
5827
5828 some feedback from markus@: comment hostkeys_foreach()
5829 context and avoid a member in it.
5830
5831commit cecb30bc2ba6d594366e657d664d5c494b6c8a7f
5832Author: djm@openbsd.org <djm@openbsd.org>
5833Date: Sun Jan 18 21:49:42 2015 +0000
5834
5835 upstream commit
5836
5837 make ssh-keygen use hostkeys_foreach(). Removes some
5838 horrendous code; ok markus@
5839
5840commit ec3d065df3a9557ea96b02d061fd821a18c1a0b9
5841Author: djm@openbsd.org <djm@openbsd.org>
5842Date: Sun Jan 18 21:48:09 2015 +0000
5843
5844 upstream commit
5845
5846 convert load_hostkeys() (hostkey ordering and
5847 known_host matching) to use the new hostkey_foreach() iterator; ok markus
5848
5849commit c29811cc480a260e42fd88849fc86a80c1e91038
5850Author: djm@openbsd.org <djm@openbsd.org>
5851Date: Sun Jan 18 21:40:23 2015 +0000
5852
5853 upstream commit
5854
5855 introduce hostkeys_foreach() to allow iteration over a
5856 known_hosts file or controlled subset thereof. This will allow us to pull out
5857 some ugly and duplicated code, and will be used to implement hostkey rotation
5858 later.
5859
5860 feedback and ok markus
5861
5862commit f101d8291da01bbbfd6fb8c569cfd0cc61c0d346
5863Author: deraadt@openbsd.org <deraadt@openbsd.org>
5864Date: Sun Jan 18 14:01:00 2015 +0000
5865
5866 upstream commit
5867
5868 string truncation due to sizeof(size) ok djm markus
5869
5870commit 35d6022b55b7969fc10c261cb6aa78cc4a5fcc41
5871Author: djm@openbsd.org <djm@openbsd.org>
5872Date: Sun Jan 18 13:33:34 2015 +0000
5873
5874 upstream commit
5875
5876 avoid trailing ',' in host key algorithms
5877
5878commit 7efb455789a0cb76bdcdee91c6060a3dc8f5c007
5879Author: djm@openbsd.org <djm@openbsd.org>
5880Date: Sun Jan 18 13:22:28 2015 +0000
5881
5882 upstream commit
5883
5884 infer key length correctly when user specified a fully-
5885 qualified key name instead of using the -b bits option; ok markus@
5886
5887commit 83f8ffa6a55ccd0ce9d8a205e3e7439ec18fedf5
5888Author: djm@openbsd.org <djm@openbsd.org>
5889Date: Sat Jan 17 18:53:34 2015 +0000
5890
5891 upstream commit
5892
5893 fix hostkeys on ssh agent; found by unit test I'm about
5894 to commit
5895
5896commit 369d61f17657b814124268f99c033e4dc6e436c1
5897Author: schwarze@openbsd.org <schwarze@openbsd.org>
5898Date: Fri Jan 16 16:20:23 2015 +0000
5899
5900 upstream commit
5901
5902 garbage collect empty .No macros mandoc warns about
5903
5904commit bb8b442d32dbdb8521d610e10d8b248d938bd747
5905Author: djm@openbsd.org <djm@openbsd.org>
5906Date: Fri Jan 16 15:55:07 2015 +0000
5907
5908 upstream commit
5909
5910 regression: incorrect error message on
5911 otherwise-successful ssh-keygen -A. Reported by Dmitry Orlov, via deraadt@
5912
5913commit 9010902954a40b59d0bf3df3ccbc3140a653e2bc
5914Author: djm@openbsd.org <djm@openbsd.org>
5915Date: Fri Jan 16 07:19:48 2015 +0000
5916
5917 upstream commit
5918
5919 when hostname canonicalisation is enabled, try to parse
5920 hostnames as addresses before looking them up for canonicalisation. fixes
5921 bz#2074 and avoids needless DNS lookups in some cases; ok markus
5922
5923commit 2ae4f337b2a5fb2841b6b0053b49496fef844d1c
5924Author: deraadt@openbsd.org <deraadt@openbsd.org>
5925Date: Fri Jan 16 06:40:12 2015 +0000
5926
5927 upstream commit
5928
5929 Replace <sys/param.h> with <limits.h> and other less
5930 dirty headers where possible. Annotate <sys/param.h> lines with their
5931 current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1,
5932 LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of
5933 MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution.
5934 These are the files confirmed through binary verification. ok guenther,
5935 millert, doug (helped with the verification protocol)
5936
5937commit 3c4726f4c24118e8f1bb80bf75f1456c76df072c
5938Author: markus@openbsd.org <markus@openbsd.org>
5939Date: Thu Jan 15 21:38:50 2015 +0000
5940
5941 upstream commit
5942
5943 remove xmalloc, switch to sshbuf
5944
5945commit e17ac01f8b763e4b83976b9e521e90a280acc097
5946Author: markus@openbsd.org <markus@openbsd.org>
5947Date: Thu Jan 15 21:37:14 2015 +0000
5948
5949 upstream commit
5950
5951 switch to sshbuf
5952
5953commit ddef9995a1fa6c7a8ff3b38bfe6cf724bebf13d0
5954Author: naddy@openbsd.org <naddy@openbsd.org>
5955Date: Thu Jan 15 18:32:54 2015 +0000
5956
5957 upstream commit
5958
5959 handle UMAC128 initialization like UMAC; ok djm@ markus@
5960
5961commit f14564c1f7792446bca143580aef0e7ac25dcdae
5962Author: djm@openbsd.org <djm@openbsd.org>
5963Date: Thu Jan 15 11:04:36 2015 +0000
5964
5965 upstream commit
5966
5967 fix regression reported by brad@ for passworded keys without
5968 agent present
5969
5970commit 45c0fd70bb2a88061319dfff20cb12ef7b1bc47e
5971Author: Damien Miller <djm@mindrot.org>
5972Date: Thu Jan 15 22:08:23 2015 +1100
5973
5974 make bitmap test compile
5975
5976commit d333f89abf7179021e5c3f28673f469abe032062
5977Author: djm@openbsd.org <djm@openbsd.org>
5978Date: Thu Jan 15 07:36:28 2015 +0000
5979
5980 upstream commit
5981
5982 unit tests for KRL bitmap
5983
5984commit 7613f828f49c55ff356007ae9645038ab6682556
5985Author: markus@openbsd.org <markus@openbsd.org>
5986Date: Wed Jan 14 09:58:21 2015 +0000
5987
5988 upstream commit
5989
5990 re-add comment about full path
5991
5992commit 6c43b48b307c41cd656b415621a644074579a578
5993Author: markus@openbsd.org <markus@openbsd.org>
5994Date: Wed Jan 14 09:54:38 2015 +0000
5995
5996 upstream commit
5997
5998 don't reset to the installed sshd; connect before
5999 reconfigure, too
6000
6001commit 771bb47a1df8b69061f09462e78aa0b66cd594bf
6002Author: djm@openbsd.org <djm@openbsd.org>
6003Date: Tue Jan 13 14:51:51 2015 +0000
6004
6005 upstream commit
6006
6007 implement a SIGINFO handler so we can discern a stuck
6008 fuzz test from a merely glacial one; prompted by and ok markus
6009
6010commit cfaa57962f8536f3cf0fd7daf4d6a55d6f6de45f
6011Author: djm@openbsd.org <djm@openbsd.org>
6012Date: Tue Jan 13 08:23:26 2015 +0000
6013
6014 upstream commit
6015
6016 use $SSH instead of installed ssh to allow override;
6017 spotted by markus@
6018
6019commit 0920553d0aee117a596b03ed5b49b280d34a32c5
6020Author: djm@openbsd.org <djm@openbsd.org>
6021Date: Tue Jan 13 07:49:49 2015 +0000
6022
6023 upstream commit
6024
6025 regress test for PubkeyAcceptedKeyTypes; ok markus@
6026
6027commit 27ca1a5c0095eda151934bca39a77e391f875d17
6028Author: markus@openbsd.org <markus@openbsd.org>
6029Date: Mon Jan 12 20:13:27 2015 +0000
6030
6031 upstream commit
6032
6033 unbreak parsing of pubkey comments; with gerhard; ok
6034 djm/deraadt
6035
6036commit 55358f0b4e0b83bc0df81c5f854c91b11e0bb4dc
6037Author: djm@openbsd.org <djm@openbsd.org>
6038Date: Mon Jan 12 11:46:32 2015 +0000
6039
6040 upstream commit
6041
6042 fatal if soft-PKCS11 library is missing rather (rather
6043 than continue and fail with a more cryptic error)
6044
6045commit c3554cdd2a1a62434b8161017aa76fa09718a003
6046Author: djm@openbsd.org <djm@openbsd.org>
6047Date: Mon Jan 12 11:12:38 2015 +0000
6048
6049 upstream commit
6050
6051 let this test all supporte key types; pointed out/ok
6052 markus@
6053
6054commit 1129dcfc5a3e508635004bcc05a3574cb7687167
6055Author: djm@openbsd.org <djm@openbsd.org>
6056Date: Thu Jan 15 09:40:00 2015 +0000
6057
6058 upstream commit
6059
6060 sync ssh-keysign, ssh-keygen and some dependencies to the
6061 new buffer/key API; mostly mechanical, ok markus@
6062
6063commit e4ebf5586452bf512da662ac277aaf6ecf0efe7c
6064Author: djm@openbsd.org <djm@openbsd.org>
6065Date: Thu Jan 15 07:57:08 2015 +0000
6066
6067 upstream commit
6068
6069 remove commented-out test code now that it has moved to a
6070 proper unit test
6071
6072commit e81cba066c1e9eb70aba0f6e7c0ff220611b370f
6073Author: djm@openbsd.org <djm@openbsd.org>
6074Date: Wed Jan 14 20:54:29 2015 +0000
6075
6076 upstream commit
6077
6078 whitespace
6079
6080commit 141efe49542f7156cdbc2e4cd0a041d8b1aab622
6081Author: djm@openbsd.org <djm@openbsd.org>
6082Date: Wed Jan 14 20:05:27 2015 +0000
6083
6084 upstream commit
6085
6086 move authfd.c and its tentacles to the new buffer/key
6087 API; ok markus@
6088
6089commit 0088c57af302cda278bd26d8c3ae81d5b6f7c289
6090Author: djm@openbsd.org <djm@openbsd.org>
6091Date: Wed Jan 14 19:33:41 2015 +0000
6092
6093 upstream commit
6094
6095 fix small regression: ssh-agent would return a success
6096 message but an empty signature if asked to sign using an unknown key; ok
6097 markus@
6098
6099commit b03ebe2c22b8166e4f64c37737f4278676e3488d
6100Author: Damien Miller <djm@mindrot.org>
6101Date: Thu Jan 15 03:08:58 2015 +1100
6102
6103 more --without-openssl
6104
6105 fix some regressions caused by upstream merges
6106
6107 enable KRLs now that they no longer require BIGNUMs
6108
6109commit bc42cc6fe784f36df225c44c93b74830027cb5a2
6110Author: Damien Miller <djm@mindrot.org>
6111Date: Thu Jan 15 03:08:29 2015 +1100
6112
6113 kludge around tun API mismatch betterer
6114
6115commit c332110291089b624fa0951fbf2d1ee6de525b9f
6116Author: Damien Miller <djm@mindrot.org>
6117Date: Thu Jan 15 02:59:51 2015 +1100
6118
6119 some systems lack SO_REUSEPORT
6120
6121commit 83b9678a62cbdc74eb2031cf1e1e4ffd58e233ae
6122Author: Damien Miller <djm@mindrot.org>
6123Date: Thu Jan 15 02:35:50 2015 +1100
6124
6125 fix merge botch
6126
6127commit 0cdc5a3eb6fb383569a4da2a30705d9b90428d6b
6128Author: Damien Miller <djm@mindrot.org>
6129Date: Thu Jan 15 02:35:33 2015 +1100
6130
6131 unbreak across API change
6132
6133commit 6e2549ac2b5e7f96cbc2d83a6e0784b120444b47
6134Author: Damien Miller <djm@mindrot.org>
6135Date: Thu Jan 15 02:30:18 2015 +1100
6136
6137 need includes.h for portable OpenSSH
6138
6139commit 72ef7c148c42db7d5632a29f137f8b87b579f2d9
6140Author: Damien Miller <djm@mindrot.org>
6141Date: Thu Jan 15 02:21:31 2015 +1100
6142
6143 support --without-openssl at configure time
6144
6145 Disables and removes dependency on OpenSSL. Many features don't
6146 work and the set of crypto options is greatly restricted. This
6147 will only work on system with native arc4random or /dev/urandom.
6148
6149 Considered highly experimental for now.
6150
6151commit 4f38c61c68ae7e3f9ee4b3c38bc86cd39f65ece9
6152Author: Damien Miller <djm@mindrot.org>
6153Date: Thu Jan 15 02:28:00 2015 +1100
6154
6155 add files missed in last commit
6156
6157commit a165bab605f7be55940bb8fae977398e8c96a46d
6158Author: djm@openbsd.org <djm@openbsd.org>
6159Date: Wed Jan 14 15:02:39 2015 +0000
6160
6161 upstream commit
6162
6163 avoid BIGNUM in KRL code by using a simple bitmap;
6164 feedback and ok markus
6165
6166commit 7d845f4a0b7ec97887be204c3760e44de8bf1f32
6167Author: djm@openbsd.org <djm@openbsd.org>
6168Date: Wed Jan 14 13:54:13 2015 +0000
6169
6170 upstream commit
6171
6172 update sftp client and server to new buffer API. pretty
6173 much just mechanical changes; with & ok markus
6174
6175commit 139ca81866ec1b219c717d17061e5e7ad1059e2a
6176Author: markus@openbsd.org <markus@openbsd.org>
6177Date: Wed Jan 14 13:09:09 2015 +0000
6178
6179 upstream commit
6180
6181 switch to sshbuf/sshkey; with & ok djm@
6182
6183commit 81bfbd0bd35683de5d7f2238b985e5f8150a9180
6184Author: Damien Miller <djm@mindrot.org>
6185Date: Wed Jan 14 21:48:18 2015 +1100
6186
6187 support --without-openssl at configure time
6188
6189 Disables and removes dependency on OpenSSL. Many features don't
6190 work and the set of crypto options is greatly restricted. This
6191 will only work on system with native arc4random or /dev/urandom.
6192
6193 Considered highly experimental for now.
6194
6195commit 54924b53af15ccdcbb9f89984512b5efef641a31
6196Author: djm@openbsd.org <djm@openbsd.org>
6197Date: Wed Jan 14 10:46:28 2015 +0000
6198
6199 upstream commit
6200
6201 avoid an warning for the !OPENSSL case
6202
6203commit ae8b463217f7c9b66655bfc3945c050ffdaeb861
6204Author: markus@openbsd.org <markus@openbsd.org>
6205Date: Wed Jan 14 10:30:34 2015 +0000
6206
6207 upstream commit
6208
6209 swith auth-options to new sshbuf/sshkey; ok djm@
6210
6211commit 540e891191b98b89ee90aacf5b14a4a68635e763
6212Author: djm@openbsd.org <djm@openbsd.org>
6213Date: Wed Jan 14 10:29:45 2015 +0000
6214
6215 upstream commit
6216
6217 make non-OpenSSL aes-ctr work on sshd w/ privsep; ok
6218 markus@
6219
6220commit 60c2c4ea5e1ad0ddfe8b2877b78ed5143be79c53
6221Author: markus@openbsd.org <markus@openbsd.org>
6222Date: Wed Jan 14 10:24:42 2015 +0000
6223
6224 upstream commit
6225
6226 remove unneeded includes, sync my copyright across files
6227 & whitespace; ok djm@
6228
6229commit 128343bcdb0b60fc826f2733df8cf979ec1627b4
6230Author: markus@openbsd.org <markus@openbsd.org>
6231Date: Tue Jan 13 19:31:40 2015 +0000
6232
6233 upstream commit
6234
6235 adapt mac.c to ssherr.h return codes (de-fatal) and
6236 simplify dependencies ok djm@
6237
6238commit e7fd952f4ea01f09ceb068721a5431ac2fd416ed
6239Author: djm@openbsd.org <djm@openbsd.org>
6240Date: Tue Jan 13 19:04:35 2015 +0000
6241
6242 upstream commit
6243
6244 sync changes from libopenssh; prepared by markus@ mostly
6245 debug output tweaks, a couple of error return value changes and some other
6246 minor stuff
6247
6248commit 76c0480a85675f03a1376167cb686abed01a3583
6249Author: Damien Miller <djm@mindrot.org>
6250Date: Tue Jan 13 19:38:18 2015 +1100
6251
6252 add --without-ssh1 option to configure
6253
6254 Allows disabling support for SSH protocol 1.
6255
6256commit 1f729f0614d1376c3332fa1edb6a5e5cec7e9e03
6257Author: djm@openbsd.org <djm@openbsd.org>
6258Date: Tue Jan 13 07:39:19 2015 +0000
6259
6260 upstream commit
6261
6262 add sshd_config HostbasedAcceptedKeyTypes and
6263 PubkeyAcceptedKeyTypes options to allow sshd to control what public key types
6264 will be accepted. Currently defaults to all. Feedback & ok markus@
6265
6266commit 816d1538c24209a93ba0560b27c4fda57c3fff65
6267Author: markus@openbsd.org <markus@openbsd.org>
6268Date: Mon Jan 12 20:13:27 2015 +0000
6269
6270 upstream commit
6271
6272 unbreak parsing of pubkey comments; with gerhard; ok
6273 djm/deraadt
6274
6275commit 0097565f849851812df610b7b6b3c4bd414f6c62
6276Author: markus@openbsd.org <markus@openbsd.org>
6277Date: Mon Jan 12 19:22:46 2015 +0000
6278
6279 upstream commit
6280
6281 missing error assigment on sshbuf_put_string()
6282
6283commit a7f49dcb527dd17877fcb8d5c3a9a6f550e0bba5
6284Author: djm@openbsd.org <djm@openbsd.org>
6285Date: Mon Jan 12 15:18:07 2015 +0000
6286
6287 upstream commit
6288
6289 apparently memcpy(x, NULL, 0) is undefined behaviour
6290 according to C99 (cf. sections 7.21.1 and 7.1.4), so check skip memcpy calls
6291 when length==0; ok markus@
6292
6293commit 905fe30fca82f38213763616d0d26eb6790bde33
6294Author: markus@openbsd.org <markus@openbsd.org>
6295Date: Mon Jan 12 14:05:19 2015 +0000
6296
6297 upstream commit
6298
6299 free->sshkey_free; ok djm@
6300
6301commit f067cca2bc20c86b110174c3fef04086a7f57b13
6302Author: markus@openbsd.org <markus@openbsd.org>
6303Date: Mon Jan 12 13:29:27 2015 +0000
6304
6305 upstream commit
6306
6307 allow WITH_OPENSSL w/o WITH_SSH1; ok djm@
6308
6309commit c4bfafcc2a9300d9cfb3c15e75572d3a7d74670d
6310Author: djm@openbsd.org <djm@openbsd.org>
6311Date: Thu Jan 8 13:10:58 2015 +0000
6312
6313 upstream commit
6314
6315 adjust for sshkey_load_file() API change
6316
6317commit e752c6d547036c602b89e9e704851463bd160e32
6318Author: djm@openbsd.org <djm@openbsd.org>
6319Date: Thu Jan 8 13:44:36 2015 +0000
6320
6321 upstream commit
6322
6323 fix ssh_config FingerprintHash evaluation order; from Petr
6324 Lautrbach
6325
6326commit ab24ab847b0fc94c8d5e419feecff0bcb6d6d1bf
6327Author: djm@openbsd.org <djm@openbsd.org>
6328Date: Thu Jan 8 10:15:45 2015 +0000
6329
6330 upstream commit
6331
6332 reorder hostbased key attempts to better match the
6333 default hostkey algorithms order in myproposal.h; ok markus@
6334
6335commit 1195f4cb07ef4b0405c839293c38600b3e9bdb46
6336Author: djm@openbsd.org <djm@openbsd.org>
6337Date: Thu Jan 8 10:14:08 2015 +0000
6338
6339 upstream commit
6340
6341 deprecate key_load_private_pem() and
6342 sshkey_load_private_pem() interfaces. Refactor the generic key loading API to
6343 not require pathnames to be specified (they weren't really used).
6344
6345 Fixes a few other things en passant:
6346
6347 Makes ed25519 keys work for hostbased authentication (ssh-keysign
6348 previously used the PEM-only routines).
6349
6350 Fixes key comment regression bz#2306: key pathnames were being lost as
6351 comment fields.
6352
6353 ok markus@
6354
6355commit febbe09e4e9aff579b0c5cc1623f756862e4757d
6356Author: tedu@openbsd.org <tedu@openbsd.org>
6357Date: Wed Jan 7 18:15:07 2015 +0000
6358
6359 upstream commit
6360
6361 workaround for the Meyer, et al, Bleichenbacher Side
6362 Channel Attack. fake up a bignum key before RSA decryption. discussed/ok djm
6363 markus
6364
6365commit 5191df927db282d3123ca2f34a04d8d96153911a
6366Author: djm@openbsd.org <djm@openbsd.org>
6367Date: Tue Dec 23 22:42:48 2014 +0000
6368
6369 upstream commit
6370
6371 KNF and add a little more debug()
6372
6373commit 8abd80315d3419b20e6938f74d37e2e2b547f0b7
6374Author: jmc@openbsd.org <jmc@openbsd.org>
6375Date: Mon Dec 22 09:26:31 2014 +0000
6376
6377 upstream commit
6378
6379 add fingerprinthash to the options list;
6380
6381commit 296ef0560f60980da01d83b9f0e1a5257826536f
6382Author: jmc@openbsd.org <jmc@openbsd.org>
6383Date: Mon Dec 22 09:24:59 2014 +0000
6384
6385 upstream commit
6386
6387 tweak previous;
6388
6389commit 462082eacbd37778a173afb6b84c6f4d898a18b5
6390Author: Damien Miller <djm@google.com>
6391Date: Tue Dec 30 08:16:11 2014 +1100
6392
6393 avoid uninitialised free of ldns_res
6394
6395 If an invalid rdclass was passed to getrrsetbyname() then
6396 this would execute a free on an uninitialised pointer.
6397 OpenSSH only ever calls this with a fixed and valid rdclass.
6398
6399 Reported by Joshua Rogers
6400
6401commit 01b63498801053f131a0740eb9d13faf35d636c8
6402Author: Damien Miller <djm@google.com>
6403Date: Mon Dec 29 18:10:18 2014 +1100
6404
6405 pull updated OpenBSD BCrypt PBKDF implementation
6406
6407 Includes fix for 1 byte output overflow for large key length
6408 requests (not reachable in OpenSSH).
6409
6410 Pointed out by Joshua Rogers
6411
6412commit c528c1b4af2f06712177b3de9b30705752f7cbcb
6413Author: Damien Miller <djm@google.com>
6414Date: Tue Dec 23 15:26:13 2014 +1100
6415
6416 fix variable name for IPv6 case in construct_utmpx
6417
6418 patch from writeonce AT midipix.org via bz#2296
6419
6420commit 293cac52dcda123244b2e594d15592e5e481c55e
6421Author: Damien Miller <djm@google.com>
6422Date: Mon Dec 22 16:30:42 2014 +1100
6423
6424 include and use OpenBSD netcat in regress/
6425
6426commit 8f6784f0cb56dc4fd00af3e81a10050a5785228d
6427Author: djm@openbsd.org <djm@openbsd.org>
6428Date: Mon Dec 22 09:05:17 2014 +0000
6429
6430 upstream commit
6431
6432 mention ssh -Q feature to list supported { MAC, cipher,
6433 KEX, key } algorithms in more places and include the query string used to
6434 list the relevant information; bz#2288
6435
6436commit 449e11b4d7847079bd0a2daa6e3e7ea03d8ef700
6437Author: jmc@openbsd.org <jmc@openbsd.org>
6438Date: Mon Dec 22 08:24:17 2014 +0000
6439
6440 upstream commit
6441
6442 tweak previous;
6443
6444commit 4bea0ab3290c0b9dd2aa199e932de8e7e18062d6
6445Author: djm@openbsd.org <djm@openbsd.org>
6446Date: Mon Dec 22 08:06:03 2014 +0000
6447
6448 upstream commit
6449
6450 regression test for multiple required pubkey authentication;
6451 ok markus@
6452
6453commit f1c4d8ec52158b6f57834b8cd839605b0a33e7f2
6454Author: djm@openbsd.org <djm@openbsd.org>
6455Date: Mon Dec 22 08:04:23 2014 +0000
6456
6457 upstream commit
6458
6459 correct description of what will happen when a
6460 AuthorizedKeysCommand is specified but AuthorizedKeysCommandUser is not (sshd
6461 will refuse to start)
6462
6463commit 161cf419f412446635013ac49e8c660cadc36080
6464Author: djm@openbsd.org <djm@openbsd.org>
6465Date: Mon Dec 22 07:55:51 2014 +0000
6466
6467 upstream commit
6468
6469 make internal handling of filename arguments of "none"
6470 more consistent with ssh. "none" arguments are now replaced with NULL when
6471 the configuration is finalised.
6472
6473 Simplifies checking later on (just need to test not-NULL rather than
6474 that + strcmp) and cleans up some inconsistencies. ok markus@
6475
6476commit f69b69b8625be447b8826b21d87713874dac25a6
6477Author: djm@openbsd.org <djm@openbsd.org>
6478Date: Mon Dec 22 07:51:30 2014 +0000
6479
6480 upstream commit
6481
6482 remember which public keys have been used for
6483 authentication and refuse to accept previously-used keys.
6484
6485 This allows AuthenticationMethods=publickey,publickey to require
6486 that users authenticate using two _different_ pubkeys.
6487
6488 ok markus@
6489
6490commit 46ac2ed4677968224c4ca825bc98fc68dae183f0
6491Author: djm@openbsd.org <djm@openbsd.org>
6492Date: Mon Dec 22 07:24:11 2014 +0000
6493
6494 upstream commit
6495
6496 fix passing of wildcard forward bind addresses when
6497 connection multiplexing is in use; patch from Sami Hartikainen via bz#2324;
6498 ok dtucker@
6499
6500commit 0d1b241a262e4d0a6bbfdd595489ab1b853c43a1
6501Author: djm@openbsd.org <djm@openbsd.org>
6502Date: Mon Dec 22 06:14:29 2014 +0000
6503
6504 upstream commit
6505
6506 make this slightly easier to diff against portable
6507
6508commit 0715bcdddbf68953964058f17255bf54734b8737
6509Author: Damien Miller <djm@mindrot.org>
6510Date: Mon Dec 22 13:47:07 2014 +1100
6511
6512 add missing regress output file
6513
6514commit 1e30483c8ad2c2f39445d4a4b6ab20c241e40593
6515Author: djm@openbsd.org <djm@openbsd.org>
6516Date: Mon Dec 22 02:15:52 2014 +0000
6517
6518 upstream commit
6519
6520 adjust for new SHA256 key fingerprints and
6521 slightly-different MD5 hex fingerprint format
6522
6523commit 6b40567ed722df98593ad8e6a2d2448fc2b4b151
6524Author: djm@openbsd.org <djm@openbsd.org>
6525Date: Mon Dec 22 01:14:49 2014 +0000
6526
6527 upstream commit
6528
6529 poll changes to netcat (usr.bin/netcat.c r1.125) broke
6530 this test; fix it by ensuring more stdio fds are sent to devnull
6531
6532commit a5375ccb970f49dddf7d0ef63c9b713ede9e7260
6533Author: jmc@openbsd.org <jmc@openbsd.org>
6534Date: Sun Dec 21 23:35:14 2014 +0000
6535
6536 upstream commit
6537
6538 tweak previous;
6539
6540commit b79efde5c3badf5ce4312fe608d8307eade533c5
6541Author: djm@openbsd.org <djm@openbsd.org>
6542Date: Sun Dec 21 23:12:42 2014 +0000
6543
6544 upstream commit
6545
6546 document FingerprintHash here too
6547
6548commit d16bdd8027dd116afa01324bb071a4016cdc1a75
6549Author: Damien Miller <djm@mindrot.org>
6550Date: Mon Dec 22 10:18:09 2014 +1100
6551
6552 missing include for base64 encoding
6553
6554commit 56d1c83cdd1ac76f1c6bd41e01e80dad834f3994
6555Author: djm@openbsd.org <djm@openbsd.org>
6556Date: Sun Dec 21 22:27:55 2014 +0000
6557
6558 upstream commit
6559
6560 Add FingerprintHash option to control algorithm used for
6561 key fingerprints. Default changes from MD5 to SHA256 and format from hex to
6562 base64.
6563
6564 Feedback and ok naddy@ markus@
6565
6566commit 058f839fe15c51be8b3a844a76ab9a8db550be4f
6567Author: djm@openbsd.org <djm@openbsd.org>
6568Date: Thu Dec 18 23:58:04 2014 +0000
6569
6570 upstream commit
6571
6572 don't count partial authentication success as a failure
6573 against MaxAuthTries; ok deraadt@
6574
6575commit c7219f4f54d64d6dde66dbcf7a2699daa782d2a1
6576Author: djm@openbsd.org <djm@openbsd.org>
6577Date: Fri Dec 12 00:02:17 2014 +0000
6578
6579 upstream commit
6580
6581 revert chunk I didn't mean to commit yet; via jmc@
6582
6583commit 7de5991aa3997e2981440f39c1ea01273a0a2c7b
6584Author: Damien Miller <djm@mindrot.org>
6585Date: Thu Dec 18 11:44:06 2014 +1100
6586
6587 upstream libc change
6588
6589 revision 1.2
6590 date: 2014/12/08 03:45:00; author: bcook; state: Exp; lines: +2 -2; commitid: 7zWEBgJJOCZ2hvTV;
6591 avoid left shift overflow in reallocarray.
6592
6593 Some 64-bit platforms (e.g. Windows 64) have a 32-bit long. So, shifting
6594 1UL 32-bits to the left causes an overflow. This replaces the constant 1UL with
6595 (size_t)1 so that we get the correct constant size for the platform.
6596
6597 discussed with tedu@ & deraadt@
6598
6599commit 2048f85a5e6da8bc6e0532efe02ecfd4e63c978c
6600Author: Damien Miller <djm@mindrot.org>
6601Date: Thu Dec 18 10:15:49 2014 +1100
6602
6603 include CFLAGS in gnome askpass targets
6604
6605 from Fedora
6606
6607commit 48b68ce19ca42fa488960028048dec023f7899bb
6608Author: djm@openbsd.org <djm@openbsd.org>
6609Date: Thu Dec 11 08:20:09 2014 +0000
6610
6611 upstream commit
6612
6613 explicitly include sys/param.h in files that use the
6614 howmany() macro; from portable
6615
6616commit d663bea30a294d440fef4398e5cd816317bd4518
6617Author: djm@openbsd.org <djm@openbsd.org>
6618Date: Thu Dec 11 05:25:06 2014 +0000
6619
6620 upstream commit
6621
6622 mention AuthorizedKeysCommandUser must be set for
6623 AuthorizedKeysCommand to be run; bz#2287
6624
6625commit 17bf3d81e00f2abb414a4fd271118cf4913f049f
6626Author: djm@openbsd.org <djm@openbsd.org>
6627Date: Thu Dec 11 05:13:28 2014 +0000
6628
6629 upstream commit
6630
6631 show in debug output which hostkeys are being tried when
6632 attempting hostbased auth; patch from Iain Morgan
6633
6634commit da0277e3717eadf5b15e03379fc29db133487e94
6635Author: djm@openbsd.org <djm@openbsd.org>
6636Date: Thu Dec 11 04:16:14 2014 +0000
6637
6638 upstream commit
6639
6640 Make manual reflect reality: sftp-server's -d option
6641 accepts a "%d" option, not a "%h" one.
6642
6643 bz#2316; reported by Kirk Wolf
6644
6645commit 4cf87f4b81fa9380bce5fcff7b0f8382ae3ad996
6646Author: djm@openbsd.org <djm@openbsd.org>
6647Date: Wed Dec 10 01:24:09 2014 +0000
6648
6649 upstream commit
6650
6651 better error value for invalid signature length
6652
6653commit 4bfad14ca56f8ae04f418997816b4ba84e2cfc3c
6654Author: Darren Tucker <dtucker@zip.com.au>
6655Date: Wed Dec 10 02:12:51 2014 +1100
6656
6657 Resync more with OpenBSD's rijndael.c, in particular "#if 0"-ing out some
6658 unused code. Should fix compile error reported by plautrba at redhat.
6659
6660commit 642652d280499691c8212ec6b79724b50008ce09
6661Author: Darren Tucker <dtucker@zip.com.au>
6662Date: Wed Dec 10 01:32:23 2014 +1100
6663
6664 Add reallocarray to compat library
6665
6666commit 3dfd8d93dfcc69261f5af99df56f3ff598581979
6667Author: djm@openbsd.org <djm@openbsd.org>
6668Date: Thu Dec 4 22:31:50 2014 +0000
6669
6670 upstream commit
6671
6672 add tests for new client RevokedHostKeys option; refactor
6673 to make it a bit more readable
6674
6675commit a31046cad1aed16a0b55171192faa6d02665ccec
6676Author: krw@openbsd.org <krw@openbsd.org>
6677Date: Wed Nov 19 13:35:37 2014 +0000
6678
6679 upstream commit
6680
6681 Nuke yet more obvious #include duplications.
6682
6683 ok deraadt@
6684
6685commit a7c762e5b2c1093542c0bc1df25ccec0b4cf479f
6686Author: djm@openbsd.org <djm@openbsd.org>
6687Date: Thu Dec 4 20:47:36 2014 +0000
6688
6689 upstream commit
6690
6691 key_in_file() wrapper is no longer used
6692
6693commit 5e39a49930d885aac9c76af3129332b6e772cd75
6694Author: djm@openbsd.org <djm@openbsd.org>
6695Date: Thu Dec 4 02:24:32 2014 +0000
6696
6697 upstream commit
6698
6699 add RevokedHostKeys option for the client
6700
6701 Allow textfile or KRL-based revocation of hostkeys.
6702
6703commit 74de254bb92c684cf53461da97f52d5ba34ded80
6704Author: djm@openbsd.org <djm@openbsd.org>
6705Date: Thu Dec 4 01:49:59 2014 +0000
6706
6707 upstream commit
6708
6709 convert KRL code to new buffer API
6710
6711 ok markus@
6712
6713commit db995f2eed5fc432598626fa3e30654503bf7151
6714Author: millert@openbsd.org <millert@openbsd.org>
6715Date: Wed Nov 26 18:34:51 2014 +0000
6716
6717 upstream commit
6718
6719 Prefer setvbuf() to setlinebuf() for portability; ok
6720 deraadt@
6721
6722commit 72bba3d179ced8b425272efe6956a309202a91f3
6723Author: jsg@openbsd.org <jsg@openbsd.org>
6724Date: Mon Nov 24 03:39:22 2014 +0000
6725
6726 upstream commit
6727
6728 Fix crashes in the handling of the sshd config file found
6729 with the afl fuzzer.
6730
6731 ok deraadt@ djm@
6732
6733commit 867f49c666adcfe92bf539d9c37c1accdea08bf6
6734Author: Damien Miller <djm@mindrot.org>
6735Date: Wed Nov 26 13:22:41 2014 +1100
6736
6737 Avoid Cygwin ssh-host-config reading /etc/group
6738
6739 Patch from Corinna Vinschen
6740
6741commit 8b66f36291a721b1ba7c44f24a07fdf39235593e
6742Author: Damien Miller <djm@mindrot.org>
6743Date: Wed Nov 26 13:20:35 2014 +1100
6744
6745 allow custom service name for sshd on Cygwin
6746
6747 Permits the use of multiple sshd running with different service names.
6748
6749 Patch by Florian Friesdorf via Corinna Vinschen
6750
6751commit 08c0eebf55d70a9ae1964399e609288ae3186a0c
6752Author: jmc@openbsd.org <jmc@openbsd.org>
6753Date: Sat Nov 22 19:21:03 2014 +0000
6754
6755 upstream commit
6756
6757 restore word zapped in previous, and remove some useless
6758 "No" macros;
6759
6760commit a1418a0033fba43f061513e992e1cbcc3343e563
6761Author: deraadt@openbsd.org <deraadt@openbsd.org>
6762Date: Sat Nov 22 18:15:41 2014 +0000
6763
6764 upstream commit
6765
6766 /dev/random has created the same effect as /dev/arandom
6767 (and /dev/urandom) for quite some time. Mop up the last few, by using
6768 /dev/random where we actually want it, or not even mentioning arandom where
6769 it is irrelevant.
6770
6771commit b6de5ac9ed421362f479d1ad4fa433d2e25dad5b
6772Author: djm@openbsd.org <djm@openbsd.org>
6773Date: Fri Nov 21 01:00:38 2014 +0000
6774
6775 upstream commit
6776
6777 fix NULL pointer dereference crash on invalid timestamp
6778
6779 found using Michal Zalewski's afl fuzzer
6780
6781commit a1f8110cd5ed818d59b3a2964fab7de76e92c18e
6782Author: mikeb@openbsd.org <mikeb@openbsd.org>
6783Date: Tue Nov 18 22:38:48 2014 +0000
6784
6785 upstream commit
6786
6787 Sync AES code to the one shipped in OpenSSL/LibreSSL.
6788
6789 This includes a commit made by Andy Polyakov <appro at openssl ! org>
6790 to the OpenSSL source tree on Wed, 28 Jun 2006 with the following
6791 message: "Mitigate cache-collision timing attack on last round."
6792
6793 OK naddy, miod, djm
6794
6795commit 335c83d5f35d8620e16b8aa26592d4f836e09ad2
6796Author: krw@openbsd.org <krw@openbsd.org>
6797Date: Tue Nov 18 20:54:28 2014 +0000
6798
6799 upstream commit
6800
6801 Nuke more obvious #include duplications.
6802
6803 ok deraadt@ millert@ tedu@
6804
6805commit 51b64e44121194ae4bf153dee391228dada2abcb
6806Author: djm@openbsd.org <djm@openbsd.org>
6807Date: Mon Nov 17 00:21:40 2014 +0000
6808
6809 upstream commit
6810
6811 fix KRL generation when multiple CAs are in use
6812
6813 We would generate an invalid KRL when revoking certs by serial
6814 number for multiple CA keys due to a section being written out
6815 twice.
6816
6817 Also extend the regress test to catch this case by having it
6818 produce a multi-CA KRL.
6819
6820 Reported by peter AT pean.org
6821
6822commit d2d51003a623e21fb2b25567c4878d915e90aa2a
6823Author: djm@openbsd.org <djm@openbsd.org>
6824Date: Tue Nov 18 01:02:25 2014 +0000
6825
6826 upstream commit
6827
6828 fix NULL pointer dereference crash in key loading
6829
6830 found by Michal Zalewski's AFL fuzzer
6831
6832commit 9f9fad0191028edc43d100d0ded39419b6895fdf
6833Author: djm@openbsd.org <djm@openbsd.org>
6834Date: Mon Nov 17 00:21:40 2014 +0000
6835
6836 upstream commit
6837
6838 fix KRL generation when multiple CAs are in use
6839
6840 We would generate an invalid KRL when revoking certs by serial
6841 number for multiple CA keys due to a section being written out
6842 twice.
6843
6844 Also extend the regress test to catch this case by having it
6845 produce a multi-CA KRL.
6846
6847 Reported by peter AT pean.org
6848
6849commit da8af83d3f7ec00099963e455010e0ed1d7d0140
6850Author: bentley@openbsd.org <bentley@openbsd.org>
6851Date: Sat Nov 15 14:41:03 2014 +0000
6852
6853 upstream commit
6854
6855 Reduce instances of `` '' in manuals.
6856
6857 troff displays these as typographic quotes, but nroff implementations
6858 almost always print them literally, which rarely has the intended effect
6859 with modern fonts, even in stock xterm.
6860
6861 These uses of `` '' can be replaced either with more semantic alternatives
6862 or with Dq, which prints typographic quotes in a UTF-8 locale (but will
6863 automatically fall back to `` '' in an ASCII locale).
6864
6865 improvements and ok schwarze@
6866
6867commit fc302561369483bb755b17f671f70fb894aec01d
6868Author: djm@openbsd.org <djm@openbsd.org>
6869Date: Mon Nov 10 22:25:49 2014 +0000
6870
6871 upstream commit
6872
6873 mux-related manual tweaks
6874
6875 mention ControlPersist=0 is the same as ControlPersist=yes
6876
6877 recommend that ControlPath sockets be placed in a og-w directory
6878
6879commit 0e4cff5f35ed11102fe3783779960ef07e0cd381
6880Author: Damien Miller <djm@google.com>
6881Date: Wed Nov 5 11:01:31 2014 +1100
6882
6883 Prepare scripts for next Cygwin release
6884
6885 Makes the Cygwin-specific ssh-user-config script independent of the
6886 existence of /etc/passwd. The next Cygwin release will allow to
6887 generate passwd and group entries from the Windows account DBs, so the
6888 scripts have to adapt.
6889
6890 from Corinna Vinschen
6891
6892commit 7d0ba5336651731949762eb8877ce9e3b52df436
6893Author: Damien Miller <djm@mindrot.org>
6894Date: Thu Oct 30 10:45:41 2014 +1100
6895
6896 include version number in OpenSSL-too-old error
6897
6898commit 3bcb92e04d9207e9f78d82f7918c6d3422054ce9
6899Author: lteo@openbsd.org <lteo@openbsd.org>
6900Date: Fri Oct 24 02:01:20 2014 +0000
6901
6902 upstream commit
6903
6904 Remove unnecessary include: netinet/in_systm.h is not needed
6905 by these programs.
6906
6907 NB. skipped for portable
6908
6909 ok deraadt@ millert@
6910
6911commit 6fdcaeb99532e28a69f1a1599fbd540bb15b70a0
6912Author: djm@openbsd.org <djm@openbsd.org>
6913Date: Mon Oct 20 03:43:01 2014 +0000
6914
6915 upstream commit
6916
6917 whitespace
6918
6919commit 165bc8786299e261706ed60342985f9de93a7461
6920Author: daniel@openbsd.org <daniel@openbsd.org>
6921Date: Tue Oct 14 03:09:59 2014 +0000
6922
6923 upstream commit
6924
6925 plug a memory leak; from Maxime Villard.
6926
6927 ok djm@
6928
6929commit b1ba15f3885947c245c2dbfaad0a04ba050abea0
6930Author: jmc@openbsd.org <jmc@openbsd.org>
6931Date: Thu Oct 9 06:21:31 2014 +0000
6932
6933 upstream commit
6934
6935 tweak previous;
6936
6937commit 259a02ebdf74ad90b41d116ecf70aa823fa4c6e7
6938Author: djm@openbsd.org <djm@openbsd.org>
6939Date: Mon Oct 13 00:38:35 2014 +0000
6940
6941 upstream commit
6942
6943 whitespace
6944
6945commit 957fbceb0f3166e41b76fdb54075ab3b9cc84cba
6946Author: djm@openbsd.org <djm@openbsd.org>
6947Date: Wed Oct 8 22:20:25 2014 +0000
6948
6949 upstream commit
6950
6951 Tweak config reparsing with host canonicalisation
6952
6953 Make the second pass through the config files always run when
6954 hostname canonicalisation is enabled.
6955
6956 Add a "Match canonical" criteria that allows ssh_config Match
6957 blocks to trigger only in the second config pass.
6958
6959 Add a -G option to ssh that causes it to parse its configuration
6960 and dump the result to stdout, similar to "sshd -T"
6961
6962 Allow ssh_config Port options set in the second config parse
6963 phase to be applied (they were being ignored).
6964
6965 bz#2267 bz#2286; ok markus
6966
6967commit 5c0dafd38bf66feeeb45fa0741a5baf5ad8039ba
6968Author: djm@openbsd.org <djm@openbsd.org>
6969Date: Wed Oct 8 22:15:27 2014 +0000
6970
6971 upstream commit
6972
6973 another -Wpointer-sign from clang
6974
6975commit bb005dc815ebda9af3ae4b39ca101c4da918f835
6976Author: djm@openbsd.org <djm@openbsd.org>
6977Date: Wed Oct 8 22:15:06 2014 +0000
6978
6979 upstream commit
6980
6981 fix a few -Wpointer-sign warnings from clang
6982
6983commit 3cc1fbb4fb0e804bfb873fd363cea91b27fc8188
6984Author: djm@openbsd.org <djm@openbsd.org>
6985Date: Wed Oct 8 21:45:48 2014 +0000
6986
6987 upstream commit
6988
6989 parse cert sections using nested buffers to reduce
6990 copies; ok markus
6991
6992commit 4a45922aebf99164e2fc83d34fe55b11ae1866ef
6993Author: djm@openbsd.org <djm@openbsd.org>
6994Date: Mon Oct 6 00:47:15 2014 +0000
6995
6996 upstream commit
6997
6998 correct options in usage(); from mancha1 AT zoho.com
6999
7000commit 48dffd5bebae6fed0556dc5c36cece0370690618
7001Author: djm@openbsd.org <djm@openbsd.org>
7002Date: Tue Sep 9 09:45:36 2014 +0000
7003
7004 upstream commit
7005
7006 mention permissions on tun(4) devices in PermitTunnel
7007 documentation; bz#2273
7008
7009commit a5883d4eccb94b16c355987f58f86a7dee17a0c2
7010Author: djm@openbsd.org <djm@openbsd.org>
7011Date: Wed Sep 3 18:55:07 2014 +0000
7012
7013 upstream commit
7014
7015 tighten permissions on pty when the "tty" group does
7016 not exist; pointed out by Corinna Vinschen; ok markus
7017
7018commit 180bcb406b58bf30723c01a6b010e48ee626dda8
7019Author: sobrado@openbsd.org <sobrado@openbsd.org>
7020Date: Sat Aug 30 16:32:25 2014 +0000
7021
7022 upstream commit
7023
7024 typo.
7025
7026commit f70b22bcdd52f6bf127047b3584371e6e5d45627
7027Author: sobrado@openbsd.org <sobrado@openbsd.org>
7028Date: Sat Aug 30 15:33:50 2014 +0000
7029
7030 upstream commit
7031
7032 improve capitalization for the Ed25519 public-key
7033 signature system.
7034
7035 ok djm@
7036
7037commit 7df8818409c752cf3f0c3f8044fe9aebed8647bd
7038Author: doug@openbsd.org <doug@openbsd.org>
7039Date: Thu Aug 21 01:08:52 2014 +0000
7040
7041 upstream commit
7042
7043 Free resources on error in mkstemp and fdopen
7044
7045 ok djm@
7046
7047commit 40ba4c9733aaed08304714faeb61529f18da144b
7048Author: deraadt@openbsd.org <deraadt@openbsd.org>
7049Date: Wed Aug 20 01:28:55 2014 +0000
7050
7051 upstream commit
7052
7053 djm how did you make a typo like that...
7054
7055commit 57d378ec9278ba417a726f615daad67d157de666
7056Author: djm@openbsd.org <djm@openbsd.org>
7057Date: Tue Aug 19 23:58:28 2014 +0000
7058
7059 upstream commit
7060
7061 When dumping the server configuration (sshd -T), print
7062 correct KEX, MAC and cipher defaults. Spotted by Iain Morgan
7063
7064commit 7ff880ede5195d0b17e7f1e3b6cfbc4cb6f85240
7065Author: djm@openbsd.org <djm@openbsd.org>
7066Date: Tue Aug 19 23:57:18 2014 +0000
7067
7068 upstream commit
7069
7070 ~-expand lcd paths
7071
7072commit 4460a7ad0c78d4cd67c467f6e9f4254d0404ed59
7073Author: Damien Miller <djm@mindrot.org>
7074Date: Sun Oct 12 12:35:48 2014 +1100
7075
7076 remove duplicated KEX_DH1 entry
7077
7078commit c9b8426a616138d0d762176c94f51aff3faad5ff
7079Author: Damien Miller <djm@mindrot.org>
7080Date: Thu Oct 9 10:34:06 2014 +1100
7081
7082 remove ChangeLog file
7083
7084 Commit logs will be generated from git at release time.
7085
7086commit 81d18ff7c93a04affbf3903e0963859763219aed
7087Author: Damien Miller <djm@google.com>
7088Date: Tue Oct 7 21:24:25 2014 +1100
7089
7090 delete contrib/caldera directory
7091
7092commit 0ec9e87d3638206456968202f05bb5123670607a
7093Author: Damien Miller <djm@google.com>
7094Date: Tue Oct 7 19:57:27 2014 +1100
7095
7096 test commit
7097
7098commit 8fb65a44568701b779f3d77326bceae63412d28d
7099Author: Damien Miller <djm@mindrot.org>
7100Date: Tue Oct 7 09:21:49 2014 +1100
7101
7102 - (djm) Release OpenSSH-6.7
7103
7104commit e8c9f2602c46f6781df5e52e6cd8413dab4602a3
7105Author: Damien Miller <djm@mindrot.org>
7106Date: Fri Oct 3 09:24:56 2014 +1000
7107
7108 - (djm) [sshd_config.5] typo; from Iain Morgan
7109
7110commit 703b98a26706f5083801d11059486d77491342ae
7111Author: Damien Miller <djm@mindrot.org>
7112Date: Wed Oct 1 09:43:07 2014 +1000
7113
7114 - (djm) [openbsd-compat/Makefile.in openbsd-compat/kludge-fd_set.c]
7115 [openbsd-compat/openbsd-compat.h] Kludge around bad glibc
7116 _FORTIFY_SOURCE check that doesn't grok heap-allocated fd_sets;
7117 ok dtucker@
7118
7119commit 0fa0ed061bbfedb0daa705e220748154a84c3413
7120Author: Damien Miller <djm@mindrot.org>
7121Date: Wed Sep 10 08:15:34 2014 +1000
7122
7123 - (djm) [sandbox-seccomp-filter.c] Allow mremap and exit for DietLibc;
7124 patch from Felix von Leitner; ok dtucker
7125
7126commit ad7d23d461c3b7e1dcb15db13aee5f4b94dc1a95
7127Author: Darren Tucker <dtucker@zip.com.au>
7128Date: Tue Sep 9 12:23:10 2014 +1000
7129
7130 20140908
7131 - (dtucker) [INSTALL] Update info about egd. ok djm@
7132
7133commit 2a8699f37cc2515e3bc60e0c677ba060f4d48191
7134Author: Damien Miller <djm@mindrot.org>
7135Date: Thu Sep 4 03:46:05 2014 +1000
7136
7137 - (djm) [openbsd-compat/arc4random.c] Zero seed after keying PRNG
7138
7139commit 44988defb1f5e3afe576d86000365e1f07a1b494
7140Author: Damien Miller <djm@mindrot.org>
7141Date: Wed Sep 3 05:35:32 2014 +1000
7142
7143 - (djm) [contrib/cygwin/ssh-host-config] Fix old code leading to
7144 permissions/ACLs; from Corinna Vinschen
7145
7146commit 23f269562b7537b2f6f5014e50a25e5dcc55a837
7147Author: Damien Miller <djm@mindrot.org>
7148Date: Wed Sep 3 05:33:25 2014 +1000
7149
7150 - (djm) [defines.h sshbuf.c] Move __predict_true|false to defines.h and
7151 conditionalise to avoid duplicate definition.
7152
7153commit 41c8de2c0031cf59e7cf0c06b5bcfbf4852c1fda
7154Author: Damien Miller <djm@mindrot.org>
7155Date: Sat Aug 30 16:23:06 2014 +1000
7156
7157 - (djm) [Makefile.in] Make TEST_SHELL a variable; "good idea" tim@
7158
7159commit d7c81e216a7bd9eed6e239c970d9261bb1651947
7160Author: Damien Miller <djm@mindrot.org>
7161Date: Sat Aug 30 04:18:28 2014 +1000
7162
7163 - (djm) [openbsd-compat/openssl-compat.h] add include guard
7164
7165commit 4687802dda57365b984b897fc3c8e2867ea09b22
7166Author: Damien Miller <djm@mindrot.org>
7167Date: Sat Aug 30 03:29:19 2014 +1000
7168
7169 - (djm) [misc.c] Missing newline between functions
7170
7171commit 51c77e29220dee87c53be2dc47092934acab26fe
7172Author: Damien Miller <djm@mindrot.org>
7173Date: Sat Aug 30 02:30:30 2014 +1000
7174
7175 - (djm) [openbsd-compat/openssl-compat.h] add
7176 OPENSSL_[RD]SA_MAX_MODULUS_BITS defines for OpenSSL that lacks them
7177
7178commit 3d673d103bad35afaec6e7ef73e5277216ce33a3
7179Author: Damien Miller <djm@mindrot.org>
7180Date: Wed Aug 27 06:32:01 2014 +1000
7181
7182 - (djm) [openbsd-compat/explicit_bzero.c] implement explicit_bzero()
7183 using memset_s() where possible; improve fallback to indirect bzero
7184 via a volatile pointer to give it more of a chance to avoid being
7185 optimised away.
7186
7187commit 146218ac11a1eb0dcade6f793d7acdef163b5ddc
7188Author: Damien Miller <djm@mindrot.org>
7189Date: Wed Aug 27 04:11:55 2014 +1000
7190
7191 - (djm) [monitor.c sshd.c] SIGXFSZ needs to be ignored in postauth
7192 monitor, not preauth; bz#2263
7193
7194commit 1b215c098b3b37e38aa4e4c91bb908eee41183b1
7195Author: Damien Miller <djm@mindrot.org>
7196Date: Wed Aug 27 04:04:40 2014 +1000
7197
7198 - (djm) [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c]
7199 [regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c]
7200 [regress/unittests/sshkey/common.c]
7201 [regress/unittests/sshkey/test_file.c]
7202 [regress/unittests/sshkey/test_fuzz.c]
7203 [regress/unittests/sshkey/test_sshkey.c] Don't include openssl/ec.h
7204 on !ECC OpenSSL systems
7205
7206commit ad013944af0a19e3f612089d0099bb397cf6502d
7207Author: Damien Miller <djm@mindrot.org>
7208Date: Tue Aug 26 09:27:28 2014 +1000
7209
7210 - (djm) [INSTALL] Recommend libcrypto be built -fPIC, mention LibreSSL,
7211 update OpenSSL version requirement.
7212
7213commit ed126de8ee04c66640a0ea2697c4aaf36801f100
7214Author: Damien Miller <djm@mindrot.org>
7215Date: Tue Aug 26 08:37:47 2014 +1000
7216
7217 - (djm) [bufec.c] Skip this file on !ECC OpenSSL
7218
7219commit 9c1dede005746864a4fdb36a7cdf6c51296ca909
7220Author: Damien Miller <djm@mindrot.org>
7221Date: Sun Aug 24 03:01:06 2014 +1000
7222
7223 - (djm) [sftp-server.c] Some systems (e.g. Irix) have prctl() but not
7224 PR_SET_DUMPABLE, so adjust ifdef; reported by Tom Christensen
7225
7226commit d244a5816fd1312a33404b436e4dd83594f1119e
7227Author: Damien Miller <djm@mindrot.org>
7228Date: Sat Aug 23 17:06:49 2014 +1000
7229
7230 - (djm) [configure.ac] We now require a working vsnprintf everywhere (not
7231 just for systems that lack asprintf); check for it always and extend
7232 test to catch more brokenness. Fixes builds on Solaris <= 9
7233
7234commit 4cec036362a358e398e6a2e6d19d8e5780558634
7235Author: Damien Miller <djm@mindrot.org>
7236Date: Sat Aug 23 03:11:09 2014 +1000
7237
7238 - (djm) [sshd.c] Ignore SIGXFSZ in preauth monitor child; can explode on
7239 lastlog writing on platforms with high UIDs; bz#2263
7240
7241commit 394a60f2598d28b670d934b93942a3370b779b39
7242Author: Damien Miller <djm@mindrot.org>
7243Date: Fri Aug 22 18:06:20 2014 +1000
7244
7245 - (djm) [configure.ac] double braces to appease autoconf
7246
7247commit 4d69aeabd6e60afcdc7cca177ca751708ab79a9d
7248Author: Damien Miller <djm@mindrot.org>
7249Date: Fri Aug 22 17:48:27 2014 +1000
7250
7251 - (djm) [openbsd-compat/bsd-snprintf.c] Fix compilation failure (prototype/
7252 definition mismatch) and warning for broken/missing snprintf case.
7253
7254commit 0c11f1ac369d2c0aeb0ab0458a7cd04c72fe5e9e
7255Author: Damien Miller <djm@mindrot.org>
7256Date: Fri Aug 22 17:36:56 2014 +1000
7257
7258 - (djm) [sshbuf-getput-crypto.c] Fix compilation when OpenSSL lacks ECC
7259
7260commit 6d62784b8973340b251fea6b04890f471adf28db
7261Author: Damien Miller <djm@mindrot.org>
7262Date: Fri Aug 22 17:36:19 2014 +1000
7263
7264 - (djm) [configure.ac] include leading zero characters in OpenSSL version
7265 number; fixes test for unsupported versions
7266
7267commit 4f1ff1ed782117f5d5204d4e91156ed5da07cbb7
7268Author: Damien Miller <djm@mindrot.org>
7269Date: Thu Aug 21 15:54:50 2014 +1000
7270
7271 - (djm) [regress/unittests/test_helper/test_helper.c] Fix for systems that
7272 don't set __progname. Diagnosed by Tom Christensen.
7273
7274commit 005a64da0f457410045ef0bfa93c863c2450447d
7275Author: Damien Miller <djm@mindrot.org>
7276Date: Thu Aug 21 10:48:41 2014 +1000
7277
7278 - (djm) [key.h] Fix ifdefs for no-ECC OpenSSL
7279
7280commit aa6598ebb3343c7380e918388e10e8ca5852b613
7281Author: Damien Miller <djm@mindrot.org>
7282Date: Thu Aug 21 10:47:54 2014 +1000
7283
7284 - (djm) [Makefile.in] fix reference to libtest_helper.a in sshkey test too.
7285
7286commit 54703e3cf63f0c80d4157e5ad7dbc2b363ee2c56
7287Author: Damien Miller <djm@mindrot.org>
7288Date: Wed Aug 20 11:10:51 2014 +1000
7289
7290 - (djm) [contrib/cygwin/README] Correct build instructions; from Corinna
7291
7292commit f0935698f0461f24d8d1f1107b476ee5fd4db1cb
7293Author: Damien Miller <djm@mindrot.org>
7294Date: Wed Aug 20 11:06:50 2014 +1000
7295
7296 - (djm) [sshkey.h] Fix compilation when OpenSSL lacks ECC
7297
7298commit c5089ecaec3b2c02f014f4e67518390702a4ba14
7299Author: Damien Miller <djm@mindrot.org>
7300Date: Wed Aug 20 11:06:20 2014 +1000
7301
7302 - (djm) [Makefile.in] refer to libtest_helper.a by explicit path rather than
7303 -L/-l; fixes linking problems on some platforms
7304
7305commit 2195847e503a382f83ee969b0a8bd3dfe0e55c18
7306Author: Damien Miller <djm@mindrot.org>
7307Date: Wed Aug 20 11:05:03 2014 +1000
7308
7309 - (djm) [configure.ac] Check OpenSSL version is supported at configure time;
7310 suggested by Kevin Brott
7311
7312commit a75aca1bbc989aa9f8b1b08489d37855f3d24d1a
7313Author: Damien Miller <djm@mindrot.org>
7314Date: Tue Aug 19 11:36:07 2014 +1000
7315
7316 - (djm) [INSTALL contrib/caldera/openssh.spec contrib/cygwin/README]
7317 [contrib/redhat/openssh.spec contrib/suse/openssh.spec] Remove mentions
7318 of TCP wrappers.
7319
7320commit 3f022b5a9477abceeb1bbeab04b055f3cc7ca8f6
7321Author: Damien Miller <djm@mindrot.org>
7322Date: Tue Aug 19 11:32:34 2014 +1000
7323
7324 - (djm) [ssh-dss.c] Include openssl/dsa.h for DSA_SIG
7325
7326commit 88137902632aceb923990e98cf5dc923bb3ef2f5
7327Author: Damien Miller <djm@mindrot.org>
7328Date: Tue Aug 19 11:28:11 2014 +1000
7329
7330 - (djm) [sshbuf.h] Fix compilation on systems without OPENSSL_HAS_ECC.
7331
7332commit 2f3d1e7fb2eabd3cfbfd8d0f7bdd2f9a1888690b
7333Author: Damien Miller <djm@mindrot.org>
7334Date: Tue Aug 19 11:14:36 2014 +1000
7335
7336 - (djm) [myproposal.h] Make curve25519 KEX dependent on
7337 HAVE_EVP_SHA256 instead of OPENSSL_HAS_ECC.
7338
7339commit d4e7d59d01a6c7f59e8c1f94a83c086e9a33d8aa
7340Author: Damien Miller <djm@mindrot.org>
7341Date: Tue Aug 19 11:14:17 2014 +1000
7342
7343 - (djm) [serverloop.c] Fix syntax error on Cygwin; from Corinna Vinschen
7344
7345commit 9eaeea2cf2b6af5f166cfa9ad3c7a90711a147a9
7346Author: Damien Miller <djm@mindrot.org>
7347Date: Sun Aug 10 11:35:05 2014 +1000
7348
7349 - (djm) [README contrib/caldera/openssh.spec]
7350 [contrib/redhat/openssh.spec contrib/suse/openssh.spec] Update versions
7351
7352commit f8988fbef0c9801d19fa2f8f4f041690412bec37
7353Author: Damien Miller <djm@mindrot.org>
7354Date: Fri Aug 1 13:31:52 2014 +1000
7355
7356 - (djm) [regress/multiplex.sh] Use -d (detach stdin) flag to disassociate
7357 nc from stdin, it's more portable
7358
7359commit 5b3879fd4b7a4e3d43bab8f40addda39bc1169d0
7360Author: Damien Miller <djm@mindrot.org>
7361Date: Fri Aug 1 12:28:31 2014 +1000
7362
7363 - (djm) [regress/multiplex.sh] Instruct nc not to quit as soon as stdin
7364 is closed; avoid regress failures when stdin is /dev/null
7365
7366commit a9c46746d266f8a1b092a72b2150682d1af8ebfc
7367Author: Damien Miller <djm@mindrot.org>
7368Date: Fri Aug 1 12:26:49 2014 +1000
7369
7370 - (djm) [regress/multiplex.sh] Skip test for non-OpenBSD netcat. We need
7371 a better solution, but this will have to do for now.
7372
7373commit 426117b2e965e43f47015942b5be8dd88fe74b88
7374Author: Damien Miller <djm@mindrot.org>
7375Date: Wed Jul 30 12:33:20 2014 +1000
7376
7377 - schwarze@cvs.openbsd.org 2014/07/28 15:40:08
7378 [sftp-server.8 sshd_config.5]
7379 some systems no longer need /dev/log;
7380 issue noticed by jirib;
7381 ok deraadt
7382
7383commit f497794b6962eaf802ab4ac2a7b22ae591cca1d5
7384Author: Damien Miller <djm@mindrot.org>
7385Date: Wed Jul 30 12:32:46 2014 +1000
7386
7387 - dtucker@cvs.openbsd.org 2014/07/25 21:22:03
7388 [ssh-agent.c]
7389 Clear buffer used for handling messages. This prevents keys being
7390 left in memory after they have been expired or deleted in some cases
7391 (but note that ssh-agent is setgid so you would still need root to
7392 access them). Pointed out by Kevin Burns, ok deraadt
7393
7394commit a8a0f65c57c8ecba94d65948e9090da54014dfef
7395Author: Damien Miller <djm@mindrot.org>
7396Date: Wed Jul 30 12:32:28 2014 +1000
7397
7398 - OpenBSD CVS Sync
7399 - millert@cvs.openbsd.org 2014/07/24 22:57:10
7400 [ssh.1]
7401 Mention UNIX-domain socket forwarding too. OK jmc@ deraadt@
7402
7403commit 56b840f2b81e14a2f95c203403633a72566736f8
7404Author: Damien Miller <djm@mindrot.org>
7405Date: Fri Jul 25 08:11:30 2014 +1000
7406
7407 - (djm) [regress/multiplex.sh] restore incorrectly deleted line;
7408 pointed out by Christian Hesse
7409
7410commit dd417b60d5ca220565d1014e92b7f8f43dc081eb
7411Author: Darren Tucker <dtucker@zip.com.au>
7412Date: Wed Jul 23 10:41:21 2014 +1000
7413
7414 - dtucker@cvs.openbsd.org 2014/07/22 23:35:38
7415 [regress/unittests/sshkey/testdata/*]
7416 Regenerate test keys with certs signed with ed25519 instead of ecdsa.
7417 These can be used in -portable on platforms that don't support ECDSA.
7418
7419commit 40e50211896369dba8f64f3b5e5fd58b76f5ac3f
7420Author: Darren Tucker <dtucker@zip.com.au>
7421Date: Wed Jul 23 10:35:45 2014 +1000
7422
7423 - dtucker@cvs.openbsd.org 2014/07/22 23:57:40
7424 [regress/unittests/sshkey/mktestdata.sh]
7425 Add $OpenBSD tag to make syncs easier
7426
7427commit 07e644251e809b1d4c062cf85bd1146a7e3f5a8a
7428Author: Darren Tucker <dtucker@zip.com.au>
7429Date: Wed Jul 23 10:34:26 2014 +1000
7430
7431 - dtucker@cvs.openbsd.org 2014/07/22 23:23:22
7432 [regress/unittests/sshkey/mktestdata.sh]
7433 Sign test certs with ed25519 instead of ecdsa so that they'll work in
7434 -portable on platforms that don't have ECDSA in their OpenSSL. ok djm
7435
7436commit cea099a7c4eaecb01b001e5453bb4e5c25006c22
7437Author: Darren Tucker <dtucker@zip.com.au>
7438Date: Wed Jul 23 10:04:02 2014 +1000
7439
7440 - djm@cvs.openbsd.org 2014/07/22 01:32:12
7441 [regress/multiplex.sh]
7442 change the test for still-open Unix domain sockets to be robust against
7443 nc implementations that produce error messages. from -portable
7444 (Id sync only)
7445
7446commit 31eb78078d349b32ea41952ecc944b3ad6cb0d45
7447Author: Darren Tucker <dtucker@zip.com.au>
7448Date: Wed Jul 23 09:43:42 2014 +1000
7449
7450 - guenther@cvs.openbsd.org 2014/07/22 07:13:42
7451 [umac.c]
7452 Convert from <sys/endian.h> to the shiney new <endian.h>
7453 ok dtucker@, who also confirmed that -portable handles this already
7454 (ID sync only, includes.h pulls in endian.h if available.)
7455
7456commit 820763efef2d19d965602533036c2b4badc9d465
7457Author: Darren Tucker <dtucker@zip.com.au>
7458Date: Wed Jul 23 09:40:46 2014 +1000
7459
7460 - dtucker@cvs.openbsd.org 2014/07/22 01:18:50
7461 [key.c]
7462 Prevent spam from key_load_private_pem during hostbased auth. ok djm@
7463
7464commit c4ee219a66f3190fa96cbd45b4d11015685c6306
7465Author: Darren Tucker <dtucker@zip.com.au>
7466Date: Wed Jul 23 04:27:50 2014 +1000
7467
7468 - (dtucker) [regress/unittests/sshkey/test_{file,fuzz,sshkey}.c] Wrap ecdsa-
7469 specific tests inside OPENSSL_HAS_ECC.
7470
7471commit 04f4824940ea3edd60835416ececbae16438968a
7472Author: Damien Miller <djm@mindrot.org>
7473Date: Tue Jul 22 11:31:47 2014 +1000
7474
7475 - (djm) [regress/multiplex.sh] change the test for still-open Unix
7476 domain sockets to be robust against nc implementations that produce
7477 error messages.
7478
7479commit 5ea4fe00d55453aaa44007330bb4c3181bd9b796
7480Author: Damien Miller <djm@mindrot.org>
7481Date: Tue Jul 22 09:39:19 2014 +1000
7482
7483 - (djm) [regress/multiplex.sh] ssh mux master lost -N somehow;
7484 put it back
7485
7486commit 948a1774a79a85f9deba6d74db95f402dee32c69
7487Author: Darren Tucker <dtucker@zip.com.au>
7488Date: Tue Jul 22 01:07:11 2014 +1000
7489
7490 - (dtucker) [sshkey.c] ifdef out unused variable when compiling without
7491 OPENSSL_HAS_ECC.
7492
7493commit c8f610f6cc57ae129758052439d9baf13699097b
7494Author: Damien Miller <djm@mindrot.org>
7495Date: Mon Jul 21 10:23:27 2014 +1000
7496
7497 - (djm) [regress/multiplex.sh] Not all netcat accept the -N option.
7498
7499commit 0e4e95566cd95c887f69272499b8f3880b3ec0f5
7500Author: Damien Miller <djm@mindrot.org>
7501Date: Mon Jul 21 09:52:54 2014 +1000
7502
7503 - millert@cvs.openbsd.org 2014/07/15 15:54:15
7504 [forwarding.sh multiplex.sh]
7505 Add support for Unix domain socket forwarding. A remote TCP port
7506 may be forwarded to a local Unix domain socket and vice versa or
7507 both ends may be a Unix domain socket. This is a reimplementation
7508 of the streamlocal patches by William Ahern from:
7509 http://www.25thandclement.com/~william/projects/streamlocal.html
7510 OK djm@ markus@
7511
7512commit 93a87ab27ecdc709169fb24411133998f81e2761
7513Author: Darren Tucker <dtucker@zip.com.au>
7514Date: Mon Jul 21 06:30:25 2014 +1000
7515
7516 - (dtucker) [regress/unittests/sshkey/
7517 {common,test_file,test_fuzz,test_sshkey}.c] Wrap stdint.h includes in
7518 ifdefs.
7519
7520commit 5573171352ea23df2dc6d2fe0324d023b7ba697c
7521Author: Darren Tucker <dtucker@zip.com.au>
7522Date: Mon Jul 21 02:24:59 2014 +1000
7523
7524 - (dtucker) [cipher.c openbsd-compat/openssl-compat.h] Restore the bits
7525 needed to build AES CTR mode against OpenSSL 0.9.8f and above. ok djm
7526
7527commit 74e28682711d005026c7c8f15f96aea9d3c8b5a3
7528Author: Tim Rice <tim@multitalents.net>
7529Date: Fri Jul 18 20:00:11 2014 -0700
7530
7531 - (tim) [openbsd-compat/port-uw.c] Include misc.h for fwd_opts, used
7532 in servconf.h.
7533
7534commit d1a0421f8e5e933fee6fb58ee6b9a22c63c8a613
7535Author: Darren Tucker <dtucker@zip.com.au>
7536Date: Sat Jul 19 07:23:55 2014 +1000
7537
7538 - (dtucker) [key.c sshkey.c] Put new ecdsa bits inside ifdef OPENSSL_HAS_ECC.
7539
7540commit f0fe9ea1be62227c130b317769de3d1e736b6dc1
7541Author: Darren Tucker <dtucker@zip.com.au>
7542Date: Sat Jul 19 06:33:12 2014 +1000
7543
7544 - (dtucker) [Makefile.in] Add a t-exec target to run just the executable
7545 tests.
7546
7547commit 450bc1180d4b061434a4b733c5c8814fa30b022b
7548Author: Darren Tucker <dtucker@zip.com.au>
7549Date: Sat Jul 19 06:23:18 2014 +1000
7550
7551 - (dtucker) [auth2-gss.c gss-serv-krb5.c] Include misc.h for fwd_opts, used
7552 in servconf.h.
7553
7554commit ab2ec586baad122ed169285c31927ccf58bc7b28
7555Author: Damien Miller <djm@mindrot.org>
7556Date: Fri Jul 18 15:04:47 2014 +1000
7557
7558 - djm@cvs.openbsd.org 2014/07/18 02:46:01
7559 [ssh-agent.c]
7560 restore umask around listener socket creation (dropped in streamlocal patch
7561 merge)
7562
7563commit 357610d15946381ae90c271837dcdd0cdce7145f
7564Author: Damien Miller <djm@mindrot.org>
7565Date: Fri Jul 18 15:04:10 2014 +1000
7566
7567 - djm@cvs.openbsd.org 2014/07/17 07:22:19
7568 [mux.c ssh.c]
7569 reflect stdio-forward ("ssh -W host:port ...") failures in exit status.
7570 previously we were always returning 0. bz#2255 reported by Brendan
7571 Germain; ok dtucker
7572
7573commit dad9a4a0b7c2b5d78605f8df28718f116524134e
7574Author: Damien Miller <djm@mindrot.org>
7575Date: Fri Jul 18 15:03:49 2014 +1000
7576
7577 - djm@cvs.openbsd.org 2014/07/17 00:12:03
7578 [key.c]
7579 silence "incorrect passphrase" error spam; reported and ok dtucker@
7580
7581commit f42f7684ecbeec6ce50e0310f80b3d6da2aaf533
7582Author: Damien Miller <djm@mindrot.org>
7583Date: Fri Jul 18 15:03:27 2014 +1000
7584
7585 - djm@cvs.openbsd.org 2014/07/17 00:10:18
7586 [mux.c]
7587 preserve errno across syscall
7588
7589commit 1b83320628cb0733e3688b85bfe4d388a7c51909
7590Author: Damien Miller <djm@mindrot.org>
7591Date: Fri Jul 18 15:03:02 2014 +1000
7592
7593 - djm@cvs.openbsd.org 2014/07/17 00:10:56
7594 [sandbox-systrace.c]
7595 ifdef SYS_sendsyslog so this will compile without patching on -stable
7596
7597commit 6d57656331bcd754d912950e4a18ad259d596e61
7598Author: Damien Miller <djm@mindrot.org>
7599Date: Fri Jul 18 15:02:06 2014 +1000
7600
7601 - jmc@cvs.openbsd.org 2014/07/16 14:48:57
7602 [ssh.1]
7603 add the streamlocal* options to ssh's -o list; millert says they're
7604 irrelevant for scp/sftp;
7605
7606 ok markus millert
7607
7608commit 7acefbbcbeab725420ea07397ae35992f505f702
7609Author: Damien Miller <djm@mindrot.org>
7610Date: Fri Jul 18 14:11:24 2014 +1000
7611
7612 - millert@cvs.openbsd.org 2014/07/15 15:54:14
7613 [PROTOCOL auth-options.c auth-passwd.c auth-rh-rsa.c auth-rhosts.c]
7614 [auth-rsa.c auth.c auth1.c auth2-hostbased.c auth2-kbdint.c auth2-none.c]
7615 [auth2-passwd.c auth2-pubkey.c auth2.c canohost.c channels.c channels.h]
7616 [clientloop.c misc.c misc.h monitor.c mux.c packet.c readconf.c]
7617 [readconf.h servconf.c servconf.h serverloop.c session.c ssh-agent.c]
7618 [ssh.c ssh_config.5 sshconnect.c sshconnect1.c sshconnect2.c sshd.c]
7619 [sshd_config.5 sshlogin.c]
7620 Add support for Unix domain socket forwarding. A remote TCP port
7621 may be forwarded to a local Unix domain socket and vice versa or
7622 both ends may be a Unix domain socket. This is a reimplementation
7623 of the streamlocal patches by William Ahern from:
7624 http://www.25thandclement.com/~william/projects/streamlocal.html
7625 OK djm@ markus@
7626
7627commit 6262d760e00714523633bd989d62e273a3dca99a
7628Author: Damien Miller <djm@mindrot.org>
7629Date: Thu Jul 17 09:52:07 2014 +1000
7630
7631 - tedu@cvs.openbsd.org 2014/07/11 13:54:34
7632 [myproposal.h]
7633 by popular demand, add back hamc-sha1 to server proposal for better compat
7634 with many clients still in use. ok deraadt
7635
7636commit 9d69d937b46ecba17f16d923e538ceda7b705c7a
7637Author: Damien Miller <djm@mindrot.org>
7638Date: Thu Jul 17 09:49:37 2014 +1000
7639
7640 - deraadt@cvs.openbsd.org 2014/07/11 08:09:54
7641 [sandbox-systrace.c]
7642 Permit use of SYS_sendsyslog from inside the sandbox. Clock is ticking,
7643 update your kernels and sshd soon.. libc will start using sendsyslog()
7644 in about 4 days.
7645
7646commit f6293a0b4129826fc2e37e4062f96825df43c326
7647Author: Damien Miller <djm@mindrot.org>
7648Date: Thu Jul 17 09:01:25 2014 +1000
7649
7650 - (djm) [digest-openssl.c] Preserve array order when disabling digests.
7651 Reported by Petr Lautrbach.
7652
7653commit 00f9cd230709c04399ef5ff80492d70a55230694
7654Author: Damien Miller <djm@mindrot.org>
7655Date: Tue Jul 15 10:41:38 2014 +1000
7656
7657 - (djm) [configure.ac] Delay checks for arc4random* until after libcrypto
7658 has been located; fixes builds agains libressl-portable
7659
7660commit 1d0df3249c87019556b83306c28d4769375c2edc
7661Author: Damien Miller <djm@mindrot.org>
7662Date: Fri Jul 11 09:19:04 2014 +1000
7663
7664 - OpenBSD CVS Sync
7665 - benno@cvs.openbsd.org 2014/07/09 14:15:56
7666 [ssh-add.c]
7667 fix ssh-add crash while loading more than one key
7668 ok markus@
7669
7670commit 7a57eb3d105aa4ced15fb47001092c58811e6d9d
7671Author: Damien Miller <djm@mindrot.org>
7672Date: Wed Jul 9 13:22:31 2014 +1000
7673
7674 - djm@cvs.openbsd.org 2014/07/07 08:15:26
7675 [multiplex.sh]
7676 remove forced-fatal that I stuck in there to test the new cleanup
7677 logic and forgot to remove...
7678
7679commit 612f965239a30fe536b11ece1834d9f470aeb029
7680Author: Damien Miller <djm@mindrot.org>
7681Date: Wed Jul 9 13:22:03 2014 +1000
7682
7683 - djm@cvs.openbsd.org 2014/07/06 07:42:03
7684 [multiplex.sh test-exec.sh]
7685 add a hook to the cleanup() function to kill $SSH_PID if it is set
7686
7687 use it to kill the mux master started in multiplex.sh (it was being left
7688 around on fatal failures)
7689
7690commit d0bb950485ba121e43a77caf434115ed6417b46f
7691Author: Damien Miller <djm@mindrot.org>
7692Date: Wed Jul 9 13:07:28 2014 +1000
7693
7694 - djm@cvs.openbsd.org 2014/07/09 03:02:15
7695 [key.c]
7696 downgrade more error() to debug() to better match what old authfile.c
7697 did; suppresses spurious errors with hostbased authentication enabled
7698
7699commit 0070776a038655c57f57e70cd05e4c38a5de9d84
7700Author: Damien Miller <djm@mindrot.org>
7701Date: Wed Jul 9 13:07:06 2014 +1000
7702
7703 - djm@cvs.openbsd.org 2014/07/09 01:45:10
7704 [sftp.c]
7705 more useful error message when GLOB_NOSPACE occurs;
7706 bz#2254, patch from Orion Poplawski
7707
7708commit 079bac2a43c74ef7cf56850afbab3b1932534c50
7709Author: Damien Miller <djm@mindrot.org>
7710Date: Wed Jul 9 13:06:25 2014 +1000
7711
7712 - djm@cvs.openbsd.org 2014/07/07 08:19:12
7713 [ssh_config.5]
7714 mention that ProxyCommand is executed using shell "exec" to avoid
7715 a lingering process; bz#1977
7716
7717commit 3a48cc090096cf99b9de592deb5f90e444edebfb
7718Author: Damien Miller <djm@mindrot.org>
7719Date: Sun Jul 6 09:32:49 2014 +1000
7720
7721 - djm@cvs.openbsd.org 2014/07/05 23:11:48
7722 [channels.c]
7723 fix remote-forward cancel regression; ok markus@
7724
7725commit 48bae3a38cb578713e676708164f6e7151cc64fa
7726Author: Damien Miller <djm@mindrot.org>
7727Date: Sun Jul 6 09:27:06 2014 +1000
7728
7729 - djm@cvs.openbsd.org 2014/07/03 23:18:35
7730 [authfile.h]
7731 remove leakmalloc droppings
7732
7733commit 72e6b5c9ed5e72ca3a6ccc3177941b7c487a0826
7734Author: Damien Miller <djm@mindrot.org>
7735Date: Fri Jul 4 09:00:04 2014 +1000
7736
7737 - djm@cvs.openbsd.org 2014/07/03 22:40:43
7738 [servconf.c servconf.h session.c sshd.8 sshd_config.5]
7739 Add a sshd_config PermitUserRC option to control whether ~/.ssh/rc is
7740 executed, mirroring the no-user-rc authorized_keys option;
7741 bz#2160; ok markus@
7742
7743commit 602943d1179a08dfa70af94f62296ea5e3d6ebb8
7744Author: Damien Miller <djm@mindrot.org>
7745Date: Fri Jul 4 08:59:41 2014 +1000
7746
7747 - djm@cvs.openbsd.org 2014/07/03 22:33:41
7748 [channels.c]
7749 allow explicit ::1 and 127.0.0.1 forwarding bind addresses when
7750 GatewayPorts=no; allows client to choose address family;
7751 bz#2222 ok markus@
7752
7753commit 6b37fbb7921d156b31e2c8f39d9e1b6746c34983
7754Author: Damien Miller <djm@mindrot.org>
7755Date: Fri Jul 4 08:59:24 2014 +1000
7756
7757 - djm@cvs.openbsd.org 2014/07/03 22:23:46
7758 [sshconnect.c]
7759 when rekeying, skip file/DNS lookup if it is the same as the key sent
7760 during initial key exchange. bz#2154 patch from Iain Morgan; ok markus@
7761
7762commit d2c3cd5f2e47ee24cf7093ce8e948c2e79dfc3fd
7763Author: Damien Miller <djm@mindrot.org>
7764Date: Fri Jul 4 08:59:01 2014 +1000
7765
7766 - jsing@cvs.openbsd.org 2014/07/03 12:42:16
7767 [cipher-chachapoly.c]
7768 Call chacha_ivsetup() immediately before chacha_encrypt_bytes() - this
7769 makes it easier to verify that chacha_encrypt_bytes() is only called once
7770 per chacha_ivsetup() call.
7771 ok djm@
7772
7773commit 686feb560ec43a06ba04da82b50f3c183c947309
7774Author: Damien Miller <djm@mindrot.org>
7775Date: Thu Jul 3 21:29:38 2014 +1000
7776
7777 - djm@cvs.openbsd.org 2014/07/03 11:16:55
7778 [auth.c auth.h auth1.c auth2.c]
7779 make the "Too many authentication failures" message include the
7780 user, source address, port and protocol in a format similar to the
7781 authentication success / failure messages; bz#2199, ok dtucker
7782
7783commit 0f12341402e18fd9996ec23189b9418d2722453f
7784Author: Damien Miller <djm@mindrot.org>
7785Date: Thu Jul 3 21:28:09 2014 +1000
7786
7787 - jmc@cvs.openbsd.org 2014/07/03 07:45:27
7788 [ssh_config.5]
7789 escape %C since groff thinks it part of an Rs/Re block;
7790
7791commit 9c38643c5cd47a19db2cc28279dcc28abadc22b3
7792Author: Damien Miller <djm@mindrot.org>
7793Date: Thu Jul 3 21:27:46 2014 +1000
7794
7795 - djm@cvs.openbsd.org 2014/07/03 06:39:19
7796 [ssh.c ssh_config.5]
7797 Add a %C escape sequence for LocalCommand and ControlPath that expands
7798 to a unique identifer based on a has of the tuple of (local host,
7799 remote user, hostname, port).
7800
7801 Helps avoid exceeding sockaddr_un's miserly pathname limits for mux
7802 control paths.
7803
7804 bz#2220, based on patch from mancha1 AT zoho.com; ok markus@
7805
7806commit 49d9bfe2b2f3e90cc158a215dffa7675e57e7830
7807Author: Damien Miller <djm@mindrot.org>
7808Date: Thu Jul 3 21:26:42 2014 +1000
7809
7810 - djm@cvs.openbsd.org 2014/07/03 05:38:17
7811 [ssh.1]
7812 document that -g will only work in the multiplexed case if applied to
7813 the mux master
7814
7815commit ef9f13ba4c58057b2166d1f2e790535da402fbe5
7816Author: Damien Miller <djm@mindrot.org>
7817Date: Thu Jul 3 21:26:21 2014 +1000
7818
7819 - djm@cvs.openbsd.org 2014/07/03 05:32:36
7820 [ssh_config.5]
7821 mention '%%' escape sequence in HostName directives and how it may
7822 be used to specify IPv6 link-local addresses
7823
7824commit e6a407789e5432dd2e53336fb73476cc69048c54
7825Author: Damien Miller <djm@mindrot.org>
7826Date: Thu Jul 3 21:25:03 2014 +1000
7827
7828 - djm@cvs.openbsd.org 2014/07/03 04:36:45
7829 [digest.h]
7830 forward-declare struct sshbuf so consumers don't need to include sshbuf.h
7831
7832commit 4a1d3d50f02d0a8a4ef95ea4749293cbfb89f919
7833Author: Damien Miller <djm@mindrot.org>
7834Date: Thu Jul 3 21:24:40 2014 +1000
7835
7836 - djm@cvs.openbsd.org 2014/07/03 03:47:27
7837 [ssh-keygen.c]
7838 When hashing or removing hosts using ssh-keygen, don't choke on
7839 @revoked markers and don't remove @cert-authority markers;
7840 bz#2241, reported by mlindgren AT runelind.net
7841
7842commit e5c0d52ceb575c3db8c313e0b1aa3845943d7ba8
7843Author: Damien Miller <djm@mindrot.org>
7844Date: Thu Jul 3 21:24:19 2014 +1000
7845
7846 - djm@cvs.openbsd.org 2014/07/03 03:34:09
7847 [gss-serv.c session.c ssh-keygen.c]
7848 standardise on NI_MAXHOST for gethostname() string lengths; about
7849 1/2 the cases were using it already. Fixes bz#2239 en passant
7850
7851commit c174a3b7c14e0d178c61219de2aa1110e209950c
7852Author: Damien Miller <djm@mindrot.org>
7853Date: Thu Jul 3 21:23:24 2014 +1000
7854
7855 - djm@cvs.openbsd.org 2014/07/03 03:26:43
7856 [digest-openssl.c]
7857 use EVP_Digest() for one-shot hash instead of creating, updating,
7858 finalising and destroying a context.
7859 bz#2231, based on patch from Timo Teras
7860
7861commit d7ca2cd31ecc4d63a055e2dcc4bf35c13f2db4c5
7862Author: Damien Miller <djm@mindrot.org>
7863Date: Thu Jul 3 21:23:01 2014 +1000
7864
7865 - djm@cvs.openbsd.org 2014/07/03 03:15:01
7866 [ssh-add.c]
7867 make stdout line-buffered; saves partial output getting lost when
7868 ssh-add fatal()s part-way through (e.g. when listing keys from an
7869 agent that supports key types that ssh-add doesn't);
7870 bz#2234, reported by Phil Pennock
7871
7872commit b1e967c8d7c7578dd0c172d85b3046cf54ea42ba
7873Author: Damien Miller <djm@mindrot.org>
7874Date: Thu Jul 3 21:22:40 2014 +1000
7875
7876 - djm@cvs.openbsd.org 2014/07/03 03:11:03
7877 [ssh-agent.c]
7878 Only cleanup agent socket in the main agent process and not in any
7879 subprocesses it may have started (e.g. forked askpass). Fixes
7880 agent sockets being zapped when askpass processes fatal();
7881 bz#2236 patch from Dmitry V. Levin
7882
7883commit 61e28e55c3438d796b02ef878bcd28620d452670
7884Author: Damien Miller <djm@mindrot.org>
7885Date: Thu Jul 3 21:22:22 2014 +1000
7886
7887 - djm@cvs.openbsd.org 2014/07/03 01:45:38
7888 [sshkey.c]
7889 make Ed25519 keys' title fit properly in the randomart border; bz#2247
7890 based on patch from Christian Hesse
7891
7892commit 9eb4cd9a32c32d40d36450b68ed93badc6a94c68
7893Author: Damien Miller <djm@mindrot.org>
7894Date: Thu Jul 3 13:29:50 2014 +1000
7895
7896 - (djm) [monitor_fdpass.c] Use sys/poll.h if poll.h doesn't exist;
7897 bz#2237
7898
7899commit 8da0fa24934501909408327298097b1629b89eaa
7900Author: Damien Miller <djm@mindrot.org>
7901Date: Thu Jul 3 11:54:19 2014 +1000
7902
7903 - (djm) [digest-openssl.c configure.ac] Disable RIPEMD160 if libcrypto
7904 doesn't support it.
7905
7906commit 81309c857dd0dbc0a1245a16d621c490ad48cfbb
7907Author: Damien Miller <djm@mindrot.org>
7908Date: Wed Jul 2 17:45:55 2014 +1000
7909
7910 - (djm) [regress/Makefile] fix execution of sshkey unit/fuzz test
7911
7912commit 82b2482ce68654815ee049b9bf021bb362a35ff2
7913Author: Damien Miller <djm@mindrot.org>
7914Date: Wed Jul 2 17:43:41 2014 +1000
7915
7916 - (djm) [sshkey.c] Conditionalise inclusion of util.h
7917
7918commit dd8b1dd7933eb6f5652641b0cdced34a387f2e80
7919Author: Damien Miller <djm@mindrot.org>
7920Date: Wed Jul 2 17:38:31 2014 +1000
7921
7922 - djm@cvs.openbsd.org 2014/06/24 01:14:17
7923 [Makefile.in regress/Makefile regress/unittests/Makefile]
7924 [regress/unittests/sshkey/Makefile]
7925 [regress/unittests/sshkey/common.c]
7926 [regress/unittests/sshkey/common.h]
7927 [regress/unittests/sshkey/mktestdata.sh]
7928 [regress/unittests/sshkey/test_file.c]
7929 [regress/unittests/sshkey/test_fuzz.c]
7930 [regress/unittests/sshkey/test_sshkey.c]
7931 [regress/unittests/sshkey/tests.c]
7932 [regress/unittests/sshkey/testdata/dsa_1]
7933 [regress/unittests/sshkey/testdata/dsa_1-cert.fp]
7934 [regress/unittests/sshkey/testdata/dsa_1-cert.pub]
7935 [regress/unittests/sshkey/testdata/dsa_1.fp]
7936 [regress/unittests/sshkey/testdata/dsa_1.fp.bb]
7937 [regress/unittests/sshkey/testdata/dsa_1.param.g]
7938 [regress/unittests/sshkey/testdata/dsa_1.param.priv]
7939 [regress/unittests/sshkey/testdata/dsa_1.param.pub]
7940 [regress/unittests/sshkey/testdata/dsa_1.pub]
7941 [regress/unittests/sshkey/testdata/dsa_1_pw]
7942 [regress/unittests/sshkey/testdata/dsa_2]
7943 [regress/unittests/sshkey/testdata/dsa_2.fp]
7944 [regress/unittests/sshkey/testdata/dsa_2.fp.bb]
7945 [regress/unittests/sshkey/testdata/dsa_2.pub]
7946 [regress/unittests/sshkey/testdata/dsa_n]
7947 [regress/unittests/sshkey/testdata/dsa_n_pw]
7948 [regress/unittests/sshkey/testdata/ecdsa_1]
7949 [regress/unittests/sshkey/testdata/ecdsa_1-cert.fp]
7950 [regress/unittests/sshkey/testdata/ecdsa_1-cert.pub]
7951 [regress/unittests/sshkey/testdata/ecdsa_1.fp]
7952 [regress/unittests/sshkey/testdata/ecdsa_1.fp.bb]
7953 [regress/unittests/sshkey/testdata/ecdsa_1.param.curve]
7954 [regress/unittests/sshkey/testdata/ecdsa_1.param.priv]
7955 [regress/unittests/sshkey/testdata/ecdsa_1.param.pub]
7956 [regress/unittests/sshkey/testdata/ecdsa_1.pub]
7957 [regress/unittests/sshkey/testdata/ecdsa_1_pw]
7958 [regress/unittests/sshkey/testdata/ecdsa_2]
7959 [regress/unittests/sshkey/testdata/ecdsa_2.fp]
7960 [regress/unittests/sshkey/testdata/ecdsa_2.fp.bb]
7961 [regress/unittests/sshkey/testdata/ecdsa_2.param.curve]
7962 [regress/unittests/sshkey/testdata/ecdsa_2.param.priv]
7963 [regress/unittests/sshkey/testdata/ecdsa_2.param.pub]
7964 [regress/unittests/sshkey/testdata/ecdsa_2.pub]
7965 [regress/unittests/sshkey/testdata/ecdsa_n]
7966 [regress/unittests/sshkey/testdata/ecdsa_n_pw]
7967 [regress/unittests/sshkey/testdata/ed25519_1]
7968 [regress/unittests/sshkey/testdata/ed25519_1-cert.fp]
7969 [regress/unittests/sshkey/testdata/ed25519_1-cert.pub]
7970 [regress/unittests/sshkey/testdata/ed25519_1.fp]
7971 [regress/unittests/sshkey/testdata/ed25519_1.fp.bb]
7972 [regress/unittests/sshkey/testdata/ed25519_1.pub]
7973 [regress/unittests/sshkey/testdata/ed25519_1_pw]
7974 [regress/unittests/sshkey/testdata/ed25519_2]
7975 [regress/unittests/sshkey/testdata/ed25519_2.fp]
7976 [regress/unittests/sshkey/testdata/ed25519_2.fp.bb]
7977 [regress/unittests/sshkey/testdata/ed25519_2.pub]
7978 [regress/unittests/sshkey/testdata/pw]
7979 [regress/unittests/sshkey/testdata/rsa1_1]
7980 [regress/unittests/sshkey/testdata/rsa1_1.fp]
7981 [regress/unittests/sshkey/testdata/rsa1_1.fp.bb]
7982 [regress/unittests/sshkey/testdata/rsa1_1.param.n]
7983 [regress/unittests/sshkey/testdata/rsa1_1.pub]
7984 [regress/unittests/sshkey/testdata/rsa1_1_pw]
7985 [regress/unittests/sshkey/testdata/rsa1_2]
7986 [regress/unittests/sshkey/testdata/rsa1_2.fp]
7987 [regress/unittests/sshkey/testdata/rsa1_2.fp.bb]
7988 [regress/unittests/sshkey/testdata/rsa1_2.param.n]
7989 [regress/unittests/sshkey/testdata/rsa1_2.pub]
7990 [regress/unittests/sshkey/testdata/rsa_1]
7991 [regress/unittests/sshkey/testdata/rsa_1-cert.fp]
7992 [regress/unittests/sshkey/testdata/rsa_1-cert.pub]
7993 [regress/unittests/sshkey/testdata/rsa_1.fp]
7994 [regress/unittests/sshkey/testdata/rsa_1.fp.bb]
7995 [regress/unittests/sshkey/testdata/rsa_1.param.n]
7996 [regress/unittests/sshkey/testdata/rsa_1.param.p]
7997 [regress/unittests/sshkey/testdata/rsa_1.param.q]
7998 [regress/unittests/sshkey/testdata/rsa_1.pub]
7999 [regress/unittests/sshkey/testdata/rsa_1_pw]
8000 [regress/unittests/sshkey/testdata/rsa_2]
8001 [regress/unittests/sshkey/testdata/rsa_2.fp]
8002 [regress/unittests/sshkey/testdata/rsa_2.fp.bb]
8003 [regress/unittests/sshkey/testdata/rsa_2.param.n]
8004 [regress/unittests/sshkey/testdata/rsa_2.param.p]
8005 [regress/unittests/sshkey/testdata/rsa_2.param.q]
8006 [regress/unittests/sshkey/testdata/rsa_2.pub]
8007 [regress/unittests/sshkey/testdata/rsa_n]
8008 [regress/unittests/sshkey/testdata/rsa_n_pw]
8009 unit and fuzz tests for new key API
8010
8011commit c1dc24b71f087f385b92652b9673f52af64e0428
8012Author: Damien Miller <djm@mindrot.org>
8013Date: Wed Jul 2 17:02:03 2014 +1000
8014
8015 - djm@cvs.openbsd.org 2014/06/24 01:04:43
8016 [regress/krl.sh]
8017 regress test for broken consecutive revoked serial number ranges
8018
8019commit 43d3ed2dd3feca6d0326c7dc82588d2faa115e92
8020Author: Damien Miller <djm@mindrot.org>
8021Date: Wed Jul 2 17:01:08 2014 +1000
8022
8023 - djm@cvs.openbsd.org 2014/05/21 07:04:21
8024 [regress/integrity.sh]
8025 when failing because of unexpected output, show the offending output
8026
8027commit 5a96707ffc8d227c2e7d94fa6b0317f8a152cf4e
8028Author: Damien Miller <djm@mindrot.org>
8029Date: Wed Jul 2 15:38:05 2014 +1000
8030
8031 - djm@cvs.openbsd.org 2014/04/30 05:32:00
8032 [regress/Makefile]
8033 unit tests for new buffer API; including basic fuzz testing
8034 NB. Id sync only.
8035
8036commit 3ff92ba756aee48e4ae3e0aeff7293517b3dd185
8037Author: Damien Miller <djm@mindrot.org>
8038Date: Wed Jul 2 15:33:09 2014 +1000
8039
8040 - djm@cvs.openbsd.org 2014/06/30 12:54:39
8041 [key.c]
8042 suppress spurious error message when loading key with a passphrase;
8043 reported by kettenis@ ok markus@
8044 - djm@cvs.openbsd.org 2014/07/02 04:59:06
8045 [cipher-3des1.c]
8046 fix ssh protocol 1 on the server that regressed with the sshkey change
8047 (sometimes fatal() after auth completed), make file return useful status
8048 codes.
8049 NB. Id sync only for these two. They were bundled into the sshkey merge
8050 above, since it was easier to sync the entire file and then apply
8051 portable-specific changed atop it.
8052
8053commit ec3d0e24a1e46873d80507f5cd8ee6d0d03ac5dc
8054Author: Damien Miller <djm@mindrot.org>
8055Date: Wed Jul 2 15:30:00 2014 +1000
8056
8057 - markus@cvs.openbsd.org 2014/06/27 18:50:39
8058 [ssh-add.c]
8059 fix loading of private keys
8060
8061commit 4b3ed647d5b328cf68e6a8ffbee490d8e0683e82
8062Author: Damien Miller <djm@mindrot.org>
8063Date: Wed Jul 2 15:29:40 2014 +1000
8064
8065 - markus@cvs.openbsd.org 2014/06/27 16:41:56
8066 [channels.c channels.h clientloop.c ssh.c]
8067 fix remote fwding with same listen port but different listen address
8068 with gerhard@, ok djm@
8069
8070commit 9e01ff28664921ce9b6500681333e42fb133b4d0
8071Author: Damien Miller <djm@mindrot.org>
8072Date: Wed Jul 2 15:29:21 2014 +1000
8073
8074 - deraadt@cvs.openbsd.org 2014/06/25 14:16:09
8075 [sshbuf.c]
8076 unblock SIGSEGV before raising it
8077 ok djm
8078
8079commit 1845fe6bda0729e52f4c645137f4fc3070b5438a
8080Author: Damien Miller <djm@mindrot.org>
8081Date: Wed Jul 2 15:29:01 2014 +1000
8082
8083 - djm@cvs.openbsd.org 2014/06/24 02:21:01
8084 [scp.c]
8085 when copying local->remote fails during read, don't send uninitialised
8086 heap to the remote end. Reported by Jann Horn
8087
8088commit 19439e9a2a0ac0b4b3b1210e89695418beb1c883
8089Author: Damien Miller <djm@mindrot.org>
8090Date: Wed Jul 2 15:28:40 2014 +1000
8091
8092 - djm@cvs.openbsd.org 2014/06/24 02:19:48
8093 [ssh.c]
8094 don't fatal() when hostname canonicalisation fails with a
8095 ProxyCommand in use; continue and allow the ProxyCommand to
8096 connect anyway (e.g. to a host with a name outside the DNS
8097 behind a bastion)
8098
8099commit 8668706d0f52654fe64c0ca41a96113aeab8d2b8
8100Author: Damien Miller <djm@mindrot.org>
8101Date: Wed Jul 2 15:28:02 2014 +1000
8102
8103 - djm@cvs.openbsd.org 2014/06/24 01:13:21
8104 [Makefile.in auth-bsdauth.c auth-chall.c auth-options.c auth-rsa.c
8105 [auth2-none.c auth2-pubkey.c authfile.c authfile.h cipher-3des1.c
8106 [cipher-chachapoly.c cipher-chachapoly.h cipher.c cipher.h
8107 [digest-libc.c digest-openssl.c digest.h dns.c entropy.c hmac.h
8108 [hostfile.c key.c key.h krl.c monitor.c packet.c rsa.c rsa.h
8109 [ssh-add.c ssh-agent.c ssh-dss.c ssh-ecdsa.c ssh-ed25519.c
8110 [ssh-keygen.c ssh-pkcs11-client.c ssh-pkcs11-helper.c ssh-pkcs11.c
8111 [ssh-rsa.c sshbuf-misc.c sshbuf.h sshconnect.c sshconnect1.c
8112 [sshconnect2.c sshd.c sshkey.c sshkey.h
8113 [openbsd-compat/openssl-compat.c openbsd-compat/openssl-compat.h]
8114 New key API: refactor key-related functions to be more library-like,
8115 existing API is offered as a set of wrappers.
8116
8117 with and ok markus@
8118
8119 Thanks also to Ben Hawkes, David Tomaschik, Ivan Fratric, Matthew
8120 Dempsky and Ron Bowes for a detailed review a few months ago.
8121
8122 NB. This commit also removes portable OpenSSH support for OpenSSL
8123 <0.9.8e.
8124
8125commit 2cd7929250cf9e9f658d70dcd452f529ba08c942
8126Author: Damien Miller <djm@mindrot.org>
8127Date: Wed Jul 2 12:48:30 2014 +1000
8128
8129 - djm@cvs.openbsd.org 2014/06/24 00:52:02
8130 [krl.c]
8131 fix bug in KRL generation: multiple consecutive revoked certificate
8132 serial number ranges could be serialised to an invalid format.
8133
8134 Readers of a broken KRL caused by this bug will fail closed, so no
8135 should-have-been-revoked key will be accepted.
8136
8137commit 99db840ee8dbbd2b3fbc6c45d0ee2f6a65e96898
8138Author: Damien Miller <djm@mindrot.org>
8139Date: Wed Jul 2 12:48:04 2014 +1000
8140
8141 - naddy@cvs.openbsd.org 2014/06/18 15:42:09
8142 [sshbuf-getput-crypto.c]
8143 The ssh_get_bignum functions must accept the same range of bignums
8144 the corresponding ssh_put_bignum functions create. This fixes the
8145 use of 16384-bit RSA keys (bug reported by Eivind Evensen).
8146 ok djm@
8147
8148commit 84a89161a9629239b64171ef3e22ef6a3e462d51
8149Author: Damien Miller <djm@mindrot.org>
8150Date: Wed Jul 2 12:47:48 2014 +1000
8151
8152 - matthew@cvs.openbsd.org 2014/06/18 02:59:13
8153 [sandbox-systrace.c]
8154 Now that we have a dedicated getentropy(2) system call for
8155 arc4random(3), we can disallow __sysctl(2) in OpenSSH's systrace
8156 sandbox.
8157
8158 ok djm
8159
8160commit 51504ceec627c0ad57b9f75585c7b3d277f326be
8161Author: Damien Miller <djm@mindrot.org>
8162Date: Wed Jul 2 12:47:25 2014 +1000
8163
8164 - deraadt@cvs.openbsd.org 2014/06/13 08:26:29
8165 [sandbox-systrace.c]
8166 permit SYS_getentropy
8167 from matthew
8168
8169commit a261b8df59117f7dc52abb3a34b35a40c2c9fa88
8170Author: Tim Rice <tim@multitalents.net>
8171Date: Wed Jun 18 16:17:28 2014 -0700
8172
8173 - (tim) [openssh/session.c] Work around to get chroot sftp working on UnixWare
8174
8175commit 316fac6f18f87262a315c79bcf68b9f92c9337e4
8176Author: Darren Tucker <dtucker@zip.com.au>
8177Date: Tue Jun 17 23:06:07 2014 +1000
8178
8179 - (dtucker) [entropy.c openbsd-compat/openssl-compat.{c,h}
8180 openbsd-compat/regress/{.cvsignore,Makefile.in,opensslvertest.c}]
8181 Move the OpenSSL header/library version test into its own function and add
8182 tests for it. Fix it to allow fix version upgrades (but not downgrades).
8183 Prompted by chl@ via OpenSMTPD (issue #462) and Debian (bug #748150).
8184 ok djm@ chl@
8185
8186commit af665bb7b092a59104db1e65577851cf35b86e32
8187Author: Darren Tucker <dtucker@zip.com.au>
8188Date: Mon Jun 16 22:50:55 2014 +1000
8189
8190 - (dtucker) [defines.h] Fix undef of _PATH_MAILDIR. From rak at debian via
8191 OpenSMTPD and chl@
8192
8193commit f9696566fb41320820f3b257ab564fa321bb3751
8194Author: Darren Tucker <dtucker@zip.com.au>
8195Date: Fri Jun 13 11:06:04 2014 +1000
8196
8197 - (dtucker) [configure.ac] Remove tcpwrappers support, support has already
8198 been removed from sshd.c.
8199
8200commit 5e2b8894b0b24af4ad0a2f7aa33ebf255df7a8bc
8201Author: Tim Rice <tim@multitalents.net>
8202Date: Wed Jun 11 18:31:10 2014 -0700
8203
8204 - (tim) [regress/unittests/test_helper/test_helper.h] Add includes.h for
8205 u_intXX_t types.
8206
8207commit 985ee2cbc3e43bc65827c3c0d4df3faa99160c37
8208Author: Darren Tucker <dtucker@zip.com.au>
8209Date: Thu Jun 12 05:32:29 2014 +1000
8210
8211 - (dtucker) [regress/unittests/sshbuf/*.c regress/unittests/test_helper/*]
8212 Wrap stdlib.h include an ifdef for platforms that don't have it.
8213
8214commit cf5392c2db2bb1dbef9818511d34056404436109
8215Author: Darren Tucker <dtucker@zip.com.au>
8216Date: Thu Jun 12 05:22:49 2014 +1000
8217
8218 - (dtucker) [defines.h] Add va_copy if we don't already have it, taken from
8219 openbsd-compat/bsd-asprintf.c.
8220
8221commit 58538d795e0b662f2f4e5a7193f1204bbe992ddd
8222Author: Darren Tucker <dtucker@zip.com.au>
8223Date: Wed Jun 11 13:39:24 2014 +1000
8224
8225 - (dtucker) [bufaux.c bufbn.c bufec.c buffer.c] Pull in includes.h for
8226 compat stuff, specifically whether or not OpenSSL has ECC.
8227
8228commit eb012ac581fd0abc16ee86ee3a68cf07c8ce4d08
8229Author: Darren Tucker <dtucker@zip.com.au>
8230Date: Wed Jun 11 13:10:00 2014 +1000
8231
8232 - (dtucker) [openbsd-compat/arc4random.c] Use explicit_bzero instead of an
8233 assigment that might get optimized out. ok djm@
8234
8235commit b9609fd86c623d6d440e630f5f9a63295f7aea20
8236Author: Darren Tucker <dtucker@zip.com.au>
8237Date: Wed Jun 11 08:04:02 2014 +1000
8238
8239 - (dtucker) [sshbuf.h] Only declare ECC functions if building without
8240 OpenSSL or if OpenSSL has ECC.
8241
8242commit a54a040f66944c6e8913df8635a01a2327219be9
8243Author: Darren Tucker <dtucker@zip.com.au>
8244Date: Wed Jun 11 07:58:35 2014 +1000
8245
8246 - dtucker@cvs.openbsd.org 2014/06/10 21:46:11
8247 [sshbuf.h]
8248 Group ECC functions together to make things a little easier in -portable.
8249 "doesn't bother me" deraadt@
8250
8251commit 9f92c53bad04a89067756be8198d4ec2d8a08875
8252Author: Darren Tucker <dtucker@zip.com.au>
8253Date: Wed Jun 11 07:57:58 2014 +1000
8254
8255 - djm@cvs.openbsd.org 2014/06/05 22:17:50
8256 [sshconnect2.c]
8257 fix inverted test that caused PKCS#11 keys that were explicitly listed
8258 not to be preferred. Reported by Dirk-Willem van Gulik
8259
8260commit 15c254a25394f96643da2ad0f674acdc51e89856
8261Author: Darren Tucker <dtucker@zip.com.au>
8262Date: Wed Jun 11 07:38:49 2014 +1000
8263
8264 - (dtucker) [regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c] ifdef
8265 ECC variable too.
8266
8267commit d7af0cc5bf273eeed0897a99420bc26841d07d8f
8268Author: Darren Tucker <dtucker@zip.com.au>
8269Date: Wed Jun 11 07:37:25 2014 +1000
8270
8271 - (dtucker) [myprosal.h] Don't include curve25519-sha256@libssh.org in
8272 the proposal if the version of OpenSSL we're using doesn't support ECC.
8273
8274commit 67508ac2563c33d582be181a3e777c65f549d22f
8275Author: Darren Tucker <dtucker@zip.com.au>
8276Date: Wed Jun 11 06:27:16 2014 +1000
8277
8278 - (dtucker) [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c
8279 regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c] Only do NISTP256
8280 curve tests if OpenSSL has them.
8281
8282commit 6482d90a65459a88c18c925368525855832272b3
8283Author: Damien Miller <djm@mindrot.org>
8284Date: Tue May 27 14:34:42 2014 +1000
8285
8286 - (djm) [configure.ac openbsd-compat/bsd-cygwin_util.c]
8287 [openbsd-compat/bsd-cygwin_util.h] On Cygwin, determine privilege
8288 separation user at runtime, since it may need to be a domain account.
8289 Patch from Corinna Vinschen.
8290
8291commit f9eb5e0734f7a7f6e975809eb54684d2a06a7ffc
8292Author: Damien Miller <djm@mindrot.org>
8293Date: Tue May 27 14:31:58 2014 +1000
8294
8295 - (djm) [contrib/cygwin/ssh-host-config] Updated Cygwin ssh-host-config
8296 from Corinna Vinschen, fixing a number of bugs and preparing for
8297 Cygwin 1.7.30.
8298
8299commit eae88744662e6b149f43ef071657727f1a157d95
8300Author: Damien Miller <djm@mindrot.org>
8301Date: Tue May 27 14:27:02 2014 +1000
8302
8303 - (djm) [cipher.c] Fix merge botch.
8304
8305commit 564b5e253c1d95c26a00e8288f0089a2571661c3
8306Author: Damien Miller <djm@mindrot.org>
8307Date: Thu May 22 08:23:59 2014 +1000
8308
8309 - (djm) [Makefile.in] typo in path
8310
8311commit e84d10302aeaf7a1acb05c451f8718143656856a
8312Author: Damien Miller <djm@mindrot.org>
8313Date: Wed May 21 17:13:36 2014 +1000
8314
8315 revert a diff I didn't mean to commit
8316
8317commit 795b86313f1f1aab9691666c4f2d5dae6e4acd50
8318Author: Damien Miller <djm@mindrot.org>
8319Date: Wed May 21 17:12:53 2014 +1000
8320
8321 - (djm) [misc.c] Use CLOCK_BOOTTIME in preference to CLOCK_MONOTONIC
8322 when it is available. It takes into account time spent suspended,
8323 thereby ensuring timeouts (e.g. for expiring agent keys) fire
8324 correctly. bz#2228 reported by John Haxby
8325
8326commit 18912775cb97c0b1e75e838d3c7d4b56648137b5
8327Author: Damien Miller <djm@mindrot.org>
8328Date: Wed May 21 17:06:46 2014 +1000
8329
8330 - (djm) [commit configure.ac defines.h sshpty.c] don't attempt to use
8331 vhangup on Linux. It doens't work for non-root users, and for them
8332 it just messes up the tty settings.
8333
8334commit 7f1c264d3049cd95234e91970ccb5406e1d15b27
8335Author: Damien Miller <djm@mindrot.org>
8336Date: Thu May 15 18:01:52 2014 +1000
8337
8338 - (djm) [sshbuf.c] need __predict_false
8339
8340commit e7429f2be8643e1100380a8a7389d85cc286c8fe
8341Author: Damien Miller <djm@mindrot.org>
8342Date: Thu May 15 18:01:01 2014 +1000
8343
8344 - (djm) [regress/Makefile Makefile.in]
8345 [regress/unittests/sshbuf/test_sshbuf.c
8346 [regress/unittests/sshbuf/test_sshbuf_fixed.c]
8347 [regress/unittests/sshbuf/test_sshbuf_fuzz.c]
8348 [regress/unittests/sshbuf/test_sshbuf_getput_basic.c]
8349 [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c]
8350 [regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c]
8351 [regress/unittests/sshbuf/test_sshbuf_misc.c]
8352 [regress/unittests/sshbuf/tests.c]
8353 [regress/unittests/test_helper/fuzz.c]
8354 [regress/unittests/test_helper/test_helper.c]
8355 Hook new unit tests into the build and "make tests"
8356
8357commit def1de086707b0e6b046fe7e115c60aca0227a99
8358Author: Damien Miller <djm@mindrot.org>
8359Date: Thu May 15 15:17:15 2014 +1000
8360
8361 - (djm) [regress/unittests/Makefile]
8362 [regress/unittests/Makefile.inc]
8363 [regress/unittests/sshbuf/Makefile]
8364 [regress/unittests/sshbuf/test_sshbuf.c]
8365 [regress/unittests/sshbuf/test_sshbuf_fixed.c]
8366 [regress/unittests/sshbuf/test_sshbuf_fuzz.c]
8367 [regress/unittests/sshbuf/test_sshbuf_getput_basic.c]
8368 [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c]
8369 [regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c]
8370 [regress/unittests/sshbuf/test_sshbuf_misc.c]
8371 [regress/unittests/sshbuf/tests.c]
8372 [regress/unittests/test_helper/Makefile]
8373 [regress/unittests/test_helper/fuzz.c]
8374 [regress/unittests/test_helper/test_helper.c]
8375 [regress/unittests/test_helper/test_helper.h]
8376 Import new unit tests from OpenBSD; not yet hooked up to build.
8377
8378commit 167685756fde8bc213a8df2c8e1848e312db0f46
8379Author: Damien Miller <djm@mindrot.org>
8380Date: Thu May 15 15:08:40 2014 +1000
8381
8382 - logan@cvs.openbsd.org 2014/05/04 10:40:59
8383 [connect-privsep.sh]
8384 Remove the Z flag from the list of malloc options as it
8385 was removed from malloc.c 10 days ago.
8386
8387 OK from miod@
8388
8389commit d0b69fe90466920d69c96069312e24b581771bd7
8390Author: Damien Miller <djm@mindrot.org>
8391Date: Thu May 15 15:08:19 2014 +1000
8392
8393 - dtucker@cvs.openbsd.org 2014/05/03 18:46:14
8394 [proxy-connect.sh]
8395 Add tests for with and without compression, with and without privsep.
8396
8397commit edb1af50441d19fb2dd9ccb4d75bf14473fca584
8398Author: Damien Miller <djm@mindrot.org>
8399Date: Thu May 15 15:07:53 2014 +1000
8400
8401 - djm@cvs.openbsd.org 2014/04/21 22:15:37
8402 [dhgex.sh integrity.sh kextype.sh rekey.sh try-ciphers.sh]
8403 repair regress tests broken by server-side default cipher/kex/mac changes
8404 by ensuring that the option under test is included in the server's
8405 algorithm list
8406
8407commit 54343e95c70994695f8842fb22836321350198d3
8408Author: Damien Miller <djm@mindrot.org>
8409Date: Thu May 15 15:07:33 2014 +1000
8410
8411 - djm@cvs.openbsd.org 2014/03/13 20:44:49
8412 [login-timeout.sh]
8413 this test is a sorry mess of race conditions; add another sleep
8414 to avoid a failure on slow machines (at least until I find a
8415 better way)
8416
8417commit e5b9f0f2ee6e133894307e44e862b66426990733
8418Author: Damien Miller <djm@mindrot.org>
8419Date: Thu May 15 14:58:07 2014 +1000
8420
8421 - (djm) [Makefile.in configure.ac sshbuf-getput-basic.c]
8422 [sshbuf-getput-crypto.c sshbuf.c] compilation and portability fixes
8423
8424commit b9c566788a9ebd6a9d466f47a532124f111f0542
8425Author: Damien Miller <djm@mindrot.org>
8426Date: Thu May 15 14:43:37 2014 +1000
8427
8428 - (djm) [configure.ac] Unconditionally define WITH_OPENSSL until we write
8429 portability glue to support building without libcrypto
8430
8431commit 3dc27178b42234b653a32f7a87292d7994045ee3
8432Author: Damien Miller <djm@mindrot.org>
8433Date: Thu May 15 14:37:59 2014 +1000
8434
8435 - logan@cvs.openbsd.org 2014/05/05 07:02:30
8436 [sftp.c]
8437 Zap extra whitespace.
8438
8439 OK from djm@ and dtucker@
8440
8441commit c31a0cd5b31961f01c5b731f62a6cb9d4f767472
8442Author: Damien Miller <djm@mindrot.org>
8443Date: Thu May 15 14:37:39 2014 +1000
8444
8445 - markus@cvs.openbsd.org 2014/05/03 17:20:34
8446 [monitor.c packet.c packet.h]
8447 unbreak compression, by re-init-ing the compression code in the
8448 post-auth child. the new buffer code is more strict, and requires
8449 buffer_init() while the old code was happy after a bzero();
8450 originally from djm@
8451
8452commit 686c7d9ee6f44b2be4128d7860b6b37adaeba733
8453Author: Damien Miller <djm@mindrot.org>
8454Date: Thu May 15 14:37:03 2014 +1000
8455
8456 - djm@cvs.openbsd.org 2014/05/02 03:27:54
8457 [chacha.h cipher-chachapoly.h digest.h hmac.h kex.h kexc25519.c]
8458 [misc.h poly1305.h ssh-pkcs11.c defines.h]
8459 revert __bounded change; it causes way more problems for portable than
8460 it solves; pointed out by dtucker@
8461
8462commit 294c58a007cfb2f3bddc4fc3217e255857ffb9bf
8463Author: Damien Miller <djm@mindrot.org>
8464Date: Thu May 15 14:35:03 2014 +1000
8465
8466 - naddy@cvs.openbsd.org 2014/04/30 19:07:48
8467 [mac.c myproposal.h umac.c]
8468 UMAC can use our local fallback implementation of AES when OpenSSL isn't
8469 available. Glue code straight from Ted Krovetz's original umac.c.
8470 ok markus@
8471
8472commit 05e82c3b963c33048128baf72a6f6b3a1c10b4c1
8473Author: Damien Miller <djm@mindrot.org>
8474Date: Thu May 15 14:33:43 2014 +1000
8475
8476 - djm@cvs.openbsd.org 2014/04/30 05:29:56
8477 [bufaux.c bufbn.c bufec.c buffer.c buffer.h sshbuf-getput-basic.c]
8478 [sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c sshbuf.h ssherr.c]
8479 [ssherr.h]
8480 New buffer API; the first installment of the conversion/replacement
8481 of OpenSSH's internals to make them usable as a standalone library.
8482
8483 This includes a set of wrappers to make it compatible with the
8484 existing buffer API so replacement can occur incrementally.
8485
8486 With and ok markus@
8487
8488 Thanks also to Ben Hawkes, David Tomaschik, Ivan Fratric, Matthew
8489 Dempsky and Ron Bowes for a detailed review.
8490
8491commit 380948180f847a26f2d0c85b4dad3dca2ed2fd8b
8492Author: Damien Miller <djm@mindrot.org>
8493Date: Thu May 15 14:25:18 2014 +1000
8494
8495 - dtucker@cvs.openbsd.org 2014/04/29 20:36:51
8496 [sftp.c]
8497 Don't attempt to append a nul quote char to the filename. Should prevent
8498 fatal'ing with "el_insertstr failed" when there's a single quote char
8499 somewhere in the string. bz#2238, ok markus@
8500
8501commit d7fd8bedd4619a2ec7fd02aae4c4e1db4431ad9f
8502Author: Damien Miller <djm@mindrot.org>
8503Date: Thu May 15 14:24:59 2014 +1000
8504
8505 - dtucker@cvs.openbsd.org 2014/04/29 19:58:50
8506 [sftp.c]
8507 Move nulling of variable next to where it's freed. ok markus@
8508
8509commit 1f0311c7c7d10c94ff7f823de9c5b2ed79368b14
8510Author: Damien Miller <djm@mindrot.org>
8511Date: Thu May 15 14:24:09 2014 +1000
8512
8513 - markus@cvs.openbsd.org 2014/04/29 18:01:49
8514 [auth.c authfd.c authfile.c bufaux.c cipher.c cipher.h hostfile.c]
8515 [kex.c key.c mac.c monitor.c monitor_wrap.c myproposal.h packet.c]
8516 [roaming_client.c ssh-agent.c ssh-keygen.c ssh-keyscan.c ssh-keysign.c]
8517 [ssh-pkcs11.h ssh.c sshconnect.c sshconnect2.c sshd.c]
8518 make compiling against OpenSSL optional (make OPENSSL=no);
8519 reduces algorithms to curve25519, aes-ctr, chacha, ed25519;
8520 allows us to explore further options; with and ok djm
8521
8522commit c5893785564498cea73cb60d2cf199490483e080
8523Author: Damien Miller <djm@mindrot.org>
8524Date: Thu May 15 13:48:49 2014 +1000
8525
8526 - djm@cvs.openbsd.org 2014/04/29 13:10:30
8527 [clientloop.c serverloop.c]
8528 bz#1818 - don't send channel success/failre replies on channels that
8529 have sent a close already; analysis and patch from Simon Tatham;
8530 ok markus@
8531
8532commit 633de33b192d808d87537834c316dc8b75fe1880
8533Author: Damien Miller <djm@mindrot.org>
8534Date: Thu May 15 13:48:26 2014 +1000
8535
8536 - djm@cvs.openbsd.org 2014/04/28 03:09:18
8537 [authfile.c bufaux.c buffer.h channels.c krl.c mux.c packet.c packet.h]
8538 [ssh-keygen.c]
8539 buffer_get_string_ptr's return should be const to remind
8540 callers that futzing with it will futz with the actual buffer
8541 contents
8542
8543commit 15271907843e4ae50dcfc83b3594014cf5e9607b
8544Author: Damien Miller <djm@mindrot.org>
8545Date: Thu May 15 13:47:56 2014 +1000
8546
8547 - djm@cvs.openbsd.org 2014/04/23 12:42:34
8548 [readconf.c]
8549 don't record duplicate IdentityFiles
8550
8551commit 798a02568b13a2e46efebd81f08c8f4bb33a6dc7
8552Author: Damien Miller <djm@mindrot.org>
8553Date: Thu May 15 13:47:37 2014 +1000
8554
8555 - jmc@cvs.openbsd.org 2014/04/22 14:16:30
8556 [sftp.1]
8557 zap eol whitespace;
8558
8559commit d875ff78d2b8436807381051de112f0ebf9b9ae1
8560Author: Damien Miller <djm@mindrot.org>
8561Date: Thu May 15 13:47:15 2014 +1000
8562
8563 - logan@cvs.openbsd.org 2014/04/22 12:42:04
8564 [sftp.1]
8565 Document sftp upload resume.
8566 OK from djm@, with feedback from okan@.
8567
8568commit b15cd7bb097fd80dc99520f45290ef775da1ef19
8569Author: Damien Miller <djm@mindrot.org>
8570Date: Thu May 15 13:46:52 2014 +1000
8571
8572 - logan@cvs.openbsd.org 2014/04/22 10:07:12
8573 [sftp.c]
8574 Sort the sftp command list.
8575 OK from djm@
8576
8577commit d8accc0aa72656ba63d50937165c5ae49db1dcd6
8578Author: Damien Miller <djm@mindrot.org>
8579Date: Thu May 15 13:46:25 2014 +1000
8580
8581 - logan@cvs.openbsd.org 2014/04/21 14:36:16
8582 [sftp-client.c sftp-client.h sftp.c]
8583 Implement sftp upload resume support.
8584 OK from djm@, with input from guenther@, mlarkin@ and
8585 okan@
8586
8587commit 16cd3928a87d20c77b13592a74b60b08621d3ce6
8588Author: Damien Miller <djm@mindrot.org>
8589Date: Thu May 15 13:45:58 2014 +1000
8590
8591 - logan@cvs.openbsd.org 2014/04/20 09:24:26
8592 [dns.c dns.h ssh-keygen.c]
8593 Add support for SSHFP DNS records for ED25519 key types.
8594 OK from djm@
8595
8596commit ec0b67eb3b4e12f296ced1fafa01860c374f7eea
8597Author: Damien Miller <djm@mindrot.org>
8598Date: Thu May 15 13:45:26 2014 +1000
8599
8600 - (djm) [rijndael.c rijndael.h] Sync with newly-ressurected versions ine
8601 OpenBSD
8602
8603commit f028460d0b2e5a584355321015cde69bf6fd933e
8604Author: Darren Tucker <dtucker@zip.com.au>
8605Date: Thu May 1 02:24:35 2014 +1000
8606
8607 - (dtucker) [defines.h] Define __GNUC_PREREQ__ macro if we don't already
8608 have it. Only attempt to use __attribute__(__bounded__) for gcc.
8609
8610commit b628cc4c3e4a842bab5e4584d18c2bc5fa4d0edf
8611Author: Damien Miller <djm@mindrot.org>
8612Date: Sun Apr 20 13:33:58 2014 +1000
8613
8614 - djm@cvs.openbsd.org 2014/04/20 02:49:32
8615 [compat.c]
8616 add a canonical 6.6 + curve25519 bignum fix fake version that I can
8617 recommend people use ahead of the openssh-6.7 release
8618
8619commit 888566913933a802f3a329ace123ebcb7154cf78
8620Author: Damien Miller <djm@mindrot.org>
8621Date: Sun Apr 20 13:33:19 2014 +1000
8622
8623 - djm@cvs.openbsd.org 2014/04/20 02:30:25
8624 [misc.c misc.h umac.c]
8625 use get/put_u32 to load values rather than *((UINT32 *)p) that breaks on
8626 strict-alignment architectures; reported by and ok stsp@
8627
8628commit 16f85cbc7e5139950e6a38317e7c8b368beafa5d
8629Author: Damien Miller <djm@mindrot.org>
8630Date: Sun Apr 20 13:29:28 2014 +1000
8631
8632 - tedu@cvs.openbsd.org 2014/04/19 18:42:19
8633 [ssh.1]
8634 delete .xr to hosts.equiv. there's still an unfortunate amount of
8635 documentation referring to rhosts equivalency in here.
8636
8637commit 69cb24b7356ec3f0fc5ff04a68f98f2c55c766f4
8638Author: Damien Miller <djm@mindrot.org>
8639Date: Sun Apr 20 13:29:06 2014 +1000
8640
8641 - tedu@cvs.openbsd.org 2014/04/19 18:15:16
8642 [sshd.8]
8643 remove some really old rsh references
8644
8645commit 84c1e7bca8c4ceaccf4d5557e39a833585a3c77e
8646Author: Damien Miller <djm@mindrot.org>
8647Date: Sun Apr 20 13:27:53 2014 +1000
8648
8649 - tedu@cvs.openbsd.org 2014/04/19 14:53:48
8650 [ssh-keysign.c sshd.c]
8651 Delete futile calls to RAND_seed. ok djm
8652 NB. Id sync only. This only applies to OpenBSD's libcrypto slashathon
8653
8654commit 0e6b67423b8662f9ca4c92750309e144fd637ef1
8655Author: Damien Miller <djm@mindrot.org>
8656Date: Sun Apr 20 13:27:01 2014 +1000
8657
8658 - djm@cvs.openbsd.org 2014/04/19 05:54:59
8659 [compat.c]
8660 missing wildcard; pointed out by naddy@
8661
8662commit 9395b28223334826837c15e8c1bb4dfb3b0d2ca5
8663Author: Damien Miller <djm@mindrot.org>
8664Date: Sun Apr 20 13:25:30 2014 +1000
8665
8666 - djm@cvs.openbsd.org 2014/04/18 23:52:25
8667 [compat.c compat.h sshconnect2.c sshd.c version.h]
8668 OpenSSH 6.5 and 6.6 have a bug that causes ~0.2% of connections
8669 using the curve25519-sha256@libssh.org KEX exchange method to fail
8670 when connecting with something that implements the spec properly.
8671
8672 Disable this KEX method when speaking to one of the affected
8673 versions.
8674
8675 reported by Aris Adamantiadis; ok markus@
8676
8677commit 8c492da58f8ceb85cf5f7066f23e26fb813a963d
8678Author: Damien Miller <djm@mindrot.org>
8679Date: Sun Apr 20 13:25:09 2014 +1000
8680
8681 - djm@cvs.openbsd.org 2014/04/16 23:28:12
8682 [ssh-agent.1]
8683 remove the identity files from this manpage - ssh-agent doesn't deal
8684 with them at all and the same information is duplicated in ssh-add.1
8685 (which does deal with them); prodded by deraadt@
8686
8687commit adbfdbbdccc70c9bd70d81ae096db115445c6e26
8688Author: Damien Miller <djm@mindrot.org>
8689Date: Sun Apr 20 13:24:49 2014 +1000
8690
8691 - djm@cvs.openbsd.org 2014/04/16 23:22:45
8692 [bufaux.c]
8693 skip leading zero bytes in buffer_put_bignum2_from_string();
8694 reported by jan AT mojzis.com; ok markus@
8695
8696commit 75c62728dc87af6805696eeb520b9748faa136c8
8697Author: Damien Miller <djm@mindrot.org>
8698Date: Sun Apr 20 13:24:31 2014 +1000
8699
8700 - djm@cvs.openbsd.org 2014/04/12 04:55:53
8701 [sshd.c]
8702 avoid crash at exit: check that pmonitor!=NULL before dereferencing;
8703 bz#2225, patch from kavi AT juniper.net
8704
8705commit 2a328437fb1b0976f2f4522d8645803d5a5d0967
8706Author: Damien Miller <djm@mindrot.org>
8707Date: Sun Apr 20 13:24:01 2014 +1000
8708
8709 - djm@cvs.openbsd.org 2014/04/01 05:32:57
8710 [packet.c]
8711 demote a debug3 to PACKET_DEBUG; ok markus@
8712
8713commit 7d6a9fb660c808882d064e152d6070ffc3844c3f
8714Author: Damien Miller <djm@mindrot.org>
8715Date: Sun Apr 20 13:23:43 2014 +1000
8716
8717 - djm@cvs.openbsd.org 2014/04/01 03:34:10
8718 [sshconnect.c]
8719 When using VerifyHostKeyDNS with a DNSSEC resolver, down-convert any
8720 certificate keys to plain keys and attempt SSHFP resolution.
8721
8722 Prevents a server from skipping SSHFP lookup and forcing a new-hostkey
8723 dialog by offering only certificate keys.
8724
8725 Reported by mcv21 AT cam.ac.uk
8726
8727commit fcd62c0b66b8415405ed0af29c236329eb88cc0f
8728Author: Damien Miller <djm@mindrot.org>
8729Date: Sun Apr 20 13:23:21 2014 +1000
8730
8731 - djm@cvs.openbsd.org 2014/04/01 02:05:27
8732 [ssh-keysign.c]
8733 include fingerprint of key not found
8734 use arc4random_buf() instead of loop+arc4random()
8735
8736commit 43b156cf72f900f88065b0a1c1ebd09ab733ca46
8737Author: Damien Miller <djm@mindrot.org>
8738Date: Sun Apr 20 13:23:03 2014 +1000
8739
8740 - jmc@cvs.openbsd.org 2014/03/31 13:39:34
8741 [ssh-keygen.1]
8742 the text for the -K option was inserted in the wrong place in -r1.108;
8743 fix From: Matthew Clarke
8744
8745commit c1621c84f2dc1279065ab9fde2aa9327af418900
8746Author: Damien Miller <djm@mindrot.org>
8747Date: Sun Apr 20 13:22:46 2014 +1000
8748
8749 - naddy@cvs.openbsd.org 2014/03/28 05:17:11
8750 [ssh_config.5 sshd_config.5]
8751 sync available and default algorithms, improve algorithm list formatting
8752 help from jmc@ and schwarze@, ok deraadt@
8753
8754commit f2719b7c2b8a3b14d778d8a6d8dc729b5174b054
8755Author: Damien Miller <djm@mindrot.org>
8756Date: Sun Apr 20 13:22:18 2014 +1000
8757
8758 - tedu@cvs.openbsd.org 2014/03/26 19:58:37
8759 [sshd.8 sshd.c]
8760 remove libwrap support. ok deraadt djm mfriedl
8761
8762commit 4f40209aa4060b9c066a2f0d9332ace7b8dfb391
8763Author: Damien Miller <djm@mindrot.org>
8764Date: Sun Apr 20 13:21:22 2014 +1000
8765
8766 - djm@cvs.openbsd.org 2014/03/26 04:55:35
8767 [chacha.h cipher-chachapoly.h digest.h hmac.h kex.h kexc25519.c
8768 [misc.h poly1305.h ssh-pkcs11.c]
8769 use __bounded(...) attribute recently added to sys/cdefs.h instead of
8770 longform __attribute__(__bounded(...));
8771
8772 for brevity and a warning free compilation with llvm/clang
8773
8774commit 9235a030ad1b16903fb495d81544e0f7c7449523
8775Author: Damien Miller <djm@mindrot.org>
8776Date: Sun Apr 20 13:17:20 2014 +1000
8777
8778 Three commits in one (since they touch the same heavily-diverged file
8779 repeatedly):
8780
8781 - markus@cvs.openbsd.org 2014/03/25 09:40:03
8782 [myproposal.h]
8783 trimm default proposals.
8784
8785 This commit removes the weaker pre-SHA2 hashes, the broken ciphers
8786 (arcfour), and the broken modes (CBC) from the default configuration
8787 (the patch only changes the default, all the modes are still available
8788 for the config files).
8789
8790 ok djm@, reminded by tedu@ & naddy@ and discussed with many
8791 - deraadt@cvs.openbsd.org 2014/03/26 17:16:26
8792 [myproposal.h]
8793 The current sharing of myproposal[] between both client and server code
8794 makes the previous diff highly unpallatable. We want to go in that
8795 direction for the server, but not for the client. Sigh.
8796 Brought up by naddy.
8797 - markus@cvs.openbsd.org 2014/03/27 23:01:27
8798 [myproposal.h ssh-keyscan.c sshconnect2.c sshd.c]
8799 disable weak proposals in sshd, but keep them in ssh; ok djm@
8800
8801commit 6e1777f592f15f4559728c78204617537b1ac076
8802Author: Damien Miller <djm@mindrot.org>
8803Date: Sun Apr 20 13:02:58 2014 +1000
8804
8805 - tedu@cvs.openbsd.org 2014/03/19 14:42:44
8806 [scp.1]
8807 there is no need for rcp anymore
8808 ok deraadt millert
8809
8810commit eb1b7c514d2a7b1802ccee8cd50e565a4d419887
8811Author: Damien Miller <djm@mindrot.org>
8812Date: Sun Apr 20 13:02:26 2014 +1000
8813
8814 - tedu@cvs.openbsd.org 2014/03/17 19:44:10
8815 [ssh.1]
8816 old descriptions of des and blowfish are old. maybe ok deraadt
8817
8818commit f0858de6e1324ec730752387074b111b8551081e
8819Author: Damien Miller <djm@mindrot.org>
8820Date: Sun Apr 20 13:01:30 2014 +1000
8821
8822 - deraadt@cvs.openbsd.org 2014/03/15 17:28:26
8823 [ssh-agent.c ssh-keygen.1 ssh-keygen.c]
8824 Improve usage() and documentation towards the standard form.
8825 In particular, this line saves a lot of man page reading time.
8826 usage: ssh-keygen [-q] [-b bits] [-t dsa | ecdsa | ed25519 | rsa | rsa1]
8827 [-N new_passphrase] [-C comment] [-f output_keyfile]
8828 ok schwarze jmc
8829
8830commit 94bfe0fbd6e91a56b5b0ab94ac955d2a67d101aa
8831Author: Damien Miller <djm@mindrot.org>
8832Date: Sun Apr 20 13:00:51 2014 +1000
8833
8834 - naddy@cvs.openbsd.org 2014/03/12 13:06:59
8835 [ssh-keyscan.1]
8836 scan for Ed25519 keys by default too
8837
8838commit 3819519288b2b3928c6882f5883b0f55148f4fc0
8839Author: Damien Miller <djm@mindrot.org>
8840Date: Sun Apr 20 13:00:28 2014 +1000
8841
8842 - djm@cvs.openbsd.org 2014/03/12 04:51:12
8843 [authfile.c]
8844 correct test that kdf name is not "none" or "bcrypt"
8845
8846commit 8f9cd709c7cf0655d414306a0ed28306b33802be
8847Author: Damien Miller <djm@mindrot.org>
8848Date: Sun Apr 20 13:00:11 2014 +1000
8849
8850 - djm@cvs.openbsd.org 2014/03/12 04:50:32
8851 [auth-bsdauth.c ssh-keygen.c]
8852 don't count on things that accept arguments by reference to clear
8853 things for us on error; most things do, but it's unsafe form.
8854
8855commit 1c7ef4be83f6dec84509a312518b9df00ab491d9
8856Author: Damien Miller <djm@mindrot.org>
8857Date: Sun Apr 20 12:59:46 2014 +1000
8858
8859 - djm@cvs.openbsd.org 2014/03/12 04:44:58
8860 [ssh-keyscan.c]
8861 scan for Ed25519 keys by default too
8862
8863commit c10bf4d051c97939b30a1616c0499310057d07da
8864Author: Damien Miller <djm@mindrot.org>
8865Date: Sun Apr 20 12:58:04 2014 +1000
8866
8867 - djm@cvs.openbsd.org 2014/03/03 22:22:30
8868 [session.c]
8869 ignore enviornment variables with embedded '=' or '\0' characters;
8870 spotted by Jann Horn; ok deraadt@
8871 Id sync only - portable already has this.
8872
8873commit c2e49062faccbcd7135c40d1c78c5c329c58fc2e
8874Author: Damien Miller <djm@mindrot.org>
8875Date: Tue Apr 1 14:42:46 2014 +1100
8876
8877 - (djm) Use full release (e.g. 6.5p1) in debug output rather than just
8878 version. From des@des.no
8879
8880commit 14928b7492abec82afa4c2b778fc03f78cd419b6
8881Author: Damien Miller <djm@mindrot.org>
8882Date: Tue Apr 1 14:38:07 2014 +1100
8883
8884 - (djm) On platforms that support it, use prctl() to prevent sftp-server
8885 from accessing /proc/self/{mem,maps}; patch from jann AT thejh.net
8886
8887commit 48abc47e60048461fe9117e108a7e99ea1ac2bb8
8888Author: Damien Miller <djm@mindrot.org>
8889Date: Mon Mar 17 14:45:56 2014 +1100
8890
8891 - (djm) [sandbox-seccomp-filter.c] Soft-fail stat() syscalls. Add XXX to
8892 remind myself to add sandbox violation logging via the log socket.
8893
8894commit 9c36698ca2f554ec221dc7ef29c7a89e97c88705
8895Author: Tim Rice <tim@multitalents.net>
8896Date: Fri Mar 14 12:45:01 2014 -0700
8897
8898 20140314
8899 - (tim) [opensshd.init.in] Add support for ed25519
8900
8901commit 19158b2447e35838d69b2b735fb640d1e86061ea
8902Author: Damien Miller <djm@mindrot.org>
8903Date: Thu Mar 13 13:14:21 2014 +1100
8904
8905 - (djm) Release OpenSSH 6.6
diff --git a/config.h.in b/config.h.in
new file mode 100644
index 000000000..89bf1b0ff
--- /dev/null
+++ b/config.h.in
@@ -0,0 +1,1728 @@
1/* config.h.in. Generated from configure.ac by autoheader. */
2
3/* Define if you have a getaddrinfo that fails for the all-zeros IPv6 address
4 */
5#undef AIX_GETNAMEINFO_HACK
6
7/* Define if your AIX loginfailed() function takes 4 arguments (AIX >= 5.2) */
8#undef AIX_LOGINFAILED_4ARG
9
10/* System only supports IPv4 audit records */
11#undef AU_IPv4
12
13/* Define if your resolver libs need this for getrrsetbyname */
14#undef BIND_8_COMPAT
15
16/* The system has incomplete BSM API */
17#undef BROKEN_BSM_API
18
19/* Define if cmsg_type is not passed correctly */
20#undef BROKEN_CMSG_TYPE
21
22/* getaddrinfo is broken (if present) */
23#undef BROKEN_GETADDRINFO
24
25/* getgroups(0,NULL) will return -1 */
26#undef BROKEN_GETGROUPS
27
28/* FreeBSD glob does not do what we need */
29#undef BROKEN_GLOB
30
31/* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */
32#undef BROKEN_INET_NTOA
33
34/* ia_uinfo routines not supported by OS yet */
35#undef BROKEN_LIBIAF
36
37/* Ultrix mmap can't map files */
38#undef BROKEN_MMAP
39
40/* Define if your struct dirent expects you to allocate extra space for d_name
41 */
42#undef BROKEN_ONE_BYTE_DIRENT_D_NAME
43
44/* Can't do comparisons on readv */
45#undef BROKEN_READV_COMPARISON
46
47/* NetBSD read function is sometimes redirected, breaking atomicio comparisons
48 against it */
49#undef BROKEN_READ_COMPARISON
50
51/* realpath does not work with nonexistent files */
52#undef BROKEN_REALPATH
53
54/* Needed for NeXT */
55#undef BROKEN_SAVED_UIDS
56
57/* Define if your setregid() is broken */
58#undef BROKEN_SETREGID
59
60/* Define if your setresgid() is broken */
61#undef BROKEN_SETRESGID
62
63/* Define if your setresuid() is broken */
64#undef BROKEN_SETRESUID
65
66/* Define if your setreuid() is broken */
67#undef BROKEN_SETREUID
68
69/* LynxOS has broken setvbuf() implementation */
70#undef BROKEN_SETVBUF
71
72/* QNX shadow support is broken */
73#undef BROKEN_SHADOW_EXPIRE
74
75/* Define if your snprintf is busted */
76#undef BROKEN_SNPRINTF
77
78/* 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 `pam' library (-lpam). */
698#undef HAVE_LIBPAM
699
700/* Define to 1 if you have the `socket' library (-lsocket). */
701#undef HAVE_LIBSOCKET
702
703/* Define to 1 if you have the <libutil.h> header file. */
704#undef HAVE_LIBUTIL_H
705
706/* Define to 1 if you have the `xnet' library (-lxnet). */
707#undef HAVE_LIBXNET
708
709/* Define to 1 if you have the `z' library (-lz). */
710#undef HAVE_LIBZ
711
712/* Define to 1 if you have the <limits.h> header file. */
713#undef HAVE_LIMITS_H
714
715/* Define to 1 if you have the <linux/audit.h> header file. */
716#undef HAVE_LINUX_AUDIT_H
717
718/* Define to 1 if you have the <linux/filter.h> header file. */
719#undef HAVE_LINUX_FILTER_H
720
721/* Define to 1 if you have the <linux/if_tun.h> header file. */
722#undef HAVE_LINUX_IF_TUN_H
723
724/* Define to 1 if you have the <linux/seccomp.h> header file. */
725#undef HAVE_LINUX_SECCOMP_H
726
727/* Define to 1 if you have the <locale.h> header file. */
728#undef HAVE_LOCALE_H
729
730/* Define to 1 if you have the `login' function. */
731#undef HAVE_LOGIN
732
733/* Define to 1 if you have the <login_cap.h> header file. */
734#undef HAVE_LOGIN_CAP_H
735
736/* Define to 1 if you have the `login_getcapbool' function. */
737#undef HAVE_LOGIN_GETCAPBOOL
738
739/* Define to 1 if you have the <login.h> header file. */
740#undef HAVE_LOGIN_H
741
742/* Define to 1 if you have the `logout' function. */
743#undef HAVE_LOGOUT
744
745/* Define to 1 if you have the `logwtmp' function. */
746#undef HAVE_LOGWTMP
747
748/* Define to 1 if the system has the type `long double'. */
749#undef HAVE_LONG_DOUBLE
750
751/* Define to 1 if the system has the type `long long'. */
752#undef HAVE_LONG_LONG
753
754/* Define to 1 if you have the <maillock.h> header file. */
755#undef HAVE_MAILLOCK_H
756
757/* Define to 1 if you have the `mblen' function. */
758#undef HAVE_MBLEN
759
760/* Define to 1 if you have the `md5_crypt' function. */
761#undef HAVE_MD5_CRYPT
762
763/* Define if you want to allow MD5 passwords */
764#undef HAVE_MD5_PASSWORDS
765
766/* Define to 1 if you have the `memmove' function. */
767#undef HAVE_MEMMOVE
768
769/* Define to 1 if you have the <memory.h> header file. */
770#undef HAVE_MEMORY_H
771
772/* Define to 1 if you have the `memset_s' function. */
773#undef HAVE_MEMSET_S
774
775/* Define to 1 if you have the `mkdtemp' function. */
776#undef HAVE_MKDTEMP
777
778/* Define to 1 if you have the `mmap' function. */
779#undef HAVE_MMAP
780
781/* define if you have mode_t data type */
782#undef HAVE_MODE_T
783
784/* Some systems put nanosleep outside of libc */
785#undef HAVE_NANOSLEEP
786
787/* Define to 1 if you have the <ndir.h> header file. */
788#undef HAVE_NDIR_H
789
790/* Define to 1 if you have the <netdb.h> header file. */
791#undef HAVE_NETDB_H
792
793/* Define to 1 if you have the <netgroup.h> header file. */
794#undef HAVE_NETGROUP_H
795
796/* Define to 1 if you have the <net/if_tun.h> header file. */
797#undef HAVE_NET_IF_TUN_H
798
799/* Define if you are on NeXT */
800#undef HAVE_NEXT
801
802/* Define to 1 if you have the `ngetaddrinfo' function. */
803#undef HAVE_NGETADDRINFO
804
805/* Define to 1 if you have the `nsleep' function. */
806#undef HAVE_NSLEEP
807
808/* Define to 1 if you have the `ogetaddrinfo' function. */
809#undef HAVE_OGETADDRINFO
810
811/* Define if you have an old version of PAM which takes only one argument to
812 pam_strerror */
813#undef HAVE_OLD_PAM
814
815/* Define to 1 if you have the `openlog_r' function. */
816#undef HAVE_OPENLOG_R
817
818/* Define to 1 if you have the `openpty' function. */
819#undef HAVE_OPENPTY
820
821/* Define if your ssl headers are included with #include <openssl/header.h> */
822#undef HAVE_OPENSSL
823
824/* Define if you have Digital Unix Security Integration Architecture */
825#undef HAVE_OSF_SIA
826
827/* Define to 1 if you have the `pam_getenvlist' function. */
828#undef HAVE_PAM_GETENVLIST
829
830/* Define to 1 if you have the <pam/pam_appl.h> header file. */
831#undef HAVE_PAM_PAM_APPL_H
832
833/* Define to 1 if you have the `pam_putenv' function. */
834#undef HAVE_PAM_PUTENV
835
836/* Define to 1 if you have the <paths.h> header file. */
837#undef HAVE_PATHS_H
838
839/* Define if you have ut_pid in utmp.h */
840#undef HAVE_PID_IN_UTMP
841
842/* define if you have pid_t data type */
843#undef HAVE_PID_T
844
845/* Define to 1 if you have the `pledge' function. */
846#undef HAVE_PLEDGE
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 to 1 if you have the `priv_basicset' function. */
858#undef HAVE_PRIV_BASICSET
859
860/* Define to 1 if you have the <priv.h> header file. */
861#undef HAVE_PRIV_H
862
863/* Define if you have /proc/$pid/fd */
864#undef HAVE_PROC_PID
865
866/* Define to 1 if you have the `pstat' function. */
867#undef HAVE_PSTAT
868
869/* Define to 1 if you have the <pty.h> header file. */
870#undef HAVE_PTY_H
871
872/* Define to 1 if you have the `pututline' function. */
873#undef HAVE_PUTUTLINE
874
875/* Define to 1 if you have the `pututxline' function. */
876#undef HAVE_PUTUTXLINE
877
878/* Define to 1 if you have the `readpassphrase' function. */
879#undef HAVE_READPASSPHRASE
880
881/* Define to 1 if you have the <readpassphrase.h> header file. */
882#undef HAVE_READPASSPHRASE_H
883
884/* Define to 1 if you have the `reallocarray' function. */
885#undef HAVE_REALLOCARRAY
886
887/* Define to 1 if you have the `realpath' function. */
888#undef HAVE_REALPATH
889
890/* Define to 1 if you have the `recvmsg' function. */
891#undef HAVE_RECVMSG
892
893/* sys/resource.h has RLIMIT_NPROC */
894#undef HAVE_RLIMIT_NPROC
895
896/* Define to 1 if you have the <rpc/types.h> header file. */
897#undef HAVE_RPC_TYPES_H
898
899/* Define to 1 if you have the `rresvport_af' function. */
900#undef HAVE_RRESVPORT_AF
901
902/* Define to 1 if you have the `RSA_generate_key_ex' function. */
903#undef HAVE_RSA_GENERATE_KEY_EX
904
905/* Define to 1 if you have the `RSA_get_default_method' function. */
906#undef HAVE_RSA_GET_DEFAULT_METHOD
907
908/* Define to 1 if you have the <sandbox.h> header file. */
909#undef HAVE_SANDBOX_H
910
911/* Define to 1 if you have the `sandbox_init' function. */
912#undef HAVE_SANDBOX_INIT
913
914/* define if you have sa_family_t data type */
915#undef HAVE_SA_FAMILY_T
916
917/* Define to 1 if you have the `scan_scaled' function. */
918#undef HAVE_SCAN_SCALED
919
920/* Define if you have SecureWare-based protected password database */
921#undef HAVE_SECUREWARE
922
923/* Define to 1 if you have the <security/pam_appl.h> header file. */
924#undef HAVE_SECURITY_PAM_APPL_H
925
926/* Define to 1 if you have the `sendmsg' function. */
927#undef HAVE_SENDMSG
928
929/* Define to 1 if you have the `setauthdb' function. */
930#undef HAVE_SETAUTHDB
931
932/* Define to 1 if you have the `setdtablesize' function. */
933#undef HAVE_SETDTABLESIZE
934
935/* Define to 1 if you have the `setegid' function. */
936#undef HAVE_SETEGID
937
938/* Define to 1 if you have the `setenv' function. */
939#undef HAVE_SETENV
940
941/* Define to 1 if you have the `seteuid' function. */
942#undef HAVE_SETEUID
943
944/* Define to 1 if you have the `setgroupent' function. */
945#undef HAVE_SETGROUPENT
946
947/* Define to 1 if you have the `setgroups' function. */
948#undef HAVE_SETGROUPS
949
950/* Define to 1 if you have the `setlinebuf' function. */
951#undef HAVE_SETLINEBUF
952
953/* Define to 1 if you have the `setlogin' function. */
954#undef HAVE_SETLOGIN
955
956/* Define to 1 if you have the `setluid' function. */
957#undef HAVE_SETLUID
958
959/* Define to 1 if you have the `setpassent' function. */
960#undef HAVE_SETPASSENT
961
962/* Define to 1 if you have the `setpcred' function. */
963#undef HAVE_SETPCRED
964
965/* Define to 1 if you have the `setppriv' function. */
966#undef HAVE_SETPPRIV
967
968/* Define to 1 if you have the `setproctitle' function. */
969#undef HAVE_SETPROCTITLE
970
971/* Define to 1 if you have the `setregid' function. */
972#undef HAVE_SETREGID
973
974/* Define to 1 if you have the `setresgid' function. */
975#undef HAVE_SETRESGID
976
977/* Define to 1 if you have the `setresuid' function. */
978#undef HAVE_SETRESUID
979
980/* Define to 1 if you have the `setreuid' function. */
981#undef HAVE_SETREUID
982
983/* Define to 1 if you have the `setrlimit' function. */
984#undef HAVE_SETRLIMIT
985
986/* Define to 1 if you have the `setsid' function. */
987#undef HAVE_SETSID
988
989/* Define to 1 if you have the `setutent' function. */
990#undef HAVE_SETUTENT
991
992/* Define to 1 if you have the `setutxdb' function. */
993#undef HAVE_SETUTXDB
994
995/* Define to 1 if you have the `setutxent' function. */
996#undef HAVE_SETUTXENT
997
998/* Define to 1 if you have the `setvbuf' function. */
999#undef HAVE_SETVBUF
1000
1001/* Define to 1 if you have the `set_id' function. */
1002#undef HAVE_SET_ID
1003
1004/* Define to 1 if you have the `SHA256_Update' function. */
1005#undef HAVE_SHA256_UPDATE
1006
1007/* Define to 1 if you have the <sha2.h> header file. */
1008#undef HAVE_SHA2_H
1009
1010/* Define to 1 if you have the <shadow.h> header file. */
1011#undef HAVE_SHADOW_H
1012
1013/* Define to 1 if you have the `sigaction' function. */
1014#undef HAVE_SIGACTION
1015
1016/* Define to 1 if you have the `sigvec' function. */
1017#undef HAVE_SIGVEC
1018
1019/* Define to 1 if the system has the type `sig_atomic_t'. */
1020#undef HAVE_SIG_ATOMIC_T
1021
1022/* define if you have size_t data type */
1023#undef HAVE_SIZE_T
1024
1025/* Define to 1 if you have the `snprintf' function. */
1026#undef HAVE_SNPRINTF
1027
1028/* Define to 1 if you have the `socketpair' function. */
1029#undef HAVE_SOCKETPAIR
1030
1031/* Have PEERCRED socket option */
1032#undef HAVE_SO_PEERCRED
1033
1034/* define if you have ssize_t data type */
1035#undef HAVE_SSIZE_T
1036
1037/* Fields in struct sockaddr_storage */
1038#undef HAVE_SS_FAMILY_IN_SS
1039
1040/* Define to 1 if you have the `statfs' function. */
1041#undef HAVE_STATFS
1042
1043/* Define to 1 if you have the `statvfs' function. */
1044#undef HAVE_STATVFS
1045
1046/* Define to 1 if you have the <stddef.h> header file. */
1047#undef HAVE_STDDEF_H
1048
1049/* Define to 1 if you have the <stdint.h> header file. */
1050#undef HAVE_STDINT_H
1051
1052/* Define to 1 if you have the <stdlib.h> header file. */
1053#undef HAVE_STDLIB_H
1054
1055/* Define to 1 if you have the `strdup' function. */
1056#undef HAVE_STRDUP
1057
1058/* Define to 1 if you have the `strerror' function. */
1059#undef HAVE_STRERROR
1060
1061/* Define to 1 if you have the `strftime' function. */
1062#undef HAVE_STRFTIME
1063
1064/* Silly mkstemp() */
1065#undef HAVE_STRICT_MKSTEMP
1066
1067/* Define to 1 if you have the <strings.h> header file. */
1068#undef HAVE_STRINGS_H
1069
1070/* Define to 1 if you have the <string.h> header file. */
1071#undef HAVE_STRING_H
1072
1073/* Define to 1 if you have the `strlcat' function. */
1074#undef HAVE_STRLCAT
1075
1076/* Define to 1 if you have the `strlcpy' function. */
1077#undef HAVE_STRLCPY
1078
1079/* Define to 1 if you have the `strmode' function. */
1080#undef HAVE_STRMODE
1081
1082/* Define to 1 if you have the `strnlen' function. */
1083#undef HAVE_STRNLEN
1084
1085/* Define to 1 if you have the `strnvis' function. */
1086#undef HAVE_STRNVIS
1087
1088/* Define to 1 if you have the `strptime' function. */
1089#undef HAVE_STRPTIME
1090
1091/* Define to 1 if you have the `strsep' function. */
1092#undef HAVE_STRSEP
1093
1094/* Define to 1 if you have the `strtoll' function. */
1095#undef HAVE_STRTOLL
1096
1097/* Define to 1 if you have the `strtonum' function. */
1098#undef HAVE_STRTONUM
1099
1100/* Define to 1 if you have the `strtoul' function. */
1101#undef HAVE_STRTOUL
1102
1103/* Define to 1 if you have the `strtoull' function. */
1104#undef HAVE_STRTOULL
1105
1106/* define if you have struct addrinfo data type */
1107#undef HAVE_STRUCT_ADDRINFO
1108
1109/* define if you have struct in6_addr data type */
1110#undef HAVE_STRUCT_IN6_ADDR
1111
1112/* Define to 1 if `pw_change' is member of `struct passwd'. */
1113#undef HAVE_STRUCT_PASSWD_PW_CHANGE
1114
1115/* Define to 1 if `pw_class' is member of `struct passwd'. */
1116#undef HAVE_STRUCT_PASSWD_PW_CLASS
1117
1118/* Define to 1 if `pw_expire' is member of `struct passwd'. */
1119#undef HAVE_STRUCT_PASSWD_PW_EXPIRE
1120
1121/* Define to 1 if `pw_gecos' is member of `struct passwd'. */
1122#undef HAVE_STRUCT_PASSWD_PW_GECOS
1123
1124/* define if you have struct sockaddr_in6 data type */
1125#undef HAVE_STRUCT_SOCKADDR_IN6
1126
1127/* Define to 1 if `sin6_scope_id' is member of `struct sockaddr_in6'. */
1128#undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID
1129
1130/* define if you have struct sockaddr_storage data type */
1131#undef HAVE_STRUCT_SOCKADDR_STORAGE
1132
1133/* Define to 1 if `st_blksize' is member of `struct stat'. */
1134#undef HAVE_STRUCT_STAT_ST_BLKSIZE
1135
1136/* Define to 1 if the system has the type `struct timespec'. */
1137#undef HAVE_STRUCT_TIMESPEC
1138
1139/* define if you have struct timeval */
1140#undef HAVE_STRUCT_TIMEVAL
1141
1142/* Define to 1 if you have the `swap32' function. */
1143#undef HAVE_SWAP32
1144
1145/* Define to 1 if you have the `sysconf' function. */
1146#undef HAVE_SYSCONF
1147
1148/* Define if you have syslen in utmpx.h */
1149#undef HAVE_SYSLEN_IN_UTMPX
1150
1151/* Define to 1 if you have the <sys/audit.h> header file. */
1152#undef HAVE_SYS_AUDIT_H
1153
1154/* Define to 1 if you have the <sys/bitypes.h> header file. */
1155#undef HAVE_SYS_BITYPES_H
1156
1157/* Define to 1 if you have the <sys/bsdtty.h> header file. */
1158#undef HAVE_SYS_BSDTTY_H
1159
1160/* Define to 1 if you have the <sys/capability.h> header file. */
1161#undef HAVE_SYS_CAPABILITY_H
1162
1163/* Define to 1 if you have the <sys/cdefs.h> header file. */
1164#undef HAVE_SYS_CDEFS_H
1165
1166/* Define to 1 if you have the <sys/dir.h> header file. */
1167#undef HAVE_SYS_DIR_H
1168
1169/* Define if your system defines sys_errlist[] */
1170#undef HAVE_SYS_ERRLIST
1171
1172/* Define to 1 if you have the <sys/mman.h> header file. */
1173#undef HAVE_SYS_MMAN_H
1174
1175/* Define to 1 if you have the <sys/mount.h> header file. */
1176#undef HAVE_SYS_MOUNT_H
1177
1178/* Define to 1 if you have the <sys/ndir.h> header file. */
1179#undef HAVE_SYS_NDIR_H
1180
1181/* Define if your system defines sys_nerr */
1182#undef HAVE_SYS_NERR
1183
1184/* Define to 1 if you have the <sys/poll.h> header file. */
1185#undef HAVE_SYS_POLL_H
1186
1187/* Define to 1 if you have the <sys/prctl.h> header file. */
1188#undef HAVE_SYS_PRCTL_H
1189
1190/* Define to 1 if you have the <sys/pstat.h> header file. */
1191#undef HAVE_SYS_PSTAT_H
1192
1193/* Define to 1 if you have the <sys/ptms.h> header file. */
1194#undef HAVE_SYS_PTMS_H
1195
1196/* Define to 1 if you have the <sys/select.h> header file. */
1197#undef HAVE_SYS_SELECT_H
1198
1199/* Define to 1 if you have the <sys/statvfs.h> header file. */
1200#undef HAVE_SYS_STATVFS_H
1201
1202/* Define to 1 if you have the <sys/stat.h> header file. */
1203#undef HAVE_SYS_STAT_H
1204
1205/* Define to 1 if you have the <sys/stream.h> header file. */
1206#undef HAVE_SYS_STREAM_H
1207
1208/* Define to 1 if you have the <sys/stropts.h> header file. */
1209#undef HAVE_SYS_STROPTS_H
1210
1211/* Define to 1 if you have the <sys/strtio.h> header file. */
1212#undef HAVE_SYS_STRTIO_H
1213
1214/* Force use of sys/syslog.h on Ultrix */
1215#undef HAVE_SYS_SYSLOG_H
1216
1217/* Define to 1 if you have the <sys/sysmacros.h> header file. */
1218#undef HAVE_SYS_SYSMACROS_H
1219
1220/* Define to 1 if you have the <sys/timers.h> header file. */
1221#undef HAVE_SYS_TIMERS_H
1222
1223/* Define to 1 if you have the <sys/time.h> header file. */
1224#undef HAVE_SYS_TIME_H
1225
1226/* Define to 1 if you have the <sys/types.h> header file. */
1227#undef HAVE_SYS_TYPES_H
1228
1229/* Define to 1 if you have the <sys/un.h> header file. */
1230#undef HAVE_SYS_UN_H
1231
1232/* Define to 1 if you have the `tcgetpgrp' function. */
1233#undef HAVE_TCGETPGRP
1234
1235/* Define to 1 if you have the `tcsendbreak' function. */
1236#undef HAVE_TCSENDBREAK
1237
1238/* Define to 1 if you have the `time' function. */
1239#undef HAVE_TIME
1240
1241/* Define to 1 if you have the <time.h> header file. */
1242#undef HAVE_TIME_H
1243
1244/* Define if you have ut_time in utmp.h */
1245#undef HAVE_TIME_IN_UTMP
1246
1247/* Define if you have ut_time in utmpx.h */
1248#undef HAVE_TIME_IN_UTMPX
1249
1250/* Define to 1 if you have the `timingsafe_bcmp' function. */
1251#undef HAVE_TIMINGSAFE_BCMP
1252
1253/* Define to 1 if you have the <tmpdir.h> header file. */
1254#undef HAVE_TMPDIR_H
1255
1256/* Define to 1 if you have the `truncate' function. */
1257#undef HAVE_TRUNCATE
1258
1259/* Define to 1 if you have the <ttyent.h> header file. */
1260#undef HAVE_TTYENT_H
1261
1262/* Define if you have ut_tv in utmp.h */
1263#undef HAVE_TV_IN_UTMP
1264
1265/* Define if you have ut_tv in utmpx.h */
1266#undef HAVE_TV_IN_UTMPX
1267
1268/* Define if you have ut_type in utmp.h */
1269#undef HAVE_TYPE_IN_UTMP
1270
1271/* Define if you have ut_type in utmpx.h */
1272#undef HAVE_TYPE_IN_UTMPX
1273
1274/* Define to 1 if you have the <ucred.h> header file. */
1275#undef HAVE_UCRED_H
1276
1277/* Define to 1 if the system has the type `uintmax_t'. */
1278#undef HAVE_UINTMAX_T
1279
1280/* define if you have uintxx_t data type */
1281#undef HAVE_UINTXX_T
1282
1283/* Define to 1 if you have the <unistd.h> header file. */
1284#undef HAVE_UNISTD_H
1285
1286/* Define to 1 if you have the `unsetenv' function. */
1287#undef HAVE_UNSETENV
1288
1289/* Define to 1 if the system has the type `unsigned long long'. */
1290#undef HAVE_UNSIGNED_LONG_LONG
1291
1292/* Define to 1 if you have the `updwtmp' function. */
1293#undef HAVE_UPDWTMP
1294
1295/* Define to 1 if you have the `updwtmpx' function. */
1296#undef HAVE_UPDWTMPX
1297
1298/* Define to 1 if you have the <usersec.h> header file. */
1299#undef HAVE_USERSEC_H
1300
1301/* Define to 1 if you have the `user_from_uid' function. */
1302#undef HAVE_USER_FROM_UID
1303
1304/* Define to 1 if you have the `usleep' function. */
1305#undef HAVE_USLEEP
1306
1307/* Define to 1 if you have the <util.h> header file. */
1308#undef HAVE_UTIL_H
1309
1310/* Define to 1 if you have the `utimes' function. */
1311#undef HAVE_UTIMES
1312
1313/* Define to 1 if you have the <utime.h> header file. */
1314#undef HAVE_UTIME_H
1315
1316/* Define to 1 if you have the `utmpname' function. */
1317#undef HAVE_UTMPNAME
1318
1319/* Define to 1 if you have the `utmpxname' function. */
1320#undef HAVE_UTMPXNAME
1321
1322/* Define to 1 if you have the <utmpx.h> header file. */
1323#undef HAVE_UTMPX_H
1324
1325/* Define to 1 if you have the <utmp.h> header file. */
1326#undef HAVE_UTMP_H
1327
1328/* define if you have u_char data type */
1329#undef HAVE_U_CHAR
1330
1331/* define if you have u_int data type */
1332#undef HAVE_U_INT
1333
1334/* define if you have u_int64_t data type */
1335#undef HAVE_U_INT64_T
1336
1337/* define if you have u_intxx_t data type */
1338#undef HAVE_U_INTXX_T
1339
1340/* Define to 1 if you have the `vasprintf' function. */
1341#undef HAVE_VASPRINTF
1342
1343/* Define if va_copy exists */
1344#undef HAVE_VA_COPY
1345
1346/* Define to 1 if you have the <vis.h> header file. */
1347#undef HAVE_VIS_H
1348
1349/* Define to 1 if you have the `vsnprintf' function. */
1350#undef HAVE_VSNPRINTF
1351
1352/* Define to 1 if you have the `waitpid' function. */
1353#undef HAVE_WAITPID
1354
1355/* Define to 1 if you have the `_getlong' function. */
1356#undef HAVE__GETLONG
1357
1358/* Define to 1 if you have the `_getpty' function. */
1359#undef HAVE__GETPTY
1360
1361/* Define to 1 if you have the `_getshort' function. */
1362#undef HAVE__GETSHORT
1363
1364/* Define if you have struct __res_state _res as an extern */
1365#undef HAVE__RES_EXTERN
1366
1367/* Define to 1 if you have the `__b64_ntop' function. */
1368#undef HAVE___B64_NTOP
1369
1370/* Define to 1 if you have the `__b64_pton' function. */
1371#undef HAVE___B64_PTON
1372
1373/* Define if compiler implements __FUNCTION__ */
1374#undef HAVE___FUNCTION__
1375
1376/* Define if libc defines __progname */
1377#undef HAVE___PROGNAME
1378
1379/* Fields in struct sockaddr_storage */
1380#undef HAVE___SS_FAMILY_IN_SS
1381
1382/* Define if __va_copy exists */
1383#undef HAVE___VA_COPY
1384
1385/* Define if compiler implements __func__ */
1386#undef HAVE___func__
1387
1388/* Define this if you are using the Heimdal version of Kerberos V5 */
1389#undef HEIMDAL
1390
1391/* Define if you need to use IP address instead of hostname in $DISPLAY */
1392#undef IPADDR_IN_DISPLAY
1393
1394/* Detect IPv4 in IPv6 mapped addresses and treat as IPv4 */
1395#undef IPV4_IN_IPV6
1396
1397/* Define if your system choked on IP TOS setting */
1398#undef IP_TOS_IS_BROKEN
1399
1400/* Define if you want Kerberos 5 support */
1401#undef KRB5
1402
1403/* Define if pututxline updates lastlog too */
1404#undef LASTLOG_WRITE_PUTUTXLINE
1405
1406/* Define to whatever link() returns for "not supported" if it doesn't return
1407 EOPNOTSUPP. */
1408#undef LINK_OPNOTSUPP_ERRNO
1409
1410/* Adjust Linux out-of-memory killer */
1411#undef LINUX_OOM_ADJUST
1412
1413/* max value of long long calculated by configure */
1414#undef LLONG_MAX
1415
1416/* min value of long long calculated by configure */
1417#undef LLONG_MIN
1418
1419/* Account locked with pw(1) */
1420#undef LOCKED_PASSWD_PREFIX
1421
1422/* String used in /etc/passwd to denote locked account */
1423#undef LOCKED_PASSWD_STRING
1424
1425/* String used in /etc/passwd to denote locked account */
1426#undef LOCKED_PASSWD_SUBSTR
1427
1428/* Some versions of /bin/login need the TERM supplied on the commandline */
1429#undef LOGIN_NEEDS_TERM
1430
1431/* Some systems need a utmpx entry for /bin/login to work */
1432#undef LOGIN_NEEDS_UTMPX
1433
1434/* Define if your login program cannot handle end of options ("--") */
1435#undef LOGIN_NO_ENDOPT
1436
1437/* If your header files don't define LOGIN_PROGRAM, then use this (detected)
1438 from environment and PATH */
1439#undef LOGIN_PROGRAM_FALLBACK
1440
1441/* Set this to your mail directory if you do not have _PATH_MAILDIR */
1442#undef MAIL_DIRECTORY
1443
1444/* Need setpgrp to acquire controlling tty */
1445#undef NEED_SETPGRP
1446
1447/* compiler does not accept __attribute__ on return types */
1448#undef NO_ATTRIBUTE_ON_RETURN_TYPE
1449
1450/* Define if the concept of ports only accessible to superusers isn't known */
1451#undef NO_IPPORT_RESERVED_CONCEPT
1452
1453/* Define if you don't want to use lastlog in session.c */
1454#undef NO_SSH_LASTLOG
1455
1456/* Define to disable UID restoration test */
1457#undef NO_UID_RESTORATION_TEST
1458
1459/* Define if X11 doesn't support AF_UNIX sockets on that system */
1460#undef NO_X11_UNIX_SOCKETS
1461
1462/* Define if EVP_DigestUpdate returns void */
1463#undef OPENSSL_EVP_DIGESTUPDATE_VOID
1464
1465/* OpenSSL has ECC */
1466#undef OPENSSL_HAS_ECC
1467
1468/* libcrypto has NID_X9_62_prime256v1 */
1469#undef OPENSSL_HAS_NISTP256
1470
1471/* libcrypto has NID_secp384r1 */
1472#undef OPENSSL_HAS_NISTP384
1473
1474/* libcrypto has NID_secp521r1 */
1475#undef OPENSSL_HAS_NISTP521
1476
1477/* libcrypto has EVP AES CTR */
1478#undef OPENSSL_HAVE_EVPCTR
1479
1480/* libcrypto has EVP AES GCM */
1481#undef OPENSSL_HAVE_EVPGCM
1482
1483/* libcrypto is missing AES 192 and 256 bit functions */
1484#undef OPENSSL_LOBOTOMISED_AES
1485
1486/* Define if you want the OpenSSL internally seeded PRNG only */
1487#undef OPENSSL_PRNG_ONLY
1488
1489/* Define to the address where bug reports for this package should be sent. */
1490#undef PACKAGE_BUGREPORT
1491
1492/* Define to the full name of this package. */
1493#undef PACKAGE_NAME
1494
1495/* Define to the full name and version of this package. */
1496#undef PACKAGE_STRING
1497
1498/* Define to the one symbol short name of this package. */
1499#undef PACKAGE_TARNAME
1500
1501/* Define to the version of this package. */
1502#undef PACKAGE_VERSION
1503
1504/* Define if you are using Solaris-derived PAM which passes pam_messages to
1505 the conversation function with an extra level of indirection */
1506#undef PAM_SUN_CODEBASE
1507
1508/* Work around problematic Linux PAM modules handling of PAM_TTY */
1509#undef PAM_TTY_KLUDGE
1510
1511/* must supply username to passwd */
1512#undef PASSWD_NEEDS_USERNAME
1513
1514/* System dirs owned by bin (uid 2) */
1515#undef PLATFORM_SYS_DIR_UID
1516
1517/* Port number of PRNGD/EGD random number socket */
1518#undef PRNGD_PORT
1519
1520/* Location of PRNGD/EGD random number socket */
1521#undef PRNGD_SOCKET
1522
1523/* read(1) can return 0 for a non-closed fd */
1524#undef PTY_ZEROREAD
1525
1526/* Sandbox using capsicum */
1527#undef SANDBOX_CAPSICUM
1528
1529/* Sandbox using Darwin sandbox_init(3) */
1530#undef SANDBOX_DARWIN
1531
1532/* no privsep sandboxing */
1533#undef SANDBOX_NULL
1534
1535/* Sandbox using pledge(2) */
1536#undef SANDBOX_PLEDGE
1537
1538/* Sandbox using setrlimit(2) */
1539#undef SANDBOX_RLIMIT
1540
1541/* Sandbox using seccomp filter */
1542#undef SANDBOX_SECCOMP_FILTER
1543
1544/* setrlimit RLIMIT_FSIZE works */
1545#undef SANDBOX_SKIP_RLIMIT_FSIZE
1546
1547/* define if setrlimit RLIMIT_NOFILE breaks things */
1548#undef SANDBOX_SKIP_RLIMIT_NOFILE
1549
1550/* Sandbox using Solaris/Illumos privileges */
1551#undef SANDBOX_SOLARIS
1552
1553/* Sandbox using systrace(4) */
1554#undef SANDBOX_SYSTRACE
1555
1556/* Specify the system call convention in use */
1557#undef SECCOMP_AUDIT_ARCH
1558
1559/* Define if your platform breaks doing a seteuid before a setuid */
1560#undef SETEUID_BREAKS_SETUID
1561
1562/* The size of `int', as computed by sizeof. */
1563#undef SIZEOF_INT
1564
1565/* The size of `long int', as computed by sizeof. */
1566#undef SIZEOF_LONG_INT
1567
1568/* The size of `long long int', as computed by sizeof. */
1569#undef SIZEOF_LONG_LONG_INT
1570
1571/* The size of `short int', as computed by sizeof. */
1572#undef SIZEOF_SHORT_INT
1573
1574/* Define if you want S/Key support */
1575#undef SKEY
1576
1577/* Define if your skeychallenge() function takes 4 arguments (NetBSD) */
1578#undef SKEYCHALLENGE_4ARG
1579
1580/* Define as const if snprintf() can declare const char *fmt */
1581#undef SNPRINTF_CONST
1582
1583/* Define to a Set Process Title type if your system is supported by
1584 bsd-setproctitle.c */
1585#undef SPT_TYPE
1586
1587/* Define if sshd somehow reacquires a controlling TTY after setsid() */
1588#undef SSHD_ACQUIRES_CTTY
1589
1590/* Define if pam_chauthtok wants real uid set to the unpriv'ed user */
1591#undef SSHPAM_CHAUTHTOK_NEEDS_RUID
1592
1593/* Use audit debugging module */
1594#undef SSH_AUDIT_EVENTS
1595
1596/* Windows is sensitive to read buffer size */
1597#undef SSH_IOBUFSZ
1598
1599/* non-privileged user for privilege separation */
1600#undef SSH_PRIVSEP_USER
1601
1602/* Use tunnel device compatibility to OpenBSD */
1603#undef SSH_TUN_COMPAT_AF
1604
1605/* Open tunnel devices the FreeBSD way */
1606#undef SSH_TUN_FREEBSD
1607
1608/* Open tunnel devices the Linux tun/tap way */
1609#undef SSH_TUN_LINUX
1610
1611/* No layer 2 tunnel support */
1612#undef SSH_TUN_NO_L2
1613
1614/* Open tunnel devices the OpenBSD way */
1615#undef SSH_TUN_OPENBSD
1616
1617/* Prepend the address family to IP tunnel traffic */
1618#undef SSH_TUN_PREPEND_AF
1619
1620/* Define to 1 if you have the ANSI C header files. */
1621#undef STDC_HEADERS
1622
1623/* Define if you want a different $PATH for the superuser */
1624#undef SUPERUSER_PATH
1625
1626/* syslog_r function is safe to use in in a signal handler */
1627#undef SYSLOG_R_SAFE_IN_SIGHAND
1628
1629/* Support passwords > 8 chars */
1630#undef UNIXWARE_LONG_PASSWORDS
1631
1632/* Specify default $PATH */
1633#undef USER_PATH
1634
1635/* Define this if you want to use libkafs' AFS support */
1636#undef USE_AFS
1637
1638/* Use BSM audit module */
1639#undef USE_BSM_AUDIT
1640
1641/* Use btmp to log bad logins */
1642#undef USE_BTMP
1643
1644/* Use libedit for sftp */
1645#undef USE_LIBEDIT
1646
1647/* Use Linux audit module */
1648#undef USE_LINUX_AUDIT
1649
1650/* Enable OpenSSL engine support */
1651#undef USE_OPENSSL_ENGINE
1652
1653/* Define if you want to enable PAM support */
1654#undef USE_PAM
1655
1656/* Use PIPES instead of a socketpair() */
1657#undef USE_PIPES
1658
1659/* Define if you have Solaris privileges */
1660#undef USE_SOLARIS_PRIVS
1661
1662/* Define if you have Solaris process contracts */
1663#undef USE_SOLARIS_PROCESS_CONTRACTS
1664
1665/* Define if you have Solaris projects */
1666#undef USE_SOLARIS_PROJECTS
1667
1668/* Define if you shouldn't strip 'tty' from your ttyname in [uw]tmp */
1669#undef WITH_ABBREV_NO_TTY
1670
1671/* Define if you want to enable AIX4's authenticate function */
1672#undef WITH_AIXAUTHENTICATE
1673
1674/* Define if you have/want arrays (cluster-wide session managment, not C
1675 arrays) */
1676#undef WITH_IRIX_ARRAY
1677
1678/* Define if you want IRIX audit trails */
1679#undef WITH_IRIX_AUDIT
1680
1681/* Define if you want IRIX kernel jobs */
1682#undef WITH_IRIX_JOBS
1683
1684/* Define if you want IRIX project management */
1685#undef WITH_IRIX_PROJECT
1686
1687/* use libcrypto for cryptography */
1688#undef WITH_OPENSSL
1689
1690/* Define if you want SELinux support. */
1691#undef WITH_SELINUX
1692
1693/* include SSH protocol version 1 support */
1694#undef WITH_SSH1
1695
1696/* Define to 1 if your processor stores words with the most significant byte
1697 first (like Motorola and SPARC, unlike Intel and VAX). */
1698#undef WORDS_BIGENDIAN
1699
1700/* Define if xauth is found in your path */
1701#undef XAUTH_PATH
1702
1703/* Number of bits in a file offset, on hosts where this is settable. */
1704#undef _FILE_OFFSET_BITS
1705
1706/* Define for large files, on AIX-style hosts. */
1707#undef _LARGE_FILES
1708
1709/* log for bad login attempts */
1710#undef _PATH_BTMP
1711
1712/* Full path of your "passwd" program */
1713#undef _PATH_PASSWD_PROG
1714
1715/* Specify location of ssh.pid */
1716#undef _PATH_SSH_PIDDIR
1717
1718/* Define if we don't have struct __res_state in resolv.h */
1719#undef __res_state
1720
1721/* Define to `__inline__' or `__inline' if that's what the C compiler
1722 calls it, or to nothing if 'inline' is not supported under any name. */
1723#ifndef __cplusplus
1724#undef inline
1725#endif
1726
1727/* type to use in place of socklen_t if not defined */
1728#undef socklen_t
diff --git a/configure b/configure
new file mode 100755
index 000000000..2a46ba966
--- /dev/null
+++ b/configure
@@ -0,0 +1,37262 @@
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
17DUALCASE=1; export DUALCASE # for MKS sh
18if 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
25else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if 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
54fi
55
56# Support unset when possible.
57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59else
60 as_unset=false
61fi
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.)
69as_nl='
70'
71IFS=" "" $as_nl"
72
73# Find who we are. Look in the path if we contain no directory separator.
74case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77for as_dir in $PATH
78do
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
83IFS=$as_save_IFS
84
85 ;;
86esac
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.
89if test "x$as_myself" = x; then
90 as_myself=$0
91fi
92if 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; }
95fi
96
97# Work around bugs in pre-3.0 UWIN ksh.
98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for 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
110do
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
116done
117
118# Required to use basename.
119if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122else
123 as_expr=false
124fi
125
126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128else
129 as_basename=false
130fi
131
132
133# Name of the executable.
134as_me=`$as_basename -- "$0" ||
135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138echo 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
157if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160else
161 as_have_required=no
162fi
163
164 if test $as_have_required = yes && (eval ":
165(as_func_return () {
166 (exit \$1)
167}
168as_func_success () {
169 as_func_return 0
170}
171as_func_failure () {
172 as_func_return 1
173}
174as_func_ret_success () {
175 return 0
176}
177as_func_ret_failure () {
178 return 1
179}
180
181exitcode=0
182if as_func_success; then
183 :
184else
185 exitcode=1
186 echo as_func_success failed.
187fi
188
189if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195 :
196else
197 exitcode=1
198 echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
204fi
205
206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 :
208else
209 exitcode=1
210 echo positional parameters were not saved.
211fi
212
213test \$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 :
222else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226do
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
235done
236IFS=$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
243if 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
250else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253esac
254
255fi
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
264if 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
271else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274esac
275
276fi
277
278
279:
280(as_func_return () {
281 (exit $1)
282}
283as_func_success () {
284 as_func_return 0
285}
286as_func_failure () {
287 as_func_return 1
288}
289as_func_ret_success () {
290 return 0
291}
292as_func_ret_failure () {
293 return 1
294}
295
296exitcode=0
297if as_func_success; then
298 :
299else
300 exitcode=1
301 echo as_func_success failed.
302fi
303
304if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310 :
311else
312 exitcode=1
313 echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322 :
323else
324 exitcode=1
325 echo positional parameters were not saved.
326fi
327
328test $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
339fi
340
341fi
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+"$@"}
351fi
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; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370 (exit \$1)
371}
372as_func_success () {
373 as_func_return 0
374}
375as_func_failure () {
376 as_func_return 1
377}
378as_func_ret_success () {
379 return 0
380}
381as_func_ret_failure () {
382 return 1
383}
384
385exitcode=0
386if as_func_success; then
387 :
388else
389 exitcode=1
390 echo as_func_success failed.
391fi
392
393if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399 :
400else
401 exitcode=1
402 echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
408fi
409
410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 :
412else
413 exitcode=1
414 echo positional parameters were not saved.
415fi
416
417test \$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
469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471else
472 as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `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';;
484esac
485
486if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489else
490 as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
494if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
499fi
500echo >conf$$.file
501if 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'
509elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511else
512 as_ln_s='cp -p'
513fi
514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
516
517if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
522fi
523
524if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526else
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 '
544fi
545as_executable_p=$as_test_x
546
547# Sed expression to map a string onto a valid CPP name.
548as_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.
551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555exec 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.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
573SHELL=${CONFIG_SHELL-/bin/sh}
574
575# Identity of this package.
576PACKAGE_NAME='OpenSSH'
577PACKAGE_TARNAME='openssh'
578PACKAGE_VERSION='Portable'
579PACKAGE_STRING='OpenSSH Portable'
580PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
581
582ac_unique_file="ssh.c"
583# Factoring default headers for most tests.
584ac_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
619ac_subst_vars='SHELL
620PATH_SEPARATOR
621PACKAGE_NAME
622PACKAGE_TARNAME
623PACKAGE_VERSION
624PACKAGE_STRING
625PACKAGE_BUGREPORT
626exec_prefix
627prefix
628program_transform_name
629bindir
630sbindir
631libexecdir
632datarootdir
633datadir
634sysconfdir
635sharedstatedir
636localstatedir
637includedir
638oldincludedir
639docdir
640infodir
641htmldir
642dvidir
643pdfdir
644psdir
645libdir
646localedir
647mandir
648DEFS
649ECHO_C
650ECHO_N
651ECHO_T
652LIBS
653build_alias
654host_alias
655target_alias
656CC
657CFLAGS
658LDFLAGS
659CPPFLAGS
660ac_ct_CC
661EXEEXT
662OBJEXT
663build
664build_cpu
665build_vendor
666build_os
667host
668host_cpu
669host_vendor
670host_os
671CPP
672GREP
673EGREP
674AWK
675RANLIB
676INSTALL_PROGRAM
677INSTALL_SCRIPT
678INSTALL_DATA
679AR
680ac_ct_AR
681CAT
682KILL
683PERL
684SED
685ENT
686TEST_MINUS_S_SH
687SH
688GROFF
689NROFF
690MANDOC
691TEST_SHELL
692MANFMT
693PATH_GROUPADD_PROG
694PATH_USERADD_PROG
695MAKE_PACKAGE_SUPPORTED
696STARTUP_SCRIPT_SHELL
697LOGIN_PROGRAM_FALLBACK
698PATH_PASSWD_PROG
699LD
700PKGCONFIG
701LIBEDIT
702TEST_SSH_ECC
703COMMENT_OUT_ECC
704SSH_PRIVSEP_USER
705SSHLIBS
706SSHDLIBS
707KRB5CONF
708GSSLIBS
709K5LIBS
710PRIVSEP_PATH
711xauth_path
712STRIP_OPT
713XAUTH_PATH
714MANTYPE
715mansubdir
716user_path
717piddir
718TEST_SSH_IPV6
719TEST_MALLOC_OPTIONS
720UNSUPPORTED_ALGORITHMS
721LIBOBJS
722LTLIBOBJS'
723ac_subst_files=''
724 ac_precious_vars='build_alias
725host_alias
726target_alias
727CC
728CFLAGS
729LDFLAGS
730LIBS
731CPPFLAGS
732CPP'
733
734
735# Initialize some variables set by options.
736ac_init_help=
737ac_init_version=false
738# The variables have the same names as the options, with
739# dashes changed to underlines.
740cache_file=/dev/null
741exec_prefix=NONE
742no_create=
743no_recursion=
744prefix=NONE
745program_prefix=NONE
746program_suffix=NONE
747program_transform_name=s,x,x,
748silent=
749site=
750srcdir=
751verbose=
752x_includes=NONE
753x_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.)
761bindir='${exec_prefix}/bin'
762sbindir='${exec_prefix}/sbin'
763libexecdir='${exec_prefix}/libexec'
764datarootdir='${prefix}/share'
765datadir='${datarootdir}'
766sysconfdir='${prefix}/etc'
767sharedstatedir='${prefix}/com'
768localstatedir='${prefix}/var'
769includedir='${prefix}/include'
770oldincludedir='/usr/include'
771docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
772infodir='${datarootdir}/info'
773htmldir='${docdir}'
774dvidir='${docdir}'
775pdfdir='${docdir}'
776psdir='${docdir}'
777libdir='${exec_prefix}/lib'
778localedir='${datarootdir}/locale'
779mandir='${datarootdir}/man'
780
781ac_prev=
782ac_dashdash=
783for ac_option
784do
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
1088Try \`$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
1110done
1111
1112if 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; }; }
1116fi
1117
1118# Be sure to have absolute directory names.
1119for 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
1123do
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; }; }
1131done
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.
1136build=$build_alias
1137host=$host_alias
1138target=$target_alias
1139
1140# FIXME: To remove some day.
1141if 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
1149fi
1150
1151ac_tool_prefix=
1152test -n "$host_alias" && ac_tool_prefix=$host_alias-
1153
1154test "$silent" = yes && exec 6>/dev/null
1155
1156
1157ac_pwd=`pwd` && test -n "$ac_pwd" &&
1158ac_ls_di=`ls -di .` &&
1159ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1160 { echo "$as_me: error: Working directory cannot be determined" >&2
1161 { (exit 1); exit 1; }; }
1162test "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.
1168if 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 ||
1176echo 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
1198else
1199 ac_srcdir_defaulted=no
1200fi
1201if 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; }; }
1205fi
1206ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1207ac_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=.
1212if test "$ac_abs_confdir" = "$ac_pwd"; then
1213 srcdir=.
1214fi
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.
1218case $srcdir in
1219*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1220esac
1221for 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}
1226done
1227
1228#
1229# Report the --help message.
1230#
1231if 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
1237Usage: $0 [OPTION]... [VAR=VALUE]...
1238
1239To assign environment variables (e.g., CC, CFLAGS...), specify them as
1240VAR=VALUE. See below for descriptions of some of the useful variables.
1241
1242Defaults for the options are specified in brackets.
1243
1244Configuration:
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
1255Installation 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
1261By default, \`make install' will install all the files in
1262\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1263an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1264for instance \`--prefix=\$HOME'.
1265
1266For better control, use the options below.
1267
1268Fine 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
1292System 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
1296fi
1297
1298if 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
1304Optional 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
1319Optional 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 --with-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-solaris-privs Enable Solaris/Illumos privileges (experimental)
1335 --with-osfsia Enable Digital Unix SIA
1336 --with-zlib=PATH Use zlib in PATH
1337 --without-zlib-version-check Disable zlib version check
1338 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1339 --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH)
1340 --with-libedit[=PATH] Enable libedit support for sftp
1341 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1342 --with-pie Build Position Independent Executables if possible
1343 --with-ssl-dir=PATH Specify path to OpenSSL installation
1344 --without-openssl-header-check Disable OpenSSL version consistency check
1345 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1346 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1347 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1348 --with-pam Enable PAM support
1349 --with-privsep-user=user Specify non-privileged user for privilege separation
1350 --with-sandbox=style Specify privilege separation sandbox (no, capsicum, darwin, rlimit, seccomp_filter, systrace, pledge)
1351 --with-selinux Enable SELinux support
1352 --with-kerberos5=PATH Enable Kerberos 5 support
1353 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1354 --with-xauth=PATH Specify path to xauth program
1355 --with-maildir=/path/to/mail Specify your system mail directory
1356 --with-mantype=man|cat|doc Set man page type
1357 --with-md5-passwords Enable use of MD5 passwords
1358 --without-shadow Disable shadow password support
1359 --with-ipaddr-display Use ip address instead of hostname in $DISPLAY
1360 --with-default-path= Specify default $PATH environment for server
1361 --with-superuser-path= Specify different path for super-user
1362 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1363 --with-bsd-auth Enable BSD auth support
1364 --with-pid-dir=PATH Specify location of ssh.pid file
1365 --with-lastlog=FILE|DIR specify lastlog location common locations
1366
1367Some influential environment variables:
1368 CC C compiler command
1369 CFLAGS C compiler flags
1370 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1371 nonstandard directory <lib dir>
1372 LIBS libraries to pass to the linker, e.g. -l<library>
1373 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1374 you have headers in a nonstandard directory <include dir>
1375 CPP C preprocessor
1376
1377Use these variables to override the choices made by `configure' or to help
1378it to find libraries and programs with nonstandard names/locations.
1379
1380Report bugs to <openssh-unix-dev@mindrot.org>.
1381_ACEOF
1382ac_status=$?
1383fi
1384
1385if test "$ac_init_help" = "recursive"; then
1386 # If there are subdirs, report their specific --help.
1387 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1388 test -d "$ac_dir" || continue
1389 ac_builddir=.
1390
1391case "$ac_dir" in
1392.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393*)
1394 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1395 # A ".." for each directory in $ac_dir_suffix.
1396 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1397 case $ac_top_builddir_sub in
1398 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1400 esac ;;
1401esac
1402ac_abs_top_builddir=$ac_pwd
1403ac_abs_builddir=$ac_pwd$ac_dir_suffix
1404# for backward compatibility:
1405ac_top_builddir=$ac_top_build_prefix
1406
1407case $srcdir in
1408 .) # We are building in place.
1409 ac_srcdir=.
1410 ac_top_srcdir=$ac_top_builddir_sub
1411 ac_abs_top_srcdir=$ac_pwd ;;
1412 [\\/]* | ?:[\\/]* ) # Absolute name.
1413 ac_srcdir=$srcdir$ac_dir_suffix;
1414 ac_top_srcdir=$srcdir
1415 ac_abs_top_srcdir=$srcdir ;;
1416 *) # Relative name.
1417 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1418 ac_top_srcdir=$ac_top_build_prefix$srcdir
1419 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1420esac
1421ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1422
1423 cd "$ac_dir" || { ac_status=$?; continue; }
1424 # Check for guested configure.
1425 if test -f "$ac_srcdir/configure.gnu"; then
1426 echo &&
1427 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1428 elif test -f "$ac_srcdir/configure"; then
1429 echo &&
1430 $SHELL "$ac_srcdir/configure" --help=recursive
1431 else
1432 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1433 fi || ac_status=$?
1434 cd "$ac_pwd" || { ac_status=$?; break; }
1435 done
1436fi
1437
1438test -n "$ac_init_help" && exit $ac_status
1439if $ac_init_version; then
1440 cat <<\_ACEOF
1441OpenSSH configure Portable
1442generated by GNU Autoconf 2.61
1443
1444Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14452002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1446This configure script is free software; the Free Software Foundation
1447gives unlimited permission to copy, distribute and modify it.
1448_ACEOF
1449 exit
1450fi
1451cat >config.log <<_ACEOF
1452This file contains any messages produced by compilers while
1453running configure, to aid debugging if configure makes a mistake.
1454
1455It was created by OpenSSH $as_me Portable, which was
1456generated by GNU Autoconf 2.61. Invocation command line was
1457
1458 $ $0 $@
1459
1460_ACEOF
1461exec 5>>config.log
1462{
1463cat <<_ASUNAME
1464## --------- ##
1465## Platform. ##
1466## --------- ##
1467
1468hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1469uname -m = `(uname -m) 2>/dev/null || echo unknown`
1470uname -r = `(uname -r) 2>/dev/null || echo unknown`
1471uname -s = `(uname -s) 2>/dev/null || echo unknown`
1472uname -v = `(uname -v) 2>/dev/null || echo unknown`
1473
1474/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1475/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1476
1477/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1478/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1479/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1480/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1481/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1482/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1483/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1484
1485_ASUNAME
1486
1487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488for as_dir in $PATH
1489do
1490 IFS=$as_save_IFS
1491 test -z "$as_dir" && as_dir=.
1492 echo "PATH: $as_dir"
1493done
1494IFS=$as_save_IFS
1495
1496} >&5
1497
1498cat >&5 <<_ACEOF
1499
1500
1501## ----------- ##
1502## Core tests. ##
1503## ----------- ##
1504
1505_ACEOF
1506
1507
1508# Keep a trace of the command line.
1509# Strip out --no-create and --no-recursion so they do not pile up.
1510# Strip out --silent because we don't want to record it for future runs.
1511# Also quote any args containing shell meta-characters.
1512# Make two passes to allow for proper duplicate-argument suppression.
1513ac_configure_args=
1514ac_configure_args0=
1515ac_configure_args1=
1516ac_must_keep_next=false
1517for ac_pass in 1 2
1518do
1519 for ac_arg
1520 do
1521 case $ac_arg in
1522 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1524 | -silent | --silent | --silen | --sile | --sil)
1525 continue ;;
1526 *\'*)
1527 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1528 esac
1529 case $ac_pass in
1530 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1531 2)
1532 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1533 if test $ac_must_keep_next = true; then
1534 ac_must_keep_next=false # Got value, back to normal.
1535 else
1536 case $ac_arg in
1537 *=* | --config-cache | -C | -disable-* | --disable-* \
1538 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1539 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1540 | -with-* | --with-* | -without-* | --without-* | --x)
1541 case "$ac_configure_args0 " in
1542 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1543 esac
1544 ;;
1545 -* ) ac_must_keep_next=true ;;
1546 esac
1547 fi
1548 ac_configure_args="$ac_configure_args '$ac_arg'"
1549 ;;
1550 esac
1551 done
1552done
1553$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1554$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1555
1556# When interrupted or exit'd, cleanup temporary files, and complete
1557# config.log. We remove comments because anyway the quotes in there
1558# would cause problems or look ugly.
1559# WARNING: Use '\'' to represent an apostrophe within the trap.
1560# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1561trap 'exit_status=$?
1562 # Save into config.log some information that might help in debugging.
1563 {
1564 echo
1565
1566 cat <<\_ASBOX
1567## ---------------- ##
1568## Cache variables. ##
1569## ---------------- ##
1570_ASBOX
1571 echo
1572 # The following way of writing the cache mishandles newlines in values,
1573(
1574 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1575 eval ac_val=\$$ac_var
1576 case $ac_val in #(
1577 *${as_nl}*)
1578 case $ac_var in #(
1579 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1580echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1581 esac
1582 case $ac_var in #(
1583 _ | IFS | as_nl) ;; #(
1584 *) $as_unset $ac_var ;;
1585 esac ;;
1586 esac
1587 done
1588 (set) 2>&1 |
1589 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1590 *${as_nl}ac_space=\ *)
1591 sed -n \
1592 "s/'\''/'\''\\\\'\'''\''/g;
1593 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1594 ;; #(
1595 *)
1596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1597 ;;
1598 esac |
1599 sort
1600)
1601 echo
1602
1603 cat <<\_ASBOX
1604## ----------------- ##
1605## Output variables. ##
1606## ----------------- ##
1607_ASBOX
1608 echo
1609 for ac_var in $ac_subst_vars
1610 do
1611 eval ac_val=\$$ac_var
1612 case $ac_val in
1613 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1614 esac
1615 echo "$ac_var='\''$ac_val'\''"
1616 done | sort
1617 echo
1618
1619 if test -n "$ac_subst_files"; then
1620 cat <<\_ASBOX
1621## ------------------- ##
1622## File substitutions. ##
1623## ------------------- ##
1624_ASBOX
1625 echo
1626 for ac_var in $ac_subst_files
1627 do
1628 eval ac_val=\$$ac_var
1629 case $ac_val in
1630 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1631 esac
1632 echo "$ac_var='\''$ac_val'\''"
1633 done | sort
1634 echo
1635 fi
1636
1637 if test -s confdefs.h; then
1638 cat <<\_ASBOX
1639## ----------- ##
1640## confdefs.h. ##
1641## ----------- ##
1642_ASBOX
1643 echo
1644 cat confdefs.h
1645 echo
1646 fi
1647 test "$ac_signal" != 0 &&
1648 echo "$as_me: caught signal $ac_signal"
1649 echo "$as_me: exit $exit_status"
1650 } >&5
1651 rm -f core *.core core.conftest.* &&
1652 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1653 exit $exit_status
1654' 0
1655for ac_signal in 1 2 13 15; do
1656 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1657done
1658ac_signal=0
1659
1660# confdefs.h avoids OS command line length limits that DEFS can exceed.
1661rm -f -r conftest* confdefs.h
1662
1663# Predefined preprocessor variables.
1664
1665cat >>confdefs.h <<_ACEOF
1666#define PACKAGE_NAME "$PACKAGE_NAME"
1667_ACEOF
1668
1669
1670cat >>confdefs.h <<_ACEOF
1671#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1672_ACEOF
1673
1674
1675cat >>confdefs.h <<_ACEOF
1676#define PACKAGE_VERSION "$PACKAGE_VERSION"
1677_ACEOF
1678
1679
1680cat >>confdefs.h <<_ACEOF
1681#define PACKAGE_STRING "$PACKAGE_STRING"
1682_ACEOF
1683
1684
1685cat >>confdefs.h <<_ACEOF
1686#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1687_ACEOF
1688
1689
1690# Let the site file select an alternate cache file if it wants to.
1691# Prefer explicitly selected file to automatically selected ones.
1692if test -n "$CONFIG_SITE"; then
1693 set x "$CONFIG_SITE"
1694elif test "x$prefix" != xNONE; then
1695 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1696else
1697 set x "$ac_default_prefix/share/config.site" \
1698 "$ac_default_prefix/etc/config.site"
1699fi
1700shift
1701for ac_site_file
1702do
1703 if test -r "$ac_site_file"; then
1704 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1705echo "$as_me: loading site script $ac_site_file" >&6;}
1706 sed 's/^/| /' "$ac_site_file" >&5
1707 . "$ac_site_file"
1708 fi
1709done
1710
1711if test -r "$cache_file"; then
1712 # Some versions of bash will fail to source /dev/null (special
1713 # files actually), so we avoid doing that.
1714 if test -f "$cache_file"; then
1715 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1716echo "$as_me: loading cache $cache_file" >&6;}
1717 case $cache_file in
1718 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1719 *) . "./$cache_file";;
1720 esac
1721 fi
1722else
1723 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1724echo "$as_me: creating cache $cache_file" >&6;}
1725 >$cache_file
1726fi
1727
1728# Check that the precious variables saved in the cache have kept the same
1729# value.
1730ac_cache_corrupted=false
1731for ac_var in $ac_precious_vars; do
1732 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1733 eval ac_new_set=\$ac_env_${ac_var}_set
1734 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1735 eval ac_new_val=\$ac_env_${ac_var}_value
1736 case $ac_old_set,$ac_new_set in
1737 set,)
1738 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1739echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1740 ac_cache_corrupted=: ;;
1741 ,set)
1742 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1743echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1744 ac_cache_corrupted=: ;;
1745 ,);;
1746 *)
1747 if test "x$ac_old_val" != "x$ac_new_val"; then
1748 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1749echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1750 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1751echo "$as_me: former value: $ac_old_val" >&2;}
1752 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1753echo "$as_me: current value: $ac_new_val" >&2;}
1754 ac_cache_corrupted=:
1755 fi;;
1756 esac
1757 # Pass precious variables to config.status.
1758 if test "$ac_new_set" = set; then
1759 case $ac_new_val in
1760 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1761 *) ac_arg=$ac_var=$ac_new_val ;;
1762 esac
1763 case " $ac_configure_args " in
1764 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1765 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1766 esac
1767 fi
1768done
1769if $ac_cache_corrupted; then
1770 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1771echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1772 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1773echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1774 { (exit 1); exit 1; }; }
1775fi
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
1801ac_ext=c
1802ac_cpp='$CPP $CPPFLAGS'
1803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805ac_compiler_gnu=$ac_cv_c_compiler_gnu
1806
1807
1808
1809
1810ac_ext=c
1811ac_cpp='$CPP $CPPFLAGS'
1812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1814ac_compiler_gnu=$ac_cv_c_compiler_gnu
1815
1816
1817ac_config_headers="$ac_config_headers config.h"
1818
1819ac_ext=c
1820ac_cpp='$CPP $CPPFLAGS'
1821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823ac_compiler_gnu=$ac_cv_c_compiler_gnu
1824if test -n "$ac_tool_prefix"; then
1825 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1826set dummy ${ac_tool_prefix}gcc; ac_word=$2
1827{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1829if test "${ac_cv_prog_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831else
1832 if test -n "$CC"; then
1833 ac_cv_prog_CC="$CC" # Let the user override the test.
1834else
1835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836for as_dir in $PATH
1837do
1838 IFS=$as_save_IFS
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1842 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 break 2
1845 fi
1846done
1847done
1848IFS=$as_save_IFS
1849
1850fi
1851fi
1852CC=$ac_cv_prog_CC
1853if test -n "$CC"; then
1854 { echo "$as_me:$LINENO: result: $CC" >&5
1855echo "${ECHO_T}$CC" >&6; }
1856else
1857 { echo "$as_me:$LINENO: result: no" >&5
1858echo "${ECHO_T}no" >&6; }
1859fi
1860
1861
1862fi
1863if test -z "$ac_cv_prog_CC"; then
1864 ac_ct_CC=$CC
1865 # Extract the first word of "gcc", so it can be a program name with args.
1866set dummy gcc; ac_word=$2
1867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1869if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1871else
1872 if test -n "$ac_ct_CC"; then
1873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1874else
1875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876for as_dir in $PATH
1877do
1878 IFS=$as_save_IFS
1879 test -z "$as_dir" && as_dir=.
1880 for ac_exec_ext in '' $ac_executable_extensions; do
1881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1882 ac_cv_prog_ac_ct_CC="gcc"
1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 break 2
1885 fi
1886done
1887done
1888IFS=$as_save_IFS
1889
1890fi
1891fi
1892ac_ct_CC=$ac_cv_prog_ac_ct_CC
1893if test -n "$ac_ct_CC"; then
1894 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1895echo "${ECHO_T}$ac_ct_CC" >&6; }
1896else
1897 { echo "$as_me:$LINENO: result: no" >&5
1898echo "${ECHO_T}no" >&6; }
1899fi
1900
1901 if test "x$ac_ct_CC" = x; then
1902 CC=""
1903 else
1904 case $cross_compiling:$ac_tool_warned in
1905yes:)
1906{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1907whose name does not start with the host triplet. If you think this
1908configuration is useful to you, please write to autoconf@gnu.org." >&5
1909echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1910whose name does not start with the host triplet. If you think this
1911configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1912ac_tool_warned=yes ;;
1913esac
1914 CC=$ac_ct_CC
1915 fi
1916else
1917 CC="$ac_cv_prog_CC"
1918fi
1919
1920if test -z "$CC"; then
1921 if test -n "$ac_tool_prefix"; then
1922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1923set dummy ${ac_tool_prefix}cc; ac_word=$2
1924{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1926if test "${ac_cv_prog_CC+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928else
1929 if test -n "$CC"; then
1930 ac_cv_prog_CC="$CC" # Let the user override the test.
1931else
1932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933for as_dir in $PATH
1934do
1935 IFS=$as_save_IFS
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1939 ac_cv_prog_CC="${ac_tool_prefix}cc"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 break 2
1942 fi
1943done
1944done
1945IFS=$as_save_IFS
1946
1947fi
1948fi
1949CC=$ac_cv_prog_CC
1950if test -n "$CC"; then
1951 { echo "$as_me:$LINENO: result: $CC" >&5
1952echo "${ECHO_T}$CC" >&6; }
1953else
1954 { echo "$as_me:$LINENO: result: no" >&5
1955echo "${ECHO_T}no" >&6; }
1956fi
1957
1958
1959 fi
1960fi
1961if test -z "$CC"; then
1962 # Extract the first word of "cc", so it can be a program name with args.
1963set dummy cc; ac_word=$2
1964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966if test "${ac_cv_prog_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968else
1969 if test -n "$CC"; then
1970 ac_cv_prog_CC="$CC" # Let the user override the test.
1971else
1972 ac_prog_rejected=no
1973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974for as_dir in $PATH
1975do
1976 IFS=$as_save_IFS
1977 test -z "$as_dir" && as_dir=.
1978 for ac_exec_ext in '' $ac_executable_extensions; do
1979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1980 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1981 ac_prog_rejected=yes
1982 continue
1983 fi
1984 ac_cv_prog_CC="cc"
1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 break 2
1987 fi
1988done
1989done
1990IFS=$as_save_IFS
1991
1992if test $ac_prog_rejected = yes; then
1993 # We found a bogon in the path, so make sure we never use it.
1994 set dummy $ac_cv_prog_CC
1995 shift
1996 if test $# != 0; then
1997 # We chose a different compiler from the bogus one.
1998 # However, it has the same basename, so the bogon will be chosen
1999 # first if we set CC to just the basename; use the full file name.
2000 shift
2001 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2002 fi
2003fi
2004fi
2005fi
2006CC=$ac_cv_prog_CC
2007if test -n "$CC"; then
2008 { echo "$as_me:$LINENO: result: $CC" >&5
2009echo "${ECHO_T}$CC" >&6; }
2010else
2011 { echo "$as_me:$LINENO: result: no" >&5
2012echo "${ECHO_T}no" >&6; }
2013fi
2014
2015
2016fi
2017if test -z "$CC"; then
2018 if test -n "$ac_tool_prefix"; then
2019 for ac_prog in cl.exe
2020 do
2021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2022set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2025if test "${ac_cv_prog_CC+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027else
2028 if test -n "$CC"; then
2029 ac_cv_prog_CC="$CC" # Let the user override the test.
2030else
2031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032for as_dir in $PATH
2033do
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2038 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 break 2
2041 fi
2042done
2043done
2044IFS=$as_save_IFS
2045
2046fi
2047fi
2048CC=$ac_cv_prog_CC
2049if test -n "$CC"; then
2050 { echo "$as_me:$LINENO: result: $CC" >&5
2051echo "${ECHO_T}$CC" >&6; }
2052else
2053 { echo "$as_me:$LINENO: result: no" >&5
2054echo "${ECHO_T}no" >&6; }
2055fi
2056
2057
2058 test -n "$CC" && break
2059 done
2060fi
2061if test -z "$CC"; then
2062 ac_ct_CC=$CC
2063 for ac_prog in cl.exe
2064do
2065 # Extract the first word of "$ac_prog", so it can be a program name with args.
2066set dummy $ac_prog; ac_word=$2
2067{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2069if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2071else
2072 if test -n "$ac_ct_CC"; then
2073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2074else
2075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076for as_dir in $PATH
2077do
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
2080 for ac_exec_ext in '' $ac_executable_extensions; do
2081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2082 ac_cv_prog_ac_ct_CC="$ac_prog"
2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 break 2
2085 fi
2086done
2087done
2088IFS=$as_save_IFS
2089
2090fi
2091fi
2092ac_ct_CC=$ac_cv_prog_ac_ct_CC
2093if test -n "$ac_ct_CC"; then
2094 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2095echo "${ECHO_T}$ac_ct_CC" >&6; }
2096else
2097 { echo "$as_me:$LINENO: result: no" >&5
2098echo "${ECHO_T}no" >&6; }
2099fi
2100
2101
2102 test -n "$ac_ct_CC" && break
2103done
2104
2105 if test "x$ac_ct_CC" = x; then
2106 CC=""
2107 else
2108 case $cross_compiling:$ac_tool_warned in
2109yes:)
2110{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2111whose name does not start with the host triplet. If you think this
2112configuration is useful to you, please write to autoconf@gnu.org." >&5
2113echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2114whose name does not start with the host triplet. If you think this
2115configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2116ac_tool_warned=yes ;;
2117esac
2118 CC=$ac_ct_CC
2119 fi
2120fi
2121
2122fi
2123
2124
2125test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2126See \`config.log' for more details." >&5
2127echo "$as_me: error: no acceptable C compiler found in \$PATH
2128See \`config.log' for more details." >&2;}
2129 { (exit 1); exit 1; }; }
2130
2131# Provide some information about the compiler.
2132echo "$as_me:$LINENO: checking for C compiler version" >&5
2133ac_compiler=`set X $ac_compile; echo $2`
2134{ (ac_try="$ac_compiler --version >&5"
2135case "(($ac_try" in
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2138esac
2139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140 (eval "$ac_compiler --version >&5") 2>&5
2141 ac_status=$?
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2144{ (ac_try="$ac_compiler -v >&5"
2145case "(($ac_try" in
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2148esac
2149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2150 (eval "$ac_compiler -v >&5") 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2154{ (ac_try="$ac_compiler -V >&5"
2155case "(($ac_try" in
2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157 *) ac_try_echo=$ac_try;;
2158esac
2159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2160 (eval "$ac_compiler -V >&5") 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }
2164
2165cat >conftest.$ac_ext <<_ACEOF
2166/* confdefs.h. */
2167_ACEOF
2168cat confdefs.h >>conftest.$ac_ext
2169cat >>conftest.$ac_ext <<_ACEOF
2170/* end confdefs.h. */
2171
2172int
2173main ()
2174{
2175
2176 ;
2177 return 0;
2178}
2179_ACEOF
2180ac_clean_files_save=$ac_clean_files
2181ac_clean_files="$ac_clean_files a.out a.exe b.out"
2182# Try to create an executable without -o first, disregard a.out.
2183# It will help us diagnose broken compilers, and finding out an intuition
2184# of exeext.
2185{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2187ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2188#
2189# List of possible output files, starting from the most likely.
2190# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2191# only as a last resort. b.out is created by i960 compilers.
2192ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2193#
2194# The IRIX 6 linker writes into existing files which may not be
2195# executable, retaining their permissions. Remove them first so a
2196# subsequent execution test works.
2197ac_rmfiles=
2198for ac_file in $ac_files
2199do
2200 case $ac_file in
2201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2202 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2203 esac
2204done
2205rm -f $ac_rmfiles
2206
2207if { (ac_try="$ac_link_default"
2208case "(($ac_try" in
2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2211esac
2212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213 (eval "$ac_link_default") 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; then
2217 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2218# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2219# in a Makefile. We should not override ac_cv_exeext if it was cached,
2220# so that the user can short-circuit this test for compilers unknown to
2221# Autoconf.
2222for ac_file in $ac_files ''
2223do
2224 test -f "$ac_file" || continue
2225 case $ac_file in
2226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2227 ;;
2228 [ab].out )
2229 # We found the default executable, but exeext='' is most
2230 # certainly right.
2231 break;;
2232 *.* )
2233 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2234 then :; else
2235 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2236 fi
2237 # We set ac_cv_exeext here because the later test for it is not
2238 # safe: cross compilers may not add the suffix if given an `-o'
2239 # argument, so we may need to know it at that point already.
2240 # Even if this section looks crufty: it has the advantage of
2241 # actually working.
2242 break;;
2243 * )
2244 break;;
2245 esac
2246done
2247test "$ac_cv_exeext" = no && ac_cv_exeext=
2248
2249else
2250 ac_file=''
2251fi
2252
2253{ echo "$as_me:$LINENO: result: $ac_file" >&5
2254echo "${ECHO_T}$ac_file" >&6; }
2255if test -z "$ac_file"; then
2256 echo "$as_me: failed program was:" >&5
2257sed 's/^/| /' conftest.$ac_ext >&5
2258
2259{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2260See \`config.log' for more details." >&5
2261echo "$as_me: error: C compiler cannot create executables
2262See \`config.log' for more details." >&2;}
2263 { (exit 77); exit 77; }; }
2264fi
2265
2266ac_exeext=$ac_cv_exeext
2267
2268# Check that the compiler produces executables we can run. If not, either
2269# the compiler is broken, or we cross compile.
2270{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2271echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2272# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2273# If not cross compiling, check that we can run a simple program.
2274if test "$cross_compiling" != yes; then
2275 if { ac_try='./$ac_file'
2276 { (case "(($ac_try" in
2277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278 *) ac_try_echo=$ac_try;;
2279esac
2280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2281 (eval "$ac_try") 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; }; then
2285 cross_compiling=no
2286 else
2287 if test "$cross_compiling" = maybe; then
2288 cross_compiling=yes
2289 else
2290 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2291If you meant to cross compile, use \`--host'.
2292See \`config.log' for more details." >&5
2293echo "$as_me: error: cannot run C compiled programs.
2294If you meant to cross compile, use \`--host'.
2295See \`config.log' for more details." >&2;}
2296 { (exit 1); exit 1; }; }
2297 fi
2298 fi
2299fi
2300{ echo "$as_me:$LINENO: result: yes" >&5
2301echo "${ECHO_T}yes" >&6; }
2302
2303rm -f a.out a.exe conftest$ac_cv_exeext b.out
2304ac_clean_files=$ac_clean_files_save
2305# Check that the compiler produces executables we can run. If not, either
2306# the compiler is broken, or we cross compile.
2307{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2308echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2309{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2310echo "${ECHO_T}$cross_compiling" >&6; }
2311
2312{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2313echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2314if { (ac_try="$ac_link"
2315case "(($ac_try" in
2316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317 *) ac_try_echo=$ac_try;;
2318esac
2319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2320 (eval "$ac_link") 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; then
2324 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2325# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2326# work properly (i.e., refer to `conftest.exe'), while it won't with
2327# `rm'.
2328for ac_file in conftest.exe conftest conftest.*; do
2329 test -f "$ac_file" || continue
2330 case $ac_file in
2331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2332 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2333 break;;
2334 * ) break;;
2335 esac
2336done
2337else
2338 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2339See \`config.log' for more details." >&5
2340echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2341See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
2343fi
2344
2345rm -f conftest$ac_cv_exeext
2346{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2347echo "${ECHO_T}$ac_cv_exeext" >&6; }
2348
2349rm -f conftest.$ac_ext
2350EXEEXT=$ac_cv_exeext
2351ac_exeext=$EXEEXT
2352{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2353echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2354if test "${ac_cv_objext+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356else
2357 cat >conftest.$ac_ext <<_ACEOF
2358/* confdefs.h. */
2359_ACEOF
2360cat confdefs.h >>conftest.$ac_ext
2361cat >>conftest.$ac_ext <<_ACEOF
2362/* end confdefs.h. */
2363
2364int
2365main ()
2366{
2367
2368 ;
2369 return 0;
2370}
2371_ACEOF
2372rm -f conftest.o conftest.obj
2373if { (ac_try="$ac_compile"
2374case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377esac
2378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379 (eval "$ac_compile") 2>&5
2380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; then
2383 for ac_file in conftest.o conftest.obj conftest.*; do
2384 test -f "$ac_file" || continue;
2385 case $ac_file in
2386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2387 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2388 break;;
2389 esac
2390done
2391else
2392 echo "$as_me: failed program was:" >&5
2393sed 's/^/| /' conftest.$ac_ext >&5
2394
2395{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2396See \`config.log' for more details." >&5
2397echo "$as_me: error: cannot compute suffix of object files: cannot compile
2398See \`config.log' for more details." >&2;}
2399 { (exit 1); exit 1; }; }
2400fi
2401
2402rm -f conftest.$ac_cv_objext conftest.$ac_ext
2403fi
2404{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2405echo "${ECHO_T}$ac_cv_objext" >&6; }
2406OBJEXT=$ac_cv_objext
2407ac_objext=$OBJEXT
2408{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2409echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2410if test "${ac_cv_c_compiler_gnu+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2412else
2413 cat >conftest.$ac_ext <<_ACEOF
2414/* confdefs.h. */
2415_ACEOF
2416cat confdefs.h >>conftest.$ac_ext
2417cat >>conftest.$ac_ext <<_ACEOF
2418/* end confdefs.h. */
2419
2420int
2421main ()
2422{
2423#ifndef __GNUC__
2424 choke me
2425#endif
2426
2427 ;
2428 return 0;
2429}
2430_ACEOF
2431rm -f conftest.$ac_objext
2432if { (ac_try="$ac_compile"
2433case "(($ac_try" in
2434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435 *) ac_try_echo=$ac_try;;
2436esac
2437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2438 (eval "$ac_compile") 2>conftest.er1
2439 ac_status=$?
2440 grep -v '^ *+' conftest.er1 >conftest.err
2441 rm -f conftest.er1
2442 cat conftest.err >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); } && {
2445 test -z "$ac_c_werror_flag" ||
2446 test ! -s conftest.err
2447 } && test -s conftest.$ac_objext; then
2448 ac_compiler_gnu=yes
2449else
2450 echo "$as_me: failed program was:" >&5
2451sed 's/^/| /' conftest.$ac_ext >&5
2452
2453 ac_compiler_gnu=no
2454fi
2455
2456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457ac_cv_c_compiler_gnu=$ac_compiler_gnu
2458
2459fi
2460{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2461echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2462GCC=`test $ac_compiler_gnu = yes && echo yes`
2463ac_test_CFLAGS=${CFLAGS+set}
2464ac_save_CFLAGS=$CFLAGS
2465{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2466echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2467if test "${ac_cv_prog_cc_g+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470 ac_save_c_werror_flag=$ac_c_werror_flag
2471 ac_c_werror_flag=yes
2472 ac_cv_prog_cc_g=no
2473 CFLAGS="-g"
2474 cat >conftest.$ac_ext <<_ACEOF
2475/* confdefs.h. */
2476_ACEOF
2477cat confdefs.h >>conftest.$ac_ext
2478cat >>conftest.$ac_ext <<_ACEOF
2479/* end confdefs.h. */
2480
2481int
2482main ()
2483{
2484
2485 ;
2486 return 0;
2487}
2488_ACEOF
2489rm -f conftest.$ac_objext
2490if { (ac_try="$ac_compile"
2491case "(($ac_try" in
2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2494esac
2495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2496 (eval "$ac_compile") 2>conftest.er1
2497 ac_status=$?
2498 grep -v '^ *+' conftest.er1 >conftest.err
2499 rm -f conftest.er1
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } && {
2503 test -z "$ac_c_werror_flag" ||
2504 test ! -s conftest.err
2505 } && test -s conftest.$ac_objext; then
2506 ac_cv_prog_cc_g=yes
2507else
2508 echo "$as_me: failed program was:" >&5
2509sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 CFLAGS=""
2512 cat >conftest.$ac_ext <<_ACEOF
2513/* confdefs.h. */
2514_ACEOF
2515cat confdefs.h >>conftest.$ac_ext
2516cat >>conftest.$ac_ext <<_ACEOF
2517/* end confdefs.h. */
2518
2519int
2520main ()
2521{
2522
2523 ;
2524 return 0;
2525}
2526_ACEOF
2527rm -f conftest.$ac_objext
2528if { (ac_try="$ac_compile"
2529case "(($ac_try" in
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2532esac
2533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534 (eval "$ac_compile") 2>conftest.er1
2535 ac_status=$?
2536 grep -v '^ *+' conftest.er1 >conftest.err
2537 rm -f conftest.er1
2538 cat conftest.err >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); } && {
2541 test -z "$ac_c_werror_flag" ||
2542 test ! -s conftest.err
2543 } && test -s conftest.$ac_objext; then
2544 :
2545else
2546 echo "$as_me: failed program was:" >&5
2547sed 's/^/| /' conftest.$ac_ext >&5
2548
2549 ac_c_werror_flag=$ac_save_c_werror_flag
2550 CFLAGS="-g"
2551 cat >conftest.$ac_ext <<_ACEOF
2552/* confdefs.h. */
2553_ACEOF
2554cat confdefs.h >>conftest.$ac_ext
2555cat >>conftest.$ac_ext <<_ACEOF
2556/* end confdefs.h. */
2557
2558int
2559main ()
2560{
2561
2562 ;
2563 return 0;
2564}
2565_ACEOF
2566rm -f conftest.$ac_objext
2567if { (ac_try="$ac_compile"
2568case "(($ac_try" in
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;;
2571esac
2572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2573 (eval "$ac_compile") 2>conftest.er1
2574 ac_status=$?
2575 grep -v '^ *+' conftest.er1 >conftest.err
2576 rm -f conftest.er1
2577 cat conftest.err >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } && {
2580 test -z "$ac_c_werror_flag" ||
2581 test ! -s conftest.err
2582 } && test -s conftest.$ac_objext; then
2583 ac_cv_prog_cc_g=yes
2584else
2585 echo "$as_me: failed program was:" >&5
2586sed 's/^/| /' conftest.$ac_ext >&5
2587
2588
2589fi
2590
2591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592fi
2593
2594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595fi
2596
2597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 ac_c_werror_flag=$ac_save_c_werror_flag
2599fi
2600{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2601echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2602if test "$ac_test_CFLAGS" = set; then
2603 CFLAGS=$ac_save_CFLAGS
2604elif test $ac_cv_prog_cc_g = yes; then
2605 if test "$GCC" = yes; then
2606 CFLAGS="-g -O2"
2607 else
2608 CFLAGS="-g"
2609 fi
2610else
2611 if test "$GCC" = yes; then
2612 CFLAGS="-O2"
2613 else
2614 CFLAGS=
2615 fi
2616fi
2617{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2618echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2619if test "${ac_cv_prog_cc_c89+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2621else
2622 ac_cv_prog_cc_c89=no
2623ac_save_CC=$CC
2624cat >conftest.$ac_ext <<_ACEOF
2625/* confdefs.h. */
2626_ACEOF
2627cat confdefs.h >>conftest.$ac_ext
2628cat >>conftest.$ac_ext <<_ACEOF
2629/* end confdefs.h. */
2630#include <stdarg.h>
2631#include <stdio.h>
2632#include <sys/types.h>
2633#include <sys/stat.h>
2634/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2635struct buf { int x; };
2636FILE * (*rcsopen) (struct buf *, struct stat *, int);
2637static char *e (p, i)
2638 char **p;
2639 int i;
2640{
2641 return p[i];
2642}
2643static char *f (char * (*g) (char **, int), char **p, ...)
2644{
2645 char *s;
2646 va_list v;
2647 va_start (v,p);
2648 s = g (p, va_arg (v,int));
2649 va_end (v);
2650 return s;
2651}
2652
2653/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2654 function prototypes and stuff, but not '\xHH' hex character constants.
2655 These don't provoke an error unfortunately, instead are silently treated
2656 as 'x'. The following induces an error, until -std is added to get
2657 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2658 array size at least. It's necessary to write '\x00'==0 to get something
2659 that's true only with -std. */
2660int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2661
2662/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2663 inside strings and character constants. */
2664#define FOO(x) 'x'
2665int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2666
2667int test (int i, double x);
2668struct s1 {int (*f) (int a);};
2669struct s2 {int (*f) (double a);};
2670int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2671int argc;
2672char **argv;
2673int
2674main ()
2675{
2676return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2677 ;
2678 return 0;
2679}
2680_ACEOF
2681for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2682 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2683do
2684 CC="$ac_save_CC $ac_arg"
2685 rm -f conftest.$ac_objext
2686if { (ac_try="$ac_compile"
2687case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690esac
2691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compile") 2>conftest.er1
2693 ac_status=$?
2694 grep -v '^ *+' conftest.er1 >conftest.err
2695 rm -f conftest.er1
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } && {
2699 test -z "$ac_c_werror_flag" ||
2700 test ! -s conftest.err
2701 } && test -s conftest.$ac_objext; then
2702 ac_cv_prog_cc_c89=$ac_arg
2703else
2704 echo "$as_me: failed program was:" >&5
2705sed 's/^/| /' conftest.$ac_ext >&5
2706
2707
2708fi
2709
2710rm -f core conftest.err conftest.$ac_objext
2711 test "x$ac_cv_prog_cc_c89" != "xno" && break
2712done
2713rm -f conftest.$ac_ext
2714CC=$ac_save_CC
2715
2716fi
2717# AC_CACHE_VAL
2718case "x$ac_cv_prog_cc_c89" in
2719 x)
2720 { echo "$as_me:$LINENO: result: none needed" >&5
2721echo "${ECHO_T}none needed" >&6; } ;;
2722 xno)
2723 { echo "$as_me:$LINENO: result: unsupported" >&5
2724echo "${ECHO_T}unsupported" >&6; } ;;
2725 *)
2726 CC="$CC $ac_cv_prog_cc_c89"
2727 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2728echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2729esac
2730
2731
2732ac_ext=c
2733ac_cpp='$CPP $CPPFLAGS'
2734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737
2738ac_aux_dir=
2739for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2740 if test -f "$ac_dir/install-sh"; then
2741 ac_aux_dir=$ac_dir
2742 ac_install_sh="$ac_aux_dir/install-sh -c"
2743 break
2744 elif test -f "$ac_dir/install.sh"; then
2745 ac_aux_dir=$ac_dir
2746 ac_install_sh="$ac_aux_dir/install.sh -c"
2747 break
2748 elif test -f "$ac_dir/shtool"; then
2749 ac_aux_dir=$ac_dir
2750 ac_install_sh="$ac_aux_dir/shtool install -c"
2751 break
2752 fi
2753done
2754if test -z "$ac_aux_dir"; then
2755 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2756echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2757 { (exit 1); exit 1; }; }
2758fi
2759
2760# These three variables are undocumented and unsupported,
2761# and are intended to be withdrawn in a future Autoconf release.
2762# They can cause serious problems if a builder's source tree is in a directory
2763# whose full name contains unusual characters.
2764ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2765ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2766ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2767
2768
2769# Make sure we can run config.sub.
2770$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2771 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2772echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2773 { (exit 1); exit 1; }; }
2774
2775{ echo "$as_me:$LINENO: checking build system type" >&5
2776echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2777if test "${ac_cv_build+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2779else
2780 ac_build_alias=$build_alias
2781test "x$ac_build_alias" = x &&
2782 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2783test "x$ac_build_alias" = x &&
2784 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2785echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2786 { (exit 1); exit 1; }; }
2787ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2788 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2789echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2790 { (exit 1); exit 1; }; }
2791
2792fi
2793{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2794echo "${ECHO_T}$ac_cv_build" >&6; }
2795case $ac_cv_build in
2796*-*-*) ;;
2797*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2798echo "$as_me: error: invalid value of canonical build" >&2;}
2799 { (exit 1); exit 1; }; };;
2800esac
2801build=$ac_cv_build
2802ac_save_IFS=$IFS; IFS='-'
2803set x $ac_cv_build
2804shift
2805build_cpu=$1
2806build_vendor=$2
2807shift; shift
2808# Remember, the first character of IFS is used to create $*,
2809# except with old shells:
2810build_os=$*
2811IFS=$ac_save_IFS
2812case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2813
2814
2815{ echo "$as_me:$LINENO: checking host system type" >&5
2816echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2817if test "${ac_cv_host+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2819else
2820 if test "x$host_alias" = x; then
2821 ac_cv_host=$ac_cv_build
2822else
2823 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2824 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2825echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2826 { (exit 1); exit 1; }; }
2827fi
2828
2829fi
2830{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2831echo "${ECHO_T}$ac_cv_host" >&6; }
2832case $ac_cv_host in
2833*-*-*) ;;
2834*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2835echo "$as_me: error: invalid value of canonical host" >&2;}
2836 { (exit 1); exit 1; }; };;
2837esac
2838host=$ac_cv_host
2839ac_save_IFS=$IFS; IFS='-'
2840set x $ac_cv_host
2841shift
2842host_cpu=$1
2843host_vendor=$2
2844shift; shift
2845# Remember, the first character of IFS is used to create $*,
2846# except with old shells:
2847host_os=$*
2848IFS=$ac_save_IFS
2849case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2850
2851
2852
2853ac_ext=c
2854ac_cpp='$CPP $CPPFLAGS'
2855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2857ac_compiler_gnu=$ac_cv_c_compiler_gnu
2858{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2859echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2860# On Suns, sometimes $CPP names a directory.
2861if test -n "$CPP" && test -d "$CPP"; then
2862 CPP=
2863fi
2864if test -z "$CPP"; then
2865 if test "${ac_cv_prog_CPP+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2867else
2868 # Double quotes because CPP needs to be expanded
2869 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2870 do
2871 ac_preproc_ok=false
2872for ac_c_preproc_warn_flag in '' yes
2873do
2874 # Use a header file that comes with gcc, so configuring glibc
2875 # with a fresh cross-compiler works.
2876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2877 # <limits.h> exists even on freestanding compilers.
2878 # On the NeXT, cc -E runs the code through the compiler's parser,
2879 # not just through cpp. "Syntax error" is here to catch this case.
2880 cat >conftest.$ac_ext <<_ACEOF
2881/* confdefs.h. */
2882_ACEOF
2883cat confdefs.h >>conftest.$ac_ext
2884cat >>conftest.$ac_ext <<_ACEOF
2885/* end confdefs.h. */
2886#ifdef __STDC__
2887# include <limits.h>
2888#else
2889# include <assert.h>
2890#endif
2891 Syntax error
2892_ACEOF
2893if { (ac_try="$ac_cpp conftest.$ac_ext"
2894case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897esac
2898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2900 ac_status=$?
2901 grep -v '^ *+' conftest.er1 >conftest.err
2902 rm -f conftest.er1
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } >/dev/null && {
2906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2907 test ! -s conftest.err
2908 }; then
2909 :
2910else
2911 echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
2913
2914 # Broken: fails on valid input.
2915continue
2916fi
2917
2918rm -f conftest.err conftest.$ac_ext
2919
2920 # OK, works on sane cases. Now check whether nonexistent headers
2921 # can be detected and how.
2922 cat >conftest.$ac_ext <<_ACEOF
2923/* confdefs.h. */
2924_ACEOF
2925cat confdefs.h >>conftest.$ac_ext
2926cat >>conftest.$ac_ext <<_ACEOF
2927/* end confdefs.h. */
2928#include <ac_nonexistent.h>
2929_ACEOF
2930if { (ac_try="$ac_cpp conftest.$ac_ext"
2931case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934esac
2935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2937 ac_status=$?
2938 grep -v '^ *+' conftest.er1 >conftest.err
2939 rm -f conftest.er1
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } >/dev/null && {
2943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2944 test ! -s conftest.err
2945 }; then
2946 # Broken: success on invalid input.
2947continue
2948else
2949 echo "$as_me: failed program was:" >&5
2950sed 's/^/| /' conftest.$ac_ext >&5
2951
2952 # Passes both tests.
2953ac_preproc_ok=:
2954break
2955fi
2956
2957rm -f conftest.err conftest.$ac_ext
2958
2959done
2960# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2961rm -f conftest.err conftest.$ac_ext
2962if $ac_preproc_ok; then
2963 break
2964fi
2965
2966 done
2967 ac_cv_prog_CPP=$CPP
2968
2969fi
2970 CPP=$ac_cv_prog_CPP
2971else
2972 ac_cv_prog_CPP=$CPP
2973fi
2974{ echo "$as_me:$LINENO: result: $CPP" >&5
2975echo "${ECHO_T}$CPP" >&6; }
2976ac_preproc_ok=false
2977for ac_c_preproc_warn_flag in '' yes
2978do
2979 # Use a header file that comes with gcc, so configuring glibc
2980 # with a fresh cross-compiler works.
2981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2982 # <limits.h> exists even on freestanding compilers.
2983 # On the NeXT, cc -E runs the code through the compiler's parser,
2984 # not just through cpp. "Syntax error" is here to catch this case.
2985 cat >conftest.$ac_ext <<_ACEOF
2986/* confdefs.h. */
2987_ACEOF
2988cat confdefs.h >>conftest.$ac_ext
2989cat >>conftest.$ac_ext <<_ACEOF
2990/* end confdefs.h. */
2991#ifdef __STDC__
2992# include <limits.h>
2993#else
2994# include <assert.h>
2995#endif
2996 Syntax error
2997_ACEOF
2998if { (ac_try="$ac_cpp conftest.$ac_ext"
2999case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002esac
3003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3005 ac_status=$?
3006 grep -v '^ *+' conftest.er1 >conftest.err
3007 rm -f conftest.er1
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } >/dev/null && {
3011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3012 test ! -s conftest.err
3013 }; then
3014 :
3015else
3016 echo "$as_me: failed program was:" >&5
3017sed 's/^/| /' conftest.$ac_ext >&5
3018
3019 # Broken: fails on valid input.
3020continue
3021fi
3022
3023rm -f conftest.err conftest.$ac_ext
3024
3025 # OK, works on sane cases. Now check whether nonexistent headers
3026 # can be detected and how.
3027 cat >conftest.$ac_ext <<_ACEOF
3028/* confdefs.h. */
3029_ACEOF
3030cat confdefs.h >>conftest.$ac_ext
3031cat >>conftest.$ac_ext <<_ACEOF
3032/* end confdefs.h. */
3033#include <ac_nonexistent.h>
3034_ACEOF
3035if { (ac_try="$ac_cpp conftest.$ac_ext"
3036case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3042 ac_status=$?
3043 grep -v '^ *+' conftest.er1 >conftest.err
3044 rm -f conftest.er1
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } >/dev/null && {
3048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3049 test ! -s conftest.err
3050 }; then
3051 # Broken: success on invalid input.
3052continue
3053else
3054 echo "$as_me: failed program was:" >&5
3055sed 's/^/| /' conftest.$ac_ext >&5
3056
3057 # Passes both tests.
3058ac_preproc_ok=:
3059break
3060fi
3061
3062rm -f conftest.err conftest.$ac_ext
3063
3064done
3065# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3066rm -f conftest.err conftest.$ac_ext
3067if $ac_preproc_ok; then
3068 :
3069else
3070 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3071See \`config.log' for more details." >&5
3072echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3073See \`config.log' for more details." >&2;}
3074 { (exit 1); exit 1; }; }
3075fi
3076
3077ac_ext=c
3078ac_cpp='$CPP $CPPFLAGS'
3079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3081ac_compiler_gnu=$ac_cv_c_compiler_gnu
3082
3083
3084{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3085echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3086if test "${ac_cv_path_GREP+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088else
3089 # Extract the first word of "grep ggrep" to use in msg output
3090if test -z "$GREP"; then
3091set dummy grep ggrep; ac_prog_name=$2
3092if test "${ac_cv_path_GREP+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3094else
3095 ac_path_GREP_found=false
3096# Loop through the user's path and test for each of PROGNAME-LIST
3097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3099do
3100 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
3102 for ac_prog in grep ggrep; do
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3105 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3106 # Check for GNU ac_path_GREP and select it if it is found.
3107 # Check for GNU $ac_path_GREP
3108case `"$ac_path_GREP" --version 2>&1` in
3109*GNU*)
3110 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3111*)
3112 ac_count=0
3113 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3114 while :
3115 do
3116 cat "conftest.in" "conftest.in" >"conftest.tmp"
3117 mv "conftest.tmp" "conftest.in"
3118 cp "conftest.in" "conftest.nl"
3119 echo 'GREP' >> "conftest.nl"
3120 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3122 ac_count=`expr $ac_count + 1`
3123 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3124 # Best one so far, save it but keep looking for a better one
3125 ac_cv_path_GREP="$ac_path_GREP"
3126 ac_path_GREP_max=$ac_count
3127 fi
3128 # 10*(2^10) chars as input seems more than enough
3129 test $ac_count -gt 10 && break
3130 done
3131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3132esac
3133
3134
3135 $ac_path_GREP_found && break 3
3136 done
3137done
3138
3139done
3140IFS=$as_save_IFS
3141
3142
3143fi
3144
3145GREP="$ac_cv_path_GREP"
3146if test -z "$GREP"; then
3147 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3148echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3149 { (exit 1); exit 1; }; }
3150fi
3151
3152else
3153 ac_cv_path_GREP=$GREP
3154fi
3155
3156
3157fi
3158{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3159echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3160 GREP="$ac_cv_path_GREP"
3161
3162
3163{ echo "$as_me:$LINENO: checking for egrep" >&5
3164echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3165if test "${ac_cv_path_EGREP+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167else
3168 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3169 then ac_cv_path_EGREP="$GREP -E"
3170 else
3171 # Extract the first word of "egrep" to use in msg output
3172if test -z "$EGREP"; then
3173set dummy egrep; ac_prog_name=$2
3174if test "${ac_cv_path_EGREP+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176else
3177 ac_path_EGREP_found=false
3178# Loop through the user's path and test for each of PROGNAME-LIST
3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3181do
3182 IFS=$as_save_IFS
3183 test -z "$as_dir" && as_dir=.
3184 for ac_prog in egrep; do
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3187 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3188 # Check for GNU ac_path_EGREP and select it if it is found.
3189 # Check for GNU $ac_path_EGREP
3190case `"$ac_path_EGREP" --version 2>&1` in
3191*GNU*)
3192 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3193*)
3194 ac_count=0
3195 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3196 while :
3197 do
3198 cat "conftest.in" "conftest.in" >"conftest.tmp"
3199 mv "conftest.tmp" "conftest.in"
3200 cp "conftest.in" "conftest.nl"
3201 echo 'EGREP' >> "conftest.nl"
3202 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3203 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3204 ac_count=`expr $ac_count + 1`
3205 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3206 # Best one so far, save it but keep looking for a better one
3207 ac_cv_path_EGREP="$ac_path_EGREP"
3208 ac_path_EGREP_max=$ac_count
3209 fi
3210 # 10*(2^10) chars as input seems more than enough
3211 test $ac_count -gt 10 && break
3212 done
3213 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3214esac
3215
3216
3217 $ac_path_EGREP_found && break 3
3218 done
3219done
3220
3221done
3222IFS=$as_save_IFS
3223
3224
3225fi
3226
3227EGREP="$ac_cv_path_EGREP"
3228if test -z "$EGREP"; then
3229 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3230echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3231 { (exit 1); exit 1; }; }
3232fi
3233
3234else
3235 ac_cv_path_EGREP=$EGREP
3236fi
3237
3238
3239 fi
3240fi
3241{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3242echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3243 EGREP="$ac_cv_path_EGREP"
3244
3245
3246{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3247echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3248if test "${ac_cv_header_stdc+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250else
3251 cat >conftest.$ac_ext <<_ACEOF
3252/* confdefs.h. */
3253_ACEOF
3254cat confdefs.h >>conftest.$ac_ext
3255cat >>conftest.$ac_ext <<_ACEOF
3256/* end confdefs.h. */
3257#include <stdlib.h>
3258#include <stdarg.h>
3259#include <string.h>
3260#include <float.h>
3261
3262int
3263main ()
3264{
3265
3266 ;
3267 return 0;
3268}
3269_ACEOF
3270rm -f conftest.$ac_objext
3271if { (ac_try="$ac_compile"
3272case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275esac
3276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_compile") 2>conftest.er1
3278 ac_status=$?
3279 grep -v '^ *+' conftest.er1 >conftest.err
3280 rm -f conftest.er1
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } && {
3284 test -z "$ac_c_werror_flag" ||
3285 test ! -s conftest.err
3286 } && test -s conftest.$ac_objext; then
3287 ac_cv_header_stdc=yes
3288else
3289 echo "$as_me: failed program was:" >&5
3290sed 's/^/| /' conftest.$ac_ext >&5
3291
3292 ac_cv_header_stdc=no
3293fi
3294
3295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296
3297if test $ac_cv_header_stdc = yes; then
3298 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3299 cat >conftest.$ac_ext <<_ACEOF
3300/* confdefs.h. */
3301_ACEOF
3302cat confdefs.h >>conftest.$ac_ext
3303cat >>conftest.$ac_ext <<_ACEOF
3304/* end confdefs.h. */
3305#include <string.h>
3306
3307_ACEOF
3308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3309 $EGREP "memchr" >/dev/null 2>&1; then
3310 :
3311else
3312 ac_cv_header_stdc=no
3313fi
3314rm -f conftest*
3315
3316fi
3317
3318if test $ac_cv_header_stdc = yes; then
3319 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3320 cat >conftest.$ac_ext <<_ACEOF
3321/* confdefs.h. */
3322_ACEOF
3323cat confdefs.h >>conftest.$ac_ext
3324cat >>conftest.$ac_ext <<_ACEOF
3325/* end confdefs.h. */
3326#include <stdlib.h>
3327
3328_ACEOF
3329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3330 $EGREP "free" >/dev/null 2>&1; then
3331 :
3332else
3333 ac_cv_header_stdc=no
3334fi
3335rm -f conftest*
3336
3337fi
3338
3339if test $ac_cv_header_stdc = yes; then
3340 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3341 if test "$cross_compiling" = yes; then
3342 :
3343else
3344 cat >conftest.$ac_ext <<_ACEOF
3345/* confdefs.h. */
3346_ACEOF
3347cat confdefs.h >>conftest.$ac_ext
3348cat >>conftest.$ac_ext <<_ACEOF
3349/* end confdefs.h. */
3350#include <ctype.h>
3351#include <stdlib.h>
3352#if ((' ' & 0x0FF) == 0x020)
3353# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3354# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3355#else
3356# define ISLOWER(c) \
3357 (('a' <= (c) && (c) <= 'i') \
3358 || ('j' <= (c) && (c) <= 'r') \
3359 || ('s' <= (c) && (c) <= 'z'))
3360# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3361#endif
3362
3363#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3364int
3365main ()
3366{
3367 int i;
3368 for (i = 0; i < 256; i++)
3369 if (XOR (islower (i), ISLOWER (i))
3370 || toupper (i) != TOUPPER (i))
3371 return 2;
3372 return 0;
3373}
3374_ACEOF
3375rm -f conftest$ac_exeext
3376if { (ac_try="$ac_link"
3377case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380esac
3381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_link") 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3386 { (case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389esac
3390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_try") 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
3395 :
3396else
3397 echo "$as_me: program exited with status $ac_status" >&5
3398echo "$as_me: failed program was:" >&5
3399sed 's/^/| /' conftest.$ac_ext >&5
3400
3401( exit $ac_status )
3402ac_cv_header_stdc=no
3403fi
3404rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3405fi
3406
3407
3408fi
3409fi
3410{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3411echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3412if test $ac_cv_header_stdc = yes; then
3413
3414cat >>confdefs.h <<\_ACEOF
3415#define STDC_HEADERS 1
3416_ACEOF
3417
3418fi
3419
3420# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3431 inttypes.h stdint.h unistd.h
3432do
3433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3434{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3436if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438else
3439 cat >conftest.$ac_ext <<_ACEOF
3440/* confdefs.h. */
3441_ACEOF
3442cat confdefs.h >>conftest.$ac_ext
3443cat >>conftest.$ac_ext <<_ACEOF
3444/* end confdefs.h. */
3445$ac_includes_default
3446
3447#include <$ac_header>
3448_ACEOF
3449rm -f conftest.$ac_objext
3450if { (ac_try="$ac_compile"
3451case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3454esac
3455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456 (eval "$ac_compile") 2>conftest.er1
3457 ac_status=$?
3458 grep -v '^ *+' conftest.er1 >conftest.err
3459 rm -f conftest.er1
3460 cat conftest.err >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } && {
3463 test -z "$ac_c_werror_flag" ||
3464 test ! -s conftest.err
3465 } && test -s conftest.$ac_objext; then
3466 eval "$as_ac_Header=yes"
3467else
3468 echo "$as_me: failed program was:" >&5
3469sed 's/^/| /' conftest.$ac_ext >&5
3470
3471 eval "$as_ac_Header=no"
3472fi
3473
3474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3475fi
3476ac_res=`eval echo '${'$as_ac_Header'}'`
3477 { echo "$as_me:$LINENO: result: $ac_res" >&5
3478echo "${ECHO_T}$ac_res" >&6; }
3479if test `eval echo '${'$as_ac_Header'}'` = yes; then
3480 cat >>confdefs.h <<_ACEOF
3481#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3482_ACEOF
3483
3484fi
3485
3486done
3487
3488
3489{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3490echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3491if test "${ac_cv_c_bigendian+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493else
3494 # See if sys/param.h defines the BYTE_ORDER macro.
3495cat >conftest.$ac_ext <<_ACEOF
3496/* confdefs.h. */
3497_ACEOF
3498cat confdefs.h >>conftest.$ac_ext
3499cat >>conftest.$ac_ext <<_ACEOF
3500/* end confdefs.h. */
3501#include <sys/types.h>
3502#include <sys/param.h>
3503
3504int
3505main ()
3506{
3507#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3508 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3509 bogus endian macros
3510#endif
3511
3512 ;
3513 return 0;
3514}
3515_ACEOF
3516rm -f conftest.$ac_objext
3517if { (ac_try="$ac_compile"
3518case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521esac
3522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_compile") 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
3533 # It does; now see whether it defined to BIG_ENDIAN or not.
3534cat >conftest.$ac_ext <<_ACEOF
3535/* confdefs.h. */
3536_ACEOF
3537cat confdefs.h >>conftest.$ac_ext
3538cat >>conftest.$ac_ext <<_ACEOF
3539/* end confdefs.h. */
3540#include <sys/types.h>
3541#include <sys/param.h>
3542
3543int
3544main ()
3545{
3546#if BYTE_ORDER != BIG_ENDIAN
3547 not big endian
3548#endif
3549
3550 ;
3551 return 0;
3552}
3553_ACEOF
3554rm -f conftest.$ac_objext
3555if { (ac_try="$ac_compile"
3556case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559esac
3560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_compile") 2>conftest.er1
3562 ac_status=$?
3563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && {
3568 test -z "$ac_c_werror_flag" ||
3569 test ! -s conftest.err
3570 } && test -s conftest.$ac_objext; then
3571 ac_cv_c_bigendian=yes
3572else
3573 echo "$as_me: failed program was:" >&5
3574sed 's/^/| /' conftest.$ac_ext >&5
3575
3576 ac_cv_c_bigendian=no
3577fi
3578
3579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580else
3581 echo "$as_me: failed program was:" >&5
3582sed 's/^/| /' conftest.$ac_ext >&5
3583
3584 # It does not; compile a test program.
3585if test "$cross_compiling" = yes; then
3586 # try to guess the endianness by grepping values into an object file
3587 ac_cv_c_bigendian=unknown
3588 cat >conftest.$ac_ext <<_ACEOF
3589/* confdefs.h. */
3590_ACEOF
3591cat confdefs.h >>conftest.$ac_ext
3592cat >>conftest.$ac_ext <<_ACEOF
3593/* end confdefs.h. */
3594short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3595short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3596void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3597short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3598short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3599void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3600int
3601main ()
3602{
3603 _ascii (); _ebcdic ();
3604 ;
3605 return 0;
3606}
3607_ACEOF
3608rm -f conftest.$ac_objext
3609if { (ac_try="$ac_compile"
3610case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613esac
3614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_compile") 2>conftest.er1
3616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } && {
3622 test -z "$ac_c_werror_flag" ||
3623 test ! -s conftest.err
3624 } && test -s conftest.$ac_objext; then
3625 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3626 ac_cv_c_bigendian=yes
3627fi
3628if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3629 if test "$ac_cv_c_bigendian" = unknown; then
3630 ac_cv_c_bigendian=no
3631 else
3632 # finding both strings is unlikely to happen, but who knows?
3633 ac_cv_c_bigendian=unknown
3634 fi
3635fi
3636else
3637 echo "$as_me: failed program was:" >&5
3638sed 's/^/| /' conftest.$ac_ext >&5
3639
3640
3641fi
3642
3643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644else
3645 cat >conftest.$ac_ext <<_ACEOF
3646/* confdefs.h. */
3647_ACEOF
3648cat confdefs.h >>conftest.$ac_ext
3649cat >>conftest.$ac_ext <<_ACEOF
3650/* end confdefs.h. */
3651$ac_includes_default
3652int
3653main ()
3654{
3655
3656 /* Are we little or big endian? From Harbison&Steele. */
3657 union
3658 {
3659 long int l;
3660 char c[sizeof (long int)];
3661 } u;
3662 u.l = 1;
3663 return u.c[sizeof (long int) - 1] == 1;
3664
3665 ;
3666 return 0;
3667}
3668_ACEOF
3669rm -f conftest$ac_exeext
3670if { (ac_try="$ac_link"
3671case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3674esac
3675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676 (eval "$ac_link") 2>&5
3677 ac_status=$?
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3680 { (case "(($ac_try" in
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3683esac
3684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685 (eval "$ac_try") 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3689 ac_cv_c_bigendian=no
3690else
3691 echo "$as_me: program exited with status $ac_status" >&5
3692echo "$as_me: failed program was:" >&5
3693sed 's/^/| /' conftest.$ac_ext >&5
3694
3695( exit $ac_status )
3696ac_cv_c_bigendian=yes
3697fi
3698rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3699fi
3700
3701
3702fi
3703
3704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705fi
3706{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3707echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3708case $ac_cv_c_bigendian in
3709 yes)
3710
3711cat >>confdefs.h <<\_ACEOF
3712#define WORDS_BIGENDIAN 1
3713_ACEOF
3714 ;;
3715 no)
3716 ;;
3717 *)
3718 { { echo "$as_me:$LINENO: error: unknown endianness
3719presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3720echo "$as_me: error: unknown endianness
3721presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3722 { (exit 1); exit 1; }; } ;;
3723esac
3724
3725
3726# Checks for programs.
3727for ac_prog in gawk mawk nawk awk
3728do
3729 # Extract the first word of "$ac_prog", so it can be a program name with args.
3730set dummy $ac_prog; ac_word=$2
3731{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3733if test "${ac_cv_prog_AWK+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735else
3736 if test -n "$AWK"; then
3737 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3738else
3739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740for as_dir in $PATH
3741do
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746 ac_cv_prog_AWK="$ac_prog"
3747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 break 2
3749 fi
3750done
3751done
3752IFS=$as_save_IFS
3753
3754fi
3755fi
3756AWK=$ac_cv_prog_AWK
3757if test -n "$AWK"; then
3758 { echo "$as_me:$LINENO: result: $AWK" >&5
3759echo "${ECHO_T}$AWK" >&6; }
3760else
3761 { echo "$as_me:$LINENO: result: no" >&5
3762echo "${ECHO_T}no" >&6; }
3763fi
3764
3765
3766 test -n "$AWK" && break
3767done
3768
3769ac_ext=c
3770ac_cpp='$CPP $CPPFLAGS'
3771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3775echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3776# On Suns, sometimes $CPP names a directory.
3777if test -n "$CPP" && test -d "$CPP"; then
3778 CPP=
3779fi
3780if test -z "$CPP"; then
3781 if test "${ac_cv_prog_CPP+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3783else
3784 # Double quotes because CPP needs to be expanded
3785 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3786 do
3787 ac_preproc_ok=false
3788for ac_c_preproc_warn_flag in '' yes
3789do
3790 # Use a header file that comes with gcc, so configuring glibc
3791 # with a fresh cross-compiler works.
3792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3793 # <limits.h> exists even on freestanding compilers.
3794 # On the NeXT, cc -E runs the code through the compiler's parser,
3795 # not just through cpp. "Syntax error" is here to catch this case.
3796 cat >conftest.$ac_ext <<_ACEOF
3797/* confdefs.h. */
3798_ACEOF
3799cat confdefs.h >>conftest.$ac_ext
3800cat >>conftest.$ac_ext <<_ACEOF
3801/* end confdefs.h. */
3802#ifdef __STDC__
3803# include <limits.h>
3804#else
3805# include <assert.h>
3806#endif
3807 Syntax error
3808_ACEOF
3809if { (ac_try="$ac_cpp conftest.$ac_ext"
3810case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813esac
3814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3816 ac_status=$?
3817 grep -v '^ *+' conftest.er1 >conftest.err
3818 rm -f conftest.er1
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } >/dev/null && {
3822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3823 test ! -s conftest.err
3824 }; then
3825 :
3826else
3827 echo "$as_me: failed program was:" >&5
3828sed 's/^/| /' conftest.$ac_ext >&5
3829
3830 # Broken: fails on valid input.
3831continue
3832fi
3833
3834rm -f conftest.err conftest.$ac_ext
3835
3836 # OK, works on sane cases. Now check whether nonexistent headers
3837 # can be detected and how.
3838 cat >conftest.$ac_ext <<_ACEOF
3839/* confdefs.h. */
3840_ACEOF
3841cat confdefs.h >>conftest.$ac_ext
3842cat >>conftest.$ac_ext <<_ACEOF
3843/* end confdefs.h. */
3844#include <ac_nonexistent.h>
3845_ACEOF
3846if { (ac_try="$ac_cpp conftest.$ac_ext"
3847case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850esac
3851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3853 ac_status=$?
3854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } >/dev/null && {
3859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3860 test ! -s conftest.err
3861 }; then
3862 # Broken: success on invalid input.
3863continue
3864else
3865 echo "$as_me: failed program was:" >&5
3866sed 's/^/| /' conftest.$ac_ext >&5
3867
3868 # Passes both tests.
3869ac_preproc_ok=:
3870break
3871fi
3872
3873rm -f conftest.err conftest.$ac_ext
3874
3875done
3876# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3877rm -f conftest.err conftest.$ac_ext
3878if $ac_preproc_ok; then
3879 break
3880fi
3881
3882 done
3883 ac_cv_prog_CPP=$CPP
3884
3885fi
3886 CPP=$ac_cv_prog_CPP
3887else
3888 ac_cv_prog_CPP=$CPP
3889fi
3890{ echo "$as_me:$LINENO: result: $CPP" >&5
3891echo "${ECHO_T}$CPP" >&6; }
3892ac_preproc_ok=false
3893for ac_c_preproc_warn_flag in '' yes
3894do
3895 # Use a header file that comes with gcc, so configuring glibc
3896 # with a fresh cross-compiler works.
3897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3898 # <limits.h> exists even on freestanding compilers.
3899 # On the NeXT, cc -E runs the code through the compiler's parser,
3900 # not just through cpp. "Syntax error" is here to catch this case.
3901 cat >conftest.$ac_ext <<_ACEOF
3902/* confdefs.h. */
3903_ACEOF
3904cat confdefs.h >>conftest.$ac_ext
3905cat >>conftest.$ac_ext <<_ACEOF
3906/* end confdefs.h. */
3907#ifdef __STDC__
3908# include <limits.h>
3909#else
3910# include <assert.h>
3911#endif
3912 Syntax error
3913_ACEOF
3914if { (ac_try="$ac_cpp conftest.$ac_ext"
3915case "(($ac_try" in
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3918esac
3919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3921 ac_status=$?
3922 grep -v '^ *+' conftest.er1 >conftest.err
3923 rm -f conftest.er1
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } >/dev/null && {
3927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3928 test ! -s conftest.err
3929 }; then
3930 :
3931else
3932 echo "$as_me: failed program was:" >&5
3933sed 's/^/| /' conftest.$ac_ext >&5
3934
3935 # Broken: fails on valid input.
3936continue
3937fi
3938
3939rm -f conftest.err conftest.$ac_ext
3940
3941 # OK, works on sane cases. Now check whether nonexistent headers
3942 # can be detected and how.
3943 cat >conftest.$ac_ext <<_ACEOF
3944/* confdefs.h. */
3945_ACEOF
3946cat confdefs.h >>conftest.$ac_ext
3947cat >>conftest.$ac_ext <<_ACEOF
3948/* end confdefs.h. */
3949#include <ac_nonexistent.h>
3950_ACEOF
3951if { (ac_try="$ac_cpp conftest.$ac_ext"
3952case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955esac
3956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } >/dev/null && {
3964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3965 test ! -s conftest.err
3966 }; then
3967 # Broken: success on invalid input.
3968continue
3969else
3970 echo "$as_me: failed program was:" >&5
3971sed 's/^/| /' conftest.$ac_ext >&5
3972
3973 # Passes both tests.
3974ac_preproc_ok=:
3975break
3976fi
3977
3978rm -f conftest.err conftest.$ac_ext
3979
3980done
3981# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3982rm -f conftest.err conftest.$ac_ext
3983if $ac_preproc_ok; then
3984 :
3985else
3986 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3987See \`config.log' for more details." >&5
3988echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3989See \`config.log' for more details." >&2;}
3990 { (exit 1); exit 1; }; }
3991fi
3992
3993ac_ext=c
3994ac_cpp='$CPP $CPPFLAGS'
3995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998
3999if test -n "$ac_tool_prefix"; then
4000 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4001set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4002{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4004if test "${ac_cv_prog_RANLIB+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006else
4007 if test -n "$RANLIB"; then
4008 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4009else
4010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011for as_dir in $PATH
4012do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4017 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 break 2
4020 fi
4021done
4022done
4023IFS=$as_save_IFS
4024
4025fi
4026fi
4027RANLIB=$ac_cv_prog_RANLIB
4028if test -n "$RANLIB"; then
4029 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4030echo "${ECHO_T}$RANLIB" >&6; }
4031else
4032 { echo "$as_me:$LINENO: result: no" >&5
4033echo "${ECHO_T}no" >&6; }
4034fi
4035
4036
4037fi
4038if test -z "$ac_cv_prog_RANLIB"; then
4039 ac_ct_RANLIB=$RANLIB
4040 # Extract the first word of "ranlib", so it can be a program name with args.
4041set dummy ranlib; ac_word=$2
4042{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4044if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046else
4047 if test -n "$ac_ct_RANLIB"; then
4048 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4049else
4050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051for as_dir in $PATH
4052do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4057 ac_cv_prog_ac_ct_RANLIB="ranlib"
4058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 break 2
4060 fi
4061done
4062done
4063IFS=$as_save_IFS
4064
4065fi
4066fi
4067ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4068if test -n "$ac_ct_RANLIB"; then
4069 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4070echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4071else
4072 { echo "$as_me:$LINENO: result: no" >&5
4073echo "${ECHO_T}no" >&6; }
4074fi
4075
4076 if test "x$ac_ct_RANLIB" = x; then
4077 RANLIB=":"
4078 else
4079 case $cross_compiling:$ac_tool_warned in
4080yes:)
4081{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4082whose name does not start with the host triplet. If you think this
4083configuration is useful to you, please write to autoconf@gnu.org." >&5
4084echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4085whose name does not start with the host triplet. If you think this
4086configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4087ac_tool_warned=yes ;;
4088esac
4089 RANLIB=$ac_ct_RANLIB
4090 fi
4091else
4092 RANLIB="$ac_cv_prog_RANLIB"
4093fi
4094
4095# Find a good install program. We prefer a C program (faster),
4096# so one script is as good as another. But avoid the broken or
4097# incompatible versions:
4098# SysV /etc/install, /usr/sbin/install
4099# SunOS /usr/etc/install
4100# IRIX /sbin/install
4101# AIX /bin/install
4102# AmigaOS /C/install, which installs bootblocks on floppy discs
4103# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4104# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4105# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4106# OS/2's system install, which has a completely different semantic
4107# ./install, which can be erroneously created by make from ./install.sh.
4108{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4109echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4110if test -z "$INSTALL"; then
4111if test "${ac_cv_path_install+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115for as_dir in $PATH
4116do
4117 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=.
4119 # Account for people who put trailing slashes in PATH elements.
4120case $as_dir/ in
4121 ./ | .// | /cC/* | \
4122 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4123 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4124 /usr/ucb/* ) ;;
4125 *)
4126 # OSF1 and SCO ODT 3.0 have their own names for install.
4127 # Don't use installbsd from OSF since it installs stuff as root
4128 # by default.
4129 for ac_prog in ginstall scoinst install; do
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4132 if test $ac_prog = install &&
4133 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4134 # AIX install. It has an incompatible calling convention.
4135 :
4136 elif test $ac_prog = install &&
4137 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4138 # program-specific install script used by HP pwplus--don't use.
4139 :
4140 else
4141 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4142 break 3
4143 fi
4144 fi
4145 done
4146 done
4147 ;;
4148esac
4149done
4150IFS=$as_save_IFS
4151
4152
4153fi
4154 if test "${ac_cv_path_install+set}" = set; then
4155 INSTALL=$ac_cv_path_install
4156 else
4157 # As a last resort, use the slow shell script. Don't cache a
4158 # value for INSTALL within a source directory, because that will
4159 # break other packages using the cache if that directory is
4160 # removed, or if the value is a relative name.
4161 INSTALL=$ac_install_sh
4162 fi
4163fi
4164{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4165echo "${ECHO_T}$INSTALL" >&6; }
4166
4167# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4168# It thinks the first close brace ends the variable substitution.
4169test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4170
4171test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4172
4173test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4174
4175{ echo "$as_me:$LINENO: checking for egrep" >&5
4176echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4177if test "${ac_cv_path_EGREP+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179else
4180 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4181 then ac_cv_path_EGREP="$GREP -E"
4182 else
4183 # Extract the first word of "egrep" to use in msg output
4184if test -z "$EGREP"; then
4185set dummy egrep; ac_prog_name=$2
4186if test "${ac_cv_path_EGREP+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4188else
4189 ac_path_EGREP_found=false
4190# Loop through the user's path and test for each of PROGNAME-LIST
4191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4193do
4194 IFS=$as_save_IFS
4195 test -z "$as_dir" && as_dir=.
4196 for ac_prog in egrep; do
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4199 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4200 # Check for GNU ac_path_EGREP and select it if it is found.
4201 # Check for GNU $ac_path_EGREP
4202case `"$ac_path_EGREP" --version 2>&1` in
4203*GNU*)
4204 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4205*)
4206 ac_count=0
4207 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4208 while :
4209 do
4210 cat "conftest.in" "conftest.in" >"conftest.tmp"
4211 mv "conftest.tmp" "conftest.in"
4212 cp "conftest.in" "conftest.nl"
4213 echo 'EGREP' >> "conftest.nl"
4214 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4215 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4216 ac_count=`expr $ac_count + 1`
4217 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4218 # Best one so far, save it but keep looking for a better one
4219 ac_cv_path_EGREP="$ac_path_EGREP"
4220 ac_path_EGREP_max=$ac_count
4221 fi
4222 # 10*(2^10) chars as input seems more than enough
4223 test $ac_count -gt 10 && break
4224 done
4225 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4226esac
4227
4228
4229 $ac_path_EGREP_found && break 3
4230 done
4231done
4232
4233done
4234IFS=$as_save_IFS
4235
4236
4237fi
4238
4239EGREP="$ac_cv_path_EGREP"
4240if test -z "$EGREP"; then
4241 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4242echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4243 { (exit 1); exit 1; }; }
4244fi
4245
4246else
4247 ac_cv_path_EGREP=$EGREP
4248fi
4249
4250
4251 fi
4252fi
4253{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4254echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4255 EGREP="$ac_cv_path_EGREP"
4256
4257
4258if test -n "$ac_tool_prefix"; then
4259 for ac_prog in ar
4260 do
4261 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4262set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4265if test "${ac_cv_prog_AR+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267else
4268 if test -n "$AR"; then
4269 ac_cv_prog_AR="$AR" # Let the user override the test.
4270else
4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 break 2
4281 fi
4282done
4283done
4284IFS=$as_save_IFS
4285
4286fi
4287fi
4288AR=$ac_cv_prog_AR
4289if test -n "$AR"; then
4290 { echo "$as_me:$LINENO: result: $AR" >&5
4291echo "${ECHO_T}$AR" >&6; }
4292else
4293 { echo "$as_me:$LINENO: result: no" >&5
4294echo "${ECHO_T}no" >&6; }
4295fi
4296
4297
4298 test -n "$AR" && break
4299 done
4300fi
4301if test -z "$AR"; then
4302 ac_ct_AR=$AR
4303 for ac_prog in ar
4304do
4305 # Extract the first word of "$ac_prog", so it can be a program name with args.
4306set dummy $ac_prog; ac_word=$2
4307{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4309if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
4312 if test -n "$ac_ct_AR"; then
4313 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4314else
4315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316for as_dir in $PATH
4317do
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_prog_ac_ct_AR="$ac_prog"
4323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4325 fi
4326done
4327done
4328IFS=$as_save_IFS
4329
4330fi
4331fi
4332ac_ct_AR=$ac_cv_prog_ac_ct_AR
4333if test -n "$ac_ct_AR"; then
4334 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4335echo "${ECHO_T}$ac_ct_AR" >&6; }
4336else
4337 { echo "$as_me:$LINENO: result: no" >&5
4338echo "${ECHO_T}no" >&6; }
4339fi
4340
4341
4342 test -n "$ac_ct_AR" && break
4343done
4344
4345 if test "x$ac_ct_AR" = x; then
4346 AR=""
4347 else
4348 case $cross_compiling:$ac_tool_warned in
4349yes:)
4350{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4351whose name does not start with the host triplet. If you think this
4352configuration is useful to you, please write to autoconf@gnu.org." >&5
4353echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4354whose name does not start with the host triplet. If you think this
4355configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4356ac_tool_warned=yes ;;
4357esac
4358 AR=$ac_ct_AR
4359 fi
4360fi
4361
4362# Extract the first word of "cat", so it can be a program name with args.
4363set dummy cat; ac_word=$2
4364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4366if test "${ac_cv_path_CAT+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4368else
4369 case $CAT in
4370 [\\/]* | ?:[\\/]*)
4371 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4372 ;;
4373 *)
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375for as_dir in $PATH
4376do
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 break 2
4384 fi
4385done
4386done
4387IFS=$as_save_IFS
4388
4389 ;;
4390esac
4391fi
4392CAT=$ac_cv_path_CAT
4393if test -n "$CAT"; then
4394 { echo "$as_me:$LINENO: result: $CAT" >&5
4395echo "${ECHO_T}$CAT" >&6; }
4396else
4397 { echo "$as_me:$LINENO: result: no" >&5
4398echo "${ECHO_T}no" >&6; }
4399fi
4400
4401
4402# Extract the first word of "kill", so it can be a program name with args.
4403set dummy kill; ac_word=$2
4404{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4406if test "${ac_cv_path_KILL+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4408else
4409 case $KILL in
4410 [\\/]* | ?:[\\/]*)
4411 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4412 ;;
4413 *)
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH
4416do
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
4424 fi
4425done
4426done
4427IFS=$as_save_IFS
4428
4429 ;;
4430esac
4431fi
4432KILL=$ac_cv_path_KILL
4433if test -n "$KILL"; then
4434 { echo "$as_me:$LINENO: result: $KILL" >&5
4435echo "${ECHO_T}$KILL" >&6; }
4436else
4437 { echo "$as_me:$LINENO: result: no" >&5
4438echo "${ECHO_T}no" >&6; }
4439fi
4440
4441
4442for ac_prog in perl5 perl
4443do
4444 # Extract the first word of "$ac_prog", so it can be a program name with args.
4445set dummy $ac_prog; ac_word=$2
4446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4448if test "${ac_cv_path_PERL+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4450else
4451 case $PERL in
4452 [\\/]* | ?:[\\/]*)
4453 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4454 ;;
4455 *)
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457for as_dir in $PATH
4458do
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4463 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 break 2
4466 fi
4467done
4468done
4469IFS=$as_save_IFS
4470
4471 ;;
4472esac
4473fi
4474PERL=$ac_cv_path_PERL
4475if test -n "$PERL"; then
4476 { echo "$as_me:$LINENO: result: $PERL" >&5
4477echo "${ECHO_T}$PERL" >&6; }
4478else
4479 { echo "$as_me:$LINENO: result: no" >&5
4480echo "${ECHO_T}no" >&6; }
4481fi
4482
4483
4484 test -n "$PERL" && break
4485done
4486
4487# Extract the first word of "sed", so it can be a program name with args.
4488set dummy sed; ac_word=$2
4489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4491if test "${ac_cv_path_SED+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4493else
4494 case $SED in
4495 [\\/]* | ?:[\\/]*)
4496 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4497 ;;
4498 *)
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500for as_dir in $PATH
4501do
4502 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4506 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 break 2
4509 fi
4510done
4511done
4512IFS=$as_save_IFS
4513
4514 ;;
4515esac
4516fi
4517SED=$ac_cv_path_SED
4518if test -n "$SED"; then
4519 { echo "$as_me:$LINENO: result: $SED" >&5
4520echo "${ECHO_T}$SED" >&6; }
4521else
4522 { echo "$as_me:$LINENO: result: no" >&5
4523echo "${ECHO_T}no" >&6; }
4524fi
4525
4526
4527
4528# Extract the first word of "ent", so it can be a program name with args.
4529set dummy ent; ac_word=$2
4530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4532if test "${ac_cv_path_ENT+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534else
4535 case $ENT in
4536 [\\/]* | ?:[\\/]*)
4537 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4538 ;;
4539 *)
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541for as_dir in $PATH
4542do
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4547 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 break 2
4550 fi
4551done
4552done
4553IFS=$as_save_IFS
4554
4555 ;;
4556esac
4557fi
4558ENT=$ac_cv_path_ENT
4559if test -n "$ENT"; then
4560 { echo "$as_me:$LINENO: result: $ENT" >&5
4561echo "${ECHO_T}$ENT" >&6; }
4562else
4563 { echo "$as_me:$LINENO: result: no" >&5
4564echo "${ECHO_T}no" >&6; }
4565fi
4566
4567
4568
4569# Extract the first word of "bash", so it can be a program name with args.
4570set dummy bash; ac_word=$2
4571{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4573if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575else
4576 case $TEST_MINUS_S_SH in
4577 [\\/]* | ?:[\\/]*)
4578 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4579 ;;
4580 *)
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582for as_dir in $PATH
4583do
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4588 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 break 2
4591 fi
4592done
4593done
4594IFS=$as_save_IFS
4595
4596 ;;
4597esac
4598fi
4599TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4600if test -n "$TEST_MINUS_S_SH"; then
4601 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4602echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4603else
4604 { echo "$as_me:$LINENO: result: no" >&5
4605echo "${ECHO_T}no" >&6; }
4606fi
4607
4608
4609# Extract the first word of "ksh", so it can be a program name with args.
4610set dummy ksh; ac_word=$2
4611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4613if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4615else
4616 case $TEST_MINUS_S_SH in
4617 [\\/]* | ?:[\\/]*)
4618 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4619 ;;
4620 *)
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 break 2
4631 fi
4632done
4633done
4634IFS=$as_save_IFS
4635
4636 ;;
4637esac
4638fi
4639TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4640if test -n "$TEST_MINUS_S_SH"; then
4641 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4642echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4643else
4644 { echo "$as_me:$LINENO: result: no" >&5
4645echo "${ECHO_T}no" >&6; }
4646fi
4647
4648
4649# Extract the first word of "sh", so it can be a program name with args.
4650set dummy sh; ac_word=$2
4651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656 case $TEST_MINUS_S_SH in
4657 [\\/]* | ?:[\\/]*)
4658 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4659 ;;
4660 *)
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH
4663do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4671 fi
4672done
4673done
4674IFS=$as_save_IFS
4675
4676 ;;
4677esac
4678fi
4679TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4680if test -n "$TEST_MINUS_S_SH"; then
4681 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4682echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4683else
4684 { echo "$as_me:$LINENO: result: no" >&5
4685echo "${ECHO_T}no" >&6; }
4686fi
4687
4688
4689# Extract the first word of "sh", so it can be a program name with args.
4690set dummy sh; ac_word=$2
4691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4693if test "${ac_cv_path_SH+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695else
4696 case $SH in
4697 [\\/]* | ?:[\\/]*)
4698 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4699 ;;
4700 *)
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4711 fi
4712done
4713done
4714IFS=$as_save_IFS
4715
4716 ;;
4717esac
4718fi
4719SH=$ac_cv_path_SH
4720if test -n "$SH"; then
4721 { echo "$as_me:$LINENO: result: $SH" >&5
4722echo "${ECHO_T}$SH" >&6; }
4723else
4724 { echo "$as_me:$LINENO: result: no" >&5
4725echo "${ECHO_T}no" >&6; }
4726fi
4727
4728
4729# Extract the first word of "groff", so it can be a program name with args.
4730set dummy groff; ac_word=$2
4731{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4733if test "${ac_cv_path_GROFF+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735else
4736 case $GROFF in
4737 [\\/]* | ?:[\\/]*)
4738 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4739 ;;
4740 *)
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742for as_dir in $PATH
4743do
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4751 fi
4752done
4753done
4754IFS=$as_save_IFS
4755
4756 ;;
4757esac
4758fi
4759GROFF=$ac_cv_path_GROFF
4760if test -n "$GROFF"; then
4761 { echo "$as_me:$LINENO: result: $GROFF" >&5
4762echo "${ECHO_T}$GROFF" >&6; }
4763else
4764 { echo "$as_me:$LINENO: result: no" >&5
4765echo "${ECHO_T}no" >&6; }
4766fi
4767
4768
4769# Extract the first word of "nroff", so it can be a program name with args.
4770set dummy nroff; ac_word=$2
4771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4773if test "${ac_cv_path_NROFF+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775else
4776 case $NROFF in
4777 [\\/]* | ?:[\\/]*)
4778 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4779 ;;
4780 *)
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 break 2
4791 fi
4792done
4793done
4794IFS=$as_save_IFS
4795
4796 ;;
4797esac
4798fi
4799NROFF=$ac_cv_path_NROFF
4800if test -n "$NROFF"; then
4801 { echo "$as_me:$LINENO: result: $NROFF" >&5
4802echo "${ECHO_T}$NROFF" >&6; }
4803else
4804 { echo "$as_me:$LINENO: result: no" >&5
4805echo "${ECHO_T}no" >&6; }
4806fi
4807
4808
4809# Extract the first word of "mandoc", so it can be a program name with args.
4810set dummy mandoc; ac_word=$2
4811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4813if test "${ac_cv_path_MANDOC+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815else
4816 case $MANDOC in
4817 [\\/]* | ?:[\\/]*)
4818 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
4819 ;;
4820 *)
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH
4823do
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
4829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4831 fi
4832done
4833done
4834IFS=$as_save_IFS
4835
4836 ;;
4837esac
4838fi
4839MANDOC=$ac_cv_path_MANDOC
4840if test -n "$MANDOC"; then
4841 { echo "$as_me:$LINENO: result: $MANDOC" >&5
4842echo "${ECHO_T}$MANDOC" >&6; }
4843else
4844 { echo "$as_me:$LINENO: result: no" >&5
4845echo "${ECHO_T}no" >&6; }
4846fi
4847
4848
4849TEST_SHELL=sh
4850
4851
4852if test "x$MANDOC" != "x" ; then
4853 MANFMT="$MANDOC"
4854elif test "x$NROFF" != "x" ; then
4855 MANFMT="$NROFF -mandoc"
4856elif test "x$GROFF" != "x" ; then
4857 MANFMT="$GROFF -mandoc -Tascii"
4858else
4859 { echo "$as_me:$LINENO: WARNING: no manpage formatted found" >&5
4860echo "$as_me: WARNING: no manpage formatted found" >&2;}
4861 MANFMT="false"
4862fi
4863
4864
4865# Extract the first word of "groupadd", so it can be a program name with args.
4866set dummy groupadd; ac_word=$2
4867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4869if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4871else
4872 case $PATH_GROUPADD_PROG in
4873 [\\/]* | ?:[\\/]*)
4874 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4875 ;;
4876 *)
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4879do
4880 IFS=$as_save_IFS
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 break 2
4887 fi
4888done
4889done
4890IFS=$as_save_IFS
4891
4892 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4893 ;;
4894esac
4895fi
4896PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4897if test -n "$PATH_GROUPADD_PROG"; then
4898 { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
4899echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
4900else
4901 { echo "$as_me:$LINENO: result: no" >&5
4902echo "${ECHO_T}no" >&6; }
4903fi
4904
4905
4906# Extract the first word of "useradd", so it can be a program name with args.
4907set dummy useradd; ac_word=$2
4908{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4910if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912else
4913 case $PATH_USERADD_PROG in
4914 [\\/]* | ?:[\\/]*)
4915 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4916 ;;
4917 *)
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4920do
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4928 fi
4929done
4930done
4931IFS=$as_save_IFS
4932
4933 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
4934 ;;
4935esac
4936fi
4937PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
4938if test -n "$PATH_USERADD_PROG"; then
4939 { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
4940echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
4941else
4942 { echo "$as_me:$LINENO: result: no" >&5
4943echo "${ECHO_T}no" >&6; }
4944fi
4945
4946
4947# Extract the first word of "pkgmk", so it can be a program name with args.
4948set dummy pkgmk; ac_word=$2
4949{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4951if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4953else
4954 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4955 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
4956else
4957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958for as_dir in $PATH
4959do
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
4965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4967 fi
4968done
4969done
4970IFS=$as_save_IFS
4971
4972 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
4973fi
4974fi
4975MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
4976if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4977 { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
4978echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
4979else
4980 { echo "$as_me:$LINENO: result: no" >&5
4981echo "${ECHO_T}no" >&6; }
4982fi
4983
4984
4985if test -x /sbin/sh; then
4986 STARTUP_SCRIPT_SHELL=/sbin/sh
4987
4988else
4989 STARTUP_SCRIPT_SHELL=/bin/sh
4990
4991fi
4992
4993# System features
4994# Check whether --enable-largefile was given.
4995if test "${enable_largefile+set}" = set; then
4996 enableval=$enable_largefile;
4997fi
4998
4999if test "$enable_largefile" != no; then
5000
5001 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5002echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5003if test "${ac_cv_sys_largefile_CC+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005else
5006 ac_cv_sys_largefile_CC=no
5007 if test "$GCC" != yes; then
5008 ac_save_CC=$CC
5009 while :; do
5010 # IRIX 6.2 and later do not support large files by default,
5011 # so use the C compiler's -n32 option if that helps.
5012 cat >conftest.$ac_ext <<_ACEOF
5013/* confdefs.h. */
5014_ACEOF
5015cat confdefs.h >>conftest.$ac_ext
5016cat >>conftest.$ac_ext <<_ACEOF
5017/* end confdefs.h. */
5018#include <sys/types.h>
5019 /* Check that off_t can represent 2**63 - 1 correctly.
5020 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5021 since some C++ compilers masquerading as C compilers
5022 incorrectly reject 9223372036854775807. */
5023#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5024 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5025 && LARGE_OFF_T % 2147483647 == 1)
5026 ? 1 : -1];
5027int
5028main ()
5029{
5030
5031 ;
5032 return 0;
5033}
5034_ACEOF
5035 rm -f conftest.$ac_objext
5036if { (ac_try="$ac_compile"
5037case "(($ac_try" in
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5040esac
5041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042 (eval "$ac_compile") 2>conftest.er1
5043 ac_status=$?
5044 grep -v '^ *+' conftest.er1 >conftest.err
5045 rm -f conftest.er1
5046 cat conftest.err >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } && {
5049 test -z "$ac_c_werror_flag" ||
5050 test ! -s conftest.err
5051 } && test -s conftest.$ac_objext; then
5052 break
5053else
5054 echo "$as_me: failed program was:" >&5
5055sed 's/^/| /' conftest.$ac_ext >&5
5056
5057
5058fi
5059
5060rm -f core conftest.err conftest.$ac_objext
5061 CC="$CC -n32"
5062 rm -f conftest.$ac_objext
5063if { (ac_try="$ac_compile"
5064case "(($ac_try" in
5065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066 *) ac_try_echo=$ac_try;;
5067esac
5068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5069 (eval "$ac_compile") 2>conftest.er1
5070 ac_status=$?
5071 grep -v '^ *+' conftest.er1 >conftest.err
5072 rm -f conftest.er1
5073 cat conftest.err >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } && {
5076 test -z "$ac_c_werror_flag" ||
5077 test ! -s conftest.err
5078 } && test -s conftest.$ac_objext; then
5079 ac_cv_sys_largefile_CC=' -n32'; break
5080else
5081 echo "$as_me: failed program was:" >&5
5082sed 's/^/| /' conftest.$ac_ext >&5
5083
5084
5085fi
5086
5087rm -f core conftest.err conftest.$ac_objext
5088 break
5089 done
5090 CC=$ac_save_CC
5091 rm -f conftest.$ac_ext
5092 fi
5093fi
5094{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5095echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5096 if test "$ac_cv_sys_largefile_CC" != no; then
5097 CC=$CC$ac_cv_sys_largefile_CC
5098 fi
5099
5100 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5101echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5102if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104else
5105 while :; do
5106 cat >conftest.$ac_ext <<_ACEOF
5107/* confdefs.h. */
5108_ACEOF
5109cat confdefs.h >>conftest.$ac_ext
5110cat >>conftest.$ac_ext <<_ACEOF
5111/* end confdefs.h. */
5112#include <sys/types.h>
5113 /* Check that off_t can represent 2**63 - 1 correctly.
5114 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5115 since some C++ compilers masquerading as C compilers
5116 incorrectly reject 9223372036854775807. */
5117#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5118 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5119 && LARGE_OFF_T % 2147483647 == 1)
5120 ? 1 : -1];
5121int
5122main ()
5123{
5124
5125 ;
5126 return 0;
5127}
5128_ACEOF
5129rm -f conftest.$ac_objext
5130if { (ac_try="$ac_compile"
5131case "(($ac_try" in
5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5134esac
5135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136 (eval "$ac_compile") 2>conftest.er1
5137 ac_status=$?
5138 grep -v '^ *+' conftest.er1 >conftest.err
5139 rm -f conftest.er1
5140 cat conftest.err >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } && {
5143 test -z "$ac_c_werror_flag" ||
5144 test ! -s conftest.err
5145 } && test -s conftest.$ac_objext; then
5146 ac_cv_sys_file_offset_bits=no; break
5147else
5148 echo "$as_me: failed program was:" >&5
5149sed 's/^/| /' conftest.$ac_ext >&5
5150
5151
5152fi
5153
5154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155 cat >conftest.$ac_ext <<_ACEOF
5156/* confdefs.h. */
5157_ACEOF
5158cat confdefs.h >>conftest.$ac_ext
5159cat >>conftest.$ac_ext <<_ACEOF
5160/* end confdefs.h. */
5161#define _FILE_OFFSET_BITS 64
5162#include <sys/types.h>
5163 /* Check that off_t can represent 2**63 - 1 correctly.
5164 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5165 since some C++ compilers masquerading as C compilers
5166 incorrectly reject 9223372036854775807. */
5167#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5168 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5169 && LARGE_OFF_T % 2147483647 == 1)
5170 ? 1 : -1];
5171int
5172main ()
5173{
5174
5175 ;
5176 return 0;
5177}
5178_ACEOF
5179rm -f conftest.$ac_objext
5180if { (ac_try="$ac_compile"
5181case "(($ac_try" in
5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5184esac
5185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186 (eval "$ac_compile") 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } && {
5193 test -z "$ac_c_werror_flag" ||
5194 test ! -s conftest.err
5195 } && test -s conftest.$ac_objext; then
5196 ac_cv_sys_file_offset_bits=64; break
5197else
5198 echo "$as_me: failed program was:" >&5
5199sed 's/^/| /' conftest.$ac_ext >&5
5200
5201
5202fi
5203
5204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205 ac_cv_sys_file_offset_bits=unknown
5206 break
5207done
5208fi
5209{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5210echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5211case $ac_cv_sys_file_offset_bits in #(
5212 no | unknown) ;;
5213 *)
5214cat >>confdefs.h <<_ACEOF
5215#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5216_ACEOF
5217;;
5218esac
5219rm -f conftest*
5220 if test $ac_cv_sys_file_offset_bits = unknown; then
5221 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5222echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5223if test "${ac_cv_sys_large_files+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225else
5226 while :; do
5227 cat >conftest.$ac_ext <<_ACEOF
5228/* confdefs.h. */
5229_ACEOF
5230cat confdefs.h >>conftest.$ac_ext
5231cat >>conftest.$ac_ext <<_ACEOF
5232/* end confdefs.h. */
5233#include <sys/types.h>
5234 /* Check that off_t can represent 2**63 - 1 correctly.
5235 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5236 since some C++ compilers masquerading as C compilers
5237 incorrectly reject 9223372036854775807. */
5238#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5240 && LARGE_OFF_T % 2147483647 == 1)
5241 ? 1 : -1];
5242int
5243main ()
5244{
5245
5246 ;
5247 return 0;
5248}
5249_ACEOF
5250rm -f conftest.$ac_objext
5251if { (ac_try="$ac_compile"
5252case "(($ac_try" in
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5255esac
5256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_compile") 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && {
5264 test -z "$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest.$ac_objext; then
5267 ac_cv_sys_large_files=no; break
5268else
5269 echo "$as_me: failed program was:" >&5
5270sed 's/^/| /' conftest.$ac_ext >&5
5271
5272
5273fi
5274
5275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 cat >conftest.$ac_ext <<_ACEOF
5277/* confdefs.h. */
5278_ACEOF
5279cat confdefs.h >>conftest.$ac_ext
5280cat >>conftest.$ac_ext <<_ACEOF
5281/* end confdefs.h. */
5282#define _LARGE_FILES 1
5283#include <sys/types.h>
5284 /* Check that off_t can represent 2**63 - 1 correctly.
5285 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5286 since some C++ compilers masquerading as C compilers
5287 incorrectly reject 9223372036854775807. */
5288#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5289 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5290 && LARGE_OFF_T % 2147483647 == 1)
5291 ? 1 : -1];
5292int
5293main ()
5294{
5295
5296 ;
5297 return 0;
5298}
5299_ACEOF
5300rm -f conftest.$ac_objext
5301if { (ac_try="$ac_compile"
5302case "(($ac_try" in
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5305esac
5306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307 (eval "$ac_compile") 2>conftest.er1
5308 ac_status=$?
5309 grep -v '^ *+' conftest.er1 >conftest.err
5310 rm -f conftest.er1
5311 cat conftest.err >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } && {
5314 test -z "$ac_c_werror_flag" ||
5315 test ! -s conftest.err
5316 } && test -s conftest.$ac_objext; then
5317 ac_cv_sys_large_files=1; break
5318else
5319 echo "$as_me: failed program was:" >&5
5320sed 's/^/| /' conftest.$ac_ext >&5
5321
5322
5323fi
5324
5325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 ac_cv_sys_large_files=unknown
5327 break
5328done
5329fi
5330{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5331echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5332case $ac_cv_sys_large_files in #(
5333 no | unknown) ;;
5334 *)
5335cat >>confdefs.h <<_ACEOF
5336#define _LARGE_FILES $ac_cv_sys_large_files
5337_ACEOF
5338;;
5339esac
5340rm -f conftest*
5341 fi
5342fi
5343
5344
5345if test -z "$AR" ; then
5346 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5347echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5348 { (exit 1); exit 1; }; }
5349fi
5350
5351# Use LOGIN_PROGRAM from environment if possible
5352if test ! -z "$LOGIN_PROGRAM" ; then
5353
5354cat >>confdefs.h <<_ACEOF
5355#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5356_ACEOF
5357
5358else
5359 # Search for login
5360 # Extract the first word of "login", so it can be a program name with args.
5361set dummy login; ac_word=$2
5362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5364if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366else
5367 case $LOGIN_PROGRAM_FALLBACK in
5368 [\\/]* | ?:[\\/]*)
5369 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5370 ;;
5371 *)
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH
5374do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5382 fi
5383done
5384done
5385IFS=$as_save_IFS
5386
5387 ;;
5388esac
5389fi
5390LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5391if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5392 { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5393echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5394else
5395 { echo "$as_me:$LINENO: result: no" >&5
5396echo "${ECHO_T}no" >&6; }
5397fi
5398
5399
5400 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5401 cat >>confdefs.h <<_ACEOF
5402#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5403_ACEOF
5404
5405 fi
5406fi
5407
5408# Extract the first word of "passwd", so it can be a program name with args.
5409set dummy passwd; ac_word=$2
5410{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5412if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5414else
5415 case $PATH_PASSWD_PROG in
5416 [\\/]* | ?:[\\/]*)
5417 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5418 ;;
5419 *)
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421for as_dir in $PATH
5422do
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 break 2
5430 fi
5431done
5432done
5433IFS=$as_save_IFS
5434
5435 ;;
5436esac
5437fi
5438PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5439if test -n "$PATH_PASSWD_PROG"; then
5440 { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5441echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5442else
5443 { echo "$as_me:$LINENO: result: no" >&5
5444echo "${ECHO_T}no" >&6; }
5445fi
5446
5447
5448if test ! -z "$PATH_PASSWD_PROG" ; then
5449
5450cat >>confdefs.h <<_ACEOF
5451#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5452_ACEOF
5453
5454fi
5455
5456if test -z "$LD" ; then
5457 LD=$CC
5458fi
5459
5460
5461{ echo "$as_me:$LINENO: checking for inline" >&5
5462echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5463if test "${ac_cv_c_inline+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466 ac_cv_c_inline=no
5467for ac_kw in inline __inline__ __inline; do
5468 cat >conftest.$ac_ext <<_ACEOF
5469/* confdefs.h. */
5470_ACEOF
5471cat confdefs.h >>conftest.$ac_ext
5472cat >>conftest.$ac_ext <<_ACEOF
5473/* end confdefs.h. */
5474#ifndef __cplusplus
5475typedef int foo_t;
5476static $ac_kw foo_t static_foo () {return 0; }
5477$ac_kw foo_t foo () {return 0; }
5478#endif
5479
5480_ACEOF
5481rm -f conftest.$ac_objext
5482if { (ac_try="$ac_compile"
5483case "(($ac_try" in
5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5486esac
5487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488 (eval "$ac_compile") 2>conftest.er1
5489 ac_status=$?
5490 grep -v '^ *+' conftest.er1 >conftest.err
5491 rm -f conftest.er1
5492 cat conftest.err >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } && {
5495 test -z "$ac_c_werror_flag" ||
5496 test ! -s conftest.err
5497 } && test -s conftest.$ac_objext; then
5498 ac_cv_c_inline=$ac_kw
5499else
5500 echo "$as_me: failed program was:" >&5
5501sed 's/^/| /' conftest.$ac_ext >&5
5502
5503
5504fi
5505
5506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507 test "$ac_cv_c_inline" != no && break
5508done
5509
5510fi
5511{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5512echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5513
5514
5515case $ac_cv_c_inline in
5516 inline | yes) ;;
5517 *)
5518 case $ac_cv_c_inline in
5519 no) ac_val=;;
5520 *) ac_val=$ac_cv_c_inline;;
5521 esac
5522 cat >>confdefs.h <<_ACEOF
5523#ifndef __cplusplus
5524#define inline $ac_val
5525#endif
5526_ACEOF
5527 ;;
5528esac
5529
5530
5531{ echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5532echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5533if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5535else
5536 cat >conftest.$ac_ext <<_ACEOF
5537/* confdefs.h. */
5538_ACEOF
5539cat confdefs.h >>conftest.$ac_ext
5540cat >>conftest.$ac_ext <<_ACEOF
5541/* end confdefs.h. */
5542#include <limits.h>
5543
5544int
5545main ()
5546{
5547#ifndef LLONG_MAX
5548 (void) LLONG_MAX;
5549#endif
5550
5551 ;
5552 return 0;
5553}
5554_ACEOF
5555rm -f conftest.$ac_objext
5556if { (ac_try="$ac_compile"
5557case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5560esac
5561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_compile") 2>conftest.er1
5563 ac_status=$?
5564 grep -v '^ *+' conftest.er1 >conftest.err
5565 rm -f conftest.er1
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } && {
5569 test -z "$ac_c_werror_flag" ||
5570 test ! -s conftest.err
5571 } && test -s conftest.$ac_objext; then
5572 ac_cv_have_decl_LLONG_MAX=yes
5573else
5574 echo "$as_me: failed program was:" >&5
5575sed 's/^/| /' conftest.$ac_ext >&5
5576
5577 ac_cv_have_decl_LLONG_MAX=no
5578fi
5579
5580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581fi
5582{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5583echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5584if test $ac_cv_have_decl_LLONG_MAX = yes; then
5585 have_llong_max=1
5586fi
5587
5588{ echo "$as_me:$LINENO: checking whether SYSTR_POLICY_KILL is declared" >&5
5589echo $ECHO_N "checking whether SYSTR_POLICY_KILL is declared... $ECHO_C" >&6; }
5590if test "${ac_cv_have_decl_SYSTR_POLICY_KILL+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5592else
5593 cat >conftest.$ac_ext <<_ACEOF
5594/* confdefs.h. */
5595_ACEOF
5596cat confdefs.h >>conftest.$ac_ext
5597cat >>conftest.$ac_ext <<_ACEOF
5598/* end confdefs.h. */
5599
5600 #include <sys/types.h>
5601 #include <sys/param.h>
5602 #include <dev/systrace.h>
5603
5604
5605int
5606main ()
5607{
5608#ifndef SYSTR_POLICY_KILL
5609 (void) SYSTR_POLICY_KILL;
5610#endif
5611
5612 ;
5613 return 0;
5614}
5615_ACEOF
5616rm -f conftest.$ac_objext
5617if { (ac_try="$ac_compile"
5618case "(($ac_try" in
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5621esac
5622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623 (eval "$ac_compile") 2>conftest.er1
5624 ac_status=$?
5625 grep -v '^ *+' conftest.er1 >conftest.err
5626 rm -f conftest.er1
5627 cat conftest.err >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } && {
5630 test -z "$ac_c_werror_flag" ||
5631 test ! -s conftest.err
5632 } && test -s conftest.$ac_objext; then
5633 ac_cv_have_decl_SYSTR_POLICY_KILL=yes
5634else
5635 echo "$as_me: failed program was:" >&5
5636sed 's/^/| /' conftest.$ac_ext >&5
5637
5638 ac_cv_have_decl_SYSTR_POLICY_KILL=no
5639fi
5640
5641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642fi
5643{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SYSTR_POLICY_KILL" >&5
5644echo "${ECHO_T}$ac_cv_have_decl_SYSTR_POLICY_KILL" >&6; }
5645if test $ac_cv_have_decl_SYSTR_POLICY_KILL = yes; then
5646 have_systr_policy_kill=1
5647fi
5648
5649{ echo "$as_me:$LINENO: checking whether RLIMIT_NPROC is declared" >&5
5650echo $ECHO_N "checking whether RLIMIT_NPROC is declared... $ECHO_C" >&6; }
5651if test "${ac_cv_have_decl_RLIMIT_NPROC+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653else
5654 cat >conftest.$ac_ext <<_ACEOF
5655/* confdefs.h. */
5656_ACEOF
5657cat confdefs.h >>conftest.$ac_ext
5658cat >>conftest.$ac_ext <<_ACEOF
5659/* end confdefs.h. */
5660
5661 #include <sys/types.h>
5662 #include <sys/resource.h>
5663
5664
5665int
5666main ()
5667{
5668#ifndef RLIMIT_NPROC
5669 (void) RLIMIT_NPROC;
5670#endif
5671
5672 ;
5673 return 0;
5674}
5675_ACEOF
5676rm -f conftest.$ac_objext
5677if { (ac_try="$ac_compile"
5678case "(($ac_try" in
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5681esac
5682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_compile") 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } && {
5690 test -z "$ac_c_werror_flag" ||
5691 test ! -s conftest.err
5692 } && test -s conftest.$ac_objext; then
5693 ac_cv_have_decl_RLIMIT_NPROC=yes
5694else
5695 echo "$as_me: failed program was:" >&5
5696sed 's/^/| /' conftest.$ac_ext >&5
5697
5698 ac_cv_have_decl_RLIMIT_NPROC=no
5699fi
5700
5701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702fi
5703{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_RLIMIT_NPROC" >&5
5704echo "${ECHO_T}$ac_cv_have_decl_RLIMIT_NPROC" >&6; }
5705if test $ac_cv_have_decl_RLIMIT_NPROC = yes; then
5706
5707cat >>confdefs.h <<\_ACEOF
5708#define HAVE_RLIMIT_NPROC
5709_ACEOF
5710
5711fi
5712
5713{ echo "$as_me:$LINENO: checking whether PR_SET_NO_NEW_PRIVS is declared" >&5
5714echo $ECHO_N "checking whether PR_SET_NO_NEW_PRIVS is declared... $ECHO_C" >&6; }
5715if test "${ac_cv_have_decl_PR_SET_NO_NEW_PRIVS+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717else
5718 cat >conftest.$ac_ext <<_ACEOF
5719/* confdefs.h. */
5720_ACEOF
5721cat confdefs.h >>conftest.$ac_ext
5722cat >>conftest.$ac_ext <<_ACEOF
5723/* end confdefs.h. */
5724
5725 #include <sys/types.h>
5726 #include <linux/prctl.h>
5727
5728
5729int
5730main ()
5731{
5732#ifndef PR_SET_NO_NEW_PRIVS
5733 (void) PR_SET_NO_NEW_PRIVS;
5734#endif
5735
5736 ;
5737 return 0;
5738}
5739_ACEOF
5740rm -f conftest.$ac_objext
5741if { (ac_try="$ac_compile"
5742case "(($ac_try" in
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5745esac
5746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747 (eval "$ac_compile") 2>conftest.er1
5748 ac_status=$?
5749 grep -v '^ *+' conftest.er1 >conftest.err
5750 rm -f conftest.er1
5751 cat conftest.err >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } && {
5754 test -z "$ac_c_werror_flag" ||
5755 test ! -s conftest.err
5756 } && test -s conftest.$ac_objext; then
5757 ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=yes
5758else
5759 echo "$as_me: failed program was:" >&5
5760sed 's/^/| /' conftest.$ac_ext >&5
5761
5762 ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=no
5763fi
5764
5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766fi
5767{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&5
5768echo "${ECHO_T}$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&6; }
5769if test $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS = yes; then
5770 have_linux_no_new_privs=1
5771fi
5772
5773
5774openssl=yes
5775ssh1=no
5776
5777# Check whether --with-openssl was given.
5778if test "${with_openssl+set}" = set; then
5779 withval=$with_openssl; if test "x$withval" = "xno" ; then
5780 openssl=no
5781 ssh1=no
5782 fi
5783
5784
5785fi
5786
5787{ echo "$as_me:$LINENO: checking whether OpenSSL will be used for cryptography" >&5
5788echo $ECHO_N "checking whether OpenSSL will be used for cryptography... $ECHO_C" >&6; }
5789if test "x$openssl" = "xyes" ; then
5790 { echo "$as_me:$LINENO: result: yes" >&5
5791echo "${ECHO_T}yes" >&6; }
5792
5793cat >>confdefs.h <<_ACEOF
5794#define WITH_OPENSSL 1
5795_ACEOF
5796
5797else
5798 { echo "$as_me:$LINENO: result: no" >&5
5799echo "${ECHO_T}no" >&6; }
5800fi
5801
5802
5803# Check whether --with-ssh1 was given.
5804if test "${with_ssh1+set}" = set; then
5805 withval=$with_ssh1;
5806 if test "x$withval" = "xyes" ; then
5807 if test "x$openssl" = "xno" ; then
5808 { { echo "$as_me:$LINENO: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&5
5809echo "$as_me: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&2;}
5810 { (exit 1); exit 1; }; }
5811 fi
5812 ssh1=yes
5813 elif test "x$withval" = "xno" ; then
5814 ssh1=no
5815 else
5816 { { echo "$as_me:$LINENO: error: unknown --with-ssh1 argument" >&5
5817echo "$as_me: error: unknown --with-ssh1 argument" >&2;}
5818 { (exit 1); exit 1; }; }
5819 fi
5820
5821
5822fi
5823
5824{ echo "$as_me:$LINENO: checking whether SSH protocol 1 support is enabled" >&5
5825echo $ECHO_N "checking whether SSH protocol 1 support is enabled... $ECHO_C" >&6; }
5826if test "x$ssh1" = "xyes" ; then
5827 { echo "$as_me:$LINENO: result: yes" >&5
5828echo "${ECHO_T}yes" >&6; }
5829
5830cat >>confdefs.h <<_ACEOF
5831#define WITH_SSH1 1
5832_ACEOF
5833
5834else
5835 { echo "$as_me:$LINENO: result: no" >&5
5836echo "${ECHO_T}no" >&6; }
5837fi
5838
5839use_stack_protector=1
5840use_toolchain_hardening=1
5841
5842# Check whether --with-stackprotect was given.
5843if test "${with_stackprotect+set}" = set; then
5844 withval=$with_stackprotect;
5845 if test "x$withval" = "xno"; then
5846 use_stack_protector=0
5847 fi
5848fi
5849
5850
5851# Check whether --with-hardening was given.
5852if test "${with_hardening+set}" = set; then
5853 withval=$with_hardening;
5854 if test "x$withval" = "xno"; then
5855 use_toolchain_hardening=0
5856 fi
5857fi
5858
5859
5860# We use -Werror for the tests only so that we catch warnings like "this is
5861# on by default" for things like -fPIE.
5862{ echo "$as_me:$LINENO: checking if $CC supports -Werror" >&5
5863echo $ECHO_N "checking if $CC supports -Werror... $ECHO_C" >&6; }
5864saved_CFLAGS="$CFLAGS"
5865CFLAGS="$CFLAGS -Werror"
5866cat >conftest.$ac_ext <<_ACEOF
5867/* confdefs.h. */
5868_ACEOF
5869cat confdefs.h >>conftest.$ac_ext
5870cat >>conftest.$ac_ext <<_ACEOF
5871/* end confdefs.h. */
5872int main(void) { return 0; }
5873_ACEOF
5874rm -f conftest.$ac_objext
5875if { (ac_try="$ac_compile"
5876case "(($ac_try" in
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5879esac
5880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_compile") 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } && {
5888 test -z "$ac_c_werror_flag" ||
5889 test ! -s conftest.err
5890 } && test -s conftest.$ac_objext; then
5891 { echo "$as_me:$LINENO: result: yes" >&5
5892echo "${ECHO_T}yes" >&6; }
5893 WERROR="-Werror"
5894else
5895 echo "$as_me: failed program was:" >&5
5896sed 's/^/| /' conftest.$ac_ext >&5
5897
5898 { echo "$as_me:$LINENO: result: no" >&5
5899echo "${ECHO_T}no" >&6; }
5900 WERROR=""
5901
5902fi
5903
5904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905CFLAGS="$saved_CFLAGS"
5906
5907if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5908 {
5909 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Qunused-arguments" >&5
5910echo $ECHO_N "checking if $CC supports compile flag -Qunused-arguments... $ECHO_C" >&6; }
5911 saved_CFLAGS="$CFLAGS"
5912 CFLAGS="$CFLAGS $WERROR -Qunused-arguments"
5913 _define_flag=""
5914 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments"
5915 cat >conftest.$ac_ext <<_ACEOF
5916/* confdefs.h. */
5917_ACEOF
5918cat confdefs.h >>conftest.$ac_ext
5919cat >>conftest.$ac_ext <<_ACEOF
5920/* end confdefs.h. */
5921
5922#include <stdlib.h>
5923#include <stdio.h>
5924int main(int argc, char **argv) {
5925 /* Some math to catch -ftrapv problems in the toolchain */
5926 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5927 float l = i * 2.1;
5928 double m = l / 0.5;
5929 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5930 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5931 exit(0);
5932}
5933
5934_ACEOF
5935rm -f conftest.$ac_objext
5936if { (ac_try="$ac_compile"
5937case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5940esac
5941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_compile") 2>conftest.er1
5943 ac_status=$?
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } && {
5949 test -z "$ac_c_werror_flag" ||
5950 test ! -s conftest.err
5951 } && test -s conftest.$ac_objext; then
5952
5953if `grep -i "unrecognized option" conftest.err >/dev/null`
5954then
5955 { echo "$as_me:$LINENO: result: no" >&5
5956echo "${ECHO_T}no" >&6; }
5957 CFLAGS="$saved_CFLAGS"
5958else
5959 { echo "$as_me:$LINENO: result: yes" >&5
5960echo "${ECHO_T}yes" >&6; }
5961 CFLAGS="$saved_CFLAGS $_define_flag"
5962fi
5963else
5964 echo "$as_me: failed program was:" >&5
5965sed 's/^/| /' conftest.$ac_ext >&5
5966
5967 { echo "$as_me:$LINENO: result: no" >&5
5968echo "${ECHO_T}no" >&6; }
5969 CFLAGS="$saved_CFLAGS"
5970
5971fi
5972
5973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974}
5975 {
5976 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunknown-warning-option" >&5
5977echo $ECHO_N "checking if $CC supports compile flag -Wunknown-warning-option... $ECHO_C" >&6; }
5978 saved_CFLAGS="$CFLAGS"
5979 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option"
5980 _define_flag=""
5981 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option"
5982 cat >conftest.$ac_ext <<_ACEOF
5983/* confdefs.h. */
5984_ACEOF
5985cat confdefs.h >>conftest.$ac_ext
5986cat >>conftest.$ac_ext <<_ACEOF
5987/* end confdefs.h. */
5988
5989#include <stdlib.h>
5990#include <stdio.h>
5991int main(int argc, char **argv) {
5992 /* Some math to catch -ftrapv problems in the toolchain */
5993 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5994 float l = i * 2.1;
5995 double m = l / 0.5;
5996 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5997 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5998 exit(0);
5999}
6000
6001_ACEOF
6002rm -f conftest.$ac_objext
6003if { (ac_try="$ac_compile"
6004case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007esac
6008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_compile") 2>conftest.er1
6010 ac_status=$?
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } && {
6016 test -z "$ac_c_werror_flag" ||
6017 test ! -s conftest.err
6018 } && test -s conftest.$ac_objext; then
6019
6020if `grep -i "unrecognized option" conftest.err >/dev/null`
6021then
6022 { echo "$as_me:$LINENO: result: no" >&5
6023echo "${ECHO_T}no" >&6; }
6024 CFLAGS="$saved_CFLAGS"
6025else
6026 { echo "$as_me:$LINENO: result: yes" >&5
6027echo "${ECHO_T}yes" >&6; }
6028 CFLAGS="$saved_CFLAGS $_define_flag"
6029fi
6030else
6031 echo "$as_me: failed program was:" >&5
6032sed 's/^/| /' conftest.$ac_ext >&5
6033
6034 { echo "$as_me:$LINENO: result: no" >&5
6035echo "${ECHO_T}no" >&6; }
6036 CFLAGS="$saved_CFLAGS"
6037
6038fi
6039
6040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041}
6042 {
6043 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wall" >&5
6044echo $ECHO_N "checking if $CC supports compile flag -Wall... $ECHO_C" >&6; }
6045 saved_CFLAGS="$CFLAGS"
6046 CFLAGS="$CFLAGS $WERROR -Wall"
6047 _define_flag=""
6048 test "x$_define_flag" = "x" && _define_flag="-Wall"
6049 cat >conftest.$ac_ext <<_ACEOF
6050/* confdefs.h. */
6051_ACEOF
6052cat confdefs.h >>conftest.$ac_ext
6053cat >>conftest.$ac_ext <<_ACEOF
6054/* end confdefs.h. */
6055
6056#include <stdlib.h>
6057#include <stdio.h>
6058int main(int argc, char **argv) {
6059 /* Some math to catch -ftrapv problems in the toolchain */
6060 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6061 float l = i * 2.1;
6062 double m = l / 0.5;
6063 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6064 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6065 exit(0);
6066}
6067
6068_ACEOF
6069rm -f conftest.$ac_objext
6070if { (ac_try="$ac_compile"
6071case "(($ac_try" in
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6074esac
6075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_compile") 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } && {
6083 test -z "$ac_c_werror_flag" ||
6084 test ! -s conftest.err
6085 } && test -s conftest.$ac_objext; then
6086
6087if `grep -i "unrecognized option" conftest.err >/dev/null`
6088then
6089 { echo "$as_me:$LINENO: result: no" >&5
6090echo "${ECHO_T}no" >&6; }
6091 CFLAGS="$saved_CFLAGS"
6092else
6093 { echo "$as_me:$LINENO: result: yes" >&5
6094echo "${ECHO_T}yes" >&6; }
6095 CFLAGS="$saved_CFLAGS $_define_flag"
6096fi
6097else
6098 echo "$as_me: failed program was:" >&5
6099sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 { echo "$as_me:$LINENO: result: no" >&5
6102echo "${ECHO_T}no" >&6; }
6103 CFLAGS="$saved_CFLAGS"
6104
6105fi
6106
6107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108}
6109 {
6110 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-arith" >&5
6111echo $ECHO_N "checking if $CC supports compile flag -Wpointer-arith... $ECHO_C" >&6; }
6112 saved_CFLAGS="$CFLAGS"
6113 CFLAGS="$CFLAGS $WERROR -Wpointer-arith"
6114 _define_flag=""
6115 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
6116 cat >conftest.$ac_ext <<_ACEOF
6117/* confdefs.h. */
6118_ACEOF
6119cat confdefs.h >>conftest.$ac_ext
6120cat >>conftest.$ac_ext <<_ACEOF
6121/* end confdefs.h. */
6122
6123#include <stdlib.h>
6124#include <stdio.h>
6125int main(int argc, char **argv) {
6126 /* Some math to catch -ftrapv problems in the toolchain */
6127 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6128 float l = i * 2.1;
6129 double m = l / 0.5;
6130 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6131 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6132 exit(0);
6133}
6134
6135_ACEOF
6136rm -f conftest.$ac_objext
6137if { (ac_try="$ac_compile"
6138case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141esac
6142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_compile") 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } && {
6150 test -z "$ac_c_werror_flag" ||
6151 test ! -s conftest.err
6152 } && test -s conftest.$ac_objext; then
6153
6154if `grep -i "unrecognized option" conftest.err >/dev/null`
6155then
6156 { echo "$as_me:$LINENO: result: no" >&5
6157echo "${ECHO_T}no" >&6; }
6158 CFLAGS="$saved_CFLAGS"
6159else
6160 { echo "$as_me:$LINENO: result: yes" >&5
6161echo "${ECHO_T}yes" >&6; }
6162 CFLAGS="$saved_CFLAGS $_define_flag"
6163fi
6164else
6165 echo "$as_me: failed program was:" >&5
6166sed 's/^/| /' conftest.$ac_ext >&5
6167
6168 { echo "$as_me:$LINENO: result: no" >&5
6169echo "${ECHO_T}no" >&6; }
6170 CFLAGS="$saved_CFLAGS"
6171
6172fi
6173
6174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175}
6176 {
6177 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wuninitialized" >&5
6178echo $ECHO_N "checking if $CC supports compile flag -Wuninitialized... $ECHO_C" >&6; }
6179 saved_CFLAGS="$CFLAGS"
6180 CFLAGS="$CFLAGS $WERROR -Wuninitialized"
6181 _define_flag=""
6182 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
6183 cat >conftest.$ac_ext <<_ACEOF
6184/* confdefs.h. */
6185_ACEOF
6186cat confdefs.h >>conftest.$ac_ext
6187cat >>conftest.$ac_ext <<_ACEOF
6188/* end confdefs.h. */
6189
6190#include <stdlib.h>
6191#include <stdio.h>
6192int main(int argc, char **argv) {
6193 /* Some math to catch -ftrapv problems in the toolchain */
6194 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6195 float l = i * 2.1;
6196 double m = l / 0.5;
6197 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6198 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6199 exit(0);
6200}
6201
6202_ACEOF
6203rm -f conftest.$ac_objext
6204if { (ac_try="$ac_compile"
6205case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208esac
6209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_compile") 2>conftest.er1
6211 ac_status=$?
6212 grep -v '^ *+' conftest.er1 >conftest.err
6213 rm -f conftest.er1
6214 cat conftest.err >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
6220
6221if `grep -i "unrecognized option" conftest.err >/dev/null`
6222then
6223 { echo "$as_me:$LINENO: result: no" >&5
6224echo "${ECHO_T}no" >&6; }
6225 CFLAGS="$saved_CFLAGS"
6226else
6227 { echo "$as_me:$LINENO: result: yes" >&5
6228echo "${ECHO_T}yes" >&6; }
6229 CFLAGS="$saved_CFLAGS $_define_flag"
6230fi
6231else
6232 echo "$as_me: failed program was:" >&5
6233sed 's/^/| /' conftest.$ac_ext >&5
6234
6235 { echo "$as_me:$LINENO: result: no" >&5
6236echo "${ECHO_T}no" >&6; }
6237 CFLAGS="$saved_CFLAGS"
6238
6239fi
6240
6241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242}
6243 {
6244 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsign-compare" >&5
6245echo $ECHO_N "checking if $CC supports compile flag -Wsign-compare... $ECHO_C" >&6; }
6246 saved_CFLAGS="$CFLAGS"
6247 CFLAGS="$CFLAGS $WERROR -Wsign-compare"
6248 _define_flag=""
6249 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
6250 cat >conftest.$ac_ext <<_ACEOF
6251/* confdefs.h. */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h. */
6256
6257#include <stdlib.h>
6258#include <stdio.h>
6259int main(int argc, char **argv) {
6260 /* Some math to catch -ftrapv problems in the toolchain */
6261 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6262 float l = i * 2.1;
6263 double m = l / 0.5;
6264 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6265 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6266 exit(0);
6267}
6268
6269_ACEOF
6270rm -f conftest.$ac_objext
6271if { (ac_try="$ac_compile"
6272case "(($ac_try" in
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6275esac
6276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277 (eval "$ac_compile") 2>conftest.er1
6278 ac_status=$?
6279 grep -v '^ *+' conftest.er1 >conftest.err
6280 rm -f conftest.er1
6281 cat conftest.err >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } && {
6284 test -z "$ac_c_werror_flag" ||
6285 test ! -s conftest.err
6286 } && test -s conftest.$ac_objext; then
6287
6288if `grep -i "unrecognized option" conftest.err >/dev/null`
6289then
6290 { echo "$as_me:$LINENO: result: no" >&5
6291echo "${ECHO_T}no" >&6; }
6292 CFLAGS="$saved_CFLAGS"
6293else
6294 { echo "$as_me:$LINENO: result: yes" >&5
6295echo "${ECHO_T}yes" >&6; }
6296 CFLAGS="$saved_CFLAGS $_define_flag"
6297fi
6298else
6299 echo "$as_me: failed program was:" >&5
6300sed 's/^/| /' conftest.$ac_ext >&5
6301
6302 { echo "$as_me:$LINENO: result: no" >&5
6303echo "${ECHO_T}no" >&6; }
6304 CFLAGS="$saved_CFLAGS"
6305
6306fi
6307
6308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309}
6310 {
6311 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wformat-security" >&5
6312echo $ECHO_N "checking if $CC supports compile flag -Wformat-security... $ECHO_C" >&6; }
6313 saved_CFLAGS="$CFLAGS"
6314 CFLAGS="$CFLAGS $WERROR -Wformat-security"
6315 _define_flag=""
6316 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
6317 cat >conftest.$ac_ext <<_ACEOF
6318/* confdefs.h. */
6319_ACEOF
6320cat confdefs.h >>conftest.$ac_ext
6321cat >>conftest.$ac_ext <<_ACEOF
6322/* end confdefs.h. */
6323
6324#include <stdlib.h>
6325#include <stdio.h>
6326int main(int argc, char **argv) {
6327 /* Some math to catch -ftrapv problems in the toolchain */
6328 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6329 float l = i * 2.1;
6330 double m = l / 0.5;
6331 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6332 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6333 exit(0);
6334}
6335
6336_ACEOF
6337rm -f conftest.$ac_objext
6338if { (ac_try="$ac_compile"
6339case "(($ac_try" in
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6342esac
6343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_compile") 2>conftest.er1
6345 ac_status=$?
6346 grep -v '^ *+' conftest.er1 >conftest.err
6347 rm -f conftest.er1
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } && {
6351 test -z "$ac_c_werror_flag" ||
6352 test ! -s conftest.err
6353 } && test -s conftest.$ac_objext; then
6354
6355if `grep -i "unrecognized option" conftest.err >/dev/null`
6356then
6357 { echo "$as_me:$LINENO: result: no" >&5
6358echo "${ECHO_T}no" >&6; }
6359 CFLAGS="$saved_CFLAGS"
6360else
6361 { echo "$as_me:$LINENO: result: yes" >&5
6362echo "${ECHO_T}yes" >&6; }
6363 CFLAGS="$saved_CFLAGS $_define_flag"
6364fi
6365else
6366 echo "$as_me: failed program was:" >&5
6367sed 's/^/| /' conftest.$ac_ext >&5
6368
6369 { echo "$as_me:$LINENO: result: no" >&5
6370echo "${ECHO_T}no" >&6; }
6371 CFLAGS="$saved_CFLAGS"
6372
6373fi
6374
6375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376}
6377 {
6378 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5
6379echo $ECHO_N "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... $ECHO_C" >&6; }
6380 saved_CFLAGS="$CFLAGS"
6381 CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess"
6382 _define_flag=""
6383 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess"
6384 cat >conftest.$ac_ext <<_ACEOF
6385/* confdefs.h. */
6386_ACEOF
6387cat confdefs.h >>conftest.$ac_ext
6388cat >>conftest.$ac_ext <<_ACEOF
6389/* end confdefs.h. */
6390
6391#include <stdlib.h>
6392#include <stdio.h>
6393int main(int argc, char **argv) {
6394 /* Some math to catch -ftrapv problems in the toolchain */
6395 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6396 float l = i * 2.1;
6397 double m = l / 0.5;
6398 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6399 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6400 exit(0);
6401}
6402
6403_ACEOF
6404rm -f conftest.$ac_objext
6405if { (ac_try="$ac_compile"
6406case "(($ac_try" in
6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6409esac
6410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411 (eval "$ac_compile") 2>conftest.er1
6412 ac_status=$?
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } && {
6418 test -z "$ac_c_werror_flag" ||
6419 test ! -s conftest.err
6420 } && test -s conftest.$ac_objext; then
6421
6422if `grep -i "unrecognized option" conftest.err >/dev/null`
6423then
6424 { echo "$as_me:$LINENO: result: no" >&5
6425echo "${ECHO_T}no" >&6; }
6426 CFLAGS="$saved_CFLAGS"
6427else
6428 { echo "$as_me:$LINENO: result: yes" >&5
6429echo "${ECHO_T}yes" >&6; }
6430 CFLAGS="$saved_CFLAGS $_define_flag"
6431fi
6432else
6433 echo "$as_me: failed program was:" >&5
6434sed 's/^/| /' conftest.$ac_ext >&5
6435
6436 { echo "$as_me:$LINENO: result: no" >&5
6437echo "${ECHO_T}no" >&6; }
6438 CFLAGS="$saved_CFLAGS"
6439
6440fi
6441
6442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443}
6444 {
6445 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-sign" >&5
6446echo $ECHO_N "checking if $CC supports compile flag -Wpointer-sign... $ECHO_C" >&6; }
6447 saved_CFLAGS="$CFLAGS"
6448 CFLAGS="$CFLAGS $WERROR -Wpointer-sign"
6449 _define_flag="-Wno-pointer-sign"
6450 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
6451 cat >conftest.$ac_ext <<_ACEOF
6452/* confdefs.h. */
6453_ACEOF
6454cat confdefs.h >>conftest.$ac_ext
6455cat >>conftest.$ac_ext <<_ACEOF
6456/* end confdefs.h. */
6457
6458#include <stdlib.h>
6459#include <stdio.h>
6460int main(int argc, char **argv) {
6461 /* Some math to catch -ftrapv problems in the toolchain */
6462 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6463 float l = i * 2.1;
6464 double m = l / 0.5;
6465 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6466 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6467 exit(0);
6468}
6469
6470_ACEOF
6471rm -f conftest.$ac_objext
6472if { (ac_try="$ac_compile"
6473case "(($ac_try" in
6474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6476esac
6477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478 (eval "$ac_compile") 2>conftest.er1
6479 ac_status=$?
6480 grep -v '^ *+' conftest.er1 >conftest.err
6481 rm -f conftest.er1
6482 cat conftest.err >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } && {
6485 test -z "$ac_c_werror_flag" ||
6486 test ! -s conftest.err
6487 } && test -s conftest.$ac_objext; then
6488
6489if `grep -i "unrecognized option" conftest.err >/dev/null`
6490then
6491 { echo "$as_me:$LINENO: result: no" >&5
6492echo "${ECHO_T}no" >&6; }
6493 CFLAGS="$saved_CFLAGS"
6494else
6495 { echo "$as_me:$LINENO: result: yes" >&5
6496echo "${ECHO_T}yes" >&6; }
6497 CFLAGS="$saved_CFLAGS $_define_flag"
6498fi
6499else
6500 echo "$as_me: failed program was:" >&5
6501sed 's/^/| /' conftest.$ac_ext >&5
6502
6503 { echo "$as_me:$LINENO: result: no" >&5
6504echo "${ECHO_T}no" >&6; }
6505 CFLAGS="$saved_CFLAGS"
6506
6507fi
6508
6509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6510}
6511 {
6512 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunused-result" >&5
6513echo $ECHO_N "checking if $CC supports compile flag -Wunused-result... $ECHO_C" >&6; }
6514 saved_CFLAGS="$CFLAGS"
6515 CFLAGS="$CFLAGS $WERROR -Wunused-result"
6516 _define_flag="-Wno-unused-result"
6517 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
6518 cat >conftest.$ac_ext <<_ACEOF
6519/* confdefs.h. */
6520_ACEOF
6521cat confdefs.h >>conftest.$ac_ext
6522cat >>conftest.$ac_ext <<_ACEOF
6523/* end confdefs.h. */
6524
6525#include <stdlib.h>
6526#include <stdio.h>
6527int main(int argc, char **argv) {
6528 /* Some math to catch -ftrapv problems in the toolchain */
6529 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6530 float l = i * 2.1;
6531 double m = l / 0.5;
6532 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6533 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6534 exit(0);
6535}
6536
6537_ACEOF
6538rm -f conftest.$ac_objext
6539if { (ac_try="$ac_compile"
6540case "(($ac_try" in
6541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542 *) ac_try_echo=$ac_try;;
6543esac
6544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6545 (eval "$ac_compile") 2>conftest.er1
6546 ac_status=$?
6547 grep -v '^ *+' conftest.er1 >conftest.err
6548 rm -f conftest.er1
6549 cat conftest.err >&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && {
6552 test -z "$ac_c_werror_flag" ||
6553 test ! -s conftest.err
6554 } && test -s conftest.$ac_objext; then
6555
6556if `grep -i "unrecognized option" conftest.err >/dev/null`
6557then
6558 { echo "$as_me:$LINENO: result: no" >&5
6559echo "${ECHO_T}no" >&6; }
6560 CFLAGS="$saved_CFLAGS"
6561else
6562 { echo "$as_me:$LINENO: result: yes" >&5
6563echo "${ECHO_T}yes" >&6; }
6564 CFLAGS="$saved_CFLAGS $_define_flag"
6565fi
6566else
6567 echo "$as_me: failed program was:" >&5
6568sed 's/^/| /' conftest.$ac_ext >&5
6569
6570 { echo "$as_me:$LINENO: result: no" >&5
6571echo "${ECHO_T}no" >&6; }
6572 CFLAGS="$saved_CFLAGS"
6573
6574fi
6575
6576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577}
6578 {
6579 { echo "$as_me:$LINENO: checking if $CC supports compile flag -fno-strict-aliasing" >&5
6580echo $ECHO_N "checking if $CC supports compile flag -fno-strict-aliasing... $ECHO_C" >&6; }
6581 saved_CFLAGS="$CFLAGS"
6582 CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing"
6583 _define_flag=""
6584 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
6585 cat >conftest.$ac_ext <<_ACEOF
6586/* confdefs.h. */
6587_ACEOF
6588cat confdefs.h >>conftest.$ac_ext
6589cat >>conftest.$ac_ext <<_ACEOF
6590/* end confdefs.h. */
6591
6592#include <stdlib.h>
6593#include <stdio.h>
6594int main(int argc, char **argv) {
6595 /* Some math to catch -ftrapv problems in the toolchain */
6596 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6597 float l = i * 2.1;
6598 double m = l / 0.5;
6599 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6600 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6601 exit(0);
6602}
6603
6604_ACEOF
6605rm -f conftest.$ac_objext
6606if { (ac_try="$ac_compile"
6607case "(($ac_try" in
6608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609 *) ac_try_echo=$ac_try;;
6610esac
6611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612 (eval "$ac_compile") 2>conftest.er1
6613 ac_status=$?
6614 grep -v '^ *+' conftest.er1 >conftest.err
6615 rm -f conftest.er1
6616 cat conftest.err >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } && {
6619 test -z "$ac_c_werror_flag" ||
6620 test ! -s conftest.err
6621 } && test -s conftest.$ac_objext; then
6622
6623if `grep -i "unrecognized option" conftest.err >/dev/null`
6624then
6625 { echo "$as_me:$LINENO: result: no" >&5
6626echo "${ECHO_T}no" >&6; }
6627 CFLAGS="$saved_CFLAGS"
6628else
6629 { echo "$as_me:$LINENO: result: yes" >&5
6630echo "${ECHO_T}yes" >&6; }
6631 CFLAGS="$saved_CFLAGS $_define_flag"
6632fi
6633else
6634 echo "$as_me: failed program was:" >&5
6635sed 's/^/| /' conftest.$ac_ext >&5
6636
6637 { echo "$as_me:$LINENO: result: no" >&5
6638echo "${ECHO_T}no" >&6; }
6639 CFLAGS="$saved_CFLAGS"
6640
6641fi
6642
6643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644}
6645 {
6646 { echo "$as_me:$LINENO: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5
6647echo $ECHO_N "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... $ECHO_C" >&6; }
6648 saved_CFLAGS="$CFLAGS"
6649 CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2"
6650 _define_flag=""
6651 test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2"
6652 cat >conftest.$ac_ext <<_ACEOF
6653/* confdefs.h. */
6654_ACEOF
6655cat confdefs.h >>conftest.$ac_ext
6656cat >>conftest.$ac_ext <<_ACEOF
6657/* end confdefs.h. */
6658
6659#include <stdlib.h>
6660#include <stdio.h>
6661int main(int argc, char **argv) {
6662 /* Some math to catch -ftrapv problems in the toolchain */
6663 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6664 float l = i * 2.1;
6665 double m = l / 0.5;
6666 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6667 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6668 exit(0);
6669}
6670
6671_ACEOF
6672rm -f conftest.$ac_objext
6673if { (ac_try="$ac_compile"
6674case "(($ac_try" in
6675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6676 *) ac_try_echo=$ac_try;;
6677esac
6678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6679 (eval "$ac_compile") 2>conftest.er1
6680 ac_status=$?
6681 grep -v '^ *+' conftest.er1 >conftest.err
6682 rm -f conftest.er1
6683 cat conftest.err >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } && {
6686 test -z "$ac_c_werror_flag" ||
6687 test ! -s conftest.err
6688 } && test -s conftest.$ac_objext; then
6689
6690if `grep -i "unrecognized option" conftest.err >/dev/null`
6691then
6692 { echo "$as_me:$LINENO: result: no" >&5
6693echo "${ECHO_T}no" >&6; }
6694 CFLAGS="$saved_CFLAGS"
6695else
6696 { echo "$as_me:$LINENO: result: yes" >&5
6697echo "${ECHO_T}yes" >&6; }
6698 CFLAGS="$saved_CFLAGS $_define_flag"
6699fi
6700else
6701 echo "$as_me: failed program was:" >&5
6702sed 's/^/| /' conftest.$ac_ext >&5
6703
6704 { echo "$as_me:$LINENO: result: no" >&5
6705echo "${ECHO_T}no" >&6; }
6706 CFLAGS="$saved_CFLAGS"
6707
6708fi
6709
6710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711}
6712 if test "x$use_toolchain_hardening" = "x1"; then
6713 {
6714 { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,relro" >&5
6715echo $ECHO_N "checking if $LD supports link flag -Wl,-z,relro... $ECHO_C" >&6; }
6716 saved_LDFLAGS="$LDFLAGS"
6717 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro"
6718 _define_flag=""
6719 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro"
6720 cat >conftest.$ac_ext <<_ACEOF
6721/* confdefs.h. */
6722_ACEOF
6723cat confdefs.h >>conftest.$ac_ext
6724cat >>conftest.$ac_ext <<_ACEOF
6725/* end confdefs.h. */
6726
6727#include <stdlib.h>
6728#include <stdio.h>
6729int main(int argc, char **argv) {
6730 /* Some math to catch -ftrapv problems in the toolchain */
6731 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6732 float l = i * 2.1;
6733 double m = l / 0.5;
6734 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6735 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6736 exit(0);
6737}
6738
6739_ACEOF
6740rm -f conftest.$ac_objext conftest$ac_exeext
6741if { (ac_try="$ac_link"
6742case "(($ac_try" in
6743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6744 *) ac_try_echo=$ac_try;;
6745esac
6746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6747 (eval "$ac_link") 2>conftest.er1
6748 ac_status=$?
6749 grep -v '^ *+' conftest.er1 >conftest.err
6750 rm -f conftest.er1
6751 cat conftest.err >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } && {
6754 test -z "$ac_c_werror_flag" ||
6755 test ! -s conftest.err
6756 } && test -s conftest$ac_exeext &&
6757 $as_test_x conftest$ac_exeext; then
6758 { echo "$as_me:$LINENO: result: yes" >&5
6759echo "${ECHO_T}yes" >&6; }
6760 LDFLAGS="$saved_LDFLAGS $_define_flag"
6761else
6762 echo "$as_me: failed program was:" >&5
6763sed 's/^/| /' conftest.$ac_ext >&5
6764
6765 { echo "$as_me:$LINENO: result: no" >&5
6766echo "${ECHO_T}no" >&6; }
6767 LDFLAGS="$saved_LDFLAGS"
6768
6769fi
6770
6771rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6772 conftest$ac_exeext conftest.$ac_ext
6773}
6774 {
6775 { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,now" >&5
6776echo $ECHO_N "checking if $LD supports link flag -Wl,-z,now... $ECHO_C" >&6; }
6777 saved_LDFLAGS="$LDFLAGS"
6778 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now"
6779 _define_flag=""
6780 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now"
6781 cat >conftest.$ac_ext <<_ACEOF
6782/* confdefs.h. */
6783_ACEOF
6784cat confdefs.h >>conftest.$ac_ext
6785cat >>conftest.$ac_ext <<_ACEOF
6786/* end confdefs.h. */
6787
6788#include <stdlib.h>
6789#include <stdio.h>
6790int main(int argc, char **argv) {
6791 /* Some math to catch -ftrapv problems in the toolchain */
6792 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6793 float l = i * 2.1;
6794 double m = l / 0.5;
6795 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6796 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6797 exit(0);
6798}
6799
6800_ACEOF
6801rm -f conftest.$ac_objext conftest$ac_exeext
6802if { (ac_try="$ac_link"
6803case "(($ac_try" in
6804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805 *) ac_try_echo=$ac_try;;
6806esac
6807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6808 (eval "$ac_link") 2>conftest.er1
6809 ac_status=$?
6810 grep -v '^ *+' conftest.er1 >conftest.err
6811 rm -f conftest.er1
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } && {
6815 test -z "$ac_c_werror_flag" ||
6816 test ! -s conftest.err
6817 } && test -s conftest$ac_exeext &&
6818 $as_test_x conftest$ac_exeext; then
6819 { echo "$as_me:$LINENO: result: yes" >&5
6820echo "${ECHO_T}yes" >&6; }
6821 LDFLAGS="$saved_LDFLAGS $_define_flag"
6822else
6823 echo "$as_me: failed program was:" >&5
6824sed 's/^/| /' conftest.$ac_ext >&5
6825
6826 { echo "$as_me:$LINENO: result: no" >&5
6827echo "${ECHO_T}no" >&6; }
6828 LDFLAGS="$saved_LDFLAGS"
6829
6830fi
6831
6832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6833 conftest$ac_exeext conftest.$ac_ext
6834}
6835 {
6836 { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,noexecstack" >&5
6837echo $ECHO_N "checking if $LD supports link flag -Wl,-z,noexecstack... $ECHO_C" >&6; }
6838 saved_LDFLAGS="$LDFLAGS"
6839 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack"
6840 _define_flag=""
6841 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack"
6842 cat >conftest.$ac_ext <<_ACEOF
6843/* confdefs.h. */
6844_ACEOF
6845cat confdefs.h >>conftest.$ac_ext
6846cat >>conftest.$ac_ext <<_ACEOF
6847/* end confdefs.h. */
6848
6849#include <stdlib.h>
6850#include <stdio.h>
6851int main(int argc, char **argv) {
6852 /* Some math to catch -ftrapv problems in the toolchain */
6853 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6854 float l = i * 2.1;
6855 double m = l / 0.5;
6856 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6857 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6858 exit(0);
6859}
6860
6861_ACEOF
6862rm -f conftest.$ac_objext conftest$ac_exeext
6863if { (ac_try="$ac_link"
6864case "(($ac_try" in
6865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6866 *) ac_try_echo=$ac_try;;
6867esac
6868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6869 (eval "$ac_link") 2>conftest.er1
6870 ac_status=$?
6871 grep -v '^ *+' conftest.er1 >conftest.err
6872 rm -f conftest.er1
6873 cat conftest.err >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); } && {
6876 test -z "$ac_c_werror_flag" ||
6877 test ! -s conftest.err
6878 } && test -s conftest$ac_exeext &&
6879 $as_test_x conftest$ac_exeext; then
6880 { echo "$as_me:$LINENO: result: yes" >&5
6881echo "${ECHO_T}yes" >&6; }
6882 LDFLAGS="$saved_LDFLAGS $_define_flag"
6883else
6884 echo "$as_me: failed program was:" >&5
6885sed 's/^/| /' conftest.$ac_ext >&5
6886
6887 { echo "$as_me:$LINENO: result: no" >&5
6888echo "${ECHO_T}no" >&6; }
6889 LDFLAGS="$saved_LDFLAGS"
6890
6891fi
6892
6893rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6894 conftest$ac_exeext conftest.$ac_ext
6895}
6896 # NB. -ftrapv expects certain support functions to be present in
6897 # the compiler library (libgcc or similar) to detect integer operations
6898 # that can overflow. We must check that the result of enabling it
6899 # actually links. The test program compiled/linked includes a number
6900 # of integer operations that should exercise this.
6901 {
6902 { echo "$as_me:$LINENO: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5
6903echo $ECHO_N "checking if $CC supports compile flag -ftrapv and linking succeeds... $ECHO_C" >&6; }
6904 saved_CFLAGS="$CFLAGS"
6905 CFLAGS="$CFLAGS $WERROR -ftrapv"
6906 _define_flag=""
6907 test "x$_define_flag" = "x" && _define_flag="-ftrapv"
6908 cat >conftest.$ac_ext <<_ACEOF
6909/* confdefs.h. */
6910_ACEOF
6911cat confdefs.h >>conftest.$ac_ext
6912cat >>conftest.$ac_ext <<_ACEOF
6913/* end confdefs.h. */
6914
6915#include <stdlib.h>
6916#include <stdio.h>
6917int main(int argc, char **argv) {
6918 /* Some math to catch -ftrapv problems in the toolchain */
6919 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6920 float l = i * 2.1;
6921 double m = l / 0.5;
6922 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6923 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6924 exit(0);
6925}
6926
6927_ACEOF
6928rm -f conftest.$ac_objext conftest$ac_exeext
6929if { (ac_try="$ac_link"
6930case "(($ac_try" in
6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6933esac
6934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_link") 2>conftest.er1
6936 ac_status=$?
6937 grep -v '^ *+' conftest.er1 >conftest.err
6938 rm -f conftest.er1
6939 cat conftest.err >&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } && {
6942 test -z "$ac_c_werror_flag" ||
6943 test ! -s conftest.err
6944 } && test -s conftest$ac_exeext &&
6945 $as_test_x conftest$ac_exeext; then
6946
6947if `grep -i "unrecognized option" conftest.err >/dev/null`
6948then
6949 { echo "$as_me:$LINENO: result: no" >&5
6950echo "${ECHO_T}no" >&6; }
6951 CFLAGS="$saved_CFLAGS"
6952else
6953 { echo "$as_me:$LINENO: result: yes" >&5
6954echo "${ECHO_T}yes" >&6; }
6955 CFLAGS="$saved_CFLAGS $_define_flag"
6956fi
6957else
6958 echo "$as_me: failed program was:" >&5
6959sed 's/^/| /' conftest.$ac_ext >&5
6960
6961 { echo "$as_me:$LINENO: result: no" >&5
6962echo "${ECHO_T}no" >&6; }
6963 CFLAGS="$saved_CFLAGS"
6964
6965fi
6966
6967rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6968 conftest$ac_exeext conftest.$ac_ext
6969}
6970 fi
6971 { echo "$as_me:$LINENO: checking gcc version" >&5
6972echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
6973 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
6974 case $GCC_VER in
6975 1.*) no_attrib_nonnull=1 ;;
6976 2.8* | 2.9*)
6977 no_attrib_nonnull=1
6978 ;;
6979 2.*) no_attrib_nonnull=1 ;;
6980 *) ;;
6981 esac
6982 { echo "$as_me:$LINENO: result: $GCC_VER" >&5
6983echo "${ECHO_T}$GCC_VER" >&6; }
6984
6985 { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5
6986echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; }
6987 saved_CFLAGS="$CFLAGS"
6988 CFLAGS="$CFLAGS -fno-builtin-memset"
6989 cat >conftest.$ac_ext <<_ACEOF
6990/* confdefs.h. */
6991_ACEOF
6992cat confdefs.h >>conftest.$ac_ext
6993cat >>conftest.$ac_ext <<_ACEOF
6994/* end confdefs.h. */
6995 #include <string.h>
6996int
6997main ()
6998{
6999 char b[10]; memset(b, 0, sizeof(b));
7000 ;
7001 return 0;
7002}
7003_ACEOF
7004rm -f conftest.$ac_objext conftest$ac_exeext
7005if { (ac_try="$ac_link"
7006case "(($ac_try" in
7007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7008 *) ac_try_echo=$ac_try;;
7009esac
7010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7011 (eval "$ac_link") 2>conftest.er1
7012 ac_status=$?
7013 grep -v '^ *+' conftest.er1 >conftest.err
7014 rm -f conftest.er1
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } && {
7018 test -z "$ac_c_werror_flag" ||
7019 test ! -s conftest.err
7020 } && test -s conftest$ac_exeext &&
7021 $as_test_x conftest$ac_exeext; then
7022 { echo "$as_me:$LINENO: result: yes" >&5
7023echo "${ECHO_T}yes" >&6; }
7024else
7025 echo "$as_me: failed program was:" >&5
7026sed 's/^/| /' conftest.$ac_ext >&5
7027
7028 { echo "$as_me:$LINENO: result: no" >&5
7029echo "${ECHO_T}no" >&6; }
7030 CFLAGS="$saved_CFLAGS"
7031
7032fi
7033
7034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7035 conftest$ac_exeext conftest.$ac_ext
7036
7037 # -fstack-protector-all doesn't always work for some GCC versions
7038 # and/or platforms, so we test if we can. If it's not supported
7039 # on a given platform gcc will emit a warning so we use -Werror.
7040 if test "x$use_stack_protector" = "x1"; then
7041 for t in -fstack-protector-strong -fstack-protector-all \
7042 -fstack-protector; do
7043 { echo "$as_me:$LINENO: checking if $CC supports $t" >&5
7044echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; }
7045 saved_CFLAGS="$CFLAGS"
7046 saved_LDFLAGS="$LDFLAGS"
7047 CFLAGS="$CFLAGS $t -Werror"
7048 LDFLAGS="$LDFLAGS $t -Werror"
7049 cat >conftest.$ac_ext <<_ACEOF
7050/* confdefs.h. */
7051_ACEOF
7052cat confdefs.h >>conftest.$ac_ext
7053cat >>conftest.$ac_ext <<_ACEOF
7054/* end confdefs.h. */
7055 #include <stdio.h>
7056int
7057main ()
7058{
7059
7060 char x[256];
7061 snprintf(x, sizeof(x), "XXX");
7062
7063 ;
7064 return 0;
7065}
7066_ACEOF
7067rm -f conftest.$ac_objext conftest$ac_exeext
7068if { (ac_try="$ac_link"
7069case "(($ac_try" in
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7072esac
7073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074 (eval "$ac_link") 2>conftest.er1
7075 ac_status=$?
7076 grep -v '^ *+' conftest.er1 >conftest.err
7077 rm -f conftest.er1
7078 cat conftest.err >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest$ac_exeext &&
7084 $as_test_x conftest$ac_exeext; then
7085 { echo "$as_me:$LINENO: result: yes" >&5
7086echo "${ECHO_T}yes" >&6; }
7087 CFLAGS="$saved_CFLAGS $t"
7088 LDFLAGS="$saved_LDFLAGS $t"
7089 { echo "$as_me:$LINENO: checking if $t works" >&5
7090echo $ECHO_N "checking if $t works... $ECHO_C" >&6; }
7091 if test "$cross_compiling" = yes; then
7092 { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5
7093echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
7094 break
7095
7096else
7097 cat >conftest.$ac_ext <<_ACEOF
7098/* confdefs.h. */
7099_ACEOF
7100cat confdefs.h >>conftest.$ac_ext
7101cat >>conftest.$ac_ext <<_ACEOF
7102/* end confdefs.h. */
7103 #include <stdio.h>
7104int
7105main ()
7106{
7107
7108 char x[256];
7109 snprintf(x, sizeof(x), "XXX");
7110
7111 ;
7112 return 0;
7113}
7114_ACEOF
7115rm -f conftest$ac_exeext
7116if { (ac_try="$ac_link"
7117case "(($ac_try" in
7118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119 *) ac_try_echo=$ac_try;;
7120esac
7121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7122 (eval "$ac_link") 2>&5
7123 ac_status=$?
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7126 { (case "(($ac_try" in
7127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7128 *) ac_try_echo=$ac_try;;
7129esac
7130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7131 (eval "$ac_try") 2>&5
7132 ac_status=$?
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); }; }; then
7135 { echo "$as_me:$LINENO: result: yes" >&5
7136echo "${ECHO_T}yes" >&6; }
7137 break
7138else
7139 echo "$as_me: program exited with status $ac_status" >&5
7140echo "$as_me: failed program was:" >&5
7141sed 's/^/| /' conftest.$ac_ext >&5
7142
7143( exit $ac_status )
7144 { echo "$as_me:$LINENO: result: no" >&5
7145echo "${ECHO_T}no" >&6; }
7146fi
7147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7148fi
7149
7150
7151
7152else
7153 echo "$as_me: failed program was:" >&5
7154sed 's/^/| /' conftest.$ac_ext >&5
7155
7156 { echo "$as_me:$LINENO: result: no" >&5
7157echo "${ECHO_T}no" >&6; }
7158
7159fi
7160
7161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7162 conftest$ac_exeext conftest.$ac_ext
7163 CFLAGS="$saved_CFLAGS"
7164 LDFLAGS="$saved_LDFLAGS"
7165 done
7166 fi
7167
7168 if test -z "$have_llong_max"; then
7169 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
7170 unset ac_cv_have_decl_LLONG_MAX
7171 saved_CFLAGS="$CFLAGS"
7172 CFLAGS="$CFLAGS -std=gnu99"
7173 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
7174echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
7175if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7177else
7178 cat >conftest.$ac_ext <<_ACEOF
7179/* confdefs.h. */
7180_ACEOF
7181cat confdefs.h >>conftest.$ac_ext
7182cat >>conftest.$ac_ext <<_ACEOF
7183/* end confdefs.h. */
7184#include <limits.h>
7185
7186
7187int
7188main ()
7189{
7190#ifndef LLONG_MAX
7191 (void) LLONG_MAX;
7192#endif
7193
7194 ;
7195 return 0;
7196}
7197_ACEOF
7198rm -f conftest.$ac_objext
7199if { (ac_try="$ac_compile"
7200case "(($ac_try" in
7201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202 *) ac_try_echo=$ac_try;;
7203esac
7204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7205 (eval "$ac_compile") 2>conftest.er1
7206 ac_status=$?
7207 grep -v '^ *+' conftest.er1 >conftest.err
7208 rm -f conftest.er1
7209 cat conftest.err >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } && {
7212 test -z "$ac_c_werror_flag" ||
7213 test ! -s conftest.err
7214 } && test -s conftest.$ac_objext; then
7215 ac_cv_have_decl_LLONG_MAX=yes
7216else
7217 echo "$as_me: failed program was:" >&5
7218sed 's/^/| /' conftest.$ac_ext >&5
7219
7220 ac_cv_have_decl_LLONG_MAX=no
7221fi
7222
7223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224fi
7225{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
7226echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
7227if test $ac_cv_have_decl_LLONG_MAX = yes; then
7228 have_llong_max=1
7229else
7230 CFLAGS="$saved_CFLAGS"
7231fi
7232
7233 fi
7234fi
7235
7236{ echo "$as_me:$LINENO: checking if compiler allows __attribute__ on return types" >&5
7237echo $ECHO_N "checking if compiler allows __attribute__ on return types... $ECHO_C" >&6; }
7238cat >conftest.$ac_ext <<_ACEOF
7239/* confdefs.h. */
7240_ACEOF
7241cat confdefs.h >>conftest.$ac_ext
7242cat >>conftest.$ac_ext <<_ACEOF
7243/* end confdefs.h. */
7244
7245#include <stdlib.h>
7246__attribute__((__unused__)) static void foo(void){return;}
7247int
7248main ()
7249{
7250 exit(0);
7251 ;
7252 return 0;
7253}
7254_ACEOF
7255rm -f conftest.$ac_objext
7256if { (ac_try="$ac_compile"
7257case "(($ac_try" in
7258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7259 *) ac_try_echo=$ac_try;;
7260esac
7261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7262 (eval "$ac_compile") 2>conftest.er1
7263 ac_status=$?
7264 grep -v '^ *+' conftest.er1 >conftest.err
7265 rm -f conftest.er1
7266 cat conftest.err >&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } && {
7269 test -z "$ac_c_werror_flag" ||
7270 test ! -s conftest.err
7271 } && test -s conftest.$ac_objext; then
7272 { echo "$as_me:$LINENO: result: yes" >&5
7273echo "${ECHO_T}yes" >&6; }
7274else
7275 echo "$as_me: failed program was:" >&5
7276sed 's/^/| /' conftest.$ac_ext >&5
7277
7278 { echo "$as_me:$LINENO: result: no" >&5
7279echo "${ECHO_T}no" >&6; }
7280
7281cat >>confdefs.h <<\_ACEOF
7282#define NO_ATTRIBUTE_ON_RETURN_TYPE 1
7283_ACEOF
7284
7285
7286fi
7287
7288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289
7290if test "x$no_attrib_nonnull" != "x1" ; then
7291
7292cat >>confdefs.h <<\_ACEOF
7293#define HAVE_ATTRIBUTE__NONNULL__ 1
7294_ACEOF
7295
7296fi
7297
7298
7299# Check whether --with-rpath was given.
7300if test "${with_rpath+set}" = set; then
7301 withval=$with_rpath;
7302 if test "x$withval" = "xno" ; then
7303 need_dash_r=""
7304 fi
7305 if test "x$withval" = "xyes" ; then
7306 need_dash_r=1
7307 fi
7308
7309
7310fi
7311
7312
7313# Allow user to specify flags
7314
7315# Check whether --with-cflags was given.
7316if test "${with_cflags+set}" = set; then
7317 withval=$with_cflags;
7318 if test -n "$withval" && test "x$withval" != "xno" && \
7319 test "x${withval}" != "xyes"; then
7320 CFLAGS="$CFLAGS $withval"
7321 fi
7322
7323
7324fi
7325
7326
7327# Check whether --with-cppflags was given.
7328if test "${with_cppflags+set}" = set; then
7329 withval=$with_cppflags;
7330 if test -n "$withval" && test "x$withval" != "xno" && \
7331 test "x${withval}" != "xyes"; then
7332 CPPFLAGS="$CPPFLAGS $withval"
7333 fi
7334
7335
7336fi
7337
7338
7339# Check whether --with-ldflags was given.
7340if test "${with_ldflags+set}" = set; then
7341 withval=$with_ldflags;
7342 if test -n "$withval" && test "x$withval" != "xno" && \
7343 test "x${withval}" != "xyes"; then
7344 LDFLAGS="$LDFLAGS $withval"
7345 fi
7346
7347
7348fi
7349
7350
7351# Check whether --with-libs was given.
7352if test "${with_libs+set}" = set; then
7353 withval=$with_libs;
7354 if test -n "$withval" && test "x$withval" != "xno" && \
7355 test "x${withval}" != "xyes"; then
7356 LIBS="$LIBS $withval"
7357 fi
7358
7359
7360fi
7361
7362
7363# Check whether --with-Werror was given.
7364if test "${with_Werror+set}" = set; then
7365 withval=$with_Werror;
7366 if test -n "$withval" && test "x$withval" != "xno"; then
7367 werror_flags="-Werror"
7368 if test "x${withval}" != "xyes"; then
7369 werror_flags="$withval"
7370 fi
7371 fi
7372
7373
7374fi
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
7444for ac_header in \
7445 blf.h \
7446 bstring.h \
7447 crypt.h \
7448 crypto/sha2.h \
7449 dirent.h \
7450 endian.h \
7451 elf.h \
7452 features.h \
7453 fcntl.h \
7454 floatingpoint.h \
7455 getopt.h \
7456 glob.h \
7457 ia.h \
7458 iaf.h \
7459 inttypes.h \
7460 limits.h \
7461 locale.h \
7462 login.h \
7463 maillock.h \
7464 ndir.h \
7465 net/if_tun.h \
7466 netdb.h \
7467 netgroup.h \
7468 pam/pam_appl.h \
7469 paths.h \
7470 poll.h \
7471 pty.h \
7472 readpassphrase.h \
7473 rpc/types.h \
7474 security/pam_appl.h \
7475 sha2.h \
7476 shadow.h \
7477 stddef.h \
7478 stdint.h \
7479 string.h \
7480 strings.h \
7481 sys/audit.h \
7482 sys/bitypes.h \
7483 sys/bsdtty.h \
7484 sys/capability.h \
7485 sys/cdefs.h \
7486 sys/dir.h \
7487 sys/mman.h \
7488 sys/ndir.h \
7489 sys/poll.h \
7490 sys/prctl.h \
7491 sys/pstat.h \
7492 sys/select.h \
7493 sys/stat.h \
7494 sys/stream.h \
7495 sys/stropts.h \
7496 sys/strtio.h \
7497 sys/statvfs.h \
7498 sys/sysmacros.h \
7499 sys/time.h \
7500 sys/timers.h \
7501 time.h \
7502 tmpdir.h \
7503 ttyent.h \
7504 ucred.h \
7505 unistd.h \
7506 usersec.h \
7507 util.h \
7508 utime.h \
7509 utmp.h \
7510 utmpx.h \
7511 vis.h \
7512
7513do
7514as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7518if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520fi
7521ac_res=`eval echo '${'$as_ac_Header'}'`
7522 { echo "$as_me:$LINENO: result: $ac_res" >&5
7523echo "${ECHO_T}$ac_res" >&6; }
7524else
7525 # Is the header compilable?
7526{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7527echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7528cat >conftest.$ac_ext <<_ACEOF
7529/* confdefs.h. */
7530_ACEOF
7531cat confdefs.h >>conftest.$ac_ext
7532cat >>conftest.$ac_ext <<_ACEOF
7533/* end confdefs.h. */
7534$ac_includes_default
7535#include <$ac_header>
7536_ACEOF
7537rm -f conftest.$ac_objext
7538if { (ac_try="$ac_compile"
7539case "(($ac_try" in
7540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7541 *) ac_try_echo=$ac_try;;
7542esac
7543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7544 (eval "$ac_compile") 2>conftest.er1
7545 ac_status=$?
7546 grep -v '^ *+' conftest.er1 >conftest.err
7547 rm -f conftest.er1
7548 cat conftest.err >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } && {
7551 test -z "$ac_c_werror_flag" ||
7552 test ! -s conftest.err
7553 } && test -s conftest.$ac_objext; then
7554 ac_header_compiler=yes
7555else
7556 echo "$as_me: failed program was:" >&5
7557sed 's/^/| /' conftest.$ac_ext >&5
7558
7559 ac_header_compiler=no
7560fi
7561
7562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7564echo "${ECHO_T}$ac_header_compiler" >&6; }
7565
7566# Is the header present?
7567{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7568echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7569cat >conftest.$ac_ext <<_ACEOF
7570/* confdefs.h. */
7571_ACEOF
7572cat confdefs.h >>conftest.$ac_ext
7573cat >>conftest.$ac_ext <<_ACEOF
7574/* end confdefs.h. */
7575#include <$ac_header>
7576_ACEOF
7577if { (ac_try="$ac_cpp conftest.$ac_ext"
7578case "(($ac_try" in
7579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7580 *) ac_try_echo=$ac_try;;
7581esac
7582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7584 ac_status=$?
7585 grep -v '^ *+' conftest.er1 >conftest.err
7586 rm -f conftest.er1
7587 cat conftest.err >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } >/dev/null && {
7590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7591 test ! -s conftest.err
7592 }; then
7593 ac_header_preproc=yes
7594else
7595 echo "$as_me: failed program was:" >&5
7596sed 's/^/| /' conftest.$ac_ext >&5
7597
7598 ac_header_preproc=no
7599fi
7600
7601rm -f conftest.err conftest.$ac_ext
7602{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7603echo "${ECHO_T}$ac_header_preproc" >&6; }
7604
7605# So? What about this header?
7606case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7607 yes:no: )
7608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7609echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7611echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7612 ac_header_preproc=yes
7613 ;;
7614 no:yes:* )
7615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7616echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7618echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7620echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7622echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7624echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7626echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7627 ( cat <<\_ASBOX
7628## ------------------------------------------- ##
7629## Report this to openssh-unix-dev@mindrot.org ##
7630## ------------------------------------------- ##
7631_ASBOX
7632 ) | sed "s/^/$as_me: WARNING: /" >&2
7633 ;;
7634esac
7635{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7637if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7639else
7640 eval "$as_ac_Header=\$ac_header_preproc"
7641fi
7642ac_res=`eval echo '${'$as_ac_Header'}'`
7643 { echo "$as_me:$LINENO: result: $ac_res" >&5
7644echo "${ECHO_T}$ac_res" >&6; }
7645
7646fi
7647if test `eval echo '${'$as_ac_Header'}'` = yes; then
7648 cat >>confdefs.h <<_ACEOF
7649#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7650_ACEOF
7651
7652fi
7653
7654done
7655
7656
7657# lastlog.h requires sys/time.h to be included first on Solaris
7658
7659for ac_header in lastlog.h
7660do
7661as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7662{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7664if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7666else
7667 cat >conftest.$ac_ext <<_ACEOF
7668/* confdefs.h. */
7669_ACEOF
7670cat confdefs.h >>conftest.$ac_ext
7671cat >>conftest.$ac_ext <<_ACEOF
7672/* end confdefs.h. */
7673
7674#ifdef HAVE_SYS_TIME_H
7675# include <sys/time.h>
7676#endif
7677
7678
7679#include <$ac_header>
7680_ACEOF
7681rm -f conftest.$ac_objext
7682if { (ac_try="$ac_compile"
7683case "(($ac_try" in
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7686esac
7687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7688 (eval "$ac_compile") 2>conftest.er1
7689 ac_status=$?
7690 grep -v '^ *+' conftest.er1 >conftest.err
7691 rm -f conftest.er1
7692 cat conftest.err >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); } && {
7695 test -z "$ac_c_werror_flag" ||
7696 test ! -s conftest.err
7697 } && test -s conftest.$ac_objext; then
7698 eval "$as_ac_Header=yes"
7699else
7700 echo "$as_me: failed program was:" >&5
7701sed 's/^/| /' conftest.$ac_ext >&5
7702
7703 eval "$as_ac_Header=no"
7704fi
7705
7706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7707fi
7708ac_res=`eval echo '${'$as_ac_Header'}'`
7709 { echo "$as_me:$LINENO: result: $ac_res" >&5
7710echo "${ECHO_T}$ac_res" >&6; }
7711if test `eval echo '${'$as_ac_Header'}'` = yes; then
7712 cat >>confdefs.h <<_ACEOF
7713#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7714_ACEOF
7715
7716fi
7717
7718done
7719
7720
7721# sys/ptms.h requires sys/stream.h to be included first on Solaris
7722
7723for ac_header in sys/ptms.h
7724do
7725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7726{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7728if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7730else
7731 cat >conftest.$ac_ext <<_ACEOF
7732/* confdefs.h. */
7733_ACEOF
7734cat confdefs.h >>conftest.$ac_ext
7735cat >>conftest.$ac_ext <<_ACEOF
7736/* end confdefs.h. */
7737
7738#ifdef HAVE_SYS_STREAM_H
7739# include <sys/stream.h>
7740#endif
7741
7742
7743#include <$ac_header>
7744_ACEOF
7745rm -f conftest.$ac_objext
7746if { (ac_try="$ac_compile"
7747case "(($ac_try" in
7748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749 *) ac_try_echo=$ac_try;;
7750esac
7751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752 (eval "$ac_compile") 2>conftest.er1
7753 ac_status=$?
7754 grep -v '^ *+' conftest.er1 >conftest.err
7755 rm -f conftest.er1
7756 cat conftest.err >&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); } && {
7759 test -z "$ac_c_werror_flag" ||
7760 test ! -s conftest.err
7761 } && test -s conftest.$ac_objext; then
7762 eval "$as_ac_Header=yes"
7763else
7764 echo "$as_me: failed program was:" >&5
7765sed 's/^/| /' conftest.$ac_ext >&5
7766
7767 eval "$as_ac_Header=no"
7768fi
7769
7770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7771fi
7772ac_res=`eval echo '${'$as_ac_Header'}'`
7773 { echo "$as_me:$LINENO: result: $ac_res" >&5
7774echo "${ECHO_T}$ac_res" >&6; }
7775if test `eval echo '${'$as_ac_Header'}'` = yes; then
7776 cat >>confdefs.h <<_ACEOF
7777#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7778_ACEOF
7779
7780fi
7781
7782done
7783
7784
7785# login_cap.h requires sys/types.h on NetBSD
7786
7787for ac_header in login_cap.h
7788do
7789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7790{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7794else
7795 cat >conftest.$ac_ext <<_ACEOF
7796/* confdefs.h. */
7797_ACEOF
7798cat confdefs.h >>conftest.$ac_ext
7799cat >>conftest.$ac_ext <<_ACEOF
7800/* end confdefs.h. */
7801
7802#include <sys/types.h>
7803
7804
7805#include <$ac_header>
7806_ACEOF
7807rm -f conftest.$ac_objext
7808if { (ac_try="$ac_compile"
7809case "(($ac_try" in
7810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7811 *) ac_try_echo=$ac_try;;
7812esac
7813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7814 (eval "$ac_compile") 2>conftest.er1
7815 ac_status=$?
7816 grep -v '^ *+' conftest.er1 >conftest.err
7817 rm -f conftest.er1
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } && {
7821 test -z "$ac_c_werror_flag" ||
7822 test ! -s conftest.err
7823 } && test -s conftest.$ac_objext; then
7824 eval "$as_ac_Header=yes"
7825else
7826 echo "$as_me: failed program was:" >&5
7827sed 's/^/| /' conftest.$ac_ext >&5
7828
7829 eval "$as_ac_Header=no"
7830fi
7831
7832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7833fi
7834ac_res=`eval echo '${'$as_ac_Header'}'`
7835 { echo "$as_me:$LINENO: result: $ac_res" >&5
7836echo "${ECHO_T}$ac_res" >&6; }
7837if test `eval echo '${'$as_ac_Header'}'` = yes; then
7838 cat >>confdefs.h <<_ACEOF
7839#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7840_ACEOF
7841
7842fi
7843
7844done
7845
7846
7847# older BSDs need sys/param.h before sys/mount.h
7848
7849for ac_header in sys/mount.h
7850do
7851as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7852{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7854if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7856else
7857 cat >conftest.$ac_ext <<_ACEOF
7858/* confdefs.h. */
7859_ACEOF
7860cat confdefs.h >>conftest.$ac_ext
7861cat >>conftest.$ac_ext <<_ACEOF
7862/* end confdefs.h. */
7863
7864#include <sys/param.h>
7865
7866
7867#include <$ac_header>
7868_ACEOF
7869rm -f conftest.$ac_objext
7870if { (ac_try="$ac_compile"
7871case "(($ac_try" in
7872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873 *) ac_try_echo=$ac_try;;
7874esac
7875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7876 (eval "$ac_compile") 2>conftest.er1
7877 ac_status=$?
7878 grep -v '^ *+' conftest.er1 >conftest.err
7879 rm -f conftest.er1
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } && {
7883 test -z "$ac_c_werror_flag" ||
7884 test ! -s conftest.err
7885 } && test -s conftest.$ac_objext; then
7886 eval "$as_ac_Header=yes"
7887else
7888 echo "$as_me: failed program was:" >&5
7889sed 's/^/| /' conftest.$ac_ext >&5
7890
7891 eval "$as_ac_Header=no"
7892fi
7893
7894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7895fi
7896ac_res=`eval echo '${'$as_ac_Header'}'`
7897 { echo "$as_me:$LINENO: result: $ac_res" >&5
7898echo "${ECHO_T}$ac_res" >&6; }
7899if test `eval echo '${'$as_ac_Header'}'` = yes; then
7900 cat >>confdefs.h <<_ACEOF
7901#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7902_ACEOF
7903
7904fi
7905
7906done
7907
7908
7909# Android requires sys/socket.h to be included before sys/un.h
7910
7911for ac_header in sys/un.h
7912do
7913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7914{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7916if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7918else
7919 cat >conftest.$ac_ext <<_ACEOF
7920/* confdefs.h. */
7921_ACEOF
7922cat confdefs.h >>conftest.$ac_ext
7923cat >>conftest.$ac_ext <<_ACEOF
7924/* end confdefs.h. */
7925
7926#include <sys/types.h>
7927#include <sys/socket.h>
7928
7929
7930#include <$ac_header>
7931_ACEOF
7932rm -f conftest.$ac_objext
7933if { (ac_try="$ac_compile"
7934case "(($ac_try" in
7935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936 *) ac_try_echo=$ac_try;;
7937esac
7938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7939 (eval "$ac_compile") 2>conftest.er1
7940 ac_status=$?
7941 grep -v '^ *+' conftest.er1 >conftest.err
7942 rm -f conftest.er1
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } && {
7946 test -z "$ac_c_werror_flag" ||
7947 test ! -s conftest.err
7948 } && test -s conftest.$ac_objext; then
7949 eval "$as_ac_Header=yes"
7950else
7951 echo "$as_me: failed program was:" >&5
7952sed 's/^/| /' conftest.$ac_ext >&5
7953
7954 eval "$as_ac_Header=no"
7955fi
7956
7957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7958fi
7959ac_res=`eval echo '${'$as_ac_Header'}'`
7960 { echo "$as_me:$LINENO: result: $ac_res" >&5
7961echo "${ECHO_T}$ac_res" >&6; }
7962if test `eval echo '${'$as_ac_Header'}'` = yes; then
7963 cat >>confdefs.h <<_ACEOF
7964#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7965_ACEOF
7966
7967fi
7968
7969done
7970
7971
7972# Messages for features tested for in target-specific section
7973SIA_MSG="no"
7974SPC_MSG="no"
7975SP_MSG="no"
7976SPP_MSG="no"
7977
7978# Support for Solaris/Illumos privileges (this test is used by both
7979# the --with-solaris-privs option and --with-sandbox=solaris).
7980SOLARIS_PRIVS="no"
7981
7982# Check for some target-specific stuff
7983case "$host" in
7984*-*-aix*)
7985 # Some versions of VAC won't allow macro redefinitions at
7986 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
7987 # particularly with older versions of vac or xlc.
7988 # It also throws errors about null macro argments, but these are
7989 # not fatal.
7990 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
7991echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
7992 cat >conftest.$ac_ext <<_ACEOF
7993/* confdefs.h. */
7994_ACEOF
7995cat confdefs.h >>conftest.$ac_ext
7996cat >>conftest.$ac_ext <<_ACEOF
7997/* end confdefs.h. */
7998
7999#define testmacro foo
8000#define testmacro bar
8001int
8002main ()
8003{
8004 exit(0);
8005 ;
8006 return 0;
8007}
8008_ACEOF
8009rm -f conftest.$ac_objext
8010if { (ac_try="$ac_compile"
8011case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8014esac
8015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_compile") 2>conftest.er1
8017 ac_status=$?
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } && {
8023 test -z "$ac_c_werror_flag" ||
8024 test ! -s conftest.err
8025 } && test -s conftest.$ac_objext; then
8026 { echo "$as_me:$LINENO: result: yes" >&5
8027echo "${ECHO_T}yes" >&6; }
8028else
8029 echo "$as_me: failed program was:" >&5
8030sed 's/^/| /' conftest.$ac_ext >&5
8031
8032 { echo "$as_me:$LINENO: result: no" >&5
8033echo "${ECHO_T}no" >&6; }
8034 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
8035 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
8036 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
8037 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
8038
8039
8040fi
8041
8042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8043
8044 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
8045echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
8046 if (test -z "$blibpath"); then
8047 blibpath="/usr/lib:/lib"
8048 fi
8049 saved_LDFLAGS="$LDFLAGS"
8050 if test "$GCC" = "yes"; then
8051 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
8052 else
8053 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
8054 fi
8055 for tryflags in $flags ;do
8056 if (test -z "$blibflags"); then
8057 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
8058 cat >conftest.$ac_ext <<_ACEOF
8059/* confdefs.h. */
8060_ACEOF
8061cat confdefs.h >>conftest.$ac_ext
8062cat >>conftest.$ac_ext <<_ACEOF
8063/* end confdefs.h. */
8064
8065int
8066main ()
8067{
8068
8069 ;
8070 return 0;
8071}
8072_ACEOF
8073rm -f conftest.$ac_objext conftest$ac_exeext
8074if { (ac_try="$ac_link"
8075case "(($ac_try" in
8076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077 *) ac_try_echo=$ac_try;;
8078esac
8079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8080 (eval "$ac_link") 2>conftest.er1
8081 ac_status=$?
8082 grep -v '^ *+' conftest.er1 >conftest.err
8083 rm -f conftest.er1
8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } && {
8087 test -z "$ac_c_werror_flag" ||
8088 test ! -s conftest.err
8089 } && test -s conftest$ac_exeext &&
8090 $as_test_x conftest$ac_exeext; then
8091 blibflags=$tryflags
8092else
8093 echo "$as_me: failed program was:" >&5
8094sed 's/^/| /' conftest.$ac_ext >&5
8095
8096
8097fi
8098
8099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8100 conftest$ac_exeext conftest.$ac_ext
8101 fi
8102 done
8103 if (test -z "$blibflags"); then
8104 { echo "$as_me:$LINENO: result: not found" >&5
8105echo "${ECHO_T}not found" >&6; }
8106 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
8107echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
8108 { (exit 1); exit 1; }; }
8109 else
8110 { echo "$as_me:$LINENO: result: $blibflags" >&5
8111echo "${ECHO_T}$blibflags" >&6; }
8112 fi
8113 LDFLAGS="$saved_LDFLAGS"
8114 { echo "$as_me:$LINENO: checking for authenticate" >&5
8115echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
8116if test "${ac_cv_func_authenticate+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8118else
8119 cat >conftest.$ac_ext <<_ACEOF
8120/* confdefs.h. */
8121_ACEOF
8122cat confdefs.h >>conftest.$ac_ext
8123cat >>conftest.$ac_ext <<_ACEOF
8124/* end confdefs.h. */
8125/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
8126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8127#define authenticate innocuous_authenticate
8128
8129/* System header to define __stub macros and hopefully few prototypes,
8130 which can conflict with char authenticate (); below.
8131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8132 <limits.h> exists even on freestanding compilers. */
8133
8134#ifdef __STDC__
8135# include <limits.h>
8136#else
8137# include <assert.h>
8138#endif
8139
8140#undef authenticate
8141
8142/* Override any GCC internal prototype to avoid an error.
8143 Use char because int might match the return type of a GCC
8144 builtin and then its argument prototype would still apply. */
8145#ifdef __cplusplus
8146extern "C"
8147#endif
8148char authenticate ();
8149/* The GNU C library defines this for functions which it implements
8150 to always fail with ENOSYS. Some functions are actually named
8151 something starting with __ and the normal name is an alias. */
8152#if defined __stub_authenticate || defined __stub___authenticate
8153choke me
8154#endif
8155
8156int
8157main ()
8158{
8159return authenticate ();
8160 ;
8161 return 0;
8162}
8163_ACEOF
8164rm -f conftest.$ac_objext conftest$ac_exeext
8165if { (ac_try="$ac_link"
8166case "(($ac_try" in
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8169esac
8170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_link") 2>conftest.er1
8172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } && {
8178 test -z "$ac_c_werror_flag" ||
8179 test ! -s conftest.err
8180 } && test -s conftest$ac_exeext &&
8181 $as_test_x conftest$ac_exeext; then
8182 ac_cv_func_authenticate=yes
8183else
8184 echo "$as_me: failed program was:" >&5
8185sed 's/^/| /' conftest.$ac_ext >&5
8186
8187 ac_cv_func_authenticate=no
8188fi
8189
8190rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8191 conftest$ac_exeext conftest.$ac_ext
8192fi
8193{ echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
8194echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
8195if test $ac_cv_func_authenticate = yes; then
8196
8197cat >>confdefs.h <<\_ACEOF
8198#define WITH_AIXAUTHENTICATE 1
8199_ACEOF
8200
8201else
8202 { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
8203echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
8204if test "${ac_cv_lib_s_authenticate+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8206else
8207 ac_check_lib_save_LIBS=$LIBS
8208LIBS="-ls $LIBS"
8209cat >conftest.$ac_ext <<_ACEOF
8210/* confdefs.h. */
8211_ACEOF
8212cat confdefs.h >>conftest.$ac_ext
8213cat >>conftest.$ac_ext <<_ACEOF
8214/* end confdefs.h. */
8215
8216/* Override any GCC internal prototype to avoid an error.
8217 Use char because int might match the return type of a GCC
8218 builtin and then its argument prototype would still apply. */
8219#ifdef __cplusplus
8220extern "C"
8221#endif
8222char authenticate ();
8223int
8224main ()
8225{
8226return authenticate ();
8227 ;
8228 return 0;
8229}
8230_ACEOF
8231rm -f conftest.$ac_objext conftest$ac_exeext
8232if { (ac_try="$ac_link"
8233case "(($ac_try" in
8234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235 *) ac_try_echo=$ac_try;;
8236esac
8237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238 (eval "$ac_link") 2>conftest.er1
8239 ac_status=$?
8240 grep -v '^ *+' conftest.er1 >conftest.err
8241 rm -f conftest.er1
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } && {
8245 test -z "$ac_c_werror_flag" ||
8246 test ! -s conftest.err
8247 } && test -s conftest$ac_exeext &&
8248 $as_test_x conftest$ac_exeext; then
8249 ac_cv_lib_s_authenticate=yes
8250else
8251 echo "$as_me: failed program was:" >&5
8252sed 's/^/| /' conftest.$ac_ext >&5
8253
8254 ac_cv_lib_s_authenticate=no
8255fi
8256
8257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8258 conftest$ac_exeext conftest.$ac_ext
8259LIBS=$ac_check_lib_save_LIBS
8260fi
8261{ echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
8262echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
8263if test $ac_cv_lib_s_authenticate = yes; then
8264 cat >>confdefs.h <<\_ACEOF
8265#define WITH_AIXAUTHENTICATE 1
8266_ACEOF
8267
8268 LIBS="$LIBS -ls"
8269
8270fi
8271
8272
8273fi
8274
8275 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
8276echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
8277if test "${ac_cv_have_decl_authenticate+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8279else
8280 cat >conftest.$ac_ext <<_ACEOF
8281/* confdefs.h. */
8282_ACEOF
8283cat confdefs.h >>conftest.$ac_ext
8284cat >>conftest.$ac_ext <<_ACEOF
8285/* end confdefs.h. */
8286#include <usersec.h>
8287
8288int
8289main ()
8290{
8291#ifndef authenticate
8292 (void) authenticate;
8293#endif
8294
8295 ;
8296 return 0;
8297}
8298_ACEOF
8299rm -f conftest.$ac_objext
8300if { (ac_try="$ac_compile"
8301case "(($ac_try" in
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8304esac
8305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306 (eval "$ac_compile") 2>conftest.er1
8307 ac_status=$?
8308 grep -v '^ *+' conftest.er1 >conftest.err
8309 rm -f conftest.er1
8310 cat conftest.err >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } && {
8313 test -z "$ac_c_werror_flag" ||
8314 test ! -s conftest.err
8315 } && test -s conftest.$ac_objext; then
8316 ac_cv_have_decl_authenticate=yes
8317else
8318 echo "$as_me: failed program was:" >&5
8319sed 's/^/| /' conftest.$ac_ext >&5
8320
8321 ac_cv_have_decl_authenticate=no
8322fi
8323
8324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8325fi
8326{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
8327echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
8328if test $ac_cv_have_decl_authenticate = yes; then
8329
8330cat >>confdefs.h <<_ACEOF
8331#define HAVE_DECL_AUTHENTICATE 1
8332_ACEOF
8333
8334
8335else
8336 cat >>confdefs.h <<_ACEOF
8337#define HAVE_DECL_AUTHENTICATE 0
8338_ACEOF
8339
8340
8341fi
8342{ echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
8343echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
8344if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8346else
8347 cat >conftest.$ac_ext <<_ACEOF
8348/* confdefs.h. */
8349_ACEOF
8350cat confdefs.h >>conftest.$ac_ext
8351cat >>conftest.$ac_ext <<_ACEOF
8352/* end confdefs.h. */
8353#include <usersec.h>
8354
8355int
8356main ()
8357{
8358#ifndef loginrestrictions
8359 (void) loginrestrictions;
8360#endif
8361
8362 ;
8363 return 0;
8364}
8365_ACEOF
8366rm -f conftest.$ac_objext
8367if { (ac_try="$ac_compile"
8368case "(($ac_try" in
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8371esac
8372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_compile") 2>conftest.er1
8374 ac_status=$?
8375 grep -v '^ *+' conftest.er1 >conftest.err
8376 rm -f conftest.er1
8377 cat conftest.err >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } && {
8380 test -z "$ac_c_werror_flag" ||
8381 test ! -s conftest.err
8382 } && test -s conftest.$ac_objext; then
8383 ac_cv_have_decl_loginrestrictions=yes
8384else
8385 echo "$as_me: failed program was:" >&5
8386sed 's/^/| /' conftest.$ac_ext >&5
8387
8388 ac_cv_have_decl_loginrestrictions=no
8389fi
8390
8391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392fi
8393{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
8394echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
8395if test $ac_cv_have_decl_loginrestrictions = yes; then
8396
8397cat >>confdefs.h <<_ACEOF
8398#define HAVE_DECL_LOGINRESTRICTIONS 1
8399_ACEOF
8400
8401
8402else
8403 cat >>confdefs.h <<_ACEOF
8404#define HAVE_DECL_LOGINRESTRICTIONS 0
8405_ACEOF
8406
8407
8408fi
8409{ echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
8410echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
8411if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8413else
8414 cat >conftest.$ac_ext <<_ACEOF
8415/* confdefs.h. */
8416_ACEOF
8417cat confdefs.h >>conftest.$ac_ext
8418cat >>conftest.$ac_ext <<_ACEOF
8419/* end confdefs.h. */
8420#include <usersec.h>
8421
8422int
8423main ()
8424{
8425#ifndef loginsuccess
8426 (void) loginsuccess;
8427#endif
8428
8429 ;
8430 return 0;
8431}
8432_ACEOF
8433rm -f conftest.$ac_objext
8434if { (ac_try="$ac_compile"
8435case "(($ac_try" in
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8438esac
8439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440 (eval "$ac_compile") 2>conftest.er1
8441 ac_status=$?
8442 grep -v '^ *+' conftest.er1 >conftest.err
8443 rm -f conftest.er1
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } && {
8447 test -z "$ac_c_werror_flag" ||
8448 test ! -s conftest.err
8449 } && test -s conftest.$ac_objext; then
8450 ac_cv_have_decl_loginsuccess=yes
8451else
8452 echo "$as_me: failed program was:" >&5
8453sed 's/^/| /' conftest.$ac_ext >&5
8454
8455 ac_cv_have_decl_loginsuccess=no
8456fi
8457
8458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459fi
8460{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
8461echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
8462if test $ac_cv_have_decl_loginsuccess = yes; then
8463
8464cat >>confdefs.h <<_ACEOF
8465#define HAVE_DECL_LOGINSUCCESS 1
8466_ACEOF
8467
8468
8469else
8470 cat >>confdefs.h <<_ACEOF
8471#define HAVE_DECL_LOGINSUCCESS 0
8472_ACEOF
8473
8474
8475fi
8476{ echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
8477echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
8478if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8480else
8481 cat >conftest.$ac_ext <<_ACEOF
8482/* confdefs.h. */
8483_ACEOF
8484cat confdefs.h >>conftest.$ac_ext
8485cat >>conftest.$ac_ext <<_ACEOF
8486/* end confdefs.h. */
8487#include <usersec.h>
8488
8489int
8490main ()
8491{
8492#ifndef passwdexpired
8493 (void) passwdexpired;
8494#endif
8495
8496 ;
8497 return 0;
8498}
8499_ACEOF
8500rm -f conftest.$ac_objext
8501if { (ac_try="$ac_compile"
8502case "(($ac_try" in
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8505esac
8506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507 (eval "$ac_compile") 2>conftest.er1
8508 ac_status=$?
8509 grep -v '^ *+' conftest.er1 >conftest.err
8510 rm -f conftest.er1
8511 cat conftest.err >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); } && {
8514 test -z "$ac_c_werror_flag" ||
8515 test ! -s conftest.err
8516 } && test -s conftest.$ac_objext; then
8517 ac_cv_have_decl_passwdexpired=yes
8518else
8519 echo "$as_me: failed program was:" >&5
8520sed 's/^/| /' conftest.$ac_ext >&5
8521
8522 ac_cv_have_decl_passwdexpired=no
8523fi
8524
8525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526fi
8527{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
8528echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
8529if test $ac_cv_have_decl_passwdexpired = yes; then
8530
8531cat >>confdefs.h <<_ACEOF
8532#define HAVE_DECL_PASSWDEXPIRED 1
8533_ACEOF
8534
8535
8536else
8537 cat >>confdefs.h <<_ACEOF
8538#define HAVE_DECL_PASSWDEXPIRED 0
8539_ACEOF
8540
8541
8542fi
8543{ echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
8544echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
8545if test "${ac_cv_have_decl_setauthdb+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8547else
8548 cat >conftest.$ac_ext <<_ACEOF
8549/* confdefs.h. */
8550_ACEOF
8551cat confdefs.h >>conftest.$ac_ext
8552cat >>conftest.$ac_ext <<_ACEOF
8553/* end confdefs.h. */
8554#include <usersec.h>
8555
8556int
8557main ()
8558{
8559#ifndef setauthdb
8560 (void) setauthdb;
8561#endif
8562
8563 ;
8564 return 0;
8565}
8566_ACEOF
8567rm -f conftest.$ac_objext
8568if { (ac_try="$ac_compile"
8569case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8572esac
8573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_compile") 2>conftest.er1
8575 ac_status=$?
8576 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } && {
8581 test -z "$ac_c_werror_flag" ||
8582 test ! -s conftest.err
8583 } && test -s conftest.$ac_objext; then
8584 ac_cv_have_decl_setauthdb=yes
8585else
8586 echo "$as_me: failed program was:" >&5
8587sed 's/^/| /' conftest.$ac_ext >&5
8588
8589 ac_cv_have_decl_setauthdb=no
8590fi
8591
8592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593fi
8594{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
8595echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
8596if test $ac_cv_have_decl_setauthdb = yes; then
8597
8598cat >>confdefs.h <<_ACEOF
8599#define HAVE_DECL_SETAUTHDB 1
8600_ACEOF
8601
8602
8603else
8604 cat >>confdefs.h <<_ACEOF
8605#define HAVE_DECL_SETAUTHDB 0
8606_ACEOF
8607
8608
8609fi
8610
8611
8612 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
8613echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
8614if test "${ac_cv_have_decl_loginfailed+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8616else
8617 cat >conftest.$ac_ext <<_ACEOF
8618/* confdefs.h. */
8619_ACEOF
8620cat confdefs.h >>conftest.$ac_ext
8621cat >>conftest.$ac_ext <<_ACEOF
8622/* end confdefs.h. */
8623#include <usersec.h>
8624
8625
8626int
8627main ()
8628{
8629#ifndef loginfailed
8630 (void) loginfailed;
8631#endif
8632
8633 ;
8634 return 0;
8635}
8636_ACEOF
8637rm -f conftest.$ac_objext
8638if { (ac_try="$ac_compile"
8639case "(($ac_try" in
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8642esac
8643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_compile") 2>conftest.er1
8645 ac_status=$?
8646 grep -v '^ *+' conftest.er1 >conftest.err
8647 rm -f conftest.er1
8648 cat conftest.err >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } && {
8651 test -z "$ac_c_werror_flag" ||
8652 test ! -s conftest.err
8653 } && test -s conftest.$ac_objext; then
8654 ac_cv_have_decl_loginfailed=yes
8655else
8656 echo "$as_me: failed program was:" >&5
8657sed 's/^/| /' conftest.$ac_ext >&5
8658
8659 ac_cv_have_decl_loginfailed=no
8660fi
8661
8662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663fi
8664{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
8665echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
8666if test $ac_cv_have_decl_loginfailed = yes; then
8667
8668cat >>confdefs.h <<_ACEOF
8669#define HAVE_DECL_LOGINFAILED 1
8670_ACEOF
8671
8672{ echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
8673echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
8674 cat >conftest.$ac_ext <<_ACEOF
8675/* confdefs.h. */
8676_ACEOF
8677cat confdefs.h >>conftest.$ac_ext
8678cat >>conftest.$ac_ext <<_ACEOF
8679/* end confdefs.h. */
8680 #include <usersec.h>
8681int
8682main ()
8683{
8684 (void)loginfailed("user","host","tty",0);
8685 ;
8686 return 0;
8687}
8688_ACEOF
8689rm -f conftest.$ac_objext
8690if { (ac_try="$ac_compile"
8691case "(($ac_try" in
8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8694esac
8695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696 (eval "$ac_compile") 2>conftest.er1
8697 ac_status=$?
8698 grep -v '^ *+' conftest.er1 >conftest.err
8699 rm -f conftest.er1
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } && {
8703 test -z "$ac_c_werror_flag" ||
8704 test ! -s conftest.err
8705 } && test -s conftest.$ac_objext; then
8706 { echo "$as_me:$LINENO: result: yes" >&5
8707echo "${ECHO_T}yes" >&6; }
8708
8709cat >>confdefs.h <<\_ACEOF
8710#define AIX_LOGINFAILED_4ARG 1
8711_ACEOF
8712
8713else
8714 echo "$as_me: failed program was:" >&5
8715sed 's/^/| /' conftest.$ac_ext >&5
8716
8717 { echo "$as_me:$LINENO: result: no" >&5
8718echo "${ECHO_T}no" >&6; }
8719
8720fi
8721
8722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723else
8724 cat >>confdefs.h <<_ACEOF
8725#define HAVE_DECL_LOGINFAILED 0
8726_ACEOF
8727
8728
8729fi
8730
8731
8732
8733
8734for ac_func in getgrset setauthdb
8735do
8736as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8737{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8738echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8739if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741else
8742 cat >conftest.$ac_ext <<_ACEOF
8743/* confdefs.h. */
8744_ACEOF
8745cat confdefs.h >>conftest.$ac_ext
8746cat >>conftest.$ac_ext <<_ACEOF
8747/* end confdefs.h. */
8748/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8750#define $ac_func innocuous_$ac_func
8751
8752/* System header to define __stub macros and hopefully few prototypes,
8753 which can conflict with char $ac_func (); below.
8754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8755 <limits.h> exists even on freestanding compilers. */
8756
8757#ifdef __STDC__
8758# include <limits.h>
8759#else
8760# include <assert.h>
8761#endif
8762
8763#undef $ac_func
8764
8765/* Override any GCC internal prototype to avoid an error.
8766 Use char because int might match the return type of a GCC
8767 builtin and then its argument prototype would still apply. */
8768#ifdef __cplusplus
8769extern "C"
8770#endif
8771char $ac_func ();
8772/* The GNU C library defines this for functions which it implements
8773 to always fail with ENOSYS. Some functions are actually named
8774 something starting with __ and the normal name is an alias. */
8775#if defined __stub_$ac_func || defined __stub___$ac_func
8776choke me
8777#endif
8778
8779int
8780main ()
8781{
8782return $ac_func ();
8783 ;
8784 return 0;
8785}
8786_ACEOF
8787rm -f conftest.$ac_objext conftest$ac_exeext
8788if { (ac_try="$ac_link"
8789case "(($ac_try" in
8790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8791 *) ac_try_echo=$ac_try;;
8792esac
8793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8794 (eval "$ac_link") 2>conftest.er1
8795 ac_status=$?
8796 grep -v '^ *+' conftest.er1 >conftest.err
8797 rm -f conftest.er1
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } && {
8801 test -z "$ac_c_werror_flag" ||
8802 test ! -s conftest.err
8803 } && test -s conftest$ac_exeext &&
8804 $as_test_x conftest$ac_exeext; then
8805 eval "$as_ac_var=yes"
8806else
8807 echo "$as_me: failed program was:" >&5
8808sed 's/^/| /' conftest.$ac_ext >&5
8809
8810 eval "$as_ac_var=no"
8811fi
8812
8813rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8814 conftest$ac_exeext conftest.$ac_ext
8815fi
8816ac_res=`eval echo '${'$as_ac_var'}'`
8817 { echo "$as_me:$LINENO: result: $ac_res" >&5
8818echo "${ECHO_T}$ac_res" >&6; }
8819if test `eval echo '${'$as_ac_var'}'` = yes; then
8820 cat >>confdefs.h <<_ACEOF
8821#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8822_ACEOF
8823
8824fi
8825done
8826
8827 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
8828echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
8829if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8831else
8832 cat >conftest.$ac_ext <<_ACEOF
8833/* confdefs.h. */
8834_ACEOF
8835cat confdefs.h >>conftest.$ac_ext
8836cat >>conftest.$ac_ext <<_ACEOF
8837/* end confdefs.h. */
8838 #include <limits.h>
8839 #include <fcntl.h>
8840
8841
8842int
8843main ()
8844{
8845#ifndef F_CLOSEM
8846 (void) F_CLOSEM;
8847#endif
8848
8849 ;
8850 return 0;
8851}
8852_ACEOF
8853rm -f conftest.$ac_objext
8854if { (ac_try="$ac_compile"
8855case "(($ac_try" in
8856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857 *) ac_try_echo=$ac_try;;
8858esac
8859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8860 (eval "$ac_compile") 2>conftest.er1
8861 ac_status=$?
8862 grep -v '^ *+' conftest.er1 >conftest.err
8863 rm -f conftest.er1
8864 cat conftest.err >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); } && {
8867 test -z "$ac_c_werror_flag" ||
8868 test ! -s conftest.err
8869 } && test -s conftest.$ac_objext; then
8870 ac_cv_have_decl_F_CLOSEM=yes
8871else
8872 echo "$as_me: failed program was:" >&5
8873sed 's/^/| /' conftest.$ac_ext >&5
8874
8875 ac_cv_have_decl_F_CLOSEM=no
8876fi
8877
8878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8879fi
8880{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
8881echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
8882if test $ac_cv_have_decl_F_CLOSEM = yes; then
8883
8884cat >>confdefs.h <<\_ACEOF
8885#define HAVE_FCNTL_CLOSEM 1
8886_ACEOF
8887
8888fi
8889
8890 check_for_aix_broken_getaddrinfo=1
8891
8892cat >>confdefs.h <<\_ACEOF
8893#define BROKEN_REALPATH 1
8894_ACEOF
8895
8896
8897cat >>confdefs.h <<\_ACEOF
8898#define SETEUID_BREAKS_SETUID 1
8899_ACEOF
8900
8901
8902cat >>confdefs.h <<\_ACEOF
8903#define BROKEN_SETREUID 1
8904_ACEOF
8905
8906
8907cat >>confdefs.h <<\_ACEOF
8908#define BROKEN_SETREGID 1
8909_ACEOF
8910
8911
8912cat >>confdefs.h <<\_ACEOF
8913#define DISABLE_LASTLOG 1
8914_ACEOF
8915
8916
8917cat >>confdefs.h <<\_ACEOF
8918#define LOGIN_NEEDS_UTMPX 1
8919_ACEOF
8920
8921
8922cat >>confdefs.h <<\_ACEOF
8923#define SPT_TYPE SPT_REUSEARGV
8924_ACEOF
8925
8926
8927cat >>confdefs.h <<\_ACEOF
8928#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8929_ACEOF
8930
8931
8932cat >>confdefs.h <<\_ACEOF
8933#define PTY_ZEROREAD 1
8934_ACEOF
8935
8936
8937cat >>confdefs.h <<\_ACEOF
8938#define PLATFORM_SYS_DIR_UID 2
8939_ACEOF
8940
8941 ;;
8942*-*-android*)
8943
8944cat >>confdefs.h <<\_ACEOF
8945#define DISABLE_UTMP 1
8946_ACEOF
8947
8948
8949cat >>confdefs.h <<\_ACEOF
8950#define DISABLE_WTMP 1
8951_ACEOF
8952
8953 ;;
8954*-*-cygwin*)
8955 check_for_libcrypt_later=1
8956 LIBS="$LIBS /usr/lib/textreadmode.o"
8957
8958cat >>confdefs.h <<\_ACEOF
8959#define HAVE_CYGWIN 1
8960_ACEOF
8961
8962
8963cat >>confdefs.h <<\_ACEOF
8964#define USE_PIPES 1
8965_ACEOF
8966
8967
8968cat >>confdefs.h <<\_ACEOF
8969#define NO_UID_RESTORATION_TEST 1
8970_ACEOF
8971
8972
8973cat >>confdefs.h <<\_ACEOF
8974#define DISABLE_SHADOW 1
8975_ACEOF
8976
8977
8978cat >>confdefs.h <<\_ACEOF
8979#define NO_X11_UNIX_SOCKETS 1
8980_ACEOF
8981
8982
8983cat >>confdefs.h <<\_ACEOF
8984#define NO_IPPORT_RESERVED_CONCEPT 1
8985_ACEOF
8986
8987
8988cat >>confdefs.h <<\_ACEOF
8989#define DISABLE_FD_PASSING 1
8990_ACEOF
8991
8992
8993cat >>confdefs.h <<\_ACEOF
8994#define SSH_IOBUFSZ 65535
8995_ACEOF
8996
8997
8998cat >>confdefs.h <<\_ACEOF
8999#define FILESYSTEM_NO_BACKSLASH 1
9000_ACEOF
9001
9002 # Cygwin defines optargs, optargs as declspec(dllimport) for historical
9003 # reasons which cause compile warnings, so we disable those warnings.
9004 {
9005 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wno-attributes" >&5
9006echo $ECHO_N "checking if $CC supports compile flag -Wno-attributes... $ECHO_C" >&6; }
9007 saved_CFLAGS="$CFLAGS"
9008 CFLAGS="$CFLAGS $WERROR -Wno-attributes"
9009 _define_flag=""
9010 test "x$_define_flag" = "x" && _define_flag="-Wno-attributes"
9011 cat >conftest.$ac_ext <<_ACEOF
9012/* confdefs.h. */
9013_ACEOF
9014cat confdefs.h >>conftest.$ac_ext
9015cat >>conftest.$ac_ext <<_ACEOF
9016/* end confdefs.h. */
9017
9018#include <stdlib.h>
9019#include <stdio.h>
9020int main(int argc, char **argv) {
9021 /* Some math to catch -ftrapv problems in the toolchain */
9022 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
9023 float l = i * 2.1;
9024 double m = l / 0.5;
9025 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
9026 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
9027 exit(0);
9028}
9029
9030_ACEOF
9031rm -f conftest.$ac_objext
9032if { (ac_try="$ac_compile"
9033case "(($ac_try" in
9034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9035 *) ac_try_echo=$ac_try;;
9036esac
9037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9038 (eval "$ac_compile") 2>conftest.er1
9039 ac_status=$?
9040 grep -v '^ *+' conftest.er1 >conftest.err
9041 rm -f conftest.er1
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } && {
9045 test -z "$ac_c_werror_flag" ||
9046 test ! -s conftest.err
9047 } && test -s conftest.$ac_objext; then
9048
9049if `grep -i "unrecognized option" conftest.err >/dev/null`
9050then
9051 { echo "$as_me:$LINENO: result: no" >&5
9052echo "${ECHO_T}no" >&6; }
9053 CFLAGS="$saved_CFLAGS"
9054else
9055 { echo "$as_me:$LINENO: result: yes" >&5
9056echo "${ECHO_T}yes" >&6; }
9057 CFLAGS="$saved_CFLAGS $_define_flag"
9058fi
9059else
9060 echo "$as_me: failed program was:" >&5
9061sed 's/^/| /' conftest.$ac_ext >&5
9062
9063 { echo "$as_me:$LINENO: result: no" >&5
9064echo "${ECHO_T}no" >&6; }
9065 CFLAGS="$saved_CFLAGS"
9066
9067fi
9068
9069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070}
9071 ;;
9072*-*-dgux*)
9073
9074cat >>confdefs.h <<\_ACEOF
9075#define IP_TOS_IS_BROKEN 1
9076_ACEOF
9077
9078 cat >>confdefs.h <<\_ACEOF
9079#define SETEUID_BREAKS_SETUID 1
9080_ACEOF
9081
9082 cat >>confdefs.h <<\_ACEOF
9083#define BROKEN_SETREUID 1
9084_ACEOF
9085
9086 cat >>confdefs.h <<\_ACEOF
9087#define BROKEN_SETREGID 1
9088_ACEOF
9089
9090 ;;
9091*-*-darwin*)
9092 use_pie=auto
9093 { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
9094echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
9095 if test "$cross_compiling" = yes; then
9096 { echo "$as_me:$LINENO: result: assume it is working" >&5
9097echo "${ECHO_T}assume it is working" >&6; }
9098else
9099 cat >conftest.$ac_ext <<_ACEOF
9100/* confdefs.h. */
9101_ACEOF
9102cat confdefs.h >>conftest.$ac_ext
9103cat >>conftest.$ac_ext <<_ACEOF
9104/* end confdefs.h. */
9105 #include <mach-o/dyld.h>
9106main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
9107 exit(0);
9108 else
9109 exit(1);
9110}
9111
9112_ACEOF
9113rm -f conftest$ac_exeext
9114if { (ac_try="$ac_link"
9115case "(($ac_try" in
9116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117 *) ac_try_echo=$ac_try;;
9118esac
9119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9120 (eval "$ac_link") 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9124 { (case "(($ac_try" in
9125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9127esac
9128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129 (eval "$ac_try") 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 { echo "$as_me:$LINENO: result: working" >&5
9134echo "${ECHO_T}working" >&6; }
9135else
9136 echo "$as_me: program exited with status $ac_status" >&5
9137echo "$as_me: failed program was:" >&5
9138sed 's/^/| /' conftest.$ac_ext >&5
9139
9140( exit $ac_status )
9141{ echo "$as_me:$LINENO: result: buggy" >&5
9142echo "${ECHO_T}buggy" >&6; }
9143
9144cat >>confdefs.h <<\_ACEOF
9145#define BROKEN_GETADDRINFO 1
9146_ACEOF
9147
9148
9149fi
9150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9151fi
9152
9153
9154 cat >>confdefs.h <<\_ACEOF
9155#define SETEUID_BREAKS_SETUID 1
9156_ACEOF
9157
9158 cat >>confdefs.h <<\_ACEOF
9159#define BROKEN_SETREUID 1
9160_ACEOF
9161
9162 cat >>confdefs.h <<\_ACEOF
9163#define BROKEN_SETREGID 1
9164_ACEOF
9165
9166
9167cat >>confdefs.h <<\_ACEOF
9168#define BROKEN_GLOB 1
9169_ACEOF
9170
9171
9172cat >>confdefs.h <<_ACEOF
9173#define BIND_8_COMPAT 1
9174_ACEOF
9175
9176
9177cat >>confdefs.h <<\_ACEOF
9178#define SSH_TUN_FREEBSD 1
9179_ACEOF
9180
9181
9182cat >>confdefs.h <<\_ACEOF
9183#define SSH_TUN_COMPAT_AF 1
9184_ACEOF
9185
9186
9187cat >>confdefs.h <<\_ACEOF
9188#define SSH_TUN_PREPEND_AF 1
9189_ACEOF
9190
9191
9192 { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5
9193echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; }
9194if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9196else
9197 cat >conftest.$ac_ext <<_ACEOF
9198/* confdefs.h. */
9199_ACEOF
9200cat confdefs.h >>conftest.$ac_ext
9201cat >>conftest.$ac_ext <<_ACEOF
9202/* end confdefs.h. */
9203$ac_includes_default
9204int
9205main ()
9206{
9207#ifndef AU_IPv4
9208 (void) AU_IPv4;
9209#endif
9210
9211 ;
9212 return 0;
9213}
9214_ACEOF
9215rm -f conftest.$ac_objext
9216if { (ac_try="$ac_compile"
9217case "(($ac_try" in
9218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9219 *) ac_try_echo=$ac_try;;
9220esac
9221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9222 (eval "$ac_compile") 2>conftest.er1
9223 ac_status=$?
9224 grep -v '^ *+' conftest.er1 >conftest.err
9225 rm -f conftest.er1
9226 cat conftest.err >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); } && {
9229 test -z "$ac_c_werror_flag" ||
9230 test ! -s conftest.err
9231 } && test -s conftest.$ac_objext; then
9232 ac_cv_have_decl_AU_IPv4=yes
9233else
9234 echo "$as_me: failed program was:" >&5
9235sed 's/^/| /' conftest.$ac_ext >&5
9236
9237 ac_cv_have_decl_AU_IPv4=no
9238fi
9239
9240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9241fi
9242{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5
9243echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; }
9244if test $ac_cv_have_decl_AU_IPv4 = yes; then
9245 :
9246else
9247
9248cat >>confdefs.h <<\_ACEOF
9249#define AU_IPv4 0
9250_ACEOF
9251
9252 #include <bsm/audit.h>
9253
9254cat >>confdefs.h <<\_ACEOF
9255#define LASTLOG_WRITE_PUTUTXLINE 1
9256_ACEOF
9257
9258
9259fi
9260
9261
9262cat >>confdefs.h <<\_ACEOF
9263#define SPT_TYPE SPT_REUSEARGV
9264_ACEOF
9265
9266
9267for ac_func in sandbox_init
9268do
9269as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9270{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9271echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9272if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9274else
9275 cat >conftest.$ac_ext <<_ACEOF
9276/* confdefs.h. */
9277_ACEOF
9278cat confdefs.h >>conftest.$ac_ext
9279cat >>conftest.$ac_ext <<_ACEOF
9280/* end confdefs.h. */
9281/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9283#define $ac_func innocuous_$ac_func
9284
9285/* System header to define __stub macros and hopefully few prototypes,
9286 which can conflict with char $ac_func (); below.
9287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9288 <limits.h> exists even on freestanding compilers. */
9289
9290#ifdef __STDC__
9291# include <limits.h>
9292#else
9293# include <assert.h>
9294#endif
9295
9296#undef $ac_func
9297
9298/* Override any GCC internal prototype to avoid an error.
9299 Use char because int might match the return type of a GCC
9300 builtin and then its argument prototype would still apply. */
9301#ifdef __cplusplus
9302extern "C"
9303#endif
9304char $ac_func ();
9305/* The GNU C library defines this for functions which it implements
9306 to always fail with ENOSYS. Some functions are actually named
9307 something starting with __ and the normal name is an alias. */
9308#if defined __stub_$ac_func || defined __stub___$ac_func
9309choke me
9310#endif
9311
9312int
9313main ()
9314{
9315return $ac_func ();
9316 ;
9317 return 0;
9318}
9319_ACEOF
9320rm -f conftest.$ac_objext conftest$ac_exeext
9321if { (ac_try="$ac_link"
9322case "(($ac_try" in
9323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9324 *) ac_try_echo=$ac_try;;
9325esac
9326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9327 (eval "$ac_link") 2>conftest.er1
9328 ac_status=$?
9329 grep -v '^ *+' conftest.er1 >conftest.err
9330 rm -f conftest.er1
9331 cat conftest.err >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } && {
9334 test -z "$ac_c_werror_flag" ||
9335 test ! -s conftest.err
9336 } && test -s conftest$ac_exeext &&
9337 $as_test_x conftest$ac_exeext; then
9338 eval "$as_ac_var=yes"
9339else
9340 echo "$as_me: failed program was:" >&5
9341sed 's/^/| /' conftest.$ac_ext >&5
9342
9343 eval "$as_ac_var=no"
9344fi
9345
9346rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9347 conftest$ac_exeext conftest.$ac_ext
9348fi
9349ac_res=`eval echo '${'$as_ac_var'}'`
9350 { echo "$as_me:$LINENO: result: $ac_res" >&5
9351echo "${ECHO_T}$ac_res" >&6; }
9352if test `eval echo '${'$as_ac_var'}'` = yes; then
9353 cat >>confdefs.h <<_ACEOF
9354#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9355_ACEOF
9356
9357fi
9358done
9359
9360
9361for ac_header in sandbox.h
9362do
9363as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9364if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9369fi
9370ac_res=`eval echo '${'$as_ac_Header'}'`
9371 { echo "$as_me:$LINENO: result: $ac_res" >&5
9372echo "${ECHO_T}$ac_res" >&6; }
9373else
9374 # Is the header compilable?
9375{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9376echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9377cat >conftest.$ac_ext <<_ACEOF
9378/* confdefs.h. */
9379_ACEOF
9380cat confdefs.h >>conftest.$ac_ext
9381cat >>conftest.$ac_ext <<_ACEOF
9382/* end confdefs.h. */
9383$ac_includes_default
9384#include <$ac_header>
9385_ACEOF
9386rm -f conftest.$ac_objext
9387if { (ac_try="$ac_compile"
9388case "(($ac_try" in
9389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9390 *) ac_try_echo=$ac_try;;
9391esac
9392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9393 (eval "$ac_compile") 2>conftest.er1
9394 ac_status=$?
9395 grep -v '^ *+' conftest.er1 >conftest.err
9396 rm -f conftest.er1
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } && {
9400 test -z "$ac_c_werror_flag" ||
9401 test ! -s conftest.err
9402 } && test -s conftest.$ac_objext; then
9403 ac_header_compiler=yes
9404else
9405 echo "$as_me: failed program was:" >&5
9406sed 's/^/| /' conftest.$ac_ext >&5
9407
9408 ac_header_compiler=no
9409fi
9410
9411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9412{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9413echo "${ECHO_T}$ac_header_compiler" >&6; }
9414
9415# Is the header present?
9416{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9417echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9418cat >conftest.$ac_ext <<_ACEOF
9419/* confdefs.h. */
9420_ACEOF
9421cat confdefs.h >>conftest.$ac_ext
9422cat >>conftest.$ac_ext <<_ACEOF
9423/* end confdefs.h. */
9424#include <$ac_header>
9425_ACEOF
9426if { (ac_try="$ac_cpp conftest.$ac_ext"
9427case "(($ac_try" in
9428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429 *) ac_try_echo=$ac_try;;
9430esac
9431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9433 ac_status=$?
9434 grep -v '^ *+' conftest.er1 >conftest.err
9435 rm -f conftest.er1
9436 cat conftest.err >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } >/dev/null && {
9439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9440 test ! -s conftest.err
9441 }; then
9442 ac_header_preproc=yes
9443else
9444 echo "$as_me: failed program was:" >&5
9445sed 's/^/| /' conftest.$ac_ext >&5
9446
9447 ac_header_preproc=no
9448fi
9449
9450rm -f conftest.err conftest.$ac_ext
9451{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9452echo "${ECHO_T}$ac_header_preproc" >&6; }
9453
9454# So? What about this header?
9455case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9456 yes:no: )
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9458echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9460echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9461 ac_header_preproc=yes
9462 ;;
9463 no:yes:* )
9464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9465echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9467echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9469echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9471echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9473echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9475echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9476 ( cat <<\_ASBOX
9477## ------------------------------------------- ##
9478## Report this to openssh-unix-dev@mindrot.org ##
9479## ------------------------------------------- ##
9480_ASBOX
9481 ) | sed "s/^/$as_me: WARNING: /" >&2
9482 ;;
9483esac
9484{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9488else
9489 eval "$as_ac_Header=\$ac_header_preproc"
9490fi
9491ac_res=`eval echo '${'$as_ac_Header'}'`
9492 { echo "$as_me:$LINENO: result: $ac_res" >&5
9493echo "${ECHO_T}$ac_res" >&6; }
9494
9495fi
9496if test `eval echo '${'$as_ac_Header'}'` = yes; then
9497 cat >>confdefs.h <<_ACEOF
9498#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9499_ACEOF
9500
9501fi
9502
9503done
9504
9505 { echo "$as_me:$LINENO: checking for sandbox_apply in -lsandbox" >&5
9506echo $ECHO_N "checking for sandbox_apply in -lsandbox... $ECHO_C" >&6; }
9507if test "${ac_cv_lib_sandbox_sandbox_apply+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9509else
9510 ac_check_lib_save_LIBS=$LIBS
9511LIBS="-lsandbox $LIBS"
9512cat >conftest.$ac_ext <<_ACEOF
9513/* confdefs.h. */
9514_ACEOF
9515cat confdefs.h >>conftest.$ac_ext
9516cat >>conftest.$ac_ext <<_ACEOF
9517/* end confdefs.h. */
9518
9519/* Override any GCC internal prototype to avoid an error.
9520 Use char because int might match the return type of a GCC
9521 builtin and then its argument prototype would still apply. */
9522#ifdef __cplusplus
9523extern "C"
9524#endif
9525char sandbox_apply ();
9526int
9527main ()
9528{
9529return sandbox_apply ();
9530 ;
9531 return 0;
9532}
9533_ACEOF
9534rm -f conftest.$ac_objext conftest$ac_exeext
9535if { (ac_try="$ac_link"
9536case "(($ac_try" in
9537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538 *) ac_try_echo=$ac_try;;
9539esac
9540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9541 (eval "$ac_link") 2>conftest.er1
9542 ac_status=$?
9543 grep -v '^ *+' conftest.er1 >conftest.err
9544 rm -f conftest.er1
9545 cat conftest.err >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } && {
9548 test -z "$ac_c_werror_flag" ||
9549 test ! -s conftest.err
9550 } && test -s conftest$ac_exeext &&
9551 $as_test_x conftest$ac_exeext; then
9552 ac_cv_lib_sandbox_sandbox_apply=yes
9553else
9554 echo "$as_me: failed program was:" >&5
9555sed 's/^/| /' conftest.$ac_ext >&5
9556
9557 ac_cv_lib_sandbox_sandbox_apply=no
9558fi
9559
9560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9561 conftest$ac_exeext conftest.$ac_ext
9562LIBS=$ac_check_lib_save_LIBS
9563fi
9564{ echo "$as_me:$LINENO: result: $ac_cv_lib_sandbox_sandbox_apply" >&5
9565echo "${ECHO_T}$ac_cv_lib_sandbox_sandbox_apply" >&6; }
9566if test $ac_cv_lib_sandbox_sandbox_apply = yes; then
9567
9568 SSHDLIBS="$SSHDLIBS -lsandbox"
9569
9570fi
9571
9572 ;;
9573*-*-dragonfly*)
9574 SSHDLIBS="$SSHDLIBS -lcrypt"
9575 TEST_MALLOC_OPTIONS="AFGJPRX"
9576 ;;
9577*-*-haiku*)
9578 LIBS="$LIBS -lbsd "
9579
9580{ echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5
9581echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; }
9582if test "${ac_cv_lib_network_socket+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9584else
9585 ac_check_lib_save_LIBS=$LIBS
9586LIBS="-lnetwork $LIBS"
9587cat >conftest.$ac_ext <<_ACEOF
9588/* confdefs.h. */
9589_ACEOF
9590cat confdefs.h >>conftest.$ac_ext
9591cat >>conftest.$ac_ext <<_ACEOF
9592/* end confdefs.h. */
9593
9594/* Override any GCC internal prototype to avoid an error.
9595 Use char because int might match the return type of a GCC
9596 builtin and then its argument prototype would still apply. */
9597#ifdef __cplusplus
9598extern "C"
9599#endif
9600char socket ();
9601int
9602main ()
9603{
9604return socket ();
9605 ;
9606 return 0;
9607}
9608_ACEOF
9609rm -f conftest.$ac_objext conftest$ac_exeext
9610if { (ac_try="$ac_link"
9611case "(($ac_try" in
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9614esac
9615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616 (eval "$ac_link") 2>conftest.er1
9617 ac_status=$?
9618 grep -v '^ *+' conftest.er1 >conftest.err
9619 rm -f conftest.er1
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } && {
9623 test -z "$ac_c_werror_flag" ||
9624 test ! -s conftest.err
9625 } && test -s conftest$ac_exeext &&
9626 $as_test_x conftest$ac_exeext; then
9627 ac_cv_lib_network_socket=yes
9628else
9629 echo "$as_me: failed program was:" >&5
9630sed 's/^/| /' conftest.$ac_ext >&5
9631
9632 ac_cv_lib_network_socket=no
9633fi
9634
9635rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9636 conftest$ac_exeext conftest.$ac_ext
9637LIBS=$ac_check_lib_save_LIBS
9638fi
9639{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5
9640echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; }
9641if test $ac_cv_lib_network_socket = yes; then
9642 cat >>confdefs.h <<_ACEOF
9643#define HAVE_LIBNETWORK 1
9644_ACEOF
9645
9646 LIBS="-lnetwork $LIBS"
9647
9648fi
9649
9650 cat >>confdefs.h <<\_ACEOF
9651#define HAVE_U_INT64_T 1
9652_ACEOF
9653
9654 MANTYPE=man
9655 ;;
9656*-*-hpux*)
9657 # first we define all of the options common to all HP-UX releases
9658 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
9659 IPADDR_IN_DISPLAY=yes
9660 cat >>confdefs.h <<\_ACEOF
9661#define USE_PIPES 1
9662_ACEOF
9663
9664
9665cat >>confdefs.h <<\_ACEOF
9666#define LOGIN_NO_ENDOPT 1
9667_ACEOF
9668
9669 cat >>confdefs.h <<\_ACEOF
9670#define LOGIN_NEEDS_UTMPX 1
9671_ACEOF
9672
9673
9674cat >>confdefs.h <<\_ACEOF
9675#define LOCKED_PASSWD_STRING "*"
9676_ACEOF
9677
9678 cat >>confdefs.h <<\_ACEOF
9679#define SPT_TYPE SPT_PSTAT
9680_ACEOF
9681
9682
9683cat >>confdefs.h <<\_ACEOF
9684#define PLATFORM_SYS_DIR_UID 2
9685_ACEOF
9686
9687 maildir="/var/mail"
9688 LIBS="$LIBS -lsec"
9689
9690{ echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
9691echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
9692if test "${ac_cv_lib_xnet_t_error+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9694else
9695 ac_check_lib_save_LIBS=$LIBS
9696LIBS="-lxnet $LIBS"
9697cat >conftest.$ac_ext <<_ACEOF
9698/* confdefs.h. */
9699_ACEOF
9700cat confdefs.h >>conftest.$ac_ext
9701cat >>conftest.$ac_ext <<_ACEOF
9702/* end confdefs.h. */
9703
9704/* Override any GCC internal prototype to avoid an error.
9705 Use char because int might match the return type of a GCC
9706 builtin and then its argument prototype would still apply. */
9707#ifdef __cplusplus
9708extern "C"
9709#endif
9710char t_error ();
9711int
9712main ()
9713{
9714return t_error ();
9715 ;
9716 return 0;
9717}
9718_ACEOF
9719rm -f conftest.$ac_objext conftest$ac_exeext
9720if { (ac_try="$ac_link"
9721case "(($ac_try" in
9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9724esac
9725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_link") 2>conftest.er1
9727 ac_status=$?
9728 grep -v '^ *+' conftest.er1 >conftest.err
9729 rm -f conftest.er1
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } && {
9733 test -z "$ac_c_werror_flag" ||
9734 test ! -s conftest.err
9735 } && test -s conftest$ac_exeext &&
9736 $as_test_x conftest$ac_exeext; then
9737 ac_cv_lib_xnet_t_error=yes
9738else
9739 echo "$as_me: failed program was:" >&5
9740sed 's/^/| /' conftest.$ac_ext >&5
9741
9742 ac_cv_lib_xnet_t_error=no
9743fi
9744
9745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9746 conftest$ac_exeext conftest.$ac_ext
9747LIBS=$ac_check_lib_save_LIBS
9748fi
9749{ echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
9750echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
9751if test $ac_cv_lib_xnet_t_error = yes; then
9752 cat >>confdefs.h <<_ACEOF
9753#define HAVE_LIBXNET 1
9754_ACEOF
9755
9756 LIBS="-lxnet $LIBS"
9757
9758else
9759 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
9760echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
9761 { (exit 1); exit 1; }; }
9762fi
9763
9764
9765 # next, we define all of the options specific to major releases
9766 case "$host" in
9767 *-*-hpux10*)
9768 if test -z "$GCC"; then
9769 CFLAGS="$CFLAGS -Ae"
9770 fi
9771 ;;
9772 *-*-hpux11*)
9773
9774cat >>confdefs.h <<\_ACEOF
9775#define PAM_SUN_CODEBASE 1
9776_ACEOF
9777
9778
9779cat >>confdefs.h <<\_ACEOF
9780#define DISABLE_UTMP 1
9781_ACEOF
9782
9783
9784cat >>confdefs.h <<\_ACEOF
9785#define USE_BTMP 1
9786_ACEOF
9787
9788 check_for_hpux_broken_getaddrinfo=1
9789 check_for_conflicting_getspnam=1
9790 ;;
9791 esac
9792
9793 # lastly, we define options specific to minor releases
9794 case "$host" in
9795 *-*-hpux10.26)
9796
9797cat >>confdefs.h <<\_ACEOF
9798#define HAVE_SECUREWARE 1
9799_ACEOF
9800
9801 disable_ptmx_check=yes
9802 LIBS="$LIBS -lsecpw"
9803 ;;
9804 esac
9805 ;;
9806*-*-irix5*)
9807 PATH="$PATH:/usr/etc"
9808
9809cat >>confdefs.h <<\_ACEOF
9810#define BROKEN_INET_NTOA 1
9811_ACEOF
9812
9813 cat >>confdefs.h <<\_ACEOF
9814#define SETEUID_BREAKS_SETUID 1
9815_ACEOF
9816
9817 cat >>confdefs.h <<\_ACEOF
9818#define BROKEN_SETREUID 1
9819_ACEOF
9820
9821 cat >>confdefs.h <<\_ACEOF
9822#define BROKEN_SETREGID 1
9823_ACEOF
9824
9825
9826cat >>confdefs.h <<\_ACEOF
9827#define WITH_ABBREV_NO_TTY 1
9828_ACEOF
9829
9830 cat >>confdefs.h <<\_ACEOF
9831#define LOCKED_PASSWD_STRING "*LK*"
9832_ACEOF
9833
9834 ;;
9835*-*-irix6*)
9836 PATH="$PATH:/usr/etc"
9837
9838cat >>confdefs.h <<\_ACEOF
9839#define WITH_IRIX_ARRAY 1
9840_ACEOF
9841
9842
9843cat >>confdefs.h <<\_ACEOF
9844#define WITH_IRIX_PROJECT 1
9845_ACEOF
9846
9847
9848cat >>confdefs.h <<\_ACEOF
9849#define WITH_IRIX_AUDIT 1
9850_ACEOF
9851
9852 { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
9853echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
9854if test "${ac_cv_func_jlimit_startjob+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9856else
9857 cat >conftest.$ac_ext <<_ACEOF
9858/* confdefs.h. */
9859_ACEOF
9860cat confdefs.h >>conftest.$ac_ext
9861cat >>conftest.$ac_ext <<_ACEOF
9862/* end confdefs.h. */
9863/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
9864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9865#define jlimit_startjob innocuous_jlimit_startjob
9866
9867/* System header to define __stub macros and hopefully few prototypes,
9868 which can conflict with char jlimit_startjob (); below.
9869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9870 <limits.h> exists even on freestanding compilers. */
9871
9872#ifdef __STDC__
9873# include <limits.h>
9874#else
9875# include <assert.h>
9876#endif
9877
9878#undef jlimit_startjob
9879
9880/* Override any GCC internal prototype to avoid an error.
9881 Use char because int might match the return type of a GCC
9882 builtin and then its argument prototype would still apply. */
9883#ifdef __cplusplus
9884extern "C"
9885#endif
9886char jlimit_startjob ();
9887/* The GNU C library defines this for functions which it implements
9888 to always fail with ENOSYS. Some functions are actually named
9889 something starting with __ and the normal name is an alias. */
9890#if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
9891choke me
9892#endif
9893
9894int
9895main ()
9896{
9897return jlimit_startjob ();
9898 ;
9899 return 0;
9900}
9901_ACEOF
9902rm -f conftest.$ac_objext conftest$ac_exeext
9903if { (ac_try="$ac_link"
9904case "(($ac_try" in
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9907esac
9908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_link") 2>conftest.er1
9910 ac_status=$?
9911 grep -v '^ *+' conftest.er1 >conftest.err
9912 rm -f conftest.er1
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } && {
9916 test -z "$ac_c_werror_flag" ||
9917 test ! -s conftest.err
9918 } && test -s conftest$ac_exeext &&
9919 $as_test_x conftest$ac_exeext; then
9920 ac_cv_func_jlimit_startjob=yes
9921else
9922 echo "$as_me: failed program was:" >&5
9923sed 's/^/| /' conftest.$ac_ext >&5
9924
9925 ac_cv_func_jlimit_startjob=no
9926fi
9927
9928rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9929 conftest$ac_exeext conftest.$ac_ext
9930fi
9931{ echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
9932echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
9933if test $ac_cv_func_jlimit_startjob = yes; then
9934
9935cat >>confdefs.h <<\_ACEOF
9936#define WITH_IRIX_JOBS 1
9937_ACEOF
9938
9939fi
9940
9941 cat >>confdefs.h <<\_ACEOF
9942#define BROKEN_INET_NTOA 1
9943_ACEOF
9944
9945 cat >>confdefs.h <<\_ACEOF
9946#define SETEUID_BREAKS_SETUID 1
9947_ACEOF
9948
9949 cat >>confdefs.h <<\_ACEOF
9950#define BROKEN_SETREUID 1
9951_ACEOF
9952
9953 cat >>confdefs.h <<\_ACEOF
9954#define BROKEN_SETREGID 1
9955_ACEOF
9956
9957
9958cat >>confdefs.h <<\_ACEOF
9959#define BROKEN_UPDWTMPX 1
9960_ACEOF
9961
9962 cat >>confdefs.h <<\_ACEOF
9963#define WITH_ABBREV_NO_TTY 1
9964_ACEOF
9965
9966 cat >>confdefs.h <<\_ACEOF
9967#define LOCKED_PASSWD_STRING "*LK*"
9968_ACEOF
9969
9970 ;;
9971*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9972 check_for_libcrypt_later=1
9973 cat >>confdefs.h <<\_ACEOF
9974#define PAM_TTY_KLUDGE 1
9975_ACEOF
9976
9977 cat >>confdefs.h <<\_ACEOF
9978#define LOCKED_PASSWD_PREFIX "!"
9979_ACEOF
9980
9981 cat >>confdefs.h <<\_ACEOF
9982#define SPT_TYPE SPT_REUSEARGV
9983_ACEOF
9984
9985
9986cat >>confdefs.h <<\_ACEOF
9987#define _PATH_BTMP "/var/log/btmp"
9988_ACEOF
9989
9990
9991cat >>confdefs.h <<\_ACEOF
9992#define USE_BTMP 1
9993_ACEOF
9994
9995 ;;
9996*-*-linux*)
9997 no_dev_ptmx=1
9998 use_pie=auto
9999 check_for_libcrypt_later=1
10000 check_for_openpty_ctty_bug=1
10001
10002cat >>confdefs.h <<\_ACEOF
10003#define PAM_TTY_KLUDGE 1
10004_ACEOF
10005
10006
10007cat >>confdefs.h <<\_ACEOF
10008#define LOCKED_PASSWD_PREFIX "!"
10009_ACEOF
10010
10011 cat >>confdefs.h <<\_ACEOF
10012#define SPT_TYPE SPT_REUSEARGV
10013_ACEOF
10014
10015
10016cat >>confdefs.h <<\_ACEOF
10017#define LINK_OPNOTSUPP_ERRNO EPERM
10018_ACEOF
10019
10020
10021cat >>confdefs.h <<\_ACEOF
10022#define _PATH_BTMP "/var/log/btmp"
10023_ACEOF
10024
10025 cat >>confdefs.h <<\_ACEOF
10026#define USE_BTMP 1
10027_ACEOF
10028
10029
10030cat >>confdefs.h <<\_ACEOF
10031#define LINUX_OOM_ADJUST 1
10032_ACEOF
10033
10034 inet6_default_4in6=yes
10035 case `uname -r` in
10036 1.*|2.0.*)
10037
10038cat >>confdefs.h <<\_ACEOF
10039#define BROKEN_CMSG_TYPE 1
10040_ACEOF
10041
10042 ;;
10043 esac
10044 # tun(4) forwarding compat code
10045
10046for ac_header in linux/if_tun.h
10047do
10048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10054fi
10055ac_res=`eval echo '${'$as_ac_Header'}'`
10056 { echo "$as_me:$LINENO: result: $ac_res" >&5
10057echo "${ECHO_T}$ac_res" >&6; }
10058else
10059 # Is the header compilable?
10060{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10061echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10062cat >conftest.$ac_ext <<_ACEOF
10063/* confdefs.h. */
10064_ACEOF
10065cat confdefs.h >>conftest.$ac_ext
10066cat >>conftest.$ac_ext <<_ACEOF
10067/* end confdefs.h. */
10068$ac_includes_default
10069#include <$ac_header>
10070_ACEOF
10071rm -f conftest.$ac_objext
10072if { (ac_try="$ac_compile"
10073case "(($ac_try" in
10074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075 *) ac_try_echo=$ac_try;;
10076esac
10077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078 (eval "$ac_compile") 2>conftest.er1
10079 ac_status=$?
10080 grep -v '^ *+' conftest.er1 >conftest.err
10081 rm -f conftest.er1
10082 cat conftest.err >&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } && {
10085 test -z "$ac_c_werror_flag" ||
10086 test ! -s conftest.err
10087 } && test -s conftest.$ac_objext; then
10088 ac_header_compiler=yes
10089else
10090 echo "$as_me: failed program was:" >&5
10091sed 's/^/| /' conftest.$ac_ext >&5
10092
10093 ac_header_compiler=no
10094fi
10095
10096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10097{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10098echo "${ECHO_T}$ac_header_compiler" >&6; }
10099
10100# Is the header present?
10101{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10102echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10103cat >conftest.$ac_ext <<_ACEOF
10104/* confdefs.h. */
10105_ACEOF
10106cat confdefs.h >>conftest.$ac_ext
10107cat >>conftest.$ac_ext <<_ACEOF
10108/* end confdefs.h. */
10109#include <$ac_header>
10110_ACEOF
10111if { (ac_try="$ac_cpp conftest.$ac_ext"
10112case "(($ac_try" in
10113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114 *) ac_try_echo=$ac_try;;
10115esac
10116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10118 ac_status=$?
10119 grep -v '^ *+' conftest.er1 >conftest.err
10120 rm -f conftest.er1
10121 cat conftest.err >&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } >/dev/null && {
10124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10125 test ! -s conftest.err
10126 }; then
10127 ac_header_preproc=yes
10128else
10129 echo "$as_me: failed program was:" >&5
10130sed 's/^/| /' conftest.$ac_ext >&5
10131
10132 ac_header_preproc=no
10133fi
10134
10135rm -f conftest.err conftest.$ac_ext
10136{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10137echo "${ECHO_T}$ac_header_preproc" >&6; }
10138
10139# So? What about this header?
10140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10141 yes:no: )
10142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10143echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10145echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10146 ac_header_preproc=yes
10147 ;;
10148 no:yes:* )
10149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10152echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10154echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10156echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10160echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10161 ( cat <<\_ASBOX
10162## ------------------------------------------- ##
10163## Report this to openssh-unix-dev@mindrot.org ##
10164## ------------------------------------------- ##
10165_ASBOX
10166 ) | sed "s/^/$as_me: WARNING: /" >&2
10167 ;;
10168esac
10169{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10173else
10174 eval "$as_ac_Header=\$ac_header_preproc"
10175fi
10176ac_res=`eval echo '${'$as_ac_Header'}'`
10177 { echo "$as_me:$LINENO: result: $ac_res" >&5
10178echo "${ECHO_T}$ac_res" >&6; }
10179
10180fi
10181if test `eval echo '${'$as_ac_Header'}'` = yes; then
10182 cat >>confdefs.h <<_ACEOF
10183#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10184_ACEOF
10185
10186fi
10187
10188done
10189
10190 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
10191
10192cat >>confdefs.h <<\_ACEOF
10193#define SSH_TUN_LINUX 1
10194_ACEOF
10195
10196
10197cat >>confdefs.h <<\_ACEOF
10198#define SSH_TUN_COMPAT_AF 1
10199_ACEOF
10200
10201
10202cat >>confdefs.h <<\_ACEOF
10203#define SSH_TUN_PREPEND_AF 1
10204_ACEOF
10205
10206 fi
10207
10208
10209
10210for ac_header in linux/seccomp.h linux/filter.h linux/audit.h
10211do
10212as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10213{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
10217else
10218 cat >conftest.$ac_ext <<_ACEOF
10219/* confdefs.h. */
10220_ACEOF
10221cat confdefs.h >>conftest.$ac_ext
10222cat >>conftest.$ac_ext <<_ACEOF
10223/* end confdefs.h. */
10224#include <linux/types.h>
10225
10226#include <$ac_header>
10227_ACEOF
10228rm -f conftest.$ac_objext
10229if { (ac_try="$ac_compile"
10230case "(($ac_try" in
10231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232 *) ac_try_echo=$ac_try;;
10233esac
10234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235 (eval "$ac_compile") 2>conftest.er1
10236 ac_status=$?
10237 grep -v '^ *+' conftest.er1 >conftest.err
10238 rm -f conftest.er1
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } && {
10242 test -z "$ac_c_werror_flag" ||
10243 test ! -s conftest.err
10244 } && test -s conftest.$ac_objext; then
10245 eval "$as_ac_Header=yes"
10246else
10247 echo "$as_me: failed program was:" >&5
10248sed 's/^/| /' conftest.$ac_ext >&5
10249
10250 eval "$as_ac_Header=no"
10251fi
10252
10253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10254fi
10255ac_res=`eval echo '${'$as_ac_Header'}'`
10256 { echo "$as_me:$LINENO: result: $ac_res" >&5
10257echo "${ECHO_T}$ac_res" >&6; }
10258if test `eval echo '${'$as_ac_Header'}'` = yes; then
10259 cat >>confdefs.h <<_ACEOF
10260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10261_ACEOF
10262
10263fi
10264
10265done
10266
10267
10268for ac_func in prctl
10269do
10270as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10271{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10272echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10273if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10275else
10276 cat >conftest.$ac_ext <<_ACEOF
10277/* confdefs.h. */
10278_ACEOF
10279cat confdefs.h >>conftest.$ac_ext
10280cat >>conftest.$ac_ext <<_ACEOF
10281/* end confdefs.h. */
10282/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10284#define $ac_func innocuous_$ac_func
10285
10286/* System header to define __stub macros and hopefully few prototypes,
10287 which can conflict with char $ac_func (); below.
10288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10289 <limits.h> exists even on freestanding compilers. */
10290
10291#ifdef __STDC__
10292# include <limits.h>
10293#else
10294# include <assert.h>
10295#endif
10296
10297#undef $ac_func
10298
10299/* Override any GCC internal prototype to avoid an error.
10300 Use char because int might match the return type of a GCC
10301 builtin and then its argument prototype would still apply. */
10302#ifdef __cplusplus
10303extern "C"
10304#endif
10305char $ac_func ();
10306/* The GNU C library defines this for functions which it implements
10307 to always fail with ENOSYS. Some functions are actually named
10308 something starting with __ and the normal name is an alias. */
10309#if defined __stub_$ac_func || defined __stub___$ac_func
10310choke me
10311#endif
10312
10313int
10314main ()
10315{
10316return $ac_func ();
10317 ;
10318 return 0;
10319}
10320_ACEOF
10321rm -f conftest.$ac_objext conftest$ac_exeext
10322if { (ac_try="$ac_link"
10323case "(($ac_try" in
10324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10325 *) ac_try_echo=$ac_try;;
10326esac
10327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10328 (eval "$ac_link") 2>conftest.er1
10329 ac_status=$?
10330 grep -v '^ *+' conftest.er1 >conftest.err
10331 rm -f conftest.er1
10332 cat conftest.err >&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } && {
10335 test -z "$ac_c_werror_flag" ||
10336 test ! -s conftest.err
10337 } && test -s conftest$ac_exeext &&
10338 $as_test_x conftest$ac_exeext; then
10339 eval "$as_ac_var=yes"
10340else
10341 echo "$as_me: failed program was:" >&5
10342sed 's/^/| /' conftest.$ac_ext >&5
10343
10344 eval "$as_ac_var=no"
10345fi
10346
10347rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10348 conftest$ac_exeext conftest.$ac_ext
10349fi
10350ac_res=`eval echo '${'$as_ac_var'}'`
10351 { echo "$as_me:$LINENO: result: $ac_res" >&5
10352echo "${ECHO_T}$ac_res" >&6; }
10353if test `eval echo '${'$as_ac_var'}'` = yes; then
10354 cat >>confdefs.h <<_ACEOF
10355#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10356_ACEOF
10357
10358fi
10359done
10360
10361 { echo "$as_me:$LINENO: checking for seccomp architecture" >&5
10362echo $ECHO_N "checking for seccomp architecture... $ECHO_C" >&6; }
10363 seccomp_audit_arch=
10364 case "$host" in
10365 x86_64-*)
10366 seccomp_audit_arch=AUDIT_ARCH_X86_64
10367 ;;
10368 i*86-*)
10369 seccomp_audit_arch=AUDIT_ARCH_I386
10370 ;;
10371 arm*-*)
10372 seccomp_audit_arch=AUDIT_ARCH_ARM
10373 ;;
10374 aarch64*-*)
10375 seccomp_audit_arch=AUDIT_ARCH_AARCH64
10376 ;;
10377 esac
10378 if test "x$seccomp_audit_arch" != "x" ; then
10379 { echo "$as_me:$LINENO: result: \"$seccomp_audit_arch\"" >&5
10380echo "${ECHO_T}\"$seccomp_audit_arch\"" >&6; }
10381
10382cat >>confdefs.h <<_ACEOF
10383#define SECCOMP_AUDIT_ARCH $seccomp_audit_arch
10384_ACEOF
10385
10386 else
10387 { echo "$as_me:$LINENO: result: architecture not supported" >&5
10388echo "${ECHO_T}architecture not supported" >&6; }
10389 fi
10390 ;;
10391mips-sony-bsd|mips-sony-newsos4)
10392
10393cat >>confdefs.h <<\_ACEOF
10394#define NEED_SETPGRP 1
10395_ACEOF
10396
10397 SONY=1
10398 ;;
10399*-*-netbsd*)
10400 check_for_libcrypt_before=1
10401 if test "x$withval" != "xno" ; then
10402 need_dash_r=1
10403 fi
10404
10405cat >>confdefs.h <<\_ACEOF
10406#define SSH_TUN_FREEBSD 1
10407_ACEOF
10408
10409 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10410 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10411echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10412if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10414fi
10415{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10416echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10417else
10418 # Is the header compilable?
10419{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
10420echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
10421cat >conftest.$ac_ext <<_ACEOF
10422/* confdefs.h. */
10423_ACEOF
10424cat confdefs.h >>conftest.$ac_ext
10425cat >>conftest.$ac_ext <<_ACEOF
10426/* end confdefs.h. */
10427$ac_includes_default
10428#include <net/if_tap.h>
10429_ACEOF
10430rm -f conftest.$ac_objext
10431if { (ac_try="$ac_compile"
10432case "(($ac_try" in
10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10435esac
10436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 (eval "$ac_compile") 2>conftest.er1
10438 ac_status=$?
10439 grep -v '^ *+' conftest.er1 >conftest.err
10440 rm -f conftest.er1
10441 cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } && {
10444 test -z "$ac_c_werror_flag" ||
10445 test ! -s conftest.err
10446 } && test -s conftest.$ac_objext; then
10447 ac_header_compiler=yes
10448else
10449 echo "$as_me: failed program was:" >&5
10450sed 's/^/| /' conftest.$ac_ext >&5
10451
10452 ac_header_compiler=no
10453fi
10454
10455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10456{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10457echo "${ECHO_T}$ac_header_compiler" >&6; }
10458
10459# Is the header present?
10460{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
10461echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
10462cat >conftest.$ac_ext <<_ACEOF
10463/* confdefs.h. */
10464_ACEOF
10465cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h. */
10468#include <net/if_tap.h>
10469_ACEOF
10470if { (ac_try="$ac_cpp conftest.$ac_ext"
10471case "(($ac_try" in
10472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473 *) ac_try_echo=$ac_try;;
10474esac
10475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10477 ac_status=$?
10478 grep -v '^ *+' conftest.er1 >conftest.err
10479 rm -f conftest.er1
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } >/dev/null && {
10483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10484 test ! -s conftest.err
10485 }; then
10486 ac_header_preproc=yes
10487else
10488 echo "$as_me: failed program was:" >&5
10489sed 's/^/| /' conftest.$ac_ext >&5
10490
10491 ac_header_preproc=no
10492fi
10493
10494rm -f conftest.err conftest.$ac_ext
10495{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10496echo "${ECHO_T}$ac_header_preproc" >&6; }
10497
10498# So? What about this header?
10499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10500 yes:no: )
10501 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
10502echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10503 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
10504echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
10505 ac_header_preproc=yes
10506 ;;
10507 no:yes:* )
10508 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
10509echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
10511echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
10513echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
10514 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
10515echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
10516 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
10517echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
10518 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
10519echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
10520 ( cat <<\_ASBOX
10521## ------------------------------------------- ##
10522## Report this to openssh-unix-dev@mindrot.org ##
10523## ------------------------------------------- ##
10524_ASBOX
10525 ) | sed "s/^/$as_me: WARNING: /" >&2
10526 ;;
10527esac
10528{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10529echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10530if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10532else
10533 ac_cv_header_net_if_tap_h=$ac_header_preproc
10534fi
10535{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10536echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10537
10538fi
10539if test $ac_cv_header_net_if_tap_h = yes; then
10540 :
10541else
10542
10543cat >>confdefs.h <<\_ACEOF
10544#define SSH_TUN_NO_L2 1
10545_ACEOF
10546
10547fi
10548
10549
10550
10551cat >>confdefs.h <<\_ACEOF
10552#define SSH_TUN_PREPEND_AF 1
10553_ACEOF
10554
10555 TEST_MALLOC_OPTIONS="AJRX"
10556
10557cat >>confdefs.h <<\_ACEOF
10558#define BROKEN_STRNVIS 1
10559_ACEOF
10560
10561
10562cat >>confdefs.h <<\_ACEOF
10563#define BROKEN_READ_COMPARISON 1
10564_ACEOF
10565
10566 ;;
10567*-*-freebsd*)
10568 check_for_libcrypt_later=1
10569
10570cat >>confdefs.h <<\_ACEOF
10571#define LOCKED_PASSWD_PREFIX "*LOCKED*"
10572_ACEOF
10573
10574
10575cat >>confdefs.h <<\_ACEOF
10576#define SSH_TUN_FREEBSD 1
10577_ACEOF
10578
10579 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10580 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10581echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10582if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10584fi
10585{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10586echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10587else
10588 # Is the header compilable?
10589{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
10590echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
10591cat >conftest.$ac_ext <<_ACEOF
10592/* confdefs.h. */
10593_ACEOF
10594cat confdefs.h >>conftest.$ac_ext
10595cat >>conftest.$ac_ext <<_ACEOF
10596/* end confdefs.h. */
10597$ac_includes_default
10598#include <net/if_tap.h>
10599_ACEOF
10600rm -f conftest.$ac_objext
10601if { (ac_try="$ac_compile"
10602case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10605esac
10606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_compile") 2>conftest.er1
10608 ac_status=$?
10609 grep -v '^ *+' conftest.er1 >conftest.err
10610 rm -f conftest.er1
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && {
10614 test -z "$ac_c_werror_flag" ||
10615 test ! -s conftest.err
10616 } && test -s conftest.$ac_objext; then
10617 ac_header_compiler=yes
10618else
10619 echo "$as_me: failed program was:" >&5
10620sed 's/^/| /' conftest.$ac_ext >&5
10621
10622 ac_header_compiler=no
10623fi
10624
10625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10626{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10627echo "${ECHO_T}$ac_header_compiler" >&6; }
10628
10629# Is the header present?
10630{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
10631echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
10632cat >conftest.$ac_ext <<_ACEOF
10633/* confdefs.h. */
10634_ACEOF
10635cat confdefs.h >>conftest.$ac_ext
10636cat >>conftest.$ac_ext <<_ACEOF
10637/* end confdefs.h. */
10638#include <net/if_tap.h>
10639_ACEOF
10640if { (ac_try="$ac_cpp conftest.$ac_ext"
10641case "(($ac_try" in
10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643 *) ac_try_echo=$ac_try;;
10644esac
10645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10647 ac_status=$?
10648 grep -v '^ *+' conftest.er1 >conftest.err
10649 rm -f conftest.er1
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } >/dev/null && {
10653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10654 test ! -s conftest.err
10655 }; then
10656 ac_header_preproc=yes
10657else
10658 echo "$as_me: failed program was:" >&5
10659sed 's/^/| /' conftest.$ac_ext >&5
10660
10661 ac_header_preproc=no
10662fi
10663
10664rm -f conftest.err conftest.$ac_ext
10665{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10666echo "${ECHO_T}$ac_header_preproc" >&6; }
10667
10668# So? What about this header?
10669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10670 yes:no: )
10671 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
10672echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10673 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
10674echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
10675 ac_header_preproc=yes
10676 ;;
10677 no:yes:* )
10678 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
10679echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
10680 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
10681echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
10682 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
10683echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
10684 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
10685echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
10686 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
10687echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
10688 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
10689echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
10690 ( cat <<\_ASBOX
10691## ------------------------------------------- ##
10692## Report this to openssh-unix-dev@mindrot.org ##
10693## ------------------------------------------- ##
10694_ASBOX
10695 ) | sed "s/^/$as_me: WARNING: /" >&2
10696 ;;
10697esac
10698{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10699echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10700if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10702else
10703 ac_cv_header_net_if_tap_h=$ac_header_preproc
10704fi
10705{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10706echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10707
10708fi
10709if test $ac_cv_header_net_if_tap_h = yes; then
10710 :
10711else
10712
10713cat >>confdefs.h <<\_ACEOF
10714#define SSH_TUN_NO_L2 1
10715_ACEOF
10716
10717fi
10718
10719
10720
10721cat >>confdefs.h <<\_ACEOF
10722#define BROKEN_GLOB 1
10723_ACEOF
10724
10725
10726cat >>confdefs.h <<\_ACEOF
10727#define BROKEN_STRNVIS 1
10728_ACEOF
10729
10730 TEST_MALLOC_OPTIONS="AJRX"
10731 # Preauth crypto occasionally uses file descriptors for crypto offload
10732 # and will crash if they cannot be opened.
10733
10734cat >>confdefs.h <<\_ACEOF
10735#define SANDBOX_SKIP_RLIMIT_NOFILE 1
10736_ACEOF
10737
10738 ;;
10739*-*-bsdi*)
10740 cat >>confdefs.h <<\_ACEOF
10741#define SETEUID_BREAKS_SETUID 1
10742_ACEOF
10743
10744 cat >>confdefs.h <<\_ACEOF
10745#define BROKEN_SETREUID 1
10746_ACEOF
10747
10748 cat >>confdefs.h <<\_ACEOF
10749#define BROKEN_SETREGID 1
10750_ACEOF
10751
10752 ;;
10753*-next-*)
10754 conf_lastlog_location="/usr/adm/lastlog"
10755 conf_utmp_location=/etc/utmp
10756 conf_wtmp_location=/usr/adm/wtmp
10757 maildir=/usr/spool/mail
10758
10759cat >>confdefs.h <<\_ACEOF
10760#define HAVE_NEXT 1
10761_ACEOF
10762
10763 cat >>confdefs.h <<\_ACEOF
10764#define BROKEN_REALPATH 1
10765_ACEOF
10766
10767 cat >>confdefs.h <<\_ACEOF
10768#define USE_PIPES 1
10769_ACEOF
10770
10771
10772cat >>confdefs.h <<\_ACEOF
10773#define BROKEN_SAVED_UIDS 1
10774_ACEOF
10775
10776 ;;
10777*-*-openbsd*)
10778 use_pie=auto
10779
10780cat >>confdefs.h <<\_ACEOF
10781#define HAVE_ATTRIBUTE__SENTINEL__ 1
10782_ACEOF
10783
10784
10785cat >>confdefs.h <<\_ACEOF
10786#define HAVE_ATTRIBUTE__BOUNDED__ 1
10787_ACEOF
10788
10789
10790cat >>confdefs.h <<\_ACEOF
10791#define SSH_TUN_OPENBSD 1
10792_ACEOF
10793
10794
10795cat >>confdefs.h <<\_ACEOF
10796#define SYSLOG_R_SAFE_IN_SIGHAND 1
10797_ACEOF
10798
10799 TEST_MALLOC_OPTIONS="AFGJPRX"
10800 ;;
10801*-*-solaris*)
10802 if test "x$withval" != "xno" ; then
10803 need_dash_r=1
10804 fi
10805 cat >>confdefs.h <<\_ACEOF
10806#define PAM_SUN_CODEBASE 1
10807_ACEOF
10808
10809 cat >>confdefs.h <<\_ACEOF
10810#define LOGIN_NEEDS_UTMPX 1
10811_ACEOF
10812
10813
10814cat >>confdefs.h <<\_ACEOF
10815#define LOGIN_NEEDS_TERM 1
10816_ACEOF
10817
10818 cat >>confdefs.h <<\_ACEOF
10819#define PAM_TTY_KLUDGE 1
10820_ACEOF
10821
10822
10823cat >>confdefs.h <<\_ACEOF
10824#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
10825_ACEOF
10826
10827 cat >>confdefs.h <<\_ACEOF
10828#define LOCKED_PASSWD_STRING "*LK*"
10829_ACEOF
10830
10831 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
10832
10833cat >>confdefs.h <<\_ACEOF
10834#define SSHD_ACQUIRES_CTTY 1
10835_ACEOF
10836
10837
10838cat >>confdefs.h <<\_ACEOF
10839#define PASSWD_NEEDS_USERNAME 1
10840_ACEOF
10841
10842
10843cat >>confdefs.h <<\_ACEOF
10844#define BROKEN_TCGETATTR_ICANON 1
10845_ACEOF
10846
10847 external_path_file=/etc/default/login
10848 # hardwire lastlog location (can't detect it on some versions)
10849 conf_lastlog_location="/var/adm/lastlog"
10850 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
10851echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
10852 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
10853 if test "$sol2ver" -ge 8; then
10854 { echo "$as_me:$LINENO: result: yes" >&5
10855echo "${ECHO_T}yes" >&6; }
10856 cat >>confdefs.h <<\_ACEOF
10857#define DISABLE_UTMP 1
10858_ACEOF
10859
10860
10861cat >>confdefs.h <<\_ACEOF
10862#define DISABLE_WTMP 1
10863_ACEOF
10864
10865 else
10866 { echo "$as_me:$LINENO: result: no" >&5
10867echo "${ECHO_T}no" >&6; }
10868 fi
10869
10870for ac_func in setppriv
10871do
10872as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10873{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10874echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10875if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10877else
10878 cat >conftest.$ac_ext <<_ACEOF
10879/* confdefs.h. */
10880_ACEOF
10881cat confdefs.h >>conftest.$ac_ext
10882cat >>conftest.$ac_ext <<_ACEOF
10883/* end confdefs.h. */
10884/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10886#define $ac_func innocuous_$ac_func
10887
10888/* System header to define __stub macros and hopefully few prototypes,
10889 which can conflict with char $ac_func (); below.
10890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10891 <limits.h> exists even on freestanding compilers. */
10892
10893#ifdef __STDC__
10894# include <limits.h>
10895#else
10896# include <assert.h>
10897#endif
10898
10899#undef $ac_func
10900
10901/* Override any GCC internal prototype to avoid an error.
10902 Use char because int might match the return type of a GCC
10903 builtin and then its argument prototype would still apply. */
10904#ifdef __cplusplus
10905extern "C"
10906#endif
10907char $ac_func ();
10908/* The GNU C library defines this for functions which it implements
10909 to always fail with ENOSYS. Some functions are actually named
10910 something starting with __ and the normal name is an alias. */
10911#if defined __stub_$ac_func || defined __stub___$ac_func
10912choke me
10913#endif
10914
10915int
10916main ()
10917{
10918return $ac_func ();
10919 ;
10920 return 0;
10921}
10922_ACEOF
10923rm -f conftest.$ac_objext conftest$ac_exeext
10924if { (ac_try="$ac_link"
10925case "(($ac_try" in
10926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927 *) ac_try_echo=$ac_try;;
10928esac
10929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10930 (eval "$ac_link") 2>conftest.er1
10931 ac_status=$?
10932 grep -v '^ *+' conftest.er1 >conftest.err
10933 rm -f conftest.er1
10934 cat conftest.err >&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); } && {
10937 test -z "$ac_c_werror_flag" ||
10938 test ! -s conftest.err
10939 } && test -s conftest$ac_exeext &&
10940 $as_test_x conftest$ac_exeext; then
10941 eval "$as_ac_var=yes"
10942else
10943 echo "$as_me: failed program was:" >&5
10944sed 's/^/| /' conftest.$ac_ext >&5
10945
10946 eval "$as_ac_var=no"
10947fi
10948
10949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10950 conftest$ac_exeext conftest.$ac_ext
10951fi
10952ac_res=`eval echo '${'$as_ac_var'}'`
10953 { echo "$as_me:$LINENO: result: $ac_res" >&5
10954echo "${ECHO_T}$ac_res" >&6; }
10955if test `eval echo '${'$as_ac_var'}'` = yes; then
10956 cat >>confdefs.h <<_ACEOF
10957#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10958_ACEOF
10959
10960fi
10961done
10962
10963
10964for ac_func in priv_basicset
10965do
10966as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10967{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10968echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10969if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10971else
10972 cat >conftest.$ac_ext <<_ACEOF
10973/* confdefs.h. */
10974_ACEOF
10975cat confdefs.h >>conftest.$ac_ext
10976cat >>conftest.$ac_ext <<_ACEOF
10977/* end confdefs.h. */
10978/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10980#define $ac_func innocuous_$ac_func
10981
10982/* System header to define __stub macros and hopefully few prototypes,
10983 which can conflict with char $ac_func (); below.
10984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10985 <limits.h> exists even on freestanding compilers. */
10986
10987#ifdef __STDC__
10988# include <limits.h>
10989#else
10990# include <assert.h>
10991#endif
10992
10993#undef $ac_func
10994
10995/* Override any GCC internal prototype to avoid an error.
10996 Use char because int might match the return type of a GCC
10997 builtin and then its argument prototype would still apply. */
10998#ifdef __cplusplus
10999extern "C"
11000#endif
11001char $ac_func ();
11002/* The GNU C library defines this for functions which it implements
11003 to always fail with ENOSYS. Some functions are actually named
11004 something starting with __ and the normal name is an alias. */
11005#if defined __stub_$ac_func || defined __stub___$ac_func
11006choke me
11007#endif
11008
11009int
11010main ()
11011{
11012return $ac_func ();
11013 ;
11014 return 0;
11015}
11016_ACEOF
11017rm -f conftest.$ac_objext conftest$ac_exeext
11018if { (ac_try="$ac_link"
11019case "(($ac_try" in
11020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021 *) ac_try_echo=$ac_try;;
11022esac
11023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024 (eval "$ac_link") 2>conftest.er1
11025 ac_status=$?
11026 grep -v '^ *+' conftest.er1 >conftest.err
11027 rm -f conftest.er1
11028 cat conftest.err >&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } && {
11031 test -z "$ac_c_werror_flag" ||
11032 test ! -s conftest.err
11033 } && test -s conftest$ac_exeext &&
11034 $as_test_x conftest$ac_exeext; then
11035 eval "$as_ac_var=yes"
11036else
11037 echo "$as_me: failed program was:" >&5
11038sed 's/^/| /' conftest.$ac_ext >&5
11039
11040 eval "$as_ac_var=no"
11041fi
11042
11043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11044 conftest$ac_exeext conftest.$ac_ext
11045fi
11046ac_res=`eval echo '${'$as_ac_var'}'`
11047 { echo "$as_me:$LINENO: result: $ac_res" >&5
11048echo "${ECHO_T}$ac_res" >&6; }
11049if test `eval echo '${'$as_ac_var'}'` = yes; then
11050 cat >>confdefs.h <<_ACEOF
11051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11052_ACEOF
11053
11054fi
11055done
11056
11057
11058for ac_header in priv.h
11059do
11060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11066fi
11067ac_res=`eval echo '${'$as_ac_Header'}'`
11068 { echo "$as_me:$LINENO: result: $ac_res" >&5
11069echo "${ECHO_T}$ac_res" >&6; }
11070else
11071 # Is the header compilable?
11072{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11073echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11074cat >conftest.$ac_ext <<_ACEOF
11075/* confdefs.h. */
11076_ACEOF
11077cat confdefs.h >>conftest.$ac_ext
11078cat >>conftest.$ac_ext <<_ACEOF
11079/* end confdefs.h. */
11080$ac_includes_default
11081#include <$ac_header>
11082_ACEOF
11083rm -f conftest.$ac_objext
11084if { (ac_try="$ac_compile"
11085case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11088esac
11089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090 (eval "$ac_compile") 2>conftest.er1
11091 ac_status=$?
11092 grep -v '^ *+' conftest.er1 >conftest.err
11093 rm -f conftest.er1
11094 cat conftest.err >&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } && {
11097 test -z "$ac_c_werror_flag" ||
11098 test ! -s conftest.err
11099 } && test -s conftest.$ac_objext; then
11100 ac_header_compiler=yes
11101else
11102 echo "$as_me: failed program was:" >&5
11103sed 's/^/| /' conftest.$ac_ext >&5
11104
11105 ac_header_compiler=no
11106fi
11107
11108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11109{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11110echo "${ECHO_T}$ac_header_compiler" >&6; }
11111
11112# Is the header present?
11113{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11114echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11115cat >conftest.$ac_ext <<_ACEOF
11116/* confdefs.h. */
11117_ACEOF
11118cat confdefs.h >>conftest.$ac_ext
11119cat >>conftest.$ac_ext <<_ACEOF
11120/* end confdefs.h. */
11121#include <$ac_header>
11122_ACEOF
11123if { (ac_try="$ac_cpp conftest.$ac_ext"
11124case "(($ac_try" in
11125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126 *) ac_try_echo=$ac_try;;
11127esac
11128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11130 ac_status=$?
11131 grep -v '^ *+' conftest.er1 >conftest.err
11132 rm -f conftest.er1
11133 cat conftest.err >&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } >/dev/null && {
11136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11137 test ! -s conftest.err
11138 }; then
11139 ac_header_preproc=yes
11140else
11141 echo "$as_me: failed program was:" >&5
11142sed 's/^/| /' conftest.$ac_ext >&5
11143
11144 ac_header_preproc=no
11145fi
11146
11147rm -f conftest.err conftest.$ac_ext
11148{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11149echo "${ECHO_T}$ac_header_preproc" >&6; }
11150
11151# So? What about this header?
11152case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11153 yes:no: )
11154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11155echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11157echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11158 ac_header_preproc=yes
11159 ;;
11160 no:yes:* )
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11162echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11164echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11166echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11168echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11170echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11172echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11173 ( cat <<\_ASBOX
11174## ------------------------------------------- ##
11175## Report this to openssh-unix-dev@mindrot.org ##
11176## ------------------------------------------- ##
11177_ASBOX
11178 ) | sed "s/^/$as_me: WARNING: /" >&2
11179 ;;
11180esac
11181{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11183if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185else
11186 eval "$as_ac_Header=\$ac_header_preproc"
11187fi
11188ac_res=`eval echo '${'$as_ac_Header'}'`
11189 { echo "$as_me:$LINENO: result: $ac_res" >&5
11190echo "${ECHO_T}$ac_res" >&6; }
11191
11192fi
11193if test `eval echo '${'$as_ac_Header'}'` = yes; then
11194 cat >>confdefs.h <<_ACEOF
11195#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11196_ACEOF
11197
11198fi
11199
11200done
11201
11202
11203# Check whether --with-solaris-contracts was given.
11204if test "${with_solaris_contracts+set}" = set; then
11205 withval=$with_solaris_contracts;
11206 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
11207echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
11208if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11210else
11211 ac_check_lib_save_LIBS=$LIBS
11212LIBS="-lcontract $LIBS"
11213cat >conftest.$ac_ext <<_ACEOF
11214/* confdefs.h. */
11215_ACEOF
11216cat confdefs.h >>conftest.$ac_ext
11217cat >>conftest.$ac_ext <<_ACEOF
11218/* end confdefs.h. */
11219
11220/* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11223#ifdef __cplusplus
11224extern "C"
11225#endif
11226char ct_tmpl_activate ();
11227int
11228main ()
11229{
11230return ct_tmpl_activate ();
11231 ;
11232 return 0;
11233}
11234_ACEOF
11235rm -f conftest.$ac_objext conftest$ac_exeext
11236if { (ac_try="$ac_link"
11237case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11240esac
11241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242 (eval "$ac_link") 2>conftest.er1
11243 ac_status=$?
11244 grep -v '^ *+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } && {
11249 test -z "$ac_c_werror_flag" ||
11250 test ! -s conftest.err
11251 } && test -s conftest$ac_exeext &&
11252 $as_test_x conftest$ac_exeext; then
11253 ac_cv_lib_contract_ct_tmpl_activate=yes
11254else
11255 echo "$as_me: failed program was:" >&5
11256sed 's/^/| /' conftest.$ac_ext >&5
11257
11258 ac_cv_lib_contract_ct_tmpl_activate=no
11259fi
11260
11261rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11262 conftest$ac_exeext conftest.$ac_ext
11263LIBS=$ac_check_lib_save_LIBS
11264fi
11265{ echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
11266echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
11267if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
11268
11269cat >>confdefs.h <<\_ACEOF
11270#define USE_SOLARIS_PROCESS_CONTRACTS 1
11271_ACEOF
11272
11273 LIBS="$LIBS -lcontract"
11274 SPC_MSG="yes"
11275fi
11276
11277
11278fi
11279
11280
11281# Check whether --with-solaris-projects was given.
11282if test "${with_solaris_projects+set}" = set; then
11283 withval=$with_solaris_projects;
11284 { echo "$as_me:$LINENO: checking for setproject in -lproject" >&5
11285echo $ECHO_N "checking for setproject in -lproject... $ECHO_C" >&6; }
11286if test "${ac_cv_lib_project_setproject+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11288else
11289 ac_check_lib_save_LIBS=$LIBS
11290LIBS="-lproject $LIBS"
11291cat >conftest.$ac_ext <<_ACEOF
11292/* confdefs.h. */
11293_ACEOF
11294cat confdefs.h >>conftest.$ac_ext
11295cat >>conftest.$ac_ext <<_ACEOF
11296/* end confdefs.h. */
11297
11298/* Override any GCC internal prototype to avoid an error.
11299 Use char because int might match the return type of a GCC
11300 builtin and then its argument prototype would still apply. */
11301#ifdef __cplusplus
11302extern "C"
11303#endif
11304char setproject ();
11305int
11306main ()
11307{
11308return setproject ();
11309 ;
11310 return 0;
11311}
11312_ACEOF
11313rm -f conftest.$ac_objext conftest$ac_exeext
11314if { (ac_try="$ac_link"
11315case "(($ac_try" in
11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317 *) ac_try_echo=$ac_try;;
11318esac
11319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320 (eval "$ac_link") 2>conftest.er1
11321 ac_status=$?
11322 grep -v '^ *+' conftest.er1 >conftest.err
11323 rm -f conftest.er1
11324 cat conftest.err >&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } && {
11327 test -z "$ac_c_werror_flag" ||
11328 test ! -s conftest.err
11329 } && test -s conftest$ac_exeext &&
11330 $as_test_x conftest$ac_exeext; then
11331 ac_cv_lib_project_setproject=yes
11332else
11333 echo "$as_me: failed program was:" >&5
11334sed 's/^/| /' conftest.$ac_ext >&5
11335
11336 ac_cv_lib_project_setproject=no
11337fi
11338
11339rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11340 conftest$ac_exeext conftest.$ac_ext
11341LIBS=$ac_check_lib_save_LIBS
11342fi
11343{ echo "$as_me:$LINENO: result: $ac_cv_lib_project_setproject" >&5
11344echo "${ECHO_T}$ac_cv_lib_project_setproject" >&6; }
11345if test $ac_cv_lib_project_setproject = yes; then
11346
11347cat >>confdefs.h <<\_ACEOF
11348#define USE_SOLARIS_PROJECTS 1
11349_ACEOF
11350
11351 LIBS="$LIBS -lproject"
11352 SP_MSG="yes"
11353fi
11354
11355
11356fi
11357
11358
11359# Check whether --with-solaris-privs was given.
11360if test "${with_solaris_privs+set}" = set; then
11361 withval=$with_solaris_privs;
11362 { echo "$as_me:$LINENO: checking for Solaris/Illumos privilege support" >&5
11363echo $ECHO_N "checking for Solaris/Illumos privilege support... $ECHO_C" >&6; }
11364 if test "x$ac_cv_func_setppriv" = "xyes" -a \
11365 "x$ac_cv_header_priv_h" = "xyes" ; then
11366 SOLARIS_PRIVS=yes
11367 { echo "$as_me:$LINENO: result: found" >&5
11368echo "${ECHO_T}found" >&6; }
11369
11370cat >>confdefs.h <<\_ACEOF
11371#define NO_UID_RESTORATION_TEST 1
11372_ACEOF
11373
11374
11375cat >>confdefs.h <<\_ACEOF
11376#define USE_SOLARIS_PRIVS 1
11377_ACEOF
11378
11379 SPP_MSG="yes"
11380 else
11381 { echo "$as_me:$LINENO: result: not found" >&5
11382echo "${ECHO_T}not found" >&6; }
11383 { { echo "$as_me:$LINENO: error: *** must have support for Solaris privileges to use --with-solaris-privs" >&5
11384echo "$as_me: error: *** must have support for Solaris privileges to use --with-solaris-privs" >&2;}
11385 { (exit 1); exit 1; }; }
11386 fi
11387
11388fi
11389
11390 TEST_SHELL=$SHELL # let configure find us a capable shell
11391 ;;
11392*-*-sunos4*)
11393 CPPFLAGS="$CPPFLAGS -DSUNOS4"
11394
11395for ac_func in getpwanam
11396do
11397as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11398{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11399echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11400if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402else
11403 cat >conftest.$ac_ext <<_ACEOF
11404/* confdefs.h. */
11405_ACEOF
11406cat confdefs.h >>conftest.$ac_ext
11407cat >>conftest.$ac_ext <<_ACEOF
11408/* end confdefs.h. */
11409/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11411#define $ac_func innocuous_$ac_func
11412
11413/* System header to define __stub macros and hopefully few prototypes,
11414 which can conflict with char $ac_func (); below.
11415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11416 <limits.h> exists even on freestanding compilers. */
11417
11418#ifdef __STDC__
11419# include <limits.h>
11420#else
11421# include <assert.h>
11422#endif
11423
11424#undef $ac_func
11425
11426/* Override any GCC internal prototype to avoid an error.
11427 Use char because int might match the return type of a GCC
11428 builtin and then its argument prototype would still apply. */
11429#ifdef __cplusplus
11430extern "C"
11431#endif
11432char $ac_func ();
11433/* The GNU C library defines this for functions which it implements
11434 to always fail with ENOSYS. Some functions are actually named
11435 something starting with __ and the normal name is an alias. */
11436#if defined __stub_$ac_func || defined __stub___$ac_func
11437choke me
11438#endif
11439
11440int
11441main ()
11442{
11443return $ac_func ();
11444 ;
11445 return 0;
11446}
11447_ACEOF
11448rm -f conftest.$ac_objext conftest$ac_exeext
11449if { (ac_try="$ac_link"
11450case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11453esac
11454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_link") 2>conftest.er1
11456 ac_status=$?
11457 grep -v '^ *+' conftest.er1 >conftest.err
11458 rm -f conftest.er1
11459 cat conftest.err >&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } && {
11462 test -z "$ac_c_werror_flag" ||
11463 test ! -s conftest.err
11464 } && test -s conftest$ac_exeext &&
11465 $as_test_x conftest$ac_exeext; then
11466 eval "$as_ac_var=yes"
11467else
11468 echo "$as_me: failed program was:" >&5
11469sed 's/^/| /' conftest.$ac_ext >&5
11470
11471 eval "$as_ac_var=no"
11472fi
11473
11474rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11475 conftest$ac_exeext conftest.$ac_ext
11476fi
11477ac_res=`eval echo '${'$as_ac_var'}'`
11478 { echo "$as_me:$LINENO: result: $ac_res" >&5
11479echo "${ECHO_T}$ac_res" >&6; }
11480if test `eval echo '${'$as_ac_var'}'` = yes; then
11481 cat >>confdefs.h <<_ACEOF
11482#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11483_ACEOF
11484
11485fi
11486done
11487
11488 cat >>confdefs.h <<\_ACEOF
11489#define PAM_SUN_CODEBASE 1
11490_ACEOF
11491
11492 conf_utmp_location=/etc/utmp
11493 conf_wtmp_location=/var/adm/wtmp
11494 conf_lastlog_location=/var/adm/lastlog
11495 cat >>confdefs.h <<\_ACEOF
11496#define USE_PIPES 1
11497_ACEOF
11498
11499 ;;
11500*-ncr-sysv*)
11501 LIBS="$LIBS -lc89"
11502 cat >>confdefs.h <<\_ACEOF
11503#define USE_PIPES 1
11504_ACEOF
11505
11506 cat >>confdefs.h <<\_ACEOF
11507#define SSHD_ACQUIRES_CTTY 1
11508_ACEOF
11509
11510 cat >>confdefs.h <<\_ACEOF
11511#define SETEUID_BREAKS_SETUID 1
11512_ACEOF
11513
11514 cat >>confdefs.h <<\_ACEOF
11515#define BROKEN_SETREUID 1
11516_ACEOF
11517
11518 cat >>confdefs.h <<\_ACEOF
11519#define BROKEN_SETREGID 1
11520_ACEOF
11521
11522 ;;
11523*-sni-sysv*)
11524 # /usr/ucblib MUST NOT be searched on ReliantUNIX
11525
11526{ echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
11527echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
11528if test "${ac_cv_lib_dl_dlsym+set}" = set; then
11529 echo $ECHO_N "(cached) $ECHO_C" >&6
11530else
11531 ac_check_lib_save_LIBS=$LIBS
11532LIBS="-ldl $LIBS"
11533cat >conftest.$ac_ext <<_ACEOF
11534/* confdefs.h. */
11535_ACEOF
11536cat confdefs.h >>conftest.$ac_ext
11537cat >>conftest.$ac_ext <<_ACEOF
11538/* end confdefs.h. */
11539
11540/* Override any GCC internal prototype to avoid an error.
11541 Use char because int might match the return type of a GCC
11542 builtin and then its argument prototype would still apply. */
11543#ifdef __cplusplus
11544extern "C"
11545#endif
11546char dlsym ();
11547int
11548main ()
11549{
11550return dlsym ();
11551 ;
11552 return 0;
11553}
11554_ACEOF
11555rm -f conftest.$ac_objext conftest$ac_exeext
11556if { (ac_try="$ac_link"
11557case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11560esac
11561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_link") 2>conftest.er1
11563 ac_status=$?
11564 grep -v '^ *+' conftest.er1 >conftest.err
11565 rm -f conftest.er1
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } && {
11569 test -z "$ac_c_werror_flag" ||
11570 test ! -s conftest.err
11571 } && test -s conftest$ac_exeext &&
11572 $as_test_x conftest$ac_exeext; then
11573 ac_cv_lib_dl_dlsym=yes
11574else
11575 echo "$as_me: failed program was:" >&5
11576sed 's/^/| /' conftest.$ac_ext >&5
11577
11578 ac_cv_lib_dl_dlsym=no
11579fi
11580
11581rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11582 conftest$ac_exeext conftest.$ac_ext
11583LIBS=$ac_check_lib_save_LIBS
11584fi
11585{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
11586echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
11587if test $ac_cv_lib_dl_dlsym = yes; then
11588 cat >>confdefs.h <<_ACEOF
11589#define HAVE_LIBDL 1
11590_ACEOF
11591
11592 LIBS="-ldl $LIBS"
11593
11594fi
11595
11596 # -lresolv needs to be at the end of LIBS or DNS lookups break
11597 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
11598echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
11599if test "${ac_cv_lib_resolv_res_query+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601else
11602 ac_check_lib_save_LIBS=$LIBS
11603LIBS="-lresolv $LIBS"
11604cat >conftest.$ac_ext <<_ACEOF
11605/* confdefs.h. */
11606_ACEOF
11607cat confdefs.h >>conftest.$ac_ext
11608cat >>conftest.$ac_ext <<_ACEOF
11609/* end confdefs.h. */
11610
11611/* Override any GCC internal prototype to avoid an error.
11612 Use char because int might match the return type of a GCC
11613 builtin and then its argument prototype would still apply. */
11614#ifdef __cplusplus
11615extern "C"
11616#endif
11617char res_query ();
11618int
11619main ()
11620{
11621return res_query ();
11622 ;
11623 return 0;
11624}
11625_ACEOF
11626rm -f conftest.$ac_objext conftest$ac_exeext
11627if { (ac_try="$ac_link"
11628case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11631esac
11632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_link") 2>conftest.er1
11634 ac_status=$?
11635 grep -v '^ *+' conftest.er1 >conftest.err
11636 rm -f conftest.er1
11637 cat conftest.err >&5
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); } && {
11640 test -z "$ac_c_werror_flag" ||
11641 test ! -s conftest.err
11642 } && test -s conftest$ac_exeext &&
11643 $as_test_x conftest$ac_exeext; then
11644 ac_cv_lib_resolv_res_query=yes
11645else
11646 echo "$as_me: failed program was:" >&5
11647sed 's/^/| /' conftest.$ac_ext >&5
11648
11649 ac_cv_lib_resolv_res_query=no
11650fi
11651
11652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11653 conftest$ac_exeext conftest.$ac_ext
11654LIBS=$ac_check_lib_save_LIBS
11655fi
11656{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
11657echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
11658if test $ac_cv_lib_resolv_res_query = yes; then
11659 LIBS="$LIBS -lresolv"
11660fi
11661
11662 IPADDR_IN_DISPLAY=yes
11663 cat >>confdefs.h <<\_ACEOF
11664#define USE_PIPES 1
11665_ACEOF
11666
11667 cat >>confdefs.h <<\_ACEOF
11668#define IP_TOS_IS_BROKEN 1
11669_ACEOF
11670
11671 cat >>confdefs.h <<\_ACEOF
11672#define SETEUID_BREAKS_SETUID 1
11673_ACEOF
11674
11675 cat >>confdefs.h <<\_ACEOF
11676#define BROKEN_SETREUID 1
11677_ACEOF
11678
11679 cat >>confdefs.h <<\_ACEOF
11680#define BROKEN_SETREGID 1
11681_ACEOF
11682
11683 cat >>confdefs.h <<\_ACEOF
11684#define SSHD_ACQUIRES_CTTY 1
11685_ACEOF
11686
11687 external_path_file=/etc/default/login
11688 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
11689 # Attention: always take care to bind libsocket and libnsl before libc,
11690 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
11691 ;;
11692# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
11693*-*-sysv4.2*)
11694 cat >>confdefs.h <<\_ACEOF
11695#define USE_PIPES 1
11696_ACEOF
11697
11698 cat >>confdefs.h <<\_ACEOF
11699#define SETEUID_BREAKS_SETUID 1
11700_ACEOF
11701
11702 cat >>confdefs.h <<\_ACEOF
11703#define BROKEN_SETREUID 1
11704_ACEOF
11705
11706 cat >>confdefs.h <<\_ACEOF
11707#define BROKEN_SETREGID 1
11708_ACEOF
11709
11710
11711cat >>confdefs.h <<\_ACEOF
11712#define PASSWD_NEEDS_USERNAME 1
11713_ACEOF
11714
11715 cat >>confdefs.h <<\_ACEOF
11716#define LOCKED_PASSWD_STRING "*LK*"
11717_ACEOF
11718
11719 TEST_SHELL=$SHELL # let configure find us a capable shell
11720 ;;
11721# UnixWare 7.x, OpenUNIX 8
11722*-*-sysv5*)
11723 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
11724
11725cat >>confdefs.h <<\_ACEOF
11726#define UNIXWARE_LONG_PASSWORDS 1
11727_ACEOF
11728
11729 cat >>confdefs.h <<\_ACEOF
11730#define USE_PIPES 1
11731_ACEOF
11732
11733 cat >>confdefs.h <<\_ACEOF
11734#define SETEUID_BREAKS_SETUID 1
11735_ACEOF
11736
11737 cat >>confdefs.h <<\_ACEOF
11738#define BROKEN_GETADDRINFO 1
11739_ACEOF
11740
11741 cat >>confdefs.h <<\_ACEOF
11742#define BROKEN_SETREUID 1
11743_ACEOF
11744
11745 cat >>confdefs.h <<\_ACEOF
11746#define BROKEN_SETREGID 1
11747_ACEOF
11748
11749 cat >>confdefs.h <<\_ACEOF
11750#define PASSWD_NEEDS_USERNAME 1
11751_ACEOF
11752
11753 TEST_SHELL=$SHELL # let configure find us a capable shell
11754 case "$host" in
11755 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
11756 maildir=/var/spool/mail
11757
11758cat >>confdefs.h <<\_ACEOF
11759#define BROKEN_LIBIAF 1
11760_ACEOF
11761
11762 cat >>confdefs.h <<\_ACEOF
11763#define BROKEN_UPDWTMPX 1
11764_ACEOF
11765
11766 { echo "$as_me:$LINENO: checking for getluid in -lprot" >&5
11767echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; }
11768if test "${ac_cv_lib_prot_getluid+set}" = set; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11770else
11771 ac_check_lib_save_LIBS=$LIBS
11772LIBS="-lprot $LIBS"
11773cat >conftest.$ac_ext <<_ACEOF
11774/* confdefs.h. */
11775_ACEOF
11776cat confdefs.h >>conftest.$ac_ext
11777cat >>conftest.$ac_ext <<_ACEOF
11778/* end confdefs.h. */
11779
11780/* Override any GCC internal prototype to avoid an error.
11781 Use char because int might match the return type of a GCC
11782 builtin and then its argument prototype would still apply. */
11783#ifdef __cplusplus
11784extern "C"
11785#endif
11786char getluid ();
11787int
11788main ()
11789{
11790return getluid ();
11791 ;
11792 return 0;
11793}
11794_ACEOF
11795rm -f conftest.$ac_objext conftest$ac_exeext
11796if { (ac_try="$ac_link"
11797case "(($ac_try" in
11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799 *) ac_try_echo=$ac_try;;
11800esac
11801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802 (eval "$ac_link") 2>conftest.er1
11803 ac_status=$?
11804 grep -v '^ *+' conftest.er1 >conftest.err
11805 rm -f conftest.er1
11806 cat conftest.err >&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } && {
11809 test -z "$ac_c_werror_flag" ||
11810 test ! -s conftest.err
11811 } && test -s conftest$ac_exeext &&
11812 $as_test_x conftest$ac_exeext; then
11813 ac_cv_lib_prot_getluid=yes
11814else
11815 echo "$as_me: failed program was:" >&5
11816sed 's/^/| /' conftest.$ac_ext >&5
11817
11818 ac_cv_lib_prot_getluid=no
11819fi
11820
11821rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11822 conftest$ac_exeext conftest.$ac_ext
11823LIBS=$ac_check_lib_save_LIBS
11824fi
11825{ echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5
11826echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; }
11827if test $ac_cv_lib_prot_getluid = yes; then
11828 LIBS="$LIBS -lprot"
11829
11830
11831for ac_func in getluid setluid
11832do
11833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11834{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11836if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11837 echo $ECHO_N "(cached) $ECHO_C" >&6
11838else
11839 cat >conftest.$ac_ext <<_ACEOF
11840/* confdefs.h. */
11841_ACEOF
11842cat confdefs.h >>conftest.$ac_ext
11843cat >>conftest.$ac_ext <<_ACEOF
11844/* end confdefs.h. */
11845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11847#define $ac_func innocuous_$ac_func
11848
11849/* System header to define __stub macros and hopefully few prototypes,
11850 which can conflict with char $ac_func (); below.
11851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11852 <limits.h> exists even on freestanding compilers. */
11853
11854#ifdef __STDC__
11855# include <limits.h>
11856#else
11857# include <assert.h>
11858#endif
11859
11860#undef $ac_func
11861
11862/* Override any GCC internal prototype to avoid an error.
11863 Use char because int might match the return type of a GCC
11864 builtin and then its argument prototype would still apply. */
11865#ifdef __cplusplus
11866extern "C"
11867#endif
11868char $ac_func ();
11869/* The GNU C library defines this for functions which it implements
11870 to always fail with ENOSYS. Some functions are actually named
11871 something starting with __ and the normal name is an alias. */
11872#if defined __stub_$ac_func || defined __stub___$ac_func
11873choke me
11874#endif
11875
11876int
11877main ()
11878{
11879return $ac_func ();
11880 ;
11881 return 0;
11882}
11883_ACEOF
11884rm -f conftest.$ac_objext conftest$ac_exeext
11885if { (ac_try="$ac_link"
11886case "(($ac_try" in
11887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11888 *) ac_try_echo=$ac_try;;
11889esac
11890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11891 (eval "$ac_link") 2>conftest.er1
11892 ac_status=$?
11893 grep -v '^ *+' conftest.er1 >conftest.err
11894 rm -f conftest.er1
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } && {
11898 test -z "$ac_c_werror_flag" ||
11899 test ! -s conftest.err
11900 } && test -s conftest$ac_exeext &&
11901 $as_test_x conftest$ac_exeext; then
11902 eval "$as_ac_var=yes"
11903else
11904 echo "$as_me: failed program was:" >&5
11905sed 's/^/| /' conftest.$ac_ext >&5
11906
11907 eval "$as_ac_var=no"
11908fi
11909
11910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11911 conftest$ac_exeext conftest.$ac_ext
11912fi
11913ac_res=`eval echo '${'$as_ac_var'}'`
11914 { echo "$as_me:$LINENO: result: $ac_res" >&5
11915echo "${ECHO_T}$ac_res" >&6; }
11916if test `eval echo '${'$as_ac_var'}'` = yes; then
11917 cat >>confdefs.h <<_ACEOF
11918#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11919_ACEOF
11920
11921fi
11922done
11923
11924 cat >>confdefs.h <<\_ACEOF
11925#define HAVE_SECUREWARE 1
11926_ACEOF
11927
11928 cat >>confdefs.h <<\_ACEOF
11929#define DISABLE_SHADOW 1
11930_ACEOF
11931
11932
11933fi
11934
11935 ;;
11936 *) cat >>confdefs.h <<\_ACEOF
11937#define LOCKED_PASSWD_STRING "*LK*"
11938_ACEOF
11939
11940 check_for_libcrypt_later=1
11941 ;;
11942 esac
11943 ;;
11944*-*-sysv*)
11945 ;;
11946# SCO UNIX and OEM versions of SCO UNIX
11947*-*-sco3.2v4*)
11948 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
11949echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
11950 { (exit 1); exit 1; }; }
11951 ;;
11952# SCO OpenServer 5.x
11953*-*-sco3.2v5*)
11954 if test -z "$GCC"; then
11955 CFLAGS="$CFLAGS -belf"
11956 fi
11957 LIBS="$LIBS -lprot -lx -ltinfo -lm"
11958 no_dev_ptmx=1
11959 cat >>confdefs.h <<\_ACEOF
11960#define USE_PIPES 1
11961_ACEOF
11962
11963 cat >>confdefs.h <<\_ACEOF
11964#define HAVE_SECUREWARE 1
11965_ACEOF
11966
11967 cat >>confdefs.h <<\_ACEOF
11968#define DISABLE_SHADOW 1
11969_ACEOF
11970
11971 cat >>confdefs.h <<\_ACEOF
11972#define DISABLE_FD_PASSING 1
11973_ACEOF
11974
11975 cat >>confdefs.h <<\_ACEOF
11976#define SETEUID_BREAKS_SETUID 1
11977_ACEOF
11978
11979 cat >>confdefs.h <<\_ACEOF
11980#define BROKEN_GETADDRINFO 1
11981_ACEOF
11982
11983 cat >>confdefs.h <<\_ACEOF
11984#define BROKEN_SETREUID 1
11985_ACEOF
11986
11987 cat >>confdefs.h <<\_ACEOF
11988#define BROKEN_SETREGID 1
11989_ACEOF
11990
11991 cat >>confdefs.h <<\_ACEOF
11992#define WITH_ABBREV_NO_TTY 1
11993_ACEOF
11994
11995 cat >>confdefs.h <<\_ACEOF
11996#define BROKEN_UPDWTMPX 1
11997_ACEOF
11998
11999 cat >>confdefs.h <<\_ACEOF
12000#define PASSWD_NEEDS_USERNAME 1
12001_ACEOF
12002
12003
12004
12005for ac_func in getluid setluid
12006do
12007as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12008{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12009echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12010if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12012else
12013 cat >conftest.$ac_ext <<_ACEOF
12014/* confdefs.h. */
12015_ACEOF
12016cat confdefs.h >>conftest.$ac_ext
12017cat >>conftest.$ac_ext <<_ACEOF
12018/* end confdefs.h. */
12019/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12021#define $ac_func innocuous_$ac_func
12022
12023/* System header to define __stub macros and hopefully few prototypes,
12024 which can conflict with char $ac_func (); below.
12025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12026 <limits.h> exists even on freestanding compilers. */
12027
12028#ifdef __STDC__
12029# include <limits.h>
12030#else
12031# include <assert.h>
12032#endif
12033
12034#undef $ac_func
12035
12036/* Override any GCC internal prototype to avoid an error.
12037 Use char because int might match the return type of a GCC
12038 builtin and then its argument prototype would still apply. */
12039#ifdef __cplusplus
12040extern "C"
12041#endif
12042char $ac_func ();
12043/* The GNU C library defines this for functions which it implements
12044 to always fail with ENOSYS. Some functions are actually named
12045 something starting with __ and the normal name is an alias. */
12046#if defined __stub_$ac_func || defined __stub___$ac_func
12047choke me
12048#endif
12049
12050int
12051main ()
12052{
12053return $ac_func ();
12054 ;
12055 return 0;
12056}
12057_ACEOF
12058rm -f conftest.$ac_objext conftest$ac_exeext
12059if { (ac_try="$ac_link"
12060case "(($ac_try" in
12061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12062 *) ac_try_echo=$ac_try;;
12063esac
12064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12065 (eval "$ac_link") 2>conftest.er1
12066 ac_status=$?
12067 grep -v '^ *+' conftest.er1 >conftest.err
12068 rm -f conftest.er1
12069 cat conftest.err >&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } && {
12072 test -z "$ac_c_werror_flag" ||
12073 test ! -s conftest.err
12074 } && test -s conftest$ac_exeext &&
12075 $as_test_x conftest$ac_exeext; then
12076 eval "$as_ac_var=yes"
12077else
12078 echo "$as_me: failed program was:" >&5
12079sed 's/^/| /' conftest.$ac_ext >&5
12080
12081 eval "$as_ac_var=no"
12082fi
12083
12084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12085 conftest$ac_exeext conftest.$ac_ext
12086fi
12087ac_res=`eval echo '${'$as_ac_var'}'`
12088 { echo "$as_me:$LINENO: result: $ac_res" >&5
12089echo "${ECHO_T}$ac_res" >&6; }
12090if test `eval echo '${'$as_ac_var'}'` = yes; then
12091 cat >>confdefs.h <<_ACEOF
12092#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12093_ACEOF
12094
12095fi
12096done
12097
12098 MANTYPE=man
12099 TEST_SHELL=$SHELL # let configure find us a capable shell
12100 SKIP_DISABLE_LASTLOG_DEFINE=yes
12101 ;;
12102*-*-unicosmk*)
12103
12104cat >>confdefs.h <<\_ACEOF
12105#define NO_SSH_LASTLOG 1
12106_ACEOF
12107
12108 cat >>confdefs.h <<\_ACEOF
12109#define SETEUID_BREAKS_SETUID 1
12110_ACEOF
12111
12112 cat >>confdefs.h <<\_ACEOF
12113#define BROKEN_SETREUID 1
12114_ACEOF
12115
12116 cat >>confdefs.h <<\_ACEOF
12117#define BROKEN_SETREGID 1
12118_ACEOF
12119
12120 cat >>confdefs.h <<\_ACEOF
12121#define USE_PIPES 1
12122_ACEOF
12123
12124 cat >>confdefs.h <<\_ACEOF
12125#define DISABLE_FD_PASSING 1
12126_ACEOF
12127
12128 LDFLAGS="$LDFLAGS"
12129 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
12130 MANTYPE=cat
12131 ;;
12132*-*-unicosmp*)
12133 cat >>confdefs.h <<\_ACEOF
12134#define SETEUID_BREAKS_SETUID 1
12135_ACEOF
12136
12137 cat >>confdefs.h <<\_ACEOF
12138#define BROKEN_SETREUID 1
12139_ACEOF
12140
12141 cat >>confdefs.h <<\_ACEOF
12142#define BROKEN_SETREGID 1
12143_ACEOF
12144
12145 cat >>confdefs.h <<\_ACEOF
12146#define WITH_ABBREV_NO_TTY 1
12147_ACEOF
12148
12149 cat >>confdefs.h <<\_ACEOF
12150#define USE_PIPES 1
12151_ACEOF
12152
12153 cat >>confdefs.h <<\_ACEOF
12154#define DISABLE_FD_PASSING 1
12155_ACEOF
12156
12157 LDFLAGS="$LDFLAGS"
12158 LIBS="$LIBS -lgen -lacid -ldb"
12159 MANTYPE=cat
12160 ;;
12161*-*-unicos*)
12162 cat >>confdefs.h <<\_ACEOF
12163#define SETEUID_BREAKS_SETUID 1
12164_ACEOF
12165
12166 cat >>confdefs.h <<\_ACEOF
12167#define BROKEN_SETREUID 1
12168_ACEOF
12169
12170 cat >>confdefs.h <<\_ACEOF
12171#define BROKEN_SETREGID 1
12172_ACEOF
12173
12174 cat >>confdefs.h <<\_ACEOF
12175#define USE_PIPES 1
12176_ACEOF
12177
12178 cat >>confdefs.h <<\_ACEOF
12179#define DISABLE_FD_PASSING 1
12180_ACEOF
12181
12182 cat >>confdefs.h <<\_ACEOF
12183#define NO_SSH_LASTLOG 1
12184_ACEOF
12185
12186 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
12187 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
12188 MANTYPE=cat
12189 ;;
12190*-dec-osf*)
12191 { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
12192echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
12193 no_osfsia=""
12194
12195# Check whether --with-osfsia was given.
12196if test "${with_osfsia+set}" = set; then
12197 withval=$with_osfsia;
12198 if test "x$withval" = "xno" ; then
12199 { echo "$as_me:$LINENO: result: disabled" >&5
12200echo "${ECHO_T}disabled" >&6; }
12201 no_osfsia=1
12202 fi
12203
12204fi
12205
12206 if test -z "$no_osfsia" ; then
12207 if test -f /etc/sia/matrix.conf; then
12208 { echo "$as_me:$LINENO: result: yes" >&5
12209echo "${ECHO_T}yes" >&6; }
12210
12211cat >>confdefs.h <<\_ACEOF
12212#define HAVE_OSF_SIA 1
12213_ACEOF
12214
12215
12216cat >>confdefs.h <<\_ACEOF
12217#define DISABLE_LOGIN 1
12218_ACEOF
12219
12220 cat >>confdefs.h <<\_ACEOF
12221#define DISABLE_FD_PASSING 1
12222_ACEOF
12223
12224 LIBS="$LIBS -lsecurity -ldb -lm -laud"
12225 SIA_MSG="yes"
12226 else
12227 { echo "$as_me:$LINENO: result: no" >&5
12228echo "${ECHO_T}no" >&6; }
12229
12230cat >>confdefs.h <<\_ACEOF
12231#define LOCKED_PASSWD_SUBSTR "Nologin"
12232_ACEOF
12233
12234 fi
12235 fi
12236 cat >>confdefs.h <<\_ACEOF
12237#define BROKEN_GETADDRINFO 1
12238_ACEOF
12239
12240 cat >>confdefs.h <<\_ACEOF
12241#define SETEUID_BREAKS_SETUID 1
12242_ACEOF
12243
12244 cat >>confdefs.h <<\_ACEOF
12245#define BROKEN_SETREUID 1
12246_ACEOF
12247
12248 cat >>confdefs.h <<\_ACEOF
12249#define BROKEN_SETREGID 1
12250_ACEOF
12251
12252
12253cat >>confdefs.h <<\_ACEOF
12254#define BROKEN_READV_COMPARISON 1
12255_ACEOF
12256
12257 ;;
12258
12259*-*-nto-qnx*)
12260 cat >>confdefs.h <<\_ACEOF
12261#define USE_PIPES 1
12262_ACEOF
12263
12264 cat >>confdefs.h <<\_ACEOF
12265#define NO_X11_UNIX_SOCKETS 1
12266_ACEOF
12267
12268 cat >>confdefs.h <<\_ACEOF
12269#define DISABLE_LASTLOG 1
12270_ACEOF
12271
12272 cat >>confdefs.h <<\_ACEOF
12273#define SSHD_ACQUIRES_CTTY 1
12274_ACEOF
12275
12276
12277cat >>confdefs.h <<\_ACEOF
12278#define BROKEN_SHADOW_EXPIRE 1
12279_ACEOF
12280
12281 enable_etc_default_login=no # has incompatible /etc/default/login
12282 case "$host" in
12283 *-*-nto-qnx6*)
12284 cat >>confdefs.h <<\_ACEOF
12285#define DISABLE_FD_PASSING 1
12286_ACEOF
12287
12288 ;;
12289 esac
12290 ;;
12291
12292*-*-ultrix*)
12293
12294cat >>confdefs.h <<\_ACEOF
12295#define BROKEN_GETGROUPS 1
12296_ACEOF
12297
12298
12299cat >>confdefs.h <<\_ACEOF
12300#define BROKEN_MMAP 1
12301_ACEOF
12302
12303 cat >>confdefs.h <<\_ACEOF
12304#define NEED_SETPGRP 1
12305_ACEOF
12306
12307
12308cat >>confdefs.h <<\_ACEOF
12309#define HAVE_SYS_SYSLOG_H 1
12310_ACEOF
12311
12312 ;;
12313
12314*-*-lynxos)
12315 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
12316
12317cat >>confdefs.h <<\_ACEOF
12318#define BROKEN_SETVBUF 1
12319_ACEOF
12320
12321 ;;
12322esac
12323
12324{ echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
12325echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
12326if test "$cross_compiling" = yes; then
12327 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
12328echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
12329
12330else
12331 cat >conftest.$ac_ext <<_ACEOF
12332/* confdefs.h. */
12333_ACEOF
12334cat confdefs.h >>conftest.$ac_ext
12335cat >>conftest.$ac_ext <<_ACEOF
12336/* end confdefs.h. */
12337 #include <stdio.h>
12338int
12339main ()
12340{
12341 exit(0);
12342 ;
12343 return 0;
12344}
12345_ACEOF
12346rm -f conftest$ac_exeext
12347if { (ac_try="$ac_link"
12348case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12351esac
12352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_link") 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12357 { (case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12360esac
12361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_try") 2>&5
12363 ac_status=$?
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; }; then
12366 { echo "$as_me:$LINENO: result: yes" >&5
12367echo "${ECHO_T}yes" >&6; }
12368else
12369 echo "$as_me: program exited with status $ac_status" >&5
12370echo "$as_me: failed program was:" >&5
12371sed 's/^/| /' conftest.$ac_ext >&5
12372
12373( exit $ac_status )
12374
12375 { echo "$as_me:$LINENO: result: no" >&5
12376echo "${ECHO_T}no" >&6; }
12377 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
12378echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
12379 { (exit 1); exit 1; }; }
12380
12381fi
12382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12383fi
12384
12385
12386
12387# Checks for libraries.
12388{ echo "$as_me:$LINENO: checking for setsockopt" >&5
12389echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
12390if test "${ac_cv_func_setsockopt+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12392else
12393 cat >conftest.$ac_ext <<_ACEOF
12394/* confdefs.h. */
12395_ACEOF
12396cat confdefs.h >>conftest.$ac_ext
12397cat >>conftest.$ac_ext <<_ACEOF
12398/* end confdefs.h. */
12399/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
12400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12401#define setsockopt innocuous_setsockopt
12402
12403/* System header to define __stub macros and hopefully few prototypes,
12404 which can conflict with char setsockopt (); below.
12405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12406 <limits.h> exists even on freestanding compilers. */
12407
12408#ifdef __STDC__
12409# include <limits.h>
12410#else
12411# include <assert.h>
12412#endif
12413
12414#undef setsockopt
12415
12416/* Override any GCC internal prototype to avoid an error.
12417 Use char because int might match the return type of a GCC
12418 builtin and then its argument prototype would still apply. */
12419#ifdef __cplusplus
12420extern "C"
12421#endif
12422char setsockopt ();
12423/* The GNU C library defines this for functions which it implements
12424 to always fail with ENOSYS. Some functions are actually named
12425 something starting with __ and the normal name is an alias. */
12426#if defined __stub_setsockopt || defined __stub___setsockopt
12427choke me
12428#endif
12429
12430int
12431main ()
12432{
12433return setsockopt ();
12434 ;
12435 return 0;
12436}
12437_ACEOF
12438rm -f conftest.$ac_objext conftest$ac_exeext
12439if { (ac_try="$ac_link"
12440case "(($ac_try" in
12441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442 *) ac_try_echo=$ac_try;;
12443esac
12444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12445 (eval "$ac_link") 2>conftest.er1
12446 ac_status=$?
12447 grep -v '^ *+' conftest.er1 >conftest.err
12448 rm -f conftest.er1
12449 cat conftest.err >&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } && {
12452 test -z "$ac_c_werror_flag" ||
12453 test ! -s conftest.err
12454 } && test -s conftest$ac_exeext &&
12455 $as_test_x conftest$ac_exeext; then
12456 ac_cv_func_setsockopt=yes
12457else
12458 echo "$as_me: failed program was:" >&5
12459sed 's/^/| /' conftest.$ac_ext >&5
12460
12461 ac_cv_func_setsockopt=no
12462fi
12463
12464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12465 conftest$ac_exeext conftest.$ac_ext
12466fi
12467{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
12468echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
12469if test $ac_cv_func_setsockopt = yes; then
12470 :
12471else
12472
12473{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
12474echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
12475if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12477else
12478 ac_check_lib_save_LIBS=$LIBS
12479LIBS="-lsocket $LIBS"
12480cat >conftest.$ac_ext <<_ACEOF
12481/* confdefs.h. */
12482_ACEOF
12483cat confdefs.h >>conftest.$ac_ext
12484cat >>conftest.$ac_ext <<_ACEOF
12485/* end confdefs.h. */
12486
12487/* Override any GCC internal prototype to avoid an error.
12488 Use char because int might match the return type of a GCC
12489 builtin and then its argument prototype would still apply. */
12490#ifdef __cplusplus
12491extern "C"
12492#endif
12493char setsockopt ();
12494int
12495main ()
12496{
12497return setsockopt ();
12498 ;
12499 return 0;
12500}
12501_ACEOF
12502rm -f conftest.$ac_objext conftest$ac_exeext
12503if { (ac_try="$ac_link"
12504case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12507esac
12508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_link") 2>conftest.er1
12510 ac_status=$?
12511 grep -v '^ *+' conftest.er1 >conftest.err
12512 rm -f conftest.er1
12513 cat conftest.err >&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } && {
12516 test -z "$ac_c_werror_flag" ||
12517 test ! -s conftest.err
12518 } && test -s conftest$ac_exeext &&
12519 $as_test_x conftest$ac_exeext; then
12520 ac_cv_lib_socket_setsockopt=yes
12521else
12522 echo "$as_me: failed program was:" >&5
12523sed 's/^/| /' conftest.$ac_ext >&5
12524
12525 ac_cv_lib_socket_setsockopt=no
12526fi
12527
12528rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12529 conftest$ac_exeext conftest.$ac_ext
12530LIBS=$ac_check_lib_save_LIBS
12531fi
12532{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
12533echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
12534if test $ac_cv_lib_socket_setsockopt = yes; then
12535 cat >>confdefs.h <<_ACEOF
12536#define HAVE_LIBSOCKET 1
12537_ACEOF
12538
12539 LIBS="-lsocket $LIBS"
12540
12541fi
12542
12543fi
12544
12545
12546
12547for ac_func in dirname
12548do
12549as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12550{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12551echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12552if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12554else
12555 cat >conftest.$ac_ext <<_ACEOF
12556/* confdefs.h. */
12557_ACEOF
12558cat confdefs.h >>conftest.$ac_ext
12559cat >>conftest.$ac_ext <<_ACEOF
12560/* end confdefs.h. */
12561/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12563#define $ac_func innocuous_$ac_func
12564
12565/* System header to define __stub macros and hopefully few prototypes,
12566 which can conflict with char $ac_func (); below.
12567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12568 <limits.h> exists even on freestanding compilers. */
12569
12570#ifdef __STDC__
12571# include <limits.h>
12572#else
12573# include <assert.h>
12574#endif
12575
12576#undef $ac_func
12577
12578/* Override any GCC internal prototype to avoid an error.
12579 Use char because int might match the return type of a GCC
12580 builtin and then its argument prototype would still apply. */
12581#ifdef __cplusplus
12582extern "C"
12583#endif
12584char $ac_func ();
12585/* The GNU C library defines this for functions which it implements
12586 to always fail with ENOSYS. Some functions are actually named
12587 something starting with __ and the normal name is an alias. */
12588#if defined __stub_$ac_func || defined __stub___$ac_func
12589choke me
12590#endif
12591
12592int
12593main ()
12594{
12595return $ac_func ();
12596 ;
12597 return 0;
12598}
12599_ACEOF
12600rm -f conftest.$ac_objext conftest$ac_exeext
12601if { (ac_try="$ac_link"
12602case "(($ac_try" in
12603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12604 *) ac_try_echo=$ac_try;;
12605esac
12606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12607 (eval "$ac_link") 2>conftest.er1
12608 ac_status=$?
12609 grep -v '^ *+' conftest.er1 >conftest.err
12610 rm -f conftest.er1
12611 cat conftest.err >&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } && {
12614 test -z "$ac_c_werror_flag" ||
12615 test ! -s conftest.err
12616 } && test -s conftest$ac_exeext &&
12617 $as_test_x conftest$ac_exeext; then
12618 eval "$as_ac_var=yes"
12619else
12620 echo "$as_me: failed program was:" >&5
12621sed 's/^/| /' conftest.$ac_ext >&5
12622
12623 eval "$as_ac_var=no"
12624fi
12625
12626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12627 conftest$ac_exeext conftest.$ac_ext
12628fi
12629ac_res=`eval echo '${'$as_ac_var'}'`
12630 { echo "$as_me:$LINENO: result: $ac_res" >&5
12631echo "${ECHO_T}$ac_res" >&6; }
12632if test `eval echo '${'$as_ac_var'}'` = yes; then
12633 cat >>confdefs.h <<_ACEOF
12634#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12635_ACEOF
12636
12637for ac_header in libgen.h
12638do
12639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12645fi
12646ac_res=`eval echo '${'$as_ac_Header'}'`
12647 { echo "$as_me:$LINENO: result: $ac_res" >&5
12648echo "${ECHO_T}$ac_res" >&6; }
12649else
12650 # Is the header compilable?
12651{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12652echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12653cat >conftest.$ac_ext <<_ACEOF
12654/* confdefs.h. */
12655_ACEOF
12656cat confdefs.h >>conftest.$ac_ext
12657cat >>conftest.$ac_ext <<_ACEOF
12658/* end confdefs.h. */
12659$ac_includes_default
12660#include <$ac_header>
12661_ACEOF
12662rm -f conftest.$ac_objext
12663if { (ac_try="$ac_compile"
12664case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12667esac
12668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_compile") 2>conftest.er1
12670 ac_status=$?
12671 grep -v '^ *+' conftest.er1 >conftest.err
12672 rm -f conftest.er1
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } && {
12676 test -z "$ac_c_werror_flag" ||
12677 test ! -s conftest.err
12678 } && test -s conftest.$ac_objext; then
12679 ac_header_compiler=yes
12680else
12681 echo "$as_me: failed program was:" >&5
12682sed 's/^/| /' conftest.$ac_ext >&5
12683
12684 ac_header_compiler=no
12685fi
12686
12687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12688{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12689echo "${ECHO_T}$ac_header_compiler" >&6; }
12690
12691# Is the header present?
12692{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12693echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12694cat >conftest.$ac_ext <<_ACEOF
12695/* confdefs.h. */
12696_ACEOF
12697cat confdefs.h >>conftest.$ac_ext
12698cat >>conftest.$ac_ext <<_ACEOF
12699/* end confdefs.h. */
12700#include <$ac_header>
12701_ACEOF
12702if { (ac_try="$ac_cpp conftest.$ac_ext"
12703case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12706esac
12707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12709 ac_status=$?
12710 grep -v '^ *+' conftest.er1 >conftest.err
12711 rm -f conftest.er1
12712 cat conftest.err >&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } >/dev/null && {
12715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12716 test ! -s conftest.err
12717 }; then
12718 ac_header_preproc=yes
12719else
12720 echo "$as_me: failed program was:" >&5
12721sed 's/^/| /' conftest.$ac_ext >&5
12722
12723 ac_header_preproc=no
12724fi
12725
12726rm -f conftest.err conftest.$ac_ext
12727{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12728echo "${ECHO_T}$ac_header_preproc" >&6; }
12729
12730# So? What about this header?
12731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12732 yes:no: )
12733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12737 ac_header_preproc=yes
12738 ;;
12739 no:yes:* )
12740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12752 ( cat <<\_ASBOX
12753## ------------------------------------------- ##
12754## Report this to openssh-unix-dev@mindrot.org ##
12755## ------------------------------------------- ##
12756_ASBOX
12757 ) | sed "s/^/$as_me: WARNING: /" >&2
12758 ;;
12759esac
12760{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12764else
12765 eval "$as_ac_Header=\$ac_header_preproc"
12766fi
12767ac_res=`eval echo '${'$as_ac_Header'}'`
12768 { echo "$as_me:$LINENO: result: $ac_res" >&5
12769echo "${ECHO_T}$ac_res" >&6; }
12770
12771fi
12772if test `eval echo '${'$as_ac_Header'}'` = yes; then
12773 cat >>confdefs.h <<_ACEOF
12774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12775_ACEOF
12776
12777fi
12778
12779done
12780
12781else
12782
12783 { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
12784echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
12785if test "${ac_cv_lib_gen_dirname+set}" = set; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12787else
12788 ac_check_lib_save_LIBS=$LIBS
12789LIBS="-lgen $LIBS"
12790cat >conftest.$ac_ext <<_ACEOF
12791/* confdefs.h. */
12792_ACEOF
12793cat confdefs.h >>conftest.$ac_ext
12794cat >>conftest.$ac_ext <<_ACEOF
12795/* end confdefs.h. */
12796
12797/* Override any GCC internal prototype to avoid an error.
12798 Use char because int might match the return type of a GCC
12799 builtin and then its argument prototype would still apply. */
12800#ifdef __cplusplus
12801extern "C"
12802#endif
12803char dirname ();
12804int
12805main ()
12806{
12807return dirname ();
12808 ;
12809 return 0;
12810}
12811_ACEOF
12812rm -f conftest.$ac_objext conftest$ac_exeext
12813if { (ac_try="$ac_link"
12814case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12817esac
12818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819 (eval "$ac_link") 2>conftest.er1
12820 ac_status=$?
12821 grep -v '^ *+' conftest.er1 >conftest.err
12822 rm -f conftest.er1
12823 cat conftest.err >&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } && {
12826 test -z "$ac_c_werror_flag" ||
12827 test ! -s conftest.err
12828 } && test -s conftest$ac_exeext &&
12829 $as_test_x conftest$ac_exeext; then
12830 ac_cv_lib_gen_dirname=yes
12831else
12832 echo "$as_me: failed program was:" >&5
12833sed 's/^/| /' conftest.$ac_ext >&5
12834
12835 ac_cv_lib_gen_dirname=no
12836fi
12837
12838rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12839 conftest$ac_exeext conftest.$ac_ext
12840LIBS=$ac_check_lib_save_LIBS
12841fi
12842{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
12843echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
12844if test $ac_cv_lib_gen_dirname = yes; then
12845
12846 { echo "$as_me:$LINENO: checking for broken dirname" >&5
12847echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
12848if test "${ac_cv_have_broken_dirname+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12850else
12851
12852 save_LIBS="$LIBS"
12853 LIBS="$LIBS -lgen"
12854 if test "$cross_compiling" = yes; then
12855 ac_cv_have_broken_dirname="no"
12856else
12857 cat >conftest.$ac_ext <<_ACEOF
12858/* confdefs.h. */
12859_ACEOF
12860cat confdefs.h >>conftest.$ac_ext
12861cat >>conftest.$ac_ext <<_ACEOF
12862/* end confdefs.h. */
12863
12864#include <libgen.h>
12865#include <string.h>
12866
12867int main(int argc, char **argv) {
12868 char *s, buf[32];
12869
12870 strncpy(buf,"/etc", 32);
12871 s = dirname(buf);
12872 if (!s || strncmp(s, "/", 32) != 0) {
12873 exit(1);
12874 } else {
12875 exit(0);
12876 }
12877}
12878
12879_ACEOF
12880rm -f conftest$ac_exeext
12881if { (ac_try="$ac_link"
12882case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12885esac
12886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_link") 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12891 { (case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12894esac
12895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_try") 2>&5
12897 ac_status=$?
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; }; then
12900 ac_cv_have_broken_dirname="no"
12901else
12902 echo "$as_me: program exited with status $ac_status" >&5
12903echo "$as_me: failed program was:" >&5
12904sed 's/^/| /' conftest.$ac_ext >&5
12905
12906( exit $ac_status )
12907 ac_cv_have_broken_dirname="yes"
12908fi
12909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12910fi
12911
12912
12913 LIBS="$save_LIBS"
12914
12915fi
12916{ echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
12917echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
12918 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
12919 LIBS="$LIBS -lgen"
12920 cat >>confdefs.h <<\_ACEOF
12921#define HAVE_DIRNAME 1
12922_ACEOF
12923
12924
12925for ac_header in libgen.h
12926do
12927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12931if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12933fi
12934ac_res=`eval echo '${'$as_ac_Header'}'`
12935 { echo "$as_me:$LINENO: result: $ac_res" >&5
12936echo "${ECHO_T}$ac_res" >&6; }
12937else
12938 # Is the header compilable?
12939{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12940echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12941cat >conftest.$ac_ext <<_ACEOF
12942/* confdefs.h. */
12943_ACEOF
12944cat confdefs.h >>conftest.$ac_ext
12945cat >>conftest.$ac_ext <<_ACEOF
12946/* end confdefs.h. */
12947$ac_includes_default
12948#include <$ac_header>
12949_ACEOF
12950rm -f conftest.$ac_objext
12951if { (ac_try="$ac_compile"
12952case "(($ac_try" in
12953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12954 *) ac_try_echo=$ac_try;;
12955esac
12956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12957 (eval "$ac_compile") 2>conftest.er1
12958 ac_status=$?
12959 grep -v '^ *+' conftest.er1 >conftest.err
12960 rm -f conftest.er1
12961 cat conftest.err >&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } && {
12964 test -z "$ac_c_werror_flag" ||
12965 test ! -s conftest.err
12966 } && test -s conftest.$ac_objext; then
12967 ac_header_compiler=yes
12968else
12969 echo "$as_me: failed program was:" >&5
12970sed 's/^/| /' conftest.$ac_ext >&5
12971
12972 ac_header_compiler=no
12973fi
12974
12975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12976{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12977echo "${ECHO_T}$ac_header_compiler" >&6; }
12978
12979# Is the header present?
12980{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12981echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12982cat >conftest.$ac_ext <<_ACEOF
12983/* confdefs.h. */
12984_ACEOF
12985cat confdefs.h >>conftest.$ac_ext
12986cat >>conftest.$ac_ext <<_ACEOF
12987/* end confdefs.h. */
12988#include <$ac_header>
12989_ACEOF
12990if { (ac_try="$ac_cpp conftest.$ac_ext"
12991case "(($ac_try" in
12992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993 *) ac_try_echo=$ac_try;;
12994esac
12995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12997 ac_status=$?
12998 grep -v '^ *+' conftest.er1 >conftest.err
12999 rm -f conftest.er1
13000 cat conftest.err >&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } >/dev/null && {
13003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13004 test ! -s conftest.err
13005 }; then
13006 ac_header_preproc=yes
13007else
13008 echo "$as_me: failed program was:" >&5
13009sed 's/^/| /' conftest.$ac_ext >&5
13010
13011 ac_header_preproc=no
13012fi
13013
13014rm -f conftest.err conftest.$ac_ext
13015{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13016echo "${ECHO_T}$ac_header_preproc" >&6; }
13017
13018# So? What about this header?
13019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13020 yes:no: )
13021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13022echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13024echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13025 ac_header_preproc=yes
13026 ;;
13027 no:yes:* )
13028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13029echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13031echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13033echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13035echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13037echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13039echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13040 ( cat <<\_ASBOX
13041## ------------------------------------------- ##
13042## Report this to openssh-unix-dev@mindrot.org ##
13043## ------------------------------------------- ##
13044_ASBOX
13045 ) | sed "s/^/$as_me: WARNING: /" >&2
13046 ;;
13047esac
13048{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13052else
13053 eval "$as_ac_Header=\$ac_header_preproc"
13054fi
13055ac_res=`eval echo '${'$as_ac_Header'}'`
13056 { echo "$as_me:$LINENO: result: $ac_res" >&5
13057echo "${ECHO_T}$ac_res" >&6; }
13058
13059fi
13060if test `eval echo '${'$as_ac_Header'}'` = yes; then
13061 cat >>confdefs.h <<_ACEOF
13062#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13063_ACEOF
13064
13065fi
13066
13067done
13068
13069 fi
13070
13071fi
13072
13073
13074fi
13075done
13076
13077
13078{ echo "$as_me:$LINENO: checking for getspnam" >&5
13079echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
13080if test "${ac_cv_func_getspnam+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13082else
13083 cat >conftest.$ac_ext <<_ACEOF
13084/* confdefs.h. */
13085_ACEOF
13086cat confdefs.h >>conftest.$ac_ext
13087cat >>conftest.$ac_ext <<_ACEOF
13088/* end confdefs.h. */
13089/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
13090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13091#define getspnam innocuous_getspnam
13092
13093/* System header to define __stub macros and hopefully few prototypes,
13094 which can conflict with char getspnam (); below.
13095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13096 <limits.h> exists even on freestanding compilers. */
13097
13098#ifdef __STDC__
13099# include <limits.h>
13100#else
13101# include <assert.h>
13102#endif
13103
13104#undef getspnam
13105
13106/* Override any GCC internal prototype to avoid an error.
13107 Use char because int might match the return type of a GCC
13108 builtin and then its argument prototype would still apply. */
13109#ifdef __cplusplus
13110extern "C"
13111#endif
13112char getspnam ();
13113/* The GNU C library defines this for functions which it implements
13114 to always fail with ENOSYS. Some functions are actually named
13115 something starting with __ and the normal name is an alias. */
13116#if defined __stub_getspnam || defined __stub___getspnam
13117choke me
13118#endif
13119
13120int
13121main ()
13122{
13123return getspnam ();
13124 ;
13125 return 0;
13126}
13127_ACEOF
13128rm -f conftest.$ac_objext conftest$ac_exeext
13129if { (ac_try="$ac_link"
13130case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13133esac
13134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_link") 2>conftest.er1
13136 ac_status=$?
13137 grep -v '^ *+' conftest.er1 >conftest.err
13138 rm -f conftest.er1
13139 cat conftest.err >&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } && {
13142 test -z "$ac_c_werror_flag" ||
13143 test ! -s conftest.err
13144 } && test -s conftest$ac_exeext &&
13145 $as_test_x conftest$ac_exeext; then
13146 ac_cv_func_getspnam=yes
13147else
13148 echo "$as_me: failed program was:" >&5
13149sed 's/^/| /' conftest.$ac_ext >&5
13150
13151 ac_cv_func_getspnam=no
13152fi
13153
13154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13155 conftest$ac_exeext conftest.$ac_ext
13156fi
13157{ echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
13158echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
13159if test $ac_cv_func_getspnam = yes; then
13160 :
13161else
13162 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
13163echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
13164if test "${ac_cv_lib_gen_getspnam+set}" = set; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
13166else
13167 ac_check_lib_save_LIBS=$LIBS
13168LIBS="-lgen $LIBS"
13169cat >conftest.$ac_ext <<_ACEOF
13170/* confdefs.h. */
13171_ACEOF
13172cat confdefs.h >>conftest.$ac_ext
13173cat >>conftest.$ac_ext <<_ACEOF
13174/* end confdefs.h. */
13175
13176/* Override any GCC internal prototype to avoid an error.
13177 Use char because int might match the return type of a GCC
13178 builtin and then its argument prototype would still apply. */
13179#ifdef __cplusplus
13180extern "C"
13181#endif
13182char getspnam ();
13183int
13184main ()
13185{
13186return getspnam ();
13187 ;
13188 return 0;
13189}
13190_ACEOF
13191rm -f conftest.$ac_objext conftest$ac_exeext
13192if { (ac_try="$ac_link"
13193case "(($ac_try" in
13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13196esac
13197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198 (eval "$ac_link") 2>conftest.er1
13199 ac_status=$?
13200 grep -v '^ *+' conftest.er1 >conftest.err
13201 rm -f conftest.er1
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } && {
13205 test -z "$ac_c_werror_flag" ||
13206 test ! -s conftest.err
13207 } && test -s conftest$ac_exeext &&
13208 $as_test_x conftest$ac_exeext; then
13209 ac_cv_lib_gen_getspnam=yes
13210else
13211 echo "$as_me: failed program was:" >&5
13212sed 's/^/| /' conftest.$ac_ext >&5
13213
13214 ac_cv_lib_gen_getspnam=no
13215fi
13216
13217rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13218 conftest$ac_exeext conftest.$ac_ext
13219LIBS=$ac_check_lib_save_LIBS
13220fi
13221{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
13222echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
13223if test $ac_cv_lib_gen_getspnam = yes; then
13224 LIBS="$LIBS -lgen"
13225fi
13226
13227fi
13228
13229{ echo "$as_me:$LINENO: checking for library containing basename" >&5
13230echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
13231if test "${ac_cv_search_basename+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13233else
13234 ac_func_search_save_LIBS=$LIBS
13235cat >conftest.$ac_ext <<_ACEOF
13236/* confdefs.h. */
13237_ACEOF
13238cat confdefs.h >>conftest.$ac_ext
13239cat >>conftest.$ac_ext <<_ACEOF
13240/* end confdefs.h. */
13241
13242/* Override any GCC internal prototype to avoid an error.
13243 Use char because int might match the return type of a GCC
13244 builtin and then its argument prototype would still apply. */
13245#ifdef __cplusplus
13246extern "C"
13247#endif
13248char basename ();
13249int
13250main ()
13251{
13252return basename ();
13253 ;
13254 return 0;
13255}
13256_ACEOF
13257for ac_lib in '' gen; do
13258 if test -z "$ac_lib"; then
13259 ac_res="none required"
13260 else
13261 ac_res=-l$ac_lib
13262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13263 fi
13264 rm -f conftest.$ac_objext conftest$ac_exeext
13265if { (ac_try="$ac_link"
13266case "(($ac_try" in
13267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268 *) ac_try_echo=$ac_try;;
13269esac
13270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13271 (eval "$ac_link") 2>conftest.er1
13272 ac_status=$?
13273 grep -v '^ *+' conftest.er1 >conftest.err
13274 rm -f conftest.er1
13275 cat conftest.err >&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); } && {
13278 test -z "$ac_c_werror_flag" ||
13279 test ! -s conftest.err
13280 } && test -s conftest$ac_exeext &&
13281 $as_test_x conftest$ac_exeext; then
13282 ac_cv_search_basename=$ac_res
13283else
13284 echo "$as_me: failed program was:" >&5
13285sed 's/^/| /' conftest.$ac_ext >&5
13286
13287
13288fi
13289
13290rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13291 conftest$ac_exeext
13292 if test "${ac_cv_search_basename+set}" = set; then
13293 break
13294fi
13295done
13296if test "${ac_cv_search_basename+set}" = set; then
13297 :
13298else
13299 ac_cv_search_basename=no
13300fi
13301rm conftest.$ac_ext
13302LIBS=$ac_func_search_save_LIBS
13303fi
13304{ echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
13305echo "${ECHO_T}$ac_cv_search_basename" >&6; }
13306ac_res=$ac_cv_search_basename
13307if test "$ac_res" != no; then
13308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13309
13310cat >>confdefs.h <<\_ACEOF
13311#define HAVE_BASENAME 1
13312_ACEOF
13313
13314fi
13315
13316
13317
13318# Check whether --with-zlib was given.
13319if test "${with_zlib+set}" = set; then
13320 withval=$with_zlib; if test "x$withval" = "xno" ; then
13321 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
13322echo "$as_me: error: *** zlib is required ***" >&2;}
13323 { (exit 1); exit 1; }; }
13324 elif test "x$withval" != "xyes"; then
13325 if test -d "$withval/lib"; then
13326 if test -n "${need_dash_r}"; then
13327 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
13328 else
13329 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
13330 fi
13331 else
13332 if test -n "${need_dash_r}"; then
13333 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
13334 else
13335 LDFLAGS="-L${withval} ${LDFLAGS}"
13336 fi
13337 fi
13338 if test -d "$withval/include"; then
13339 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
13340 else
13341 CPPFLAGS="-I${withval} ${CPPFLAGS}"
13342 fi
13343 fi
13344
13345fi
13346
13347
13348if test "${ac_cv_header_zlib_h+set}" = set; then
13349 { echo "$as_me:$LINENO: checking for zlib.h" >&5
13350echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
13351if test "${ac_cv_header_zlib_h+set}" = set; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13353fi
13354{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13355echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
13356else
13357 # Is the header compilable?
13358{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
13359echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
13360cat >conftest.$ac_ext <<_ACEOF
13361/* confdefs.h. */
13362_ACEOF
13363cat confdefs.h >>conftest.$ac_ext
13364cat >>conftest.$ac_ext <<_ACEOF
13365/* end confdefs.h. */
13366$ac_includes_default
13367#include <zlib.h>
13368_ACEOF
13369rm -f conftest.$ac_objext
13370if { (ac_try="$ac_compile"
13371case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13374esac
13375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_compile") 2>conftest.er1
13377 ac_status=$?
13378 grep -v '^ *+' conftest.er1 >conftest.err
13379 rm -f conftest.er1
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } && {
13383 test -z "$ac_c_werror_flag" ||
13384 test ! -s conftest.err
13385 } && test -s conftest.$ac_objext; then
13386 ac_header_compiler=yes
13387else
13388 echo "$as_me: failed program was:" >&5
13389sed 's/^/| /' conftest.$ac_ext >&5
13390
13391 ac_header_compiler=no
13392fi
13393
13394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13395{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13396echo "${ECHO_T}$ac_header_compiler" >&6; }
13397
13398# Is the header present?
13399{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
13400echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
13401cat >conftest.$ac_ext <<_ACEOF
13402/* confdefs.h. */
13403_ACEOF
13404cat confdefs.h >>conftest.$ac_ext
13405cat >>conftest.$ac_ext <<_ACEOF
13406/* end confdefs.h. */
13407#include <zlib.h>
13408_ACEOF
13409if { (ac_try="$ac_cpp conftest.$ac_ext"
13410case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13413esac
13414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13416 ac_status=$?
13417 grep -v '^ *+' conftest.er1 >conftest.err
13418 rm -f conftest.er1
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } >/dev/null && {
13422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13423 test ! -s conftest.err
13424 }; then
13425 ac_header_preproc=yes
13426else
13427 echo "$as_me: failed program was:" >&5
13428sed 's/^/| /' conftest.$ac_ext >&5
13429
13430 ac_header_preproc=no
13431fi
13432
13433rm -f conftest.err conftest.$ac_ext
13434{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13435echo "${ECHO_T}$ac_header_preproc" >&6; }
13436
13437# So? What about this header?
13438case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13439 yes:no: )
13440 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13441echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13442 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
13443echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
13444 ac_header_preproc=yes
13445 ;;
13446 no:yes:* )
13447 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
13448echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
13449 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
13450echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
13451 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
13452echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
13453 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
13454echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13455 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
13456echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
13457 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
13458echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
13459 ( cat <<\_ASBOX
13460## ------------------------------------------- ##
13461## Report this to openssh-unix-dev@mindrot.org ##
13462## ------------------------------------------- ##
13463_ASBOX
13464 ) | sed "s/^/$as_me: WARNING: /" >&2
13465 ;;
13466esac
13467{ echo "$as_me:$LINENO: checking for zlib.h" >&5
13468echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
13469if test "${ac_cv_header_zlib_h+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13471else
13472 ac_cv_header_zlib_h=$ac_header_preproc
13473fi
13474{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13475echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
13476
13477fi
13478if test $ac_cv_header_zlib_h = yes; then
13479 :
13480else
13481 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
13482echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
13483 { (exit 1); exit 1; }; }
13484fi
13485
13486
13487
13488{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13489echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
13490if test "${ac_cv_lib_z_deflate+set}" = set; then
13491 echo $ECHO_N "(cached) $ECHO_C" >&6
13492else
13493 ac_check_lib_save_LIBS=$LIBS
13494LIBS="-lz $LIBS"
13495cat >conftest.$ac_ext <<_ACEOF
13496/* confdefs.h. */
13497_ACEOF
13498cat confdefs.h >>conftest.$ac_ext
13499cat >>conftest.$ac_ext <<_ACEOF
13500/* end confdefs.h. */
13501
13502/* Override any GCC internal prototype to avoid an error.
13503 Use char because int might match the return type of a GCC
13504 builtin and then its argument prototype would still apply. */
13505#ifdef __cplusplus
13506extern "C"
13507#endif
13508char deflate ();
13509int
13510main ()
13511{
13512return deflate ();
13513 ;
13514 return 0;
13515}
13516_ACEOF
13517rm -f conftest.$ac_objext conftest$ac_exeext
13518if { (ac_try="$ac_link"
13519case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13522esac
13523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_link") 2>conftest.er1
13525 ac_status=$?
13526 grep -v '^ *+' conftest.er1 >conftest.err
13527 rm -f conftest.er1
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } && {
13531 test -z "$ac_c_werror_flag" ||
13532 test ! -s conftest.err
13533 } && test -s conftest$ac_exeext &&
13534 $as_test_x conftest$ac_exeext; then
13535 ac_cv_lib_z_deflate=yes
13536else
13537 echo "$as_me: failed program was:" >&5
13538sed 's/^/| /' conftest.$ac_ext >&5
13539
13540 ac_cv_lib_z_deflate=no
13541fi
13542
13543rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13544 conftest$ac_exeext conftest.$ac_ext
13545LIBS=$ac_check_lib_save_LIBS
13546fi
13547{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13548echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
13549if test $ac_cv_lib_z_deflate = yes; then
13550 cat >>confdefs.h <<_ACEOF
13551#define HAVE_LIBZ 1
13552_ACEOF
13553
13554 LIBS="-lz $LIBS"
13555
13556else
13557
13558 saved_CPPFLAGS="$CPPFLAGS"
13559 saved_LDFLAGS="$LDFLAGS"
13560 save_LIBS="$LIBS"
13561 if test -n "${need_dash_r}"; then
13562 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
13563 else
13564 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
13565 fi
13566 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
13567 LIBS="$LIBS -lz"
13568 cat >conftest.$ac_ext <<_ACEOF
13569/* confdefs.h. */
13570_ACEOF
13571cat confdefs.h >>conftest.$ac_ext
13572cat >>conftest.$ac_ext <<_ACEOF
13573/* end confdefs.h. */
13574
13575/* Override any GCC internal prototype to avoid an error.
13576 Use char because int might match the return type of a GCC
13577 builtin and then its argument prototype would still apply. */
13578#ifdef __cplusplus
13579extern "C"
13580#endif
13581char deflate ();
13582int
13583main ()
13584{
13585return deflate ();
13586 ;
13587 return 0;
13588}
13589_ACEOF
13590rm -f conftest.$ac_objext conftest$ac_exeext
13591if { (ac_try="$ac_link"
13592case "(($ac_try" in
13593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13594 *) ac_try_echo=$ac_try;;
13595esac
13596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13597 (eval "$ac_link") 2>conftest.er1
13598 ac_status=$?
13599 grep -v '^ *+' conftest.er1 >conftest.err
13600 rm -f conftest.er1
13601 cat conftest.err >&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } && {
13604 test -z "$ac_c_werror_flag" ||
13605 test ! -s conftest.err
13606 } && test -s conftest$ac_exeext &&
13607 $as_test_x conftest$ac_exeext; then
13608 cat >>confdefs.h <<\_ACEOF
13609#define HAVE_LIBZ 1
13610_ACEOF
13611
13612else
13613 echo "$as_me: failed program was:" >&5
13614sed 's/^/| /' conftest.$ac_ext >&5
13615
13616
13617 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
13618echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
13619 { (exit 1); exit 1; }; }
13620
13621
13622fi
13623
13624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13625 conftest$ac_exeext conftest.$ac_ext
13626
13627
13628fi
13629
13630
13631
13632# Check whether --with-zlib-version-check was given.
13633if test "${with_zlib_version_check+set}" = set; then
13634 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
13635 zlib_check_nonfatal=1
13636 fi
13637
13638
13639fi
13640
13641
13642{ echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
13643echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
13644if test "$cross_compiling" = yes; then
13645 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
13646echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
13647
13648else
13649 cat >conftest.$ac_ext <<_ACEOF
13650/* confdefs.h. */
13651_ACEOF
13652cat confdefs.h >>conftest.$ac_ext
13653cat >>conftest.$ac_ext <<_ACEOF
13654/* end confdefs.h. */
13655
13656#include <stdio.h>
13657#include <stdlib.h>
13658#include <zlib.h>
13659
13660int
13661main ()
13662{
13663
13664 int a=0, b=0, c=0, d=0, n, v;
13665 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
13666 if (n != 3 && n != 4)
13667 exit(1);
13668 v = a*1000000 + b*10000 + c*100 + d;
13669 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
13670
13671 /* 1.1.4 is OK */
13672 if (a == 1 && b == 1 && c >= 4)
13673 exit(0);
13674
13675 /* 1.2.3 and up are OK */
13676 if (v >= 1020300)
13677 exit(0);
13678
13679 exit(2);
13680
13681 ;
13682 return 0;
13683}
13684_ACEOF
13685rm -f conftest$ac_exeext
13686if { (ac_try="$ac_link"
13687case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13690esac
13691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_link") 2>&5
13693 ac_status=$?
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13696 { (case "(($ac_try" in
13697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698 *) ac_try_echo=$ac_try;;
13699esac
13700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13701 (eval "$ac_try") 2>&5
13702 ac_status=$?
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; }; then
13705 { echo "$as_me:$LINENO: result: no" >&5
13706echo "${ECHO_T}no" >&6; }
13707else
13708 echo "$as_me: program exited with status $ac_status" >&5
13709echo "$as_me: failed program was:" >&5
13710sed 's/^/| /' conftest.$ac_ext >&5
13711
13712( exit $ac_status )
13713 { echo "$as_me:$LINENO: result: yes" >&5
13714echo "${ECHO_T}yes" >&6; }
13715 if test -z "$zlib_check_nonfatal" ; then
13716 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
13717Your reported zlib version has known security problems. It's possible your
13718vendor has fixed these problems without changing the version number. If you
13719are sure this is the case, you can disable the check by running
13720\"./configure --without-zlib-version-check\".
13721If you are in doubt, upgrade zlib to version 1.2.3 or greater.
13722See http://www.gzip.org/zlib/ for details." >&5
13723echo "$as_me: error: *** zlib too old - check config.log ***
13724Your reported zlib version has known security problems. It's possible your
13725vendor has fixed these problems without changing the version number. If you
13726are sure this is the case, you can disable the check by running
13727\"./configure --without-zlib-version-check\".
13728If you are in doubt, upgrade zlib to version 1.2.3 or greater.
13729See http://www.gzip.org/zlib/ for details." >&2;}
13730 { (exit 1); exit 1; }; }
13731 else
13732 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
13733echo "$as_me: WARNING: zlib version may have security problems" >&2;}
13734 fi
13735
13736fi
13737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13738fi
13739
13740
13741
13742{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
13743echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
13744if test "${ac_cv_func_strcasecmp+set}" = set; then
13745 echo $ECHO_N "(cached) $ECHO_C" >&6
13746else
13747 cat >conftest.$ac_ext <<_ACEOF
13748/* confdefs.h. */
13749_ACEOF
13750cat confdefs.h >>conftest.$ac_ext
13751cat >>conftest.$ac_ext <<_ACEOF
13752/* end confdefs.h. */
13753/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
13754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13755#define strcasecmp innocuous_strcasecmp
13756
13757/* System header to define __stub macros and hopefully few prototypes,
13758 which can conflict with char strcasecmp (); below.
13759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13760 <limits.h> exists even on freestanding compilers. */
13761
13762#ifdef __STDC__
13763# include <limits.h>
13764#else
13765# include <assert.h>
13766#endif
13767
13768#undef strcasecmp
13769
13770/* Override any GCC internal prototype to avoid an error.
13771 Use char because int might match the return type of a GCC
13772 builtin and then its argument prototype would still apply. */
13773#ifdef __cplusplus
13774extern "C"
13775#endif
13776char strcasecmp ();
13777/* The GNU C library defines this for functions which it implements
13778 to always fail with ENOSYS. Some functions are actually named
13779 something starting with __ and the normal name is an alias. */
13780#if defined __stub_strcasecmp || defined __stub___strcasecmp
13781choke me
13782#endif
13783
13784int
13785main ()
13786{
13787return strcasecmp ();
13788 ;
13789 return 0;
13790}
13791_ACEOF
13792rm -f conftest.$ac_objext conftest$ac_exeext
13793if { (ac_try="$ac_link"
13794case "(($ac_try" in
13795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796 *) ac_try_echo=$ac_try;;
13797esac
13798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799 (eval "$ac_link") 2>conftest.er1
13800 ac_status=$?
13801 grep -v '^ *+' conftest.er1 >conftest.err
13802 rm -f conftest.er1
13803 cat conftest.err >&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } && {
13806 test -z "$ac_c_werror_flag" ||
13807 test ! -s conftest.err
13808 } && test -s conftest$ac_exeext &&
13809 $as_test_x conftest$ac_exeext; then
13810 ac_cv_func_strcasecmp=yes
13811else
13812 echo "$as_me: failed program was:" >&5
13813sed 's/^/| /' conftest.$ac_ext >&5
13814
13815 ac_cv_func_strcasecmp=no
13816fi
13817
13818rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13819 conftest$ac_exeext conftest.$ac_ext
13820fi
13821{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
13822echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
13823if test $ac_cv_func_strcasecmp = yes; then
13824 :
13825else
13826 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
13827echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
13828if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13830else
13831 ac_check_lib_save_LIBS=$LIBS
13832LIBS="-lresolv $LIBS"
13833cat >conftest.$ac_ext <<_ACEOF
13834/* confdefs.h. */
13835_ACEOF
13836cat confdefs.h >>conftest.$ac_ext
13837cat >>conftest.$ac_ext <<_ACEOF
13838/* end confdefs.h. */
13839
13840/* Override any GCC internal prototype to avoid an error.
13841 Use char because int might match the return type of a GCC
13842 builtin and then its argument prototype would still apply. */
13843#ifdef __cplusplus
13844extern "C"
13845#endif
13846char strcasecmp ();
13847int
13848main ()
13849{
13850return strcasecmp ();
13851 ;
13852 return 0;
13853}
13854_ACEOF
13855rm -f conftest.$ac_objext conftest$ac_exeext
13856if { (ac_try="$ac_link"
13857case "(($ac_try" in
13858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859 *) ac_try_echo=$ac_try;;
13860esac
13861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13862 (eval "$ac_link") 2>conftest.er1
13863 ac_status=$?
13864 grep -v '^ *+' conftest.er1 >conftest.err
13865 rm -f conftest.er1
13866 cat conftest.err >&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } && {
13869 test -z "$ac_c_werror_flag" ||
13870 test ! -s conftest.err
13871 } && test -s conftest$ac_exeext &&
13872 $as_test_x conftest$ac_exeext; then
13873 ac_cv_lib_resolv_strcasecmp=yes
13874else
13875 echo "$as_me: failed program was:" >&5
13876sed 's/^/| /' conftest.$ac_ext >&5
13877
13878 ac_cv_lib_resolv_strcasecmp=no
13879fi
13880
13881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13882 conftest$ac_exeext conftest.$ac_ext
13883LIBS=$ac_check_lib_save_LIBS
13884fi
13885{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
13886echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
13887if test $ac_cv_lib_resolv_strcasecmp = yes; then
13888 LIBS="$LIBS -lresolv"
13889fi
13890
13891
13892fi
13893
13894
13895for ac_func in utimes
13896do
13897as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13898{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13899echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13900if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902else
13903 cat >conftest.$ac_ext <<_ACEOF
13904/* confdefs.h. */
13905_ACEOF
13906cat confdefs.h >>conftest.$ac_ext
13907cat >>conftest.$ac_ext <<_ACEOF
13908/* end confdefs.h. */
13909/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13911#define $ac_func innocuous_$ac_func
13912
13913/* System header to define __stub macros and hopefully few prototypes,
13914 which can conflict with char $ac_func (); below.
13915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13916 <limits.h> exists even on freestanding compilers. */
13917
13918#ifdef __STDC__
13919# include <limits.h>
13920#else
13921# include <assert.h>
13922#endif
13923
13924#undef $ac_func
13925
13926/* Override any GCC internal prototype to avoid an error.
13927 Use char because int might match the return type of a GCC
13928 builtin and then its argument prototype would still apply. */
13929#ifdef __cplusplus
13930extern "C"
13931#endif
13932char $ac_func ();
13933/* The GNU C library defines this for functions which it implements
13934 to always fail with ENOSYS. Some functions are actually named
13935 something starting with __ and the normal name is an alias. */
13936#if defined __stub_$ac_func || defined __stub___$ac_func
13937choke me
13938#endif
13939
13940int
13941main ()
13942{
13943return $ac_func ();
13944 ;
13945 return 0;
13946}
13947_ACEOF
13948rm -f conftest.$ac_objext conftest$ac_exeext
13949if { (ac_try="$ac_link"
13950case "(($ac_try" in
13951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952 *) ac_try_echo=$ac_try;;
13953esac
13954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955 (eval "$ac_link") 2>conftest.er1
13956 ac_status=$?
13957 grep -v '^ *+' conftest.er1 >conftest.err
13958 rm -f conftest.er1
13959 cat conftest.err >&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } && {
13962 test -z "$ac_c_werror_flag" ||
13963 test ! -s conftest.err
13964 } && test -s conftest$ac_exeext &&
13965 $as_test_x conftest$ac_exeext; then
13966 eval "$as_ac_var=yes"
13967else
13968 echo "$as_me: failed program was:" >&5
13969sed 's/^/| /' conftest.$ac_ext >&5
13970
13971 eval "$as_ac_var=no"
13972fi
13973
13974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13975 conftest$ac_exeext conftest.$ac_ext
13976fi
13977ac_res=`eval echo '${'$as_ac_var'}'`
13978 { echo "$as_me:$LINENO: result: $ac_res" >&5
13979echo "${ECHO_T}$ac_res" >&6; }
13980if test `eval echo '${'$as_ac_var'}'` = yes; then
13981 cat >>confdefs.h <<_ACEOF
13982#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13983_ACEOF
13984
13985else
13986 { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
13987echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
13988if test "${ac_cv_lib_c89_utimes+set}" = set; then
13989 echo $ECHO_N "(cached) $ECHO_C" >&6
13990else
13991 ac_check_lib_save_LIBS=$LIBS
13992LIBS="-lc89 $LIBS"
13993cat >conftest.$ac_ext <<_ACEOF
13994/* confdefs.h. */
13995_ACEOF
13996cat confdefs.h >>conftest.$ac_ext
13997cat >>conftest.$ac_ext <<_ACEOF
13998/* end confdefs.h. */
13999
14000/* Override any GCC internal prototype to avoid an error.
14001 Use char because int might match the return type of a GCC
14002 builtin and then its argument prototype would still apply. */
14003#ifdef __cplusplus
14004extern "C"
14005#endif
14006char utimes ();
14007int
14008main ()
14009{
14010return utimes ();
14011 ;
14012 return 0;
14013}
14014_ACEOF
14015rm -f conftest.$ac_objext conftest$ac_exeext
14016if { (ac_try="$ac_link"
14017case "(($ac_try" in
14018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14019 *) ac_try_echo=$ac_try;;
14020esac
14021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14022 (eval "$ac_link") 2>conftest.er1
14023 ac_status=$?
14024 grep -v '^ *+' conftest.er1 >conftest.err
14025 rm -f conftest.er1
14026 cat conftest.err >&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } && {
14029 test -z "$ac_c_werror_flag" ||
14030 test ! -s conftest.err
14031 } && test -s conftest$ac_exeext &&
14032 $as_test_x conftest$ac_exeext; then
14033 ac_cv_lib_c89_utimes=yes
14034else
14035 echo "$as_me: failed program was:" >&5
14036sed 's/^/| /' conftest.$ac_ext >&5
14037
14038 ac_cv_lib_c89_utimes=no
14039fi
14040
14041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14042 conftest$ac_exeext conftest.$ac_ext
14043LIBS=$ac_check_lib_save_LIBS
14044fi
14045{ echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
14046echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
14047if test $ac_cv_lib_c89_utimes = yes; then
14048 cat >>confdefs.h <<\_ACEOF
14049#define HAVE_UTIMES 1
14050_ACEOF
14051
14052 LIBS="$LIBS -lc89"
14053fi
14054
14055
14056fi
14057done
14058
14059
14060
14061
14062for ac_header in bsd/libutil.h libutil.h
14063do
14064as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14066 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14069 echo $ECHO_N "(cached) $ECHO_C" >&6
14070fi
14071ac_res=`eval echo '${'$as_ac_Header'}'`
14072 { echo "$as_me:$LINENO: result: $ac_res" >&5
14073echo "${ECHO_T}$ac_res" >&6; }
14074else
14075 # Is the header compilable?
14076{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14077echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14078cat >conftest.$ac_ext <<_ACEOF
14079/* confdefs.h. */
14080_ACEOF
14081cat confdefs.h >>conftest.$ac_ext
14082cat >>conftest.$ac_ext <<_ACEOF
14083/* end confdefs.h. */
14084$ac_includes_default
14085#include <$ac_header>
14086_ACEOF
14087rm -f conftest.$ac_objext
14088if { (ac_try="$ac_compile"
14089case "(($ac_try" in
14090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091 *) ac_try_echo=$ac_try;;
14092esac
14093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094 (eval "$ac_compile") 2>conftest.er1
14095 ac_status=$?
14096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } && {
14101 test -z "$ac_c_werror_flag" ||
14102 test ! -s conftest.err
14103 } && test -s conftest.$ac_objext; then
14104 ac_header_compiler=yes
14105else
14106 echo "$as_me: failed program was:" >&5
14107sed 's/^/| /' conftest.$ac_ext >&5
14108
14109 ac_header_compiler=no
14110fi
14111
14112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14113{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14114echo "${ECHO_T}$ac_header_compiler" >&6; }
14115
14116# Is the header present?
14117{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14119cat >conftest.$ac_ext <<_ACEOF
14120/* confdefs.h. */
14121_ACEOF
14122cat confdefs.h >>conftest.$ac_ext
14123cat >>conftest.$ac_ext <<_ACEOF
14124/* end confdefs.h. */
14125#include <$ac_header>
14126_ACEOF
14127if { (ac_try="$ac_cpp conftest.$ac_ext"
14128case "(($ac_try" in
14129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130 *) ac_try_echo=$ac_try;;
14131esac
14132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14134 ac_status=$?
14135 grep -v '^ *+' conftest.er1 >conftest.err
14136 rm -f conftest.er1
14137 cat conftest.err >&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } >/dev/null && {
14140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14141 test ! -s conftest.err
14142 }; then
14143 ac_header_preproc=yes
14144else
14145 echo "$as_me: failed program was:" >&5
14146sed 's/^/| /' conftest.$ac_ext >&5
14147
14148 ac_header_preproc=no
14149fi
14150
14151rm -f conftest.err conftest.$ac_ext
14152{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14153echo "${ECHO_T}$ac_header_preproc" >&6; }
14154
14155# So? What about this header?
14156case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14157 yes:no: )
14158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14159echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14161echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14162 ac_header_preproc=yes
14163 ;;
14164 no:yes:* )
14165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14166echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14168echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14170echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14172echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14174echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14176echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14177 ( cat <<\_ASBOX
14178## ------------------------------------------- ##
14179## Report this to openssh-unix-dev@mindrot.org ##
14180## ------------------------------------------- ##
14181_ASBOX
14182 ) | sed "s/^/$as_me: WARNING: /" >&2
14183 ;;
14184esac
14185{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
14189else
14190 eval "$as_ac_Header=\$ac_header_preproc"
14191fi
14192ac_res=`eval echo '${'$as_ac_Header'}'`
14193 { echo "$as_me:$LINENO: result: $ac_res" >&5
14194echo "${ECHO_T}$ac_res" >&6; }
14195
14196fi
14197if test `eval echo '${'$as_ac_Header'}'` = yes; then
14198 cat >>confdefs.h <<_ACEOF
14199#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14200_ACEOF
14201
14202fi
14203
14204done
14205
14206{ echo "$as_me:$LINENO: checking for library containing fmt_scaled" >&5
14207echo $ECHO_N "checking for library containing fmt_scaled... $ECHO_C" >&6; }
14208if test "${ac_cv_search_fmt_scaled+set}" = set; then
14209 echo $ECHO_N "(cached) $ECHO_C" >&6
14210else
14211 ac_func_search_save_LIBS=$LIBS
14212cat >conftest.$ac_ext <<_ACEOF
14213/* confdefs.h. */
14214_ACEOF
14215cat confdefs.h >>conftest.$ac_ext
14216cat >>conftest.$ac_ext <<_ACEOF
14217/* end confdefs.h. */
14218
14219/* Override any GCC internal prototype to avoid an error.
14220 Use char because int might match the return type of a GCC
14221 builtin and then its argument prototype would still apply. */
14222#ifdef __cplusplus
14223extern "C"
14224#endif
14225char fmt_scaled ();
14226int
14227main ()
14228{
14229return fmt_scaled ();
14230 ;
14231 return 0;
14232}
14233_ACEOF
14234for ac_lib in '' util bsd; do
14235 if test -z "$ac_lib"; then
14236 ac_res="none required"
14237 else
14238 ac_res=-l$ac_lib
14239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14240 fi
14241 rm -f conftest.$ac_objext conftest$ac_exeext
14242if { (ac_try="$ac_link"
14243case "(($ac_try" in
14244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14245 *) ac_try_echo=$ac_try;;
14246esac
14247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14248 (eval "$ac_link") 2>conftest.er1
14249 ac_status=$?
14250 grep -v '^ *+' conftest.er1 >conftest.err
14251 rm -f conftest.er1
14252 cat conftest.err >&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } && {
14255 test -z "$ac_c_werror_flag" ||
14256 test ! -s conftest.err
14257 } && test -s conftest$ac_exeext &&
14258 $as_test_x conftest$ac_exeext; then
14259 ac_cv_search_fmt_scaled=$ac_res
14260else
14261 echo "$as_me: failed program was:" >&5
14262sed 's/^/| /' conftest.$ac_ext >&5
14263
14264
14265fi
14266
14267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14268 conftest$ac_exeext
14269 if test "${ac_cv_search_fmt_scaled+set}" = set; then
14270 break
14271fi
14272done
14273if test "${ac_cv_search_fmt_scaled+set}" = set; then
14274 :
14275else
14276 ac_cv_search_fmt_scaled=no
14277fi
14278rm conftest.$ac_ext
14279LIBS=$ac_func_search_save_LIBS
14280fi
14281{ echo "$as_me:$LINENO: result: $ac_cv_search_fmt_scaled" >&5
14282echo "${ECHO_T}$ac_cv_search_fmt_scaled" >&6; }
14283ac_res=$ac_cv_search_fmt_scaled
14284if test "$ac_res" != no; then
14285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14286
14287fi
14288
14289{ echo "$as_me:$LINENO: checking for library containing scan_scaled" >&5
14290echo $ECHO_N "checking for library containing scan_scaled... $ECHO_C" >&6; }
14291if test "${ac_cv_search_scan_scaled+set}" = set; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14293else
14294 ac_func_search_save_LIBS=$LIBS
14295cat >conftest.$ac_ext <<_ACEOF
14296/* confdefs.h. */
14297_ACEOF
14298cat confdefs.h >>conftest.$ac_ext
14299cat >>conftest.$ac_ext <<_ACEOF
14300/* end confdefs.h. */
14301
14302/* Override any GCC internal prototype to avoid an error.
14303 Use char because int might match the return type of a GCC
14304 builtin and then its argument prototype would still apply. */
14305#ifdef __cplusplus
14306extern "C"
14307#endif
14308char scan_scaled ();
14309int
14310main ()
14311{
14312return scan_scaled ();
14313 ;
14314 return 0;
14315}
14316_ACEOF
14317for ac_lib in '' util bsd; do
14318 if test -z "$ac_lib"; then
14319 ac_res="none required"
14320 else
14321 ac_res=-l$ac_lib
14322 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14323 fi
14324 rm -f conftest.$ac_objext conftest$ac_exeext
14325if { (ac_try="$ac_link"
14326case "(($ac_try" in
14327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14328 *) ac_try_echo=$ac_try;;
14329esac
14330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14331 (eval "$ac_link") 2>conftest.er1
14332 ac_status=$?
14333 grep -v '^ *+' conftest.er1 >conftest.err
14334 rm -f conftest.er1
14335 cat conftest.err >&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); } && {
14338 test -z "$ac_c_werror_flag" ||
14339 test ! -s conftest.err
14340 } && test -s conftest$ac_exeext &&
14341 $as_test_x conftest$ac_exeext; then
14342 ac_cv_search_scan_scaled=$ac_res
14343else
14344 echo "$as_me: failed program was:" >&5
14345sed 's/^/| /' conftest.$ac_ext >&5
14346
14347
14348fi
14349
14350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14351 conftest$ac_exeext
14352 if test "${ac_cv_search_scan_scaled+set}" = set; then
14353 break
14354fi
14355done
14356if test "${ac_cv_search_scan_scaled+set}" = set; then
14357 :
14358else
14359 ac_cv_search_scan_scaled=no
14360fi
14361rm conftest.$ac_ext
14362LIBS=$ac_func_search_save_LIBS
14363fi
14364{ echo "$as_me:$LINENO: result: $ac_cv_search_scan_scaled" >&5
14365echo "${ECHO_T}$ac_cv_search_scan_scaled" >&6; }
14366ac_res=$ac_cv_search_scan_scaled
14367if test "$ac_res" != no; then
14368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14369
14370fi
14371
14372{ echo "$as_me:$LINENO: checking for library containing login" >&5
14373echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
14374if test "${ac_cv_search_login+set}" = set; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
14376else
14377 ac_func_search_save_LIBS=$LIBS
14378cat >conftest.$ac_ext <<_ACEOF
14379/* confdefs.h. */
14380_ACEOF
14381cat confdefs.h >>conftest.$ac_ext
14382cat >>conftest.$ac_ext <<_ACEOF
14383/* end confdefs.h. */
14384
14385/* Override any GCC internal prototype to avoid an error.
14386 Use char because int might match the return type of a GCC
14387 builtin and then its argument prototype would still apply. */
14388#ifdef __cplusplus
14389extern "C"
14390#endif
14391char login ();
14392int
14393main ()
14394{
14395return login ();
14396 ;
14397 return 0;
14398}
14399_ACEOF
14400for ac_lib in '' util bsd; do
14401 if test -z "$ac_lib"; then
14402 ac_res="none required"
14403 else
14404 ac_res=-l$ac_lib
14405 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14406 fi
14407 rm -f conftest.$ac_objext conftest$ac_exeext
14408if { (ac_try="$ac_link"
14409case "(($ac_try" in
14410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411 *) ac_try_echo=$ac_try;;
14412esac
14413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414 (eval "$ac_link") 2>conftest.er1
14415 ac_status=$?
14416 grep -v '^ *+' conftest.er1 >conftest.err
14417 rm -f conftest.er1
14418 cat conftest.err >&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } && {
14421 test -z "$ac_c_werror_flag" ||
14422 test ! -s conftest.err
14423 } && test -s conftest$ac_exeext &&
14424 $as_test_x conftest$ac_exeext; then
14425 ac_cv_search_login=$ac_res
14426else
14427 echo "$as_me: failed program was:" >&5
14428sed 's/^/| /' conftest.$ac_ext >&5
14429
14430
14431fi
14432
14433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14434 conftest$ac_exeext
14435 if test "${ac_cv_search_login+set}" = set; then
14436 break
14437fi
14438done
14439if test "${ac_cv_search_login+set}" = set; then
14440 :
14441else
14442 ac_cv_search_login=no
14443fi
14444rm conftest.$ac_ext
14445LIBS=$ac_func_search_save_LIBS
14446fi
14447{ echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
14448echo "${ECHO_T}$ac_cv_search_login" >&6; }
14449ac_res=$ac_cv_search_login
14450if test "$ac_res" != no; then
14451 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14452
14453fi
14454
14455{ echo "$as_me:$LINENO: checking for library containing logout" >&5
14456echo $ECHO_N "checking for library containing logout... $ECHO_C" >&6; }
14457if test "${ac_cv_search_logout+set}" = set; then
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14459else
14460 ac_func_search_save_LIBS=$LIBS
14461cat >conftest.$ac_ext <<_ACEOF
14462/* confdefs.h. */
14463_ACEOF
14464cat confdefs.h >>conftest.$ac_ext
14465cat >>conftest.$ac_ext <<_ACEOF
14466/* end confdefs.h. */
14467
14468/* Override any GCC internal prototype to avoid an error.
14469 Use char because int might match the return type of a GCC
14470 builtin and then its argument prototype would still apply. */
14471#ifdef __cplusplus
14472extern "C"
14473#endif
14474char logout ();
14475int
14476main ()
14477{
14478return logout ();
14479 ;
14480 return 0;
14481}
14482_ACEOF
14483for ac_lib in '' util bsd; do
14484 if test -z "$ac_lib"; then
14485 ac_res="none required"
14486 else
14487 ac_res=-l$ac_lib
14488 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14489 fi
14490 rm -f conftest.$ac_objext conftest$ac_exeext
14491if { (ac_try="$ac_link"
14492case "(($ac_try" in
14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14495esac
14496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497 (eval "$ac_link") 2>conftest.er1
14498 ac_status=$?
14499 grep -v '^ *+' conftest.er1 >conftest.err
14500 rm -f conftest.er1
14501 cat conftest.err >&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); } && {
14504 test -z "$ac_c_werror_flag" ||
14505 test ! -s conftest.err
14506 } && test -s conftest$ac_exeext &&
14507 $as_test_x conftest$ac_exeext; then
14508 ac_cv_search_logout=$ac_res
14509else
14510 echo "$as_me: failed program was:" >&5
14511sed 's/^/| /' conftest.$ac_ext >&5
14512
14513
14514fi
14515
14516rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14517 conftest$ac_exeext
14518 if test "${ac_cv_search_logout+set}" = set; then
14519 break
14520fi
14521done
14522if test "${ac_cv_search_logout+set}" = set; then
14523 :
14524else
14525 ac_cv_search_logout=no
14526fi
14527rm conftest.$ac_ext
14528LIBS=$ac_func_search_save_LIBS
14529fi
14530{ echo "$as_me:$LINENO: result: $ac_cv_search_logout" >&5
14531echo "${ECHO_T}$ac_cv_search_logout" >&6; }
14532ac_res=$ac_cv_search_logout
14533if test "$ac_res" != no; then
14534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14535
14536fi
14537
14538{ echo "$as_me:$LINENO: checking for library containing logwtmp" >&5
14539echo $ECHO_N "checking for library containing logwtmp... $ECHO_C" >&6; }
14540if test "${ac_cv_search_logwtmp+set}" = set; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14542else
14543 ac_func_search_save_LIBS=$LIBS
14544cat >conftest.$ac_ext <<_ACEOF
14545/* confdefs.h. */
14546_ACEOF
14547cat confdefs.h >>conftest.$ac_ext
14548cat >>conftest.$ac_ext <<_ACEOF
14549/* end confdefs.h. */
14550
14551/* Override any GCC internal prototype to avoid an error.
14552 Use char because int might match the return type of a GCC
14553 builtin and then its argument prototype would still apply. */
14554#ifdef __cplusplus
14555extern "C"
14556#endif
14557char logwtmp ();
14558int
14559main ()
14560{
14561return logwtmp ();
14562 ;
14563 return 0;
14564}
14565_ACEOF
14566for ac_lib in '' util bsd; do
14567 if test -z "$ac_lib"; then
14568 ac_res="none required"
14569 else
14570 ac_res=-l$ac_lib
14571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14572 fi
14573 rm -f conftest.$ac_objext conftest$ac_exeext
14574if { (ac_try="$ac_link"
14575case "(($ac_try" in
14576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577 *) ac_try_echo=$ac_try;;
14578esac
14579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580 (eval "$ac_link") 2>conftest.er1
14581 ac_status=$?
14582 grep -v '^ *+' conftest.er1 >conftest.err
14583 rm -f conftest.er1
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } && {
14587 test -z "$ac_c_werror_flag" ||
14588 test ! -s conftest.err
14589 } && test -s conftest$ac_exeext &&
14590 $as_test_x conftest$ac_exeext; then
14591 ac_cv_search_logwtmp=$ac_res
14592else
14593 echo "$as_me: failed program was:" >&5
14594sed 's/^/| /' conftest.$ac_ext >&5
14595
14596
14597fi
14598
14599rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14600 conftest$ac_exeext
14601 if test "${ac_cv_search_logwtmp+set}" = set; then
14602 break
14603fi
14604done
14605if test "${ac_cv_search_logwtmp+set}" = set; then
14606 :
14607else
14608 ac_cv_search_logwtmp=no
14609fi
14610rm conftest.$ac_ext
14611LIBS=$ac_func_search_save_LIBS
14612fi
14613{ echo "$as_me:$LINENO: result: $ac_cv_search_logwtmp" >&5
14614echo "${ECHO_T}$ac_cv_search_logwtmp" >&6; }
14615ac_res=$ac_cv_search_logwtmp
14616if test "$ac_res" != no; then
14617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14618
14619fi
14620
14621{ echo "$as_me:$LINENO: checking for library containing openpty" >&5
14622echo $ECHO_N "checking for library containing openpty... $ECHO_C" >&6; }
14623if test "${ac_cv_search_openpty+set}" = set; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14625else
14626 ac_func_search_save_LIBS=$LIBS
14627cat >conftest.$ac_ext <<_ACEOF
14628/* confdefs.h. */
14629_ACEOF
14630cat confdefs.h >>conftest.$ac_ext
14631cat >>conftest.$ac_ext <<_ACEOF
14632/* end confdefs.h. */
14633
14634/* Override any GCC internal prototype to avoid an error.
14635 Use char because int might match the return type of a GCC
14636 builtin and then its argument prototype would still apply. */
14637#ifdef __cplusplus
14638extern "C"
14639#endif
14640char openpty ();
14641int
14642main ()
14643{
14644return openpty ();
14645 ;
14646 return 0;
14647}
14648_ACEOF
14649for ac_lib in '' util bsd; do
14650 if test -z "$ac_lib"; then
14651 ac_res="none required"
14652 else
14653 ac_res=-l$ac_lib
14654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14655 fi
14656 rm -f conftest.$ac_objext conftest$ac_exeext
14657if { (ac_try="$ac_link"
14658case "(($ac_try" in
14659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660 *) ac_try_echo=$ac_try;;
14661esac
14662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663 (eval "$ac_link") 2>conftest.er1
14664 ac_status=$?
14665 grep -v '^ *+' conftest.er1 >conftest.err
14666 rm -f conftest.er1
14667 cat conftest.err >&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); } && {
14670 test -z "$ac_c_werror_flag" ||
14671 test ! -s conftest.err
14672 } && test -s conftest$ac_exeext &&
14673 $as_test_x conftest$ac_exeext; then
14674 ac_cv_search_openpty=$ac_res
14675else
14676 echo "$as_me: failed program was:" >&5
14677sed 's/^/| /' conftest.$ac_ext >&5
14678
14679
14680fi
14681
14682rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14683 conftest$ac_exeext
14684 if test "${ac_cv_search_openpty+set}" = set; then
14685 break
14686fi
14687done
14688if test "${ac_cv_search_openpty+set}" = set; then
14689 :
14690else
14691 ac_cv_search_openpty=no
14692fi
14693rm conftest.$ac_ext
14694LIBS=$ac_func_search_save_LIBS
14695fi
14696{ echo "$as_me:$LINENO: result: $ac_cv_search_openpty" >&5
14697echo "${ECHO_T}$ac_cv_search_openpty" >&6; }
14698ac_res=$ac_cv_search_openpty
14699if test "$ac_res" != no; then
14700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14701
14702fi
14703
14704{ echo "$as_me:$LINENO: checking for library containing updwtmp" >&5
14705echo $ECHO_N "checking for library containing updwtmp... $ECHO_C" >&6; }
14706if test "${ac_cv_search_updwtmp+set}" = set; then
14707 echo $ECHO_N "(cached) $ECHO_C" >&6
14708else
14709 ac_func_search_save_LIBS=$LIBS
14710cat >conftest.$ac_ext <<_ACEOF
14711/* confdefs.h. */
14712_ACEOF
14713cat confdefs.h >>conftest.$ac_ext
14714cat >>conftest.$ac_ext <<_ACEOF
14715/* end confdefs.h. */
14716
14717/* Override any GCC internal prototype to avoid an error.
14718 Use char because int might match the return type of a GCC
14719 builtin and then its argument prototype would still apply. */
14720#ifdef __cplusplus
14721extern "C"
14722#endif
14723char updwtmp ();
14724int
14725main ()
14726{
14727return updwtmp ();
14728 ;
14729 return 0;
14730}
14731_ACEOF
14732for ac_lib in '' util bsd; do
14733 if test -z "$ac_lib"; then
14734 ac_res="none required"
14735 else
14736 ac_res=-l$ac_lib
14737 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14738 fi
14739 rm -f conftest.$ac_objext conftest$ac_exeext
14740if { (ac_try="$ac_link"
14741case "(($ac_try" in
14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743 *) ac_try_echo=$ac_try;;
14744esac
14745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746 (eval "$ac_link") 2>conftest.er1
14747 ac_status=$?
14748 grep -v '^ *+' conftest.er1 >conftest.err
14749 rm -f conftest.er1
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } && {
14753 test -z "$ac_c_werror_flag" ||
14754 test ! -s conftest.err
14755 } && test -s conftest$ac_exeext &&
14756 $as_test_x conftest$ac_exeext; then
14757 ac_cv_search_updwtmp=$ac_res
14758else
14759 echo "$as_me: failed program was:" >&5
14760sed 's/^/| /' conftest.$ac_ext >&5
14761
14762
14763fi
14764
14765rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14766 conftest$ac_exeext
14767 if test "${ac_cv_search_updwtmp+set}" = set; then
14768 break
14769fi
14770done
14771if test "${ac_cv_search_updwtmp+set}" = set; then
14772 :
14773else
14774 ac_cv_search_updwtmp=no
14775fi
14776rm conftest.$ac_ext
14777LIBS=$ac_func_search_save_LIBS
14778fi
14779{ echo "$as_me:$LINENO: result: $ac_cv_search_updwtmp" >&5
14780echo "${ECHO_T}$ac_cv_search_updwtmp" >&6; }
14781ac_res=$ac_cv_search_updwtmp
14782if test "$ac_res" != no; then
14783 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14784
14785fi
14786
14787
14788
14789
14790
14791
14792
14793
14794for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp
14795do
14796as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14797{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14798echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14799if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14801else
14802 cat >conftest.$ac_ext <<_ACEOF
14803/* confdefs.h. */
14804_ACEOF
14805cat confdefs.h >>conftest.$ac_ext
14806cat >>conftest.$ac_ext <<_ACEOF
14807/* end confdefs.h. */
14808/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14810#define $ac_func innocuous_$ac_func
14811
14812/* System header to define __stub macros and hopefully few prototypes,
14813 which can conflict with char $ac_func (); below.
14814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14815 <limits.h> exists even on freestanding compilers. */
14816
14817#ifdef __STDC__
14818# include <limits.h>
14819#else
14820# include <assert.h>
14821#endif
14822
14823#undef $ac_func
14824
14825/* Override any GCC internal prototype to avoid an error.
14826 Use char because int might match the return type of a GCC
14827 builtin and then its argument prototype would still apply. */
14828#ifdef __cplusplus
14829extern "C"
14830#endif
14831char $ac_func ();
14832/* The GNU C library defines this for functions which it implements
14833 to always fail with ENOSYS. Some functions are actually named
14834 something starting with __ and the normal name is an alias. */
14835#if defined __stub_$ac_func || defined __stub___$ac_func
14836choke me
14837#endif
14838
14839int
14840main ()
14841{
14842return $ac_func ();
14843 ;
14844 return 0;
14845}
14846_ACEOF
14847rm -f conftest.$ac_objext conftest$ac_exeext
14848if { (ac_try="$ac_link"
14849case "(($ac_try" in
14850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14851 *) ac_try_echo=$ac_try;;
14852esac
14853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14854 (eval "$ac_link") 2>conftest.er1
14855 ac_status=$?
14856 grep -v '^ *+' conftest.er1 >conftest.err
14857 rm -f conftest.er1
14858 cat conftest.err >&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } && {
14861 test -z "$ac_c_werror_flag" ||
14862 test ! -s conftest.err
14863 } && test -s conftest$ac_exeext &&
14864 $as_test_x conftest$ac_exeext; then
14865 eval "$as_ac_var=yes"
14866else
14867 echo "$as_me: failed program was:" >&5
14868sed 's/^/| /' conftest.$ac_ext >&5
14869
14870 eval "$as_ac_var=no"
14871fi
14872
14873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14874 conftest$ac_exeext conftest.$ac_ext
14875fi
14876ac_res=`eval echo '${'$as_ac_var'}'`
14877 { echo "$as_me:$LINENO: result: $ac_res" >&5
14878echo "${ECHO_T}$ac_res" >&6; }
14879if test `eval echo '${'$as_ac_var'}'` = yes; then
14880 cat >>confdefs.h <<_ACEOF
14881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14882_ACEOF
14883
14884fi
14885done
14886
14887
14888# On some platforms, inet_ntop and gethostbyname may be found in libresolv
14889# or libnsl.
14890{ echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
14891echo $ECHO_N "checking for library containing inet_ntop... $ECHO_C" >&6; }
14892if test "${ac_cv_search_inet_ntop+set}" = set; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14894else
14895 ac_func_search_save_LIBS=$LIBS
14896cat >conftest.$ac_ext <<_ACEOF
14897/* confdefs.h. */
14898_ACEOF
14899cat confdefs.h >>conftest.$ac_ext
14900cat >>conftest.$ac_ext <<_ACEOF
14901/* end confdefs.h. */
14902
14903/* Override any GCC internal prototype to avoid an error.
14904 Use char because int might match the return type of a GCC
14905 builtin and then its argument prototype would still apply. */
14906#ifdef __cplusplus
14907extern "C"
14908#endif
14909char inet_ntop ();
14910int
14911main ()
14912{
14913return inet_ntop ();
14914 ;
14915 return 0;
14916}
14917_ACEOF
14918for ac_lib in '' resolv nsl; do
14919 if test -z "$ac_lib"; then
14920 ac_res="none required"
14921 else
14922 ac_res=-l$ac_lib
14923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14924 fi
14925 rm -f conftest.$ac_objext conftest$ac_exeext
14926if { (ac_try="$ac_link"
14927case "(($ac_try" in
14928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14929 *) ac_try_echo=$ac_try;;
14930esac
14931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14932 (eval "$ac_link") 2>conftest.er1
14933 ac_status=$?
14934 grep -v '^ *+' conftest.er1 >conftest.err
14935 rm -f conftest.er1
14936 cat conftest.err >&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } && {
14939 test -z "$ac_c_werror_flag" ||
14940 test ! -s conftest.err
14941 } && test -s conftest$ac_exeext &&
14942 $as_test_x conftest$ac_exeext; then
14943 ac_cv_search_inet_ntop=$ac_res
14944else
14945 echo "$as_me: failed program was:" >&5
14946sed 's/^/| /' conftest.$ac_ext >&5
14947
14948
14949fi
14950
14951rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14952 conftest$ac_exeext
14953 if test "${ac_cv_search_inet_ntop+set}" = set; then
14954 break
14955fi
14956done
14957if test "${ac_cv_search_inet_ntop+set}" = set; then
14958 :
14959else
14960 ac_cv_search_inet_ntop=no
14961fi
14962rm conftest.$ac_ext
14963LIBS=$ac_func_search_save_LIBS
14964fi
14965{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
14966echo "${ECHO_T}$ac_cv_search_inet_ntop" >&6; }
14967ac_res=$ac_cv_search_inet_ntop
14968if test "$ac_res" != no; then
14969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14970
14971fi
14972
14973{ echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
14974echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
14975if test "${ac_cv_search_gethostbyname+set}" = set; then
14976 echo $ECHO_N "(cached) $ECHO_C" >&6
14977else
14978 ac_func_search_save_LIBS=$LIBS
14979cat >conftest.$ac_ext <<_ACEOF
14980/* confdefs.h. */
14981_ACEOF
14982cat confdefs.h >>conftest.$ac_ext
14983cat >>conftest.$ac_ext <<_ACEOF
14984/* end confdefs.h. */
14985
14986/* Override any GCC internal prototype to avoid an error.
14987 Use char because int might match the return type of a GCC
14988 builtin and then its argument prototype would still apply. */
14989#ifdef __cplusplus
14990extern "C"
14991#endif
14992char gethostbyname ();
14993int
14994main ()
14995{
14996return gethostbyname ();
14997 ;
14998 return 0;
14999}
15000_ACEOF
15001for ac_lib in '' resolv nsl; do
15002 if test -z "$ac_lib"; then
15003 ac_res="none required"
15004 else
15005 ac_res=-l$ac_lib
15006 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15007 fi
15008 rm -f conftest.$ac_objext conftest$ac_exeext
15009if { (ac_try="$ac_link"
15010case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15013esac
15014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_link") 2>conftest.er1
15016 ac_status=$?
15017 grep -v '^ *+' conftest.er1 >conftest.err
15018 rm -f conftest.er1
15019 cat conftest.err >&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } && {
15022 test -z "$ac_c_werror_flag" ||
15023 test ! -s conftest.err
15024 } && test -s conftest$ac_exeext &&
15025 $as_test_x conftest$ac_exeext; then
15026 ac_cv_search_gethostbyname=$ac_res
15027else
15028 echo "$as_me: failed program was:" >&5
15029sed 's/^/| /' conftest.$ac_ext >&5
15030
15031
15032fi
15033
15034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15035 conftest$ac_exeext
15036 if test "${ac_cv_search_gethostbyname+set}" = set; then
15037 break
15038fi
15039done
15040if test "${ac_cv_search_gethostbyname+set}" = set; then
15041 :
15042else
15043 ac_cv_search_gethostbyname=no
15044fi
15045rm conftest.$ac_ext
15046LIBS=$ac_func_search_save_LIBS
15047fi
15048{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
15049echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
15050ac_res=$ac_cv_search_gethostbyname
15051if test "$ac_res" != no; then
15052 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15053
15054fi
15055
15056
15057
15058for ac_func in strftime
15059do
15060as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15061{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15062echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15063if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15064 echo $ECHO_N "(cached) $ECHO_C" >&6
15065else
15066 cat >conftest.$ac_ext <<_ACEOF
15067/* confdefs.h. */
15068_ACEOF
15069cat confdefs.h >>conftest.$ac_ext
15070cat >>conftest.$ac_ext <<_ACEOF
15071/* end confdefs.h. */
15072/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15074#define $ac_func innocuous_$ac_func
15075
15076/* System header to define __stub macros and hopefully few prototypes,
15077 which can conflict with char $ac_func (); below.
15078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15079 <limits.h> exists even on freestanding compilers. */
15080
15081#ifdef __STDC__
15082# include <limits.h>
15083#else
15084# include <assert.h>
15085#endif
15086
15087#undef $ac_func
15088
15089/* Override any GCC internal prototype to avoid an error.
15090 Use char because int might match the return type of a GCC
15091 builtin and then its argument prototype would still apply. */
15092#ifdef __cplusplus
15093extern "C"
15094#endif
15095char $ac_func ();
15096/* The GNU C library defines this for functions which it implements
15097 to always fail with ENOSYS. Some functions are actually named
15098 something starting with __ and the normal name is an alias. */
15099#if defined __stub_$ac_func || defined __stub___$ac_func
15100choke me
15101#endif
15102
15103int
15104main ()
15105{
15106return $ac_func ();
15107 ;
15108 return 0;
15109}
15110_ACEOF
15111rm -f conftest.$ac_objext conftest$ac_exeext
15112if { (ac_try="$ac_link"
15113case "(($ac_try" in
15114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115 *) ac_try_echo=$ac_try;;
15116esac
15117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118 (eval "$ac_link") 2>conftest.er1
15119 ac_status=$?
15120 grep -v '^ *+' conftest.er1 >conftest.err
15121 rm -f conftest.er1
15122 cat conftest.err >&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } && {
15125 test -z "$ac_c_werror_flag" ||
15126 test ! -s conftest.err
15127 } && test -s conftest$ac_exeext &&
15128 $as_test_x conftest$ac_exeext; then
15129 eval "$as_ac_var=yes"
15130else
15131 echo "$as_me: failed program was:" >&5
15132sed 's/^/| /' conftest.$ac_ext >&5
15133
15134 eval "$as_ac_var=no"
15135fi
15136
15137rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15138 conftest$ac_exeext conftest.$ac_ext
15139fi
15140ac_res=`eval echo '${'$as_ac_var'}'`
15141 { echo "$as_me:$LINENO: result: $ac_res" >&5
15142echo "${ECHO_T}$ac_res" >&6; }
15143if test `eval echo '${'$as_ac_var'}'` = yes; then
15144 cat >>confdefs.h <<_ACEOF
15145#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15146_ACEOF
15147
15148else
15149 # strftime is in -lintl on SCO UNIX.
15150{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15151echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
15152if test "${ac_cv_lib_intl_strftime+set}" = set; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15154else
15155 ac_check_lib_save_LIBS=$LIBS
15156LIBS="-lintl $LIBS"
15157cat >conftest.$ac_ext <<_ACEOF
15158/* confdefs.h. */
15159_ACEOF
15160cat confdefs.h >>conftest.$ac_ext
15161cat >>conftest.$ac_ext <<_ACEOF
15162/* end confdefs.h. */
15163
15164/* Override any GCC internal prototype to avoid an error.
15165 Use char because int might match the return type of a GCC
15166 builtin and then its argument prototype would still apply. */
15167#ifdef __cplusplus
15168extern "C"
15169#endif
15170char strftime ();
15171int
15172main ()
15173{
15174return strftime ();
15175 ;
15176 return 0;
15177}
15178_ACEOF
15179rm -f conftest.$ac_objext conftest$ac_exeext
15180if { (ac_try="$ac_link"
15181case "(($ac_try" in
15182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15183 *) ac_try_echo=$ac_try;;
15184esac
15185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15186 (eval "$ac_link") 2>conftest.er1
15187 ac_status=$?
15188 grep -v '^ *+' conftest.er1 >conftest.err
15189 rm -f conftest.er1
15190 cat conftest.err >&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } && {
15193 test -z "$ac_c_werror_flag" ||
15194 test ! -s conftest.err
15195 } && test -s conftest$ac_exeext &&
15196 $as_test_x conftest$ac_exeext; then
15197 ac_cv_lib_intl_strftime=yes
15198else
15199 echo "$as_me: failed program was:" >&5
15200sed 's/^/| /' conftest.$ac_ext >&5
15201
15202 ac_cv_lib_intl_strftime=no
15203fi
15204
15205rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15206 conftest$ac_exeext conftest.$ac_ext
15207LIBS=$ac_check_lib_save_LIBS
15208fi
15209{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15210echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
15211if test $ac_cv_lib_intl_strftime = yes; then
15212 cat >>confdefs.h <<\_ACEOF
15213#define HAVE_STRFTIME 1
15214_ACEOF
15215
15216LIBS="-lintl $LIBS"
15217fi
15218
15219fi
15220done
15221
15222
15223# Check for ALTDIRFUNC glob() extension
15224{ echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
15225echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
15226cat >conftest.$ac_ext <<_ACEOF
15227/* confdefs.h. */
15228_ACEOF
15229cat confdefs.h >>conftest.$ac_ext
15230cat >>conftest.$ac_ext <<_ACEOF
15231/* end confdefs.h. */
15232
15233 #include <glob.h>
15234 #ifdef GLOB_ALTDIRFUNC
15235 FOUNDIT
15236 #endif
15237
15238_ACEOF
15239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15240 $EGREP "FOUNDIT" >/dev/null 2>&1; then
15241
15242
15243cat >>confdefs.h <<\_ACEOF
15244#define GLOB_HAS_ALTDIRFUNC 1
15245_ACEOF
15246
15247 { echo "$as_me:$LINENO: result: yes" >&5
15248echo "${ECHO_T}yes" >&6; }
15249
15250else
15251
15252 { echo "$as_me:$LINENO: result: no" >&5
15253echo "${ECHO_T}no" >&6; }
15254
15255
15256fi
15257rm -f conftest*
15258
15259
15260# Check for g.gl_matchc glob() extension
15261{ echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
15262echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
15263cat >conftest.$ac_ext <<_ACEOF
15264/* confdefs.h. */
15265_ACEOF
15266cat confdefs.h >>conftest.$ac_ext
15267cat >>conftest.$ac_ext <<_ACEOF
15268/* end confdefs.h. */
15269 #include <glob.h>
15270int
15271main ()
15272{
15273 glob_t g; g.gl_matchc = 1;
15274 ;
15275 return 0;
15276}
15277_ACEOF
15278rm -f conftest.$ac_objext
15279if { (ac_try="$ac_compile"
15280case "(($ac_try" in
15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282 *) ac_try_echo=$ac_try;;
15283esac
15284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285 (eval "$ac_compile") 2>conftest.er1
15286 ac_status=$?
15287 grep -v '^ *+' conftest.er1 >conftest.err
15288 rm -f conftest.er1
15289 cat conftest.err >&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } && {
15292 test -z "$ac_c_werror_flag" ||
15293 test ! -s conftest.err
15294 } && test -s conftest.$ac_objext; then
15295
15296
15297cat >>confdefs.h <<\_ACEOF
15298#define GLOB_HAS_GL_MATCHC 1
15299_ACEOF
15300
15301 { echo "$as_me:$LINENO: result: yes" >&5
15302echo "${ECHO_T}yes" >&6; }
15303
15304else
15305 echo "$as_me: failed program was:" >&5
15306sed 's/^/| /' conftest.$ac_ext >&5
15307
15308
15309 { echo "$as_me:$LINENO: result: no" >&5
15310echo "${ECHO_T}no" >&6; }
15311
15312fi
15313
15314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15315
15316# Check for g.gl_statv glob() extension
15317{ echo "$as_me:$LINENO: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
15318echo $ECHO_N "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... $ECHO_C" >&6; }
15319cat >conftest.$ac_ext <<_ACEOF
15320/* confdefs.h. */
15321_ACEOF
15322cat confdefs.h >>conftest.$ac_ext
15323cat >>conftest.$ac_ext <<_ACEOF
15324/* end confdefs.h. */
15325 #include <glob.h>
15326int
15327main ()
15328{
15329
15330#ifndef GLOB_KEEPSTAT
15331#error "glob does not support GLOB_KEEPSTAT extension"
15332#endif
15333glob_t g;
15334g.gl_statv = NULL;
15335
15336 ;
15337 return 0;
15338}
15339_ACEOF
15340rm -f conftest.$ac_objext
15341if { (ac_try="$ac_compile"
15342case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15345esac
15346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_compile") 2>conftest.er1
15348 ac_status=$?
15349 grep -v '^ *+' conftest.er1 >conftest.err
15350 rm -f conftest.er1
15351 cat conftest.err >&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); } && {
15354 test -z "$ac_c_werror_flag" ||
15355 test ! -s conftest.err
15356 } && test -s conftest.$ac_objext; then
15357
15358
15359cat >>confdefs.h <<\_ACEOF
15360#define GLOB_HAS_GL_STATV 1
15361_ACEOF
15362
15363 { echo "$as_me:$LINENO: result: yes" >&5
15364echo "${ECHO_T}yes" >&6; }
15365
15366else
15367 echo "$as_me: failed program was:" >&5
15368sed 's/^/| /' conftest.$ac_ext >&5
15369
15370
15371 { echo "$as_me:$LINENO: result: no" >&5
15372echo "${ECHO_T}no" >&6; }
15373
15374
15375fi
15376
15377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15378
15379{ echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
15380echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
15381if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15383else
15384 cat >conftest.$ac_ext <<_ACEOF
15385/* confdefs.h. */
15386_ACEOF
15387cat confdefs.h >>conftest.$ac_ext
15388cat >>conftest.$ac_ext <<_ACEOF
15389/* end confdefs.h. */
15390#include <glob.h>
15391
15392int
15393main ()
15394{
15395#ifndef GLOB_NOMATCH
15396 (void) GLOB_NOMATCH;
15397#endif
15398
15399 ;
15400 return 0;
15401}
15402_ACEOF
15403rm -f conftest.$ac_objext
15404if { (ac_try="$ac_compile"
15405case "(($ac_try" in
15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15408esac
15409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_compile") 2>conftest.er1
15411 ac_status=$?
15412 grep -v '^ *+' conftest.er1 >conftest.err
15413 rm -f conftest.er1
15414 cat conftest.err >&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); } && {
15417 test -z "$ac_c_werror_flag" ||
15418 test ! -s conftest.err
15419 } && test -s conftest.$ac_objext; then
15420 ac_cv_have_decl_GLOB_NOMATCH=yes
15421else
15422 echo "$as_me: failed program was:" >&5
15423sed 's/^/| /' conftest.$ac_ext >&5
15424
15425 ac_cv_have_decl_GLOB_NOMATCH=no
15426fi
15427
15428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15429fi
15430{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
15431echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
15432if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
15433
15434cat >>confdefs.h <<_ACEOF
15435#define HAVE_DECL_GLOB_NOMATCH 1
15436_ACEOF
15437
15438
15439else
15440 cat >>confdefs.h <<_ACEOF
15441#define HAVE_DECL_GLOB_NOMATCH 0
15442_ACEOF
15443
15444
15445fi
15446
15447
15448
15449{ echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
15450echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
15451if test "$cross_compiling" = yes; then
15452
15453 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
15454echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
15455 cat >>confdefs.h <<\_ACEOF
15456#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
15457_ACEOF
15458
15459
15460
15461else
15462 cat >conftest.$ac_ext <<_ACEOF
15463/* confdefs.h. */
15464_ACEOF
15465cat confdefs.h >>conftest.$ac_ext
15466cat >>conftest.$ac_ext <<_ACEOF
15467/* end confdefs.h. */
15468
15469#include <sys/types.h>
15470#include <dirent.h>
15471int
15472main ()
15473{
15474
15475 struct dirent d;
15476 exit(sizeof(d.d_name)<=sizeof(char));
15477
15478 ;
15479 return 0;
15480}
15481_ACEOF
15482rm -f conftest$ac_exeext
15483if { (ac_try="$ac_link"
15484case "(($ac_try" in
15485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486 *) ac_try_echo=$ac_try;;
15487esac
15488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15489 (eval "$ac_link") 2>&5
15490 ac_status=$?
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15493 { (case "(($ac_try" in
15494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15495 *) ac_try_echo=$ac_try;;
15496esac
15497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15498 (eval "$ac_try") 2>&5
15499 ac_status=$?
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); }; }; then
15502 { echo "$as_me:$LINENO: result: yes" >&5
15503echo "${ECHO_T}yes" >&6; }
15504else
15505 echo "$as_me: program exited with status $ac_status" >&5
15506echo "$as_me: failed program was:" >&5
15507sed 's/^/| /' conftest.$ac_ext >&5
15508
15509( exit $ac_status )
15510
15511 { echo "$as_me:$LINENO: result: no" >&5
15512echo "${ECHO_T}no" >&6; }
15513
15514cat >>confdefs.h <<\_ACEOF
15515#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
15516_ACEOF
15517
15518
15519fi
15520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15521fi
15522
15523
15524
15525{ echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
15526echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
15527if test -d "/proc/$$/fd" ; then
15528
15529cat >>confdefs.h <<\_ACEOF
15530#define HAVE_PROC_PID 1
15531_ACEOF
15532
15533 { echo "$as_me:$LINENO: result: yes" >&5
15534echo "${ECHO_T}yes" >&6; }
15535else
15536 { echo "$as_me:$LINENO: result: no" >&5
15537echo "${ECHO_T}no" >&6; }
15538fi
15539
15540# Check whether user wants S/Key support
15541SKEY_MSG="no"
15542
15543# Check whether --with-skey was given.
15544if test "${with_skey+set}" = set; then
15545 withval=$with_skey;
15546 if test "x$withval" != "xno" ; then
15547
15548 if test "x$withval" != "xyes" ; then
15549 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15550 LDFLAGS="$LDFLAGS -L${withval}/lib"
15551 fi
15552
15553
15554cat >>confdefs.h <<\_ACEOF
15555#define SKEY 1
15556_ACEOF
15557
15558 LIBS="-lskey $LIBS"
15559 SKEY_MSG="yes"
15560
15561 { echo "$as_me:$LINENO: checking for s/key support" >&5
15562echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
15563 cat >conftest.$ac_ext <<_ACEOF
15564/* confdefs.h. */
15565_ACEOF
15566cat confdefs.h >>conftest.$ac_ext
15567cat >>conftest.$ac_ext <<_ACEOF
15568/* end confdefs.h. */
15569
15570#include <stdio.h>
15571#include <skey.h>
15572
15573int
15574main ()
15575{
15576
15577 char *ff = skey_keyinfo(""); ff="";
15578 exit(0);
15579
15580 ;
15581 return 0;
15582}
15583_ACEOF
15584rm -f conftest.$ac_objext conftest$ac_exeext
15585if { (ac_try="$ac_link"
15586case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15589esac
15590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_link") 2>conftest.er1
15592 ac_status=$?
15593 grep -v '^ *+' conftest.er1 >conftest.err
15594 rm -f conftest.er1
15595 cat conftest.err >&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } && {
15598 test -z "$ac_c_werror_flag" ||
15599 test ! -s conftest.err
15600 } && test -s conftest$ac_exeext &&
15601 $as_test_x conftest$ac_exeext; then
15602 { echo "$as_me:$LINENO: result: yes" >&5
15603echo "${ECHO_T}yes" >&6; }
15604else
15605 echo "$as_me: failed program was:" >&5
15606sed 's/^/| /' conftest.$ac_ext >&5
15607
15608
15609 { echo "$as_me:$LINENO: result: no" >&5
15610echo "${ECHO_T}no" >&6; }
15611 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
15612echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
15613 { (exit 1); exit 1; }; }
15614
15615fi
15616
15617rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15618 conftest$ac_exeext conftest.$ac_ext
15619 { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
15620echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
15621 cat >conftest.$ac_ext <<_ACEOF
15622/* confdefs.h. */
15623_ACEOF
15624cat confdefs.h >>conftest.$ac_ext
15625cat >>conftest.$ac_ext <<_ACEOF
15626/* end confdefs.h. */
15627
15628#include <stdio.h>
15629#include <skey.h>
15630
15631int
15632main ()
15633{
15634
15635 (void)skeychallenge(NULL,"name","",0);
15636
15637 ;
15638 return 0;
15639}
15640_ACEOF
15641rm -f conftest.$ac_objext
15642if { (ac_try="$ac_compile"
15643case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15646esac
15647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_compile") 2>conftest.er1
15649 ac_status=$?
15650 grep -v '^ *+' conftest.er1 >conftest.err
15651 rm -f conftest.er1
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } && {
15655 test -z "$ac_c_werror_flag" ||
15656 test ! -s conftest.err
15657 } && test -s conftest.$ac_objext; then
15658
15659 { echo "$as_me:$LINENO: result: yes" >&5
15660echo "${ECHO_T}yes" >&6; }
15661
15662cat >>confdefs.h <<\_ACEOF
15663#define SKEYCHALLENGE_4ARG 1
15664_ACEOF
15665
15666else
15667 echo "$as_me: failed program was:" >&5
15668sed 's/^/| /' conftest.$ac_ext >&5
15669
15670
15671 { echo "$as_me:$LINENO: result: no" >&5
15672echo "${ECHO_T}no" >&6; }
15673
15674fi
15675
15676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15677 fi
15678
15679
15680fi
15681
15682
15683# Check whether user wants to use ldns
15684LDNS_MSG="no"
15685
15686# Check whether --with-ldns was given.
15687if test "${with_ldns+set}" = set; then
15688 withval=$with_ldns;
15689 if test "x$withval" != "xno" ; then
15690
15691 if test "x$withval" != "xyes" ; then
15692 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15693 LDFLAGS="$LDFLAGS -L${withval}/lib"
15694 fi
15695
15696
15697cat >>confdefs.h <<\_ACEOF
15698#define HAVE_LDNS 1
15699_ACEOF
15700
15701 LIBS="-lldns $LIBS"
15702 LDNS_MSG="yes"
15703
15704 { echo "$as_me:$LINENO: checking for ldns support" >&5
15705echo $ECHO_N "checking for ldns support... $ECHO_C" >&6; }
15706 cat >conftest.$ac_ext <<_ACEOF
15707/* confdefs.h. */
15708_ACEOF
15709cat confdefs.h >>conftest.$ac_ext
15710cat >>conftest.$ac_ext <<_ACEOF
15711/* end confdefs.h. */
15712
15713#include <stdio.h>
15714#include <stdlib.h>
15715#include <stdint.h>
15716#include <ldns/ldns.h>
15717int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); }
15718
15719
15720_ACEOF
15721rm -f conftest.$ac_objext conftest$ac_exeext
15722if { (ac_try="$ac_link"
15723case "(($ac_try" in
15724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725 *) ac_try_echo=$ac_try;;
15726esac
15727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15728 (eval "$ac_link") 2>conftest.er1
15729 ac_status=$?
15730 grep -v '^ *+' conftest.er1 >conftest.err
15731 rm -f conftest.er1
15732 cat conftest.err >&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); } && {
15735 test -z "$ac_c_werror_flag" ||
15736 test ! -s conftest.err
15737 } && test -s conftest$ac_exeext &&
15738 $as_test_x conftest$ac_exeext; then
15739 { echo "$as_me:$LINENO: result: yes" >&5
15740echo "${ECHO_T}yes" >&6; }
15741else
15742 echo "$as_me: failed program was:" >&5
15743sed 's/^/| /' conftest.$ac_ext >&5
15744
15745
15746 { echo "$as_me:$LINENO: result: no" >&5
15747echo "${ECHO_T}no" >&6; }
15748 { { echo "$as_me:$LINENO: error: ** Incomplete or missing ldns libraries." >&5
15749echo "$as_me: error: ** Incomplete or missing ldns libraries." >&2;}
15750 { (exit 1); exit 1; }; }
15751
15752fi
15753
15754rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15755 conftest$ac_exeext conftest.$ac_ext
15756 fi
15757
15758
15759fi
15760
15761
15762# Check whether user wants libedit support
15763LIBEDIT_MSG="no"
15764
15765# Check whether --with-libedit was given.
15766if test "${with_libedit+set}" = set; then
15767 withval=$with_libedit; if test "x$withval" != "xno" ; then
15768 if test "x$withval" = "xyes" ; then
15769 if test -n "$ac_tool_prefix"; then
15770 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15771set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15774if test "${ac_cv_path_PKGCONFIG+set}" = set; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15776else
15777 case $PKGCONFIG in
15778 [\\/]* | ?:[\\/]*)
15779 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
15780 ;;
15781 *)
15782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15783for as_dir in $PATH
15784do
15785 IFS=$as_save_IFS
15786 test -z "$as_dir" && as_dir=.
15787 for ac_exec_ext in '' $ac_executable_extensions; do
15788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15789 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
15790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15791 break 2
15792 fi
15793done
15794done
15795IFS=$as_save_IFS
15796
15797 ;;
15798esac
15799fi
15800PKGCONFIG=$ac_cv_path_PKGCONFIG
15801if test -n "$PKGCONFIG"; then
15802 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
15803echo "${ECHO_T}$PKGCONFIG" >&6; }
15804else
15805 { echo "$as_me:$LINENO: result: no" >&5
15806echo "${ECHO_T}no" >&6; }
15807fi
15808
15809
15810fi
15811if test -z "$ac_cv_path_PKGCONFIG"; then
15812 ac_pt_PKGCONFIG=$PKGCONFIG
15813 # Extract the first word of "pkg-config", so it can be a program name with args.
15814set dummy pkg-config; ac_word=$2
15815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15817if test "${ac_cv_path_ac_pt_PKGCONFIG+set}" = set; then
15818 echo $ECHO_N "(cached) $ECHO_C" >&6
15819else
15820 case $ac_pt_PKGCONFIG in
15821 [\\/]* | ?:[\\/]*)
15822 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
15823 ;;
15824 *)
15825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15826for as_dir in $PATH
15827do
15828 IFS=$as_save_IFS
15829 test -z "$as_dir" && as_dir=.
15830 for ac_exec_ext in '' $ac_executable_extensions; do
15831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15832 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
15833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15834 break 2
15835 fi
15836done
15837done
15838IFS=$as_save_IFS
15839
15840 ;;
15841esac
15842fi
15843ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
15844if test -n "$ac_pt_PKGCONFIG"; then
15845 { echo "$as_me:$LINENO: result: $ac_pt_PKGCONFIG" >&5
15846echo "${ECHO_T}$ac_pt_PKGCONFIG" >&6; }
15847else
15848 { echo "$as_me:$LINENO: result: no" >&5
15849echo "${ECHO_T}no" >&6; }
15850fi
15851
15852 if test "x$ac_pt_PKGCONFIG" = x; then
15853 PKGCONFIG="no"
15854 else
15855 case $cross_compiling:$ac_tool_warned in
15856yes:)
15857{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15858whose name does not start with the host triplet. If you think this
15859configuration is useful to you, please write to autoconf@gnu.org." >&5
15860echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15861whose name does not start with the host triplet. If you think this
15862configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15863ac_tool_warned=yes ;;
15864esac
15865 PKGCONFIG=$ac_pt_PKGCONFIG
15866 fi
15867else
15868 PKGCONFIG="$ac_cv_path_PKGCONFIG"
15869fi
15870
15871 if test "x$PKGCONFIG" != "xno"; then
15872 { echo "$as_me:$LINENO: checking if $PKGCONFIG knows about libedit" >&5
15873echo $ECHO_N "checking if $PKGCONFIG knows about libedit... $ECHO_C" >&6; }
15874 if "$PKGCONFIG" libedit; then
15875 { echo "$as_me:$LINENO: result: yes" >&5
15876echo "${ECHO_T}yes" >&6; }
15877 use_pkgconfig_for_libedit=yes
15878 else
15879 { echo "$as_me:$LINENO: result: no" >&5
15880echo "${ECHO_T}no" >&6; }
15881 fi
15882 fi
15883 else
15884 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15885 if test -n "${need_dash_r}"; then
15886 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
15887 else
15888 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
15889 fi
15890 fi
15891 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
15892 LIBEDIT=`$PKGCONFIG --libs libedit`
15893 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
15894 else
15895 LIBEDIT="-ledit -lcurses"
15896 fi
15897 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
15898 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
15899echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
15900if test "${ac_cv_lib_edit_el_init+set}" = set; then
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15902else
15903 ac_check_lib_save_LIBS=$LIBS
15904LIBS="-ledit $OTHERLIBS
15905 $LIBS"
15906cat >conftest.$ac_ext <<_ACEOF
15907/* confdefs.h. */
15908_ACEOF
15909cat confdefs.h >>conftest.$ac_ext
15910cat >>conftest.$ac_ext <<_ACEOF
15911/* end confdefs.h. */
15912
15913/* Override any GCC internal prototype to avoid an error.
15914 Use char because int might match the return type of a GCC
15915 builtin and then its argument prototype would still apply. */
15916#ifdef __cplusplus
15917extern "C"
15918#endif
15919char el_init ();
15920int
15921main ()
15922{
15923return el_init ();
15924 ;
15925 return 0;
15926}
15927_ACEOF
15928rm -f conftest.$ac_objext conftest$ac_exeext
15929if { (ac_try="$ac_link"
15930case "(($ac_try" in
15931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15932 *) ac_try_echo=$ac_try;;
15933esac
15934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935 (eval "$ac_link") 2>conftest.er1
15936 ac_status=$?
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } && {
15942 test -z "$ac_c_werror_flag" ||
15943 test ! -s conftest.err
15944 } && test -s conftest$ac_exeext &&
15945 $as_test_x conftest$ac_exeext; then
15946 ac_cv_lib_edit_el_init=yes
15947else
15948 echo "$as_me: failed program was:" >&5
15949sed 's/^/| /' conftest.$ac_ext >&5
15950
15951 ac_cv_lib_edit_el_init=no
15952fi
15953
15954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15955 conftest$ac_exeext conftest.$ac_ext
15956LIBS=$ac_check_lib_save_LIBS
15957fi
15958{ echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
15959echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
15960if test $ac_cv_lib_edit_el_init = yes; then
15961
15962cat >>confdefs.h <<\_ACEOF
15963#define USE_LIBEDIT 1
15964_ACEOF
15965
15966 LIBEDIT_MSG="yes"
15967
15968
15969else
15970 { { echo "$as_me:$LINENO: error: libedit not found" >&5
15971echo "$as_me: error: libedit not found" >&2;}
15972 { (exit 1); exit 1; }; }
15973fi
15974
15975 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
15976echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
15977 cat >conftest.$ac_ext <<_ACEOF
15978/* confdefs.h. */
15979_ACEOF
15980cat confdefs.h >>conftest.$ac_ext
15981cat >>conftest.$ac_ext <<_ACEOF
15982/* end confdefs.h. */
15983 #include <histedit.h>
15984int
15985main ()
15986{
15987
15988 int i = H_SETSIZE;
15989 el_init("", NULL, NULL, NULL);
15990 exit(0);
15991
15992 ;
15993 return 0;
15994}
15995_ACEOF
15996rm -f conftest.$ac_objext
15997if { (ac_try="$ac_compile"
15998case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16001esac
16002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003 (eval "$ac_compile") 2>conftest.er1
16004 ac_status=$?
16005 grep -v '^ *+' conftest.er1 >conftest.err
16006 rm -f conftest.er1
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } && {
16010 test -z "$ac_c_werror_flag" ||
16011 test ! -s conftest.err
16012 } && test -s conftest.$ac_objext; then
16013 { echo "$as_me:$LINENO: result: yes" >&5
16014echo "${ECHO_T}yes" >&6; }
16015else
16016 echo "$as_me: failed program was:" >&5
16017sed 's/^/| /' conftest.$ac_ext >&5
16018
16019 { echo "$as_me:$LINENO: result: no" >&5
16020echo "${ECHO_T}no" >&6; }
16021 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
16022echo "$as_me: error: libedit version is not compatible" >&2;}
16023 { (exit 1); exit 1; }; }
16024
16025fi
16026
16027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16028 fi
16029
16030fi
16031
16032
16033AUDIT_MODULE=none
16034
16035# Check whether --with-audit was given.
16036if test "${with_audit+set}" = set; then
16037 withval=$with_audit;
16038 { echo "$as_me:$LINENO: checking for supported audit module" >&5
16039echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
16040 case "$withval" in
16041 bsm)
16042 { echo "$as_me:$LINENO: result: bsm" >&5
16043echo "${ECHO_T}bsm" >&6; }
16044 AUDIT_MODULE=bsm
16045
16046for ac_header in bsm/audit.h
16047do
16048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16049{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16052 echo $ECHO_N "(cached) $ECHO_C" >&6
16053else
16054 cat >conftest.$ac_ext <<_ACEOF
16055/* confdefs.h. */
16056_ACEOF
16057cat confdefs.h >>conftest.$ac_ext
16058cat >>conftest.$ac_ext <<_ACEOF
16059/* end confdefs.h. */
16060
16061#ifdef HAVE_TIME_H
16062# include <time.h>
16063#endif
16064
16065
16066
16067#include <$ac_header>
16068_ACEOF
16069rm -f conftest.$ac_objext
16070if { (ac_try="$ac_compile"
16071case "(($ac_try" in
16072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073 *) ac_try_echo=$ac_try;;
16074esac
16075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076 (eval "$ac_compile") 2>conftest.er1
16077 ac_status=$?
16078 grep -v '^ *+' conftest.er1 >conftest.err
16079 rm -f conftest.er1
16080 cat conftest.err >&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } && {
16083 test -z "$ac_c_werror_flag" ||
16084 test ! -s conftest.err
16085 } && test -s conftest.$ac_objext; then
16086 eval "$as_ac_Header=yes"
16087else
16088 echo "$as_me: failed program was:" >&5
16089sed 's/^/| /' conftest.$ac_ext >&5
16090
16091 eval "$as_ac_Header=no"
16092fi
16093
16094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16095fi
16096ac_res=`eval echo '${'$as_ac_Header'}'`
16097 { echo "$as_me:$LINENO: result: $ac_res" >&5
16098echo "${ECHO_T}$ac_res" >&6; }
16099if test `eval echo '${'$as_ac_Header'}'` = yes; then
16100 cat >>confdefs.h <<_ACEOF
16101#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16102_ACEOF
16103
16104else
16105 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
16106echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
16107 { (exit 1); exit 1; }; }
16108fi
16109
16110done
16111
16112
16113{ echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
16114echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
16115if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16117else
16118 ac_check_lib_save_LIBS=$LIBS
16119LIBS="-lbsm $LIBS"
16120cat >conftest.$ac_ext <<_ACEOF
16121/* confdefs.h. */
16122_ACEOF
16123cat confdefs.h >>conftest.$ac_ext
16124cat >>conftest.$ac_ext <<_ACEOF
16125/* end confdefs.h. */
16126
16127/* Override any GCC internal prototype to avoid an error.
16128 Use char because int might match the return type of a GCC
16129 builtin and then its argument prototype would still apply. */
16130#ifdef __cplusplus
16131extern "C"
16132#endif
16133char getaudit ();
16134int
16135main ()
16136{
16137return getaudit ();
16138 ;
16139 return 0;
16140}
16141_ACEOF
16142rm -f conftest.$ac_objext conftest$ac_exeext
16143if { (ac_try="$ac_link"
16144case "(($ac_try" in
16145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146 *) ac_try_echo=$ac_try;;
16147esac
16148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16149 (eval "$ac_link") 2>conftest.er1
16150 ac_status=$?
16151 grep -v '^ *+' conftest.er1 >conftest.err
16152 rm -f conftest.er1
16153 cat conftest.err >&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } && {
16156 test -z "$ac_c_werror_flag" ||
16157 test ! -s conftest.err
16158 } && test -s conftest$ac_exeext &&
16159 $as_test_x conftest$ac_exeext; then
16160 ac_cv_lib_bsm_getaudit=yes
16161else
16162 echo "$as_me: failed program was:" >&5
16163sed 's/^/| /' conftest.$ac_ext >&5
16164
16165 ac_cv_lib_bsm_getaudit=no
16166fi
16167
16168rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16169 conftest$ac_exeext conftest.$ac_ext
16170LIBS=$ac_check_lib_save_LIBS
16171fi
16172{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
16173echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
16174if test $ac_cv_lib_bsm_getaudit = yes; then
16175 cat >>confdefs.h <<_ACEOF
16176#define HAVE_LIBBSM 1
16177_ACEOF
16178
16179 LIBS="-lbsm $LIBS"
16180
16181else
16182 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
16183echo "$as_me: error: BSM enabled and required library not found" >&2;}
16184 { (exit 1); exit 1; }; }
16185fi
16186
16187
16188for ac_func in getaudit
16189do
16190as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16191{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16192echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16193if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16194 echo $ECHO_N "(cached) $ECHO_C" >&6
16195else
16196 cat >conftest.$ac_ext <<_ACEOF
16197/* confdefs.h. */
16198_ACEOF
16199cat confdefs.h >>conftest.$ac_ext
16200cat >>conftest.$ac_ext <<_ACEOF
16201/* end confdefs.h. */
16202/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16204#define $ac_func innocuous_$ac_func
16205
16206/* System header to define __stub macros and hopefully few prototypes,
16207 which can conflict with char $ac_func (); below.
16208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16209 <limits.h> exists even on freestanding compilers. */
16210
16211#ifdef __STDC__
16212# include <limits.h>
16213#else
16214# include <assert.h>
16215#endif
16216
16217#undef $ac_func
16218
16219/* Override any GCC internal prototype to avoid an error.
16220 Use char because int might match the return type of a GCC
16221 builtin and then its argument prototype would still apply. */
16222#ifdef __cplusplus
16223extern "C"
16224#endif
16225char $ac_func ();
16226/* The GNU C library defines this for functions which it implements
16227 to always fail with ENOSYS. Some functions are actually named
16228 something starting with __ and the normal name is an alias. */
16229#if defined __stub_$ac_func || defined __stub___$ac_func
16230choke me
16231#endif
16232
16233int
16234main ()
16235{
16236return $ac_func ();
16237 ;
16238 return 0;
16239}
16240_ACEOF
16241rm -f conftest.$ac_objext conftest$ac_exeext
16242if { (ac_try="$ac_link"
16243case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16246esac
16247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_link") 2>conftest.er1
16249 ac_status=$?
16250 grep -v '^ *+' conftest.er1 >conftest.err
16251 rm -f conftest.er1
16252 cat conftest.err >&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } && {
16255 test -z "$ac_c_werror_flag" ||
16256 test ! -s conftest.err
16257 } && test -s conftest$ac_exeext &&
16258 $as_test_x conftest$ac_exeext; then
16259 eval "$as_ac_var=yes"
16260else
16261 echo "$as_me: failed program was:" >&5
16262sed 's/^/| /' conftest.$ac_ext >&5
16263
16264 eval "$as_ac_var=no"
16265fi
16266
16267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16268 conftest$ac_exeext conftest.$ac_ext
16269fi
16270ac_res=`eval echo '${'$as_ac_var'}'`
16271 { echo "$as_me:$LINENO: result: $ac_res" >&5
16272echo "${ECHO_T}$ac_res" >&6; }
16273if test `eval echo '${'$as_ac_var'}'` = yes; then
16274 cat >>confdefs.h <<_ACEOF
16275#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16276_ACEOF
16277
16278else
16279 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
16280echo "$as_me: error: BSM enabled and required function not found" >&2;}
16281 { (exit 1); exit 1; }; }
16282fi
16283done
16284
16285 # These are optional
16286
16287
16288for ac_func in getaudit_addr aug_get_machine
16289do
16290as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16291{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16292echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16293if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16294 echo $ECHO_N "(cached) $ECHO_C" >&6
16295else
16296 cat >conftest.$ac_ext <<_ACEOF
16297/* confdefs.h. */
16298_ACEOF
16299cat confdefs.h >>conftest.$ac_ext
16300cat >>conftest.$ac_ext <<_ACEOF
16301/* end confdefs.h. */
16302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16304#define $ac_func innocuous_$ac_func
16305
16306/* System header to define __stub macros and hopefully few prototypes,
16307 which can conflict with char $ac_func (); below.
16308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16309 <limits.h> exists even on freestanding compilers. */
16310
16311#ifdef __STDC__
16312# include <limits.h>
16313#else
16314# include <assert.h>
16315#endif
16316
16317#undef $ac_func
16318
16319/* Override any GCC internal prototype to avoid an error.
16320 Use char because int might match the return type of a GCC
16321 builtin and then its argument prototype would still apply. */
16322#ifdef __cplusplus
16323extern "C"
16324#endif
16325char $ac_func ();
16326/* The GNU C library defines this for functions which it implements
16327 to always fail with ENOSYS. Some functions are actually named
16328 something starting with __ and the normal name is an alias. */
16329#if defined __stub_$ac_func || defined __stub___$ac_func
16330choke me
16331#endif
16332
16333int
16334main ()
16335{
16336return $ac_func ();
16337 ;
16338 return 0;
16339}
16340_ACEOF
16341rm -f conftest.$ac_objext conftest$ac_exeext
16342if { (ac_try="$ac_link"
16343case "(($ac_try" in
16344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16345 *) ac_try_echo=$ac_try;;
16346esac
16347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16348 (eval "$ac_link") 2>conftest.er1
16349 ac_status=$?
16350 grep -v '^ *+' conftest.er1 >conftest.err
16351 rm -f conftest.er1
16352 cat conftest.err >&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); } && {
16355 test -z "$ac_c_werror_flag" ||
16356 test ! -s conftest.err
16357 } && test -s conftest$ac_exeext &&
16358 $as_test_x conftest$ac_exeext; then
16359 eval "$as_ac_var=yes"
16360else
16361 echo "$as_me: failed program was:" >&5
16362sed 's/^/| /' conftest.$ac_ext >&5
16363
16364 eval "$as_ac_var=no"
16365fi
16366
16367rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16368 conftest$ac_exeext conftest.$ac_ext
16369fi
16370ac_res=`eval echo '${'$as_ac_var'}'`
16371 { echo "$as_me:$LINENO: result: $ac_res" >&5
16372echo "${ECHO_T}$ac_res" >&6; }
16373if test `eval echo '${'$as_ac_var'}'` = yes; then
16374 cat >>confdefs.h <<_ACEOF
16375#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16376_ACEOF
16377
16378fi
16379done
16380
16381
16382cat >>confdefs.h <<\_ACEOF
16383#define USE_BSM_AUDIT 1
16384_ACEOF
16385
16386 if test "$sol2ver" -ge 11; then
16387 SSHDLIBS="$SSHDLIBS -lscf"
16388
16389cat >>confdefs.h <<\_ACEOF
16390#define BROKEN_BSM_API 1
16391_ACEOF
16392
16393 fi
16394 ;;
16395 linux)
16396 { echo "$as_me:$LINENO: result: linux" >&5
16397echo "${ECHO_T}linux" >&6; }
16398 AUDIT_MODULE=linux
16399
16400for ac_header in libaudit.h
16401do
16402as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16406if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16407 echo $ECHO_N "(cached) $ECHO_C" >&6
16408fi
16409ac_res=`eval echo '${'$as_ac_Header'}'`
16410 { echo "$as_me:$LINENO: result: $ac_res" >&5
16411echo "${ECHO_T}$ac_res" >&6; }
16412else
16413 # Is the header compilable?
16414{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16415echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16416cat >conftest.$ac_ext <<_ACEOF
16417/* confdefs.h. */
16418_ACEOF
16419cat confdefs.h >>conftest.$ac_ext
16420cat >>conftest.$ac_ext <<_ACEOF
16421/* end confdefs.h. */
16422$ac_includes_default
16423#include <$ac_header>
16424_ACEOF
16425rm -f conftest.$ac_objext
16426if { (ac_try="$ac_compile"
16427case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16430esac
16431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432 (eval "$ac_compile") 2>conftest.er1
16433 ac_status=$?
16434 grep -v '^ *+' conftest.er1 >conftest.err
16435 rm -f conftest.er1
16436 cat conftest.err >&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } && {
16439 test -z "$ac_c_werror_flag" ||
16440 test ! -s conftest.err
16441 } && test -s conftest.$ac_objext; then
16442 ac_header_compiler=yes
16443else
16444 echo "$as_me: failed program was:" >&5
16445sed 's/^/| /' conftest.$ac_ext >&5
16446
16447 ac_header_compiler=no
16448fi
16449
16450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16451{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16452echo "${ECHO_T}$ac_header_compiler" >&6; }
16453
16454# Is the header present?
16455{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16456echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16457cat >conftest.$ac_ext <<_ACEOF
16458/* confdefs.h. */
16459_ACEOF
16460cat confdefs.h >>conftest.$ac_ext
16461cat >>conftest.$ac_ext <<_ACEOF
16462/* end confdefs.h. */
16463#include <$ac_header>
16464_ACEOF
16465if { (ac_try="$ac_cpp conftest.$ac_ext"
16466case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16469esac
16470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16472 ac_status=$?
16473 grep -v '^ *+' conftest.er1 >conftest.err
16474 rm -f conftest.er1
16475 cat conftest.err >&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } >/dev/null && {
16478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16479 test ! -s conftest.err
16480 }; then
16481 ac_header_preproc=yes
16482else
16483 echo "$as_me: failed program was:" >&5
16484sed 's/^/| /' conftest.$ac_ext >&5
16485
16486 ac_header_preproc=no
16487fi
16488
16489rm -f conftest.err conftest.$ac_ext
16490{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16491echo "${ECHO_T}$ac_header_preproc" >&6; }
16492
16493# So? What about this header?
16494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16495 yes:no: )
16496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16497echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16499echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16500 ac_header_preproc=yes
16501 ;;
16502 no:yes:* )
16503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16504echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16506echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16508echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16510echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16512echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16514echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16515 ( cat <<\_ASBOX
16516## ------------------------------------------- ##
16517## Report this to openssh-unix-dev@mindrot.org ##
16518## ------------------------------------------- ##
16519_ASBOX
16520 ) | sed "s/^/$as_me: WARNING: /" >&2
16521 ;;
16522esac
16523{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16525if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16526 echo $ECHO_N "(cached) $ECHO_C" >&6
16527else
16528 eval "$as_ac_Header=\$ac_header_preproc"
16529fi
16530ac_res=`eval echo '${'$as_ac_Header'}'`
16531 { echo "$as_me:$LINENO: result: $ac_res" >&5
16532echo "${ECHO_T}$ac_res" >&6; }
16533
16534fi
16535if test `eval echo '${'$as_ac_Header'}'` = yes; then
16536 cat >>confdefs.h <<_ACEOF
16537#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16538_ACEOF
16539
16540fi
16541
16542done
16543
16544 SSHDLIBS="$SSHDLIBS -laudit"
16545
16546cat >>confdefs.h <<\_ACEOF
16547#define USE_LINUX_AUDIT 1
16548_ACEOF
16549
16550 ;;
16551 debug)
16552 AUDIT_MODULE=debug
16553 { echo "$as_me:$LINENO: result: debug" >&5
16554echo "${ECHO_T}debug" >&6; }
16555
16556cat >>confdefs.h <<\_ACEOF
16557#define SSH_AUDIT_EVENTS 1
16558_ACEOF
16559
16560 ;;
16561 no)
16562 { echo "$as_me:$LINENO: result: no" >&5
16563echo "${ECHO_T}no" >&6; }
16564 ;;
16565 *)
16566 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
16567echo "$as_me: error: Unknown audit module $withval" >&2;}
16568 { (exit 1); exit 1; }; }
16569 ;;
16570 esac
16571
16572fi
16573
16574
16575
16576# Check whether --with-pie was given.
16577if test "${with_pie+set}" = set; then
16578 withval=$with_pie;
16579 if test "x$withval" = "xno"; then
16580 use_pie=no
16581 fi
16582 if test "x$withval" = "xyes"; then
16583 use_pie=yes
16584 fi
16585
16586
16587fi
16588
16589if test "x$use_pie" = "x"; then
16590 use_pie=no
16591fi
16592if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then
16593 # Turn off automatic PIE when toolchain hardening is off.
16594 use_pie=no
16595fi
16596if test "x$use_pie" = "xauto"; then
16597 # Automatic PIE requires gcc >= 4.x
16598 { echo "$as_me:$LINENO: checking for gcc >= 4.x" >&5
16599echo $ECHO_N "checking for gcc >= 4.x... $ECHO_C" >&6; }
16600 cat >conftest.$ac_ext <<_ACEOF
16601/* confdefs.h. */
16602_ACEOF
16603cat confdefs.h >>conftest.$ac_ext
16604cat >>conftest.$ac_ext <<_ACEOF
16605/* end confdefs.h. */
16606
16607#if !defined(__GNUC__) || __GNUC__ < 4
16608#error gcc is too old
16609#endif
16610
16611_ACEOF
16612rm -f conftest.$ac_objext
16613if { (ac_try="$ac_compile"
16614case "(($ac_try" in
16615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16616 *) ac_try_echo=$ac_try;;
16617esac
16618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16619 (eval "$ac_compile") 2>conftest.er1
16620 ac_status=$?
16621 grep -v '^ *+' conftest.er1 >conftest.err
16622 rm -f conftest.er1
16623 cat conftest.err >&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } && {
16626 test -z "$ac_c_werror_flag" ||
16627 test ! -s conftest.err
16628 } && test -s conftest.$ac_objext; then
16629 { echo "$as_me:$LINENO: result: yes" >&5
16630echo "${ECHO_T}yes" >&6; }
16631else
16632 echo "$as_me: failed program was:" >&5
16633sed 's/^/| /' conftest.$ac_ext >&5
16634
16635 { echo "$as_me:$LINENO: result: no" >&5
16636echo "${ECHO_T}no" >&6; }
16637 use_pie=no
16638
16639fi
16640
16641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16642fi
16643if test "x$use_pie" != "xno"; then
16644 SAVED_CFLAGS="$CFLAGS"
16645 SAVED_LDFLAGS="$LDFLAGS"
16646 {
16647 { echo "$as_me:$LINENO: checking if $CC supports compile flag -fPIE" >&5
16648echo $ECHO_N "checking if $CC supports compile flag -fPIE... $ECHO_C" >&6; }
16649 saved_CFLAGS="$CFLAGS"
16650 CFLAGS="$CFLAGS $WERROR -fPIE"
16651 _define_flag=""
16652 test "x$_define_flag" = "x" && _define_flag="-fPIE"
16653 cat >conftest.$ac_ext <<_ACEOF
16654/* confdefs.h. */
16655_ACEOF
16656cat confdefs.h >>conftest.$ac_ext
16657cat >>conftest.$ac_ext <<_ACEOF
16658/* end confdefs.h. */
16659
16660#include <stdlib.h>
16661#include <stdio.h>
16662int main(int argc, char **argv) {
16663 /* Some math to catch -ftrapv problems in the toolchain */
16664 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
16665 float l = i * 2.1;
16666 double m = l / 0.5;
16667 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
16668 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
16669 exit(0);
16670}
16671
16672_ACEOF
16673rm -f conftest.$ac_objext
16674if { (ac_try="$ac_compile"
16675case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678esac
16679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_compile") 2>conftest.er1
16681 ac_status=$?
16682 grep -v '^ *+' conftest.er1 >conftest.err
16683 rm -f conftest.er1
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } && {
16687 test -z "$ac_c_werror_flag" ||
16688 test ! -s conftest.err
16689 } && test -s conftest.$ac_objext; then
16690
16691if `grep -i "unrecognized option" conftest.err >/dev/null`
16692then
16693 { echo "$as_me:$LINENO: result: no" >&5
16694echo "${ECHO_T}no" >&6; }
16695 CFLAGS="$saved_CFLAGS"
16696else
16697 { echo "$as_me:$LINENO: result: yes" >&5
16698echo "${ECHO_T}yes" >&6; }
16699 CFLAGS="$saved_CFLAGS $_define_flag"
16700fi
16701else
16702 echo "$as_me: failed program was:" >&5
16703sed 's/^/| /' conftest.$ac_ext >&5
16704
16705 { echo "$as_me:$LINENO: result: no" >&5
16706echo "${ECHO_T}no" >&6; }
16707 CFLAGS="$saved_CFLAGS"
16708
16709fi
16710
16711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16712}
16713 {
16714 { echo "$as_me:$LINENO: checking if $LD supports link flag -pie" >&5
16715echo $ECHO_N "checking if $LD supports link flag -pie... $ECHO_C" >&6; }
16716 saved_LDFLAGS="$LDFLAGS"
16717 LDFLAGS="$LDFLAGS $WERROR -pie"
16718 _define_flag=""
16719 test "x$_define_flag" = "x" && _define_flag="-pie"
16720 cat >conftest.$ac_ext <<_ACEOF
16721/* confdefs.h. */
16722_ACEOF
16723cat confdefs.h >>conftest.$ac_ext
16724cat >>conftest.$ac_ext <<_ACEOF
16725/* end confdefs.h. */
16726
16727#include <stdlib.h>
16728#include <stdio.h>
16729int main(int argc, char **argv) {
16730 /* Some math to catch -ftrapv problems in the toolchain */
16731 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
16732 float l = i * 2.1;
16733 double m = l / 0.5;
16734 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
16735 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
16736 exit(0);
16737}
16738
16739_ACEOF
16740rm -f conftest.$ac_objext conftest$ac_exeext
16741if { (ac_try="$ac_link"
16742case "(($ac_try" in
16743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744 *) ac_try_echo=$ac_try;;
16745esac
16746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747 (eval "$ac_link") 2>conftest.er1
16748 ac_status=$?
16749 grep -v '^ *+' conftest.er1 >conftest.err
16750 rm -f conftest.er1
16751 cat conftest.err >&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } && {
16754 test -z "$ac_c_werror_flag" ||
16755 test ! -s conftest.err
16756 } && test -s conftest$ac_exeext &&
16757 $as_test_x conftest$ac_exeext; then
16758 { echo "$as_me:$LINENO: result: yes" >&5
16759echo "${ECHO_T}yes" >&6; }
16760 LDFLAGS="$saved_LDFLAGS $_define_flag"
16761else
16762 echo "$as_me: failed program was:" >&5
16763sed 's/^/| /' conftest.$ac_ext >&5
16764
16765 { echo "$as_me:$LINENO: result: no" >&5
16766echo "${ECHO_T}no" >&6; }
16767 LDFLAGS="$saved_LDFLAGS"
16768
16769fi
16770
16771rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16772 conftest$ac_exeext conftest.$ac_ext
16773}
16774 # We use both -fPIE and -pie or neither.
16775 { echo "$as_me:$LINENO: checking whether both -fPIE and -pie are supported" >&5
16776echo $ECHO_N "checking whether both -fPIE and -pie are supported... $ECHO_C" >&6; }
16777 if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \
16778 echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then
16779 { echo "$as_me:$LINENO: result: yes" >&5
16780echo "${ECHO_T}yes" >&6; }
16781 else
16782 { echo "$as_me:$LINENO: result: no" >&5
16783echo "${ECHO_T}no" >&6; }
16784 CFLAGS="$SAVED_CFLAGS"
16785 LDFLAGS="$SAVED_LDFLAGS"
16786 fi
16787fi
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898for ac_func in \
16899 Blowfish_initstate \
16900 Blowfish_expandstate \
16901 Blowfish_expand0state \
16902 Blowfish_stream2word \
16903 asprintf \
16904 b64_ntop \
16905 __b64_ntop \
16906 b64_pton \
16907 __b64_pton \
16908 bcopy \
16909 bcrypt_pbkdf \
16910 bindresvport_sa \
16911 blf_enc \
16912 cap_rights_limit \
16913 clock \
16914 closefrom \
16915 dirfd \
16916 endgrent \
16917 explicit_bzero \
16918 fchmod \
16919 fchown \
16920 freeaddrinfo \
16921 fstatfs \
16922 fstatvfs \
16923 futimes \
16924 getaddrinfo \
16925 getcwd \
16926 getgrouplist \
16927 getnameinfo \
16928 getopt \
16929 getpeereid \
16930 getpeerucred \
16931 getpgid \
16932 getpgrp \
16933 _getpty \
16934 getrlimit \
16935 getttyent \
16936 glob \
16937 group_from_gid \
16938 inet_aton \
16939 inet_ntoa \
16940 inet_ntop \
16941 innetgr \
16942 login_getcapbool \
16943 mblen \
16944 md5_crypt \
16945 memmove \
16946 memset_s \
16947 mkdtemp \
16948 mmap \
16949 ngetaddrinfo \
16950 nsleep \
16951 ogetaddrinfo \
16952 openlog_r \
16953 pledge \
16954 poll \
16955 prctl \
16956 pstat \
16957 readpassphrase \
16958 reallocarray \
16959 recvmsg \
16960 rresvport_af \
16961 sendmsg \
16962 setdtablesize \
16963 setegid \
16964 setenv \
16965 seteuid \
16966 setgroupent \
16967 setgroups \
16968 setlinebuf \
16969 setlogin \
16970 setpassent\
16971 setpcred \
16972 setproctitle \
16973 setregid \
16974 setreuid \
16975 setrlimit \
16976 setsid \
16977 setvbuf \
16978 sigaction \
16979 sigvec \
16980 snprintf \
16981 socketpair \
16982 statfs \
16983 statvfs \
16984 strdup \
16985 strerror \
16986 strlcat \
16987 strlcpy \
16988 strmode \
16989 strnlen \
16990 strnvis \
16991 strptime \
16992 strtonum \
16993 strtoll \
16994 strtoul \
16995 strtoull \
16996 swap32 \
16997 sysconf \
16998 tcgetpgrp \
16999 timingsafe_bcmp \
17000 truncate \
17001 unsetenv \
17002 updwtmpx \
17003 user_from_uid \
17004 usleep \
17005 vasprintf \
17006 vsnprintf \
17007 waitpid \
17008
17009do
17010as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17011{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17012echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17013if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17015else
17016 cat >conftest.$ac_ext <<_ACEOF
17017/* confdefs.h. */
17018_ACEOF
17019cat confdefs.h >>conftest.$ac_ext
17020cat >>conftest.$ac_ext <<_ACEOF
17021/* end confdefs.h. */
17022/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17024#define $ac_func innocuous_$ac_func
17025
17026/* System header to define __stub macros and hopefully few prototypes,
17027 which can conflict with char $ac_func (); below.
17028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17029 <limits.h> exists even on freestanding compilers. */
17030
17031#ifdef __STDC__
17032# include <limits.h>
17033#else
17034# include <assert.h>
17035#endif
17036
17037#undef $ac_func
17038
17039/* Override any GCC internal prototype to avoid an error.
17040 Use char because int might match the return type of a GCC
17041 builtin and then its argument prototype would still apply. */
17042#ifdef __cplusplus
17043extern "C"
17044#endif
17045char $ac_func ();
17046/* The GNU C library defines this for functions which it implements
17047 to always fail with ENOSYS. Some functions are actually named
17048 something starting with __ and the normal name is an alias. */
17049#if defined __stub_$ac_func || defined __stub___$ac_func
17050choke me
17051#endif
17052
17053int
17054main ()
17055{
17056return $ac_func ();
17057 ;
17058 return 0;
17059}
17060_ACEOF
17061rm -f conftest.$ac_objext conftest$ac_exeext
17062if { (ac_try="$ac_link"
17063case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17066esac
17067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068 (eval "$ac_link") 2>conftest.er1
17069 ac_status=$?
17070 grep -v '^ *+' conftest.er1 >conftest.err
17071 rm -f conftest.er1
17072 cat conftest.err >&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } && {
17075 test -z "$ac_c_werror_flag" ||
17076 test ! -s conftest.err
17077 } && test -s conftest$ac_exeext &&
17078 $as_test_x conftest$ac_exeext; then
17079 eval "$as_ac_var=yes"
17080else
17081 echo "$as_me: failed program was:" >&5
17082sed 's/^/| /' conftest.$ac_ext >&5
17083
17084 eval "$as_ac_var=no"
17085fi
17086
17087rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17088 conftest$ac_exeext conftest.$ac_ext
17089fi
17090ac_res=`eval echo '${'$as_ac_var'}'`
17091 { echo "$as_me:$LINENO: result: $ac_res" >&5
17092echo "${ECHO_T}$ac_res" >&6; }
17093if test `eval echo '${'$as_ac_var'}'` = yes; then
17094 cat >>confdefs.h <<_ACEOF
17095#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17096_ACEOF
17097
17098fi
17099done
17100
17101
17102cat >conftest.$ac_ext <<_ACEOF
17103/* confdefs.h. */
17104_ACEOF
17105cat confdefs.h >>conftest.$ac_ext
17106cat >>conftest.$ac_ext <<_ACEOF
17107/* end confdefs.h. */
17108 #include <ctype.h>
17109int
17110main ()
17111{
17112 return (isblank('a'));
17113 ;
17114 return 0;
17115}
17116_ACEOF
17117rm -f conftest.$ac_objext conftest$ac_exeext
17118if { (ac_try="$ac_link"
17119case "(($ac_try" in
17120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121 *) ac_try_echo=$ac_try;;
17122esac
17123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17124 (eval "$ac_link") 2>conftest.er1
17125 ac_status=$?
17126 grep -v '^ *+' conftest.er1 >conftest.err
17127 rm -f conftest.er1
17128 cat conftest.err >&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } && {
17131 test -z "$ac_c_werror_flag" ||
17132 test ! -s conftest.err
17133 } && test -s conftest$ac_exeext &&
17134 $as_test_x conftest$ac_exeext; then
17135
17136cat >>confdefs.h <<\_ACEOF
17137#define HAVE_ISBLANK 1
17138_ACEOF
17139
17140
17141else
17142 echo "$as_me: failed program was:" >&5
17143sed 's/^/| /' conftest.$ac_ext >&5
17144
17145
17146fi
17147
17148rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17149 conftest$ac_exeext conftest.$ac_ext
17150
17151# PKCS11 depends on OpenSSL.
17152if test "x$openssl" = "xyes" ; then
17153 # PKCS#11 support requires dlopen() and co
17154 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
17155echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
17156if test "${ac_cv_search_dlopen+set}" = set; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17158else
17159 ac_func_search_save_LIBS=$LIBS
17160cat >conftest.$ac_ext <<_ACEOF
17161/* confdefs.h. */
17162_ACEOF
17163cat confdefs.h >>conftest.$ac_ext
17164cat >>conftest.$ac_ext <<_ACEOF
17165/* end confdefs.h. */
17166
17167/* Override any GCC internal prototype to avoid an error.
17168 Use char because int might match the return type of a GCC
17169 builtin and then its argument prototype would still apply. */
17170#ifdef __cplusplus
17171extern "C"
17172#endif
17173char dlopen ();
17174int
17175main ()
17176{
17177return dlopen ();
17178 ;
17179 return 0;
17180}
17181_ACEOF
17182for ac_lib in '' dl; do
17183 if test -z "$ac_lib"; then
17184 ac_res="none required"
17185 else
17186 ac_res=-l$ac_lib
17187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17188 fi
17189 rm -f conftest.$ac_objext conftest$ac_exeext
17190if { (ac_try="$ac_link"
17191case "(($ac_try" in
17192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193 *) ac_try_echo=$ac_try;;
17194esac
17195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196 (eval "$ac_link") 2>conftest.er1
17197 ac_status=$?
17198 grep -v '^ *+' conftest.er1 >conftest.err
17199 rm -f conftest.er1
17200 cat conftest.err >&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } && {
17203 test -z "$ac_c_werror_flag" ||
17204 test ! -s conftest.err
17205 } && test -s conftest$ac_exeext &&
17206 $as_test_x conftest$ac_exeext; then
17207 ac_cv_search_dlopen=$ac_res
17208else
17209 echo "$as_me: failed program was:" >&5
17210sed 's/^/| /' conftest.$ac_ext >&5
17211
17212
17213fi
17214
17215rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17216 conftest$ac_exeext
17217 if test "${ac_cv_search_dlopen+set}" = set; then
17218 break
17219fi
17220done
17221if test "${ac_cv_search_dlopen+set}" = set; then
17222 :
17223else
17224 ac_cv_search_dlopen=no
17225fi
17226rm conftest.$ac_ext
17227LIBS=$ac_func_search_save_LIBS
17228fi
17229{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
17230echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
17231ac_res=$ac_cv_search_dlopen
17232if test "$ac_res" != no; then
17233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17234
17235cat >>confdefs.h <<\_ACEOF
17236#define ENABLE_PKCS11
17237_ACEOF
17238
17239
17240fi
17241
17242fi
17243
17244# IRIX has a const char return value for gai_strerror()
17245
17246for ac_func in gai_strerror
17247do
17248as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17249{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17250echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17251if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17252 echo $ECHO_N "(cached) $ECHO_C" >&6
17253else
17254 cat >conftest.$ac_ext <<_ACEOF
17255/* confdefs.h. */
17256_ACEOF
17257cat confdefs.h >>conftest.$ac_ext
17258cat >>conftest.$ac_ext <<_ACEOF
17259/* end confdefs.h. */
17260/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17262#define $ac_func innocuous_$ac_func
17263
17264/* System header to define __stub macros and hopefully few prototypes,
17265 which can conflict with char $ac_func (); below.
17266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17267 <limits.h> exists even on freestanding compilers. */
17268
17269#ifdef __STDC__
17270# include <limits.h>
17271#else
17272# include <assert.h>
17273#endif
17274
17275#undef $ac_func
17276
17277/* Override any GCC internal prototype to avoid an error.
17278 Use char because int might match the return type of a GCC
17279 builtin and then its argument prototype would still apply. */
17280#ifdef __cplusplus
17281extern "C"
17282#endif
17283char $ac_func ();
17284/* The GNU C library defines this for functions which it implements
17285 to always fail with ENOSYS. Some functions are actually named
17286 something starting with __ and the normal name is an alias. */
17287#if defined __stub_$ac_func || defined __stub___$ac_func
17288choke me
17289#endif
17290
17291int
17292main ()
17293{
17294return $ac_func ();
17295 ;
17296 return 0;
17297}
17298_ACEOF
17299rm -f conftest.$ac_objext conftest$ac_exeext
17300if { (ac_try="$ac_link"
17301case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17304esac
17305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_link") 2>conftest.er1
17307 ac_status=$?
17308 grep -v '^ *+' conftest.er1 >conftest.err
17309 rm -f conftest.er1
17310 cat conftest.err >&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } && {
17313 test -z "$ac_c_werror_flag" ||
17314 test ! -s conftest.err
17315 } && test -s conftest$ac_exeext &&
17316 $as_test_x conftest$ac_exeext; then
17317 eval "$as_ac_var=yes"
17318else
17319 echo "$as_me: failed program was:" >&5
17320sed 's/^/| /' conftest.$ac_ext >&5
17321
17322 eval "$as_ac_var=no"
17323fi
17324
17325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17326 conftest$ac_exeext conftest.$ac_ext
17327fi
17328ac_res=`eval echo '${'$as_ac_var'}'`
17329 { echo "$as_me:$LINENO: result: $ac_res" >&5
17330echo "${ECHO_T}$ac_res" >&6; }
17331if test `eval echo '${'$as_ac_var'}'` = yes; then
17332 cat >>confdefs.h <<_ACEOF
17333#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17334_ACEOF
17335
17336 cat >>confdefs.h <<\_ACEOF
17337#define HAVE_GAI_STRERROR 1
17338_ACEOF
17339
17340 cat >conftest.$ac_ext <<_ACEOF
17341/* confdefs.h. */
17342_ACEOF
17343cat confdefs.h >>conftest.$ac_ext
17344cat >>conftest.$ac_ext <<_ACEOF
17345/* end confdefs.h. */
17346
17347#include <sys/types.h>
17348#include <sys/socket.h>
17349#include <netdb.h>
17350
17351const char *gai_strerror(int);
17352
17353int
17354main ()
17355{
17356
17357 char *str;
17358 str = gai_strerror(0);
17359
17360 ;
17361 return 0;
17362}
17363_ACEOF
17364rm -f conftest.$ac_objext
17365if { (ac_try="$ac_compile"
17366case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17369esac
17370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_compile") 2>conftest.er1
17372 ac_status=$?
17373 grep -v '^ *+' conftest.er1 >conftest.err
17374 rm -f conftest.er1
17375 cat conftest.err >&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); } && {
17378 test -z "$ac_c_werror_flag" ||
17379 test ! -s conftest.err
17380 } && test -s conftest.$ac_objext; then
17381
17382
17383cat >>confdefs.h <<\_ACEOF
17384#define HAVE_CONST_GAI_STRERROR_PROTO 1
17385_ACEOF
17386
17387else
17388 echo "$as_me: failed program was:" >&5
17389sed 's/^/| /' conftest.$ac_ext >&5
17390
17391
17392fi
17393
17394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17395fi
17396done
17397
17398
17399{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17400echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17401if test "${ac_cv_search_nanosleep+set}" = set; then
17402 echo $ECHO_N "(cached) $ECHO_C" >&6
17403else
17404 ac_func_search_save_LIBS=$LIBS
17405cat >conftest.$ac_ext <<_ACEOF
17406/* confdefs.h. */
17407_ACEOF
17408cat confdefs.h >>conftest.$ac_ext
17409cat >>conftest.$ac_ext <<_ACEOF
17410/* end confdefs.h. */
17411
17412/* Override any GCC internal prototype to avoid an error.
17413 Use char because int might match the return type of a GCC
17414 builtin and then its argument prototype would still apply. */
17415#ifdef __cplusplus
17416extern "C"
17417#endif
17418char nanosleep ();
17419int
17420main ()
17421{
17422return nanosleep ();
17423 ;
17424 return 0;
17425}
17426_ACEOF
17427for ac_lib in '' rt posix4; do
17428 if test -z "$ac_lib"; then
17429 ac_res="none required"
17430 else
17431 ac_res=-l$ac_lib
17432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17433 fi
17434 rm -f conftest.$ac_objext conftest$ac_exeext
17435if { (ac_try="$ac_link"
17436case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17439esac
17440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441 (eval "$ac_link") 2>conftest.er1
17442 ac_status=$?
17443 grep -v '^ *+' conftest.er1 >conftest.err
17444 rm -f conftest.er1
17445 cat conftest.err >&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } && {
17448 test -z "$ac_c_werror_flag" ||
17449 test ! -s conftest.err
17450 } && test -s conftest$ac_exeext &&
17451 $as_test_x conftest$ac_exeext; then
17452 ac_cv_search_nanosleep=$ac_res
17453else
17454 echo "$as_me: failed program was:" >&5
17455sed 's/^/| /' conftest.$ac_ext >&5
17456
17457
17458fi
17459
17460rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17461 conftest$ac_exeext
17462 if test "${ac_cv_search_nanosleep+set}" = set; then
17463 break
17464fi
17465done
17466if test "${ac_cv_search_nanosleep+set}" = set; then
17467 :
17468else
17469 ac_cv_search_nanosleep=no
17470fi
17471rm conftest.$ac_ext
17472LIBS=$ac_func_search_save_LIBS
17473fi
17474{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17475echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17476ac_res=$ac_cv_search_nanosleep
17477if test "$ac_res" != no; then
17478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17479
17480cat >>confdefs.h <<\_ACEOF
17481#define HAVE_NANOSLEEP 1
17482_ACEOF
17483
17484fi
17485
17486
17487{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
17488echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
17489if test "${ac_cv_search_clock_gettime+set}" = set; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17491else
17492 ac_func_search_save_LIBS=$LIBS
17493cat >conftest.$ac_ext <<_ACEOF
17494/* confdefs.h. */
17495_ACEOF
17496cat confdefs.h >>conftest.$ac_ext
17497cat >>conftest.$ac_ext <<_ACEOF
17498/* end confdefs.h. */
17499
17500/* Override any GCC internal prototype to avoid an error.
17501 Use char because int might match the return type of a GCC
17502 builtin and then its argument prototype would still apply. */
17503#ifdef __cplusplus
17504extern "C"
17505#endif
17506char clock_gettime ();
17507int
17508main ()
17509{
17510return clock_gettime ();
17511 ;
17512 return 0;
17513}
17514_ACEOF
17515for ac_lib in '' rt; do
17516 if test -z "$ac_lib"; then
17517 ac_res="none required"
17518 else
17519 ac_res=-l$ac_lib
17520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17521 fi
17522 rm -f conftest.$ac_objext conftest$ac_exeext
17523if { (ac_try="$ac_link"
17524case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17527esac
17528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_link") 2>conftest.er1
17530 ac_status=$?
17531 grep -v '^ *+' conftest.er1 >conftest.err
17532 rm -f conftest.er1
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } && {
17536 test -z "$ac_c_werror_flag" ||
17537 test ! -s conftest.err
17538 } && test -s conftest$ac_exeext &&
17539 $as_test_x conftest$ac_exeext; then
17540 ac_cv_search_clock_gettime=$ac_res
17541else
17542 echo "$as_me: failed program was:" >&5
17543sed 's/^/| /' conftest.$ac_ext >&5
17544
17545
17546fi
17547
17548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17549 conftest$ac_exeext
17550 if test "${ac_cv_search_clock_gettime+set}" = set; then
17551 break
17552fi
17553done
17554if test "${ac_cv_search_clock_gettime+set}" = set; then
17555 :
17556else
17557 ac_cv_search_clock_gettime=no
17558fi
17559rm conftest.$ac_ext
17560LIBS=$ac_func_search_save_LIBS
17561fi
17562{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
17563echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
17564ac_res=$ac_cv_search_clock_gettime
17565if test "$ac_res" != no; then
17566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17567
17568cat >>confdefs.h <<\_ACEOF
17569#define HAVE_CLOCK_GETTIME 1
17570_ACEOF
17571
17572fi
17573
17574
17575{ echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
17576echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
17577if test "${ac_cv_have_decl_getrusage+set}" = set; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17579else
17580 cat >conftest.$ac_ext <<_ACEOF
17581/* confdefs.h. */
17582_ACEOF
17583cat confdefs.h >>conftest.$ac_ext
17584cat >>conftest.$ac_ext <<_ACEOF
17585/* end confdefs.h. */
17586$ac_includes_default
17587int
17588main ()
17589{
17590#ifndef getrusage
17591 (void) getrusage;
17592#endif
17593
17594 ;
17595 return 0;
17596}
17597_ACEOF
17598rm -f conftest.$ac_objext
17599if { (ac_try="$ac_compile"
17600case "(($ac_try" in
17601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602 *) ac_try_echo=$ac_try;;
17603esac
17604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605 (eval "$ac_compile") 2>conftest.er1
17606 ac_status=$?
17607 grep -v '^ *+' conftest.er1 >conftest.err
17608 rm -f conftest.er1
17609 cat conftest.err >&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } && {
17612 test -z "$ac_c_werror_flag" ||
17613 test ! -s conftest.err
17614 } && test -s conftest.$ac_objext; then
17615 ac_cv_have_decl_getrusage=yes
17616else
17617 echo "$as_me: failed program was:" >&5
17618sed 's/^/| /' conftest.$ac_ext >&5
17619
17620 ac_cv_have_decl_getrusage=no
17621fi
17622
17623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17624fi
17625{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
17626echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
17627if test $ac_cv_have_decl_getrusage = yes; then
17628
17629for ac_func in getrusage
17630do
17631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17632{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17634if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17636else
17637 cat >conftest.$ac_ext <<_ACEOF
17638/* confdefs.h. */
17639_ACEOF
17640cat confdefs.h >>conftest.$ac_ext
17641cat >>conftest.$ac_ext <<_ACEOF
17642/* end confdefs.h. */
17643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17645#define $ac_func innocuous_$ac_func
17646
17647/* System header to define __stub macros and hopefully few prototypes,
17648 which can conflict with char $ac_func (); below.
17649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17650 <limits.h> exists even on freestanding compilers. */
17651
17652#ifdef __STDC__
17653# include <limits.h>
17654#else
17655# include <assert.h>
17656#endif
17657
17658#undef $ac_func
17659
17660/* Override any GCC internal prototype to avoid an error.
17661 Use char because int might match the return type of a GCC
17662 builtin and then its argument prototype would still apply. */
17663#ifdef __cplusplus
17664extern "C"
17665#endif
17666char $ac_func ();
17667/* The GNU C library defines this for functions which it implements
17668 to always fail with ENOSYS. Some functions are actually named
17669 something starting with __ and the normal name is an alias. */
17670#if defined __stub_$ac_func || defined __stub___$ac_func
17671choke me
17672#endif
17673
17674int
17675main ()
17676{
17677return $ac_func ();
17678 ;
17679 return 0;
17680}
17681_ACEOF
17682rm -f conftest.$ac_objext conftest$ac_exeext
17683if { (ac_try="$ac_link"
17684case "(($ac_try" in
17685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686 *) ac_try_echo=$ac_try;;
17687esac
17688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689 (eval "$ac_link") 2>conftest.er1
17690 ac_status=$?
17691 grep -v '^ *+' conftest.er1 >conftest.err
17692 rm -f conftest.er1
17693 cat conftest.err >&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } && {
17696 test -z "$ac_c_werror_flag" ||
17697 test ! -s conftest.err
17698 } && test -s conftest$ac_exeext &&
17699 $as_test_x conftest$ac_exeext; then
17700 eval "$as_ac_var=yes"
17701else
17702 echo "$as_me: failed program was:" >&5
17703sed 's/^/| /' conftest.$ac_ext >&5
17704
17705 eval "$as_ac_var=no"
17706fi
17707
17708rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17709 conftest$ac_exeext conftest.$ac_ext
17710fi
17711ac_res=`eval echo '${'$as_ac_var'}'`
17712 { echo "$as_me:$LINENO: result: $ac_res" >&5
17713echo "${ECHO_T}$ac_res" >&6; }
17714if test `eval echo '${'$as_ac_var'}'` = yes; then
17715 cat >>confdefs.h <<_ACEOF
17716#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17717_ACEOF
17718
17719fi
17720done
17721
17722fi
17723
17724{ echo "$as_me:$LINENO: checking whether strsep is declared" >&5
17725echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
17726if test "${ac_cv_have_decl_strsep+set}" = set; then
17727 echo $ECHO_N "(cached) $ECHO_C" >&6
17728else
17729 cat >conftest.$ac_ext <<_ACEOF
17730/* confdefs.h. */
17731_ACEOF
17732cat confdefs.h >>conftest.$ac_ext
17733cat >>conftest.$ac_ext <<_ACEOF
17734/* end confdefs.h. */
17735
17736#ifdef HAVE_STRING_H
17737# include <string.h>
17738#endif
17739
17740
17741int
17742main ()
17743{
17744#ifndef strsep
17745 (void) strsep;
17746#endif
17747
17748 ;
17749 return 0;
17750}
17751_ACEOF
17752rm -f conftest.$ac_objext
17753if { (ac_try="$ac_compile"
17754case "(($ac_try" in
17755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756 *) ac_try_echo=$ac_try;;
17757esac
17758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759 (eval "$ac_compile") 2>conftest.er1
17760 ac_status=$?
17761 grep -v '^ *+' conftest.er1 >conftest.err
17762 rm -f conftest.er1
17763 cat conftest.err >&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); } && {
17766 test -z "$ac_c_werror_flag" ||
17767 test ! -s conftest.err
17768 } && test -s conftest.$ac_objext; then
17769 ac_cv_have_decl_strsep=yes
17770else
17771 echo "$as_me: failed program was:" >&5
17772sed 's/^/| /' conftest.$ac_ext >&5
17773
17774 ac_cv_have_decl_strsep=no
17775fi
17776
17777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17778fi
17779{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
17780echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
17781if test $ac_cv_have_decl_strsep = yes; then
17782
17783for ac_func in strsep
17784do
17785as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17786{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17788if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17790else
17791 cat >conftest.$ac_ext <<_ACEOF
17792/* confdefs.h. */
17793_ACEOF
17794cat confdefs.h >>conftest.$ac_ext
17795cat >>conftest.$ac_ext <<_ACEOF
17796/* end confdefs.h. */
17797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17799#define $ac_func innocuous_$ac_func
17800
17801/* System header to define __stub macros and hopefully few prototypes,
17802 which can conflict with char $ac_func (); below.
17803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17804 <limits.h> exists even on freestanding compilers. */
17805
17806#ifdef __STDC__
17807# include <limits.h>
17808#else
17809# include <assert.h>
17810#endif
17811
17812#undef $ac_func
17813
17814/* Override any GCC internal prototype to avoid an error.
17815 Use char because int might match the return type of a GCC
17816 builtin and then its argument prototype would still apply. */
17817#ifdef __cplusplus
17818extern "C"
17819#endif
17820char $ac_func ();
17821/* The GNU C library defines this for functions which it implements
17822 to always fail with ENOSYS. Some functions are actually named
17823 something starting with __ and the normal name is an alias. */
17824#if defined __stub_$ac_func || defined __stub___$ac_func
17825choke me
17826#endif
17827
17828int
17829main ()
17830{
17831return $ac_func ();
17832 ;
17833 return 0;
17834}
17835_ACEOF
17836rm -f conftest.$ac_objext conftest$ac_exeext
17837if { (ac_try="$ac_link"
17838case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17841esac
17842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_link") 2>conftest.er1
17844 ac_status=$?
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } && {
17850 test -z "$ac_c_werror_flag" ||
17851 test ! -s conftest.err
17852 } && test -s conftest$ac_exeext &&
17853 $as_test_x conftest$ac_exeext; then
17854 eval "$as_ac_var=yes"
17855else
17856 echo "$as_me: failed program was:" >&5
17857sed 's/^/| /' conftest.$ac_ext >&5
17858
17859 eval "$as_ac_var=no"
17860fi
17861
17862rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17863 conftest$ac_exeext conftest.$ac_ext
17864fi
17865ac_res=`eval echo '${'$as_ac_var'}'`
17866 { echo "$as_me:$LINENO: result: $ac_res" >&5
17867echo "${ECHO_T}$ac_res" >&6; }
17868if test `eval echo '${'$as_ac_var'}'` = yes; then
17869 cat >>confdefs.h <<_ACEOF
17870#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17871_ACEOF
17872
17873fi
17874done
17875
17876fi
17877
17878
17879{ echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
17880echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
17881if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
17882 echo $ECHO_N "(cached) $ECHO_C" >&6
17883else
17884 cat >conftest.$ac_ext <<_ACEOF
17885/* confdefs.h. */
17886_ACEOF
17887cat confdefs.h >>conftest.$ac_ext
17888cat >>conftest.$ac_ext <<_ACEOF
17889/* end confdefs.h. */
17890#include <termios.h>
17891
17892
17893int
17894main ()
17895{
17896#ifndef tcsendbreak
17897 (void) tcsendbreak;
17898#endif
17899
17900 ;
17901 return 0;
17902}
17903_ACEOF
17904rm -f conftest.$ac_objext
17905if { (ac_try="$ac_compile"
17906case "(($ac_try" in
17907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908 *) ac_try_echo=$ac_try;;
17909esac
17910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911 (eval "$ac_compile") 2>conftest.er1
17912 ac_status=$?
17913 grep -v '^ *+' conftest.er1 >conftest.err
17914 rm -f conftest.er1
17915 cat conftest.err >&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); } && {
17918 test -z "$ac_c_werror_flag" ||
17919 test ! -s conftest.err
17920 } && test -s conftest.$ac_objext; then
17921 ac_cv_have_decl_tcsendbreak=yes
17922else
17923 echo "$as_me: failed program was:" >&5
17924sed 's/^/| /' conftest.$ac_ext >&5
17925
17926 ac_cv_have_decl_tcsendbreak=no
17927fi
17928
17929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17930fi
17931{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
17932echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
17933if test $ac_cv_have_decl_tcsendbreak = yes; then
17934 cat >>confdefs.h <<\_ACEOF
17935#define HAVE_TCSENDBREAK 1
17936_ACEOF
17937
17938else
17939
17940for ac_func in tcsendbreak
17941do
17942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17943{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17945if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17946 echo $ECHO_N "(cached) $ECHO_C" >&6
17947else
17948 cat >conftest.$ac_ext <<_ACEOF
17949/* confdefs.h. */
17950_ACEOF
17951cat confdefs.h >>conftest.$ac_ext
17952cat >>conftest.$ac_ext <<_ACEOF
17953/* end confdefs.h. */
17954/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17956#define $ac_func innocuous_$ac_func
17957
17958/* System header to define __stub macros and hopefully few prototypes,
17959 which can conflict with char $ac_func (); below.
17960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17961 <limits.h> exists even on freestanding compilers. */
17962
17963#ifdef __STDC__
17964# include <limits.h>
17965#else
17966# include <assert.h>
17967#endif
17968
17969#undef $ac_func
17970
17971/* Override any GCC internal prototype to avoid an error.
17972 Use char because int might match the return type of a GCC
17973 builtin and then its argument prototype would still apply. */
17974#ifdef __cplusplus
17975extern "C"
17976#endif
17977char $ac_func ();
17978/* The GNU C library defines this for functions which it implements
17979 to always fail with ENOSYS. Some functions are actually named
17980 something starting with __ and the normal name is an alias. */
17981#if defined __stub_$ac_func || defined __stub___$ac_func
17982choke me
17983#endif
17984
17985int
17986main ()
17987{
17988return $ac_func ();
17989 ;
17990 return 0;
17991}
17992_ACEOF
17993rm -f conftest.$ac_objext conftest$ac_exeext
17994if { (ac_try="$ac_link"
17995case "(($ac_try" in
17996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997 *) ac_try_echo=$ac_try;;
17998esac
17999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000 (eval "$ac_link") 2>conftest.er1
18001 ac_status=$?
18002 grep -v '^ *+' conftest.er1 >conftest.err
18003 rm -f conftest.er1
18004 cat conftest.err >&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); } && {
18007 test -z "$ac_c_werror_flag" ||
18008 test ! -s conftest.err
18009 } && test -s conftest$ac_exeext &&
18010 $as_test_x conftest$ac_exeext; then
18011 eval "$as_ac_var=yes"
18012else
18013 echo "$as_me: failed program was:" >&5
18014sed 's/^/| /' conftest.$ac_ext >&5
18015
18016 eval "$as_ac_var=no"
18017fi
18018
18019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18020 conftest$ac_exeext conftest.$ac_ext
18021fi
18022ac_res=`eval echo '${'$as_ac_var'}'`
18023 { echo "$as_me:$LINENO: result: $ac_res" >&5
18024echo "${ECHO_T}$ac_res" >&6; }
18025if test `eval echo '${'$as_ac_var'}'` = yes; then
18026 cat >>confdefs.h <<_ACEOF
18027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18028_ACEOF
18029
18030fi
18031done
18032
18033fi
18034
18035
18036{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
18037echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
18038if test "${ac_cv_have_decl_h_errno+set}" = set; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18040else
18041 cat >conftest.$ac_ext <<_ACEOF
18042/* confdefs.h. */
18043_ACEOF
18044cat confdefs.h >>conftest.$ac_ext
18045cat >>conftest.$ac_ext <<_ACEOF
18046/* end confdefs.h. */
18047#include <netdb.h>
18048
18049int
18050main ()
18051{
18052#ifndef h_errno
18053 (void) h_errno;
18054#endif
18055
18056 ;
18057 return 0;
18058}
18059_ACEOF
18060rm -f conftest.$ac_objext
18061if { (ac_try="$ac_compile"
18062case "(($ac_try" in
18063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064 *) ac_try_echo=$ac_try;;
18065esac
18066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067 (eval "$ac_compile") 2>conftest.er1
18068 ac_status=$?
18069 grep -v '^ *+' conftest.er1 >conftest.err
18070 rm -f conftest.er1
18071 cat conftest.err >&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); } && {
18074 test -z "$ac_c_werror_flag" ||
18075 test ! -s conftest.err
18076 } && test -s conftest.$ac_objext; then
18077 ac_cv_have_decl_h_errno=yes
18078else
18079 echo "$as_me: failed program was:" >&5
18080sed 's/^/| /' conftest.$ac_ext >&5
18081
18082 ac_cv_have_decl_h_errno=no
18083fi
18084
18085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18086fi
18087{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
18088echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
18089if test $ac_cv_have_decl_h_errno = yes; then
18090
18091cat >>confdefs.h <<_ACEOF
18092#define HAVE_DECL_H_ERRNO 1
18093_ACEOF
18094
18095
18096else
18097 cat >>confdefs.h <<_ACEOF
18098#define HAVE_DECL_H_ERRNO 0
18099_ACEOF
18100
18101
18102fi
18103
18104
18105
18106{ echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
18107echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
18108if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18110else
18111 cat >conftest.$ac_ext <<_ACEOF
18112/* confdefs.h. */
18113_ACEOF
18114cat confdefs.h >>conftest.$ac_ext
18115cat >>conftest.$ac_ext <<_ACEOF
18116/* end confdefs.h. */
18117
18118#include <sys/types.h>
18119#include <sys/socket.h>
18120
18121
18122int
18123main ()
18124{
18125#ifndef SHUT_RD
18126 (void) SHUT_RD;
18127#endif
18128
18129 ;
18130 return 0;
18131}
18132_ACEOF
18133rm -f conftest.$ac_objext
18134if { (ac_try="$ac_compile"
18135case "(($ac_try" in
18136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137 *) ac_try_echo=$ac_try;;
18138esac
18139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18140 (eval "$ac_compile") 2>conftest.er1
18141 ac_status=$?
18142 grep -v '^ *+' conftest.er1 >conftest.err
18143 rm -f conftest.er1
18144 cat conftest.err >&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } && {
18147 test -z "$ac_c_werror_flag" ||
18148 test ! -s conftest.err
18149 } && test -s conftest.$ac_objext; then
18150 ac_cv_have_decl_SHUT_RD=yes
18151else
18152 echo "$as_me: failed program was:" >&5
18153sed 's/^/| /' conftest.$ac_ext >&5
18154
18155 ac_cv_have_decl_SHUT_RD=no
18156fi
18157
18158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18159fi
18160{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
18161echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
18162if test $ac_cv_have_decl_SHUT_RD = yes; then
18163
18164cat >>confdefs.h <<_ACEOF
18165#define HAVE_DECL_SHUT_RD 1
18166_ACEOF
18167
18168
18169else
18170 cat >>confdefs.h <<_ACEOF
18171#define HAVE_DECL_SHUT_RD 0
18172_ACEOF
18173
18174
18175fi
18176
18177
18178
18179{ echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
18180echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
18181if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18183else
18184 cat >conftest.$ac_ext <<_ACEOF
18185/* confdefs.h. */
18186_ACEOF
18187cat confdefs.h >>conftest.$ac_ext
18188cat >>conftest.$ac_ext <<_ACEOF
18189/* end confdefs.h. */
18190
18191#include <sys/types.h>
18192#ifdef HAVE_SYS_STAT_H
18193# include <sys/stat.h>
18194#endif
18195#ifdef HAVE_FCNTL_H
18196# include <fcntl.h>
18197#endif
18198
18199
18200int
18201main ()
18202{
18203#ifndef O_NONBLOCK
18204 (void) O_NONBLOCK;
18205#endif
18206
18207 ;
18208 return 0;
18209}
18210_ACEOF
18211rm -f conftest.$ac_objext
18212if { (ac_try="$ac_compile"
18213case "(($ac_try" in
18214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215 *) ac_try_echo=$ac_try;;
18216esac
18217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218 (eval "$ac_compile") 2>conftest.er1
18219 ac_status=$?
18220 grep -v '^ *+' conftest.er1 >conftest.err
18221 rm -f conftest.er1
18222 cat conftest.err >&5
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); } && {
18225 test -z "$ac_c_werror_flag" ||
18226 test ! -s conftest.err
18227 } && test -s conftest.$ac_objext; then
18228 ac_cv_have_decl_O_NONBLOCK=yes
18229else
18230 echo "$as_me: failed program was:" >&5
18231sed 's/^/| /' conftest.$ac_ext >&5
18232
18233 ac_cv_have_decl_O_NONBLOCK=no
18234fi
18235
18236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18237fi
18238{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
18239echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
18240if test $ac_cv_have_decl_O_NONBLOCK = yes; then
18241
18242cat >>confdefs.h <<_ACEOF
18243#define HAVE_DECL_O_NONBLOCK 1
18244_ACEOF
18245
18246
18247else
18248 cat >>confdefs.h <<_ACEOF
18249#define HAVE_DECL_O_NONBLOCK 0
18250_ACEOF
18251
18252
18253fi
18254
18255
18256
18257{ echo "$as_me:$LINENO: checking whether writev is declared" >&5
18258echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
18259if test "${ac_cv_have_decl_writev+set}" = set; then
18260 echo $ECHO_N "(cached) $ECHO_C" >&6
18261else
18262 cat >conftest.$ac_ext <<_ACEOF
18263/* confdefs.h. */
18264_ACEOF
18265cat confdefs.h >>conftest.$ac_ext
18266cat >>conftest.$ac_ext <<_ACEOF
18267/* end confdefs.h. */
18268
18269#include <sys/types.h>
18270#include <sys/uio.h>
18271#include <unistd.h>
18272
18273
18274int
18275main ()
18276{
18277#ifndef writev
18278 (void) writev;
18279#endif
18280
18281 ;
18282 return 0;
18283}
18284_ACEOF
18285rm -f conftest.$ac_objext
18286if { (ac_try="$ac_compile"
18287case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18290esac
18291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_compile") 2>conftest.er1
18293 ac_status=$?
18294 grep -v '^ *+' conftest.er1 >conftest.err
18295 rm -f conftest.er1
18296 cat conftest.err >&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } && {
18299 test -z "$ac_c_werror_flag" ||
18300 test ! -s conftest.err
18301 } && test -s conftest.$ac_objext; then
18302 ac_cv_have_decl_writev=yes
18303else
18304 echo "$as_me: failed program was:" >&5
18305sed 's/^/| /' conftest.$ac_ext >&5
18306
18307 ac_cv_have_decl_writev=no
18308fi
18309
18310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18311fi
18312{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
18313echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
18314if test $ac_cv_have_decl_writev = yes; then
18315
18316cat >>confdefs.h <<_ACEOF
18317#define HAVE_DECL_WRITEV 1
18318_ACEOF
18319
18320
18321else
18322 cat >>confdefs.h <<_ACEOF
18323#define HAVE_DECL_WRITEV 0
18324_ACEOF
18325
18326
18327fi
18328
18329
18330
18331{ echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5
18332echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; }
18333if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18335else
18336 cat >conftest.$ac_ext <<_ACEOF
18337/* confdefs.h. */
18338_ACEOF
18339cat confdefs.h >>conftest.$ac_ext
18340cat >>conftest.$ac_ext <<_ACEOF
18341/* end confdefs.h. */
18342
18343#include <sys/param.h>
18344
18345
18346int
18347main ()
18348{
18349#ifndef MAXSYMLINKS
18350 (void) MAXSYMLINKS;
18351#endif
18352
18353 ;
18354 return 0;
18355}
18356_ACEOF
18357rm -f conftest.$ac_objext
18358if { (ac_try="$ac_compile"
18359case "(($ac_try" in
18360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18361 *) ac_try_echo=$ac_try;;
18362esac
18363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18364 (eval "$ac_compile") 2>conftest.er1
18365 ac_status=$?
18366 grep -v '^ *+' conftest.er1 >conftest.err
18367 rm -f conftest.er1
18368 cat conftest.err >&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } && {
18371 test -z "$ac_c_werror_flag" ||
18372 test ! -s conftest.err
18373 } && test -s conftest.$ac_objext; then
18374 ac_cv_have_decl_MAXSYMLINKS=yes
18375else
18376 echo "$as_me: failed program was:" >&5
18377sed 's/^/| /' conftest.$ac_ext >&5
18378
18379 ac_cv_have_decl_MAXSYMLINKS=no
18380fi
18381
18382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18383fi
18384{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5
18385echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; }
18386if test $ac_cv_have_decl_MAXSYMLINKS = yes; then
18387
18388cat >>confdefs.h <<_ACEOF
18389#define HAVE_DECL_MAXSYMLINKS 1
18390_ACEOF
18391
18392
18393else
18394 cat >>confdefs.h <<_ACEOF
18395#define HAVE_DECL_MAXSYMLINKS 0
18396_ACEOF
18397
18398
18399fi
18400
18401
18402
18403{ echo "$as_me:$LINENO: checking whether offsetof is declared" >&5
18404echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; }
18405if test "${ac_cv_have_decl_offsetof+set}" = set; then
18406 echo $ECHO_N "(cached) $ECHO_C" >&6
18407else
18408 cat >conftest.$ac_ext <<_ACEOF
18409/* confdefs.h. */
18410_ACEOF
18411cat confdefs.h >>conftest.$ac_ext
18412cat >>conftest.$ac_ext <<_ACEOF
18413/* end confdefs.h. */
18414
18415#include <stddef.h>
18416
18417
18418int
18419main ()
18420{
18421#ifndef offsetof
18422 (void) offsetof;
18423#endif
18424
18425 ;
18426 return 0;
18427}
18428_ACEOF
18429rm -f conftest.$ac_objext
18430if { (ac_try="$ac_compile"
18431case "(($ac_try" in
18432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433 *) ac_try_echo=$ac_try;;
18434esac
18435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18436 (eval "$ac_compile") 2>conftest.er1
18437 ac_status=$?
18438 grep -v '^ *+' conftest.er1 >conftest.err
18439 rm -f conftest.er1
18440 cat conftest.err >&5
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); } && {
18443 test -z "$ac_c_werror_flag" ||
18444 test ! -s conftest.err
18445 } && test -s conftest.$ac_objext; then
18446 ac_cv_have_decl_offsetof=yes
18447else
18448 echo "$as_me: failed program was:" >&5
18449sed 's/^/| /' conftest.$ac_ext >&5
18450
18451 ac_cv_have_decl_offsetof=no
18452fi
18453
18454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18455fi
18456{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5
18457echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; }
18458if test $ac_cv_have_decl_offsetof = yes; then
18459
18460cat >>confdefs.h <<_ACEOF
18461#define HAVE_DECL_OFFSETOF 1
18462_ACEOF
18463
18464
18465else
18466 cat >>confdefs.h <<_ACEOF
18467#define HAVE_DECL_OFFSETOF 0
18468_ACEOF
18469
18470
18471fi
18472
18473
18474
18475# extra bits for select(2)
18476{ echo "$as_me:$LINENO: checking whether howmany is declared" >&5
18477echo $ECHO_N "checking whether howmany is declared... $ECHO_C" >&6; }
18478if test "${ac_cv_have_decl_howmany+set}" = set; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18480else
18481 cat >conftest.$ac_ext <<_ACEOF
18482/* confdefs.h. */
18483_ACEOF
18484cat confdefs.h >>conftest.$ac_ext
18485cat >>conftest.$ac_ext <<_ACEOF
18486/* end confdefs.h. */
18487
18488#include <sys/param.h>
18489#include <sys/types.h>
18490#ifdef HAVE_SYS_SYSMACROS_H
18491#include <sys/sysmacros.h>
18492#endif
18493#ifdef HAVE_SYS_SELECT_H
18494#include <sys/select.h>
18495#endif
18496#ifdef HAVE_SYS_TIME_H
18497#include <sys/time.h>
18498#endif
18499#ifdef HAVE_UNISTD_H
18500#include <unistd.h>
18501#endif
18502
18503
18504int
18505main ()
18506{
18507#ifndef howmany
18508 (void) howmany;
18509#endif
18510
18511 ;
18512 return 0;
18513}
18514_ACEOF
18515rm -f conftest.$ac_objext
18516if { (ac_try="$ac_compile"
18517case "(($ac_try" in
18518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18519 *) ac_try_echo=$ac_try;;
18520esac
18521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18522 (eval "$ac_compile") 2>conftest.er1
18523 ac_status=$?
18524 grep -v '^ *+' conftest.er1 >conftest.err
18525 rm -f conftest.er1
18526 cat conftest.err >&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } && {
18529 test -z "$ac_c_werror_flag" ||
18530 test ! -s conftest.err
18531 } && test -s conftest.$ac_objext; then
18532 ac_cv_have_decl_howmany=yes
18533else
18534 echo "$as_me: failed program was:" >&5
18535sed 's/^/| /' conftest.$ac_ext >&5
18536
18537 ac_cv_have_decl_howmany=no
18538fi
18539
18540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18541fi
18542{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_howmany" >&5
18543echo "${ECHO_T}$ac_cv_have_decl_howmany" >&6; }
18544if test $ac_cv_have_decl_howmany = yes; then
18545
18546cat >>confdefs.h <<_ACEOF
18547#define HAVE_DECL_HOWMANY 1
18548_ACEOF
18549
18550
18551else
18552 cat >>confdefs.h <<_ACEOF
18553#define HAVE_DECL_HOWMANY 0
18554_ACEOF
18555
18556
18557fi
18558{ echo "$as_me:$LINENO: checking whether NFDBITS is declared" >&5
18559echo $ECHO_N "checking whether NFDBITS is declared... $ECHO_C" >&6; }
18560if test "${ac_cv_have_decl_NFDBITS+set}" = set; then
18561 echo $ECHO_N "(cached) $ECHO_C" >&6
18562else
18563 cat >conftest.$ac_ext <<_ACEOF
18564/* confdefs.h. */
18565_ACEOF
18566cat confdefs.h >>conftest.$ac_ext
18567cat >>conftest.$ac_ext <<_ACEOF
18568/* end confdefs.h. */
18569
18570#include <sys/param.h>
18571#include <sys/types.h>
18572#ifdef HAVE_SYS_SYSMACROS_H
18573#include <sys/sysmacros.h>
18574#endif
18575#ifdef HAVE_SYS_SELECT_H
18576#include <sys/select.h>
18577#endif
18578#ifdef HAVE_SYS_TIME_H
18579#include <sys/time.h>
18580#endif
18581#ifdef HAVE_UNISTD_H
18582#include <unistd.h>
18583#endif
18584
18585
18586int
18587main ()
18588{
18589#ifndef NFDBITS
18590 (void) NFDBITS;
18591#endif
18592
18593 ;
18594 return 0;
18595}
18596_ACEOF
18597rm -f conftest.$ac_objext
18598if { (ac_try="$ac_compile"
18599case "(($ac_try" in
18600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601 *) ac_try_echo=$ac_try;;
18602esac
18603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604 (eval "$ac_compile") 2>conftest.er1
18605 ac_status=$?
18606 grep -v '^ *+' conftest.er1 >conftest.err
18607 rm -f conftest.er1
18608 cat conftest.err >&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } && {
18611 test -z "$ac_c_werror_flag" ||
18612 test ! -s conftest.err
18613 } && test -s conftest.$ac_objext; then
18614 ac_cv_have_decl_NFDBITS=yes
18615else
18616 echo "$as_me: failed program was:" >&5
18617sed 's/^/| /' conftest.$ac_ext >&5
18618
18619 ac_cv_have_decl_NFDBITS=no
18620fi
18621
18622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18623fi
18624{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_NFDBITS" >&5
18625echo "${ECHO_T}$ac_cv_have_decl_NFDBITS" >&6; }
18626if test $ac_cv_have_decl_NFDBITS = yes; then
18627
18628cat >>confdefs.h <<_ACEOF
18629#define HAVE_DECL_NFDBITS 1
18630_ACEOF
18631
18632
18633else
18634 cat >>confdefs.h <<_ACEOF
18635#define HAVE_DECL_NFDBITS 0
18636_ACEOF
18637
18638
18639fi
18640
18641
18642{ echo "$as_me:$LINENO: checking for fd_mask" >&5
18643echo $ECHO_N "checking for fd_mask... $ECHO_C" >&6; }
18644if test "${ac_cv_type_fd_mask+set}" = set; then
18645 echo $ECHO_N "(cached) $ECHO_C" >&6
18646else
18647 cat >conftest.$ac_ext <<_ACEOF
18648/* confdefs.h. */
18649_ACEOF
18650cat confdefs.h >>conftest.$ac_ext
18651cat >>conftest.$ac_ext <<_ACEOF
18652/* end confdefs.h. */
18653
18654#include <sys/param.h>
18655#include <sys/types.h>
18656#ifdef HAVE_SYS_SELECT_H
18657#include <sys/select.h>
18658#endif
18659#ifdef HAVE_SYS_TIME_H
18660#include <sys/time.h>
18661#endif
18662#ifdef HAVE_UNISTD_H
18663#include <unistd.h>
18664#endif
18665
18666
18667typedef fd_mask ac__type_new_;
18668int
18669main ()
18670{
18671if ((ac__type_new_ *) 0)
18672 return 0;
18673if (sizeof (ac__type_new_))
18674 return 0;
18675 ;
18676 return 0;
18677}
18678_ACEOF
18679rm -f conftest.$ac_objext
18680if { (ac_try="$ac_compile"
18681case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18684esac
18685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686 (eval "$ac_compile") 2>conftest.er1
18687 ac_status=$?
18688 grep -v '^ *+' conftest.er1 >conftest.err
18689 rm -f conftest.er1
18690 cat conftest.err >&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); } && {
18693 test -z "$ac_c_werror_flag" ||
18694 test ! -s conftest.err
18695 } && test -s conftest.$ac_objext; then
18696 ac_cv_type_fd_mask=yes
18697else
18698 echo "$as_me: failed program was:" >&5
18699sed 's/^/| /' conftest.$ac_ext >&5
18700
18701 ac_cv_type_fd_mask=no
18702fi
18703
18704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18705fi
18706{ echo "$as_me:$LINENO: result: $ac_cv_type_fd_mask" >&5
18707echo "${ECHO_T}$ac_cv_type_fd_mask" >&6; }
18708if test $ac_cv_type_fd_mask = yes; then
18709
18710cat >>confdefs.h <<_ACEOF
18711#define HAVE_FD_MASK 1
18712_ACEOF
18713
18714
18715fi
18716
18717
18718
18719for ac_func in setresuid
18720do
18721as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18722{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18724if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18726else
18727 cat >conftest.$ac_ext <<_ACEOF
18728/* confdefs.h. */
18729_ACEOF
18730cat confdefs.h >>conftest.$ac_ext
18731cat >>conftest.$ac_ext <<_ACEOF
18732/* end confdefs.h. */
18733/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18735#define $ac_func innocuous_$ac_func
18736
18737/* System header to define __stub macros and hopefully few prototypes,
18738 which can conflict with char $ac_func (); below.
18739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18740 <limits.h> exists even on freestanding compilers. */
18741
18742#ifdef __STDC__
18743# include <limits.h>
18744#else
18745# include <assert.h>
18746#endif
18747
18748#undef $ac_func
18749
18750/* Override any GCC internal prototype to avoid an error.
18751 Use char because int might match the return type of a GCC
18752 builtin and then its argument prototype would still apply. */
18753#ifdef __cplusplus
18754extern "C"
18755#endif
18756char $ac_func ();
18757/* The GNU C library defines this for functions which it implements
18758 to always fail with ENOSYS. Some functions are actually named
18759 something starting with __ and the normal name is an alias. */
18760#if defined __stub_$ac_func || defined __stub___$ac_func
18761choke me
18762#endif
18763
18764int
18765main ()
18766{
18767return $ac_func ();
18768 ;
18769 return 0;
18770}
18771_ACEOF
18772rm -f conftest.$ac_objext conftest$ac_exeext
18773if { (ac_try="$ac_link"
18774case "(($ac_try" in
18775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776 *) ac_try_echo=$ac_try;;
18777esac
18778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779 (eval "$ac_link") 2>conftest.er1
18780 ac_status=$?
18781 grep -v '^ *+' conftest.er1 >conftest.err
18782 rm -f conftest.er1
18783 cat conftest.err >&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); } && {
18786 test -z "$ac_c_werror_flag" ||
18787 test ! -s conftest.err
18788 } && test -s conftest$ac_exeext &&
18789 $as_test_x conftest$ac_exeext; then
18790 eval "$as_ac_var=yes"
18791else
18792 echo "$as_me: failed program was:" >&5
18793sed 's/^/| /' conftest.$ac_ext >&5
18794
18795 eval "$as_ac_var=no"
18796fi
18797
18798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18799 conftest$ac_exeext conftest.$ac_ext
18800fi
18801ac_res=`eval echo '${'$as_ac_var'}'`
18802 { echo "$as_me:$LINENO: result: $ac_res" >&5
18803echo "${ECHO_T}$ac_res" >&6; }
18804if test `eval echo '${'$as_ac_var'}'` = yes; then
18805 cat >>confdefs.h <<_ACEOF
18806#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18807_ACEOF
18808
18809 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
18810echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
18811 if test "$cross_compiling" = yes; then
18812 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
18813echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
18814
18815else
18816 cat >conftest.$ac_ext <<_ACEOF
18817/* confdefs.h. */
18818_ACEOF
18819cat confdefs.h >>conftest.$ac_ext
18820cat >>conftest.$ac_ext <<_ACEOF
18821/* end confdefs.h. */
18822
18823#include <stdlib.h>
18824#include <errno.h>
18825
18826int
18827main ()
18828{
18829
18830 errno=0;
18831 setresuid(0,0,0);
18832 if (errno==ENOSYS)
18833 exit(1);
18834 else
18835 exit(0);
18836
18837 ;
18838 return 0;
18839}
18840_ACEOF
18841rm -f conftest$ac_exeext
18842if { (ac_try="$ac_link"
18843case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18846esac
18847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_link") 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18852 { (case "(($ac_try" in
18853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18854 *) ac_try_echo=$ac_try;;
18855esac
18856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18857 (eval "$ac_try") 2>&5
18858 ac_status=$?
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); }; }; then
18861 { echo "$as_me:$LINENO: result: yes" >&5
18862echo "${ECHO_T}yes" >&6; }
18863else
18864 echo "$as_me: program exited with status $ac_status" >&5
18865echo "$as_me: failed program was:" >&5
18866sed 's/^/| /' conftest.$ac_ext >&5
18867
18868( exit $ac_status )
18869
18870cat >>confdefs.h <<\_ACEOF
18871#define BROKEN_SETRESUID 1
18872_ACEOF
18873
18874 { echo "$as_me:$LINENO: result: not implemented" >&5
18875echo "${ECHO_T}not implemented" >&6; }
18876fi
18877rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18878fi
18879
18880
18881
18882fi
18883done
18884
18885
18886
18887for ac_func in setresgid
18888do
18889as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18890{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18891echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18892if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18893 echo $ECHO_N "(cached) $ECHO_C" >&6
18894else
18895 cat >conftest.$ac_ext <<_ACEOF
18896/* confdefs.h. */
18897_ACEOF
18898cat confdefs.h >>conftest.$ac_ext
18899cat >>conftest.$ac_ext <<_ACEOF
18900/* end confdefs.h. */
18901/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18903#define $ac_func innocuous_$ac_func
18904
18905/* System header to define __stub macros and hopefully few prototypes,
18906 which can conflict with char $ac_func (); below.
18907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18908 <limits.h> exists even on freestanding compilers. */
18909
18910#ifdef __STDC__
18911# include <limits.h>
18912#else
18913# include <assert.h>
18914#endif
18915
18916#undef $ac_func
18917
18918/* Override any GCC internal prototype to avoid an error.
18919 Use char because int might match the return type of a GCC
18920 builtin and then its argument prototype would still apply. */
18921#ifdef __cplusplus
18922extern "C"
18923#endif
18924char $ac_func ();
18925/* The GNU C library defines this for functions which it implements
18926 to always fail with ENOSYS. Some functions are actually named
18927 something starting with __ and the normal name is an alias. */
18928#if defined __stub_$ac_func || defined __stub___$ac_func
18929choke me
18930#endif
18931
18932int
18933main ()
18934{
18935return $ac_func ();
18936 ;
18937 return 0;
18938}
18939_ACEOF
18940rm -f conftest.$ac_objext conftest$ac_exeext
18941if { (ac_try="$ac_link"
18942case "(($ac_try" in
18943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944 *) ac_try_echo=$ac_try;;
18945esac
18946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947 (eval "$ac_link") 2>conftest.er1
18948 ac_status=$?
18949 grep -v '^ *+' conftest.er1 >conftest.err
18950 rm -f conftest.er1
18951 cat conftest.err >&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); } && {
18954 test -z "$ac_c_werror_flag" ||
18955 test ! -s conftest.err
18956 } && test -s conftest$ac_exeext &&
18957 $as_test_x conftest$ac_exeext; then
18958 eval "$as_ac_var=yes"
18959else
18960 echo "$as_me: failed program was:" >&5
18961sed 's/^/| /' conftest.$ac_ext >&5
18962
18963 eval "$as_ac_var=no"
18964fi
18965
18966rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18967 conftest$ac_exeext conftest.$ac_ext
18968fi
18969ac_res=`eval echo '${'$as_ac_var'}'`
18970 { echo "$as_me:$LINENO: result: $ac_res" >&5
18971echo "${ECHO_T}$ac_res" >&6; }
18972if test `eval echo '${'$as_ac_var'}'` = yes; then
18973 cat >>confdefs.h <<_ACEOF
18974#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18975_ACEOF
18976
18977 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
18978echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
18979 if test "$cross_compiling" = yes; then
18980 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
18981echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
18982
18983else
18984 cat >conftest.$ac_ext <<_ACEOF
18985/* confdefs.h. */
18986_ACEOF
18987cat confdefs.h >>conftest.$ac_ext
18988cat >>conftest.$ac_ext <<_ACEOF
18989/* end confdefs.h. */
18990
18991#include <stdlib.h>
18992#include <errno.h>
18993
18994int
18995main ()
18996{
18997
18998 errno=0;
18999 setresgid(0,0,0);
19000 if (errno==ENOSYS)
19001 exit(1);
19002 else
19003 exit(0);
19004
19005 ;
19006 return 0;
19007}
19008_ACEOF
19009rm -f conftest$ac_exeext
19010if { (ac_try="$ac_link"
19011case "(($ac_try" in
19012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013 *) ac_try_echo=$ac_try;;
19014esac
19015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016 (eval "$ac_link") 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19020 { (case "(($ac_try" in
19021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022 *) ac_try_echo=$ac_try;;
19023esac
19024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025 (eval "$ac_try") 2>&5
19026 ac_status=$?
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); }; }; then
19029 { echo "$as_me:$LINENO: result: yes" >&5
19030echo "${ECHO_T}yes" >&6; }
19031else
19032 echo "$as_me: program exited with status $ac_status" >&5
19033echo "$as_me: failed program was:" >&5
19034sed 's/^/| /' conftest.$ac_ext >&5
19035
19036( exit $ac_status )
19037
19038cat >>confdefs.h <<\_ACEOF
19039#define BROKEN_SETRESGID 1
19040_ACEOF
19041
19042 { echo "$as_me:$LINENO: result: not implemented" >&5
19043echo "${ECHO_T}not implemented" >&6; }
19044fi
19045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19046fi
19047
19048
19049
19050fi
19051done
19052
19053
19054
19055for ac_func in realpath
19056do
19057as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19058{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19059echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19060if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19061 echo $ECHO_N "(cached) $ECHO_C" >&6
19062else
19063 cat >conftest.$ac_ext <<_ACEOF
19064/* confdefs.h. */
19065_ACEOF
19066cat confdefs.h >>conftest.$ac_ext
19067cat >>conftest.$ac_ext <<_ACEOF
19068/* end confdefs.h. */
19069/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19071#define $ac_func innocuous_$ac_func
19072
19073/* System header to define __stub macros and hopefully few prototypes,
19074 which can conflict with char $ac_func (); below.
19075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19076 <limits.h> exists even on freestanding compilers. */
19077
19078#ifdef __STDC__
19079# include <limits.h>
19080#else
19081# include <assert.h>
19082#endif
19083
19084#undef $ac_func
19085
19086/* Override any GCC internal prototype to avoid an error.
19087 Use char because int might match the return type of a GCC
19088 builtin and then its argument prototype would still apply. */
19089#ifdef __cplusplus
19090extern "C"
19091#endif
19092char $ac_func ();
19093/* The GNU C library defines this for functions which it implements
19094 to always fail with ENOSYS. Some functions are actually named
19095 something starting with __ and the normal name is an alias. */
19096#if defined __stub_$ac_func || defined __stub___$ac_func
19097choke me
19098#endif
19099
19100int
19101main ()
19102{
19103return $ac_func ();
19104 ;
19105 return 0;
19106}
19107_ACEOF
19108rm -f conftest.$ac_objext conftest$ac_exeext
19109if { (ac_try="$ac_link"
19110case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19113esac
19114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_link") 2>conftest.er1
19116 ac_status=$?
19117 grep -v '^ *+' conftest.er1 >conftest.err
19118 rm -f conftest.er1
19119 cat conftest.err >&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } && {
19122 test -z "$ac_c_werror_flag" ||
19123 test ! -s conftest.err
19124 } && test -s conftest$ac_exeext &&
19125 $as_test_x conftest$ac_exeext; then
19126 eval "$as_ac_var=yes"
19127else
19128 echo "$as_me: failed program was:" >&5
19129sed 's/^/| /' conftest.$ac_ext >&5
19130
19131 eval "$as_ac_var=no"
19132fi
19133
19134rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19135 conftest$ac_exeext conftest.$ac_ext
19136fi
19137ac_res=`eval echo '${'$as_ac_var'}'`
19138 { echo "$as_me:$LINENO: result: $ac_res" >&5
19139echo "${ECHO_T}$ac_res" >&6; }
19140if test `eval echo '${'$as_ac_var'}'` = yes; then
19141 cat >>confdefs.h <<_ACEOF
19142#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19143_ACEOF
19144
19145 { echo "$as_me:$LINENO: checking if realpath works with non-existent files" >&5
19146echo $ECHO_N "checking if realpath works with non-existent files... $ECHO_C" >&6; }
19147 if test "$cross_compiling" = yes; then
19148 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming working" >&5
19149echo "$as_me: WARNING: cross compiling: assuming working" >&2;}
19150
19151else
19152 cat >conftest.$ac_ext <<_ACEOF
19153/* confdefs.h. */
19154_ACEOF
19155cat confdefs.h >>conftest.$ac_ext
19156cat >>conftest.$ac_ext <<_ACEOF
19157/* end confdefs.h. */
19158
19159#include <limits.h>
19160#include <stdlib.h>
19161#include <errno.h>
19162
19163int
19164main ()
19165{
19166
19167 char buf[PATH_MAX];
19168 if (realpath("/opensshnonexistentfilename1234", buf) == NULL)
19169 if (errno == ENOENT)
19170 exit(1);
19171 exit(0);
19172
19173 ;
19174 return 0;
19175}
19176_ACEOF
19177rm -f conftest$ac_exeext
19178if { (ac_try="$ac_link"
19179case "(($ac_try" in
19180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19182esac
19183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184 (eval "$ac_link") 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19188 { (case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19191esac
19192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193 (eval "$ac_try") 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 { echo "$as_me:$LINENO: result: yes" >&5
19198echo "${ECHO_T}yes" >&6; }
19199else
19200 echo "$as_me: program exited with status $ac_status" >&5
19201echo "$as_me: failed program was:" >&5
19202sed 's/^/| /' conftest.$ac_ext >&5
19203
19204( exit $ac_status )
19205
19206cat >>confdefs.h <<\_ACEOF
19207#define BROKEN_REALPATH 1
19208_ACEOF
19209
19210 { echo "$as_me:$LINENO: result: no" >&5
19211echo "${ECHO_T}no" >&6; }
19212fi
19213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19214fi
19215
19216
19217
19218fi
19219done
19220
19221
19222
19223
19224for ac_func in gettimeofday time
19225do
19226as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19227{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19228echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19229if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19231else
19232 cat >conftest.$ac_ext <<_ACEOF
19233/* confdefs.h. */
19234_ACEOF
19235cat confdefs.h >>conftest.$ac_ext
19236cat >>conftest.$ac_ext <<_ACEOF
19237/* end confdefs.h. */
19238/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19240#define $ac_func innocuous_$ac_func
19241
19242/* System header to define __stub macros and hopefully few prototypes,
19243 which can conflict with char $ac_func (); below.
19244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19245 <limits.h> exists even on freestanding compilers. */
19246
19247#ifdef __STDC__
19248# include <limits.h>
19249#else
19250# include <assert.h>
19251#endif
19252
19253#undef $ac_func
19254
19255/* Override any GCC internal prototype to avoid an error.
19256 Use char because int might match the return type of a GCC
19257 builtin and then its argument prototype would still apply. */
19258#ifdef __cplusplus
19259extern "C"
19260#endif
19261char $ac_func ();
19262/* The GNU C library defines this for functions which it implements
19263 to always fail with ENOSYS. Some functions are actually named
19264 something starting with __ and the normal name is an alias. */
19265#if defined __stub_$ac_func || defined __stub___$ac_func
19266choke me
19267#endif
19268
19269int
19270main ()
19271{
19272return $ac_func ();
19273 ;
19274 return 0;
19275}
19276_ACEOF
19277rm -f conftest.$ac_objext conftest$ac_exeext
19278if { (ac_try="$ac_link"
19279case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19282esac
19283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_link") 2>conftest.er1
19285 ac_status=$?
19286 grep -v '^ *+' conftest.er1 >conftest.err
19287 rm -f conftest.er1
19288 cat conftest.err >&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } && {
19291 test -z "$ac_c_werror_flag" ||
19292 test ! -s conftest.err
19293 } && test -s conftest$ac_exeext &&
19294 $as_test_x conftest$ac_exeext; then
19295 eval "$as_ac_var=yes"
19296else
19297 echo "$as_me: failed program was:" >&5
19298sed 's/^/| /' conftest.$ac_ext >&5
19299
19300 eval "$as_ac_var=no"
19301fi
19302
19303rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19304 conftest$ac_exeext conftest.$ac_ext
19305fi
19306ac_res=`eval echo '${'$as_ac_var'}'`
19307 { echo "$as_me:$LINENO: result: $ac_res" >&5
19308echo "${ECHO_T}$ac_res" >&6; }
19309if test `eval echo '${'$as_ac_var'}'` = yes; then
19310 cat >>confdefs.h <<_ACEOF
19311#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19312_ACEOF
19313
19314fi
19315done
19316
19317
19318
19319
19320
19321
19322
19323for ac_func in endutent getutent getutid getutline pututline setutent
19324do
19325as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19326{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19327echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19328if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19329 echo $ECHO_N "(cached) $ECHO_C" >&6
19330else
19331 cat >conftest.$ac_ext <<_ACEOF
19332/* confdefs.h. */
19333_ACEOF
19334cat confdefs.h >>conftest.$ac_ext
19335cat >>conftest.$ac_ext <<_ACEOF
19336/* end confdefs.h. */
19337/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19339#define $ac_func innocuous_$ac_func
19340
19341/* System header to define __stub macros and hopefully few prototypes,
19342 which can conflict with char $ac_func (); below.
19343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19344 <limits.h> exists even on freestanding compilers. */
19345
19346#ifdef __STDC__
19347# include <limits.h>
19348#else
19349# include <assert.h>
19350#endif
19351
19352#undef $ac_func
19353
19354/* Override any GCC internal prototype to avoid an error.
19355 Use char because int might match the return type of a GCC
19356 builtin and then its argument prototype would still apply. */
19357#ifdef __cplusplus
19358extern "C"
19359#endif
19360char $ac_func ();
19361/* The GNU C library defines this for functions which it implements
19362 to always fail with ENOSYS. Some functions are actually named
19363 something starting with __ and the normal name is an alias. */
19364#if defined __stub_$ac_func || defined __stub___$ac_func
19365choke me
19366#endif
19367
19368int
19369main ()
19370{
19371return $ac_func ();
19372 ;
19373 return 0;
19374}
19375_ACEOF
19376rm -f conftest.$ac_objext conftest$ac_exeext
19377if { (ac_try="$ac_link"
19378case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19381esac
19382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383 (eval "$ac_link") 2>conftest.er1
19384 ac_status=$?
19385 grep -v '^ *+' conftest.er1 >conftest.err
19386 rm -f conftest.er1
19387 cat conftest.err >&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); } && {
19390 test -z "$ac_c_werror_flag" ||
19391 test ! -s conftest.err
19392 } && test -s conftest$ac_exeext &&
19393 $as_test_x conftest$ac_exeext; then
19394 eval "$as_ac_var=yes"
19395else
19396 echo "$as_me: failed program was:" >&5
19397sed 's/^/| /' conftest.$ac_ext >&5
19398
19399 eval "$as_ac_var=no"
19400fi
19401
19402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19403 conftest$ac_exeext conftest.$ac_ext
19404fi
19405ac_res=`eval echo '${'$as_ac_var'}'`
19406 { echo "$as_me:$LINENO: result: $ac_res" >&5
19407echo "${ECHO_T}$ac_res" >&6; }
19408if test `eval echo '${'$as_ac_var'}'` = yes; then
19409 cat >>confdefs.h <<_ACEOF
19410#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19411_ACEOF
19412
19413fi
19414done
19415
19416
19417for ac_func in utmpname
19418do
19419as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19420{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19421echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19422if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19424else
19425 cat >conftest.$ac_ext <<_ACEOF
19426/* confdefs.h. */
19427_ACEOF
19428cat confdefs.h >>conftest.$ac_ext
19429cat >>conftest.$ac_ext <<_ACEOF
19430/* end confdefs.h. */
19431/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19433#define $ac_func innocuous_$ac_func
19434
19435/* System header to define __stub macros and hopefully few prototypes,
19436 which can conflict with char $ac_func (); below.
19437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19438 <limits.h> exists even on freestanding compilers. */
19439
19440#ifdef __STDC__
19441# include <limits.h>
19442#else
19443# include <assert.h>
19444#endif
19445
19446#undef $ac_func
19447
19448/* Override any GCC internal prototype to avoid an error.
19449 Use char because int might match the return type of a GCC
19450 builtin and then its argument prototype would still apply. */
19451#ifdef __cplusplus
19452extern "C"
19453#endif
19454char $ac_func ();
19455/* The GNU C library defines this for functions which it implements
19456 to always fail with ENOSYS. Some functions are actually named
19457 something starting with __ and the normal name is an alias. */
19458#if defined __stub_$ac_func || defined __stub___$ac_func
19459choke me
19460#endif
19461
19462int
19463main ()
19464{
19465return $ac_func ();
19466 ;
19467 return 0;
19468}
19469_ACEOF
19470rm -f conftest.$ac_objext conftest$ac_exeext
19471if { (ac_try="$ac_link"
19472case "(($ac_try" in
19473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474 *) ac_try_echo=$ac_try;;
19475esac
19476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477 (eval "$ac_link") 2>conftest.er1
19478 ac_status=$?
19479 grep -v '^ *+' conftest.er1 >conftest.err
19480 rm -f conftest.er1
19481 cat conftest.err >&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } && {
19484 test -z "$ac_c_werror_flag" ||
19485 test ! -s conftest.err
19486 } && test -s conftest$ac_exeext &&
19487 $as_test_x conftest$ac_exeext; then
19488 eval "$as_ac_var=yes"
19489else
19490 echo "$as_me: failed program was:" >&5
19491sed 's/^/| /' conftest.$ac_ext >&5
19492
19493 eval "$as_ac_var=no"
19494fi
19495
19496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19497 conftest$ac_exeext conftest.$ac_ext
19498fi
19499ac_res=`eval echo '${'$as_ac_var'}'`
19500 { echo "$as_me:$LINENO: result: $ac_res" >&5
19501echo "${ECHO_T}$ac_res" >&6; }
19502if test `eval echo '${'$as_ac_var'}'` = yes; then
19503 cat >>confdefs.h <<_ACEOF
19504#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19505_ACEOF
19506
19507fi
19508done
19509
19510
19511
19512
19513
19514
19515
19516for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
19517do
19518as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19519{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19520echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19521if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19522 echo $ECHO_N "(cached) $ECHO_C" >&6
19523else
19524 cat >conftest.$ac_ext <<_ACEOF
19525/* confdefs.h. */
19526_ACEOF
19527cat confdefs.h >>conftest.$ac_ext
19528cat >>conftest.$ac_ext <<_ACEOF
19529/* end confdefs.h. */
19530/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19532#define $ac_func innocuous_$ac_func
19533
19534/* System header to define __stub macros and hopefully few prototypes,
19535 which can conflict with char $ac_func (); below.
19536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19537 <limits.h> exists even on freestanding compilers. */
19538
19539#ifdef __STDC__
19540# include <limits.h>
19541#else
19542# include <assert.h>
19543#endif
19544
19545#undef $ac_func
19546
19547/* Override any GCC internal prototype to avoid an error.
19548 Use char because int might match the return type of a GCC
19549 builtin and then its argument prototype would still apply. */
19550#ifdef __cplusplus
19551extern "C"
19552#endif
19553char $ac_func ();
19554/* The GNU C library defines this for functions which it implements
19555 to always fail with ENOSYS. Some functions are actually named
19556 something starting with __ and the normal name is an alias. */
19557#if defined __stub_$ac_func || defined __stub___$ac_func
19558choke me
19559#endif
19560
19561int
19562main ()
19563{
19564return $ac_func ();
19565 ;
19566 return 0;
19567}
19568_ACEOF
19569rm -f conftest.$ac_objext conftest$ac_exeext
19570if { (ac_try="$ac_link"
19571case "(($ac_try" in
19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573 *) ac_try_echo=$ac_try;;
19574esac
19575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576 (eval "$ac_link") 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } && {
19583 test -z "$ac_c_werror_flag" ||
19584 test ! -s conftest.err
19585 } && test -s conftest$ac_exeext &&
19586 $as_test_x conftest$ac_exeext; then
19587 eval "$as_ac_var=yes"
19588else
19589 echo "$as_me: failed program was:" >&5
19590sed 's/^/| /' conftest.$ac_ext >&5
19591
19592 eval "$as_ac_var=no"
19593fi
19594
19595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19596 conftest$ac_exeext conftest.$ac_ext
19597fi
19598ac_res=`eval echo '${'$as_ac_var'}'`
19599 { echo "$as_me:$LINENO: result: $ac_res" >&5
19600echo "${ECHO_T}$ac_res" >&6; }
19601if test `eval echo '${'$as_ac_var'}'` = yes; then
19602 cat >>confdefs.h <<_ACEOF
19603#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19604_ACEOF
19605
19606fi
19607done
19608
19609
19610
19611
19612for ac_func in setutxdb setutxent utmpxname
19613do
19614as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19615{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19616echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19617if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19619else
19620 cat >conftest.$ac_ext <<_ACEOF
19621/* confdefs.h. */
19622_ACEOF
19623cat confdefs.h >>conftest.$ac_ext
19624cat >>conftest.$ac_ext <<_ACEOF
19625/* end confdefs.h. */
19626/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19628#define $ac_func innocuous_$ac_func
19629
19630/* System header to define __stub macros and hopefully few prototypes,
19631 which can conflict with char $ac_func (); below.
19632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19633 <limits.h> exists even on freestanding compilers. */
19634
19635#ifdef __STDC__
19636# include <limits.h>
19637#else
19638# include <assert.h>
19639#endif
19640
19641#undef $ac_func
19642
19643/* Override any GCC internal prototype to avoid an error.
19644 Use char because int might match the return type of a GCC
19645 builtin and then its argument prototype would still apply. */
19646#ifdef __cplusplus
19647extern "C"
19648#endif
19649char $ac_func ();
19650/* The GNU C library defines this for functions which it implements
19651 to always fail with ENOSYS. Some functions are actually named
19652 something starting with __ and the normal name is an alias. */
19653#if defined __stub_$ac_func || defined __stub___$ac_func
19654choke me
19655#endif
19656
19657int
19658main ()
19659{
19660return $ac_func ();
19661 ;
19662 return 0;
19663}
19664_ACEOF
19665rm -f conftest.$ac_objext conftest$ac_exeext
19666if { (ac_try="$ac_link"
19667case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19670esac
19671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_link") 2>conftest.er1
19673 ac_status=$?
19674 grep -v '^ *+' conftest.er1 >conftest.err
19675 rm -f conftest.er1
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } && {
19679 test -z "$ac_c_werror_flag" ||
19680 test ! -s conftest.err
19681 } && test -s conftest$ac_exeext &&
19682 $as_test_x conftest$ac_exeext; then
19683 eval "$as_ac_var=yes"
19684else
19685 echo "$as_me: failed program was:" >&5
19686sed 's/^/| /' conftest.$ac_ext >&5
19687
19688 eval "$as_ac_var=no"
19689fi
19690
19691rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19692 conftest$ac_exeext conftest.$ac_ext
19693fi
19694ac_res=`eval echo '${'$as_ac_var'}'`
19695 { echo "$as_me:$LINENO: result: $ac_res" >&5
19696echo "${ECHO_T}$ac_res" >&6; }
19697if test `eval echo '${'$as_ac_var'}'` = yes; then
19698 cat >>confdefs.h <<_ACEOF
19699#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19700_ACEOF
19701
19702fi
19703done
19704
19705
19706for ac_func in getlastlogxbyname
19707do
19708as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19709{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19710echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19711if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19713else
19714 cat >conftest.$ac_ext <<_ACEOF
19715/* confdefs.h. */
19716_ACEOF
19717cat confdefs.h >>conftest.$ac_ext
19718cat >>conftest.$ac_ext <<_ACEOF
19719/* end confdefs.h. */
19720/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19722#define $ac_func innocuous_$ac_func
19723
19724/* System header to define __stub macros and hopefully few prototypes,
19725 which can conflict with char $ac_func (); below.
19726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19727 <limits.h> exists even on freestanding compilers. */
19728
19729#ifdef __STDC__
19730# include <limits.h>
19731#else
19732# include <assert.h>
19733#endif
19734
19735#undef $ac_func
19736
19737/* Override any GCC internal prototype to avoid an error.
19738 Use char because int might match the return type of a GCC
19739 builtin and then its argument prototype would still apply. */
19740#ifdef __cplusplus
19741extern "C"
19742#endif
19743char $ac_func ();
19744/* The GNU C library defines this for functions which it implements
19745 to always fail with ENOSYS. Some functions are actually named
19746 something starting with __ and the normal name is an alias. */
19747#if defined __stub_$ac_func || defined __stub___$ac_func
19748choke me
19749#endif
19750
19751int
19752main ()
19753{
19754return $ac_func ();
19755 ;
19756 return 0;
19757}
19758_ACEOF
19759rm -f conftest.$ac_objext conftest$ac_exeext
19760if { (ac_try="$ac_link"
19761case "(($ac_try" in
19762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19763 *) ac_try_echo=$ac_try;;
19764esac
19765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19766 (eval "$ac_link") 2>conftest.er1
19767 ac_status=$?
19768 grep -v '^ *+' conftest.er1 >conftest.err
19769 rm -f conftest.er1
19770 cat conftest.err >&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); } && {
19773 test -z "$ac_c_werror_flag" ||
19774 test ! -s conftest.err
19775 } && test -s conftest$ac_exeext &&
19776 $as_test_x conftest$ac_exeext; then
19777 eval "$as_ac_var=yes"
19778else
19779 echo "$as_me: failed program was:" >&5
19780sed 's/^/| /' conftest.$ac_ext >&5
19781
19782 eval "$as_ac_var=no"
19783fi
19784
19785rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19786 conftest$ac_exeext conftest.$ac_ext
19787fi
19788ac_res=`eval echo '${'$as_ac_var'}'`
19789 { echo "$as_me:$LINENO: result: $ac_res" >&5
19790echo "${ECHO_T}$ac_res" >&6; }
19791if test `eval echo '${'$as_ac_var'}'` = yes; then
19792 cat >>confdefs.h <<_ACEOF
19793#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19794_ACEOF
19795
19796fi
19797done
19798
19799
19800{ echo "$as_me:$LINENO: checking for daemon" >&5
19801echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
19802if test "${ac_cv_func_daemon+set}" = set; then
19803 echo $ECHO_N "(cached) $ECHO_C" >&6
19804else
19805 cat >conftest.$ac_ext <<_ACEOF
19806/* confdefs.h. */
19807_ACEOF
19808cat confdefs.h >>conftest.$ac_ext
19809cat >>conftest.$ac_ext <<_ACEOF
19810/* end confdefs.h. */
19811/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
19812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19813#define daemon innocuous_daemon
19814
19815/* System header to define __stub macros and hopefully few prototypes,
19816 which can conflict with char daemon (); below.
19817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19818 <limits.h> exists even on freestanding compilers. */
19819
19820#ifdef __STDC__
19821# include <limits.h>
19822#else
19823# include <assert.h>
19824#endif
19825
19826#undef daemon
19827
19828/* Override any GCC internal prototype to avoid an error.
19829 Use char because int might match the return type of a GCC
19830 builtin and then its argument prototype would still apply. */
19831#ifdef __cplusplus
19832extern "C"
19833#endif
19834char daemon ();
19835/* The GNU C library defines this for functions which it implements
19836 to always fail with ENOSYS. Some functions are actually named
19837 something starting with __ and the normal name is an alias. */
19838#if defined __stub_daemon || defined __stub___daemon
19839choke me
19840#endif
19841
19842int
19843main ()
19844{
19845return daemon ();
19846 ;
19847 return 0;
19848}
19849_ACEOF
19850rm -f conftest.$ac_objext conftest$ac_exeext
19851if { (ac_try="$ac_link"
19852case "(($ac_try" in
19853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854 *) ac_try_echo=$ac_try;;
19855esac
19856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857 (eval "$ac_link") 2>conftest.er1
19858 ac_status=$?
19859 grep -v '^ *+' conftest.er1 >conftest.err
19860 rm -f conftest.er1
19861 cat conftest.err >&5
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); } && {
19864 test -z "$ac_c_werror_flag" ||
19865 test ! -s conftest.err
19866 } && test -s conftest$ac_exeext &&
19867 $as_test_x conftest$ac_exeext; then
19868 ac_cv_func_daemon=yes
19869else
19870 echo "$as_me: failed program was:" >&5
19871sed 's/^/| /' conftest.$ac_ext >&5
19872
19873 ac_cv_func_daemon=no
19874fi
19875
19876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19877 conftest$ac_exeext conftest.$ac_ext
19878fi
19879{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
19880echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
19881if test $ac_cv_func_daemon = yes; then
19882
19883cat >>confdefs.h <<\_ACEOF
19884#define HAVE_DAEMON 1
19885_ACEOF
19886
19887else
19888 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
19889echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
19890if test "${ac_cv_lib_bsd_daemon+set}" = set; then
19891 echo $ECHO_N "(cached) $ECHO_C" >&6
19892else
19893 ac_check_lib_save_LIBS=$LIBS
19894LIBS="-lbsd $LIBS"
19895cat >conftest.$ac_ext <<_ACEOF
19896/* confdefs.h. */
19897_ACEOF
19898cat confdefs.h >>conftest.$ac_ext
19899cat >>conftest.$ac_ext <<_ACEOF
19900/* end confdefs.h. */
19901
19902/* Override any GCC internal prototype to avoid an error.
19903 Use char because int might match the return type of a GCC
19904 builtin and then its argument prototype would still apply. */
19905#ifdef __cplusplus
19906extern "C"
19907#endif
19908char daemon ();
19909int
19910main ()
19911{
19912return daemon ();
19913 ;
19914 return 0;
19915}
19916_ACEOF
19917rm -f conftest.$ac_objext conftest$ac_exeext
19918if { (ac_try="$ac_link"
19919case "(($ac_try" in
19920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19921 *) ac_try_echo=$ac_try;;
19922esac
19923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19924 (eval "$ac_link") 2>conftest.er1
19925 ac_status=$?
19926 grep -v '^ *+' conftest.er1 >conftest.err
19927 rm -f conftest.er1
19928 cat conftest.err >&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); } && {
19931 test -z "$ac_c_werror_flag" ||
19932 test ! -s conftest.err
19933 } && test -s conftest$ac_exeext &&
19934 $as_test_x conftest$ac_exeext; then
19935 ac_cv_lib_bsd_daemon=yes
19936else
19937 echo "$as_me: failed program was:" >&5
19938sed 's/^/| /' conftest.$ac_ext >&5
19939
19940 ac_cv_lib_bsd_daemon=no
19941fi
19942
19943rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19944 conftest$ac_exeext conftest.$ac_ext
19945LIBS=$ac_check_lib_save_LIBS
19946fi
19947{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
19948echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
19949if test $ac_cv_lib_bsd_daemon = yes; then
19950 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
19951#define HAVE_DAEMON 1
19952_ACEOF
19953
19954fi
19955
19956
19957fi
19958
19959
19960{ echo "$as_me:$LINENO: checking for getpagesize" >&5
19961echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
19962if test "${ac_cv_func_getpagesize+set}" = set; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19964else
19965 cat >conftest.$ac_ext <<_ACEOF
19966/* confdefs.h. */
19967_ACEOF
19968cat confdefs.h >>conftest.$ac_ext
19969cat >>conftest.$ac_ext <<_ACEOF
19970/* end confdefs.h. */
19971/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
19972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19973#define getpagesize innocuous_getpagesize
19974
19975/* System header to define __stub macros and hopefully few prototypes,
19976 which can conflict with char getpagesize (); below.
19977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19978 <limits.h> exists even on freestanding compilers. */
19979
19980#ifdef __STDC__
19981# include <limits.h>
19982#else
19983# include <assert.h>
19984#endif
19985
19986#undef getpagesize
19987
19988/* Override any GCC internal prototype to avoid an error.
19989 Use char because int might match the return type of a GCC
19990 builtin and then its argument prototype would still apply. */
19991#ifdef __cplusplus
19992extern "C"
19993#endif
19994char getpagesize ();
19995/* The GNU C library defines this for functions which it implements
19996 to always fail with ENOSYS. Some functions are actually named
19997 something starting with __ and the normal name is an alias. */
19998#if defined __stub_getpagesize || defined __stub___getpagesize
19999choke me
20000#endif
20001
20002int
20003main ()
20004{
20005return getpagesize ();
20006 ;
20007 return 0;
20008}
20009_ACEOF
20010rm -f conftest.$ac_objext conftest$ac_exeext
20011if { (ac_try="$ac_link"
20012case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20015esac
20016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017 (eval "$ac_link") 2>conftest.er1
20018 ac_status=$?
20019 grep -v '^ *+' conftest.er1 >conftest.err
20020 rm -f conftest.er1
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } && {
20024 test -z "$ac_c_werror_flag" ||
20025 test ! -s conftest.err
20026 } && test -s conftest$ac_exeext &&
20027 $as_test_x conftest$ac_exeext; then
20028 ac_cv_func_getpagesize=yes
20029else
20030 echo "$as_me: failed program was:" >&5
20031sed 's/^/| /' conftest.$ac_ext >&5
20032
20033 ac_cv_func_getpagesize=no
20034fi
20035
20036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20037 conftest$ac_exeext conftest.$ac_ext
20038fi
20039{ echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
20040echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
20041if test $ac_cv_func_getpagesize = yes; then
20042
20043cat >>confdefs.h <<\_ACEOF
20044#define HAVE_GETPAGESIZE 1
20045_ACEOF
20046
20047else
20048 { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
20049echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
20050if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
20051 echo $ECHO_N "(cached) $ECHO_C" >&6
20052else
20053 ac_check_lib_save_LIBS=$LIBS
20054LIBS="-lucb $LIBS"
20055cat >conftest.$ac_ext <<_ACEOF
20056/* confdefs.h. */
20057_ACEOF
20058cat confdefs.h >>conftest.$ac_ext
20059cat >>conftest.$ac_ext <<_ACEOF
20060/* end confdefs.h. */
20061
20062/* Override any GCC internal prototype to avoid an error.
20063 Use char because int might match the return type of a GCC
20064 builtin and then its argument prototype would still apply. */
20065#ifdef __cplusplus
20066extern "C"
20067#endif
20068char getpagesize ();
20069int
20070main ()
20071{
20072return getpagesize ();
20073 ;
20074 return 0;
20075}
20076_ACEOF
20077rm -f conftest.$ac_objext conftest$ac_exeext
20078if { (ac_try="$ac_link"
20079case "(($ac_try" in
20080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081 *) ac_try_echo=$ac_try;;
20082esac
20083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084 (eval "$ac_link") 2>conftest.er1
20085 ac_status=$?
20086 grep -v '^ *+' conftest.er1 >conftest.err
20087 rm -f conftest.er1
20088 cat conftest.err >&5
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); } && {
20091 test -z "$ac_c_werror_flag" ||
20092 test ! -s conftest.err
20093 } && test -s conftest$ac_exeext &&
20094 $as_test_x conftest$ac_exeext; then
20095 ac_cv_lib_ucb_getpagesize=yes
20096else
20097 echo "$as_me: failed program was:" >&5
20098sed 's/^/| /' conftest.$ac_ext >&5
20099
20100 ac_cv_lib_ucb_getpagesize=no
20101fi
20102
20103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20104 conftest$ac_exeext conftest.$ac_ext
20105LIBS=$ac_check_lib_save_LIBS
20106fi
20107{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
20108echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
20109if test $ac_cv_lib_ucb_getpagesize = yes; then
20110 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
20111#define HAVE_GETPAGESIZE 1
20112_ACEOF
20113
20114fi
20115
20116
20117fi
20118
20119
20120# Check for broken snprintf
20121if test "x$ac_cv_func_snprintf" = "xyes" ; then
20122 { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
20123echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
20124 if test "$cross_compiling" = yes; then
20125 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
20126echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
20127
20128else
20129 cat >conftest.$ac_ext <<_ACEOF
20130/* confdefs.h. */
20131_ACEOF
20132cat confdefs.h >>conftest.$ac_ext
20133cat >>conftest.$ac_ext <<_ACEOF
20134/* end confdefs.h. */
20135 #include <stdio.h>
20136int
20137main ()
20138{
20139
20140 char b[5];
20141 snprintf(b,5,"123456789");
20142 exit(b[4]!='\0');
20143
20144 ;
20145 return 0;
20146}
20147_ACEOF
20148rm -f conftest$ac_exeext
20149if { (ac_try="$ac_link"
20150case "(($ac_try" in
20151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20152 *) ac_try_echo=$ac_try;;
20153esac
20154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20155 (eval "$ac_link") 2>&5
20156 ac_status=$?
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20159 { (case "(($ac_try" in
20160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20162esac
20163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164 (eval "$ac_try") 2>&5
20165 ac_status=$?
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; }; then
20168 { echo "$as_me:$LINENO: result: yes" >&5
20169echo "${ECHO_T}yes" >&6; }
20170else
20171 echo "$as_me: program exited with status $ac_status" >&5
20172echo "$as_me: failed program was:" >&5
20173sed 's/^/| /' conftest.$ac_ext >&5
20174
20175( exit $ac_status )
20176
20177 { echo "$as_me:$LINENO: result: no" >&5
20178echo "${ECHO_T}no" >&6; }
20179
20180cat >>confdefs.h <<\_ACEOF
20181#define BROKEN_SNPRINTF 1
20182_ACEOF
20183
20184 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
20185echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
20186
20187fi
20188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20189fi
20190
20191
20192fi
20193
20194# We depend on vsnprintf returning the right thing on overflow: the
20195# number of characters it tried to create (as per SUSv3)
20196if test "x$ac_cv_func_vsnprintf" = "xyes" ; then
20197 { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
20198echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
20199 if test "$cross_compiling" = yes; then
20200 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
20201echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
20202
20203else
20204 cat >conftest.$ac_ext <<_ACEOF
20205/* confdefs.h. */
20206_ACEOF
20207cat confdefs.h >>conftest.$ac_ext
20208cat >>conftest.$ac_ext <<_ACEOF
20209/* end confdefs.h. */
20210
20211#include <sys/types.h>
20212#include <stdio.h>
20213#include <stdarg.h>
20214
20215int x_snprintf(char *str, size_t count, const char *fmt, ...)
20216{
20217 size_t ret;
20218 va_list ap;
20219
20220 va_start(ap, fmt);
20221 ret = vsnprintf(str, count, fmt, ap);
20222 va_end(ap);
20223 return ret;
20224}
20225
20226int
20227main ()
20228{
20229
20230char x[1];
20231if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11)
20232 return 1;
20233if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11)
20234 return 1;
20235return 0;
20236
20237 ;
20238 return 0;
20239}
20240_ACEOF
20241rm -f conftest$ac_exeext
20242if { (ac_try="$ac_link"
20243case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20246esac
20247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_link") 2>&5
20249 ac_status=$?
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20252 { (case "(($ac_try" in
20253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254 *) ac_try_echo=$ac_try;;
20255esac
20256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257 (eval "$ac_try") 2>&5
20258 ac_status=$?
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); }; }; then
20261 { echo "$as_me:$LINENO: result: yes" >&5
20262echo "${ECHO_T}yes" >&6; }
20263else
20264 echo "$as_me: program exited with status $ac_status" >&5
20265echo "$as_me: failed program was:" >&5
20266sed 's/^/| /' conftest.$ac_ext >&5
20267
20268( exit $ac_status )
20269
20270 { echo "$as_me:$LINENO: result: no" >&5
20271echo "${ECHO_T}no" >&6; }
20272
20273cat >>confdefs.h <<\_ACEOF
20274#define BROKEN_SNPRINTF 1
20275_ACEOF
20276
20277 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
20278echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
20279
20280fi
20281rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20282fi
20283
20284
20285fi
20286
20287# On systems where [v]snprintf is broken, but is declared in stdio,
20288# check that the fmt argument is const char * or just char *.
20289# This is only useful for when BROKEN_SNPRINTF
20290{ echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
20291echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
20292cat >conftest.$ac_ext <<_ACEOF
20293/* confdefs.h. */
20294_ACEOF
20295cat confdefs.h >>conftest.$ac_ext
20296cat >>conftest.$ac_ext <<_ACEOF
20297/* end confdefs.h. */
20298
20299#include <stdio.h>
20300int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
20301
20302int
20303main ()
20304{
20305
20306 snprintf(0, 0, 0);
20307
20308 ;
20309 return 0;
20310}
20311_ACEOF
20312rm -f conftest.$ac_objext
20313if { (ac_try="$ac_compile"
20314case "(($ac_try" in
20315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316 *) ac_try_echo=$ac_try;;
20317esac
20318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319 (eval "$ac_compile") 2>conftest.er1
20320 ac_status=$?
20321 grep -v '^ *+' conftest.er1 >conftest.err
20322 rm -f conftest.er1
20323 cat conftest.err >&5
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); } && {
20326 test -z "$ac_c_werror_flag" ||
20327 test ! -s conftest.err
20328 } && test -s conftest.$ac_objext; then
20329 { echo "$as_me:$LINENO: result: yes" >&5
20330echo "${ECHO_T}yes" >&6; }
20331
20332cat >>confdefs.h <<\_ACEOF
20333#define SNPRINTF_CONST const
20334_ACEOF
20335
20336else
20337 echo "$as_me: failed program was:" >&5
20338sed 's/^/| /' conftest.$ac_ext >&5
20339
20340 { echo "$as_me:$LINENO: result: no" >&5
20341echo "${ECHO_T}no" >&6; }
20342 cat >>confdefs.h <<\_ACEOF
20343#define SNPRINTF_CONST /* not const */
20344_ACEOF
20345
20346fi
20347
20348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20349
20350# Check for missing getpeereid (or equiv) support
20351NO_PEERCHECK=""
20352if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
20353 { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
20354echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
20355 cat >conftest.$ac_ext <<_ACEOF
20356/* confdefs.h. */
20357_ACEOF
20358cat confdefs.h >>conftest.$ac_ext
20359cat >>conftest.$ac_ext <<_ACEOF
20360/* end confdefs.h. */
20361
20362#include <sys/types.h>
20363#include <sys/socket.h>
20364int
20365main ()
20366{
20367int i = SO_PEERCRED;
20368 ;
20369 return 0;
20370}
20371_ACEOF
20372rm -f conftest.$ac_objext
20373if { (ac_try="$ac_compile"
20374case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20377esac
20378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_compile") 2>conftest.er1
20380 ac_status=$?
20381 grep -v '^ *+' conftest.er1 >conftest.err
20382 rm -f conftest.er1
20383 cat conftest.err >&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } && {
20386 test -z "$ac_c_werror_flag" ||
20387 test ! -s conftest.err
20388 } && test -s conftest.$ac_objext; then
20389 { echo "$as_me:$LINENO: result: yes" >&5
20390echo "${ECHO_T}yes" >&6; }
20391
20392cat >>confdefs.h <<\_ACEOF
20393#define HAVE_SO_PEERCRED 1
20394_ACEOF
20395
20396
20397else
20398 echo "$as_me: failed program was:" >&5
20399sed 's/^/| /' conftest.$ac_ext >&5
20400
20401 { echo "$as_me:$LINENO: result: no" >&5
20402echo "${ECHO_T}no" >&6; }
20403 NO_PEERCHECK=1
20404
20405fi
20406
20407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20408fi
20409
20410if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
20411{ echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
20412echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
20413if test "$cross_compiling" = yes; then
20414
20415 { echo "$as_me:$LINENO: result: yes" >&5
20416echo "${ECHO_T}yes" >&6; }
20417 cat >>confdefs.h <<\_ACEOF
20418#define HAVE_STRICT_MKSTEMP 1
20419_ACEOF
20420
20421
20422
20423else
20424 cat >conftest.$ac_ext <<_ACEOF
20425/* confdefs.h. */
20426_ACEOF
20427cat confdefs.h >>conftest.$ac_ext
20428cat >>conftest.$ac_ext <<_ACEOF
20429/* end confdefs.h. */
20430
20431#include <stdlib.h>
20432
20433int
20434main ()
20435{
20436
20437 char template[]="conftest.mkstemp-test";
20438 if (mkstemp(template) == -1)
20439 exit(1);
20440 unlink(template);
20441 exit(0);
20442
20443 ;
20444 return 0;
20445}
20446_ACEOF
20447rm -f conftest$ac_exeext
20448if { (ac_try="$ac_link"
20449case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20452esac
20453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_link") 2>&5
20455 ac_status=$?
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20458 { (case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20461esac
20462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_try") 2>&5
20464 ac_status=$?
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); }; }; then
20467
20468 { echo "$as_me:$LINENO: result: no" >&5
20469echo "${ECHO_T}no" >&6; }
20470
20471else
20472 echo "$as_me: program exited with status $ac_status" >&5
20473echo "$as_me: failed program was:" >&5
20474sed 's/^/| /' conftest.$ac_ext >&5
20475
20476( exit $ac_status )
20477
20478 { echo "$as_me:$LINENO: result: yes" >&5
20479echo "${ECHO_T}yes" >&6; }
20480
20481cat >>confdefs.h <<\_ACEOF
20482#define HAVE_STRICT_MKSTEMP 1
20483_ACEOF
20484
20485
20486fi
20487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20488fi
20489
20490
20491fi
20492
20493if test ! -z "$check_for_openpty_ctty_bug"; then
20494 { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
20495echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
20496 if test "$cross_compiling" = yes; then
20497
20498 { echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5
20499echo "${ECHO_T}cross-compiling, assuming yes" >&6; }
20500
20501
20502else
20503 cat >conftest.$ac_ext <<_ACEOF
20504/* confdefs.h. */
20505_ACEOF
20506cat confdefs.h >>conftest.$ac_ext
20507cat >>conftest.$ac_ext <<_ACEOF
20508/* end confdefs.h. */
20509
20510#include <stdio.h>
20511#include <sys/fcntl.h>
20512#include <sys/types.h>
20513#include <sys/wait.h>
20514
20515int
20516main ()
20517{
20518
20519 pid_t pid;
20520 int fd, ptyfd, ttyfd, status;
20521
20522 pid = fork();
20523 if (pid < 0) { /* failed */
20524 exit(1);
20525 } else if (pid > 0) { /* parent */
20526 waitpid(pid, &status, 0);
20527 if (WIFEXITED(status))
20528 exit(WEXITSTATUS(status));
20529 else
20530 exit(2);
20531 } else { /* child */
20532 close(0); close(1); close(2);
20533 setsid();
20534 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
20535 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
20536 if (fd >= 0)
20537 exit(3); /* Acquired ctty: broken */
20538 else
20539 exit(0); /* Did not acquire ctty: OK */
20540 }
20541
20542 ;
20543 return 0;
20544}
20545_ACEOF
20546rm -f conftest$ac_exeext
20547if { (ac_try="$ac_link"
20548case "(($ac_try" in
20549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550 *) ac_try_echo=$ac_try;;
20551esac
20552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553 (eval "$ac_link") 2>&5
20554 ac_status=$?
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20557 { (case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20560esac
20561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562 (eval "$ac_try") 2>&5
20563 ac_status=$?
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; }; then
20566
20567 { echo "$as_me:$LINENO: result: yes" >&5
20568echo "${ECHO_T}yes" >&6; }
20569
20570else
20571 echo "$as_me: program exited with status $ac_status" >&5
20572echo "$as_me: failed program was:" >&5
20573sed 's/^/| /' conftest.$ac_ext >&5
20574
20575( exit $ac_status )
20576
20577 { echo "$as_me:$LINENO: result: no" >&5
20578echo "${ECHO_T}no" >&6; }
20579 cat >>confdefs.h <<\_ACEOF
20580#define SSHD_ACQUIRES_CTTY 1
20581_ACEOF
20582
20583
20584fi
20585rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20586fi
20587
20588
20589fi
20590
20591if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
20592 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
20593 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
20594echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
20595 if test "$cross_compiling" = yes; then
20596
20597 { echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5
20598echo "${ECHO_T}cross-compiling, assuming yes" >&6; }
20599
20600
20601else
20602 cat >conftest.$ac_ext <<_ACEOF
20603/* confdefs.h. */
20604_ACEOF
20605cat confdefs.h >>conftest.$ac_ext
20606cat >>conftest.$ac_ext <<_ACEOF
20607/* end confdefs.h. */
20608
20609#include <stdio.h>
20610#include <sys/socket.h>
20611#include <netdb.h>
20612#include <errno.h>
20613#include <netinet/in.h>
20614
20615#define TEST_PORT "2222"
20616
20617int
20618main ()
20619{
20620
20621 int err, sock;
20622 struct addrinfo *gai_ai, *ai, hints;
20623 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
20624
20625 memset(&hints, 0, sizeof(hints));
20626 hints.ai_family = PF_UNSPEC;
20627 hints.ai_socktype = SOCK_STREAM;
20628 hints.ai_flags = AI_PASSIVE;
20629
20630 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
20631 if (err != 0) {
20632 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
20633 exit(1);
20634 }
20635
20636 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
20637 if (ai->ai_family != AF_INET6)
20638 continue;
20639
20640 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
20641 sizeof(ntop), strport, sizeof(strport),
20642 NI_NUMERICHOST|NI_NUMERICSERV);
20643
20644 if (err != 0) {
20645 if (err == EAI_SYSTEM)
20646 perror("getnameinfo EAI_SYSTEM");
20647 else
20648 fprintf(stderr, "getnameinfo failed: %s\n",
20649 gai_strerror(err));
20650 exit(2);
20651 }
20652
20653 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
20654 if (sock < 0)
20655 perror("socket");
20656 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
20657 if (errno == EBADF)
20658 exit(3);
20659 }
20660 }
20661 exit(0);
20662
20663 ;
20664 return 0;
20665}
20666_ACEOF
20667rm -f conftest$ac_exeext
20668if { (ac_try="$ac_link"
20669case "(($ac_try" in
20670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671 *) ac_try_echo=$ac_try;;
20672esac
20673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20674 (eval "$ac_link") 2>&5
20675 ac_status=$?
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20678 { (case "(($ac_try" in
20679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680 *) ac_try_echo=$ac_try;;
20681esac
20682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683 (eval "$ac_try") 2>&5
20684 ac_status=$?
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); }; }; then
20687
20688 { echo "$as_me:$LINENO: result: yes" >&5
20689echo "${ECHO_T}yes" >&6; }
20690
20691else
20692 echo "$as_me: program exited with status $ac_status" >&5
20693echo "$as_me: failed program was:" >&5
20694sed 's/^/| /' conftest.$ac_ext >&5
20695
20696( exit $ac_status )
20697
20698 { echo "$as_me:$LINENO: result: no" >&5
20699echo "${ECHO_T}no" >&6; }
20700 cat >>confdefs.h <<\_ACEOF
20701#define BROKEN_GETADDRINFO 1
20702_ACEOF
20703
20704
20705fi
20706rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20707fi
20708
20709
20710fi
20711
20712if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
20713 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
20714 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
20715echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
20716 if test "$cross_compiling" = yes; then
20717
20718 { echo "$as_me:$LINENO: result: cross-compiling, assuming no" >&5
20719echo "${ECHO_T}cross-compiling, assuming no" >&6; }
20720
20721
20722else
20723 cat >conftest.$ac_ext <<_ACEOF
20724/* confdefs.h. */
20725_ACEOF
20726cat confdefs.h >>conftest.$ac_ext
20727cat >>conftest.$ac_ext <<_ACEOF
20728/* end confdefs.h. */
20729
20730#include <stdio.h>
20731#include <sys/socket.h>
20732#include <netdb.h>
20733#include <errno.h>
20734#include <netinet/in.h>
20735
20736#define TEST_PORT "2222"
20737
20738int
20739main ()
20740{
20741
20742 int err, sock;
20743 struct addrinfo *gai_ai, *ai, hints;
20744 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
20745
20746 memset(&hints, 0, sizeof(hints));
20747 hints.ai_family = PF_UNSPEC;
20748 hints.ai_socktype = SOCK_STREAM;
20749 hints.ai_flags = AI_PASSIVE;
20750
20751 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
20752 if (err != 0) {
20753 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
20754 exit(1);
20755 }
20756
20757 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
20758 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
20759 continue;
20760
20761 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
20762 sizeof(ntop), strport, sizeof(strport),
20763 NI_NUMERICHOST|NI_NUMERICSERV);
20764
20765 if (ai->ai_family == AF_INET && err != 0) {
20766 perror("getnameinfo");
20767 exit(2);
20768 }
20769 }
20770 exit(0);
20771
20772 ;
20773 return 0;
20774}
20775_ACEOF
20776rm -f conftest$ac_exeext
20777if { (ac_try="$ac_link"
20778case "(($ac_try" in
20779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780 *) ac_try_echo=$ac_try;;
20781esac
20782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783 (eval "$ac_link") 2>&5
20784 ac_status=$?
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20787 { (case "(($ac_try" in
20788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789 *) ac_try_echo=$ac_try;;
20790esac
20791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20792 (eval "$ac_try") 2>&5
20793 ac_status=$?
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); }; }; then
20796
20797 { echo "$as_me:$LINENO: result: yes" >&5
20798echo "${ECHO_T}yes" >&6; }
20799
20800cat >>confdefs.h <<\_ACEOF
20801#define AIX_GETNAMEINFO_HACK 1
20802_ACEOF
20803
20804
20805else
20806 echo "$as_me: program exited with status $ac_status" >&5
20807echo "$as_me: failed program was:" >&5
20808sed 's/^/| /' conftest.$ac_ext >&5
20809
20810( exit $ac_status )
20811
20812 { echo "$as_me:$LINENO: result: no" >&5
20813echo "${ECHO_T}no" >&6; }
20814 cat >>confdefs.h <<\_ACEOF
20815#define BROKEN_GETADDRINFO 1
20816_ACEOF
20817
20818
20819fi
20820rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20821fi
20822
20823
20824fi
20825
20826if test "x$ac_cv_func_getaddrinfo" = "xyes"; then
20827 { echo "$as_me:$LINENO: checking whether AI_NUMERICSERV is declared" >&5
20828echo $ECHO_N "checking whether AI_NUMERICSERV is declared... $ECHO_C" >&6; }
20829if test "${ac_cv_have_decl_AI_NUMERICSERV+set}" = set; then
20830 echo $ECHO_N "(cached) $ECHO_C" >&6
20831else
20832 cat >conftest.$ac_ext <<_ACEOF
20833/* confdefs.h. */
20834_ACEOF
20835cat confdefs.h >>conftest.$ac_ext
20836cat >>conftest.$ac_ext <<_ACEOF
20837/* end confdefs.h. */
20838#include <sys/types.h>
20839 #include <sys/socket.h>
20840 #include <netdb.h>
20841
20842int
20843main ()
20844{
20845#ifndef AI_NUMERICSERV
20846 (void) AI_NUMERICSERV;
20847#endif
20848
20849 ;
20850 return 0;
20851}
20852_ACEOF
20853rm -f conftest.$ac_objext
20854if { (ac_try="$ac_compile"
20855case "(($ac_try" in
20856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20857 *) ac_try_echo=$ac_try;;
20858esac
20859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20860 (eval "$ac_compile") 2>conftest.er1
20861 ac_status=$?
20862 grep -v '^ *+' conftest.er1 >conftest.err
20863 rm -f conftest.er1
20864 cat conftest.err >&5
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } && {
20867 test -z "$ac_c_werror_flag" ||
20868 test ! -s conftest.err
20869 } && test -s conftest.$ac_objext; then
20870 ac_cv_have_decl_AI_NUMERICSERV=yes
20871else
20872 echo "$as_me: failed program was:" >&5
20873sed 's/^/| /' conftest.$ac_ext >&5
20874
20875 ac_cv_have_decl_AI_NUMERICSERV=no
20876fi
20877
20878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20879fi
20880{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_NUMERICSERV" >&5
20881echo "${ECHO_T}$ac_cv_have_decl_AI_NUMERICSERV" >&6; }
20882if test $ac_cv_have_decl_AI_NUMERICSERV = yes; then
20883
20884cat >>confdefs.h <<_ACEOF
20885#define HAVE_DECL_AI_NUMERICSERV 1
20886_ACEOF
20887
20888
20889else
20890 cat >>confdefs.h <<_ACEOF
20891#define HAVE_DECL_AI_NUMERICSERV 0
20892_ACEOF
20893
20894
20895fi
20896
20897
20898fi
20899
20900if test "x$check_for_conflicting_getspnam" = "x1"; then
20901 { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
20902echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
20903 cat >conftest.$ac_ext <<_ACEOF
20904/* confdefs.h. */
20905_ACEOF
20906cat confdefs.h >>conftest.$ac_ext
20907cat >>conftest.$ac_ext <<_ACEOF
20908/* end confdefs.h. */
20909 #include <shadow.h>
20910int
20911main ()
20912{
20913 exit(0);
20914 ;
20915 return 0;
20916}
20917_ACEOF
20918rm -f conftest.$ac_objext
20919if { (ac_try="$ac_compile"
20920case "(($ac_try" in
20921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922 *) ac_try_echo=$ac_try;;
20923esac
20924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925 (eval "$ac_compile") 2>conftest.er1
20926 ac_status=$?
20927 grep -v '^ *+' conftest.er1 >conftest.err
20928 rm -f conftest.er1
20929 cat conftest.err >&5
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } && {
20932 test -z "$ac_c_werror_flag" ||
20933 test ! -s conftest.err
20934 } && test -s conftest.$ac_objext; then
20935
20936 { echo "$as_me:$LINENO: result: no" >&5
20937echo "${ECHO_T}no" >&6; }
20938
20939else
20940 echo "$as_me: failed program was:" >&5
20941sed 's/^/| /' conftest.$ac_ext >&5
20942
20943
20944 { echo "$as_me:$LINENO: result: yes" >&5
20945echo "${ECHO_T}yes" >&6; }
20946
20947cat >>confdefs.h <<\_ACEOF
20948#define GETSPNAM_CONFLICTING_DEFS 1
20949_ACEOF
20950
20951
20952
20953fi
20954
20955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20956fi
20957
20958{ echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20959echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
20960if test "${ac_cv_func_getpgrp_void+set}" = set; then
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20962else
20963 # Use it with a single arg.
20964cat >conftest.$ac_ext <<_ACEOF
20965/* confdefs.h. */
20966_ACEOF
20967cat confdefs.h >>conftest.$ac_ext
20968cat >>conftest.$ac_ext <<_ACEOF
20969/* end confdefs.h. */
20970$ac_includes_default
20971int
20972main ()
20973{
20974getpgrp (0);
20975 ;
20976 return 0;
20977}
20978_ACEOF
20979rm -f conftest.$ac_objext
20980if { (ac_try="$ac_compile"
20981case "(($ac_try" in
20982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983 *) ac_try_echo=$ac_try;;
20984esac
20985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20986 (eval "$ac_compile") 2>conftest.er1
20987 ac_status=$?
20988 grep -v '^ *+' conftest.er1 >conftest.err
20989 rm -f conftest.er1
20990 cat conftest.err >&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } && {
20993 test -z "$ac_c_werror_flag" ||
20994 test ! -s conftest.err
20995 } && test -s conftest.$ac_objext; then
20996 ac_cv_func_getpgrp_void=no
20997else
20998 echo "$as_me: failed program was:" >&5
20999sed 's/^/| /' conftest.$ac_ext >&5
21000
21001 ac_cv_func_getpgrp_void=yes
21002fi
21003
21004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21005
21006fi
21007{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
21008echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
21009if test $ac_cv_func_getpgrp_void = yes; then
21010
21011cat >>confdefs.h <<\_ACEOF
21012#define GETPGRP_VOID 1
21013_ACEOF
21014
21015fi
21016
21017
21018# Search for OpenSSL
21019saved_CPPFLAGS="$CPPFLAGS"
21020saved_LDFLAGS="$LDFLAGS"
21021
21022# Check whether --with-ssl-dir was given.
21023if test "${with_ssl_dir+set}" = set; then
21024 withval=$with_ssl_dir;
21025 if test "x$openssl" = "xno" ; then
21026 { { echo "$as_me:$LINENO: error: cannot use --with-ssl-dir when OpenSSL disabled" >&5
21027echo "$as_me: error: cannot use --with-ssl-dir when OpenSSL disabled" >&2;}
21028 { (exit 1); exit 1; }; }
21029 fi
21030 if test "x$withval" != "xno" ; then
21031 case "$withval" in
21032 # Relative paths
21033 ./*|../*) withval="`pwd`/$withval"
21034 esac
21035 if test -d "$withval/lib"; then
21036 if test -n "${need_dash_r}"; then
21037 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
21038 else
21039 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
21040 fi
21041 elif test -d "$withval/lib64"; then
21042 if test -n "${need_dash_r}"; then
21043 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
21044 else
21045 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
21046 fi
21047 else
21048 if test -n "${need_dash_r}"; then
21049 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
21050 else
21051 LDFLAGS="-L${withval} ${LDFLAGS}"
21052 fi
21053 fi
21054 if test -d "$withval/include"; then
21055 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
21056 else
21057 CPPFLAGS="-I${withval} ${CPPFLAGS}"
21058 fi
21059 fi
21060
21061
21062fi
21063
21064
21065
21066# Check whether --with-openssl-header-check was given.
21067if test "${with_openssl_header_check+set}" = set; then
21068 withval=$with_openssl_header_check;
21069 if test "x$withval" = "xno" ; then
21070 openssl_check_nonfatal=1
21071 fi
21072
21073
21074fi
21075
21076
21077openssl_engine=no
21078
21079# Check whether --with-ssl-engine was given.
21080if test "${with_ssl_engine+set}" = set; then
21081 withval=$with_ssl_engine;
21082 if test "x$withval" != "xno" ; then
21083 if test "x$openssl" = "xno" ; then
21084 { { echo "$as_me:$LINENO: error: cannot use --with-ssl-engine when OpenSSL disabled" >&5
21085echo "$as_me: error: cannot use --with-ssl-engine when OpenSSL disabled" >&2;}
21086 { (exit 1); exit 1; }; }
21087 fi
21088 openssl_engine=yes
21089 fi
21090
21091
21092fi
21093
21094
21095if test "x$openssl" = "xyes" ; then
21096 LIBS="-lcrypto $LIBS"
21097 cat >conftest.$ac_ext <<_ACEOF
21098/* confdefs.h. */
21099_ACEOF
21100cat confdefs.h >>conftest.$ac_ext
21101cat >>conftest.$ac_ext <<_ACEOF
21102/* end confdefs.h. */
21103
21104/* Override any GCC internal prototype to avoid an error.
21105 Use char because int might match the return type of a GCC
21106 builtin and then its argument prototype would still apply. */
21107#ifdef __cplusplus
21108extern "C"
21109#endif
21110char RAND_add ();
21111int
21112main ()
21113{
21114return RAND_add ();
21115 ;
21116 return 0;
21117}
21118_ACEOF
21119rm -f conftest.$ac_objext conftest$ac_exeext
21120if { (ac_try="$ac_link"
21121case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21124esac
21125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21126 (eval "$ac_link") 2>conftest.er1
21127 ac_status=$?
21128 grep -v '^ *+' conftest.er1 >conftest.err
21129 rm -f conftest.er1
21130 cat conftest.err >&5
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); } && {
21133 test -z "$ac_c_werror_flag" ||
21134 test ! -s conftest.err
21135 } && test -s conftest$ac_exeext &&
21136 $as_test_x conftest$ac_exeext; then
21137
21138cat >>confdefs.h <<\_ACEOF
21139#define HAVE_OPENSSL 1
21140_ACEOF
21141
21142else
21143 echo "$as_me: failed program was:" >&5
21144sed 's/^/| /' conftest.$ac_ext >&5
21145
21146
21147 if test -n "${need_dash_r}"; then
21148 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
21149 else
21150 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
21151 fi
21152 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
21153 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
21154 { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
21155echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
21156if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
21157 echo $ECHO_N "(cached) $ECHO_C" >&6
21158fi
21159{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
21160echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
21161else
21162 # Is the header compilable?
21163{ echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5
21164echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; }
21165cat >conftest.$ac_ext <<_ACEOF
21166/* confdefs.h. */
21167_ACEOF
21168cat confdefs.h >>conftest.$ac_ext
21169cat >>conftest.$ac_ext <<_ACEOF
21170/* end confdefs.h. */
21171$ac_includes_default
21172#include <openssl/opensslv.h>
21173_ACEOF
21174rm -f conftest.$ac_objext
21175if { (ac_try="$ac_compile"
21176case "(($ac_try" in
21177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178 *) ac_try_echo=$ac_try;;
21179esac
21180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181 (eval "$ac_compile") 2>conftest.er1
21182 ac_status=$?
21183 grep -v '^ *+' conftest.er1 >conftest.err
21184 rm -f conftest.er1
21185 cat conftest.err >&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); } && {
21188 test -z "$ac_c_werror_flag" ||
21189 test ! -s conftest.err
21190 } && test -s conftest.$ac_objext; then
21191 ac_header_compiler=yes
21192else
21193 echo "$as_me: failed program was:" >&5
21194sed 's/^/| /' conftest.$ac_ext >&5
21195
21196 ac_header_compiler=no
21197fi
21198
21199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21200{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21201echo "${ECHO_T}$ac_header_compiler" >&6; }
21202
21203# Is the header present?
21204{ echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5
21205echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; }
21206cat >conftest.$ac_ext <<_ACEOF
21207/* confdefs.h. */
21208_ACEOF
21209cat confdefs.h >>conftest.$ac_ext
21210cat >>conftest.$ac_ext <<_ACEOF
21211/* end confdefs.h. */
21212#include <openssl/opensslv.h>
21213_ACEOF
21214if { (ac_try="$ac_cpp conftest.$ac_ext"
21215case "(($ac_try" in
21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217 *) ac_try_echo=$ac_try;;
21218esac
21219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21221 ac_status=$?
21222 grep -v '^ *+' conftest.er1 >conftest.err
21223 rm -f conftest.er1
21224 cat conftest.err >&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } >/dev/null && {
21227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21228 test ! -s conftest.err
21229 }; then
21230 ac_header_preproc=yes
21231else
21232 echo "$as_me: failed program was:" >&5
21233sed 's/^/| /' conftest.$ac_ext >&5
21234
21235 ac_header_preproc=no
21236fi
21237
21238rm -f conftest.err conftest.$ac_ext
21239{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21240echo "${ECHO_T}$ac_header_preproc" >&6; }
21241
21242# So? What about this header?
21243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21244 yes:no: )
21245 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21246echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21247 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5
21248echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;}
21249 ac_header_preproc=yes
21250 ;;
21251 no:yes:* )
21252 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5
21253echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;}
21254 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5
21255echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;}
21256 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5
21257echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;}
21258 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5
21259echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21260 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5
21261echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;}
21262 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5
21263echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;}
21264 ( cat <<\_ASBOX
21265## ------------------------------------------- ##
21266## Report this to openssh-unix-dev@mindrot.org ##
21267## ------------------------------------------- ##
21268_ASBOX
21269 ) | sed "s/^/$as_me: WARNING: /" >&2
21270 ;;
21271esac
21272{ echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
21273echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
21274if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
21276else
21277 ac_cv_header_openssl_opensslv_h=$ac_header_preproc
21278fi
21279{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
21280echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
21281
21282fi
21283if test $ac_cv_header_openssl_opensslv_h = yes; then
21284 :
21285else
21286 { { echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5
21287echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;}
21288 { (exit 1); exit 1; }; }
21289fi
21290
21291
21292 cat >conftest.$ac_ext <<_ACEOF
21293/* confdefs.h. */
21294_ACEOF
21295cat confdefs.h >>conftest.$ac_ext
21296cat >>conftest.$ac_ext <<_ACEOF
21297/* end confdefs.h. */
21298
21299/* Override any GCC internal prototype to avoid an error.
21300 Use char because int might match the return type of a GCC
21301 builtin and then its argument prototype would still apply. */
21302#ifdef __cplusplus
21303extern "C"
21304#endif
21305char RAND_add ();
21306int
21307main ()
21308{
21309return RAND_add ();
21310 ;
21311 return 0;
21312}
21313_ACEOF
21314rm -f conftest.$ac_objext conftest$ac_exeext
21315if { (ac_try="$ac_link"
21316case "(($ac_try" in
21317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318 *) ac_try_echo=$ac_try;;
21319esac
21320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21321 (eval "$ac_link") 2>conftest.er1
21322 ac_status=$?
21323 grep -v '^ *+' conftest.er1 >conftest.err
21324 rm -f conftest.er1
21325 cat conftest.err >&5
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); } && {
21328 test -z "$ac_c_werror_flag" ||
21329 test ! -s conftest.err
21330 } && test -s conftest$ac_exeext &&
21331 $as_test_x conftest$ac_exeext; then
21332 cat >>confdefs.h <<\_ACEOF
21333#define HAVE_OPENSSL 1
21334_ACEOF
21335
21336else
21337 echo "$as_me: failed program was:" >&5
21338sed 's/^/| /' conftest.$ac_ext >&5
21339
21340
21341 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
21342echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
21343 { (exit 1); exit 1; }; }
21344
21345
21346fi
21347
21348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21349 conftest$ac_exeext conftest.$ac_ext
21350
21351
21352fi
21353
21354rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21355 conftest$ac_exeext conftest.$ac_ext
21356
21357 # Determine OpenSSL header version
21358 { echo "$as_me:$LINENO: checking OpenSSL header version" >&5
21359echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
21360 if test "$cross_compiling" = yes; then
21361
21362 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
21363echo "$as_me: WARNING: cross compiling: not checking" >&2;}
21364
21365
21366else
21367 cat >conftest.$ac_ext <<_ACEOF
21368/* confdefs.h. */
21369_ACEOF
21370cat confdefs.h >>conftest.$ac_ext
21371cat >>conftest.$ac_ext <<_ACEOF
21372/* end confdefs.h. */
21373
21374 #include <stdlib.h>
21375 #include <stdio.h>
21376 #include <string.h>
21377 #include <openssl/opensslv.h>
21378 #define DATA "conftest.sslincver"
21379
21380int
21381main ()
21382{
21383
21384 FILE *fd;
21385 int rc;
21386
21387 fd = fopen(DATA,"w");
21388 if(fd == NULL)
21389 exit(1);
21390
21391 if ((rc = fprintf(fd ,"%08lx (%s)\n",
21392 (unsigned long)OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
21393 exit(1);
21394
21395 exit(0);
21396
21397 ;
21398 return 0;
21399}
21400_ACEOF
21401rm -f conftest$ac_exeext
21402if { (ac_try="$ac_link"
21403case "(($ac_try" in
21404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405 *) ac_try_echo=$ac_try;;
21406esac
21407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21408 (eval "$ac_link") 2>&5
21409 ac_status=$?
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21412 { (case "(($ac_try" in
21413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21414 *) ac_try_echo=$ac_try;;
21415esac
21416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21417 (eval "$ac_try") 2>&5
21418 ac_status=$?
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); }; }; then
21421
21422 ssl_header_ver=`cat conftest.sslincver`
21423 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
21424echo "${ECHO_T}$ssl_header_ver" >&6; }
21425
21426else
21427 echo "$as_me: program exited with status $ac_status" >&5
21428echo "$as_me: failed program was:" >&5
21429sed 's/^/| /' conftest.$ac_ext >&5
21430
21431( exit $ac_status )
21432
21433 { echo "$as_me:$LINENO: result: not found" >&5
21434echo "${ECHO_T}not found" >&6; }
21435 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
21436echo "$as_me: error: OpenSSL version header not found." >&2;}
21437 { (exit 1); exit 1; }; }
21438
21439fi
21440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21441fi
21442
21443
21444
21445 # Determine OpenSSL library version
21446 { echo "$as_me:$LINENO: checking OpenSSL library version" >&5
21447echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
21448 if test "$cross_compiling" = yes; then
21449
21450 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
21451echo "$as_me: WARNING: cross compiling: not checking" >&2;}
21452
21453
21454else
21455 cat >conftest.$ac_ext <<_ACEOF
21456/* confdefs.h. */
21457_ACEOF
21458cat confdefs.h >>conftest.$ac_ext
21459cat >>conftest.$ac_ext <<_ACEOF
21460/* end confdefs.h. */
21461
21462 #include <stdio.h>
21463 #include <string.h>
21464 #include <openssl/opensslv.h>
21465 #include <openssl/crypto.h>
21466 #define DATA "conftest.ssllibver"
21467
21468int
21469main ()
21470{
21471
21472 FILE *fd;
21473 int rc;
21474
21475 fd = fopen(DATA,"w");
21476 if(fd == NULL)
21477 exit(1);
21478
21479 if ((rc = fprintf(fd ,"%08x (%s)\n", SSLeay(),
21480 SSLeay_version(SSLEAY_VERSION))) <0)
21481 exit(1);
21482
21483 exit(0);
21484
21485 ;
21486 return 0;
21487}
21488_ACEOF
21489rm -f conftest$ac_exeext
21490if { (ac_try="$ac_link"
21491case "(($ac_try" in
21492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21493 *) ac_try_echo=$ac_try;;
21494esac
21495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21496 (eval "$ac_link") 2>&5
21497 ac_status=$?
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21500 { (case "(($ac_try" in
21501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502 *) ac_try_echo=$ac_try;;
21503esac
21504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505 (eval "$ac_try") 2>&5
21506 ac_status=$?
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); }; }; then
21509
21510 ssl_library_ver=`cat conftest.ssllibver`
21511 # Check version is supported.
21512 case "$ssl_library_ver" in
21513 0090[0-7]*|009080[0-5]*)
21514 { { echo "$as_me:$LINENO: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&5
21515echo "$as_me: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&2;}
21516 { (exit 1); exit 1; }; }
21517 ;;
21518 *) ;;
21519 esac
21520 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
21521echo "${ECHO_T}$ssl_library_ver" >&6; }
21522
21523else
21524 echo "$as_me: program exited with status $ac_status" >&5
21525echo "$as_me: failed program was:" >&5
21526sed 's/^/| /' conftest.$ac_ext >&5
21527
21528( exit $ac_status )
21529
21530 { echo "$as_me:$LINENO: result: not found" >&5
21531echo "${ECHO_T}not found" >&6; }
21532 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
21533echo "$as_me: error: OpenSSL library not found." >&2;}
21534 { (exit 1); exit 1; }; }
21535
21536fi
21537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21538fi
21539
21540
21541
21542 # Sanity check OpenSSL headers
21543 { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
21544echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
21545 if test "$cross_compiling" = yes; then
21546
21547 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
21548echo "$as_me: WARNING: cross compiling: not checking" >&2;}
21549
21550
21551else
21552 cat >conftest.$ac_ext <<_ACEOF
21553/* confdefs.h. */
21554_ACEOF
21555cat confdefs.h >>conftest.$ac_ext
21556cat >>conftest.$ac_ext <<_ACEOF
21557/* end confdefs.h. */
21558
21559 #include <string.h>
21560 #include <openssl/opensslv.h>
21561 #include <openssl/crypto.h>
21562
21563int
21564main ()
21565{
21566
21567 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
21568
21569 ;
21570 return 0;
21571}
21572_ACEOF
21573rm -f conftest$ac_exeext
21574if { (ac_try="$ac_link"
21575case "(($ac_try" in
21576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577 *) ac_try_echo=$ac_try;;
21578esac
21579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21580 (eval "$ac_link") 2>&5
21581 ac_status=$?
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21584 { (case "(($ac_try" in
21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21587esac
21588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589 (eval "$ac_try") 2>&5
21590 ac_status=$?
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); }; }; then
21593
21594 { echo "$as_me:$LINENO: result: yes" >&5
21595echo "${ECHO_T}yes" >&6; }
21596
21597else
21598 echo "$as_me: program exited with status $ac_status" >&5
21599echo "$as_me: failed program was:" >&5
21600sed 's/^/| /' conftest.$ac_ext >&5
21601
21602( exit $ac_status )
21603
21604 { echo "$as_me:$LINENO: result: no" >&5
21605echo "${ECHO_T}no" >&6; }
21606 if test "x$openssl_check_nonfatal" = "x"; then
21607 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
21608 library. Check config.log for details.
21609 If you are sure your installation is consistent, you can disable the check
21610 by running \"./configure --without-openssl-header-check\".
21611 Also see contrib/findssl.sh for help identifying header/library mismatches.
21612 " >&5
21613echo "$as_me: error: Your OpenSSL headers do not match your
21614 library. Check config.log for details.
21615 If you are sure your installation is consistent, you can disable the check
21616 by running \"./configure --without-openssl-header-check\".
21617 Also see contrib/findssl.sh for help identifying header/library mismatches.
21618 " >&2;}
21619 { (exit 1); exit 1; }; }
21620 else
21621 { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
21622 library. Check config.log for details.
21623 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
21624echo "$as_me: WARNING: Your OpenSSL headers do not match your
21625 library. Check config.log for details.
21626 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
21627 fi
21628
21629fi
21630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21631fi
21632
21633
21634
21635 { echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
21636echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
21637 cat >conftest.$ac_ext <<_ACEOF
21638/* confdefs.h. */
21639_ACEOF
21640cat confdefs.h >>conftest.$ac_ext
21641cat >>conftest.$ac_ext <<_ACEOF
21642/* end confdefs.h. */
21643 #include <openssl/evp.h>
21644int
21645main ()
21646{
21647 SSLeay_add_all_algorithms();
21648 ;
21649 return 0;
21650}
21651_ACEOF
21652rm -f conftest.$ac_objext conftest$ac_exeext
21653if { (ac_try="$ac_link"
21654case "(($ac_try" in
21655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21657esac
21658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659 (eval "$ac_link") 2>conftest.er1
21660 ac_status=$?
21661 grep -v '^ *+' conftest.er1 >conftest.err
21662 rm -f conftest.er1
21663 cat conftest.err >&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } && {
21666 test -z "$ac_c_werror_flag" ||
21667 test ! -s conftest.err
21668 } && test -s conftest$ac_exeext &&
21669 $as_test_x conftest$ac_exeext; then
21670
21671 { echo "$as_me:$LINENO: result: yes" >&5
21672echo "${ECHO_T}yes" >&6; }
21673
21674else
21675 echo "$as_me: failed program was:" >&5
21676sed 's/^/| /' conftest.$ac_ext >&5
21677
21678
21679 { echo "$as_me:$LINENO: result: no" >&5
21680echo "${ECHO_T}no" >&6; }
21681 saved_LIBS="$LIBS"
21682 LIBS="$LIBS -ldl"
21683 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
21684echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
21685 cat >conftest.$ac_ext <<_ACEOF
21686/* confdefs.h. */
21687_ACEOF
21688cat confdefs.h >>conftest.$ac_ext
21689cat >>conftest.$ac_ext <<_ACEOF
21690/* end confdefs.h. */
21691 #include <openssl/evp.h>
21692int
21693main ()
21694{
21695 SSLeay_add_all_algorithms();
21696 ;
21697 return 0;
21698}
21699_ACEOF
21700rm -f conftest.$ac_objext conftest$ac_exeext
21701if { (ac_try="$ac_link"
21702case "(($ac_try" in
21703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704 *) ac_try_echo=$ac_try;;
21705esac
21706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21707 (eval "$ac_link") 2>conftest.er1
21708 ac_status=$?
21709 grep -v '^ *+' conftest.er1 >conftest.err
21710 rm -f conftest.er1
21711 cat conftest.err >&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } && {
21714 test -z "$ac_c_werror_flag" ||
21715 test ! -s conftest.err
21716 } && test -s conftest$ac_exeext &&
21717 $as_test_x conftest$ac_exeext; then
21718
21719 { echo "$as_me:$LINENO: result: yes" >&5
21720echo "${ECHO_T}yes" >&6; }
21721
21722else
21723 echo "$as_me: failed program was:" >&5
21724sed 's/^/| /' conftest.$ac_ext >&5
21725
21726
21727 { echo "$as_me:$LINENO: result: no" >&5
21728echo "${ECHO_T}no" >&6; }
21729 LIBS="$saved_LIBS"
21730
21731
21732fi
21733
21734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21735 conftest$ac_exeext conftest.$ac_ext
21736
21737
21738fi
21739
21740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21741 conftest$ac_exeext conftest.$ac_ext
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753for ac_func in \
21754 BN_is_prime_ex \
21755 DSA_generate_parameters_ex \
21756 EVP_DigestInit_ex \
21757 EVP_DigestFinal_ex \
21758 EVP_MD_CTX_init \
21759 EVP_MD_CTX_cleanup \
21760 EVP_MD_CTX_copy_ex \
21761 HMAC_CTX_init \
21762 RSA_generate_key_ex \
21763 RSA_get_default_method \
21764
21765do
21766as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21767{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21768echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21769if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21771else
21772 cat >conftest.$ac_ext <<_ACEOF
21773/* confdefs.h. */
21774_ACEOF
21775cat confdefs.h >>conftest.$ac_ext
21776cat >>conftest.$ac_ext <<_ACEOF
21777/* end confdefs.h. */
21778/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21780#define $ac_func innocuous_$ac_func
21781
21782/* System header to define __stub macros and hopefully few prototypes,
21783 which can conflict with char $ac_func (); below.
21784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21785 <limits.h> exists even on freestanding compilers. */
21786
21787#ifdef __STDC__
21788# include <limits.h>
21789#else
21790# include <assert.h>
21791#endif
21792
21793#undef $ac_func
21794
21795/* Override any GCC internal prototype to avoid an error.
21796 Use char because int might match the return type of a GCC
21797 builtin and then its argument prototype would still apply. */
21798#ifdef __cplusplus
21799extern "C"
21800#endif
21801char $ac_func ();
21802/* The GNU C library defines this for functions which it implements
21803 to always fail with ENOSYS. Some functions are actually named
21804 something starting with __ and the normal name is an alias. */
21805#if defined __stub_$ac_func || defined __stub___$ac_func
21806choke me
21807#endif
21808
21809int
21810main ()
21811{
21812return $ac_func ();
21813 ;
21814 return 0;
21815}
21816_ACEOF
21817rm -f conftest.$ac_objext conftest$ac_exeext
21818if { (ac_try="$ac_link"
21819case "(($ac_try" in
21820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821 *) ac_try_echo=$ac_try;;
21822esac
21823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21824 (eval "$ac_link") 2>conftest.er1
21825 ac_status=$?
21826 grep -v '^ *+' conftest.er1 >conftest.err
21827 rm -f conftest.er1
21828 cat conftest.err >&5
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); } && {
21831 test -z "$ac_c_werror_flag" ||
21832 test ! -s conftest.err
21833 } && test -s conftest$ac_exeext &&
21834 $as_test_x conftest$ac_exeext; then
21835 eval "$as_ac_var=yes"
21836else
21837 echo "$as_me: failed program was:" >&5
21838sed 's/^/| /' conftest.$ac_ext >&5
21839
21840 eval "$as_ac_var=no"
21841fi
21842
21843rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21844 conftest$ac_exeext conftest.$ac_ext
21845fi
21846ac_res=`eval echo '${'$as_ac_var'}'`
21847 { echo "$as_me:$LINENO: result: $ac_res" >&5
21848echo "${ECHO_T}$ac_res" >&6; }
21849if test `eval echo '${'$as_ac_var'}'` = yes; then
21850 cat >>confdefs.h <<_ACEOF
21851#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21852_ACEOF
21853
21854fi
21855done
21856
21857
21858 if test "x$openssl_engine" = "xyes" ; then
21859 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
21860echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
21861 cat >conftest.$ac_ext <<_ACEOF
21862/* confdefs.h. */
21863_ACEOF
21864cat confdefs.h >>conftest.$ac_ext
21865cat >>conftest.$ac_ext <<_ACEOF
21866/* end confdefs.h. */
21867
21868 #include <openssl/engine.h>
21869
21870int
21871main ()
21872{
21873
21874 ENGINE_load_builtin_engines();
21875 ENGINE_register_all_complete();
21876
21877 ;
21878 return 0;
21879}
21880_ACEOF
21881rm -f conftest.$ac_objext
21882if { (ac_try="$ac_compile"
21883case "(($ac_try" in
21884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21885 *) ac_try_echo=$ac_try;;
21886esac
21887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21888 (eval "$ac_compile") 2>conftest.er1
21889 ac_status=$?
21890 grep -v '^ *+' conftest.er1 >conftest.err
21891 rm -f conftest.er1
21892 cat conftest.err >&5
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); } && {
21895 test -z "$ac_c_werror_flag" ||
21896 test ! -s conftest.err
21897 } && test -s conftest.$ac_objext; then
21898 { echo "$as_me:$LINENO: result: yes" >&5
21899echo "${ECHO_T}yes" >&6; }
21900
21901cat >>confdefs.h <<\_ACEOF
21902#define USE_OPENSSL_ENGINE 1
21903_ACEOF
21904
21905
21906else
21907 echo "$as_me: failed program was:" >&5
21908sed 's/^/| /' conftest.$ac_ext >&5
21909
21910 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
21911echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
21912 { (exit 1); exit 1; }; }
21913
21914fi
21915
21916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21917 fi
21918
21919 # Check for OpenSSL without EVP_aes_{192,256}_cbc
21920 { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
21921echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
21922 cat >conftest.$ac_ext <<_ACEOF
21923/* confdefs.h. */
21924_ACEOF
21925cat confdefs.h >>conftest.$ac_ext
21926cat >>conftest.$ac_ext <<_ACEOF
21927/* end confdefs.h. */
21928
21929 #include <string.h>
21930 #include <openssl/evp.h>
21931
21932int
21933main ()
21934{
21935
21936 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
21937
21938 ;
21939 return 0;
21940}
21941_ACEOF
21942rm -f conftest.$ac_objext conftest$ac_exeext
21943if { (ac_try="$ac_link"
21944case "(($ac_try" in
21945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946 *) ac_try_echo=$ac_try;;
21947esac
21948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21949 (eval "$ac_link") 2>conftest.er1
21950 ac_status=$?
21951 grep -v '^ *+' conftest.er1 >conftest.err
21952 rm -f conftest.er1
21953 cat conftest.err >&5
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); } && {
21956 test -z "$ac_c_werror_flag" ||
21957 test ! -s conftest.err
21958 } && test -s conftest$ac_exeext &&
21959 $as_test_x conftest$ac_exeext; then
21960
21961 { echo "$as_me:$LINENO: result: no" >&5
21962echo "${ECHO_T}no" >&6; }
21963
21964else
21965 echo "$as_me: failed program was:" >&5
21966sed 's/^/| /' conftest.$ac_ext >&5
21967
21968
21969 { echo "$as_me:$LINENO: result: yes" >&5
21970echo "${ECHO_T}yes" >&6; }
21971
21972cat >>confdefs.h <<\_ACEOF
21973#define OPENSSL_LOBOTOMISED_AES 1
21974_ACEOF
21975
21976
21977
21978fi
21979
21980rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21981 conftest$ac_exeext conftest.$ac_ext
21982
21983 # Check for OpenSSL with EVP_aes_*ctr
21984 { echo "$as_me:$LINENO: checking whether OpenSSL has AES CTR via EVP" >&5
21985echo $ECHO_N "checking whether OpenSSL has AES CTR via EVP... $ECHO_C" >&6; }
21986 cat >conftest.$ac_ext <<_ACEOF
21987/* confdefs.h. */
21988_ACEOF
21989cat confdefs.h >>conftest.$ac_ext
21990cat >>conftest.$ac_ext <<_ACEOF
21991/* end confdefs.h. */
21992
21993 #include <string.h>
21994 #include <openssl/evp.h>
21995
21996int
21997main ()
21998{
21999
22000 exit(EVP_aes_128_ctr() == NULL ||
22001 EVP_aes_192_cbc() == NULL ||
22002 EVP_aes_256_cbc() == NULL);
22003
22004 ;
22005 return 0;
22006}
22007_ACEOF
22008rm -f conftest.$ac_objext conftest$ac_exeext
22009if { (ac_try="$ac_link"
22010case "(($ac_try" in
22011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22012 *) ac_try_echo=$ac_try;;
22013esac
22014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22015 (eval "$ac_link") 2>conftest.er1
22016 ac_status=$?
22017 grep -v '^ *+' conftest.er1 >conftest.err
22018 rm -f conftest.er1
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } && {
22022 test -z "$ac_c_werror_flag" ||
22023 test ! -s conftest.err
22024 } && test -s conftest$ac_exeext &&
22025 $as_test_x conftest$ac_exeext; then
22026
22027 { echo "$as_me:$LINENO: result: yes" >&5
22028echo "${ECHO_T}yes" >&6; }
22029
22030cat >>confdefs.h <<\_ACEOF
22031#define OPENSSL_HAVE_EVPCTR 1
22032_ACEOF
22033
22034
22035else
22036 echo "$as_me: failed program was:" >&5
22037sed 's/^/| /' conftest.$ac_ext >&5
22038
22039
22040 { echo "$as_me:$LINENO: result: no" >&5
22041echo "${ECHO_T}no" >&6; }
22042
22043
22044fi
22045
22046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22047 conftest$ac_exeext conftest.$ac_ext
22048
22049 # Check for OpenSSL with EVP_aes_*gcm
22050 { echo "$as_me:$LINENO: checking whether OpenSSL has AES GCM via EVP" >&5
22051echo $ECHO_N "checking whether OpenSSL has AES GCM via EVP... $ECHO_C" >&6; }
22052 cat >conftest.$ac_ext <<_ACEOF
22053/* confdefs.h. */
22054_ACEOF
22055cat confdefs.h >>conftest.$ac_ext
22056cat >>conftest.$ac_ext <<_ACEOF
22057/* end confdefs.h. */
22058
22059 #include <string.h>
22060 #include <openssl/evp.h>
22061
22062int
22063main ()
22064{
22065
22066 exit(EVP_aes_128_gcm() == NULL ||
22067 EVP_aes_256_gcm() == NULL ||
22068 EVP_CTRL_GCM_SET_IV_FIXED == 0 ||
22069 EVP_CTRL_GCM_IV_GEN == 0 ||
22070 EVP_CTRL_GCM_SET_TAG == 0 ||
22071 EVP_CTRL_GCM_GET_TAG == 0 ||
22072 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0);
22073
22074 ;
22075 return 0;
22076}
22077_ACEOF
22078rm -f conftest.$ac_objext conftest$ac_exeext
22079if { (ac_try="$ac_link"
22080case "(($ac_try" in
22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22083esac
22084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_link") 2>conftest.er1
22086 ac_status=$?
22087 grep -v '^ *+' conftest.er1 >conftest.err
22088 rm -f conftest.er1
22089 cat conftest.err >&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } && {
22092 test -z "$ac_c_werror_flag" ||
22093 test ! -s conftest.err
22094 } && test -s conftest$ac_exeext &&
22095 $as_test_x conftest$ac_exeext; then
22096
22097 { echo "$as_me:$LINENO: result: yes" >&5
22098echo "${ECHO_T}yes" >&6; }
22099
22100cat >>confdefs.h <<\_ACEOF
22101#define OPENSSL_HAVE_EVPGCM 1
22102_ACEOF
22103
22104
22105else
22106 echo "$as_me: failed program was:" >&5
22107sed 's/^/| /' conftest.$ac_ext >&5
22108
22109
22110 { echo "$as_me:$LINENO: result: no" >&5
22111echo "${ECHO_T}no" >&6; }
22112 unsupported_algorithms="$unsupported_cipers \
22113 aes128-gcm@openssh.com aes256-gcm@openssh.com"
22114
22115
22116fi
22117
22118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22119 conftest$ac_exeext conftest.$ac_ext
22120
22121 { echo "$as_me:$LINENO: checking for library containing EVP_CIPHER_CTX_ctrl" >&5
22122echo $ECHO_N "checking for library containing EVP_CIPHER_CTX_ctrl... $ECHO_C" >&6; }
22123if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
22124 echo $ECHO_N "(cached) $ECHO_C" >&6
22125else
22126 ac_func_search_save_LIBS=$LIBS
22127cat >conftest.$ac_ext <<_ACEOF
22128/* confdefs.h. */
22129_ACEOF
22130cat confdefs.h >>conftest.$ac_ext
22131cat >>conftest.$ac_ext <<_ACEOF
22132/* end confdefs.h. */
22133
22134/* Override any GCC internal prototype to avoid an error.
22135 Use char because int might match the return type of a GCC
22136 builtin and then its argument prototype would still apply. */
22137#ifdef __cplusplus
22138extern "C"
22139#endif
22140char EVP_CIPHER_CTX_ctrl ();
22141int
22142main ()
22143{
22144return EVP_CIPHER_CTX_ctrl ();
22145 ;
22146 return 0;
22147}
22148_ACEOF
22149for ac_lib in '' crypto; do
22150 if test -z "$ac_lib"; then
22151 ac_res="none required"
22152 else
22153 ac_res=-l$ac_lib
22154 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22155 fi
22156 rm -f conftest.$ac_objext conftest$ac_exeext
22157if { (ac_try="$ac_link"
22158case "(($ac_try" in
22159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160 *) ac_try_echo=$ac_try;;
22161esac
22162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22163 (eval "$ac_link") 2>conftest.er1
22164 ac_status=$?
22165 grep -v '^ *+' conftest.er1 >conftest.err
22166 rm -f conftest.er1
22167 cat conftest.err >&5
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); } && {
22170 test -z "$ac_c_werror_flag" ||
22171 test ! -s conftest.err
22172 } && test -s conftest$ac_exeext &&
22173 $as_test_x conftest$ac_exeext; then
22174 ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res
22175else
22176 echo "$as_me: failed program was:" >&5
22177sed 's/^/| /' conftest.$ac_ext >&5
22178
22179
22180fi
22181
22182rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22183 conftest$ac_exeext
22184 if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
22185 break
22186fi
22187done
22188if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
22189 :
22190else
22191 ac_cv_search_EVP_CIPHER_CTX_ctrl=no
22192fi
22193rm conftest.$ac_ext
22194LIBS=$ac_func_search_save_LIBS
22195fi
22196{ echo "$as_me:$LINENO: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5
22197echo "${ECHO_T}$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; }
22198ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl
22199if test "$ac_res" != no; then
22200 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22201
22202cat >>confdefs.h <<\_ACEOF
22203#define HAVE_EVP_CIPHER_CTX_CTRL 1
22204_ACEOF
22205
22206fi
22207
22208
22209 { echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5
22210echo $ECHO_N "checking if EVP_DigestUpdate returns an int... $ECHO_C" >&6; }
22211 cat >conftest.$ac_ext <<_ACEOF
22212/* confdefs.h. */
22213_ACEOF
22214cat confdefs.h >>conftest.$ac_ext
22215cat >>conftest.$ac_ext <<_ACEOF
22216/* end confdefs.h. */
22217
22218 #include <string.h>
22219 #include <openssl/evp.h>
22220
22221int
22222main ()
22223{
22224
22225 if(EVP_DigestUpdate(NULL, NULL,0))
22226 exit(0);
22227
22228 ;
22229 return 0;
22230}
22231_ACEOF
22232rm -f conftest.$ac_objext conftest$ac_exeext
22233if { (ac_try="$ac_link"
22234case "(($ac_try" in
22235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22236 *) ac_try_echo=$ac_try;;
22237esac
22238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22239 (eval "$ac_link") 2>conftest.er1
22240 ac_status=$?
22241 grep -v '^ *+' conftest.er1 >conftest.err
22242 rm -f conftest.er1
22243 cat conftest.err >&5
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } && {
22246 test -z "$ac_c_werror_flag" ||
22247 test ! -s conftest.err
22248 } && test -s conftest$ac_exeext &&
22249 $as_test_x conftest$ac_exeext; then
22250
22251 { echo "$as_me:$LINENO: result: yes" >&5
22252echo "${ECHO_T}yes" >&6; }
22253
22254else
22255 echo "$as_me: failed program was:" >&5
22256sed 's/^/| /' conftest.$ac_ext >&5
22257
22258
22259 { echo "$as_me:$LINENO: result: no" >&5
22260echo "${ECHO_T}no" >&6; }
22261
22262cat >>confdefs.h <<\_ACEOF
22263#define OPENSSL_EVP_DIGESTUPDATE_VOID 1
22264_ACEOF
22265
22266
22267
22268fi
22269
22270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22271 conftest$ac_exeext conftest.$ac_ext
22272
22273 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
22274 # because the system crypt() is more featureful.
22275 if test "x$check_for_libcrypt_before" = "x1"; then
22276
22277{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22278echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22279if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22280 echo $ECHO_N "(cached) $ECHO_C" >&6
22281else
22282 ac_check_lib_save_LIBS=$LIBS
22283LIBS="-lcrypt $LIBS"
22284cat >conftest.$ac_ext <<_ACEOF
22285/* confdefs.h. */
22286_ACEOF
22287cat confdefs.h >>conftest.$ac_ext
22288cat >>conftest.$ac_ext <<_ACEOF
22289/* end confdefs.h. */
22290
22291/* Override any GCC internal prototype to avoid an error.
22292 Use char because int might match the return type of a GCC
22293 builtin and then its argument prototype would still apply. */
22294#ifdef __cplusplus
22295extern "C"
22296#endif
22297char crypt ();
22298int
22299main ()
22300{
22301return crypt ();
22302 ;
22303 return 0;
22304}
22305_ACEOF
22306rm -f conftest.$ac_objext conftest$ac_exeext
22307if { (ac_try="$ac_link"
22308case "(($ac_try" in
22309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22310 *) ac_try_echo=$ac_try;;
22311esac
22312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22313 (eval "$ac_link") 2>conftest.er1
22314 ac_status=$?
22315 grep -v '^ *+' conftest.er1 >conftest.err
22316 rm -f conftest.er1
22317 cat conftest.err >&5
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); } && {
22320 test -z "$ac_c_werror_flag" ||
22321 test ! -s conftest.err
22322 } && test -s conftest$ac_exeext &&
22323 $as_test_x conftest$ac_exeext; then
22324 ac_cv_lib_crypt_crypt=yes
22325else
22326 echo "$as_me: failed program was:" >&5
22327sed 's/^/| /' conftest.$ac_ext >&5
22328
22329 ac_cv_lib_crypt_crypt=no
22330fi
22331
22332rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22333 conftest$ac_exeext conftest.$ac_ext
22334LIBS=$ac_check_lib_save_LIBS
22335fi
22336{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22337echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22338if test $ac_cv_lib_crypt_crypt = yes; then
22339 cat >>confdefs.h <<_ACEOF
22340#define HAVE_LIBCRYPT 1
22341_ACEOF
22342
22343 LIBS="-lcrypt $LIBS"
22344
22345fi
22346
22347 fi
22348
22349 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
22350 # version in OpenSSL.
22351 if test "x$check_for_libcrypt_later" = "x1"; then
22352 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22353echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22354if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22355 echo $ECHO_N "(cached) $ECHO_C" >&6
22356else
22357 ac_check_lib_save_LIBS=$LIBS
22358LIBS="-lcrypt $LIBS"
22359cat >conftest.$ac_ext <<_ACEOF
22360/* confdefs.h. */
22361_ACEOF
22362cat confdefs.h >>conftest.$ac_ext
22363cat >>conftest.$ac_ext <<_ACEOF
22364/* end confdefs.h. */
22365
22366/* Override any GCC internal prototype to avoid an error.
22367 Use char because int might match the return type of a GCC
22368 builtin and then its argument prototype would still apply. */
22369#ifdef __cplusplus
22370extern "C"
22371#endif
22372char crypt ();
22373int
22374main ()
22375{
22376return crypt ();
22377 ;
22378 return 0;
22379}
22380_ACEOF
22381rm -f conftest.$ac_objext conftest$ac_exeext
22382if { (ac_try="$ac_link"
22383case "(($ac_try" in
22384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22385 *) ac_try_echo=$ac_try;;
22386esac
22387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22388 (eval "$ac_link") 2>conftest.er1
22389 ac_status=$?
22390 grep -v '^ *+' conftest.er1 >conftest.err
22391 rm -f conftest.er1
22392 cat conftest.err >&5
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); } && {
22395 test -z "$ac_c_werror_flag" ||
22396 test ! -s conftest.err
22397 } && test -s conftest$ac_exeext &&
22398 $as_test_x conftest$ac_exeext; then
22399 ac_cv_lib_crypt_crypt=yes
22400else
22401 echo "$as_me: failed program was:" >&5
22402sed 's/^/| /' conftest.$ac_ext >&5
22403
22404 ac_cv_lib_crypt_crypt=no
22405fi
22406
22407rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22408 conftest$ac_exeext conftest.$ac_ext
22409LIBS=$ac_check_lib_save_LIBS
22410fi
22411{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22412echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22413if test $ac_cv_lib_crypt_crypt = yes; then
22414 LIBS="$LIBS -lcrypt"
22415fi
22416
22417 fi
22418
22419
22420for ac_func in crypt DES_crypt
22421do
22422as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22423{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22424echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22425if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22426 echo $ECHO_N "(cached) $ECHO_C" >&6
22427else
22428 cat >conftest.$ac_ext <<_ACEOF
22429/* confdefs.h. */
22430_ACEOF
22431cat confdefs.h >>conftest.$ac_ext
22432cat >>conftest.$ac_ext <<_ACEOF
22433/* end confdefs.h. */
22434/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22436#define $ac_func innocuous_$ac_func
22437
22438/* System header to define __stub macros and hopefully few prototypes,
22439 which can conflict with char $ac_func (); below.
22440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22441 <limits.h> exists even on freestanding compilers. */
22442
22443#ifdef __STDC__
22444# include <limits.h>
22445#else
22446# include <assert.h>
22447#endif
22448
22449#undef $ac_func
22450
22451/* Override any GCC internal prototype to avoid an error.
22452 Use char because int might match the return type of a GCC
22453 builtin and then its argument prototype would still apply. */
22454#ifdef __cplusplus
22455extern "C"
22456#endif
22457char $ac_func ();
22458/* The GNU C library defines this for functions which it implements
22459 to always fail with ENOSYS. Some functions are actually named
22460 something starting with __ and the normal name is an alias. */
22461#if defined __stub_$ac_func || defined __stub___$ac_func
22462choke me
22463#endif
22464
22465int
22466main ()
22467{
22468return $ac_func ();
22469 ;
22470 return 0;
22471}
22472_ACEOF
22473rm -f conftest.$ac_objext conftest$ac_exeext
22474if { (ac_try="$ac_link"
22475case "(($ac_try" in
22476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477 *) ac_try_echo=$ac_try;;
22478esac
22479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22480 (eval "$ac_link") 2>conftest.er1
22481 ac_status=$?
22482 grep -v '^ *+' conftest.er1 >conftest.err
22483 rm -f conftest.er1
22484 cat conftest.err >&5
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); } && {
22487 test -z "$ac_c_werror_flag" ||
22488 test ! -s conftest.err
22489 } && test -s conftest$ac_exeext &&
22490 $as_test_x conftest$ac_exeext; then
22491 eval "$as_ac_var=yes"
22492else
22493 echo "$as_me: failed program was:" >&5
22494sed 's/^/| /' conftest.$ac_ext >&5
22495
22496 eval "$as_ac_var=no"
22497fi
22498
22499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22500 conftest$ac_exeext conftest.$ac_ext
22501fi
22502ac_res=`eval echo '${'$as_ac_var'}'`
22503 { echo "$as_me:$LINENO: result: $ac_res" >&5
22504echo "${ECHO_T}$ac_res" >&6; }
22505if test `eval echo '${'$as_ac_var'}'` = yes; then
22506 cat >>confdefs.h <<_ACEOF
22507#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22508_ACEOF
22509
22510fi
22511done
22512
22513
22514 # Search for SHA256 support in libc and/or OpenSSL
22515
22516
22517for ac_func in SHA256_Update EVP_sha256
22518do
22519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22520{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22522if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22523 echo $ECHO_N "(cached) $ECHO_C" >&6
22524else
22525 cat >conftest.$ac_ext <<_ACEOF
22526/* confdefs.h. */
22527_ACEOF
22528cat confdefs.h >>conftest.$ac_ext
22529cat >>conftest.$ac_ext <<_ACEOF
22530/* end confdefs.h. */
22531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22533#define $ac_func innocuous_$ac_func
22534
22535/* System header to define __stub macros and hopefully few prototypes,
22536 which can conflict with char $ac_func (); below.
22537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22538 <limits.h> exists even on freestanding compilers. */
22539
22540#ifdef __STDC__
22541# include <limits.h>
22542#else
22543# include <assert.h>
22544#endif
22545
22546#undef $ac_func
22547
22548/* Override any GCC internal prototype to avoid an error.
22549 Use char because int might match the return type of a GCC
22550 builtin and then its argument prototype would still apply. */
22551#ifdef __cplusplus
22552extern "C"
22553#endif
22554char $ac_func ();
22555/* The GNU C library defines this for functions which it implements
22556 to always fail with ENOSYS. Some functions are actually named
22557 something starting with __ and the normal name is an alias. */
22558#if defined __stub_$ac_func || defined __stub___$ac_func
22559choke me
22560#endif
22561
22562int
22563main ()
22564{
22565return $ac_func ();
22566 ;
22567 return 0;
22568}
22569_ACEOF
22570rm -f conftest.$ac_objext conftest$ac_exeext
22571if { (ac_try="$ac_link"
22572case "(($ac_try" in
22573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22574 *) ac_try_echo=$ac_try;;
22575esac
22576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22577 (eval "$ac_link") 2>conftest.er1
22578 ac_status=$?
22579 grep -v '^ *+' conftest.er1 >conftest.err
22580 rm -f conftest.er1
22581 cat conftest.err >&5
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); } && {
22584 test -z "$ac_c_werror_flag" ||
22585 test ! -s conftest.err
22586 } && test -s conftest$ac_exeext &&
22587 $as_test_x conftest$ac_exeext; then
22588 eval "$as_ac_var=yes"
22589else
22590 echo "$as_me: failed program was:" >&5
22591sed 's/^/| /' conftest.$ac_ext >&5
22592
22593 eval "$as_ac_var=no"
22594fi
22595
22596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22597 conftest$ac_exeext conftest.$ac_ext
22598fi
22599ac_res=`eval echo '${'$as_ac_var'}'`
22600 { echo "$as_me:$LINENO: result: $ac_res" >&5
22601echo "${ECHO_T}$ac_res" >&6; }
22602if test `eval echo '${'$as_ac_var'}'` = yes; then
22603 cat >>confdefs.h <<_ACEOF
22604#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22605_ACEOF
22606
22607else
22608 unsupported_algorithms="$unsupported_algorithms \
22609 hmac-sha2-256 hmac-sha2-512 \
22610 diffie-hellman-group-exchange-sha256 \
22611 hmac-sha2-256-etm@openssh.com hmac-sha2-512-etm@openssh.com"
22612
22613
22614fi
22615done
22616
22617 # Search for RIPE-MD support in OpenSSL
22618
22619for ac_func in EVP_ripemd160
22620do
22621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22622{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22624if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22625 echo $ECHO_N "(cached) $ECHO_C" >&6
22626else
22627 cat >conftest.$ac_ext <<_ACEOF
22628/* confdefs.h. */
22629_ACEOF
22630cat confdefs.h >>conftest.$ac_ext
22631cat >>conftest.$ac_ext <<_ACEOF
22632/* end confdefs.h. */
22633/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22635#define $ac_func innocuous_$ac_func
22636
22637/* System header to define __stub macros and hopefully few prototypes,
22638 which can conflict with char $ac_func (); below.
22639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22640 <limits.h> exists even on freestanding compilers. */
22641
22642#ifdef __STDC__
22643# include <limits.h>
22644#else
22645# include <assert.h>
22646#endif
22647
22648#undef $ac_func
22649
22650/* Override any GCC internal prototype to avoid an error.
22651 Use char because int might match the return type of a GCC
22652 builtin and then its argument prototype would still apply. */
22653#ifdef __cplusplus
22654extern "C"
22655#endif
22656char $ac_func ();
22657/* The GNU C library defines this for functions which it implements
22658 to always fail with ENOSYS. Some functions are actually named
22659 something starting with __ and the normal name is an alias. */
22660#if defined __stub_$ac_func || defined __stub___$ac_func
22661choke me
22662#endif
22663
22664int
22665main ()
22666{
22667return $ac_func ();
22668 ;
22669 return 0;
22670}
22671_ACEOF
22672rm -f conftest.$ac_objext conftest$ac_exeext
22673if { (ac_try="$ac_link"
22674case "(($ac_try" in
22675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22676 *) ac_try_echo=$ac_try;;
22677esac
22678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22679 (eval "$ac_link") 2>conftest.er1
22680 ac_status=$?
22681 grep -v '^ *+' conftest.er1 >conftest.err
22682 rm -f conftest.er1
22683 cat conftest.err >&5
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); } && {
22686 test -z "$ac_c_werror_flag" ||
22687 test ! -s conftest.err
22688 } && test -s conftest$ac_exeext &&
22689 $as_test_x conftest$ac_exeext; then
22690 eval "$as_ac_var=yes"
22691else
22692 echo "$as_me: failed program was:" >&5
22693sed 's/^/| /' conftest.$ac_ext >&5
22694
22695 eval "$as_ac_var=no"
22696fi
22697
22698rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22699 conftest$ac_exeext conftest.$ac_ext
22700fi
22701ac_res=`eval echo '${'$as_ac_var'}'`
22702 { echo "$as_me:$LINENO: result: $ac_res" >&5
22703echo "${ECHO_T}$ac_res" >&6; }
22704if test `eval echo '${'$as_ac_var'}'` = yes; then
22705 cat >>confdefs.h <<_ACEOF
22706#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22707_ACEOF
22708
22709else
22710 unsupported_algorithms="$unsupported_algorithms \
22711 hmac-ripemd160
22712 hmac-ripemd160@openssh.com
22713 hmac-ripemd160-etm@openssh.com"
22714
22715
22716fi
22717done
22718
22719
22720 # Check complete ECC support in OpenSSL
22721 { echo "$as_me:$LINENO: checking whether OpenSSL has NID_X9_62_prime256v1" >&5
22722echo $ECHO_N "checking whether OpenSSL has NID_X9_62_prime256v1... $ECHO_C" >&6; }
22723 cat >conftest.$ac_ext <<_ACEOF
22724/* confdefs.h. */
22725_ACEOF
22726cat confdefs.h >>conftest.$ac_ext
22727cat >>conftest.$ac_ext <<_ACEOF
22728/* end confdefs.h. */
22729
22730 #include <openssl/ec.h>
22731 #include <openssl/ecdh.h>
22732 #include <openssl/ecdsa.h>
22733 #include <openssl/evp.h>
22734 #include <openssl/objects.h>
22735 #include <openssl/opensslv.h>
22736 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
22737 # error "OpenSSL < 0.9.8g has unreliable ECC code"
22738 #endif
22739
22740int
22741main ()
22742{
22743
22744 EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
22745 const EVP_MD *m = EVP_sha256(); /* We need this too */
22746
22747 ;
22748 return 0;
22749}
22750_ACEOF
22751rm -f conftest.$ac_objext conftest$ac_exeext
22752if { (ac_try="$ac_link"
22753case "(($ac_try" in
22754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22755 *) ac_try_echo=$ac_try;;
22756esac
22757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22758 (eval "$ac_link") 2>conftest.er1
22759 ac_status=$?
22760 grep -v '^ *+' conftest.er1 >conftest.err
22761 rm -f conftest.er1
22762 cat conftest.err >&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } && {
22765 test -z "$ac_c_werror_flag" ||
22766 test ! -s conftest.err
22767 } && test -s conftest$ac_exeext &&
22768 $as_test_x conftest$ac_exeext; then
22769 { echo "$as_me:$LINENO: result: yes" >&5
22770echo "${ECHO_T}yes" >&6; }
22771 enable_nistp256=1
22772else
22773 echo "$as_me: failed program was:" >&5
22774sed 's/^/| /' conftest.$ac_ext >&5
22775
22776 { echo "$as_me:$LINENO: result: no" >&5
22777echo "${ECHO_T}no" >&6; }
22778
22779fi
22780
22781rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22782 conftest$ac_exeext conftest.$ac_ext
22783
22784 { echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp384r1" >&5
22785echo $ECHO_N "checking whether OpenSSL has NID_secp384r1... $ECHO_C" >&6; }
22786 cat >conftest.$ac_ext <<_ACEOF
22787/* confdefs.h. */
22788_ACEOF
22789cat confdefs.h >>conftest.$ac_ext
22790cat >>conftest.$ac_ext <<_ACEOF
22791/* end confdefs.h. */
22792
22793 #include <openssl/ec.h>
22794 #include <openssl/ecdh.h>
22795 #include <openssl/ecdsa.h>
22796 #include <openssl/evp.h>
22797 #include <openssl/objects.h>
22798 #include <openssl/opensslv.h>
22799 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
22800 # error "OpenSSL < 0.9.8g has unreliable ECC code"
22801 #endif
22802
22803int
22804main ()
22805{
22806
22807 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1);
22808 const EVP_MD *m = EVP_sha384(); /* We need this too */
22809
22810 ;
22811 return 0;
22812}
22813_ACEOF
22814rm -f conftest.$ac_objext conftest$ac_exeext
22815if { (ac_try="$ac_link"
22816case "(($ac_try" in
22817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22818 *) ac_try_echo=$ac_try;;
22819esac
22820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22821 (eval "$ac_link") 2>conftest.er1
22822 ac_status=$?
22823 grep -v '^ *+' conftest.er1 >conftest.err
22824 rm -f conftest.er1
22825 cat conftest.err >&5
22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); } && {
22828 test -z "$ac_c_werror_flag" ||
22829 test ! -s conftest.err
22830 } && test -s conftest$ac_exeext &&
22831 $as_test_x conftest$ac_exeext; then
22832 { echo "$as_me:$LINENO: result: yes" >&5
22833echo "${ECHO_T}yes" >&6; }
22834 enable_nistp384=1
22835else
22836 echo "$as_me: failed program was:" >&5
22837sed 's/^/| /' conftest.$ac_ext >&5
22838
22839 { echo "$as_me:$LINENO: result: no" >&5
22840echo "${ECHO_T}no" >&6; }
22841
22842fi
22843
22844rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22845 conftest$ac_exeext conftest.$ac_ext
22846
22847 { echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp521r1" >&5
22848echo $ECHO_N "checking whether OpenSSL has NID_secp521r1... $ECHO_C" >&6; }
22849 cat >conftest.$ac_ext <<_ACEOF
22850/* confdefs.h. */
22851_ACEOF
22852cat confdefs.h >>conftest.$ac_ext
22853cat >>conftest.$ac_ext <<_ACEOF
22854/* end confdefs.h. */
22855
22856 #include <openssl/ec.h>
22857 #include <openssl/ecdh.h>
22858 #include <openssl/ecdsa.h>
22859 #include <openssl/evp.h>
22860 #include <openssl/objects.h>
22861 #include <openssl/opensslv.h>
22862 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
22863 # error "OpenSSL < 0.9.8g has unreliable ECC code"
22864 #endif
22865
22866int
22867main ()
22868{
22869
22870 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
22871 const EVP_MD *m = EVP_sha512(); /* We need this too */
22872
22873 ;
22874 return 0;
22875}
22876_ACEOF
22877rm -f conftest.$ac_objext conftest$ac_exeext
22878if { (ac_try="$ac_link"
22879case "(($ac_try" in
22880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22881 *) ac_try_echo=$ac_try;;
22882esac
22883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22884 (eval "$ac_link") 2>conftest.er1
22885 ac_status=$?
22886 grep -v '^ *+' conftest.er1 >conftest.err
22887 rm -f conftest.er1
22888 cat conftest.err >&5
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); } && {
22891 test -z "$ac_c_werror_flag" ||
22892 test ! -s conftest.err
22893 } && test -s conftest$ac_exeext &&
22894 $as_test_x conftest$ac_exeext; then
22895 { echo "$as_me:$LINENO: result: yes" >&5
22896echo "${ECHO_T}yes" >&6; }
22897 { echo "$as_me:$LINENO: checking if OpenSSL's NID_secp521r1 is functional" >&5
22898echo $ECHO_N "checking if OpenSSL's NID_secp521r1 is functional... $ECHO_C" >&6; }
22899 if test "$cross_compiling" = yes; then
22900 { echo "$as_me:$LINENO: WARNING: cross-compiling: assuming yes" >&5
22901echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;}
22902 enable_nistp521=1
22903
22904else
22905 cat >conftest.$ac_ext <<_ACEOF
22906/* confdefs.h. */
22907_ACEOF
22908cat confdefs.h >>conftest.$ac_ext
22909cat >>conftest.$ac_ext <<_ACEOF
22910/* end confdefs.h. */
22911
22912 #include <openssl/ec.h>
22913 #include <openssl/ecdh.h>
22914 #include <openssl/ecdsa.h>
22915 #include <openssl/evp.h>
22916 #include <openssl/objects.h>
22917 #include <openssl/opensslv.h>
22918
22919int
22920main ()
22921{
22922
22923 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
22924 const EVP_MD *m = EVP_sha512(); /* We need this too */
22925 exit(e == NULL || m == NULL);
22926
22927 ;
22928 return 0;
22929}
22930_ACEOF
22931rm -f conftest$ac_exeext
22932if { (ac_try="$ac_link"
22933case "(($ac_try" in
22934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22935 *) ac_try_echo=$ac_try;;
22936esac
22937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22938 (eval "$ac_link") 2>&5
22939 ac_status=$?
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22942 { (case "(($ac_try" in
22943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22944 *) ac_try_echo=$ac_try;;
22945esac
22946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22947 (eval "$ac_try") 2>&5
22948 ac_status=$?
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); }; }; then
22951 { echo "$as_me:$LINENO: result: yes" >&5
22952echo "${ECHO_T}yes" >&6; }
22953 enable_nistp521=1
22954else
22955 echo "$as_me: program exited with status $ac_status" >&5
22956echo "$as_me: failed program was:" >&5
22957sed 's/^/| /' conftest.$ac_ext >&5
22958
22959( exit $ac_status )
22960 { echo "$as_me:$LINENO: result: no" >&5
22961echo "${ECHO_T}no" >&6; }
22962fi
22963rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22964fi
22965
22966
22967else
22968 echo "$as_me: failed program was:" >&5
22969sed 's/^/| /' conftest.$ac_ext >&5
22970
22971 { echo "$as_me:$LINENO: result: no" >&5
22972echo "${ECHO_T}no" >&6; }
22973
22974fi
22975
22976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22977 conftest$ac_exeext conftest.$ac_ext
22978
22979 COMMENT_OUT_ECC="#no ecc#"
22980 TEST_SSH_ECC=no
22981
22982 if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \
22983 test x$enable_nistp521 = x1; then
22984
22985cat >>confdefs.h <<\_ACEOF
22986#define OPENSSL_HAS_ECC 1
22987_ACEOF
22988
22989 fi
22990 if test x$enable_nistp256 = x1; then
22991
22992cat >>confdefs.h <<\_ACEOF
22993#define OPENSSL_HAS_NISTP256 1
22994_ACEOF
22995
22996 TEST_SSH_ECC=yes
22997 COMMENT_OUT_ECC=""
22998 else
22999 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp256 \
23000 ecdh-sha2-nistp256 ecdsa-sha2-nistp256-cert-v01@openssh.com"
23001 fi
23002 if test x$enable_nistp384 = x1; then
23003
23004cat >>confdefs.h <<\_ACEOF
23005#define OPENSSL_HAS_NISTP384 1
23006_ACEOF
23007
23008 TEST_SSH_ECC=yes
23009 COMMENT_OUT_ECC=""
23010 else
23011 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp384 \
23012 ecdh-sha2-nistp384 ecdsa-sha2-nistp384-cert-v01@openssh.com"
23013 fi
23014 if test x$enable_nistp521 = x1; then
23015
23016cat >>confdefs.h <<\_ACEOF
23017#define OPENSSL_HAS_NISTP521 1
23018_ACEOF
23019
23020 TEST_SSH_ECC=yes
23021 COMMENT_OUT_ECC=""
23022 else
23023 unsupported_algorithms="$unsupported_algorithms ecdh-sha2-nistp521 \
23024 ecdsa-sha2-nistp521 ecdsa-sha2-nistp521-cert-v01@openssh.com"
23025 fi
23026
23027
23028
23029else
23030 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23031echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23032if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23033 echo $ECHO_N "(cached) $ECHO_C" >&6
23034else
23035 ac_check_lib_save_LIBS=$LIBS
23036LIBS="-lcrypt $LIBS"
23037cat >conftest.$ac_ext <<_ACEOF
23038/* confdefs.h. */
23039_ACEOF
23040cat confdefs.h >>conftest.$ac_ext
23041cat >>conftest.$ac_ext <<_ACEOF
23042/* end confdefs.h. */
23043
23044/* Override any GCC internal prototype to avoid an error.
23045 Use char because int might match the return type of a GCC
23046 builtin and then its argument prototype would still apply. */
23047#ifdef __cplusplus
23048extern "C"
23049#endif
23050char crypt ();
23051int
23052main ()
23053{
23054return crypt ();
23055 ;
23056 return 0;
23057}
23058_ACEOF
23059rm -f conftest.$ac_objext conftest$ac_exeext
23060if { (ac_try="$ac_link"
23061case "(($ac_try" in
23062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23063 *) ac_try_echo=$ac_try;;
23064esac
23065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23066 (eval "$ac_link") 2>conftest.er1
23067 ac_status=$?
23068 grep -v '^ *+' conftest.er1 >conftest.err
23069 rm -f conftest.er1
23070 cat conftest.err >&5
23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); } && {
23073 test -z "$ac_c_werror_flag" ||
23074 test ! -s conftest.err
23075 } && test -s conftest$ac_exeext &&
23076 $as_test_x conftest$ac_exeext; then
23077 ac_cv_lib_crypt_crypt=yes
23078else
23079 echo "$as_me: failed program was:" >&5
23080sed 's/^/| /' conftest.$ac_ext >&5
23081
23082 ac_cv_lib_crypt_crypt=no
23083fi
23084
23085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23086 conftest$ac_exeext conftest.$ac_ext
23087LIBS=$ac_check_lib_save_LIBS
23088fi
23089{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23090echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
23091if test $ac_cv_lib_crypt_crypt = yes; then
23092 LIBS="$LIBS -lcrypt"
23093fi
23094
23095
23096for ac_func in crypt
23097do
23098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23099{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23101if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23102 echo $ECHO_N "(cached) $ECHO_C" >&6
23103else
23104 cat >conftest.$ac_ext <<_ACEOF
23105/* confdefs.h. */
23106_ACEOF
23107cat confdefs.h >>conftest.$ac_ext
23108cat >>conftest.$ac_ext <<_ACEOF
23109/* end confdefs.h. */
23110/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23112#define $ac_func innocuous_$ac_func
23113
23114/* System header to define __stub macros and hopefully few prototypes,
23115 which can conflict with char $ac_func (); below.
23116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23117 <limits.h> exists even on freestanding compilers. */
23118
23119#ifdef __STDC__
23120# include <limits.h>
23121#else
23122# include <assert.h>
23123#endif
23124
23125#undef $ac_func
23126
23127/* Override any GCC internal prototype to avoid an error.
23128 Use char because int might match the return type of a GCC
23129 builtin and then its argument prototype would still apply. */
23130#ifdef __cplusplus
23131extern "C"
23132#endif
23133char $ac_func ();
23134/* The GNU C library defines this for functions which it implements
23135 to always fail with ENOSYS. Some functions are actually named
23136 something starting with __ and the normal name is an alias. */
23137#if defined __stub_$ac_func || defined __stub___$ac_func
23138choke me
23139#endif
23140
23141int
23142main ()
23143{
23144return $ac_func ();
23145 ;
23146 return 0;
23147}
23148_ACEOF
23149rm -f conftest.$ac_objext conftest$ac_exeext
23150if { (ac_try="$ac_link"
23151case "(($ac_try" in
23152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23153 *) ac_try_echo=$ac_try;;
23154esac
23155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23156 (eval "$ac_link") 2>conftest.er1
23157 ac_status=$?
23158 grep -v '^ *+' conftest.er1 >conftest.err
23159 rm -f conftest.er1
23160 cat conftest.err >&5
23161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); } && {
23163 test -z "$ac_c_werror_flag" ||
23164 test ! -s conftest.err
23165 } && test -s conftest$ac_exeext &&
23166 $as_test_x conftest$ac_exeext; then
23167 eval "$as_ac_var=yes"
23168else
23169 echo "$as_me: failed program was:" >&5
23170sed 's/^/| /' conftest.$ac_ext >&5
23171
23172 eval "$as_ac_var=no"
23173fi
23174
23175rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23176 conftest$ac_exeext conftest.$ac_ext
23177fi
23178ac_res=`eval echo '${'$as_ac_var'}'`
23179 { echo "$as_me:$LINENO: result: $ac_res" >&5
23180echo "${ECHO_T}$ac_res" >&6; }
23181if test `eval echo '${'$as_ac_var'}'` = yes; then
23182 cat >>confdefs.h <<_ACEOF
23183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23184_ACEOF
23185
23186fi
23187done
23188
23189fi
23190
23191
23192
23193
23194
23195for ac_func in \
23196 arc4random \
23197 arc4random_buf \
23198 arc4random_stir \
23199 arc4random_uniform \
23200
23201do
23202as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23203{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23204echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23205if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23206 echo $ECHO_N "(cached) $ECHO_C" >&6
23207else
23208 cat >conftest.$ac_ext <<_ACEOF
23209/* confdefs.h. */
23210_ACEOF
23211cat confdefs.h >>conftest.$ac_ext
23212cat >>conftest.$ac_ext <<_ACEOF
23213/* end confdefs.h. */
23214/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23216#define $ac_func innocuous_$ac_func
23217
23218/* System header to define __stub macros and hopefully few prototypes,
23219 which can conflict with char $ac_func (); below.
23220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23221 <limits.h> exists even on freestanding compilers. */
23222
23223#ifdef __STDC__
23224# include <limits.h>
23225#else
23226# include <assert.h>
23227#endif
23228
23229#undef $ac_func
23230
23231/* Override any GCC internal prototype to avoid an error.
23232 Use char because int might match the return type of a GCC
23233 builtin and then its argument prototype would still apply. */
23234#ifdef __cplusplus
23235extern "C"
23236#endif
23237char $ac_func ();
23238/* The GNU C library defines this for functions which it implements
23239 to always fail with ENOSYS. Some functions are actually named
23240 something starting with __ and the normal name is an alias. */
23241#if defined __stub_$ac_func || defined __stub___$ac_func
23242choke me
23243#endif
23244
23245int
23246main ()
23247{
23248return $ac_func ();
23249 ;
23250 return 0;
23251}
23252_ACEOF
23253rm -f conftest.$ac_objext conftest$ac_exeext
23254if { (ac_try="$ac_link"
23255case "(($ac_try" in
23256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23257 *) ac_try_echo=$ac_try;;
23258esac
23259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23260 (eval "$ac_link") 2>conftest.er1
23261 ac_status=$?
23262 grep -v '^ *+' conftest.er1 >conftest.err
23263 rm -f conftest.er1
23264 cat conftest.err >&5
23265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266 (exit $ac_status); } && {
23267 test -z "$ac_c_werror_flag" ||
23268 test ! -s conftest.err
23269 } && test -s conftest$ac_exeext &&
23270 $as_test_x conftest$ac_exeext; then
23271 eval "$as_ac_var=yes"
23272else
23273 echo "$as_me: failed program was:" >&5
23274sed 's/^/| /' conftest.$ac_ext >&5
23275
23276 eval "$as_ac_var=no"
23277fi
23278
23279rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23280 conftest$ac_exeext conftest.$ac_ext
23281fi
23282ac_res=`eval echo '${'$as_ac_var'}'`
23283 { echo "$as_me:$LINENO: result: $ac_res" >&5
23284echo "${ECHO_T}$ac_res" >&6; }
23285if test `eval echo '${'$as_ac_var'}'` = yes; then
23286 cat >>confdefs.h <<_ACEOF
23287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23288_ACEOF
23289
23290fi
23291done
23292
23293
23294saved_LIBS="$LIBS"
23295{ echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
23296echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
23297if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
23298 echo $ECHO_N "(cached) $ECHO_C" >&6
23299else
23300 ac_check_lib_save_LIBS=$LIBS
23301LIBS="-liaf $LIBS"
23302cat >conftest.$ac_ext <<_ACEOF
23303/* confdefs.h. */
23304_ACEOF
23305cat confdefs.h >>conftest.$ac_ext
23306cat >>conftest.$ac_ext <<_ACEOF
23307/* end confdefs.h. */
23308
23309/* Override any GCC internal prototype to avoid an error.
23310 Use char because int might match the return type of a GCC
23311 builtin and then its argument prototype would still apply. */
23312#ifdef __cplusplus
23313extern "C"
23314#endif
23315char ia_openinfo ();
23316int
23317main ()
23318{
23319return ia_openinfo ();
23320 ;
23321 return 0;
23322}
23323_ACEOF
23324rm -f conftest.$ac_objext conftest$ac_exeext
23325if { (ac_try="$ac_link"
23326case "(($ac_try" in
23327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23328 *) ac_try_echo=$ac_try;;
23329esac
23330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23331 (eval "$ac_link") 2>conftest.er1
23332 ac_status=$?
23333 grep -v '^ *+' conftest.er1 >conftest.err
23334 rm -f conftest.er1
23335 cat conftest.err >&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); } && {
23338 test -z "$ac_c_werror_flag" ||
23339 test ! -s conftest.err
23340 } && test -s conftest$ac_exeext &&
23341 $as_test_x conftest$ac_exeext; then
23342 ac_cv_lib_iaf_ia_openinfo=yes
23343else
23344 echo "$as_me: failed program was:" >&5
23345sed 's/^/| /' conftest.$ac_ext >&5
23346
23347 ac_cv_lib_iaf_ia_openinfo=no
23348fi
23349
23350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23351 conftest$ac_exeext conftest.$ac_ext
23352LIBS=$ac_check_lib_save_LIBS
23353fi
23354{ echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
23355echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
23356if test $ac_cv_lib_iaf_ia_openinfo = yes; then
23357
23358 LIBS="$LIBS -liaf"
23359
23360for ac_func in set_id
23361do
23362as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23363{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23364echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23365if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23366 echo $ECHO_N "(cached) $ECHO_C" >&6
23367else
23368 cat >conftest.$ac_ext <<_ACEOF
23369/* confdefs.h. */
23370_ACEOF
23371cat confdefs.h >>conftest.$ac_ext
23372cat >>conftest.$ac_ext <<_ACEOF
23373/* end confdefs.h. */
23374/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23376#define $ac_func innocuous_$ac_func
23377
23378/* System header to define __stub macros and hopefully few prototypes,
23379 which can conflict with char $ac_func (); below.
23380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23381 <limits.h> exists even on freestanding compilers. */
23382
23383#ifdef __STDC__
23384# include <limits.h>
23385#else
23386# include <assert.h>
23387#endif
23388
23389#undef $ac_func
23390
23391/* Override any GCC internal prototype to avoid an error.
23392 Use char because int might match the return type of a GCC
23393 builtin and then its argument prototype would still apply. */
23394#ifdef __cplusplus
23395extern "C"
23396#endif
23397char $ac_func ();
23398/* The GNU C library defines this for functions which it implements
23399 to always fail with ENOSYS. Some functions are actually named
23400 something starting with __ and the normal name is an alias. */
23401#if defined __stub_$ac_func || defined __stub___$ac_func
23402choke me
23403#endif
23404
23405int
23406main ()
23407{
23408return $ac_func ();
23409 ;
23410 return 0;
23411}
23412_ACEOF
23413rm -f conftest.$ac_objext conftest$ac_exeext
23414if { (ac_try="$ac_link"
23415case "(($ac_try" in
23416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23417 *) ac_try_echo=$ac_try;;
23418esac
23419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23420 (eval "$ac_link") 2>conftest.er1
23421 ac_status=$?
23422 grep -v '^ *+' conftest.er1 >conftest.err
23423 rm -f conftest.er1
23424 cat conftest.err >&5
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); } && {
23427 test -z "$ac_c_werror_flag" ||
23428 test ! -s conftest.err
23429 } && test -s conftest$ac_exeext &&
23430 $as_test_x conftest$ac_exeext; then
23431 eval "$as_ac_var=yes"
23432else
23433 echo "$as_me: failed program was:" >&5
23434sed 's/^/| /' conftest.$ac_ext >&5
23435
23436 eval "$as_ac_var=no"
23437fi
23438
23439rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23440 conftest$ac_exeext conftest.$ac_ext
23441fi
23442ac_res=`eval echo '${'$as_ac_var'}'`
23443 { echo "$as_me:$LINENO: result: $ac_res" >&5
23444echo "${ECHO_T}$ac_res" >&6; }
23445if test `eval echo '${'$as_ac_var'}'` = yes; then
23446 cat >>confdefs.h <<_ACEOF
23447#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23448_ACEOF
23449 SSHDLIBS="$SSHDLIBS -liaf"
23450
23451cat >>confdefs.h <<\_ACEOF
23452#define HAVE_LIBIAF 1
23453_ACEOF
23454
23455
23456fi
23457done
23458
23459
23460fi
23461
23462LIBS="$saved_LIBS"
23463
23464### Configure cryptographic random number support
23465
23466# Check wheter OpenSSL seeds itself
23467if test "x$openssl" = "xyes" ; then
23468 { echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
23469echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
23470 if test "$cross_compiling" = yes; then
23471
23472 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
23473echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
23474 # This is safe, since we will fatal() at runtime if
23475 # OpenSSL is not seeded correctly.
23476 OPENSSL_SEEDS_ITSELF=yes
23477
23478
23479else
23480 cat >conftest.$ac_ext <<_ACEOF
23481/* confdefs.h. */
23482_ACEOF
23483cat confdefs.h >>conftest.$ac_ext
23484cat >>conftest.$ac_ext <<_ACEOF
23485/* end confdefs.h. */
23486
23487 #include <string.h>
23488 #include <openssl/rand.h>
23489
23490int
23491main ()
23492{
23493
23494 exit(RAND_status() == 1 ? 0 : 1);
23495
23496 ;
23497 return 0;
23498}
23499_ACEOF
23500rm -f conftest$ac_exeext
23501if { (ac_try="$ac_link"
23502case "(($ac_try" in
23503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23504 *) ac_try_echo=$ac_try;;
23505esac
23506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23507 (eval "$ac_link") 2>&5
23508 ac_status=$?
23509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23511 { (case "(($ac_try" in
23512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23513 *) ac_try_echo=$ac_try;;
23514esac
23515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23516 (eval "$ac_try") 2>&5
23517 ac_status=$?
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); }; }; then
23520
23521 OPENSSL_SEEDS_ITSELF=yes
23522 { echo "$as_me:$LINENO: result: yes" >&5
23523echo "${ECHO_T}yes" >&6; }
23524
23525else
23526 echo "$as_me: program exited with status $ac_status" >&5
23527echo "$as_me: failed program was:" >&5
23528sed 's/^/| /' conftest.$ac_ext >&5
23529
23530( exit $ac_status )
23531
23532 { echo "$as_me:$LINENO: result: no" >&5
23533echo "${ECHO_T}no" >&6; }
23534
23535fi
23536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23537fi
23538
23539
23540fi
23541
23542# PRNGD TCP socket
23543
23544# Check whether --with-prngd-port was given.
23545if test "${with_prngd_port+set}" = set; then
23546 withval=$with_prngd_port;
23547 case "$withval" in
23548 no)
23549 withval=""
23550 ;;
23551 [0-9]*)
23552 ;;
23553 *)
23554 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
23555echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
23556 { (exit 1); exit 1; }; }
23557 ;;
23558 esac
23559 if test ! -z "$withval" ; then
23560 PRNGD_PORT="$withval"
23561
23562cat >>confdefs.h <<_ACEOF
23563#define PRNGD_PORT $PRNGD_PORT
23564_ACEOF
23565
23566 fi
23567
23568
23569fi
23570
23571
23572# PRNGD Unix domain socket
23573
23574# Check whether --with-prngd-socket was given.
23575if test "${with_prngd_socket+set}" = set; then
23576 withval=$with_prngd_socket;
23577 case "$withval" in
23578 yes)
23579 withval="/var/run/egd-pool"
23580 ;;
23581 no)
23582 withval=""
23583 ;;
23584 /*)
23585 ;;
23586 *)
23587 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
23588echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
23589 { (exit 1); exit 1; }; }
23590 ;;
23591 esac
23592
23593 if test ! -z "$withval" ; then
23594 if test ! -z "$PRNGD_PORT" ; then
23595 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
23596echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
23597 { (exit 1); exit 1; }; }
23598 fi
23599 if test ! -r "$withval" ; then
23600 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
23601echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
23602 fi
23603 PRNGD_SOCKET="$withval"
23604
23605cat >>confdefs.h <<_ACEOF
23606#define PRNGD_SOCKET "$PRNGD_SOCKET"
23607_ACEOF
23608
23609 fi
23610
23611else
23612
23613 # Check for existing socket only if we don't have a random device already
23614 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
23615 { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
23616echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
23617 # Insert other locations here
23618 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
23619 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
23620 PRNGD_SOCKET="$sock"
23621 cat >>confdefs.h <<_ACEOF
23622#define PRNGD_SOCKET "$PRNGD_SOCKET"
23623_ACEOF
23624
23625 break;
23626 fi
23627 done
23628 if test ! -z "$PRNGD_SOCKET" ; then
23629 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
23630echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
23631 else
23632 { echo "$as_me:$LINENO: result: not found" >&5
23633echo "${ECHO_T}not found" >&6; }
23634 fi
23635 fi
23636
23637
23638fi
23639
23640
23641# Which randomness source do we use?
23642if test ! -z "$PRNGD_PORT" ; then
23643 RAND_MSG="PRNGd port $PRNGD_PORT"
23644elif test ! -z "$PRNGD_SOCKET" ; then
23645 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
23646elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
23647
23648cat >>confdefs.h <<\_ACEOF
23649#define OPENSSL_PRNG_ONLY 1
23650_ACEOF
23651
23652 RAND_MSG="OpenSSL internal ONLY"
23653elif test "x$openssl" = "xno" ; then
23654 { 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
23655echo "$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;}
23656else
23657 { { 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
23658echo "$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;}
23659 { (exit 1); exit 1; }; }
23660fi
23661
23662# Check for PAM libs
23663PAM_MSG="no"
23664
23665# Check whether --with-pam was given.
23666if test "${with_pam+set}" = set; then
23667 withval=$with_pam;
23668 if test "x$withval" != "xno" ; then
23669 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
23670 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
23671 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
23672echo "$as_me: error: PAM headers not found" >&2;}
23673 { (exit 1); exit 1; }; }
23674 fi
23675
23676 saved_LIBS="$LIBS"
23677
23678{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23679echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
23680if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23681 echo $ECHO_N "(cached) $ECHO_C" >&6
23682else
23683 ac_check_lib_save_LIBS=$LIBS
23684LIBS="-ldl $LIBS"
23685cat >conftest.$ac_ext <<_ACEOF
23686/* confdefs.h. */
23687_ACEOF
23688cat confdefs.h >>conftest.$ac_ext
23689cat >>conftest.$ac_ext <<_ACEOF
23690/* end confdefs.h. */
23691
23692/* Override any GCC internal prototype to avoid an error.
23693 Use char because int might match the return type of a GCC
23694 builtin and then its argument prototype would still apply. */
23695#ifdef __cplusplus
23696extern "C"
23697#endif
23698char dlopen ();
23699int
23700main ()
23701{
23702return dlopen ();
23703 ;
23704 return 0;
23705}
23706_ACEOF
23707rm -f conftest.$ac_objext conftest$ac_exeext
23708if { (ac_try="$ac_link"
23709case "(($ac_try" in
23710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23711 *) ac_try_echo=$ac_try;;
23712esac
23713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23714 (eval "$ac_link") 2>conftest.er1
23715 ac_status=$?
23716 grep -v '^ *+' conftest.er1 >conftest.err
23717 rm -f conftest.er1
23718 cat conftest.err >&5
23719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720 (exit $ac_status); } && {
23721 test -z "$ac_c_werror_flag" ||
23722 test ! -s conftest.err
23723 } && test -s conftest$ac_exeext &&
23724 $as_test_x conftest$ac_exeext; then
23725 ac_cv_lib_dl_dlopen=yes
23726else
23727 echo "$as_me: failed program was:" >&5
23728sed 's/^/| /' conftest.$ac_ext >&5
23729
23730 ac_cv_lib_dl_dlopen=no
23731fi
23732
23733rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23734 conftest$ac_exeext conftest.$ac_ext
23735LIBS=$ac_check_lib_save_LIBS
23736fi
23737{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23738echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
23739if test $ac_cv_lib_dl_dlopen = yes; then
23740 cat >>confdefs.h <<_ACEOF
23741#define HAVE_LIBDL 1
23742_ACEOF
23743
23744 LIBS="-ldl $LIBS"
23745
23746fi
23747
23748
23749{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
23750echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
23751if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
23752 echo $ECHO_N "(cached) $ECHO_C" >&6
23753else
23754 ac_check_lib_save_LIBS=$LIBS
23755LIBS="-lpam $LIBS"
23756cat >conftest.$ac_ext <<_ACEOF
23757/* confdefs.h. */
23758_ACEOF
23759cat confdefs.h >>conftest.$ac_ext
23760cat >>conftest.$ac_ext <<_ACEOF
23761/* end confdefs.h. */
23762
23763/* Override any GCC internal prototype to avoid an error.
23764 Use char because int might match the return type of a GCC
23765 builtin and then its argument prototype would still apply. */
23766#ifdef __cplusplus
23767extern "C"
23768#endif
23769char pam_set_item ();
23770int
23771main ()
23772{
23773return pam_set_item ();
23774 ;
23775 return 0;
23776}
23777_ACEOF
23778rm -f conftest.$ac_objext conftest$ac_exeext
23779if { (ac_try="$ac_link"
23780case "(($ac_try" in
23781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23783esac
23784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785 (eval "$ac_link") 2>conftest.er1
23786 ac_status=$?
23787 grep -v '^ *+' conftest.er1 >conftest.err
23788 rm -f conftest.er1
23789 cat conftest.err >&5
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); } && {
23792 test -z "$ac_c_werror_flag" ||
23793 test ! -s conftest.err
23794 } && test -s conftest$ac_exeext &&
23795 $as_test_x conftest$ac_exeext; then
23796 ac_cv_lib_pam_pam_set_item=yes
23797else
23798 echo "$as_me: failed program was:" >&5
23799sed 's/^/| /' conftest.$ac_ext >&5
23800
23801 ac_cv_lib_pam_pam_set_item=no
23802fi
23803
23804rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23805 conftest$ac_exeext conftest.$ac_ext
23806LIBS=$ac_check_lib_save_LIBS
23807fi
23808{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
23809echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
23810if test $ac_cv_lib_pam_pam_set_item = yes; then
23811 cat >>confdefs.h <<_ACEOF
23812#define HAVE_LIBPAM 1
23813_ACEOF
23814
23815 LIBS="-lpam $LIBS"
23816
23817else
23818 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
23819echo "$as_me: error: *** libpam missing" >&2;}
23820 { (exit 1); exit 1; }; }
23821fi
23822
23823
23824for ac_func in pam_getenvlist
23825do
23826as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23827{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23828echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23829if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23830 echo $ECHO_N "(cached) $ECHO_C" >&6
23831else
23832 cat >conftest.$ac_ext <<_ACEOF
23833/* confdefs.h. */
23834_ACEOF
23835cat confdefs.h >>conftest.$ac_ext
23836cat >>conftest.$ac_ext <<_ACEOF
23837/* end confdefs.h. */
23838/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23840#define $ac_func innocuous_$ac_func
23841
23842/* System header to define __stub macros and hopefully few prototypes,
23843 which can conflict with char $ac_func (); below.
23844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23845 <limits.h> exists even on freestanding compilers. */
23846
23847#ifdef __STDC__
23848# include <limits.h>
23849#else
23850# include <assert.h>
23851#endif
23852
23853#undef $ac_func
23854
23855/* Override any GCC internal prototype to avoid an error.
23856 Use char because int might match the return type of a GCC
23857 builtin and then its argument prototype would still apply. */
23858#ifdef __cplusplus
23859extern "C"
23860#endif
23861char $ac_func ();
23862/* The GNU C library defines this for functions which it implements
23863 to always fail with ENOSYS. Some functions are actually named
23864 something starting with __ and the normal name is an alias. */
23865#if defined __stub_$ac_func || defined __stub___$ac_func
23866choke me
23867#endif
23868
23869int
23870main ()
23871{
23872return $ac_func ();
23873 ;
23874 return 0;
23875}
23876_ACEOF
23877rm -f conftest.$ac_objext conftest$ac_exeext
23878if { (ac_try="$ac_link"
23879case "(($ac_try" in
23880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23881 *) ac_try_echo=$ac_try;;
23882esac
23883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23884 (eval "$ac_link") 2>conftest.er1
23885 ac_status=$?
23886 grep -v '^ *+' conftest.er1 >conftest.err
23887 rm -f conftest.er1
23888 cat conftest.err >&5
23889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); } && {
23891 test -z "$ac_c_werror_flag" ||
23892 test ! -s conftest.err
23893 } && test -s conftest$ac_exeext &&
23894 $as_test_x conftest$ac_exeext; then
23895 eval "$as_ac_var=yes"
23896else
23897 echo "$as_me: failed program was:" >&5
23898sed 's/^/| /' conftest.$ac_ext >&5
23899
23900 eval "$as_ac_var=no"
23901fi
23902
23903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23904 conftest$ac_exeext conftest.$ac_ext
23905fi
23906ac_res=`eval echo '${'$as_ac_var'}'`
23907 { echo "$as_me:$LINENO: result: $ac_res" >&5
23908echo "${ECHO_T}$ac_res" >&6; }
23909if test `eval echo '${'$as_ac_var'}'` = yes; then
23910 cat >>confdefs.h <<_ACEOF
23911#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23912_ACEOF
23913
23914fi
23915done
23916
23917
23918for ac_func in pam_putenv
23919do
23920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23921{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23923if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23924 echo $ECHO_N "(cached) $ECHO_C" >&6
23925else
23926 cat >conftest.$ac_ext <<_ACEOF
23927/* confdefs.h. */
23928_ACEOF
23929cat confdefs.h >>conftest.$ac_ext
23930cat >>conftest.$ac_ext <<_ACEOF
23931/* end confdefs.h. */
23932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23934#define $ac_func innocuous_$ac_func
23935
23936/* System header to define __stub macros and hopefully few prototypes,
23937 which can conflict with char $ac_func (); below.
23938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23939 <limits.h> exists even on freestanding compilers. */
23940
23941#ifdef __STDC__
23942# include <limits.h>
23943#else
23944# include <assert.h>
23945#endif
23946
23947#undef $ac_func
23948
23949/* Override any GCC internal prototype to avoid an error.
23950 Use char because int might match the return type of a GCC
23951 builtin and then its argument prototype would still apply. */
23952#ifdef __cplusplus
23953extern "C"
23954#endif
23955char $ac_func ();
23956/* The GNU C library defines this for functions which it implements
23957 to always fail with ENOSYS. Some functions are actually named
23958 something starting with __ and the normal name is an alias. */
23959#if defined __stub_$ac_func || defined __stub___$ac_func
23960choke me
23961#endif
23962
23963int
23964main ()
23965{
23966return $ac_func ();
23967 ;
23968 return 0;
23969}
23970_ACEOF
23971rm -f conftest.$ac_objext conftest$ac_exeext
23972if { (ac_try="$ac_link"
23973case "(($ac_try" in
23974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975 *) ac_try_echo=$ac_try;;
23976esac
23977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23978 (eval "$ac_link") 2>conftest.er1
23979 ac_status=$?
23980 grep -v '^ *+' conftest.er1 >conftest.err
23981 rm -f conftest.er1
23982 cat conftest.err >&5
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); } && {
23985 test -z "$ac_c_werror_flag" ||
23986 test ! -s conftest.err
23987 } && test -s conftest$ac_exeext &&
23988 $as_test_x conftest$ac_exeext; then
23989 eval "$as_ac_var=yes"
23990else
23991 echo "$as_me: failed program was:" >&5
23992sed 's/^/| /' conftest.$ac_ext >&5
23993
23994 eval "$as_ac_var=no"
23995fi
23996
23997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23998 conftest$ac_exeext conftest.$ac_ext
23999fi
24000ac_res=`eval echo '${'$as_ac_var'}'`
24001 { echo "$as_me:$LINENO: result: $ac_res" >&5
24002echo "${ECHO_T}$ac_res" >&6; }
24003if test `eval echo '${'$as_ac_var'}'` = yes; then
24004 cat >>confdefs.h <<_ACEOF
24005#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24006_ACEOF
24007
24008fi
24009done
24010
24011 LIBS="$saved_LIBS"
24012
24013 PAM_MSG="yes"
24014
24015 SSHDLIBS="$SSHDLIBS -lpam"
24016
24017cat >>confdefs.h <<\_ACEOF
24018#define USE_PAM 1
24019_ACEOF
24020
24021
24022 if test $ac_cv_lib_dl_dlopen = yes; then
24023 case "$LIBS" in
24024 *-ldl*)
24025 # libdl already in LIBS
24026 ;;
24027 *)
24028 SSHDLIBS="$SSHDLIBS -ldl"
24029 ;;
24030 esac
24031 fi
24032 fi
24033
24034
24035fi
24036
24037
24038# Check for older PAM
24039if test "x$PAM_MSG" = "xyes" ; then
24040 # Check PAM strerror arguments (old PAM)
24041 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
24042echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
24043 cat >conftest.$ac_ext <<_ACEOF
24044/* confdefs.h. */
24045_ACEOF
24046cat confdefs.h >>conftest.$ac_ext
24047cat >>conftest.$ac_ext <<_ACEOF
24048/* end confdefs.h. */
24049
24050#include <stdlib.h>
24051#if defined(HAVE_SECURITY_PAM_APPL_H)
24052#include <security/pam_appl.h>
24053#elif defined (HAVE_PAM_PAM_APPL_H)
24054#include <pam/pam_appl.h>
24055#endif
24056
24057int
24058main ()
24059{
24060
24061(void)pam_strerror((pam_handle_t *)NULL, -1);
24062
24063 ;
24064 return 0;
24065}
24066_ACEOF
24067rm -f conftest.$ac_objext
24068if { (ac_try="$ac_compile"
24069case "(($ac_try" in
24070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24071 *) ac_try_echo=$ac_try;;
24072esac
24073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24074 (eval "$ac_compile") 2>conftest.er1
24075 ac_status=$?
24076 grep -v '^ *+' conftest.er1 >conftest.err
24077 rm -f conftest.er1
24078 cat conftest.err >&5
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); } && {
24081 test -z "$ac_c_werror_flag" ||
24082 test ! -s conftest.err
24083 } && test -s conftest.$ac_objext; then
24084 { echo "$as_me:$LINENO: result: no" >&5
24085echo "${ECHO_T}no" >&6; }
24086else
24087 echo "$as_me: failed program was:" >&5
24088sed 's/^/| /' conftest.$ac_ext >&5
24089
24090
24091
24092cat >>confdefs.h <<\_ACEOF
24093#define HAVE_OLD_PAM 1
24094_ACEOF
24095
24096 { echo "$as_me:$LINENO: result: yes" >&5
24097echo "${ECHO_T}yes" >&6; }
24098 PAM_MSG="yes (old library)"
24099
24100
24101fi
24102
24103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24104fi
24105
24106case "$host" in
24107*-*-cygwin*)
24108 SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER
24109 ;;
24110*)
24111 SSH_PRIVSEP_USER=sshd
24112 ;;
24113esac
24114
24115# Check whether --with-privsep-user was given.
24116if test "${with_privsep_user+set}" = set; then
24117 withval=$with_privsep_user;
24118 if test -n "$withval" && test "x$withval" != "xno" && \
24119 test "x${withval}" != "xyes"; then
24120 SSH_PRIVSEP_USER=$withval
24121 fi
24122
24123
24124fi
24125
24126if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then
24127
24128cat >>confdefs.h <<_ACEOF
24129#define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER
24130_ACEOF
24131
24132else
24133
24134cat >>confdefs.h <<_ACEOF
24135#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
24136_ACEOF
24137
24138fi
24139
24140
24141if test "x$have_linux_no_new_privs" = "x1" ; then
24142{ echo "$as_me:$LINENO: checking whether SECCOMP_MODE_FILTER is declared" >&5
24143echo $ECHO_N "checking whether SECCOMP_MODE_FILTER is declared... $ECHO_C" >&6; }
24144if test "${ac_cv_have_decl_SECCOMP_MODE_FILTER+set}" = set; then
24145 echo $ECHO_N "(cached) $ECHO_C" >&6
24146else
24147 cat >conftest.$ac_ext <<_ACEOF
24148/* confdefs.h. */
24149_ACEOF
24150cat confdefs.h >>conftest.$ac_ext
24151cat >>conftest.$ac_ext <<_ACEOF
24152/* end confdefs.h. */
24153
24154 #include <sys/types.h>
24155 #include <linux/seccomp.h>
24156
24157
24158int
24159main ()
24160{
24161#ifndef SECCOMP_MODE_FILTER
24162 (void) SECCOMP_MODE_FILTER;
24163#endif
24164
24165 ;
24166 return 0;
24167}
24168_ACEOF
24169rm -f conftest.$ac_objext
24170if { (ac_try="$ac_compile"
24171case "(($ac_try" in
24172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24173 *) ac_try_echo=$ac_try;;
24174esac
24175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24176 (eval "$ac_compile") 2>conftest.er1
24177 ac_status=$?
24178 grep -v '^ *+' conftest.er1 >conftest.err
24179 rm -f conftest.er1
24180 cat conftest.err >&5
24181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24182 (exit $ac_status); } && {
24183 test -z "$ac_c_werror_flag" ||
24184 test ! -s conftest.err
24185 } && test -s conftest.$ac_objext; then
24186 ac_cv_have_decl_SECCOMP_MODE_FILTER=yes
24187else
24188 echo "$as_me: failed program was:" >&5
24189sed 's/^/| /' conftest.$ac_ext >&5
24190
24191 ac_cv_have_decl_SECCOMP_MODE_FILTER=no
24192fi
24193
24194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24195fi
24196{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SECCOMP_MODE_FILTER" >&5
24197echo "${ECHO_T}$ac_cv_have_decl_SECCOMP_MODE_FILTER" >&6; }
24198if test $ac_cv_have_decl_SECCOMP_MODE_FILTER = yes; then
24199 have_seccomp_filter=1
24200fi
24201
24202fi
24203if test "x$have_seccomp_filter" = "x1" ; then
24204{ echo "$as_me:$LINENO: checking kernel for seccomp_filter support" >&5
24205echo $ECHO_N "checking kernel for seccomp_filter support... $ECHO_C" >&6; }
24206cat >conftest.$ac_ext <<_ACEOF
24207/* confdefs.h. */
24208_ACEOF
24209cat confdefs.h >>conftest.$ac_ext
24210cat >>conftest.$ac_ext <<_ACEOF
24211/* end confdefs.h. */
24212
24213 #include <errno.h>
24214 #include <elf.h>
24215 #include <linux/audit.h>
24216 #include <linux/seccomp.h>
24217 #include <stdlib.h>
24218 #include <sys/prctl.h>
24219
24220int
24221main ()
24222{
24223 int i = $seccomp_audit_arch;
24224 errno = 0;
24225 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
24226 exit(errno == EFAULT ? 0 : 1);
24227 ;
24228 return 0;
24229}
24230_ACEOF
24231rm -f conftest.$ac_objext conftest$ac_exeext
24232if { (ac_try="$ac_link"
24233case "(($ac_try" in
24234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24235 *) ac_try_echo=$ac_try;;
24236esac
24237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24238 (eval "$ac_link") 2>conftest.er1
24239 ac_status=$?
24240 grep -v '^ *+' conftest.er1 >conftest.err
24241 rm -f conftest.er1
24242 cat conftest.err >&5
24243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244 (exit $ac_status); } && {
24245 test -z "$ac_c_werror_flag" ||
24246 test ! -s conftest.err
24247 } && test -s conftest$ac_exeext &&
24248 $as_test_x conftest$ac_exeext; then
24249 { echo "$as_me:$LINENO: result: yes" >&5
24250echo "${ECHO_T}yes" >&6; }
24251else
24252 echo "$as_me: failed program was:" >&5
24253sed 's/^/| /' conftest.$ac_ext >&5
24254
24255
24256 { echo "$as_me:$LINENO: result: no" >&5
24257echo "${ECHO_T}no" >&6; }
24258 # Disable seccomp filter as a target
24259 have_seccomp_filter=0
24260
24261
24262fi
24263
24264rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24265 conftest$ac_exeext conftest.$ac_ext
24266fi
24267
24268# Decide which sandbox style to use
24269sandbox_arg=""
24270
24271# Check whether --with-sandbox was given.
24272if test "${with_sandbox+set}" = set; then
24273 withval=$with_sandbox;
24274 if test "x$withval" = "xyes" ; then
24275 sandbox_arg=""
24276 else
24277 sandbox_arg="$withval"
24278 fi
24279
24280
24281fi
24282
24283
24284# Some platforms (seems to be the ones that have a kernel poll(2)-type
24285# function with which they implement select(2)) use an extra file descriptor
24286# when calling select(2), which means we can't use the rlimit sandbox.
24287{ echo "$as_me:$LINENO: checking if select works with descriptor rlimit" >&5
24288echo $ECHO_N "checking if select works with descriptor rlimit... $ECHO_C" >&6; }
24289if test "$cross_compiling" = yes; then
24290 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
24291echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
24292
24293else
24294 cat >conftest.$ac_ext <<_ACEOF
24295/* confdefs.h. */
24296_ACEOF
24297cat confdefs.h >>conftest.$ac_ext
24298cat >>conftest.$ac_ext <<_ACEOF
24299/* end confdefs.h. */
24300
24301#include <sys/types.h>
24302#ifdef HAVE_SYS_TIME_H
24303# include <sys/time.h>
24304#endif
24305#include <sys/resource.h>
24306#ifdef HAVE_SYS_SELECT_H
24307# include <sys/select.h>
24308#endif
24309#include <errno.h>
24310#include <fcntl.h>
24311#include <stdlib.h>
24312
24313int
24314main ()
24315{
24316
24317 struct rlimit rl_zero;
24318 int fd, r;
24319 fd_set fds;
24320 struct timeval tv;
24321
24322 fd = open("/dev/null", O_RDONLY);
24323 FD_ZERO(&fds);
24324 FD_SET(fd, &fds);
24325 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
24326 setrlimit(RLIMIT_FSIZE, &rl_zero);
24327 setrlimit(RLIMIT_NOFILE, &rl_zero);
24328 tv.tv_sec = 1;
24329 tv.tv_usec = 0;
24330 r = select(fd+1, &fds, NULL, NULL, &tv);
24331 exit (r == -1 ? 1 : 0);
24332
24333 ;
24334 return 0;
24335}
24336_ACEOF
24337rm -f conftest$ac_exeext
24338if { (ac_try="$ac_link"
24339case "(($ac_try" in
24340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24341 *) ac_try_echo=$ac_try;;
24342esac
24343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24344 (eval "$ac_link") 2>&5
24345 ac_status=$?
24346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24348 { (case "(($ac_try" in
24349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24350 *) ac_try_echo=$ac_try;;
24351esac
24352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24353 (eval "$ac_try") 2>&5
24354 ac_status=$?
24355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356 (exit $ac_status); }; }; then
24357 { echo "$as_me:$LINENO: result: yes" >&5
24358echo "${ECHO_T}yes" >&6; }
24359 select_works_with_rlimit=yes
24360else
24361 echo "$as_me: program exited with status $ac_status" >&5
24362echo "$as_me: failed program was:" >&5
24363sed 's/^/| /' conftest.$ac_ext >&5
24364
24365( exit $ac_status )
24366{ echo "$as_me:$LINENO: result: no" >&5
24367echo "${ECHO_T}no" >&6; }
24368 select_works_with_rlimit=no
24369fi
24370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24371fi
24372
24373
24374
24375{ echo "$as_me:$LINENO: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5
24376echo $ECHO_N "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... $ECHO_C" >&6; }
24377if test "$cross_compiling" = yes; then
24378 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
24379echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
24380
24381else
24382 cat >conftest.$ac_ext <<_ACEOF
24383/* confdefs.h. */
24384_ACEOF
24385cat confdefs.h >>conftest.$ac_ext
24386cat >>conftest.$ac_ext <<_ACEOF
24387/* end confdefs.h. */
24388
24389#include <sys/types.h>
24390#ifdef HAVE_SYS_TIME_H
24391# include <sys/time.h>
24392#endif
24393#include <sys/resource.h>
24394#include <errno.h>
24395#include <stdlib.h>
24396
24397int
24398main ()
24399{
24400
24401 struct rlimit rl_zero;
24402 int fd, r;
24403 fd_set fds;
24404
24405 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
24406 r = setrlimit(RLIMIT_NOFILE, &rl_zero);
24407 exit (r == -1 ? 1 : 0);
24408
24409 ;
24410 return 0;
24411}
24412_ACEOF
24413rm -f conftest$ac_exeext
24414if { (ac_try="$ac_link"
24415case "(($ac_try" in
24416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24417 *) ac_try_echo=$ac_try;;
24418esac
24419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24420 (eval "$ac_link") 2>&5
24421 ac_status=$?
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24424 { (case "(($ac_try" in
24425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24426 *) ac_try_echo=$ac_try;;
24427esac
24428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24429 (eval "$ac_try") 2>&5
24430 ac_status=$?
24431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432 (exit $ac_status); }; }; then
24433 { echo "$as_me:$LINENO: result: yes" >&5
24434echo "${ECHO_T}yes" >&6; }
24435 rlimit_nofile_zero_works=yes
24436else
24437 echo "$as_me: program exited with status $ac_status" >&5
24438echo "$as_me: failed program was:" >&5
24439sed 's/^/| /' conftest.$ac_ext >&5
24440
24441( exit $ac_status )
24442{ echo "$as_me:$LINENO: result: no" >&5
24443echo "${ECHO_T}no" >&6; }
24444 rlimit_nofile_zero_works=no
24445fi
24446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24447fi
24448
24449
24450
24451{ echo "$as_me:$LINENO: checking if setrlimit RLIMIT_FSIZE works" >&5
24452echo $ECHO_N "checking if setrlimit RLIMIT_FSIZE works... $ECHO_C" >&6; }
24453if test "$cross_compiling" = yes; then
24454 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
24455echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
24456
24457else
24458 cat >conftest.$ac_ext <<_ACEOF
24459/* confdefs.h. */
24460_ACEOF
24461cat confdefs.h >>conftest.$ac_ext
24462cat >>conftest.$ac_ext <<_ACEOF
24463/* end confdefs.h. */
24464
24465#include <sys/types.h>
24466#include <sys/resource.h>
24467#include <stdlib.h>
24468
24469int
24470main ()
24471{
24472
24473 struct rlimit rl_zero;
24474
24475 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
24476 exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);
24477
24478 ;
24479 return 0;
24480}
24481_ACEOF
24482rm -f conftest$ac_exeext
24483if { (ac_try="$ac_link"
24484case "(($ac_try" in
24485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24486 *) ac_try_echo=$ac_try;;
24487esac
24488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24489 (eval "$ac_link") 2>&5
24490 ac_status=$?
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24493 { (case "(($ac_try" in
24494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24495 *) ac_try_echo=$ac_try;;
24496esac
24497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24498 (eval "$ac_try") 2>&5
24499 ac_status=$?
24500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24501 (exit $ac_status); }; }; then
24502 { echo "$as_me:$LINENO: result: yes" >&5
24503echo "${ECHO_T}yes" >&6; }
24504else
24505 echo "$as_me: program exited with status $ac_status" >&5
24506echo "$as_me: failed program was:" >&5
24507sed 's/^/| /' conftest.$ac_ext >&5
24508
24509( exit $ac_status )
24510{ echo "$as_me:$LINENO: result: no" >&5
24511echo "${ECHO_T}no" >&6; }
24512
24513cat >>confdefs.h <<\_ACEOF
24514#define SANDBOX_SKIP_RLIMIT_FSIZE 1
24515_ACEOF
24516
24517fi
24518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24519fi
24520
24521
24522
24523if test "x$sandbox_arg" = "xpledge" || \
24524 ( test -z "$sandbox_arg" && test "x$ac_cv_func_pledge" = "xyes" ) ; then
24525 test "x$ac_cv_func_pledge" != "xyes" && \
24526 { { echo "$as_me:$LINENO: error: pledge sandbox requires pledge(2) support" >&5
24527echo "$as_me: error: pledge sandbox requires pledge(2) support" >&2;}
24528 { (exit 1); exit 1; }; }
24529 SANDBOX_STYLE="pledge"
24530
24531cat >>confdefs.h <<\_ACEOF
24532#define SANDBOX_PLEDGE 1
24533_ACEOF
24534
24535elif test "x$sandbox_arg" = "xsystrace" || \
24536 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
24537 test "x$have_systr_policy_kill" != "x1" && \
24538 { { echo "$as_me:$LINENO: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&5
24539echo "$as_me: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&2;}
24540 { (exit 1); exit 1; }; }
24541 SANDBOX_STYLE="systrace"
24542
24543cat >>confdefs.h <<\_ACEOF
24544#define SANDBOX_SYSTRACE 1
24545_ACEOF
24546
24547elif test "x$sandbox_arg" = "xdarwin" || \
24548 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
24549 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
24550 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
24551 "x$ac_cv_header_sandbox_h" != "xyes" && \
24552 { { echo "$as_me:$LINENO: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&5
24553echo "$as_me: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&2;}
24554 { (exit 1); exit 1; }; }
24555 SANDBOX_STYLE="darwin"
24556
24557cat >>confdefs.h <<\_ACEOF
24558#define SANDBOX_DARWIN 1
24559_ACEOF
24560
24561elif test "x$sandbox_arg" = "xseccomp_filter" || \
24562 ( test -z "$sandbox_arg" && \
24563 test "x$have_seccomp_filter" = "x1" && \
24564 test "x$ac_cv_header_elf_h" = "xyes" && \
24565 test "x$ac_cv_header_linux_audit_h" = "xyes" && \
24566 test "x$ac_cv_header_linux_filter_h" = "xyes" && \
24567 test "x$seccomp_audit_arch" != "x" && \
24568 test "x$have_linux_no_new_privs" = "x1" && \
24569 test "x$ac_cv_func_prctl" = "xyes" ) ; then
24570 test "x$seccomp_audit_arch" = "x" && \
24571 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox not supported on $host" >&5
24572echo "$as_me: error: seccomp_filter sandbox not supported on $host" >&2;}
24573 { (exit 1); exit 1; }; }
24574 test "x$have_linux_no_new_privs" != "x1" && \
24575 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&5
24576echo "$as_me: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&2;}
24577 { (exit 1); exit 1; }; }
24578 test "x$have_seccomp_filter" != "x1" && \
24579 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires seccomp headers" >&5
24580echo "$as_me: error: seccomp_filter sandbox requires seccomp headers" >&2;}
24581 { (exit 1); exit 1; }; }
24582 test "x$ac_cv_func_prctl" != "xyes" && \
24583 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires prctl function" >&5
24584echo "$as_me: error: seccomp_filter sandbox requires prctl function" >&2;}
24585 { (exit 1); exit 1; }; }
24586 SANDBOX_STYLE="seccomp_filter"
24587
24588cat >>confdefs.h <<\_ACEOF
24589#define SANDBOX_SECCOMP_FILTER 1
24590_ACEOF
24591
24592elif test "x$sandbox_arg" = "xcapsicum" || \
24593 ( test -z "$sandbox_arg" && \
24594 test "x$ac_cv_header_sys_capability_h" = "xyes" && \
24595 test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then
24596 test "x$ac_cv_header_sys_capability_h" != "xyes" && \
24597 { { echo "$as_me:$LINENO: error: capsicum sandbox requires sys/capability.h header" >&5
24598echo "$as_me: error: capsicum sandbox requires sys/capability.h header" >&2;}
24599 { (exit 1); exit 1; }; }
24600 test "x$ac_cv_func_cap_rights_limit" != "xyes" && \
24601 { { echo "$as_me:$LINENO: error: capsicum sandbox requires cap_rights_limit function" >&5
24602echo "$as_me: error: capsicum sandbox requires cap_rights_limit function" >&2;}
24603 { (exit 1); exit 1; }; }
24604 SANDBOX_STYLE="capsicum"
24605
24606cat >>confdefs.h <<\_ACEOF
24607#define SANDBOX_CAPSICUM 1
24608_ACEOF
24609
24610elif test "x$sandbox_arg" = "xrlimit" || \
24611 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
24612 test "x$select_works_with_rlimit" = "xyes" && \
24613 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then
24614 test "x$ac_cv_func_setrlimit" != "xyes" && \
24615 { { echo "$as_me:$LINENO: error: rlimit sandbox requires setrlimit function" >&5
24616echo "$as_me: error: rlimit sandbox requires setrlimit function" >&2;}
24617 { (exit 1); exit 1; }; }
24618 test "x$select_works_with_rlimit" != "xyes" && \
24619 { { echo "$as_me:$LINENO: error: rlimit sandbox requires select to work with rlimit" >&5
24620echo "$as_me: error: rlimit sandbox requires select to work with rlimit" >&2;}
24621 { (exit 1); exit 1; }; }
24622 SANDBOX_STYLE="rlimit"
24623
24624cat >>confdefs.h <<\_ACEOF
24625#define SANDBOX_RLIMIT 1
24626_ACEOF
24627
24628elif test "x$sandbox_arg" = "xsolaris" || \
24629 ( test -z "$sandbox_arg" && test "x$SOLARIS_PRIVS" = "xyes" ) ; then
24630 SANDBOX_STYLE="solaris"
24631
24632cat >>confdefs.h <<\_ACEOF
24633#define SANDBOX_SOLARIS 1
24634_ACEOF
24635
24636elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
24637 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
24638 SANDBOX_STYLE="none"
24639
24640cat >>confdefs.h <<\_ACEOF
24641#define SANDBOX_NULL 1
24642_ACEOF
24643
24644else
24645 { { echo "$as_me:$LINENO: error: unsupported --with-sandbox" >&5
24646echo "$as_me: error: unsupported --with-sandbox" >&2;}
24647 { (exit 1); exit 1; }; }
24648fi
24649
24650# Cheap hack to ensure NEWS-OS libraries are arranged right.
24651if test ! -z "$SONY" ; then
24652 LIBS="$LIBS -liberty";
24653fi
24654
24655# Check for long long datatypes
24656{ echo "$as_me:$LINENO: checking for long long" >&5
24657echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24658if test "${ac_cv_type_long_long+set}" = set; then
24659 echo $ECHO_N "(cached) $ECHO_C" >&6
24660else
24661 cat >conftest.$ac_ext <<_ACEOF
24662/* confdefs.h. */
24663_ACEOF
24664cat confdefs.h >>conftest.$ac_ext
24665cat >>conftest.$ac_ext <<_ACEOF
24666/* end confdefs.h. */
24667$ac_includes_default
24668typedef long long ac__type_new_;
24669int
24670main ()
24671{
24672if ((ac__type_new_ *) 0)
24673 return 0;
24674if (sizeof (ac__type_new_))
24675 return 0;
24676 ;
24677 return 0;
24678}
24679_ACEOF
24680rm -f conftest.$ac_objext
24681if { (ac_try="$ac_compile"
24682case "(($ac_try" in
24683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24684 *) ac_try_echo=$ac_try;;
24685esac
24686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24687 (eval "$ac_compile") 2>conftest.er1
24688 ac_status=$?
24689 grep -v '^ *+' conftest.er1 >conftest.err
24690 rm -f conftest.er1
24691 cat conftest.err >&5
24692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693 (exit $ac_status); } && {
24694 test -z "$ac_c_werror_flag" ||
24695 test ! -s conftest.err
24696 } && test -s conftest.$ac_objext; then
24697 ac_cv_type_long_long=yes
24698else
24699 echo "$as_me: failed program was:" >&5
24700sed 's/^/| /' conftest.$ac_ext >&5
24701
24702 ac_cv_type_long_long=no
24703fi
24704
24705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24706fi
24707{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24708echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24709if test $ac_cv_type_long_long = yes; then
24710
24711cat >>confdefs.h <<_ACEOF
24712#define HAVE_LONG_LONG 1
24713_ACEOF
24714
24715
24716fi
24717{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
24718echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
24719if test "${ac_cv_type_unsigned_long_long+set}" = set; then
24720 echo $ECHO_N "(cached) $ECHO_C" >&6
24721else
24722 cat >conftest.$ac_ext <<_ACEOF
24723/* confdefs.h. */
24724_ACEOF
24725cat confdefs.h >>conftest.$ac_ext
24726cat >>conftest.$ac_ext <<_ACEOF
24727/* end confdefs.h. */
24728$ac_includes_default
24729typedef unsigned long long ac__type_new_;
24730int
24731main ()
24732{
24733if ((ac__type_new_ *) 0)
24734 return 0;
24735if (sizeof (ac__type_new_))
24736 return 0;
24737 ;
24738 return 0;
24739}
24740_ACEOF
24741rm -f conftest.$ac_objext
24742if { (ac_try="$ac_compile"
24743case "(($ac_try" in
24744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24745 *) ac_try_echo=$ac_try;;
24746esac
24747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24748 (eval "$ac_compile") 2>conftest.er1
24749 ac_status=$?
24750 grep -v '^ *+' conftest.er1 >conftest.err
24751 rm -f conftest.er1
24752 cat conftest.err >&5
24753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); } && {
24755 test -z "$ac_c_werror_flag" ||
24756 test ! -s conftest.err
24757 } && test -s conftest.$ac_objext; then
24758 ac_cv_type_unsigned_long_long=yes
24759else
24760 echo "$as_me: failed program was:" >&5
24761sed 's/^/| /' conftest.$ac_ext >&5
24762
24763 ac_cv_type_unsigned_long_long=no
24764fi
24765
24766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24767fi
24768{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
24769echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
24770if test $ac_cv_type_unsigned_long_long = yes; then
24771
24772cat >>confdefs.h <<_ACEOF
24773#define HAVE_UNSIGNED_LONG_LONG 1
24774_ACEOF
24775
24776
24777fi
24778{ echo "$as_me:$LINENO: checking for long double" >&5
24779echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
24780if test "${ac_cv_type_long_double+set}" = set; then
24781 echo $ECHO_N "(cached) $ECHO_C" >&6
24782else
24783 cat >conftest.$ac_ext <<_ACEOF
24784/* confdefs.h. */
24785_ACEOF
24786cat confdefs.h >>conftest.$ac_ext
24787cat >>conftest.$ac_ext <<_ACEOF
24788/* end confdefs.h. */
24789$ac_includes_default
24790typedef long double ac__type_new_;
24791int
24792main ()
24793{
24794if ((ac__type_new_ *) 0)
24795 return 0;
24796if (sizeof (ac__type_new_))
24797 return 0;
24798 ;
24799 return 0;
24800}
24801_ACEOF
24802rm -f conftest.$ac_objext
24803if { (ac_try="$ac_compile"
24804case "(($ac_try" in
24805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806 *) ac_try_echo=$ac_try;;
24807esac
24808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24809 (eval "$ac_compile") 2>conftest.er1
24810 ac_status=$?
24811 grep -v '^ *+' conftest.er1 >conftest.err
24812 rm -f conftest.er1
24813 cat conftest.err >&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } && {
24816 test -z "$ac_c_werror_flag" ||
24817 test ! -s conftest.err
24818 } && test -s conftest.$ac_objext; then
24819 ac_cv_type_long_double=yes
24820else
24821 echo "$as_me: failed program was:" >&5
24822sed 's/^/| /' conftest.$ac_ext >&5
24823
24824 ac_cv_type_long_double=no
24825fi
24826
24827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24828fi
24829{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
24830echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
24831if test $ac_cv_type_long_double = yes; then
24832
24833cat >>confdefs.h <<_ACEOF
24834#define HAVE_LONG_DOUBLE 1
24835_ACEOF
24836
24837
24838fi
24839
24840
24841# Check datatype sizes
24842{ echo "$as_me:$LINENO: checking for short int" >&5
24843echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
24844if test "${ac_cv_type_short_int+set}" = set; then
24845 echo $ECHO_N "(cached) $ECHO_C" >&6
24846else
24847 cat >conftest.$ac_ext <<_ACEOF
24848/* confdefs.h. */
24849_ACEOF
24850cat confdefs.h >>conftest.$ac_ext
24851cat >>conftest.$ac_ext <<_ACEOF
24852/* end confdefs.h. */
24853$ac_includes_default
24854typedef short int ac__type_new_;
24855int
24856main ()
24857{
24858if ((ac__type_new_ *) 0)
24859 return 0;
24860if (sizeof (ac__type_new_))
24861 return 0;
24862 ;
24863 return 0;
24864}
24865_ACEOF
24866rm -f conftest.$ac_objext
24867if { (ac_try="$ac_compile"
24868case "(($ac_try" in
24869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24870 *) ac_try_echo=$ac_try;;
24871esac
24872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24873 (eval "$ac_compile") 2>conftest.er1
24874 ac_status=$?
24875 grep -v '^ *+' conftest.er1 >conftest.err
24876 rm -f conftest.er1
24877 cat conftest.err >&5
24878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); } && {
24880 test -z "$ac_c_werror_flag" ||
24881 test ! -s conftest.err
24882 } && test -s conftest.$ac_objext; then
24883 ac_cv_type_short_int=yes
24884else
24885 echo "$as_me: failed program was:" >&5
24886sed 's/^/| /' conftest.$ac_ext >&5
24887
24888 ac_cv_type_short_int=no
24889fi
24890
24891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24892fi
24893{ echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
24894echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
24895
24896# The cast to long int works around a bug in the HP C Compiler
24897# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24898# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24899# This bug is HP SR number 8606223364.
24900{ echo "$as_me:$LINENO: checking size of short int" >&5
24901echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
24902if test "${ac_cv_sizeof_short_int+set}" = set; then
24903 echo $ECHO_N "(cached) $ECHO_C" >&6
24904else
24905 if test "$cross_compiling" = yes; then
24906 # Depending upon the size, compute the lo and hi bounds.
24907cat >conftest.$ac_ext <<_ACEOF
24908/* confdefs.h. */
24909_ACEOF
24910cat confdefs.h >>conftest.$ac_ext
24911cat >>conftest.$ac_ext <<_ACEOF
24912/* end confdefs.h. */
24913$ac_includes_default
24914 typedef short int ac__type_sizeof_;
24915int
24916main ()
24917{
24918static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24919test_array [0] = 0
24920
24921 ;
24922 return 0;
24923}
24924_ACEOF
24925rm -f conftest.$ac_objext
24926if { (ac_try="$ac_compile"
24927case "(($ac_try" in
24928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24929 *) ac_try_echo=$ac_try;;
24930esac
24931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24932 (eval "$ac_compile") 2>conftest.er1
24933 ac_status=$?
24934 grep -v '^ *+' conftest.er1 >conftest.err
24935 rm -f conftest.er1
24936 cat conftest.err >&5
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); } && {
24939 test -z "$ac_c_werror_flag" ||
24940 test ! -s conftest.err
24941 } && test -s conftest.$ac_objext; then
24942 ac_lo=0 ac_mid=0
24943 while :; do
24944 cat >conftest.$ac_ext <<_ACEOF
24945/* confdefs.h. */
24946_ACEOF
24947cat confdefs.h >>conftest.$ac_ext
24948cat >>conftest.$ac_ext <<_ACEOF
24949/* end confdefs.h. */
24950$ac_includes_default
24951 typedef short int ac__type_sizeof_;
24952int
24953main ()
24954{
24955static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24956test_array [0] = 0
24957
24958 ;
24959 return 0;
24960}
24961_ACEOF
24962rm -f conftest.$ac_objext
24963if { (ac_try="$ac_compile"
24964case "(($ac_try" in
24965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966 *) ac_try_echo=$ac_try;;
24967esac
24968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24969 (eval "$ac_compile") 2>conftest.er1
24970 ac_status=$?
24971 grep -v '^ *+' conftest.er1 >conftest.err
24972 rm -f conftest.er1
24973 cat conftest.err >&5
24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); } && {
24976 test -z "$ac_c_werror_flag" ||
24977 test ! -s conftest.err
24978 } && test -s conftest.$ac_objext; then
24979 ac_hi=$ac_mid; break
24980else
24981 echo "$as_me: failed program was:" >&5
24982sed 's/^/| /' conftest.$ac_ext >&5
24983
24984 ac_lo=`expr $ac_mid + 1`
24985 if test $ac_lo -le $ac_mid; then
24986 ac_lo= ac_hi=
24987 break
24988 fi
24989 ac_mid=`expr 2 '*' $ac_mid + 1`
24990fi
24991
24992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24993 done
24994else
24995 echo "$as_me: failed program was:" >&5
24996sed 's/^/| /' conftest.$ac_ext >&5
24997
24998 cat >conftest.$ac_ext <<_ACEOF
24999/* confdefs.h. */
25000_ACEOF
25001cat confdefs.h >>conftest.$ac_ext
25002cat >>conftest.$ac_ext <<_ACEOF
25003/* end confdefs.h. */
25004$ac_includes_default
25005 typedef short int ac__type_sizeof_;
25006int
25007main ()
25008{
25009static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25010test_array [0] = 0
25011
25012 ;
25013 return 0;
25014}
25015_ACEOF
25016rm -f conftest.$ac_objext
25017if { (ac_try="$ac_compile"
25018case "(($ac_try" in
25019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25020 *) ac_try_echo=$ac_try;;
25021esac
25022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25023 (eval "$ac_compile") 2>conftest.er1
25024 ac_status=$?
25025 grep -v '^ *+' conftest.er1 >conftest.err
25026 rm -f conftest.er1
25027 cat conftest.err >&5
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); } && {
25030 test -z "$ac_c_werror_flag" ||
25031 test ! -s conftest.err
25032 } && test -s conftest.$ac_objext; then
25033 ac_hi=-1 ac_mid=-1
25034 while :; do
25035 cat >conftest.$ac_ext <<_ACEOF
25036/* confdefs.h. */
25037_ACEOF
25038cat confdefs.h >>conftest.$ac_ext
25039cat >>conftest.$ac_ext <<_ACEOF
25040/* end confdefs.h. */
25041$ac_includes_default
25042 typedef short int ac__type_sizeof_;
25043int
25044main ()
25045{
25046static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25047test_array [0] = 0
25048
25049 ;
25050 return 0;
25051}
25052_ACEOF
25053rm -f conftest.$ac_objext
25054if { (ac_try="$ac_compile"
25055case "(($ac_try" in
25056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25057 *) ac_try_echo=$ac_try;;
25058esac
25059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25060 (eval "$ac_compile") 2>conftest.er1
25061 ac_status=$?
25062 grep -v '^ *+' conftest.er1 >conftest.err
25063 rm -f conftest.er1
25064 cat conftest.err >&5
25065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066 (exit $ac_status); } && {
25067 test -z "$ac_c_werror_flag" ||
25068 test ! -s conftest.err
25069 } && test -s conftest.$ac_objext; then
25070 ac_lo=$ac_mid; break
25071else
25072 echo "$as_me: failed program was:" >&5
25073sed 's/^/| /' conftest.$ac_ext >&5
25074
25075 ac_hi=`expr '(' $ac_mid ')' - 1`
25076 if test $ac_mid -le $ac_hi; then
25077 ac_lo= ac_hi=
25078 break
25079 fi
25080 ac_mid=`expr 2 '*' $ac_mid`
25081fi
25082
25083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25084 done
25085else
25086 echo "$as_me: failed program was:" >&5
25087sed 's/^/| /' conftest.$ac_ext >&5
25088
25089 ac_lo= ac_hi=
25090fi
25091
25092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25093fi
25094
25095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25096# Binary search between lo and hi bounds.
25097while test "x$ac_lo" != "x$ac_hi"; do
25098 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25099 cat >conftest.$ac_ext <<_ACEOF
25100/* confdefs.h. */
25101_ACEOF
25102cat confdefs.h >>conftest.$ac_ext
25103cat >>conftest.$ac_ext <<_ACEOF
25104/* end confdefs.h. */
25105$ac_includes_default
25106 typedef short int ac__type_sizeof_;
25107int
25108main ()
25109{
25110static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25111test_array [0] = 0
25112
25113 ;
25114 return 0;
25115}
25116_ACEOF
25117rm -f conftest.$ac_objext
25118if { (ac_try="$ac_compile"
25119case "(($ac_try" in
25120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25121 *) ac_try_echo=$ac_try;;
25122esac
25123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25124 (eval "$ac_compile") 2>conftest.er1
25125 ac_status=$?
25126 grep -v '^ *+' conftest.er1 >conftest.err
25127 rm -f conftest.er1
25128 cat conftest.err >&5
25129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130 (exit $ac_status); } && {
25131 test -z "$ac_c_werror_flag" ||
25132 test ! -s conftest.err
25133 } && test -s conftest.$ac_objext; then
25134 ac_hi=$ac_mid
25135else
25136 echo "$as_me: failed program was:" >&5
25137sed 's/^/| /' conftest.$ac_ext >&5
25138
25139 ac_lo=`expr '(' $ac_mid ')' + 1`
25140fi
25141
25142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25143done
25144case $ac_lo in
25145?*) ac_cv_sizeof_short_int=$ac_lo;;
25146'') if test "$ac_cv_type_short_int" = yes; then
25147 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
25148See \`config.log' for more details." >&5
25149echo "$as_me: error: cannot compute sizeof (short int)
25150See \`config.log' for more details." >&2;}
25151 { (exit 77); exit 77; }; }
25152 else
25153 ac_cv_sizeof_short_int=0
25154 fi ;;
25155esac
25156else
25157 cat >conftest.$ac_ext <<_ACEOF
25158/* confdefs.h. */
25159_ACEOF
25160cat confdefs.h >>conftest.$ac_ext
25161cat >>conftest.$ac_ext <<_ACEOF
25162/* end confdefs.h. */
25163$ac_includes_default
25164 typedef short int ac__type_sizeof_;
25165static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25166static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25167#include <stdio.h>
25168#include <stdlib.h>
25169int
25170main ()
25171{
25172
25173 FILE *f = fopen ("conftest.val", "w");
25174 if (! f)
25175 return 1;
25176 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25177 {
25178 long int i = longval ();
25179 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25180 return 1;
25181 fprintf (f, "%ld\n", i);
25182 }
25183 else
25184 {
25185 unsigned long int i = ulongval ();
25186 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25187 return 1;
25188 fprintf (f, "%lu\n", i);
25189 }
25190 return ferror (f) || fclose (f) != 0;
25191
25192 ;
25193 return 0;
25194}
25195_ACEOF
25196rm -f conftest$ac_exeext
25197if { (ac_try="$ac_link"
25198case "(($ac_try" in
25199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200 *) ac_try_echo=$ac_try;;
25201esac
25202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25203 (eval "$ac_link") 2>&5
25204 ac_status=$?
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25207 { (case "(($ac_try" in
25208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25209 *) ac_try_echo=$ac_try;;
25210esac
25211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25212 (eval "$ac_try") 2>&5
25213 ac_status=$?
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); }; }; then
25216 ac_cv_sizeof_short_int=`cat conftest.val`
25217else
25218 echo "$as_me: program exited with status $ac_status" >&5
25219echo "$as_me: failed program was:" >&5
25220sed 's/^/| /' conftest.$ac_ext >&5
25221
25222( exit $ac_status )
25223if test "$ac_cv_type_short_int" = yes; then
25224 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
25225See \`config.log' for more details." >&5
25226echo "$as_me: error: cannot compute sizeof (short int)
25227See \`config.log' for more details." >&2;}
25228 { (exit 77); exit 77; }; }
25229 else
25230 ac_cv_sizeof_short_int=0
25231 fi
25232fi
25233rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25234fi
25235rm -f conftest.val
25236fi
25237{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
25238echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
25239
25240
25241
25242cat >>confdefs.h <<_ACEOF
25243#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
25244_ACEOF
25245
25246
25247{ echo "$as_me:$LINENO: checking for int" >&5
25248echo $ECHO_N "checking for int... $ECHO_C" >&6; }
25249if test "${ac_cv_type_int+set}" = set; then
25250 echo $ECHO_N "(cached) $ECHO_C" >&6
25251else
25252 cat >conftest.$ac_ext <<_ACEOF
25253/* confdefs.h. */
25254_ACEOF
25255cat confdefs.h >>conftest.$ac_ext
25256cat >>conftest.$ac_ext <<_ACEOF
25257/* end confdefs.h. */
25258$ac_includes_default
25259typedef int ac__type_new_;
25260int
25261main ()
25262{
25263if ((ac__type_new_ *) 0)
25264 return 0;
25265if (sizeof (ac__type_new_))
25266 return 0;
25267 ;
25268 return 0;
25269}
25270_ACEOF
25271rm -f conftest.$ac_objext
25272if { (ac_try="$ac_compile"
25273case "(($ac_try" in
25274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25275 *) ac_try_echo=$ac_try;;
25276esac
25277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25278 (eval "$ac_compile") 2>conftest.er1
25279 ac_status=$?
25280 grep -v '^ *+' conftest.er1 >conftest.err
25281 rm -f conftest.er1
25282 cat conftest.err >&5
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); } && {
25285 test -z "$ac_c_werror_flag" ||
25286 test ! -s conftest.err
25287 } && test -s conftest.$ac_objext; then
25288 ac_cv_type_int=yes
25289else
25290 echo "$as_me: failed program was:" >&5
25291sed 's/^/| /' conftest.$ac_ext >&5
25292
25293 ac_cv_type_int=no
25294fi
25295
25296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25297fi
25298{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
25299echo "${ECHO_T}$ac_cv_type_int" >&6; }
25300
25301# The cast to long int works around a bug in the HP C Compiler
25302# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25303# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25304# This bug is HP SR number 8606223364.
25305{ echo "$as_me:$LINENO: checking size of int" >&5
25306echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
25307if test "${ac_cv_sizeof_int+set}" = set; then
25308 echo $ECHO_N "(cached) $ECHO_C" >&6
25309else
25310 if test "$cross_compiling" = yes; then
25311 # Depending upon the size, compute the lo and hi bounds.
25312cat >conftest.$ac_ext <<_ACEOF
25313/* confdefs.h. */
25314_ACEOF
25315cat confdefs.h >>conftest.$ac_ext
25316cat >>conftest.$ac_ext <<_ACEOF
25317/* end confdefs.h. */
25318$ac_includes_default
25319 typedef int ac__type_sizeof_;
25320int
25321main ()
25322{
25323static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25324test_array [0] = 0
25325
25326 ;
25327 return 0;
25328}
25329_ACEOF
25330rm -f conftest.$ac_objext
25331if { (ac_try="$ac_compile"
25332case "(($ac_try" in
25333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25334 *) ac_try_echo=$ac_try;;
25335esac
25336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25337 (eval "$ac_compile") 2>conftest.er1
25338 ac_status=$?
25339 grep -v '^ *+' conftest.er1 >conftest.err
25340 rm -f conftest.er1
25341 cat conftest.err >&5
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); } && {
25344 test -z "$ac_c_werror_flag" ||
25345 test ! -s conftest.err
25346 } && test -s conftest.$ac_objext; then
25347 ac_lo=0 ac_mid=0
25348 while :; do
25349 cat >conftest.$ac_ext <<_ACEOF
25350/* confdefs.h. */
25351_ACEOF
25352cat confdefs.h >>conftest.$ac_ext
25353cat >>conftest.$ac_ext <<_ACEOF
25354/* end confdefs.h. */
25355$ac_includes_default
25356 typedef int ac__type_sizeof_;
25357int
25358main ()
25359{
25360static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25361test_array [0] = 0
25362
25363 ;
25364 return 0;
25365}
25366_ACEOF
25367rm -f conftest.$ac_objext
25368if { (ac_try="$ac_compile"
25369case "(($ac_try" in
25370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25371 *) ac_try_echo=$ac_try;;
25372esac
25373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25374 (eval "$ac_compile") 2>conftest.er1
25375 ac_status=$?
25376 grep -v '^ *+' conftest.er1 >conftest.err
25377 rm -f conftest.er1
25378 cat conftest.err >&5
25379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380 (exit $ac_status); } && {
25381 test -z "$ac_c_werror_flag" ||
25382 test ! -s conftest.err
25383 } && test -s conftest.$ac_objext; then
25384 ac_hi=$ac_mid; break
25385else
25386 echo "$as_me: failed program was:" >&5
25387sed 's/^/| /' conftest.$ac_ext >&5
25388
25389 ac_lo=`expr $ac_mid + 1`
25390 if test $ac_lo -le $ac_mid; then
25391 ac_lo= ac_hi=
25392 break
25393 fi
25394 ac_mid=`expr 2 '*' $ac_mid + 1`
25395fi
25396
25397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25398 done
25399else
25400 echo "$as_me: failed program was:" >&5
25401sed 's/^/| /' conftest.$ac_ext >&5
25402
25403 cat >conftest.$ac_ext <<_ACEOF
25404/* confdefs.h. */
25405_ACEOF
25406cat confdefs.h >>conftest.$ac_ext
25407cat >>conftest.$ac_ext <<_ACEOF
25408/* end confdefs.h. */
25409$ac_includes_default
25410 typedef int ac__type_sizeof_;
25411int
25412main ()
25413{
25414static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25415test_array [0] = 0
25416
25417 ;
25418 return 0;
25419}
25420_ACEOF
25421rm -f conftest.$ac_objext
25422if { (ac_try="$ac_compile"
25423case "(($ac_try" in
25424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25425 *) ac_try_echo=$ac_try;;
25426esac
25427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25428 (eval "$ac_compile") 2>conftest.er1
25429 ac_status=$?
25430 grep -v '^ *+' conftest.er1 >conftest.err
25431 rm -f conftest.er1
25432 cat conftest.err >&5
25433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434 (exit $ac_status); } && {
25435 test -z "$ac_c_werror_flag" ||
25436 test ! -s conftest.err
25437 } && test -s conftest.$ac_objext; then
25438 ac_hi=-1 ac_mid=-1
25439 while :; do
25440 cat >conftest.$ac_ext <<_ACEOF
25441/* confdefs.h. */
25442_ACEOF
25443cat confdefs.h >>conftest.$ac_ext
25444cat >>conftest.$ac_ext <<_ACEOF
25445/* end confdefs.h. */
25446$ac_includes_default
25447 typedef int ac__type_sizeof_;
25448int
25449main ()
25450{
25451static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25452test_array [0] = 0
25453
25454 ;
25455 return 0;
25456}
25457_ACEOF
25458rm -f conftest.$ac_objext
25459if { (ac_try="$ac_compile"
25460case "(($ac_try" in
25461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25462 *) ac_try_echo=$ac_try;;
25463esac
25464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25465 (eval "$ac_compile") 2>conftest.er1
25466 ac_status=$?
25467 grep -v '^ *+' conftest.er1 >conftest.err
25468 rm -f conftest.er1
25469 cat conftest.err >&5
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); } && {
25472 test -z "$ac_c_werror_flag" ||
25473 test ! -s conftest.err
25474 } && test -s conftest.$ac_objext; then
25475 ac_lo=$ac_mid; break
25476else
25477 echo "$as_me: failed program was:" >&5
25478sed 's/^/| /' conftest.$ac_ext >&5
25479
25480 ac_hi=`expr '(' $ac_mid ')' - 1`
25481 if test $ac_mid -le $ac_hi; then
25482 ac_lo= ac_hi=
25483 break
25484 fi
25485 ac_mid=`expr 2 '*' $ac_mid`
25486fi
25487
25488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25489 done
25490else
25491 echo "$as_me: failed program was:" >&5
25492sed 's/^/| /' conftest.$ac_ext >&5
25493
25494 ac_lo= ac_hi=
25495fi
25496
25497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25498fi
25499
25500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25501# Binary search between lo and hi bounds.
25502while test "x$ac_lo" != "x$ac_hi"; do
25503 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25504 cat >conftest.$ac_ext <<_ACEOF
25505/* confdefs.h. */
25506_ACEOF
25507cat confdefs.h >>conftest.$ac_ext
25508cat >>conftest.$ac_ext <<_ACEOF
25509/* end confdefs.h. */
25510$ac_includes_default
25511 typedef int ac__type_sizeof_;
25512int
25513main ()
25514{
25515static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25516test_array [0] = 0
25517
25518 ;
25519 return 0;
25520}
25521_ACEOF
25522rm -f conftest.$ac_objext
25523if { (ac_try="$ac_compile"
25524case "(($ac_try" in
25525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25526 *) ac_try_echo=$ac_try;;
25527esac
25528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25529 (eval "$ac_compile") 2>conftest.er1
25530 ac_status=$?
25531 grep -v '^ *+' conftest.er1 >conftest.err
25532 rm -f conftest.er1
25533 cat conftest.err >&5
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); } && {
25536 test -z "$ac_c_werror_flag" ||
25537 test ! -s conftest.err
25538 } && test -s conftest.$ac_objext; then
25539 ac_hi=$ac_mid
25540else
25541 echo "$as_me: failed program was:" >&5
25542sed 's/^/| /' conftest.$ac_ext >&5
25543
25544 ac_lo=`expr '(' $ac_mid ')' + 1`
25545fi
25546
25547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25548done
25549case $ac_lo in
25550?*) ac_cv_sizeof_int=$ac_lo;;
25551'') if test "$ac_cv_type_int" = yes; then
25552 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
25553See \`config.log' for more details." >&5
25554echo "$as_me: error: cannot compute sizeof (int)
25555See \`config.log' for more details." >&2;}
25556 { (exit 77); exit 77; }; }
25557 else
25558 ac_cv_sizeof_int=0
25559 fi ;;
25560esac
25561else
25562 cat >conftest.$ac_ext <<_ACEOF
25563/* confdefs.h. */
25564_ACEOF
25565cat confdefs.h >>conftest.$ac_ext
25566cat >>conftest.$ac_ext <<_ACEOF
25567/* end confdefs.h. */
25568$ac_includes_default
25569 typedef int ac__type_sizeof_;
25570static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25571static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25572#include <stdio.h>
25573#include <stdlib.h>
25574int
25575main ()
25576{
25577
25578 FILE *f = fopen ("conftest.val", "w");
25579 if (! f)
25580 return 1;
25581 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25582 {
25583 long int i = longval ();
25584 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25585 return 1;
25586 fprintf (f, "%ld\n", i);
25587 }
25588 else
25589 {
25590 unsigned long int i = ulongval ();
25591 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25592 return 1;
25593 fprintf (f, "%lu\n", i);
25594 }
25595 return ferror (f) || fclose (f) != 0;
25596
25597 ;
25598 return 0;
25599}
25600_ACEOF
25601rm -f conftest$ac_exeext
25602if { (ac_try="$ac_link"
25603case "(($ac_try" in
25604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25605 *) ac_try_echo=$ac_try;;
25606esac
25607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25608 (eval "$ac_link") 2>&5
25609 ac_status=$?
25610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25612 { (case "(($ac_try" in
25613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25614 *) ac_try_echo=$ac_try;;
25615esac
25616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25617 (eval "$ac_try") 2>&5
25618 ac_status=$?
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); }; }; then
25621 ac_cv_sizeof_int=`cat conftest.val`
25622else
25623 echo "$as_me: program exited with status $ac_status" >&5
25624echo "$as_me: failed program was:" >&5
25625sed 's/^/| /' conftest.$ac_ext >&5
25626
25627( exit $ac_status )
25628if test "$ac_cv_type_int" = yes; then
25629 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
25630See \`config.log' for more details." >&5
25631echo "$as_me: error: cannot compute sizeof (int)
25632See \`config.log' for more details." >&2;}
25633 { (exit 77); exit 77; }; }
25634 else
25635 ac_cv_sizeof_int=0
25636 fi
25637fi
25638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25639fi
25640rm -f conftest.val
25641fi
25642{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
25643echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
25644
25645
25646
25647cat >>confdefs.h <<_ACEOF
25648#define SIZEOF_INT $ac_cv_sizeof_int
25649_ACEOF
25650
25651
25652{ echo "$as_me:$LINENO: checking for long int" >&5
25653echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
25654if test "${ac_cv_type_long_int+set}" = set; then
25655 echo $ECHO_N "(cached) $ECHO_C" >&6
25656else
25657 cat >conftest.$ac_ext <<_ACEOF
25658/* confdefs.h. */
25659_ACEOF
25660cat confdefs.h >>conftest.$ac_ext
25661cat >>conftest.$ac_ext <<_ACEOF
25662/* end confdefs.h. */
25663$ac_includes_default
25664typedef long int ac__type_new_;
25665int
25666main ()
25667{
25668if ((ac__type_new_ *) 0)
25669 return 0;
25670if (sizeof (ac__type_new_))
25671 return 0;
25672 ;
25673 return 0;
25674}
25675_ACEOF
25676rm -f conftest.$ac_objext
25677if { (ac_try="$ac_compile"
25678case "(($ac_try" in
25679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25680 *) ac_try_echo=$ac_try;;
25681esac
25682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25683 (eval "$ac_compile") 2>conftest.er1
25684 ac_status=$?
25685 grep -v '^ *+' conftest.er1 >conftest.err
25686 rm -f conftest.er1
25687 cat conftest.err >&5
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); } && {
25690 test -z "$ac_c_werror_flag" ||
25691 test ! -s conftest.err
25692 } && test -s conftest.$ac_objext; then
25693 ac_cv_type_long_int=yes
25694else
25695 echo "$as_me: failed program was:" >&5
25696sed 's/^/| /' conftest.$ac_ext >&5
25697
25698 ac_cv_type_long_int=no
25699fi
25700
25701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25702fi
25703{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
25704echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
25705
25706# The cast to long int works around a bug in the HP C Compiler
25707# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25708# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25709# This bug is HP SR number 8606223364.
25710{ echo "$as_me:$LINENO: checking size of long int" >&5
25711echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
25712if test "${ac_cv_sizeof_long_int+set}" = set; then
25713 echo $ECHO_N "(cached) $ECHO_C" >&6
25714else
25715 if test "$cross_compiling" = yes; then
25716 # Depending upon the size, compute the lo and hi bounds.
25717cat >conftest.$ac_ext <<_ACEOF
25718/* confdefs.h. */
25719_ACEOF
25720cat confdefs.h >>conftest.$ac_ext
25721cat >>conftest.$ac_ext <<_ACEOF
25722/* end confdefs.h. */
25723$ac_includes_default
25724 typedef long int ac__type_sizeof_;
25725int
25726main ()
25727{
25728static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25729test_array [0] = 0
25730
25731 ;
25732 return 0;
25733}
25734_ACEOF
25735rm -f conftest.$ac_objext
25736if { (ac_try="$ac_compile"
25737case "(($ac_try" in
25738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25739 *) ac_try_echo=$ac_try;;
25740esac
25741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25742 (eval "$ac_compile") 2>conftest.er1
25743 ac_status=$?
25744 grep -v '^ *+' conftest.er1 >conftest.err
25745 rm -f conftest.er1
25746 cat conftest.err >&5
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); } && {
25749 test -z "$ac_c_werror_flag" ||
25750 test ! -s conftest.err
25751 } && test -s conftest.$ac_objext; then
25752 ac_lo=0 ac_mid=0
25753 while :; do
25754 cat >conftest.$ac_ext <<_ACEOF
25755/* confdefs.h. */
25756_ACEOF
25757cat confdefs.h >>conftest.$ac_ext
25758cat >>conftest.$ac_ext <<_ACEOF
25759/* end confdefs.h. */
25760$ac_includes_default
25761 typedef long int ac__type_sizeof_;
25762int
25763main ()
25764{
25765static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25766test_array [0] = 0
25767
25768 ;
25769 return 0;
25770}
25771_ACEOF
25772rm -f conftest.$ac_objext
25773if { (ac_try="$ac_compile"
25774case "(($ac_try" in
25775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25776 *) ac_try_echo=$ac_try;;
25777esac
25778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25779 (eval "$ac_compile") 2>conftest.er1
25780 ac_status=$?
25781 grep -v '^ *+' conftest.er1 >conftest.err
25782 rm -f conftest.er1
25783 cat conftest.err >&5
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); } && {
25786 test -z "$ac_c_werror_flag" ||
25787 test ! -s conftest.err
25788 } && test -s conftest.$ac_objext; then
25789 ac_hi=$ac_mid; break
25790else
25791 echo "$as_me: failed program was:" >&5
25792sed 's/^/| /' conftest.$ac_ext >&5
25793
25794 ac_lo=`expr $ac_mid + 1`
25795 if test $ac_lo -le $ac_mid; then
25796 ac_lo= ac_hi=
25797 break
25798 fi
25799 ac_mid=`expr 2 '*' $ac_mid + 1`
25800fi
25801
25802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25803 done
25804else
25805 echo "$as_me: failed program was:" >&5
25806sed 's/^/| /' conftest.$ac_ext >&5
25807
25808 cat >conftest.$ac_ext <<_ACEOF
25809/* confdefs.h. */
25810_ACEOF
25811cat confdefs.h >>conftest.$ac_ext
25812cat >>conftest.$ac_ext <<_ACEOF
25813/* end confdefs.h. */
25814$ac_includes_default
25815 typedef long int ac__type_sizeof_;
25816int
25817main ()
25818{
25819static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25820test_array [0] = 0
25821
25822 ;
25823 return 0;
25824}
25825_ACEOF
25826rm -f conftest.$ac_objext
25827if { (ac_try="$ac_compile"
25828case "(($ac_try" in
25829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25830 *) ac_try_echo=$ac_try;;
25831esac
25832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25833 (eval "$ac_compile") 2>conftest.er1
25834 ac_status=$?
25835 grep -v '^ *+' conftest.er1 >conftest.err
25836 rm -f conftest.er1
25837 cat conftest.err >&5
25838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839 (exit $ac_status); } && {
25840 test -z "$ac_c_werror_flag" ||
25841 test ! -s conftest.err
25842 } && test -s conftest.$ac_objext; then
25843 ac_hi=-1 ac_mid=-1
25844 while :; do
25845 cat >conftest.$ac_ext <<_ACEOF
25846/* confdefs.h. */
25847_ACEOF
25848cat confdefs.h >>conftest.$ac_ext
25849cat >>conftest.$ac_ext <<_ACEOF
25850/* end confdefs.h. */
25851$ac_includes_default
25852 typedef long int ac__type_sizeof_;
25853int
25854main ()
25855{
25856static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25857test_array [0] = 0
25858
25859 ;
25860 return 0;
25861}
25862_ACEOF
25863rm -f conftest.$ac_objext
25864if { (ac_try="$ac_compile"
25865case "(($ac_try" in
25866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25867 *) ac_try_echo=$ac_try;;
25868esac
25869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25870 (eval "$ac_compile") 2>conftest.er1
25871 ac_status=$?
25872 grep -v '^ *+' conftest.er1 >conftest.err
25873 rm -f conftest.er1
25874 cat conftest.err >&5
25875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876 (exit $ac_status); } && {
25877 test -z "$ac_c_werror_flag" ||
25878 test ! -s conftest.err
25879 } && test -s conftest.$ac_objext; then
25880 ac_lo=$ac_mid; break
25881else
25882 echo "$as_me: failed program was:" >&5
25883sed 's/^/| /' conftest.$ac_ext >&5
25884
25885 ac_hi=`expr '(' $ac_mid ')' - 1`
25886 if test $ac_mid -le $ac_hi; then
25887 ac_lo= ac_hi=
25888 break
25889 fi
25890 ac_mid=`expr 2 '*' $ac_mid`
25891fi
25892
25893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25894 done
25895else
25896 echo "$as_me: failed program was:" >&5
25897sed 's/^/| /' conftest.$ac_ext >&5
25898
25899 ac_lo= ac_hi=
25900fi
25901
25902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25903fi
25904
25905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25906# Binary search between lo and hi bounds.
25907while test "x$ac_lo" != "x$ac_hi"; do
25908 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25909 cat >conftest.$ac_ext <<_ACEOF
25910/* confdefs.h. */
25911_ACEOF
25912cat confdefs.h >>conftest.$ac_ext
25913cat >>conftest.$ac_ext <<_ACEOF
25914/* end confdefs.h. */
25915$ac_includes_default
25916 typedef long int ac__type_sizeof_;
25917int
25918main ()
25919{
25920static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25921test_array [0] = 0
25922
25923 ;
25924 return 0;
25925}
25926_ACEOF
25927rm -f conftest.$ac_objext
25928if { (ac_try="$ac_compile"
25929case "(($ac_try" in
25930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25931 *) ac_try_echo=$ac_try;;
25932esac
25933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25934 (eval "$ac_compile") 2>conftest.er1
25935 ac_status=$?
25936 grep -v '^ *+' conftest.er1 >conftest.err
25937 rm -f conftest.er1
25938 cat conftest.err >&5
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); } && {
25941 test -z "$ac_c_werror_flag" ||
25942 test ! -s conftest.err
25943 } && test -s conftest.$ac_objext; then
25944 ac_hi=$ac_mid
25945else
25946 echo "$as_me: failed program was:" >&5
25947sed 's/^/| /' conftest.$ac_ext >&5
25948
25949 ac_lo=`expr '(' $ac_mid ')' + 1`
25950fi
25951
25952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25953done
25954case $ac_lo in
25955?*) ac_cv_sizeof_long_int=$ac_lo;;
25956'') if test "$ac_cv_type_long_int" = yes; then
25957 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25958See \`config.log' for more details." >&5
25959echo "$as_me: error: cannot compute sizeof (long int)
25960See \`config.log' for more details." >&2;}
25961 { (exit 77); exit 77; }; }
25962 else
25963 ac_cv_sizeof_long_int=0
25964 fi ;;
25965esac
25966else
25967 cat >conftest.$ac_ext <<_ACEOF
25968/* confdefs.h. */
25969_ACEOF
25970cat confdefs.h >>conftest.$ac_ext
25971cat >>conftest.$ac_ext <<_ACEOF
25972/* end confdefs.h. */
25973$ac_includes_default
25974 typedef long int ac__type_sizeof_;
25975static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25976static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25977#include <stdio.h>
25978#include <stdlib.h>
25979int
25980main ()
25981{
25982
25983 FILE *f = fopen ("conftest.val", "w");
25984 if (! f)
25985 return 1;
25986 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25987 {
25988 long int i = longval ();
25989 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25990 return 1;
25991 fprintf (f, "%ld\n", i);
25992 }
25993 else
25994 {
25995 unsigned long int i = ulongval ();
25996 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25997 return 1;
25998 fprintf (f, "%lu\n", i);
25999 }
26000 return ferror (f) || fclose (f) != 0;
26001
26002 ;
26003 return 0;
26004}
26005_ACEOF
26006rm -f conftest$ac_exeext
26007if { (ac_try="$ac_link"
26008case "(($ac_try" in
26009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26010 *) ac_try_echo=$ac_try;;
26011esac
26012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26013 (eval "$ac_link") 2>&5
26014 ac_status=$?
26015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26017 { (case "(($ac_try" in
26018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26019 *) ac_try_echo=$ac_try;;
26020esac
26021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26022 (eval "$ac_try") 2>&5
26023 ac_status=$?
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); }; }; then
26026 ac_cv_sizeof_long_int=`cat conftest.val`
26027else
26028 echo "$as_me: program exited with status $ac_status" >&5
26029echo "$as_me: failed program was:" >&5
26030sed 's/^/| /' conftest.$ac_ext >&5
26031
26032( exit $ac_status )
26033if test "$ac_cv_type_long_int" = yes; then
26034 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
26035See \`config.log' for more details." >&5
26036echo "$as_me: error: cannot compute sizeof (long int)
26037See \`config.log' for more details." >&2;}
26038 { (exit 77); exit 77; }; }
26039 else
26040 ac_cv_sizeof_long_int=0
26041 fi
26042fi
26043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26044fi
26045rm -f conftest.val
26046fi
26047{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
26048echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
26049
26050
26051
26052cat >>confdefs.h <<_ACEOF
26053#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26054_ACEOF
26055
26056
26057{ echo "$as_me:$LINENO: checking for long long int" >&5
26058echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
26059if test "${ac_cv_type_long_long_int+set}" = set; then
26060 echo $ECHO_N "(cached) $ECHO_C" >&6
26061else
26062 cat >conftest.$ac_ext <<_ACEOF
26063/* confdefs.h. */
26064_ACEOF
26065cat confdefs.h >>conftest.$ac_ext
26066cat >>conftest.$ac_ext <<_ACEOF
26067/* end confdefs.h. */
26068$ac_includes_default
26069typedef long long int ac__type_new_;
26070int
26071main ()
26072{
26073if ((ac__type_new_ *) 0)
26074 return 0;
26075if (sizeof (ac__type_new_))
26076 return 0;
26077 ;
26078 return 0;
26079}
26080_ACEOF
26081rm -f conftest.$ac_objext
26082if { (ac_try="$ac_compile"
26083case "(($ac_try" in
26084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26085 *) ac_try_echo=$ac_try;;
26086esac
26087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26088 (eval "$ac_compile") 2>conftest.er1
26089 ac_status=$?
26090 grep -v '^ *+' conftest.er1 >conftest.err
26091 rm -f conftest.er1
26092 cat conftest.err >&5
26093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094 (exit $ac_status); } && {
26095 test -z "$ac_c_werror_flag" ||
26096 test ! -s conftest.err
26097 } && test -s conftest.$ac_objext; then
26098 ac_cv_type_long_long_int=yes
26099else
26100 echo "$as_me: failed program was:" >&5
26101sed 's/^/| /' conftest.$ac_ext >&5
26102
26103 ac_cv_type_long_long_int=no
26104fi
26105
26106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26107fi
26108{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
26109echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
26110
26111# The cast to long int works around a bug in the HP C Compiler
26112# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26113# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26114# This bug is HP SR number 8606223364.
26115{ echo "$as_me:$LINENO: checking size of long long int" >&5
26116echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
26117if test "${ac_cv_sizeof_long_long_int+set}" = set; then
26118 echo $ECHO_N "(cached) $ECHO_C" >&6
26119else
26120 if test "$cross_compiling" = yes; then
26121 # Depending upon the size, compute the lo and hi bounds.
26122cat >conftest.$ac_ext <<_ACEOF
26123/* confdefs.h. */
26124_ACEOF
26125cat confdefs.h >>conftest.$ac_ext
26126cat >>conftest.$ac_ext <<_ACEOF
26127/* end confdefs.h. */
26128$ac_includes_default
26129 typedef long long int ac__type_sizeof_;
26130int
26131main ()
26132{
26133static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26134test_array [0] = 0
26135
26136 ;
26137 return 0;
26138}
26139_ACEOF
26140rm -f conftest.$ac_objext
26141if { (ac_try="$ac_compile"
26142case "(($ac_try" in
26143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26144 *) ac_try_echo=$ac_try;;
26145esac
26146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26147 (eval "$ac_compile") 2>conftest.er1
26148 ac_status=$?
26149 grep -v '^ *+' conftest.er1 >conftest.err
26150 rm -f conftest.er1
26151 cat conftest.err >&5
26152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26153 (exit $ac_status); } && {
26154 test -z "$ac_c_werror_flag" ||
26155 test ! -s conftest.err
26156 } && test -s conftest.$ac_objext; then
26157 ac_lo=0 ac_mid=0
26158 while :; do
26159 cat >conftest.$ac_ext <<_ACEOF
26160/* confdefs.h. */
26161_ACEOF
26162cat confdefs.h >>conftest.$ac_ext
26163cat >>conftest.$ac_ext <<_ACEOF
26164/* end confdefs.h. */
26165$ac_includes_default
26166 typedef long long int ac__type_sizeof_;
26167int
26168main ()
26169{
26170static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26171test_array [0] = 0
26172
26173 ;
26174 return 0;
26175}
26176_ACEOF
26177rm -f conftest.$ac_objext
26178if { (ac_try="$ac_compile"
26179case "(($ac_try" in
26180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26181 *) ac_try_echo=$ac_try;;
26182esac
26183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26184 (eval "$ac_compile") 2>conftest.er1
26185 ac_status=$?
26186 grep -v '^ *+' conftest.er1 >conftest.err
26187 rm -f conftest.er1
26188 cat conftest.err >&5
26189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190 (exit $ac_status); } && {
26191 test -z "$ac_c_werror_flag" ||
26192 test ! -s conftest.err
26193 } && test -s conftest.$ac_objext; then
26194 ac_hi=$ac_mid; break
26195else
26196 echo "$as_me: failed program was:" >&5
26197sed 's/^/| /' conftest.$ac_ext >&5
26198
26199 ac_lo=`expr $ac_mid + 1`
26200 if test $ac_lo -le $ac_mid; then
26201 ac_lo= ac_hi=
26202 break
26203 fi
26204 ac_mid=`expr 2 '*' $ac_mid + 1`
26205fi
26206
26207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26208 done
26209else
26210 echo "$as_me: failed program was:" >&5
26211sed 's/^/| /' conftest.$ac_ext >&5
26212
26213 cat >conftest.$ac_ext <<_ACEOF
26214/* confdefs.h. */
26215_ACEOF
26216cat confdefs.h >>conftest.$ac_ext
26217cat >>conftest.$ac_ext <<_ACEOF
26218/* end confdefs.h. */
26219$ac_includes_default
26220 typedef long long int ac__type_sizeof_;
26221int
26222main ()
26223{
26224static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26225test_array [0] = 0
26226
26227 ;
26228 return 0;
26229}
26230_ACEOF
26231rm -f conftest.$ac_objext
26232if { (ac_try="$ac_compile"
26233case "(($ac_try" in
26234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26235 *) ac_try_echo=$ac_try;;
26236esac
26237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26238 (eval "$ac_compile") 2>conftest.er1
26239 ac_status=$?
26240 grep -v '^ *+' conftest.er1 >conftest.err
26241 rm -f conftest.er1
26242 cat conftest.err >&5
26243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244 (exit $ac_status); } && {
26245 test -z "$ac_c_werror_flag" ||
26246 test ! -s conftest.err
26247 } && test -s conftest.$ac_objext; then
26248 ac_hi=-1 ac_mid=-1
26249 while :; do
26250 cat >conftest.$ac_ext <<_ACEOF
26251/* confdefs.h. */
26252_ACEOF
26253cat confdefs.h >>conftest.$ac_ext
26254cat >>conftest.$ac_ext <<_ACEOF
26255/* end confdefs.h. */
26256$ac_includes_default
26257 typedef long long int ac__type_sizeof_;
26258int
26259main ()
26260{
26261static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26262test_array [0] = 0
26263
26264 ;
26265 return 0;
26266}
26267_ACEOF
26268rm -f conftest.$ac_objext
26269if { (ac_try="$ac_compile"
26270case "(($ac_try" in
26271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26272 *) ac_try_echo=$ac_try;;
26273esac
26274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26275 (eval "$ac_compile") 2>conftest.er1
26276 ac_status=$?
26277 grep -v '^ *+' conftest.er1 >conftest.err
26278 rm -f conftest.er1
26279 cat conftest.err >&5
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); } && {
26282 test -z "$ac_c_werror_flag" ||
26283 test ! -s conftest.err
26284 } && test -s conftest.$ac_objext; then
26285 ac_lo=$ac_mid; break
26286else
26287 echo "$as_me: failed program was:" >&5
26288sed 's/^/| /' conftest.$ac_ext >&5
26289
26290 ac_hi=`expr '(' $ac_mid ')' - 1`
26291 if test $ac_mid -le $ac_hi; then
26292 ac_lo= ac_hi=
26293 break
26294 fi
26295 ac_mid=`expr 2 '*' $ac_mid`
26296fi
26297
26298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26299 done
26300else
26301 echo "$as_me: failed program was:" >&5
26302sed 's/^/| /' conftest.$ac_ext >&5
26303
26304 ac_lo= ac_hi=
26305fi
26306
26307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26308fi
26309
26310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26311# Binary search between lo and hi bounds.
26312while test "x$ac_lo" != "x$ac_hi"; do
26313 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26314 cat >conftest.$ac_ext <<_ACEOF
26315/* confdefs.h. */
26316_ACEOF
26317cat confdefs.h >>conftest.$ac_ext
26318cat >>conftest.$ac_ext <<_ACEOF
26319/* end confdefs.h. */
26320$ac_includes_default
26321 typedef long long int ac__type_sizeof_;
26322int
26323main ()
26324{
26325static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26326test_array [0] = 0
26327
26328 ;
26329 return 0;
26330}
26331_ACEOF
26332rm -f conftest.$ac_objext
26333if { (ac_try="$ac_compile"
26334case "(($ac_try" in
26335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26336 *) ac_try_echo=$ac_try;;
26337esac
26338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26339 (eval "$ac_compile") 2>conftest.er1
26340 ac_status=$?
26341 grep -v '^ *+' conftest.er1 >conftest.err
26342 rm -f conftest.er1
26343 cat conftest.err >&5
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); } && {
26346 test -z "$ac_c_werror_flag" ||
26347 test ! -s conftest.err
26348 } && test -s conftest.$ac_objext; then
26349 ac_hi=$ac_mid
26350else
26351 echo "$as_me: failed program was:" >&5
26352sed 's/^/| /' conftest.$ac_ext >&5
26353
26354 ac_lo=`expr '(' $ac_mid ')' + 1`
26355fi
26356
26357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26358done
26359case $ac_lo in
26360?*) ac_cv_sizeof_long_long_int=$ac_lo;;
26361'') if test "$ac_cv_type_long_long_int" = yes; then
26362 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
26363See \`config.log' for more details." >&5
26364echo "$as_me: error: cannot compute sizeof (long long int)
26365See \`config.log' for more details." >&2;}
26366 { (exit 77); exit 77; }; }
26367 else
26368 ac_cv_sizeof_long_long_int=0
26369 fi ;;
26370esac
26371else
26372 cat >conftest.$ac_ext <<_ACEOF
26373/* confdefs.h. */
26374_ACEOF
26375cat confdefs.h >>conftest.$ac_ext
26376cat >>conftest.$ac_ext <<_ACEOF
26377/* end confdefs.h. */
26378$ac_includes_default
26379 typedef long long int ac__type_sizeof_;
26380static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26381static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26382#include <stdio.h>
26383#include <stdlib.h>
26384int
26385main ()
26386{
26387
26388 FILE *f = fopen ("conftest.val", "w");
26389 if (! f)
26390 return 1;
26391 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26392 {
26393 long int i = longval ();
26394 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26395 return 1;
26396 fprintf (f, "%ld\n", i);
26397 }
26398 else
26399 {
26400 unsigned long int i = ulongval ();
26401 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26402 return 1;
26403 fprintf (f, "%lu\n", i);
26404 }
26405 return ferror (f) || fclose (f) != 0;
26406
26407 ;
26408 return 0;
26409}
26410_ACEOF
26411rm -f conftest$ac_exeext
26412if { (ac_try="$ac_link"
26413case "(($ac_try" in
26414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26415 *) ac_try_echo=$ac_try;;
26416esac
26417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26418 (eval "$ac_link") 2>&5
26419 ac_status=$?
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26422 { (case "(($ac_try" in
26423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26424 *) ac_try_echo=$ac_try;;
26425esac
26426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26427 (eval "$ac_try") 2>&5
26428 ac_status=$?
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); }; }; then
26431 ac_cv_sizeof_long_long_int=`cat conftest.val`
26432else
26433 echo "$as_me: program exited with status $ac_status" >&5
26434echo "$as_me: failed program was:" >&5
26435sed 's/^/| /' conftest.$ac_ext >&5
26436
26437( exit $ac_status )
26438if test "$ac_cv_type_long_long_int" = yes; then
26439 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
26440See \`config.log' for more details." >&5
26441echo "$as_me: error: cannot compute sizeof (long long int)
26442See \`config.log' for more details." >&2;}
26443 { (exit 77); exit 77; }; }
26444 else
26445 ac_cv_sizeof_long_long_int=0
26446 fi
26447fi
26448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26449fi
26450rm -f conftest.val
26451fi
26452{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
26453echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
26454
26455
26456
26457cat >>confdefs.h <<_ACEOF
26458#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26459_ACEOF
26460
26461
26462
26463# Sanity check long long for some platforms (AIX)
26464if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
26465 ac_cv_sizeof_long_long_int=0
26466fi
26467
26468# compute LLONG_MIN and LLONG_MAX if we don't know them.
26469if test -z "$have_llong_max"; then
26470 { echo "$as_me:$LINENO: checking for max value of long long" >&5
26471echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
26472 if test "$cross_compiling" = yes; then
26473
26474 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
26475echo "$as_me: WARNING: cross compiling: not checking" >&2;}
26476
26477
26478else
26479 cat >conftest.$ac_ext <<_ACEOF
26480/* confdefs.h. */
26481_ACEOF
26482cat confdefs.h >>conftest.$ac_ext
26483cat >>conftest.$ac_ext <<_ACEOF
26484/* end confdefs.h. */
26485
26486#include <stdio.h>
26487/* Why is this so damn hard? */
26488#ifdef __GNUC__
26489# undef __GNUC__
26490#endif
26491#define __USE_ISOC99
26492#include <limits.h>
26493#define DATA "conftest.llminmax"
26494#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
26495
26496/*
26497 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
26498 * we do this the hard way.
26499 */
26500static int
26501fprint_ll(FILE *f, long long n)
26502{
26503 unsigned int i;
26504 int l[sizeof(long long) * 8];
26505
26506 if (n < 0)
26507 if (fprintf(f, "-") < 0)
26508 return -1;
26509 for (i = 0; n != 0; i++) {
26510 l[i] = my_abs(n % 10);
26511 n /= 10;
26512 }
26513 do {
26514 if (fprintf(f, "%d", l[--i]) < 0)
26515 return -1;
26516 } while (i != 0);
26517 if (fprintf(f, " ") < 0)
26518 return -1;
26519 return 0;
26520}
26521
26522int
26523main ()
26524{
26525
26526 FILE *f;
26527 long long i, llmin, llmax = 0;
26528
26529 if((f = fopen(DATA,"w")) == NULL)
26530 exit(1);
26531
26532#if defined(LLONG_MIN) && defined(LLONG_MAX)
26533 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
26534 llmin = LLONG_MIN;
26535 llmax = LLONG_MAX;
26536#else
26537 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
26538 /* This will work on one's complement and two's complement */
26539 for (i = 1; i > llmax; i <<= 1, i++)
26540 llmax = i;
26541 llmin = llmax + 1LL; /* wrap */
26542#endif
26543
26544 /* Sanity check */
26545 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
26546 || llmax - 1 > llmax || llmin == llmax || llmin == 0
26547 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
26548 fprintf(f, "unknown unknown\n");
26549 exit(2);
26550 }
26551
26552 if (fprint_ll(f, llmin) < 0)
26553 exit(3);
26554 if (fprint_ll(f, llmax) < 0)
26555 exit(4);
26556 if (fclose(f) < 0)
26557 exit(5);
26558 exit(0);
26559
26560 ;
26561 return 0;
26562}
26563_ACEOF
26564rm -f conftest$ac_exeext
26565if { (ac_try="$ac_link"
26566case "(($ac_try" in
26567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26568 *) ac_try_echo=$ac_try;;
26569esac
26570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26571 (eval "$ac_link") 2>&5
26572 ac_status=$?
26573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26575 { (case "(($ac_try" in
26576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26577 *) ac_try_echo=$ac_try;;
26578esac
26579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26580 (eval "$ac_try") 2>&5
26581 ac_status=$?
26582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583 (exit $ac_status); }; }; then
26584
26585 llong_min=`$AWK '{print $1}' conftest.llminmax`
26586 llong_max=`$AWK '{print $2}' conftest.llminmax`
26587
26588 { echo "$as_me:$LINENO: result: $llong_max" >&5
26589echo "${ECHO_T}$llong_max" >&6; }
26590
26591cat >>confdefs.h <<_ACEOF
26592#define LLONG_MAX ${llong_max}LL
26593_ACEOF
26594
26595 { echo "$as_me:$LINENO: checking for min value of long long" >&5
26596echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
26597 { echo "$as_me:$LINENO: result: $llong_min" >&5
26598echo "${ECHO_T}$llong_min" >&6; }
26599
26600cat >>confdefs.h <<_ACEOF
26601#define LLONG_MIN ${llong_min}LL
26602_ACEOF
26603
26604
26605else
26606 echo "$as_me: program exited with status $ac_status" >&5
26607echo "$as_me: failed program was:" >&5
26608sed 's/^/| /' conftest.$ac_ext >&5
26609
26610( exit $ac_status )
26611
26612 { echo "$as_me:$LINENO: result: not found" >&5
26613echo "${ECHO_T}not found" >&6; }
26614
26615fi
26616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26617fi
26618
26619
26620fi
26621
26622
26623# More checks for data types
26624{ echo "$as_me:$LINENO: checking for u_int type" >&5
26625echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
26626if test "${ac_cv_have_u_int+set}" = set; then
26627 echo $ECHO_N "(cached) $ECHO_C" >&6
26628else
26629
26630 cat >conftest.$ac_ext <<_ACEOF
26631/* confdefs.h. */
26632_ACEOF
26633cat confdefs.h >>conftest.$ac_ext
26634cat >>conftest.$ac_ext <<_ACEOF
26635/* end confdefs.h. */
26636 #include <sys/types.h>
26637int
26638main ()
26639{
26640 u_int a; a = 1;
26641 ;
26642 return 0;
26643}
26644_ACEOF
26645rm -f conftest.$ac_objext
26646if { (ac_try="$ac_compile"
26647case "(($ac_try" in
26648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26649 *) ac_try_echo=$ac_try;;
26650esac
26651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26652 (eval "$ac_compile") 2>conftest.er1
26653 ac_status=$?
26654 grep -v '^ *+' conftest.er1 >conftest.err
26655 rm -f conftest.er1
26656 cat conftest.err >&5
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); } && {
26659 test -z "$ac_c_werror_flag" ||
26660 test ! -s conftest.err
26661 } && test -s conftest.$ac_objext; then
26662 ac_cv_have_u_int="yes"
26663else
26664 echo "$as_me: failed program was:" >&5
26665sed 's/^/| /' conftest.$ac_ext >&5
26666
26667 ac_cv_have_u_int="no"
26668
26669fi
26670
26671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26672
26673fi
26674{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
26675echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
26676if test "x$ac_cv_have_u_int" = "xyes" ; then
26677
26678cat >>confdefs.h <<\_ACEOF
26679#define HAVE_U_INT 1
26680_ACEOF
26681
26682 have_u_int=1
26683fi
26684
26685{ echo "$as_me:$LINENO: checking for intXX_t types" >&5
26686echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26687if test "${ac_cv_have_intxx_t+set}" = set; then
26688 echo $ECHO_N "(cached) $ECHO_C" >&6
26689else
26690
26691 cat >conftest.$ac_ext <<_ACEOF
26692/* confdefs.h. */
26693_ACEOF
26694cat confdefs.h >>conftest.$ac_ext
26695cat >>conftest.$ac_ext <<_ACEOF
26696/* end confdefs.h. */
26697 #include <sys/types.h>
26698int
26699main ()
26700{
26701 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26702 ;
26703 return 0;
26704}
26705_ACEOF
26706rm -f conftest.$ac_objext
26707if { (ac_try="$ac_compile"
26708case "(($ac_try" in
26709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26710 *) ac_try_echo=$ac_try;;
26711esac
26712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26713 (eval "$ac_compile") 2>conftest.er1
26714 ac_status=$?
26715 grep -v '^ *+' conftest.er1 >conftest.err
26716 rm -f conftest.er1
26717 cat conftest.err >&5
26718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26719 (exit $ac_status); } && {
26720 test -z "$ac_c_werror_flag" ||
26721 test ! -s conftest.err
26722 } && test -s conftest.$ac_objext; then
26723 ac_cv_have_intxx_t="yes"
26724else
26725 echo "$as_me: failed program was:" >&5
26726sed 's/^/| /' conftest.$ac_ext >&5
26727
26728 ac_cv_have_intxx_t="no"
26729
26730fi
26731
26732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26733
26734fi
26735{ echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26736echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26737if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26738
26739cat >>confdefs.h <<\_ACEOF
26740#define HAVE_INTXX_T 1
26741_ACEOF
26742
26743 have_intxx_t=1
26744fi
26745
26746if (test -z "$have_intxx_t" && \
26747 test "x$ac_cv_header_stdint_h" = "xyes")
26748then
26749 { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
26750echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
26751 cat >conftest.$ac_ext <<_ACEOF
26752/* confdefs.h. */
26753_ACEOF
26754cat confdefs.h >>conftest.$ac_ext
26755cat >>conftest.$ac_ext <<_ACEOF
26756/* end confdefs.h. */
26757 #include <stdint.h>
26758int
26759main ()
26760{
26761 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26762 ;
26763 return 0;
26764}
26765_ACEOF
26766rm -f conftest.$ac_objext
26767if { (ac_try="$ac_compile"
26768case "(($ac_try" in
26769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26770 *) ac_try_echo=$ac_try;;
26771esac
26772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26773 (eval "$ac_compile") 2>conftest.er1
26774 ac_status=$?
26775 grep -v '^ *+' conftest.er1 >conftest.err
26776 rm -f conftest.er1
26777 cat conftest.err >&5
26778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779 (exit $ac_status); } && {
26780 test -z "$ac_c_werror_flag" ||
26781 test ! -s conftest.err
26782 } && test -s conftest.$ac_objext; then
26783
26784 cat >>confdefs.h <<\_ACEOF
26785#define HAVE_INTXX_T 1
26786_ACEOF
26787
26788 { echo "$as_me:$LINENO: result: yes" >&5
26789echo "${ECHO_T}yes" >&6; }
26790
26791else
26792 echo "$as_me: failed program was:" >&5
26793sed 's/^/| /' conftest.$ac_ext >&5
26794
26795 { echo "$as_me:$LINENO: result: no" >&5
26796echo "${ECHO_T}no" >&6; }
26797
26798fi
26799
26800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26801fi
26802
26803{ echo "$as_me:$LINENO: checking for int64_t type" >&5
26804echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26805if test "${ac_cv_have_int64_t+set}" = set; then
26806 echo $ECHO_N "(cached) $ECHO_C" >&6
26807else
26808
26809 cat >conftest.$ac_ext <<_ACEOF
26810/* confdefs.h. */
26811_ACEOF
26812cat confdefs.h >>conftest.$ac_ext
26813cat >>conftest.$ac_ext <<_ACEOF
26814/* end confdefs.h. */
26815
26816#include <sys/types.h>
26817#ifdef HAVE_STDINT_H
26818# include <stdint.h>
26819#endif
26820#include <sys/socket.h>
26821#ifdef HAVE_SYS_BITYPES_H
26822# include <sys/bitypes.h>
26823#endif
26824
26825int
26826main ()
26827{
26828
26829int64_t a; a = 1;
26830
26831 ;
26832 return 0;
26833}
26834_ACEOF
26835rm -f conftest.$ac_objext
26836if { (ac_try="$ac_compile"
26837case "(($ac_try" in
26838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26839 *) ac_try_echo=$ac_try;;
26840esac
26841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26842 (eval "$ac_compile") 2>conftest.er1
26843 ac_status=$?
26844 grep -v '^ *+' conftest.er1 >conftest.err
26845 rm -f conftest.er1
26846 cat conftest.err >&5
26847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848 (exit $ac_status); } && {
26849 test -z "$ac_c_werror_flag" ||
26850 test ! -s conftest.err
26851 } && test -s conftest.$ac_objext; then
26852 ac_cv_have_int64_t="yes"
26853else
26854 echo "$as_me: failed program was:" >&5
26855sed 's/^/| /' conftest.$ac_ext >&5
26856
26857 ac_cv_have_int64_t="no"
26858
26859fi
26860
26861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26862
26863fi
26864{ echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26865echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26866if test "x$ac_cv_have_int64_t" = "xyes" ; then
26867
26868cat >>confdefs.h <<\_ACEOF
26869#define HAVE_INT64_T 1
26870_ACEOF
26871
26872fi
26873
26874{ echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26875echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26876if test "${ac_cv_have_u_intxx_t+set}" = set; then
26877 echo $ECHO_N "(cached) $ECHO_C" >&6
26878else
26879
26880 cat >conftest.$ac_ext <<_ACEOF
26881/* confdefs.h. */
26882_ACEOF
26883cat confdefs.h >>conftest.$ac_ext
26884cat >>conftest.$ac_ext <<_ACEOF
26885/* end confdefs.h. */
26886 #include <sys/types.h>
26887int
26888main ()
26889{
26890 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26891 ;
26892 return 0;
26893}
26894_ACEOF
26895rm -f conftest.$ac_objext
26896if { (ac_try="$ac_compile"
26897case "(($ac_try" in
26898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26899 *) ac_try_echo=$ac_try;;
26900esac
26901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26902 (eval "$ac_compile") 2>conftest.er1
26903 ac_status=$?
26904 grep -v '^ *+' conftest.er1 >conftest.err
26905 rm -f conftest.er1
26906 cat conftest.err >&5
26907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908 (exit $ac_status); } && {
26909 test -z "$ac_c_werror_flag" ||
26910 test ! -s conftest.err
26911 } && test -s conftest.$ac_objext; then
26912 ac_cv_have_u_intxx_t="yes"
26913else
26914 echo "$as_me: failed program was:" >&5
26915sed 's/^/| /' conftest.$ac_ext >&5
26916
26917 ac_cv_have_u_intxx_t="no"
26918
26919fi
26920
26921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26922
26923fi
26924{ echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26925echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26926if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26927
26928cat >>confdefs.h <<\_ACEOF
26929#define HAVE_U_INTXX_T 1
26930_ACEOF
26931
26932 have_u_intxx_t=1
26933fi
26934
26935if test -z "$have_u_intxx_t" ; then
26936 { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
26937echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
26938 cat >conftest.$ac_ext <<_ACEOF
26939/* confdefs.h. */
26940_ACEOF
26941cat confdefs.h >>conftest.$ac_ext
26942cat >>conftest.$ac_ext <<_ACEOF
26943/* end confdefs.h. */
26944 #include <sys/socket.h>
26945int
26946main ()
26947{
26948 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26949 ;
26950 return 0;
26951}
26952_ACEOF
26953rm -f conftest.$ac_objext
26954if { (ac_try="$ac_compile"
26955case "(($ac_try" in
26956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26957 *) ac_try_echo=$ac_try;;
26958esac
26959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26960 (eval "$ac_compile") 2>conftest.er1
26961 ac_status=$?
26962 grep -v '^ *+' conftest.er1 >conftest.err
26963 rm -f conftest.er1
26964 cat conftest.err >&5
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); } && {
26967 test -z "$ac_c_werror_flag" ||
26968 test ! -s conftest.err
26969 } && test -s conftest.$ac_objext; then
26970
26971 cat >>confdefs.h <<\_ACEOF
26972#define HAVE_U_INTXX_T 1
26973_ACEOF
26974
26975 { echo "$as_me:$LINENO: result: yes" >&5
26976echo "${ECHO_T}yes" >&6; }
26977
26978else
26979 echo "$as_me: failed program was:" >&5
26980sed 's/^/| /' conftest.$ac_ext >&5
26981
26982 { echo "$as_me:$LINENO: result: no" >&5
26983echo "${ECHO_T}no" >&6; }
26984
26985fi
26986
26987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26988fi
26989
26990{ echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26991echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26992if test "${ac_cv_have_u_int64_t+set}" = set; then
26993 echo $ECHO_N "(cached) $ECHO_C" >&6
26994else
26995
26996 cat >conftest.$ac_ext <<_ACEOF
26997/* confdefs.h. */
26998_ACEOF
26999cat confdefs.h >>conftest.$ac_ext
27000cat >>conftest.$ac_ext <<_ACEOF
27001/* end confdefs.h. */
27002 #include <sys/types.h>
27003int
27004main ()
27005{
27006 u_int64_t a; a = 1;
27007 ;
27008 return 0;
27009}
27010_ACEOF
27011rm -f conftest.$ac_objext
27012if { (ac_try="$ac_compile"
27013case "(($ac_try" in
27014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27015 *) ac_try_echo=$ac_try;;
27016esac
27017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27018 (eval "$ac_compile") 2>conftest.er1
27019 ac_status=$?
27020 grep -v '^ *+' conftest.er1 >conftest.err
27021 rm -f conftest.er1
27022 cat conftest.err >&5
27023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024 (exit $ac_status); } && {
27025 test -z "$ac_c_werror_flag" ||
27026 test ! -s conftest.err
27027 } && test -s conftest.$ac_objext; then
27028 ac_cv_have_u_int64_t="yes"
27029else
27030 echo "$as_me: failed program was:" >&5
27031sed 's/^/| /' conftest.$ac_ext >&5
27032
27033 ac_cv_have_u_int64_t="no"
27034
27035fi
27036
27037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27038
27039fi
27040{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
27041echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
27042if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27043
27044cat >>confdefs.h <<\_ACEOF
27045#define HAVE_U_INT64_T 1
27046_ACEOF
27047
27048 have_u_int64_t=1
27049fi
27050
27051if (test -z "$have_u_int64_t" && \
27052 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27053then
27054 { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
27055echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
27056 cat >conftest.$ac_ext <<_ACEOF
27057/* confdefs.h. */
27058_ACEOF
27059cat confdefs.h >>conftest.$ac_ext
27060cat >>conftest.$ac_ext <<_ACEOF
27061/* end confdefs.h. */
27062 #include <sys/bitypes.h>
27063int
27064main ()
27065{
27066 u_int64_t a; a = 1
27067 ;
27068 return 0;
27069}
27070_ACEOF
27071rm -f conftest.$ac_objext
27072if { (ac_try="$ac_compile"
27073case "(($ac_try" in
27074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27075 *) ac_try_echo=$ac_try;;
27076esac
27077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27078 (eval "$ac_compile") 2>conftest.er1
27079 ac_status=$?
27080 grep -v '^ *+' conftest.er1 >conftest.err
27081 rm -f conftest.er1
27082 cat conftest.err >&5
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); } && {
27085 test -z "$ac_c_werror_flag" ||
27086 test ! -s conftest.err
27087 } && test -s conftest.$ac_objext; then
27088
27089 cat >>confdefs.h <<\_ACEOF
27090#define HAVE_U_INT64_T 1
27091_ACEOF
27092
27093 { echo "$as_me:$LINENO: result: yes" >&5
27094echo "${ECHO_T}yes" >&6; }
27095
27096else
27097 echo "$as_me: failed program was:" >&5
27098sed 's/^/| /' conftest.$ac_ext >&5
27099
27100 { echo "$as_me:$LINENO: result: no" >&5
27101echo "${ECHO_T}no" >&6; }
27102
27103fi
27104
27105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27106fi
27107
27108if test -z "$have_u_intxx_t" ; then
27109 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
27110echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
27111if test "${ac_cv_have_uintxx_t+set}" = set; then
27112 echo $ECHO_N "(cached) $ECHO_C" >&6
27113else
27114
27115 cat >conftest.$ac_ext <<_ACEOF
27116/* confdefs.h. */
27117_ACEOF
27118cat confdefs.h >>conftest.$ac_ext
27119cat >>conftest.$ac_ext <<_ACEOF
27120/* end confdefs.h. */
27121
27122#include <sys/types.h>
27123
27124int
27125main ()
27126{
27127
27128 uint8_t a;
27129 uint16_t b;
27130 uint32_t c;
27131 a = b = c = 1;
27132
27133 ;
27134 return 0;
27135}
27136_ACEOF
27137rm -f conftest.$ac_objext
27138if { (ac_try="$ac_compile"
27139case "(($ac_try" in
27140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27141 *) ac_try_echo=$ac_try;;
27142esac
27143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27144 (eval "$ac_compile") 2>conftest.er1
27145 ac_status=$?
27146 grep -v '^ *+' conftest.er1 >conftest.err
27147 rm -f conftest.er1
27148 cat conftest.err >&5
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); } && {
27151 test -z "$ac_c_werror_flag" ||
27152 test ! -s conftest.err
27153 } && test -s conftest.$ac_objext; then
27154 ac_cv_have_uintxx_t="yes"
27155else
27156 echo "$as_me: failed program was:" >&5
27157sed 's/^/| /' conftest.$ac_ext >&5
27158
27159 ac_cv_have_uintxx_t="no"
27160
27161fi
27162
27163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27164
27165fi
27166{ echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
27167echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
27168 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27169
27170cat >>confdefs.h <<\_ACEOF
27171#define HAVE_UINTXX_T 1
27172_ACEOF
27173
27174 fi
27175fi
27176
27177if (test -z "$have_uintxx_t" && \
27178 test "x$ac_cv_header_stdint_h" = "xyes")
27179then
27180 { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
27181echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
27182 cat >conftest.$ac_ext <<_ACEOF
27183/* confdefs.h. */
27184_ACEOF
27185cat confdefs.h >>conftest.$ac_ext
27186cat >>conftest.$ac_ext <<_ACEOF
27187/* end confdefs.h. */
27188 #include <stdint.h>
27189int
27190main ()
27191{
27192 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
27193 ;
27194 return 0;
27195}
27196_ACEOF
27197rm -f conftest.$ac_objext
27198if { (ac_try="$ac_compile"
27199case "(($ac_try" in
27200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27201 *) ac_try_echo=$ac_try;;
27202esac
27203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27204 (eval "$ac_compile") 2>conftest.er1
27205 ac_status=$?
27206 grep -v '^ *+' conftest.er1 >conftest.err
27207 rm -f conftest.er1
27208 cat conftest.err >&5
27209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210 (exit $ac_status); } && {
27211 test -z "$ac_c_werror_flag" ||
27212 test ! -s conftest.err
27213 } && test -s conftest.$ac_objext; then
27214
27215 cat >>confdefs.h <<\_ACEOF
27216#define HAVE_UINTXX_T 1
27217_ACEOF
27218
27219 { echo "$as_me:$LINENO: result: yes" >&5
27220echo "${ECHO_T}yes" >&6; }
27221
27222else
27223 echo "$as_me: failed program was:" >&5
27224sed 's/^/| /' conftest.$ac_ext >&5
27225
27226 { echo "$as_me:$LINENO: result: no" >&5
27227echo "${ECHO_T}no" >&6; }
27228
27229fi
27230
27231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27232fi
27233
27234if (test -z "$have_uintxx_t" && \
27235 test "x$ac_cv_header_inttypes_h" = "xyes")
27236then
27237 { echo "$as_me:$LINENO: checking for uintXX_t types in inttypes.h" >&5
27238echo $ECHO_N "checking for uintXX_t types in inttypes.h... $ECHO_C" >&6; }
27239 cat >conftest.$ac_ext <<_ACEOF
27240/* confdefs.h. */
27241_ACEOF
27242cat confdefs.h >>conftest.$ac_ext
27243cat >>conftest.$ac_ext <<_ACEOF
27244/* end confdefs.h. */
27245 #include <inttypes.h>
27246int
27247main ()
27248{
27249 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
27250 ;
27251 return 0;
27252}
27253_ACEOF
27254rm -f conftest.$ac_objext
27255if { (ac_try="$ac_compile"
27256case "(($ac_try" in
27257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27258 *) ac_try_echo=$ac_try;;
27259esac
27260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27261 (eval "$ac_compile") 2>conftest.er1
27262 ac_status=$?
27263 grep -v '^ *+' conftest.er1 >conftest.err
27264 rm -f conftest.er1
27265 cat conftest.err >&5
27266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267 (exit $ac_status); } && {
27268 test -z "$ac_c_werror_flag" ||
27269 test ! -s conftest.err
27270 } && test -s conftest.$ac_objext; then
27271
27272 cat >>confdefs.h <<\_ACEOF
27273#define HAVE_UINTXX_T 1
27274_ACEOF
27275
27276 { echo "$as_me:$LINENO: result: yes" >&5
27277echo "${ECHO_T}yes" >&6; }
27278
27279else
27280 echo "$as_me: failed program was:" >&5
27281sed 's/^/| /' conftest.$ac_ext >&5
27282
27283 { echo "$as_me:$LINENO: result: no" >&5
27284echo "${ECHO_T}no" >&6; }
27285
27286fi
27287
27288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27289fi
27290
27291if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27292 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27293then
27294 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27295echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
27296 cat >conftest.$ac_ext <<_ACEOF
27297/* confdefs.h. */
27298_ACEOF
27299cat confdefs.h >>conftest.$ac_ext
27300cat >>conftest.$ac_ext <<_ACEOF
27301/* end confdefs.h. */
27302
27303#include <sys/bitypes.h>
27304
27305int
27306main ()
27307{
27308
27309 int8_t a; int16_t b; int32_t c;
27310 u_int8_t e; u_int16_t f; u_int32_t g;
27311 a = b = c = e = f = g = 1;
27312
27313 ;
27314 return 0;
27315}
27316_ACEOF
27317rm -f conftest.$ac_objext
27318if { (ac_try="$ac_compile"
27319case "(($ac_try" in
27320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321 *) ac_try_echo=$ac_try;;
27322esac
27323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27324 (eval "$ac_compile") 2>conftest.er1
27325 ac_status=$?
27326 grep -v '^ *+' conftest.er1 >conftest.err
27327 rm -f conftest.er1
27328 cat conftest.err >&5
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); } && {
27331 test -z "$ac_c_werror_flag" ||
27332 test ! -s conftest.err
27333 } && test -s conftest.$ac_objext; then
27334
27335 cat >>confdefs.h <<\_ACEOF
27336#define HAVE_U_INTXX_T 1
27337_ACEOF
27338
27339 cat >>confdefs.h <<\_ACEOF
27340#define HAVE_INTXX_T 1
27341_ACEOF
27342
27343 { echo "$as_me:$LINENO: result: yes" >&5
27344echo "${ECHO_T}yes" >&6; }
27345
27346else
27347 echo "$as_me: failed program was:" >&5
27348sed 's/^/| /' conftest.$ac_ext >&5
27349
27350 { echo "$as_me:$LINENO: result: no" >&5
27351echo "${ECHO_T}no" >&6; }
27352
27353fi
27354
27355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27356fi
27357
27358
27359{ echo "$as_me:$LINENO: checking for u_char" >&5
27360echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
27361if test "${ac_cv_have_u_char+set}" = set; then
27362 echo $ECHO_N "(cached) $ECHO_C" >&6
27363else
27364
27365 cat >conftest.$ac_ext <<_ACEOF
27366/* confdefs.h. */
27367_ACEOF
27368cat confdefs.h >>conftest.$ac_ext
27369cat >>conftest.$ac_ext <<_ACEOF
27370/* end confdefs.h. */
27371 #include <sys/types.h>
27372int
27373main ()
27374{
27375 u_char foo; foo = 125;
27376 ;
27377 return 0;
27378}
27379_ACEOF
27380rm -f conftest.$ac_objext
27381if { (ac_try="$ac_compile"
27382case "(($ac_try" in
27383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27384 *) ac_try_echo=$ac_try;;
27385esac
27386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27387 (eval "$ac_compile") 2>conftest.er1
27388 ac_status=$?
27389 grep -v '^ *+' conftest.er1 >conftest.err
27390 rm -f conftest.er1
27391 cat conftest.err >&5
27392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393 (exit $ac_status); } && {
27394 test -z "$ac_c_werror_flag" ||
27395 test ! -s conftest.err
27396 } && test -s conftest.$ac_objext; then
27397 ac_cv_have_u_char="yes"
27398else
27399 echo "$as_me: failed program was:" >&5
27400sed 's/^/| /' conftest.$ac_ext >&5
27401
27402 ac_cv_have_u_char="no"
27403
27404fi
27405
27406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27407
27408fi
27409{ echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
27410echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
27411if test "x$ac_cv_have_u_char" = "xyes" ; then
27412
27413cat >>confdefs.h <<\_ACEOF
27414#define HAVE_U_CHAR 1
27415_ACEOF
27416
27417fi
27418
27419{ echo "$as_me:$LINENO: checking for intmax_t" >&5
27420echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
27421if test "${ac_cv_type_intmax_t+set}" = set; then
27422 echo $ECHO_N "(cached) $ECHO_C" >&6
27423else
27424 cat >conftest.$ac_ext <<_ACEOF
27425/* confdefs.h. */
27426_ACEOF
27427cat confdefs.h >>conftest.$ac_ext
27428cat >>conftest.$ac_ext <<_ACEOF
27429/* end confdefs.h. */
27430
27431#include <sys/types.h>
27432#include <stdint.h>
27433
27434
27435typedef intmax_t ac__type_new_;
27436int
27437main ()
27438{
27439if ((ac__type_new_ *) 0)
27440 return 0;
27441if (sizeof (ac__type_new_))
27442 return 0;
27443 ;
27444 return 0;
27445}
27446_ACEOF
27447rm -f conftest.$ac_objext
27448if { (ac_try="$ac_compile"
27449case "(($ac_try" in
27450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27451 *) ac_try_echo=$ac_try;;
27452esac
27453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27454 (eval "$ac_compile") 2>conftest.er1
27455 ac_status=$?
27456 grep -v '^ *+' conftest.er1 >conftest.err
27457 rm -f conftest.er1
27458 cat conftest.err >&5
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); } && {
27461 test -z "$ac_c_werror_flag" ||
27462 test ! -s conftest.err
27463 } && test -s conftest.$ac_objext; then
27464 ac_cv_type_intmax_t=yes
27465else
27466 echo "$as_me: failed program was:" >&5
27467sed 's/^/| /' conftest.$ac_ext >&5
27468
27469 ac_cv_type_intmax_t=no
27470fi
27471
27472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27473fi
27474{ echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
27475echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
27476if test $ac_cv_type_intmax_t = yes; then
27477
27478cat >>confdefs.h <<_ACEOF
27479#define HAVE_INTMAX_T 1
27480_ACEOF
27481
27482
27483fi
27484{ echo "$as_me:$LINENO: checking for uintmax_t" >&5
27485echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
27486if test "${ac_cv_type_uintmax_t+set}" = set; then
27487 echo $ECHO_N "(cached) $ECHO_C" >&6
27488else
27489 cat >conftest.$ac_ext <<_ACEOF
27490/* confdefs.h. */
27491_ACEOF
27492cat confdefs.h >>conftest.$ac_ext
27493cat >>conftest.$ac_ext <<_ACEOF
27494/* end confdefs.h. */
27495
27496#include <sys/types.h>
27497#include <stdint.h>
27498
27499
27500typedef uintmax_t ac__type_new_;
27501int
27502main ()
27503{
27504if ((ac__type_new_ *) 0)
27505 return 0;
27506if (sizeof (ac__type_new_))
27507 return 0;
27508 ;
27509 return 0;
27510}
27511_ACEOF
27512rm -f conftest.$ac_objext
27513if { (ac_try="$ac_compile"
27514case "(($ac_try" in
27515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27516 *) ac_try_echo=$ac_try;;
27517esac
27518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27519 (eval "$ac_compile") 2>conftest.er1
27520 ac_status=$?
27521 grep -v '^ *+' conftest.er1 >conftest.err
27522 rm -f conftest.er1
27523 cat conftest.err >&5
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); } && {
27526 test -z "$ac_c_werror_flag" ||
27527 test ! -s conftest.err
27528 } && test -s conftest.$ac_objext; then
27529 ac_cv_type_uintmax_t=yes
27530else
27531 echo "$as_me: failed program was:" >&5
27532sed 's/^/| /' conftest.$ac_ext >&5
27533
27534 ac_cv_type_uintmax_t=no
27535fi
27536
27537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27538fi
27539{ echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
27540echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
27541if test $ac_cv_type_uintmax_t = yes; then
27542
27543cat >>confdefs.h <<_ACEOF
27544#define HAVE_UINTMAX_T 1
27545_ACEOF
27546
27547
27548fi
27549
27550
27551
27552 { echo "$as_me:$LINENO: checking for socklen_t" >&5
27553echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27554if test "${ac_cv_type_socklen_t+set}" = set; then
27555 echo $ECHO_N "(cached) $ECHO_C" >&6
27556else
27557 cat >conftest.$ac_ext <<_ACEOF
27558/* confdefs.h. */
27559_ACEOF
27560cat confdefs.h >>conftest.$ac_ext
27561cat >>conftest.$ac_ext <<_ACEOF
27562/* end confdefs.h. */
27563#include <sys/types.h>
27564#include <sys/socket.h>
27565
27566typedef socklen_t ac__type_new_;
27567int
27568main ()
27569{
27570if ((ac__type_new_ *) 0)
27571 return 0;
27572if (sizeof (ac__type_new_))
27573 return 0;
27574 ;
27575 return 0;
27576}
27577_ACEOF
27578rm -f conftest.$ac_objext
27579if { (ac_try="$ac_compile"
27580case "(($ac_try" in
27581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27582 *) ac_try_echo=$ac_try;;
27583esac
27584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27585 (eval "$ac_compile") 2>conftest.er1
27586 ac_status=$?
27587 grep -v '^ *+' conftest.er1 >conftest.err
27588 rm -f conftest.er1
27589 cat conftest.err >&5
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); } && {
27592 test -z "$ac_c_werror_flag" ||
27593 test ! -s conftest.err
27594 } && test -s conftest.$ac_objext; then
27595 ac_cv_type_socklen_t=yes
27596else
27597 echo "$as_me: failed program was:" >&5
27598sed 's/^/| /' conftest.$ac_ext >&5
27599
27600 ac_cv_type_socklen_t=no
27601fi
27602
27603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27604fi
27605{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27606echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27607if test $ac_cv_type_socklen_t = yes; then
27608 :
27609else
27610
27611 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
27612echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
27613 if test "${curl_cv_socklen_t_equiv+set}" = set; then
27614 echo $ECHO_N "(cached) $ECHO_C" >&6
27615else
27616
27617 # Systems have either "struct sockaddr *" or
27618 # "void *" as the second argument to getpeername
27619 curl_cv_socklen_t_equiv=
27620 for arg2 in "struct sockaddr" void; do
27621 for t in int size_t unsigned long "unsigned long"; do
27622 cat >conftest.$ac_ext <<_ACEOF
27623/* confdefs.h. */
27624_ACEOF
27625cat confdefs.h >>conftest.$ac_ext
27626cat >>conftest.$ac_ext <<_ACEOF
27627/* end confdefs.h. */
27628
27629 #include <sys/types.h>
27630 #include <sys/socket.h>
27631
27632 int getpeername (int, $arg2 *, $t *);
27633
27634int
27635main ()
27636{
27637
27638 $t len;
27639 getpeername(0,0,&len);
27640
27641 ;
27642 return 0;
27643}
27644_ACEOF
27645rm -f conftest.$ac_objext
27646if { (ac_try="$ac_compile"
27647case "(($ac_try" in
27648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27649 *) ac_try_echo=$ac_try;;
27650esac
27651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27652 (eval "$ac_compile") 2>conftest.er1
27653 ac_status=$?
27654 grep -v '^ *+' conftest.er1 >conftest.err
27655 rm -f conftest.er1
27656 cat conftest.err >&5
27657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658 (exit $ac_status); } && {
27659 test -z "$ac_c_werror_flag" ||
27660 test ! -s conftest.err
27661 } && test -s conftest.$ac_objext; then
27662
27663 curl_cv_socklen_t_equiv="$t"
27664 break
27665
27666else
27667 echo "$as_me: failed program was:" >&5
27668sed 's/^/| /' conftest.$ac_ext >&5
27669
27670
27671fi
27672
27673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27674 done
27675 done
27676
27677 if test "x$curl_cv_socklen_t_equiv" = x; then
27678 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
27679echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
27680 { (exit 1); exit 1; }; }
27681 fi
27682
27683fi
27684
27685 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
27686echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
27687
27688cat >>confdefs.h <<_ACEOF
27689#define socklen_t $curl_cv_socklen_t_equiv
27690_ACEOF
27691
27692fi
27693
27694
27695
27696{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27697echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
27698if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27699 echo $ECHO_N "(cached) $ECHO_C" >&6
27700else
27701 cat >conftest.$ac_ext <<_ACEOF
27702/* confdefs.h. */
27703_ACEOF
27704cat confdefs.h >>conftest.$ac_ext
27705cat >>conftest.$ac_ext <<_ACEOF
27706/* end confdefs.h. */
27707#include <signal.h>
27708
27709typedef sig_atomic_t ac__type_new_;
27710int
27711main ()
27712{
27713if ((ac__type_new_ *) 0)
27714 return 0;
27715if (sizeof (ac__type_new_))
27716 return 0;
27717 ;
27718 return 0;
27719}
27720_ACEOF
27721rm -f conftest.$ac_objext
27722if { (ac_try="$ac_compile"
27723case "(($ac_try" in
27724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27725 *) ac_try_echo=$ac_try;;
27726esac
27727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27728 (eval "$ac_compile") 2>conftest.er1
27729 ac_status=$?
27730 grep -v '^ *+' conftest.er1 >conftest.err
27731 rm -f conftest.er1
27732 cat conftest.err >&5
27733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734 (exit $ac_status); } && {
27735 test -z "$ac_c_werror_flag" ||
27736 test ! -s conftest.err
27737 } && test -s conftest.$ac_objext; then
27738 ac_cv_type_sig_atomic_t=yes
27739else
27740 echo "$as_me: failed program was:" >&5
27741sed 's/^/| /' conftest.$ac_ext >&5
27742
27743 ac_cv_type_sig_atomic_t=no
27744fi
27745
27746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27747fi
27748{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
27749echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
27750if test $ac_cv_type_sig_atomic_t = yes; then
27751
27752cat >>confdefs.h <<_ACEOF
27753#define HAVE_SIG_ATOMIC_T 1
27754_ACEOF
27755
27756
27757fi
27758
27759{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
27760echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
27761if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
27762 echo $ECHO_N "(cached) $ECHO_C" >&6
27763else
27764 cat >conftest.$ac_ext <<_ACEOF
27765/* confdefs.h. */
27766_ACEOF
27767cat confdefs.h >>conftest.$ac_ext
27768cat >>conftest.$ac_ext <<_ACEOF
27769/* end confdefs.h. */
27770
27771#include <sys/types.h>
27772#ifdef HAVE_SYS_BITYPES_H
27773#include <sys/bitypes.h>
27774#endif
27775#ifdef HAVE_SYS_STATFS_H
27776#include <sys/statfs.h>
27777#endif
27778#ifdef HAVE_SYS_STATVFS_H
27779#include <sys/statvfs.h>
27780#endif
27781
27782
27783typedef fsblkcnt_t ac__type_new_;
27784int
27785main ()
27786{
27787if ((ac__type_new_ *) 0)
27788 return 0;
27789if (sizeof (ac__type_new_))
27790 return 0;
27791 ;
27792 return 0;
27793}
27794_ACEOF
27795rm -f conftest.$ac_objext
27796if { (ac_try="$ac_compile"
27797case "(($ac_try" in
27798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27799 *) ac_try_echo=$ac_try;;
27800esac
27801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27802 (eval "$ac_compile") 2>conftest.er1
27803 ac_status=$?
27804 grep -v '^ *+' conftest.er1 >conftest.err
27805 rm -f conftest.er1
27806 cat conftest.err >&5
27807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808 (exit $ac_status); } && {
27809 test -z "$ac_c_werror_flag" ||
27810 test ! -s conftest.err
27811 } && test -s conftest.$ac_objext; then
27812 ac_cv_type_fsblkcnt_t=yes
27813else
27814 echo "$as_me: failed program was:" >&5
27815sed 's/^/| /' conftest.$ac_ext >&5
27816
27817 ac_cv_type_fsblkcnt_t=no
27818fi
27819
27820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27821fi
27822{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
27823echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
27824if test $ac_cv_type_fsblkcnt_t = yes; then
27825
27826cat >>confdefs.h <<_ACEOF
27827#define HAVE_FSBLKCNT_T 1
27828_ACEOF
27829
27830
27831fi
27832{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
27833echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
27834if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
27835 echo $ECHO_N "(cached) $ECHO_C" >&6
27836else
27837 cat >conftest.$ac_ext <<_ACEOF
27838/* confdefs.h. */
27839_ACEOF
27840cat confdefs.h >>conftest.$ac_ext
27841cat >>conftest.$ac_ext <<_ACEOF
27842/* end confdefs.h. */
27843
27844#include <sys/types.h>
27845#ifdef HAVE_SYS_BITYPES_H
27846#include <sys/bitypes.h>
27847#endif
27848#ifdef HAVE_SYS_STATFS_H
27849#include <sys/statfs.h>
27850#endif
27851#ifdef HAVE_SYS_STATVFS_H
27852#include <sys/statvfs.h>
27853#endif
27854
27855
27856typedef fsfilcnt_t ac__type_new_;
27857int
27858main ()
27859{
27860if ((ac__type_new_ *) 0)
27861 return 0;
27862if (sizeof (ac__type_new_))
27863 return 0;
27864 ;
27865 return 0;
27866}
27867_ACEOF
27868rm -f conftest.$ac_objext
27869if { (ac_try="$ac_compile"
27870case "(($ac_try" in
27871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27872 *) ac_try_echo=$ac_try;;
27873esac
27874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27875 (eval "$ac_compile") 2>conftest.er1
27876 ac_status=$?
27877 grep -v '^ *+' conftest.er1 >conftest.err
27878 rm -f conftest.er1
27879 cat conftest.err >&5
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); } && {
27882 test -z "$ac_c_werror_flag" ||
27883 test ! -s conftest.err
27884 } && test -s conftest.$ac_objext; then
27885 ac_cv_type_fsfilcnt_t=yes
27886else
27887 echo "$as_me: failed program was:" >&5
27888sed 's/^/| /' conftest.$ac_ext >&5
27889
27890 ac_cv_type_fsfilcnt_t=no
27891fi
27892
27893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27894fi
27895{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
27896echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
27897if test $ac_cv_type_fsfilcnt_t = yes; then
27898
27899cat >>confdefs.h <<_ACEOF
27900#define HAVE_FSFILCNT_T 1
27901_ACEOF
27902
27903
27904fi
27905
27906
27907{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
27908echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
27909if test "${ac_cv_type_in_addr_t+set}" = set; then
27910 echo $ECHO_N "(cached) $ECHO_C" >&6
27911else
27912 cat >conftest.$ac_ext <<_ACEOF
27913/* confdefs.h. */
27914_ACEOF
27915cat confdefs.h >>conftest.$ac_ext
27916cat >>conftest.$ac_ext <<_ACEOF
27917/* end confdefs.h. */
27918#include <sys/types.h>
27919#include <netinet/in.h>
27920
27921typedef in_addr_t ac__type_new_;
27922int
27923main ()
27924{
27925if ((ac__type_new_ *) 0)
27926 return 0;
27927if (sizeof (ac__type_new_))
27928 return 0;
27929 ;
27930 return 0;
27931}
27932_ACEOF
27933rm -f conftest.$ac_objext
27934if { (ac_try="$ac_compile"
27935case "(($ac_try" in
27936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27937 *) ac_try_echo=$ac_try;;
27938esac
27939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27940 (eval "$ac_compile") 2>conftest.er1
27941 ac_status=$?
27942 grep -v '^ *+' conftest.er1 >conftest.err
27943 rm -f conftest.er1
27944 cat conftest.err >&5
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); } && {
27947 test -z "$ac_c_werror_flag" ||
27948 test ! -s conftest.err
27949 } && test -s conftest.$ac_objext; then
27950 ac_cv_type_in_addr_t=yes
27951else
27952 echo "$as_me: failed program was:" >&5
27953sed 's/^/| /' conftest.$ac_ext >&5
27954
27955 ac_cv_type_in_addr_t=no
27956fi
27957
27958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27959fi
27960{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
27961echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
27962if test $ac_cv_type_in_addr_t = yes; then
27963
27964cat >>confdefs.h <<_ACEOF
27965#define HAVE_IN_ADDR_T 1
27966_ACEOF
27967
27968
27969fi
27970{ echo "$as_me:$LINENO: checking for in_port_t" >&5
27971echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
27972if test "${ac_cv_type_in_port_t+set}" = set; then
27973 echo $ECHO_N "(cached) $ECHO_C" >&6
27974else
27975 cat >conftest.$ac_ext <<_ACEOF
27976/* confdefs.h. */
27977_ACEOF
27978cat confdefs.h >>conftest.$ac_ext
27979cat >>conftest.$ac_ext <<_ACEOF
27980/* end confdefs.h. */
27981#include <sys/types.h>
27982#include <netinet/in.h>
27983
27984typedef in_port_t ac__type_new_;
27985int
27986main ()
27987{
27988if ((ac__type_new_ *) 0)
27989 return 0;
27990if (sizeof (ac__type_new_))
27991 return 0;
27992 ;
27993 return 0;
27994}
27995_ACEOF
27996rm -f conftest.$ac_objext
27997if { (ac_try="$ac_compile"
27998case "(($ac_try" in
27999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28000 *) ac_try_echo=$ac_try;;
28001esac
28002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28003 (eval "$ac_compile") 2>conftest.er1
28004 ac_status=$?
28005 grep -v '^ *+' conftest.er1 >conftest.err
28006 rm -f conftest.er1
28007 cat conftest.err >&5
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); } && {
28010 test -z "$ac_c_werror_flag" ||
28011 test ! -s conftest.err
28012 } && test -s conftest.$ac_objext; then
28013 ac_cv_type_in_port_t=yes
28014else
28015 echo "$as_me: failed program was:" >&5
28016sed 's/^/| /' conftest.$ac_ext >&5
28017
28018 ac_cv_type_in_port_t=no
28019fi
28020
28021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28022fi
28023{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
28024echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
28025if test $ac_cv_type_in_port_t = yes; then
28026
28027cat >>confdefs.h <<_ACEOF
28028#define HAVE_IN_PORT_T 1
28029_ACEOF
28030
28031
28032fi
28033
28034
28035{ echo "$as_me:$LINENO: checking for size_t" >&5
28036echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28037if test "${ac_cv_have_size_t+set}" = set; then
28038 echo $ECHO_N "(cached) $ECHO_C" >&6
28039else
28040
28041 cat >conftest.$ac_ext <<_ACEOF
28042/* confdefs.h. */
28043_ACEOF
28044cat confdefs.h >>conftest.$ac_ext
28045cat >>conftest.$ac_ext <<_ACEOF
28046/* end confdefs.h. */
28047 #include <sys/types.h>
28048int
28049main ()
28050{
28051 size_t foo; foo = 1235;
28052 ;
28053 return 0;
28054}
28055_ACEOF
28056rm -f conftest.$ac_objext
28057if { (ac_try="$ac_compile"
28058case "(($ac_try" in
28059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28060 *) ac_try_echo=$ac_try;;
28061esac
28062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28063 (eval "$ac_compile") 2>conftest.er1
28064 ac_status=$?
28065 grep -v '^ *+' conftest.er1 >conftest.err
28066 rm -f conftest.er1
28067 cat conftest.err >&5
28068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069 (exit $ac_status); } && {
28070 test -z "$ac_c_werror_flag" ||
28071 test ! -s conftest.err
28072 } && test -s conftest.$ac_objext; then
28073 ac_cv_have_size_t="yes"
28074else
28075 echo "$as_me: failed program was:" >&5
28076sed 's/^/| /' conftest.$ac_ext >&5
28077
28078 ac_cv_have_size_t="no"
28079
28080fi
28081
28082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28083
28084fi
28085{ echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
28086echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
28087if test "x$ac_cv_have_size_t" = "xyes" ; then
28088
28089cat >>confdefs.h <<\_ACEOF
28090#define HAVE_SIZE_T 1
28091_ACEOF
28092
28093fi
28094
28095{ echo "$as_me:$LINENO: checking for ssize_t" >&5
28096echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
28097if test "${ac_cv_have_ssize_t+set}" = set; then
28098 echo $ECHO_N "(cached) $ECHO_C" >&6
28099else
28100
28101 cat >conftest.$ac_ext <<_ACEOF
28102/* confdefs.h. */
28103_ACEOF
28104cat confdefs.h >>conftest.$ac_ext
28105cat >>conftest.$ac_ext <<_ACEOF
28106/* end confdefs.h. */
28107 #include <sys/types.h>
28108int
28109main ()
28110{
28111 ssize_t foo; foo = 1235;
28112 ;
28113 return 0;
28114}
28115_ACEOF
28116rm -f conftest.$ac_objext
28117if { (ac_try="$ac_compile"
28118case "(($ac_try" in
28119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28120 *) ac_try_echo=$ac_try;;
28121esac
28122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28123 (eval "$ac_compile") 2>conftest.er1
28124 ac_status=$?
28125 grep -v '^ *+' conftest.er1 >conftest.err
28126 rm -f conftest.er1
28127 cat conftest.err >&5
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); } && {
28130 test -z "$ac_c_werror_flag" ||
28131 test ! -s conftest.err
28132 } && test -s conftest.$ac_objext; then
28133 ac_cv_have_ssize_t="yes"
28134else
28135 echo "$as_me: failed program was:" >&5
28136sed 's/^/| /' conftest.$ac_ext >&5
28137
28138 ac_cv_have_ssize_t="no"
28139
28140fi
28141
28142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28143
28144fi
28145{ echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
28146echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
28147if test "x$ac_cv_have_ssize_t" = "xyes" ; then
28148
28149cat >>confdefs.h <<\_ACEOF
28150#define HAVE_SSIZE_T 1
28151_ACEOF
28152
28153fi
28154
28155{ echo "$as_me:$LINENO: checking for clock_t" >&5
28156echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
28157if test "${ac_cv_have_clock_t+set}" = set; then
28158 echo $ECHO_N "(cached) $ECHO_C" >&6
28159else
28160
28161 cat >conftest.$ac_ext <<_ACEOF
28162/* confdefs.h. */
28163_ACEOF
28164cat confdefs.h >>conftest.$ac_ext
28165cat >>conftest.$ac_ext <<_ACEOF
28166/* end confdefs.h. */
28167 #include <time.h>
28168int
28169main ()
28170{
28171 clock_t foo; foo = 1235;
28172 ;
28173 return 0;
28174}
28175_ACEOF
28176rm -f conftest.$ac_objext
28177if { (ac_try="$ac_compile"
28178case "(($ac_try" in
28179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28180 *) ac_try_echo=$ac_try;;
28181esac
28182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28183 (eval "$ac_compile") 2>conftest.er1
28184 ac_status=$?
28185 grep -v '^ *+' conftest.er1 >conftest.err
28186 rm -f conftest.er1
28187 cat conftest.err >&5
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); } && {
28190 test -z "$ac_c_werror_flag" ||
28191 test ! -s conftest.err
28192 } && test -s conftest.$ac_objext; then
28193 ac_cv_have_clock_t="yes"
28194else
28195 echo "$as_me: failed program was:" >&5
28196sed 's/^/| /' conftest.$ac_ext >&5
28197
28198 ac_cv_have_clock_t="no"
28199
28200fi
28201
28202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28203
28204fi
28205{ echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
28206echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
28207if test "x$ac_cv_have_clock_t" = "xyes" ; then
28208
28209cat >>confdefs.h <<\_ACEOF
28210#define HAVE_CLOCK_T 1
28211_ACEOF
28212
28213fi
28214
28215{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
28216echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
28217if test "${ac_cv_have_sa_family_t+set}" = set; then
28218 echo $ECHO_N "(cached) $ECHO_C" >&6
28219else
28220
28221 cat >conftest.$ac_ext <<_ACEOF
28222/* confdefs.h. */
28223_ACEOF
28224cat confdefs.h >>conftest.$ac_ext
28225cat >>conftest.$ac_ext <<_ACEOF
28226/* end confdefs.h. */
28227
28228#include <sys/types.h>
28229#include <sys/socket.h>
28230
28231int
28232main ()
28233{
28234 sa_family_t foo; foo = 1235;
28235 ;
28236 return 0;
28237}
28238_ACEOF
28239rm -f conftest.$ac_objext
28240if { (ac_try="$ac_compile"
28241case "(($ac_try" in
28242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28243 *) ac_try_echo=$ac_try;;
28244esac
28245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28246 (eval "$ac_compile") 2>conftest.er1
28247 ac_status=$?
28248 grep -v '^ *+' conftest.er1 >conftest.err
28249 rm -f conftest.er1
28250 cat conftest.err >&5
28251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); } && {
28253 test -z "$ac_c_werror_flag" ||
28254 test ! -s conftest.err
28255 } && test -s conftest.$ac_objext; then
28256 ac_cv_have_sa_family_t="yes"
28257else
28258 echo "$as_me: failed program was:" >&5
28259sed 's/^/| /' conftest.$ac_ext >&5
28260
28261 cat >conftest.$ac_ext <<_ACEOF
28262/* confdefs.h. */
28263_ACEOF
28264cat confdefs.h >>conftest.$ac_ext
28265cat >>conftest.$ac_ext <<_ACEOF
28266/* end confdefs.h. */
28267
28268#include <sys/types.h>
28269#include <sys/socket.h>
28270#include <netinet/in.h>
28271
28272int
28273main ()
28274{
28275 sa_family_t foo; foo = 1235;
28276 ;
28277 return 0;
28278}
28279_ACEOF
28280rm -f conftest.$ac_objext
28281if { (ac_try="$ac_compile"
28282case "(($ac_try" in
28283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28284 *) ac_try_echo=$ac_try;;
28285esac
28286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28287 (eval "$ac_compile") 2>conftest.er1
28288 ac_status=$?
28289 grep -v '^ *+' conftest.er1 >conftest.err
28290 rm -f conftest.er1
28291 cat conftest.err >&5
28292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293 (exit $ac_status); } && {
28294 test -z "$ac_c_werror_flag" ||
28295 test ! -s conftest.err
28296 } && test -s conftest.$ac_objext; then
28297 ac_cv_have_sa_family_t="yes"
28298else
28299 echo "$as_me: failed program was:" >&5
28300sed 's/^/| /' conftest.$ac_ext >&5
28301
28302 ac_cv_have_sa_family_t="no"
28303
28304fi
28305
28306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28307
28308fi
28309
28310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28311
28312fi
28313{ echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
28314echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
28315if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
28316
28317cat >>confdefs.h <<\_ACEOF
28318#define HAVE_SA_FAMILY_T 1
28319_ACEOF
28320
28321fi
28322
28323{ echo "$as_me:$LINENO: checking for pid_t" >&5
28324echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
28325if test "${ac_cv_have_pid_t+set}" = set; then
28326 echo $ECHO_N "(cached) $ECHO_C" >&6
28327else
28328
28329 cat >conftest.$ac_ext <<_ACEOF
28330/* confdefs.h. */
28331_ACEOF
28332cat confdefs.h >>conftest.$ac_ext
28333cat >>conftest.$ac_ext <<_ACEOF
28334/* end confdefs.h. */
28335 #include <sys/types.h>
28336int
28337main ()
28338{
28339 pid_t foo; foo = 1235;
28340 ;
28341 return 0;
28342}
28343_ACEOF
28344rm -f conftest.$ac_objext
28345if { (ac_try="$ac_compile"
28346case "(($ac_try" in
28347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28348 *) ac_try_echo=$ac_try;;
28349esac
28350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28351 (eval "$ac_compile") 2>conftest.er1
28352 ac_status=$?
28353 grep -v '^ *+' conftest.er1 >conftest.err
28354 rm -f conftest.er1
28355 cat conftest.err >&5
28356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); } && {
28358 test -z "$ac_c_werror_flag" ||
28359 test ! -s conftest.err
28360 } && test -s conftest.$ac_objext; then
28361 ac_cv_have_pid_t="yes"
28362else
28363 echo "$as_me: failed program was:" >&5
28364sed 's/^/| /' conftest.$ac_ext >&5
28365
28366 ac_cv_have_pid_t="no"
28367
28368fi
28369
28370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28371
28372fi
28373{ echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
28374echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
28375if test "x$ac_cv_have_pid_t" = "xyes" ; then
28376
28377cat >>confdefs.h <<\_ACEOF
28378#define HAVE_PID_T 1
28379_ACEOF
28380
28381fi
28382
28383{ echo "$as_me:$LINENO: checking for mode_t" >&5
28384echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
28385if test "${ac_cv_have_mode_t+set}" = set; then
28386 echo $ECHO_N "(cached) $ECHO_C" >&6
28387else
28388
28389 cat >conftest.$ac_ext <<_ACEOF
28390/* confdefs.h. */
28391_ACEOF
28392cat confdefs.h >>conftest.$ac_ext
28393cat >>conftest.$ac_ext <<_ACEOF
28394/* end confdefs.h. */
28395 #include <sys/types.h>
28396int
28397main ()
28398{
28399 mode_t foo; foo = 1235;
28400 ;
28401 return 0;
28402}
28403_ACEOF
28404rm -f conftest.$ac_objext
28405if { (ac_try="$ac_compile"
28406case "(($ac_try" in
28407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28408 *) ac_try_echo=$ac_try;;
28409esac
28410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28411 (eval "$ac_compile") 2>conftest.er1
28412 ac_status=$?
28413 grep -v '^ *+' conftest.er1 >conftest.err
28414 rm -f conftest.er1
28415 cat conftest.err >&5
28416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417 (exit $ac_status); } && {
28418 test -z "$ac_c_werror_flag" ||
28419 test ! -s conftest.err
28420 } && test -s conftest.$ac_objext; then
28421 ac_cv_have_mode_t="yes"
28422else
28423 echo "$as_me: failed program was:" >&5
28424sed 's/^/| /' conftest.$ac_ext >&5
28425
28426 ac_cv_have_mode_t="no"
28427
28428fi
28429
28430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28431
28432fi
28433{ echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
28434echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
28435if test "x$ac_cv_have_mode_t" = "xyes" ; then
28436
28437cat >>confdefs.h <<\_ACEOF
28438#define HAVE_MODE_T 1
28439_ACEOF
28440
28441fi
28442
28443
28444{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
28445echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
28446if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
28447 echo $ECHO_N "(cached) $ECHO_C" >&6
28448else
28449
28450 cat >conftest.$ac_ext <<_ACEOF
28451/* confdefs.h. */
28452_ACEOF
28453cat confdefs.h >>conftest.$ac_ext
28454cat >>conftest.$ac_ext <<_ACEOF
28455/* end confdefs.h. */
28456
28457#include <sys/types.h>
28458#include <sys/socket.h>
28459
28460int
28461main ()
28462{
28463 struct sockaddr_storage s;
28464 ;
28465 return 0;
28466}
28467_ACEOF
28468rm -f conftest.$ac_objext
28469if { (ac_try="$ac_compile"
28470case "(($ac_try" in
28471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28472 *) ac_try_echo=$ac_try;;
28473esac
28474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28475 (eval "$ac_compile") 2>conftest.er1
28476 ac_status=$?
28477 grep -v '^ *+' conftest.er1 >conftest.err
28478 rm -f conftest.er1
28479 cat conftest.err >&5
28480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481 (exit $ac_status); } && {
28482 test -z "$ac_c_werror_flag" ||
28483 test ! -s conftest.err
28484 } && test -s conftest.$ac_objext; then
28485 ac_cv_have_struct_sockaddr_storage="yes"
28486else
28487 echo "$as_me: failed program was:" >&5
28488sed 's/^/| /' conftest.$ac_ext >&5
28489
28490 ac_cv_have_struct_sockaddr_storage="no"
28491
28492fi
28493
28494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28495
28496fi
28497{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
28498echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
28499if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
28500
28501cat >>confdefs.h <<\_ACEOF
28502#define HAVE_STRUCT_SOCKADDR_STORAGE 1
28503_ACEOF
28504
28505fi
28506
28507{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
28508echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
28509if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
28510 echo $ECHO_N "(cached) $ECHO_C" >&6
28511else
28512
28513 cat >conftest.$ac_ext <<_ACEOF
28514/* confdefs.h. */
28515_ACEOF
28516cat confdefs.h >>conftest.$ac_ext
28517cat >>conftest.$ac_ext <<_ACEOF
28518/* end confdefs.h. */
28519
28520#include <sys/types.h>
28521#include <netinet/in.h>
28522
28523int
28524main ()
28525{
28526 struct sockaddr_in6 s; s.sin6_family = 0;
28527 ;
28528 return 0;
28529}
28530_ACEOF
28531rm -f conftest.$ac_objext
28532if { (ac_try="$ac_compile"
28533case "(($ac_try" in
28534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28535 *) ac_try_echo=$ac_try;;
28536esac
28537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28538 (eval "$ac_compile") 2>conftest.er1
28539 ac_status=$?
28540 grep -v '^ *+' conftest.er1 >conftest.err
28541 rm -f conftest.er1
28542 cat conftest.err >&5
28543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544 (exit $ac_status); } && {
28545 test -z "$ac_c_werror_flag" ||
28546 test ! -s conftest.err
28547 } && test -s conftest.$ac_objext; then
28548 ac_cv_have_struct_sockaddr_in6="yes"
28549else
28550 echo "$as_me: failed program was:" >&5
28551sed 's/^/| /' conftest.$ac_ext >&5
28552
28553 ac_cv_have_struct_sockaddr_in6="no"
28554
28555fi
28556
28557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28558
28559fi
28560{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
28561echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
28562if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
28563
28564cat >>confdefs.h <<\_ACEOF
28565#define HAVE_STRUCT_SOCKADDR_IN6 1
28566_ACEOF
28567
28568fi
28569
28570{ echo "$as_me:$LINENO: checking for struct in6_addr" >&5
28571echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
28572if test "${ac_cv_have_struct_in6_addr+set}" = set; then
28573 echo $ECHO_N "(cached) $ECHO_C" >&6
28574else
28575
28576 cat >conftest.$ac_ext <<_ACEOF
28577/* confdefs.h. */
28578_ACEOF
28579cat confdefs.h >>conftest.$ac_ext
28580cat >>conftest.$ac_ext <<_ACEOF
28581/* end confdefs.h. */
28582
28583#include <sys/types.h>
28584#include <netinet/in.h>
28585
28586int
28587main ()
28588{
28589 struct in6_addr s; s.s6_addr[0] = 0;
28590 ;
28591 return 0;
28592}
28593_ACEOF
28594rm -f conftest.$ac_objext
28595if { (ac_try="$ac_compile"
28596case "(($ac_try" in
28597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28598 *) ac_try_echo=$ac_try;;
28599esac
28600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28601 (eval "$ac_compile") 2>conftest.er1
28602 ac_status=$?
28603 grep -v '^ *+' conftest.er1 >conftest.err
28604 rm -f conftest.er1
28605 cat conftest.err >&5
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); } && {
28608 test -z "$ac_c_werror_flag" ||
28609 test ! -s conftest.err
28610 } && test -s conftest.$ac_objext; then
28611 ac_cv_have_struct_in6_addr="yes"
28612else
28613 echo "$as_me: failed program was:" >&5
28614sed 's/^/| /' conftest.$ac_ext >&5
28615
28616 ac_cv_have_struct_in6_addr="no"
28617
28618fi
28619
28620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28621
28622fi
28623{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
28624echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
28625if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
28626
28627cat >>confdefs.h <<\_ACEOF
28628#define HAVE_STRUCT_IN6_ADDR 1
28629_ACEOF
28630
28631
28632 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
28633echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
28634if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
28635 echo $ECHO_N "(cached) $ECHO_C" >&6
28636else
28637 cat >conftest.$ac_ext <<_ACEOF
28638/* confdefs.h. */
28639_ACEOF
28640cat confdefs.h >>conftest.$ac_ext
28641cat >>conftest.$ac_ext <<_ACEOF
28642/* end confdefs.h. */
28643
28644#ifdef HAVE_SYS_TYPES_H
28645#include <sys/types.h>
28646#endif
28647#include <netinet/in.h>
28648
28649
28650int
28651main ()
28652{
28653static struct sockaddr_in6 ac_aggr;
28654if (ac_aggr.sin6_scope_id)
28655return 0;
28656 ;
28657 return 0;
28658}
28659_ACEOF
28660rm -f conftest.$ac_objext
28661if { (ac_try="$ac_compile"
28662case "(($ac_try" in
28663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28664 *) ac_try_echo=$ac_try;;
28665esac
28666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28667 (eval "$ac_compile") 2>conftest.er1
28668 ac_status=$?
28669 grep -v '^ *+' conftest.er1 >conftest.err
28670 rm -f conftest.er1
28671 cat conftest.err >&5
28672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); } && {
28674 test -z "$ac_c_werror_flag" ||
28675 test ! -s conftest.err
28676 } && test -s conftest.$ac_objext; then
28677 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
28678else
28679 echo "$as_me: failed program was:" >&5
28680sed 's/^/| /' conftest.$ac_ext >&5
28681
28682 cat >conftest.$ac_ext <<_ACEOF
28683/* confdefs.h. */
28684_ACEOF
28685cat confdefs.h >>conftest.$ac_ext
28686cat >>conftest.$ac_ext <<_ACEOF
28687/* end confdefs.h. */
28688
28689#ifdef HAVE_SYS_TYPES_H
28690#include <sys/types.h>
28691#endif
28692#include <netinet/in.h>
28693
28694
28695int
28696main ()
28697{
28698static struct sockaddr_in6 ac_aggr;
28699if (sizeof ac_aggr.sin6_scope_id)
28700return 0;
28701 ;
28702 return 0;
28703}
28704_ACEOF
28705rm -f conftest.$ac_objext
28706if { (ac_try="$ac_compile"
28707case "(($ac_try" in
28708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28709 *) ac_try_echo=$ac_try;;
28710esac
28711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28712 (eval "$ac_compile") 2>conftest.er1
28713 ac_status=$?
28714 grep -v '^ *+' conftest.er1 >conftest.err
28715 rm -f conftest.er1
28716 cat conftest.err >&5
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); } && {
28719 test -z "$ac_c_werror_flag" ||
28720 test ! -s conftest.err
28721 } && test -s conftest.$ac_objext; then
28722 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
28723else
28724 echo "$as_me: failed program was:" >&5
28725sed 's/^/| /' conftest.$ac_ext >&5
28726
28727 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
28728fi
28729
28730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28731fi
28732
28733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28734fi
28735{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
28736echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
28737if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
28738
28739cat >>confdefs.h <<_ACEOF
28740#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
28741_ACEOF
28742
28743
28744fi
28745
28746fi
28747
28748{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
28749echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
28750if test "${ac_cv_have_struct_addrinfo+set}" = set; then
28751 echo $ECHO_N "(cached) $ECHO_C" >&6
28752else
28753
28754 cat >conftest.$ac_ext <<_ACEOF
28755/* confdefs.h. */
28756_ACEOF
28757cat confdefs.h >>conftest.$ac_ext
28758cat >>conftest.$ac_ext <<_ACEOF
28759/* end confdefs.h. */
28760
28761#include <sys/types.h>
28762#include <sys/socket.h>
28763#include <netdb.h>
28764
28765int
28766main ()
28767{
28768 struct addrinfo s; s.ai_flags = AI_PASSIVE;
28769 ;
28770 return 0;
28771}
28772_ACEOF
28773rm -f conftest.$ac_objext
28774if { (ac_try="$ac_compile"
28775case "(($ac_try" in
28776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777 *) ac_try_echo=$ac_try;;
28778esac
28779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780 (eval "$ac_compile") 2>conftest.er1
28781 ac_status=$?
28782 grep -v '^ *+' conftest.er1 >conftest.err
28783 rm -f conftest.er1
28784 cat conftest.err >&5
28785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); } && {
28787 test -z "$ac_c_werror_flag" ||
28788 test ! -s conftest.err
28789 } && test -s conftest.$ac_objext; then
28790 ac_cv_have_struct_addrinfo="yes"
28791else
28792 echo "$as_me: failed program was:" >&5
28793sed 's/^/| /' conftest.$ac_ext >&5
28794
28795 ac_cv_have_struct_addrinfo="no"
28796
28797fi
28798
28799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28800
28801fi
28802{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
28803echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
28804if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
28805
28806cat >>confdefs.h <<\_ACEOF
28807#define HAVE_STRUCT_ADDRINFO 1
28808_ACEOF
28809
28810fi
28811
28812{ echo "$as_me:$LINENO: checking for struct timeval" >&5
28813echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
28814if test "${ac_cv_have_struct_timeval+set}" = set; then
28815 echo $ECHO_N "(cached) $ECHO_C" >&6
28816else
28817
28818 cat >conftest.$ac_ext <<_ACEOF
28819/* confdefs.h. */
28820_ACEOF
28821cat confdefs.h >>conftest.$ac_ext
28822cat >>conftest.$ac_ext <<_ACEOF
28823/* end confdefs.h. */
28824 #include <sys/time.h>
28825int
28826main ()
28827{
28828 struct timeval tv; tv.tv_sec = 1;
28829 ;
28830 return 0;
28831}
28832_ACEOF
28833rm -f conftest.$ac_objext
28834if { (ac_try="$ac_compile"
28835case "(($ac_try" in
28836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28837 *) ac_try_echo=$ac_try;;
28838esac
28839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28840 (eval "$ac_compile") 2>conftest.er1
28841 ac_status=$?
28842 grep -v '^ *+' conftest.er1 >conftest.err
28843 rm -f conftest.er1
28844 cat conftest.err >&5
28845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); } && {
28847 test -z "$ac_c_werror_flag" ||
28848 test ! -s conftest.err
28849 } && test -s conftest.$ac_objext; then
28850 ac_cv_have_struct_timeval="yes"
28851else
28852 echo "$as_me: failed program was:" >&5
28853sed 's/^/| /' conftest.$ac_ext >&5
28854
28855 ac_cv_have_struct_timeval="no"
28856
28857fi
28858
28859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28860
28861fi
28862{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
28863echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
28864if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
28865
28866cat >>confdefs.h <<\_ACEOF
28867#define HAVE_STRUCT_TIMEVAL 1
28868_ACEOF
28869
28870 have_struct_timeval=1
28871fi
28872
28873{ echo "$as_me:$LINENO: checking for struct timespec" >&5
28874echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
28875if test "${ac_cv_type_struct_timespec+set}" = set; then
28876 echo $ECHO_N "(cached) $ECHO_C" >&6
28877else
28878 cat >conftest.$ac_ext <<_ACEOF
28879/* confdefs.h. */
28880_ACEOF
28881cat confdefs.h >>conftest.$ac_ext
28882cat >>conftest.$ac_ext <<_ACEOF
28883/* end confdefs.h. */
28884$ac_includes_default
28885typedef struct timespec ac__type_new_;
28886int
28887main ()
28888{
28889if ((ac__type_new_ *) 0)
28890 return 0;
28891if (sizeof (ac__type_new_))
28892 return 0;
28893 ;
28894 return 0;
28895}
28896_ACEOF
28897rm -f conftest.$ac_objext
28898if { (ac_try="$ac_compile"
28899case "(($ac_try" in
28900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901 *) ac_try_echo=$ac_try;;
28902esac
28903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28904 (eval "$ac_compile") 2>conftest.er1
28905 ac_status=$?
28906 grep -v '^ *+' conftest.er1 >conftest.err
28907 rm -f conftest.er1
28908 cat conftest.err >&5
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); } && {
28911 test -z "$ac_c_werror_flag" ||
28912 test ! -s conftest.err
28913 } && test -s conftest.$ac_objext; then
28914 ac_cv_type_struct_timespec=yes
28915else
28916 echo "$as_me: failed program was:" >&5
28917sed 's/^/| /' conftest.$ac_ext >&5
28918
28919 ac_cv_type_struct_timespec=no
28920fi
28921
28922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28923fi
28924{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
28925echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
28926if test $ac_cv_type_struct_timespec = yes; then
28927
28928cat >>confdefs.h <<_ACEOF
28929#define HAVE_STRUCT_TIMESPEC 1
28930_ACEOF
28931
28932
28933fi
28934
28935
28936# We need int64_t or else certian parts of the compile will fail.
28937if test "x$ac_cv_have_int64_t" = "xno" && \
28938 test "x$ac_cv_sizeof_long_int" != "x8" && \
28939 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
28940 echo "OpenSSH requires int64_t support. Contact your vendor or install"
28941 echo "an alternative compiler (I.E., GCC) before continuing."
28942 echo ""
28943 exit 1;
28944else
28945 if test "$cross_compiling" = yes; then
28946 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
28947echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
28948
28949else
28950 cat >conftest.$ac_ext <<_ACEOF
28951/* confdefs.h. */
28952_ACEOF
28953cat confdefs.h >>conftest.$ac_ext
28954cat >>conftest.$ac_ext <<_ACEOF
28955/* end confdefs.h. */
28956
28957#include <stdio.h>
28958#include <string.h>
28959#ifdef HAVE_SNPRINTF
28960main()
28961{
28962 char buf[50];
28963 char expected_out[50];
28964 int mazsize = 50 ;
28965#if (SIZEOF_LONG_INT == 8)
28966 long int num = 0x7fffffffffffffff;
28967#else
28968 long long num = 0x7fffffffffffffffll;
28969#endif
28970 strcpy(expected_out, "9223372036854775807");
28971 snprintf(buf, mazsize, "%lld", num);
28972 if(strcmp(buf, expected_out) != 0)
28973 exit(1);
28974 exit(0);
28975}
28976#else
28977main() { exit(0); }
28978#endif
28979
28980_ACEOF
28981rm -f conftest$ac_exeext
28982if { (ac_try="$ac_link"
28983case "(($ac_try" in
28984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28985 *) ac_try_echo=$ac_try;;
28986esac
28987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28988 (eval "$ac_link") 2>&5
28989 ac_status=$?
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28992 { (case "(($ac_try" in
28993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28994 *) ac_try_echo=$ac_try;;
28995esac
28996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28997 (eval "$ac_try") 2>&5
28998 ac_status=$?
28999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000 (exit $ac_status); }; }; then
29001 true
29002else
29003 echo "$as_me: program exited with status $ac_status" >&5
29004echo "$as_me: failed program was:" >&5
29005sed 's/^/| /' conftest.$ac_ext >&5
29006
29007( exit $ac_status )
29008 cat >>confdefs.h <<\_ACEOF
29009#define BROKEN_SNPRINTF 1
29010_ACEOF
29011
29012fi
29013rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29014fi
29015
29016
29017fi
29018
29019
29020# look for field 'ut_host' in header 'utmp.h'
29021 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29022 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
29023 { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
29024echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
29025 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29026 echo $ECHO_N "(cached) $ECHO_C" >&6
29027else
29028
29029 cat >conftest.$ac_ext <<_ACEOF
29030/* confdefs.h. */
29031_ACEOF
29032cat confdefs.h >>conftest.$ac_ext
29033cat >>conftest.$ac_ext <<_ACEOF
29034/* end confdefs.h. */
29035#include <utmp.h>
29036
29037_ACEOF
29038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29039 $EGREP "ut_host" >/dev/null 2>&1; then
29040 eval "$ossh_varname=yes"
29041else
29042 eval "$ossh_varname=no"
29043fi
29044rm -f conftest*
29045
29046fi
29047
29048 ossh_result=`eval 'echo $'"$ossh_varname"`
29049 if test -n "`echo $ossh_varname`"; then
29050 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29051echo "${ECHO_T}$ossh_result" >&6; }
29052 if test "x$ossh_result" = "xyes"; then
29053
29054cat >>confdefs.h <<\_ACEOF
29055#define HAVE_HOST_IN_UTMP 1
29056_ACEOF
29057
29058 fi
29059 else
29060 { echo "$as_me:$LINENO: result: no" >&5
29061echo "${ECHO_T}no" >&6; }
29062 fi
29063
29064
29065# look for field 'ut_host' in header 'utmpx.h'
29066 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29067 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
29068 { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
29069echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
29070 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29071 echo $ECHO_N "(cached) $ECHO_C" >&6
29072else
29073
29074 cat >conftest.$ac_ext <<_ACEOF
29075/* confdefs.h. */
29076_ACEOF
29077cat confdefs.h >>conftest.$ac_ext
29078cat >>conftest.$ac_ext <<_ACEOF
29079/* end confdefs.h. */
29080#include <utmpx.h>
29081
29082_ACEOF
29083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29084 $EGREP "ut_host" >/dev/null 2>&1; then
29085 eval "$ossh_varname=yes"
29086else
29087 eval "$ossh_varname=no"
29088fi
29089rm -f conftest*
29090
29091fi
29092
29093 ossh_result=`eval 'echo $'"$ossh_varname"`
29094 if test -n "`echo $ossh_varname`"; then
29095 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29096echo "${ECHO_T}$ossh_result" >&6; }
29097 if test "x$ossh_result" = "xyes"; then
29098
29099cat >>confdefs.h <<\_ACEOF
29100#define HAVE_HOST_IN_UTMPX 1
29101_ACEOF
29102
29103 fi
29104 else
29105 { echo "$as_me:$LINENO: result: no" >&5
29106echo "${ECHO_T}no" >&6; }
29107 fi
29108
29109
29110# look for field 'syslen' in header 'utmpx.h'
29111 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29112 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
29113 { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
29114echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
29115 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29116 echo $ECHO_N "(cached) $ECHO_C" >&6
29117else
29118
29119 cat >conftest.$ac_ext <<_ACEOF
29120/* confdefs.h. */
29121_ACEOF
29122cat confdefs.h >>conftest.$ac_ext
29123cat >>conftest.$ac_ext <<_ACEOF
29124/* end confdefs.h. */
29125#include <utmpx.h>
29126
29127_ACEOF
29128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29129 $EGREP "syslen" >/dev/null 2>&1; then
29130 eval "$ossh_varname=yes"
29131else
29132 eval "$ossh_varname=no"
29133fi
29134rm -f conftest*
29135
29136fi
29137
29138 ossh_result=`eval 'echo $'"$ossh_varname"`
29139 if test -n "`echo $ossh_varname`"; then
29140 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29141echo "${ECHO_T}$ossh_result" >&6; }
29142 if test "x$ossh_result" = "xyes"; then
29143
29144cat >>confdefs.h <<\_ACEOF
29145#define HAVE_SYSLEN_IN_UTMPX 1
29146_ACEOF
29147
29148 fi
29149 else
29150 { echo "$as_me:$LINENO: result: no" >&5
29151echo "${ECHO_T}no" >&6; }
29152 fi
29153
29154
29155# look for field 'ut_pid' in header 'utmp.h'
29156 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29157 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
29158 { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
29159echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
29160 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29161 echo $ECHO_N "(cached) $ECHO_C" >&6
29162else
29163
29164 cat >conftest.$ac_ext <<_ACEOF
29165/* confdefs.h. */
29166_ACEOF
29167cat confdefs.h >>conftest.$ac_ext
29168cat >>conftest.$ac_ext <<_ACEOF
29169/* end confdefs.h. */
29170#include <utmp.h>
29171
29172_ACEOF
29173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29174 $EGREP "ut_pid" >/dev/null 2>&1; then
29175 eval "$ossh_varname=yes"
29176else
29177 eval "$ossh_varname=no"
29178fi
29179rm -f conftest*
29180
29181fi
29182
29183 ossh_result=`eval 'echo $'"$ossh_varname"`
29184 if test -n "`echo $ossh_varname`"; then
29185 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29186echo "${ECHO_T}$ossh_result" >&6; }
29187 if test "x$ossh_result" = "xyes"; then
29188
29189cat >>confdefs.h <<\_ACEOF
29190#define HAVE_PID_IN_UTMP 1
29191_ACEOF
29192
29193 fi
29194 else
29195 { echo "$as_me:$LINENO: result: no" >&5
29196echo "${ECHO_T}no" >&6; }
29197 fi
29198
29199
29200# look for field 'ut_type' in header 'utmp.h'
29201 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29202 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
29203 { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
29204echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
29205 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29206 echo $ECHO_N "(cached) $ECHO_C" >&6
29207else
29208
29209 cat >conftest.$ac_ext <<_ACEOF
29210/* confdefs.h. */
29211_ACEOF
29212cat confdefs.h >>conftest.$ac_ext
29213cat >>conftest.$ac_ext <<_ACEOF
29214/* end confdefs.h. */
29215#include <utmp.h>
29216
29217_ACEOF
29218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29219 $EGREP "ut_type" >/dev/null 2>&1; then
29220 eval "$ossh_varname=yes"
29221else
29222 eval "$ossh_varname=no"
29223fi
29224rm -f conftest*
29225
29226fi
29227
29228 ossh_result=`eval 'echo $'"$ossh_varname"`
29229 if test -n "`echo $ossh_varname`"; then
29230 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29231echo "${ECHO_T}$ossh_result" >&6; }
29232 if test "x$ossh_result" = "xyes"; then
29233
29234cat >>confdefs.h <<\_ACEOF
29235#define HAVE_TYPE_IN_UTMP 1
29236_ACEOF
29237
29238 fi
29239 else
29240 { echo "$as_me:$LINENO: result: no" >&5
29241echo "${ECHO_T}no" >&6; }
29242 fi
29243
29244
29245# look for field 'ut_type' in header 'utmpx.h'
29246 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29247 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
29248 { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
29249echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
29250 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29251 echo $ECHO_N "(cached) $ECHO_C" >&6
29252else
29253
29254 cat >conftest.$ac_ext <<_ACEOF
29255/* confdefs.h. */
29256_ACEOF
29257cat confdefs.h >>conftest.$ac_ext
29258cat >>conftest.$ac_ext <<_ACEOF
29259/* end confdefs.h. */
29260#include <utmpx.h>
29261
29262_ACEOF
29263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29264 $EGREP "ut_type" >/dev/null 2>&1; then
29265 eval "$ossh_varname=yes"
29266else
29267 eval "$ossh_varname=no"
29268fi
29269rm -f conftest*
29270
29271fi
29272
29273 ossh_result=`eval 'echo $'"$ossh_varname"`
29274 if test -n "`echo $ossh_varname`"; then
29275 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29276echo "${ECHO_T}$ossh_result" >&6; }
29277 if test "x$ossh_result" = "xyes"; then
29278
29279cat >>confdefs.h <<\_ACEOF
29280#define HAVE_TYPE_IN_UTMPX 1
29281_ACEOF
29282
29283 fi
29284 else
29285 { echo "$as_me:$LINENO: result: no" >&5
29286echo "${ECHO_T}no" >&6; }
29287 fi
29288
29289
29290# look for field 'ut_tv' in header 'utmp.h'
29291 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29292 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
29293 { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
29294echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
29295 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29296 echo $ECHO_N "(cached) $ECHO_C" >&6
29297else
29298
29299 cat >conftest.$ac_ext <<_ACEOF
29300/* confdefs.h. */
29301_ACEOF
29302cat confdefs.h >>conftest.$ac_ext
29303cat >>conftest.$ac_ext <<_ACEOF
29304/* end confdefs.h. */
29305#include <utmp.h>
29306
29307_ACEOF
29308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29309 $EGREP "ut_tv" >/dev/null 2>&1; then
29310 eval "$ossh_varname=yes"
29311else
29312 eval "$ossh_varname=no"
29313fi
29314rm -f conftest*
29315
29316fi
29317
29318 ossh_result=`eval 'echo $'"$ossh_varname"`
29319 if test -n "`echo $ossh_varname`"; then
29320 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29321echo "${ECHO_T}$ossh_result" >&6; }
29322 if test "x$ossh_result" = "xyes"; then
29323
29324cat >>confdefs.h <<\_ACEOF
29325#define HAVE_TV_IN_UTMP 1
29326_ACEOF
29327
29328 fi
29329 else
29330 { echo "$as_me:$LINENO: result: no" >&5
29331echo "${ECHO_T}no" >&6; }
29332 fi
29333
29334
29335# look for field 'ut_id' in header 'utmp.h'
29336 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29337 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
29338 { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
29339echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
29340 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29341 echo $ECHO_N "(cached) $ECHO_C" >&6
29342else
29343
29344 cat >conftest.$ac_ext <<_ACEOF
29345/* confdefs.h. */
29346_ACEOF
29347cat confdefs.h >>conftest.$ac_ext
29348cat >>conftest.$ac_ext <<_ACEOF
29349/* end confdefs.h. */
29350#include <utmp.h>
29351
29352_ACEOF
29353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29354 $EGREP "ut_id" >/dev/null 2>&1; then
29355 eval "$ossh_varname=yes"
29356else
29357 eval "$ossh_varname=no"
29358fi
29359rm -f conftest*
29360
29361fi
29362
29363 ossh_result=`eval 'echo $'"$ossh_varname"`
29364 if test -n "`echo $ossh_varname`"; then
29365 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29366echo "${ECHO_T}$ossh_result" >&6; }
29367 if test "x$ossh_result" = "xyes"; then
29368
29369cat >>confdefs.h <<\_ACEOF
29370#define HAVE_ID_IN_UTMP 1
29371_ACEOF
29372
29373 fi
29374 else
29375 { echo "$as_me:$LINENO: result: no" >&5
29376echo "${ECHO_T}no" >&6; }
29377 fi
29378
29379
29380# look for field 'ut_id' in header 'utmpx.h'
29381 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29382 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
29383 { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
29384echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
29385 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29386 echo $ECHO_N "(cached) $ECHO_C" >&6
29387else
29388
29389 cat >conftest.$ac_ext <<_ACEOF
29390/* confdefs.h. */
29391_ACEOF
29392cat confdefs.h >>conftest.$ac_ext
29393cat >>conftest.$ac_ext <<_ACEOF
29394/* end confdefs.h. */
29395#include <utmpx.h>
29396
29397_ACEOF
29398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29399 $EGREP "ut_id" >/dev/null 2>&1; then
29400 eval "$ossh_varname=yes"
29401else
29402 eval "$ossh_varname=no"
29403fi
29404rm -f conftest*
29405
29406fi
29407
29408 ossh_result=`eval 'echo $'"$ossh_varname"`
29409 if test -n "`echo $ossh_varname`"; then
29410 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29411echo "${ECHO_T}$ossh_result" >&6; }
29412 if test "x$ossh_result" = "xyes"; then
29413
29414cat >>confdefs.h <<\_ACEOF
29415#define HAVE_ID_IN_UTMPX 1
29416_ACEOF
29417
29418 fi
29419 else
29420 { echo "$as_me:$LINENO: result: no" >&5
29421echo "${ECHO_T}no" >&6; }
29422 fi
29423
29424
29425# look for field 'ut_addr' in header 'utmp.h'
29426 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29427 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
29428 { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
29429echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
29430 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29431 echo $ECHO_N "(cached) $ECHO_C" >&6
29432else
29433
29434 cat >conftest.$ac_ext <<_ACEOF
29435/* confdefs.h. */
29436_ACEOF
29437cat confdefs.h >>conftest.$ac_ext
29438cat >>conftest.$ac_ext <<_ACEOF
29439/* end confdefs.h. */
29440#include <utmp.h>
29441
29442_ACEOF
29443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29444 $EGREP "ut_addr" >/dev/null 2>&1; then
29445 eval "$ossh_varname=yes"
29446else
29447 eval "$ossh_varname=no"
29448fi
29449rm -f conftest*
29450
29451fi
29452
29453 ossh_result=`eval 'echo $'"$ossh_varname"`
29454 if test -n "`echo $ossh_varname`"; then
29455 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29456echo "${ECHO_T}$ossh_result" >&6; }
29457 if test "x$ossh_result" = "xyes"; then
29458
29459cat >>confdefs.h <<\_ACEOF
29460#define HAVE_ADDR_IN_UTMP 1
29461_ACEOF
29462
29463 fi
29464 else
29465 { echo "$as_me:$LINENO: result: no" >&5
29466echo "${ECHO_T}no" >&6; }
29467 fi
29468
29469
29470# look for field 'ut_addr' in header 'utmpx.h'
29471 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29472 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
29473 { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
29474echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
29475 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29476 echo $ECHO_N "(cached) $ECHO_C" >&6
29477else
29478
29479 cat >conftest.$ac_ext <<_ACEOF
29480/* confdefs.h. */
29481_ACEOF
29482cat confdefs.h >>conftest.$ac_ext
29483cat >>conftest.$ac_ext <<_ACEOF
29484/* end confdefs.h. */
29485#include <utmpx.h>
29486
29487_ACEOF
29488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29489 $EGREP "ut_addr" >/dev/null 2>&1; then
29490 eval "$ossh_varname=yes"
29491else
29492 eval "$ossh_varname=no"
29493fi
29494rm -f conftest*
29495
29496fi
29497
29498 ossh_result=`eval 'echo $'"$ossh_varname"`
29499 if test -n "`echo $ossh_varname`"; then
29500 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29501echo "${ECHO_T}$ossh_result" >&6; }
29502 if test "x$ossh_result" = "xyes"; then
29503
29504cat >>confdefs.h <<\_ACEOF
29505#define HAVE_ADDR_IN_UTMPX 1
29506_ACEOF
29507
29508 fi
29509 else
29510 { echo "$as_me:$LINENO: result: no" >&5
29511echo "${ECHO_T}no" >&6; }
29512 fi
29513
29514
29515# look for field 'ut_addr_v6' in header 'utmp.h'
29516 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29517 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
29518 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
29519echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
29520 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29521 echo $ECHO_N "(cached) $ECHO_C" >&6
29522else
29523
29524 cat >conftest.$ac_ext <<_ACEOF
29525/* confdefs.h. */
29526_ACEOF
29527cat confdefs.h >>conftest.$ac_ext
29528cat >>conftest.$ac_ext <<_ACEOF
29529/* end confdefs.h. */
29530#include <utmp.h>
29531
29532_ACEOF
29533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29534 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
29535 eval "$ossh_varname=yes"
29536else
29537 eval "$ossh_varname=no"
29538fi
29539rm -f conftest*
29540
29541fi
29542
29543 ossh_result=`eval 'echo $'"$ossh_varname"`
29544 if test -n "`echo $ossh_varname`"; then
29545 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29546echo "${ECHO_T}$ossh_result" >&6; }
29547 if test "x$ossh_result" = "xyes"; then
29548
29549cat >>confdefs.h <<\_ACEOF
29550#define HAVE_ADDR_V6_IN_UTMP 1
29551_ACEOF
29552
29553 fi
29554 else
29555 { echo "$as_me:$LINENO: result: no" >&5
29556echo "${ECHO_T}no" >&6; }
29557 fi
29558
29559
29560# look for field 'ut_addr_v6' in header 'utmpx.h'
29561 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29562 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
29563 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
29564echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
29565 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29566 echo $ECHO_N "(cached) $ECHO_C" >&6
29567else
29568
29569 cat >conftest.$ac_ext <<_ACEOF
29570/* confdefs.h. */
29571_ACEOF
29572cat confdefs.h >>conftest.$ac_ext
29573cat >>conftest.$ac_ext <<_ACEOF
29574/* end confdefs.h. */
29575#include <utmpx.h>
29576
29577_ACEOF
29578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29579 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
29580 eval "$ossh_varname=yes"
29581else
29582 eval "$ossh_varname=no"
29583fi
29584rm -f conftest*
29585
29586fi
29587
29588 ossh_result=`eval 'echo $'"$ossh_varname"`
29589 if test -n "`echo $ossh_varname`"; then
29590 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29591echo "${ECHO_T}$ossh_result" >&6; }
29592 if test "x$ossh_result" = "xyes"; then
29593
29594cat >>confdefs.h <<\_ACEOF
29595#define HAVE_ADDR_V6_IN_UTMPX 1
29596_ACEOF
29597
29598 fi
29599 else
29600 { echo "$as_me:$LINENO: result: no" >&5
29601echo "${ECHO_T}no" >&6; }
29602 fi
29603
29604
29605# look for field 'ut_exit' in header 'utmp.h'
29606 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29607 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
29608 { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
29609echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
29610 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29611 echo $ECHO_N "(cached) $ECHO_C" >&6
29612else
29613
29614 cat >conftest.$ac_ext <<_ACEOF
29615/* confdefs.h. */
29616_ACEOF
29617cat confdefs.h >>conftest.$ac_ext
29618cat >>conftest.$ac_ext <<_ACEOF
29619/* end confdefs.h. */
29620#include <utmp.h>
29621
29622_ACEOF
29623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29624 $EGREP "ut_exit" >/dev/null 2>&1; then
29625 eval "$ossh_varname=yes"
29626else
29627 eval "$ossh_varname=no"
29628fi
29629rm -f conftest*
29630
29631fi
29632
29633 ossh_result=`eval 'echo $'"$ossh_varname"`
29634 if test -n "`echo $ossh_varname`"; then
29635 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29636echo "${ECHO_T}$ossh_result" >&6; }
29637 if test "x$ossh_result" = "xyes"; then
29638
29639cat >>confdefs.h <<\_ACEOF
29640#define HAVE_EXIT_IN_UTMP 1
29641_ACEOF
29642
29643 fi
29644 else
29645 { echo "$as_me:$LINENO: result: no" >&5
29646echo "${ECHO_T}no" >&6; }
29647 fi
29648
29649
29650# look for field 'ut_time' in header 'utmp.h'
29651 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29652 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
29653 { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
29654echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
29655 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29656 echo $ECHO_N "(cached) $ECHO_C" >&6
29657else
29658
29659 cat >conftest.$ac_ext <<_ACEOF
29660/* confdefs.h. */
29661_ACEOF
29662cat confdefs.h >>conftest.$ac_ext
29663cat >>conftest.$ac_ext <<_ACEOF
29664/* end confdefs.h. */
29665#include <utmp.h>
29666
29667_ACEOF
29668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29669 $EGREP "ut_time" >/dev/null 2>&1; then
29670 eval "$ossh_varname=yes"
29671else
29672 eval "$ossh_varname=no"
29673fi
29674rm -f conftest*
29675
29676fi
29677
29678 ossh_result=`eval 'echo $'"$ossh_varname"`
29679 if test -n "`echo $ossh_varname`"; then
29680 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29681echo "${ECHO_T}$ossh_result" >&6; }
29682 if test "x$ossh_result" = "xyes"; then
29683
29684cat >>confdefs.h <<\_ACEOF
29685#define HAVE_TIME_IN_UTMP 1
29686_ACEOF
29687
29688 fi
29689 else
29690 { echo "$as_me:$LINENO: result: no" >&5
29691echo "${ECHO_T}no" >&6; }
29692 fi
29693
29694
29695# look for field 'ut_time' in header 'utmpx.h'
29696 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29697 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
29698 { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
29699echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
29700 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29701 echo $ECHO_N "(cached) $ECHO_C" >&6
29702else
29703
29704 cat >conftest.$ac_ext <<_ACEOF
29705/* confdefs.h. */
29706_ACEOF
29707cat confdefs.h >>conftest.$ac_ext
29708cat >>conftest.$ac_ext <<_ACEOF
29709/* end confdefs.h. */
29710#include <utmpx.h>
29711
29712_ACEOF
29713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29714 $EGREP "ut_time" >/dev/null 2>&1; then
29715 eval "$ossh_varname=yes"
29716else
29717 eval "$ossh_varname=no"
29718fi
29719rm -f conftest*
29720
29721fi
29722
29723 ossh_result=`eval 'echo $'"$ossh_varname"`
29724 if test -n "`echo $ossh_varname`"; then
29725 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29726echo "${ECHO_T}$ossh_result" >&6; }
29727 if test "x$ossh_result" = "xyes"; then
29728
29729cat >>confdefs.h <<\_ACEOF
29730#define HAVE_TIME_IN_UTMPX 1
29731_ACEOF
29732
29733 fi
29734 else
29735 { echo "$as_me:$LINENO: result: no" >&5
29736echo "${ECHO_T}no" >&6; }
29737 fi
29738
29739
29740# look for field 'ut_tv' in header 'utmpx.h'
29741 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29742 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
29743 { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
29744echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
29745 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29746 echo $ECHO_N "(cached) $ECHO_C" >&6
29747else
29748
29749 cat >conftest.$ac_ext <<_ACEOF
29750/* confdefs.h. */
29751_ACEOF
29752cat confdefs.h >>conftest.$ac_ext
29753cat >>conftest.$ac_ext <<_ACEOF
29754/* end confdefs.h. */
29755#include <utmpx.h>
29756
29757_ACEOF
29758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29759 $EGREP "ut_tv" >/dev/null 2>&1; then
29760 eval "$ossh_varname=yes"
29761else
29762 eval "$ossh_varname=no"
29763fi
29764rm -f conftest*
29765
29766fi
29767
29768 ossh_result=`eval 'echo $'"$ossh_varname"`
29769 if test -n "`echo $ossh_varname`"; then
29770 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29771echo "${ECHO_T}$ossh_result" >&6; }
29772 if test "x$ossh_result" = "xyes"; then
29773
29774cat >>confdefs.h <<\_ACEOF
29775#define HAVE_TV_IN_UTMPX 1
29776_ACEOF
29777
29778 fi
29779 else
29780 { echo "$as_me:$LINENO: result: no" >&5
29781echo "${ECHO_T}no" >&6; }
29782 fi
29783
29784
29785{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
29786echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
29787if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
29788 echo $ECHO_N "(cached) $ECHO_C" >&6
29789else
29790 cat >conftest.$ac_ext <<_ACEOF
29791/* confdefs.h. */
29792_ACEOF
29793cat confdefs.h >>conftest.$ac_ext
29794cat >>conftest.$ac_ext <<_ACEOF
29795/* end confdefs.h. */
29796$ac_includes_default
29797int
29798main ()
29799{
29800static struct stat ac_aggr;
29801if (ac_aggr.st_blksize)
29802return 0;
29803 ;
29804 return 0;
29805}
29806_ACEOF
29807rm -f conftest.$ac_objext
29808if { (ac_try="$ac_compile"
29809case "(($ac_try" in
29810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29811 *) ac_try_echo=$ac_try;;
29812esac
29813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29814 (eval "$ac_compile") 2>conftest.er1
29815 ac_status=$?
29816 grep -v '^ *+' conftest.er1 >conftest.err
29817 rm -f conftest.er1
29818 cat conftest.err >&5
29819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820 (exit $ac_status); } && {
29821 test -z "$ac_c_werror_flag" ||
29822 test ! -s conftest.err
29823 } && test -s conftest.$ac_objext; then
29824 ac_cv_member_struct_stat_st_blksize=yes
29825else
29826 echo "$as_me: failed program was:" >&5
29827sed 's/^/| /' conftest.$ac_ext >&5
29828
29829 cat >conftest.$ac_ext <<_ACEOF
29830/* confdefs.h. */
29831_ACEOF
29832cat confdefs.h >>conftest.$ac_ext
29833cat >>conftest.$ac_ext <<_ACEOF
29834/* end confdefs.h. */
29835$ac_includes_default
29836int
29837main ()
29838{
29839static struct stat ac_aggr;
29840if (sizeof ac_aggr.st_blksize)
29841return 0;
29842 ;
29843 return 0;
29844}
29845_ACEOF
29846rm -f conftest.$ac_objext
29847if { (ac_try="$ac_compile"
29848case "(($ac_try" in
29849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29850 *) ac_try_echo=$ac_try;;
29851esac
29852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29853 (eval "$ac_compile") 2>conftest.er1
29854 ac_status=$?
29855 grep -v '^ *+' conftest.er1 >conftest.err
29856 rm -f conftest.er1
29857 cat conftest.err >&5
29858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 (exit $ac_status); } && {
29860 test -z "$ac_c_werror_flag" ||
29861 test ! -s conftest.err
29862 } && test -s conftest.$ac_objext; then
29863 ac_cv_member_struct_stat_st_blksize=yes
29864else
29865 echo "$as_me: failed program was:" >&5
29866sed 's/^/| /' conftest.$ac_ext >&5
29867
29868 ac_cv_member_struct_stat_st_blksize=no
29869fi
29870
29871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29872fi
29873
29874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29875fi
29876{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
29877echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
29878if test $ac_cv_member_struct_stat_st_blksize = yes; then
29879
29880cat >>confdefs.h <<_ACEOF
29881#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
29882_ACEOF
29883
29884
29885fi
29886
29887{ echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
29888echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
29889if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
29890 echo $ECHO_N "(cached) $ECHO_C" >&6
29891else
29892 cat >conftest.$ac_ext <<_ACEOF
29893/* confdefs.h. */
29894_ACEOF
29895cat confdefs.h >>conftest.$ac_ext
29896cat >>conftest.$ac_ext <<_ACEOF
29897/* end confdefs.h. */
29898
29899#include <sys/types.h>
29900#include <pwd.h>
29901
29902
29903int
29904main ()
29905{
29906static struct passwd ac_aggr;
29907if (ac_aggr.pw_gecos)
29908return 0;
29909 ;
29910 return 0;
29911}
29912_ACEOF
29913rm -f conftest.$ac_objext
29914if { (ac_try="$ac_compile"
29915case "(($ac_try" in
29916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29917 *) ac_try_echo=$ac_try;;
29918esac
29919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29920 (eval "$ac_compile") 2>conftest.er1
29921 ac_status=$?
29922 grep -v '^ *+' conftest.er1 >conftest.err
29923 rm -f conftest.er1
29924 cat conftest.err >&5
29925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29926 (exit $ac_status); } && {
29927 test -z "$ac_c_werror_flag" ||
29928 test ! -s conftest.err
29929 } && test -s conftest.$ac_objext; then
29930 ac_cv_member_struct_passwd_pw_gecos=yes
29931else
29932 echo "$as_me: failed program was:" >&5
29933sed 's/^/| /' conftest.$ac_ext >&5
29934
29935 cat >conftest.$ac_ext <<_ACEOF
29936/* confdefs.h. */
29937_ACEOF
29938cat confdefs.h >>conftest.$ac_ext
29939cat >>conftest.$ac_ext <<_ACEOF
29940/* end confdefs.h. */
29941
29942#include <sys/types.h>
29943#include <pwd.h>
29944
29945
29946int
29947main ()
29948{
29949static struct passwd ac_aggr;
29950if (sizeof ac_aggr.pw_gecos)
29951return 0;
29952 ;
29953 return 0;
29954}
29955_ACEOF
29956rm -f conftest.$ac_objext
29957if { (ac_try="$ac_compile"
29958case "(($ac_try" in
29959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29960 *) ac_try_echo=$ac_try;;
29961esac
29962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29963 (eval "$ac_compile") 2>conftest.er1
29964 ac_status=$?
29965 grep -v '^ *+' conftest.er1 >conftest.err
29966 rm -f conftest.er1
29967 cat conftest.err >&5
29968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969 (exit $ac_status); } && {
29970 test -z "$ac_c_werror_flag" ||
29971 test ! -s conftest.err
29972 } && test -s conftest.$ac_objext; then
29973 ac_cv_member_struct_passwd_pw_gecos=yes
29974else
29975 echo "$as_me: failed program was:" >&5
29976sed 's/^/| /' conftest.$ac_ext >&5
29977
29978 ac_cv_member_struct_passwd_pw_gecos=no
29979fi
29980
29981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29982fi
29983
29984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29985fi
29986{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
29987echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
29988if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
29989
29990cat >>confdefs.h <<_ACEOF
29991#define HAVE_STRUCT_PASSWD_PW_GECOS 1
29992_ACEOF
29993
29994
29995fi
29996{ echo "$as_me:$LINENO: checking for struct passwd.pw_class" >&5
29997echo $ECHO_N "checking for struct passwd.pw_class... $ECHO_C" >&6; }
29998if test "${ac_cv_member_struct_passwd_pw_class+set}" = set; then
29999 echo $ECHO_N "(cached) $ECHO_C" >&6
30000else
30001 cat >conftest.$ac_ext <<_ACEOF
30002/* confdefs.h. */
30003_ACEOF
30004cat confdefs.h >>conftest.$ac_ext
30005cat >>conftest.$ac_ext <<_ACEOF
30006/* end confdefs.h. */
30007
30008#include <sys/types.h>
30009#include <pwd.h>
30010
30011
30012int
30013main ()
30014{
30015static struct passwd ac_aggr;
30016if (ac_aggr.pw_class)
30017return 0;
30018 ;
30019 return 0;
30020}
30021_ACEOF
30022rm -f conftest.$ac_objext
30023if { (ac_try="$ac_compile"
30024case "(($ac_try" in
30025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30026 *) ac_try_echo=$ac_try;;
30027esac
30028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30029 (eval "$ac_compile") 2>conftest.er1
30030 ac_status=$?
30031 grep -v '^ *+' conftest.er1 >conftest.err
30032 rm -f conftest.er1
30033 cat conftest.err >&5
30034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035 (exit $ac_status); } && {
30036 test -z "$ac_c_werror_flag" ||
30037 test ! -s conftest.err
30038 } && test -s conftest.$ac_objext; then
30039 ac_cv_member_struct_passwd_pw_class=yes
30040else
30041 echo "$as_me: failed program was:" >&5
30042sed 's/^/| /' conftest.$ac_ext >&5
30043
30044 cat >conftest.$ac_ext <<_ACEOF
30045/* confdefs.h. */
30046_ACEOF
30047cat confdefs.h >>conftest.$ac_ext
30048cat >>conftest.$ac_ext <<_ACEOF
30049/* end confdefs.h. */
30050
30051#include <sys/types.h>
30052#include <pwd.h>
30053
30054
30055int
30056main ()
30057{
30058static struct passwd ac_aggr;
30059if (sizeof ac_aggr.pw_class)
30060return 0;
30061 ;
30062 return 0;
30063}
30064_ACEOF
30065rm -f conftest.$ac_objext
30066if { (ac_try="$ac_compile"
30067case "(($ac_try" in
30068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30069 *) ac_try_echo=$ac_try;;
30070esac
30071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30072 (eval "$ac_compile") 2>conftest.er1
30073 ac_status=$?
30074 grep -v '^ *+' conftest.er1 >conftest.err
30075 rm -f conftest.er1
30076 cat conftest.err >&5
30077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078 (exit $ac_status); } && {
30079 test -z "$ac_c_werror_flag" ||
30080 test ! -s conftest.err
30081 } && test -s conftest.$ac_objext; then
30082 ac_cv_member_struct_passwd_pw_class=yes
30083else
30084 echo "$as_me: failed program was:" >&5
30085sed 's/^/| /' conftest.$ac_ext >&5
30086
30087 ac_cv_member_struct_passwd_pw_class=no
30088fi
30089
30090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30091fi
30092
30093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30094fi
30095{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_class" >&5
30096echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_class" >&6; }
30097if test $ac_cv_member_struct_passwd_pw_class = yes; then
30098
30099cat >>confdefs.h <<_ACEOF
30100#define HAVE_STRUCT_PASSWD_PW_CLASS 1
30101_ACEOF
30102
30103
30104fi
30105{ echo "$as_me:$LINENO: checking for struct passwd.pw_change" >&5
30106echo $ECHO_N "checking for struct passwd.pw_change... $ECHO_C" >&6; }
30107if test "${ac_cv_member_struct_passwd_pw_change+set}" = set; then
30108 echo $ECHO_N "(cached) $ECHO_C" >&6
30109else
30110 cat >conftest.$ac_ext <<_ACEOF
30111/* confdefs.h. */
30112_ACEOF
30113cat confdefs.h >>conftest.$ac_ext
30114cat >>conftest.$ac_ext <<_ACEOF
30115/* end confdefs.h. */
30116
30117#include <sys/types.h>
30118#include <pwd.h>
30119
30120
30121int
30122main ()
30123{
30124static struct passwd ac_aggr;
30125if (ac_aggr.pw_change)
30126return 0;
30127 ;
30128 return 0;
30129}
30130_ACEOF
30131rm -f conftest.$ac_objext
30132if { (ac_try="$ac_compile"
30133case "(($ac_try" in
30134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30135 *) ac_try_echo=$ac_try;;
30136esac
30137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30138 (eval "$ac_compile") 2>conftest.er1
30139 ac_status=$?
30140 grep -v '^ *+' conftest.er1 >conftest.err
30141 rm -f conftest.er1
30142 cat conftest.err >&5
30143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144 (exit $ac_status); } && {
30145 test -z "$ac_c_werror_flag" ||
30146 test ! -s conftest.err
30147 } && test -s conftest.$ac_objext; then
30148 ac_cv_member_struct_passwd_pw_change=yes
30149else
30150 echo "$as_me: failed program was:" >&5
30151sed 's/^/| /' conftest.$ac_ext >&5
30152
30153 cat >conftest.$ac_ext <<_ACEOF
30154/* confdefs.h. */
30155_ACEOF
30156cat confdefs.h >>conftest.$ac_ext
30157cat >>conftest.$ac_ext <<_ACEOF
30158/* end confdefs.h. */
30159
30160#include <sys/types.h>
30161#include <pwd.h>
30162
30163
30164int
30165main ()
30166{
30167static struct passwd ac_aggr;
30168if (sizeof ac_aggr.pw_change)
30169return 0;
30170 ;
30171 return 0;
30172}
30173_ACEOF
30174rm -f conftest.$ac_objext
30175if { (ac_try="$ac_compile"
30176case "(($ac_try" in
30177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30178 *) ac_try_echo=$ac_try;;
30179esac
30180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30181 (eval "$ac_compile") 2>conftest.er1
30182 ac_status=$?
30183 grep -v '^ *+' conftest.er1 >conftest.err
30184 rm -f conftest.er1
30185 cat conftest.err >&5
30186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30187 (exit $ac_status); } && {
30188 test -z "$ac_c_werror_flag" ||
30189 test ! -s conftest.err
30190 } && test -s conftest.$ac_objext; then
30191 ac_cv_member_struct_passwd_pw_change=yes
30192else
30193 echo "$as_me: failed program was:" >&5
30194sed 's/^/| /' conftest.$ac_ext >&5
30195
30196 ac_cv_member_struct_passwd_pw_change=no
30197fi
30198
30199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30200fi
30201
30202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30203fi
30204{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_change" >&5
30205echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_change" >&6; }
30206if test $ac_cv_member_struct_passwd_pw_change = yes; then
30207
30208cat >>confdefs.h <<_ACEOF
30209#define HAVE_STRUCT_PASSWD_PW_CHANGE 1
30210_ACEOF
30211
30212
30213fi
30214{ echo "$as_me:$LINENO: checking for struct passwd.pw_expire" >&5
30215echo $ECHO_N "checking for struct passwd.pw_expire... $ECHO_C" >&6; }
30216if test "${ac_cv_member_struct_passwd_pw_expire+set}" = set; then
30217 echo $ECHO_N "(cached) $ECHO_C" >&6
30218else
30219 cat >conftest.$ac_ext <<_ACEOF
30220/* confdefs.h. */
30221_ACEOF
30222cat confdefs.h >>conftest.$ac_ext
30223cat >>conftest.$ac_ext <<_ACEOF
30224/* end confdefs.h. */
30225
30226#include <sys/types.h>
30227#include <pwd.h>
30228
30229
30230int
30231main ()
30232{
30233static struct passwd ac_aggr;
30234if (ac_aggr.pw_expire)
30235return 0;
30236 ;
30237 return 0;
30238}
30239_ACEOF
30240rm -f conftest.$ac_objext
30241if { (ac_try="$ac_compile"
30242case "(($ac_try" in
30243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30244 *) ac_try_echo=$ac_try;;
30245esac
30246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30247 (eval "$ac_compile") 2>conftest.er1
30248 ac_status=$?
30249 grep -v '^ *+' conftest.er1 >conftest.err
30250 rm -f conftest.er1
30251 cat conftest.err >&5
30252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30253 (exit $ac_status); } && {
30254 test -z "$ac_c_werror_flag" ||
30255 test ! -s conftest.err
30256 } && test -s conftest.$ac_objext; then
30257 ac_cv_member_struct_passwd_pw_expire=yes
30258else
30259 echo "$as_me: failed program was:" >&5
30260sed 's/^/| /' conftest.$ac_ext >&5
30261
30262 cat >conftest.$ac_ext <<_ACEOF
30263/* confdefs.h. */
30264_ACEOF
30265cat confdefs.h >>conftest.$ac_ext
30266cat >>conftest.$ac_ext <<_ACEOF
30267/* end confdefs.h. */
30268
30269#include <sys/types.h>
30270#include <pwd.h>
30271
30272
30273int
30274main ()
30275{
30276static struct passwd ac_aggr;
30277if (sizeof ac_aggr.pw_expire)
30278return 0;
30279 ;
30280 return 0;
30281}
30282_ACEOF
30283rm -f conftest.$ac_objext
30284if { (ac_try="$ac_compile"
30285case "(($ac_try" in
30286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30287 *) ac_try_echo=$ac_try;;
30288esac
30289eval "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_member_struct_passwd_pw_expire=yes
30301else
30302 echo "$as_me: failed program was:" >&5
30303sed 's/^/| /' conftest.$ac_ext >&5
30304
30305 ac_cv_member_struct_passwd_pw_expire=no
30306fi
30307
30308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30309fi
30310
30311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30312fi
30313{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_expire" >&5
30314echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_expire" >&6; }
30315if test $ac_cv_member_struct_passwd_pw_expire = yes; then
30316
30317cat >>confdefs.h <<_ACEOF
30318#define HAVE_STRUCT_PASSWD_PW_EXPIRE 1
30319_ACEOF
30320
30321
30322fi
30323
30324
30325{ echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
30326echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
30327if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
30328 echo $ECHO_N "(cached) $ECHO_C" >&6
30329else
30330 cat >conftest.$ac_ext <<_ACEOF
30331/* confdefs.h. */
30332_ACEOF
30333cat confdefs.h >>conftest.$ac_ext
30334cat >>conftest.$ac_ext <<_ACEOF
30335/* end confdefs.h. */
30336
30337#include <stdio.h>
30338#if HAVE_SYS_TYPES_H
30339# include <sys/types.h>
30340#endif
30341#include <netinet/in.h>
30342#include <arpa/nameser.h>
30343#include <resolv.h>
30344
30345
30346int
30347main ()
30348{
30349static struct __res_state ac_aggr;
30350if (ac_aggr.retrans)
30351return 0;
30352 ;
30353 return 0;
30354}
30355_ACEOF
30356rm -f conftest.$ac_objext
30357if { (ac_try="$ac_compile"
30358case "(($ac_try" in
30359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30360 *) ac_try_echo=$ac_try;;
30361esac
30362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30363 (eval "$ac_compile") 2>conftest.er1
30364 ac_status=$?
30365 grep -v '^ *+' conftest.er1 >conftest.err
30366 rm -f conftest.er1
30367 cat conftest.err >&5
30368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369 (exit $ac_status); } && {
30370 test -z "$ac_c_werror_flag" ||
30371 test ! -s conftest.err
30372 } && test -s conftest.$ac_objext; then
30373 ac_cv_member_struct___res_state_retrans=yes
30374else
30375 echo "$as_me: failed program was:" >&5
30376sed 's/^/| /' conftest.$ac_ext >&5
30377
30378 cat >conftest.$ac_ext <<_ACEOF
30379/* confdefs.h. */
30380_ACEOF
30381cat confdefs.h >>conftest.$ac_ext
30382cat >>conftest.$ac_ext <<_ACEOF
30383/* end confdefs.h. */
30384
30385#include <stdio.h>
30386#if HAVE_SYS_TYPES_H
30387# include <sys/types.h>
30388#endif
30389#include <netinet/in.h>
30390#include <arpa/nameser.h>
30391#include <resolv.h>
30392
30393
30394int
30395main ()
30396{
30397static struct __res_state ac_aggr;
30398if (sizeof ac_aggr.retrans)
30399return 0;
30400 ;
30401 return 0;
30402}
30403_ACEOF
30404rm -f conftest.$ac_objext
30405if { (ac_try="$ac_compile"
30406case "(($ac_try" in
30407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30408 *) ac_try_echo=$ac_try;;
30409esac
30410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30411 (eval "$ac_compile") 2>conftest.er1
30412 ac_status=$?
30413 grep -v '^ *+' conftest.er1 >conftest.err
30414 rm -f conftest.er1
30415 cat conftest.err >&5
30416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417 (exit $ac_status); } && {
30418 test -z "$ac_c_werror_flag" ||
30419 test ! -s conftest.err
30420 } && test -s conftest.$ac_objext; then
30421 ac_cv_member_struct___res_state_retrans=yes
30422else
30423 echo "$as_me: failed program was:" >&5
30424sed 's/^/| /' conftest.$ac_ext >&5
30425
30426 ac_cv_member_struct___res_state_retrans=no
30427fi
30428
30429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30430fi
30431
30432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30433fi
30434{ echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
30435echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
30436if test $ac_cv_member_struct___res_state_retrans = yes; then
30437 :
30438else
30439
30440cat >>confdefs.h <<\_ACEOF
30441#define __res_state state
30442_ACEOF
30443
30444fi
30445
30446
30447{ echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
30448echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
30449if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
30450 echo $ECHO_N "(cached) $ECHO_C" >&6
30451else
30452
30453 cat >conftest.$ac_ext <<_ACEOF
30454/* confdefs.h. */
30455_ACEOF
30456cat confdefs.h >>conftest.$ac_ext
30457cat >>conftest.$ac_ext <<_ACEOF
30458/* end confdefs.h. */
30459
30460#include <sys/types.h>
30461#include <sys/socket.h>
30462
30463int
30464main ()
30465{
30466 struct sockaddr_storage s; s.ss_family = 1;
30467 ;
30468 return 0;
30469}
30470_ACEOF
30471rm -f conftest.$ac_objext
30472if { (ac_try="$ac_compile"
30473case "(($ac_try" in
30474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30475 *) ac_try_echo=$ac_try;;
30476esac
30477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30478 (eval "$ac_compile") 2>conftest.er1
30479 ac_status=$?
30480 grep -v '^ *+' conftest.er1 >conftest.err
30481 rm -f conftest.er1
30482 cat conftest.err >&5
30483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484 (exit $ac_status); } && {
30485 test -z "$ac_c_werror_flag" ||
30486 test ! -s conftest.err
30487 } && test -s conftest.$ac_objext; then
30488 ac_cv_have_ss_family_in_struct_ss="yes"
30489else
30490 echo "$as_me: failed program was:" >&5
30491sed 's/^/| /' conftest.$ac_ext >&5
30492
30493 ac_cv_have_ss_family_in_struct_ss="no"
30494fi
30495
30496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30497
30498fi
30499{ echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
30500echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
30501if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
30502
30503cat >>confdefs.h <<\_ACEOF
30504#define HAVE_SS_FAMILY_IN_SS 1
30505_ACEOF
30506
30507fi
30508
30509{ echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
30510echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
30511if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
30512 echo $ECHO_N "(cached) $ECHO_C" >&6
30513else
30514
30515 cat >conftest.$ac_ext <<_ACEOF
30516/* confdefs.h. */
30517_ACEOF
30518cat confdefs.h >>conftest.$ac_ext
30519cat >>conftest.$ac_ext <<_ACEOF
30520/* end confdefs.h. */
30521
30522#include <sys/types.h>
30523#include <sys/socket.h>
30524
30525int
30526main ()
30527{
30528 struct sockaddr_storage s; s.__ss_family = 1;
30529 ;
30530 return 0;
30531}
30532_ACEOF
30533rm -f conftest.$ac_objext
30534if { (ac_try="$ac_compile"
30535case "(($ac_try" in
30536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30537 *) ac_try_echo=$ac_try;;
30538esac
30539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30540 (eval "$ac_compile") 2>conftest.er1
30541 ac_status=$?
30542 grep -v '^ *+' conftest.er1 >conftest.err
30543 rm -f conftest.er1
30544 cat conftest.err >&5
30545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546 (exit $ac_status); } && {
30547 test -z "$ac_c_werror_flag" ||
30548 test ! -s conftest.err
30549 } && test -s conftest.$ac_objext; then
30550 ac_cv_have___ss_family_in_struct_ss="yes"
30551else
30552 echo "$as_me: failed program was:" >&5
30553sed 's/^/| /' conftest.$ac_ext >&5
30554
30555 ac_cv_have___ss_family_in_struct_ss="no"
30556
30557fi
30558
30559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30560
30561fi
30562{ echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
30563echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
30564if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
30565
30566cat >>confdefs.h <<\_ACEOF
30567#define HAVE___SS_FAMILY_IN_SS 1
30568_ACEOF
30569
30570fi
30571
30572{ echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
30573echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
30574if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
30575 echo $ECHO_N "(cached) $ECHO_C" >&6
30576else
30577
30578 cat >conftest.$ac_ext <<_ACEOF
30579/* confdefs.h. */
30580_ACEOF
30581cat confdefs.h >>conftest.$ac_ext
30582cat >>conftest.$ac_ext <<_ACEOF
30583/* end confdefs.h. */
30584
30585#include <sys/types.h>
30586#include <sys/socket.h>
30587#include <sys/uio.h>
30588
30589int
30590main ()
30591{
30592
30593#ifdef msg_accrights
30594#error "msg_accrights is a macro"
30595exit(1);
30596#endif
30597struct msghdr m;
30598m.msg_accrights = 0;
30599exit(0);
30600
30601 ;
30602 return 0;
30603}
30604_ACEOF
30605rm -f conftest.$ac_objext
30606if { (ac_try="$ac_compile"
30607case "(($ac_try" in
30608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30609 *) ac_try_echo=$ac_try;;
30610esac
30611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30612 (eval "$ac_compile") 2>conftest.er1
30613 ac_status=$?
30614 grep -v '^ *+' conftest.er1 >conftest.err
30615 rm -f conftest.er1
30616 cat conftest.err >&5
30617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618 (exit $ac_status); } && {
30619 test -z "$ac_c_werror_flag" ||
30620 test ! -s conftest.err
30621 } && test -s conftest.$ac_objext; then
30622 ac_cv_have_accrights_in_msghdr="yes"
30623else
30624 echo "$as_me: failed program was:" >&5
30625sed 's/^/| /' conftest.$ac_ext >&5
30626
30627 ac_cv_have_accrights_in_msghdr="no"
30628
30629fi
30630
30631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30632
30633fi
30634{ echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
30635echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
30636if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
30637
30638cat >>confdefs.h <<\_ACEOF
30639#define HAVE_ACCRIGHTS_IN_MSGHDR 1
30640_ACEOF
30641
30642fi
30643
30644{ echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5
30645echo $ECHO_N "checking if struct statvfs.f_fsid is integral type... $ECHO_C" >&6; }
30646cat >conftest.$ac_ext <<_ACEOF
30647/* confdefs.h. */
30648_ACEOF
30649cat confdefs.h >>conftest.$ac_ext
30650cat >>conftest.$ac_ext <<_ACEOF
30651/* end confdefs.h. */
30652
30653#include <sys/param.h>
30654#include <sys/stat.h>
30655#ifdef HAVE_SYS_TIME_H
30656# include <sys/time.h>
30657#endif
30658#ifdef HAVE_SYS_MOUNT_H
30659#include <sys/mount.h>
30660#endif
30661#ifdef HAVE_SYS_STATVFS_H
30662#include <sys/statvfs.h>
30663#endif
30664
30665int
30666main ()
30667{
30668 struct statvfs s; s.f_fsid = 0;
30669 ;
30670 return 0;
30671}
30672_ACEOF
30673rm -f conftest.$ac_objext
30674if { (ac_try="$ac_compile"
30675case "(($ac_try" in
30676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30677 *) ac_try_echo=$ac_try;;
30678esac
30679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30680 (eval "$ac_compile") 2>conftest.er1
30681 ac_status=$?
30682 grep -v '^ *+' conftest.er1 >conftest.err
30683 rm -f conftest.er1
30684 cat conftest.err >&5
30685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686 (exit $ac_status); } && {
30687 test -z "$ac_c_werror_flag" ||
30688 test ! -s conftest.err
30689 } && test -s conftest.$ac_objext; then
30690 { echo "$as_me:$LINENO: result: yes" >&5
30691echo "${ECHO_T}yes" >&6; }
30692else
30693 echo "$as_me: failed program was:" >&5
30694sed 's/^/| /' conftest.$ac_ext >&5
30695
30696 { echo "$as_me:$LINENO: result: no" >&5
30697echo "${ECHO_T}no" >&6; }
30698
30699 { echo "$as_me:$LINENO: checking if fsid_t has member val" >&5
30700echo $ECHO_N "checking if fsid_t has member val... $ECHO_C" >&6; }
30701 cat >conftest.$ac_ext <<_ACEOF
30702/* confdefs.h. */
30703_ACEOF
30704cat confdefs.h >>conftest.$ac_ext
30705cat >>conftest.$ac_ext <<_ACEOF
30706/* end confdefs.h. */
30707
30708#include <sys/types.h>
30709#include <sys/statvfs.h>
30710
30711int
30712main ()
30713{
30714 fsid_t t; t.val[0] = 0;
30715 ;
30716 return 0;
30717}
30718_ACEOF
30719rm -f conftest.$ac_objext
30720if { (ac_try="$ac_compile"
30721case "(($ac_try" in
30722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30723 *) ac_try_echo=$ac_try;;
30724esac
30725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30726 (eval "$ac_compile") 2>conftest.er1
30727 ac_status=$?
30728 grep -v '^ *+' conftest.er1 >conftest.err
30729 rm -f conftest.er1
30730 cat conftest.err >&5
30731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732 (exit $ac_status); } && {
30733 test -z "$ac_c_werror_flag" ||
30734 test ! -s conftest.err
30735 } && test -s conftest.$ac_objext; then
30736 { echo "$as_me:$LINENO: result: yes" >&5
30737echo "${ECHO_T}yes" >&6; }
30738
30739cat >>confdefs.h <<\_ACEOF
30740#define FSID_HAS_VAL 1
30741_ACEOF
30742
30743else
30744 echo "$as_me: failed program was:" >&5
30745sed 's/^/| /' conftest.$ac_ext >&5
30746
30747 { echo "$as_me:$LINENO: result: no" >&5
30748echo "${ECHO_T}no" >&6; }
30749fi
30750
30751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30752
30753 { echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5
30754echo $ECHO_N "checking if f_fsid has member __val... $ECHO_C" >&6; }
30755 cat >conftest.$ac_ext <<_ACEOF
30756/* confdefs.h. */
30757_ACEOF
30758cat confdefs.h >>conftest.$ac_ext
30759cat >>conftest.$ac_ext <<_ACEOF
30760/* end confdefs.h. */
30761
30762#include <sys/types.h>
30763#include <sys/statvfs.h>
30764
30765int
30766main ()
30767{
30768 fsid_t t; t.__val[0] = 0;
30769 ;
30770 return 0;
30771}
30772_ACEOF
30773rm -f conftest.$ac_objext
30774if { (ac_try="$ac_compile"
30775case "(($ac_try" in
30776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30777 *) ac_try_echo=$ac_try;;
30778esac
30779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30780 (eval "$ac_compile") 2>conftest.er1
30781 ac_status=$?
30782 grep -v '^ *+' conftest.er1 >conftest.err
30783 rm -f conftest.er1
30784 cat conftest.err >&5
30785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786 (exit $ac_status); } && {
30787 test -z "$ac_c_werror_flag" ||
30788 test ! -s conftest.err
30789 } && test -s conftest.$ac_objext; then
30790 { echo "$as_me:$LINENO: result: yes" >&5
30791echo "${ECHO_T}yes" >&6; }
30792
30793cat >>confdefs.h <<\_ACEOF
30794#define FSID_HAS___VAL 1
30795_ACEOF
30796
30797else
30798 echo "$as_me: failed program was:" >&5
30799sed 's/^/| /' conftest.$ac_ext >&5
30800
30801 { echo "$as_me:$LINENO: result: no" >&5
30802echo "${ECHO_T}no" >&6; }
30803fi
30804
30805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30806
30807fi
30808
30809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30810
30811{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
30812echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
30813if test "${ac_cv_have_control_in_msghdr+set}" = set; then
30814 echo $ECHO_N "(cached) $ECHO_C" >&6
30815else
30816
30817 cat >conftest.$ac_ext <<_ACEOF
30818/* confdefs.h. */
30819_ACEOF
30820cat confdefs.h >>conftest.$ac_ext
30821cat >>conftest.$ac_ext <<_ACEOF
30822/* end confdefs.h. */
30823
30824#include <sys/types.h>
30825#include <sys/socket.h>
30826#include <sys/uio.h>
30827
30828int
30829main ()
30830{
30831
30832#ifdef msg_control
30833#error "msg_control is a macro"
30834exit(1);
30835#endif
30836struct msghdr m;
30837m.msg_control = 0;
30838exit(0);
30839
30840 ;
30841 return 0;
30842}
30843_ACEOF
30844rm -f conftest.$ac_objext
30845if { (ac_try="$ac_compile"
30846case "(($ac_try" in
30847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30848 *) ac_try_echo=$ac_try;;
30849esac
30850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30851 (eval "$ac_compile") 2>conftest.er1
30852 ac_status=$?
30853 grep -v '^ *+' conftest.er1 >conftest.err
30854 rm -f conftest.er1
30855 cat conftest.err >&5
30856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857 (exit $ac_status); } && {
30858 test -z "$ac_c_werror_flag" ||
30859 test ! -s conftest.err
30860 } && test -s conftest.$ac_objext; then
30861 ac_cv_have_control_in_msghdr="yes"
30862else
30863 echo "$as_me: failed program was:" >&5
30864sed 's/^/| /' conftest.$ac_ext >&5
30865
30866 ac_cv_have_control_in_msghdr="no"
30867
30868fi
30869
30870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30871
30872fi
30873{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
30874echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
30875if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
30876
30877cat >>confdefs.h <<\_ACEOF
30878#define HAVE_CONTROL_IN_MSGHDR 1
30879_ACEOF
30880
30881fi
30882
30883{ echo "$as_me:$LINENO: checking if libc defines __progname" >&5
30884echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
30885if test "${ac_cv_libc_defines___progname+set}" = set; then
30886 echo $ECHO_N "(cached) $ECHO_C" >&6
30887else
30888
30889 cat >conftest.$ac_ext <<_ACEOF
30890/* confdefs.h. */
30891_ACEOF
30892cat confdefs.h >>conftest.$ac_ext
30893cat >>conftest.$ac_ext <<_ACEOF
30894/* end confdefs.h. */
30895
30896int
30897main ()
30898{
30899 extern char *__progname; printf("%s", __progname);
30900 ;
30901 return 0;
30902}
30903_ACEOF
30904rm -f conftest.$ac_objext conftest$ac_exeext
30905if { (ac_try="$ac_link"
30906case "(($ac_try" in
30907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30908 *) ac_try_echo=$ac_try;;
30909esac
30910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30911 (eval "$ac_link") 2>conftest.er1
30912 ac_status=$?
30913 grep -v '^ *+' conftest.er1 >conftest.err
30914 rm -f conftest.er1
30915 cat conftest.err >&5
30916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917 (exit $ac_status); } && {
30918 test -z "$ac_c_werror_flag" ||
30919 test ! -s conftest.err
30920 } && test -s conftest$ac_exeext &&
30921 $as_test_x conftest$ac_exeext; then
30922 ac_cv_libc_defines___progname="yes"
30923else
30924 echo "$as_me: failed program was:" >&5
30925sed 's/^/| /' conftest.$ac_ext >&5
30926
30927 ac_cv_libc_defines___progname="no"
30928
30929fi
30930
30931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30932 conftest$ac_exeext conftest.$ac_ext
30933
30934fi
30935{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
30936echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
30937if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
30938
30939cat >>confdefs.h <<\_ACEOF
30940#define HAVE___PROGNAME 1
30941_ACEOF
30942
30943fi
30944
30945{ echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
30946echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
30947if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
30948 echo $ECHO_N "(cached) $ECHO_C" >&6
30949else
30950
30951 cat >conftest.$ac_ext <<_ACEOF
30952/* confdefs.h. */
30953_ACEOF
30954cat confdefs.h >>conftest.$ac_ext
30955cat >>conftest.$ac_ext <<_ACEOF
30956/* end confdefs.h. */
30957 #include <stdio.h>
30958int
30959main ()
30960{
30961 printf("%s", __FUNCTION__);
30962 ;
30963 return 0;
30964}
30965_ACEOF
30966rm -f conftest.$ac_objext conftest$ac_exeext
30967if { (ac_try="$ac_link"
30968case "(($ac_try" in
30969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30970 *) ac_try_echo=$ac_try;;
30971esac
30972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30973 (eval "$ac_link") 2>conftest.er1
30974 ac_status=$?
30975 grep -v '^ *+' conftest.er1 >conftest.err
30976 rm -f conftest.er1
30977 cat conftest.err >&5
30978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30979 (exit $ac_status); } && {
30980 test -z "$ac_c_werror_flag" ||
30981 test ! -s conftest.err
30982 } && test -s conftest$ac_exeext &&
30983 $as_test_x conftest$ac_exeext; then
30984 ac_cv_cc_implements___FUNCTION__="yes"
30985else
30986 echo "$as_me: failed program was:" >&5
30987sed 's/^/| /' conftest.$ac_ext >&5
30988
30989 ac_cv_cc_implements___FUNCTION__="no"
30990
30991fi
30992
30993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30994 conftest$ac_exeext conftest.$ac_ext
30995
30996fi
30997{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
30998echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
30999if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
31000
31001cat >>confdefs.h <<\_ACEOF
31002#define HAVE___FUNCTION__ 1
31003_ACEOF
31004
31005fi
31006
31007{ echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
31008echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
31009if test "${ac_cv_cc_implements___func__+set}" = set; then
31010 echo $ECHO_N "(cached) $ECHO_C" >&6
31011else
31012
31013 cat >conftest.$ac_ext <<_ACEOF
31014/* confdefs.h. */
31015_ACEOF
31016cat confdefs.h >>conftest.$ac_ext
31017cat >>conftest.$ac_ext <<_ACEOF
31018/* end confdefs.h. */
31019 #include <stdio.h>
31020int
31021main ()
31022{
31023 printf("%s", __func__);
31024 ;
31025 return 0;
31026}
31027_ACEOF
31028rm -f conftest.$ac_objext conftest$ac_exeext
31029if { (ac_try="$ac_link"
31030case "(($ac_try" in
31031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31032 *) ac_try_echo=$ac_try;;
31033esac
31034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31035 (eval "$ac_link") 2>conftest.er1
31036 ac_status=$?
31037 grep -v '^ *+' conftest.er1 >conftest.err
31038 rm -f conftest.er1
31039 cat conftest.err >&5
31040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041 (exit $ac_status); } && {
31042 test -z "$ac_c_werror_flag" ||
31043 test ! -s conftest.err
31044 } && test -s conftest$ac_exeext &&
31045 $as_test_x conftest$ac_exeext; then
31046 ac_cv_cc_implements___func__="yes"
31047else
31048 echo "$as_me: failed program was:" >&5
31049sed 's/^/| /' conftest.$ac_ext >&5
31050
31051 ac_cv_cc_implements___func__="no"
31052
31053fi
31054
31055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31056 conftest$ac_exeext conftest.$ac_ext
31057
31058fi
31059{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
31060echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
31061if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
31062
31063cat >>confdefs.h <<\_ACEOF
31064#define HAVE___func__ 1
31065_ACEOF
31066
31067fi
31068
31069{ echo "$as_me:$LINENO: checking whether va_copy exists" >&5
31070echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
31071if test "${ac_cv_have_va_copy+set}" = set; then
31072 echo $ECHO_N "(cached) $ECHO_C" >&6
31073else
31074
31075 cat >conftest.$ac_ext <<_ACEOF
31076/* confdefs.h. */
31077_ACEOF
31078cat confdefs.h >>conftest.$ac_ext
31079cat >>conftest.$ac_ext <<_ACEOF
31080/* end confdefs.h. */
31081
31082#include <stdarg.h>
31083va_list x,y;
31084
31085int
31086main ()
31087{
31088 va_copy(x,y);
31089 ;
31090 return 0;
31091}
31092_ACEOF
31093rm -f conftest.$ac_objext conftest$ac_exeext
31094if { (ac_try="$ac_link"
31095case "(($ac_try" in
31096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31097 *) ac_try_echo=$ac_try;;
31098esac
31099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31100 (eval "$ac_link") 2>conftest.er1
31101 ac_status=$?
31102 grep -v '^ *+' conftest.er1 >conftest.err
31103 rm -f conftest.er1
31104 cat conftest.err >&5
31105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106 (exit $ac_status); } && {
31107 test -z "$ac_c_werror_flag" ||
31108 test ! -s conftest.err
31109 } && test -s conftest$ac_exeext &&
31110 $as_test_x conftest$ac_exeext; then
31111 ac_cv_have_va_copy="yes"
31112else
31113 echo "$as_me: failed program was:" >&5
31114sed 's/^/| /' conftest.$ac_ext >&5
31115
31116 ac_cv_have_va_copy="no"
31117
31118fi
31119
31120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31121 conftest$ac_exeext conftest.$ac_ext
31122
31123fi
31124{ echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
31125echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
31126if test "x$ac_cv_have_va_copy" = "xyes" ; then
31127
31128cat >>confdefs.h <<\_ACEOF
31129#define HAVE_VA_COPY 1
31130_ACEOF
31131
31132fi
31133
31134{ echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
31135echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
31136if test "${ac_cv_have___va_copy+set}" = set; then
31137 echo $ECHO_N "(cached) $ECHO_C" >&6
31138else
31139
31140 cat >conftest.$ac_ext <<_ACEOF
31141/* confdefs.h. */
31142_ACEOF
31143cat confdefs.h >>conftest.$ac_ext
31144cat >>conftest.$ac_ext <<_ACEOF
31145/* end confdefs.h. */
31146
31147#include <stdarg.h>
31148va_list x,y;
31149
31150int
31151main ()
31152{
31153 __va_copy(x,y);
31154 ;
31155 return 0;
31156}
31157_ACEOF
31158rm -f conftest.$ac_objext conftest$ac_exeext
31159if { (ac_try="$ac_link"
31160case "(($ac_try" in
31161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31162 *) ac_try_echo=$ac_try;;
31163esac
31164eval "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 ac_cv_have___va_copy="yes"
31177else
31178 echo "$as_me: failed program was:" >&5
31179sed 's/^/| /' conftest.$ac_ext >&5
31180
31181 ac_cv_have___va_copy="no"
31182
31183fi
31184
31185rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31186 conftest$ac_exeext conftest.$ac_ext
31187
31188fi
31189{ echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
31190echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
31191if test "x$ac_cv_have___va_copy" = "xyes" ; then
31192
31193cat >>confdefs.h <<\_ACEOF
31194#define HAVE___VA_COPY 1
31195_ACEOF
31196
31197fi
31198
31199{ echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
31200echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
31201if test "${ac_cv_have_getopt_optreset+set}" = set; then
31202 echo $ECHO_N "(cached) $ECHO_C" >&6
31203else
31204
31205 cat >conftest.$ac_ext <<_ACEOF
31206/* confdefs.h. */
31207_ACEOF
31208cat confdefs.h >>conftest.$ac_ext
31209cat >>conftest.$ac_ext <<_ACEOF
31210/* end confdefs.h. */
31211 #include <getopt.h>
31212int
31213main ()
31214{
31215 extern int optreset; optreset = 0;
31216 ;
31217 return 0;
31218}
31219_ACEOF
31220rm -f conftest.$ac_objext conftest$ac_exeext
31221if { (ac_try="$ac_link"
31222case "(($ac_try" in
31223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31224 *) ac_try_echo=$ac_try;;
31225esac
31226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31227 (eval "$ac_link") 2>conftest.er1
31228 ac_status=$?
31229 grep -v '^ *+' conftest.er1 >conftest.err
31230 rm -f conftest.er1
31231 cat conftest.err >&5
31232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); } && {
31234 test -z "$ac_c_werror_flag" ||
31235 test ! -s conftest.err
31236 } && test -s conftest$ac_exeext &&
31237 $as_test_x conftest$ac_exeext; then
31238 ac_cv_have_getopt_optreset="yes"
31239else
31240 echo "$as_me: failed program was:" >&5
31241sed 's/^/| /' conftest.$ac_ext >&5
31242
31243 ac_cv_have_getopt_optreset="no"
31244
31245fi
31246
31247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31248 conftest$ac_exeext conftest.$ac_ext
31249
31250fi
31251{ echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
31252echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
31253if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
31254
31255cat >>confdefs.h <<\_ACEOF
31256#define HAVE_GETOPT_OPTRESET 1
31257_ACEOF
31258
31259fi
31260
31261{ echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
31262echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
31263if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
31264 echo $ECHO_N "(cached) $ECHO_C" >&6
31265else
31266
31267 cat >conftest.$ac_ext <<_ACEOF
31268/* confdefs.h. */
31269_ACEOF
31270cat confdefs.h >>conftest.$ac_ext
31271cat >>conftest.$ac_ext <<_ACEOF
31272/* end confdefs.h. */
31273
31274int
31275main ()
31276{
31277 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
31278 ;
31279 return 0;
31280}
31281_ACEOF
31282rm -f conftest.$ac_objext conftest$ac_exeext
31283if { (ac_try="$ac_link"
31284case "(($ac_try" in
31285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31286 *) ac_try_echo=$ac_try;;
31287esac
31288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31289 (eval "$ac_link") 2>conftest.er1
31290 ac_status=$?
31291 grep -v '^ *+' conftest.er1 >conftest.err
31292 rm -f conftest.er1
31293 cat conftest.err >&5
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295 (exit $ac_status); } && {
31296 test -z "$ac_c_werror_flag" ||
31297 test ! -s conftest.err
31298 } && test -s conftest$ac_exeext &&
31299 $as_test_x conftest$ac_exeext; then
31300 ac_cv_libc_defines_sys_errlist="yes"
31301else
31302 echo "$as_me: failed program was:" >&5
31303sed 's/^/| /' conftest.$ac_ext >&5
31304
31305 ac_cv_libc_defines_sys_errlist="no"
31306
31307fi
31308
31309rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31310 conftest$ac_exeext conftest.$ac_ext
31311
31312fi
31313{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
31314echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
31315if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
31316
31317cat >>confdefs.h <<\_ACEOF
31318#define HAVE_SYS_ERRLIST 1
31319_ACEOF
31320
31321fi
31322
31323
31324{ echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
31325echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
31326if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
31327 echo $ECHO_N "(cached) $ECHO_C" >&6
31328else
31329
31330 cat >conftest.$ac_ext <<_ACEOF
31331/* confdefs.h. */
31332_ACEOF
31333cat confdefs.h >>conftest.$ac_ext
31334cat >>conftest.$ac_ext <<_ACEOF
31335/* end confdefs.h. */
31336
31337int
31338main ()
31339{
31340 extern int sys_nerr; printf("%i", sys_nerr);
31341 ;
31342 return 0;
31343}
31344_ACEOF
31345rm -f conftest.$ac_objext conftest$ac_exeext
31346if { (ac_try="$ac_link"
31347case "(($ac_try" in
31348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31349 *) ac_try_echo=$ac_try;;
31350esac
31351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31352 (eval "$ac_link") 2>conftest.er1
31353 ac_status=$?
31354 grep -v '^ *+' conftest.er1 >conftest.err
31355 rm -f conftest.er1
31356 cat conftest.err >&5
31357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31358 (exit $ac_status); } && {
31359 test -z "$ac_c_werror_flag" ||
31360 test ! -s conftest.err
31361 } && test -s conftest$ac_exeext &&
31362 $as_test_x conftest$ac_exeext; then
31363 ac_cv_libc_defines_sys_nerr="yes"
31364else
31365 echo "$as_me: failed program was:" >&5
31366sed 's/^/| /' conftest.$ac_ext >&5
31367
31368 ac_cv_libc_defines_sys_nerr="no"
31369
31370fi
31371
31372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31373 conftest$ac_exeext conftest.$ac_ext
31374
31375fi
31376{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
31377echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
31378if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
31379
31380cat >>confdefs.h <<\_ACEOF
31381#define HAVE_SYS_NERR 1
31382_ACEOF
31383
31384fi
31385
31386# Check libraries needed by DNS fingerprint support
31387{ echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
31388echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
31389if test "${ac_cv_search_getrrsetbyname+set}" = set; then
31390 echo $ECHO_N "(cached) $ECHO_C" >&6
31391else
31392 ac_func_search_save_LIBS=$LIBS
31393cat >conftest.$ac_ext <<_ACEOF
31394/* confdefs.h. */
31395_ACEOF
31396cat confdefs.h >>conftest.$ac_ext
31397cat >>conftest.$ac_ext <<_ACEOF
31398/* end confdefs.h. */
31399
31400/* Override any GCC internal prototype to avoid an error.
31401 Use char because int might match the return type of a GCC
31402 builtin and then its argument prototype would still apply. */
31403#ifdef __cplusplus
31404extern "C"
31405#endif
31406char getrrsetbyname ();
31407int
31408main ()
31409{
31410return getrrsetbyname ();
31411 ;
31412 return 0;
31413}
31414_ACEOF
31415for ac_lib in '' resolv; do
31416 if test -z "$ac_lib"; then
31417 ac_res="none required"
31418 else
31419 ac_res=-l$ac_lib
31420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31421 fi
31422 rm -f conftest.$ac_objext conftest$ac_exeext
31423if { (ac_try="$ac_link"
31424case "(($ac_try" in
31425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31426 *) ac_try_echo=$ac_try;;
31427esac
31428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31429 (eval "$ac_link") 2>conftest.er1
31430 ac_status=$?
31431 grep -v '^ *+' conftest.er1 >conftest.err
31432 rm -f conftest.er1
31433 cat conftest.err >&5
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); } && {
31436 test -z "$ac_c_werror_flag" ||
31437 test ! -s conftest.err
31438 } && test -s conftest$ac_exeext &&
31439 $as_test_x conftest$ac_exeext; then
31440 ac_cv_search_getrrsetbyname=$ac_res
31441else
31442 echo "$as_me: failed program was:" >&5
31443sed 's/^/| /' conftest.$ac_ext >&5
31444
31445
31446fi
31447
31448rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31449 conftest$ac_exeext
31450 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
31451 break
31452fi
31453done
31454if test "${ac_cv_search_getrrsetbyname+set}" = set; then
31455 :
31456else
31457 ac_cv_search_getrrsetbyname=no
31458fi
31459rm conftest.$ac_ext
31460LIBS=$ac_func_search_save_LIBS
31461fi
31462{ echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
31463echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
31464ac_res=$ac_cv_search_getrrsetbyname
31465if test "$ac_res" != no; then
31466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31467
31468cat >>confdefs.h <<\_ACEOF
31469#define HAVE_GETRRSETBYNAME 1
31470_ACEOF
31471
31472else
31473
31474 # Needed by our getrrsetbyname()
31475 { echo "$as_me:$LINENO: checking for library containing res_query" >&5
31476echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
31477if test "${ac_cv_search_res_query+set}" = set; then
31478 echo $ECHO_N "(cached) $ECHO_C" >&6
31479else
31480 ac_func_search_save_LIBS=$LIBS
31481cat >conftest.$ac_ext <<_ACEOF
31482/* confdefs.h. */
31483_ACEOF
31484cat confdefs.h >>conftest.$ac_ext
31485cat >>conftest.$ac_ext <<_ACEOF
31486/* end confdefs.h. */
31487
31488/* Override any GCC internal prototype to avoid an error.
31489 Use char because int might match the return type of a GCC
31490 builtin and then its argument prototype would still apply. */
31491#ifdef __cplusplus
31492extern "C"
31493#endif
31494char res_query ();
31495int
31496main ()
31497{
31498return res_query ();
31499 ;
31500 return 0;
31501}
31502_ACEOF
31503for ac_lib in '' resolv; do
31504 if test -z "$ac_lib"; then
31505 ac_res="none required"
31506 else
31507 ac_res=-l$ac_lib
31508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31509 fi
31510 rm -f conftest.$ac_objext conftest$ac_exeext
31511if { (ac_try="$ac_link"
31512case "(($ac_try" in
31513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31514 *) ac_try_echo=$ac_try;;
31515esac
31516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31517 (eval "$ac_link") 2>conftest.er1
31518 ac_status=$?
31519 grep -v '^ *+' conftest.er1 >conftest.err
31520 rm -f conftest.er1
31521 cat conftest.err >&5
31522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523 (exit $ac_status); } && {
31524 test -z "$ac_c_werror_flag" ||
31525 test ! -s conftest.err
31526 } && test -s conftest$ac_exeext &&
31527 $as_test_x conftest$ac_exeext; then
31528 ac_cv_search_res_query=$ac_res
31529else
31530 echo "$as_me: failed program was:" >&5
31531sed 's/^/| /' conftest.$ac_ext >&5
31532
31533
31534fi
31535
31536rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31537 conftest$ac_exeext
31538 if test "${ac_cv_search_res_query+set}" = set; then
31539 break
31540fi
31541done
31542if test "${ac_cv_search_res_query+set}" = set; then
31543 :
31544else
31545 ac_cv_search_res_query=no
31546fi
31547rm conftest.$ac_ext
31548LIBS=$ac_func_search_save_LIBS
31549fi
31550{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
31551echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
31552ac_res=$ac_cv_search_res_query
31553if test "$ac_res" != no; then
31554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31555
31556fi
31557
31558 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
31559echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
31560if test "${ac_cv_search_dn_expand+set}" = set; then
31561 echo $ECHO_N "(cached) $ECHO_C" >&6
31562else
31563 ac_func_search_save_LIBS=$LIBS
31564cat >conftest.$ac_ext <<_ACEOF
31565/* confdefs.h. */
31566_ACEOF
31567cat confdefs.h >>conftest.$ac_ext
31568cat >>conftest.$ac_ext <<_ACEOF
31569/* end confdefs.h. */
31570
31571/* Override any GCC internal prototype to avoid an error.
31572 Use char because int might match the return type of a GCC
31573 builtin and then its argument prototype would still apply. */
31574#ifdef __cplusplus
31575extern "C"
31576#endif
31577char dn_expand ();
31578int
31579main ()
31580{
31581return dn_expand ();
31582 ;
31583 return 0;
31584}
31585_ACEOF
31586for ac_lib in '' resolv; do
31587 if test -z "$ac_lib"; then
31588 ac_res="none required"
31589 else
31590 ac_res=-l$ac_lib
31591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31592 fi
31593 rm -f conftest.$ac_objext conftest$ac_exeext
31594if { (ac_try="$ac_link"
31595case "(($ac_try" in
31596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31597 *) ac_try_echo=$ac_try;;
31598esac
31599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31600 (eval "$ac_link") 2>conftest.er1
31601 ac_status=$?
31602 grep -v '^ *+' conftest.er1 >conftest.err
31603 rm -f conftest.er1
31604 cat conftest.err >&5
31605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606 (exit $ac_status); } && {
31607 test -z "$ac_c_werror_flag" ||
31608 test ! -s conftest.err
31609 } && test -s conftest$ac_exeext &&
31610 $as_test_x conftest$ac_exeext; then
31611 ac_cv_search_dn_expand=$ac_res
31612else
31613 echo "$as_me: failed program was:" >&5
31614sed 's/^/| /' conftest.$ac_ext >&5
31615
31616
31617fi
31618
31619rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31620 conftest$ac_exeext
31621 if test "${ac_cv_search_dn_expand+set}" = set; then
31622 break
31623fi
31624done
31625if test "${ac_cv_search_dn_expand+set}" = set; then
31626 :
31627else
31628 ac_cv_search_dn_expand=no
31629fi
31630rm conftest.$ac_ext
31631LIBS=$ac_func_search_save_LIBS
31632fi
31633{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
31634echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
31635ac_res=$ac_cv_search_dn_expand
31636if test "$ac_res" != no; then
31637 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31638
31639fi
31640
31641 { echo "$as_me:$LINENO: checking if res_query will link" >&5
31642echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
31643 cat >conftest.$ac_ext <<_ACEOF
31644/* confdefs.h. */
31645_ACEOF
31646cat confdefs.h >>conftest.$ac_ext
31647cat >>conftest.$ac_ext <<_ACEOF
31648/* end confdefs.h. */
31649
31650#include <sys/types.h>
31651#include <netinet/in.h>
31652#include <arpa/nameser.h>
31653#include <netdb.h>
31654#include <resolv.h>
31655
31656int
31657main ()
31658{
31659
31660 res_query (0, 0, 0, 0, 0);
31661
31662 ;
31663 return 0;
31664}
31665_ACEOF
31666rm -f conftest.$ac_objext conftest$ac_exeext
31667if { (ac_try="$ac_link"
31668case "(($ac_try" in
31669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31670 *) ac_try_echo=$ac_try;;
31671esac
31672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31673 (eval "$ac_link") 2>conftest.er1
31674 ac_status=$?
31675 grep -v '^ *+' conftest.er1 >conftest.err
31676 rm -f conftest.er1
31677 cat conftest.err >&5
31678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31679 (exit $ac_status); } && {
31680 test -z "$ac_c_werror_flag" ||
31681 test ! -s conftest.err
31682 } && test -s conftest$ac_exeext &&
31683 $as_test_x conftest$ac_exeext; then
31684 { echo "$as_me:$LINENO: result: yes" >&5
31685echo "${ECHO_T}yes" >&6; }
31686else
31687 echo "$as_me: failed program was:" >&5
31688sed 's/^/| /' conftest.$ac_ext >&5
31689
31690 { echo "$as_me:$LINENO: result: no" >&5
31691echo "${ECHO_T}no" >&6; }
31692 saved_LIBS="$LIBS"
31693 LIBS="$LIBS -lresolv"
31694 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
31695echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
31696 cat >conftest.$ac_ext <<_ACEOF
31697/* confdefs.h. */
31698_ACEOF
31699cat confdefs.h >>conftest.$ac_ext
31700cat >>conftest.$ac_ext <<_ACEOF
31701/* end confdefs.h. */
31702
31703#include <sys/types.h>
31704#include <netinet/in.h>
31705#include <arpa/nameser.h>
31706#include <netdb.h>
31707#include <resolv.h>
31708
31709int
31710main ()
31711{
31712
31713 res_query (0, 0, 0, 0, 0);
31714
31715 ;
31716 return 0;
31717}
31718_ACEOF
31719rm -f conftest.$ac_objext conftest$ac_exeext
31720if { (ac_try="$ac_link"
31721case "(($ac_try" in
31722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31723 *) ac_try_echo=$ac_try;;
31724esac
31725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31726 (eval "$ac_link") 2>conftest.er1
31727 ac_status=$?
31728 grep -v '^ *+' conftest.er1 >conftest.err
31729 rm -f conftest.er1
31730 cat conftest.err >&5
31731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732 (exit $ac_status); } && {
31733 test -z "$ac_c_werror_flag" ||
31734 test ! -s conftest.err
31735 } && test -s conftest$ac_exeext &&
31736 $as_test_x conftest$ac_exeext; then
31737 { echo "$as_me:$LINENO: result: yes" >&5
31738echo "${ECHO_T}yes" >&6; }
31739else
31740 echo "$as_me: failed program was:" >&5
31741sed 's/^/| /' conftest.$ac_ext >&5
31742
31743 LIBS="$saved_LIBS"
31744 { echo "$as_me:$LINENO: result: no" >&5
31745echo "${ECHO_T}no" >&6; }
31746fi
31747
31748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31749 conftest$ac_exeext conftest.$ac_ext
31750
31751fi
31752
31753rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31754 conftest$ac_exeext conftest.$ac_ext
31755
31756
31757for ac_func in _getshort _getlong
31758do
31759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31760{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31762if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31763 echo $ECHO_N "(cached) $ECHO_C" >&6
31764else
31765 cat >conftest.$ac_ext <<_ACEOF
31766/* confdefs.h. */
31767_ACEOF
31768cat confdefs.h >>conftest.$ac_ext
31769cat >>conftest.$ac_ext <<_ACEOF
31770/* end confdefs.h. */
31771/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31773#define $ac_func innocuous_$ac_func
31774
31775/* System header to define __stub macros and hopefully few prototypes,
31776 which can conflict with char $ac_func (); below.
31777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31778 <limits.h> exists even on freestanding compilers. */
31779
31780#ifdef __STDC__
31781# include <limits.h>
31782#else
31783# include <assert.h>
31784#endif
31785
31786#undef $ac_func
31787
31788/* Override any GCC internal prototype to avoid an error.
31789 Use char because int might match the return type of a GCC
31790 builtin and then its argument prototype would still apply. */
31791#ifdef __cplusplus
31792extern "C"
31793#endif
31794char $ac_func ();
31795/* The GNU C library defines this for functions which it implements
31796 to always fail with ENOSYS. Some functions are actually named
31797 something starting with __ and the normal name is an alias. */
31798#if defined __stub_$ac_func || defined __stub___$ac_func
31799choke me
31800#endif
31801
31802int
31803main ()
31804{
31805return $ac_func ();
31806 ;
31807 return 0;
31808}
31809_ACEOF
31810rm -f conftest.$ac_objext conftest$ac_exeext
31811if { (ac_try="$ac_link"
31812case "(($ac_try" in
31813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31814 *) ac_try_echo=$ac_try;;
31815esac
31816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31817 (eval "$ac_link") 2>conftest.er1
31818 ac_status=$?
31819 grep -v '^ *+' conftest.er1 >conftest.err
31820 rm -f conftest.er1
31821 cat conftest.err >&5
31822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823 (exit $ac_status); } && {
31824 test -z "$ac_c_werror_flag" ||
31825 test ! -s conftest.err
31826 } && test -s conftest$ac_exeext &&
31827 $as_test_x conftest$ac_exeext; then
31828 eval "$as_ac_var=yes"
31829else
31830 echo "$as_me: failed program was:" >&5
31831sed 's/^/| /' conftest.$ac_ext >&5
31832
31833 eval "$as_ac_var=no"
31834fi
31835
31836rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31837 conftest$ac_exeext conftest.$ac_ext
31838fi
31839ac_res=`eval echo '${'$as_ac_var'}'`
31840 { echo "$as_me:$LINENO: result: $ac_res" >&5
31841echo "${ECHO_T}$ac_res" >&6; }
31842if test `eval echo '${'$as_ac_var'}'` = yes; then
31843 cat >>confdefs.h <<_ACEOF
31844#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31845_ACEOF
31846
31847fi
31848done
31849
31850 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
31851echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
31852if test "${ac_cv_have_decl__getshort+set}" = set; then
31853 echo $ECHO_N "(cached) $ECHO_C" >&6
31854else
31855 cat >conftest.$ac_ext <<_ACEOF
31856/* confdefs.h. */
31857_ACEOF
31858cat confdefs.h >>conftest.$ac_ext
31859cat >>conftest.$ac_ext <<_ACEOF
31860/* end confdefs.h. */
31861#include <sys/types.h>
31862 #include <arpa/nameser.h>
31863
31864int
31865main ()
31866{
31867#ifndef _getshort
31868 (void) _getshort;
31869#endif
31870
31871 ;
31872 return 0;
31873}
31874_ACEOF
31875rm -f conftest.$ac_objext
31876if { (ac_try="$ac_compile"
31877case "(($ac_try" in
31878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31879 *) ac_try_echo=$ac_try;;
31880esac
31881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31882 (eval "$ac_compile") 2>conftest.er1
31883 ac_status=$?
31884 grep -v '^ *+' conftest.er1 >conftest.err
31885 rm -f conftest.er1
31886 cat conftest.err >&5
31887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31888 (exit $ac_status); } && {
31889 test -z "$ac_c_werror_flag" ||
31890 test ! -s conftest.err
31891 } && test -s conftest.$ac_objext; then
31892 ac_cv_have_decl__getshort=yes
31893else
31894 echo "$as_me: failed program was:" >&5
31895sed 's/^/| /' conftest.$ac_ext >&5
31896
31897 ac_cv_have_decl__getshort=no
31898fi
31899
31900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31901fi
31902{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
31903echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
31904if test $ac_cv_have_decl__getshort = yes; then
31905
31906cat >>confdefs.h <<_ACEOF
31907#define HAVE_DECL__GETSHORT 1
31908_ACEOF
31909
31910
31911else
31912 cat >>confdefs.h <<_ACEOF
31913#define HAVE_DECL__GETSHORT 0
31914_ACEOF
31915
31916
31917fi
31918{ echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
31919echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
31920if test "${ac_cv_have_decl__getlong+set}" = set; then
31921 echo $ECHO_N "(cached) $ECHO_C" >&6
31922else
31923 cat >conftest.$ac_ext <<_ACEOF
31924/* confdefs.h. */
31925_ACEOF
31926cat confdefs.h >>conftest.$ac_ext
31927cat >>conftest.$ac_ext <<_ACEOF
31928/* end confdefs.h. */
31929#include <sys/types.h>
31930 #include <arpa/nameser.h>
31931
31932int
31933main ()
31934{
31935#ifndef _getlong
31936 (void) _getlong;
31937#endif
31938
31939 ;
31940 return 0;
31941}
31942_ACEOF
31943rm -f conftest.$ac_objext
31944if { (ac_try="$ac_compile"
31945case "(($ac_try" in
31946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31947 *) ac_try_echo=$ac_try;;
31948esac
31949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31950 (eval "$ac_compile") 2>conftest.er1
31951 ac_status=$?
31952 grep -v '^ *+' conftest.er1 >conftest.err
31953 rm -f conftest.er1
31954 cat conftest.err >&5
31955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956 (exit $ac_status); } && {
31957 test -z "$ac_c_werror_flag" ||
31958 test ! -s conftest.err
31959 } && test -s conftest.$ac_objext; then
31960 ac_cv_have_decl__getlong=yes
31961else
31962 echo "$as_me: failed program was:" >&5
31963sed 's/^/| /' conftest.$ac_ext >&5
31964
31965 ac_cv_have_decl__getlong=no
31966fi
31967
31968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31969fi
31970{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
31971echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
31972if test $ac_cv_have_decl__getlong = yes; then
31973
31974cat >>confdefs.h <<_ACEOF
31975#define HAVE_DECL__GETLONG 1
31976_ACEOF
31977
31978
31979else
31980 cat >>confdefs.h <<_ACEOF
31981#define HAVE_DECL__GETLONG 0
31982_ACEOF
31983
31984
31985fi
31986
31987
31988 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5
31989echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
31990if test "${ac_cv_member_HEADER_ad+set}" = set; then
31991 echo $ECHO_N "(cached) $ECHO_C" >&6
31992else
31993 cat >conftest.$ac_ext <<_ACEOF
31994/* confdefs.h. */
31995_ACEOF
31996cat confdefs.h >>conftest.$ac_ext
31997cat >>conftest.$ac_ext <<_ACEOF
31998/* end confdefs.h. */
31999#include <arpa/nameser.h>
32000
32001int
32002main ()
32003{
32004static HEADER ac_aggr;
32005if (ac_aggr.ad)
32006return 0;
32007 ;
32008 return 0;
32009}
32010_ACEOF
32011rm -f conftest.$ac_objext
32012if { (ac_try="$ac_compile"
32013case "(($ac_try" in
32014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32015 *) ac_try_echo=$ac_try;;
32016esac
32017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32018 (eval "$ac_compile") 2>conftest.er1
32019 ac_status=$?
32020 grep -v '^ *+' conftest.er1 >conftest.err
32021 rm -f conftest.er1
32022 cat conftest.err >&5
32023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32024 (exit $ac_status); } && {
32025 test -z "$ac_c_werror_flag" ||
32026 test ! -s conftest.err
32027 } && test -s conftest.$ac_objext; then
32028 ac_cv_member_HEADER_ad=yes
32029else
32030 echo "$as_me: failed program was:" >&5
32031sed 's/^/| /' conftest.$ac_ext >&5
32032
32033 cat >conftest.$ac_ext <<_ACEOF
32034/* confdefs.h. */
32035_ACEOF
32036cat confdefs.h >>conftest.$ac_ext
32037cat >>conftest.$ac_ext <<_ACEOF
32038/* end confdefs.h. */
32039#include <arpa/nameser.h>
32040
32041int
32042main ()
32043{
32044static HEADER ac_aggr;
32045if (sizeof ac_aggr.ad)
32046return 0;
32047 ;
32048 return 0;
32049}
32050_ACEOF
32051rm -f conftest.$ac_objext
32052if { (ac_try="$ac_compile"
32053case "(($ac_try" in
32054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32055 *) ac_try_echo=$ac_try;;
32056esac
32057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32058 (eval "$ac_compile") 2>conftest.er1
32059 ac_status=$?
32060 grep -v '^ *+' conftest.er1 >conftest.err
32061 rm -f conftest.er1
32062 cat conftest.err >&5
32063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32064 (exit $ac_status); } && {
32065 test -z "$ac_c_werror_flag" ||
32066 test ! -s conftest.err
32067 } && test -s conftest.$ac_objext; then
32068 ac_cv_member_HEADER_ad=yes
32069else
32070 echo "$as_me: failed program was:" >&5
32071sed 's/^/| /' conftest.$ac_ext >&5
32072
32073 ac_cv_member_HEADER_ad=no
32074fi
32075
32076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32077fi
32078
32079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32080fi
32081{ echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
32082echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
32083if test $ac_cv_member_HEADER_ad = yes; then
32084
32085cat >>confdefs.h <<\_ACEOF
32086#define HAVE_HEADER_AD 1
32087_ACEOF
32088
32089fi
32090
32091
32092fi
32093
32094
32095{ echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5
32096echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; }
32097cat >conftest.$ac_ext <<_ACEOF
32098/* confdefs.h. */
32099_ACEOF
32100cat confdefs.h >>conftest.$ac_ext
32101cat >>conftest.$ac_ext <<_ACEOF
32102/* end confdefs.h. */
32103
32104#include <stdio.h>
32105#if HAVE_SYS_TYPES_H
32106# include <sys/types.h>
32107#endif
32108#include <netinet/in.h>
32109#include <arpa/nameser.h>
32110#include <resolv.h>
32111extern struct __res_state _res;
32112
32113int
32114main ()
32115{
32116
32117struct __res_state *volatile p = &_res; /* force resolution of _res */
32118return 0;
32119
32120 ;
32121 return 0;
32122}
32123_ACEOF
32124rm -f conftest.$ac_objext conftest$ac_exeext
32125if { (ac_try="$ac_link"
32126case "(($ac_try" in
32127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32128 *) ac_try_echo=$ac_try;;
32129esac
32130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32131 (eval "$ac_link") 2>conftest.er1
32132 ac_status=$?
32133 grep -v '^ *+' conftest.er1 >conftest.err
32134 rm -f conftest.er1
32135 cat conftest.err >&5
32136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137 (exit $ac_status); } && {
32138 test -z "$ac_c_werror_flag" ||
32139 test ! -s conftest.err
32140 } && test -s conftest$ac_exeext &&
32141 $as_test_x conftest$ac_exeext; then
32142 { echo "$as_me:$LINENO: result: yes" >&5
32143echo "${ECHO_T}yes" >&6; }
32144
32145cat >>confdefs.h <<\_ACEOF
32146#define HAVE__RES_EXTERN 1
32147_ACEOF
32148
32149
32150else
32151 echo "$as_me: failed program was:" >&5
32152sed 's/^/| /' conftest.$ac_ext >&5
32153
32154 { echo "$as_me:$LINENO: result: no" >&5
32155echo "${ECHO_T}no" >&6; }
32156
32157fi
32158
32159rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32160 conftest$ac_exeext conftest.$ac_ext
32161
32162# Check whether user wants SELinux support
32163SELINUX_MSG="no"
32164LIBSELINUX=""
32165
32166# Check whether --with-selinux was given.
32167if test "${with_selinux+set}" = set; then
32168 withval=$with_selinux; if test "x$withval" != "xno" ; then
32169 save_LIBS="$LIBS"
32170
32171cat >>confdefs.h <<\_ACEOF
32172#define WITH_SELINUX 1
32173_ACEOF
32174
32175 SELINUX_MSG="yes"
32176 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
32177 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
32178echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
32179if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
32180 echo $ECHO_N "(cached) $ECHO_C" >&6
32181fi
32182{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
32183echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
32184else
32185 # Is the header compilable?
32186{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
32187echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
32188cat >conftest.$ac_ext <<_ACEOF
32189/* confdefs.h. */
32190_ACEOF
32191cat confdefs.h >>conftest.$ac_ext
32192cat >>conftest.$ac_ext <<_ACEOF
32193/* end confdefs.h. */
32194$ac_includes_default
32195#include <selinux/selinux.h>
32196_ACEOF
32197rm -f conftest.$ac_objext
32198if { (ac_try="$ac_compile"
32199case "(($ac_try" in
32200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32201 *) ac_try_echo=$ac_try;;
32202esac
32203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32204 (eval "$ac_compile") 2>conftest.er1
32205 ac_status=$?
32206 grep -v '^ *+' conftest.er1 >conftest.err
32207 rm -f conftest.er1
32208 cat conftest.err >&5
32209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32210 (exit $ac_status); } && {
32211 test -z "$ac_c_werror_flag" ||
32212 test ! -s conftest.err
32213 } && test -s conftest.$ac_objext; then
32214 ac_header_compiler=yes
32215else
32216 echo "$as_me: failed program was:" >&5
32217sed 's/^/| /' conftest.$ac_ext >&5
32218
32219 ac_header_compiler=no
32220fi
32221
32222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32223{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32224echo "${ECHO_T}$ac_header_compiler" >&6; }
32225
32226# Is the header present?
32227{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
32228echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
32229cat >conftest.$ac_ext <<_ACEOF
32230/* confdefs.h. */
32231_ACEOF
32232cat confdefs.h >>conftest.$ac_ext
32233cat >>conftest.$ac_ext <<_ACEOF
32234/* end confdefs.h. */
32235#include <selinux/selinux.h>
32236_ACEOF
32237if { (ac_try="$ac_cpp conftest.$ac_ext"
32238case "(($ac_try" in
32239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32240 *) ac_try_echo=$ac_try;;
32241esac
32242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32244 ac_status=$?
32245 grep -v '^ *+' conftest.er1 >conftest.err
32246 rm -f conftest.er1
32247 cat conftest.err >&5
32248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32249 (exit $ac_status); } >/dev/null && {
32250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32251 test ! -s conftest.err
32252 }; then
32253 ac_header_preproc=yes
32254else
32255 echo "$as_me: failed program was:" >&5
32256sed 's/^/| /' conftest.$ac_ext >&5
32257
32258 ac_header_preproc=no
32259fi
32260
32261rm -f conftest.err conftest.$ac_ext
32262{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32263echo "${ECHO_T}$ac_header_preproc" >&6; }
32264
32265# So? What about this header?
32266case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32267 yes:no: )
32268 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
32269echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32270 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
32271echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
32272 ac_header_preproc=yes
32273 ;;
32274 no:yes:* )
32275 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
32276echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
32277 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
32278echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
32279 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
32280echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
32281 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
32282echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
32283 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
32284echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
32285 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
32286echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
32287 ( cat <<\_ASBOX
32288## ------------------------------------------- ##
32289## Report this to openssh-unix-dev@mindrot.org ##
32290## ------------------------------------------- ##
32291_ASBOX
32292 ) | sed "s/^/$as_me: WARNING: /" >&2
32293 ;;
32294esac
32295{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
32296echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
32297if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
32298 echo $ECHO_N "(cached) $ECHO_C" >&6
32299else
32300 ac_cv_header_selinux_selinux_h=$ac_header_preproc
32301fi
32302{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
32303echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
32304
32305fi
32306if test $ac_cv_header_selinux_selinux_h = yes; then
32307 :
32308else
32309 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
32310echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
32311 { (exit 1); exit 1; }; }
32312fi
32313
32314
32315 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
32316echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
32317if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
32318 echo $ECHO_N "(cached) $ECHO_C" >&6
32319else
32320 ac_check_lib_save_LIBS=$LIBS
32321LIBS="-lselinux $LIBS"
32322cat >conftest.$ac_ext <<_ACEOF
32323/* confdefs.h. */
32324_ACEOF
32325cat confdefs.h >>conftest.$ac_ext
32326cat >>conftest.$ac_ext <<_ACEOF
32327/* end confdefs.h. */
32328
32329/* Override any GCC internal prototype to avoid an error.
32330 Use char because int might match the return type of a GCC
32331 builtin and then its argument prototype would still apply. */
32332#ifdef __cplusplus
32333extern "C"
32334#endif
32335char setexeccon ();
32336int
32337main ()
32338{
32339return setexeccon ();
32340 ;
32341 return 0;
32342}
32343_ACEOF
32344rm -f conftest.$ac_objext conftest$ac_exeext
32345if { (ac_try="$ac_link"
32346case "(($ac_try" in
32347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32348 *) ac_try_echo=$ac_try;;
32349esac
32350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32351 (eval "$ac_link") 2>conftest.er1
32352 ac_status=$?
32353 grep -v '^ *+' conftest.er1 >conftest.err
32354 rm -f conftest.er1
32355 cat conftest.err >&5
32356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357 (exit $ac_status); } && {
32358 test -z "$ac_c_werror_flag" ||
32359 test ! -s conftest.err
32360 } && test -s conftest$ac_exeext &&
32361 $as_test_x conftest$ac_exeext; then
32362 ac_cv_lib_selinux_setexeccon=yes
32363else
32364 echo "$as_me: failed program was:" >&5
32365sed 's/^/| /' conftest.$ac_ext >&5
32366
32367 ac_cv_lib_selinux_setexeccon=no
32368fi
32369
32370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32371 conftest$ac_exeext conftest.$ac_ext
32372LIBS=$ac_check_lib_save_LIBS
32373fi
32374{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
32375echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
32376if test $ac_cv_lib_selinux_setexeccon = yes; then
32377 LIBSELINUX="-lselinux"
32378 LIBS="$LIBS -lselinux"
32379
32380else
32381 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
32382echo "$as_me: error: SELinux support requires libselinux library" >&2;}
32383 { (exit 1); exit 1; }; }
32384fi
32385
32386 SSHLIBS="$SSHLIBS $LIBSELINUX"
32387 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
32388
32389
32390for ac_func in getseuserbyname get_default_context_with_level
32391do
32392as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32393{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32394echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32395if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32396 echo $ECHO_N "(cached) $ECHO_C" >&6
32397else
32398 cat >conftest.$ac_ext <<_ACEOF
32399/* confdefs.h. */
32400_ACEOF
32401cat confdefs.h >>conftest.$ac_ext
32402cat >>conftest.$ac_ext <<_ACEOF
32403/* end confdefs.h. */
32404/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32406#define $ac_func innocuous_$ac_func
32407
32408/* System header to define __stub macros and hopefully few prototypes,
32409 which can conflict with char $ac_func (); below.
32410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32411 <limits.h> exists even on freestanding compilers. */
32412
32413#ifdef __STDC__
32414# include <limits.h>
32415#else
32416# include <assert.h>
32417#endif
32418
32419#undef $ac_func
32420
32421/* Override any GCC internal prototype to avoid an error.
32422 Use char because int might match the return type of a GCC
32423 builtin and then its argument prototype would still apply. */
32424#ifdef __cplusplus
32425extern "C"
32426#endif
32427char $ac_func ();
32428/* The GNU C library defines this for functions which it implements
32429 to always fail with ENOSYS. Some functions are actually named
32430 something starting with __ and the normal name is an alias. */
32431#if defined __stub_$ac_func || defined __stub___$ac_func
32432choke me
32433#endif
32434
32435int
32436main ()
32437{
32438return $ac_func ();
32439 ;
32440 return 0;
32441}
32442_ACEOF
32443rm -f conftest.$ac_objext conftest$ac_exeext
32444if { (ac_try="$ac_link"
32445case "(($ac_try" in
32446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32447 *) ac_try_echo=$ac_try;;
32448esac
32449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32450 (eval "$ac_link") 2>conftest.er1
32451 ac_status=$?
32452 grep -v '^ *+' conftest.er1 >conftest.err
32453 rm -f conftest.er1
32454 cat conftest.err >&5
32455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32456 (exit $ac_status); } && {
32457 test -z "$ac_c_werror_flag" ||
32458 test ! -s conftest.err
32459 } && test -s conftest$ac_exeext &&
32460 $as_test_x conftest$ac_exeext; then
32461 eval "$as_ac_var=yes"
32462else
32463 echo "$as_me: failed program was:" >&5
32464sed 's/^/| /' conftest.$ac_ext >&5
32465
32466 eval "$as_ac_var=no"
32467fi
32468
32469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32470 conftest$ac_exeext conftest.$ac_ext
32471fi
32472ac_res=`eval echo '${'$as_ac_var'}'`
32473 { echo "$as_me:$LINENO: result: $ac_res" >&5
32474echo "${ECHO_T}$ac_res" >&6; }
32475if test `eval echo '${'$as_ac_var'}'` = yes; then
32476 cat >>confdefs.h <<_ACEOF
32477#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32478_ACEOF
32479
32480fi
32481done
32482
32483 LIBS="$save_LIBS"
32484 fi
32485
32486fi
32487
32488
32489
32490
32491# Check whether user wants Kerberos 5 support
32492KRB5_MSG="no"
32493
32494# Check whether --with-kerberos5 was given.
32495if test "${with_kerberos5+set}" = set; then
32496 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
32497 if test "x$withval" = "xyes" ; then
32498 KRB5ROOT="/usr/local"
32499 else
32500 KRB5ROOT=${withval}
32501 fi
32502
32503
32504cat >>confdefs.h <<\_ACEOF
32505#define KRB5 1
32506_ACEOF
32507
32508 KRB5_MSG="yes"
32509
32510 # Extract the first word of "krb5-config", so it can be a program name with args.
32511set dummy krb5-config; ac_word=$2
32512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
32513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32514if test "${ac_cv_path_KRB5CONF+set}" = set; then
32515 echo $ECHO_N "(cached) $ECHO_C" >&6
32516else
32517 case $KRB5CONF in
32518 [\\/]* | ?:[\\/]*)
32519 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
32520 ;;
32521 *)
32522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32523as_dummy="$KRB5ROOT/bin:$PATH"
32524for as_dir in $as_dummy
32525do
32526 IFS=$as_save_IFS
32527 test -z "$as_dir" && as_dir=.
32528 for ac_exec_ext in '' $ac_executable_extensions; do
32529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32530 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
32531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32532 break 2
32533 fi
32534done
32535done
32536IFS=$as_save_IFS
32537
32538 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
32539 ;;
32540esac
32541fi
32542KRB5CONF=$ac_cv_path_KRB5CONF
32543if test -n "$KRB5CONF"; then
32544 { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
32545echo "${ECHO_T}$KRB5CONF" >&6; }
32546else
32547 { echo "$as_me:$LINENO: result: no" >&5
32548echo "${ECHO_T}no" >&6; }
32549fi
32550
32551
32552 if test -x $KRB5CONF ; then
32553 K5CFLAGS="`$KRB5CONF --cflags`"
32554 K5LIBS="`$KRB5CONF --libs`"
32555 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
32556
32557 { echo "$as_me:$LINENO: checking for gssapi support" >&5
32558echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
32559 if $KRB5CONF | grep gssapi >/dev/null ; then
32560 { echo "$as_me:$LINENO: result: yes" >&5
32561echo "${ECHO_T}yes" >&6; }
32562
32563cat >>confdefs.h <<\_ACEOF
32564#define GSSAPI 1
32565_ACEOF
32566
32567 GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
32568 GSSLIBS="`$KRB5CONF --libs gssapi`"
32569 CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
32570 else
32571 { echo "$as_me:$LINENO: result: no" >&5
32572echo "${ECHO_T}no" >&6; }
32573 fi
32574 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
32575echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
32576 cat >conftest.$ac_ext <<_ACEOF
32577/* confdefs.h. */
32578_ACEOF
32579cat confdefs.h >>conftest.$ac_ext
32580cat >>conftest.$ac_ext <<_ACEOF
32581/* end confdefs.h. */
32582 #include <krb5.h>
32583
32584int
32585main ()
32586{
32587 char *tmp = heimdal_version;
32588 ;
32589 return 0;
32590}
32591_ACEOF
32592rm -f conftest.$ac_objext
32593if { (ac_try="$ac_compile"
32594case "(($ac_try" in
32595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32596 *) ac_try_echo=$ac_try;;
32597esac
32598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32599 (eval "$ac_compile") 2>conftest.er1
32600 ac_status=$?
32601 grep -v '^ *+' conftest.er1 >conftest.err
32602 rm -f conftest.er1
32603 cat conftest.err >&5
32604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605 (exit $ac_status); } && {
32606 test -z "$ac_c_werror_flag" ||
32607 test ! -s conftest.err
32608 } && test -s conftest.$ac_objext; then
32609 { echo "$as_me:$LINENO: result: yes" >&5
32610echo "${ECHO_T}yes" >&6; }
32611
32612cat >>confdefs.h <<\_ACEOF
32613#define HEIMDAL 1
32614_ACEOF
32615
32616else
32617 echo "$as_me: failed program was:" >&5
32618sed 's/^/| /' conftest.$ac_ext >&5
32619
32620 { echo "$as_me:$LINENO: result: no" >&5
32621echo "${ECHO_T}no" >&6; }
32622
32623fi
32624
32625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32626 else
32627 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
32628 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
32629 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
32630echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
32631 cat >conftest.$ac_ext <<_ACEOF
32632/* confdefs.h. */
32633_ACEOF
32634cat confdefs.h >>conftest.$ac_ext
32635cat >>conftest.$ac_ext <<_ACEOF
32636/* end confdefs.h. */
32637 #include <krb5.h>
32638
32639int
32640main ()
32641{
32642 char *tmp = heimdal_version;
32643 ;
32644 return 0;
32645}
32646_ACEOF
32647rm -f conftest.$ac_objext
32648if { (ac_try="$ac_compile"
32649case "(($ac_try" in
32650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32651 *) ac_try_echo=$ac_try;;
32652esac
32653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32654 (eval "$ac_compile") 2>conftest.er1
32655 ac_status=$?
32656 grep -v '^ *+' conftest.er1 >conftest.err
32657 rm -f conftest.er1
32658 cat conftest.err >&5
32659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); } && {
32661 test -z "$ac_c_werror_flag" ||
32662 test ! -s conftest.err
32663 } && test -s conftest.$ac_objext; then
32664 { echo "$as_me:$LINENO: result: yes" >&5
32665echo "${ECHO_T}yes" >&6; }
32666 cat >>confdefs.h <<\_ACEOF
32667#define HEIMDAL 1
32668_ACEOF
32669
32670 K5LIBS="-lkrb5"
32671 K5LIBS="$K5LIBS -lcom_err -lasn1"
32672 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
32673echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
32674if test "${ac_cv_lib_roken_net_write+set}" = set; then
32675 echo $ECHO_N "(cached) $ECHO_C" >&6
32676else
32677 ac_check_lib_save_LIBS=$LIBS
32678LIBS="-lroken $LIBS"
32679cat >conftest.$ac_ext <<_ACEOF
32680/* confdefs.h. */
32681_ACEOF
32682cat confdefs.h >>conftest.$ac_ext
32683cat >>conftest.$ac_ext <<_ACEOF
32684/* end confdefs.h. */
32685
32686/* Override any GCC internal prototype to avoid an error.
32687 Use char because int might match the return type of a GCC
32688 builtin and then its argument prototype would still apply. */
32689#ifdef __cplusplus
32690extern "C"
32691#endif
32692char net_write ();
32693int
32694main ()
32695{
32696return net_write ();
32697 ;
32698 return 0;
32699}
32700_ACEOF
32701rm -f conftest.$ac_objext conftest$ac_exeext
32702if { (ac_try="$ac_link"
32703case "(($ac_try" in
32704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705 *) ac_try_echo=$ac_try;;
32706esac
32707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708 (eval "$ac_link") 2>conftest.er1
32709 ac_status=$?
32710 grep -v '^ *+' conftest.er1 >conftest.err
32711 rm -f conftest.er1
32712 cat conftest.err >&5
32713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32714 (exit $ac_status); } && {
32715 test -z "$ac_c_werror_flag" ||
32716 test ! -s conftest.err
32717 } && test -s conftest$ac_exeext &&
32718 $as_test_x conftest$ac_exeext; then
32719 ac_cv_lib_roken_net_write=yes
32720else
32721 echo "$as_me: failed program was:" >&5
32722sed 's/^/| /' conftest.$ac_ext >&5
32723
32724 ac_cv_lib_roken_net_write=no
32725fi
32726
32727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32728 conftest$ac_exeext conftest.$ac_ext
32729LIBS=$ac_check_lib_save_LIBS
32730fi
32731{ echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
32732echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
32733if test $ac_cv_lib_roken_net_write = yes; then
32734 K5LIBS="$K5LIBS -lroken"
32735fi
32736
32737 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
32738echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
32739if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
32740 echo $ECHO_N "(cached) $ECHO_C" >&6
32741else
32742 ac_check_lib_save_LIBS=$LIBS
32743LIBS="-ldes $LIBS"
32744cat >conftest.$ac_ext <<_ACEOF
32745/* confdefs.h. */
32746_ACEOF
32747cat confdefs.h >>conftest.$ac_ext
32748cat >>conftest.$ac_ext <<_ACEOF
32749/* end confdefs.h. */
32750
32751/* Override any GCC internal prototype to avoid an error.
32752 Use char because int might match the return type of a GCC
32753 builtin and then its argument prototype would still apply. */
32754#ifdef __cplusplus
32755extern "C"
32756#endif
32757char des_cbc_encrypt ();
32758int
32759main ()
32760{
32761return des_cbc_encrypt ();
32762 ;
32763 return 0;
32764}
32765_ACEOF
32766rm -f conftest.$ac_objext conftest$ac_exeext
32767if { (ac_try="$ac_link"
32768case "(($ac_try" in
32769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32770 *) ac_try_echo=$ac_try;;
32771esac
32772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32773 (eval "$ac_link") 2>conftest.er1
32774 ac_status=$?
32775 grep -v '^ *+' conftest.er1 >conftest.err
32776 rm -f conftest.er1
32777 cat conftest.err >&5
32778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779 (exit $ac_status); } && {
32780 test -z "$ac_c_werror_flag" ||
32781 test ! -s conftest.err
32782 } && test -s conftest$ac_exeext &&
32783 $as_test_x conftest$ac_exeext; then
32784 ac_cv_lib_des_des_cbc_encrypt=yes
32785else
32786 echo "$as_me: failed program was:" >&5
32787sed 's/^/| /' conftest.$ac_ext >&5
32788
32789 ac_cv_lib_des_des_cbc_encrypt=no
32790fi
32791
32792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32793 conftest$ac_exeext conftest.$ac_ext
32794LIBS=$ac_check_lib_save_LIBS
32795fi
32796{ echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
32797echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
32798if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
32799 K5LIBS="$K5LIBS -ldes"
32800fi
32801
32802
32803else
32804 echo "$as_me: failed program was:" >&5
32805sed 's/^/| /' conftest.$ac_ext >&5
32806
32807 { echo "$as_me:$LINENO: result: no" >&5
32808echo "${ECHO_T}no" >&6; }
32809 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
32810
32811
32812fi
32813
32814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32815 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
32816echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
32817if test "${ac_cv_search_dn_expand+set}" = set; then
32818 echo $ECHO_N "(cached) $ECHO_C" >&6
32819else
32820 ac_func_search_save_LIBS=$LIBS
32821cat >conftest.$ac_ext <<_ACEOF
32822/* confdefs.h. */
32823_ACEOF
32824cat confdefs.h >>conftest.$ac_ext
32825cat >>conftest.$ac_ext <<_ACEOF
32826/* end confdefs.h. */
32827
32828/* Override any GCC internal prototype to avoid an error.
32829 Use char because int might match the return type of a GCC
32830 builtin and then its argument prototype would still apply. */
32831#ifdef __cplusplus
32832extern "C"
32833#endif
32834char dn_expand ();
32835int
32836main ()
32837{
32838return dn_expand ();
32839 ;
32840 return 0;
32841}
32842_ACEOF
32843for ac_lib in '' resolv; do
32844 if test -z "$ac_lib"; then
32845 ac_res="none required"
32846 else
32847 ac_res=-l$ac_lib
32848 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32849 fi
32850 rm -f conftest.$ac_objext conftest$ac_exeext
32851if { (ac_try="$ac_link"
32852case "(($ac_try" in
32853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32854 *) ac_try_echo=$ac_try;;
32855esac
32856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32857 (eval "$ac_link") 2>conftest.er1
32858 ac_status=$?
32859 grep -v '^ *+' conftest.er1 >conftest.err
32860 rm -f conftest.er1
32861 cat conftest.err >&5
32862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32863 (exit $ac_status); } && {
32864 test -z "$ac_c_werror_flag" ||
32865 test ! -s conftest.err
32866 } && test -s conftest$ac_exeext &&
32867 $as_test_x conftest$ac_exeext; then
32868 ac_cv_search_dn_expand=$ac_res
32869else
32870 echo "$as_me: failed program was:" >&5
32871sed 's/^/| /' conftest.$ac_ext >&5
32872
32873
32874fi
32875
32876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32877 conftest$ac_exeext
32878 if test "${ac_cv_search_dn_expand+set}" = set; then
32879 break
32880fi
32881done
32882if test "${ac_cv_search_dn_expand+set}" = set; then
32883 :
32884else
32885 ac_cv_search_dn_expand=no
32886fi
32887rm conftest.$ac_ext
32888LIBS=$ac_func_search_save_LIBS
32889fi
32890{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
32891echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
32892ac_res=$ac_cv_search_dn_expand
32893if test "$ac_res" != no; then
32894 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32895
32896fi
32897
32898
32899 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
32900echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
32901if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
32902 echo $ECHO_N "(cached) $ECHO_C" >&6
32903else
32904 ac_check_lib_save_LIBS=$LIBS
32905LIBS="-lgssapi_krb5 $LIBS"
32906cat >conftest.$ac_ext <<_ACEOF
32907/* confdefs.h. */
32908_ACEOF
32909cat confdefs.h >>conftest.$ac_ext
32910cat >>conftest.$ac_ext <<_ACEOF
32911/* end confdefs.h. */
32912
32913/* Override any GCC internal prototype to avoid an error.
32914 Use char because int might match the return type of a GCC
32915 builtin and then its argument prototype would still apply. */
32916#ifdef __cplusplus
32917extern "C"
32918#endif
32919char gss_init_sec_context ();
32920int
32921main ()
32922{
32923return gss_init_sec_context ();
32924 ;
32925 return 0;
32926}
32927_ACEOF
32928rm -f conftest.$ac_objext conftest$ac_exeext
32929if { (ac_try="$ac_link"
32930case "(($ac_try" in
32931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32932 *) ac_try_echo=$ac_try;;
32933esac
32934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32935 (eval "$ac_link") 2>conftest.er1
32936 ac_status=$?
32937 grep -v '^ *+' conftest.er1 >conftest.err
32938 rm -f conftest.er1
32939 cat conftest.err >&5
32940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32941 (exit $ac_status); } && {
32942 test -z "$ac_c_werror_flag" ||
32943 test ! -s conftest.err
32944 } && test -s conftest$ac_exeext &&
32945 $as_test_x conftest$ac_exeext; then
32946 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
32947else
32948 echo "$as_me: failed program was:" >&5
32949sed 's/^/| /' conftest.$ac_ext >&5
32950
32951 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
32952fi
32953
32954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32955 conftest$ac_exeext conftest.$ac_ext
32956LIBS=$ac_check_lib_save_LIBS
32957fi
32958{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
32959echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
32960if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
32961 cat >>confdefs.h <<\_ACEOF
32962#define GSSAPI 1
32963_ACEOF
32964
32965 GSSLIBS="-lgssapi_krb5"
32966else
32967 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
32968echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
32969if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
32970 echo $ECHO_N "(cached) $ECHO_C" >&6
32971else
32972 ac_check_lib_save_LIBS=$LIBS
32973LIBS="-lgssapi $LIBS"
32974cat >conftest.$ac_ext <<_ACEOF
32975/* confdefs.h. */
32976_ACEOF
32977cat confdefs.h >>conftest.$ac_ext
32978cat >>conftest.$ac_ext <<_ACEOF
32979/* end confdefs.h. */
32980
32981/* Override any GCC internal prototype to avoid an error.
32982 Use char because int might match the return type of a GCC
32983 builtin and then its argument prototype would still apply. */
32984#ifdef __cplusplus
32985extern "C"
32986#endif
32987char gss_init_sec_context ();
32988int
32989main ()
32990{
32991return gss_init_sec_context ();
32992 ;
32993 return 0;
32994}
32995_ACEOF
32996rm -f conftest.$ac_objext conftest$ac_exeext
32997if { (ac_try="$ac_link"
32998case "(($ac_try" in
32999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33000 *) ac_try_echo=$ac_try;;
33001esac
33002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33003 (eval "$ac_link") 2>conftest.er1
33004 ac_status=$?
33005 grep -v '^ *+' conftest.er1 >conftest.err
33006 rm -f conftest.er1
33007 cat conftest.err >&5
33008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009 (exit $ac_status); } && {
33010 test -z "$ac_c_werror_flag" ||
33011 test ! -s conftest.err
33012 } && test -s conftest$ac_exeext &&
33013 $as_test_x conftest$ac_exeext; then
33014 ac_cv_lib_gssapi_gss_init_sec_context=yes
33015else
33016 echo "$as_me: failed program was:" >&5
33017sed 's/^/| /' conftest.$ac_ext >&5
33018
33019 ac_cv_lib_gssapi_gss_init_sec_context=no
33020fi
33021
33022rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33023 conftest$ac_exeext conftest.$ac_ext
33024LIBS=$ac_check_lib_save_LIBS
33025fi
33026{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
33027echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
33028if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
33029 cat >>confdefs.h <<\_ACEOF
33030#define GSSAPI 1
33031_ACEOF
33032
33033 GSSLIBS="-lgssapi"
33034else
33035 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgss" >&5
33036echo $ECHO_N "checking for gss_init_sec_context in -lgss... $ECHO_C" >&6; }
33037if test "${ac_cv_lib_gss_gss_init_sec_context+set}" = set; then
33038 echo $ECHO_N "(cached) $ECHO_C" >&6
33039else
33040 ac_check_lib_save_LIBS=$LIBS
33041LIBS="-lgss $LIBS"
33042cat >conftest.$ac_ext <<_ACEOF
33043/* confdefs.h. */
33044_ACEOF
33045cat confdefs.h >>conftest.$ac_ext
33046cat >>conftest.$ac_ext <<_ACEOF
33047/* end confdefs.h. */
33048
33049/* Override any GCC internal prototype to avoid an error.
33050 Use char because int might match the return type of a GCC
33051 builtin and then its argument prototype would still apply. */
33052#ifdef __cplusplus
33053extern "C"
33054#endif
33055char gss_init_sec_context ();
33056int
33057main ()
33058{
33059return gss_init_sec_context ();
33060 ;
33061 return 0;
33062}
33063_ACEOF
33064rm -f conftest.$ac_objext conftest$ac_exeext
33065if { (ac_try="$ac_link"
33066case "(($ac_try" in
33067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33068 *) ac_try_echo=$ac_try;;
33069esac
33070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33071 (eval "$ac_link") 2>conftest.er1
33072 ac_status=$?
33073 grep -v '^ *+' conftest.er1 >conftest.err
33074 rm -f conftest.er1
33075 cat conftest.err >&5
33076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33077 (exit $ac_status); } && {
33078 test -z "$ac_c_werror_flag" ||
33079 test ! -s conftest.err
33080 } && test -s conftest$ac_exeext &&
33081 $as_test_x conftest$ac_exeext; then
33082 ac_cv_lib_gss_gss_init_sec_context=yes
33083else
33084 echo "$as_me: failed program was:" >&5
33085sed 's/^/| /' conftest.$ac_ext >&5
33086
33087 ac_cv_lib_gss_gss_init_sec_context=no
33088fi
33089
33090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33091 conftest$ac_exeext conftest.$ac_ext
33092LIBS=$ac_check_lib_save_LIBS
33093fi
33094{ echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_init_sec_context" >&5
33095echo "${ECHO_T}$ac_cv_lib_gss_gss_init_sec_context" >&6; }
33096if test $ac_cv_lib_gss_gss_init_sec_context = yes; then
33097 cat >>confdefs.h <<\_ACEOF
33098#define GSSAPI 1
33099_ACEOF
33100
33101 GSSLIBS="-lgss"
33102else
33103 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
33104echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
33105fi
33106
33107
33108fi
33109
33110
33111fi
33112
33113
33114 if test "${ac_cv_header_gssapi_h+set}" = set; then
33115 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
33116echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
33117if test "${ac_cv_header_gssapi_h+set}" = set; then
33118 echo $ECHO_N "(cached) $ECHO_C" >&6
33119fi
33120{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
33121echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
33122else
33123 # Is the header compilable?
33124{ echo "$as_me:$LINENO: checking gssapi.h usability" >&5
33125echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
33126cat >conftest.$ac_ext <<_ACEOF
33127/* confdefs.h. */
33128_ACEOF
33129cat confdefs.h >>conftest.$ac_ext
33130cat >>conftest.$ac_ext <<_ACEOF
33131/* end confdefs.h. */
33132$ac_includes_default
33133#include <gssapi.h>
33134_ACEOF
33135rm -f conftest.$ac_objext
33136if { (ac_try="$ac_compile"
33137case "(($ac_try" in
33138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33139 *) ac_try_echo=$ac_try;;
33140esac
33141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33142 (eval "$ac_compile") 2>conftest.er1
33143 ac_status=$?
33144 grep -v '^ *+' conftest.er1 >conftest.err
33145 rm -f conftest.er1
33146 cat conftest.err >&5
33147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148 (exit $ac_status); } && {
33149 test -z "$ac_c_werror_flag" ||
33150 test ! -s conftest.err
33151 } && test -s conftest.$ac_objext; then
33152 ac_header_compiler=yes
33153else
33154 echo "$as_me: failed program was:" >&5
33155sed 's/^/| /' conftest.$ac_ext >&5
33156
33157 ac_header_compiler=no
33158fi
33159
33160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33161{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33162echo "${ECHO_T}$ac_header_compiler" >&6; }
33163
33164# Is the header present?
33165{ echo "$as_me:$LINENO: checking gssapi.h presence" >&5
33166echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
33167cat >conftest.$ac_ext <<_ACEOF
33168/* confdefs.h. */
33169_ACEOF
33170cat confdefs.h >>conftest.$ac_ext
33171cat >>conftest.$ac_ext <<_ACEOF
33172/* end confdefs.h. */
33173#include <gssapi.h>
33174_ACEOF
33175if { (ac_try="$ac_cpp conftest.$ac_ext"
33176case "(($ac_try" in
33177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33178 *) ac_try_echo=$ac_try;;
33179esac
33180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33182 ac_status=$?
33183 grep -v '^ *+' conftest.er1 >conftest.err
33184 rm -f conftest.er1
33185 cat conftest.err >&5
33186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187 (exit $ac_status); } >/dev/null && {
33188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33189 test ! -s conftest.err
33190 }; then
33191 ac_header_preproc=yes
33192else
33193 echo "$as_me: failed program was:" >&5
33194sed 's/^/| /' conftest.$ac_ext >&5
33195
33196 ac_header_preproc=no
33197fi
33198
33199rm -f conftest.err conftest.$ac_ext
33200{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33201echo "${ECHO_T}$ac_header_preproc" >&6; }
33202
33203# So? What about this header?
33204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33205 yes:no: )
33206 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
33207echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33208 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
33209echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
33210 ac_header_preproc=yes
33211 ;;
33212 no:yes:* )
33213 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
33214echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
33215 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
33216echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
33217 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
33218echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
33219 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
33220echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
33221 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
33222echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
33223 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
33224echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
33225 ( cat <<\_ASBOX
33226## ------------------------------------------- ##
33227## Report this to openssh-unix-dev@mindrot.org ##
33228## ------------------------------------------- ##
33229_ASBOX
33230 ) | sed "s/^/$as_me: WARNING: /" >&2
33231 ;;
33232esac
33233{ echo "$as_me:$LINENO: checking for gssapi.h" >&5
33234echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
33235if test "${ac_cv_header_gssapi_h+set}" = set; then
33236 echo $ECHO_N "(cached) $ECHO_C" >&6
33237else
33238 ac_cv_header_gssapi_h=$ac_header_preproc
33239fi
33240{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
33241echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
33242
33243fi
33244if test $ac_cv_header_gssapi_h = yes; then
33245 :
33246else
33247 unset ac_cv_header_gssapi_h
33248 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
33249
33250for ac_header in gssapi.h
33251do
33252as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33253if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33257 echo $ECHO_N "(cached) $ECHO_C" >&6
33258fi
33259ac_res=`eval echo '${'$as_ac_Header'}'`
33260 { echo "$as_me:$LINENO: result: $ac_res" >&5
33261echo "${ECHO_T}$ac_res" >&6; }
33262else
33263 # Is the header compilable?
33264{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33265echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33266cat >conftest.$ac_ext <<_ACEOF
33267/* confdefs.h. */
33268_ACEOF
33269cat confdefs.h >>conftest.$ac_ext
33270cat >>conftest.$ac_ext <<_ACEOF
33271/* end confdefs.h. */
33272$ac_includes_default
33273#include <$ac_header>
33274_ACEOF
33275rm -f conftest.$ac_objext
33276if { (ac_try="$ac_compile"
33277case "(($ac_try" in
33278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33279 *) ac_try_echo=$ac_try;;
33280esac
33281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33282 (eval "$ac_compile") 2>conftest.er1
33283 ac_status=$?
33284 grep -v '^ *+' conftest.er1 >conftest.err
33285 rm -f conftest.er1
33286 cat conftest.err >&5
33287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288 (exit $ac_status); } && {
33289 test -z "$ac_c_werror_flag" ||
33290 test ! -s conftest.err
33291 } && test -s conftest.$ac_objext; then
33292 ac_header_compiler=yes
33293else
33294 echo "$as_me: failed program was:" >&5
33295sed 's/^/| /' conftest.$ac_ext >&5
33296
33297 ac_header_compiler=no
33298fi
33299
33300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33301{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33302echo "${ECHO_T}$ac_header_compiler" >&6; }
33303
33304# Is the header present?
33305{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33307cat >conftest.$ac_ext <<_ACEOF
33308/* confdefs.h. */
33309_ACEOF
33310cat confdefs.h >>conftest.$ac_ext
33311cat >>conftest.$ac_ext <<_ACEOF
33312/* end confdefs.h. */
33313#include <$ac_header>
33314_ACEOF
33315if { (ac_try="$ac_cpp conftest.$ac_ext"
33316case "(($ac_try" in
33317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33318 *) ac_try_echo=$ac_try;;
33319esac
33320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33322 ac_status=$?
33323 grep -v '^ *+' conftest.er1 >conftest.err
33324 rm -f conftest.er1
33325 cat conftest.err >&5
33326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33327 (exit $ac_status); } >/dev/null && {
33328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33329 test ! -s conftest.err
33330 }; then
33331 ac_header_preproc=yes
33332else
33333 echo "$as_me: failed program was:" >&5
33334sed 's/^/| /' conftest.$ac_ext >&5
33335
33336 ac_header_preproc=no
33337fi
33338
33339rm -f conftest.err conftest.$ac_ext
33340{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33341echo "${ECHO_T}$ac_header_preproc" >&6; }
33342
33343# So? What about this header?
33344case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33345 yes:no: )
33346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33347echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33349echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33350 ac_header_preproc=yes
33351 ;;
33352 no:yes:* )
33353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33354echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33356echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33358echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33360echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33362echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33364echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33365 ( cat <<\_ASBOX
33366## ------------------------------------------- ##
33367## Report this to openssh-unix-dev@mindrot.org ##
33368## ------------------------------------------- ##
33369_ASBOX
33370 ) | sed "s/^/$as_me: WARNING: /" >&2
33371 ;;
33372esac
33373{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33376 echo $ECHO_N "(cached) $ECHO_C" >&6
33377else
33378 eval "$as_ac_Header=\$ac_header_preproc"
33379fi
33380ac_res=`eval echo '${'$as_ac_Header'}'`
33381 { echo "$as_me:$LINENO: result: $ac_res" >&5
33382echo "${ECHO_T}$ac_res" >&6; }
33383
33384fi
33385if test `eval echo '${'$as_ac_Header'}'` = yes; then
33386 cat >>confdefs.h <<_ACEOF
33387#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33388_ACEOF
33389
33390else
33391 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
33392echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
33393
33394fi
33395
33396done
33397
33398
33399
33400fi
33401
33402
33403
33404 oldCPP="$CPPFLAGS"
33405 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
33406 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
33407 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
33408echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
33409if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
33410 echo $ECHO_N "(cached) $ECHO_C" >&6
33411fi
33412{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
33413echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
33414else
33415 # Is the header compilable?
33416{ echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
33417echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
33418cat >conftest.$ac_ext <<_ACEOF
33419/* confdefs.h. */
33420_ACEOF
33421cat confdefs.h >>conftest.$ac_ext
33422cat >>conftest.$ac_ext <<_ACEOF
33423/* end confdefs.h. */
33424$ac_includes_default
33425#include <gssapi_krb5.h>
33426_ACEOF
33427rm -f conftest.$ac_objext
33428if { (ac_try="$ac_compile"
33429case "(($ac_try" in
33430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33431 *) ac_try_echo=$ac_try;;
33432esac
33433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33434 (eval "$ac_compile") 2>conftest.er1
33435 ac_status=$?
33436 grep -v '^ *+' conftest.er1 >conftest.err
33437 rm -f conftest.er1
33438 cat conftest.err >&5
33439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440 (exit $ac_status); } && {
33441 test -z "$ac_c_werror_flag" ||
33442 test ! -s conftest.err
33443 } && test -s conftest.$ac_objext; then
33444 ac_header_compiler=yes
33445else
33446 echo "$as_me: failed program was:" >&5
33447sed 's/^/| /' conftest.$ac_ext >&5
33448
33449 ac_header_compiler=no
33450fi
33451
33452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33453{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33454echo "${ECHO_T}$ac_header_compiler" >&6; }
33455
33456# Is the header present?
33457{ echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
33458echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
33459cat >conftest.$ac_ext <<_ACEOF
33460/* confdefs.h. */
33461_ACEOF
33462cat confdefs.h >>conftest.$ac_ext
33463cat >>conftest.$ac_ext <<_ACEOF
33464/* end confdefs.h. */
33465#include <gssapi_krb5.h>
33466_ACEOF
33467if { (ac_try="$ac_cpp conftest.$ac_ext"
33468case "(($ac_try" in
33469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33470 *) ac_try_echo=$ac_try;;
33471esac
33472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33474 ac_status=$?
33475 grep -v '^ *+' conftest.er1 >conftest.err
33476 rm -f conftest.er1
33477 cat conftest.err >&5
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); } >/dev/null && {
33480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33481 test ! -s conftest.err
33482 }; then
33483 ac_header_preproc=yes
33484else
33485 echo "$as_me: failed program was:" >&5
33486sed 's/^/| /' conftest.$ac_ext >&5
33487
33488 ac_header_preproc=no
33489fi
33490
33491rm -f conftest.err conftest.$ac_ext
33492{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33493echo "${ECHO_T}$ac_header_preproc" >&6; }
33494
33495# So? What about this header?
33496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33497 yes:no: )
33498 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
33499echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33500 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
33501echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
33502 ac_header_preproc=yes
33503 ;;
33504 no:yes:* )
33505 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
33506echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
33507 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
33508echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
33509 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
33510echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
33511 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
33512echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
33513 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
33514echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
33515 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
33516echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
33517 ( cat <<\_ASBOX
33518## ------------------------------------------- ##
33519## Report this to openssh-unix-dev@mindrot.org ##
33520## ------------------------------------------- ##
33521_ASBOX
33522 ) | sed "s/^/$as_me: WARNING: /" >&2
33523 ;;
33524esac
33525{ echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
33526echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
33527if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
33528 echo $ECHO_N "(cached) $ECHO_C" >&6
33529else
33530 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
33531fi
33532{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
33533echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
33534
33535fi
33536if test $ac_cv_header_gssapi_krb5_h = yes; then
33537 :
33538else
33539 CPPFLAGS="$oldCPP"
33540fi
33541
33542
33543
33544 fi
33545 if test ! -z "$need_dash_r" ; then
33546 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
33547 fi
33548 if test ! -z "$blibpath" ; then
33549 blibpath="$blibpath:${KRB5ROOT}/lib"
33550 fi
33551
33552
33553
33554for ac_header in gssapi.h gssapi/gssapi.h
33555do
33556as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33561 echo $ECHO_N "(cached) $ECHO_C" >&6
33562fi
33563ac_res=`eval echo '${'$as_ac_Header'}'`
33564 { echo "$as_me:$LINENO: result: $ac_res" >&5
33565echo "${ECHO_T}$ac_res" >&6; }
33566else
33567 # Is the header compilable?
33568{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33569echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33570cat >conftest.$ac_ext <<_ACEOF
33571/* confdefs.h. */
33572_ACEOF
33573cat confdefs.h >>conftest.$ac_ext
33574cat >>conftest.$ac_ext <<_ACEOF
33575/* end confdefs.h. */
33576$ac_includes_default
33577#include <$ac_header>
33578_ACEOF
33579rm -f conftest.$ac_objext
33580if { (ac_try="$ac_compile"
33581case "(($ac_try" in
33582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33583 *) ac_try_echo=$ac_try;;
33584esac
33585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33586 (eval "$ac_compile") 2>conftest.er1
33587 ac_status=$?
33588 grep -v '^ *+' conftest.er1 >conftest.err
33589 rm -f conftest.er1
33590 cat conftest.err >&5
33591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592 (exit $ac_status); } && {
33593 test -z "$ac_c_werror_flag" ||
33594 test ! -s conftest.err
33595 } && test -s conftest.$ac_objext; then
33596 ac_header_compiler=yes
33597else
33598 echo "$as_me: failed program was:" >&5
33599sed 's/^/| /' conftest.$ac_ext >&5
33600
33601 ac_header_compiler=no
33602fi
33603
33604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33605{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33606echo "${ECHO_T}$ac_header_compiler" >&6; }
33607
33608# Is the header present?
33609{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33610echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33611cat >conftest.$ac_ext <<_ACEOF
33612/* confdefs.h. */
33613_ACEOF
33614cat confdefs.h >>conftest.$ac_ext
33615cat >>conftest.$ac_ext <<_ACEOF
33616/* end confdefs.h. */
33617#include <$ac_header>
33618_ACEOF
33619if { (ac_try="$ac_cpp conftest.$ac_ext"
33620case "(($ac_try" in
33621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33622 *) ac_try_echo=$ac_try;;
33623esac
33624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33626 ac_status=$?
33627 grep -v '^ *+' conftest.er1 >conftest.err
33628 rm -f conftest.er1
33629 cat conftest.err >&5
33630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631 (exit $ac_status); } >/dev/null && {
33632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33633 test ! -s conftest.err
33634 }; then
33635 ac_header_preproc=yes
33636else
33637 echo "$as_me: failed program was:" >&5
33638sed 's/^/| /' conftest.$ac_ext >&5
33639
33640 ac_header_preproc=no
33641fi
33642
33643rm -f conftest.err conftest.$ac_ext
33644{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33645echo "${ECHO_T}$ac_header_preproc" >&6; }
33646
33647# So? What about this header?
33648case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33649 yes:no: )
33650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33651echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33653echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33654 ac_header_preproc=yes
33655 ;;
33656 no:yes:* )
33657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33658echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33660echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33662echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33664echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33666echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33668echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33669 ( cat <<\_ASBOX
33670## ------------------------------------------- ##
33671## Report this to openssh-unix-dev@mindrot.org ##
33672## ------------------------------------------- ##
33673_ASBOX
33674 ) | sed "s/^/$as_me: WARNING: /" >&2
33675 ;;
33676esac
33677{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33679if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33680 echo $ECHO_N "(cached) $ECHO_C" >&6
33681else
33682 eval "$as_ac_Header=\$ac_header_preproc"
33683fi
33684ac_res=`eval echo '${'$as_ac_Header'}'`
33685 { echo "$as_me:$LINENO: result: $ac_res" >&5
33686echo "${ECHO_T}$ac_res" >&6; }
33687
33688fi
33689if test `eval echo '${'$as_ac_Header'}'` = yes; then
33690 cat >>confdefs.h <<_ACEOF
33691#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33692_ACEOF
33693
33694fi
33695
33696done
33697
33698
33699
33700for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
33701do
33702as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33707 echo $ECHO_N "(cached) $ECHO_C" >&6
33708fi
33709ac_res=`eval echo '${'$as_ac_Header'}'`
33710 { echo "$as_me:$LINENO: result: $ac_res" >&5
33711echo "${ECHO_T}$ac_res" >&6; }
33712else
33713 # Is the header compilable?
33714{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33715echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33716cat >conftest.$ac_ext <<_ACEOF
33717/* confdefs.h. */
33718_ACEOF
33719cat confdefs.h >>conftest.$ac_ext
33720cat >>conftest.$ac_ext <<_ACEOF
33721/* end confdefs.h. */
33722$ac_includes_default
33723#include <$ac_header>
33724_ACEOF
33725rm -f conftest.$ac_objext
33726if { (ac_try="$ac_compile"
33727case "(($ac_try" in
33728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33729 *) ac_try_echo=$ac_try;;
33730esac
33731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33732 (eval "$ac_compile") 2>conftest.er1
33733 ac_status=$?
33734 grep -v '^ *+' conftest.er1 >conftest.err
33735 rm -f conftest.er1
33736 cat conftest.err >&5
33737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33738 (exit $ac_status); } && {
33739 test -z "$ac_c_werror_flag" ||
33740 test ! -s conftest.err
33741 } && test -s conftest.$ac_objext; then
33742 ac_header_compiler=yes
33743else
33744 echo "$as_me: failed program was:" >&5
33745sed 's/^/| /' conftest.$ac_ext >&5
33746
33747 ac_header_compiler=no
33748fi
33749
33750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33751{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33752echo "${ECHO_T}$ac_header_compiler" >&6; }
33753
33754# Is the header present?
33755{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33756echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33757cat >conftest.$ac_ext <<_ACEOF
33758/* confdefs.h. */
33759_ACEOF
33760cat confdefs.h >>conftest.$ac_ext
33761cat >>conftest.$ac_ext <<_ACEOF
33762/* end confdefs.h. */
33763#include <$ac_header>
33764_ACEOF
33765if { (ac_try="$ac_cpp conftest.$ac_ext"
33766case "(($ac_try" in
33767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33768 *) ac_try_echo=$ac_try;;
33769esac
33770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33772 ac_status=$?
33773 grep -v '^ *+' conftest.er1 >conftest.err
33774 rm -f conftest.er1
33775 cat conftest.err >&5
33776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33777 (exit $ac_status); } >/dev/null && {
33778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33779 test ! -s conftest.err
33780 }; then
33781 ac_header_preproc=yes
33782else
33783 echo "$as_me: failed program was:" >&5
33784sed 's/^/| /' conftest.$ac_ext >&5
33785
33786 ac_header_preproc=no
33787fi
33788
33789rm -f conftest.err conftest.$ac_ext
33790{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33791echo "${ECHO_T}$ac_header_preproc" >&6; }
33792
33793# So? What about this header?
33794case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33795 yes:no: )
33796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33797echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33799echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33800 ac_header_preproc=yes
33801 ;;
33802 no:yes:* )
33803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33804echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33806echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33808echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33810echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33812echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33814echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33815 ( cat <<\_ASBOX
33816## ------------------------------------------- ##
33817## Report this to openssh-unix-dev@mindrot.org ##
33818## ------------------------------------------- ##
33819_ASBOX
33820 ) | sed "s/^/$as_me: WARNING: /" >&2
33821 ;;
33822esac
33823{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33825if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33826 echo $ECHO_N "(cached) $ECHO_C" >&6
33827else
33828 eval "$as_ac_Header=\$ac_header_preproc"
33829fi
33830ac_res=`eval echo '${'$as_ac_Header'}'`
33831 { echo "$as_me:$LINENO: result: $ac_res" >&5
33832echo "${ECHO_T}$ac_res" >&6; }
33833
33834fi
33835if test `eval echo '${'$as_ac_Header'}'` = yes; then
33836 cat >>confdefs.h <<_ACEOF
33837#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33838_ACEOF
33839
33840fi
33841
33842done
33843
33844
33845
33846for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
33847do
33848as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33853 echo $ECHO_N "(cached) $ECHO_C" >&6
33854fi
33855ac_res=`eval echo '${'$as_ac_Header'}'`
33856 { echo "$as_me:$LINENO: result: $ac_res" >&5
33857echo "${ECHO_T}$ac_res" >&6; }
33858else
33859 # Is the header compilable?
33860{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33861echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33862cat >conftest.$ac_ext <<_ACEOF
33863/* confdefs.h. */
33864_ACEOF
33865cat confdefs.h >>conftest.$ac_ext
33866cat >>conftest.$ac_ext <<_ACEOF
33867/* end confdefs.h. */
33868$ac_includes_default
33869#include <$ac_header>
33870_ACEOF
33871rm -f conftest.$ac_objext
33872if { (ac_try="$ac_compile"
33873case "(($ac_try" in
33874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33875 *) ac_try_echo=$ac_try;;
33876esac
33877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33878 (eval "$ac_compile") 2>conftest.er1
33879 ac_status=$?
33880 grep -v '^ *+' conftest.er1 >conftest.err
33881 rm -f conftest.er1
33882 cat conftest.err >&5
33883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884 (exit $ac_status); } && {
33885 test -z "$ac_c_werror_flag" ||
33886 test ! -s conftest.err
33887 } && test -s conftest.$ac_objext; then
33888 ac_header_compiler=yes
33889else
33890 echo "$as_me: failed program was:" >&5
33891sed 's/^/| /' conftest.$ac_ext >&5
33892
33893 ac_header_compiler=no
33894fi
33895
33896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33897{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33898echo "${ECHO_T}$ac_header_compiler" >&6; }
33899
33900# Is the header present?
33901{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33902echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33903cat >conftest.$ac_ext <<_ACEOF
33904/* confdefs.h. */
33905_ACEOF
33906cat confdefs.h >>conftest.$ac_ext
33907cat >>conftest.$ac_ext <<_ACEOF
33908/* end confdefs.h. */
33909#include <$ac_header>
33910_ACEOF
33911if { (ac_try="$ac_cpp conftest.$ac_ext"
33912case "(($ac_try" in
33913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33914 *) ac_try_echo=$ac_try;;
33915esac
33916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33918 ac_status=$?
33919 grep -v '^ *+' conftest.er1 >conftest.err
33920 rm -f conftest.er1
33921 cat conftest.err >&5
33922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33923 (exit $ac_status); } >/dev/null && {
33924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33925 test ! -s conftest.err
33926 }; then
33927 ac_header_preproc=yes
33928else
33929 echo "$as_me: failed program was:" >&5
33930sed 's/^/| /' conftest.$ac_ext >&5
33931
33932 ac_header_preproc=no
33933fi
33934
33935rm -f conftest.err conftest.$ac_ext
33936{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33937echo "${ECHO_T}$ac_header_preproc" >&6; }
33938
33939# So? What about this header?
33940case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33941 yes:no: )
33942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33943echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33945echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33946 ac_header_preproc=yes
33947 ;;
33948 no:yes:* )
33949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33950echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33952echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33954echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33956echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33958echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33960echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33961 ( cat <<\_ASBOX
33962## ------------------------------------------- ##
33963## Report this to openssh-unix-dev@mindrot.org ##
33964## ------------------------------------------- ##
33965_ASBOX
33966 ) | sed "s/^/$as_me: WARNING: /" >&2
33967 ;;
33968esac
33969{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33972 echo $ECHO_N "(cached) $ECHO_C" >&6
33973else
33974 eval "$as_ac_Header=\$ac_header_preproc"
33975fi
33976ac_res=`eval echo '${'$as_ac_Header'}'`
33977 { echo "$as_me:$LINENO: result: $ac_res" >&5
33978echo "${ECHO_T}$ac_res" >&6; }
33979
33980fi
33981if test `eval echo '${'$as_ac_Header'}'` = yes; then
33982 cat >>confdefs.h <<_ACEOF
33983#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33984_ACEOF
33985
33986fi
33987
33988done
33989
33990
33991 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
33992echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
33993if test "${ac_cv_search_k_hasafs+set}" = set; then
33994 echo $ECHO_N "(cached) $ECHO_C" >&6
33995else
33996 ac_func_search_save_LIBS=$LIBS
33997cat >conftest.$ac_ext <<_ACEOF
33998/* confdefs.h. */
33999_ACEOF
34000cat confdefs.h >>conftest.$ac_ext
34001cat >>conftest.$ac_ext <<_ACEOF
34002/* end confdefs.h. */
34003
34004/* Override any GCC internal prototype to avoid an error.
34005 Use char because int might match the return type of a GCC
34006 builtin and then its argument prototype would still apply. */
34007#ifdef __cplusplus
34008extern "C"
34009#endif
34010char k_hasafs ();
34011int
34012main ()
34013{
34014return k_hasafs ();
34015 ;
34016 return 0;
34017}
34018_ACEOF
34019for ac_lib in '' kafs; do
34020 if test -z "$ac_lib"; then
34021 ac_res="none required"
34022 else
34023 ac_res=-l$ac_lib
34024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34025 fi
34026 rm -f conftest.$ac_objext conftest$ac_exeext
34027if { (ac_try="$ac_link"
34028case "(($ac_try" in
34029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34030 *) ac_try_echo=$ac_try;;
34031esac
34032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34033 (eval "$ac_link") 2>conftest.er1
34034 ac_status=$?
34035 grep -v '^ *+' conftest.er1 >conftest.err
34036 rm -f conftest.er1
34037 cat conftest.err >&5
34038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039 (exit $ac_status); } && {
34040 test -z "$ac_c_werror_flag" ||
34041 test ! -s conftest.err
34042 } && test -s conftest$ac_exeext &&
34043 $as_test_x conftest$ac_exeext; then
34044 ac_cv_search_k_hasafs=$ac_res
34045else
34046 echo "$as_me: failed program was:" >&5
34047sed 's/^/| /' conftest.$ac_ext >&5
34048
34049
34050fi
34051
34052rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34053 conftest$ac_exeext
34054 if test "${ac_cv_search_k_hasafs+set}" = set; then
34055 break
34056fi
34057done
34058if test "${ac_cv_search_k_hasafs+set}" = set; then
34059 :
34060else
34061 ac_cv_search_k_hasafs=no
34062fi
34063rm conftest.$ac_ext
34064LIBS=$ac_func_search_save_LIBS
34065fi
34066{ echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
34067echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
34068ac_res=$ac_cv_search_k_hasafs
34069if test "$ac_res" != no; then
34070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34071
34072cat >>confdefs.h <<\_ACEOF
34073#define USE_AFS 1
34074_ACEOF
34075
34076fi
34077
34078
34079 { echo "$as_me:$LINENO: checking whether GSS_C_NT_HOSTBASED_SERVICE is declared" >&5
34080echo $ECHO_N "checking whether GSS_C_NT_HOSTBASED_SERVICE is declared... $ECHO_C" >&6; }
34081if test "${ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE+set}" = set; then
34082 echo $ECHO_N "(cached) $ECHO_C" >&6
34083else
34084 cat >conftest.$ac_ext <<_ACEOF
34085/* confdefs.h. */
34086_ACEOF
34087cat confdefs.h >>conftest.$ac_ext
34088cat >>conftest.$ac_ext <<_ACEOF
34089/* end confdefs.h. */
34090
34091#ifdef HAVE_GSSAPI_H
34092# include <gssapi.h>
34093#elif defined(HAVE_GSSAPI_GSSAPI_H)
34094# include <gssapi/gssapi.h>
34095#endif
34096
34097#ifdef HAVE_GSSAPI_GENERIC_H
34098# include <gssapi_generic.h>
34099#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
34100# include <gssapi/gssapi_generic.h>
34101#endif
34102
34103
34104int
34105main ()
34106{
34107#ifndef GSS_C_NT_HOSTBASED_SERVICE
34108 (void) GSS_C_NT_HOSTBASED_SERVICE;
34109#endif
34110
34111 ;
34112 return 0;
34113}
34114_ACEOF
34115rm -f conftest.$ac_objext
34116if { (ac_try="$ac_compile"
34117case "(($ac_try" in
34118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34119 *) ac_try_echo=$ac_try;;
34120esac
34121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34122 (eval "$ac_compile") 2>conftest.er1
34123 ac_status=$?
34124 grep -v '^ *+' conftest.er1 >conftest.err
34125 rm -f conftest.er1
34126 cat conftest.err >&5
34127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34128 (exit $ac_status); } && {
34129 test -z "$ac_c_werror_flag" ||
34130 test ! -s conftest.err
34131 } && test -s conftest.$ac_objext; then
34132 ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=yes
34133else
34134 echo "$as_me: failed program was:" >&5
34135sed 's/^/| /' conftest.$ac_ext >&5
34136
34137 ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=no
34138fi
34139
34140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34141fi
34142{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&5
34143echo "${ECHO_T}$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&6; }
34144if test $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE = yes; then
34145
34146cat >>confdefs.h <<_ACEOF
34147#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 1
34148_ACEOF
34149
34150
34151else
34152 cat >>confdefs.h <<_ACEOF
34153#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 0
34154_ACEOF
34155
34156
34157fi
34158
34159
34160 saved_LIBS="$LIBS"
34161 LIBS="$LIBS $K5LIBS"
34162
34163
34164
34165for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message
34166do
34167as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34168{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34170if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34171 echo $ECHO_N "(cached) $ECHO_C" >&6
34172else
34173 cat >conftest.$ac_ext <<_ACEOF
34174/* confdefs.h. */
34175_ACEOF
34176cat confdefs.h >>conftest.$ac_ext
34177cat >>conftest.$ac_ext <<_ACEOF
34178/* end confdefs.h. */
34179/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34181#define $ac_func innocuous_$ac_func
34182
34183/* System header to define __stub macros and hopefully few prototypes,
34184 which can conflict with char $ac_func (); below.
34185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34186 <limits.h> exists even on freestanding compilers. */
34187
34188#ifdef __STDC__
34189# include <limits.h>
34190#else
34191# include <assert.h>
34192#endif
34193
34194#undef $ac_func
34195
34196/* Override any GCC internal prototype to avoid an error.
34197 Use char because int might match the return type of a GCC
34198 builtin and then its argument prototype would still apply. */
34199#ifdef __cplusplus
34200extern "C"
34201#endif
34202char $ac_func ();
34203/* The GNU C library defines this for functions which it implements
34204 to always fail with ENOSYS. Some functions are actually named
34205 something starting with __ and the normal name is an alias. */
34206#if defined __stub_$ac_func || defined __stub___$ac_func
34207choke me
34208#endif
34209
34210int
34211main ()
34212{
34213return $ac_func ();
34214 ;
34215 return 0;
34216}
34217_ACEOF
34218rm -f conftest.$ac_objext conftest$ac_exeext
34219if { (ac_try="$ac_link"
34220case "(($ac_try" in
34221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34222 *) ac_try_echo=$ac_try;;
34223esac
34224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34225 (eval "$ac_link") 2>conftest.er1
34226 ac_status=$?
34227 grep -v '^ *+' conftest.er1 >conftest.err
34228 rm -f conftest.er1
34229 cat conftest.err >&5
34230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231 (exit $ac_status); } && {
34232 test -z "$ac_c_werror_flag" ||
34233 test ! -s conftest.err
34234 } && test -s conftest$ac_exeext &&
34235 $as_test_x conftest$ac_exeext; then
34236 eval "$as_ac_var=yes"
34237else
34238 echo "$as_me: failed program was:" >&5
34239sed 's/^/| /' conftest.$ac_ext >&5
34240
34241 eval "$as_ac_var=no"
34242fi
34243
34244rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34245 conftest$ac_exeext conftest.$ac_ext
34246fi
34247ac_res=`eval echo '${'$as_ac_var'}'`
34248 { echo "$as_me:$LINENO: result: $ac_res" >&5
34249echo "${ECHO_T}$ac_res" >&6; }
34250if test `eval echo '${'$as_ac_var'}'` = yes; then
34251 cat >>confdefs.h <<_ACEOF
34252#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34253_ACEOF
34254
34255fi
34256done
34257
34258 LIBS="$saved_LIBS"
34259
34260 fi
34261
34262
34263fi
34264
34265
34266
34267
34268# Looking for programs, paths and files
34269
34270PRIVSEP_PATH=/var/empty
34271
34272# Check whether --with-privsep-path was given.
34273if test "${with_privsep_path+set}" = set; then
34274 withval=$with_privsep_path;
34275 if test -n "$withval" && test "x$withval" != "xno" && \
34276 test "x${withval}" != "xyes"; then
34277 PRIVSEP_PATH=$withval
34278 fi
34279
34280
34281fi
34282
34283
34284
34285
34286# Check whether --with-xauth was given.
34287if test "${with_xauth+set}" = set; then
34288 withval=$with_xauth;
34289 if test -n "$withval" && test "x$withval" != "xno" && \
34290 test "x${withval}" != "xyes"; then
34291 xauth_path=$withval
34292 fi
34293
34294else
34295
34296 TestPath="$PATH"
34297 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
34298 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
34299 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
34300 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
34301 # Extract the first word of "xauth", so it can be a program name with args.
34302set dummy xauth; ac_word=$2
34303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34305if test "${ac_cv_path_xauth_path+set}" = set; then
34306 echo $ECHO_N "(cached) $ECHO_C" >&6
34307else
34308 case $xauth_path in
34309 [\\/]* | ?:[\\/]*)
34310 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
34311 ;;
34312 *)
34313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34314for as_dir in $TestPath
34315do
34316 IFS=$as_save_IFS
34317 test -z "$as_dir" && as_dir=.
34318 for ac_exec_ext in '' $ac_executable_extensions; do
34319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34320 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
34321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34322 break 2
34323 fi
34324done
34325done
34326IFS=$as_save_IFS
34327
34328 ;;
34329esac
34330fi
34331xauth_path=$ac_cv_path_xauth_path
34332if test -n "$xauth_path"; then
34333 { echo "$as_me:$LINENO: result: $xauth_path" >&5
34334echo "${ECHO_T}$xauth_path" >&6; }
34335else
34336 { echo "$as_me:$LINENO: result: no" >&5
34337echo "${ECHO_T}no" >&6; }
34338fi
34339
34340
34341 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
34342 xauth_path="/usr/openwin/bin/xauth"
34343 fi
34344
34345
34346fi
34347
34348
34349STRIP_OPT=-s
34350# Check whether --enable-strip was given.
34351if test "${enable_strip+set}" = set; then
34352 enableval=$enable_strip;
34353 if test "x$enableval" = "xno" ; then
34354 STRIP_OPT=
34355 fi
34356
34357
34358fi
34359
34360
34361
34362if test -z "$xauth_path" ; then
34363 XAUTH_PATH="undefined"
34364
34365else
34366
34367cat >>confdefs.h <<_ACEOF
34368#define XAUTH_PATH "$xauth_path"
34369_ACEOF
34370
34371 XAUTH_PATH=$xauth_path
34372
34373fi
34374
34375# Check for mail directory
34376
34377# Check whether --with-maildir was given.
34378if test "${with_maildir+set}" = set; then
34379 withval=$with_maildir;
34380 if test "X$withval" != X && test "x$withval" != xno && \
34381 test "x${withval}" != xyes; then
34382
34383cat >>confdefs.h <<_ACEOF
34384#define MAIL_DIRECTORY "$withval"
34385_ACEOF
34386
34387 fi
34388
34389else
34390
34391 if test "X$maildir" != "X"; then
34392 cat >>confdefs.h <<_ACEOF
34393#define MAIL_DIRECTORY "$maildir"
34394_ACEOF
34395
34396 else
34397 { echo "$as_me:$LINENO: checking Discovering system mail directory" >&5
34398echo $ECHO_N "checking Discovering system mail directory... $ECHO_C" >&6; }
34399 if test "$cross_compiling" = yes; then
34400
34401 { echo "$as_me:$LINENO: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
34402echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
34403
34404
34405else
34406 cat >conftest.$ac_ext <<_ACEOF
34407/* confdefs.h. */
34408_ACEOF
34409cat confdefs.h >>conftest.$ac_ext
34410cat >>conftest.$ac_ext <<_ACEOF
34411/* end confdefs.h. */
34412
34413#include <stdio.h>
34414#include <string.h>
34415#ifdef HAVE_PATHS_H
34416#include <paths.h>
34417#endif
34418#ifdef HAVE_MAILLOCK_H
34419#include <maillock.h>
34420#endif
34421#define DATA "conftest.maildir"
34422
34423int
34424main ()
34425{
34426
34427 FILE *fd;
34428 int rc;
34429
34430 fd = fopen(DATA,"w");
34431 if(fd == NULL)
34432 exit(1);
34433
34434#if defined (_PATH_MAILDIR)
34435 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
34436 exit(1);
34437#elif defined (MAILDIR)
34438 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
34439 exit(1);
34440#elif defined (_PATH_MAIL)
34441 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
34442 exit(1);
34443#else
34444 exit (2);
34445#endif
34446
34447 exit(0);
34448
34449 ;
34450 return 0;
34451}
34452_ACEOF
34453rm -f conftest$ac_exeext
34454if { (ac_try="$ac_link"
34455case "(($ac_try" in
34456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34457 *) ac_try_echo=$ac_try;;
34458esac
34459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34460 (eval "$ac_link") 2>&5
34461 ac_status=$?
34462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34464 { (case "(($ac_try" in
34465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34466 *) ac_try_echo=$ac_try;;
34467esac
34468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34469 (eval "$ac_try") 2>&5
34470 ac_status=$?
34471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34472 (exit $ac_status); }; }; then
34473
34474 maildir_what=`awk -F: '{print $1}' conftest.maildir`
34475 maildir=`awk -F: '{print $2}' conftest.maildir \
34476 | sed 's|/$||'`
34477 { echo "$as_me:$LINENO: result: Using: $maildir from $maildir_what" >&5
34478echo "${ECHO_T}Using: $maildir from $maildir_what" >&6; }
34479 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
34480 cat >>confdefs.h <<_ACEOF
34481#define MAIL_DIRECTORY "$maildir"
34482_ACEOF
34483
34484 fi
34485
34486else
34487 echo "$as_me: program exited with status $ac_status" >&5
34488echo "$as_me: failed program was:" >&5
34489sed 's/^/| /' conftest.$ac_ext >&5
34490
34491( exit $ac_status )
34492
34493 if test "X$ac_status" = "X2";then
34494# our test program didn't find it. Default to /var/spool/mail
34495 { echo "$as_me:$LINENO: result: Using: default value of /var/spool/mail" >&5
34496echo "${ECHO_T}Using: default value of /var/spool/mail" >&6; }
34497 cat >>confdefs.h <<_ACEOF
34498#define MAIL_DIRECTORY "/var/spool/mail"
34499_ACEOF
34500
34501 else
34502 { echo "$as_me:$LINENO: result: *** not found ***" >&5
34503echo "${ECHO_T}*** not found ***" >&6; }
34504 fi
34505
34506fi
34507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34508fi
34509
34510
34511 fi
34512
34513
34514fi
34515 # maildir
34516
34517if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
34518 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
34519echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
34520 disable_ptmx_check=yes
34521fi
34522if test -z "$no_dev_ptmx" ; then
34523 if test "x$disable_ptmx_check" != "xyes" ; then
34524 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
34525echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
34526if test "${ac_cv_file___dev_ptmx_+set}" = set; then
34527 echo $ECHO_N "(cached) $ECHO_C" >&6
34528else
34529 test "$cross_compiling" = yes &&
34530 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34531echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34532 { (exit 1); exit 1; }; }
34533if test -r ""/dev/ptmx""; then
34534 ac_cv_file___dev_ptmx_=yes
34535else
34536 ac_cv_file___dev_ptmx_=no
34537fi
34538fi
34539{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
34540echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
34541if test $ac_cv_file___dev_ptmx_ = yes; then
34542
34543
34544cat >>confdefs.h <<_ACEOF
34545#define HAVE_DEV_PTMX 1
34546_ACEOF
34547
34548 have_dev_ptmx=1
34549
34550
34551fi
34552
34553 fi
34554fi
34555
34556if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
34557 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
34558echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
34559if test "${ac_cv_file___dev_ptc_+set}" = set; then
34560 echo $ECHO_N "(cached) $ECHO_C" >&6
34561else
34562 test "$cross_compiling" = yes &&
34563 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34564echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34565 { (exit 1); exit 1; }; }
34566if test -r ""/dev/ptc""; then
34567 ac_cv_file___dev_ptc_=yes
34568else
34569 ac_cv_file___dev_ptc_=no
34570fi
34571fi
34572{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
34573echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
34574if test $ac_cv_file___dev_ptc_ = yes; then
34575
34576
34577cat >>confdefs.h <<_ACEOF
34578#define HAVE_DEV_PTS_AND_PTC 1
34579_ACEOF
34580
34581 have_dev_ptc=1
34582
34583
34584fi
34585
34586else
34587 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
34588echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
34589fi
34590
34591# Options from here on. Some of these are preset by platform above
34592
34593# Check whether --with-mantype was given.
34594if test "${with_mantype+set}" = set; then
34595 withval=$with_mantype;
34596 case "$withval" in
34597 man|cat|doc)
34598 MANTYPE=$withval
34599 ;;
34600 *)
34601 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
34602echo "$as_me: error: invalid man type: $withval" >&2;}
34603 { (exit 1); exit 1; }; }
34604 ;;
34605 esac
34606
34607
34608fi
34609
34610if test -z "$MANTYPE"; then
34611 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
34612 for ac_prog in nroff awf
34613do
34614 # Extract the first word of "$ac_prog", so it can be a program name with args.
34615set dummy $ac_prog; ac_word=$2
34616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34618if test "${ac_cv_path_NROFF+set}" = set; then
34619 echo $ECHO_N "(cached) $ECHO_C" >&6
34620else
34621 case $NROFF in
34622 [\\/]* | ?:[\\/]*)
34623 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
34624 ;;
34625 *)
34626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34627for as_dir in $TestPath
34628do
34629 IFS=$as_save_IFS
34630 test -z "$as_dir" && as_dir=.
34631 for ac_exec_ext in '' $ac_executable_extensions; do
34632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34633 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
34634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34635 break 2
34636 fi
34637done
34638done
34639IFS=$as_save_IFS
34640
34641 ;;
34642esac
34643fi
34644NROFF=$ac_cv_path_NROFF
34645if test -n "$NROFF"; then
34646 { echo "$as_me:$LINENO: result: $NROFF" >&5
34647echo "${ECHO_T}$NROFF" >&6; }
34648else
34649 { echo "$as_me:$LINENO: result: no" >&5
34650echo "${ECHO_T}no" >&6; }
34651fi
34652
34653
34654 test -n "$NROFF" && break
34655done
34656test -n "$NROFF" || NROFF="/bin/false"
34657
34658 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
34659 MANTYPE=doc
34660 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
34661 MANTYPE=man
34662 else
34663 MANTYPE=cat
34664 fi
34665fi
34666
34667if test "$MANTYPE" = "doc"; then
34668 mansubdir=man;
34669else
34670 mansubdir=$MANTYPE;
34671fi
34672
34673
34674# Check whether to enable MD5 passwords
34675MD5_MSG="no"
34676
34677# Check whether --with-md5-passwords was given.
34678if test "${with_md5_passwords+set}" = set; then
34679 withval=$with_md5_passwords;
34680 if test "x$withval" != "xno" ; then
34681
34682cat >>confdefs.h <<\_ACEOF
34683#define HAVE_MD5_PASSWORDS 1
34684_ACEOF
34685
34686 MD5_MSG="yes"
34687 fi
34688
34689
34690fi
34691
34692
34693# Whether to disable shadow password support
34694
34695# Check whether --with-shadow was given.
34696if test "${with_shadow+set}" = set; then
34697 withval=$with_shadow;
34698 if test "x$withval" = "xno" ; then
34699 cat >>confdefs.h <<\_ACEOF
34700#define DISABLE_SHADOW 1
34701_ACEOF
34702
34703 disable_shadow=yes
34704 fi
34705
34706
34707fi
34708
34709
34710if test -z "$disable_shadow" ; then
34711 { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
34712echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
34713 cat >conftest.$ac_ext <<_ACEOF
34714/* confdefs.h. */
34715_ACEOF
34716cat confdefs.h >>conftest.$ac_ext
34717cat >>conftest.$ac_ext <<_ACEOF
34718/* end confdefs.h. */
34719
34720#include <sys/types.h>
34721#include <shadow.h>
34722struct spwd sp;
34723
34724int
34725main ()
34726{
34727 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
34728 ;
34729 return 0;
34730}
34731_ACEOF
34732rm -f conftest.$ac_objext
34733if { (ac_try="$ac_compile"
34734case "(($ac_try" in
34735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34736 *) ac_try_echo=$ac_try;;
34737esac
34738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34739 (eval "$ac_compile") 2>conftest.er1
34740 ac_status=$?
34741 grep -v '^ *+' conftest.er1 >conftest.err
34742 rm -f conftest.er1
34743 cat conftest.err >&5
34744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34745 (exit $ac_status); } && {
34746 test -z "$ac_c_werror_flag" ||
34747 test ! -s conftest.err
34748 } && test -s conftest.$ac_objext; then
34749 sp_expire_available=yes
34750else
34751 echo "$as_me: failed program was:" >&5
34752sed 's/^/| /' conftest.$ac_ext >&5
34753
34754
34755
34756fi
34757
34758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34759
34760 if test "x$sp_expire_available" = "xyes" ; then
34761 { echo "$as_me:$LINENO: result: yes" >&5
34762echo "${ECHO_T}yes" >&6; }
34763
34764cat >>confdefs.h <<\_ACEOF
34765#define HAS_SHADOW_EXPIRE 1
34766_ACEOF
34767
34768 else
34769 { echo "$as_me:$LINENO: result: no" >&5
34770echo "${ECHO_T}no" >&6; }
34771 fi
34772fi
34773
34774# Use ip address instead of hostname in $DISPLAY
34775if test ! -z "$IPADDR_IN_DISPLAY" ; then
34776 DISPLAY_HACK_MSG="yes"
34777
34778cat >>confdefs.h <<\_ACEOF
34779#define IPADDR_IN_DISPLAY 1
34780_ACEOF
34781
34782else
34783 DISPLAY_HACK_MSG="no"
34784
34785# Check whether --with-ipaddr-display was given.
34786if test "${with_ipaddr_display+set}" = set; then
34787 withval=$with_ipaddr_display;
34788 if test "x$withval" != "xno" ; then
34789 cat >>confdefs.h <<\_ACEOF
34790#define IPADDR_IN_DISPLAY 1
34791_ACEOF
34792
34793 DISPLAY_HACK_MSG="yes"
34794 fi
34795
34796
34797fi
34798
34799fi
34800
34801# check for /etc/default/login and use it if present.
34802# Check whether --enable-etc-default-login was given.
34803if test "${enable_etc_default_login+set}" = set; then
34804 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
34805 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
34806echo "$as_me: /etc/default/login handling disabled" >&6;}
34807 etc_default_login=no
34808 else
34809 etc_default_login=yes
34810 fi
34811else
34812 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
34813 then
34814 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
34815echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
34816 etc_default_login=no
34817 else
34818 etc_default_login=yes
34819 fi
34820
34821fi
34822
34823
34824if test "x$etc_default_login" != "xno"; then
34825 { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
34826echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
34827if test "${ac_cv_file___etc_default_login_+set}" = set; then
34828 echo $ECHO_N "(cached) $ECHO_C" >&6
34829else
34830 test "$cross_compiling" = yes &&
34831 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34832echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34833 { (exit 1); exit 1; }; }
34834if test -r ""/etc/default/login""; then
34835 ac_cv_file___etc_default_login_=yes
34836else
34837 ac_cv_file___etc_default_login_=no
34838fi
34839fi
34840{ echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
34841echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
34842if test $ac_cv_file___etc_default_login_ = yes; then
34843 external_path_file=/etc/default/login
34844fi
34845
34846 if test "x$external_path_file" = "x/etc/default/login"; then
34847
34848cat >>confdefs.h <<\_ACEOF
34849#define HAVE_ETC_DEFAULT_LOGIN 1
34850_ACEOF
34851
34852 fi
34853fi
34854
34855if test $ac_cv_func_login_getcapbool = "yes" && \
34856 test $ac_cv_header_login_cap_h = "yes" ; then
34857 external_path_file=/etc/login.conf
34858fi
34859
34860# Whether to mess with the default path
34861SERVER_PATH_MSG="(default)"
34862
34863# Check whether --with-default-path was given.
34864if test "${with_default_path+set}" = set; then
34865 withval=$with_default_path;
34866 if test "x$external_path_file" = "x/etc/login.conf" ; then
34867 { echo "$as_me:$LINENO: WARNING:
34868--with-default-path=PATH has no effect on this system.
34869Edit /etc/login.conf instead." >&5
34870echo "$as_me: WARNING:
34871--with-default-path=PATH has no effect on this system.
34872Edit /etc/login.conf instead." >&2;}
34873 elif test "x$withval" != "xno" ; then
34874 if test ! -z "$external_path_file" ; then
34875 { echo "$as_me:$LINENO: WARNING:
34876--with-default-path=PATH will only be used if PATH is not defined in
34877$external_path_file ." >&5
34878echo "$as_me: WARNING:
34879--with-default-path=PATH will only be used if PATH is not defined in
34880$external_path_file ." >&2;}
34881 fi
34882 user_path="$withval"
34883 SERVER_PATH_MSG="$withval"
34884 fi
34885
34886else
34887 if test "x$external_path_file" = "x/etc/login.conf" ; then
34888 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
34889echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
34890 else
34891 if test ! -z "$external_path_file" ; then
34892 { echo "$as_me:$LINENO: WARNING:
34893If PATH is defined in $external_path_file, ensure the path to scp is included,
34894otherwise scp will not work." >&5
34895echo "$as_me: WARNING:
34896If PATH is defined in $external_path_file, ensure the path to scp is included,
34897otherwise scp will not work." >&2;}
34898 fi
34899 if test "$cross_compiling" = yes; then
34900 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
34901
34902else
34903 cat >conftest.$ac_ext <<_ACEOF
34904/* confdefs.h. */
34905_ACEOF
34906cat confdefs.h >>conftest.$ac_ext
34907cat >>conftest.$ac_ext <<_ACEOF
34908/* end confdefs.h. */
34909
34910/* find out what STDPATH is */
34911#include <stdio.h>
34912#ifdef HAVE_PATHS_H
34913# include <paths.h>
34914#endif
34915#ifndef _PATH_STDPATH
34916# ifdef _PATH_USERPATH /* Irix */
34917# define _PATH_STDPATH _PATH_USERPATH
34918# else
34919# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
34920# endif
34921#endif
34922#include <sys/types.h>
34923#include <sys/stat.h>
34924#include <fcntl.h>
34925#define DATA "conftest.stdpath"
34926
34927int
34928main ()
34929{
34930
34931 FILE *fd;
34932 int rc;
34933
34934 fd = fopen(DATA,"w");
34935 if(fd == NULL)
34936 exit(1);
34937
34938 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
34939 exit(1);
34940
34941 exit(0);
34942
34943 ;
34944 return 0;
34945}
34946_ACEOF
34947rm -f conftest$ac_exeext
34948if { (ac_try="$ac_link"
34949case "(($ac_try" in
34950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34951 *) ac_try_echo=$ac_try;;
34952esac
34953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34954 (eval "$ac_link") 2>&5
34955 ac_status=$?
34956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34958 { (case "(($ac_try" in
34959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34960 *) ac_try_echo=$ac_try;;
34961esac
34962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34963 (eval "$ac_try") 2>&5
34964 ac_status=$?
34965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34966 (exit $ac_status); }; }; then
34967 user_path=`cat conftest.stdpath`
34968else
34969 echo "$as_me: program exited with status $ac_status" >&5
34970echo "$as_me: failed program was:" >&5
34971sed 's/^/| /' conftest.$ac_ext >&5
34972
34973( exit $ac_status )
34974 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
34975fi
34976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34977fi
34978
34979
34980# make sure $bindir is in USER_PATH so scp will work
34981 t_bindir="${bindir}"
34982 while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do
34983 t_bindir=`eval echo ${t_bindir}`
34984 case $t_bindir in
34985 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
34986 esac
34987 case $t_bindir in
34988 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
34989 esac
34990 done
34991 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
34992 if test $? -ne 0 ; then
34993 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
34994 if test $? -ne 0 ; then
34995 user_path=$user_path:$t_bindir
34996 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
34997echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
34998 fi
34999 fi
35000 fi
35001
35002fi
35003
35004if test "x$external_path_file" != "x/etc/login.conf" ; then
35005
35006cat >>confdefs.h <<_ACEOF
35007#define USER_PATH "$user_path"
35008_ACEOF
35009
35010
35011fi
35012
35013# Set superuser path separately to user path
35014
35015# Check whether --with-superuser-path was given.
35016if test "${with_superuser_path+set}" = set; then
35017 withval=$with_superuser_path;
35018 if test -n "$withval" && test "x$withval" != "xno" && \
35019 test "x${withval}" != "xyes"; then
35020
35021cat >>confdefs.h <<_ACEOF
35022#define SUPERUSER_PATH "$withval"
35023_ACEOF
35024
35025 superuser_path=$withval
35026 fi
35027
35028
35029fi
35030
35031
35032
35033{ echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
35034echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
35035IPV4_IN6_HACK_MSG="no"
35036
35037# Check whether --with-4in6 was given.
35038if test "${with_4in6+set}" = set; then
35039 withval=$with_4in6;
35040 if test "x$withval" != "xno" ; then
35041 { echo "$as_me:$LINENO: result: yes" >&5
35042echo "${ECHO_T}yes" >&6; }
35043
35044cat >>confdefs.h <<\_ACEOF
35045#define IPV4_IN_IPV6 1
35046_ACEOF
35047
35048 IPV4_IN6_HACK_MSG="yes"
35049 else
35050 { echo "$as_me:$LINENO: result: no" >&5
35051echo "${ECHO_T}no" >&6; }
35052 fi
35053
35054else
35055
35056 if test "x$inet6_default_4in6" = "xyes"; then
35057 { echo "$as_me:$LINENO: result: yes (default)" >&5
35058echo "${ECHO_T}yes (default)" >&6; }
35059 cat >>confdefs.h <<\_ACEOF
35060#define IPV4_IN_IPV6 1
35061_ACEOF
35062
35063 IPV4_IN6_HACK_MSG="yes"
35064 else
35065 { echo "$as_me:$LINENO: result: no (default)" >&5
35066echo "${ECHO_T}no (default)" >&6; }
35067 fi
35068
35069
35070fi
35071
35072
35073# Whether to enable BSD auth support
35074BSD_AUTH_MSG=no
35075
35076# Check whether --with-bsd-auth was given.
35077if test "${with_bsd_auth+set}" = set; then
35078 withval=$with_bsd_auth;
35079 if test "x$withval" != "xno" ; then
35080
35081cat >>confdefs.h <<\_ACEOF
35082#define BSD_AUTH 1
35083_ACEOF
35084
35085 BSD_AUTH_MSG=yes
35086 fi
35087
35088
35089fi
35090
35091
35092# Where to place sshd.pid
35093piddir=/var/run
35094# make sure the directory exists
35095if test ! -d $piddir ; then
35096 piddir=`eval echo ${sysconfdir}`
35097 case $piddir in
35098 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
35099 esac
35100fi
35101
35102
35103# Check whether --with-pid-dir was given.
35104if test "${with_pid_dir+set}" = set; then
35105 withval=$with_pid_dir;
35106 if test -n "$withval" && test "x$withval" != "xno" && \
35107 test "x${withval}" != "xyes"; then
35108 piddir=$withval
35109 if test ! -d $piddir ; then
35110 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
35111echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
35112 fi
35113 fi
35114
35115
35116fi
35117
35118
35119
35120cat >>confdefs.h <<_ACEOF
35121#define _PATH_SSH_PIDDIR "$piddir"
35122_ACEOF
35123
35124
35125
35126# Check whether --enable-lastlog was given.
35127if test "${enable_lastlog+set}" = set; then
35128 enableval=$enable_lastlog;
35129 if test "x$enableval" = "xno" ; then
35130 cat >>confdefs.h <<\_ACEOF
35131#define DISABLE_LASTLOG 1
35132_ACEOF
35133
35134 fi
35135
35136
35137fi
35138
35139# Check whether --enable-utmp was given.
35140if test "${enable_utmp+set}" = set; then
35141 enableval=$enable_utmp;
35142 if test "x$enableval" = "xno" ; then
35143 cat >>confdefs.h <<\_ACEOF
35144#define DISABLE_UTMP 1
35145_ACEOF
35146
35147 fi
35148
35149
35150fi
35151
35152# Check whether --enable-utmpx was given.
35153if test "${enable_utmpx+set}" = set; then
35154 enableval=$enable_utmpx;
35155 if test "x$enableval" = "xno" ; then
35156
35157cat >>confdefs.h <<\_ACEOF
35158#define DISABLE_UTMPX 1
35159_ACEOF
35160
35161 fi
35162
35163
35164fi
35165
35166# Check whether --enable-wtmp was given.
35167if test "${enable_wtmp+set}" = set; then
35168 enableval=$enable_wtmp;
35169 if test "x$enableval" = "xno" ; then
35170 cat >>confdefs.h <<\_ACEOF
35171#define DISABLE_WTMP 1
35172_ACEOF
35173
35174 fi
35175
35176
35177fi
35178
35179# Check whether --enable-wtmpx was given.
35180if test "${enable_wtmpx+set}" = set; then
35181 enableval=$enable_wtmpx;
35182 if test "x$enableval" = "xno" ; then
35183
35184cat >>confdefs.h <<\_ACEOF
35185#define DISABLE_WTMPX 1
35186_ACEOF
35187
35188 fi
35189
35190
35191fi
35192
35193# Check whether --enable-libutil was given.
35194if test "${enable_libutil+set}" = set; then
35195 enableval=$enable_libutil;
35196 if test "x$enableval" = "xno" ; then
35197 cat >>confdefs.h <<\_ACEOF
35198#define DISABLE_LOGIN 1
35199_ACEOF
35200
35201 fi
35202
35203
35204fi
35205
35206# Check whether --enable-pututline was given.
35207if test "${enable_pututline+set}" = set; then
35208 enableval=$enable_pututline;
35209 if test "x$enableval" = "xno" ; then
35210
35211cat >>confdefs.h <<\_ACEOF
35212#define DISABLE_PUTUTLINE 1
35213_ACEOF
35214
35215 fi
35216
35217
35218fi
35219
35220# Check whether --enable-pututxline was given.
35221if test "${enable_pututxline+set}" = set; then
35222 enableval=$enable_pututxline;
35223 if test "x$enableval" = "xno" ; then
35224
35225cat >>confdefs.h <<\_ACEOF
35226#define DISABLE_PUTUTXLINE 1
35227_ACEOF
35228
35229 fi
35230
35231
35232fi
35233
35234
35235# Check whether --with-lastlog was given.
35236if test "${with_lastlog+set}" = set; then
35237 withval=$with_lastlog;
35238 if test "x$withval" = "xno" ; then
35239 cat >>confdefs.h <<\_ACEOF
35240#define DISABLE_LASTLOG 1
35241_ACEOF
35242
35243 elif test -n "$withval" && test "x${withval}" != "xyes"; then
35244 conf_lastlog_location=$withval
35245 fi
35246
35247
35248fi
35249
35250
35251
35252{ echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
35253echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
35254cat >conftest.$ac_ext <<_ACEOF
35255/* confdefs.h. */
35256_ACEOF
35257cat confdefs.h >>conftest.$ac_ext
35258cat >>conftest.$ac_ext <<_ACEOF
35259/* end confdefs.h. */
35260
35261#include <sys/types.h>
35262#include <utmp.h>
35263#ifdef HAVE_LASTLOG_H
35264# include <lastlog.h>
35265#endif
35266#ifdef HAVE_PATHS_H
35267# include <paths.h>
35268#endif
35269#ifdef HAVE_LOGIN_H
35270# include <login.h>
35271#endif
35272
35273int
35274main ()
35275{
35276 char *lastlog = LASTLOG_FILE;
35277 ;
35278 return 0;
35279}
35280_ACEOF
35281rm -f conftest.$ac_objext
35282if { (ac_try="$ac_compile"
35283case "(($ac_try" in
35284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35285 *) ac_try_echo=$ac_try;;
35286esac
35287eval "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 { echo "$as_me:$LINENO: result: yes" >&5
35299echo "${ECHO_T}yes" >&6; }
35300else
35301 echo "$as_me: failed program was:" >&5
35302sed 's/^/| /' conftest.$ac_ext >&5
35303
35304
35305 { echo "$as_me:$LINENO: result: no" >&5
35306echo "${ECHO_T}no" >&6; }
35307 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
35308echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
35309 cat >conftest.$ac_ext <<_ACEOF
35310/* confdefs.h. */
35311_ACEOF
35312cat confdefs.h >>conftest.$ac_ext
35313cat >>conftest.$ac_ext <<_ACEOF
35314/* end confdefs.h. */
35315
35316#include <sys/types.h>
35317#include <utmp.h>
35318#ifdef HAVE_LASTLOG_H
35319# include <lastlog.h>
35320#endif
35321#ifdef HAVE_PATHS_H
35322# include <paths.h>
35323#endif
35324
35325int
35326main ()
35327{
35328 char *lastlog = _PATH_LASTLOG;
35329 ;
35330 return 0;
35331}
35332_ACEOF
35333rm -f conftest.$ac_objext
35334if { (ac_try="$ac_compile"
35335case "(($ac_try" in
35336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35337 *) ac_try_echo=$ac_try;;
35338esac
35339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35340 (eval "$ac_compile") 2>conftest.er1
35341 ac_status=$?
35342 grep -v '^ *+' conftest.er1 >conftest.err
35343 rm -f conftest.er1
35344 cat conftest.err >&5
35345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35346 (exit $ac_status); } && {
35347 test -z "$ac_c_werror_flag" ||
35348 test ! -s conftest.err
35349 } && test -s conftest.$ac_objext; then
35350 { echo "$as_me:$LINENO: result: yes" >&5
35351echo "${ECHO_T}yes" >&6; }
35352else
35353 echo "$as_me: failed program was:" >&5
35354sed 's/^/| /' conftest.$ac_ext >&5
35355
35356
35357 { echo "$as_me:$LINENO: result: no" >&5
35358echo "${ECHO_T}no" >&6; }
35359 system_lastlog_path=no
35360
35361fi
35362
35363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35364
35365fi
35366
35367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35368
35369if test -z "$conf_lastlog_location"; then
35370 if test x"$system_lastlog_path" = x"no" ; then
35371 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
35372 if (test -d "$f" || test -f "$f") ; then
35373 conf_lastlog_location=$f
35374 fi
35375 done
35376 if test -z "$conf_lastlog_location"; then
35377 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
35378echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
35379 fi
35380 fi
35381fi
35382
35383if test -n "$conf_lastlog_location"; then
35384
35385cat >>confdefs.h <<_ACEOF
35386#define CONF_LASTLOG_FILE "$conf_lastlog_location"
35387_ACEOF
35388
35389fi
35390
35391{ echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
35392echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
35393cat >conftest.$ac_ext <<_ACEOF
35394/* confdefs.h. */
35395_ACEOF
35396cat confdefs.h >>conftest.$ac_ext
35397cat >>conftest.$ac_ext <<_ACEOF
35398/* end confdefs.h. */
35399
35400#include <sys/types.h>
35401#include <utmp.h>
35402#ifdef HAVE_PATHS_H
35403# include <paths.h>
35404#endif
35405
35406int
35407main ()
35408{
35409 char *utmp = UTMP_FILE;
35410 ;
35411 return 0;
35412}
35413_ACEOF
35414rm -f conftest.$ac_objext
35415if { (ac_try="$ac_compile"
35416case "(($ac_try" in
35417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35418 *) ac_try_echo=$ac_try;;
35419esac
35420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35421 (eval "$ac_compile") 2>conftest.er1
35422 ac_status=$?
35423 grep -v '^ *+' conftest.er1 >conftest.err
35424 rm -f conftest.er1
35425 cat conftest.err >&5
35426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35427 (exit $ac_status); } && {
35428 test -z "$ac_c_werror_flag" ||
35429 test ! -s conftest.err
35430 } && test -s conftest.$ac_objext; then
35431 { echo "$as_me:$LINENO: result: yes" >&5
35432echo "${ECHO_T}yes" >&6; }
35433else
35434 echo "$as_me: failed program was:" >&5
35435sed 's/^/| /' conftest.$ac_ext >&5
35436
35437 { echo "$as_me:$LINENO: result: no" >&5
35438echo "${ECHO_T}no" >&6; }
35439 system_utmp_path=no
35440
35441fi
35442
35443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35444if test -z "$conf_utmp_location"; then
35445 if test x"$system_utmp_path" = x"no" ; then
35446 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
35447 if test -f $f ; then
35448 conf_utmp_location=$f
35449 fi
35450 done
35451 if test -z "$conf_utmp_location"; then
35452 cat >>confdefs.h <<\_ACEOF
35453#define DISABLE_UTMP 1
35454_ACEOF
35455
35456 fi
35457 fi
35458fi
35459if test -n "$conf_utmp_location"; then
35460
35461cat >>confdefs.h <<_ACEOF
35462#define CONF_UTMP_FILE "$conf_utmp_location"
35463_ACEOF
35464
35465fi
35466
35467{ echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
35468echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
35469cat >conftest.$ac_ext <<_ACEOF
35470/* confdefs.h. */
35471_ACEOF
35472cat confdefs.h >>conftest.$ac_ext
35473cat >>conftest.$ac_ext <<_ACEOF
35474/* end confdefs.h. */
35475
35476#include <sys/types.h>
35477#include <utmp.h>
35478#ifdef HAVE_PATHS_H
35479# include <paths.h>
35480#endif
35481
35482int
35483main ()
35484{
35485 char *wtmp = WTMP_FILE;
35486 ;
35487 return 0;
35488}
35489_ACEOF
35490rm -f conftest.$ac_objext
35491if { (ac_try="$ac_compile"
35492case "(($ac_try" in
35493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35494 *) ac_try_echo=$ac_try;;
35495esac
35496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35497 (eval "$ac_compile") 2>conftest.er1
35498 ac_status=$?
35499 grep -v '^ *+' conftest.er1 >conftest.err
35500 rm -f conftest.er1
35501 cat conftest.err >&5
35502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503 (exit $ac_status); } && {
35504 test -z "$ac_c_werror_flag" ||
35505 test ! -s conftest.err
35506 } && test -s conftest.$ac_objext; then
35507 { echo "$as_me:$LINENO: result: yes" >&5
35508echo "${ECHO_T}yes" >&6; }
35509else
35510 echo "$as_me: failed program was:" >&5
35511sed 's/^/| /' conftest.$ac_ext >&5
35512
35513 { echo "$as_me:$LINENO: result: no" >&5
35514echo "${ECHO_T}no" >&6; }
35515 system_wtmp_path=no
35516
35517fi
35518
35519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35520if test -z "$conf_wtmp_location"; then
35521 if test x"$system_wtmp_path" = x"no" ; then
35522 for f in /usr/adm/wtmp /var/log/wtmp; do
35523 if test -f $f ; then
35524 conf_wtmp_location=$f
35525 fi
35526 done
35527 if test -z "$conf_wtmp_location"; then
35528 cat >>confdefs.h <<\_ACEOF
35529#define DISABLE_WTMP 1
35530_ACEOF
35531
35532 fi
35533 fi
35534fi
35535if test -n "$conf_wtmp_location"; then
35536
35537cat >>confdefs.h <<_ACEOF
35538#define CONF_WTMP_FILE "$conf_wtmp_location"
35539_ACEOF
35540
35541fi
35542
35543{ echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
35544echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
35545cat >conftest.$ac_ext <<_ACEOF
35546/* confdefs.h. */
35547_ACEOF
35548cat confdefs.h >>conftest.$ac_ext
35549cat >>conftest.$ac_ext <<_ACEOF
35550/* end confdefs.h. */
35551
35552#include <sys/types.h>
35553#include <utmp.h>
35554#ifdef HAVE_UTMPX_H
35555#include <utmpx.h>
35556#endif
35557#ifdef HAVE_PATHS_H
35558# include <paths.h>
35559#endif
35560
35561int
35562main ()
35563{
35564 char *wtmpx = WTMPX_FILE;
35565 ;
35566 return 0;
35567}
35568_ACEOF
35569rm -f conftest.$ac_objext
35570if { (ac_try="$ac_compile"
35571case "(($ac_try" in
35572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35573 *) ac_try_echo=$ac_try;;
35574esac
35575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35576 (eval "$ac_compile") 2>conftest.er1
35577 ac_status=$?
35578 grep -v '^ *+' conftest.er1 >conftest.err
35579 rm -f conftest.er1
35580 cat conftest.err >&5
35581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35582 (exit $ac_status); } && {
35583 test -z "$ac_c_werror_flag" ||
35584 test ! -s conftest.err
35585 } && test -s conftest.$ac_objext; then
35586 { echo "$as_me:$LINENO: result: yes" >&5
35587echo "${ECHO_T}yes" >&6; }
35588else
35589 echo "$as_me: failed program was:" >&5
35590sed 's/^/| /' conftest.$ac_ext >&5
35591
35592 { echo "$as_me:$LINENO: result: no" >&5
35593echo "${ECHO_T}no" >&6; }
35594 system_wtmpx_path=no
35595
35596fi
35597
35598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35599if test -z "$conf_wtmpx_location"; then
35600 if test x"$system_wtmpx_path" = x"no" ; then
35601 cat >>confdefs.h <<\_ACEOF
35602#define DISABLE_WTMPX 1
35603_ACEOF
35604
35605 fi
35606else
35607
35608cat >>confdefs.h <<_ACEOF
35609#define CONF_WTMPX_FILE "$conf_wtmpx_location"
35610_ACEOF
35611
35612fi
35613
35614
35615if test ! -z "$blibpath" ; then
35616 LDFLAGS="$LDFLAGS $blibflags$blibpath"
35617 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
35618echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
35619fi
35620
35621{ echo "$as_me:$LINENO: checking for struct lastlog.ll_line" >&5
35622echo $ECHO_N "checking for struct lastlog.ll_line... $ECHO_C" >&6; }
35623if test "${ac_cv_member_struct_lastlog_ll_line+set}" = set; then
35624 echo $ECHO_N "(cached) $ECHO_C" >&6
35625else
35626 cat >conftest.$ac_ext <<_ACEOF
35627/* confdefs.h. */
35628_ACEOF
35629cat confdefs.h >>conftest.$ac_ext
35630cat >>conftest.$ac_ext <<_ACEOF
35631/* end confdefs.h. */
35632
35633#ifdef HAVE_SYS_TYPES_H
35634#include <sys/types.h>
35635#endif
35636#ifdef HAVE_UTMP_H
35637#include <utmp.h>
35638#endif
35639#ifdef HAVE_UTMPX_H
35640#include <utmpx.h>
35641#endif
35642#ifdef HAVE_LASTLOG_H
35643#include <lastlog.h>
35644#endif
35645
35646
35647int
35648main ()
35649{
35650static struct lastlog ac_aggr;
35651if (ac_aggr.ll_line)
35652return 0;
35653 ;
35654 return 0;
35655}
35656_ACEOF
35657rm -f conftest.$ac_objext
35658if { (ac_try="$ac_compile"
35659case "(($ac_try" in
35660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35661 *) ac_try_echo=$ac_try;;
35662esac
35663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35664 (eval "$ac_compile") 2>conftest.er1
35665 ac_status=$?
35666 grep -v '^ *+' conftest.er1 >conftest.err
35667 rm -f conftest.er1
35668 cat conftest.err >&5
35669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35670 (exit $ac_status); } && {
35671 test -z "$ac_c_werror_flag" ||
35672 test ! -s conftest.err
35673 } && test -s conftest.$ac_objext; then
35674 ac_cv_member_struct_lastlog_ll_line=yes
35675else
35676 echo "$as_me: failed program was:" >&5
35677sed 's/^/| /' conftest.$ac_ext >&5
35678
35679 cat >conftest.$ac_ext <<_ACEOF
35680/* confdefs.h. */
35681_ACEOF
35682cat confdefs.h >>conftest.$ac_ext
35683cat >>conftest.$ac_ext <<_ACEOF
35684/* end confdefs.h. */
35685
35686#ifdef HAVE_SYS_TYPES_H
35687#include <sys/types.h>
35688#endif
35689#ifdef HAVE_UTMP_H
35690#include <utmp.h>
35691#endif
35692#ifdef HAVE_UTMPX_H
35693#include <utmpx.h>
35694#endif
35695#ifdef HAVE_LASTLOG_H
35696#include <lastlog.h>
35697#endif
35698
35699
35700int
35701main ()
35702{
35703static struct lastlog ac_aggr;
35704if (sizeof ac_aggr.ll_line)
35705return 0;
35706 ;
35707 return 0;
35708}
35709_ACEOF
35710rm -f conftest.$ac_objext
35711if { (ac_try="$ac_compile"
35712case "(($ac_try" in
35713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35714 *) ac_try_echo=$ac_try;;
35715esac
35716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35717 (eval "$ac_compile") 2>conftest.er1
35718 ac_status=$?
35719 grep -v '^ *+' conftest.er1 >conftest.err
35720 rm -f conftest.er1
35721 cat conftest.err >&5
35722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35723 (exit $ac_status); } && {
35724 test -z "$ac_c_werror_flag" ||
35725 test ! -s conftest.err
35726 } && test -s conftest.$ac_objext; then
35727 ac_cv_member_struct_lastlog_ll_line=yes
35728else
35729 echo "$as_me: failed program was:" >&5
35730sed 's/^/| /' conftest.$ac_ext >&5
35731
35732 ac_cv_member_struct_lastlog_ll_line=no
35733fi
35734
35735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35736fi
35737
35738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35739fi
35740{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_lastlog_ll_line" >&5
35741echo "${ECHO_T}$ac_cv_member_struct_lastlog_ll_line" >&6; }
35742if test $ac_cv_member_struct_lastlog_ll_line = yes; then
35743 :
35744else
35745
35746 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then
35747 cat >>confdefs.h <<\_ACEOF
35748#define DISABLE_LASTLOG 1
35749_ACEOF
35750
35751 fi
35752
35753fi
35754
35755
35756{ echo "$as_me:$LINENO: checking for struct utmp.ut_line" >&5
35757echo $ECHO_N "checking for struct utmp.ut_line... $ECHO_C" >&6; }
35758if test "${ac_cv_member_struct_utmp_ut_line+set}" = set; then
35759 echo $ECHO_N "(cached) $ECHO_C" >&6
35760else
35761 cat >conftest.$ac_ext <<_ACEOF
35762/* confdefs.h. */
35763_ACEOF
35764cat confdefs.h >>conftest.$ac_ext
35765cat >>conftest.$ac_ext <<_ACEOF
35766/* end confdefs.h. */
35767
35768#ifdef HAVE_SYS_TYPES_H
35769#include <sys/types.h>
35770#endif
35771#ifdef HAVE_UTMP_H
35772#include <utmp.h>
35773#endif
35774#ifdef HAVE_UTMPX_H
35775#include <utmpx.h>
35776#endif
35777#ifdef HAVE_LASTLOG_H
35778#include <lastlog.h>
35779#endif
35780
35781
35782int
35783main ()
35784{
35785static struct utmp ac_aggr;
35786if (ac_aggr.ut_line)
35787return 0;
35788 ;
35789 return 0;
35790}
35791_ACEOF
35792rm -f conftest.$ac_objext
35793if { (ac_try="$ac_compile"
35794case "(($ac_try" in
35795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35796 *) ac_try_echo=$ac_try;;
35797esac
35798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35799 (eval "$ac_compile") 2>conftest.er1
35800 ac_status=$?
35801 grep -v '^ *+' conftest.er1 >conftest.err
35802 rm -f conftest.er1
35803 cat conftest.err >&5
35804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35805 (exit $ac_status); } && {
35806 test -z "$ac_c_werror_flag" ||
35807 test ! -s conftest.err
35808 } && test -s conftest.$ac_objext; then
35809 ac_cv_member_struct_utmp_ut_line=yes
35810else
35811 echo "$as_me: failed program was:" >&5
35812sed 's/^/| /' conftest.$ac_ext >&5
35813
35814 cat >conftest.$ac_ext <<_ACEOF
35815/* confdefs.h. */
35816_ACEOF
35817cat confdefs.h >>conftest.$ac_ext
35818cat >>conftest.$ac_ext <<_ACEOF
35819/* end confdefs.h. */
35820
35821#ifdef HAVE_SYS_TYPES_H
35822#include <sys/types.h>
35823#endif
35824#ifdef HAVE_UTMP_H
35825#include <utmp.h>
35826#endif
35827#ifdef HAVE_UTMPX_H
35828#include <utmpx.h>
35829#endif
35830#ifdef HAVE_LASTLOG_H
35831#include <lastlog.h>
35832#endif
35833
35834
35835int
35836main ()
35837{
35838static struct utmp ac_aggr;
35839if (sizeof ac_aggr.ut_line)
35840return 0;
35841 ;
35842 return 0;
35843}
35844_ACEOF
35845rm -f conftest.$ac_objext
35846if { (ac_try="$ac_compile"
35847case "(($ac_try" in
35848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35849 *) ac_try_echo=$ac_try;;
35850esac
35851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35852 (eval "$ac_compile") 2>conftest.er1
35853 ac_status=$?
35854 grep -v '^ *+' conftest.er1 >conftest.err
35855 rm -f conftest.er1
35856 cat conftest.err >&5
35857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35858 (exit $ac_status); } && {
35859 test -z "$ac_c_werror_flag" ||
35860 test ! -s conftest.err
35861 } && test -s conftest.$ac_objext; then
35862 ac_cv_member_struct_utmp_ut_line=yes
35863else
35864 echo "$as_me: failed program was:" >&5
35865sed 's/^/| /' conftest.$ac_ext >&5
35866
35867 ac_cv_member_struct_utmp_ut_line=no
35868fi
35869
35870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35871fi
35872
35873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35874fi
35875{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_line" >&5
35876echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_line" >&6; }
35877if test $ac_cv_member_struct_utmp_ut_line = yes; then
35878 :
35879else
35880
35881 cat >>confdefs.h <<\_ACEOF
35882#define DISABLE_UTMP 1
35883_ACEOF
35884
35885 cat >>confdefs.h <<\_ACEOF
35886#define DISABLE_WTMP 1
35887_ACEOF
35888
35889
35890fi
35891
35892
35893CFLAGS="$CFLAGS $werror_flags"
35894
35895if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
35896 TEST_SSH_IPV6=no
35897else
35898 TEST_SSH_IPV6=yes
35899fi
35900{ echo "$as_me:$LINENO: checking whether BROKEN_GETADDRINFO is declared" >&5
35901echo $ECHO_N "checking whether BROKEN_GETADDRINFO is declared... $ECHO_C" >&6; }
35902if test "${ac_cv_have_decl_BROKEN_GETADDRINFO+set}" = set; then
35903 echo $ECHO_N "(cached) $ECHO_C" >&6
35904else
35905 cat >conftest.$ac_ext <<_ACEOF
35906/* confdefs.h. */
35907_ACEOF
35908cat confdefs.h >>conftest.$ac_ext
35909cat >>conftest.$ac_ext <<_ACEOF
35910/* end confdefs.h. */
35911$ac_includes_default
35912int
35913main ()
35914{
35915#ifndef BROKEN_GETADDRINFO
35916 (void) BROKEN_GETADDRINFO;
35917#endif
35918
35919 ;
35920 return 0;
35921}
35922_ACEOF
35923rm -f conftest.$ac_objext
35924if { (ac_try="$ac_compile"
35925case "(($ac_try" in
35926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35927 *) ac_try_echo=$ac_try;;
35928esac
35929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35930 (eval "$ac_compile") 2>conftest.er1
35931 ac_status=$?
35932 grep -v '^ *+' conftest.er1 >conftest.err
35933 rm -f conftest.er1
35934 cat conftest.err >&5
35935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35936 (exit $ac_status); } && {
35937 test -z "$ac_c_werror_flag" ||
35938 test ! -s conftest.err
35939 } && test -s conftest.$ac_objext; then
35940 ac_cv_have_decl_BROKEN_GETADDRINFO=yes
35941else
35942 echo "$as_me: failed program was:" >&5
35943sed 's/^/| /' conftest.$ac_ext >&5
35944
35945 ac_cv_have_decl_BROKEN_GETADDRINFO=no
35946fi
35947
35948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35949fi
35950{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_BROKEN_GETADDRINFO" >&5
35951echo "${ECHO_T}$ac_cv_have_decl_BROKEN_GETADDRINFO" >&6; }
35952if test $ac_cv_have_decl_BROKEN_GETADDRINFO = yes; then
35953 TEST_SSH_IPV6=no
35954fi
35955
35956TEST_SSH_IPV6=$TEST_SSH_IPV6
35957
35958TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS
35959
35960UNSUPPORTED_ALGORITHMS=$unsupported_algorithms
35961
35962
35963
35964ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
35965
35966cat >confcache <<\_ACEOF
35967# This file is a shell script that caches the results of configure
35968# tests run on this system so they can be shared between configure
35969# scripts and configure runs, see configure's option --config-cache.
35970# It is not useful on other systems. If it contains results you don't
35971# want to keep, you may remove or edit it.
35972#
35973# config.status only pays attention to the cache file if you give it
35974# the --recheck option to rerun configure.
35975#
35976# `ac_cv_env_foo' variables (set or unset) will be overridden when
35977# loading this file, other *unset* `ac_cv_foo' will be assigned the
35978# following values.
35979
35980_ACEOF
35981
35982# The following way of writing the cache mishandles newlines in values,
35983# but we know of no workaround that is simple, portable, and efficient.
35984# So, we kill variables containing newlines.
35985# Ultrix sh set writes to stderr and can't be redirected directly,
35986# and sets the high bit in the cache file unless we assign to the vars.
35987(
35988 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35989 eval ac_val=\$$ac_var
35990 case $ac_val in #(
35991 *${as_nl}*)
35992 case $ac_var in #(
35993 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35994echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35995 esac
35996 case $ac_var in #(
35997 _ | IFS | as_nl) ;; #(
35998 *) $as_unset $ac_var ;;
35999 esac ;;
36000 esac
36001 done
36002
36003 (set) 2>&1 |
36004 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36005 *${as_nl}ac_space=\ *)
36006 # `set' does not quote correctly, so add quotes (double-quote
36007 # substitution turns \\\\ into \\, and sed turns \\ into \).
36008 sed -n \
36009 "s/'/'\\\\''/g;
36010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36011 ;; #(
36012 *)
36013 # `set' quotes correctly as required by POSIX, so do not add quotes.
36014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36015 ;;
36016 esac |
36017 sort
36018) |
36019 sed '
36020 /^ac_cv_env_/b end
36021 t clear
36022 :clear
36023 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36024 t end
36025 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36026 :end' >>confcache
36027if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36028 if test -w "$cache_file"; then
36029 test "x$cache_file" != "x/dev/null" &&
36030 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
36031echo "$as_me: updating cache $cache_file" >&6;}
36032 cat confcache >$cache_file
36033 else
36034 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
36035echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36036 fi
36037fi
36038rm -f confcache
36039
36040test "x$prefix" = xNONE && prefix=$ac_default_prefix
36041# Let make expand exec_prefix.
36042test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36043
36044DEFS=-DHAVE_CONFIG_H
36045
36046ac_libobjs=
36047ac_ltlibobjs=
36048for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36049 # 1. Remove the extension, and $U if already installed.
36050 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36051 ac_i=`echo "$ac_i" | sed "$ac_script"`
36052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36053 # will be set to the directory where LIBOBJS objects are built.
36054 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36055 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
36056done
36057LIBOBJS=$ac_libobjs
36058
36059LTLIBOBJS=$ac_ltlibobjs
36060
36061
36062
36063: ${CONFIG_STATUS=./config.status}
36064ac_clean_files_save=$ac_clean_files
36065ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36066{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
36067echo "$as_me: creating $CONFIG_STATUS" >&6;}
36068cat >$CONFIG_STATUS <<_ACEOF
36069#! $SHELL
36070# Generated by $as_me.
36071# Run this file to recreate the current configuration.
36072# Compiler output produced by configure, useful for debugging
36073# configure, is in config.log if it exists.
36074
36075debug=false
36076ac_cs_recheck=false
36077ac_cs_silent=false
36078SHELL=\${CONFIG_SHELL-$SHELL}
36079_ACEOF
36080
36081cat >>$CONFIG_STATUS <<\_ACEOF
36082## --------------------- ##
36083## M4sh Initialization. ##
36084## --------------------- ##
36085
36086# Be more Bourne compatible
36087DUALCASE=1; export DUALCASE # for MKS sh
36088if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
36089 emulate sh
36090 NULLCMD=:
36091 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
36092 # is contrary to our usage. Disable this feature.
36093 alias -g '${1+"$@"}'='"$@"'
36094 setopt NO_GLOB_SUBST
36095else
36096 case `(set -o) 2>/dev/null` in
36097 *posix*) set -o posix ;;
36098esac
36099
36100fi
36101
36102
36103
36104
36105# PATH needs CR
36106# Avoid depending upon Character Ranges.
36107as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36108as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36109as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36110as_cr_digits='0123456789'
36111as_cr_alnum=$as_cr_Letters$as_cr_digits
36112
36113# The user is always right.
36114if test "${PATH_SEPARATOR+set}" != set; then
36115 echo "#! /bin/sh" >conf$$.sh
36116 echo "exit 0" >>conf$$.sh
36117 chmod +x conf$$.sh
36118 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
36119 PATH_SEPARATOR=';'
36120 else
36121 PATH_SEPARATOR=:
36122 fi
36123 rm -f conf$$.sh
36124fi
36125
36126# Support unset when possible.
36127if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36128 as_unset=unset
36129else
36130 as_unset=false
36131fi
36132
36133
36134# IFS
36135# We need space, tab and new line, in precisely that order. Quoting is
36136# there to prevent editors from complaining about space-tab.
36137# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36138# splitting by setting IFS to empty value.)
36139as_nl='
36140'
36141IFS=" "" $as_nl"
36142
36143# Find who we are. Look in the path if we contain no directory separator.
36144case $0 in
36145 *[\\/]* ) as_myself=$0 ;;
36146 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36147for as_dir in $PATH
36148do
36149 IFS=$as_save_IFS
36150 test -z "$as_dir" && as_dir=.
36151 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36152done
36153IFS=$as_save_IFS
36154
36155 ;;
36156esac
36157# We did not find ourselves, most probably we were run as `sh COMMAND'
36158# in which case we are not to be found in the path.
36159if test "x$as_myself" = x; then
36160 as_myself=$0
36161fi
36162if test ! -f "$as_myself"; then
36163 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36164 { (exit 1); exit 1; }
36165fi
36166
36167# Work around bugs in pre-3.0 UWIN ksh.
36168for as_var in ENV MAIL MAILPATH
36169do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
36170done
36171PS1='$ '
36172PS2='> '
36173PS4='+ '
36174
36175# NLS nuisances.
36176for as_var in \
36177 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
36178 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
36179 LC_TELEPHONE LC_TIME
36180do
36181 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
36182 eval $as_var=C; export $as_var
36183 else
36184 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
36185 fi
36186done
36187
36188# Required to use basename.
36189if expr a : '\(a\)' >/dev/null 2>&1 &&
36190 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36191 as_expr=expr
36192else
36193 as_expr=false
36194fi
36195
36196if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36197 as_basename=basename
36198else
36199 as_basename=false
36200fi
36201
36202
36203# Name of the executable.
36204as_me=`$as_basename -- "$0" ||
36205$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36206 X"$0" : 'X\(//\)$' \| \
36207 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36208echo X/"$0" |
36209 sed '/^.*\/\([^/][^/]*\)\/*$/{
36210 s//\1/
36211 q
36212 }
36213 /^X\/\(\/\/\)$/{
36214 s//\1/
36215 q
36216 }
36217 /^X\/\(\/\).*/{
36218 s//\1/
36219 q
36220 }
36221 s/.*/./; q'`
36222
36223# CDPATH.
36224$as_unset CDPATH
36225
36226
36227
36228 as_lineno_1=$LINENO
36229 as_lineno_2=$LINENO
36230 test "x$as_lineno_1" != "x$as_lineno_2" &&
36231 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
36232
36233 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
36234 # uniformly replaced by the line number. The first 'sed' inserts a
36235 # line-number line after each line using $LINENO; the second 'sed'
36236 # does the real work. The second script uses 'N' to pair each
36237 # line-number line with the line containing $LINENO, and appends
36238 # trailing '-' during substitution so that $LINENO is not a special
36239 # case at line end.
36240 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
36241 # scripts with optimization help from Paolo Bonzini. Blame Lee
36242 # E. McMahon (1931-1989) for sed's syntax. :-)
36243 sed -n '
36244 p
36245 /[$]LINENO/=
36246 ' <$as_myself |
36247 sed '
36248 s/[$]LINENO.*/&-/
36249 t lineno
36250 b
36251 :lineno
36252 N
36253 :loop
36254 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
36255 t loop
36256 s/-\n.*//
36257 ' >$as_me.lineno &&
36258 chmod +x "$as_me.lineno" ||
36259 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
36260 { (exit 1); exit 1; }; }
36261
36262 # Don't try to exec as it changes $[0], causing all sort of problems
36263 # (the dirname of $[0] is not the place where we might find the
36264 # original and so on. Autoconf is especially sensitive to this).
36265 . "./$as_me.lineno"
36266 # Exit status is that of the last command.
36267 exit
36268}
36269
36270
36271if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36272 as_dirname=dirname
36273else
36274 as_dirname=false
36275fi
36276
36277ECHO_C= ECHO_N= ECHO_T=
36278case `echo -n x` in
36279-n*)
36280 case `echo 'x\c'` in
36281 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
36282 *) ECHO_C='\c';;
36283 esac;;
36284*)
36285 ECHO_N='-n';;
36286esac
36287
36288if expr a : '\(a\)' >/dev/null 2>&1 &&
36289 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36290 as_expr=expr
36291else
36292 as_expr=false
36293fi
36294
36295rm -f conf$$ conf$$.exe conf$$.file
36296if test -d conf$$.dir; then
36297 rm -f conf$$.dir/conf$$.file
36298else
36299 rm -f conf$$.dir
36300 mkdir conf$$.dir
36301fi
36302echo >conf$$.file
36303if ln -s conf$$.file conf$$ 2>/dev/null; then
36304 as_ln_s='ln -s'
36305 # ... but there are two gotchas:
36306 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36307 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36308 # In both cases, we have to default to `cp -p'.
36309 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36310 as_ln_s='cp -p'
36311elif ln conf$$.file conf$$ 2>/dev/null; then
36312 as_ln_s=ln
36313else
36314 as_ln_s='cp -p'
36315fi
36316rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36317rmdir conf$$.dir 2>/dev/null
36318
36319if mkdir -p . 2>/dev/null; then
36320 as_mkdir_p=:
36321else
36322 test -d ./-p && rmdir ./-p
36323 as_mkdir_p=false
36324fi
36325
36326if test -x / >/dev/null 2>&1; then
36327 as_test_x='test -x'
36328else
36329 if ls -dL / >/dev/null 2>&1; then
36330 as_ls_L_option=L
36331 else
36332 as_ls_L_option=
36333 fi
36334 as_test_x='
36335 eval sh -c '\''
36336 if test -d "$1"; then
36337 test -d "$1/.";
36338 else
36339 case $1 in
36340 -*)set "./$1";;
36341 esac;
36342 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
36343 ???[sx]*):;;*)false;;esac;fi
36344 '\'' sh
36345 '
36346fi
36347as_executable_p=$as_test_x
36348
36349# Sed expression to map a string onto a valid CPP name.
36350as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36351
36352# Sed expression to map a string onto a valid variable name.
36353as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36354
36355
36356exec 6>&1
36357
36358# Save the log message, to keep $[0] and so on meaningful, and to
36359# report actual input values of CONFIG_FILES etc. instead of their
36360# values after options handling.
36361ac_log="
36362This file was extended by OpenSSH $as_me Portable, which was
36363generated by GNU Autoconf 2.61. Invocation command line was
36364
36365 CONFIG_FILES = $CONFIG_FILES
36366 CONFIG_HEADERS = $CONFIG_HEADERS
36367 CONFIG_LINKS = $CONFIG_LINKS
36368 CONFIG_COMMANDS = $CONFIG_COMMANDS
36369 $ $0 $@
36370
36371on `(hostname || uname -n) 2>/dev/null | sed 1q`
36372"
36373
36374_ACEOF
36375
36376cat >>$CONFIG_STATUS <<_ACEOF
36377# Files that config.status was made for.
36378config_files="$ac_config_files"
36379config_headers="$ac_config_headers"
36380
36381_ACEOF
36382
36383cat >>$CONFIG_STATUS <<\_ACEOF
36384ac_cs_usage="\
36385\`$as_me' instantiates files from templates according to the
36386current configuration.
36387
36388Usage: $0 [OPTIONS] [FILE]...
36389
36390 -h, --help print this help, then exit
36391 -V, --version print version number and configuration settings, then exit
36392 -q, --quiet do not print progress messages
36393 -d, --debug don't remove temporary files
36394 --recheck update $as_me by reconfiguring in the same conditions
36395 --file=FILE[:TEMPLATE]
36396 instantiate the configuration file FILE
36397 --header=FILE[:TEMPLATE]
36398 instantiate the configuration header FILE
36399
36400Configuration files:
36401$config_files
36402
36403Configuration headers:
36404$config_headers
36405
36406Report bugs to <bug-autoconf@gnu.org>."
36407
36408_ACEOF
36409cat >>$CONFIG_STATUS <<_ACEOF
36410ac_cs_version="\\
36411OpenSSH config.status Portable
36412configured by $0, generated by GNU Autoconf 2.61,
36413 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
36414
36415Copyright (C) 2006 Free Software Foundation, Inc.
36416This config.status script is free software; the Free Software Foundation
36417gives unlimited permission to copy, distribute and modify it."
36418
36419ac_pwd='$ac_pwd'
36420srcdir='$srcdir'
36421INSTALL='$INSTALL'
36422_ACEOF
36423
36424cat >>$CONFIG_STATUS <<\_ACEOF
36425# If no file are specified by the user, then we need to provide default
36426# value. By we need to know if files were specified by the user.
36427ac_need_defaults=:
36428while test $# != 0
36429do
36430 case $1 in
36431 --*=*)
36432 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36433 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36434 ac_shift=:
36435 ;;
36436 *)
36437 ac_option=$1
36438 ac_optarg=$2
36439 ac_shift=shift
36440 ;;
36441 esac
36442
36443 case $ac_option in
36444 # Handling of the options.
36445 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36446 ac_cs_recheck=: ;;
36447 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36448 echo "$ac_cs_version"; exit ;;
36449 --debug | --debu | --deb | --de | --d | -d )
36450 debug=: ;;
36451 --file | --fil | --fi | --f )
36452 $ac_shift
36453 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36454 ac_need_defaults=false;;
36455 --header | --heade | --head | --hea )
36456 $ac_shift
36457 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36458 ac_need_defaults=false;;
36459 --he | --h)
36460 # Conflict between --help and --header
36461 { echo "$as_me: error: ambiguous option: $1
36462Try \`$0 --help' for more information." >&2
36463 { (exit 1); exit 1; }; };;
36464 --help | --hel | -h )
36465 echo "$ac_cs_usage"; exit ;;
36466 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36467 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36468 ac_cs_silent=: ;;
36469
36470 # This is an error.
36471 -*) { echo "$as_me: error: unrecognized option: $1
36472Try \`$0 --help' for more information." >&2
36473 { (exit 1); exit 1; }; } ;;
36474
36475 *) ac_config_targets="$ac_config_targets $1"
36476 ac_need_defaults=false ;;
36477
36478 esac
36479 shift
36480done
36481
36482ac_configure_extra_args=
36483
36484if $ac_cs_silent; then
36485 exec 6>/dev/null
36486 ac_configure_extra_args="$ac_configure_extra_args --silent"
36487fi
36488
36489_ACEOF
36490cat >>$CONFIG_STATUS <<_ACEOF
36491if \$ac_cs_recheck; then
36492 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36493 CONFIG_SHELL=$SHELL
36494 export CONFIG_SHELL
36495 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36496fi
36497
36498_ACEOF
36499cat >>$CONFIG_STATUS <<\_ACEOF
36500exec 5>>config.log
36501{
36502 echo
36503 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36504## Running $as_me. ##
36505_ASBOX
36506 echo "$ac_log"
36507} >&5
36508
36509_ACEOF
36510cat >>$CONFIG_STATUS <<_ACEOF
36511_ACEOF
36512
36513cat >>$CONFIG_STATUS <<\_ACEOF
36514
36515# Handling of arguments.
36516for ac_config_target in $ac_config_targets
36517do
36518 case $ac_config_target in
36519 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
36520 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36521 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
36522 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
36523 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
36524 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
36525 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
36526 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
36527
36528 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36529echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36530 { (exit 1); exit 1; }; };;
36531 esac
36532done
36533
36534
36535# If the user did not use the arguments to specify the items to instantiate,
36536# then the envvar interface is used. Set only those that are not.
36537# We use the long form for the default assignment because of an extremely
36538# bizarre bug on SunOS 4.1.3.
36539if $ac_need_defaults; then
36540 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36541 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36542fi
36543
36544# Have a temporary directory for convenience. Make it in the build tree
36545# simply because there is no reason against having it here, and in addition,
36546# creating and moving files from /tmp can sometimes cause problems.
36547# Hook for its removal unless debugging.
36548# Note that there is a small window in which the directory will not be cleaned:
36549# after its creation but before its name has been assigned to `$tmp'.
36550$debug ||
36551{
36552 tmp=
36553 trap 'exit_status=$?
36554 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36555' 0
36556 trap '{ (exit 1); exit 1; }' 1 2 13 15
36557}
36558# Create a (secure) tmp directory for tmp files.
36559
36560{
36561 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36562 test -n "$tmp" && test -d "$tmp"
36563} ||
36564{
36565 tmp=./conf$$-$RANDOM
36566 (umask 077 && mkdir "$tmp")
36567} ||
36568{
36569 echo "$me: cannot create a temporary directory in ." >&2
36570 { (exit 1); exit 1; }
36571}
36572
36573#
36574# Set up the sed scripts for CONFIG_FILES section.
36575#
36576
36577# No need to generate the scripts if there are no CONFIG_FILES.
36578# This happens for instance when ./config.status config.h
36579if test -n "$CONFIG_FILES"; then
36580
36581_ACEOF
36582
36583
36584
36585ac_delim='%!_!# '
36586for ac_last_try in false false false false false :; do
36587 cat >conf$$subs.sed <<_ACEOF
36588SHELL!$SHELL$ac_delim
36589PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36590PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36591PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36592PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36593PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36594PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36595exec_prefix!$exec_prefix$ac_delim
36596prefix!$prefix$ac_delim
36597program_transform_name!$program_transform_name$ac_delim
36598bindir!$bindir$ac_delim
36599sbindir!$sbindir$ac_delim
36600libexecdir!$libexecdir$ac_delim
36601datarootdir!$datarootdir$ac_delim
36602datadir!$datadir$ac_delim
36603sysconfdir!$sysconfdir$ac_delim
36604sharedstatedir!$sharedstatedir$ac_delim
36605localstatedir!$localstatedir$ac_delim
36606includedir!$includedir$ac_delim
36607oldincludedir!$oldincludedir$ac_delim
36608docdir!$docdir$ac_delim
36609infodir!$infodir$ac_delim
36610htmldir!$htmldir$ac_delim
36611dvidir!$dvidir$ac_delim
36612pdfdir!$pdfdir$ac_delim
36613psdir!$psdir$ac_delim
36614libdir!$libdir$ac_delim
36615localedir!$localedir$ac_delim
36616mandir!$mandir$ac_delim
36617DEFS!$DEFS$ac_delim
36618ECHO_C!$ECHO_C$ac_delim
36619ECHO_N!$ECHO_N$ac_delim
36620ECHO_T!$ECHO_T$ac_delim
36621LIBS!$LIBS$ac_delim
36622build_alias!$build_alias$ac_delim
36623host_alias!$host_alias$ac_delim
36624target_alias!$target_alias$ac_delim
36625CC!$CC$ac_delim
36626CFLAGS!$CFLAGS$ac_delim
36627LDFLAGS!$LDFLAGS$ac_delim
36628CPPFLAGS!$CPPFLAGS$ac_delim
36629ac_ct_CC!$ac_ct_CC$ac_delim
36630EXEEXT!$EXEEXT$ac_delim
36631OBJEXT!$OBJEXT$ac_delim
36632build!$build$ac_delim
36633build_cpu!$build_cpu$ac_delim
36634build_vendor!$build_vendor$ac_delim
36635build_os!$build_os$ac_delim
36636host!$host$ac_delim
36637host_cpu!$host_cpu$ac_delim
36638host_vendor!$host_vendor$ac_delim
36639host_os!$host_os$ac_delim
36640CPP!$CPP$ac_delim
36641GREP!$GREP$ac_delim
36642EGREP!$EGREP$ac_delim
36643AWK!$AWK$ac_delim
36644RANLIB!$RANLIB$ac_delim
36645INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36646INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36647INSTALL_DATA!$INSTALL_DATA$ac_delim
36648AR!$AR$ac_delim
36649ac_ct_AR!$ac_ct_AR$ac_delim
36650CAT!$CAT$ac_delim
36651KILL!$KILL$ac_delim
36652PERL!$PERL$ac_delim
36653SED!$SED$ac_delim
36654ENT!$ENT$ac_delim
36655TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
36656SH!$SH$ac_delim
36657GROFF!$GROFF$ac_delim
36658NROFF!$NROFF$ac_delim
36659MANDOC!$MANDOC$ac_delim
36660TEST_SHELL!$TEST_SHELL$ac_delim
36661MANFMT!$MANFMT$ac_delim
36662PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
36663PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
36664MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
36665STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
36666LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
36667PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
36668LD!$LD$ac_delim
36669PKGCONFIG!$PKGCONFIG$ac_delim
36670LIBEDIT!$LIBEDIT$ac_delim
36671TEST_SSH_ECC!$TEST_SSH_ECC$ac_delim
36672COMMENT_OUT_ECC!$COMMENT_OUT_ECC$ac_delim
36673SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
36674SSHLIBS!$SSHLIBS$ac_delim
36675SSHDLIBS!$SSHDLIBS$ac_delim
36676KRB5CONF!$KRB5CONF$ac_delim
36677GSSLIBS!$GSSLIBS$ac_delim
36678K5LIBS!$K5LIBS$ac_delim
36679PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
36680xauth_path!$xauth_path$ac_delim
36681STRIP_OPT!$STRIP_OPT$ac_delim
36682XAUTH_PATH!$XAUTH_PATH$ac_delim
36683MANTYPE!$MANTYPE$ac_delim
36684mansubdir!$mansubdir$ac_delim
36685_ACEOF
36686
36687 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36688 break
36689 elif $ac_last_try; then
36690 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36691echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36692 { (exit 1); exit 1; }; }
36693 else
36694 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36695 fi
36696done
36697
36698ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36699if test -n "$ac_eof"; then
36700 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36701 ac_eof=`expr $ac_eof + 1`
36702fi
36703
36704cat >>$CONFIG_STATUS <<_ACEOF
36705cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36706/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36707_ACEOF
36708sed '
36709s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36710s/^/s,@/; s/!/@,|#_!!_#|/
36711:n
36712t n
36713s/'"$ac_delim"'$/,g/; t
36714s/$/\\/; p
36715N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36716' >>$CONFIG_STATUS <conf$$subs.sed
36717rm -f conf$$subs.sed
36718cat >>$CONFIG_STATUS <<_ACEOF
36719CEOF$ac_eof
36720_ACEOF
36721
36722
36723ac_delim='%!_!# '
36724for ac_last_try in false false false false false :; do
36725 cat >conf$$subs.sed <<_ACEOF
36726user_path!$user_path$ac_delim
36727piddir!$piddir$ac_delim
36728TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim
36729TEST_MALLOC_OPTIONS!$TEST_MALLOC_OPTIONS$ac_delim
36730UNSUPPORTED_ALGORITHMS!$UNSUPPORTED_ALGORITHMS$ac_delim
36731LIBOBJS!$LIBOBJS$ac_delim
36732LTLIBOBJS!$LTLIBOBJS$ac_delim
36733_ACEOF
36734
36735 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
36736 break
36737 elif $ac_last_try; then
36738 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36739echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36740 { (exit 1); exit 1; }; }
36741 else
36742 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36743 fi
36744done
36745
36746ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36747if test -n "$ac_eof"; then
36748 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36749 ac_eof=`expr $ac_eof + 1`
36750fi
36751
36752cat >>$CONFIG_STATUS <<_ACEOF
36753cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36754/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36755_ACEOF
36756sed '
36757s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36758s/^/s,@/; s/!/@,|#_!!_#|/
36759:n
36760t n
36761s/'"$ac_delim"'$/,g/; t
36762s/$/\\/; p
36763N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36764' >>$CONFIG_STATUS <conf$$subs.sed
36765rm -f conf$$subs.sed
36766cat >>$CONFIG_STATUS <<_ACEOF
36767:end
36768s/|#_!!_#|//g
36769CEOF$ac_eof
36770_ACEOF
36771
36772
36773# VPATH may cause trouble with some makes, so we remove $(srcdir),
36774# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36775# trailing colons and then remove the whole line if VPATH becomes empty
36776# (actually we leave an empty line to preserve line numbers).
36777if test "x$srcdir" = x.; then
36778 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36779s/:*\$(srcdir):*/:/
36780s/:*\${srcdir}:*/:/
36781s/:*@srcdir@:*/:/
36782s/^\([^=]*=[ ]*\):*/\1/
36783s/:*$//
36784s/^[^=]*=[ ]*$//
36785}'
36786fi
36787
36788cat >>$CONFIG_STATUS <<\_ACEOF
36789fi # test -n "$CONFIG_FILES"
36790
36791
36792for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
36793do
36794 case $ac_tag in
36795 :[FHLC]) ac_mode=$ac_tag; continue;;
36796 esac
36797 case $ac_mode$ac_tag in
36798 :[FHL]*:*);;
36799 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36800echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36801 { (exit 1); exit 1; }; };;
36802 :[FH]-) ac_tag=-:-;;
36803 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36804 esac
36805 ac_save_IFS=$IFS
36806 IFS=:
36807 set x $ac_tag
36808 IFS=$ac_save_IFS
36809 shift
36810 ac_file=$1
36811 shift
36812
36813 case $ac_mode in
36814 :L) ac_source=$1;;
36815 :[FH])
36816 ac_file_inputs=
36817 for ac_f
36818 do
36819 case $ac_f in
36820 -) ac_f="$tmp/stdin";;
36821 *) # Look for the file first in the build tree, then in the source tree
36822 # (if the path is not absolute). The absolute path cannot be DOS-style,
36823 # because $ac_f cannot contain `:'.
36824 test -f "$ac_f" ||
36825 case $ac_f in
36826 [\\/$]*) false;;
36827 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36828 esac ||
36829 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36830echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36831 { (exit 1); exit 1; }; };;
36832 esac
36833 ac_file_inputs="$ac_file_inputs $ac_f"
36834 done
36835
36836 # Let's still pretend it is `configure' which instantiates (i.e., don't
36837 # use $as_me), people would be surprised to read:
36838 # /* config.h. Generated by config.status. */
36839 configure_input="Generated from "`IFS=:
36840 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36841 if test x"$ac_file" != x-; then
36842 configure_input="$ac_file. $configure_input"
36843 { echo "$as_me:$LINENO: creating $ac_file" >&5
36844echo "$as_me: creating $ac_file" >&6;}
36845 fi
36846
36847 case $ac_tag in
36848 *:-:* | *:-) cat >"$tmp/stdin";;
36849 esac
36850 ;;
36851 esac
36852
36853 ac_dir=`$as_dirname -- "$ac_file" ||
36854$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36855 X"$ac_file" : 'X\(//\)[^/]' \| \
36856 X"$ac_file" : 'X\(//\)$' \| \
36857 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36858echo X"$ac_file" |
36859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36860 s//\1/
36861 q
36862 }
36863 /^X\(\/\/\)[^/].*/{
36864 s//\1/
36865 q
36866 }
36867 /^X\(\/\/\)$/{
36868 s//\1/
36869 q
36870 }
36871 /^X\(\/\).*/{
36872 s//\1/
36873 q
36874 }
36875 s/.*/./; q'`
36876 { as_dir="$ac_dir"
36877 case $as_dir in #(
36878 -*) as_dir=./$as_dir;;
36879 esac
36880 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36881 as_dirs=
36882 while :; do
36883 case $as_dir in #(
36884 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36885 *) as_qdir=$as_dir;;
36886 esac
36887 as_dirs="'$as_qdir' $as_dirs"
36888 as_dir=`$as_dirname -- "$as_dir" ||
36889$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36890 X"$as_dir" : 'X\(//\)[^/]' \| \
36891 X"$as_dir" : 'X\(//\)$' \| \
36892 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36893echo X"$as_dir" |
36894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36895 s//\1/
36896 q
36897 }
36898 /^X\(\/\/\)[^/].*/{
36899 s//\1/
36900 q
36901 }
36902 /^X\(\/\/\)$/{
36903 s//\1/
36904 q
36905 }
36906 /^X\(\/\).*/{
36907 s//\1/
36908 q
36909 }
36910 s/.*/./; q'`
36911 test -d "$as_dir" && break
36912 done
36913 test -z "$as_dirs" || eval "mkdir $as_dirs"
36914 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36915echo "$as_me: error: cannot create directory $as_dir" >&2;}
36916 { (exit 1); exit 1; }; }; }
36917 ac_builddir=.
36918
36919case "$ac_dir" in
36920.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36921*)
36922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36923 # A ".." for each directory in $ac_dir_suffix.
36924 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36925 case $ac_top_builddir_sub in
36926 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36927 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36928 esac ;;
36929esac
36930ac_abs_top_builddir=$ac_pwd
36931ac_abs_builddir=$ac_pwd$ac_dir_suffix
36932# for backward compatibility:
36933ac_top_builddir=$ac_top_build_prefix
36934
36935case $srcdir in
36936 .) # We are building in place.
36937 ac_srcdir=.
36938 ac_top_srcdir=$ac_top_builddir_sub
36939 ac_abs_top_srcdir=$ac_pwd ;;
36940 [\\/]* | ?:[\\/]* ) # Absolute name.
36941 ac_srcdir=$srcdir$ac_dir_suffix;
36942 ac_top_srcdir=$srcdir
36943 ac_abs_top_srcdir=$srcdir ;;
36944 *) # Relative name.
36945 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36946 ac_top_srcdir=$ac_top_build_prefix$srcdir
36947 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36948esac
36949ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36950
36951
36952 case $ac_mode in
36953 :F)
36954 #
36955 # CONFIG_FILE
36956 #
36957
36958 case $INSTALL in
36959 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36960 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36961 esac
36962_ACEOF
36963
36964cat >>$CONFIG_STATUS <<\_ACEOF
36965# If the template does not know about datarootdir, expand it.
36966# FIXME: This hack should be removed a few years after 2.60.
36967ac_datarootdir_hack=; ac_datarootdir_seen=
36968
36969case `sed -n '/datarootdir/ {
36970 p
36971 q
36972}
36973/@datadir@/p
36974/@docdir@/p
36975/@infodir@/p
36976/@localedir@/p
36977/@mandir@/p
36978' $ac_file_inputs` in
36979*datarootdir*) ac_datarootdir_seen=yes;;
36980*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36981 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36982echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36983_ACEOF
36984cat >>$CONFIG_STATUS <<_ACEOF
36985 ac_datarootdir_hack='
36986 s&@datadir@&$datadir&g
36987 s&@docdir@&$docdir&g
36988 s&@infodir@&$infodir&g
36989 s&@localedir@&$localedir&g
36990 s&@mandir@&$mandir&g
36991 s&\\\${datarootdir}&$datarootdir&g' ;;
36992esac
36993_ACEOF
36994
36995# Neutralize VPATH when `$srcdir' = `.'.
36996# Shell code in configure.ac might set extrasub.
36997# FIXME: do we really want to maintain this feature?
36998cat >>$CONFIG_STATUS <<_ACEOF
36999 sed "$ac_vpsub
37000$extrasub
37001_ACEOF
37002cat >>$CONFIG_STATUS <<\_ACEOF
37003:t
37004/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37005s&@configure_input@&$configure_input&;t t
37006s&@top_builddir@&$ac_top_builddir_sub&;t t
37007s&@srcdir@&$ac_srcdir&;t t
37008s&@abs_srcdir@&$ac_abs_srcdir&;t t
37009s&@top_srcdir@&$ac_top_srcdir&;t t
37010s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37011s&@builddir@&$ac_builddir&;t t
37012s&@abs_builddir@&$ac_abs_builddir&;t t
37013s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37014s&@INSTALL@&$ac_INSTALL&;t t
37015$ac_datarootdir_hack
37016" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
37017
37018test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
37019 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
37020 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
37021 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37022which seems to be undefined. Please make sure it is defined." >&5
37023echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37024which seems to be undefined. Please make sure it is defined." >&2;}
37025
37026 rm -f "$tmp/stdin"
37027 case $ac_file in
37028 -) cat "$tmp/out"; rm -f "$tmp/out";;
37029 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
37030 esac
37031 ;;
37032 :H)
37033 #
37034 # CONFIG_HEADER
37035 #
37036_ACEOF
37037
37038# Transform confdefs.h into a sed script `conftest.defines', that
37039# substitutes the proper values into config.h.in to produce config.h.
37040rm -f conftest.defines conftest.tail
37041# First, append a space to every undef/define line, to ease matching.
37042echo 's/$/ /' >conftest.defines
37043# Then, protect against being on the right side of a sed subst, or in
37044# an unquoted here document, in config.status. If some macros were
37045# called several times there might be several #defines for the same
37046# symbol, which is useless. But do not sort them, since the last
37047# AC_DEFINE must be honored.
37048ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37049# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
37050# NAME is the cpp macro being defined, VALUE is the value it is being given.
37051# PARAMS is the parameter list in the macro definition--in most cases, it's
37052# just an empty string.
37053ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
37054ac_dB='\\)[ (].*,\\1define\\2'
37055ac_dC=' '
37056ac_dD=' ,'
37057
37058uniq confdefs.h |
37059 sed -n '
37060 t rset
37061 :rset
37062 s/^[ ]*#[ ]*define[ ][ ]*//
37063 t ok
37064 d
37065 :ok
37066 s/[\\&,]/\\&/g
37067 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
37068 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
37069 ' >>conftest.defines
37070
37071# Remove the space that was appended to ease matching.
37072# Then replace #undef with comments. This is necessary, for
37073# example, in the case of _POSIX_SOURCE, which is predefined and required
37074# on some systems where configure will not decide to define it.
37075# (The regexp can be short, since the line contains either #define or #undef.)
37076echo 's/ $//
37077s,^[ #]*u.*,/* & */,' >>conftest.defines
37078
37079# Break up conftest.defines:
37080ac_max_sed_lines=50
37081
37082# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
37083# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
37084# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
37085# et cetera.
37086ac_in='$ac_file_inputs'
37087ac_out='"$tmp/out1"'
37088ac_nxt='"$tmp/out2"'
37089
37090while :
37091do
37092 # Write a here document:
37093 cat >>$CONFIG_STATUS <<_ACEOF
37094 # First, check the format of the line:
37095 cat >"\$tmp/defines.sed" <<\\CEOF
37096/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
37097/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
37098b
37099:def
37100_ACEOF
37101 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
37102 echo 'CEOF
37103 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
37104 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
37105 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
37106 grep . conftest.tail >/dev/null || break
37107 rm -f conftest.defines
37108 mv conftest.tail conftest.defines
37109done
37110rm -f conftest.defines conftest.tail
37111
37112echo "ac_result=$ac_in" >>$CONFIG_STATUS
37113cat >>$CONFIG_STATUS <<\_ACEOF
37114 if test x"$ac_file" != x-; then
37115 echo "/* $configure_input */" >"$tmp/config.h"
37116 cat "$ac_result" >>"$tmp/config.h"
37117 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
37118 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37119echo "$as_me: $ac_file is unchanged" >&6;}
37120 else
37121 rm -f $ac_file
37122 mv "$tmp/config.h" $ac_file
37123 fi
37124 else
37125 echo "/* $configure_input */"
37126 cat "$ac_result"
37127 fi
37128 rm -f "$tmp/out12"
37129 ;;
37130
37131
37132 esac
37133
37134done # for ac_tag
37135
37136
37137{ (exit 0); exit 0; }
37138_ACEOF
37139chmod +x $CONFIG_STATUS
37140ac_clean_files=$ac_clean_files_save
37141
37142
37143# configure is writing to config.log, and then calls config.status.
37144# config.status does its own redirection, appending to config.log.
37145# Unfortunately, on DOS this fails, as config.log is still kept open
37146# by configure, so config.status won't be able to write to it; its
37147# output is simply discarded. So we exec the FD to /dev/null,
37148# effectively closing config.log, so it can be properly (re)opened and
37149# appended to by config.status. When coming back to configure, we
37150# need to make the FD available again.
37151if test "$no_create" != yes; then
37152 ac_cs_success=:
37153 ac_config_status_args=
37154 test "$silent" = yes &&
37155 ac_config_status_args="$ac_config_status_args --quiet"
37156 exec 5>/dev/null
37157 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37158 exec 5>>config.log
37159 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37160 # would make configure fail if this is the last instruction.
37161 $ac_cs_success || { (exit 1); exit 1; }
37162fi
37163
37164
37165# Print summary of options
37166
37167# Someone please show me a better way :)
37168A=`eval echo ${prefix}` ; A=`eval echo ${A}`
37169B=`eval echo ${bindir}` ; B=`eval echo ${B}`
37170C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
37171D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
37172E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
37173F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
37174G=`eval echo ${piddir}` ; G=`eval echo ${G}`
37175H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
37176I=`eval echo ${user_path}` ; I=`eval echo ${I}`
37177J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
37178
37179echo ""
37180echo "OpenSSH has been configured with the following options:"
37181echo " User binaries: $B"
37182echo " System binaries: $C"
37183echo " Configuration files: $D"
37184echo " Askpass program: $E"
37185echo " Manual pages: $F"
37186echo " PID file: $G"
37187echo " Privilege separation chroot path: $H"
37188if test "x$external_path_file" = "x/etc/login.conf" ; then
37189echo " At runtime, sshd will use the path defined in $external_path_file"
37190echo " Make sure the path to scp is present, otherwise scp will not work"
37191else
37192echo " sshd default user PATH: $I"
37193 if test ! -z "$external_path_file"; then
37194echo " (If PATH is set in $external_path_file it will be used instead. If"
37195echo " used, ensure the path to scp is present, otherwise scp will not work.)"
37196 fi
37197fi
37198if test ! -z "$superuser_path" ; then
37199echo " sshd superuser user PATH: $J"
37200fi
37201echo " Manpage format: $MANTYPE"
37202echo " PAM support: $PAM_MSG"
37203echo " OSF SIA support: $SIA_MSG"
37204echo " KerberosV support: $KRB5_MSG"
37205echo " SELinux support: $SELINUX_MSG"
37206echo " Smartcard support: $SCARD_MSG"
37207echo " S/KEY support: $SKEY_MSG"
37208echo " MD5 password support: $MD5_MSG"
37209echo " libedit support: $LIBEDIT_MSG"
37210echo " Solaris process contract support: $SPC_MSG"
37211echo " Solaris project support: $SP_MSG"
37212echo " Solaris privilege support: $SPP_MSG"
37213echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
37214echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
37215echo " BSD Auth support: $BSD_AUTH_MSG"
37216echo " Random number source: $RAND_MSG"
37217echo " Privsep sandbox style: $SANDBOX_STYLE"
37218
37219echo ""
37220
37221echo " Host: ${host}"
37222echo " Compiler: ${CC}"
37223echo " Compiler flags: ${CFLAGS}"
37224echo "Preprocessor flags: ${CPPFLAGS}"
37225echo " Linker flags: ${LDFLAGS}"
37226echo " Libraries: ${LIBS}"
37227if test ! -z "${SSHDLIBS}"; then
37228echo " +for sshd: ${SSHDLIBS}"
37229fi
37230if test ! -z "${SSHLIBS}"; then
37231echo " +for ssh: ${SSHLIBS}"
37232fi
37233
37234echo ""
37235
37236if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
37237 echo "SVR4 style packages are supported with \"make package\""
37238 echo ""
37239fi
37240
37241if test "x$PAM_MSG" = "xyes" ; then
37242 echo "PAM is enabled. You may need to install a PAM control file "
37243 echo "for sshd, otherwise password authentication may fail. "
37244 echo "Example PAM control files can be found in the contrib/ "
37245 echo "subdirectory"
37246 echo ""
37247fi
37248
37249if test ! -z "$NO_PEERCHECK" ; then
37250 echo "WARNING: the operating system that you are using does not"
37251 echo "appear to support getpeereid(), getpeerucred() or the"
37252 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
37253 echo "enforce security checks to prevent unauthorised connections to"
37254 echo "ssh-agent. Their absence increases the risk that a malicious"
37255 echo "user can connect to your agent."
37256 echo ""
37257fi
37258
37259if test "$AUDIT_MODULE" = "bsm" ; then
37260 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
37261 echo "See the Solaris section in README.platform for details."
37262fi
diff --git a/moduli.0 b/moduli.0
new file mode 100644
index 000000000..a74279b21
--- /dev/null
+++ b/moduli.0
@@ -0,0 +1,74 @@
1MODULI(5) File Formats Manual MODULI(5)
2
3NAME
4 moduli M-bM-^@M-^S Diffie-Hellman moduli
5
6DESCRIPTION
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
66SEE ALSO
67 ssh-keygen(1), sshd(8)
68
69STANDARDS
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
74OpenBSD 5.9 September 26, 2012 OpenBSD 5.9
diff --git a/scp.0 b/scp.0
new file mode 100644
index 000000000..6b70e4ed4
--- /dev/null
+++ b/scp.0
@@ -0,0 +1,166 @@
1SCP(1) General Commands Manual SCP(1)
2
3NAME
4 scp M-bM-^@M-^S secure copy (remote file copy program)
5
6SYNOPSIS
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
11DESCRIPTION
12 scp copies files between hosts on a network. It uses ssh(1) for data
13 transfer, and uses the same authentication and provides the same security
14 as ssh(1). scp will ask for passwords or passphrases if they are needed
15 for authentication.
16
17 File names may contain a user and host specification to indicate that the
18 file is to be copied to/from that host. Local file names can be made
19 explicit using absolute or relative pathnames to avoid scp treating file
20 names containing M-bM-^@M-^X:M-bM-^@M-^Y as host specifiers. Copies between two remote hosts
21 are also permitted.
22
23 The options are as follows:
24
25 -1 Forces scp to use protocol 1.
26
27 -2 Forces scp to use protocol 2.
28
29 -3 Copies between two remote hosts are transferred through the local
30 host. Without this option the data is copied directly between
31 the two remote hosts. Note that this option disables the
32 progress meter.
33
34 -4 Forces scp to use IPv4 addresses only.
35
36 -6 Forces scp to use IPv6 addresses only.
37
38 -B Selects batch mode (prevents asking for passwords or
39 passphrases).
40
41 -C Compression enable. Passes the -C flag to ssh(1) to enable
42 compression.
43
44 -c cipher
45 Selects the cipher to use for encrypting the data transfer. This
46 option is directly passed to ssh(1).
47
48 -F ssh_config
49 Specifies an alternative per-user configuration file for ssh.
50 This option is directly passed to ssh(1).
51
52 -i identity_file
53 Selects the file from which the identity (private key) for public
54 key authentication is read. This option is directly passed to
55 ssh(1).
56
57 -l limit
58 Limits the used bandwidth, specified in Kbit/s.
59
60 -o ssh_option
61 Can be used to pass options to ssh in the format used in
62 ssh_config(5). This is useful for specifying options for which
63 there is no separate scp command-line flag. For full details of
64 the options listed below, and their possible values, see
65 ssh_config(5).
66
67 AddressFamily
68 BatchMode
69 BindAddress
70 CanonicalDomains
71 CanonicalizeFallbackLocal
72 CanonicalizeHostname
73 CanonicalizeMaxDots
74 CanonicalizePermittedCNAMEs
75 CertificateFile
76 ChallengeResponseAuthentication
77 CheckHostIP
78 Cipher
79 Ciphers
80 Compression
81 CompressionLevel
82 ConnectionAttempts
83 ConnectTimeout
84 ControlMaster
85 ControlPath
86 ControlPersist
87 GlobalKnownHostsFile
88 GSSAPIAuthentication
89 GSSAPIDelegateCredentials
90 HashKnownHosts
91 Host
92 HostbasedAuthentication
93 HostbasedKeyTypes
94 HostKeyAlgorithms
95 HostKeyAlias
96 HostName
97 IdentityFile
98 IdentitiesOnly
99 IPQoS
100 KbdInteractiveAuthentication
101 KbdInteractiveDevices
102 KexAlgorithms
103 LogLevel
104 MACs
105 NoHostAuthenticationForLocalhost
106 NumberOfPasswordPrompts
107 PasswordAuthentication
108 PKCS11Provider
109 Port
110 PreferredAuthentications
111 Protocol
112 ProxyCommand
113 PubkeyAcceptedKeyTypes
114 PubkeyAuthentication
115 RekeyLimit
116 RhostsRSAAuthentication
117 RSAAuthentication
118 SendEnv
119 ServerAliveInterval
120 ServerAliveCountMax
121 StrictHostKeyChecking
122 TCPKeepAlive
123 UpdateHostKeys
124 UsePrivilegedPort
125 User
126 UserKnownHostsFile
127 VerifyHostKeyDNS
128
129 -P port
130 Specifies the port to connect to on the remote host. Note that
131 this option is written with a capital M-bM-^@M-^XPM-bM-^@M-^Y, because -p is already
132 reserved for preserving the times and modes of the file.
133
134 -p Preserves modification times, access times, and modes from the
135 original file.
136
137 -q Quiet mode: disables the progress meter as well as warning and
138 diagnostic messages from ssh(1).
139
140 -r Recursively copy entire directories. Note that scp follows
141 symbolic links encountered in the tree traversal.
142
143 -S program
144 Name of program to use for the encrypted connection. The program
145 must understand ssh(1) options.
146
147 -v Verbose mode. Causes scp and ssh(1) to print debugging messages
148 about their progress. This is helpful in debugging connection,
149 authentication, and configuration problems.
150
151EXIT STATUS
152 The scp utility exitsM-BM- 0 on success, andM-BM- >0 if an error occurs.
153
154SEE ALSO
155 sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh_config(5),
156 sshd(8)
157
158HISTORY
159 scp is based on the rcp program in BSD source code from the Regents of
160 the University of California.
161
162AUTHORS
163 Timo Rinne <tri@iki.fi>
164 Tatu Ylonen <ylo@cs.hut.fi>
165
166OpenBSD 5.9 September 25, 2015 OpenBSD 5.9
diff --git a/sftp-server.0 b/sftp-server.0
new file mode 100644
index 000000000..3b22ed2a0
--- /dev/null
+++ b/sftp-server.0
@@ -0,0 +1,96 @@
1SFTP-SERVER(8) System Manager's Manual SFTP-SERVER(8)
2
3NAME
4 sftp-server M-bM-^@M-^S SFTP server subsystem
5
6SYNOPSIS
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
12DESCRIPTION
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
84SEE 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
90HISTORY
91 sftp-server first appeared in OpenBSD 2.8.
92
93AUTHORS
94 Markus Friedl <markus@openbsd.org>
95
96OpenBSD 5.9 December 11, 2014 OpenBSD 5.9
diff --git a/sftp.0 b/sftp.0
new file mode 100644
index 000000000..ce48de9ca
--- /dev/null
+++ b/sftp.0
@@ -0,0 +1,384 @@
1SFTP(1) General Commands Manual SFTP(1)
2
3NAME
4 sftp M-bM-^@M-^S secure file transfer program
5
6SYNOPSIS
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
15DESCRIPTION
16 sftp is an interactive file transfer program, similar to ftp(1), which
17 performs all operations over an encrypted ssh(1) transport. It may also
18 use many features of ssh, such as public key authentication and
19 compression. sftp connects and logs into the specified host, then enters
20 an interactive command mode.
21
22 The second usage format will retrieve files automatically if a non-
23 interactive authentication method is used; otherwise it will do so after
24 successful interactive authentication.
25
26 The third usage format allows sftp to start in a remote directory.
27
28 The final usage format allows for automated sessions using the -b option.
29 In such cases, it is necessary to configure non-interactive
30 authentication to obviate the need to enter a password at connection time
31 (see sshd(8) and ssh-keygen(1) for details).
32
33 Since some usage formats use colon characters to delimit host names from
34 path names, IPv6 addresses must be enclosed in square brackets to avoid
35 ambiguity.
36
37 The options are as follows:
38
39 -1 Specify the use of protocol version 1.
40
41 -2 Specify the use of protocol version 2.
42
43 -4 Forces sftp to use IPv4 addresses only.
44
45 -6 Forces sftp to use IPv6 addresses only.
46
47 -a Attempt to continue interrupted transfers rather than overwriting
48 existing partial or complete copies of files. If the partial
49 contents differ from those being transferred, then the resultant
50 file is likely to be corrupt.
51
52 -B buffer_size
53 Specify the size of the buffer that sftp uses when transferring
54 files. Larger buffers require fewer round trips at the cost of
55 higher memory consumption. The default is 32768 bytes.
56
57 -b batchfile
58 Batch mode reads a series of commands from an input batchfile
59 instead of stdin. Since it lacks user interaction it should be
60 used in conjunction with non-interactive authentication. A
61 batchfile of M-bM-^@M-^X-M-bM-^@M-^Y may be used to indicate standard input. sftp
62 will abort if any of the following commands fail: get, put,
63 reget, reput, rename, ln, rm, mkdir, chdir, ls, lchdir, chmod,
64 chown, chgrp, lpwd, df, symlink, and lmkdir. Termination on
65 error can be suppressed on a command by command basis by
66 prefixing the command with a M-bM-^@M-^X-M-bM-^@M-^Y character (for example, -rm
67 /tmp/blah*).
68
69 -C Enables compression (via ssh's -C flag).
70
71 -c cipher
72 Selects the cipher to use for encrypting the data transfers.
73 This option is directly passed to ssh(1).
74
75 -D sftp_server_path
76 Connect directly to a local sftp server (rather than via ssh(1)).
77 This option may be useful in debugging the client and server.
78
79 -F ssh_config
80 Specifies an alternative per-user configuration file for ssh(1).
81 This option is directly passed to ssh(1).
82
83 -f Requests that files be flushed to disk immediately after
84 transfer. When uploading files, this feature is only enabled if
85 the server implements the "fsync@openssh.com" extension.
86
87 -i identity_file
88 Selects the file from which the identity (private key) for public
89 key authentication is read. This option is directly passed to
90 ssh(1).
91
92 -l limit
93 Limits the used bandwidth, specified in Kbit/s.
94
95 -o ssh_option
96 Can be used to pass options to ssh in the format used in
97 ssh_config(5). This is useful for specifying options for which
98 there is no separate sftp command-line flag. For example, to
99 specify an alternate port use: sftp -oPort=24. For full details
100 of the options listed below, and their possible values, see
101 ssh_config(5).
102
103 AddressFamily
104 BatchMode
105 BindAddress
106 CanonicalDomains
107 CanonicalizeFallbackLocal
108 CanonicalizeHostname
109 CanonicalizeMaxDots
110 CanonicalizePermittedCNAMEs
111 CertificateFile
112 ChallengeResponseAuthentication
113 CheckHostIP
114 Cipher
115 Ciphers
116 Compression
117 CompressionLevel
118 ConnectionAttempts
119 ConnectTimeout
120 ControlMaster
121 ControlPath
122 ControlPersist
123 GlobalKnownHostsFile
124 GSSAPIAuthentication
125 GSSAPIDelegateCredentials
126 HashKnownHosts
127 Host
128 HostbasedAuthentication
129 HostbasedKeyTypes
130 HostKeyAlgorithms
131 HostKeyAlias
132 HostName
133 IdentityFile
134 IdentitiesOnly
135 IPQoS
136 KbdInteractiveAuthentication
137 KbdInteractiveDevices
138 KexAlgorithms
139 LogLevel
140 MACs
141 NoHostAuthenticationForLocalhost
142 NumberOfPasswordPrompts
143 PasswordAuthentication
144 PKCS11Provider
145 Port
146 PreferredAuthentications
147 Protocol
148 ProxyCommand
149 PubkeyAuthentication
150 RekeyLimit
151 RhostsRSAAuthentication
152 RSAAuthentication
153 SendEnv
154 ServerAliveInterval
155 ServerAliveCountMax
156 StrictHostKeyChecking
157 TCPKeepAlive
158 UpdateHostKeys
159 UsePrivilegedPort
160 User
161 UserKnownHostsFile
162 VerifyHostKeyDNS
163
164 -P port
165 Specifies the port to connect to on the remote host.
166
167 -p Preserves modification times, access times, and modes from the
168 original files transferred.
169
170 -q Quiet mode: disables the progress meter as well as warning and
171 diagnostic messages from ssh(1).
172
173 -R num_requests
174 Specify how many requests may be outstanding at any one time.
175 Increasing this may slightly improve file transfer speed but will
176 increase memory usage. The default is 64 outstanding requests.
177
178 -r Recursively copy entire directories when uploading and
179 downloading. Note that sftp does not follow symbolic links
180 encountered in the tree traversal.
181
182 -S program
183 Name of the program to use for the encrypted connection. The
184 program must understand ssh(1) options.
185
186 -s subsystem | sftp_server
187 Specifies the SSH2 subsystem or the path for an sftp server on
188 the remote host. A path is useful for using sftp over protocol
189 version 1, or when the remote sshd(8) does not have an sftp
190 subsystem configured.
191
192 -v Raise logging level. This option is also passed to ssh.
193
194INTERACTIVE COMMANDS
195 Once in interactive mode, sftp understands a set of commands similar to
196 those of ftp(1). Commands are case insensitive. Pathnames that contain
197 spaces must be enclosed in quotes. Any special characters contained
198 within pathnames that are recognized by glob(3) must be escaped with
199 backslashes (M-bM-^@M-^X\M-bM-^@M-^Y).
200
201 bye Quit sftp.
202
203 cd path
204 Change remote directory to path.
205
206 chgrp grp path
207 Change group of file path to grp. path may contain glob(3)
208 characters and may match multiple files. grp must be a numeric
209 GID.
210
211 chmod mode path
212 Change permissions of file path to mode. path may contain
213 glob(3) characters and may match multiple files.
214
215 chown own path
216 Change owner of file path to own. path may contain glob(3)
217 characters and may match multiple files. own must be a numeric
218 UID.
219
220 df [-hi] [path]
221 Display usage information for the filesystem holding the current
222 directory (or path if specified). If the -h flag is specified,
223 the capacity information will be displayed using "human-readable"
224 suffixes. The -i flag requests display of inode information in
225 addition to capacity information. This command is only supported
226 on servers that implement the M-bM-^@M-^\statvfs@openssh.comM-bM-^@M-^] extension.
227
228 exit Quit sftp.
229
230 get [-afPpr] remote-path [local-path]
231 Retrieve the remote-path and store it on the local machine. If
232 the local path name is not specified, it is given the same name
233 it has on the remote machine. remote-path may contain glob(3)
234 characters and may match multiple files. If it does and
235 local-path is specified, then local-path must specify a
236 directory.
237
238 If the -a flag is specified, then attempt to resume partial
239 transfers of existing files. Note that resumption assumes that
240 any partial copy of the local file matches the remote copy. If
241 the remote file contents differ from the partial local copy then
242 the resultant file is likely to be corrupt.
243
244 If the -f flag is specified, then fsync(2) will be called after
245 the file transfer has completed to flush the file to disk.
246
247 If either the -P or -p flag is specified, then full file
248 permissions and access times are copied too.
249
250 If the -r flag is specified then directories will be copied
251 recursively. Note that sftp does not follow symbolic links when
252 performing recursive transfers.
253
254 help Display help text.
255
256 lcd path
257 Change local directory to path.
258
259 lls [ls-options [path]]
260 Display local directory listing of either path or current
261 directory if path is not specified. ls-options may contain any
262 flags supported by the local system's ls(1) command. path may
263 contain glob(3) characters and may match multiple files.
264
265 lmkdir path
266 Create local directory specified by path.
267
268 ln [-s] oldpath newpath
269 Create a link from oldpath to newpath. If the -s flag is
270 specified the created link is a symbolic link, otherwise it is a
271 hard link.
272
273 lpwd Print local working directory.
274
275 ls [-1afhlnrSt] [path]
276 Display a remote directory listing of either path or the current
277 directory if path is not specified. path may contain glob(3)
278 characters and may match multiple files.
279
280 The following flags are recognized and alter the behaviour of ls
281 accordingly:
282
283 -1 Produce single columnar output.
284
285 -a List files beginning with a dot (M-bM-^@M-^X.M-bM-^@M-^Y).
286
287 -f Do not sort the listing. The default sort order is
288 lexicographical.
289
290 -h When used with a long format option, use unit suffixes:
291 Byte, Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte,
292 and Exabyte in order to reduce the number of digits to
293 four or fewer using powers of 2 for sizes (K=1024,
294 M=1048576, etc.).
295
296 -l Display additional details including permissions and
297 ownership information.
298
299 -n Produce a long listing with user and group information
300 presented numerically.
301
302 -r Reverse the sort order of the listing.
303
304 -S Sort the listing by file size.
305
306 -t Sort the listing by last modification time.
307
308 lumask umask
309 Set local umask to umask.
310
311 mkdir path
312 Create remote directory specified by path.
313
314 progress
315 Toggle display of progress meter.
316
317 put [-afPpr] local-path [remote-path]
318 Upload local-path and store it on the remote machine. If the
319 remote path name is not specified, it is given the same name it
320 has on the local machine. local-path may contain glob(3)
321 characters and may match multiple files. If it does and
322 remote-path is specified, then remote-path must specify a
323 directory.
324
325 If the -a flag is specified, then attempt to resume partial
326 transfers of existing files. Note that resumption assumes that
327 any partial copy of the remote file matches the local copy. If
328 the local file contents differ from the remote local copy then
329 the resultant file is likely to be corrupt.
330
331 If the -f flag is specified, then a request will be sent to the
332 server to call fsync(2) after the file has been transferred.
333 Note that this is only supported by servers that implement the
334 "fsync@openssh.com" extension.
335
336 If either the -P or -p flag is specified, then full file
337 permissions and access times are copied too.
338
339 If the -r flag is specified then directories will be copied
340 recursively. Note that sftp does not follow symbolic links when
341 performing recursive transfers.
342
343 pwd Display remote working directory.
344
345 quit Quit sftp.
346
347 reget [-Ppr] remote-path [local-path]
348 Resume download of remote-path. Equivalent to get with the -a
349 flag set.
350
351 reput [-Ppr] [local-path] remote-path
352 Resume upload of [local-path]. Equivalent to put with the -a
353 flag set.
354
355 rename oldpath newpath
356 Rename remote file from oldpath to newpath.
357
358 rm path
359 Delete remote file specified by path.
360
361 rmdir path
362 Remove remote directory specified by path.
363
364 symlink oldpath newpath
365 Create a symbolic link from oldpath to newpath.
366
367 version
368 Display the sftp protocol version.
369
370 !command
371 Execute command in local shell.
372
373 ! Escape to local shell.
374
375 ? Synonym for help.
376
377SEE ALSO
378 ftp(1), ls(1), scp(1), ssh(1), ssh-add(1), ssh-keygen(1), glob(3),
379 ssh_config(5), sftp-server(8), sshd(8)
380
381 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh-
382 filexfer-00.txt, January 2001, work in progress material.
383
384OpenBSD 5.9 September 25, 2015 OpenBSD 5.9
diff --git a/ssh-add.0 b/ssh-add.0
new file mode 100644
index 000000000..cc56b0035
--- /dev/null
+++ b/ssh-add.0
@@ -0,0 +1,129 @@
1SSH-ADD(1) General Commands Manual SSH-ADD(1)
2
3NAME
4 ssh-add M-bM-^@M-^S adds private key identities to the authentication agent
5
6SYNOPSIS
7 ssh-add [-cDdkLlXx] [-E fingerprint_hash] [-t life] [file ...]
8 ssh-add -s pkcs11
9 ssh-add -e pkcs11
10
11DESCRIPTION
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
75ENVIRONMENT
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
91FILES
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
115EXIT 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
119SEE ALSO
120 ssh(1), ssh-agent(1), ssh-askpass(1), ssh-keygen(1), sshd(8)
121
122AUTHORS
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
129OpenBSD 5.9 March 30, 2015 OpenBSD 5.9
diff --git a/ssh-agent.0 b/ssh-agent.0
new file mode 100644
index 000000000..2cc5ac6e0
--- /dev/null
+++ b/ssh-agent.0
@@ -0,0 +1,112 @@
1SSH-AGENT(1) General Commands Manual SSH-AGENT(1)
2
3NAME
4 ssh-agent M-bM-^@M-^S authentication agent
5
6SYNOPSIS
7 ssh-agent [-c | -s] [-Dd] [-a bind_address] [-E fingerprint_hash]
8 [-t life] [command [arg ...]]
9 ssh-agent [-c | -s] -k
10
11DESCRIPTION
12 ssh-agent is a program to hold private keys used for public key
13 authentication (RSA, DSA, ECDSA, Ed25519). ssh-agent is usually started
14 in the beginning of an X-session or a login session, and all other
15 windows or programs are started as clients to the ssh-agent program.
16 Through use of environment variables the agent can be located and
17 automatically used for authentication when logging in to other machines
18 using ssh(1).
19
20 The agent initially does not have any private keys. Keys are added using
21 ssh(1) (see AddKeysToAgent in ssh_config(5) for details) or ssh-add(1).
22 Multiple identities may be stored in ssh-agent concurrently and ssh(1)
23 will automatically use them if present. ssh-add(1) is also used to
24 remove keys from ssh-agent and to query the keys that are held in one.
25
26 The options are as follows:
27
28 -a bind_address
29 Bind the agent to the UNIX-domain socket bind_address. The
30 default is $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid>.
31
32 -c Generate C-shell commands on stdout. This is the default if
33 SHELL looks like it's a csh style of shell.
34
35 -D Foreground mode. When this option is specified ssh-agent will
36 not fork.
37
38 -d Debug mode. When this option is specified ssh-agent will not
39 fork and will write debug information to standard error.
40
41 -E fingerprint_hash
42 Specifies the hash algorithm used when displaying key
43 fingerprints. Valid options are: M-bM-^@M-^\md5M-bM-^@M-^] and M-bM-^@M-^\sha256M-bM-^@M-^]. The
44 default is M-bM-^@M-^\sha256M-bM-^@M-^].
45
46 -k Kill the current agent (given by the SSH_AGENT_PID environment
47 variable).
48
49 -s Generate Bourne shell commands on stdout. This is the default if
50 SHELL does not look like it's a csh style of shell.
51
52 -t life
53 Set a default value for the maximum lifetime of identities added
54 to the agent. The lifetime may be specified in seconds or in a
55 time format specified in sshd_config(5). A lifetime specified
56 for an identity with ssh-add(1) overrides this value. Without
57 this option the default maximum lifetime is forever.
58
59 If a command line is given, this is executed as a subprocess of the
60 agent. When the command dies, so does the agent.
61
62 The idea is that the agent is run in the user's local PC, laptop, or
63 terminal. Authentication data need not be stored on any other machine,
64 and authentication passphrases never go over the network. However, the
65 connection to the agent is forwarded over SSH remote logins, and the user
66 can thus use the privileges given by the identities anywhere in the
67 network in a secure way.
68
69 There are two main ways to get an agent set up: The first is that the
70 agent starts a new subcommand into which some environment variables are
71 exported, eg ssh-agent xterm &. The second is that the agent prints the
72 needed shell commands (either sh(1) or csh(1) syntax can be generated)
73 which can be evaluated in the calling shell, eg eval `ssh-agent -s` for
74 Bourne-type shells such as sh(1) or ksh(1) and eval `ssh-agent -c` for
75 csh(1) and derivatives.
76
77 Later ssh(1) looks at these variables and uses them to establish a
78 connection to the agent.
79
80 The agent will never send a private key over its request channel.
81 Instead, operations that require a private key will be performed by the
82 agent, and the result will be returned to the requester. This way,
83 private keys are not exposed to clients using the agent.
84
85 A UNIX-domain socket is created and the name of this socket is stored in
86 the SSH_AUTH_SOCK environment variable. The socket is made accessible
87 only to the current user. This method is easily abused by root or
88 another instance of the same user.
89
90 The SSH_AGENT_PID environment variable holds the agent's process ID.
91
92 The agent exits automatically when the command given on the command line
93 terminates.
94
95FILES
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
102SEE ALSO
103 ssh(1), ssh-add(1), ssh-keygen(1), sshd(8)
104
105AUTHORS
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
112OpenBSD 5.9 November 15, 2015 OpenBSD 5.9
diff --git a/ssh-keygen.0 b/ssh-keygen.0
new file mode 100644
index 000000000..2b749ae9f
--- /dev/null
+++ b/ssh-keygen.0
@@ -0,0 +1,569 @@
1SSH-KEYGEN(1) General Commands Manual SSH-KEYGEN(1)
2
3NAME
4 ssh-keygen M-bM-^@M-^S authentication key generation, management and conversion
5
6SYNOPSIS
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
32DESCRIPTION
33 ssh-keygen generates, manages and converts authentication keys for
34 ssh(1). ssh-keygen can create keys for use by SSH protocol versions 1
35 and 2. Protocol 1 should not be used and is only offered to support
36 legacy devices. It suffers from a number of cryptographic weaknesses and
37 doesn't support many of the advanced features available for protocol 2.
38
39 The type of key to be generated is specified with the -t option. If
40 invoked without any arguments, ssh-keygen will generate an RSA key for
41 use in SSH protocol 2 connections.
42
43 ssh-keygen is also used to generate groups for use in Diffie-Hellman
44 group exchange (DH-GEX). See the MODULI GENERATION section for details.
45
46 Finally, ssh-keygen can be used to generate and update Key Revocation
47 Lists, and to test whether given keys have been revoked by one. See the
48 KEY REVOCATION LISTS section for details.
49
50 Normally each user wishing to use SSH with public key authentication runs
51 this once to create the authentication key in ~/.ssh/identity,
52 ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, ~/.ssh/id_ed25519 or ~/.ssh/id_rsa.
53 Additionally, the system administrator may use this to generate host
54 keys, as seen in /etc/rc.
55
56 Normally this program generates the key and asks for a file in which to
57 store the private key. The public key is stored in a file with the same
58 name but M-bM-^@M-^\.pubM-bM-^@M-^] appended. The program also asks for a passphrase. The
59 passphrase may be empty to indicate no passphrase (host keys must have an
60 empty passphrase), or it may be a string of arbitrary length. A
61 passphrase is similar to a password, except it can be a phrase with a
62 series of words, punctuation, numbers, whitespace, or any string of
63 characters you want. Good passphrases are 10-30 characters long, are not
64 simple sentences or otherwise easily guessable (English prose has only
65 1-2 bits of entropy per character, and provides very bad passphrases),
66 and contain a mix of upper and lowercase letters, numbers, and non-
67 alphanumeric characters. The passphrase can be changed later by using
68 the -p option.
69
70 There is no way to recover a lost passphrase. If the passphrase is lost
71 or forgotten, a new key must be generated and the corresponding public
72 key copied to other machines.
73
74 For RSA1 keys, there is also a comment field in the key file that is only
75 for convenience to the user to help identify the key. The comment can
76 tell what the key is for, or whatever is useful. The comment is
77 initialized to M-bM-^@M-^\user@hostM-bM-^@M-^] when the key is created, but can be changed
78 using the -c option.
79
80 After a key is generated, instructions below detail where the keys should
81 be placed to be activated.
82
83 The options are as follows:
84
85 -A For each of the key types (rsa1, rsa, dsa, ecdsa and ed25519) for
86 which host keys do not exist, generate the host keys with the
87 default key file path, an empty passphrase, default bits for the
88 key type, and default comment. This is used by /etc/rc to
89 generate new host keys.
90
91 -a rounds
92 When saving a new-format private key (i.e. an ed25519 key or any
93 SSH protocol 2 key when the -o flag is set), this option
94 specifies the number of KDF (key derivation function) rounds
95 used. Higher numbers result in slower passphrase verification
96 and increased resistance to brute-force password cracking (should
97 the keys be stolen).
98
99 When screening DH-GEX candidates ( using the -T command). This
100 option specifies the number of primality tests to perform.
101
102 -B Show the bubblebabble digest of specified private or public key
103 file.
104
105 -b bits
106 Specifies the number of bits in the key to create. For RSA keys,
107 the minimum size is 1024 bits and the default is 2048 bits.
108 Generally, 2048 bits is considered sufficient. DSA keys must be
109 exactly 1024 bits as specified by FIPS 186-2. For ECDSA keys,
110 the -b flag determines the key length by selecting from one of
111 three elliptic curve sizes: 256, 384 or 521 bits. Attempting to
112 use bit lengths other than these three values for ECDSA keys will
113 fail. Ed25519 keys have a fixed length and the -b flag will be
114 ignored.
115
116 -C comment
117 Provides a new comment.
118
119 -c Requests changing the comment in the private and public key
120 files. This operation is only supported for RSA1 keys. The
121 program will prompt for the file containing the private keys, for
122 the passphrase if the key has one, and for the new comment.
123
124 -D pkcs11
125 Download the RSA public keys provided by the PKCS#11 shared
126 library pkcs11. When used in combination with -s, this option
127 indicates that a CA key resides in a PKCS#11 token (see the
128 CERTIFICATES section for details).
129
130 -E fingerprint_hash
131 Specifies the hash algorithm used when displaying key
132 fingerprints. Valid options are: M-bM-^@M-^\md5M-bM-^@M-^] and M-bM-^@M-^\sha256M-bM-^@M-^]. The
133 default is M-bM-^@M-^\sha256M-bM-^@M-^].
134
135 -e This option will read a private or public OpenSSH key file and
136 print to stdout the key in one of the formats specified by the -m
137 option. The default export format is M-bM-^@M-^\RFC4716M-bM-^@M-^]. This option
138 allows exporting OpenSSH keys for use by other programs,
139 including several commercial SSH implementations.
140
141 -F hostname
142 Search for the specified hostname in a known_hosts file, listing
143 any occurrences found. This option is useful to find hashed host
144 names or addresses and may also be used in conjunction with the
145 -H option to print found keys in a hashed format.
146
147 -f filename
148 Specifies the filename of the key file.
149
150 -G output_file
151 Generate candidate primes for DH-GEX. These primes must be
152 screened for safety (using the -T option) before use.
153
154 -g Use generic DNS format when printing fingerprint resource records
155 using the -r command.
156
157 -H Hash a known_hosts file. This replaces all hostnames and
158 addresses with hashed representations within the specified file;
159 the original content is moved to a file with a .old suffix.
160 These hashes may be used normally by ssh and sshd, but they do
161 not reveal identifying information should the file's contents be
162 disclosed. This option will not modify existing hashed hostnames
163 and is therefore safe to use on files that mix hashed and non-
164 hashed names.
165
166 -h When signing a key, create a host certificate instead of a user
167 certificate. Please see the CERTIFICATES section for details.
168
169 -I certificate_identity
170 Specify the key identity when signing a public key. Please see
171 the CERTIFICATES section for details.
172
173 -i This option will read an unencrypted private (or public) key file
174 in the format specified by the -m option and print an OpenSSH
175 compatible private (or public) key to stdout. This option allows
176 importing keys from other software, including several commercial
177 SSH implementations. The default import format is M-bM-^@M-^\RFC4716M-bM-^@M-^].
178
179 -J num_lines
180 Exit after screening the specified number of lines while
181 performing DH candidate screening using the -T option.
182
183 -j start_line
184 Start screening at the specified line number while performing DH
185 candidate screening using the -T option.
186
187 -K checkpt
188 Write the last line processed to the file checkpt while
189 performing DH candidate screening using the -T option. This will
190 be used to skip lines in the input file that have already been
191 processed if the job is restarted.
192
193 -k Generate a KRL file. In this mode, ssh-keygen will generate a
194 KRL file at the location specified via the -f flag that revokes
195 every key or certificate presented on the command line.
196 Keys/certificates to be revoked may be specified by public key
197 file or using the format described in the KEY REVOCATION LISTS
198 section.
199
200 -L Prints the contents of one or more certificates.
201
202 -l Show fingerprint of specified public key file. Private RSA1 keys
203 are also supported. For RSA and DSA keys ssh-keygen tries to
204 find the matching public key file and prints its fingerprint. If
205 combined with -v, an ASCII art representation of the key is
206 supplied with the fingerprint.
207
208 -M memory
209 Specify the amount of memory to use (in megabytes) when
210 generating candidate moduli for DH-GEX.
211
212 -m key_format
213 Specify a key format for the -i (import) or -e (export)
214 conversion options. The supported key formats are: M-bM-^@M-^\RFC4716M-bM-^@M-^]
215 (RFC 4716/SSH2 public or private key), M-bM-^@M-^\PKCS8M-bM-^@M-^] (PEM PKCS8 public
216 key) or M-bM-^@M-^\PEMM-bM-^@M-^] (PEM public key). The default conversion format is
217 M-bM-^@M-^\RFC4716M-bM-^@M-^].
218
219 -N new_passphrase
220 Provides the new passphrase.
221
222 -n principals
223 Specify one or more principals (user or host names) to be
224 included in a certificate when signing a key. Multiple
225 principals may be specified, separated by commas. Please see the
226 CERTIFICATES section for details.
227
228 -O option
229 Specify a certificate option when signing a key. This option may
230 be specified multiple times. Please see the CERTIFICATES section
231 for details. The options that are valid for user certificates
232 are:
233
234 clear Clear all enabled permissions. This is useful for
235 clearing the default set of permissions so permissions
236 may be added individually.
237
238 force-command=command
239 Forces the execution of command instead of any shell or
240 command specified by the user when the certificate is
241 used for authentication.
242
243 no-agent-forwarding
244 Disable ssh-agent(1) forwarding (permitted by default).
245
246 no-port-forwarding
247 Disable port forwarding (permitted by default).
248
249 no-pty Disable PTY allocation (permitted by default).
250
251 no-user-rc
252 Disable execution of ~/.ssh/rc by sshd(8) (permitted by
253 default).
254
255 no-x11-forwarding
256 Disable X11 forwarding (permitted by default).
257
258 permit-agent-forwarding
259 Allows ssh-agent(1) forwarding.
260
261 permit-port-forwarding
262 Allows port forwarding.
263
264 permit-pty
265 Allows PTY allocation.
266
267 permit-user-rc
268 Allows execution of ~/.ssh/rc by sshd(8).
269
270 permit-x11-forwarding
271 Allows X11 forwarding.
272
273 source-address=address_list
274 Restrict the source addresses from which the certificate
275 is considered valid. The address_list is a comma-
276 separated list of one or more address/netmask pairs in
277 CIDR format.
278
279 At present, no options are valid for host keys.
280
281 -o Causes ssh-keygen to save private keys using the new OpenSSH
282 format rather than the more compatible PEM format. The new
283 format has increased resistance to brute-force password cracking
284 but is not supported by versions of OpenSSH prior to 6.5.
285 Ed25519 keys always use the new private key format.
286
287 -P passphrase
288 Provides the (old) passphrase.
289
290 -p Requests changing the passphrase of a private key file instead of
291 creating a new private key. The program will prompt for the file
292 containing the private key, for the old passphrase, and twice for
293 the new passphrase.
294
295 -Q Test whether keys have been revoked in a KRL.
296
297 -q Silence ssh-keygen.
298
299 -R hostname
300 Removes all keys belonging to hostname from a known_hosts file.
301 This option is useful to delete hashed hosts (see the -H option
302 above).
303
304 -r hostname
305 Print the SSHFP fingerprint resource record named hostname for
306 the specified public key file.
307
308 -S start
309 Specify start point (in hex) when generating candidate moduli for
310 DH-GEX.
311
312 -s ca_key
313 Certify (sign) a public key using the specified CA key. Please
314 see the CERTIFICATES section for details.
315
316 When generating a KRL, -s specifies a path to a CA public key
317 file used to revoke certificates directly by key ID or serial
318 number. See the KEY REVOCATION LISTS section for details.
319
320 -T output_file
321 Test DH group exchange candidate primes (generated using the -G
322 option) for safety.
323
324 -t dsa | ecdsa | ed25519 | rsa | rsa1
325 Specifies the type of key to create. The possible values are
326 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
327 M-bM-^@M-^\rsaM-bM-^@M-^] for protocol version 2.
328
329 -u Update a KRL. When specified with -k, keys listed via the
330 command line are added to the existing KRL rather than a new KRL
331 being created.
332
333 -V validity_interval
334 Specify a validity interval when signing a certificate. A
335 validity interval may consist of a single time, indicating that
336 the certificate is valid beginning now and expiring at that time,
337 or may consist of two times separated by a colon to indicate an
338 explicit time interval. The start time may be specified as a
339 date in YYYYMMDD format, a time in YYYYMMDDHHMMSS format or a
340 relative time (to the current time) consisting of a minus sign
341 followed by a relative time in the format described in the TIME
342 FORMATS section of sshd_config(5). The end time may be specified
343 as a YYYYMMDD date, a YYYYMMDDHHMMSS time or a relative time
344 starting with a plus character.
345
346 For example: M-bM-^@M-^\+52w1dM-bM-^@M-^] (valid from now to 52 weeks and one day
347 from now), M-bM-^@M-^\-4w:+4wM-bM-^@M-^] (valid from four weeks ago to four weeks
348 from now), M-bM-^@M-^\20100101123000:20110101123000M-bM-^@M-^] (valid from 12:30 PM,
349 January 1st, 2010 to 12:30 PM, January 1st, 2011), M-bM-^@M-^\-1d:20110101M-bM-^@M-^]
350 (valid from yesterday to midnight, January 1st, 2011).
351
352 -v Verbose mode. Causes ssh-keygen to print debugging messages
353 about its progress. This is helpful for debugging moduli
354 generation. Multiple -v options increase the verbosity. The
355 maximum is 3.
356
357 -W generator
358 Specify desired generator when testing candidate moduli for DH-
359 GEX.
360
361 -y This option will read a private OpenSSH format file and print an
362 OpenSSH public key to stdout.
363
364 -z serial_number
365 Specifies a serial number to be embedded in the certificate to
366 distinguish this certificate from others from the same CA. The
367 default serial number is zero.
368
369 When generating a KRL, the -z flag is used to specify a KRL
370 version number.
371
372MODULI GENERATION
373 ssh-keygen may be used to generate groups for the Diffie-Hellman Group
374 Exchange (DH-GEX) protocol. Generating these groups is a two-step
375 process: first, candidate primes are generated using a fast, but memory
376 intensive process. These candidate primes are then tested for
377 suitability (a CPU-intensive process).
378
379 Generation of primes is performed using the -G option. The desired
380 length of the primes may be specified by the -b option. For example:
381
382 # ssh-keygen -G moduli-2048.candidates -b 2048
383
384 By default, the search for primes begins at a random point in the desired
385 length range. This may be overridden using the -S option, which
386 specifies a different start point (in hex).
387
388 Once a set of candidates have been generated, they must be screened for
389 suitability. This may be performed using the -T option. In this mode
390 ssh-keygen will read candidates from standard input (or a file specified
391 using the -f option). For example:
392
393 # ssh-keygen -T moduli-2048 -f moduli-2048.candidates
394
395 By default, each candidate will be subjected to 100 primality tests.
396 This may be overridden using the -a option. The DH generator value will
397 be chosen automatically for the prime under consideration. If a specific
398 generator is desired, it may be requested using the -W option. Valid
399 generator values are 2, 3, and 5.
400
401 Screened DH groups may be installed in /etc/moduli. It is important that
402 this file contains moduli of a range of bit lengths and that both ends of
403 a connection share common moduli.
404
405CERTIFICATES
406 ssh-keygen supports signing of keys to produce certificates that may be
407 used for user or host authentication. Certificates consist of a public
408 key, some identity information, zero or more principal (user or host)
409 names and a set of options that are signed by a Certification Authority
410 (CA) key. Clients or servers may then trust only the CA key and verify
411 its signature on a certificate rather than trusting many user/host keys.
412 Note that OpenSSH certificates are a different, and much simpler, format
413 to the X.509 certificates used in ssl(8).
414
415 ssh-keygen supports two types of certificates: user and host. User
416 certificates authenticate users to servers, whereas host certificates
417 authenticate server hosts to users. To generate a user certificate:
418
419 $ ssh-keygen -s /path/to/ca_key -I key_id /path/to/user_key.pub
420
421 The resultant certificate will be placed in /path/to/user_key-cert.pub.
422 A host certificate requires the -h option:
423
424 $ ssh-keygen -s /path/to/ca_key -I key_id -h /path/to/host_key.pub
425
426 The host certificate will be output to /path/to/host_key-cert.pub.
427
428 It is possible to sign using a CA key stored in a PKCS#11 token by
429 providing the token library using -D and identifying the CA key by
430 providing its public half as an argument to -s:
431
432 $ ssh-keygen -s ca_key.pub -D libpkcs11.so -I key_id user_key.pub
433
434 In all cases, key_id is a "key identifier" that is logged by the server
435 when the certificate is used for authentication.
436
437 Certificates may be limited to be valid for a set of principal
438 (user/host) names. By default, generated certificates are valid for all
439 users or hosts. To generate a certificate for a specified set of
440 principals:
441
442 $ ssh-keygen -s ca_key -I key_id -n user1,user2 user_key.pub
443 $ ssh-keygen -s ca_key -I key_id -h -n host.domain host_key.pub
444
445 Additional limitations on the validity and use of user certificates may
446 be specified through certificate options. A certificate option may
447 disable features of the SSH session, may be valid only when presented
448 from particular source addresses or may force the use of a specific
449 command. For a list of valid certificate options, see the documentation
450 for the -O option above.
451
452 Finally, certificates may be defined with a validity lifetime. The -V
453 option allows specification of certificate start and end times. A
454 certificate that is presented at a time outside this range will not be
455 considered valid. By default, certificates are valid from UNIX Epoch to
456 the distant future.
457
458 For certificates to be used for user or host authentication, the CA
459 public key must be trusted by sshd(8) or ssh(1). Please refer to those
460 manual pages for details.
461
462KEY REVOCATION LISTS
463 ssh-keygen is able to manage OpenSSH format Key Revocation Lists (KRLs).
464 These binary files specify keys or certificates to be revoked using a
465 compact format, taking as little as one bit per certificate if they are
466 being revoked by serial number.
467
468 KRLs may be generated using the -k flag. This option reads one or more
469 files from the command line and generates a new KRL. The files may
470 either contain a KRL specification (see below) or public keys, listed one
471 per line. Plain public keys are revoked by listing their hash or
472 contents in the KRL and certificates revoked by serial number or key ID
473 (if the serial is zero or not available).
474
475 Revoking keys using a KRL specification offers explicit control over the
476 types of record used to revoke keys and may be used to directly revoke
477 certificates by serial number or key ID without having the complete
478 original certificate on hand. A KRL specification consists of lines
479 containing one of the following directives followed by a colon and some
480 directive-specific information.
481
482 serial: serial_number[-serial_number]
483 Revokes a certificate with the specified serial number. Serial
484 numbers are 64-bit values, not including zero and may be
485 expressed in decimal, hex or octal. If two serial numbers are
486 specified separated by a hyphen, then the range of serial numbers
487 including and between each is revoked. The CA key must have been
488 specified on the ssh-keygen command line using the -s option.
489
490 id: key_id
491 Revokes a certificate with the specified key ID string. The CA
492 key must have been specified on the ssh-keygen command line using
493 the -s option.
494
495 key: public_key
496 Revokes the specified key. If a certificate is listed, then it
497 is revoked as a plain public key.
498
499 sha1: public_key
500 Revokes the specified key by its SHA1 hash.
501
502 KRLs may be updated using the -u flag in addition to -k. When this
503 option is specified, keys listed via the command line are merged into the
504 KRL, adding to those already there.
505
506 It is also possible, given a KRL, to test whether it revokes a particular
507 key (or keys). The -Q flag will query an existing KRL, testing each key
508 specified on the command line. If any key listed on the command line has
509 been revoked (or an error encountered) then ssh-keygen will exit with a
510 non-zero exit status. A zero exit status will only be returned if no key
511 was revoked.
512
513FILES
514 ~/.ssh/identity
515 Contains the protocol version 1 RSA authentication identity of
516 the user. This file should not be readable by anyone but the
517 user. It is possible to specify a passphrase when generating the
518 key; that passphrase will be used to encrypt the private part of
519 this file using 3DES. This file is not automatically accessed by
520 ssh-keygen but it is offered as the default file for the private
521 key. ssh(1) will read this file when a login attempt is made.
522
523 ~/.ssh/identity.pub
524 Contains the protocol version 1 RSA public key for
525 authentication. The contents of this file should be added to
526 ~/.ssh/authorized_keys on all machines where the user wishes to
527 log in using RSA authentication. There is no need to keep the
528 contents of this file secret.
529
530 ~/.ssh/id_dsa
531 ~/.ssh/id_ecdsa
532 ~/.ssh/id_ed25519
533 ~/.ssh/id_rsa
534 Contains the protocol version 2 DSA, ECDSA, Ed25519 or RSA
535 authentication identity of the user. This file should not be
536 readable by anyone but the user. It is possible to specify a
537 passphrase when generating the key; that passphrase will be used
538 to encrypt the private part of this file using 128-bit AES. This
539 file is not automatically accessed by ssh-keygen but it is
540 offered as the default file for the private key. ssh(1) will
541 read this file when a login attempt is made.
542
543 ~/.ssh/id_dsa.pub
544 ~/.ssh/id_ecdsa.pub
545 ~/.ssh/id_ed25519.pub
546 ~/.ssh/id_rsa.pub
547 Contains the protocol version 2 DSA, ECDSA, Ed25519 or RSA public
548 key for authentication. The contents of this file should be
549 added to ~/.ssh/authorized_keys on all machines where the user
550 wishes to log in using public key authentication. There is no
551 need to keep the contents of this file secret.
552
553 /etc/moduli
554 Contains Diffie-Hellman groups used for DH-GEX. The file format
555 is described in moduli(5).
556
557SEE ALSO
558 ssh(1), ssh-add(1), ssh-agent(1), moduli(5), sshd(8)
559
560 The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006.
561
562AUTHORS
563 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
564 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
565 de Raadt and Dug Song removed many bugs, re-added newer features and
566 created OpenSSH. Markus Friedl contributed the support for SSH protocol
567 versions 1.5 and 2.0.
568
569OpenBSD 5.9 February 17, 2016 OpenBSD 5.9
diff --git a/ssh-keyscan.0 b/ssh-keyscan.0
new file mode 100644
index 000000000..5578cc504
--- /dev/null
+++ b/ssh-keyscan.0
@@ -0,0 +1,111 @@
1SSH-KEYSCAN(1) General Commands Manual SSH-KEYSCAN(1)
2
3NAME
4 ssh-keyscan M-bM-^@M-^S gather ssh public keys
5
6SYNOPSIS
7 ssh-keyscan [-46cHv] [-f file] [-p port] [-T timeout] [-t type]
8 [host | addrlist namelist] ...
9
10DESCRIPTION
11 ssh-keyscan is a utility for gathering the public ssh host keys of a
12 number of hosts. It was designed to aid in building and verifying
13 ssh_known_hosts files. ssh-keyscan provides a minimal interface suitable
14 for use by shell and perl scripts.
15
16 ssh-keyscan uses non-blocking socket I/O to contact as many hosts as
17 possible in parallel, so it is very efficient. The keys from a domain of
18 1,000 hosts can be collected in tens of seconds, even when some of those
19 hosts are down or do not run ssh. For scanning, one does not need login
20 access to the machines that are being scanned, nor does the scanning
21 process involve any encryption.
22
23 The options are as follows:
24
25 -4 Forces ssh-keyscan to use IPv4 addresses only.
26
27 -6 Forces ssh-keyscan to use IPv6 addresses only.
28
29 -c Request certificates from target hosts instead of plain keys.
30
31 -f file
32 Read hosts or M-bM-^@M-^\addrlist namelistM-bM-^@M-^] pairs from file, one per line.
33 If - is supplied instead of a filename, ssh-keyscan will read
34 hosts or M-bM-^@M-^\addrlist namelistM-bM-^@M-^] pairs from the standard input.
35
36 -H Hash all hostnames and addresses in the output. Hashed names may
37 be used normally by ssh and sshd, but they do not reveal
38 identifying information should the file's contents be disclosed.
39
40 -p port
41 Port to connect to on the remote host.
42
43 -T timeout
44 Set the timeout for connection attempts. If timeout seconds have
45 elapsed since a connection was initiated to a host or since the
46 last time anything was read from that host, then the connection
47 is closed and the host in question considered unavailable.
48 Default is 5 seconds.
49
50 -t type
51 Specifies the type of the key to fetch from the scanned hosts.
52 The possible values are M-bM-^@M-^\rsa1M-bM-^@M-^] for protocol version 1 and M-bM-^@M-^\dsaM-bM-^@M-^],
53 M-bM-^@M-^\ecdsaM-bM-^@M-^], M-bM-^@M-^\ed25519M-bM-^@M-^], or M-bM-^@M-^\rsaM-bM-^@M-^] for protocol version 2. Multiple
54 values may be specified by separating them with commas. The
55 default is to fetch M-bM-^@M-^\rsaM-bM-^@M-^], M-bM-^@M-^\ecdsaM-bM-^@M-^], and M-bM-^@M-^\ed25519M-bM-^@M-^] keys.
56
57 -v Verbose mode. Causes ssh-keyscan to print debugging messages
58 about its progress.
59
60SECURITY
61 If an ssh_known_hosts file is constructed using ssh-keyscan without
62 verifying the keys, users will be vulnerable to man in the middle
63 attacks. On the other hand, if the security model allows such a risk,
64 ssh-keyscan can help in the detection of tampered keyfiles or man in the
65 middle attacks which have begun after the ssh_known_hosts file was
66 created.
67
68FILES
69 Input format:
70
71 1.2.3.4,1.2.4.4 name.my.domain,name,n.my.domain,n,1.2.3.4,1.2.4.4
72
73 Output format for RSA1 keys:
74
75 host-or-namelist bits exponent modulus
76
77 Output format for RSA, DSA, ECDSA, and Ed25519 keys:
78
79 host-or-namelist keytype base64-encoded-key
80
81 Where keytype is either M-bM-^@M-^\ecdsa-sha2-nistp256M-bM-^@M-^], M-bM-^@M-^\ecdsa-sha2-nistp384M-bM-^@M-^],
82 M-bM-^@M-^\ecdsa-sha2-nistp521M-bM-^@M-^], M-bM-^@M-^\ssh-ed25519M-bM-^@M-^], M-bM-^@M-^\ssh-dssM-bM-^@M-^] or M-bM-^@M-^\ssh-rsaM-bM-^@M-^].
83
84 /etc/ssh/ssh_known_hosts
85
86EXAMPLES
87 Print the rsa host key for machine hostname:
88
89 $ ssh-keyscan hostname
90
91 Find all hosts from the file ssh_hosts which have new or different keys
92 from those in the sorted file ssh_known_hosts:
93
94 $ ssh-keyscan -t rsa,dsa,ecdsa,ed25519 -f ssh_hosts | \
95 sort -u - ssh_known_hosts | diff ssh_known_hosts -
96
97SEE ALSO
98 ssh(1), sshd(8)
99
100AUTHORS
101 David Mazieres <dm@lcs.mit.edu> wrote the initial version, and Wayne
102 Davison <wayned@users.sourceforge.net> added support for protocol version
103 2.
104
105BUGS
106 It generates "Connection closed by remote host" messages on the consoles
107 of all the machines it scans if the server is older than version 2.9.
108 This is because it opens a connection to the ssh port, reads the public
109 key, and drops the connection as soon as it gets the key.
110
111OpenBSD 5.9 November 8, 2015 OpenBSD 5.9
diff --git a/ssh-keysign.0 b/ssh-keysign.0
new file mode 100644
index 000000000..65d75f313
--- /dev/null
+++ b/ssh-keysign.0
@@ -0,0 +1,52 @@
1SSH-KEYSIGN(8) System Manager's Manual SSH-KEYSIGN(8)
2
3NAME
4 ssh-keysign M-bM-^@M-^S ssh helper program for host-based authentication
5
6SYNOPSIS
7 ssh-keysign
8
9DESCRIPTION
10 ssh-keysign is used by ssh(1) to access the local host keys and generate
11 the digital signature required during host-based authentication.
12
13 ssh-keysign is disabled by default and can only be enabled in the global
14 client configuration file /etc/ssh/ssh_config by setting EnableSSHKeysign
15 to M-bM-^@M-^\yesM-bM-^@M-^].
16
17 ssh-keysign is not intended to be invoked by the user, but from ssh(1).
18 See ssh(1) and sshd(8) for more information about host-based
19 authentication.
20
21FILES
22 /etc/ssh/ssh_config
23 Controls whether ssh-keysign is enabled.
24
25 /etc/ssh/ssh_host_dsa_key
26 /etc/ssh/ssh_host_ecdsa_key
27 /etc/ssh/ssh_host_ed25519_key
28 /etc/ssh/ssh_host_rsa_key
29 These files contain the private parts of the host keys used to
30 generate the digital signature. They should be owned by root,
31 readable only by root, and not accessible to others. Since they
32 are readable only by root, ssh-keysign must be set-uid root if
33 host-based authentication is used.
34
35 /etc/ssh/ssh_host_dsa_key-cert.pub
36 /etc/ssh/ssh_host_ecdsa_key-cert.pub
37 /etc/ssh/ssh_host_ed25519_key-cert.pub
38 /etc/ssh/ssh_host_rsa_key-cert.pub
39 If these files exist they are assumed to contain public
40 certificate information corresponding with the private keys
41 above.
42
43SEE ALSO
44 ssh(1), ssh-keygen(1), ssh_config(5), sshd(8)
45
46HISTORY
47 ssh-keysign first appeared in OpenBSD 3.2.
48
49AUTHORS
50 Markus Friedl <markus@openbsd.org>
51
52OpenBSD 5.9 February 17, 2016 OpenBSD 5.9
diff --git a/ssh-pkcs11-helper.0 b/ssh-pkcs11-helper.0
new file mode 100644
index 000000000..47aa7bdcd
--- /dev/null
+++ b/ssh-pkcs11-helper.0
@@ -0,0 +1,25 @@
1SSH-PKCS11-HELPER(8) System Manager's Manual SSH-PKCS11-HELPER(8)
2
3NAME
4 ssh-pkcs11-helper M-bM-^@M-^S ssh-agent helper program for PKCS#11 support
5
6SYNOPSIS
7 ssh-pkcs11-helper
8
9DESCRIPTION
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
16SEE ALSO
17 ssh(1), ssh-add(1), ssh-agent(1)
18
19HISTORY
20 ssh-pkcs11-helper first appeared in OpenBSD 4.7.
21
22AUTHORS
23 Markus Friedl <markus@openbsd.org>
24
25OpenBSD 5.9 July 16, 2013 OpenBSD 5.9
diff --git a/ssh.0 b/ssh.0
new file mode 100644
index 000000000..9aaf4367d
--- /dev/null
+++ b/ssh.0
@@ -0,0 +1,958 @@
1SSH(1) General Commands Manual SSH(1)
2
3NAME
4 ssh M-bM-^@M-^S OpenSSH SSH client (remote login program)
5
6SYNOPSIS
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] [-L address]
10 [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
11 [-Q query_option] [-R address] [-S ctl_path] [-W host:port]
12 [-w local_tun[:remote_tun]] [user@]hostname [command]
13
14DESCRIPTION
15 ssh (SSH client) is a program for logging into a remote machine and for
16 executing commands on a remote machine. It is intended to provide secure
17 encrypted communications between two untrusted hosts over an insecure
18 network. X11 connections, arbitrary TCP ports and UNIX-domain sockets
19 can also be forwarded over the secure channel.
20
21 ssh connects and logs into the specified hostname (with optional user
22 name). The user must prove his/her identity to the remote machine using
23 one of several methods (see below).
24
25 If command is specified, it is executed on the remote host instead of a
26 login shell.
27
28 The options are as follows:
29
30 -1 Forces ssh to try protocol version 1 only.
31
32 -2 Forces ssh to try protocol version 2 only.
33
34 -4 Forces ssh to use IPv4 addresses only.
35
36 -6 Forces ssh to use IPv6 addresses only.
37
38 -A Enables forwarding of the authentication agent connection. This
39 can also be specified on a per-host basis in a configuration
40 file.
41
42 Agent forwarding should be enabled with caution. Users with the
43 ability to bypass file permissions on the remote host (for the
44 agent's UNIX-domain socket) can access the local agent through
45 the forwarded connection. An attacker cannot obtain key material
46 from the agent, however they can perform operations on the keys
47 that enable them to authenticate using the identities loaded into
48 the agent.
49
50 -a Disables forwarding of the authentication agent connection.
51
52 -b bind_address
53 Use bind_address on the local machine as the source address of
54 the connection. Only useful on systems with more than one
55 address.
56
57 -C Requests compression of all data (including stdin, stdout,
58 stderr, and data for forwarded X11, TCP and UNIX-domain
59 connections). The compression algorithm is the same used by
60 gzip(1), and the M-bM-^@M-^\levelM-bM-^@M-^] can be controlled by the
61 CompressionLevel option for protocol version 1. Compression is
62 desirable on modem lines and other slow connections, but will
63 only slow down things on fast networks. The default value can be
64 set on a host-by-host basis in the configuration files; see the
65 Compression option.
66
67 -c cipher_spec
68 Selects the cipher specification for encrypting the session.
69
70 Protocol version 1 allows specification of a single cipher. The
71 supported values are M-bM-^@M-^\3desM-bM-^@M-^], M-bM-^@M-^\blowfishM-bM-^@M-^], and M-bM-^@M-^\desM-bM-^@M-^]. For protocol
72 version 2, cipher_spec is a comma-separated list of ciphers
73 listed in order of preference. See the Ciphers keyword in
74 ssh_config(5) for more information.
75
76 -D [bind_address:]port
77 Specifies a local M-bM-^@M-^\dynamicM-bM-^@M-^] application-level port forwarding.
78 This works by allocating a socket to listen to port on the local
79 side, optionally bound to the specified bind_address. Whenever a
80 connection is made to this port, the connection is forwarded over
81 the secure channel, and the application protocol is then used to
82 determine where to connect to from the remote machine. Currently
83 the SOCKS4 and SOCKS5 protocols are supported, and ssh will act
84 as a SOCKS server. Only root can forward privileged ports.
85 Dynamic port forwardings can also be specified in the
86 configuration file.
87
88 IPv6 addresses can be specified by enclosing the address in
89 square brackets. Only the superuser can forward privileged
90 ports. By default, the local port is bound in accordance with
91 the GatewayPorts setting. However, an explicit bind_address may
92 be used to bind the connection to a specific address. The
93 bind_address of M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the listening port be
94 bound for local use only, while an empty address or M-bM-^@M-^X*M-bM-^@M-^Y indicates
95 that the port should be available from all interfaces.
96
97 -E log_file
98 Append debug logs to log_file instead of standard error.
99
100 -e escape_char
101 Sets the escape character for sessions with a pty (default: M-bM-^@M-^X~M-bM-^@M-^Y).
102 The escape character is only recognized at the beginning of a
103 line. The escape character followed by a dot (M-bM-^@M-^X.M-bM-^@M-^Y) closes the
104 connection; followed by control-Z suspends the connection; and
105 followed by itself sends the escape character once. Setting the
106 character to M-bM-^@M-^\noneM-bM-^@M-^] disables any escapes and makes the session
107 fully transparent.
108
109 -F configfile
110 Specifies an alternative per-user configuration file. If a
111 configuration file is given on the command line, the system-wide
112 configuration file (/etc/ssh/ssh_config) will be ignored. The
113 default for the per-user configuration file is ~/.ssh/config.
114
115 -f Requests ssh to go to background just before command execution.
116 This is useful if ssh is going to ask for passwords or
117 passphrases, but the user wants it in the background. This
118 implies -n. The recommended way to start X11 programs at a
119 remote site is with something like ssh -f host xterm.
120
121 If the ExitOnForwardFailure configuration option is set to M-bM-^@M-^\yesM-bM-^@M-^],
122 then a client started with -f will wait for all remote port
123 forwards to be successfully established before placing itself in
124 the background.
125
126 -G Causes ssh to print its configuration after evaluating Host and
127 Match blocks and exit.
128
129 -g Allows remote hosts to connect to local forwarded ports. If used
130 on a multiplexed connection, then this option must be specified
131 on the master process.
132
133 -I pkcs11
134 Specify the PKCS#11 shared library ssh should use to communicate
135 with a PKCS#11 token providing the user's private RSA key.
136
137 -i identity_file
138 Selects a file from which the identity (private key) for public
139 key authentication is read. The default is ~/.ssh/identity for
140 protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa,
141 ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2.
142 Identity files may also be specified on a per-host basis in the
143 configuration file. It is possible to have multiple -i options
144 (and multiple identities specified in configuration files). If
145 no certificates have been explicitly specified by the
146 CertificateFile directive, ssh will also try to load certificate
147 information from the filename obtained by appending -cert.pub to
148 identity filenames.
149
150 -K Enables GSSAPI-based authentication and forwarding (delegation)
151 of GSSAPI credentials to the server.
152
153 -k Disables forwarding (delegation) of GSSAPI credentials to the
154 server.
155
156 -L [bind_address:]port:host:hostport
157 -L [bind_address:]port:remote_socket
158 -L local_socket:host:hostport
159 -L local_socket:remote_socket
160 Specifies that connections to the given TCP port or Unix socket
161 on the local (client) host are to be forwarded to the given host
162 and port, or Unix socket, on the remote side. This works by
163 allocating a socket to listen to either a TCP port on the local
164 side, optionally bound to the specified bind_address, or to a
165 Unix socket. Whenever a connection is made to the local port or
166 socket, the connection is forwarded over the secure channel, and
167 a connection is made to either host port hostport, or the Unix
168 socket remote_socket, from the remote machine.
169
170 Port forwardings can also be specified in the configuration file.
171 Only the superuser can forward privileged ports. IPv6 addresses
172 can be specified by enclosing the address in square brackets.
173
174 By default, the local port is bound in accordance with the
175 GatewayPorts setting. However, an explicit bind_address may be
176 used to bind the connection to a specific address. The
177 bind_address of M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the listening port be
178 bound for local use only, while an empty address or M-bM-^@M-^X*M-bM-^@M-^Y indicates
179 that the port should be available from all interfaces.
180
181 -l login_name
182 Specifies the user to log in as on the remote machine. This also
183 may be specified on a per-host basis in the configuration file.
184
185 -M Places the ssh client into M-bM-^@M-^\masterM-bM-^@M-^] mode for connection sharing.
186 Multiple -M options places ssh into M-bM-^@M-^\masterM-bM-^@M-^] mode with
187 confirmation required before slave connections are accepted.
188 Refer to the description of ControlMaster in ssh_config(5) for
189 details.
190
191 -m mac_spec
192 A comma-separated list of MAC (message authentication code)
193 algorithms, specified in order of preference. See the MACs
194 keyword for more information.
195
196 -N Do not execute a remote command. This is useful for just
197 forwarding ports.
198
199 -n Redirects stdin from /dev/null (actually, prevents reading from
200 stdin). This must be used when ssh is run in the background. A
201 common trick is to use this to run X11 programs on a remote
202 machine. For example, ssh -n shadows.cs.hut.fi emacs & will
203 start an emacs on shadows.cs.hut.fi, and the X11 connection will
204 be automatically forwarded over an encrypted channel. The ssh
205 program will be put in the background. (This does not work if
206 ssh needs to ask for a password or passphrase; see also the -f
207 option.)
208
209 -O ctl_cmd
210 Control an active connection multiplexing master process. When
211 the -O option is specified, the ctl_cmd argument is interpreted
212 and passed to the master process. Valid commands are: M-bM-^@M-^\checkM-bM-^@M-^]
213 (check that the master process is running), M-bM-^@M-^\forwardM-bM-^@M-^] (request
214 forwardings without command execution), M-bM-^@M-^\cancelM-bM-^@M-^] (cancel
215 forwardings), M-bM-^@M-^\exitM-bM-^@M-^] (request the master to exit), and M-bM-^@M-^\stopM-bM-^@M-^]
216 (request the master to stop accepting further multiplexing
217 requests).
218
219 -o option
220 Can be used to give options in the format used in the
221 configuration file. This is useful for specifying options for
222 which there is no separate command-line flag. For full details
223 of the options listed below, and their possible values, see
224 ssh_config(5).
225
226 AddKeysToAgent
227 AddressFamily
228 BatchMode
229 BindAddress
230 CanonicalDomains
231 CanonicalizeFallbackLocal
232 CanonicalizeHostname
233 CanonicalizeMaxDots
234 CanonicalizePermittedCNAMEs
235 CertificateFile
236 ChallengeResponseAuthentication
237 CheckHostIP
238 Cipher
239 Ciphers
240 ClearAllForwardings
241 Compression
242 CompressionLevel
243 ConnectionAttempts
244 ConnectTimeout
245 ControlMaster
246 ControlPath
247 ControlPersist
248 DynamicForward
249 EscapeChar
250 ExitOnForwardFailure
251 FingerprintHash
252 ForwardAgent
253 ForwardX11
254 ForwardX11Timeout
255 ForwardX11Trusted
256 GatewayPorts
257 GlobalKnownHostsFile
258 GSSAPIAuthentication
259 GSSAPIDelegateCredentials
260 HashKnownHosts
261 Host
262 HostbasedAuthentication
263 HostbasedKeyTypes
264 HostKeyAlgorithms
265 HostKeyAlias
266 HostName
267 IdentityFile
268 IdentitiesOnly
269 IPQoS
270 KbdInteractiveAuthentication
271 KbdInteractiveDevices
272 KexAlgorithms
273 LocalCommand
274 LocalForward
275 LogLevel
276 MACs
277 Match
278 NoHostAuthenticationForLocalhost
279 NumberOfPasswordPrompts
280 PasswordAuthentication
281 PermitLocalCommand
282 PKCS11Provider
283 Port
284 PreferredAuthentications
285 Protocol
286 ProxyCommand
287 ProxyUseFdpass
288 PubkeyAcceptedKeyTypes
289 PubkeyAuthentication
290 RekeyLimit
291 RemoteForward
292 RequestTTY
293 RhostsRSAAuthentication
294 RSAAuthentication
295 SendEnv
296 ServerAliveInterval
297 ServerAliveCountMax
298 StreamLocalBindMask
299 StreamLocalBindUnlink
300 StrictHostKeyChecking
301 TCPKeepAlive
302 Tunnel
303 TunnelDevice
304 UpdateHostKeys
305 UsePrivilegedPort
306 User
307 UserKnownHostsFile
308 VerifyHostKeyDNS
309 VisualHostKey
310 XAuthLocation
311
312 -p port
313 Port to connect to on the remote host. This can be specified on
314 a per-host basis in the configuration file.
315
316 -Q query_option
317 Queries ssh for the algorithms supported for the specified
318 version 2. The available features are: cipher (supported
319 symmetric ciphers), cipher-auth (supported symmetric ciphers that
320 support authenticated encryption), mac (supported message
321 integrity codes), kex (key exchange algorithms), key (key types),
322 key-cert (certificate key types), key-plain (non-certificate key
323 types), and protocol-version (supported SSH protocol versions).
324
325 -q Quiet mode. Causes most warning and diagnostic messages to be
326 suppressed.
327
328 -R [bind_address:]port:host:hostport
329 -R [bind_address:]port:local_socket
330 -R remote_socket:host:hostport
331 -R remote_socket:local_socket
332 Specifies that connections to the given TCP port or Unix socket
333 on the remote (server) host are to be forwarded to the given host
334 and port, or Unix socket, on the local side. This works by
335 allocating a socket to listen to either a TCP port or to a Unix
336 socket on the remote side. Whenever a connection is made to this
337 port or Unix socket, the connection is forwarded over the secure
338 channel, and a connection is made to either host port hostport,
339 or local_socket, from the local machine.
340
341 Port forwardings can also be specified in the configuration file.
342 Privileged ports can be forwarded only when logging in as root on
343 the remote machine. IPv6 addresses can be specified by enclosing
344 the address in square brackets.
345
346 By default, TCP listening sockets on the server will be bound to
347 the loopback interface only. This may be overridden by
348 specifying a bind_address. An empty bind_address, or the address
349 M-bM-^@M-^X*M-bM-^@M-^Y, indicates that the remote socket should listen on all
350 interfaces. Specifying a remote bind_address will only succeed
351 if the server's GatewayPorts option is enabled (see
352 sshd_config(5)).
353
354 If the port argument is M-bM-^@M-^X0M-bM-^@M-^Y, the listen port will be dynamically
355 allocated on the server and reported to the client at run time.
356 When used together with -O forward the allocated port will be
357 printed to the standard output.
358
359 -S ctl_path
360 Specifies the location of a control socket for connection
361 sharing, or the string M-bM-^@M-^\noneM-bM-^@M-^] to disable connection sharing.
362 Refer to the description of ControlPath and ControlMaster in
363 ssh_config(5) for details.
364
365 -s May be used to request invocation of a subsystem on the remote
366 system. Subsystems facilitate the use of SSH as a secure
367 transport for other applications (e.g. sftp(1)). The subsystem
368 is specified as the remote command.
369
370 -T Disable pseudo-terminal allocation.
371
372 -t Force pseudo-terminal allocation. This can be used to execute
373 arbitrary screen-based programs on a remote machine, which can be
374 very useful, e.g. when implementing menu services. Multiple -t
375 options force tty allocation, even if ssh has no local tty.
376
377 -V Display the version number and exit.
378
379 -v Verbose mode. Causes ssh to print debugging messages about its
380 progress. This is helpful in debugging connection,
381 authentication, and configuration problems. Multiple -v options
382 increase the verbosity. The maximum is 3.
383
384 -W host:port
385 Requests that standard input and output on the client be
386 forwarded to host on port over the secure channel. Implies -N,
387 -T, ExitOnForwardFailure and ClearAllForwardings.
388
389 -w local_tun[:remote_tun]
390 Requests tunnel device forwarding with the specified tun(4)
391 devices between the client (local_tun) and the server
392 (remote_tun).
393
394 The devices may be specified by numerical ID or the keyword
395 M-bM-^@M-^\anyM-bM-^@M-^], which uses the next available tunnel device. If
396 remote_tun is not specified, it defaults to M-bM-^@M-^\anyM-bM-^@M-^]. See also the
397 Tunnel and TunnelDevice directives in ssh_config(5). If the
398 Tunnel directive is unset, it is set to the default tunnel mode,
399 which is M-bM-^@M-^\point-to-pointM-bM-^@M-^].
400
401 -X Enables X11 forwarding. This can also be specified on a per-host
402 basis in a configuration file.
403
404 X11 forwarding should be enabled with caution. Users with the
405 ability to bypass file permissions on the remote host (for the
406 user's X authorization database) can access the local X11 display
407 through the forwarded connection. An attacker may then be able
408 to perform activities such as keystroke monitoring.
409
410 For this reason, X11 forwarding is subjected to X11 SECURITY
411 extension restrictions by default. Please refer to the ssh -Y
412 option and the ForwardX11Trusted directive in ssh_config(5) for
413 more information.
414
415 -x Disables X11 forwarding.
416
417 -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not
418 subjected to the X11 SECURITY extension controls.
419
420 -y Send log information using the syslog(3) system module. By
421 default this information is sent to stderr.
422
423 ssh may additionally obtain configuration data from a per-user
424 configuration file and a system-wide configuration file. The file format
425 and configuration options are described in ssh_config(5).
426
427AUTHENTICATION
428 The OpenSSH SSH client supports SSH protocols 1 and 2. The default is to
429 use protocol 2 only, though this can be changed via the Protocol option
430 in ssh_config(5) or the -1 and -2 options (see above). Protocol 1 should
431 not be used and is only offered to support legacy devices. It suffers
432 from a number of cryptographic weaknesses and doesn't support many of the
433 advanced features available for protocol 2.
434
435 The methods available for authentication are: GSSAPI-based
436 authentication, host-based authentication, public key authentication,
437 challenge-response authentication, and password authentication.
438 Authentication methods are tried in the order specified above, though
439 PreferredAuthentications can be used to change the default order.
440
441 Host-based authentication works as follows: If the machine the user logs
442 in from is listed in /etc/hosts.equiv or /etc/shosts.equiv on the remote
443 machine, and the user names are the same on both sides, or if the files
444 ~/.rhosts or ~/.shosts exist in the user's home directory on the remote
445 machine and contain a line containing the name of the client machine and
446 the name of the user on that machine, the user is considered for login.
447 Additionally, the server must be able to verify the client's host key
448 (see the description of /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts,
449 below) for login to be permitted. This authentication method closes
450 security holes due to IP spoofing, DNS spoofing, and routing spoofing.
451 [Note to the administrator: /etc/hosts.equiv, ~/.rhosts, and the
452 rlogin/rsh protocol in general, are inherently insecure and should be
453 disabled if security is desired.]
454
455 Public key authentication works as follows: The scheme is based on
456 public-key cryptography, using cryptosystems where encryption and
457 decryption are done using separate keys, and it is unfeasible to derive
458 the decryption key from the encryption key. The idea is that each user
459 creates a public/private key pair for authentication purposes. The
460 server knows the public key, and only the user knows the private key.
461 ssh implements public key authentication protocol automatically, using
462 one of the DSA, ECDSA, Ed25519 or RSA algorithms. The HISTORY section of
463 ssl(8) contains a brief discussion of the DSA and RSA algorithms.
464
465 The file ~/.ssh/authorized_keys lists the public keys that are permitted
466 for logging in. When the user logs in, the ssh program tells the server
467 which key pair it would like to use for authentication. The client
468 proves that it has access to the private key and the server checks that
469 the corresponding public key is authorized to accept the account.
470
471 The user creates his/her key pair by running ssh-keygen(1). This stores
472 the private key in ~/.ssh/identity (protocol 1), ~/.ssh/id_dsa (DSA),
473 ~/.ssh/id_ecdsa (ECDSA), ~/.ssh/id_ed25519 (Ed25519), or ~/.ssh/id_rsa
474 (RSA) and stores the public key in ~/.ssh/identity.pub (protocol 1),
475 ~/.ssh/id_dsa.pub (DSA), ~/.ssh/id_ecdsa.pub (ECDSA),
476 ~/.ssh/id_ed25519.pub (Ed25519), or ~/.ssh/id_rsa.pub (RSA) in the user's
477 home directory. The user should then copy the public key to
478 ~/.ssh/authorized_keys in his/her home directory on the remote machine.
479 The authorized_keys file corresponds to the conventional ~/.rhosts file,
480 and has one key per line, though the lines can be very long. After this,
481 the user can log in without giving the password.
482
483 A variation on public key authentication is available in the form of
484 certificate authentication: instead of a set of public/private keys,
485 signed certificates are used. This has the advantage that a single
486 trusted certification authority can be used in place of many
487 public/private keys. See the CERTIFICATES section of ssh-keygen(1) for
488 more information.
489
490 The most convenient way to use public key or certificate authentication
491 may be with an authentication agent. See ssh-agent(1) and (optionally)
492 the AddKeysToAgent directive in ssh_config(5) for more information.
493
494 Challenge-response authentication works as follows: The server sends an
495 arbitrary "challenge" text, and prompts for a response. Examples of
496 challenge-response authentication include BSD Authentication (see
497 login.conf(5)) and PAM (some non-OpenBSD systems).
498
499 Finally, if other authentication methods fail, ssh prompts the user for a
500 password. The password is sent to the remote host for checking; however,
501 since all communications are encrypted, the password cannot be seen by
502 someone listening on the network.
503
504 ssh automatically maintains and checks a database containing
505 identification for all hosts it has ever been used with. Host keys are
506 stored in ~/.ssh/known_hosts in the user's home directory. Additionally,
507 the file /etc/ssh/ssh_known_hosts is automatically checked for known
508 hosts. Any new hosts are automatically added to the user's file. If a
509 host's identification ever changes, ssh warns about this and disables
510 password authentication to prevent server spoofing or man-in-the-middle
511 attacks, which could otherwise be used to circumvent the encryption. The
512 StrictHostKeyChecking option can be used to control logins to machines
513 whose host key is not known or has changed.
514
515 When the user's identity has been accepted by the server, the server
516 either executes the given command in a non-interactive session or, if no
517 command has been specified, logs into the machine and gives the user a
518 normal shell as an interactive session. All communication with the
519 remote command or shell will be automatically encrypted.
520
521 If an interactive session is requested ssh by default will only request a
522 pseudo-terminal (pty) for interactive sessions when the client has one.
523 The flags -T and -t can be used to override this behaviour.
524
525 If a pseudo-terminal has been allocated the user may use the escape
526 characters noted below.
527
528 If no pseudo-terminal has been allocated, the session is transparent and
529 can be used to reliably transfer binary data. On most systems, setting
530 the escape character to M-bM-^@M-^\noneM-bM-^@M-^] will also make the session transparent
531 even if a tty is used.
532
533 The session terminates when the command or shell on the remote machine
534 exits and all X11 and TCP connections have been closed.
535
536ESCAPE CHARACTERS
537 When a pseudo-terminal has been requested, ssh supports a number of
538 functions through the use of an escape character.
539
540 A single tilde character can be sent as ~~ or by following the tilde by a
541 character other than those described below. The escape character must
542 always follow a newline to be interpreted as special. The escape
543 character can be changed in configuration files using the EscapeChar
544 configuration directive or on the command line by the -e option.
545
546 The supported escapes (assuming the default M-bM-^@M-^X~M-bM-^@M-^Y) are:
547
548 ~. Disconnect.
549
550 ~^Z Background ssh.
551
552 ~# List forwarded connections.
553
554 ~& Background ssh at logout when waiting for forwarded connection /
555 X11 sessions to terminate.
556
557 ~? Display a list of escape characters.
558
559 ~B Send a BREAK to the remote system (only useful if the peer
560 supports it).
561
562 ~C Open command line. Currently this allows the addition of port
563 forwardings using the -L, -R and -D options (see above). It also
564 allows the cancellation of existing port-forwardings with
565 -KL[bind_address:]port for local, -KR[bind_address:]port for
566 remote and -KD[bind_address:]port for dynamic port-forwardings.
567 !command allows the user to execute a local command if the
568 PermitLocalCommand option is enabled in ssh_config(5). Basic
569 help is available, using the -h option.
570
571 ~R Request rekeying of the connection (only useful if the peer
572 supports it).
573
574 ~V Decrease the verbosity (LogLevel) when errors are being written
575 to stderr.
576
577 ~v Increase the verbosity (LogLevel) when errors are being written
578 to stderr.
579
580TCP FORWARDING
581 Forwarding of arbitrary TCP connections over the secure channel can be
582 specified either on the command line or in a configuration file. One
583 possible application of TCP forwarding is a secure connection to a mail
584 server; another is going through firewalls.
585
586 In the example below, we look at encrypting communication between an IRC
587 client and server, even though the IRC server does not directly support
588 encrypted communications. This works as follows: the user connects to
589 the remote host using ssh, specifying a port to be used to forward
590 connections to the remote server. After that it is possible to start the
591 service which is to be encrypted on the client machine, connecting to the
592 same local port, and ssh will encrypt and forward the connection.
593
594 The following example tunnels an IRC session from client machine
595 M-bM-^@M-^\127.0.0.1M-bM-^@M-^] (localhost) to remote server M-bM-^@M-^\server.example.comM-bM-^@M-^]:
596
597 $ ssh -f -L 1234:localhost:6667 server.example.com sleep 10
598 $ irc -c '#users' -p 1234 pinky 127.0.0.1
599
600 This tunnels a connection to IRC server M-bM-^@M-^\server.example.comM-bM-^@M-^], joining
601 channel M-bM-^@M-^\#usersM-bM-^@M-^], nickname M-bM-^@M-^\pinkyM-bM-^@M-^], using port 1234. It doesn't matter
602 which port is used, as long as it's greater than 1023 (remember, only
603 root can open sockets on privileged ports) and doesn't conflict with any
604 ports already in use. The connection is forwarded to port 6667 on the
605 remote server, since that's the standard port for IRC services.
606
607 The -f option backgrounds ssh and the remote command M-bM-^@M-^\sleep 10M-bM-^@M-^] is
608 specified to allow an amount of time (10 seconds, in the example) to
609 start the service which is to be tunnelled. If no connections are made
610 within the time specified, ssh will exit.
611
612X11 FORWARDING
613 If the ForwardX11 variable is set to M-bM-^@M-^\yesM-bM-^@M-^] (or see the description of the
614 -X, -x, and -Y options above) and the user is using X11 (the DISPLAY
615 environment variable is set), the connection to the X11 display is
616 automatically forwarded to the remote side in such a way that any X11
617 programs started from the shell (or command) will go through the
618 encrypted channel, and the connection to the real X server will be made
619 from the local machine. The user should not manually set DISPLAY.
620 Forwarding of X11 connections can be configured on the command line or in
621 configuration files.
622
623 The DISPLAY value set by ssh will point to the server machine, but with a
624 display number greater than zero. This is normal, and happens because
625 ssh creates a M-bM-^@M-^\proxyM-bM-^@M-^] X server on the server machine for forwarding the
626 connections over the encrypted channel.
627
628 ssh will also automatically set up Xauthority data on the server machine.
629 For this purpose, it will generate a random authorization cookie, store
630 it in Xauthority on the server, and verify that any forwarded connections
631 carry this cookie and replace it by the real cookie when the connection
632 is opened. The real authentication cookie is never sent to the server
633 machine (and no cookies are sent in the plain).
634
635 If the ForwardAgent variable is set to M-bM-^@M-^\yesM-bM-^@M-^] (or see the description of
636 the -A and -a options above) and the user is using an authentication
637 agent, the connection to the agent is automatically forwarded to the
638 remote side.
639
640VERIFYING HOST KEYS
641 When connecting to a server for the first time, a fingerprint of the
642 server's public key is presented to the user (unless the option
643 StrictHostKeyChecking has been disabled). Fingerprints can be determined
644 using ssh-keygen(1):
645
646 $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
647
648 If the fingerprint is already known, it can be matched and the key can be
649 accepted or rejected. If only legacy (MD5) fingerprints for the server
650 are available, the ssh-keygen(1) -E option may be used to downgrade the
651 fingerprint algorithm to match.
652
653 Because of the difficulty of comparing host keys just by looking at
654 fingerprint strings, there is also support to compare host keys visually,
655 using random art. By setting the VisualHostKey option to M-bM-^@M-^\yesM-bM-^@M-^], a small
656 ASCII graphic gets displayed on every login to a server, no matter if the
657 session itself is interactive or not. By learning the pattern a known
658 server produces, a user can easily find out that the host key has changed
659 when a completely different pattern is displayed. Because these patterns
660 are not unambiguous however, a pattern that looks similar to the pattern
661 remembered only gives a good probability that the host key is the same,
662 not guaranteed proof.
663
664 To get a listing of the fingerprints along with their random art for all
665 known hosts, the following command line can be used:
666
667 $ ssh-keygen -lv -f ~/.ssh/known_hosts
668
669 If the fingerprint is unknown, an alternative method of verification is
670 available: SSH fingerprints verified by DNS. An additional resource
671 record (RR), SSHFP, is added to a zonefile and the connecting client is
672 able to match the fingerprint with that of the key presented.
673
674 In this example, we are connecting a client to a server,
675 M-bM-^@M-^\host.example.comM-bM-^@M-^]. The SSHFP resource records should first be added to
676 the zonefile for host.example.com:
677
678 $ ssh-keygen -r host.example.com.
679
680 The output lines will have to be added to the zonefile. To check that
681 the zone is answering fingerprint queries:
682
683 $ dig -t SSHFP host.example.com
684
685 Finally the client connects:
686
687 $ ssh -o "VerifyHostKeyDNS ask" host.example.com
688 [...]
689 Matching host key fingerprint found in DNS.
690 Are you sure you want to continue connecting (yes/no)?
691
692 See the VerifyHostKeyDNS option in ssh_config(5) for more information.
693
694SSH-BASED VIRTUAL PRIVATE NETWORKS
695 ssh contains support for Virtual Private Network (VPN) tunnelling using
696 the tun(4) network pseudo-device, allowing two networks to be joined
697 securely. The sshd_config(5) configuration option PermitTunnel controls
698 whether the server supports this, and at what level (layer 2 or 3
699 traffic).
700
701 The following example would connect client network 10.0.50.0/24 with
702 remote network 10.0.99.0/24 using a point-to-point connection from
703 10.1.1.1 to 10.1.1.2, provided that the SSH server running on the gateway
704 to the remote network, at 192.168.1.15, allows it.
705
706 On the client:
707
708 # ssh -f -w 0:1 192.168.1.15 true
709 # ifconfig tun0 10.1.1.1 10.1.1.2 netmask 255.255.255.252
710 # route add 10.0.99.0/24 10.1.1.2
711
712 On the server:
713
714 # ifconfig tun1 10.1.1.2 10.1.1.1 netmask 255.255.255.252
715 # route add 10.0.50.0/24 10.1.1.1
716
717 Client access may be more finely tuned via the /root/.ssh/authorized_keys
718 file (see below) and the PermitRootLogin server option. The following
719 entry would permit connections on tun(4) device 1 from user M-bM-^@M-^\janeM-bM-^@M-^] and on
720 tun device 2 from user M-bM-^@M-^\johnM-bM-^@M-^], if PermitRootLogin is set to
721 M-bM-^@M-^\forced-commands-onlyM-bM-^@M-^]:
722
723 tunnel="1",command="sh /etc/netstart tun1" ssh-rsa ... jane
724 tunnel="2",command="sh /etc/netstart tun2" ssh-rsa ... john
725
726 Since an SSH-based setup entails a fair amount of overhead, it may be
727 more suited to temporary setups, such as for wireless VPNs. More
728 permanent VPNs are better provided by tools such as ipsecctl(8) and
729 isakmpd(8).
730
731ENVIRONMENT
732 ssh will normally set the following environment variables:
733
734 DISPLAY The DISPLAY variable indicates the location of the
735 X11 server. It is automatically set by ssh to
736 point to a value of the form M-bM-^@M-^\hostname:nM-bM-^@M-^], where
737 M-bM-^@M-^\hostnameM-bM-^@M-^] indicates the host where the shell runs,
738 and M-bM-^@M-^XnM-bM-^@M-^Y is an integer M-bM-^IM-% 1. ssh uses this special
739 value to forward X11 connections over the secure
740 channel. The user should normally not set DISPLAY
741 explicitly, as that will render the X11 connection
742 insecure (and will require the user to manually
743 copy any required authorization cookies).
744
745 HOME Set to the path of the user's home directory.
746
747 LOGNAME Synonym for USER; set for compatibility with
748 systems that use this variable.
749
750 MAIL Set to the path of the user's mailbox.
751
752 PATH Set to the default PATH, as specified when
753 compiling ssh.
754
755 SSH_ASKPASS If ssh needs a passphrase, it will read the
756 passphrase from the current terminal if it was run
757 from a terminal. If ssh does not have a terminal
758 associated with it but DISPLAY and SSH_ASKPASS are
759 set, it will execute the program specified by
760 SSH_ASKPASS and open an X11 window to read the
761 passphrase. This is particularly useful when
762 calling ssh from a .xsession or related script.
763 (Note that on some machines it may be necessary to
764 redirect the input from /dev/null to make this
765 work.)
766
767 SSH_AUTH_SOCK Identifies the path of a UNIX-domain socket used to
768 communicate with the agent.
769
770 SSH_CONNECTION Identifies the client and server ends of the
771 connection. The variable contains four space-
772 separated values: client IP address, client port
773 number, server IP address, and server port number.
774
775 SSH_ORIGINAL_COMMAND This variable contains the original command line if
776 a forced command is executed. It can be used to
777 extract the original arguments.
778
779 SSH_TTY This is set to the name of the tty (path to the
780 device) associated with the current shell or
781 command. If the current session has no tty, this
782 variable is not set.
783
784 TZ This variable is set to indicate the present time
785 zone if it was set when the daemon was started
786 (i.e. the daemon passes the value on to new
787 connections).
788
789 USER Set to the name of the user logging in.
790
791 Additionally, ssh reads ~/.ssh/environment, and adds lines of the format
792 M-bM-^@M-^\VARNAME=valueM-bM-^@M-^] to the environment if the file exists and users are
793 allowed to change their environment. For more information, see the
794 PermitUserEnvironment option in sshd_config(5).
795
796FILES
797 ~/.rhosts
798 This file is used for host-based authentication (see above). On
799 some machines this file may need to be world-readable if the
800 user's home directory is on an NFS partition, because sshd(8)
801 reads it as root. Additionally, this file must be owned by the
802 user, and must not have write permissions for anyone else. The
803 recommended permission for most machines is read/write for the
804 user, and not accessible by others.
805
806 ~/.shosts
807 This file is used in exactly the same way as .rhosts, but allows
808 host-based authentication without permitting login with
809 rlogin/rsh.
810
811 ~/.ssh/
812 This directory is the default location for all user-specific
813 configuration and authentication information. There is no
814 general requirement to keep the entire contents of this directory
815 secret, but the recommended permissions are read/write/execute
816 for the user, and not accessible by others.
817
818 ~/.ssh/authorized_keys
819 Lists the public keys (DSA, ECDSA, Ed25519, RSA) that can be used
820 for logging in as this user. The format of this file is
821 described in the sshd(8) manual page. This file is not highly
822 sensitive, but the recommended permissions are read/write for the
823 user, and not accessible by others.
824
825 ~/.ssh/config
826 This is the per-user configuration file. The file format and
827 configuration options are described in ssh_config(5). Because of
828 the potential for abuse, this file must have strict permissions:
829 read/write for the user, and not writable by others.
830
831 ~/.ssh/environment
832 Contains additional definitions for environment variables; see
833 ENVIRONMENT, above.
834
835 ~/.ssh/identity
836 ~/.ssh/id_dsa
837 ~/.ssh/id_ecdsa
838 ~/.ssh/id_ed25519
839 ~/.ssh/id_rsa
840 Contains the private key for authentication. These files contain
841 sensitive data and should be readable by the user but not
842 accessible by others (read/write/execute). ssh will simply
843 ignore a private key file if it is accessible by others. It is
844 possible to specify a passphrase when generating the key which
845 will be used to encrypt the sensitive part of this file using
846 3DES.
847
848 ~/.ssh/identity.pub
849 ~/.ssh/id_dsa.pub
850 ~/.ssh/id_ecdsa.pub
851 ~/.ssh/id_ed25519.pub
852 ~/.ssh/id_rsa.pub
853 Contains the public key for authentication. These files are not
854 sensitive and can (but need not) be readable by anyone.
855
856 ~/.ssh/known_hosts
857 Contains a list of host keys for all hosts the user has logged
858 into that are not already in the systemwide list of known host
859 keys. See sshd(8) for further details of the format of this
860 file.
861
862 ~/.ssh/rc
863 Commands in this file are executed by ssh when the user logs in,
864 just before the user's shell (or command) is started. See the
865 sshd(8) manual page for more information.
866
867 /etc/hosts.equiv
868 This file is for host-based authentication (see above). It
869 should only be writable by root.
870
871 /etc/shosts.equiv
872 This file is used in exactly the same way as hosts.equiv, but
873 allows host-based authentication without permitting login with
874 rlogin/rsh.
875
876 /etc/ssh/ssh_config
877 Systemwide configuration file. The file format and configuration
878 options are described in ssh_config(5).
879
880 /etc/ssh/ssh_host_key
881 /etc/ssh/ssh_host_dsa_key
882 /etc/ssh/ssh_host_ecdsa_key
883 /etc/ssh/ssh_host_ed25519_key
884 /etc/ssh/ssh_host_rsa_key
885 These files contain the private parts of the host keys and are
886 used for host-based authentication.
887
888 /etc/ssh/ssh_known_hosts
889 Systemwide list of known host keys. This file should be prepared
890 by the system administrator to contain the public host keys of
891 all machines in the organization. It should be world-readable.
892 See sshd(8) for further details of the format of this file.
893
894 /etc/ssh/sshrc
895 Commands in this file are executed by ssh when the user logs in,
896 just before the user's shell (or command) is started. See the
897 sshd(8) manual page for more information.
898
899EXIT STATUS
900 ssh exits with the exit status of the remote command or with 255 if an
901 error occurred.
902
903SEE ALSO
904 scp(1), sftp(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh-keyscan(1),
905 tun(4), ssh_config(5), ssh-keysign(8), sshd(8)
906
907STANDARDS
908 S. Lehtinen and C. Lonvick, The Secure Shell (SSH) Protocol Assigned
909 Numbers, RFC 4250, January 2006.
910
911 T. Ylonen and C. Lonvick, The Secure Shell (SSH) Protocol Architecture,
912 RFC 4251, January 2006.
913
914 T. Ylonen and C. Lonvick, The Secure Shell (SSH) Authentication Protocol,
915 RFC 4252, January 2006.
916
917 T. Ylonen and C. Lonvick, The Secure Shell (SSH) Transport Layer
918 Protocol, RFC 4253, January 2006.
919
920 T. Ylonen and C. Lonvick, The Secure Shell (SSH) Connection Protocol, RFC
921 4254, January 2006.
922
923 J. Schlyter and W. Griffin, Using DNS to Securely Publish Secure Shell
924 (SSH) Key Fingerprints, RFC 4255, January 2006.
925
926 F. Cusack and M. Forssen, Generic Message Exchange Authentication for the
927 Secure Shell Protocol (SSH), RFC 4256, January 2006.
928
929 J. Galbraith and P. Remaker, The Secure Shell (SSH) Session Channel Break
930 Extension, RFC 4335, January 2006.
931
932 M. Bellare, T. Kohno, and C. Namprempre, The Secure Shell (SSH) Transport
933 Layer Encryption Modes, RFC 4344, January 2006.
934
935 B. Harris, Improved Arcfour Modes for the Secure Shell (SSH) Transport
936 Layer Protocol, RFC 4345, January 2006.
937
938 M. Friedl, N. Provos, and W. Simpson, Diffie-Hellman Group Exchange for
939 the Secure Shell (SSH) Transport Layer Protocol, RFC 4419, March 2006.
940
941 J. Galbraith and R. Thayer, The Secure Shell (SSH) Public Key File
942 Format, RFC 4716, November 2006.
943
944 D. Stebila and J. Green, Elliptic Curve Algorithm Integration in the
945 Secure Shell Transport Layer, RFC 5656, December 2009.
946
947 A. Perrig and D. Song, Hash Visualization: a New Technique to improve
948 Real-World Security, 1999, International Workshop on Cryptographic
949 Techniques and E-Commerce (CrypTEC '99).
950
951AUTHORS
952 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
953 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
954 de Raadt and Dug Song removed many bugs, re-added newer features and
955 created OpenSSH. Markus Friedl contributed the support for SSH protocol
956 versions 1.5 and 2.0.
957
958OpenBSD 5.9 February 17, 2016 OpenBSD 5.9
diff --git a/ssh_config.0 b/ssh_config.0
new file mode 100644
index 000000000..b823c021c
--- /dev/null
+++ b/ssh_config.0
@@ -0,0 +1,1052 @@
1SSH_CONFIG(5) File Formats Manual SSH_CONFIG(5)
2
3NAME
4 ssh_config M-bM-^@M-^S OpenSSH SSH client configuration files
5
6SYNOPSIS
7 ~/.ssh/config
8 /etc/ssh/ssh_config
9
10DESCRIPTION
11 ssh(1) obtains configuration data from the following sources in the
12 following order:
13
14 1. command-line options
15 2. user's configuration file (~/.ssh/config)
16 3. system-wide configuration file (/etc/ssh/ssh_config)
17
18 For each parameter, the first obtained value will be used. The
19 configuration files contain sections separated by M-bM-^@M-^\HostM-bM-^@M-^] specifications,
20 and that section is only applied for hosts that match one of the patterns
21 given in the specification. The matched host name is usually the one
22 given on the command line (see the CanonicalizeHostname option for
23 exceptions.)
24
25 Since the first obtained value for each parameter is used, more host-
26 specific declarations should be given near the beginning of the file, and
27 general defaults at the end.
28
29 The configuration file has the following format:
30
31 Empty lines and lines starting with M-bM-^@M-^X#M-bM-^@M-^Y are comments. Otherwise a line
32 is of the format M-bM-^@M-^\keyword argumentsM-bM-^@M-^]. Configuration options may be
33 separated by whitespace or optional whitespace and exactly one M-bM-^@M-^X=M-bM-^@M-^Y; the
34 latter format is useful to avoid the need to quote whitespace when
35 specifying configuration options using the ssh, scp, and sftp -o option.
36 Arguments may optionally be enclosed in double quotes (") in order to
37 represent arguments containing spaces.
38
39 The possible keywords and their meanings are as follows (note that
40 keywords are case-insensitive and arguments are case-sensitive):
41
42 Host Restricts the following declarations (up to the next Host or
43 Match keyword) to be only for those hosts that match one of the
44 patterns given after the keyword. If more than one pattern is
45 provided, they should be separated by whitespace. A single M-bM-^@M-^X*M-bM-^@M-^Y
46 as a pattern can be used to provide global defaults for all
47 hosts. The host is usually the hostname argument given on the
48 command line (see the CanonicalizeHostname option for
49 exceptions.)
50
51 A pattern entry may be negated by prefixing it with an
52 exclamation mark (M-bM-^@M-^X!M-bM-^@M-^Y). If a negated entry is matched, then the
53 Host entry is ignored, regardless of whether any other patterns
54 on the line match. Negated matches are therefore useful to
55 provide exceptions for wildcard matches.
56
57 See PATTERNS for more information on patterns.
58
59 Match Restricts the following declarations (up to the next Host or
60 Match keyword) to be used only when the conditions following the
61 Match keyword are satisfied. Match conditions are specified
62 using one or more criteria or the single token all which always
63 matches. The available criteria keywords are: canonical, exec,
64 host, originalhost, user, and localuser. The all criteria must
65 appear alone or immediately after canonical. Other criteria may
66 be combined arbitrarily. All criteria but all and canonical
67 require an argument. Criteria may be negated by prepending an
68 exclamation mark (M-bM-^@M-^X!M-bM-^@M-^Y).
69
70 The canonical keyword matches only when the configuration file is
71 being re-parsed after hostname canonicalization (see the
72 CanonicalizeHostname option.) This may be useful to specify
73 conditions that work with canonical host names only. The exec
74 keyword executes the specified command under the user's shell.
75 If the command returns a zero exit status then the condition is
76 considered true. Commands containing whitespace characters must
77 be quoted. The following character sequences in the command will
78 be expanded prior to execution: M-bM-^@M-^X%LM-bM-^@M-^Y will be substituted by the
79 first component of the local host name, M-bM-^@M-^X%lM-bM-^@M-^Y will be substituted
80 by the local host name (including any domain name), M-bM-^@M-^X%hM-bM-^@M-^Y will be
81 substituted by the target host name, M-bM-^@M-^X%nM-bM-^@M-^Y will be substituted by
82 the original target host name specified on the command-line, M-bM-^@M-^X%pM-bM-^@M-^Y
83 the destination port, M-bM-^@M-^X%rM-bM-^@M-^Y by the remote login username, and M-bM-^@M-^X%uM-bM-^@M-^Y
84 by the username of the user running ssh(1).
85
86 The other keywords' criteria must be single entries or comma-
87 separated lists and may use the wildcard and negation operators
88 described in the PATTERNS section. The criteria for the host
89 keyword are matched against the target hostname, after any
90 substitution by the Hostname or CanonicalizeHostname options.
91 The originalhost keyword matches against the hostname as it was
92 specified on the command-line. The user keyword matches against
93 the target username on the remote host. The localuser keyword
94 matches against the name of the local user running ssh(1) (this
95 keyword may be useful in system-wide ssh_config files).
96
97 AddKeysToAgent
98 Specifies whether keys should be automatically added to a running
99 ssh-agent(1). If this option is set to M-bM-^@M-^\yesM-bM-^@M-^] and a key is loaded
100 from a file, the key and its passphrase are added to the agent
101 with the default lifetime, as if by ssh-add(1). If this option
102 is set to M-bM-^@M-^\askM-bM-^@M-^], ssh will require confirmation using the
103 SSH_ASKPASS program before adding a key (see ssh-add(1) for
104 details). If this option is set to M-bM-^@M-^\confirmM-bM-^@M-^], each use of the
105 key must be confirmed, as if the -c option was specified to
106 ssh-add(1). If this option is set to M-bM-^@M-^\noM-bM-^@M-^], no keys are added to
107 the agent. The argument must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\confirmM-bM-^@M-^], M-bM-^@M-^\askM-bM-^@M-^], or
108 M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
109
110 AddressFamily
111 Specifies which address family to use when connecting. Valid
112 arguments are M-bM-^@M-^\anyM-bM-^@M-^], M-bM-^@M-^\inetM-bM-^@M-^] (use IPv4 only), or M-bM-^@M-^\inet6M-bM-^@M-^] (use IPv6
113 only). The default is M-bM-^@M-^\anyM-bM-^@M-^].
114
115 BatchMode
116 If set to M-bM-^@M-^\yesM-bM-^@M-^], passphrase/password querying will be disabled.
117 This option is useful in scripts and other batch jobs where no
118 user is present to supply the password. The argument must be
119 M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
120
121 BindAddress
122 Use the specified address on the local machine as the source
123 address of the connection. Only useful on systems with more than
124 one address. Note that this option does not work if
125 UsePrivilegedPort is set to M-bM-^@M-^\yesM-bM-^@M-^].
126
127 CanonicalDomains
128 When CanonicalizeHostname is enabled, this option specifies the
129 list of domain suffixes in which to search for the specified
130 destination host.
131
132 CanonicalizeFallbackLocal
133 Specifies whether to fail with an error when hostname
134 canonicalization fails. The default, M-bM-^@M-^\yesM-bM-^@M-^], will attempt to look
135 up the unqualified hostname using the system resolver's search
136 rules. A value of M-bM-^@M-^\noM-bM-^@M-^] will cause ssh(1) to fail instantly if
137 CanonicalizeHostname is enabled and the target hostname cannot be
138 found in any of the domains specified by CanonicalDomains.
139
140 CanonicalizeHostname
141 Controls whether explicit hostname canonicalization is performed.
142 The default, M-bM-^@M-^\noM-bM-^@M-^], is not to perform any name rewriting and let
143 the system resolver handle all hostname lookups. If set to M-bM-^@M-^\yesM-bM-^@M-^]
144 then, for connections that do not use a ProxyCommand, ssh(1) will
145 attempt to canonicalize the hostname specified on the command
146 line using the CanonicalDomains suffixes and
147 CanonicalizePermittedCNAMEs rules. If CanonicalizeHostname is
148 set to M-bM-^@M-^\alwaysM-bM-^@M-^], then canonicalization is applied to proxied
149 connections too.
150
151 If this option is enabled, then the configuration files are
152 processed again using the new target name to pick up any new
153 configuration in matching Host and Match stanzas.
154
155 CanonicalizeMaxDots
156 Specifies the maximum number of dot characters in a hostname
157 before canonicalization is disabled. The default, M-bM-^@M-^\1M-bM-^@M-^], allows a
158 single dot (i.e. hostname.subdomain).
159
160 CanonicalizePermittedCNAMEs
161 Specifies rules to determine whether CNAMEs should be followed
162 when canonicalizing hostnames. The rules consist of one or more
163 arguments of source_domain_list:target_domain_list, where
164 source_domain_list is a pattern-list of domains that may follow
165 CNAMEs in canonicalization, and target_domain_list is a pattern-
166 list of domains that they may resolve to.
167
168 For example, M-bM-^@M-^\*.a.example.com:*.b.example.com,*.c.example.comM-bM-^@M-^]
169 will allow hostnames matching M-bM-^@M-^\*.a.example.comM-bM-^@M-^] to be
170 canonicalized to names in the M-bM-^@M-^\*.b.example.comM-bM-^@M-^] or
171 M-bM-^@M-^\*.c.example.comM-bM-^@M-^] domains.
172
173 CertificateFile
174 Specifies a file from which the user's certificate is read. A
175 corresponding private key must be provided separately in order to
176 use this certificate either from an IdentityFile directive or -i
177 flag to ssh(1), via ssh-agent(1), or via a PKCS11Provider.
178
179 The file name may use the tilde syntax to refer to a user's home
180 directory or one of the following escape characters: M-bM-^@M-^X%dM-bM-^@M-^Y (local
181 user's home directory), M-bM-^@M-^X%uM-bM-^@M-^Y (local user name), M-bM-^@M-^X%lM-bM-^@M-^Y (local host
182 name), M-bM-^@M-^X%hM-bM-^@M-^Y (remote host name) or M-bM-^@M-^X%rM-bM-^@M-^Y (remote user name).
183
184 It is possible to have multiple certificate files specified in
185 configuration files; these certificates will be tried in
186 sequence. Multiple CertificateFile directives will add to the
187 list of certificates used for authentication.
188
189 ChallengeResponseAuthentication
190 Specifies whether to use challenge-response authentication. The
191 argument to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is
192 M-bM-^@M-^\yesM-bM-^@M-^].
193
194 CheckHostIP
195 If this flag is set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) will additionally check the
196 host IP address in the known_hosts file. This allows ssh to
197 detect if a host key changed due to DNS spoofing and will add
198 addresses of destination hosts to ~/.ssh/known_hosts in the
199 process, regardless of the setting of StrictHostKeyChecking. If
200 the option is set to M-bM-^@M-^\noM-bM-^@M-^], the check will not be executed. The
201 default is M-bM-^@M-^\yesM-bM-^@M-^].
202
203 Cipher Specifies the cipher to use for encrypting the session in
204 protocol version 1. Currently, M-bM-^@M-^\blowfishM-bM-^@M-^], M-bM-^@M-^\3desM-bM-^@M-^], and M-bM-^@M-^\desM-bM-^@M-^] are
205 supported. des is only supported in the ssh(1) client for
206 interoperability with legacy protocol 1 implementations that do
207 not support the 3des cipher. Its use is strongly discouraged due
208 to cryptographic weaknesses. The default is M-bM-^@M-^\3desM-bM-^@M-^].
209
210 Ciphers
211 Specifies the ciphers allowed for protocol version 2 in order of
212 preference. Multiple ciphers must be comma-separated. If the
213 specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the specified
214 ciphers will be appended to the default set instead of replacing
215 them.
216
217 The supported ciphers are:
218
219 3des-cbc
220 aes128-cbc
221 aes192-cbc
222 aes256-cbc
223 aes128-ctr
224 aes192-ctr
225 aes256-ctr
226 aes128-gcm@openssh.com
227 aes256-gcm@openssh.com
228 arcfour
229 arcfour128
230 arcfour256
231 blowfish-cbc
232 cast128-cbc
233 chacha20-poly1305@openssh.com
234
235 The default is:
236
237 chacha20-poly1305@openssh.com,
238 aes128-ctr,aes192-ctr,aes256-ctr,
239 aes128-gcm@openssh.com,aes256-gcm@openssh.com,
240 aes128-cbc,aes192-cbc,aes256-cbc,3des-cbc
241
242 The list of available ciphers may also be obtained using the -Q
243 option of ssh(1) with an argument of M-bM-^@M-^\cipherM-bM-^@M-^].
244
245 ClearAllForwardings
246 Specifies that all local, remote, and dynamic port forwardings
247 specified in the configuration files or on the command line be
248 cleared. This option is primarily useful when used from the
249 ssh(1) command line to clear port forwardings set in
250 configuration files, and is automatically set by scp(1) and
251 sftp(1). The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is
252 M-bM-^@M-^\noM-bM-^@M-^].
253
254 Compression
255 Specifies whether to use compression. The argument must be M-bM-^@M-^\yesM-bM-^@M-^]
256 or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
257
258 CompressionLevel
259 Specifies the compression level to use if compression is enabled.
260 The argument must be an integer from 1 (fast) to 9 (slow, best).
261 The default level is 6, which is good for most applications. The
262 meaning of the values is the same as in gzip(1). Note that this
263 option applies to protocol version 1 only.
264
265 ConnectionAttempts
266 Specifies the number of tries (one per second) to make before
267 exiting. The argument must be an integer. This may be useful in
268 scripts if the connection sometimes fails. The default is 1.
269
270 ConnectTimeout
271 Specifies the timeout (in seconds) used when connecting to the
272 SSH server, instead of using the default system TCP timeout.
273 This value is used only when the target is down or really
274 unreachable, not when it refuses the connection.
275
276 ControlMaster
277 Enables the sharing of multiple sessions over a single network
278 connection. When set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) will listen for
279 connections on a control socket specified using the ControlPath
280 argument. Additional sessions can connect to this socket using
281 the same ControlPath with ControlMaster set to M-bM-^@M-^\noM-bM-^@M-^] (the
282 default). These sessions will try to reuse the master instance's
283 network connection rather than initiating new ones, but will fall
284 back to connecting normally if the control socket does not exist,
285 or is not listening.
286
287 Setting this to M-bM-^@M-^\askM-bM-^@M-^] will cause ssh to listen for control
288 connections, but require confirmation using ssh-askpass(1). If
289 the ControlPath cannot be opened, ssh will continue without
290 connecting to a master instance.
291
292 X11 and ssh-agent(1) forwarding is supported over these
293 multiplexed connections, however the display and agent forwarded
294 will be the one belonging to the master connection i.e. it is not
295 possible to forward multiple displays or agents.
296
297 Two additional options allow for opportunistic multiplexing: try
298 to use a master connection but fall back to creating a new one if
299 one does not already exist. These options are: M-bM-^@M-^\autoM-bM-^@M-^] and
300 M-bM-^@M-^\autoaskM-bM-^@M-^]. The latter requires confirmation like the M-bM-^@M-^\askM-bM-^@M-^]
301 option.
302
303 ControlPath
304 Specify the path to the control socket used for connection
305 sharing as described in the ControlMaster section above or the
306 string M-bM-^@M-^\noneM-bM-^@M-^] to disable connection sharing. In the path, M-bM-^@M-^X%LM-bM-^@M-^Y
307 will be substituted by the first component of the local host
308 name, M-bM-^@M-^X%lM-bM-^@M-^Y will be substituted by the local host name (including
309 any domain name), M-bM-^@M-^X%hM-bM-^@M-^Y will be substituted by the target host
310 name, M-bM-^@M-^X%nM-bM-^@M-^Y will be substituted by the original target host name
311 specified on the command line, M-bM-^@M-^X%pM-bM-^@M-^Y the destination port, M-bM-^@M-^X%rM-bM-^@M-^Y by
312 the remote login username, M-bM-^@M-^X%uM-bM-^@M-^Y by the username and M-bM-^@M-^X%iM-bM-^@M-^Y by the
313 numeric user ID (uid) of the user running ssh(1), and M-bM-^@M-^X%CM-bM-^@M-^Y by a
314 hash of the concatenation: %l%h%p%r. It is recommended that any
315 ControlPath used for opportunistic connection sharing include at
316 least %h, %p, and %r (or alternatively %C) and be placed in a
317 directory that is not writable by other users. This ensures that
318 shared connections are uniquely identified.
319
320 ControlPersist
321 When used in conjunction with ControlMaster, specifies that the
322 master connection should remain open in the background (waiting
323 for future client connections) after the initial client
324 connection has been closed. If set to M-bM-^@M-^\noM-bM-^@M-^], then the master
325 connection will not be placed into the background, and will close
326 as soon as the initial client connection is closed. If set to
327 M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\0M-bM-^@M-^], then the master connection will remain in the
328 background indefinitely (until killed or closed via a mechanism
329 such as the ssh(1) M-bM-^@M-^\-O exitM-bM-^@M-^] option). If set to a time in
330 seconds, or a time in any of the formats documented in
331 sshd_config(5), then the backgrounded master connection will
332 automatically terminate after it has remained idle (with no
333 client connections) for the specified time.
334
335 DynamicForward
336 Specifies that a TCP port on the local machine be forwarded over
337 the secure channel, and the application protocol is then used to
338 determine where to connect to from the remote machine.
339
340 The argument must be [bind_address:]port. IPv6 addresses can be
341 specified by enclosing addresses in square brackets. By default,
342 the local port is bound in accordance with the GatewayPorts
343 setting. However, an explicit bind_address may be used to bind
344 the connection to a specific address. The bind_address of
345 M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the listening port be bound for local
346 use only, while an empty address or M-bM-^@M-^X*M-bM-^@M-^Y indicates that the port
347 should be available from all interfaces.
348
349 Currently the SOCKS4 and SOCKS5 protocols are supported, and
350 ssh(1) will act as a SOCKS server. Multiple forwardings may be
351 specified, and additional forwardings can be given on the command
352 line. Only the superuser can forward privileged ports.
353
354 EnableSSHKeysign
355 Setting this option to M-bM-^@M-^\yesM-bM-^@M-^] in the global client configuration
356 file /etc/ssh/ssh_config enables the use of the helper program
357 ssh-keysign(8) during HostbasedAuthentication. The argument must
358 be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. This option should be
359 placed in the non-hostspecific section. See ssh-keysign(8) for
360 more information.
361
362 EscapeChar
363 Sets the escape character (default: M-bM-^@M-^X~M-bM-^@M-^Y). The escape character
364 can also be set on the command line. The argument should be a
365 single character, M-bM-^@M-^X^M-bM-^@M-^Y followed by a letter, or M-bM-^@M-^\noneM-bM-^@M-^] to disable
366 the escape character entirely (making the connection transparent
367 for binary data).
368
369 ExitOnForwardFailure
370 Specifies whether ssh(1) should terminate the connection if it
371 cannot set up all requested dynamic, tunnel, local, and remote
372 port forwardings, (e.g. if either end is unable to bind and
373 listen on a specified port). Note that ExitOnForwardFailure does
374 not apply to connections made over port forwardings and will not,
375 for example, cause ssh(1) to exit if TCP connections to the
376 ultimate forwarding destination fail. The argument must be M-bM-^@M-^\yesM-bM-^@M-^]
377 or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
378
379 FingerprintHash
380 Specifies the hash algorithm used when displaying key
381 fingerprints. Valid options are: M-bM-^@M-^\md5M-bM-^@M-^] and M-bM-^@M-^\sha256M-bM-^@M-^]. The
382 default is M-bM-^@M-^\sha256M-bM-^@M-^].
383
384 ForwardAgent
385 Specifies whether the connection to the authentication agent (if
386 any) will be forwarded to the remote machine. The argument must
387 be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
388
389 Agent forwarding should be enabled with caution. Users with the
390 ability to bypass file permissions on the remote host (for the
391 agent's Unix-domain socket) can access the local agent through
392 the forwarded connection. An attacker cannot obtain key material
393 from the agent, however they can perform operations on the keys
394 that enable them to authenticate using the identities loaded into
395 the agent.
396
397 ForwardX11
398 Specifies whether X11 connections will be automatically
399 redirected over the secure channel and DISPLAY set. The argument
400 must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
401
402 X11 forwarding should be enabled with caution. Users with the
403 ability to bypass file permissions on the remote host (for the
404 user's X11 authorization database) can access the local X11
405 display through the forwarded connection. An attacker may then
406 be able to perform activities such as keystroke monitoring if the
407 ForwardX11Trusted option is also enabled.
408
409 ForwardX11Timeout
410 Specify a timeout for untrusted X11 forwarding using the format
411 described in the TIME FORMATS section of sshd_config(5). X11
412 connections received by ssh(1) after this time will be refused.
413 The default is to disable untrusted X11 forwarding after twenty
414 minutes has elapsed.
415
416 ForwardX11Trusted
417 If this option is set to M-bM-^@M-^\yesM-bM-^@M-^], remote X11 clients will have full
418 access to the original X11 display.
419
420 If this option is set to M-bM-^@M-^\noM-bM-^@M-^], remote X11 clients will be
421 considered untrusted and prevented from stealing or tampering
422 with data belonging to trusted X11 clients. Furthermore, the
423 xauth(1) token used for the session will be set to expire after
424 20 minutes. Remote clients will be refused access after this
425 time.
426
427 The default is M-bM-^@M-^\noM-bM-^@M-^].
428
429 See the X11 SECURITY extension specification for full details on
430 the restrictions imposed on untrusted clients.
431
432 GatewayPorts
433 Specifies whether remote hosts are allowed to connect to local
434 forwarded ports. By default, ssh(1) binds local port forwardings
435 to the loopback address. This prevents other remote hosts from
436 connecting to forwarded ports. GatewayPorts can be used to
437 specify that ssh should bind local port forwardings to the
438 wildcard address, thus allowing remote hosts to connect to
439 forwarded ports. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The
440 default is M-bM-^@M-^\noM-bM-^@M-^].
441
442 GlobalKnownHostsFile
443 Specifies one or more files to use for the global host key
444 database, separated by whitespace. The default is
445 /etc/ssh/ssh_known_hosts, /etc/ssh/ssh_known_hosts2.
446
447 GSSAPIAuthentication
448 Specifies whether user authentication based on GSSAPI is allowed.
449 The default is M-bM-^@M-^\noM-bM-^@M-^].
450
451 GSSAPIDelegateCredentials
452 Forward (delegate) credentials to the server. The default is
453 M-bM-^@M-^\noM-bM-^@M-^].
454
455 HashKnownHosts
456 Indicates that ssh(1) should hash host names and addresses when
457 they are added to ~/.ssh/known_hosts. These hashed names may be
458 used normally by ssh(1) and sshd(8), but they do not reveal
459 identifying information should the file's contents be disclosed.
460 The default is M-bM-^@M-^\noM-bM-^@M-^]. Note that existing names and addresses in
461 known hosts files will not be converted automatically, but may be
462 manually hashed using ssh-keygen(1).
463
464 HostbasedAuthentication
465 Specifies whether to try rhosts based authentication with public
466 key authentication. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The
467 default is M-bM-^@M-^\noM-bM-^@M-^].
468
469 HostbasedKeyTypes
470 Specifies the key types that will be used for hostbased
471 authentication as a comma-separated pattern list. Alternately if
472 the specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the
473 specified key types will be appended to the default set instead
474 of replacing them. The default for this option is:
475
476 ecdsa-sha2-nistp256-cert-v01@openssh.com,
477 ecdsa-sha2-nistp384-cert-v01@openssh.com,
478 ecdsa-sha2-nistp521-cert-v01@openssh.com,
479 ssh-ed25519-cert-v01@openssh.com,
480 ssh-rsa-cert-v01@openssh.com,
481 ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
482 ssh-ed25519,ssh-rsa
483
484 The -Q option of ssh(1) may be used to list supported key types.
485
486 HostKeyAlgorithms
487 Specifies the host key algorithms that the client wants to use in
488 order of preference. Alternately if the specified value begins
489 with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the specified key types will be
490 appended to the default set instead of replacing them. The
491 default for this option is:
492
493 ecdsa-sha2-nistp256-cert-v01@openssh.com,
494 ecdsa-sha2-nistp384-cert-v01@openssh.com,
495 ecdsa-sha2-nistp521-cert-v01@openssh.com,
496 ssh-ed25519-cert-v01@openssh.com,
497 ssh-rsa-cert-v01@openssh.com,
498 ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
499 ssh-ed25519,ssh-rsa
500
501 If hostkeys are known for the destination host then this default
502 is modified to prefer their algorithms.
503
504 The list of available key types may also be obtained using the -Q
505 option of ssh(1) with an argument of M-bM-^@M-^\keyM-bM-^@M-^].
506
507 HostKeyAlias
508 Specifies an alias that should be used instead of the real host
509 name when looking up or saving the host key in the host key
510 database files. This option is useful for tunneling SSH
511 connections or for multiple servers running on a single host.
512
513 HostName
514 Specifies the real host name to log into. This can be used to
515 specify nicknames or abbreviations for hosts. If the hostname
516 contains the character sequence M-bM-^@M-^X%hM-bM-^@M-^Y, then this will be replaced
517 with the host name specified on the command line (this is useful
518 for manipulating unqualified names). The character sequence M-bM-^@M-^X%%M-bM-^@M-^Y
519 will be replaced by a single M-bM-^@M-^X%M-bM-^@M-^Y character, which may be used
520 when specifying IPv6 link-local addresses.
521
522 The default is the name given on the command line. Numeric IP
523 addresses are also permitted (both on the command line and in
524 HostName specifications).
525
526 IdentitiesOnly
527 Specifies that ssh(1) should only use the authentication identity
528 and certificate files explicitly configured in the ssh_config
529 files or passed on the ssh(1) command-line, even if ssh-agent(1)
530 or a PKCS11Provider offers more identities. The argument to this
531 keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. This option is intended for
532 situations where ssh-agent offers many different identities. The
533 default is M-bM-^@M-^\noM-bM-^@M-^].
534
535 IdentityFile
536 Specifies a file from which the user's DSA, ECDSA, Ed25519 or RSA
537 authentication identity is read. The default is ~/.ssh/identity
538 for protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa,
539 ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2.
540 Additionally, any identities represented by the authentication
541 agent will be used for authentication unless IdentitiesOnly is
542 set. If no certificates have been explicitly specified by
543 CertificateFile, ssh(1) will try to load certificate information
544 from the filename obtained by appending -cert.pub to the path of
545 a specified IdentityFile.
546
547 The file name may use the tilde syntax to refer to a user's home
548 directory or one of the following escape characters: M-bM-^@M-^X%dM-bM-^@M-^Y (local
549 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
550 name), M-bM-^@M-^X%hM-bM-^@M-^Y (remote host name) or M-bM-^@M-^X%rM-bM-^@M-^Y (remote user name).
551
552 It is possible to have multiple identity files specified in
553 configuration files; all these identities will be tried in
554 sequence. Multiple IdentityFile directives will add to the list
555 of identities tried (this behaviour differs from that of other
556 configuration directives).
557
558 IdentityFile may be used in conjunction with IdentitiesOnly to
559 select which identities in an agent are offered during
560 authentication. IdentityFile may also be used in conjunction
561 with CertificateFile in order to provide any certificate also
562 needed for authentication with the identity.
563
564 IgnoreUnknown
565 Specifies a pattern-list of unknown options to be ignored if they
566 are encountered in configuration parsing. This may be used to
567 suppress errors if ssh_config contains options that are
568 unrecognised by ssh(1). It is recommended that IgnoreUnknown be
569 listed early in the configuration file as it will not be applied
570 to unknown options that appear before it.
571
572 IPQoS Specifies the IPv4 type-of-service or DSCP class for connections.
573 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-^],
574 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-^],
575 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-^],
576 M-bM-^@M-^\lowdelayM-bM-^@M-^], M-bM-^@M-^\throughputM-bM-^@M-^], M-bM-^@M-^\reliabilityM-bM-^@M-^], or a numeric value.
577 This option may take one or two arguments, separated by
578 whitespace. If one argument is specified, it is used as the
579 packet class unconditionally. If two values are specified, the
580 first is automatically selected for interactive sessions and the
581 second for non-interactive sessions. The default is M-bM-^@M-^\lowdelayM-bM-^@M-^]
582 for interactive sessions and M-bM-^@M-^\throughputM-bM-^@M-^] for non-interactive
583 sessions.
584
585 KbdInteractiveAuthentication
586 Specifies whether to use keyboard-interactive authentication.
587 The argument to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default
588 is M-bM-^@M-^\yesM-bM-^@M-^].
589
590 KbdInteractiveDevices
591 Specifies the list of methods to use in keyboard-interactive
592 authentication. Multiple method names must be comma-separated.
593 The default is to use the server specified list. The methods
594 available vary depending on what the server supports. For an
595 OpenSSH server, it may be zero or more of: M-bM-^@M-^\bsdauthM-bM-^@M-^], M-bM-^@M-^\pamM-bM-^@M-^], and
596 M-bM-^@M-^\skeyM-bM-^@M-^].
597
598 KexAlgorithms
599 Specifies the available KEX (Key Exchange) algorithms. Multiple
600 algorithms must be comma-separated. Alternately if the specified
601 value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the specified methods
602 will be appended to the default set instead of replacing them.
603 The default is:
604
605 curve25519-sha256@libssh.org,
606 ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,
607 diffie-hellman-group-exchange-sha256,
608 diffie-hellman-group-exchange-sha1,
609 diffie-hellman-group14-sha1
610
611 The list of available key exchange algorithms may also be
612 obtained using the -Q option of ssh(1) with an argument of M-bM-^@M-^\kexM-bM-^@M-^].
613
614 LocalCommand
615 Specifies a command to execute on the local machine after
616 successfully connecting to the server. The command string
617 extends to the end of the line, and is executed with the user's
618 shell. The following escape character substitutions will be
619 performed: M-bM-^@M-^X%dM-bM-^@M-^Y (local user's home directory), M-bM-^@M-^X%hM-bM-^@M-^Y (remote host
620 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
621 command line), M-bM-^@M-^X%pM-bM-^@M-^Y (remote port), M-bM-^@M-^X%rM-bM-^@M-^Y (remote user name) or
622 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:
623 %l%h%p%r.
624
625 The command is run synchronously and does not have access to the
626 session of the ssh(1) that spawned it. It should not be used for
627 interactive commands.
628
629 This directive is ignored unless PermitLocalCommand has been
630 enabled.
631
632 LocalForward
633 Specifies that a TCP port on the local machine be forwarded over
634 the secure channel to the specified host and port from the remote
635 machine. The first argument must be [bind_address:]port and the
636 second argument must be host:hostport. IPv6 addresses can be
637 specified by enclosing addresses in square brackets. Multiple
638 forwardings may be specified, and additional forwardings can be
639 given on the command line. Only the superuser can forward
640 privileged ports. By default, the local port is bound in
641 accordance with the GatewayPorts setting. However, an explicit
642 bind_address may be used to bind the connection to a specific
643 address. The bind_address of M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the
644 listening port be bound for local use only, while an empty
645 address or M-bM-^@M-^X*M-bM-^@M-^Y indicates that the port should be available from
646 all interfaces.
647
648 LogLevel
649 Gives the verbosity level that is used when logging messages from
650 ssh(1). The possible values are: QUIET, FATAL, ERROR, INFO,
651 VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
652 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
653 higher levels of verbose output.
654
655 MACs Specifies the MAC (message authentication code) algorithms in
656 order of preference. The MAC algorithm is used for data
657 integrity protection. Multiple algorithms must be comma-
658 separated. If the specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character,
659 then the specified algorithms will be appended to the default set
660 instead of replacing them.
661
662 The algorithms that contain M-bM-^@M-^\-etmM-bM-^@M-^] calculate the MAC after
663 encryption (encrypt-then-mac). These are considered safer and
664 their use recommended.
665
666 The default is:
667
668 umac-64-etm@openssh.com,umac-128-etm@openssh.com,
669 hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,
670 hmac-sha1-etm@openssh.com,
671 umac-64@openssh.com,umac-128@openssh.com,
672 hmac-sha2-256,hmac-sha2-512,hmac-sha1
673
674 The list of available MAC algorithms may also be obtained using
675 the -Q option of ssh(1) with an argument of M-bM-^@M-^\macM-bM-^@M-^].
676
677 NoHostAuthenticationForLocalhost
678 This option can be used if the home directory is shared across
679 machines. In this case localhost will refer to a different
680 machine on each of the machines and the user will get many
681 warnings about changed host keys. However, this option disables
682 host authentication for localhost. The argument to this keyword
683 must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is to check the host key for
684 localhost.
685
686 NumberOfPasswordPrompts
687 Specifies the number of password prompts before giving up. The
688 argument to this keyword must be an integer. The default is 3.
689
690 PasswordAuthentication
691 Specifies whether to use password authentication. The argument
692 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-^].
693
694 PermitLocalCommand
695 Allow local command execution via the LocalCommand option or
696 using the !command escape sequence in ssh(1). The argument must
697 be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
698
699 PKCS11Provider
700 Specifies which PKCS#11 provider to use. The argument to this
701 keyword is the PKCS#11 shared library ssh(1) should use to
702 communicate with a PKCS#11 token providing the user's private RSA
703 key.
704
705 Port Specifies the port number to connect on the remote host. The
706 default is 22.
707
708 PreferredAuthentications
709 Specifies the order in which the client should try authentication
710 methods. This allows a client to prefer one method (e.g.
711 keyboard-interactive) over another method (e.g. password). The
712 default is:
713
714 gssapi-with-mic,hostbased,publickey,
715 keyboard-interactive,password
716
717 Protocol
718 Specifies the protocol versions ssh(1) should support in order of
719 preference. The possible values are M-bM-^@M-^X1M-bM-^@M-^Y and M-bM-^@M-^X2M-bM-^@M-^Y. Multiple
720 versions must be comma-separated. When this option is set to
721 M-bM-^@M-^\2,1M-bM-^@M-^] ssh will try version 2 and fall back to version 1 if
722 version 2 is not available. The default is M-bM-^@M-^X2M-bM-^@M-^Y. Protocol 1
723 suffers from a number of cryptographic weaknesses and should not
724 be used. It is only offered to support legacy devices.
725
726 ProxyCommand
727 Specifies the command to use to connect to the server. The
728 command string extends to the end of the line, and is executed
729 using the user's shell M-bM-^@M-^XexecM-bM-^@M-^Y directive to avoid a lingering
730 shell process.
731
732 In the command string, any occurrence of M-bM-^@M-^X%hM-bM-^@M-^Y will be substituted
733 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
734 remote user name. The command can be basically anything, and
735 should read from its standard input and write to its standard
736 output. It should eventually connect an sshd(8) server running
737 on some machine, or execute sshd -i somewhere. Host key
738 management will be done using the HostName of the host being
739 connected (defaulting to the name typed by the user). Setting
740 the command to M-bM-^@M-^\noneM-bM-^@M-^] disables this option entirely. Note that
741 CheckHostIP is not available for connects with a proxy command.
742
743 This directive is useful in conjunction with nc(1) and its proxy
744 support. For example, the following directive would connect via
745 an HTTP proxy at 192.0.2.0:
746
747 ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
748
749 ProxyUseFdpass
750 Specifies that ProxyCommand will pass a connected file descriptor
751 back to ssh(1) instead of continuing to execute and pass data.
752 The default is M-bM-^@M-^\noM-bM-^@M-^].
753
754 PubkeyAcceptedKeyTypes
755 Specifies the key types that will be used for public key
756 authentication as a comma-separated pattern list. Alternately if
757 the specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the key
758 types after it will be appended to the default instead of
759 replacing it. The default for this option is:
760
761 ecdsa-sha2-nistp256-cert-v01@openssh.com,
762 ecdsa-sha2-nistp384-cert-v01@openssh.com,
763 ecdsa-sha2-nistp521-cert-v01@openssh.com,
764 ssh-ed25519-cert-v01@openssh.com,
765 ssh-rsa-cert-v01@openssh.com,
766 ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
767 ssh-ed25519,ssh-rsa
768
769 The -Q option of ssh(1) may be used to list supported key types.
770
771 PubkeyAuthentication
772 Specifies whether to try public key authentication. The argument
773 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-^].
774
775 RekeyLimit
776 Specifies the maximum amount of data that may be transmitted
777 before the session key is renegotiated, optionally followed a
778 maximum amount of time that may pass before the session key is
779 renegotiated. The first argument is specified in bytes and may
780 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,
781 Megabytes, or Gigabytes, respectively. The default is between
782 M-bM-^@M-^X1GM-bM-^@M-^Y and M-bM-^@M-^X4GM-bM-^@M-^Y, depending on the cipher. The optional second
783 value is specified in seconds and may use any of the units
784 documented in the TIME FORMATS section of sshd_config(5). The
785 default value for RekeyLimit is M-bM-^@M-^\default noneM-bM-^@M-^], which means that
786 rekeying is performed after the cipher's default amount of data
787 has been sent or received and no time based rekeying is done.
788
789 RemoteForward
790 Specifies that a TCP port on the remote machine be forwarded over
791 the secure channel to the specified host and port from the local
792 machine. The first argument must be [bind_address:]port and the
793 second argument must be host:hostport. IPv6 addresses can be
794 specified by enclosing addresses in square brackets. Multiple
795 forwardings may be specified, and additional forwardings can be
796 given on the command line. Privileged ports can be forwarded
797 only when logging in as root on the remote machine.
798
799 If the port argument is M-bM-^@M-^X0M-bM-^@M-^Y, the listen port will be dynamically
800 allocated on the server and reported to the client at run time.
801
802 If the bind_address is not specified, the default is to only bind
803 to loopback addresses. If the bind_address is M-bM-^@M-^X*M-bM-^@M-^Y or an empty
804 string, then the forwarding is requested to listen on all
805 interfaces. Specifying a remote bind_address will only succeed
806 if the server's GatewayPorts option is enabled (see
807 sshd_config(5)).
808
809 RequestTTY
810 Specifies whether to request a pseudo-tty for the session. The
811 argument may be one of: M-bM-^@M-^\noM-bM-^@M-^] (never request a TTY), M-bM-^@M-^\yesM-bM-^@M-^] (always
812 request a TTY when standard input is a TTY), M-bM-^@M-^\forceM-bM-^@M-^] (always
813 request a TTY) or M-bM-^@M-^\autoM-bM-^@M-^] (request a TTY when opening a login
814 session). This option mirrors the -t and -T flags for ssh(1).
815
816 RevokedHostKeys
817 Specifies revoked host public keys. Keys listed in this file
818 will be refused for host authentication. Note that if this file
819 does not exist or is not readable, then host authentication will
820 be refused for all hosts. Keys may be specified as a text file,
821 listing one public key per line, or as an OpenSSH Key Revocation
822 List (KRL) as generated by ssh-keygen(1). For more information
823 on KRLs, see the KEY REVOCATION LISTS section in ssh-keygen(1).
824
825 RhostsRSAAuthentication
826 Specifies whether to try rhosts based authentication with RSA
827 host authentication. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The
828 default is M-bM-^@M-^\noM-bM-^@M-^]. This option applies to protocol version 1 only
829 and requires ssh(1) to be setuid root.
830
831 RSAAuthentication
832 Specifies whether to try RSA authentication. The argument to
833 this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. RSA authentication will only
834 be attempted if the identity file exists, or an authentication
835 agent is running. The default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that this option
836 applies to protocol version 1 only.
837
838 SendEnv
839 Specifies what variables from the local environ(7) should be sent
840 to the server. The server must also support it, and the server
841 must be configured to accept these environment variables. Note
842 that the TERM environment variable is always sent whenever a
843 pseudo-terminal is requested as it is required by the protocol.
844 Refer to AcceptEnv in sshd_config(5) for how to configure the
845 server. Variables are specified by name, which may contain
846 wildcard characters. Multiple environment variables may be
847 separated by whitespace or spread across multiple SendEnv
848 directives. The default is not to send any environment
849 variables.
850
851 See PATTERNS for more information on patterns.
852
853 ServerAliveCountMax
854 Sets the number of server alive messages (see below) which may be
855 sent without ssh(1) receiving any messages back from the server.
856 If this threshold is reached while server alive messages are
857 being sent, ssh will disconnect from the server, terminating the
858 session. It is important to note that the use of server alive
859 messages is very different from TCPKeepAlive (below). The server
860 alive messages are sent through the encrypted channel and
861 therefore will not be spoofable. The TCP keepalive option
862 enabled by TCPKeepAlive is spoofable. The server alive mechanism
863 is valuable when the client or server depend on knowing when a
864 connection has become inactive.
865
866 The default value is 3. If, for example, ServerAliveInterval
867 (see below) is set to 15 and ServerAliveCountMax is left at the
868 default, if the server becomes unresponsive, ssh will disconnect
869 after approximately 45 seconds.
870
871 ServerAliveInterval
872 Sets a timeout interval in seconds after which if no data has
873 been received from the server, ssh(1) will send a message through
874 the encrypted channel to request a response from the server. The
875 default is 0, indicating that these messages will not be sent to
876 the server.
877
878 StreamLocalBindMask
879 Sets the octal file creation mode mask (umask) used when creating
880 a Unix-domain socket file for local or remote port forwarding.
881 This option is only used for port forwarding to a Unix-domain
882 socket file.
883
884 The default value is 0177, which creates a Unix-domain socket
885 file that is readable and writable only by the owner. Note that
886 not all operating systems honor the file mode on Unix-domain
887 socket files.
888
889 StreamLocalBindUnlink
890 Specifies whether to remove an existing Unix-domain socket file
891 for local or remote port forwarding before creating a new one.
892 If the socket file already exists and StreamLocalBindUnlink is
893 not enabled, ssh will be unable to forward the port to the Unix-
894 domain socket file. This option is only used for port forwarding
895 to a Unix-domain socket file.
896
897 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-^].
898
899 StrictHostKeyChecking
900 If this flag is set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) will never automatically add
901 host keys to the ~/.ssh/known_hosts file, and refuses to connect
902 to hosts whose host key has changed. This provides maximum
903 protection against trojan horse attacks, though it can be
904 annoying when the /etc/ssh/ssh_known_hosts file is poorly
905 maintained or when connections to new hosts are frequently made.
906 This option forces the user to manually add all new hosts. If
907 this flag is set to M-bM-^@M-^\noM-bM-^@M-^], ssh will automatically add new host
908 keys to the user known hosts files. If this flag is set to
909 M-bM-^@M-^\askM-bM-^@M-^], new host keys will be added to the user known host files
910 only after the user has confirmed that is what they really want
911 to do, and ssh will refuse to connect to hosts whose host key has
912 changed. The host keys of known hosts will be verified
913 automatically in all cases. The argument must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\noM-bM-^@M-^], or
914 M-bM-^@M-^\askM-bM-^@M-^]. The default is M-bM-^@M-^\askM-bM-^@M-^].
915
916 TCPKeepAlive
917 Specifies whether the system should send TCP keepalive messages
918 to the other side. If they are sent, death of the connection or
919 crash of one of the machines will be properly noticed. However,
920 this means that connections will die if the route is down
921 temporarily, and some people find it annoying.
922
923 The default is M-bM-^@M-^\yesM-bM-^@M-^] (to send TCP keepalive messages), and the
924 client will notice if the network goes down or the remote host
925 dies. This is important in scripts, and many users want it too.
926
927 To disable TCP keepalive messages, the value should be set to
928 M-bM-^@M-^\noM-bM-^@M-^].
929
930 Tunnel Request tun(4) device forwarding between the client and the
931 server. The argument must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\point-to-pointM-bM-^@M-^] (layer 3),
932 M-bM-^@M-^\ethernetM-bM-^@M-^] (layer 2), or M-bM-^@M-^\noM-bM-^@M-^]. Specifying M-bM-^@M-^\yesM-bM-^@M-^] requests the
933 default tunnel mode, which is M-bM-^@M-^\point-to-pointM-bM-^@M-^]. The default is
934 M-bM-^@M-^\noM-bM-^@M-^].
935
936 TunnelDevice
937 Specifies the tun(4) devices to open on the client (local_tun)
938 and the server (remote_tun).
939
940 The argument must be local_tun[:remote_tun]. The devices may be
941 specified by numerical ID or the keyword M-bM-^@M-^\anyM-bM-^@M-^], which uses the
942 next available tunnel device. If remote_tun is not specified, it
943 defaults to M-bM-^@M-^\anyM-bM-^@M-^]. The default is M-bM-^@M-^\any:anyM-bM-^@M-^].
944
945 UpdateHostKeys
946 Specifies whether ssh(1) should accept notifications of
947 additional hostkeys from the server sent after authentication has
948 completed and add them to UserKnownHostsFile. The argument must
949 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
950 allows learning alternate hostkeys for a server and supports
951 graceful key rotation by allowing a server to send replacement
952 public keys before old ones are removed. Additional hostkeys are
953 only accepted if the key used to authenticate the host was
954 already trusted or explicitly accepted by the user. If
955 UpdateHostKeys is set to M-bM-^@M-^\askM-bM-^@M-^], then the user is asked to confirm
956 the modifications to the known_hosts file. Confirmation is
957 currently incompatible with ControlPersist, and will be disabled
958 if it is enabled.
959
960 Presently, only sshd(8) from OpenSSH 6.8 and greater support the
961 M-bM-^@M-^\hostkeys@openssh.comM-bM-^@M-^] protocol extension used to inform the
962 client of all the server's hostkeys.
963
964 UsePrivilegedPort
965 Specifies whether to use a privileged port for outgoing
966 connections. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is
967 M-bM-^@M-^\noM-bM-^@M-^]. If set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) must be setuid root. Note that
968 this option must be set to M-bM-^@M-^\yesM-bM-^@M-^] for RhostsRSAAuthentication with
969 older servers.
970
971 User Specifies the user to log in as. This can be useful when a
972 different user name is used on different machines. This saves
973 the trouble of having to remember to give the user name on the
974 command line.
975
976 UserKnownHostsFile
977 Specifies one or more files to use for the user host key
978 database, separated by whitespace. The default is
979 ~/.ssh/known_hosts, ~/.ssh/known_hosts2.
980
981 VerifyHostKeyDNS
982 Specifies whether to verify the remote key using DNS and SSHFP
983 resource records. If this option is set to M-bM-^@M-^\yesM-bM-^@M-^], the client
984 will implicitly trust keys that match a secure fingerprint from
985 DNS. Insecure fingerprints will be handled as if this option was
986 set to M-bM-^@M-^\askM-bM-^@M-^]. If this option is set to M-bM-^@M-^\askM-bM-^@M-^], information on
987 fingerprint match will be displayed, but the user will still need
988 to confirm new host keys according to the StrictHostKeyChecking
989 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
990 is M-bM-^@M-^\noM-bM-^@M-^].
991
992 See also VERIFYING HOST KEYS in ssh(1).
993
994 VisualHostKey
995 If this flag is set to M-bM-^@M-^\yesM-bM-^@M-^], an ASCII art representation of the
996 remote host key fingerprint is printed in addition to the
997 fingerprint string at login and for unknown host keys. If this
998 flag is set to M-bM-^@M-^\noM-bM-^@M-^], no fingerprint strings are printed at login
999 and only the fingerprint string will be printed for unknown host
1000 keys. The default is M-bM-^@M-^\noM-bM-^@M-^].
1001
1002 XAuthLocation
1003 Specifies the full pathname of the xauth(1) program. The default
1004 is /usr/X11R6/bin/xauth.
1005
1006PATTERNS
1007 A pattern consists of zero or more non-whitespace characters, M-bM-^@M-^X*M-bM-^@M-^Y (a
1008 wildcard that matches zero or more characters), or M-bM-^@M-^X?M-bM-^@M-^Y (a wildcard that
1009 matches exactly one character). For example, to specify a set of
1010 declarations for any host in the M-bM-^@M-^\.co.ukM-bM-^@M-^] set of domains, the following
1011 pattern could be used:
1012
1013 Host *.co.uk
1014
1015 The following pattern would match any host in the 192.168.0.[0-9] network
1016 range:
1017
1018 Host 192.168.0.?
1019
1020 A pattern-list is a comma-separated list of patterns. Patterns within
1021 pattern-lists may be negated by preceding them with an exclamation mark
1022 (M-bM-^@M-^X!M-bM-^@M-^Y). For example, to allow a key to be used from anywhere within an
1023 organization except from the M-bM-^@M-^\dialupM-bM-^@M-^] pool, the following entry (in
1024 authorized_keys) could be used:
1025
1026 from="!*.dialup.example.com,*.example.com"
1027
1028FILES
1029 ~/.ssh/config
1030 This is the per-user configuration file. The format of this file
1031 is described above. This file is used by the SSH client.
1032 Because of the potential for abuse, this file must have strict
1033 permissions: read/write for the user, and not accessible by
1034 others.
1035
1036 /etc/ssh/ssh_config
1037 Systemwide configuration file. This file provides defaults for
1038 those values that are not specified in the user's configuration
1039 file, and for those users who do not have a configuration file.
1040 This file must be world-readable.
1041
1042SEE ALSO
1043 ssh(1)
1044
1045AUTHORS
1046 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
1047 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
1048 de Raadt and Dug Song removed many bugs, re-added newer features and
1049 created OpenSSH. Markus Friedl contributed the support for SSH protocol
1050 versions 1.5 and 2.0.
1051
1052OpenBSD 5.9 February 20, 2016 OpenBSD 5.9
diff --git a/sshd.0 b/sshd.0
new file mode 100644
index 000000000..7eb05312f
--- /dev/null
+++ b/sshd.0
@@ -0,0 +1,665 @@
1SSHD(8) System Manager's Manual SSHD(8)
2
3NAME
4 sshd M-bM-^@M-^S OpenSSH SSH daemon
5
6SYNOPSIS
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
12DESCRIPTION
13 sshd (OpenSSH Daemon) is the daemon program for ssh(1). Together these
14 programs replace rlogin and rsh, and provide secure encrypted
15 communications between two untrusted hosts over an insecure network.
16
17 sshd listens for connections from clients. It is normally started at
18 boot from /etc/rc. It forks a new daemon for each incoming connection.
19 The forked daemons handle key exchange, encryption, authentication,
20 command execution, and data exchange.
21
22 sshd can be configured using command-line options or a configuration file
23 (by default sshd_config(5)); command-line options override values
24 specified in the configuration file. sshd rereads its configuration file
25 when it receives a hangup signal, SIGHUP, by executing itself with the
26 name and options it was started with, e.g. /usr/sbin/sshd.
27
28 The options are as follows:
29
30 -4 Forces sshd to use IPv4 addresses only.
31
32 -6 Forces sshd to use IPv6 addresses only.
33
34 -b bits
35 Specifies the number of bits in the ephemeral protocol version 1
36 server key (default 1024).
37
38 -C connection_spec
39 Specify the connection parameters to use for the -T extended test
40 mode. If provided, any Match directives in the configuration
41 file that would apply to the specified user, host, and address
42 will be set before the configuration is written to standard
43 output. The connection parameters are supplied as keyword=value
44 pairs. The keywords are M-bM-^@M-^\userM-bM-^@M-^], M-bM-^@M-^\hostM-bM-^@M-^], M-bM-^@M-^\laddrM-bM-^@M-^], M-bM-^@M-^\lportM-bM-^@M-^], and
45 M-bM-^@M-^\addrM-bM-^@M-^]. All are required and may be supplied in any order,
46 either with multiple -C options or as a comma-separated list.
47
48 -c host_certificate_file
49 Specifies a path to a certificate file to identify sshd during
50 key exchange. The certificate file must match a host key file
51 specified using the -h option or the HostKey configuration
52 directive.
53
54 -D When this option is specified, sshd will not detach and does not
55 become a daemon. This allows easy monitoring of sshd.
56
57 -d Debug mode. The server sends verbose debug output to standard
58 error, and does not put itself in the background. The server
59 also will not fork and will only process one connection. This
60 option is only intended for debugging for the server. Multiple
61 -d options increase the debugging level. Maximum is 3.
62
63 -E log_file
64 Append debug logs to log_file instead of the system log.
65
66 -e Write debug logs to standard error instead of the system log.
67
68 -f config_file
69 Specifies the name of the configuration file. The default is
70 /etc/ssh/sshd_config. sshd refuses to start if there is no
71 configuration file.
72
73 -g login_grace_time
74 Gives the grace time for clients to authenticate themselves
75 (default 120 seconds). If the client fails to authenticate the
76 user within this many seconds, the server disconnects and exits.
77 A value of zero indicates no limit.
78
79 -h host_key_file
80 Specifies a file from which a host key is read. This option must
81 be given if sshd is not run as root (as the normal host key files
82 are normally not readable by anyone but root). The default is
83 /etc/ssh/ssh_host_key for protocol version 1, and
84 /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_ecdsa_key.
85 /etc/ssh/ssh_host_ed25519_key and /etc/ssh/ssh_host_rsa_key for
86 protocol version 2. It is possible to have multiple host key
87 files for the different protocol versions and host key
88 algorithms.
89
90 -i Specifies that sshd is being run from inetd(8). If SSH protocol
91 1 is enabled, sshd should not normally be run from inetd because
92 it needs to generate the server key before it can respond to the
93 client, and this may take some time. Clients may have to wait
94 too long if the key was regenerated every time.
95
96 -k key_gen_time
97 Specifies how often the ephemeral protocol version 1 server key
98 is regenerated (default 3600 seconds, or one hour). The
99 motivation for regenerating the key fairly often is that the key
100 is not stored anywhere, and after about an hour it becomes
101 impossible to recover the key for decrypting intercepted
102 communications even if the machine is cracked into or physically
103 seized. A value of zero indicates that the key will never be
104 regenerated.
105
106 -o option
107 Can be used to give options in the format used in the
108 configuration file. This is useful for specifying options for
109 which there is no separate command-line flag. For full details
110 of the options, and their values, see sshd_config(5).
111
112 -p port
113 Specifies the port on which the server listens for connections
114 (default 22). Multiple port options are permitted. Ports
115 specified in the configuration file with the Port option are
116 ignored when a command-line port is specified. Ports specified
117 using the ListenAddress option override command-line ports.
118
119 -q Quiet mode. Nothing is sent to the system log. Normally the
120 beginning, authentication, and termination of each connection is
121 logged.
122
123 -T Extended test mode. Check the validity of the configuration
124 file, output the effective configuration to stdout and then exit.
125 Optionally, Match rules may be applied by specifying the
126 connection parameters using one or more -C options.
127
128 -t Test mode. Only check the validity of the configuration file and
129 sanity of the keys. This is useful for updating sshd reliably as
130 configuration options may change.
131
132 -u len This option is used to specify the size of the field in the utmp
133 structure that holds the remote host name. If the resolved host
134 name is longer than len, the dotted decimal value will be used
135 instead. This allows hosts with very long host names that
136 overflow this field to still be uniquely identified. Specifying
137 -u0 indicates that only dotted decimal addresses should be put
138 into the utmp file. -u0 may also be used to prevent sshd from
139 making DNS requests unless the authentication mechanism or
140 configuration requires it. Authentication mechanisms that may
141 require DNS include RhostsRSAAuthentication,
142 HostbasedAuthentication, and using a from="pattern-list" option
143 in a key file. Configuration options that require DNS include
144 using a USER@HOST pattern in AllowUsers or DenyUsers.
145
146AUTHENTICATION
147 The OpenSSH SSH daemon supports SSH protocols 1 and 2. The default is to
148 use protocol 2 only, though this can be changed via the Protocol option
149 in sshd_config(5). Protocol 1 should not be used and is only offered to
150 support legacy devices.
151
152 Each host has a host-specific key, used to identify the host. Partial
153 forward security for protocol 1 is provided through an additional server
154 key, normally 1024 bits, generated when the server starts. This key is
155 normally regenerated every hour if it has been used, and is never stored
156 on disk. Whenever a client connects, the daemon responds with its public
157 host and server keys. The client compares the RSA host key against its
158 own database to verify that it has not changed. The client then
159 generates a 256-bit random number. It encrypts this random number using
160 both the host key and the server key, and sends the encrypted number to
161 the server. Both sides then use this random number as a session key
162 which is used to encrypt all further communications in the session. The
163 rest of the session is encrypted using a conventional cipher, currently
164 Blowfish or 3DES, with 3DES being used by default. The client selects
165 the encryption algorithm to use from those offered by the server.
166
167 For protocol 2, forward security is provided through a Diffie-Hellman key
168 agreement. This key agreement results in a shared session key. The rest
169 of the session is encrypted using a symmetric cipher, currently 128-bit
170 AES, Blowfish, 3DES, CAST128, Arcfour, 192-bit AES, or 256-bit AES. The
171 client selects the encryption algorithm to use from those offered by the
172 server. Additionally, session integrity is provided through a
173 cryptographic message authentication code (hmac-md5, hmac-sha1, umac-64,
174 umac-128, hmac-ripemd160, hmac-sha2-256 or hmac-sha2-512).
175
176 Finally, the server and the client enter an authentication dialog. The
177 client tries to authenticate itself using host-based authentication,
178 public key authentication, challenge-response authentication, or password
179 authentication.
180
181 Regardless of the authentication type, the account is checked to ensure
182 that it is accessible. An account is not accessible if it is locked,
183 listed in DenyUsers or its group is listed in DenyGroups . The
184 definition of a locked account is system dependant. Some platforms have
185 their own account database (eg AIX) and some modify the passwd field (
186 M-bM-^@M-^X*LK*M-bM-^@M-^Y on Solaris and UnixWare, M-bM-^@M-^X*M-bM-^@M-^Y on HP-UX, containing M-bM-^@M-^XNologinM-bM-^@M-^Y on
187 Tru64, a leading M-bM-^@M-^X*LOCKED*M-bM-^@M-^Y on FreeBSD and a leading M-bM-^@M-^X!M-bM-^@M-^Y on most
188 Linuxes). If there is a requirement to disable password authentication
189 for the account while allowing still public-key, then the passwd field
190 should be set to something other than these values (eg M-bM-^@M-^XNPM-bM-^@M-^Y or M-bM-^@M-^X*NP*M-bM-^@M-^Y ).
191
192 If the client successfully authenticates itself, a dialog for preparing
193 the session is entered. At this time the client may request things like
194 allocating a pseudo-tty, forwarding X11 connections, forwarding TCP
195 connections, or forwarding the authentication agent connection over the
196 secure channel.
197
198 After this, the client either requests a shell or execution of a command.
199 The sides then enter session mode. In this mode, either side may send
200 data at any time, and such data is forwarded to/from the shell or command
201 on the server side, and the user terminal in the client side.
202
203 When the user program terminates and all forwarded X11 and other
204 connections have been closed, the server sends command exit status to the
205 client, and both sides exit.
206
207LOGIN PROCESS
208 When a user successfully logs in, sshd does the following:
209
210 1. If the login is on a tty, and no command has been specified,
211 prints last login time and /etc/motd (unless prevented in the
212 configuration file or by ~/.hushlogin; see the FILES section).
213
214 2. If the login is on a tty, records login time.
215
216 3. Checks /etc/nologin; if it exists, prints contents and quits
217 (unless root).
218
219 4. Changes to run with normal user privileges.
220
221 5. Sets up basic environment.
222
223 6. Reads the file ~/.ssh/environment, if it exists, and users are
224 allowed to change their environment. See the
225 PermitUserEnvironment option in sshd_config(5).
226
227 7. Changes to user's home directory.
228
229 8. If ~/.ssh/rc exists and the sshd_config(5) PermitUserRC option
230 is set, runs it; else if /etc/ssh/sshrc exists, runs it;
231 otherwise runs xauth. The M-bM-^@M-^\rcM-bM-^@M-^] files are given the X11
232 authentication protocol and cookie in standard input. See
233 SSHRC, below.
234
235 9. Runs user's shell or command. All commands are run under the
236 user's login shell as specified in the system password
237 database.
238
239SSHRC
240 If the file ~/.ssh/rc exists, sh(1) runs it after reading the environment
241 files but before starting the user's shell or command. It must not
242 produce any output on stdout; stderr must be used instead. If X11
243 forwarding is in use, it will receive the "proto cookie" pair in its
244 standard input (and DISPLAY in its environment). The script must call
245 xauth(1) because sshd will not run xauth automatically to add X11
246 cookies.
247
248 The primary purpose of this file is to run any initialization routines
249 which may be needed before the user's home directory becomes accessible;
250 AFS is a particular example of such an environment.
251
252 This file will probably contain some initialization code followed by
253 something similar to:
254
255 if read proto cookie && [ -n "$DISPLAY" ]; then
256 if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then
257 # X11UseLocalhost=yes
258 echo add unix:`echo $DISPLAY |
259 cut -c11-` $proto $cookie
260 else
261 # X11UseLocalhost=no
262 echo add $DISPLAY $proto $cookie
263 fi | xauth -q -
264 fi
265
266 If this file does not exist, /etc/ssh/sshrc is run, and if that does not
267 exist either, xauth is used to add the cookie.
268
269AUTHORIZED_KEYS FILE FORMAT
270 AuthorizedKeysFile specifies the files containing public keys for public
271 key authentication; if this option is not specified, the default is
272 ~/.ssh/authorized_keys and ~/.ssh/authorized_keys2. Each line of the
273 file contains one key (empty lines and lines starting with a M-bM-^@M-^X#M-bM-^@M-^Y are
274 ignored as comments). Protocol 1 public keys consist of the following
275 space-separated fields: options, bits, exponent, modulus, comment.
276 Protocol 2 public key consist of: options, keytype, base64-encoded key,
277 comment. The options field is optional; its presence is determined by
278 whether the line starts with a number or not (the options field never
279 starts with a number). The bits, exponent, modulus, and comment fields
280 give the RSA key for protocol version 1; the comment field is not used
281 for anything (but may be convenient for the user to identify the key).
282 For protocol version 2 the keytype is M-bM-^@M-^\ecdsa-sha2-nistp256M-bM-^@M-^],
283 M-bM-^@M-^\ecdsa-sha2-nistp384M-bM-^@M-^], M-bM-^@M-^\ecdsa-sha2-nistp521M-bM-^@M-^], M-bM-^@M-^\ssh-ed25519M-bM-^@M-^], M-bM-^@M-^\ssh-dssM-bM-^@M-^] or
284 M-bM-^@M-^\ssh-rsaM-bM-^@M-^].
285
286 Note that lines in this file are usually several hundred bytes long
287 (because of the size of the public key encoding) up to a limit of 8
288 kilobytes, which permits DSA keys up to 8 kilobits and RSA keys up to 16
289 kilobits. You don't want to type them in; instead, copy the
290 identity.pub, id_dsa.pub, id_ecdsa.pub, id_ed25519.pub, or the id_rsa.pub
291 file and edit it.
292
293 sshd enforces a minimum RSA key modulus size for protocol 1 and protocol
294 2 keys of 768 bits.
295
296 The options (if present) consist of comma-separated option
297 specifications. No spaces are permitted, except within double quotes.
298 The following option specifications are supported (note that option
299 keywords are case-insensitive):
300
301 agent-forwarding
302 Enable authentication agent forwarding previously disabled by the
303 restrict option.
304
305 cert-authority
306 Specifies that the listed key is a certification authority (CA)
307 that is trusted to validate signed certificates for user
308 authentication.
309
310 Certificates may encode access restrictions similar to these key
311 options. If both certificate restrictions and key options are
312 present, the most restrictive union of the two is applied.
313
314 command="command"
315 Specifies that the command is executed whenever this key is used
316 for authentication. The command supplied by the user (if any) is
317 ignored. The command is run on a pty if the client requests a
318 pty; otherwise it is run without a tty. If an 8-bit clean
319 channel is required, one must not request a pty or should specify
320 no-pty. A quote may be included in the command by quoting it
321 with a backslash. This option might be useful to restrict
322 certain public keys to perform just a specific operation. An
323 example might be a key that permits remote backups but nothing
324 else. Note that the client may specify TCP and/or X11 forwarding
325 unless they are explicitly prohibited. The command originally
326 supplied by the client is available in the SSH_ORIGINAL_COMMAND
327 environment variable. Note that this option applies to shell,
328 command or subsystem execution. Also note that this command may
329 be superseded by either a sshd_config(5) ForceCommand directive
330 or a command embedded in a certificate.
331
332 environment="NAME=value"
333 Specifies that the string is to be added to the environment when
334 logging in using this key. Environment variables set this way
335 override other default environment values. Multiple options of
336 this type are permitted. Environment processing is disabled by
337 default and is controlled via the PermitUserEnvironment option.
338 This option is automatically disabled if UseLogin is enabled.
339
340 from="pattern-list"
341 Specifies that in addition to public key authentication, either
342 the canonical name of the remote host or its IP address must be
343 present in the comma-separated list of patterns. See PATTERNS in
344 ssh_config(5) for more information on patterns.
345
346 In addition to the wildcard matching that may be applied to
347 hostnames or addresses, a from stanza may match IP addresses
348 using CIDR address/masklen notation.
349
350 The purpose of this option is to optionally increase security:
351 public key authentication by itself does not trust the network or
352 name servers or anything (but the key); however, if somebody
353 somehow steals the key, the key permits an intruder to log in
354 from anywhere in the world. This additional option makes using a
355 stolen key more difficult (name servers and/or routers would have
356 to be compromised in addition to just the key).
357
358 no-agent-forwarding
359 Forbids authentication agent forwarding when this key is used for
360 authentication.
361
362 no-port-forwarding
363 Forbids TCP forwarding when this key is used for authentication.
364 Any port forward requests by the client will return an error.
365 This might be used, e.g. in connection with the command option.
366
367 no-pty Prevents tty allocation (a request to allocate a pty will fail).
368
369 no-user-rc
370 Disables execution of ~/.ssh/rc.
371
372 no-X11-forwarding
373 Forbids X11 forwarding when this key is used for authentication.
374 Any X11 forward requests by the client will return an error.
375
376 permitopen="host:port"
377 Limit local port forwarding with ssh(1) -L such that it may only
378 connect to the specified host and port. IPv6 addresses can be
379 specified by enclosing the address in square brackets. Multiple
380 permitopen options may be applied separated by commas. No
381 pattern matching is performed on the specified hostnames, they
382 must be literal domains or addresses. A port specification of *
383 matches any port.
384
385 port-forwarding
386 Enable port forwarding previously disabled by the restrict
387
388 principals="principals"
389 On a cert-authority line, specifies allowed principals for
390 certificate authentication as a comma-separated list. At least
391 one name from the list must appear in the certificate's list of
392 principals for the certificate to be accepted. This option is
393 ignored for keys that are not marked as trusted certificate
394 signers using the cert-authority option.
395
396 pty Permits tty allocation previously disabled by the restrict
397 option.
398
399 restrict
400 Enable all restrictions, i.e. disable port, agent and X11
401 forwarding, as well as disabling PTY allocation and execution of
402 ~/.ssh/rc. If any future restriction capabilities are added to
403 authorized_keys files they will be included in this set.
404
405 tunnel="n"
406 Force a tun(4) device on the server. Without this option, the
407 next available device will be used if the client requests a
408 tunnel.
409
410 user-rc
411 Enables execution of ~/.ssh/rc previously disabled by the
412 restrict option.
413
414 X11-forwarding
415 Permits X11 forwarding previously disabled by the restrict
416 option.
417
418 An example authorized_keys file:
419
420 # Comments allowed at start of line
421 ssh-rsa AAAAB3Nza...LiPk== user@example.net
422 from="*.sales.example.net,!pc.sales.example.net" ssh-rsa
423 AAAAB2...19Q== john@example.net
424 command="dump /home",no-pty,no-port-forwarding ssh-dss
425 AAAAC3...51R== example.net
426 permitopen="192.0.2.1:80",permitopen="192.0.2.2:25" ssh-dss
427 AAAAB5...21S==
428 tunnel="0",command="sh /etc/netstart tun0" ssh-rsa AAAA...==
429 jane@example.net
430 restrict,command="uptime" ssh-rsa AAAA1C8...32Tv==
431 user@example.net
432 restrict,pty,command="nethack" ssh-rsa AAAA1f8...IrrC5==
433 user@example.net
434
435SSH_KNOWN_HOSTS FILE FORMAT
436 The /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts files contain host
437 public keys for all known hosts. The global file should be prepared by
438 the administrator (optional), and the per-user file is maintained
439 automatically: whenever the user connects from an unknown host, its key
440 is added to the per-user file.
441
442 Each line in these files contains the following fields: markers
443 (optional), hostnames, bits, exponent, modulus, comment. The fields are
444 separated by spaces.
445
446 The marker is optional, but if it is present then it must be one of
447 M-bM-^@M-^\@cert-authorityM-bM-^@M-^], to indicate that the line contains a certification
448 authority (CA) key, or M-bM-^@M-^\@revokedM-bM-^@M-^], to indicate that the key contained on
449 the line is revoked and must not ever be accepted. Only one marker
450 should be used on a key line.
451
452 Hostnames is a comma-separated list of patterns (M-bM-^@M-^X*M-bM-^@M-^Y and M-bM-^@M-^X?M-bM-^@M-^Y act as
453 wildcards); each pattern in turn is matched against the canonical host
454 name (when authenticating a client) or against the user-supplied name
455 (when authenticating a server). A pattern may also be preceded by M-bM-^@M-^X!M-bM-^@M-^Y to
456 indicate negation: if the host name matches a negated pattern, it is not
457 accepted (by that line) even if it matched another pattern on the line.
458 A hostname or address may optionally be enclosed within M-bM-^@M-^X[M-bM-^@M-^Y and M-bM-^@M-^X]M-bM-^@M-^Y
459 brackets then followed by M-bM-^@M-^X:M-bM-^@M-^Y and a non-standard port number.
460
461 Alternately, hostnames may be stored in a hashed form which hides host
462 names and addresses should the file's contents be disclosed. Hashed
463 hostnames start with a M-bM-^@M-^X|M-bM-^@M-^Y character. Only one hashed hostname may
464 appear on a single line and none of the above negation or wildcard
465 operators may be applied.
466
467 Bits, exponent, and modulus are taken directly from the RSA host key;
468 they can be obtained, for example, from /etc/ssh/ssh_host_key.pub. The
469 optional comment field continues to the end of the line, and is not used.
470
471 Lines starting with M-bM-^@M-^X#M-bM-^@M-^Y and empty lines are ignored as comments.
472
473 When performing host authentication, authentication is accepted if any
474 matching line has the proper key; either one that matches exactly or, if
475 the server has presented a certificate for authentication, the key of the
476 certification authority that signed the certificate. For a key to be
477 trusted as a certification authority, it must use the M-bM-^@M-^\@cert-authorityM-bM-^@M-^]
478 marker described above.
479
480 The known hosts file also provides a facility to mark keys as revoked,
481 for example when it is known that the associated private key has been
482 stolen. Revoked keys are specified by including the M-bM-^@M-^\@revokedM-bM-^@M-^] marker at
483 the beginning of the key line, and are never accepted for authentication
484 or as certification authorities, but instead will produce a warning from
485 ssh(1) when they are encountered.
486
487 It is permissible (but not recommended) to have several lines or
488 different host keys for the same names. This will inevitably happen when
489 short forms of host names from different domains are put in the file. It
490 is possible that the files contain conflicting information;
491 authentication is accepted if valid information can be found from either
492 file.
493
494 Note that the lines in these files are typically hundreds of characters
495 long, and you definitely don't want to type in the host keys by hand.
496 Rather, generate them by a script, ssh-keyscan(1) or by taking
497 /etc/ssh/ssh_host_key.pub and adding the host names at the front.
498 ssh-keygen(1) also offers some basic automated editing for
499 ~/.ssh/known_hosts including removing hosts matching a host name and
500 converting all host names to their hashed representations.
501
502 An example ssh_known_hosts file:
503
504 # Comments allowed at start of line
505 closenet,...,192.0.2.53 1024 37 159...93 closenet.example.net
506 cvs.example.net,192.0.2.10 ssh-rsa AAAA1234.....=
507 # A hashed hostname
508 |1|JfKTdBh7rNbXkVAQCRp4OQoPfmI=|USECr3SWf1JUPsms5AqfD5QfxkM= ssh-rsa
509 AAAA1234.....=
510 # A revoked key
511 @revoked * ssh-rsa AAAAB5W...
512 # A CA key, accepted for any host in *.mydomain.com or *.mydomain.org
513 @cert-authority *.mydomain.org,*.mydomain.com ssh-rsa AAAAB5W...
514
515FILES
516 ~/.hushlogin
517 This file is used to suppress printing the last login time and
518 /etc/motd, if PrintLastLog and PrintMotd, respectively, are
519 enabled. It does not suppress printing of the banner specified
520 by Banner.
521
522 ~/.rhosts
523 This file is used for host-based authentication (see ssh(1) for
524 more information). On some machines this file may need to be
525 world-readable if the user's home directory is on an NFS
526 partition, because sshd reads it as root. Additionally, this
527 file must be owned by the user, and must not have write
528 permissions for anyone else. The recommended permission for most
529 machines is read/write for the user, and not accessible by
530 others.
531
532 ~/.shosts
533 This file is used in exactly the same way as .rhosts, but allows
534 host-based authentication without permitting login with
535 rlogin/rsh.
536
537 ~/.ssh/
538 This directory is the default location for all user-specific
539 configuration and authentication information. There is no
540 general requirement to keep the entire contents of this directory
541 secret, but the recommended permissions are read/write/execute
542 for the user, and not accessible by others.
543
544 ~/.ssh/authorized_keys
545 Lists the public keys (DSA, ECDSA, Ed25519, RSA) that can be used
546 for logging in as this user. The format of this file is
547 described above. The content of the file is not highly
548 sensitive, but the recommended permissions are read/write for the
549 user, and not accessible by others.
550
551 If this file, the ~/.ssh directory, or the user's home directory
552 are writable by other users, then the file could be modified or
553 replaced by unauthorized users. In this case, sshd will not
554 allow it to be used unless the StrictModes option has been set to
555 M-bM-^@M-^\noM-bM-^@M-^].
556
557 ~/.ssh/environment
558 This file is read into the environment at login (if it exists).
559 It can only contain empty lines, comment lines (that start with
560 M-bM-^@M-^X#M-bM-^@M-^Y), and assignment lines of the form name=value. The file
561 should be writable only by the user; it need not be readable by
562 anyone else. Environment processing is disabled by default and
563 is controlled via the PermitUserEnvironment option.
564
565 ~/.ssh/known_hosts
566 Contains a list of host keys for all hosts the user has logged
567 into that are not already in the systemwide list of known host
568 keys. The format of this file is described above. This file
569 should be writable only by root/the owner and can, but need not
570 be, world-readable.
571
572 ~/.ssh/rc
573 Contains initialization routines to be run before the user's home
574 directory becomes accessible. This file should be writable only
575 by the user, and need not be readable by anyone else.
576
577 /etc/hosts.equiv
578 This file is for host-based authentication (see ssh(1)). It
579 should only be writable by root.
580
581 /etc/moduli
582 Contains Diffie-Hellman groups used for the "Diffie-Hellman Group
583 Exchange" key exchange method. The file format is described in
584 moduli(5). If no usable groups are found in this file then fixed
585 internal groups will be used.
586
587 /etc/motd
588 See motd(5).
589
590 /etc/nologin
591 If this file exists, sshd refuses to let anyone except root log
592 in. The contents of the file are displayed to anyone trying to
593 log in, and non-root connections are refused. The file should be
594 world-readable.
595
596 /etc/shosts.equiv
597 This file is used in exactly the same way as hosts.equiv, but
598 allows host-based authentication without permitting login with
599 rlogin/rsh.
600
601 /etc/ssh/ssh_host_key
602 /etc/ssh/ssh_host_dsa_key
603 /etc/ssh/ssh_host_ecdsa_key
604 /etc/ssh/ssh_host_ed25519_key
605 /etc/ssh/ssh_host_rsa_key
606 These files contain the private parts of the host keys. These
607 files should only be owned by root, readable only by root, and
608 not accessible to others. Note that sshd does not start if these
609 files are group/world-accessible.
610
611 /etc/ssh/ssh_host_key.pub
612 /etc/ssh/ssh_host_dsa_key.pub
613 /etc/ssh/ssh_host_ecdsa_key.pub
614 /etc/ssh/ssh_host_ed25519_key.pub
615 /etc/ssh/ssh_host_rsa_key.pub
616 These files contain the public parts of the host keys. These
617 files should be world-readable but writable only by root. Their
618 contents should match the respective private parts. These files
619 are not really used for anything; they are provided for the
620 convenience of the user so their contents can be copied to known
621 hosts files. These files are created using ssh-keygen(1).
622
623 /etc/ssh/ssh_known_hosts
624 Systemwide list of known host keys. This file should be prepared
625 by the system administrator to contain the public host keys of
626 all machines in the organization. The format of this file is
627 described above. This file should be writable only by root/the
628 owner and should be world-readable.
629
630 /etc/ssh/sshd_config
631 Contains configuration data for sshd. The file format and
632 configuration options are described in sshd_config(5).
633
634 /etc/ssh/sshrc
635 Similar to ~/.ssh/rc, it can be used to specify machine-specific
636 login-time initializations globally. This file should be
637 writable only by root, and should be world-readable.
638
639 /var/empty
640 chroot(2) directory used by sshd during privilege separation in
641 the pre-authentication phase. The directory should not contain
642 any files and must be owned by root and not group or world-
643 writable.
644
645 /var/run/sshd.pid
646 Contains the process ID of the sshd listening for connections (if
647 there are several daemons running concurrently for different
648 ports, this contains the process ID of the one started last).
649 The content of this file is not sensitive; it can be world-
650 readable.
651
652SEE ALSO
653 scp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
654 ssh-keyscan(1), chroot(2), login.conf(5), moduli(5), sshd_config(5),
655 inetd(8), sftp-server(8)
656
657AUTHORS
658 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
659 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
660 de Raadt and Dug Song removed many bugs, re-added newer features and
661 created OpenSSH. Markus Friedl contributed the support for SSH protocol
662 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
663 for privilege separation.
664
665OpenBSD 5.9 February 17, 2016 OpenBSD 5.9
diff --git a/sshd_config.0 b/sshd_config.0
new file mode 100644
index 000000000..8bda6a39f
--- /dev/null
+++ b/sshd_config.0
@@ -0,0 +1,1054 @@
1SSHD_CONFIG(5) File Formats Manual SSHD_CONFIG(5)
2
3NAME
4 sshd_config M-bM-^@M-^S OpenSSH SSH daemon configuration file
5
6SYNOPSIS
7 /etc/ssh/sshd_config
8
9DESCRIPTION
10 sshd(8) reads configuration data from /etc/ssh/sshd_config (or the file
11 specified with -f on the command line). The file contains keyword-
12 argument pairs, one per line. Lines starting with M-bM-^@M-^X#M-bM-^@M-^Y and empty lines
13 are interpreted as comments. Arguments may optionally be enclosed in
14 double quotes (") in order to represent arguments containing spaces.
15
16 The possible keywords and their meanings are as follows (note that
17 keywords are case-insensitive and arguments are case-sensitive):
18
19 AcceptEnv
20 Specifies what environment variables sent by the client will be
21 copied into the session's environ(7). See SendEnv in
22 ssh_config(5) for how to configure the client. The TERM
23 environment variable is always sent whenever the client requests
24 a pseudo-terminal as it is required by the protocol. Variables
25 are specified by name, which may contain the wildcard characters
26 M-bM-^@M-^X*M-bM-^@M-^Y and M-bM-^@M-^X?M-bM-^@M-^Y. Multiple environment variables may be separated by
27 whitespace or spread across multiple AcceptEnv directives. Be
28 warned that some environment variables could be used to bypass
29 restricted user environments. For this reason, care should be
30 taken in the use of this directive. The default is not to accept
31 any environment variables.
32
33 AddressFamily
34 Specifies which address family should be used by sshd(8). Valid
35 arguments are M-bM-^@M-^\anyM-bM-^@M-^], M-bM-^@M-^\inetM-bM-^@M-^] (use IPv4 only), or M-bM-^@M-^\inet6M-bM-^@M-^] (use IPv6
36 only). The default is M-bM-^@M-^\anyM-bM-^@M-^].
37
38 AllowAgentForwarding
39 Specifies whether ssh-agent(1) forwarding is permitted. The
40 default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that disabling agent forwarding does not
41 improve security unless users are also denied shell access, as
42 they can always install their own forwarders.
43
44 AllowGroups
45 This keyword can be followed by a list of group name patterns,
46 separated by spaces. If specified, login is allowed only for
47 users whose primary group or supplementary group list matches one
48 of the patterns. Only group names are valid; a numerical group
49 ID is not recognized. By default, login is allowed for all
50 groups. The allow/deny directives are processed in the following
51 order: DenyUsers, AllowUsers, DenyGroups, and finally
52 AllowGroups.
53
54 See PATTERNS in ssh_config(5) for more information on patterns.
55
56 AllowTcpForwarding
57 Specifies whether TCP forwarding is permitted. The available
58 options are M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\allM-bM-^@M-^] to allow TCP forwarding, M-bM-^@M-^\noM-bM-^@M-^] to
59 prevent all TCP forwarding, M-bM-^@M-^\localM-bM-^@M-^] to allow local (from the
60 perspective of ssh(1)) forwarding only or M-bM-^@M-^\remoteM-bM-^@M-^] to allow
61 remote forwarding only. The default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that
62 disabling TCP forwarding does not improve security unless users
63 are also denied shell access, as they can always install their
64 own forwarders.
65
66 AllowStreamLocalForwarding
67 Specifies whether StreamLocal (Unix-domain socket) forwarding is
68 permitted. The available options are M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\allM-bM-^@M-^] to allow
69 StreamLocal forwarding, M-bM-^@M-^\noM-bM-^@M-^] to prevent all StreamLocal
70 forwarding, M-bM-^@M-^\localM-bM-^@M-^] to allow local (from the perspective of
71 ssh(1)) forwarding only or M-bM-^@M-^\remoteM-bM-^@M-^] to allow remote forwarding
72 only. The default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that disabling StreamLocal
73 forwarding does not improve security unless users are also denied
74 shell access, as they can always install their own forwarders.
75
76 AllowUsers
77 This keyword can be followed by a list of user name patterns,
78 separated by spaces. If specified, login is allowed only for
79 user names that match one of the patterns. Only user names are
80 valid; a numerical user ID is not recognized. By default, login
81 is allowed for all users. If the pattern takes the form
82 USER@HOST then USER and HOST are separately checked, restricting
83 logins to particular users from particular hosts. The allow/deny
84 directives are processed in the following order: DenyUsers,
85 AllowUsers, DenyGroups, and finally AllowGroups.
86
87 See PATTERNS in ssh_config(5) for more information on patterns.
88
89 AuthenticationMethods
90 Specifies the authentication methods that must be successfully
91 completed for a user to be granted access. This option must be
92 followed by one or more comma-separated lists of authentication
93 method names. Successful authentication requires completion of
94 every method in at least one of these lists.
95
96 For example, an argument of M-bM-^@M-^\publickey,password
97 publickey,keyboard-interactiveM-bM-^@M-^] would require the user to
98 complete public key authentication, followed by either password
99 or keyboard interactive authentication. Only methods that are
100 next in one or more lists are offered at each stage, so for this
101 example, it would not be possible to attempt password or
102 keyboard-interactive authentication before public key.
103
104 For keyboard interactive authentication it is also possible to
105 restrict authentication to a specific device by appending a colon
106 followed by the device identifier M-bM-^@M-^\bsdauthM-bM-^@M-^], M-bM-^@M-^\pamM-bM-^@M-^], or M-bM-^@M-^\skeyM-bM-^@M-^],
107 depending on the server configuration. For example,
108 M-bM-^@M-^\keyboard-interactive:bsdauthM-bM-^@M-^] would restrict keyboard
109 interactive authentication to the M-bM-^@M-^\bsdauthM-bM-^@M-^] device.
110
111 If the M-bM-^@M-^\publickeyM-bM-^@M-^] method is listed more than once, sshd(8)
112 verifies that keys that have been used successfully are not
113 reused for subsequent authentications. For example, an
114 AuthenticationMethods of M-bM-^@M-^\publickey,publickeyM-bM-^@M-^] will require
115 successful authentication using two different public keys.
116
117 This option will yield a fatal error if enabled if protocol 1 is
118 also enabled. Note that each authentication method listed should
119 also be explicitly enabled in the configuration. The default is
120 not to require multiple authentication; successful completion of
121 a single authentication method is sufficient.
122
123 AuthorizedKeysCommand
124 Specifies a program to be used to look up the user's public keys.
125 The program must be owned by root, not writable by group or
126 others and specified by an absolute path.
127
128 Arguments to AuthorizedKeysCommand may be provided using the
129 following tokens, which will be expanded at runtime: %% is
130 replaced by a literal '%', %u is replaced by the username being
131 authenticated, %h is replaced by the home directory of the user
132 being authenticated, %t is replaced with the key type offered for
133 authentication, %f is replaced with the fingerprint of the key,
134 and %k is replaced with the key being offered for authentication.
135 If no arguments are specified then the username of the target
136 user will be supplied.
137
138 The program should produce on standard output zero or more lines
139 of authorized_keys output (see AUTHORIZED_KEYS in sshd(8)). If a
140 key supplied by AuthorizedKeysCommand does not successfully
141 authenticate and authorize the user then public key
142 authentication continues using the usual AuthorizedKeysFile
143 files. By default, no AuthorizedKeysCommand is run.
144
145 AuthorizedKeysCommandUser
146 Specifies the user under whose account the AuthorizedKeysCommand
147 is run. It is recommended to use a dedicated user that has no
148 other role on the host than running authorized keys commands. If
149 AuthorizedKeysCommand is specified but AuthorizedKeysCommandUser
150 is not, then sshd(8) will refuse to start.
151
152 AuthorizedKeysFile
153 Specifies the file that contains the public keys that can be used
154 for user authentication. The format is described in the
155 AUTHORIZED_KEYS FILE FORMAT section of sshd(8).
156 AuthorizedKeysFile may contain tokens of the form %T which are
157 substituted during connection setup. The following tokens are
158 defined: %% is replaced by a literal '%', %h is replaced by the
159 home directory of the user being authenticated, and %u is
160 replaced by the username of that user. After expansion,
161 AuthorizedKeysFile is taken to be an absolute path or one
162 relative to the user's home directory. Multiple files may be
163 listed, separated by whitespace. Alternately this option may be
164 set to M-bM-^@M-^\noneM-bM-^@M-^] to skip checking for user keys in files. The
165 default is M-bM-^@M-^\.ssh/authorized_keys .ssh/authorized_keys2M-bM-^@M-^].
166
167 AuthorizedPrincipalsCommand
168 Specifies a program to be used to generate the list of allowed
169 certificate principals as per AuthorizedPrincipalsFile. The
170 program must be owned by root, not writable by group or others
171 and specified by an absolute path.
172
173 Arguments to AuthorizedPrincipalsCommand may be provided using
174 the following tokens, which will be expanded at runtime: %% is
175 replaced by a literal '%', %u is replaced by the username being
176 authenticated and %h is replaced by the home directory of the
177 user being authenticated.
178
179 The program should produce on standard output zero or more lines
180 of AuthorizedPrincipalsFile output. If either
181 AuthorizedPrincipalsCommand or AuthorizedPrincipalsFile is
182 specified, then certificates offered by the client for
183 authentication must contain a principal that is listed. By
184 default, no AuthorizedPrincipalsCommand is run.
185
186 AuthorizedPrincipalsCommandUser
187 Specifies the user under whose account the
188 AuthorizedPrincipalsCommand is run. It is recommended to use a
189 dedicated user that has no other role on the host than running
190 authorized principals commands. If AuthorizedPrincipalsCommand
191 is specified but AuthorizedPrincipalsCommandUser is not, then
192 sshd(8) will refuse to start.
193
194 AuthorizedPrincipalsFile
195 Specifies a file that lists principal names that are accepted for
196 certificate authentication. When using certificates signed by a
197 key listed in TrustedUserCAKeys, this file lists names, one of
198 which must appear in the certificate for it to be accepted for
199 authentication. Names are listed one per line preceded by key
200 options (as described in AUTHORIZED_KEYS FILE FORMAT in sshd(8)).
201 Empty lines and comments starting with M-bM-^@M-^X#M-bM-^@M-^Y are ignored.
202
203 AuthorizedPrincipalsFile may contain tokens of the form %T which
204 are substituted during connection setup. The following tokens
205 are defined: %% is replaced by a literal '%', %h is replaced by
206 the home directory of the user being authenticated, and %u is
207 replaced by the username of that user. After expansion,
208 AuthorizedPrincipalsFile is taken to be an absolute path or one
209 relative to the user's home directory.
210
211 The default is M-bM-^@M-^\noneM-bM-^@M-^], i.e. not to use a principals file M-bM-^@M-^S in
212 this case, the username of the user must appear in a
213 certificate's principals list for it to be accepted. Note that
214 AuthorizedPrincipalsFile is only used when authentication
215 proceeds using a CA listed in TrustedUserCAKeys and is not
216 consulted for certification authorities trusted via
217 ~/.ssh/authorized_keys, though the principals= key option offers
218 a similar facility (see sshd(8) for details).
219
220 Banner The contents of the specified file are sent to the remote user
221 before authentication is allowed. If the argument is M-bM-^@M-^\noneM-bM-^@M-^] then
222 no banner is displayed. By default, no banner is displayed.
223
224 ChallengeResponseAuthentication
225 Specifies whether challenge-response authentication is allowed
226 (e.g. via PAM or through authentication styles supported in
227 login.conf(5)) The default is M-bM-^@M-^\yesM-bM-^@M-^].
228
229 ChrootDirectory
230 Specifies the pathname of a directory to chroot(2) to after
231 authentication. At session startup sshd(8) checks that all
232 components of the pathname are root-owned directories which are
233 not writable by any other user or group. After the chroot,
234 sshd(8) changes the working directory to the user's home
235 directory.
236
237 The pathname may contain the following tokens that are expanded
238 at runtime once the connecting user has been authenticated: %% is
239 replaced by a literal '%', %h is replaced by the home directory
240 of the user being authenticated, and %u is replaced by the
241 username of that user.
242
243 The ChrootDirectory must contain the necessary files and
244 directories to support the user's session. For an interactive
245 session this requires at least a shell, typically sh(1), and
246 basic /dev nodes such as null(4), zero(4), stdin(4), stdout(4),
247 stderr(4), and tty(4) devices. For file transfer sessions using
248 M-bM-^@M-^\sftpM-bM-^@M-^], no additional configuration of the environment is
249 necessary if the in-process sftp server is used, though sessions
250 which use logging may require /dev/log inside the chroot
251 directory on some operating systems (see sftp-server(8) for
252 details).
253
254 For safety, it is very important that the directory hierarchy be
255 prevented from modification by other processes on the system
256 (especially those outside the jail). Misconfiguration can lead
257 to unsafe environments which sshd(8) cannot detect.
258
259 The default is M-bM-^@M-^\noneM-bM-^@M-^], indicating not to chroot(2).
260
261 Ciphers
262 Specifies the ciphers allowed. Multiple ciphers must be comma-
263 separated. If the specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character,
264 then the specified ciphers will be appended to the default set
265 instead of replacing them.
266
267 The supported ciphers are:
268
269 3des-cbc
270 aes128-cbc
271 aes192-cbc
272 aes256-cbc
273 aes128-ctr
274 aes192-ctr
275 aes256-ctr
276 aes128-gcm@openssh.com
277 aes256-gcm@openssh.com
278 arcfour
279 arcfour128
280 arcfour256
281 blowfish-cbc
282 cast128-cbc
283 chacha20-poly1305@openssh.com
284
285 The default is:
286
287 chacha20-poly1305@openssh.com,
288 aes128-ctr,aes192-ctr,aes256-ctr,
289 aes128-gcm@openssh.com,aes256-gcm@openssh.com
290
291 The list of available ciphers may also be obtained using the -Q
292 option of ssh(1) with an argument of M-bM-^@M-^\cipherM-bM-^@M-^].
293
294 ClientAliveCountMax
295 Sets the number of client alive messages (see below) which may be
296 sent without sshd(8) receiving any messages back from the client.
297 If this threshold is reached while client alive messages are
298 being sent, sshd will disconnect the client, terminating the
299 session. It is important to note that the use of client alive
300 messages is very different from TCPKeepAlive (below). The client
301 alive messages are sent through the encrypted channel and
302 therefore will not be spoofable. The TCP keepalive option
303 enabled by TCPKeepAlive is spoofable. The client alive mechanism
304 is valuable when the client or server depend on knowing when a
305 connection has become inactive.
306
307 The default value is 3. If ClientAliveInterval (see below) is
308 set to 15, and ClientAliveCountMax is left at the default,
309 unresponsive SSH clients will be disconnected after approximately
310 45 seconds.
311
312 ClientAliveInterval
313 Sets a timeout interval in seconds after which if no data has
314 been received from the client, sshd(8) will send a message
315 through the encrypted channel to request a response from the
316 client. The default is 0, indicating that these messages will
317 not be sent to the client.
318
319 Compression
320 Specifies whether compression is allowed, or delayed until the
321 user has authenticated successfully. The argument must be M-bM-^@M-^\yesM-bM-^@M-^],
322 M-bM-^@M-^\delayedM-bM-^@M-^], or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\delayedM-bM-^@M-^].
323
324 DenyGroups
325 This keyword can be followed by a list of group name patterns,
326 separated by spaces. Login is disallowed for users whose primary
327 group or supplementary group list matches one of the patterns.
328 Only group names are valid; a numerical group ID is not
329 recognized. By default, login is allowed for all groups. The
330 allow/deny directives are processed in the following order:
331 DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups.
332
333 See PATTERNS in ssh_config(5) for more information on patterns.
334
335 DenyUsers
336 This keyword can be followed by a list of user name patterns,
337 separated by spaces. Login is disallowed for user names that
338 match one of the patterns. Only user names are valid; a
339 numerical user ID is not recognized. By default, login is
340 allowed for all users. If the pattern takes the form USER@HOST
341 then USER and HOST are separately checked, restricting logins to
342 particular users from particular hosts. The allow/deny
343 directives are processed in the following order: DenyUsers,
344 AllowUsers, DenyGroups, and finally AllowGroups.
345
346 See PATTERNS in ssh_config(5) for more information on patterns.
347
348 FingerprintHash
349 Specifies the hash algorithm used when logging key fingerprints.
350 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-^].
351
352 ForceCommand
353 Forces the execution of the command specified by ForceCommand,
354 ignoring any command supplied by the client and ~/.ssh/rc if
355 present. The command is invoked by using the user's login shell
356 with the -c option. This applies to shell, command, or subsystem
357 execution. It is most useful inside a Match block. The command
358 originally supplied by the client is available in the
359 SSH_ORIGINAL_COMMAND environment variable. Specifying a command
360 of M-bM-^@M-^\internal-sftpM-bM-^@M-^] will force the use of an in-process sftp
361 server that requires no support files when used with
362 ChrootDirectory. The default is M-bM-^@M-^\noneM-bM-^@M-^].
363
364 GatewayPorts
365 Specifies whether remote hosts are allowed to connect to ports
366 forwarded for the client. By default, sshd(8) binds remote port
367 forwardings to the loopback address. This prevents other remote
368 hosts from connecting to forwarded ports. GatewayPorts can be
369 used to specify that sshd should allow remote port forwardings to
370 bind to non-loopback addresses, thus allowing other hosts to
371 connect. The argument may be M-bM-^@M-^\noM-bM-^@M-^] to force remote port
372 forwardings to be available to the local host only, M-bM-^@M-^\yesM-bM-^@M-^] to
373 force remote port forwardings to bind to the wildcard address, or
374 M-bM-^@M-^\clientspecifiedM-bM-^@M-^] to allow the client to select the address to
375 which the forwarding is bound. The default is M-bM-^@M-^\noM-bM-^@M-^].
376
377 GSSAPIAuthentication
378 Specifies whether user authentication based on GSSAPI is allowed.
379 The default is M-bM-^@M-^\noM-bM-^@M-^].
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-^].
384
385 GSSAPIStrictAcceptorCheck
386 Determines whether to be strict about the identity of the GSSAPI
387 acceptor a client authenticates against. If set to M-bM-^@M-^\yesM-bM-^@M-^] then
388 the client must authenticate against the host service on the
389 current hostname. If set to M-bM-^@M-^\noM-bM-^@M-^] then the client may
390 authenticate against any service key stored in the machine's
391 default store. This facility is provided to assist with
392 operation on multi homed machines. The default is M-bM-^@M-^\yesM-bM-^@M-^].
393
394 HostbasedAcceptedKeyTypes
395 Specifies the key types that will be accepted for hostbased
396 authentication as a comma-separated pattern list. Alternately if
397 the specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the
398 specified key types will be appended to the default set instead
399 of replacing them. The default for this option is:
400
401 ecdsa-sha2-nistp256-cert-v01@openssh.com,
402 ecdsa-sha2-nistp384-cert-v01@openssh.com,
403 ecdsa-sha2-nistp521-cert-v01@openssh.com,
404 ssh-ed25519-cert-v01@openssh.com,
405 ssh-rsa-cert-v01@openssh.com,
406 ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
407 ssh-ed25519,ssh-rsa
408
409 The -Q option of ssh(1) may be used to list supported key types.
410
411 HostbasedAuthentication
412 Specifies whether rhosts or /etc/hosts.equiv authentication
413 together with successful public key client host authentication is
414 allowed (host-based authentication). The default is M-bM-^@M-^\noM-bM-^@M-^].
415
416 HostbasedUsesNameFromPacketOnly
417 Specifies whether or not the server will attempt to perform a
418 reverse name lookup when matching the name in the ~/.shosts,
419 ~/.rhosts, and /etc/hosts.equiv files during
420 HostbasedAuthentication. A setting of M-bM-^@M-^\yesM-bM-^@M-^] means that sshd(8)
421 uses the name supplied by the client rather than attempting to
422 resolve the name from the TCP connection itself. The default is
423 M-bM-^@M-^\noM-bM-^@M-^].
424
425 HostCertificate
426 Specifies a file containing a public host certificate. The
427 certificate's public key must match a private host key already
428 specified by HostKey. The default behaviour of sshd(8) is not to
429 load any certificates.
430
431 HostKey
432 Specifies a file containing a private host key used by SSH. The
433 default is /etc/ssh/ssh_host_key for protocol version 1, and
434 /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_ecdsa_key,
435 /etc/ssh/ssh_host_ed25519_key and /etc/ssh/ssh_host_rsa_key for
436 protocol version 2.
437
438 Note that sshd(8) will refuse to use a file if it is group/world-
439 accessible and that the HostKeyAlgorithms option restricts which
440 of the keys are actually used by sshd(8).
441
442 It is possible to have multiple host key files. M-bM-^@M-^\rsa1M-bM-^@M-^] keys are
443 used for version 1 and M-bM-^@M-^\dsaM-bM-^@M-^], M-bM-^@M-^\ecdsaM-bM-^@M-^], M-bM-^@M-^\ed25519M-bM-^@M-^] or M-bM-^@M-^\rsaM-bM-^@M-^] are
444 used for version 2 of the SSH protocol. It is also possible to
445 specify public host key files instead. In this case operations
446 on the private key will be delegated to an ssh-agent(1).
447
448 HostKeyAgent
449 Identifies the UNIX-domain socket used to communicate with an
450 agent that has access to the private host keys. If
451 M-bM-^@M-^\SSH_AUTH_SOCKM-bM-^@M-^] is specified, the location of the socket will be
452 read from the SSH_AUTH_SOCK environment variable.
453
454 HostKeyAlgorithms
455 Specifies the host key algorithms that the server offers. The
456 default for this option is:
457
458 ecdsa-sha2-nistp256-cert-v01@openssh.com,
459 ecdsa-sha2-nistp384-cert-v01@openssh.com,
460 ecdsa-sha2-nistp521-cert-v01@openssh.com,
461 ssh-ed25519-cert-v01@openssh.com,
462 ssh-rsa-cert-v01@openssh.com,
463 ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
464 ssh-ed25519,ssh-rsa
465
466 The list of available key types may also be obtained using the -Q
467 option of ssh(1) with an argument of M-bM-^@M-^\keyM-bM-^@M-^].
468
469 IgnoreRhosts
470 Specifies that .rhosts and .shosts files will not be used in
471 RhostsRSAAuthentication or HostbasedAuthentication.
472
473 /etc/hosts.equiv and /etc/shosts.equiv are still used. The
474 default is M-bM-^@M-^\yesM-bM-^@M-^].
475
476 IgnoreUserKnownHosts
477 Specifies whether sshd(8) should ignore the user's
478 ~/.ssh/known_hosts during RhostsRSAAuthentication or
479 HostbasedAuthentication. The default is M-bM-^@M-^\noM-bM-^@M-^].
480
481 IPQoS Specifies the IPv4 type-of-service or DSCP class for the
482 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-^],
483 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-^],
484 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-^],
485 M-bM-^@M-^\lowdelayM-bM-^@M-^], M-bM-^@M-^\throughputM-bM-^@M-^], M-bM-^@M-^\reliabilityM-bM-^@M-^], or a numeric value.
486 This option may take one or two arguments, separated by
487 whitespace. If one argument is specified, it is used as the
488 packet class unconditionally. If two values are specified, the
489 first is automatically selected for interactive sessions and the
490 second for non-interactive sessions. The default is M-bM-^@M-^\lowdelayM-bM-^@M-^]
491 for interactive sessions and M-bM-^@M-^\throughputM-bM-^@M-^] for non-interactive
492 sessions.
493
494 KbdInteractiveAuthentication
495 Specifies whether to allow keyboard-interactive authentication.
496 The argument to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default
497 is to use whatever value ChallengeResponseAuthentication is set
498 to (by default M-bM-^@M-^\yesM-bM-^@M-^]).
499
500 KerberosAuthentication
501 Specifies whether the password provided by the user for
502 PasswordAuthentication will be validated through the Kerberos
503 KDC. To use this option, the server needs a Kerberos servtab
504 which allows the verification of the KDC's identity. The default
505 is M-bM-^@M-^\noM-bM-^@M-^].
506
507 KerberosGetAFSToken
508 If AFS is active and the user has a Kerberos 5 TGT, attempt to
509 acquire an AFS token before accessing the user's home directory.
510 The default is M-bM-^@M-^\noM-bM-^@M-^].
511
512 KerberosOrLocalPasswd
513 If password authentication through Kerberos fails then the
514 password will be validated via any additional local mechanism
515 such as /etc/passwd. The default is M-bM-^@M-^\yesM-bM-^@M-^].
516
517 KerberosTicketCleanup
518 Specifies whether to automatically destroy the user's ticket
519 cache file on logout. The default is M-bM-^@M-^\yesM-bM-^@M-^].
520
521 KexAlgorithms
522 Specifies the available KEX (Key Exchange) algorithms. Multiple
523 algorithms must be comma-separated. Alternately if the specified
524 value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the specified methods
525 will be appended to the default set instead of replacing them.
526 The supported algorithms are:
527
528 curve25519-sha256@libssh.org
529 diffie-hellman-group1-sha1
530 diffie-hellman-group14-sha1
531 diffie-hellman-group-exchange-sha1
532 diffie-hellman-group-exchange-sha256
533 ecdh-sha2-nistp256
534 ecdh-sha2-nistp384
535 ecdh-sha2-nistp521
536
537 The default is:
538
539 curve25519-sha256@libssh.org,
540 ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,
541 diffie-hellman-group-exchange-sha256,
542 diffie-hellman-group14-sha1
543
544 The list of available key exchange algorithms may also be
545 obtained using the -Q option of ssh(1) with an argument of M-bM-^@M-^\kexM-bM-^@M-^].
546
547 KeyRegenerationInterval
548 In protocol version 1, the ephemeral server key is automatically
549 regenerated after this many seconds (if it has been used). The
550 purpose of regeneration is to prevent decrypting captured
551 sessions by later breaking into the machine and stealing the
552 keys. The key is never stored anywhere. If the value is 0, the
553 key is never regenerated. The default is 3600 (seconds).
554
555 ListenAddress
556 Specifies the local addresses sshd(8) should listen on. The
557 following forms may be used:
558
559 ListenAddress host|IPv4_addr|IPv6_addr
560 ListenAddress host|IPv4_addr:port
561 ListenAddress [host|IPv6_addr]:port
562
563 If port is not specified, sshd will listen on the address and all
564 Port options specified. The default is to listen on all local
565 addresses. Multiple ListenAddress options are permitted.
566
567 LoginGraceTime
568 The server disconnects after this time if the user has not
569 successfully logged in. If the value is 0, there is no time
570 limit. The default is 120 seconds.
571
572 LogLevel
573 Gives the verbosity level that is used when logging messages from
574 sshd(8). The possible values are: QUIET, FATAL, ERROR, INFO,
575 VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
576 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
577 higher levels of debugging output. Logging with a DEBUG level
578 violates the privacy of users and is not recommended.
579
580 MACs Specifies the available MAC (message authentication code)
581 algorithms. The MAC algorithm is used for data integrity
582 protection. Multiple algorithms must be comma-separated. If the
583 specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the specified
584 algorithms will be appended to the default set instead of
585 replacing them.
586
587 The algorithms that contain M-bM-^@M-^\-etmM-bM-^@M-^] calculate the MAC after
588 encryption (encrypt-then-mac). These are considered safer and
589 their use recommended. The supported MACs are:
590
591 hmac-md5
592 hmac-md5-96
593 hmac-ripemd160
594 hmac-sha1
595 hmac-sha1-96
596 hmac-sha2-256
597 hmac-sha2-512
598 umac-64@openssh.com
599 umac-128@openssh.com
600 hmac-md5-etm@openssh.com
601 hmac-md5-96-etm@openssh.com
602 hmac-ripemd160-etm@openssh.com
603 hmac-sha1-etm@openssh.com
604 hmac-sha1-96-etm@openssh.com
605 hmac-sha2-256-etm@openssh.com
606 hmac-sha2-512-etm@openssh.com
607 umac-64-etm@openssh.com
608 umac-128-etm@openssh.com
609
610 The default is:
611
612 umac-64-etm@openssh.com,umac-128-etm@openssh.com,
613 hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,
614 hmac-sha1-etm@openssh.com,
615 umac-64@openssh.com,umac-128@openssh.com,
616 hmac-sha2-256,hmac-sha2-512,hmac-sha1
617
618 The list of available MAC algorithms may also be obtained using
619 the -Q option of ssh(1) with an argument of M-bM-^@M-^\macM-bM-^@M-^].
620
621 Match Introduces a conditional block. If all of the criteria on the
622 Match line are satisfied, the keywords on the following lines
623 override those set in the global section of the config file,
624 until either another Match line or the end of the file. If a
625 keyword appears in multiple Match blocks that are satisfied, only
626 the first instance of the keyword is applied.
627
628 The arguments to Match are one or more criteria-pattern pairs or
629 the single token All which matches all criteria. The available
630 criteria are User, Group, Host, LocalAddress, LocalPort, and
631 Address. The match patterns may consist of single entries or
632 comma-separated lists and may use the wildcard and negation
633 operators described in the PATTERNS section of ssh_config(5).
634
635 The patterns in an Address criteria may additionally contain
636 addresses to match in CIDR address/masklen format, e.g.
637 M-bM-^@M-^\192.0.2.0/24M-bM-^@M-^] or M-bM-^@M-^\3ffe:ffff::/32M-bM-^@M-^]. Note that the mask length
638 provided must be consistent with the address - it is an error to
639 specify a mask length that is too long for the address or one
640 with bits set in this host portion of the address. For example,
641 M-bM-^@M-^\192.0.2.0/33M-bM-^@M-^] and M-bM-^@M-^\192.0.2.0/8M-bM-^@M-^] respectively.
642
643 Only a subset of keywords may be used on the lines following a
644 Match keyword. Available keywords are AcceptEnv,
645 AllowAgentForwarding, AllowGroups, AllowStreamLocalForwarding,
646 AllowTcpForwarding, AllowUsers, AuthenticationMethods,
647 AuthorizedKeysCommand, AuthorizedKeysCommandUser,
648 AuthorizedKeysFile, AuthorizedPrincipalsCommand,
649 AuthorizedPrincipalsCommandUser, AuthorizedPrincipalsFile,
650 Banner, ChrootDirectory, DenyGroups, DenyUsers, ForceCommand,
651 GatewayPorts, GSSAPIAuthentication, HostbasedAcceptedKeyTypes,
652 HostbasedAuthentication, HostbasedUsesNameFromPacketOnly, IPQoS,
653 KbdInteractiveAuthentication, KerberosAuthentication,
654 MaxAuthTries, MaxSessions, PasswordAuthentication,
655 PermitEmptyPasswords, PermitOpen, PermitRootLogin, PermitTTY,
656 PermitTunnel, PermitUserRC, PubkeyAcceptedKeyTypes,
657 PubkeyAuthentication, RekeyLimit, RevokedKeys,
658 RhostsRSAAuthentication, RSAAuthentication, StreamLocalBindMask,
659 StreamLocalBindUnlink, TrustedUserCAKeys, X11DisplayOffset,
660 X11Forwarding and X11UseLocalHost.
661
662 MaxAuthTries
663 Specifies the maximum number of authentication attempts permitted
664 per connection. Once the number of failures reaches half this
665 value, additional failures are logged. The default is 6.
666
667 MaxSessions
668 Specifies the maximum number of open shell, login or subsystem
669 (e.g. sftp) sessions permitted per network connection. Multiple
670 sessions may be established by clients that support connection
671 multiplexing. Setting MaxSessions to 1 will effectively disable
672 session multiplexing, whereas setting it to 0 will prevent all
673 shell, login and subsystem sessions while still permitting
674 forwarding. The default is 10.
675
676 MaxStartups
677 Specifies the maximum number of concurrent unauthenticated
678 connections to the SSH daemon. Additional connections will be
679 dropped until authentication succeeds or the LoginGraceTime
680 expires for a connection. The default is 10:30:100.
681
682 Alternatively, random early drop can be enabled by specifying the
683 three colon separated values M-bM-^@M-^\start:rate:fullM-bM-^@M-^] (e.g. "10:30:60").
684 sshd(8) will refuse connection attempts with a probability of
685 M-bM-^@M-^\rate/100M-bM-^@M-^] (30%) if there are currently M-bM-^@M-^\startM-bM-^@M-^] (10)
686 unauthenticated connections. The probability increases linearly
687 and all connection attempts are refused if the number of
688 unauthenticated connections reaches M-bM-^@M-^\fullM-bM-^@M-^] (60).
689
690 PasswordAuthentication
691 Specifies whether password authentication is allowed. The
692 default is M-bM-^@M-^\yesM-bM-^@M-^].
693
694 PermitEmptyPasswords
695 When password authentication is allowed, it specifies whether the
696 server allows login to accounts with empty password strings. The
697 default is M-bM-^@M-^\noM-bM-^@M-^].
698
699 PermitOpen
700 Specifies the destinations to which TCP port forwarding is
701 permitted. The forwarding specification must be one of the
702 following forms:
703
704 PermitOpen host:port
705 PermitOpen IPv4_addr:port
706 PermitOpen [IPv6_addr]:port
707
708 Multiple forwards may be specified by separating them with
709 whitespace. An argument of M-bM-^@M-^\anyM-bM-^@M-^] can be used to remove all
710 restrictions and permit any forwarding requests. An argument of
711 M-bM-^@M-^\noneM-bM-^@M-^] can be used to prohibit all forwarding requests. By
712 default all port forwarding requests are permitted.
713
714 PermitRootLogin
715 Specifies whether root can log in using ssh(1). The argument
716 must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\prohibit-passwordM-bM-^@M-^], M-bM-^@M-^\without-passwordM-bM-^@M-^],
717 M-bM-^@M-^\forced-commands-onlyM-bM-^@M-^], or M-bM-^@M-^\noM-bM-^@M-^]. The default is
718 M-bM-^@M-^\prohibit-passwordM-bM-^@M-^].
719
720 If this option is set to M-bM-^@M-^\prohibit-passwordM-bM-^@M-^] or
721 M-bM-^@M-^\without-passwordM-bM-^@M-^], password and keyboard-interactive
722 authentication are disabled for root.
723
724 If this option is set to M-bM-^@M-^\forced-commands-onlyM-bM-^@M-^], root login with
725 public key authentication will be allowed, but only if the
726 command option has been specified (which may be useful for taking
727 remote backups even if root login is normally not allowed). All
728 other authentication methods are disabled for root.
729
730 If this option is set to M-bM-^@M-^\noM-bM-^@M-^], root is not allowed to log in.
731
732 PermitTunnel
733 Specifies whether tun(4) device forwarding is allowed. The
734 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-^]
735 (layer 2), or M-bM-^@M-^\noM-bM-^@M-^]. Specifying M-bM-^@M-^\yesM-bM-^@M-^] permits both
736 M-bM-^@M-^\point-to-pointM-bM-^@M-^] and M-bM-^@M-^\ethernetM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
737
738 Independent of this setting, the permissions of the selected
739 tun(4) device must allow access to the user.
740
741 PermitTTY
742 Specifies whether pty(4) allocation is permitted. The default is
743 M-bM-^@M-^\yesM-bM-^@M-^].
744
745 PermitUserEnvironment
746 Specifies whether ~/.ssh/environment and environment= options in
747 ~/.ssh/authorized_keys are processed by sshd(8). The default is
748 M-bM-^@M-^\noM-bM-^@M-^]. Enabling environment processing may enable users to bypass
749 access restrictions in some configurations using mechanisms such
750 as LD_PRELOAD.
751
752 PermitUserRC
753 Specifies whether any ~/.ssh/rc file is executed. The default is
754 M-bM-^@M-^\yesM-bM-^@M-^].
755
756 PidFile
757 Specifies the file that contains the process ID of the SSH
758 daemon, or M-bM-^@M-^\noneM-bM-^@M-^] to not write one. The default is
759 /var/run/sshd.pid.
760
761 Port Specifies the port number that sshd(8) listens on. The default
762 is 22. Multiple options of this type are permitted. See also
763 ListenAddress.
764
765 PrintLastLog
766 Specifies whether sshd(8) should print the date and time of the
767 last user login when a user logs in interactively. The default
768 is M-bM-^@M-^\yesM-bM-^@M-^].
769
770 PrintMotd
771 Specifies whether sshd(8) should print /etc/motd when a user logs
772 in interactively. (On some systems it is also printed by the
773 shell, /etc/profile, or equivalent.) The default is M-bM-^@M-^\yesM-bM-^@M-^].
774
775 Protocol
776 Specifies the protocol versions sshd(8) supports. The possible
777 values are M-bM-^@M-^X1M-bM-^@M-^Y and M-bM-^@M-^X2M-bM-^@M-^Y. Multiple versions must be comma-
778 separated. The default is M-bM-^@M-^X2M-bM-^@M-^Y. Protocol 1 suffers from a number
779 of cryptographic weaknesses and should not be used. It is only
780 offered to support legacy devices.
781
782 Note that the order of the protocol list does not indicate
783 preference, because the client selects among multiple protocol
784 versions offered by the server. Specifying M-bM-^@M-^\2,1M-bM-^@M-^] is identical to
785 M-bM-^@M-^\1,2M-bM-^@M-^].
786
787 PubkeyAcceptedKeyTypes
788 Specifies the key types that will be accepted for public key
789 authentication as a comma-separated pattern list. Alternately if
790 the specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the
791 specified key types will be appended to the default set instead
792 of replacing them. The default for this option is:
793
794 ecdsa-sha2-nistp256-cert-v01@openssh.com,
795 ecdsa-sha2-nistp384-cert-v01@openssh.com,
796 ecdsa-sha2-nistp521-cert-v01@openssh.com,
797 ssh-ed25519-cert-v01@openssh.com,
798 ssh-rsa-cert-v01@openssh.com,
799 ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
800 ssh-ed25519,ssh-rsa
801
802 The -Q option of ssh(1) may be used to list supported key types.
803
804 PubkeyAuthentication
805 Specifies whether public key authentication is allowed. The
806 default is M-bM-^@M-^\yesM-bM-^@M-^].
807
808 RekeyLimit
809 Specifies the maximum amount of data that may be transmitted
810 before the session key is renegotiated, optionally followed a
811 maximum amount of time that may pass before the session key is
812 renegotiated. The first argument is specified in bytes and may
813 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,
814 Megabytes, or Gigabytes, respectively. The default is between
815 M-bM-^@M-^X1GM-bM-^@M-^Y and M-bM-^@M-^X4GM-bM-^@M-^Y, depending on the cipher. The optional second
816 value is specified in seconds and may use any of the units
817 documented in the TIME FORMATS section. The default value for
818 RekeyLimit is M-bM-^@M-^\default noneM-bM-^@M-^], which means that rekeying is
819 performed after the cipher's default amount of data has been sent
820 or received and no time based rekeying is done.
821
822 RevokedKeys
823 Specifies revoked public keys file, or M-bM-^@M-^\noneM-bM-^@M-^] to not use one.
824 Keys listed in this file will be refused for public key
825 authentication. Note that if this file is not readable, then
826 public key authentication will be refused for all users. Keys
827 may be specified as a text file, listing one public key per line,
828 or as an OpenSSH Key Revocation List (KRL) as generated by
829 ssh-keygen(1). For more information on KRLs, see the KEY
830 REVOCATION LISTS section in ssh-keygen(1).
831
832 RhostsRSAAuthentication
833 Specifies whether rhosts or /etc/hosts.equiv authentication
834 together with successful RSA host authentication is allowed. The
835 default is M-bM-^@M-^\noM-bM-^@M-^]. This option applies to protocol version 1 only.
836
837 RSAAuthentication
838 Specifies whether pure RSA authentication is allowed. The
839 default is M-bM-^@M-^\yesM-bM-^@M-^]. This option applies to protocol version 1
840 only.
841
842 ServerKeyBits
843 Defines the number of bits in the ephemeral protocol version 1
844 server key. The default and minimum value is 1024.
845
846 StreamLocalBindMask
847 Sets the octal file creation mode mask (umask) used when creating
848 a Unix-domain socket file for local or remote port forwarding.
849 This option is only used for port forwarding to a Unix-domain
850 socket file.
851
852 The default value is 0177, which creates a Unix-domain socket
853 file that is readable and writable only by the owner. Note that
854 not all operating systems honor the file mode on Unix-domain
855 socket files.
856
857 StreamLocalBindUnlink
858 Specifies whether to remove an existing Unix-domain socket file
859 for local or remote port forwarding before creating a new one.
860 If the socket file already exists and StreamLocalBindUnlink is
861 not enabled, sshd will be unable to forward the port to the Unix-
862 domain socket file. This option is only used for port forwarding
863 to a Unix-domain socket file.
864
865 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-^].
866
867 StrictModes
868 Specifies whether sshd(8) should check file modes and ownership
869 of the user's files and home directory before accepting login.
870 This is normally desirable because novices sometimes accidentally
871 leave their directory or files world-writable. The default is
872 M-bM-^@M-^\yesM-bM-^@M-^]. Note that this does not apply to ChrootDirectory, whose
873 permissions and ownership are checked unconditionally.
874
875 Subsystem
876 Configures an external subsystem (e.g. file transfer daemon).
877 Arguments should be a subsystem name and a command (with optional
878 arguments) to execute upon subsystem request.
879
880 The command sftp-server(8) implements the M-bM-^@M-^\sftpM-bM-^@M-^] file transfer
881 subsystem.
882
883 Alternately the name M-bM-^@M-^\internal-sftpM-bM-^@M-^] implements an in-process
884 M-bM-^@M-^\sftpM-bM-^@M-^] server. This may simplify configurations using
885 ChrootDirectory to force a different filesystem root on clients.
886
887 By default no subsystems are defined.
888
889 SyslogFacility
890 Gives the facility code that is used when logging messages from
891 sshd(8). The possible values are: DAEMON, USER, AUTH, LOCAL0,
892 LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The
893 default is AUTH.
894
895 TCPKeepAlive
896 Specifies whether the system should send TCP keepalive messages
897 to the other side. If they are sent, death of the connection or
898 crash of one of the machines will be properly noticed. However,
899 this means that connections will die if the route is down
900 temporarily, and some people find it annoying. On the other
901 hand, if TCP keepalives are not sent, sessions may hang
902 indefinitely on the server, leaving M-bM-^@M-^\ghostM-bM-^@M-^] users and consuming
903 server resources.
904
905 The default is M-bM-^@M-^\yesM-bM-^@M-^] (to send TCP keepalive messages), and the
906 server will notice if the network goes down or the client host
907 crashes. This avoids infinitely hanging sessions.
908
909 To disable TCP keepalive messages, the value should be set to
910 M-bM-^@M-^\noM-bM-^@M-^].
911
912 TrustedUserCAKeys
913 Specifies a file containing public keys of certificate
914 authorities that are trusted to sign user certificates for
915 authentication, or M-bM-^@M-^\noneM-bM-^@M-^] to not use one. Keys are listed one
916 per line; empty lines and comments starting with M-bM-^@M-^X#M-bM-^@M-^Y are allowed.
917 If a certificate is presented for authentication and has its
918 signing CA key listed in this file, then it may be used for
919 authentication for any user listed in the certificate's
920 principals list. Note that certificates that lack a list of
921 principals will not be permitted for authentication using
922 TrustedUserCAKeys. For more details on certificates, see the
923 CERTIFICATES section in ssh-keygen(1).
924
925 UseDNS Specifies whether sshd(8) should look up the remote host name,
926 and to check that the resolved host name for the remote IP
927 address maps back to the very same IP address.
928
929 If this option is set to M-bM-^@M-^\noM-bM-^@M-^] (the default) then only addresses
930 and not host names may be used in ~/.ssh/known_hosts from and
931 sshd_config Match Host directives.
932
933 UseLogin
934 Specifies whether login(1) is used for interactive login
935 sessions. The default is M-bM-^@M-^\noM-bM-^@M-^]. Note that login(1) is never used
936 for remote command execution. Note also, that if this is
937 enabled, X11Forwarding will be disabled because login(1) does not
938 know how to handle xauth(1) cookies. If UsePrivilegeSeparation
939 is specified, it will be disabled after authentication.
940
941 UsePAM Enables the Pluggable Authentication Module interface. If set to
942 M-bM-^@M-^\yesM-bM-^@M-^] this will enable PAM authentication using
943 ChallengeResponseAuthentication and PasswordAuthentication in
944 addition to PAM account and session module processing for all
945 authentication types.
946
947 Because PAM challenge-response authentication usually serves an
948 equivalent role to password authentication, you should disable
949 either PasswordAuthentication or ChallengeResponseAuthentication.
950
951 If UsePAM is enabled, you will not be able to run sshd(8) as a
952 non-root user. The default is M-bM-^@M-^\noM-bM-^@M-^].
953
954 UsePrivilegeSeparation
955 Specifies whether sshd(8) separates privileges by creating an
956 unprivileged child process to deal with incoming network traffic.
957 After successful authentication, another process will be created
958 that has the privilege of the authenticated user. The goal of
959 privilege separation is to prevent privilege escalation by
960 containing any corruption within the unprivileged processes. The
961 argument must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\noM-bM-^@M-^], or M-bM-^@M-^\sandboxM-bM-^@M-^]. If
962 UsePrivilegeSeparation is set to M-bM-^@M-^\sandboxM-bM-^@M-^] then the pre-
963 authentication unprivileged process is subject to additional
964 restrictions. The default is M-bM-^@M-^\sandboxM-bM-^@M-^].
965
966 VersionAddendum
967 Optionally specifies additional text to append to the SSH
968 protocol banner sent by the server upon connection. The default
969 is M-bM-^@M-^\noneM-bM-^@M-^].
970
971 X11DisplayOffset
972 Specifies the first display number available for sshd(8)'s X11
973 forwarding. This prevents sshd from interfering with real X11
974 servers. The default is 10.
975
976 X11Forwarding
977 Specifies whether X11 forwarding is permitted. The argument must
978 be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
979
980 When X11 forwarding is enabled, there may be additional exposure
981 to the server and to client displays if the sshd(8) proxy display
982 is configured to listen on the wildcard address (see
983 X11UseLocalhost below), though this is not the default.
984 Additionally, the authentication spoofing and authentication data
985 verification and substitution occur on the client side. The
986 security risk of using X11 forwarding is that the client's X11
987 display server may be exposed to attack when the SSH client
988 requests forwarding (see the warnings for ForwardX11 in
989 ssh_config(5)). A system administrator may have a stance in
990 which they want to protect clients that may expose themselves to
991 attack by unwittingly requesting X11 forwarding, which can
992 warrant a M-bM-^@M-^\noM-bM-^@M-^] setting.
993
994 Note that disabling X11 forwarding does not prevent users from
995 forwarding X11 traffic, as users can always install their own
996 forwarders. X11 forwarding is automatically disabled if UseLogin
997 is enabled.
998
999 X11UseLocalhost
1000 Specifies whether sshd(8) should bind the X11 forwarding server
1001 to the loopback address or to the wildcard address. By default,
1002 sshd binds the forwarding server to the loopback address and sets
1003 the hostname part of the DISPLAY environment variable to
1004 M-bM-^@M-^\localhostM-bM-^@M-^]. This prevents remote hosts from connecting to the
1005 proxy display. However, some older X11 clients may not function
1006 with this configuration. X11UseLocalhost may be set to M-bM-^@M-^\noM-bM-^@M-^] to
1007 specify that the forwarding server should be bound to the
1008 wildcard address. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The
1009 default is M-bM-^@M-^\yesM-bM-^@M-^].
1010
1011 XAuthLocation
1012 Specifies the full pathname of the xauth(1) program, or M-bM-^@M-^\noneM-bM-^@M-^] to
1013 not use one. The default is /usr/X11R6/bin/xauth.
1014
1015TIME FORMATS
1016 sshd(8) command-line arguments and configuration file options that
1017 specify time may be expressed using a sequence of the form:
1018 time[qualifier], where time is a positive integer value and qualifier is
1019 one of the following:
1020
1021 M-bM-^_M-(noneM-bM-^_M-) seconds
1022 s | S seconds
1023 m | M minutes
1024 h | H hours
1025 d | D days
1026 w | W weeks
1027
1028 Each member of the sequence is added together to calculate the total time
1029 value.
1030
1031 Time format examples:
1032
1033 600 600 seconds (10 minutes)
1034 10m 10 minutes
1035 1h30m 1 hour 30 minutes (90 minutes)
1036
1037FILES
1038 /etc/ssh/sshd_config
1039 Contains configuration data for sshd(8). This file should be
1040 writable by root only, but it is recommended (though not
1041 necessary) that it be world-readable.
1042
1043SEE ALSO
1044 sshd(8)
1045
1046AUTHORS
1047 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
1048 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
1049 de Raadt and Dug Song removed many bugs, re-added newer features and
1050 created OpenSSH. Markus Friedl contributed the support for SSH protocol
1051 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
1052 for privilege separation.
1053
1054OpenBSD 5.9 February 17, 2016 OpenBSD 5.9